[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:26]OFD Sender: No OFD packet to send [03:39:31]OFD Sender: No OFD packet to send [03:39:36]OFD Sender: No OFD packet to send [03:39:41]OFD Sender: No OFD packet to send [03:39:46]OFD Sender: No OFD packet to send [03:39:51]OFD Sender: No OFD packet to send [03:39:56]OFD Sender: No OFD packet to send [03:40:01]OFD Sender: No OFD packet to send [03:40:06]OFD Sender: No OFD packet to send [03:40:11]OFD Sender: No OFD packet to send [03:40:16]OFD Sender: No OFD packet to send [03:40:21]OFD Sender: No OFD packet to send [03:40:26]OFD Sender: No OFD packet to send [03:40:31]OFD Sender: No OFD packet to send [03:40:36]OFD Sender: No OFD packet to send [03:40:41]OFD Sender: No OFD packet to send [03:40:46]OFD Sender: No OFD packet to send [03:40:51]OFD Sender: No OFD packet to send [03:40:56]OFD Sender: No OFD packet to send [03:41:01]OFD Sender: No OFD packet to send [03:41:06]OFD Sender: No OFD packet to send [03:41:11]OFD Sender: No OFD packet to send [03:41:16]OFD Sender: No OFD packet to send [03:41:21]OFD Sender: No OFD packet to send [03:41:26]OFD Sender: No OFD packet to send [03:41:31]OFD Sender: No OFD packet to send [03:41:36]OFD Sender: No OFD packet to send [03:41:41]OFD Sender: No OFD packet to send [03:41:46]OFD Sender: No OFD packet to send [03:41:51]OFD Sender: No OFD packet to send [03:41:56]OFD Sender: No OFD packet to send [03:42:01]OFD Sender: No OFD packet to send [03:42:06]OFD Sender: No OFD packet to send [03:42:11]OFD Sender: No OFD packet to send [03:42:16]OFD Sender: No OFD packet to send [03:42:21]OFD Sender: No OFD packet to send [03:42:26]OFD Sender: No OFD packet to send [03:42:31]OFD Sender: No OFD packet to send [03:42:36]OFD Sender: No OFD packet to send [03:42:41]OFD Sender: No OFD packet to send [03:42:46]OFD Sender: No OFD packet to send [03:42:51]OFD Sender: No OFD packet to send [03:42:56]OFD Sender: No OFD packet to send [03:43:01]OFD Sender: No OFD packet to send [03:43:06]OFD Sender: No OFD packet to send [03:43:11]OFD Sender: No OFD packet to send [03:43:16]OFD Sender: No OFD packet to send [03:43:21]OFD Sender: No OFD packet to send [03:43:26]OFD Sender: No OFD packet to send [03:43:31]OFD Sender: No OFD packet to send [03:43:36]OFD Sender: No OFD packet to send [03:43:41]OFD Sender: No OFD packet to send [03:43:46]OFD Sender: No OFD packet to send [03:43:51]OFD Sender: No OFD packet to send [03:43:56]OFD Sender: No OFD packet to send [03:44:01]OFD Sender: No OFD packet to send [03:44:06]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:52]OFD Sender: No OFD packet to send [03:59:57]OFD Sender: No OFD packet to send [04:00:02]OFD Sender: No OFD packet to send [04:00:07]OFD Sender: No OFD packet to send [04:00:12]OFD Sender: No OFD packet to send [04:00:17]OFD Sender: No OFD packet to send [04:00:22]OFD Sender: No OFD packet to send [04:00:27]OFD Sender: No OFD packet to send [04:00:32]OFD Sender: No OFD packet to send [04:00:37]OFD Sender: No OFD packet to send [04:00:42]OFD Sender: No OFD packet to send [04:00:47]OFD Sender: No OFD packet to send [04:00:52]OFD Sender: No OFD packet to send [04:00:57]OFD Sender: No OFD packet to send [04:01:02]OFD Sender: No OFD packet to send [04:01:07]OFD Sender: No OFD packet to send [04:01:12]OFD Sender: No OFD packet to send [04:01:17]OFD Sender: No OFD packet to send [04:01:22]OFD Sender: No OFD packet to send [04:01:27]OFD Sender: No OFD packet to send [04:01:32]OFD Sender: No OFD packet to send [04:01:37]OFD Sender: No OFD packet to send [04:01:42]OFD Sender: No OFD packet to send [04:01:47]OFD Sender: No OFD packet to send [04:01:52]OFD Sender: No OFD packet to send [04:01:57]OFD Sender: No OFD packet to send [04:02:02]OFD Sender: No OFD packet to send [04:02:07]OFD Sender: No OFD packet to send [04:02:12]OFD Sender: No OFD packet to send [04:02:17]OFD Sender: No OFD packet to send [04:02:22]OFD Sender: No OFD packet to send [04:02:27]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]accept exits with 8 [04:19:13]New connection [04:19:13]New thread 3066977636 created [04:19:13]Thread 3066834276 joined [04:19:13]Waiting for new connection... [04:19:13] Sock 8.Parse request [04:19:13]Sock 8.Check first char [04:19:13]Sock 8.First char is OK [04:19:13]request: POST /json_proto HTTP/1.0 [04:19:13]Method: POST [04:19:13]URL: /json_proto [04:19:13]Method is POST - this is cgi request [04:19:13]url: /json_proto [04:19:13]query_string will be loaded in cgi processing [04:19:13]execute_cgi json_proto POST (null) [04:19:13]execute_cgi path=json_proto method=POST [04:19:13]POST find Content-Length [04:19:13]Host: 172.17.63.3:8080 [04:19:13]Content-Length: 678 [04:19:13]Content-Type: application/json [04:19:13] [04:19:13]POST finish read [04:19:13]Found Content-Length = 678 [04:19:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99268", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:19:13]execute_script... [04:19: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)99268", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:19:13]POST & json_proto [04:19:13]process_json_proto [04:19:13]json parsed OK: [04:19:13]protocol is kg_v1.0 [04:19:13]action value=close_receipt [04:19:13]process_action close_receipt [04:19:13]cmd_close_receipt [04:19:13]MH_GetDate [04:19:13]Write to MH i2c: F0 00 00 83 32 A4 [04:19:13]Write i2c OK [04:19:13]MH_I2C_Read... [04:19:13]Read from MH i2c: F0 [04:19:13]MH_I2C_Read... [04:19:13]Read from MH i2c: F0 09 00 [04:19:13]MH_I2C_Read... [04:19:13]Read from MH i2c: F0 09 00 83 32 00 44 BF 1D 67 50 D1 6C 64 25 [04:19:13]GetLastDocTimeStamp 1729996803 [04:19:13]current date 1730002756 [04:19:13]FM_GetShiftState [04:19:13]SAM_PROTO_GetShiftState [04:19:13]wFMCommunicate request_size=4 [04:19:13]MH_SAM_APDU [04:19:13]CAPDU: 80 13 01 00 [04:19:13]Write to MH i2c: E2 08 00 84 32 80 13 01 00 00 00 00 00 33 [04:19:13]Write i2c OK [04:19:13]MH_I2C_Read... [04:19:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:19:13]Read from MH i2c: E2 [04:19:13]MH_I2C_Read... [04:19:13]Read from MH i2c: E2 0E 00 [04:19:13]MH_I2C_Read... [04:19:13]Read from MH i2c: E2 0E 00 84 32 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 00 [04:19:13]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [04:19:13]wFMCommunicate OK [04:19:13]SAM_PROTO_GetShiftState done [04:19:13]FM_GetShiftState done [04:19:13]opened in 1729989044 [04:19:13]opened+sec_in_day 1730075444 [04:19:13]quantity*price = 100050 [04:19:13]sum+1 = 100052 [04:19:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 6 27.10.2024 04:19 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156455 ФПД: 178774603833341 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T041917&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156455&fm=178774603833341&tin=02508201610067®Number=0000000000091693&sum=100000 [04:19:14]StoreToDocumentArchive [04:19:14]shift 537 fd 156455 [04:19:14]save to /storage/0537/doc_00156455 [04:19:14]save last doc name /storage/0537/doc_00156455 to /storage/kkm_last_doc_name [04:19:14]save OK [04:19:14]Clear old archive folders... [04:19:14]ProcessDocumentItem done err = 0, tmpTLVsize=248 [04:19:14]tlvbuf is 01754310 [04:19:14]SAM_PROTO_ClearQueue [04:19:14]wFMCommunicate request_size=4 [04:19:14]MH_SAM_APDU [04:19:14]CAPDU: 80 09 00 00 [04:19:14]Write to MH i2c: E2 08 00 91 32 80 09 00 00 00 00 00 00 35 [04:19:14]Write i2c OK [04:19:14]MH_I2C_Read... [04:19:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:19:14]Read from MH i2c: E2 [04:19:14]MH_I2C_Read... [04:19:14]Read from MH i2c: E2 03 00 [04:19:14]MH_I2C_Read... [04:19:14]Read from MH i2c: E2 03 00 91 32 00 90 00 37 [04:19:14]RAPDU: 90 00 [04:19:14]wFMCommunicate OK [04:19:14]SAM_PROTO_ClearQueue done [04:19:14]KKMCreateOFDPacket [04:19:14]OFDProtocolAddRootSTLVToBuf [04:19:14]FM_MakeSignedData [04:19:14]FM_MakeSignedData [04:19:14]SAM_PROTO_SignData [04:19:14]wFMCommunicate request_size=4 [04:19:14]MH_SAM_APDU [04:19:14]CAPDU: 80 0D 01 02 [04:19:14]Write to MH i2c: E2 08 00 92 32 80 0D 01 02 00 00 00 00 3D [04:19:14]Write i2c OK [04:19:14]MH_I2C_Read... [04:19:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:19:14]Read from MH i2c: E2 [04:19:14]MH_I2C_Read... [04:19:14]Read from MH i2c: E2 03 00 [04:19:14]MH_I2C_Read... [04:19:14]Read from MH i2c: E2 03 00 92 32 00 90 00 38 [04:19:14]RAPDU: 90 00 [04:19:14]wFMCommunicate OK [04:19:14]wFMCommunicate request_size=255 [04:19:14]MH_SAM_APDU [04:19:14]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 45 BF 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 27 63 02 00 35 04 06 00 A2 98 34 C1 [04:19:14]Write to MH i2c: E2 02 01 93 32 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 45 BF 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 27 63 02 00 35 04 06 00 A2 98 34 C1 00 00 2B [04:19:14]Write i2c OK [04:19:14]MH_I2C_Read... [04:19:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:19:14]Read from MH i2c: E2 [04:19:14]MH_I2C_Read... [04:19:14]Read from MH i2c: E2 03 00 [04:19:14]MH_I2C_Read... [04:19:14]Read from MH i2c: E2 03 00 93 32 00 90 00 39 [04:19:14]RAPDU: 90 00 [04:19:14]wFMCommunicate OK [04:19:14]wFMCommunicate request_size=7 [04:19:14]MH_SAM_APDU [04:19:14]CAPDU: 80 0D 02 02 02 9F FD [04:19:14]Write to MH i2c: E2 0A 00 94 32 80 0D 02 02 02 00 9F FD 00 00 E0 [04:19:14]Write i2c OK [04:19:14]MH_I2C_Read... [04:19:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:19:14]Read from MH i2c: E2 [04:19:14]MH_I2C_Read... [04:19:14]Read from MH i2c: E2 03 00 [04:19:14]MH_I2C_Read... [04:19:14]Read from MH i2c: E2 03 00 94 32 00 90 00 3A [04:19:14]RAPDU: 90 00 [04:19:14]wFMCommunicate OK [04:19:14]wFMCommunicate request_size=4 [04:19:14]MH_SAM_APDU [04:19:14]CAPDU: 80 0D 03 02 [04:19:14]Write to MH i2c: E2 08 00 95 32 80 0D 03 02 00 00 00 00 42 [04:19:14]Write i2c OK [04:19:14]MH_I2C_Read... [04:19:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:19:14]Read from MH i2c: E2 [04:19:14]MH_I2C_Read... [04:19:14]Read from MH i2c: E2 0B 00 [04:19:14]MH_I2C_Read... [04:19:14]Read from MH i2c: E2 0B 00 95 32 00 12 DC 16 06 BB 70 88 61 90 00 61 [04:19:14]RAPDU: 12 DC 16 06 BB 70 88 61 90 00 [04:19:14]wFMCommunicate OK [04:19:14]SAM_PROTO_SignData done [04:19:14]FM_MakeSignedData done [04:19:14]CreateOFDProtocolMessage [04:19:14]wFMCommunicate request_size=4 [04:19:14]MH_SAM_APDU [04:19:14]CAPDU: 80 11 00 00 [04:19:14]Write to MH i2c: E2 08 00 96 32 80 11 00 00 00 00 00 00 42 [04:19:14]Write i2c OK [04:19:14]MH_I2C_Read... [04:19:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:19:14]Read from MH i2c: E2 [04:19:14]MH_I2C_Read... [04:19:14]Read from MH i2c: E2 17 00 [04:19:14]MH_I2C_Read... [04:19:14]Read from MH i2c: E2 17 00 96 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 97 [04:19:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [04:19:14]wFMCommunicate OK [04:19:14]CreateOFDProtocolMessage done [04:19:14]OFDSenderStorePacket 156455 [04:19:14]StoreOFDPacket docnum=156455 [04:19:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 16 87 04 01 BD 74 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 45 BF 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 27 63 02 00 35 04 06 00 A2 98 34 C1 9F FD 12 DC 16 06 BB 70 88 61 [04:19:14]CheckFolder [04:19:14]dirname=/storage/ofd_packets [04:19:14]CheckFolder done [04:19:14]ProducePacketName [04:19:14]name=ofd_packets/00156455 [04:19:14]NVStorageSaveData ofd_packets/00156455 [04:19:14]File name is /storage/ofd_packets/00156455 [04:19:14]Write 298 bytes [04:19:14]NVStorageSaveData done [04:19:14]OFDSenderStorePacket done [04:19:14]KKMCreateOFDPacket done [04:19:14]NVStorageSaveData kkm_last_timestamp [04:19:14]File name is /storage/kkm_last_timestamp [04:19:14]Write 4 bytes [04:19:14]NVStorageSaveData done [04:19:14]ExternCall_PrintAddStr [04:19:14]wPrintStart [04:19:14]Write to MH i2c: 01 00 00 97 32 C9 [04:19:14]Write i2c OK [04:19:14]MH_I2C_Read... [04:19:14]Read from MH i2c: 01 [04:19:14]MH_I2C_Read... [04:19:14]Read from MH i2c: 01 07 00 [04:19:14]MH_I2C_Read... [04:19:14]Read from MH i2c: 01 07 00 97 32 00 00 00 00 00 FF 0F DE [04:19:14]RasterBufferAndPrint [04:19:14]line Счет N : (1)99268 [04:19:14]line ИНН: 02508201610067 [04:19:14]line Контрольно-Кассовый Чек [04:19:14]line ПРОДАЖА [04:19:14]line ТРК (МРК, ГНК) : 32 [04:19:14]line Товар: 2710194210 [04:19:14]line ДТ-К-5 [04:19:14]line 13.130 * 76.20 [04:19:14]line = 1000.51 [04:19:14]line НДС 12% НСП 1% [04:19:14]line > о реализуемом товаре [04:19:14]line ОКРУГЛЕНИЕ: -0.51 [04:19:14]line ИТОГО: 1000.00 [04:19:14]line Внесено: 1000.00 [04:19:14]line СДАЧА: 0.00 [04:19:14]line НСП 1% : 8.85 [04:19:14]line НДС 12% : 106.25 [04:19:14]line Наличными: 1000.00 [04:19:14]line Безнал.: 0.00 [04:19:14]line Место: АЗС № 143 "Партнер Нефть" [04:19:14]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [04:19:14]line СНО: Общий режим [04:19:14]line Чек 6 27.10.2024 04:19 [04:19:14]line Смена: 537 ФФД: 1.0 [04:19:14]line ЗНМ: 0300000096 [04:19:14]line РНМ: 0000000000091693 [04:19:14]line Версия ККМ: 001 [04:19:14]line ФМ: 0000000000871792 [04:19:14]line ФД: 156455 [04:19:14]line ФПД: 178774603833341 [04:19:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T041917&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156455&fm=178774603833341&tin=02508201610067®Number=0000000000091693&sum=100000 [04:19:15]OFD Sender: Processing packet 156455 [packets to send 31, broken 30] [04:19:15]ProducePacketName [04:19:15]name=ofd_packets/00156455 [04:19:15]OFD Sender: To server: pG, [04:19:15]CommunicateWithHost lk.salyk.kg:30040 [04:19:15]ConnectInit lk.salyk.kg [04:19:15]written 0, free lines is 4095 [04:19:15]Connected sock=11 [04:19:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 16 87 04 01 BD 74 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 45 BF 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 27 63 02 00 35 04 06 00 A2 98 34 C1 9F FD 12 DC 16 06 BB 70 88 61 [04:19:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 FD 22 47 00 3A 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 31 37 39 32 10 04 04 00 27 63 02 00 F4 03 04 00 B5 64 1D 67 B6 04 01 00 00 58 EC 8C 91 6C D6 28 D2 [04:19:15]CommunicateWithHost err = 0 [04:19:15]CheckOFDResponse [04:19:15]1017 (14) - 77093643461234 [04:19:15]1041 (16) - 0000000000871792 [04:19:15]1040 (4) - 156455 [04:19:15]1012 (4) - 26.10.2024 21:52 [04:19:15]1206 (1) - 0 [04:19:15]OFD Sender: Remove packet 156455 [04:19:15]ProducePacketName [04:19:15]name=ofd_packets/00156455 [04:19:15]NVStorageDeleteData [04:19:15]Write to MH i2c: 01 00 00 C2 32 F4 [04:19:15]Write i2c OK [04:19:15]MH_I2C_Read... [04:19:15]Read from MH i2c: 01 [04:19:15]MH_I2C_Read... [04:19:15]Read from MH i2c: 01 07 00 [04:19:15]MH_I2C_Read... [04:19:15]Read from MH i2c: 01 07 00 C2 32 00 00 00 00 00 DD 0C E4 [04:19:15]RasterBufferAndPrint [04:19:15]line [04:19:15]line [04:19:15]line [04:19:15]line [04:19:15]line [04:19:15]written 0, free lines is 3299 [04:19:15]process_action close_receipt done [04:19:15]requested_data is exist [04:19:15]produce_requested_data [04:19:15]requested_item fm.sn is exist - process it [04:19:15]wFMCommunicate request_size=4 [04:19:15]MH_SAM_APDU [04:19:15]CAPDU: 80 11 00 00 [04:19:15]Write to MH i2c: E2 08 00 C9 32 80 11 00 00 00 00 00 00 75 [04:19:15]Write i2c OK [04:19:15]MH_I2C_Read... [04:19:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:19:15]Read from MH i2c: E2 [04:19:15]MH_I2C_Read... [04:19:15]Read from MH i2c: E2 17 00 [04:19:15]MH_I2C_Read... [04:19:15]Read from MH i2c: E2 17 00 C9 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 CA [04:19:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [04:19:15]wFMCommunicate OK [04:19:15]requested_item fd.num is exist - process it [04:19:15]SAM_PROTO_GetFieldsCounters [04:19:15]wFMCommunicate request_size=4 [04:19:15]MH_SAM_APDU [04:19:15]CAPDU: 80 13 00 00 [04:19:15]Write to MH i2c: E2 08 00 CA 32 80 13 00 00 00 00 00 00 78 [04:19:15]Write i2c OK [04:19:15]MH_I2C_Read... [04:19:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:19:15]Read from MH i2c: E2 [04:19:15]MH_I2C_Read... [04:19:15]Read from MH i2c: E2 62 00 [04:19:15]MH_I2C_Read... [04:19:15]Read from MH i2c: E2 62 00 CA 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 27 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 57 [04:19:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 27 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:19:15]wFMCommunicate OK [04:19:15]SAM_PROTO_GetFieldsCounters done [04:19:15]requested_item shift.num is exist - process it [04:19:15]requested_item shift.opened is exist - process it [04:19:15]req_shift_opened [04:19:15]FM_GetShiftState [04:19:15]SAM_PROTO_GetShiftState [04:19:15]wFMCommunicate request_size=4 [04:19:15]MH_SAM_APDU [04:19:15]CAPDU: 80 13 01 00 [04:19:15]Write to MH i2c: E2 08 00 CB 32 80 13 01 00 00 00 00 00 7A [04:19:15]Write i2c OK [04:19:15]MH_I2C_Read... [04:19:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:19:15]Read from MH i2c: E2 [04:19:15]MH_I2C_Read... [04:19:15]Read from MH i2c: E2 0E 00 [04:19:15]MH_I2C_Read... [04:19:15]Read from MH i2c: E2 0E 00 CB 32 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 47 [04:19:15]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [04:19:15]wFMCommunicate OK [04:19:15]SAM_PROTO_GetShiftState done [04:19:15]FM_GetShiftState done [04:19:15]req_shift_opened done [04:19:15]requested_item shift.open_date is exist - process it [04:19:15]req_shift_open_date [04:19:15]req_shift_open_date done [04:19:15]produce_requested_data done [04:19:15]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156455,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [04:19:15]process_action_free close_receipt [04:19:15]json_value_free [04:19:15]json_value_free done [04:19:15]process_json_proto returns [04:19:15]Send response to host [04:19:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156455,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [04:19:15]free response buf [04:19:15]execute_script done [04:19:15]execute_script returns [04:19:15]free content buf [04:19:15]Sock 8.Close socket [04:19:15]Sock 8.Thread stoped [04:19:16]OFD Sender: No OFD packet to send [04:19:21]OFD Sender: No OFD packet to send [04:19:26]OFD Sender: No OFD packet to send [04:19:31]OFD Sender: No OFD packet to send [04:19:36]OFD Sender: No OFD packet to send [04:19:41]OFD Sender: No OFD packet to send [04:19:46]OFD Sender: No OFD packet to send [04:19:51]OFD Sender: No OFD packet to send [04:19:56]OFD Sender: No OFD packet to send [04:20:01]OFD Sender: No OFD packet to send [04:20:06]OFD Sender: No OFD packet to send [04:20:11]OFD Sender: No OFD packet to send [04:20:16]OFD Sender: No OFD packet to send [04:20:21]OFD Sender: No OFD packet to send [04:20:26]OFD Sender: No OFD packet to send [04:20:31]OFD Sender: No OFD packet to send [04:20:36]OFD Sender: No OFD packet to send [04:20:41]OFD Sender: No OFD packet to send [04:20:46]OFD Sender: No OFD packet to send [04:20:51]OFD Sender: No OFD packet to send [04:20:56]OFD Sender: No OFD packet to send [04:21:01]OFD Sender: No OFD packet to send [04:21:06]OFD Sender: No OFD packet to send [04:21:11]OFD Sender: No OFD packet to send [04:21:16]OFD Sender: No OFD packet to send [04:21:21]OFD Sender: No OFD packet to send [04:21:26]OFD Sender: No OFD packet to send [04:21:31]OFD Sender: No OFD packet to send [04:21:36]OFD Sender: No OFD packet to send [04:21:41]OFD Sender: No OFD packet to send [04:21:46]OFD Sender: No OFD packet to send [04:21:51]OFD Sender: No OFD packet to send [04:21:56]OFD Sender: No OFD packet to send [04:22:01]OFD Sender: No OFD packet to send [04:22:06]OFD Sender: No OFD packet to send [04:22:11]OFD Sender: No OFD packet to send [04:22:16]OFD Sender: No OFD packet to send [04:22:21]OFD Sender: No OFD packet to send [04:22:26]OFD Sender: No OFD packet to send [04:22:31]OFD Sender: No OFD packet to send [04:22:36]OFD Sender: No OFD packet to send [04:22:41]OFD Sender: No OFD packet to send [04:22:46]OFD Sender: No OFD packet to send [04:22:51]OFD Sender: No OFD packet to send [04:22:56]OFD Sender: No OFD packet to send [04:23:01]OFD Sender: No OFD packet to send [04:23:06]OFD Sender: No OFD packet to send [04:23:11]OFD Sender: No OFD packet to send [04:23:16]OFD Sender: No OFD packet to send [04:23:21]OFD Sender: No OFD packet to send [04:23:26]OFD Sender: No OFD packet to send [04:23:31]OFD Sender: No OFD packet to send [04:23:36]OFD Sender: No OFD packet to send [04:23:41]OFD Sender: No OFD packet to send [04:23:46]OFD Sender: No OFD packet to send [04:23:51]OFD Sender: No OFD packet to send [04:23:56]OFD Sender: No OFD packet to send [04:24:01]OFD Sender: No OFD packet to send [04:24:06]OFD Sender: No OFD packet to send [04:24:11]OFD Sender: No OFD packet to send [04:24:16]OFD Sender: No OFD packet to send [04:24:21]OFD Sender: No OFD packet to send [04:24:26]OFD Sender: No OFD packet to send [04:24:31]OFD Sender: No OFD packet to send [04:24:36]OFD Sender: No OFD packet to send [04:24:41]OFD Sender: No OFD packet to send [04:24:46]OFD Sender: No OFD packet to send [04:24:51]OFD Sender: No OFD packet to send [04:24:56]OFD Sender: No OFD packet to send [04:25:01]OFD Sender: No OFD packet to send [04:25:06]OFD Sender: No OFD packet to send [04:25:11]OFD Sender: No OFD packet to send [04:25:16]OFD Sender: No OFD packet to send [04:25:21]OFD Sender: No OFD packet to send [04:25:26]OFD Sender: No OFD packet to send [04:25:31]OFD Sender: No OFD packet to send [04:25:36]OFD Sender: No OFD packet to send [04:25:41]OFD Sender: No OFD packet to send [04:25:46]OFD Sender: No OFD packet to send [04:25:51]OFD Sender: No OFD packet to send [04:25:56]OFD Sender: No OFD packet to send [04:26:01]OFD Sender: No OFD packet to send [04:26:06]OFD Sender: No OFD packet to send [04:26:11]OFD Sender: No OFD packet to send [04:26:16]OFD Sender: No OFD packet to send [04:26:21]OFD Sender: No OFD packet to send [04:26:26]OFD Sender: No OFD packet to send [04:26:31]OFD Sender: No OFD packet to send [04:26:36]OFD Sender: No OFD packet to send [04:26:41]OFD Sender: No OFD packet to send [04:26:46]OFD Sender: No OFD packet to send [04:26:51]OFD Sender: No OFD packet to send [04:26:56]OFD Sender: No OFD packet to send [04:27:01]OFD Sender: No OFD packet to send [04:27:06]OFD Sender: No OFD packet to send [04:27:11]OFD Sender: No OFD packet to send [04:27:16]OFD Sender: No OFD packet to send [04:27:21]OFD Sender: No OFD packet to send [04:27:26]OFD Sender: No OFD packet to send [04:27:31]OFD Sender: No OFD packet to send [04:27:36]OFD Sender: No OFD packet to send [04:27:41]OFD Sender: No OFD packet to send [04:27:46]OFD Sender: No OFD packet to send [04:27:51]OFD Sender: No OFD packet to send [04:27:56]OFD Sender: No OFD packet to send [04:28:01]OFD Sender: No OFD packet to send [04:28:06]OFD Sender: No OFD packet to send [04:28:11]OFD Sender: No OFD packet to send [04:28:16]OFD Sender: No OFD packet to send [04:28:21]OFD Sender: No OFD packet to send [04:28:26]OFD Sender: No OFD packet to send [04:28:31]OFD Sender: No OFD packet to send [04:28:36]OFD Sender: No OFD packet to send [04:28:41]OFD Sender: No OFD packet to send [04:28:46]OFD Sender: No OFD packet to send [04:28:51]OFD Sender: No OFD packet to send [04:28:56]OFD Sender: No OFD packet to send [04:29:01]OFD Sender: No OFD packet to send [04:29:06]OFD Sender: No OFD packet to send [04:29:11]OFD Sender: No OFD packet to send [04:29:16]OFD Sender: No OFD packet to send [04:29:21]OFD Sender: No OFD packet to send [04:29:26]OFD Sender: No OFD packet to send [04:29:31]OFD Sender: No OFD packet to send [04:29:36]OFD Sender: No OFD packet to send [04:29:41]OFD Sender: No OFD packet to send [04:29:46]OFD Sender: No OFD packet to send [04:29:51]OFD Sender: No OFD packet to send [04:29:56]OFD Sender: No OFD packet to send [04:30:01]OFD Sender: No OFD packet to send [04:30:06]OFD Sender: No OFD packet to send [04:30:11]OFD Sender: No OFD packet to send [04:30:16]OFD Sender: No OFD packet to send [04:30:21]OFD Sender: No OFD packet to send [04:30:26]OFD Sender: No OFD packet to send [04:30:31]OFD Sender: No OFD packet to send [04:30:36]OFD Sender: No OFD packet to send [04:30:41]OFD Sender: No OFD packet to send [04:30:46]OFD Sender: No OFD packet to send [04:30:51]OFD Sender: No OFD packet to send [04:30:56]OFD Sender: No OFD packet to send [04:31:01]OFD Sender: No OFD packet to send [04:31:06]OFD Sender: No OFD packet to send [04:31:11]OFD Sender: No OFD packet to send [04:31:16]OFD Sender: No OFD packet to send [04:31:21]OFD Sender: No OFD packet to send [04:31:26]OFD Sender: No OFD packet to send [04:31:31]OFD Sender: No OFD packet to send [04:31:36]OFD Sender: No OFD packet to send [04:31:41]OFD Sender: No OFD packet to send [04:31:46]OFD Sender: No OFD packet to send [04:31:51]OFD Sender: No OFD packet to send [04:31:56]OFD Sender: No OFD packet to send [04:32:01]OFD Sender: No OFD packet to send [04:32:06]OFD Sender: No OFD packet to send [04:32:11]OFD Sender: No OFD packet to send [04:32:16]OFD Sender: No OFD packet to send [04:32:21]OFD Sender: No OFD packet to send [04:32:26]OFD Sender: No OFD packet to send [04:32:31]OFD Sender: No OFD packet to send [04:32:36]OFD Sender: No OFD packet to send [04:32:41]OFD Sender: No OFD packet to send [04:32:46]OFD Sender: No OFD packet to send [04:32:51]OFD Sender: No OFD packet to send [04:32:56]OFD Sender: No OFD packet to send [04:33:01]OFD Sender: No OFD packet to send [04:33:06]OFD Sender: No OFD packet to send [04:33:11]OFD Sender: No OFD packet to send [04:33:16]OFD Sender: No OFD packet to send [04:33:21]OFD Sender: No OFD packet to send [04:33:26]OFD Sender: No OFD packet to send [04:33:31]OFD Sender: No OFD packet to send [04:33:36]OFD Sender: No OFD packet to send [04:33:41]OFD Sender: No OFD packet to send [04:33:46]OFD Sender: No OFD packet to send [04:33:51]OFD Sender: No OFD packet to send [04:33:56]OFD Sender: No OFD packet to send [04:34:01]OFD Sender: No OFD packet to send [04:34:06]OFD Sender: No OFD packet to send [04:34:11]OFD Sender: No OFD packet to send [04:34:16]OFD Sender: No OFD packet to send [04:34:21]OFD Sender: No OFD packet to send [04:34:26]OFD Sender: No OFD packet to send [04:34:31]OFD Sender: No OFD packet to send [04:34:36]OFD Sender: No OFD packet to send [04:34:41]OFD Sender: No OFD packet to send [04:34:46]OFD Sender: No OFD packet to send [04:34:51]OFD Sender: No OFD packet to send [04:34:56]OFD Sender: No OFD packet to send [04:35:01]OFD Sender: No OFD packet to send [04:35:06]OFD Sender: No OFD packet to send [04:35:11]OFD Sender: No OFD packet to send [04:35:16]OFD Sender: No OFD packet to send [04:35:21]OFD Sender: No OFD packet to send [04:35:26]OFD Sender: No OFD packet to send [04:35:31]OFD Sender: No OFD packet to send [04:35:36]OFD Sender: No OFD packet to send [04:35:41]OFD Sender: No OFD packet to send [04:35:46]OFD Sender: No OFD packet to send [04:35:51]OFD Sender: No OFD packet to send [04:35:56]OFD Sender: No OFD packet to send [04:36:01]OFD Sender: No OFD packet to send [04:36:06]OFD Sender: No OFD packet to send [04:36:11]OFD Sender: No OFD packet to send [04:36:16]OFD Sender: No OFD packet to send [04:36:21]OFD Sender: No OFD packet to send [04:36:26]OFD Sender: No OFD packet to send [04:36:31]OFD Sender: No OFD packet to send [04:36:36]OFD Sender: No OFD packet to send [04:36:41]OFD Sender: No OFD packet to send [04:36:46]OFD Sender: No OFD packet to send [04:36:51]OFD Sender: No OFD packet to send [04:36:56]OFD Sender: No OFD packet to send [04:37:01]OFD Sender: No OFD packet to send [04:37:06]OFD Sender: No OFD packet to send [04:37:11]OFD Sender: No OFD packet to send [04:37:16]OFD Sender: No OFD packet to send [04:37:21]OFD Sender: No OFD packet to send [04:37:26]OFD Sender: No OFD packet to send [04:37:31]OFD Sender: No OFD packet to send [04:37:36]OFD Sender: No OFD packet to send [04:37:41]OFD Sender: No OFD packet to send [04:37:47]OFD Sender: No OFD packet to send [04:37:52]OFD Sender: No OFD packet to send [04:37:57]OFD Sender: No OFD packet to send [04:38:02]OFD Sender: No OFD packet to send [04:38:07]OFD Sender: No OFD packet to send [04:38:12]OFD Sender: No OFD packet to send [04:38:17]OFD Sender: No OFD packet to send [04:38:22]OFD Sender: No OFD packet to send [04:38:27]OFD Sender: No OFD packet to send [04:38:32]OFD Sender: No OFD packet to send [04:38:37]OFD Sender: No OFD packet to send [04:38:42]OFD Sender: No OFD packet to send [04:38:47]OFD Sender: No OFD packet to send [04:38:57]OFD Sender: No OFD packet to send [04:39:02]OFD Sender: No OFD packet to send [04:39:07]OFD Sender: No OFD packet to send [04:39:12]OFD Sender: No OFD packet to send [04:39:17]OFD Sender: No OFD packet to send [04:39:22]OFD Sender: No OFD packet to send [04:39:27]OFD Sender: No OFD packet to send [04:39:32]OFD Sender: No OFD packet to send [04:39:37]OFD Sender: No OFD packet to send [04:39:42]OFD Sender: No OFD packet to send [04:39:47]OFD Sender: No OFD packet to send [04:39:52]OFD Sender: No OFD packet to send [04:39:57]OFD Sender: No OFD packet to send [04:40:02]OFD Sender: No OFD packet to send [04:40:07]OFD Sender: No OFD packet to send [04:40:12]OFD Sender: No OFD packet to send [04:40:17]OFD Sender: No OFD packet to send [04:40:22]OFD Sender: No OFD packet to send [04:40:27]OFD Sender: No OFD packet to send [04:40:32]OFD Sender: No OFD packet to send [04:40:37]OFD Sender: No OFD packet to send [04:40:42]OFD Sender: No OFD packet to send [04:40:47]OFD Sender: No OFD packet to send [04:40:52]OFD Sender: No OFD packet to send [04:40:57]OFD Sender: No OFD packet to send [04:41:02]OFD Sender: No OFD packet to send [04:41:07]OFD Sender: No OFD packet to send [04:41:10]ConnectInit Can't connect to host [04:41:12]OFD Sender: No OFD packet to send [04:41:17]OFD Sender: No OFD packet to send [04:41:22]OFD Sender: No OFD packet to send [04:41:27]OFD Sender: No OFD packet to send [04:41:32]OFD Sender: No OFD packet to send [04:41:37]OFD Sender: No OFD packet to send [04:41:42]OFD Sender: No OFD packet to send [04:41:47]OFD Sender: No OFD packet to send [04:41:52]OFD Sender: No OFD packet to send [04:41:57]OFD Sender: No OFD packet to send [04:42:02]OFD Sender: No OFD packet to send [04:42:07]OFD Sender: No OFD packet to send [04:42:12]OFD Sender: No OFD packet to send [04:42:17]OFD Sender: No OFD packet to send [04:42:22]OFD Sender: No OFD packet to send [04:42:27]OFD Sender: No OFD packet to send [04:42:32]OFD Sender: No OFD packet to send [04:42:37]OFD Sender: No OFD packet to send [04:42:42]OFD Sender: No OFD packet to send [04:42:47]OFD Sender: No OFD packet to send [04:42:52]OFD Sender: No OFD packet to send [04:42:57]OFD Sender: No OFD packet to send [04:43:02]OFD Sender: No OFD packet to send [04:43:07]OFD Sender: No OFD packet to send [04:43:12]OFD Sender: No OFD packet to send [04:43:17]OFD Sender: No OFD packet to send [04:43:22]OFD Sender: No OFD packet to send [04:43:27]OFD Sender: No OFD packet to send [04:43:32]OFD Sender: No OFD packet to send [04:43:37]OFD Sender: No OFD packet to send [04:43:42]OFD Sender: No OFD packet to send [04:43:47]OFD Sender: No OFD packet to send [04:43:52]OFD Sender: No OFD packet to send [04:43:57]OFD Sender: No OFD packet to send [04:44:02]OFD Sender: No OFD packet to send [04:44:07]OFD Sender: No OFD packet to send [04:44:12]OFD Sender: No OFD packet to send [04:44:17]OFD Sender: No OFD packet to send [04:44:22]OFD Sender: No OFD packet to send [04:44:27]OFD Sender: No OFD packet to send [04:44:32]OFD Sender: No OFD packet to send [04:44:37]OFD Sender: No OFD packet to send [04:44:42]OFD Sender: No OFD packet to send [04:44:47]OFD Sender: No OFD packet to send [04:44:52]OFD Sender: No OFD packet to send [04:44:57]OFD Sender: No OFD packet to send [04:45:02]OFD Sender: No OFD packet to send [04:45:07]OFD Sender: No OFD packet to send [04:45:12]OFD Sender: No OFD packet to send [04:45:17]OFD Sender: No OFD packet to send [04:45:22]OFD Sender: No OFD packet to send [04:45:27]OFD Sender: No OFD packet to send [04:45:32]OFD Sender: No OFD packet to send [04:45:37]OFD Sender: No OFD packet to send [04:45:42]OFD Sender: No OFD packet to send [04:45:47]OFD Sender: No OFD packet to send [04:45:52]OFD Sender: No OFD packet to send [04:45:57]OFD Sender: No OFD packet to send [04:46:02]OFD Sender: No OFD packet to send [04:46:07]OFD Sender: No OFD packet to send [04:46:12]OFD Sender: No OFD packet to send [04:46:17]OFD Sender: No OFD packet to send [04:46:22]OFD Sender: No OFD packet to send [04:46:27]OFD Sender: No OFD packet to send [04:46:32]OFD Sender: No OFD packet to send [04:46:37]OFD Sender: No OFD packet to send [04:46:42]OFD Sender: No OFD packet to send [04:46:47]OFD Sender: No OFD packet to send [04:46:52]OFD Sender: No OFD packet to send [04:46:57]OFD Sender: No OFD packet to send [04:47:02]OFD Sender: No OFD packet to send [04:47:07]OFD Sender: No OFD packet to send [04:47:12]OFD Sender: No OFD packet to send [04:47:17]OFD Sender: No OFD packet to send [04:47:22]OFD Sender: No OFD packet to send [04:47:27]OFD Sender: No OFD packet to send [04:47:32]OFD Sender: No OFD packet to send [04:47:37]OFD Sender: No OFD packet to send [04:47:42]OFD Sender: No OFD packet to send [04:47:47]OFD Sender: No OFD packet to send [04:47:52]OFD Sender: No OFD packet to send [04:47:57]OFD Sender: No OFD packet to send [04:48:02]OFD Sender: No OFD packet to send [04:48:07]OFD Sender: No OFD packet to send [04:48:12]OFD Sender: No OFD packet to send [04:48:17]OFD Sender: No OFD packet to send [04:48:22]OFD Sender: No OFD packet to send [04:48:27]OFD Sender: No OFD packet to send [04:48:32]OFD Sender: No OFD packet to send [04:48:37]OFD Sender: No OFD packet to send [04:48:42]OFD Sender: No OFD packet to send [04:48:47]OFD Sender: No OFD packet to send [04:48:52]OFD Sender: No OFD packet to send [04:48:57]OFD Sender: No OFD packet to send [04:49:02]OFD Sender: No OFD packet to send [04:49:07]OFD Sender: No OFD packet to send [04:49:12]OFD Sender: No OFD packet to send [04:49:17]OFD Sender: No OFD packet to send [04:49:22]OFD Sender: No OFD packet to send [04:49:27]OFD Sender: No OFD packet to send [04:49:32]OFD Sender: No OFD packet to send [04:49:37]OFD Sender: No OFD packet to send [04:49:42]OFD Sender: No OFD packet to send [04:49:47]OFD Sender: No OFD packet to send [04:49:52]OFD Sender: No OFD packet to send [04:49:57]OFD Sender: No OFD packet to send [04:50:02]OFD Sender: No OFD packet to send [04:50:07]OFD Sender: No OFD packet to send [04:50:12]OFD Sender: No OFD packet to send [04:50:17]OFD Sender: No OFD packet to send [04:50:22]OFD Sender: No OFD packet to send [04:50:27]OFD Sender: No OFD packet to send [04:50:32]OFD Sender: No OFD packet to send [04:50:37]OFD Sender: No OFD packet to send [04:50:42]OFD Sender: No OFD packet to send [04:50:47]OFD Sender: No OFD packet to send [04:50:52]OFD Sender: No OFD packet to send [04:50:57]OFD Sender: No OFD packet to send [04:51:02]OFD Sender: No OFD packet to send [04:51:07]OFD Sender: No OFD packet to send [04:51:12]OFD Sender: No OFD packet to send [04:51:17]OFD Sender: No OFD packet to send [04:51:22]OFD Sender: No OFD packet to send [04:51:27]OFD Sender: No OFD packet to send [04:51:32]OFD Sender: No OFD packet to send [04:51:37]OFD Sender: No OFD packet to send [04:51:42]OFD Sender: No OFD packet to send [04:51:47]OFD Sender: No OFD packet to send [04:51:52]OFD Sender: No OFD packet to send [04:51:57]OFD Sender: No OFD packet to send [04:52:02]OFD Sender: No OFD packet to send [04:52:07]OFD Sender: No OFD packet to send [04:52:12]OFD Sender: No OFD packet to send [04:52:17]OFD Sender: No OFD packet to send [04:52:22]OFD Sender: No OFD packet to send [04:52:27]OFD Sender: No OFD packet to send [04:52:32]OFD Sender: No OFD packet to send [04:52:37]OFD Sender: No OFD packet to send [04:52:42]OFD Sender: No OFD packet to send [04:52:47]OFD Sender: No OFD packet to send [04:52:52]OFD Sender: No OFD packet to send [04:52:57]OFD Sender: No OFD packet to send [04:53:02]OFD Sender: No OFD packet to send [04:53:07]OFD Sender: No OFD packet to send [04:53:12]OFD Sender: No OFD packet to send [04:53:17]OFD Sender: No OFD packet to send [04:53:22]OFD Sender: No OFD packet to send [04:53:27]OFD Sender: No OFD packet to send [04:53:32]OFD Sender: No OFD packet to send [04:53:37]OFD Sender: No OFD packet to send [04:53:42]OFD Sender: No OFD packet to send [04:53:47]OFD Sender: No OFD packet to send [04:53:52]OFD Sender: No OFD packet to send [04:53:57]OFD Sender: No OFD packet to send [04:54:02]OFD Sender: No OFD packet to send [04:54:07]OFD Sender: No OFD packet to send [04:54:12]OFD Sender: No OFD packet to send [04:54:17]OFD Sender: No OFD packet to send [04:54:22]OFD Sender: No OFD packet to send [04:54:27]OFD Sender: No OFD packet to send [04:54:32]OFD Sender: No OFD packet to send [04:54:37]OFD Sender: No OFD packet to send [04:54:42]OFD Sender: No OFD packet to send [04:54:47]OFD Sender: No OFD packet to send [04:54:52]OFD Sender: No OFD packet to send [04:54:57]OFD Sender: No OFD packet to send [04:55:02]OFD Sender: No OFD packet to send [04:55:07]OFD Sender: No OFD packet to send [04:55:12]OFD Sender: No OFD packet to send [04:55:17]OFD Sender: No OFD packet to send [04:55:22]OFD Sender: No OFD packet to send [04:55:27]OFD Sender: No OFD packet to send [04:55:32]OFD Sender: No OFD packet to send [04:55:37]OFD Sender: No OFD packet to send [04:55:42]OFD Sender: No OFD packet to send [04:55:47]OFD Sender: No OFD packet to send [04:55:52]OFD Sender: No OFD packet to send [04:55:57]OFD Sender: No OFD packet to send [04:56:02]OFD Sender: No OFD packet to send [04:56:07]OFD Sender: No OFD packet to send [04:56:12]OFD Sender: No OFD packet to send [04:56:17]OFD Sender: No OFD packet to send [04:56:22]OFD Sender: No OFD packet to send [04:56:27]OFD Sender: No OFD packet to send [04:56:32]OFD Sender: No OFD packet to send [04:56:37]OFD Sender: No OFD packet to send [04:56:42]OFD Sender: No OFD packet to send [04:56:47]OFD Sender: No OFD packet to send [04:56:52]OFD Sender: No OFD packet to send [04:56:53]accept exits with 9 [04:56:53]New connection [04:56:53]New thread 3066834276 created [04:56:53]Thread 3066977636 joined [04:56:53]Waiting for new connection... [04:56:53] Sock 9.Parse request [04:56:53]Sock 9.Check first char [04:56:53]Sock 9.First char is OK [04:56:53]request: POST /json_proto HTTP/1.0 [04:56:53]Method: POST [04:56:53]URL: /json_proto [04:56:53]Method is POST - this is cgi request [04:56:53]url: /json_proto [04:56:53]query_string will be loaded in cgi processing [04:56:53]execute_cgi json_proto POST (null) [04:56:53]execute_cgi path=json_proto method=POST [04:56:53]POST find Content-Length [04:56:53]Host: 172.17.63.3:8080 [04:56:53]Content-Length: 676 [04:56:53]Content-Type: application/json [04:56:53] [04:56:53]POST finish read [04:56:53]Found Content-Length = 676 [04:56:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99269", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:56:53]execute_script... [04:56: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)99269", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:56:53]POST & json_proto [04:56:53]process_json_proto [04:56:53]json parsed OK: [04:56:53]protocol is kg_v1.0 [04:56:53]action value=close_receipt [04:56:53]process_action close_receipt [04:56:53]cmd_close_receipt [04:56:53]MH_GetDate [04:56:53]Write to MH i2c: F0 00 00 CC 32 ED [04:56:53]Write i2c OK [04:56:53]MH_I2C_Read... [04:56:53]Read from MH i2c: F0 [04:56:53]MH_I2C_Read... [04:56:53]Read from MH i2c: F0 09 00 [04:56:53]MH_I2C_Read... [04:56:53]Read from MH i2c: F0 09 00 CC 32 00 18 C8 1D 67 50 D1 6C 64 4B [04:56:53]GetLastDocTimeStamp 1730002757 [04:56:53]current date 1730005016 [04:56:53]FM_GetShiftState [04:56:53]SAM_PROTO_GetShiftState [04:56:53]wFMCommunicate request_size=4 [04:56:53]MH_SAM_APDU [04:56:53]CAPDU: 80 13 01 00 [04:56:53]Write to MH i2c: E2 08 00 CD 32 80 13 01 00 00 00 00 00 7C [04:56:53]Write i2c OK [04:56:53]MH_I2C_Read... [04:56:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:56:53]Read from MH i2c: E2 [04:56:53]MH_I2C_Read... [04:56:53]Read from MH i2c: E2 0E 00 [04:56:53]MH_I2C_Read... [04:56:53]Read from MH i2c: E2 0E 00 CD 32 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 49 [04:56:53]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [04:56:53]wFMCommunicate OK [04:56:53]SAM_PROTO_GetShiftState done [04:56:53]FM_GetShiftState done [04:56:53]opened in 1729989044 [04:56:53]opened+sec_in_day 1730075444 [04:56:53]quantity*price = 50041 [04:56:53]sum+1 = 50042 [04:56:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 7 27.10.2024 04:56 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156456 ФПД: 145683264056436 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T045657&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156456&fm=145683264056436&tin=02508201610067®Number=0000000000091693&sum=50000 [04:56:54]StoreToDocumentArchive [04:56:54]shift 537 fd 156456 [04:56:54]save to /storage/0537/doc_00156456 [04:56:54]save last doc name /storage/0537/doc_00156456 to /storage/kkm_last_doc_name [04:56:54]save OK [04:56:54]Clear old archive folders... [04:56:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [04:56:54]tlvbuf is 0174F950 [04:56:54]SAM_PROTO_ClearQueue [04:56:54]wFMCommunicate request_size=4 [04:56:54]MH_SAM_APDU [04:56:54]CAPDU: 80 09 00 00 [04:56:54]Write to MH i2c: E2 08 00 DA 32 80 09 00 00 00 00 00 00 7E [04:56:54]Write i2c OK [04:56:54]MH_I2C_Read... [04:56:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:56:54]Read from MH i2c: E2 [04:56:54]MH_I2C_Read... [04:56:54]Read from MH i2c: E2 03 00 [04:56:54]MH_I2C_Read... [04:56:54]Read from MH i2c: E2 03 00 DA 32 00 90 00 80 [04:56:54]RAPDU: 90 00 [04:56:54]wFMCommunicate OK [04:56:54]SAM_PROTO_ClearQueue done [04:56:54]KKMCreateOFDPacket [04:56:54]OFDProtocolAddRootSTLVToBuf [04:56:54]FM_MakeSignedData [04:56:54]FM_MakeSignedData [04:56:54]SAM_PROTO_SignData [04:56:54]wFMCommunicate request_size=4 [04:56:54]MH_SAM_APDU [04:56:54]CAPDU: 80 0D 01 02 [04:56:54]Write to MH i2c: E2 08 00 DB 32 80 0D 01 02 00 00 00 00 86 [04:56:54]Write i2c OK [04:56:54]MH_I2C_Read... [04:56:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:56:54]Read from MH i2c: E2 [04:56:54]MH_I2C_Read... [04:56:54]Read from MH i2c: E2 03 00 [04:56:54]MH_I2C_Read... [04:56:54]Read from MH i2c: E2 03 00 DB 32 00 90 00 81 [04:56:54]RAPDU: 90 00 [04:56:54]wFMCommunicate OK [04:56:54]wFMCommunicate request_size=255 [04:56:54]MH_SAM_APDU [04:56: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 19 C8 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 28 63 02 00 35 04 06 00 84 [04:56:54]Write to MH i2c: E2 02 01 DC 32 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 19 C8 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 28 63 02 00 35 04 06 00 84 00 00 B2 [04:56:54]Write i2c OK [04:56:54]MH_I2C_Read... [04:56:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:56:54]Read from MH i2c: E2 [04:56:54]MH_I2C_Read... [04:56:54]Read from MH i2c: E2 03 00 [04:56:54]MH_I2C_Read... [04:56:54]Read from MH i2c: E2 03 00 DC 32 00 90 00 82 [04:56:54]RAPDU: 90 00 [04:56:54]wFMCommunicate OK [04:56:54]wFMCommunicate request_size=10 [04:56:54]MH_SAM_APDU [04:56:54]CAPDU: 80 0D 02 02 05 7F 87 34 2C 74 [04:56:54]Write to MH i2c: E2 0D 00 DD 32 80 0D 02 02 05 00 7F 87 34 2C 74 00 00 6D [04:56:54]Write i2c OK [04:56:54]MH_I2C_Read... [04:56:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:56:54]Read from MH i2c: E2 [04:56:54]MH_I2C_Read... [04:56:54]Read from MH i2c: E2 03 00 [04:56:54]MH_I2C_Read... [04:56:54]Read from MH i2c: E2 03 00 DD 32 00 90 00 83 [04:56:54]RAPDU: 90 00 [04:56:54]wFMCommunicate OK [04:56:54]wFMCommunicate request_size=4 [04:56:54]MH_SAM_APDU [04:56:54]CAPDU: 80 0D 03 02 [04:56:54]Write to MH i2c: E2 08 00 DE 32 80 0D 03 02 00 00 00 00 8B [04:56:54]Write i2c OK [04:56:54]MH_I2C_Read... [04:56:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:56:54]Read from MH i2c: E2 [04:56:54]MH_I2C_Read... [04:56:54]Read from MH i2c: E2 0B 00 [04:56:54]MH_I2C_Read... [04:56:54]Read from MH i2c: E2 0B 00 DE 32 00 F8 43 F6 7B 34 C3 2B 88 90 00 E2 [04:56:54]RAPDU: F8 43 F6 7B 34 C3 2B 88 90 00 [04:56:54]wFMCommunicate OK [04:56:54]SAM_PROTO_SignData done [04:56:54]FM_MakeSignedData done [04:56:54]CreateOFDProtocolMessage [04:56:54]wFMCommunicate request_size=4 [04:56:54]MH_SAM_APDU [04:56:54]CAPDU: 80 11 00 00 [04:56:54]Write to MH i2c: E2 08 00 DF 32 80 11 00 00 00 00 00 00 8B [04:56:54]Write i2c OK [04:56:54]MH_I2C_Read... [04:56:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:56:54]Read from MH i2c: E2 [04:56:54]MH_I2C_Read... [04:56:54]Read from MH i2c: E2 17 00 [04:56:54]MH_I2C_Read... [04:56:54]Read from MH i2c: E2 17 00 DF 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 E0 [04:56:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [04:56:54]wFMCommunicate OK [04:56:54]CreateOFDProtocolMessage done [04:56:54]OFDSenderStorePacket 156456 [04:56:54]StoreOFDPacket docnum=156456 [04:56:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 E1 13 07 01 89 EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 19 C8 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 28 63 02 00 35 04 06 00 84 7F 87 34 2C 74 F8 43 F6 7B 34 C3 2B 88 [04:56:54]CheckFolder [04:56:54]dirname=/storage/ofd_packets [04:56:54]CheckFolder done [04:56:54]ProducePacketName [04:56:54]name=ofd_packets/00156456 [04:56:54]NVStorageSaveData ofd_packets/00156456 [04:56:54]File name is /storage/ofd_packets/00156456 [04:56:54]Write 301 bytes [04:56:54]NVStorageSaveData done [04:56:54]OFDSenderStorePacket done [04:56:54]KKMCreateOFDPacket done [04:56:54]NVStorageSaveData kkm_last_timestamp [04:56:54]File name is /storage/kkm_last_timestamp [04:56:54]Write 4 bytes [04:56:54]NVStorageSaveData done [04:56:54]ExternCall_PrintAddStr [04:56:54]wPrintStart [04:56:54]Write to MH i2c: 01 00 00 E0 32 12 [04:56:54]Write i2c OK [04:56:54]MH_I2C_Read... [04:56:54]Read from MH i2c: 01 [04:56:54]MH_I2C_Read... [04:56:54]Read from MH i2c: 01 07 00 [04:56:54]MH_I2C_Read... [04:56:54]Read from MH i2c: 01 07 00 E0 32 00 00 00 00 00 FF 0F 27 [04:56:54]RasterBufferAndPrint [04:56:54]line Счет N : (1)99269 [04:56:54]line ИНН: 02508201610067 [04:56:54]line Контрольно-Кассовый Чек [04:56:54]line ПРОДАЖА [04:56:54]line ТРК (МРК, ГНК) : 31 [04:56:54]line Товар: 2710124130 [04:56:54]line Аи-92-К-5 [04:56:54]line 7.480 * 66.90 [04:56:54]line = 500.41 [04:56:54]line НДС 12% НСП 1% [04:56:54]line > о реализуемом товаре [04:56:54]line ОКРУГЛЕНИЕ: -0.41 [04:56:54]line ИТОГО: 500.00 [04:56:54]line Внесено: 500.00 [04:56:54]line СДАЧА: 0.00 [04:56:54]line НСП 1% : 4.43 [04:56:54]line НДС 12% : 53.14 [04:56:54]line Наличными: 500.00 [04:56:54]line Безнал.: 0.00 [04:56:54]line Место: АЗС № 143 "Партнер Нефть" [04:56:54]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [04:56:54]line СНО: Общий режим [04:56:54]line Чек 7 27.10.2024 04:56 [04:56:54]line Смена: 537 ФФД: 1.0 [04:56:54]line ЗНМ: 0300000096 [04:56:54]line РНМ: 0000000000091693 [04:56:54]line Версия ККМ: 001 [04:56:54]line ФМ: 0000000000871792 [04:56:54]line ФД: 156456 [04:56:54]line ФПД: 145683264056436 [04:56:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T045657&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156456&fm=145683264056436&tin=02508201610067®Number=0000000000091693&sum=50000 [04:56:55]OFD Sender: Processing packet 156456 [packets to send 31, broken 30] [04:56:55]ProducePacketName [04:56:55]name=ofd_packets/00156456 [04:56:55]OFD Sender: To server: pG, [04:56:55]CommunicateWithHost lk.salyk.kg:30040 [04:56:55]ConnectInit lk.salyk.kg [04:56:55]written 0, free lines is 4095 [04:56:55]Connected sock=10 [04:56:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 E1 13 07 01 89 EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 19 C8 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 28 63 02 00 35 04 06 00 84 7F 87 34 2C 74 F8 43 F6 7B 34 C3 2B 88 [04:56:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 44 B3 47 00 02 4D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 28 63 02 00 F4 03 04 00 89 6D 1D 67 B6 04 01 00 00 24 9D 10 6C 90 52 E4 3D [04:56:55]CommunicateWithHost err = 0 [04:56:55]CheckOFDResponse [04:56:55]1017 (14) - 77093643461234 [04:56:55]1041 (16) - 0000000000871792 [04:56:55]1040 (4) - 156456 [04:56:55]1012 (4) - 26.10.2024 22:30 [04:56:55]1206 (1) - 0 [04:56:55]OFD Sender: Remove packet 156456 [04:56:55]ProducePacketName [04:56:55]name=ofd_packets/00156456 [04:56:55]NVStorageDeleteData [04:56:55]Write to MH i2c: 01 00 00 0B 33 3E [04:56:55]Write i2c OK [04:56:55]MH_I2C_Read... [04:56:55]Read from MH i2c: 01 [04:56:55]MH_I2C_Read... [04:56:55]Read from MH i2c: 01 07 00 [04:56:55]MH_I2C_Read... [04:56:55]Read from MH i2c: 01 07 00 0B 33 00 00 00 00 00 D4 0C 25 [04:56:55]RasterBufferAndPrint [04:56:55]line [04:56:55]line [04:56:55]line [04:56:55]line [04:56:55]line [04:56:55]written 0, free lines is 3292 [04:56:55]process_action close_receipt done [04:56:55]requested_data is exist [04:56:55]produce_requested_data [04:56:55]requested_item fm.sn is exist - process it [04:56:55]wFMCommunicate request_size=4 [04:56:55]MH_SAM_APDU [04:56:55]CAPDU: 80 11 00 00 [04:56:55]Write to MH i2c: E2 08 00 12 33 80 11 00 00 00 00 00 00 BF [04:56:55]Write i2c OK [04:56:55]MH_I2C_Read... [04:56:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:56:55]Read from MH i2c: E2 [04:56:55]MH_I2C_Read... [04:56:55]Read from MH i2c: E2 17 00 [04:56:55]MH_I2C_Read... [04:56:55]Read from MH i2c: E2 17 00 12 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 14 [04:56:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [04:56:55]wFMCommunicate OK [04:56:55]requested_item fd.num is exist - process it [04:56:55]SAM_PROTO_GetFieldsCounters [04:56:55]wFMCommunicate request_size=4 [04:56:55]MH_SAM_APDU [04:56:55]CAPDU: 80 13 00 00 [04:56:55]Write to MH i2c: E2 08 00 13 33 80 13 00 00 00 00 00 00 C2 [04:56:55]Write i2c OK [04:56:55]MH_I2C_Read... [04:56:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:56:55]Read from MH i2c: E2 [04:56:55]MH_I2C_Read... [04:56:55]Read from MH i2c: E2 62 00 [04:56:55]MH_I2C_Read... [04:56:55]Read from MH i2c: E2 62 00 13 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 28 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 A5 [04:56:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 28 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:56:55]wFMCommunicate OK [04:56:55]SAM_PROTO_GetFieldsCounters done [04:56:55]requested_item shift.num is exist - process it [04:56:55]requested_item shift.opened is exist - process it [04:56:55]req_shift_opened [04:56:55]FM_GetShiftState [04:56:55]SAM_PROTO_GetShiftState [04:56:55]wFMCommunicate request_size=4 [04:56:55]MH_SAM_APDU [04:56:55]CAPDU: 80 13 01 00 [04:56:55]Write to MH i2c: E2 08 00 14 33 80 13 01 00 00 00 00 00 C4 [04:56:55]Write i2c OK [04:56:55]MH_I2C_Read... [04:56:55]Read from MH i2c: E2 [04:56:55]MH_I2C_Read... [04:56:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:56:55]Read from MH i2c: E2 0E 00 [04:56:55]MH_I2C_Read... [04:56:55]Read from MH i2c: E2 0E 00 14 33 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 91 [04:56:55]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [04:56:55]wFMCommunicate OK [04:56:55]SAM_PROTO_GetShiftState done [04:56:55]FM_GetShiftState done [04:56:55]req_shift_opened done [04:56:55]requested_item shift.open_date is exist - process it [04:56:55]req_shift_open_date [04:56:55]req_shift_open_date done [04:56:55]produce_requested_data done [04:56:55]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156456,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [04:56:55]process_action_free close_receipt [04:56:55]json_value_free [04:56:55]json_value_free done [04:56:55]process_json_proto returns [04:56:55]Send response to host [04:56:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156456,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [04:56:55]free response buf [04:56:55]execute_script done [04:56:55]execute_script returns [04:56:55]free content buf [04:56:55]Sock 9.Close socket [04:56:55]Sock 9.Thread stoped [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:46]OFD Sender: No OFD packet to send [04:58:51]OFD Sender: No OFD packet to send [04:58:56]OFD Sender: No OFD packet to send [04:59:01]OFD Sender: No OFD packet to send [04:59:06]OFD Sender: No OFD packet to send [04:59:11]OFD Sender: No OFD packet to send [04:59:16]OFD Sender: No OFD packet to send [04:59:16]accept exits with 8 [04:59:16]New connection [04:59:16]New thread 3066977636 created [04:59:16]Thread 3066834276 joined [04:59:16]Waiting for new connection... [04:59:16] Sock 8.Parse request [04:59:16]Sock 8.Check first char [04:59:16]Sock 8.First char is OK [04:59:16]request: POST /json_proto HTTP/1.0 [04:59:16]Method: POST [04:59:16]URL: /json_proto [04:59:16]Method is POST - this is cgi request [04:59:16]url: /json_proto [04:59:16]query_string will be loaded in cgi processing [04:59:16]execute_cgi json_proto POST (null) [04:59:16]execute_cgi path=json_proto method=POST [04:59:16]POST find Content-Length [04:59:16]Host: 172.17.63.3:8080 [04:59:16]Content-Length: 678 [04:59:16]Content-Type: application/json [04:59:16] [04:59:16]POST finish read [04:59:16]Found Content-Length = 678 [04:59:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99270", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:59:16]execute_script... [04:59: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)99270", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:59:16]POST & json_proto [04:59:16]process_json_proto [04:59:16]json parsed OK: [04:59:16]protocol is kg_v1.0 [04:59:16]action value=close_receipt [04:59:16]process_action close_receipt [04:59:16]cmd_close_receipt [04:59:16]MH_GetDate [04:59:16]Write to MH i2c: F0 00 00 15 33 37 [04:59:16]Write i2c OK [04:59:16]MH_I2C_Read... [04:59:16]Read from MH i2c: F0 [04:59:16]MH_I2C_Read... [04:59:16]Read from MH i2c: F0 09 00 [04:59:16]MH_I2C_Read... [04:59:16]Read from MH i2c: F0 09 00 15 33 00 A8 C8 1D 67 50 D1 6C 64 25 [04:59:16]GetLastDocTimeStamp 1730005017 [04:59:16]current date 1730005160 [04:59:16]FM_GetShiftState [04:59:16]SAM_PROTO_GetShiftState [04:59:16]wFMCommunicate request_size=4 [04:59:16]MH_SAM_APDU [04:59:16]CAPDU: 80 13 01 00 [04:59:16]Write to MH i2c: E2 08 00 16 33 80 13 01 00 00 00 00 00 C6 [04:59:16]Write i2c OK [04:59:16]MH_I2C_Read... [04:59:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:59:16]Read from MH i2c: E2 [04:59:16]MH_I2C_Read... [04:59:16]Read from MH i2c: E2 0E 00 [04:59:16]MH_I2C_Read... [04:59:16]Read from MH i2c: E2 0E 00 16 33 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 93 [04:59:16]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [04:59:16]wFMCommunicate OK [04:59:16]SAM_PROTO_GetShiftState done [04:59:16]FM_GetShiftState done [04:59:16]opened in 1729989044 [04:59:16]opened+sec_in_day 1730075444 [04:59:16]quantity*price = 200025 [04:59:16]sum+1 = 200026 [04:59:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 8 27.10.2024 04:59 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156457 ФПД: 132727379982593 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T045920&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156457&fm=132727379982593&tin=02508201610067®Number=0000000000091693&sum=200000 [04:59:18]StoreToDocumentArchive [04:59:18]shift 537 fd 156457 [04:59:18]save to /storage/0537/doc_00156457 [04:59:18]save last doc name /storage/0537/doc_00156457 to /storage/kkm_last_doc_name [04:59:18]save OK [04:59:18]Clear old archive folders... [04:59:18]ProcessDocumentItem done err = 0, tmpTLVsize=248 [04:59:18]tlvbuf is 016C1550 [04:59:18]SAM_PROTO_ClearQueue [04:59:18]wFMCommunicate request_size=4 [04:59:18]MH_SAM_APDU [04:59:18]CAPDU: 80 09 00 00 [04:59:18]Write to MH i2c: E2 08 00 23 33 80 09 00 00 00 00 00 00 C8 [04:59:18]Write i2c OK [04:59:18]MH_I2C_Read... [04:59:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:59:18]Read from MH i2c: E2 [04:59:18]MH_I2C_Read... [04:59:18]Read from MH i2c: E2 03 00 [04:59:18]MH_I2C_Read... [04:59:18]Read from MH i2c: E2 03 00 23 33 00 90 00 CA [04:59:18]RAPDU: 90 00 [04:59:18]wFMCommunicate OK [04:59:18]SAM_PROTO_ClearQueue done [04:59:18]KKMCreateOFDPacket [04:59:18]OFDProtocolAddRootSTLVToBuf [04:59:18]FM_MakeSignedData [04:59:18]FM_MakeSignedData [04:59:18]SAM_PROTO_SignData [04:59:18]wFMCommunicate request_size=4 [04:59:18]MH_SAM_APDU [04:59:18]CAPDU: 80 0D 01 02 [04:59:18]Write to MH i2c: E2 08 00 24 33 80 0D 01 02 00 00 00 00 D0 [04:59:18]Write i2c OK [04:59:18]MH_I2C_Read... [04:59:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:59:18]Read from MH i2c: E2 [04:59:18]MH_I2C_Read... [04:59:18]Read from MH i2c: E2 03 00 [04:59:18]MH_I2C_Read... [04:59:18]Read from MH i2c: E2 03 00 24 33 00 90 00 CB [04:59:18]RAPDU: 90 00 [04:59:18]wFMCommunicate OK [04:59:18]wFMCommunicate request_size=255 [04:59:18]MH_SAM_APDU [04:59:18]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 A8 C8 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 29 63 02 00 35 04 06 00 78 B7 00 55 [04:59:18]Write to MH i2c: E2 02 01 25 33 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 A8 C8 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 29 63 02 00 35 04 06 00 78 B7 00 55 00 00 71 [04:59:18]Write i2c OK [04:59:18]MH_I2C_Read... [04:59:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:59:18]Read from MH i2c: E2 [04:59:18]MH_I2C_Read... [04:59:18]Read from MH i2c: E2 03 00 [04:59:18]MH_I2C_Read... [04:59:18]Read from MH i2c: E2 03 00 25 33 00 90 00 CC [04:59:18]RAPDU: 90 00 [04:59:18]wFMCommunicate OK [04:59:18]wFMCommunicate request_size=7 [04:59:18]MH_SAM_APDU [04:59:18]CAPDU: 80 0D 02 02 02 F9 01 [04:59:18]Write to MH i2c: E2 0A 00 26 33 80 0D 02 02 02 00 F9 01 00 00 D1 [04:59:18]Write i2c OK [04:59:18]MH_I2C_Read... [04:59:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:59:18]Read from MH i2c: E2 [04:59:18]MH_I2C_Read... [04:59:18]Read from MH i2c: E2 03 00 [04:59:18]MH_I2C_Read... [04:59:18]Read from MH i2c: E2 03 00 26 33 00 90 00 CD [04:59:18]RAPDU: 90 00 [04:59:18]wFMCommunicate OK [04:59:18]wFMCommunicate request_size=4 [04:59:18]MH_SAM_APDU [04:59:18]CAPDU: 80 0D 03 02 [04:59:18]Write to MH i2c: E2 08 00 27 33 80 0D 03 02 00 00 00 00 D5 [04:59:18]Write i2c OK [04:59:18]MH_I2C_Read... [04:59:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:59:18]Read from MH i2c: E2 [04:59:18]MH_I2C_Read... [04:59:18]Read from MH i2c: E2 0B 00 [04:59:18]MH_I2C_Read... [04:59:18]Read from MH i2c: E2 0B 00 27 33 00 D5 07 1C 67 AD C5 A8 89 90 00 D8 [04:59:18]RAPDU: D5 07 1C 67 AD C5 A8 89 90 00 [04:59:18]wFMCommunicate OK [04:59:18]SAM_PROTO_SignData done [04:59:18]FM_MakeSignedData done [04:59:18]CreateOFDProtocolMessage [04:59:18]wFMCommunicate request_size=4 [04:59:18]MH_SAM_APDU [04:59:18]CAPDU: 80 11 00 00 [04:59:18]Write to MH i2c: E2 08 00 28 33 80 11 00 00 00 00 00 00 D5 [04:59:18]Write i2c OK [04:59:18]MH_I2C_Read... [04:59:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:59:18]Read from MH i2c: E2 [04:59:18]MH_I2C_Read... [04:59:18]Read from MH i2c: E2 17 00 [04:59:18]MH_I2C_Read... [04:59:18]Read from MH i2c: E2 17 00 28 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 2A [04:59:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [04:59:18]wFMCommunicate OK [04:59:18]CreateOFDProtocolMessage done [04:59:18]OFDSenderStorePacket 156457 [04:59:18]StoreOFDPacket docnum=156457 [04:59:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 B9 90 04 01 A2 9F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 A8 C8 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 29 63 02 00 35 04 06 00 78 B7 00 55 F9 01 D5 07 1C 67 AD C5 A8 89 [04:59:18]CheckFolder [04:59:18]dirname=/storage/ofd_packets [04:59:18]CheckFolder done [04:59:18]ProducePacketName [04:59:18]name=ofd_packets/00156457 [04:59:18]NVStorageSaveData ofd_packets/00156457 [04:59:18]File name is /storage/ofd_packets/00156457 [04:59:18]Write 298 bytes [04:59:18]NVStorageSaveData done [04:59:18]OFDSenderStorePacket done [04:59:18]KKMCreateOFDPacket done [04:59:18]NVStorageSaveData kkm_last_timestamp [04:59:18]File name is /storage/kkm_last_timestamp [04:59:18]Write 4 bytes [04:59:18]NVStorageSaveData done [04:59:18]ExternCall_PrintAddStr [04:59:18]wPrintStart [04:59:18]Write to MH i2c: 01 00 00 29 33 5C [04:59:18]Write i2c OK [04:59:18]MH_I2C_Read... [04:59:18]Read from MH i2c: 01 [04:59:18]MH_I2C_Read... [04:59:18]Read from MH i2c: 01 07 00 [04:59:18]MH_I2C_Read... [04:59:18]Read from MH i2c: 01 07 00 29 33 00 00 00 00 00 FF 0F 71 [04:59:18]RasterBufferAndPrint [04:59:18]line Счет N : (1)99270 [04:59:18]line ИНН: 02508201610067 [04:59:18]line Контрольно-Кассовый Чек [04:59:18]line ПРОДАЖА [04:59:18]line ТРК (МРК, ГНК) : 32 [04:59:18]line Товар: 2710194210 [04:59:18]line ДТ-К-5 [04:59:18]line 26.250 * 76.20 [04:59:18]line = 2000.25 [04:59:18]line НДС 12% НСП 1% [04:59:18]line > о реализуемом товаре [04:59:18]line ОКРУГЛЕНИЕ: -0.25 [04:59:18]line ИТОГО: 2000.00 [04:59:18]line Внесено: 2000.00 [04:59:18]line СДАЧА: 0.00 [04:59:18]line НСП 1% : 17.70 [04:59:18]line НДС 12% : 212.42 [04:59:18]line Наличными: 2000.00 [04:59:18]line Безнал.: 0.00 [04:59:18]line Место: АЗС № 143 "Партнер Нефть" [04:59:18]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [04:59:18]line СНО: Общий режим [04:59:18]line Чек 8 27.10.2024 04:59 [04:59:18]line Смена: 537 ФФД: 1.0 [04:59:18]line ЗНМ: 0300000096 [04:59:18]line РНМ: 0000000000091693 [04:59:18]line Версия ККМ: 001 [04:59:18]line ФМ: 0000000000871792 [04:59:18]line ФД: 156457 [04:59:18]line ФПД: 132727379982593 [04:59:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T045920&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156457&fm=132727379982593&tin=02508201610067®Number=0000000000091693&sum=200000 [04:59:18]OFD Sender: Processing packet 156457 [packets to send 31, broken 30] [04:59:18]ProducePacketName [04:59:18]name=ofd_packets/00156457 [04:59:18]OFD Sender: To server: pG, [04:59:18]CommunicateWithHost lk.salyk.kg:30040 [04:59:18]ConnectInit lk.salyk.kg [04:59:18]written 0, free lines is 4095 [04:59:18]Connected sock=9 [04:59:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 B9 90 04 01 A2 9F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 A8 C8 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 29 63 02 00 35 04 06 00 78 B7 00 55 F9 01 D5 07 1C 67 AD C5 A8 89 [04:59:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 9A 73 47 00 4B E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 29 63 02 00 F4 03 04 00 19 6E 1D 67 B6 04 01 00 00 AF 64 B8 D1 CE 8F 41 B7 [04:59:19]CommunicateWithHost err = 0 [04:59:19]CheckOFDResponse [04:59:19]1017 (14) - 77093643461234 [04:59:19]1041 (16) - 0000000000871792 [04:59:19]1040 (4) - 156457 [04:59:19]1012 (4) - 26.10.2024 22:32 [04:59:19]1206 (1) - 0 [04:59:19]OFD Sender: Remove packet 156457 [04:59:19]ProducePacketName [04:59:19]name=ofd_packets/00156457 [04:59:19]NVStorageDeleteData [04:59:19]Write to MH i2c: 01 00 00 54 33 87 [04:59:19]Write i2c OK [04:59:19]MH_I2C_Read... [04:59:19]Read from MH i2c: 01 [04:59:19]MH_I2C_Read... [04:59:19]Read from MH i2c: 01 07 00 [04:59:19]MH_I2C_Read... [04:59:19]Read from MH i2c: 01 07 00 54 33 00 00 00 00 00 DA 0C 74 [04:59:19]RasterBufferAndPrint [04:59:19]line [04:59:19]line [04:59:19]line [04:59:19]line [04:59:19]line [04:59:19]written 0, free lines is 3297 [04:59:19]process_action close_receipt done [04:59:19]requested_data is exist [04:59:19]produce_requested_data [04:59:19]requested_item fm.sn is exist - process it [04:59:19]wFMCommunicate request_size=4 [04:59:19]MH_SAM_APDU [04:59:19]CAPDU: 80 11 00 00 [04:59:19]Write to MH i2c: E2 08 00 5B 33 80 11 00 00 00 00 00 00 08 [04:59:19]Write i2c OK [04:59:19]MH_I2C_Read... [04:59:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:59:19]Read from MH i2c: E2 [04:59:19]MH_I2C_Read... [04:59:19]Read from MH i2c: E2 17 00 [04:59:19]MH_I2C_Read... [04:59:19]Read from MH i2c: E2 17 00 5B 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 5D [04:59:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [04:59:19]wFMCommunicate OK [04:59:19]requested_item fd.num is exist - process it [04:59:19]SAM_PROTO_GetFieldsCounters [04:59:19]wFMCommunicate request_size=4 [04:59:19]MH_SAM_APDU [04:59:19]CAPDU: 80 13 00 00 [04:59:19]Write to MH i2c: E2 08 00 5C 33 80 13 00 00 00 00 00 00 0B [04:59:19]Write i2c OK [04:59:19]MH_I2C_Read... [04:59:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:59:19]Read from MH i2c: E2 [04:59:19]MH_I2C_Read... [04:59:19]Read from MH i2c: E2 62 00 [04:59:19]MH_I2C_Read... [04:59:19]Read from MH i2c: E2 62 00 5C 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 29 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 F2 [04:59:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 29 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:59:19]wFMCommunicate OK [04:59:19]SAM_PROTO_GetFieldsCounters done [04:59:19]requested_item shift.num is exist - process it [04:59:19]requested_item shift.opened is exist - process it [04:59:19]req_shift_opened [04:59:19]FM_GetShiftState [04:59:19]SAM_PROTO_GetShiftState [04:59:19]wFMCommunicate request_size=4 [04:59:19]MH_SAM_APDU [04:59:19]CAPDU: 80 13 01 00 [04:59:19]Write to MH i2c: E2 08 00 5D 33 80 13 01 00 00 00 00 00 0D [04:59:19]Write i2c OK [04:59:19]MH_I2C_Read... [04:59:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:59:19]Read from MH i2c: E2 [04:59:19]MH_I2C_Read... [04:59:19]Read from MH i2c: E2 0E 00 [04:59:19]MH_I2C_Read... [04:59:19]Read from MH i2c: E2 0E 00 5D 33 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 DA [04:59:19]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [04:59:19]wFMCommunicate OK [04:59:19]SAM_PROTO_GetShiftState done [04:59:19]FM_GetShiftState done [04:59:19]req_shift_opened done [04:59:19]requested_item shift.open_date is exist - process it [04:59:19]req_shift_open_date [04:59:19]req_shift_open_date done [04:59:19]produce_requested_data done [04:59:19]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156457,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [04:59:19]process_action_free close_receipt [04:59:19]json_value_free [04:59:19]json_value_free done [04:59:19]process_json_proto returns [04:59:19]Send response to host [04:59:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156457,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [04:59:19]free response buf [04:59:19]execute_script done [04:59:19]execute_script returns [04:59:19]free content buf [04:59:19]Sock 8.Close socket [04:59:19]Sock 8.Thread stoped [04:59:19]OFD Sender: No OFD packet to send [04:59:24]OFD Sender: No OFD packet to send [04:59:29]OFD Sender: No OFD packet to send [04:59:34]OFD Sender: No OFD packet to send [04:59:39]OFD Sender: No OFD packet to send [04:59:44]OFD Sender: No OFD packet to send [04:59:49]OFD Sender: No OFD packet to send [04:59:54]OFD Sender: No OFD packet to send [04:59:59]OFD Sender: No OFD packet to send [05:00:04]OFD Sender: No OFD packet to send [05:00:09]OFD Sender: No OFD packet to send [05:00:14]OFD Sender: No OFD packet to send [05:00:19]OFD Sender: No OFD packet to send [05:00:24]OFD Sender: No OFD packet to send [05:00:29]OFD Sender: No OFD packet to send [05:00:34]OFD Sender: No OFD packet to send [05:00:39]OFD Sender: No OFD packet to send [05:00:44]OFD Sender: No OFD packet to send [05:00:49]OFD Sender: No OFD packet to send [05:00:54]OFD Sender: No OFD packet to send [05:00:59]OFD Sender: No OFD packet to send [05:01:04]OFD Sender: No OFD packet to send [05:01:09]OFD Sender: No OFD packet to send [05:01:14]OFD Sender: No OFD packet to send [05:01:19]OFD Sender: No OFD packet to send [05:01:24]OFD Sender: No OFD packet to send [05:01:29]OFD Sender: No OFD packet to send [05:01:34]OFD Sender: No OFD packet to send [05:01:39]OFD Sender: No OFD packet to send [05:01:44]OFD Sender: No OFD packet to send [05:01:49]OFD Sender: No OFD packet to send [05:01:54]OFD Sender: No OFD packet to send [05:01:59]OFD Sender: No OFD packet to send [05:02:04]OFD Sender: No OFD packet to send [05:02:09]OFD Sender: No OFD packet to send [05:02:14]OFD Sender: No OFD packet to send [05:02:19]OFD Sender: No OFD packet to send [05:02:24]OFD Sender: No OFD packet to send [05:02:29]OFD Sender: No OFD packet to send [05:02:34]OFD Sender: No OFD packet to send [05:02:39]OFD Sender: No OFD packet to send [05:02:44]OFD Sender: No OFD packet to send [05:02:49]OFD Sender: No OFD packet to send [05:02:54]OFD Sender: No OFD packet to send [05:02:59]OFD Sender: No OFD packet to send [05:03:04]OFD Sender: No OFD packet to send [05:03:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 F5 91 04 01 59 E1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 91 C9 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2A 63 02 00 35 04 06 00 A3 51 6E 3C ED 76 14 DC 6B 61 40 17 ED DA [05:03:11]CheckFolder [05:03:11]dirname=/storage/ofd_packets [05:03:11]CheckFolder done [05:03:11]ProducePacketName [05:03:11]name=ofd_packets/00156458 [05:03:11]NVStorageSaveData ofd_packets/00156458 [05:03:11]File name is /storage/ofd_packets/00156458 [05:03:11]Write 298 bytes [05:03:11]NVStorageSaveData done [05:03:11]OFDSenderStorePacket done [05:03:11]KKMCreateOFDPacket done [05:03:11]NVStorageSaveData kkm_last_timestamp [05:03:11]File name is /storage/kkm_last_timestamp [05:03:11]Write 4 bytes [05:03:11]NVStorageSaveData done [05:03:11]ExternCall_PrintAddStr [05:03:11]wPrintStart [05:03:11]Write to MH i2c: 01 00 00 72 33 A5 [05:03:11]Write i2c OK [05:03:11]MH_I2C_Read... [05:03:11]Read from MH i2c: 01 [05:03:11]MH_I2C_Read... [05:03:11]Read from MH i2c: 01 07 00 [05:03:11]MH_I2C_Read... [05:03:11]Read from MH i2c: 01 07 00 72 33 00 00 00 00 00 FF 0F BA [05:03:11]RasterBufferAndPrint [05:03:11]line Счет N : (1)99271 [05:03:11]line ИНН: 02508201610067 [05:03:11]line Контрольно-Кассовый Чек [05:03:11]line ПРОДАЖА [05:03:11]line ТРК (МРК, ГНК) : 32 [05:03:11]line Товар: 2710194210 [05:03:11]line ДТ-К-5 [05:03:11]line 19.690 * 76.20 [05:03:11]line = 1500.38 [05:03:11]line НДС 12% НСП 1% [05:03:11]line > о реализуемом товаре [05:03:11]line ОКРУГЛЕНИЕ: -0.38 [05:03:11]line ИТОГО: 1500.00 [05:03:11]line Внесено: 1500.00 [05:03:11]line СДАЧА: 0.00 [05:03:11]line НСП 1% : 13.28 [05:03:11]line НДС 12% : 159.33 [05:03:11]line Наличными: 1500.00 [05:03:11]line Безнал.: 0.00 [05:03:11]line Место: АЗС № 143 "Партнер Нефть" [05:03:11]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [05:03:11]line СНО: Общий режим [05:03:11]line Чек 9 27.10.2024 05:03 [05:03:11]line Смена: 537 ФФД: 1.0 [05:03:11]line ЗНМ: 0300000096 [05:03:11]line РНМ: 0000000000091693 [05:03:11]line Версия ККМ: 001 [05:03:11]line ФМ: 0000000000871792 [05:03:11]line ФД: 156458 [05:03:11]line ФПД: 179570137165174 [05:03:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T050313&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156458&fm=179570137165174&tin=02508201610067®Number=0000000000091693&sum=150000 [05:03:11]OFD Sender: Processing packet 156458 [packets to send 31, broken 30] [05:03:11]ProducePacketName [05:03:11]name=ofd_packets/00156458 [05:03:11]OFD Sender: To server: pG, [05:03:11]CommunicateWithHost lk.salyk.kg:30040 [05:03:11]ConnectInit lk.salyk.kg [05:03:11]written 0, free lines is 4095 [05:03:11]Connected sock=11 [05:03:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 F5 91 04 01 59 E1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 91 C9 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2A 63 02 00 35 04 06 00 A3 51 6E 3C ED 76 14 DC 6B 61 40 17 ED DA [05:03:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 40 1D 47 00 59 B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2A 63 02 00 F4 03 04 00 02 6F 1D 67 B6 04 01 00 00 D4 9E 56 FD 8D 13 3D 3F [05:03:12]CommunicateWithHost err = 0 [05:03:12]CheckOFDResponse [05:03:12]1017 (14) - 77093643461234 [05:03:12]1041 (16) - 0000000000871792 [05:03:12]1040 (4) - 156458 [05:03:12]1012 (4) - 26.10.2024 22:36 [05:03:12]1206 (1) - 0 [05:03:12]OFD Sender: Remove packet 156458 [05:03:12]ProducePacketName [05:03:12]name=ofd_packets/00156458 [05:03:12]NVStorageDeleteData [05:03:12]Write to MH i2c: 01 00 00 9D 33 D0 [05:03:12]Write i2c OK [05:03:12]MH_I2C_Read... [05:03:12]Read from MH i2c: 01 [05:03:12]MH_I2C_Read... [05:03:12]Read from MH i2c: 01 07 00 [05:03:12]MH_I2C_Read... [05:03:12]Read from MH i2c: 01 07 00 9D 33 00 00 00 00 00 E0 0C C3 [05:03:12]RasterBufferAndPrint [05:03:12]line [05:03:12]line [05:03:12]line [05:03:12]line [05:03:12]line [05:03:12]written 0, free lines is 3305 [05:03:12]process_action close_receipt done [05:03:12]requested_data is exist [05:03:12]produce_requested_data [05:03:12]requested_item fm.sn is exist - process it [05:03:12]wFMCommunicate request_size=4 [05:03:12]MH_SAM_APDU [05:03:12]CAPDU: 80 11 00 00 [05:03:12]Write to MH i2c: E2 08 00 A4 33 80 11 00 00 00 00 00 00 51 [05:03:12]Write i2c OK [05:03:12]MH_I2C_Read... [05:03:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:03:12]Read from MH i2c: E2 [05:03:12]MH_I2C_Read... [05:03:12]Read from MH i2c: E2 17 00 [05:03:12]MH_I2C_Read... [05:03:12]Read from MH i2c: E2 17 00 A4 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 A6 [05:03:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [05:03:12]wFMCommunicate OK [05:03:12]requested_item fd.num is exist - process it [05:03:12]SAM_PROTO_GetFieldsCounters [05:03:12]wFMCommunicate request_size=4 [05:03:12]MH_SAM_APDU [05:03:12]CAPDU: 80 13 00 00 [05:03:12]Write to MH i2c: E2 08 00 A5 33 80 13 00 00 00 00 00 00 54 [05:03:12]Write i2c OK [05:03:12]MH_I2C_Read... [05:03:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:03:12]Read from MH i2c: E2 [05:03:12]MH_I2C_Read... [05:03:12]Read from MH i2c: E2 62 00 [05:03:12]MH_I2C_Read... [05:03:12]Read from MH i2c: E2 62 00 A5 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 2A 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 3F [05:03:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 2A 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:03:12]wFMCommunicate OK [05:03:12]SAM_PROTO_GetFieldsCounters done [05:03:12]requested_item shift.num is exist - process it [05:03:12]requested_item shift.opened is exist - process it [05:03:12]req_shift_opened [05:03:12]FM_GetShiftState [05:03:12]SAM_PROTO_GetShiftState [05:03:12]wFMCommunicate request_size=4 [05:03:12]MH_SAM_APDU [05:03:12]CAPDU: 80 13 01 00 [05:03:12]Write to MH i2c: E2 08 00 A6 33 80 13 01 00 00 00 00 00 56 [05:03:12]Write i2c OK [05:03:12]MH_I2C_Read... [05:03:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:03:12]Read from MH i2c: E2 [05:03:12]MH_I2C_Read... [05:03:12]Read from MH i2c: E2 0E 00 [05:03:12]MH_I2C_Read... [05:03:12]Read from MH i2c: E2 0E 00 A6 33 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 23 [05:03:12]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [05:03:12]wFMCommunicate OK [05:03:12]SAM_PROTO_GetShiftState done [05:03:12]FM_GetShiftState done [05:03:12]req_shift_opened done [05:03:12]requested_item shift.open_date is exist - process it [05:03:12]req_shift_open_date [05:03:12]req_shift_open_date done [05:03:12]produce_requested_data done [05:03:12]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156458,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [05:03:12]process_action_free close_receipt [05:03:12]json_value_free [05:03:12]json_value_free done [05:03:12]process_json_proto returns [05:03:12]Send response to host [05:03:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156458,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [05:03:12]free response buf [05:03:12]execute_script done [05:03:12]execute_script returns [05:03:12]free content buf [05:03:12]Sock 10.Close socket [05:03:12]Sock 10.Thread stoped [05:03:12]OFD Sender: No OFD packet to send [05:03:17]OFD Sender: No OFD packet to send [05:03:22]OFD Sender: No OFD packet to send [05:03:27]OFD Sender: No OFD packet to send [05:03:32]OFD Sender: No OFD packet to send [05:03:37]OFD Sender: No OFD packet to send [05:03:42]OFD Sender: No OFD packet to send [05:03:47]OFD Sender: No OFD packet to send [05:03:52]OFD Sender: No OFD packet to send [05:03:57]OFD Sender: No OFD packet to send [05:04:02]OFD Sender: No OFD packet to send [05:04:07]OFD Sender: No OFD packet to send [05:04:12]OFD Sender: No OFD packet to send [05:04:17]OFD Sender: No OFD packet to send [05:04:22]OFD Sender: No OFD packet to send [05:04:27]OFD Sender: No OFD packet to send [05:04:32]OFD Sender: No OFD packet to send [05:04:37]OFD Sender: No OFD packet to send [05:04:42]OFD Sender: No OFD packet to send [05:04:47]OFD Sender: No OFD packet to send [05:04:52]OFD Sender: No OFD packet to send [05:04:57]OFD Sender: No OFD packet to send [05:05:02]OFD Sender: No OFD packet to send [05:05:07]OFD Sender: No OFD packet to send [05:05:12]OFD Sender: No OFD packet to send [05:05:17]OFD Sender: No OFD packet to send [05:05:22]OFD Sender: No OFD packet to send [05:05:27]OFD Sender: No OFD packet to send [05:05:32]OFD Sender: No OFD packet to send [05:05:37]OFD Sender: No OFD packet to send [05:05:42]OFD Sender: No OFD packet to send [05:05:47]OFD Sender: No OFD packet to send [05:05:52]OFD Sender: No OFD packet to send [05:05:57]OFD Sender: No OFD packet to send [05:06:02]OFD Sender: No OFD packet to send [05:06:07]OFD Sender: No OFD packet to send [05:06:12]OFD Sender: No OFD packet to send [05:06:17]OFD Sender: No OFD packet to send [05:06:22]OFD Sender: No OFD packet to send [05:06:25]ConnectInit Can't connect to host [05:06:27]OFD Sender: No OFD packet to send [05:06:32]OFD Sender: No OFD packet to send [05:06:37]OFD Sender: No OFD packet to send [05:06:42]OFD Sender: No OFD packet to send [05:06:47]OFD Sender: No OFD packet to send [05:06:52]OFD Sender: No OFD packet to send [05:06:57]OFD Sender: No OFD packet to send [05:07:02]OFD Sender: No OFD packet to send [05:07:07]OFD Sender: No OFD packet to send [05:07:12]OFD Sender: No OFD packet to send [05:07:17]OFD Sender: No OFD packet to send [05:07:22]OFD Sender: No OFD packet to send [05:07:27]OFD Sender: No OFD packet to send [05:07:32]OFD Sender: No OFD packet to send [05:07:37]OFD Sender: No OFD packet to send [05:07:42]OFD Sender: No OFD packet to send [05:07:47]OFD Sender: No OFD packet to send [05:07:52]OFD Sender: No OFD packet to send [05:07:57]OFD Sender: No OFD packet to send [05:08:02]OFD Sender: No OFD packet to send [05:08:07]OFD Sender: No OFD packet to send [05:08:12]OFD Sender: No OFD packet to send [05:08:17]OFD Sender: No OFD packet to send [05:08:22]OFD Sender: No OFD packet to send [05:08:27]OFD Sender: No OFD packet to send [05:08:32]OFD Sender: No OFD packet to send [05:08:37]OFD Sender: No OFD packet to send [05:08:42]OFD Sender: No OFD packet to send [05:08:43]ConnectInit Can't connect to host [05:08:47]OFD Sender: No OFD packet to send [05:08:52]OFD Sender: No OFD packet to send [05:08:57]OFD Sender: No OFD packet to send [05:09:02]OFD Sender: No OFD packet to send [05:09:07]OFD Sender: No OFD packet to send [05:09:12]OFD Sender: No OFD packet to send [05:09:17]OFD Sender: No OFD packet to send [05:09:22]OFD Sender: No OFD packet to send [05:09:27]OFD Sender: No OFD packet to send [05:09:32]OFD Sender: No OFD packet to send [05:09:37]OFD Sender: No OFD packet to send [05:09:42]OFD Sender: No OFD packet to send [05:09:47]OFD Sender: No OFD packet to send [05:09:52]OFD Sender: No OFD packet to send [05:09:57]OFD Sender: No OFD packet to send [05:10:02]OFD Sender: No OFD packet to send [05:10:07]OFD Sender: No OFD packet to send [05:10:12]OFD Sender: No OFD packet to send [05:10:17]OFD Sender: No OFD packet to send [05:10:22]OFD Sender: No OFD packet to send [05:10:27]OFD Sender: No OFD packet to send [05:10:32]OFD Sender: No OFD packet to send [05:10:37]OFD Sender: No OFD packet to send [05:10:42]OFD Sender: No OFD packet to send [05:10:47]OFD Sender: No OFD packet to send [05:10:52]OFD Sender: No OFD packet to send [05:10:57]OFD Sender: No OFD packet to send [05:11:02]OFD Sender: No OFD packet to send [05:11:07]OFD Sender: No OFD packet to send [05:11:13]OFD Sender: No OFD packet to send [05:11:18]OFD Sender: No OFD packet to send [05:11:23]OFD Sender: No OFD packet to send [05:11:28]OFD Sender: No OFD packet to send [05:11:33]OFD Sender: No OFD packet to send [05:11:38]OFD Sender: No OFD packet to send [05:11:43]OFD Sender: No OFD packet to send [05:11:48]OFD Sender: No OFD packet to send [05:11:53]OFD Sender: No OFD packet to send [05:11:58]OFD Sender: No OFD packet to send [05:12:03]OFD Sender: No OFD packet to send [05:12:08]OFD Sender: No OFD packet to send [05:12:13]OFD Sender: No OFD packet to send [05:12:18]OFD Sender: No OFD packet to send [05:12:23]OFD Sender: No OFD packet to send [05:12:28]OFD Sender: No OFD packet to send [05:12:33]OFD Sender: No OFD packet to send [05:12:38]OFD Sender: No OFD packet to send [05:12:43]OFD Sender: No OFD packet to send [05:12:48]OFD Sender: No OFD packet to send [05:12:53]OFD Sender: No OFD packet to send [05:12:58]OFD Sender: No OFD packet to send [05:13:03]OFD Sender: No OFD packet to send [05:13:08]OFD Sender: No OFD packet to send [05:13:13]OFD Sender: No OFD packet to send [05:13:18]OFD Sender: No OFD packet to send [05:13:23]OFD Sender: No OFD packet to send [05:13:28]OFD Sender: No OFD packet to send [05:13:33]OFD Sender: No OFD packet to send [05:13:38]OFD Sender: No OFD packet to send [05:13:43]OFD Sender: No OFD packet to send [05:13:48]OFD Sender: No OFD packet to send [05:13:53]OFD Sender: No OFD packet to send [05:13:58]OFD Sender: No OFD packet to send [05:14:03]OFD Sender: No OFD packet to send [05:14:08]OFD Sender: No OFD packet to send [05:14:13]OFD Sender: No OFD packet to send [05:14:18]OFD Sender: No OFD packet to send [05:14:23]OFD Sender: No OFD packet to send [05:14:28]OFD Sender: No OFD packet to send [05:14:33]OFD Sender: No OFD packet to send [05:14:38]OFD Sender: No OFD packet to send [05:14:43]OFD Sender: No OFD packet to send [05:14:48]OFD Sender: No OFD packet to send [05:14:53]OFD Sender: No OFD packet to send [05:14:58]OFD Sender: No OFD packet to send [05:15:03]OFD Sender: No OFD packet to send [05:15:08]OFD Sender: No OFD packet to send [05:15:13]OFD Sender: No OFD packet to send [05:15:18]OFD Sender: No OFD packet to send [05:15:23]OFD Sender: No OFD packet to send [05:15:28]OFD Sender: No OFD packet to send [05:15:33]OFD Sender: No OFD packet to send [05:15:38]OFD Sender: No OFD packet to send [05:15:43]OFD Sender: No OFD packet to send [05:15:48]OFD Sender: No OFD packet to send [05:15:53]OFD Sender: No OFD packet to send [05:15:58]OFD Sender: No OFD packet to send [05:16:03]OFD Sender: No OFD packet to send [05:16:08]OFD Sender: No OFD packet to send [05:16:13]OFD Sender: No OFD packet to send [05:16:18]OFD Sender: No OFD packet to send [05:16:23]OFD Sender: No OFD packet to send [05:16:28]OFD Sender: No OFD packet to send [05:16:33]OFD Sender: No OFD packet to send [05:16:38]OFD Sender: No OFD packet to send [05:16:43]OFD Sender: No OFD packet to send [05:16:48]OFD Sender: No OFD packet to send [05:16:53]OFD Sender: No OFD packet to send [05:16:58]OFD Sender: No OFD packet to send [05:17:03]OFD Sender: No OFD packet to send [05:17:08]OFD Sender: No OFD packet to send [05:17:13]OFD Sender: No OFD packet to send [05:17:18]OFD Sender: No OFD packet to send [05:17:23]OFD Sender: No OFD packet to send [05:17:28]OFD Sender: No OFD packet to send [05:17:33]OFD Sender: No OFD packet to send [05:17:38]OFD Sender: No OFD packet to send [05:17:43]OFD Sender: No OFD packet to send [05:17:48]OFD Sender: No OFD packet to send [05:17:53]OFD Sender: No OFD packet to send [05:17:58]OFD Sender: No OFD packet to send [05:18:03]OFD Sender: No OFD packet to send [05:18:08]OFD Sender: No OFD packet to send [05:18:13]OFD Sender: No OFD packet to send [05:18:18]OFD Sender: No OFD packet to send [05:18:23]OFD Sender: No OFD packet to send [05:18:28]OFD Sender: No OFD packet to send [05:18:33]OFD Sender: No OFD packet to send [05:18:38]OFD Sender: No OFD packet to send [05:18:43]OFD Sender: No OFD packet to send [05:18:48]OFD Sender: No OFD packet to send [05:18:53]OFD Sender: No OFD packet to send [05:18:58]OFD Sender: No OFD packet to send [05:19:03]OFD Sender: No OFD packet to send [05:19:08]OFD Sender: No OFD packet to send [05:19:13]OFD Sender: No OFD packet to send [05:19:18]OFD Sender: No OFD packet to send [05:19:23]OFD Sender: No OFD packet to send [05:19:28]OFD Sender: No OFD packet to send [05:19:33]OFD Sender: No OFD packet to send [05:19:38]OFD Sender: No OFD packet to send [05:19:43]OFD Sender: No OFD packet to send [05:19:48]OFD Sender: No OFD packet to send [05:19:53]OFD Sender: No OFD packet to send [05:19:58]OFD Sender: No OFD packet to send [05:20:03]OFD Sender: No OFD packet to send [05:20:08]OFD Sender: No OFD packet to send [05:20:13]OFD Sender: No OFD packet to send [05:20:18]OFD Sender: No OFD packet to send [05:20:23]OFD Sender: No OFD packet to send [05:20:28]OFD Sender: No OFD packet to send [05:20:33]OFD Sender: No OFD packet to send [05:20:38]OFD Sender: No OFD packet to send [05:20:43]OFD Sender: No OFD packet to send [05:20:48]OFD Sender: No OFD packet to send [05:20:53]OFD Sender: No OFD packet to send [05:20:58]OFD Sender: No OFD packet to send [05:21:03]OFD Sender: No OFD packet to send [05:21:08]OFD Sender: No OFD packet to send [05:21:13]OFD Sender: No OFD packet to send [05:21:18]OFD Sender: No OFD packet to send [05:21:23]OFD Sender: No OFD packet to send [05:21:28]OFD Sender: No OFD packet to send [05:21:33]OFD Sender: No OFD packet to send [05:21:38]OFD Sender: No OFD packet to send [05:21:43]OFD Sender: No OFD packet to send [05:21:48]OFD Sender: No OFD packet to send [05:21:53]OFD Sender: No OFD packet to send [05:21:58]OFD Sender: No OFD packet to send [05:22:03]OFD Sender: No OFD packet to send [05:22:08]OFD Sender: No OFD packet to send [05:22:13]OFD Sender: No OFD packet to send [05:22:18]OFD Sender: No OFD packet to send [05:22:23]OFD Sender: No OFD packet to send [05:22:28]OFD Sender: No OFD packet to send [05:22:33]OFD Sender: No OFD packet to send [05:22:38]OFD Sender: No OFD packet to send [05:22:43]OFD Sender: No OFD packet to send [05:22:48]OFD Sender: No OFD packet to send [05:22:53]OFD Sender: No OFD packet to send [05:22:58]OFD Sender: No OFD packet to send [05:23:03]OFD Sender: No OFD packet to send [05:23:08]OFD Sender: No OFD packet to send [05:23:13]OFD Sender: No OFD packet to send [05:23:18]OFD Sender: No OFD packet to send [05:23:23]OFD Sender: No OFD packet to send [05:23:28]OFD Sender: No OFD packet to send [05:23:33]OFD Sender: No OFD packet to send [05:23:38]OFD Sender: No OFD packet to send [05:23:43]OFD Sender: No OFD packet to send [05:23:48]OFD Sender: No OFD packet to send [05:23:53]OFD Sender: No OFD packet to send [05:23:58]OFD Sender: No OFD packet to send [05:24:03]OFD Sender: No OFD packet to send [05:24:08]OFD Sender: No OFD packet to send [05:24:13]OFD Sender: No OFD packet to send [05:24:18]OFD Sender: No OFD packet to send [05:24:23]OFD Sender: No OFD packet to send [05:24:28]OFD Sender: No OFD packet to send [05:24:33]OFD Sender: No OFD packet to send [05:24:38]OFD Sender: No OFD packet to send [05:24:43]OFD Sender: No OFD packet to send [05:24:48]OFD Sender: No OFD packet to send [05:24:53]OFD Sender: No OFD packet to send [05:24:58]OFD Sender: No OFD packet to send [05:25:03]OFD Sender: No OFD packet to send [05:25:08]OFD Sender: No OFD packet to send [05:25:13]OFD Sender: No OFD packet to send [05:25:18]OFD Sender: No OFD packet to send [05:25:23]OFD Sender: No OFD packet to send [05:25:26]accept exits with 9 [05:25:26]New connection [05:25:26]New thread 3066977636 created [05:25:26]Thread 3066834276 joined [05:25:26]Waiting for new connection... [05:25:26] Sock 9.Parse request [05:25:26]Sock 9.Check first char [05:25:26]Sock 9.First char is OK [05:25:26]request: POST /json_proto HTTP/1.0 [05:25:26]Method: POST [05:25:26]URL: /json_proto [05:25:26]Method is POST - this is cgi request [05:25:26]url: /json_proto [05:25:26]query_string will be loaded in cgi processing [05:25:26]execute_cgi json_proto POST (null) [05:25:26]execute_cgi path=json_proto method=POST [05:25:26]POST find Content-Length [05:25:26]Host: 172.17.63.3:8080 [05:25:26]Content-Length: 768 [05:25:26]Content-Type: application/json [05:25:26] [05:25:26]POST finish read [05:25:26]Found Content-Length = 768 [05:25:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99272", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:25:26]execute_script... [05:25: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)99272", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:25:26]POST & json_proto [05:25:26]process_json_proto [05:25:26]json parsed OK: [05:25:26]protocol is kg_v1.0 [05:25:26]action value=close_receipt [05:25:26]process_action close_receipt [05:25:26]cmd_close_receipt [05:25:26]MH_GetDate [05:25:26]Write to MH i2c: F0 00 00 A7 33 C9 [05:25:26]Write i2c OK [05:25:26]MH_I2C_Read... [05:25:26]Read from MH i2c: F0 [05:25:26]MH_I2C_Read... [05:25:26]Read from MH i2c: F0 09 00 [05:25:26]MH_I2C_Read... [05:25:26]Read from MH i2c: F0 09 00 A7 33 00 CA CE 1D 67 50 D1 6C 64 DF [05:25:26]GetLastDocTimeStamp 1730005393 [05:25:26]current date 1730006730 [05:25:26]FM_GetShiftState [05:25:26]SAM_PROTO_GetShiftState [05:25:26]wFMCommunicate request_size=4 [05:25:26]MH_SAM_APDU [05:25:26]CAPDU: 80 13 01 00 [05:25:26]Write to MH i2c: E2 08 00 A8 33 80 13 01 00 00 00 00 00 58 [05:25:26]Write i2c OK [05:25:26]MH_I2C_Read... [05:25:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:25:26]Read from MH i2c: E2 [05:25:26]MH_I2C_Read... [05:25:26]Read from MH i2c: E2 0E 00 [05:25:26]MH_I2C_Read... [05:25:26]Read from MH i2c: E2 0E 00 A8 33 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 25 [05:25:26]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [05:25:26]wFMCommunicate OK [05:25:26]SAM_PROTO_GetShiftState done [05:25:26]FM_GetShiftState done [05:25:26]opened in 1729989044 [05:25:26]opened+sec_in_day 1730075444 [05:25:26]quantity*price = 100015 [05:25:26]sum+1 = 100017 [05:25:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 10 27.10.2024 05:25 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 156459 ФПД: 188016581930919 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T052530&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156459&fm=188016581930919&tin=02508201610067®Number=0000000000091693&sum=100016 [05:25:27]StoreToDocumentArchive [05:25:27]shift 537 fd 156459 [05:25:27]save to /storage/0537/doc_00156459 [05:25:27]save last doc name /storage/0537/doc_00156459 to /storage/kkm_last_doc_name [05:25:27]save OK [05:25:27]Clear old archive folders... [05:25:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:25:27]tlvbuf is 016E4180 [05:25:27]SAM_PROTO_ClearQueue [05:25:27]wFMCommunicate request_size=4 [05:25:27]MH_SAM_APDU [05:25:27]CAPDU: 80 09 00 00 [05:25:27]Write to MH i2c: E2 08 00 B5 33 80 09 00 00 00 00 00 00 5A [05:25:27]Write i2c OK [05:25:27]MH_I2C_Read... [05:25:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:25:27]Read from MH i2c: E2 [05:25:27]MH_I2C_Read... [05:25:27]Read from MH i2c: E2 03 00 [05:25:27]MH_I2C_Read... [05:25:27]Read from MH i2c: E2 03 00 B5 33 00 90 00 5C [05:25:27]RAPDU: 90 00 [05:25:27]wFMCommunicate OK [05:25:27]SAM_PROTO_ClearQueue done [05:25:27]KKMCreateOFDPacket [05:25:27]OFDProtocolAddRootSTLVToBuf [05:25:27]FM_MakeSignedData [05:25:27]FM_MakeSignedData [05:25:27]SAM_PROTO_SignData [05:25:27]wFMCommunicate request_size=4 [05:25:27]MH_SAM_APDU [05:25:27]CAPDU: 80 0D 01 02 [05:25:27]Write to MH i2c: E2 08 00 B6 33 80 0D 01 02 00 00 00 00 62 [05:25:27]Write i2c OK [05:25:27]MH_I2C_Read... [05:25:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:25:27]Read from MH i2c: E2 [05:25:27]MH_I2C_Read... [05:25:27]Read from MH i2c: E2 03 00 [05:25:27]MH_I2C_Read... [05:25:27]Read from MH i2c: E2 03 00 B6 33 00 90 00 5D [05:25:27]RAPDU: 90 00 [05:25:27]wFMCommunicate OK [05:25:27]wFMCommunicate request_size=255 [05:25:27]MH_SAM_APDU [05:25:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 CA CE 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2B 63 02 00 35 04 06 00 AB [05:25:27]Write to MH i2c: E2 02 01 B7 33 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 CA CE 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2B 63 02 00 35 04 06 00 AB 00 00 8C [05:25:27]Write i2c OK [05:25:27]MH_I2C_Read... [05:25:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:25:27]Read from MH i2c: E2 [05:25:27]MH_I2C_Read... [05:25:27]Read from MH i2c: E2 03 00 [05:25:27]MH_I2C_Read... [05:25:27]Read from MH i2c: E2 03 00 B7 33 00 90 00 5E [05:25:27]RAPDU: 90 00 [05:25:27]wFMCommunicate OK [05:25:27]wFMCommunicate request_size=10 [05:25:27]MH_SAM_APDU [05:25:27]CAPDU: 80 0D 02 02 05 00 05 93 EF A7 [05:25:27]Write to MH i2c: E2 0D 00 B8 33 80 0D 02 02 05 00 00 05 93 EF A7 00 00 9D [05:25:27]Write i2c OK [05:25:27]MH_I2C_Read... [05:25:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:25:27]Read from MH i2c: E2 [05:25:27]MH_I2C_Read... [05:25:27]Read from MH i2c: E2 03 00 [05:25:27]MH_I2C_Read... [05:25:27]Read from MH i2c: E2 03 00 B8 33 00 90 00 5F [05:25:27]RAPDU: 90 00 [05:25:27]wFMCommunicate OK [05:25:27]wFMCommunicate request_size=4 [05:25:27]MH_SAM_APDU [05:25:27]CAPDU: 80 0D 03 02 [05:25:27]Write to MH i2c: E2 08 00 B9 33 80 0D 03 02 00 00 00 00 67 [05:25:27]Write i2c OK [05:25:27]MH_I2C_Read... [05:25:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:25:27]Read from MH i2c: E2 [05:25:27]MH_I2C_Read... [05:25:27]Read from MH i2c: E2 0B 00 [05:25:27]MH_I2C_Read... [05:25:27]Read from MH i2c: E2 0B 00 B9 33 00 6D 3D 22 2A 29 2C 0B 5D 90 00 1B [05:25:27]RAPDU: 6D 3D 22 2A 29 2C 0B 5D 90 00 [05:25:27]wFMCommunicate OK [05:25:27]SAM_PROTO_SignData done [05:25:27]FM_MakeSignedData done [05:25:27]CreateOFDProtocolMessage [05:25:27]wFMCommunicate request_size=4 [05:25:27]MH_SAM_APDU [05:25:27]CAPDU: 80 11 00 00 [05:25:27]Write to MH i2c: E2 08 00 BA 33 80 11 00 00 00 00 00 00 67 [05:25:27]Write i2c OK [05:25:27]MH_I2C_Read... [05:25:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:25:27]Read from MH i2c: E2 [05:25:27]MH_I2C_Read... [05:25:27]Read from MH i2c: E2 17 00 [05:25:27]MH_I2C_Read... [05:25:27]Read from MH i2c: E2 17 00 BA 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 BC [05:25:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [05:25:27]wFMCommunicate OK [05:25:27]CreateOFDProtocolMessage done [05:25:27]OFDSenderStorePacket 156459 [05:25:27]StoreOFDPacket docnum=156459 [05:25:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 E7 FB 07 01 19 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 CA CE 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2B 63 02 00 35 04 06 00 AB 00 05 93 EF A7 6D 3D 22 2A 29 2C 0B 5D [05:25:27]CheckFolder [05:25:27]dirname=/storage/ofd_packets [05:25:27]CheckFolder done [05:25:27]ProducePacketName [05:25:27]name=ofd_packets/00156459 [05:25:27]NVStorageSaveData ofd_packets/00156459 [05:25:27]File name is /storage/ofd_packets/00156459 [05:25:27]Write 301 bytes [05:25:27]NVStorageSaveData done [05:25:27]OFDSenderStorePacket done [05:25:27]KKMCreateOFDPacket done [05:25:27]NVStorageSaveData kkm_last_timestamp [05:25:27]File name is /storage/kkm_last_timestamp [05:25:27]Write 4 bytes [05:25:27]NVStorageSaveData done [05:25:27]ExternCall_PrintAddStr [05:25:27]wPrintStart [05:25:27]Write to MH i2c: 01 00 00 BB 33 EE [05:25:27]Write i2c OK [05:25:27]MH_I2C_Read... [05:25:27]Read from MH i2c: 01 [05:25:27]MH_I2C_Read... [05:25:27]Read from MH i2c: 01 07 00 [05:25:27]MH_I2C_Read... [05:25:27]Read from MH i2c: 01 07 00 BB 33 00 00 00 00 00 FF 0F 03 [05:25:27]RasterBufferAndPrint [05:25:27]line Счет N : (1)99272 [05:25:27]line ИНН: 02508201610067 [05:25:27]line Контрольно-Кассовый Чек [05:25:27]line ПРОДАЖА [05:25:27]line ТРК (МРК, ГНК) : 11 [05:25:27]line Товар: 2710124130 [05:25:27]line Аи-92-К-5 [05:25:27]line 14.950 * 66.90 [05:25:27]line = 1000.16 [05:25:27]line НДС 12% НСП 1% [05:25:27]line > о реализуемом товаре [05:25:27]line ИТОГО: 1000.16 [05:25:27]line НСП 1% : 8.85 [05:25:27]line НДС 12% : 106.21 [05:25:27]line Наличными: 0.00 [05:25:27]line Безнал.: 1000.16 [05:25:27]line Место: АЗС № 143 "Партнер Нефть" [05:25:27]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [05:25:27]line СНО: Общий режим [05:25:27]line Чек 10 27.10.2024 05:25 [05:25:27]line Смена: 537 ФФД: 1.0 [05:25:27]line ЗНМ: 0300000096 [05:25:27]line РНМ: 0000000000091693 [05:25:27]line Версия ККМ: 001 [05:25:27]line Платежная система: Mbank [05:25:27]line ФМ: 0000000000871792 [05:25:27]line ФД: 156459 [05:25:27]line ФПД: 188016581930919 [05:25:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T052530&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156459&fm=188016581930919&tin=02508201610067®Number=0000000000091693&sum=100016 [05:25:28]written 0, free lines is 4095 [05:25:28]OFD Sender: Processing packet 156459 [packets to send 31, broken 30] [05:25:28]ProducePacketName [05:25:28]name=ofd_packets/00156459 [05:25:28]OFD Sender: To server: pG, [05:25:28]CommunicateWithHost lk.salyk.kg:30040 [05:25:28]ConnectInit lk.salyk.kg [05:25:28]Connected sock=8 [05:25:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 E7 FB 07 01 19 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 CA CE 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2B 63 02 00 35 04 06 00 AB 00 05 93 EF A7 6D 3D 22 2A 29 2C 0B 5D [05:25:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 5E F6 47 00 A0 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2B 63 02 00 F4 03 04 00 3A 74 1D 67 B6 04 01 00 00 5E 8E DE DB D4 FF 60 4E [05:25:28]CommunicateWithHost err = 0 [05:25:28]CheckOFDResponse [05:25:28]1017 (14) - 77093643461234 [05:25:28]1041 (16) - 0000000000871792 [05:25:28]1040 (4) - 156459 [05:25:28]1012 (4) - 26.10.2024 22:59 [05:25:28]1206 (1) - 0 [05:25:28]OFD Sender: Remove packet 156459 [05:25:28]ProducePacketName [05:25:28]name=ofd_packets/00156459 [05:25:28]NVStorageDeleteData [05:25:28]Write to MH i2c: 01 00 00 E4 33 17 [05:25:28]Write i2c OK [05:25:28]MH_I2C_Read... [05:25:28]Read from MH i2c: 01 [05:25:28]MH_I2C_Read... [05:25:28]Read from MH i2c: 01 07 00 [05:25:28]MH_I2C_Read... [05:25:28]Read from MH i2c: 01 07 00 E4 33 00 00 00 00 00 02 0D 2D [05:25:28]RasterBufferAndPrint [05:25:28]line [05:25:28]line [05:25:28]line [05:25:28]line [05:25:28]line [05:25:28]written 0, free lines is 3337 [05:25:28]process_action close_receipt done [05:25:28]requested_data is exist [05:25:28]produce_requested_data [05:25:28]requested_item fm.sn is exist - process it [05:25:28]wFMCommunicate request_size=4 [05:25:28]MH_SAM_APDU [05:25:28]CAPDU: 80 11 00 00 [05:25:28]Write to MH i2c: E2 08 00 EB 33 80 11 00 00 00 00 00 00 98 [05:25:28]Write i2c OK [05:25:28]MH_I2C_Read... [05:25:28]Read from MH i2c: E2 [05:25:28]MH_I2C_Read... [05:25:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:25:28]Read from MH i2c: E2 17 00 [05:25:28]MH_I2C_Read... [05:25:28]Read from MH i2c: E2 17 00 EB 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 ED [05:25:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [05:25:28]wFMCommunicate OK [05:25:28]requested_item fd.num is exist - process it [05:25:28]SAM_PROTO_GetFieldsCounters [05:25:28]wFMCommunicate request_size=4 [05:25:28]MH_SAM_APDU [05:25:28]CAPDU: 80 13 00 00 [05:25:28]Write to MH i2c: E2 08 00 EC 33 80 13 00 00 00 00 00 00 9B [05:25:28]Write i2c OK [05:25:28]MH_I2C_Read... [05:25:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:25:28]Read from MH i2c: E2 [05:25:28]MH_I2C_Read... [05:25:28]Read from MH i2c: E2 62 00 [05:25:28]MH_I2C_Read... [05:25:28]Read from MH i2c: E2 62 00 EC 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 2B 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 8A [05:25:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 2B 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:25:28]wFMCommunicate OK [05:25:28]SAM_PROTO_GetFieldsCounters done [05:25:28]requested_item shift.num is exist - process it [05:25:28]requested_item shift.opened is exist - process it [05:25:28]req_shift_opened [05:25:28]FM_GetShiftState [05:25:28]SAM_PROTO_GetShiftState [05:25:28]wFMCommunicate request_size=4 [05:25:28]MH_SAM_APDU [05:25:28]CAPDU: 80 13 01 00 [05:25:28]Write to MH i2c: E2 08 00 ED 33 80 13 01 00 00 00 00 00 9D [05:25:28]Write i2c OK [05:25:28]MH_I2C_Read... [05:25:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:25:28]Read from MH i2c: E2 [05:25:28]MH_I2C_Read... [05:25:28]Read from MH i2c: E2 0E 00 [05:25:28]MH_I2C_Read... [05:25:28]Read from MH i2c: E2 0E 00 ED 33 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 6A [05:25:28]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [05:25:28]wFMCommunicate OK [05:25:28]SAM_PROTO_GetShiftState done [05:25:28]FM_GetShiftState done [05:25:28]req_shift_opened done [05:25:28]requested_item shift.open_date is exist - process it [05:25:28]req_shift_open_date [05:25:28]req_shift_open_date done [05:25:28]produce_requested_data done [05:25:28]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156459,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [05:25:28]process_action_free close_receipt [05:25:28]json_value_free [05:25:28]json_value_free done [05:25:28]process_json_proto returns [05:25:28]Send response to host [05:25:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156459,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [05:25:28]free response buf [05:25:28]execute_script done [05:25:28]execute_script returns [05:25:28]free content buf [05:25:28]Sock 9.Close socket [05:25:28]Sock 9.Thread stoped [05:25:28]OFD Sender: No OFD packet to send [05:25:30]int [05:25:30]Write to MH i2c: 01 00 00 EE 33 21 [05:25:30]*** FLAG_PRN_KEY set [05:25:30]Write i2c OK [05:25:30]MH_I2C_Read... [05:25:30]Read from MH i2c: 01 [05:25:30]MH_I2C_Read... [05:25:30]Read from MH i2c: 01 07 00 [05:25:30]MH_I2C_Read... [05:25:30]Read from MH i2c: 01 07 00 EE 33 00 08 00 00 00 FF 0F 3E [05:25:30]state=0 [05:25:30]Key pressed [05:25:30]Feed [05:25:30]Write to MH i2c: D8 00 00 EF 33 F9 [05:25:30]Write i2c OK [05:25:30]MH_I2C_Read... [05:25:30]Read from MH i2c: D8 [05:25:30]MH_I2C_Read... [05:25:30]Read from MH i2c: D8 01 00 [05:25:30]MH_I2C_Read... [05:25:30]Read from MH i2c: D8 01 00 EF 33 00 FA [05:25:30]int [05:25:30]Write to MH i2c: 01 00 00 F0 33 23 [05:25:30]Write i2c OK [05:25:30]MH_I2C_Read... [05:25:30]Read from MH i2c: 01 [05:25:30]MH_I2C_Read... [05:25:30]Read from MH i2c: 01 07 00 [05:25:30]MH_I2C_Read... [05:25:30]Read from MH i2c: 01 07 00 F0 33 00 48 00 00 00 3C 00 AE [05:25:30]state=2 [05:25:30]Key pressed [05:25:31]int [05:25:31]Write to MH i2c: 01 00 00 F1 33 24 [05:25:31]*** FLAG_PRN_KEY reset [05:25:31]Write i2c OK [05:25:31]MH_I2C_Read... [05:25:31]Read from MH i2c: 01 [05:25:31]MH_I2C_Read... [05:25:31]Read from MH i2c: 01 07 00 [05:25:31]MH_I2C_Read... [05:25:31]Read from MH i2c: 01 07 00 F1 33 00 00 00 00 00 FD 0F 37 [05:25:31]state=2 [05:25:31]Stop feed [05:25:33]OFD Sender: No OFD packet to send [05:25:38]OFD Sender: No OFD packet to send [05:25:43]OFD Sender: No OFD packet to send [05:25:48]OFD Sender: No OFD packet to send [05:25:53]OFD Sender: No OFD packet to send [05:25:58]OFD Sender: No OFD packet to send [05:26:03]OFD Sender: No OFD packet to send [05:26:08]OFD Sender: No OFD packet to send [05:26:13]OFD Sender: No OFD packet to send [05:26:19]OFD Sender: No OFD packet to send [05:26:24]OFD Sender: No OFD packet to send [05:26:29]OFD Sender: No OFD packet to send [05:26:34]OFD Sender: No OFD packet to send [05:26:39]OFD Sender: No OFD packet to send [05:26:44]OFD Sender: No OFD packet to send [05:26:49]OFD Sender: No OFD packet to send [05:26:54]OFD Sender: No OFD packet to send [05:26:59]OFD Sender: No OFD packet to send [05:27:04]OFD Sender: No OFD packet to send [05:27:09]OFD Sender: No OFD packet to send [05:27:14]OFD Sender: No OFD packet to send [05:27:19]OFD Sender: No OFD packet to send [05:27:24]OFD Sender: No OFD packet to send [05:27:29]OFD Sender: No OFD packet to send [05:27:34]OFD Sender: No OFD packet to send [05:27:39]OFD Sender: No OFD packet to send [05:27:44]OFD Sender: No OFD packet to send [05:27:49]OFD Sender: No OFD packet to send [05:27:54]OFD Sender: No OFD packet to send [05:27:59]OFD Sender: No OFD packet to send [05:28:04]OFD Sender: No OFD packet to send [05:28:09]OFD Sender: No OFD packet to send [05:28:14]OFD Sender: No OFD packet to send [05:28:19]OFD Sender: No OFD packet to send [05:28:24]OFD Sender: No OFD packet to send [05:28:29]OFD Sender: No OFD packet to send [05:28:34]OFD Sender: No OFD packet to send [05:28:39]OFD Sender: No OFD packet to send [05:28:44]OFD Sender: No OFD packet to send [05:28:49]OFD Sender: No OFD packet to send [05:28:54]OFD Sender: No OFD packet to send [05:28:59]OFD Sender: No OFD packet to send [05:29:04]OFD Sender: No OFD packet to send [05:29:09]OFD Sender: No OFD packet to send [05:29:14]OFD Sender: No OFD packet to send [05:29:19]OFD Sender: No OFD packet to send [05:29:24]OFD Sender: No OFD packet to send [05:29:29]OFD Sender: No OFD packet to send [05:29:34]OFD Sender: No OFD packet to send [05:29:39]OFD Sender: No OFD packet to send [05:29:44]OFD Sender: No OFD packet to send [05:29:49]OFD Sender: No OFD packet to send [05:29:54]OFD Sender: No OFD packet to send [05:29:59]OFD Sender: No OFD packet to send [05:30:04]OFD Sender: No OFD packet to send [05:30:09]OFD Sender: No OFD packet to send [05:30:14]OFD Sender: No OFD packet to send [05:30:19]OFD Sender: No OFD packet to send [05:30:24]OFD Sender: No OFD packet to send [05:30:29]OFD Sender: No OFD packet to send [05:30:34]OFD Sender: No OFD packet to send [05:30:39]OFD Sender: No OFD packet to send [05:30:44]OFD Sender: No OFD packet to send [05:30:49]OFD Sender: No OFD packet to send [05:30:54]OFD Sender: No OFD packet to send [05:30:59]OFD Sender: No OFD packet to send [05:31:04]OFD Sender: No OFD packet to send [05:31:09]OFD Sender: No OFD packet to send [05:31:14]OFD Sender: No OFD packet to send [05:31:19]OFD Sender: No OFD packet to send [05:31:24]OFD Sender: No OFD packet to send [05:31:29]OFD Sender: No OFD packet to send [05:31:34]OFD Sender: No OFD packet to send [05:31:39]OFD Sender: No OFD packet to send [05:31:44]OFD Sender: No OFD packet to send [05:31:49]OFD Sender: No OFD packet to send [05:31:54]OFD Sender: No OFD packet to send [05:31:59]OFD Sender: No OFD packet to send [05:32:04]OFD Sender: No OFD packet to send [05:32:09]OFD Sender: No OFD packet to send [05:32:14]OFD Sender: No OFD packet to send [05:32:19]OFD Sender: No OFD packet to send [05:32:24]OFD Sender: No OFD packet to send [05:32:29]OFD Sender: No OFD packet to send [05:32:34]OFD Sender: No OFD packet to send [05:32:39]OFD Sender: No OFD packet to send [05:32:44]OFD Sender: No OFD packet to send [05:32:49]OFD Sender: No OFD packet to send [05:32:54]OFD Sender: No OFD packet to send [05:32:59]OFD Sender: No OFD packet to send [05:33:04]OFD Sender: No OFD packet to send [05:33:09]OFD Sender: No OFD packet to send [05:33:14]OFD Sender: No OFD packet to send [05:33:19]OFD Sender: No OFD packet to send [05:33:24]OFD Sender: No OFD packet to send [05:33:29]OFD Sender: No OFD packet to send [05:33:34]OFD Sender: No OFD packet to send [05:33:39]OFD Sender: No OFD packet to send [05:33:44]OFD Sender: No OFD packet to send [05:33:49]OFD Sender: No OFD packet to send [05:33:54]OFD Sender: No OFD packet to send [05:33:59]OFD Sender: No OFD packet to send [05:34:04]OFD Sender: No OFD packet to send [05:34:09]OFD Sender: No OFD packet to send [05:34:14]OFD Sender: No OFD packet to send [05:34:19]OFD Sender: No OFD packet to send [05:34:24]OFD Sender: No OFD packet to send [05:34:29]OFD Sender: No OFD packet to send [05:34:34]OFD Sender: No OFD packet to send [05:34:39]OFD Sender: No OFD packet to send [05:34:44]OFD Sender: No OFD packet to send [05:34:49]OFD Sender: No OFD packet to send [05:34:54]OFD Sender: No OFD packet to send [05:34:59]OFD Sender: No OFD packet to send [05:35:04]OFD Sender: No OFD packet to send [05:35:09]OFD Sender: No OFD packet to send [05:35:14]OFD Sender: No OFD packet to send [05:35:19]OFD Sender: No OFD packet to send [05:35:24]OFD Sender: No OFD packet to send [05:35:29]OFD Sender: No OFD packet to send [05:35:34]OFD Sender: No OFD packet to send [05:35:39]OFD Sender: No OFD packet to send [05:35:44]OFD Sender: No OFD packet to send [05:35:49]OFD Sender: No OFD packet to send [05:35:54]OFD Sender: No OFD packet to send [05:35:59]OFD Sender: No OFD packet to send [05:36:04]OFD Sender: No OFD packet to send [05:36:09]OFD Sender: No OFD packet to send [05:36:14]OFD Sender: No OFD packet to send [05:36:19]OFD Sender: No OFD packet to send [05:36:24]OFD Sender: No OFD packet to send [05:36:29]OFD Sender: No OFD packet to send [05:36:34]OFD Sender: No OFD packet to send [05:36:39]OFD Sender: No OFD packet to send [05:36:44]OFD Sender: No OFD packet to send [05:36:49]OFD Sender: No OFD packet to send [05:36:54]OFD Sender: No OFD packet to send [05:36:59]OFD Sender: No OFD packet to send [05:37:04]OFD Sender: No OFD packet to send [05:37:09]OFD Sender: No OFD packet to send [05:37:14]OFD Sender: No OFD packet to send [05:37:19]OFD Sender: No OFD packet to send [05:37:24]OFD Sender: No OFD packet to send [05:37:29]OFD Sender: No OFD packet to send [05:37:34]OFD Sender: No OFD packet to send [05:37:39]OFD Sender: No OFD packet to send [05:37:44]OFD Sender: No OFD packet to send [05:37:49]OFD Sender: No OFD packet to send [05:37:54]OFD Sender: No OFD packet to send [05:37:59]OFD Sender: No OFD packet to send [05:38:04]OFD Sender: No OFD packet to send [05:38:09]OFD Sender: No OFD packet to send [05:38:14]OFD Sender: No OFD packet to send [05:38:19]OFD Sender: No OFD packet to send [05:38:24]OFD Sender: No OFD packet to send [05:38:29]OFD Sender: No OFD packet to send [05:38:34]OFD Sender: No OFD packet to send [05:38:39]OFD Sender: No OFD packet to send [05:38:44]OFD Sender: No OFD packet to send [05:38:49]OFD Sender: No OFD packet to send [05:38:54]OFD Sender: No OFD packet to send [05:38:59]OFD Sender: No OFD packet to send [05:39:04]OFD Sender: No OFD packet to send [05:39:09]OFD Sender: No OFD packet to send [05:39:14]OFD Sender: No OFD packet to send [05:39:19]OFD Sender: No OFD packet to send [05:39:24]OFD Sender: No OFD packet to send [05:39:29]OFD Sender: No OFD packet to send [05:39:34]OFD Sender: No OFD packet to send [05:39:39]OFD Sender: No OFD packet to send [05:39:44]OFD Sender: No OFD packet to send [05:39:49]OFD Sender: No OFD packet to send [05:39:54]OFD Sender: No OFD packet to send [05:39:59]OFD Sender: No OFD packet to send [05:40:04]OFD Sender: No OFD packet to send [05:40:09]OFD Sender: No OFD packet to send [05:40:14]OFD Sender: No OFD packet to send [05:40:19]OFD Sender: No OFD packet to send [05:40:24]OFD Sender: No OFD packet to send [05:40:29]OFD Sender: No OFD packet to send [05:40:34]OFD Sender: No OFD packet to send [05:40:39]OFD Sender: No OFD packet to send [05:40:44]OFD Sender: No OFD packet to send [05:40:49]OFD Sender: No OFD packet to send [05:40:54]OFD Sender: No OFD packet to send [05:40:59]OFD Sender: No OFD packet to send [05:41:04]OFD Sender: No OFD packet to send [05:41:09]OFD Sender: No OFD packet to send [05:41:14]OFD Sender: No OFD packet to send [05:41:19]OFD Sender: No OFD packet to send [05:41:24]OFD Sender: No OFD packet to send [05:41:29]OFD Sender: No OFD packet to send [05:41:34]OFD Sender: No OFD packet to send [05:41:39]OFD Sender: No OFD packet to send [05:41:44]OFD Sender: No OFD packet to send [05:41:49]OFD Sender: No OFD packet to send [05:41:54]OFD Sender: No OFD packet to send [05:41:59]OFD Sender: No OFD packet to send [05:42:04]OFD Sender: No OFD packet to send [05:42:09]OFD Sender: No OFD packet to send [05:42:14]OFD Sender: No OFD packet to send [05:42:19]OFD Sender: No OFD packet to send [05:42:24]OFD Sender: No OFD packet to send [05:42:29]OFD Sender: No OFD packet to send [05:42:34]OFD Sender: No OFD packet to send [05:42:39]OFD Sender: No OFD packet to send [05:42:44]OFD Sender: No OFD packet to send [05:42:49]OFD Sender: No OFD packet to send [05:42:54]OFD Sender: No OFD packet to send [05:42:59]OFD Sender: No OFD packet to send [05:43:04]OFD Sender: No OFD packet to send [05:43:09]OFD Sender: No OFD packet to send [05:43:14]OFD Sender: No OFD packet to send [05:43:19]OFD Sender: No OFD packet to send [05:43:24]OFD Sender: No OFD packet to send [05:43:29]OFD Sender: No OFD packet to send [05:43:34]OFD Sender: No OFD packet to send [05:43:39]OFD Sender: No OFD packet to send [05:43:44]OFD Sender: No OFD packet to send [05:43:49]OFD Sender: No OFD packet to send [05:43:54]OFD Sender: No OFD packet to send [05:43:59]OFD Sender: No OFD packet to send [05:44:04]OFD Sender: No OFD packet to send [05:44:09]OFD Sender: No OFD packet to send [05:44:14]OFD Sender: No OFD packet to send [05:44:19]OFD Sender: No OFD packet to send [05:44:24]OFD Sender: No OFD packet to send [05:44:29]OFD Sender: No OFD packet to send [05:44:34]OFD Sender: No OFD packet to send [05:44:39]OFD Sender: No OFD packet to send [05:44:44]OFD Sender: No OFD packet to send [05:44:49]OFD Sender: No OFD packet to send [05:44:54]OFD Sender: No OFD packet to send [05:44:59]OFD Sender: No OFD packet to send [05:45:04]OFD Sender: No OFD packet to send [05:45:09]OFD Sender: No OFD packet to send [05:45:14]OFD Sender: No OFD packet to send [05:45:19]OFD Sender: No OFD packet to send [05:45:24]OFD Sender: No OFD packet to send [05:45:29]OFD Sender: No OFD packet to send [05:45:34]OFD Sender: No OFD packet to send [05:45:39]OFD Sender: No OFD packet to send [05:45:44]OFD Sender: No OFD packet to send [05:45:50]OFD Sender: No OFD packet to send [05:45:55]OFD Sender: No OFD packet to send [05:46:00]OFD Sender: No OFD packet to send [05:46:05]OFD Sender: No OFD packet to send [05:46:10]OFD Sender: No OFD packet to send [05:46:15]OFD Sender: No OFD packet to send [05:46:20]OFD Sender: No OFD packet to send [05:46:25]OFD Sender: No OFD packet to send [05:46:30]OFD Sender: No OFD packet to send [05:46:35]OFD Sender: No OFD packet to send [05:46:40]OFD Sender: No OFD packet to send [05:46:45]OFD Sender: No OFD packet to send [05:46:50]OFD Sender: No OFD packet to send [05:46:55]OFD Sender: No OFD packet to send [05:47:00]OFD Sender: No OFD packet to send [05:47:05]OFD Sender: No OFD packet to send [05:47:10]OFD Sender: No OFD packet to send [05:47:15]OFD Sender: No OFD packet to send [05:47:20]OFD Sender: No OFD packet to send [05:47:25]OFD Sender: No OFD packet to send [05:47:30]OFD Sender: No OFD packet to send [05:47:35]OFD Sender: No OFD packet to send [05:47:40]OFD Sender: No OFD packet to send [05:47:45]OFD Sender: No OFD packet to send [05:47:50]OFD Sender: No OFD packet to send [05:47:55]OFD Sender: No OFD packet to send [05:48:00]OFD Sender: No OFD packet to send [05:48:05]OFD Sender: No OFD packet to send [05:48:10]OFD Sender: No OFD packet to send [05:48:15]OFD Sender: No OFD packet to send [05:48:20]OFD Sender: No OFD packet to send [05:48:25]OFD Sender: No OFD packet to send [05:48:30]OFD Sender: No OFD packet to send [05:48:35]OFD Sender: No OFD packet to send [05:48:40]OFD Sender: No OFD packet to send [05:48:45]OFD Sender: No OFD packet to send [05:48:50]OFD Sender: No OFD packet to send [05:48:55]OFD Sender: No OFD packet to send [05:49:00]OFD Sender: No OFD packet to send [05:49:05]OFD Sender: No OFD packet to send [05:49:10]OFD Sender: No OFD packet to send [05:49:15]OFD Sender: No OFD packet to send [05:49:20]OFD Sender: No OFD packet to send [05:49:25]OFD Sender: No OFD packet to send [05:49:30]OFD Sender: No OFD packet to send [05:49:35]OFD Sender: No OFD packet to send [05:49:40]OFD Sender: No OFD packet to send [05:49:45]OFD Sender: No OFD packet to send [05:49:50]OFD Sender: No OFD packet to send [05:49:55]OFD Sender: No OFD packet to send [05:50:00]OFD Sender: No OFD packet to send [05:50:05]OFD Sender: No OFD packet to send [05:50:10]OFD Sender: No OFD packet to send [05:50:15]OFD Sender: No OFD packet to send [05:50:20]OFD Sender: No OFD packet to send [05:50:25]OFD Sender: No OFD packet to send [05:50:30]OFD Sender: No OFD packet to send [05:50:35]OFD Sender: No OFD packet to send [05:50:40]OFD Sender: No OFD packet to send [05:50:45]OFD Sender: No OFD packet to send [05:50:50]OFD Sender: No OFD packet to send [05:50:55]OFD Sender: No OFD packet to send [05:51:00]OFD Sender: No OFD packet to send [05:51:05]OFD Sender: No OFD packet to send [05:51:10]OFD Sender: No OFD packet to send [05:51:15]OFD Sender: No OFD packet to send [05:51:20]OFD Sender: No OFD packet to send [05:51:25]OFD Sender: No OFD packet to send [05:51:30]OFD Sender: No OFD packet to send [05:51:35]OFD Sender: No OFD packet to send [05:51:40]OFD Sender: No OFD packet to send [05:51:45]OFD Sender: No OFD packet to send [05:51:50]OFD Sender: No OFD packet to send [05:51:55]OFD Sender: No OFD packet to send [05:52:00]OFD Sender: No OFD packet to send [05:52:05]OFD Sender: No OFD packet to send [05:52:10]OFD Sender: No OFD packet to send [05:52:15]OFD Sender: No OFD packet to send [05:52:20]OFD Sender: No OFD packet to send [05:52:25]OFD Sender: No OFD packet to send [05:52:30]OFD Sender: No OFD packet to send [05:52:35]OFD Sender: No OFD packet to send [05:52:40]OFD Sender: No OFD packet to send [05:52:45]OFD Sender: No OFD packet to send [05:52:50]OFD Sender: No OFD packet to send [05:52:55]OFD Sender: No OFD packet to send [05:53:00]OFD Sender: No OFD packet to send [05:53:05]OFD Sender: No OFD packet to send [05:53:10]OFD Sender: No OFD packet to send [05:53:15]OFD Sender: No OFD packet to send [05:53:20]OFD Sender: No OFD packet to send [05:53:25]OFD Sender: No OFD packet to send [05:53:30]OFD Sender: No OFD packet to send [05:53:35]OFD Sender: No OFD packet to send [05:53:40]OFD Sender: No OFD packet to send [05:53:45]OFD Sender: No OFD packet to send [05:53:50]OFD Sender: No OFD packet to send [05:53:55]OFD Sender: No OFD packet to send [05:54:00]OFD Sender: No OFD packet to send [05:54:05]OFD Sender: No OFD packet to send [05:54:10]OFD Sender: No OFD packet to send [05:54:15]OFD Sender: No OFD packet to send [05:54:20]OFD Sender: No OFD packet to send [05:54:25]OFD Sender: No OFD packet to send [05:54:30]OFD Sender: No OFD packet to send [05:54:35]OFD Sender: No OFD packet to send [05:54:40]OFD Sender: No OFD packet to send [05:54:45]OFD Sender: No OFD packet to send [05:54:50]OFD Sender: No OFD packet to send [05:54:55]OFD Sender: No OFD packet to send [05:55:00]OFD Sender: No OFD packet to send [05:55:05]OFD Sender: No OFD packet to send [05:55:10]OFD Sender: No OFD packet to send [05:55:15]OFD Sender: No OFD packet to send [05:55:20]OFD Sender: No OFD packet to send [05:55:25]OFD Sender: No OFD packet to send [05:55:30]OFD Sender: No OFD packet to send [05:55:35]OFD Sender: No OFD packet to send [05:55:40]OFD Sender: No OFD packet to send [05:55:45]OFD Sender: No OFD packet to send [05:55:50]OFD Sender: No OFD packet to send [05:55:55]OFD Sender: No OFD packet to send [05:56:00]OFD Sender: No OFD packet to send [05:56:05]OFD Sender: No OFD packet to send [05:56:10]OFD Sender: No OFD packet to send [05:56:15]OFD Sender: No OFD packet to send [05:56:20]OFD Sender: No OFD packet to send [05:56:25]OFD Sender: No OFD packet to send [05:56:30]OFD Sender: No OFD packet to send [05:56:35]OFD Sender: No OFD packet to send [05:56:40]OFD Sender: No OFD packet to send [05:56:45]OFD Sender: No OFD packet to send [05:56:50]OFD Sender: No OFD packet to send [05:56:55]OFD Sender: No OFD packet to send [05:57:00]OFD Sender: No OFD packet to send [05:57:05]OFD Sender: No OFD packet to send [05:57:10]OFD Sender: No OFD packet to send [05:57:15]OFD Sender: No OFD packet to send [05:57:20]OFD Sender: No OFD packet to send [05:57:25]OFD Sender: No OFD packet to send [05:57:30]OFD Sender: No OFD packet to send [05:57:35]OFD Sender: No OFD packet to send [05:57:40]OFD Sender: No OFD packet to send [05:57:45]OFD Sender: No OFD packet to send [05:57:50]OFD Sender: No OFD packet to send [05:57:55]OFD Sender: No OFD packet to send [05:58:00]OFD Sender: No OFD packet to send [05:58:05]OFD Sender: No OFD packet to send [05:58:10]OFD Sender: No OFD packet to send [05:58:15]OFD Sender: No OFD packet to send [05:58:20]OFD Sender: No OFD packet to send [05:58:25]OFD Sender: No OFD packet to send [05:58:30]OFD Sender: No OFD packet to send [05:58:35]OFD Sender: No OFD packet to send [05:58:40]OFD Sender: No OFD packet to send [05:58:45]OFD Sender: No OFD packet to send [05:58:50]OFD Sender: No OFD packet to send [05:58:55]OFD Sender: No OFD packet to send [05:59:00]OFD Sender: No OFD packet to send [05:59:05]OFD Sender: No OFD packet to send [05:59:10]OFD Sender: No OFD packet to send [05:59:15]OFD Sender: No OFD packet to send [05:59:20]OFD Sender: No OFD packet to send [05:59:25]OFD Sender: No OFD packet to send [05:59:30]OFD Sender: No OFD packet to send [05:59:35]OFD Sender: No OFD packet to send [05:59:40]OFD Sender: No OFD packet to send [05:59:45]OFD Sender: No OFD packet to send [05:59:50]OFD Sender: No OFD packet to send [05:59:55]OFD Sender: No OFD packet to send [06:00:00]OFD Sender: No OFD packet to send [06:00:05]OFD Sender: No OFD packet to send [06:00:10]OFD Sender: No OFD packet to send [06:00:15]OFD Sender: No OFD packet to send [06:00:20]OFD Sender: No OFD packet to send [06:00:25]OFD Sender: No OFD packet to send [06:00:30]OFD Sender: No OFD packet to send [06:00:35]OFD Sender: No OFD packet to send [06:00:40]OFD Sender: No OFD packet to send [06:00:45]OFD Sender: No OFD packet to send [06:00:50]OFD Sender: No OFD packet to send [06:00:55]OFD Sender: No OFD packet to send [06:01:00]OFD Sender: No OFD packet to send [06:01:05]OFD Sender: No OFD packet to send [06:01:10]OFD Sender: No OFD packet to send [06:01:15]OFD Sender: No OFD packet to send [06:01:20]OFD Sender: No OFD packet to send [06:01:25]OFD Sender: No OFD packet to send [06:01:30]OFD Sender: No OFD packet to send [06:01:35]OFD Sender: No OFD packet to send [06:01:40]OFD Sender: No OFD packet to send [06:01:45]OFD Sender: No OFD packet to send [06:01:50]OFD Sender: No OFD packet to send [06:01:55]OFD Sender: No OFD packet to send [06:02:00]OFD Sender: No OFD packet to send [06:02:05]OFD Sender: No OFD packet to send [06:02:10]OFD Sender: No OFD packet to send [06:02:15]OFD Sender: No OFD packet to send [06:02:20]OFD Sender: No OFD packet to send [06:02:25]OFD Sender: No OFD packet to send [06:02:30]OFD Sender: No OFD packet to send [06:02:35]OFD Sender: No OFD packet to send [06:02:40]OFD Sender: No OFD packet to send [06:02:45]OFD Sender: No OFD packet to send [06:02:50]OFD Sender: No OFD packet to send [06:02:55]OFD Sender: No OFD packet to send [06:03:00]OFD Sender: No OFD packet to send [06:03:05]OFD Sender: No OFD packet to send [06:03:10]OFD Sender: No OFD packet to send [06:03:15]OFD Sender: No OFD packet to send [06:03:20]accept exits with 10 [06:03:20]New connection [06:03:20]New thread 3066834276 created [06:03:20]Thread 3066977636 joined [06:03:20]Waiting for new connection... [06:03:20] Sock 10.Parse request [06:03:20]Sock 10.Check first char [06:03:20]Sock 10.First char is OK [06:03:20]request: POST /json_proto HTTP/1.0 [06:03:20]Method: POST [06:03:20]URL: /json_proto [06:03:20]Method is POST - this is cgi request [06:03:20]url: /json_proto [06:03:20]query_string will be loaded in cgi processing [06:03:20]execute_cgi json_proto POST (null) [06:03:20]execute_cgi path=json_proto method=POST [06:03:20]POST find Content-Length [06:03:20]Host: 172.17.63.3:8080 [06:03:20]Content-Length: 677 [06:03:20]Content-Type: application/json [06:03:20] [06:03:20]POST finish read [06:03:20]Found Content-Length = 677 [06:03:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99273", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "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" ] } } [06:03:20]execute_script... [06:03: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)99273", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "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" ] } } [06:03:20]POST & json_proto [06:03:20]process_json_proto [06:03:20]json parsed OK: [06:03:20]protocol is kg_v1.0 [06:03:20]action value=close_receipt [06:03:20]process_action close_receipt [06:03:20]cmd_close_receipt [06:03:20]MH_GetDate [06:03:20]Write to MH i2c: F0 00 00 F2 33 14 [06:03:20]Write i2c OK [06:03:20]MH_I2C_Read... [06:03:20]Read from MH i2c: F0 [06:03:20]MH_I2C_Read... [06:03:20]Read from MH i2c: F0 09 00 [06:03:20]MH_I2C_Read... [06:03:20]Read from MH i2c: F0 09 00 F2 33 00 AC D7 1D 67 50 D1 6C 64 15 [06:03:20]GetLastDocTimeStamp 1730006730 [06:03:20]current date 1730009004 [06:03:20]FM_GetShiftState [06:03:20]SAM_PROTO_GetShiftState [06:03:20]wFMCommunicate request_size=4 [06:03:20]MH_SAM_APDU [06:03:20]CAPDU: 80 13 01 00 [06:03:20]Write to MH i2c: E2 08 00 F3 33 80 13 01 00 00 00 00 00 A3 [06:03:20]Write i2c OK [06:03:20]MH_I2C_Read... [06:03:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:03:20]Read from MH i2c: E2 [06:03:20]MH_I2C_Read... [06:03:20]Read from MH i2c: E2 0E 00 [06:03:20]MH_I2C_Read... [06:03:20]Read from MH i2c: E2 0E 00 F3 33 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 70 [06:03:20]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [06:03:20]wFMCommunicate OK [06:03:20]SAM_PROTO_GetShiftState done [06:03:20]FM_GetShiftState done [06:03:20]opened in 1729989044 [06:03:20]opened+sec_in_day 1730075444 [06:03:20]quantity*price = 80012 [06:03:20]sum+1 = 80013 [06:03:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 11 27.10.2024 06:03 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156460 ФПД: 94822497315631 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T060324&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156460&fm=94822497315631&tin=02508201610067®Number=0000000000091693&sum=80000 [06:03:21]StoreToDocumentArchive [06:03:21]shift 537 fd 156460 [06:03:21]save to /storage/0537/doc_00156460 [06:03:21]save last doc name /storage/0537/doc_00156460 to /storage/kkm_last_doc_name [06:03:21]save OK [06:03:21]Clear old archive folders... [06:03:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:03:21]tlvbuf is 016BAA50 [06:03:21]SAM_PROTO_ClearQueue [06:03:21]wFMCommunicate request_size=4 [06:03:21]MH_SAM_APDU [06:03:21]CAPDU: 80 09 00 00 [06:03:21]Write to MH i2c: E2 08 00 00 34 80 09 00 00 00 00 00 00 A6 [06:03:21]Write i2c OK [06:03:21]MH_I2C_Read... [06:03:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:03:21]Read from MH i2c: E2 [06:03:21]MH_I2C_Read... [06:03:21]Read from MH i2c: E2 03 00 [06:03:21]MH_I2C_Read... [06:03:21]Read from MH i2c: E2 03 00 00 34 00 90 00 A8 [06:03:21]RAPDU: 90 00 [06:03:21]wFMCommunicate OK [06:03:21]SAM_PROTO_ClearQueue done [06:03:21]KKMCreateOFDPacket [06:03:21]OFDProtocolAddRootSTLVToBuf [06:03:21]FM_MakeSignedData [06:03:21]FM_MakeSignedData [06:03:21]SAM_PROTO_SignData [06:03:21]wFMCommunicate request_size=4 [06:03:21]MH_SAM_APDU [06:03:21]CAPDU: 80 0D 01 02 [06:03:21]Write to MH i2c: E2 08 00 01 34 80 0D 01 02 00 00 00 00 AE [06:03:21]Write i2c OK [06:03:21]MH_I2C_Read... [06:03:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:03:21]Read from MH i2c: E2 [06:03:21]MH_I2C_Read... [06:03:21]Read from MH i2c: E2 03 00 [06:03:21]MH_I2C_Read... [06:03:21]Read from MH i2c: E2 03 00 01 34 00 90 00 A9 [06:03:21]RAPDU: 90 00 [06:03:21]wFMCommunicate OK [06:03:21]wFMCommunicate request_size=255 [06:03:21]MH_SAM_APDU [06:03: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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 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 0B 00 00 00 F4 03 04 00 AC D7 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2C 63 02 00 35 04 06 00 56 [06:03:21]Write to MH i2c: E2 02 01 02 34 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 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 0B 00 00 00 F4 03 04 00 AC D7 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2C 63 02 00 35 04 06 00 56 00 00 42 [06:03:21]Write i2c OK [06:03:21]MH_I2C_Read... [06:03:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:03:21]Read from MH i2c: E2 [06:03:21]MH_I2C_Read... [06:03:21]Read from MH i2c: E2 03 00 [06:03:21]MH_I2C_Read... [06:03:21]Read from MH i2c: E2 03 00 02 34 00 90 00 AA [06:03:21]RAPDU: 90 00 [06:03:21]wFMCommunicate OK [06:03:21]wFMCommunicate request_size=10 [06:03:21]MH_SAM_APDU [06:03:21]CAPDU: 80 0D 02 02 05 3D 95 44 EB 2F [06:03:21]Write to MH i2c: E2 0D 00 03 34 80 0D 02 02 05 00 3D 95 44 EB 2F 00 00 EB [06:03:21]Write i2c OK [06:03:21]MH_I2C_Read... [06:03:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:03:21]Read from MH i2c: E2 [06:03:21]MH_I2C_Read... [06:03:21]Read from MH i2c: E2 03 00 [06:03:21]MH_I2C_Read... [06:03:21]Read from MH i2c: E2 03 00 03 34 00 90 00 AB [06:03:21]RAPDU: 90 00 [06:03:21]wFMCommunicate OK [06:03:21]wFMCommunicate request_size=4 [06:03:21]MH_SAM_APDU [06:03:21]CAPDU: 80 0D 03 02 [06:03:21]Write to MH i2c: E2 08 00 04 34 80 0D 03 02 00 00 00 00 B3 [06:03:21]Write i2c OK [06:03:21]MH_I2C_Read... [06:03:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:03:22]Read from MH i2c: E2 [06:03:22]MH_I2C_Read... [06:03:22]Read from MH i2c: E2 0B 00 [06:03:22]MH_I2C_Read... [06:03:22]Read from MH i2c: E2 0B 00 04 34 00 7E B2 31 EB D1 91 41 13 90 00 B6 [06:03:22]RAPDU: 7E B2 31 EB D1 91 41 13 90 00 [06:03:22]wFMCommunicate OK [06:03:22]SAM_PROTO_SignData done [06:03:22]FM_MakeSignedData done [06:03:22]CreateOFDProtocolMessage [06:03:22]wFMCommunicate request_size=4 [06:03:22]MH_SAM_APDU [06:03:22]CAPDU: 80 11 00 00 [06:03:22]Write to MH i2c: E2 08 00 05 34 80 11 00 00 00 00 00 00 B3 [06:03:22]Write i2c OK [06:03:22]MH_I2C_Read... [06:03:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:03:22]Read from MH i2c: E2 [06:03:22]MH_I2C_Read... [06:03:22]Read from MH i2c: E2 17 00 [06:03:22]MH_I2C_Read... [06:03:22]Read from MH i2c: E2 17 00 05 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 08 [06:03:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [06:03:22]wFMCommunicate OK [06:03:22]CreateOFDProtocolMessage done [06:03:22]OFDSenderStorePacket 156460 [06:03:22]StoreOFDPacket docnum=156460 [06:03:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 38 95 07 01 7E 50 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 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 0B 00 00 00 F4 03 04 00 AC D7 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2C 63 02 00 35 04 06 00 56 3D 95 44 EB 2F 7E B2 31 EB D1 91 41 13 [06:03:22]CheckFolder [06:03:22]dirname=/storage/ofd_packets [06:03:22]CheckFolder done [06:03:22]ProducePacketName [06:03:22]name=ofd_packets/00156460 [06:03:22]NVStorageSaveData ofd_packets/00156460 [06:03:22]File name is /storage/ofd_packets/00156460 [06:03:22]Write 301 bytes [06:03:22]NVStorageSaveData done [06:03:22]OFDSenderStorePacket done [06:03:22]KKMCreateOFDPacket done [06:03:22]NVStorageSaveData kkm_last_timestamp [06:03:22]File name is /storage/kkm_last_timestamp [06:03:22]Write 4 bytes [06:03:22]NVStorageSaveData done [06:03:22]ExternCall_PrintAddStr [06:03:22]wPrintStart [06:03:22]Write to MH i2c: 01 00 00 06 34 3A [06:03:22]Write i2c OK [06:03:22]MH_I2C_Read... [06:03:22]Read from MH i2c: 01 [06:03:22]MH_I2C_Read... [06:03:22]Read from MH i2c: 01 07 00 [06:03:22]MH_I2C_Read... [06:03:22]Read from MH i2c: 01 07 00 06 34 00 00 00 00 00 FF 0F 4F [06:03:22]RasterBufferAndPrint [06:03:22]line Счет N : (1)99273 [06:03:22]line ИНН: 02508201610067 [06:03:22]line Контрольно-Кассовый Чек [06:03:22]line ПРОДАЖА [06:03:22]line ТРК (МРК, ГНК) : 21 [06:03:22]line Товар: 2710124130 [06:03:22]line Аи-92-К-5 [06:03:22]line 11.960 * 66.90 [06:03:22]line = 800.12 [06:03:22]line НДС 12% НСП 1% [06:03:22]line > о реализуемом товаре [06:03:22]line ОКРУГЛЕНИЕ: -0.12 [06:03:22]line ИТОГО: 800.00 [06:03:22]line Внесено: 800.00 [06:03:22]line СДАЧА: 0.00 [06:03:22]line НСП 1% : 7.08 [06:03:22]line НДС 12% : 84.97 [06:03:22]line Наличными: 800.00 [06:03:22]line Безнал.: 0.00 [06:03:22]line Место: АЗС № 143 "Партнер Нефть" [06:03:22]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [06:03:22]line СНО: Общий режим [06:03:22]line Чек 11 27.10.2024 06:03 [06:03:22]line Смена: 537 ФФД: 1.0 [06:03:22]line ЗНМ: 0300000096 [06:03:22]line РНМ: 0000000000091693 [06:03:22]line Версия ККМ: 001 [06:03:22]line ФМ: 0000000000871792 [06:03:22]line ФД: 156460 [06:03:22]line ФПД: 94822497315631 [06:03:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T060324&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156460&fm=94822497315631&tin=02508201610067®Number=0000000000091693&sum=80000 [06:03:22]OFD Sender: Processing packet 156460 [packets to send 31, broken 30] [06:03:22]ProducePacketName [06:03:22]name=ofd_packets/00156460 [06:03:22]OFD Sender: To server: pG, [06:03:22]CommunicateWithHost lk.salyk.kg:30040 [06:03:22]ConnectInit lk.salyk.kg [06:03:22]written 0, free lines is 4095 [06:03:22]Connected sock=9 [06:03:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 38 95 07 01 7E 50 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 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 0B 00 00 00 F4 03 04 00 AC D7 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2C 63 02 00 35 04 06 00 56 3D 95 44 EB 2F 7E B2 31 EB D1 91 41 13 [06:03:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 68 44 47 00 1B 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2C 63 02 00 F4 03 04 00 1D 7D 1D 67 B6 04 01 00 00 FE 7F 98 AB 18 7D 29 C2 [06:03:22]CommunicateWithHost err = 0 [06:03:22]CheckOFDResponse [06:03:22]1017 (14) - 77093643461234 [06:03:22]1041 (16) - 0000000000871792 [06:03:22]1040 (4) - 156460 [06:03:22]1012 (4) - 26.10.2024 23:37 [06:03:22]1206 (1) - 0 [06:03:22]OFD Sender: Remove packet 156460 [06:03:22]ProducePacketName [06:03:22]name=ofd_packets/00156460 [06:03:22]NVStorageDeleteData [06:03:22]Write to MH i2c: 01 00 00 31 34 65 [06:03:22]Write i2c OK [06:03:22]MH_I2C_Read... [06:03:22]Read from MH i2c: 01 [06:03:22]MH_I2C_Read... [06:03:22]Read from MH i2c: 01 07 00 [06:03:22]MH_I2C_Read... [06:03:22]Read from MH i2c: 01 07 00 31 34 00 00 00 00 00 D6 0C 4E [06:03:22]RasterBufferAndPrint [06:03:22]line [06:03:22]line [06:03:22]line [06:03:22]line [06:03:22]line [06:03:22]written 0, free lines is 3293 [06:03:22]process_action close_receipt done [06:03:22]requested_data is exist [06:03:22]produce_requested_data [06:03:22]requested_item fm.sn is exist - process it [06:03:22]wFMCommunicate request_size=4 [06:03:22]MH_SAM_APDU [06:03:22]CAPDU: 80 11 00 00 [06:03:22]Write to MH i2c: E2 08 00 38 34 80 11 00 00 00 00 00 00 E6 [06:03:22]Write i2c OK [06:03:22]MH_I2C_Read... [06:03:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:03:22]Read from MH i2c: E2 [06:03:22]MH_I2C_Read... [06:03:22]Read from MH i2c: E2 17 00 [06:03:22]MH_I2C_Read... [06:03:22]Read from MH i2c: E2 17 00 38 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 3B [06:03:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [06:03:22]wFMCommunicate OK [06:03:22]requested_item fd.num is exist - process it [06:03:22]SAM_PROTO_GetFieldsCounters [06:03:22]wFMCommunicate request_size=4 [06:03:22]MH_SAM_APDU [06:03:22]CAPDU: 80 13 00 00 [06:03:22]Write to MH i2c: E2 08 00 39 34 80 13 00 00 00 00 00 00 E9 [06:03:22]Write i2c OK [06:03:22]MH_I2C_Read... [06:03:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:03:23]Read from MH i2c: E2 [06:03:23]MH_I2C_Read... [06:03:23]Read from MH i2c: E2 62 00 [06:03:23]MH_I2C_Read... [06:03:23]Read from MH i2c: E2 62 00 39 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 2C 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 DC [06:03:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 2C 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:03:23]wFMCommunicate OK [06:03:23]SAM_PROTO_GetFieldsCounters done [06:03:23]requested_item shift.num is exist - process it [06:03:23]requested_item shift.opened is exist - process it [06:03:23]req_shift_opened [06:03:23]FM_GetShiftState [06:03:23]SAM_PROTO_GetShiftState [06:03:23]wFMCommunicate request_size=4 [06:03:23]MH_SAM_APDU [06:03:23]CAPDU: 80 13 01 00 [06:03:23]Write to MH i2c: E2 08 00 3A 34 80 13 01 00 00 00 00 00 EB [06:03:23]Write i2c OK [06:03:23]MH_I2C_Read... [06:03:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:03:23]Read from MH i2c: E2 [06:03:23]MH_I2C_Read... [06:03:23]Read from MH i2c: E2 0E 00 [06:03:23]MH_I2C_Read... [06:03:23]Read from MH i2c: E2 0E 00 3A 34 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 B8 [06:03:23]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [06:03:23]wFMCommunicate OK [06:03:23]SAM_PROTO_GetShiftState done [06:03:23]FM_GetShiftState done [06:03:23]req_shift_opened done [06:03:23]requested_item shift.open_date is exist - process it [06:03:23]req_shift_open_date [06:03:23]req_shift_open_date done [06:03:23]produce_requested_data done [06:03:23]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156460,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [06:03:23]process_action_free close_receipt [06:03:23]json_value_free [06:03:23]json_value_free done [06:03:23]process_json_proto returns [06:03:23]Send response to host [06:03:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156460,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [06:03:23]free response buf [06:03:23]execute_script done [06:03:23]execute_script returns [06:03:23]free content buf [06:03:23]Sock 10.Close socket [06:03:23]Sock 10.Thread stoped [06:03:23]OFD Sender: No OFD packet to send [06:03:28]OFD Sender: No OFD packet to send [06:03:33]OFD Sender: No OFD packet to send [06:03:38]OFD Sender: No OFD packet to send [06:03:43]OFD Sender: No OFD packet to send [06:03:48]OFD Sender: No OFD packet to send [06:03:53]OFD Sender: No OFD packet to send [06:03:58]OFD Sender: No OFD packet to send [06:04:03]OFD Sender: No OFD packet to send [06:04:08]OFD Sender: No OFD packet to send [06:04:13]OFD Sender: No OFD packet to send [06:04:18]OFD Sender: No OFD packet to send [06:04:23]OFD Sender: No OFD packet to send [06:04:28]OFD Sender: No OFD packet to send [06:04:33]OFD Sender: No OFD packet to send [06:04:38]OFD Sender: No OFD packet to send [06:04:43]OFD Sender: No OFD packet to send [06:04:48]OFD Sender: No OFD packet to send [06:04:53]OFD Sender: No OFD packet to send [06:04:58]OFD Sender: No OFD packet to send [06:05:03]OFD Sender: No OFD packet to send [06:05:08]OFD Sender: No OFD packet to send [06:05:13]OFD Sender: No OFD packet to send [06:05:18]OFD Sender: No OFD packet to send [06:05:23]OFD Sender: No OFD packet to send [06:05:28]OFD Sender: No OFD packet to send [06:05:33]OFD Sender: No OFD packet to send [06:05:38]OFD Sender: No OFD packet to send [06:05:43]OFD Sender: No OFD packet to send [06:05:48]OFD Sender: No OFD packet to send [06:05:53]OFD Sender: No OFD packet to send [06:05:58]OFD Sender: No OFD packet to send [06:06:03]OFD Sender: No OFD packet to send [06:06:08]OFD Sender: No OFD packet to send [06:06:13]OFD Sender: No OFD packet to send [06:06:18]OFD Sender: No OFD packet to send [06:06:23]OFD Sender: No OFD packet to send [06:06:28]OFD Sender: No OFD packet to send [06:06:33]OFD Sender: No OFD packet to send [06:06:38]OFD Sender: No OFD packet to send [06:06:43]OFD Sender: No OFD packet to send [06:06:48]OFD Sender: No OFD packet to send [06:06:53]OFD Sender: No OFD packet to send [06:06:58]OFD Sender: No OFD packet to send [06:07:03]OFD Sender: No OFD packet to send [06:07:08]OFD Sender: No OFD packet to send [06:07:13]OFD Sender: No OFD packet to send [06:07:18]OFD Sender: No OFD packet to send [06:07:23]OFD Sender: No OFD packet to send [06:07:28]OFD Sender: No OFD packet to send [06:07:33]OFD Sender: No OFD packet to send [06:07:38]OFD Sender: No OFD packet to send [06:07:43]OFD Sender: No OFD packet to send [06:07:48]OFD Sender: No OFD packet to send [06:07:53]OFD Sender: No OFD packet to send [06:07:58]OFD Sender: No OFD packet to send [06:08:03]OFD Sender: No OFD packet to send [06:08:08]OFD Sender: No OFD packet to send [06:08:13]OFD Sender: No OFD packet to send [06:08:18]OFD Sender: No OFD packet to send [06:08:23]OFD Sender: No OFD packet to send [06:08:28]OFD Sender: No OFD packet to send [06:08:33]OFD Sender: No OFD packet to send [06:08:38]OFD Sender: No OFD packet to send [06:08:43]OFD Sender: No OFD packet to send [06:08:48]OFD Sender: No OFD packet to send [06:08:53]OFD Sender: No OFD packet to send [06:08:58]OFD Sender: No OFD packet to send [06:09:03]OFD Sender: No OFD packet to send [06:09:08]OFD Sender: No OFD packet to send [06:09:13]OFD Sender: No OFD packet to send [06:09:18]OFD Sender: No OFD packet to send [06:09:23]OFD Sender: No OFD packet to send [06:09:28]OFD Sender: No OFD packet to send [06:09:33]OFD Sender: No OFD packet to send [06:09:38]OFD Sender: No OFD packet to send [06:09:43]OFD Sender: No OFD packet to send [06:09:48]OFD Sender: No OFD packet to send [06:09:53]OFD Sender: No OFD packet to send [06:09:58]OFD Sender: No OFD packet to send [06:10:03]OFD Sender: No OFD packet to send [06:10:08]OFD Sender: No OFD packet to send [06:10:13]OFD Sender: No OFD packet to send [06:10:18]OFD Sender: No OFD packet to send [06:10:23]OFD Sender: No OFD packet to send [06:10:28]OFD Sender: No OFD packet to send [06:10:33]OFD Sender: No OFD packet to send [06:10:38]OFD Sender: No OFD packet to send [06:10:43]OFD Sender: No OFD packet to send [06:10:48]OFD Sender: No OFD packet to send [06:10: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]OFD Sender: No OFD packet to send [06:15:13]OFD Sender: No OFD packet to send [06:15:18]OFD Sender: No OFD packet to send [06:15:23]OFD Sender: No OFD packet to send [06:15:28]OFD Sender: No OFD packet to send [06:15:33]OFD Sender: No OFD packet to send [06:15:38]OFD Sender: No OFD packet to send [06:15:43]OFD Sender: No OFD packet to send [06:15:48]OFD Sender: No OFD packet to send [06:15:53]OFD Sender: No OFD packet to send [06:15:58]OFD Sender: No OFD packet to send [06:16:03]OFD Sender: No OFD packet to send [06:16:08]OFD Sender: No OFD packet to send [06:16:13]OFD Sender: No OFD packet to send [06:16:18]OFD Sender: No OFD packet to send [06:16:23]OFD Sender: No OFD packet to send [06:16:28]OFD Sender: No OFD packet to send [06:16:33]OFD Sender: No OFD packet to send [06:16:38]OFD Sender: No OFD packet to send [06:16:43]OFD Sender: No OFD packet to send [06:16:48]OFD Sender: No OFD packet to send [06:16:53]OFD Sender: No OFD packet to send [06:16:58]OFD Sender: No OFD packet to send [06:17:03]OFD Sender: No OFD packet to send [06:17: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:04]OFD Sender: No OFD packet to send [06:18:09]OFD Sender: No OFD packet to send [06:18:14]OFD Sender: No OFD packet to send [06:18:19]OFD Sender: No OFD packet to send [06:18:24]OFD Sender: No OFD packet to send [06:18:29]OFD Sender: No OFD packet to send [06:18:34]OFD Sender: No OFD packet to send [06:18:39]OFD Sender: No OFD packet to send [06:18:44]OFD Sender: No OFD packet to send [06:18:49]OFD Sender: No OFD packet to send [06:18:54]OFD Sender: No OFD packet to send [06:18:59]OFD Sender: No OFD packet to send [06:19:04]OFD Sender: No OFD packet to send [06:19:09]OFD Sender: No OFD packet to send [06:19:14]OFD Sender: No OFD packet to send [06:19:19]OFD Sender: No OFD packet to send [06:19:24]OFD Sender: No OFD packet to send [06:19:29]OFD Sender: No OFD packet to send [06:19:34]OFD Sender: No OFD packet to send [06:19:39]OFD Sender: No OFD packet to send [06:19:44]OFD Sender: No OFD packet to send [06:19:45]accept exits with 8 [06:19:45]New connection [06:19:45]New thread 3066977636 created [06:19:45]Thread 3066834276 joined [06:19:45]Waiting for new connection... [06:19:45] Sock 8.Parse request [06:19:45]Sock 8.Check first char [06:19:45]Sock 8.First char is OK [06:19:45]request: POST /json_proto HTTP/1.0 [06:19:45]Method: POST [06:19:45]URL: /json_proto [06:19:45]Method is POST - this is cgi request [06:19:45]url: /json_proto [06:19:45]query_string will be loaded in cgi processing [06:19:45]execute_cgi json_proto POST (null) [06:19:45]execute_cgi path=json_proto method=POST [06:19:45]POST find Content-Length [06:19:45]Host: 172.17.63.3:8080 [06:19:45]Content-Length: 677 [06:19:45]Content-Type: application/json [06:19:45] [06:19:45]POST finish read [06:19:45]Found Content-Length = 677 [06:19:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99274", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "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" ] } } [06:19:45]execute_script... [06:19: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)99274", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "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" ] } } [06:19:45]POST & json_proto [06:19:45]process_json_proto [06:19:45]json parsed OK: [06:19:45]protocol is kg_v1.0 [06:19:45]action value=close_receipt [06:19:45]process_action close_receipt [06:19:45]cmd_close_receipt [06:19:45]MH_GetDate [06:19:45]Write to MH i2c: F0 00 00 3B 34 5E [06:19:45]Write i2c OK [06:19:45]MH_I2C_Read... [06:19:45]Read from MH i2c: F0 [06:19:45]MH_I2C_Read... [06:19:45]Read from MH i2c: F0 09 00 [06:19:45]MH_I2C_Read... [06:19:45]Read from MH i2c: F0 09 00 3B 34 00 86 DB 1D 67 50 D1 6C 64 3D [06:19:45]GetLastDocTimeStamp 1730009004 [06:19:45]current date 1730009990 [06:19:45]FM_GetShiftState [06:19:45]SAM_PROTO_GetShiftState [06:19:45]wFMCommunicate request_size=4 [06:19:45]MH_SAM_APDU [06:19:45]CAPDU: 80 13 01 00 [06:19:45]Write to MH i2c: E2 08 00 3C 34 80 13 01 00 00 00 00 00 ED [06:19:45]Write i2c OK [06:19:45]MH_I2C_Read... [06:19:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:19:45]Read from MH i2c: E2 [06:19:45]MH_I2C_Read... [06:19:45]Read from MH i2c: E2 0E 00 [06:19:45]MH_I2C_Read... [06:19:45]Read from MH i2c: E2 0E 00 3C 34 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 BA [06:19:45]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [06:19:45]wFMCommunicate OK [06:19:45]SAM_PROTO_GetShiftState done [06:19:45]FM_GetShiftState done [06:19:45]opened in 1729989044 [06:19:45]opened+sec_in_day 1730075444 [06:19:45]quantity*price = 70044 [06:19:45]sum+1 = 70045 [06:19:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 12 27.10.2024 06:19 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156461 ФПД: 258206331423870 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T061950&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156461&fm=258206331423870&tin=02508201610067®Number=0000000000091693&sum=70000 [06:19:46]StoreToDocumentArchive [06:19:46]shift 537 fd 156461 [06:19:46]save to /storage/0537/doc_00156461 [06:19:46]save last doc name /storage/0537/doc_00156461 to /storage/kkm_last_doc_name [06:19:46]save OK [06:19:46]Clear old archive folders... [06:19:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:19:46]tlvbuf is 01751990 [06:19:46]SAM_PROTO_ClearQueue [06:19:46]wFMCommunicate request_size=4 [06:19:46]MH_SAM_APDU [06:19:46]CAPDU: 80 09 00 00 [06:19:46]Write to MH i2c: E2 08 00 49 34 80 09 00 00 00 00 00 00 EF [06:19:46]Write i2c OK [06:19:46]MH_I2C_Read... [06:19:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:19:47]Read from MH i2c: E2 [06:19:47]MH_I2C_Read... [06:19:47]Read from MH i2c: E2 03 00 [06:19:47]MH_I2C_Read... [06:19:47]Read from MH i2c: E2 03 00 49 34 00 90 00 F1 [06:19:47]RAPDU: 90 00 [06:19:47]wFMCommunicate OK [06:19:47]SAM_PROTO_ClearQueue done [06:19:47]KKMCreateOFDPacket [06:19:47]OFDProtocolAddRootSTLVToBuf [06:19:47]FM_MakeSignedData [06:19:47]FM_MakeSignedData [06:19:47]SAM_PROTO_SignData [06:19:47]wFMCommunicate request_size=4 [06:19:47]MH_SAM_APDU [06:19:47]CAPDU: 80 0D 01 02 [06:19:47]Write to MH i2c: E2 08 00 4A 34 80 0D 01 02 00 00 00 00 F7 [06:19:47]Write i2c OK [06:19:47]MH_I2C_Read... [06:19:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:19:47]Read from MH i2c: E2 [06:19:47]MH_I2C_Read... [06:19:47]Read from MH i2c: E2 03 00 [06:19:47]MH_I2C_Read... [06:19:47]Read from MH i2c: E2 03 00 4A 34 00 90 00 F2 [06:19:47]RAPDU: 90 00 [06:19:47]wFMCommunicate OK [06:19:47]wFMCommunicate request_size=255 [06:19:47]MH_SAM_APDU [06:19: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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 0C 00 00 00 F4 03 04 00 86 DB 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2D 63 02 00 35 04 06 00 EA [06:19:47]Write to MH i2c: E2 02 01 4B 34 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 0C 00 00 00 F4 03 04 00 86 DB 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2D 63 02 00 35 04 06 00 EA 00 00 23 [06:19:47]Write i2c OK [06:19:47]MH_I2C_Read... [06:19:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:19:47]Read from MH i2c: E2 [06:19:47]MH_I2C_Read... [06:19:47]Read from MH i2c: E2 03 00 [06:19:47]MH_I2C_Read... [06:19:47]Read from MH i2c: E2 03 00 4B 34 00 90 00 F3 [06:19:47]RAPDU: 90 00 [06:19:47]wFMCommunicate OK [06:19:47]wFMCommunicate request_size=10 [06:19:47]MH_SAM_APDU [06:19:47]CAPDU: 80 0D 02 02 05 D6 58 A9 CC 7E [06:19:47]Write to MH i2c: E2 0D 00 4C 34 80 0D 02 02 05 00 D6 58 A9 CC 7E 00 00 25 [06:19:47]Write i2c OK [06:19:47]MH_I2C_Read... [06:19:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:19:47]Read from MH i2c: E2 [06:19:47]MH_I2C_Read... [06:19:47]Read from MH i2c: E2 03 00 [06:19:47]MH_I2C_Read... [06:19:47]Read from MH i2c: E2 03 00 4C 34 00 90 00 F4 [06:19:47]RAPDU: 90 00 [06:19:47]wFMCommunicate OK [06:19:47]wFMCommunicate request_size=4 [06:19:47]MH_SAM_APDU [06:19:47]CAPDU: 80 0D 03 02 [06:19:47]Write to MH i2c: E2 08 00 4D 34 80 0D 03 02 00 00 00 00 FC [06:19:47]Write i2c OK [06:19:47]MH_I2C_Read... [06:19:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:19:47]Read from MH i2c: E2 [06:19:47]MH_I2C_Read... [06:19:47]Read from MH i2c: E2 0B 00 [06:19:47]MH_I2C_Read... [06:19:47]Read from MH i2c: E2 0B 00 4D 34 00 9E A7 5B E2 91 BB 4B 23 90 00 39 [06:19:47]RAPDU: 9E A7 5B E2 91 BB 4B 23 90 00 [06:19:47]wFMCommunicate OK [06:19:47]SAM_PROTO_SignData done [06:19:47]FM_MakeSignedData done [06:19:47]CreateOFDProtocolMessage [06:19:47]wFMCommunicate request_size=4 [06:19:47]MH_SAM_APDU [06:19:47]CAPDU: 80 11 00 00 [06:19:47]Write to MH i2c: E2 08 00 4E 34 80 11 00 00 00 00 00 00 FC [06:19:47]Write i2c OK [06:19:47]MH_I2C_Read... [06:19:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:19:47]Read from MH i2c: E2 [06:19:47]MH_I2C_Read... [06:19:47]Read from MH i2c: E2 17 00 [06:19:47]MH_I2C_Read... [06:19:47]Read from MH i2c: E2 17 00 4E 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 51 [06:19:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [06:19:47]wFMCommunicate OK [06:19:47]CreateOFDProtocolMessage done [06:19:47]OFDSenderStorePacket 156461 [06:19:47]StoreOFDPacket docnum=156461 [06:19:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 AB E2 07 01 95 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 0C 00 00 00 F4 03 04 00 86 DB 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2D 63 02 00 35 04 06 00 EA D6 58 A9 CC 7E 9E A7 5B E2 91 BB 4B 23 [06:19:47]CheckFolder [06:19:47]dirname=/storage/ofd_packets [06:19:47]CheckFolder done [06:19:47]ProducePacketName [06:19:47]name=ofd_packets/00156461 [06:19:47]NVStorageSaveData ofd_packets/00156461 [06:19:47]File name is /storage/ofd_packets/00156461 [06:19:47]Write 301 bytes [06:19:47]NVStorageSaveData done [06:19:47]OFDSenderStorePacket done [06:19:47]KKMCreateOFDPacket done [06:19:47]NVStorageSaveData kkm_last_timestamp [06:19:47]File name is /storage/kkm_last_timestamp [06:19:47]Write 4 bytes [06:19:47]NVStorageSaveData done [06:19:47]ExternCall_PrintAddStr [06:19:47]wPrintStart [06:19:47]Write to MH i2c: 01 00 00 4F 34 83 [06:19:47]Write i2c OK [06:19:47]MH_I2C_Read... [06:19:47]Read from MH i2c: 01 [06:19:47]MH_I2C_Read... [06:19:47]Read from MH i2c: 01 07 00 [06:19:47]MH_I2C_Read... [06:19:47]Read from MH i2c: 01 07 00 4F 34 00 00 00 00 00 FF 0F 98 [06:19:47]RasterBufferAndPrint [06:19:47]line Счет N : (1)99274 [06:19:47]line ИНН: 02508201610067 [06:19:47]line Контрольно-Кассовый Чек [06:19:47]line ПРОДАЖА [06:19:47]line ТРК (МРК, ГНК) : 21 [06:19:47]line Товар: 2710124130 [06:19:47]line Аи-92-К-5 [06:19:47]line 10.470 * 66.90 [06:19:47]line = 700.44 [06:19:47]line НДС 12% НСП 1% [06:19:47]line > о реализуемом товаре [06:19:47]line ОКРУГЛЕНИЕ: -0.44 [06:19:47]line ИТОГО: 700.00 [06:19:47]line Внесено: 700.00 [06:19:47]line СДАЧА: 0.00 [06:19:47]line НСП 1% : 6.20 [06:19:47]line НДС 12% : 74.38 [06:19:47]line Наличными: 700.00 [06:19:47]line Безнал.: 0.00 [06:19:47]line Место: АЗС № 143 "Партнер Нефть" [06:19:47]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [06:19:47]line СНО: Общий режим [06:19:47]line Чек 12 27.10.2024 06:19 [06:19:47]line Смена: 537 ФФД: 1.0 [06:19:47]line ЗНМ: 0300000096 [06:19:47]line РНМ: 0000000000091693 [06:19:47]line Версия ККМ: 001 [06:19:47]line ФМ: 0000000000871792 [06:19:47]line ФД: 156461 [06:19:47]line ФПД: 258206331423870 [06:19:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T061950&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156461&fm=258206331423870&tin=02508201610067®Number=0000000000091693&sum=70000 [06:19:47]written 0, free lines is 4095 [06:19:47]OFD Sender: Processing packet 156461 [packets to send 31, broken 30] [06:19:47]ProducePacketName [06:19:47]name=ofd_packets/00156461 [06:19:47]OFD Sender: To server: pG, [06:19:47]CommunicateWithHost lk.salyk.kg:30040 [06:19:47]ConnectInit lk.salyk.kg [06:19:47]Connected sock=10 [06:19:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 AB E2 07 01 95 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 0C 00 00 00 F4 03 04 00 86 DB 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2D 63 02 00 35 04 06 00 EA D6 58 A9 CC 7E 9E A7 5B E2 91 BB 4B 23 [06:19:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 63 F8 47 00 D5 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 31 37 39 32 10 04 04 00 2D 63 02 00 F4 03 04 00 F6 80 1D 67 B6 04 01 00 00 F9 48 65 D6 FF 06 B7 77 [06:19:47]CommunicateWithHost err = 0 [06:19:47]CheckOFDResponse [06:19:47]1017 (14) - 77093643461234 [06:19:47]1041 (16) - 0000000000871792 [06:19:47]1040 (4) - 156461 [06:19:47]1012 (4) - 26.10.2024 23:53 [06:19:47]1206 (1) - 0 [06:19:47]OFD Sender: Remove packet 156461 [06:19:47]ProducePacketName [06:19:47]name=ofd_packets/00156461 [06:19:47]NVStorageDeleteData [06:19:47]Write to MH i2c: 01 00 00 7A 34 AE [06:19:47]Write i2c OK [06:19:47]MH_I2C_Read... [06:19:47]Read from MH i2c: 01 [06:19:47]MH_I2C_Read... [06:19:47]Read from MH i2c: 01 07 00 [06:19:47]MH_I2C_Read... [06:19:47]Read from MH i2c: 01 07 00 7A 34 00 00 00 00 00 DC 0C 9D [06:19:47]RasterBufferAndPrint [06:19:47]line [06:19:47]line [06:19:47]line [06:19:47]line [06:19:47]line [06:19:47]written 0, free lines is 3299 [06:19:48]process_action close_receipt done [06:19:48]requested_data is exist [06:19:48]produce_requested_data [06:19:48]requested_item fm.sn is exist - process it [06:19:48]wFMCommunicate request_size=4 [06:19:48]MH_SAM_APDU [06:19:48]CAPDU: 80 11 00 00 [06:19:48]Write to MH i2c: E2 08 00 81 34 80 11 00 00 00 00 00 00 2F [06:19:48]Write i2c OK [06:19:48]MH_I2C_Read... [06:19:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:19:48]Read from MH i2c: E2 [06:19:48]MH_I2C_Read... [06:19:48]Read from MH i2c: E2 17 00 [06:19:48]MH_I2C_Read... [06:19:48]Read from MH i2c: E2 17 00 81 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 84 [06:19:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [06:19:48]wFMCommunicate OK [06:19:48]requested_item fd.num is exist - process it [06:19:48]SAM_PROTO_GetFieldsCounters [06:19:48]wFMCommunicate request_size=4 [06:19:48]MH_SAM_APDU [06:19:48]CAPDU: 80 13 00 00 [06:19:48]Write to MH i2c: E2 08 00 82 34 80 13 00 00 00 00 00 00 32 [06:19:48]Write i2c OK [06:19:48]MH_I2C_Read... [06:19:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:19:48]Read from MH i2c: E2 [06:19:48]MH_I2C_Read... [06:19:48]Read from MH i2c: E2 62 00 [06:19:48]MH_I2C_Read... [06:19:48]Read from MH i2c: E2 62 00 82 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 2D 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 29 [06:19:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 2D 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:19:48]wFMCommunicate OK [06:19:48]SAM_PROTO_GetFieldsCounters done [06:19:48]requested_item shift.num is exist - process it [06:19:48]requested_item shift.opened is exist - process it [06:19:48]req_shift_opened [06:19:48]FM_GetShiftState [06:19:48]SAM_PROTO_GetShiftState [06:19:48]wFMCommunicate request_size=4 [06:19:48]MH_SAM_APDU [06:19:48]CAPDU: 80 13 01 00 [06:19:48]Write to MH i2c: E2 08 00 83 34 80 13 01 00 00 00 00 00 34 [06:19:48]Write i2c OK [06:19:48]MH_I2C_Read... [06:19:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:19:48]Read from MH i2c: E2 [06:19:48]MH_I2C_Read... [06:19:48]Read from MH i2c: E2 0E 00 [06:19:48]MH_I2C_Read... [06:19:48]Read from MH i2c: E2 0E 00 83 34 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 01 [06:19:48]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [06:19:48]wFMCommunicate OK [06:19:48]SAM_PROTO_GetShiftState done [06:19:48]FM_GetShiftState done [06:19:48]req_shift_opened done [06:19:48]requested_item shift.open_date is exist - process it [06:19:48]req_shift_open_date [06:19:48]req_shift_open_date done [06:19:48]produce_requested_data done [06:19:48]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156461,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [06:19:48]process_action_free close_receipt [06:19:48]json_value_free [06:19:48]json_value_free done [06:19:48]process_json_proto returns [06:19:48]Send response to host [06:19:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156461,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [06:19:48]free response buf [06:19:48]execute_script done [06:19:48]execute_script returns [06:19:48]free content buf [06:19:48]Sock 8.Close socket [06:19:48]Sock 8.Thread stoped [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:04]OFD Sender: No OFD packet to send [06:31:09]OFD Sender: No OFD packet to send [06:31:14]OFD Sender: No OFD packet to send [06:31:19]OFD Sender: No OFD packet to send [06:31:24]OFD Sender: No OFD packet to send [06:31:29]OFD Sender: No OFD packet to send [06:31:34]OFD Sender: No OFD packet to send [06:31:39]OFD Sender: No OFD packet to send [06:31:44]OFD Sender: No OFD packet to send [06:31:49]OFD Sender: No OFD packet to send [06:31:54]OFD Sender: No OFD packet to send [06:31:59]OFD Sender: No OFD packet to send [06:32:04]OFD Sender: No OFD packet to send [06:32:09]OFD Sender: No OFD packet to send [06:32:14]OFD Sender: No OFD packet to send [06:32:19]OFD Sender: No OFD packet to send [06:32:24]OFD Sender: No OFD packet to send [06:32:29]OFD Sender: No OFD packet to send [06:32:34]OFD Sender: No OFD packet to send [06:32:39]OFD Sender: No OFD packet to send [06:32:44]OFD Sender: No OFD packet to send [06:32:49]OFD Sender: No OFD packet to send [06:32:54]OFD Sender: No OFD packet to send [06:32:59]OFD Sender: No OFD packet to send [06:33:04]OFD Sender: No OFD packet to send [06:33:09]OFD Sender: No OFD packet to send [06:33:14]OFD Sender: No OFD packet to send [06:33:19]OFD Sender: No OFD packet to send [06:33:24]OFD Sender: No OFD packet to send [06:33:29]OFD Sender: No OFD packet to send [06:33:34]OFD Sender: No OFD packet to send [06:33:39]OFD Sender: No OFD packet to send [06:33:44]OFD Sender: No OFD packet to send [06:33:49]OFD Sender: No OFD packet to send [06:33:54]OFD Sender: No OFD packet to send [06:33:59]OFD Sender: No OFD packet to send [06:34:04]OFD Sender: No OFD packet to send [06:34:09]OFD Sender: No OFD packet to send [06:34:14]OFD Sender: No OFD packet to send [06:34:19]OFD Sender: No OFD packet to send [06:34:24]OFD Sender: No OFD packet to send [06:34:29]OFD Sender: No OFD packet to send [06:34:34]OFD Sender: No OFD packet to send [06:34:39]OFD Sender: No OFD packet to send [06:34:44]OFD Sender: No OFD packet to send [06:34:49]OFD Sender: No OFD packet to send [06:34:54]OFD Sender: No OFD packet to send [06:34:59]OFD Sender: No OFD packet to send [06:35:04]OFD Sender: No OFD packet to send [06:35:09]OFD Sender: No OFD packet to send [06:35:14]OFD Sender: No OFD packet to send [06:35:19]OFD Sender: No OFD packet to send [06:35:24]OFD Sender: No OFD packet to send [06:35:29]OFD Sender: No OFD packet to send [06:35:34]OFD Sender: No OFD packet to send [06:35:37]accept exits with 9 [06:35:37]New connection [06:35:37]New thread 3066834276 created [06:35:37] Sock 9.Parse request [06:35:37]Thread 3066977636 joined [06:35:37]Sock 9.Check first char [06:35:37]Waiting for new connection... [06:35:37]Sock 9.First char is OK [06:35:37]request: POST /json_proto HTTP/1.0 [06:35:37]Method: POST [06:35:37]URL: /json_proto [06:35:37]Method is POST - this is cgi request [06:35:37]url: /json_proto [06:35:37]query_string will be loaded in cgi processing [06:35:37]execute_cgi json_proto POST (null) [06:35:37]execute_cgi path=json_proto method=POST [06:35:37]POST find Content-Length [06:35:37]Host: 172.17.63.3:8080 [06:35:37]Content-Length: 676 [06:35:37]Content-Type: application/json [06:35:37] [06:35:37]POST finish read [06:35:37]Found Content-Length = 676 [06:35:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99275", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:35:37]execute_script... [06: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)99275", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:35:37]POST & json_proto [06:35:37]process_json_proto [06:35:37]json parsed OK: [06:35:37]protocol is kg_v1.0 [06:35:37]action value=close_receipt [06:35:37]process_action close_receipt [06:35:37]cmd_close_receipt [06:35:37]MH_GetDate [06:35:37]Write to MH i2c: F0 00 00 84 34 A7 [06:35:37]Write i2c OK [06:35:37]MH_I2C_Read... [06:35:37]Read from MH i2c: F0 [06:35:37]MH_I2C_Read... [06:35:37]Read from MH i2c: F0 09 00 [06:35:37]MH_I2C_Read... [06:35:37]Read from MH i2c: F0 09 00 84 34 00 3D DF 1D 67 50 D1 6C 64 41 [06:35:37]GetLastDocTimeStamp 1730009990 [06:35:37]current date 1730010941 [06:35:37]FM_GetShiftState [06:35:37]SAM_PROTO_GetShiftState [06:35:37]wFMCommunicate request_size=4 [06:35:37]MH_SAM_APDU [06:35:37]CAPDU: 80 13 01 00 [06:35:37]Write to MH i2c: E2 08 00 85 34 80 13 01 00 00 00 00 00 36 [06:35:37]Write i2c OK [06:35:37]MH_I2C_Read... [06:35:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:35:37]Read from MH i2c: E2 [06:35:37]MH_I2C_Read... [06:35:37]Read from MH i2c: E2 0E 00 [06:35:37]MH_I2C_Read... [06:35:37]Read from MH i2c: E2 0E 00 85 34 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 03 [06:35:37]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [06:35:37]wFMCommunicate OK [06:35:37]SAM_PROTO_GetShiftState done [06:35:37]FM_GetShiftState done [06:35:37]opened in 1729989044 [06:35:37]opened+sec_in_day 1730075444 [06:35:37]quantity*price = 30038 [06:35:37]sum+1 = 30039 [06:35:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 13 27.10.2024 06:35 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156462 ФПД: 39373322098659 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T063541&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156462&fm=39373322098659&tin=02508201610067®Number=0000000000091693&sum=30000 [06:35:38]StoreToDocumentArchive [06:35:38]shift 537 fd 156462 [06:35:38]save to /storage/0537/doc_00156462 [06:35:38]save last doc name /storage/0537/doc_00156462 to /storage/kkm_last_doc_name [06:35:38]save OK [06:35:38]Clear old archive folders... [06:35:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:35:38]tlvbuf is 0174F5F0 [06:35:38]SAM_PROTO_ClearQueue [06:35:38]wFMCommunicate request_size=4 [06:35:38]MH_SAM_APDU [06:35:38]CAPDU: 80 09 00 00 [06:35:38]Write to MH i2c: E2 08 00 92 34 80 09 00 00 00 00 00 00 38 [06:35:38]Write i2c OK [06:35:38]MH_I2C_Read... [06:35:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:35:38]Read from MH i2c: E2 [06:35:38]MH_I2C_Read... [06:35:38]Read from MH i2c: E2 03 00 [06:35:38]MH_I2C_Read... [06:35:38]Read from MH i2c: E2 03 00 92 34 00 90 00 3A [06:35:38]RAPDU: 90 00 [06:35:38]wFMCommunicate OK [06:35:38]SAM_PROTO_ClearQueue done [06:35:38]KKMCreateOFDPacket [06:35:38]OFDProtocolAddRootSTLVToBuf [06:35:38]FM_MakeSignedData [06:35:38]FM_MakeSignedData [06:35:38]SAM_PROTO_SignData [06:35:38]wFMCommunicate request_size=4 [06:35:38]MH_SAM_APDU [06:35:38]CAPDU: 80 0D 01 02 [06:35:38]Write to MH i2c: E2 08 00 93 34 80 0D 01 02 00 00 00 00 40 [06:35:38]Write i2c OK [06:35:38]MH_I2C_Read... [06:35:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:35:38]Read from MH i2c: E2 [06:35:38]MH_I2C_Read... [06:35:38]Read from MH i2c: E2 03 00 [06:35:38]MH_I2C_Read... [06:35:38]Read from MH i2c: E2 03 00 93 34 00 90 00 3B [06:35:38]RAPDU: 90 00 [06:35:38]wFMCommunicate OK [06:35:38]wFMCommunicate request_size=255 [06:35:38]MH_SAM_APDU [06:35:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 3D DF 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2E 63 02 00 35 04 06 00 23 [06:35:38]Write to MH i2c: E2 02 01 94 34 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 3D DF 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2E 63 02 00 35 04 06 00 23 00 00 46 [06:35:38]Write i2c OK [06:35:38]MH_I2C_Read... [06:35:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:35:39]Read from MH i2c: E2 [06:35:39]MH_I2C_Read... [06:35:39]Read from MH i2c: E2 03 00 [06:35:39]MH_I2C_Read... [06:35:39]Read from MH i2c: E2 03 00 94 34 00 90 00 3C [06:35:39]RAPDU: 90 00 [06:35:39]wFMCommunicate OK [06:35:39]wFMCommunicate request_size=10 [06:35:39]MH_SAM_APDU [06:35:39]CAPDU: 80 0D 02 02 05 CF 50 E0 97 E3 [06:35:39]Write to MH i2c: E2 0D 00 95 34 80 0D 02 02 05 00 CF 50 E0 97 E3 00 00 C6 [06:35:39]Write i2c OK [06:35:39]MH_I2C_Read... [06:35:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:35:39]Read from MH i2c: E2 [06:35:39]MH_I2C_Read... [06:35:39]Read from MH i2c: E2 03 00 [06:35:39]MH_I2C_Read... [06:35:39]Read from MH i2c: E2 03 00 95 34 00 90 00 3D [06:35:39]RAPDU: 90 00 [06:35:39]wFMCommunicate OK [06:35:39]wFMCommunicate request_size=4 [06:35:39]MH_SAM_APDU [06:35:39]CAPDU: 80 0D 03 02 [06:35:39]Write to MH i2c: E2 08 00 96 34 80 0D 03 02 00 00 00 00 45 [06:35:39]Write i2c OK [06:35:39]MH_I2C_Read... [06:35:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:35:39]Read from MH i2c: E2 [06:35:39]MH_I2C_Read... [06:35:39]Read from MH i2c: E2 0B 00 [06:35:39]MH_I2C_Read... [06:35:39]Read from MH i2c: E2 0B 00 96 34 00 06 E5 3C CA 56 D4 EE 0B 90 00 5A [06:35:39]RAPDU: 06 E5 3C CA 56 D4 EE 0B 90 00 [06:35:39]wFMCommunicate OK [06:35:39]SAM_PROTO_SignData done [06:35:39]FM_MakeSignedData done [06:35:39]CreateOFDProtocolMessage [06:35:39]wFMCommunicate request_size=4 [06:35:39]MH_SAM_APDU [06:35:39]CAPDU: 80 11 00 00 [06:35:39]Write to MH i2c: E2 08 00 97 34 80 11 00 00 00 00 00 00 45 [06:35:39]Write i2c OK [06:35:39]MH_I2C_Read... [06:35:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:35:39]Read from MH i2c: E2 [06:35:39]MH_I2C_Read... [06:35:39]Read from MH i2c: E2 17 00 [06:35:39]MH_I2C_Read... [06:35:39]Read from MH i2c: E2 17 00 97 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 9A [06:35:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [06:35:39]wFMCommunicate OK [06:35:39]CreateOFDProtocolMessage done [06:35:39]OFDSenderStorePacket 156462 [06:35:39]StoreOFDPacket docnum=156462 [06:35:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 75 59 07 01 86 C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 3D DF 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2E 63 02 00 35 04 06 00 23 CF 50 E0 97 E3 06 E5 3C CA 56 D4 EE 0B [06:35:39]CheckFolder [06:35:39]dirname=/storage/ofd_packets [06:35:39]CheckFolder done [06:35:39]ProducePacketName [06:35:39]name=ofd_packets/00156462 [06:35:39]NVStorageSaveData ofd_packets/00156462 [06:35:39]File name is /storage/ofd_packets/00156462 [06:35:39]Write 301 bytes [06:35:39]NVStorageSaveData done [06:35:39]OFDSenderStorePacket done [06:35:39]KKMCreateOFDPacket done [06:35:39]NVStorageSaveData kkm_last_timestamp [06:35:39]File name is /storage/kkm_last_timestamp [06:35:39]Write 4 bytes [06:35:39]NVStorageSaveData done [06:35:39]ExternCall_PrintAddStr [06:35:39]wPrintStart [06:35:39]Write to MH i2c: 01 00 00 98 34 CC [06:35:39]Write i2c OK [06:35:39]MH_I2C_Read... [06:35:39]Read from MH i2c: 01 [06:35:39]MH_I2C_Read... [06:35:39]Read from MH i2c: 01 07 00 [06:35:39]MH_I2C_Read... [06:35:39]Read from MH i2c: 01 07 00 98 34 00 00 00 00 00 FF 0F E1 [06:35:39]RasterBufferAndPrint [06:35:39]line Счет N : (1)99275 [06:35:39]line ИНН: 02508201610067 [06:35:39]line Контрольно-Кассовый Чек [06:35:39]line ПРОДАЖА [06:35:39]line ТРК (МРК, ГНК) : 31 [06:35:39]line Товар: 2710124130 [06:35:39]line Аи-92-К-5 [06:35:39]line 4.490 * 66.90 [06:35:39]line = 300.38 [06:35:39]line НДС 12% НСП 1% [06:35:39]line > о реализуемом товаре [06:35:39]line ОКРУГЛЕНИЕ: -0.38 [06:35:39]line ИТОГО: 300.00 [06:35:39]line Внесено: 300.00 [06:35:39]line СДАЧА: 0.00 [06:35:39]line НСП 1% : 2.66 [06:35:39]line НДС 12% : 31.90 [06:35:39]line Наличными: 300.00 [06:35:39]line Безнал.: 0.00 [06:35:39]line Место: АЗС № 143 "Партнер Нефть" [06:35:39]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [06:35:39]line СНО: Общий режим [06:35:39]line Чек 13 27.10.2024 06:35 [06:35:39]line Смена: 537 ФФД: 1.0 [06:35:39]line ЗНМ: 0300000096 [06:35:39]line РНМ: 0000000000091693 [06:35:39]line Версия ККМ: 001 [06:35:39]line ФМ: 0000000000871792 [06:35:39]line ФД: 156462 [06:35:39]line ФПД: 39373322098659 [06:35:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T063541&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156462&fm=39373322098659&tin=02508201610067®Number=0000000000091693&sum=30000 [06:35:39]OFD Sender: Processing packet 156462 [packets to send 31, broken 30] [06:35:39]ProducePacketName [06:35:39]name=ofd_packets/00156462 [06:35:39]OFD Sender: To server: pG, [06:35:39]CommunicateWithHost lk.salyk.kg:30040 [06:35:39]ConnectInit lk.salyk.kg [06:35:39]written 0, free lines is 4095 [06:35:39]Connected sock=10 [06: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 31 37 39 32 0F 01 00 00 75 59 07 01 86 C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 3D DF 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2E 63 02 00 35 04 06 00 23 CF 50 E0 97 E3 06 E5 3C CA 56 D4 EE 0B [06:35:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 80 88 47 00 19 36 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2E 63 02 00 F4 03 04 00 AE 84 1D 67 B6 04 01 00 00 FF F4 47 88 DD 12 C3 90 [06:35:39]CommunicateWithHost err = 0 [06:35:39]CheckOFDResponse [06:35:39]1017 (14) - 77093643461234 [06:35:39]1041 (16) - 0000000000871792 [06:35:39]1040 (4) - 156462 [06:35:39]1012 (4) - 27.10.2024 00:09 [06:35:39]1206 (1) - 0 [06:35:39]OFD Sender: Remove packet 156462 [06:35:39]ProducePacketName [06:35:39]name=ofd_packets/00156462 [06:35:39]NVStorageDeleteData [06:35:39]Write to MH i2c: 01 00 00 C3 34 F7 [06:35:39]Write i2c OK [06:35:39]MH_I2C_Read... [06:35:39]Read from MH i2c: 01 [06:35:39]MH_I2C_Read... [06:35:39]Read from MH i2c: 01 07 00 [06:35:39]MH_I2C_Read... [06:35:39]Read from MH i2c: 01 07 00 C3 34 00 00 00 00 00 DE 0C E8 [06:35:39]RasterBufferAndPrint [06:35:39]line [06:35:39]line [06:35:39]line [06:35:39]line [06:35:39]line [06:35:39]written 0, free lines is 3303 [06:35:39]process_action close_receipt done [06:35:39]requested_data is exist [06:35:39]produce_requested_data [06:35:39]requested_item fm.sn is exist - process it [06:35:39]wFMCommunicate request_size=4 [06:35:39]MH_SAM_APDU [06:35:39]CAPDU: 80 11 00 00 [06:35:39]Write to MH i2c: E2 08 00 CA 34 80 11 00 00 00 00 00 00 78 [06:35:39]Write i2c OK [06:35:39]MH_I2C_Read... [06:35:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:35:40]Read from MH i2c: E2 [06:35:40]MH_I2C_Read... [06:35:40]Read from MH i2c: E2 17 00 [06:35:40]MH_I2C_Read... [06:35:40]Read from MH i2c: E2 17 00 CA 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 CD [06:35:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [06:35:40]wFMCommunicate OK [06:35:40]requested_item fd.num is exist - process it [06:35:40]SAM_PROTO_GetFieldsCounters [06:35:40]wFMCommunicate request_size=4 [06:35:40]MH_SAM_APDU [06:35:40]CAPDU: 80 13 00 00 [06:35:40]Write to MH i2c: E2 08 00 CB 34 80 13 00 00 00 00 00 00 7B [06:35:40]Write i2c OK [06:35:40]MH_I2C_Read... [06:35:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:35:40]Read from MH i2c: E2 [06:35:40]MH_I2C_Read... [06:35:40]Read from MH i2c: E2 62 00 [06:35:40]MH_I2C_Read... [06:35:40]Read from MH i2c: E2 62 00 CB 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 2E 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 76 [06:35:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 2E 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:35:40]wFMCommunicate OK [06:35:40]SAM_PROTO_GetFieldsCounters done [06:35:40]requested_item shift.num is exist - process it [06:35:40]requested_item shift.opened is exist - process it [06:35:40]req_shift_opened [06:35:40]FM_GetShiftState [06:35:40]SAM_PROTO_GetShiftState [06:35:40]wFMCommunicate request_size=4 [06:35:40]MH_SAM_APDU [06:35:40]CAPDU: 80 13 01 00 [06:35:40]Write to MH i2c: E2 08 00 CC 34 80 13 01 00 00 00 00 00 7D [06:35:40]Write i2c OK [06:35:40]MH_I2C_Read... [06:35:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:35:40]Read from MH i2c: E2 [06:35:40]MH_I2C_Read... [06:35:40]Read from MH i2c: E2 0E 00 [06:35:40]MH_I2C_Read... [06:35:40]Read from MH i2c: E2 0E 00 CC 34 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 4A [06:35:40]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [06:35:40]wFMCommunicate OK [06:35:40]SAM_PROTO_GetShiftState done [06:35:40]FM_GetShiftState done [06:35:40]req_shift_opened done [06:35:40]requested_item shift.open_date is exist - process it [06:35:40]req_shift_open_date [06:35:40]req_shift_open_date done [06:35:40]produce_requested_data done [06:35:40]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156462,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [06:35:40]process_action_free close_receipt [06:35:40]json_value_free [06:35:40]json_value_free done [06:35:40]process_json_proto returns [06:35:40]Send response to host [06:35:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156462,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [06:35:40]free response buf [06:35:40]execute_script done [06:35:40]execute_script returns [06:35:40]free content buf [06:35:40]Sock 9.Close socket [06:35:40]Sock 9.Thread stoped [06:35:40]OFD Sender: No OFD packet to send [06:35:45]OFD Sender: No OFD packet to send [06:35:50]OFD Sender: No OFD packet to send [06:35:55]OFD Sender: No OFD packet to send [06:36:00]OFD Sender: No OFD packet to send [06:36:05]OFD Sender: No OFD packet to send [06:36:10]OFD Sender: No OFD packet to send [06:36:15]OFD Sender: No OFD packet to send [06:36:20]OFD Sender: No OFD packet to send [06:36:25]OFD Sender: No OFD packet to send [06:36:30]OFD Sender: No OFD packet to send [06:36:35]OFD Sender: No OFD packet to send [06:36:40]OFD Sender: No OFD packet to send [06:36:45]OFD Sender: No OFD packet to send [06:36:50]OFD Sender: No OFD packet to send [06:36:55]OFD Sender: No OFD packet to send [06:37:00]OFD Sender: No OFD packet to send [06:37:05]OFD Sender: No OFD packet to send [06:37:10]OFD Sender: No OFD packet to send [06:37:15]OFD Sender: No OFD packet to send [06:37:20]OFD Sender: No OFD packet to send [06:37:25]OFD Sender: No OFD packet to send [06:37:30]OFD Sender: No OFD packet to send [06:37:35]OFD Sender: No OFD packet to send [06:37:40]OFD Sender: No OFD packet to send [06:37:45]OFD Sender: No OFD packet to send [06:37:50]OFD Sender: No OFD packet to send [06:37:55]OFD Sender: No OFD packet to send [06:38:00]OFD Sender: No OFD packet to send [06:38:05]OFD Sender: No OFD packet to send [06:38:10]OFD Sender: No OFD packet to send [06:38:15]OFD Sender: No OFD packet to send [06:38:20]OFD Sender: No OFD packet to send [06:38:25]OFD Sender: No OFD packet to send [06:38:30]OFD Sender: No OFD packet to send [06:38:35]OFD Sender: No OFD packet to send [06:38:40]OFD Sender: No OFD packet to send [06:38:45]OFD Sender: No OFD packet to send [06:38:50]OFD Sender: No OFD packet to send [06:38:55]OFD Sender: No OFD packet to send [06:39:00]OFD Sender: No OFD packet to send [06:39:05]OFD Sender: No OFD packet to send [06:39:10]OFD Sender: No OFD packet to send [06:39:15]OFD Sender: No OFD packet to send [06:39:20]OFD Sender: No OFD packet to send [06:39:25]OFD Sender: No OFD packet to send [06:39:30]OFD Sender: No OFD packet to send [06:39:35]OFD Sender: No OFD packet to send [06:39:40]OFD Sender: No OFD packet to send [06:39:45]OFD Sender: No OFD packet to send [06:39:50]OFD Sender: No OFD packet to send [06:39:55]OFD Sender: No OFD packet to send [06:40:00]OFD Sender: No OFD packet to send [06:40:05]OFD Sender: No OFD packet to send [06:40:10]OFD Sender: No OFD packet to send [06:40:15]OFD Sender: No OFD packet to send [06:40:20]OFD Sender: No OFD packet to send [06:40:25]OFD Sender: No OFD packet to send [06:40:30]OFD Sender: No OFD packet to send [06:40:35]OFD Sender: No OFD packet to send [06:40:40]OFD Sender: No OFD packet to send [06:40:45]OFD Sender: No OFD packet to send [06:40:50]OFD Sender: No OFD packet to send [06:40:55]OFD Sender: No OFD packet to send [06:41:00]OFD Sender: No OFD packet to send [06:41:05]OFD Sender: No OFD packet to send [06:41:10]OFD Sender: No OFD packet to send [06:41:15]OFD Sender: No OFD packet to send [06:41:20]OFD Sender: No OFD packet to send [06:41:25]OFD Sender: No OFD packet to send [06:41:30]OFD Sender: No OFD packet to send [06:41:35]OFD Sender: No OFD packet to send [06:41:40]OFD Sender: No OFD packet to send [06:41:45]OFD Sender: No OFD packet to send [06:41:50]OFD Sender: No OFD packet to send [06:41:55]OFD Sender: No OFD packet to send [06:42:00]OFD Sender: No OFD packet to send [06:42:05]OFD Sender: No OFD packet to send [06:42:10]OFD Sender: No OFD packet to send [06:42:15]OFD Sender: No OFD packet to send [06:42:20]OFD Sender: No OFD packet to send [06:42:25]OFD Sender: No OFD packet to send [06:42:30]OFD Sender: No OFD packet to send [06:42:35]OFD Sender: No OFD packet to send [06:42:40]OFD Sender: No OFD packet to send [06:42:45]OFD Sender: No OFD packet to send [06:42:50]OFD Sender: No OFD packet to send [06:42:55]OFD Sender: No OFD packet to send [06:43:00]OFD Sender: No OFD packet to send [06:43:05]OFD Sender: No OFD packet to send [06:43:10]OFD Sender: No OFD packet to send [06:43:15]OFD Sender: No OFD packet to send [06:43:20]OFD Sender: No OFD packet to send [06:43:25]OFD Sender: No OFD packet to send [06:43:30]OFD Sender: No OFD packet to send [06:43:35]OFD Sender: No OFD packet to send [06:43:40]OFD Sender: No OFD packet to send [06:43:45]OFD Sender: No OFD packet to send [06:43:50]OFD Sender: No OFD packet to send [06:43:55]OFD Sender: No OFD packet to send [06:44:00]OFD Sender: No OFD packet to send [06:44:05]OFD Sender: No OFD packet to send [06:44:10]OFD Sender: No OFD packet to send [06:44:15]OFD Sender: No OFD packet to send [06:44:20]OFD Sender: No OFD packet to send [06:44:25]OFD Sender: No OFD packet to send [06:44:30]OFD Sender: No OFD packet to send [06:44:35]OFD Sender: No OFD packet to send [06:44:40]OFD Sender: No OFD packet to send [06:44:45]OFD Sender: No OFD packet to send [06:44:50]OFD Sender: No OFD packet to send [06:44:55]OFD Sender: No OFD packet to send [06:45:00]OFD Sender: No OFD packet to send [06:45:05]OFD Sender: No OFD packet to send [06:45:10]OFD Sender: No OFD packet to send [06:45:15]OFD Sender: No OFD packet to send [06:45:20]OFD Sender: No OFD packet to send [06:45:25]OFD Sender: No OFD packet to send [06:45:30]OFD Sender: No OFD packet to send [06:45:35]OFD Sender: No OFD packet to send [06:45:40]OFD Sender: No OFD packet to send [06:45:45]OFD Sender: No OFD packet to send [06:45:50]OFD Sender: No OFD packet to send [06:45:55]OFD Sender: No OFD packet to send [06:46:00]OFD Sender: No OFD packet to send [06:46:05]OFD Sender: No OFD packet to send [06:46:10]OFD Sender: No OFD packet to send [06:46:15]OFD Sender: No OFD packet to send [06:46:20]OFD Sender: No OFD packet to send [06:46:25]OFD Sender: No OFD packet to send [06:46:30]OFD Sender: No OFD packet to send [06:46:35]OFD Sender: No OFD packet to send [06:46:40]OFD Sender: No OFD packet to send [06:46:45]OFD Sender: No OFD packet to send [06:46:50]OFD Sender: No OFD packet to send [06:46:55]OFD Sender: No OFD packet to send [06:47:00]OFD Sender: No OFD packet to send [06:47:05]OFD Sender: No OFD packet to send [06:47:10]OFD Sender: No OFD packet to send [06:47:15]OFD Sender: No OFD packet to send [06:47:20]OFD Sender: No OFD packet to send [06:47:25]OFD Sender: No OFD packet to send [06:47:30]OFD Sender: No OFD packet to send [06:47:35]OFD Sender: No OFD packet to send [06:47:40]OFD Sender: No OFD packet to send [06:47:45]OFD Sender: No OFD packet to send [06:47:50]OFD Sender: No OFD packet to send [06:47:55]OFD Sender: No OFD packet to send [06:48:00]OFD Sender: No OFD packet to send [06:48:05]OFD Sender: No OFD packet to send [06:48:10]OFD Sender: No OFD packet to send [06:48:15]OFD Sender: No OFD packet to send [06:48:20]OFD Sender: No OFD packet to send [06:48:26]OFD Sender: No OFD packet to send [06:48:31]OFD Sender: No OFD packet to send [06:48:36]OFD Sender: No OFD packet to send [06:48:41]OFD Sender: No OFD packet to send [06:48:46]OFD Sender: No OFD packet to send [06:48:51]OFD Sender: No OFD packet to send [06:48:56]OFD Sender: No OFD packet to send [06:49:01]OFD Sender: No OFD packet to send [06:49:06]OFD Sender: No OFD packet to send [06:49:11]OFD Sender: No OFD packet to send [06:49:16]OFD Sender: No OFD packet to send [06:49:21]OFD Sender: No OFD packet to send [06:49:26]OFD Sender: No OFD packet to send [06:49:31]OFD Sender: No OFD packet to send [06:49:36]OFD Sender: No OFD packet to send [06:49:41]OFD Sender: No OFD packet to send [06:49:46]OFD Sender: No OFD packet to send [06:49:51]OFD Sender: No OFD packet to send [06:49:56]OFD Sender: No OFD packet to send [06:50:01]OFD Sender: No OFD packet to send [06:50:06]OFD Sender: No OFD packet to send [06:50:11]OFD Sender: No OFD packet to send [06:50:16]OFD Sender: No OFD packet to send [06:50:21]OFD Sender: No OFD packet to send [06:50:26]OFD Sender: No OFD packet to send [06:50:31]OFD Sender: No OFD packet to send [06:50:36]OFD Sender: No OFD packet to send [06:50:41]OFD Sender: No OFD packet to send [06:50:46]OFD Sender: No OFD packet to send [06:50:51]OFD Sender: No OFD packet to send [06:50:56]OFD Sender: No OFD packet to send [06:51:01]OFD Sender: No OFD packet to send [06:51:06]OFD Sender: No OFD packet to send [06:51:11]OFD Sender: No OFD packet to send [06:51:16]OFD Sender: No OFD packet to send [06:51:21]OFD Sender: No OFD packet to send [06:51:26]OFD Sender: No OFD packet to send [06:51:31]OFD Sender: No OFD packet to send [06:51:36]OFD Sender: No OFD packet to send [06:51:41]OFD Sender: No OFD packet to send [06:51:46]OFD Sender: No OFD packet to send [06:51:51]OFD Sender: No OFD packet to send [06:51:56]OFD Sender: No OFD packet to send [06:52:01]OFD Sender: No OFD packet to send [06:52:06]OFD Sender: No OFD packet to send [06:52:11]OFD Sender: No OFD packet to send [06:52:16]OFD Sender: No OFD packet to send [06:52:21]OFD Sender: No OFD packet to send [06:52:26]OFD Sender: No OFD packet to send [06:52:31]OFD Sender: No OFD packet to send [06:52:36]OFD Sender: No OFD packet to send [06:52:41]OFD Sender: No OFD packet to send [06:52:46]OFD Sender: No OFD packet to send [06:52:51]OFD Sender: No OFD packet to send [06:52:56]OFD Sender: No OFD packet to send [06:53:01]OFD Sender: No OFD packet to send [06:53:06]OFD Sender: No OFD packet to send [06:53:11]OFD Sender: No OFD packet to send [06:53:16]OFD Sender: No OFD packet to send [06:53:21]OFD Sender: No OFD packet to send [06:53:26]OFD Sender: No OFD packet to send [06:53:31]OFD Sender: No OFD packet to send [06:53:36]OFD Sender: No OFD packet to send [06:53:41]OFD Sender: No OFD packet to send [06:53:46]OFD Sender: No OFD packet to send [06:53:51]OFD Sender: No OFD packet to send [06:53:56]OFD Sender: No OFD packet to send [06:54:01]OFD Sender: No OFD packet to send [06:54:06]OFD Sender: No OFD packet to send [06:54:11]OFD Sender: No OFD packet to send [06:54:16]OFD Sender: No OFD packet to send [06:54:21]OFD Sender: No OFD packet to send [06:54:26]OFD Sender: No OFD packet to send [06:54:31]OFD Sender: No OFD packet to send [06:54:36]OFD Sender: No OFD packet to send [06:54:41]OFD Sender: No OFD packet to send [06:54:46]OFD Sender: No OFD packet to send [06:54:51]OFD Sender: No OFD packet to send [06:54:56]OFD Sender: No OFD packet to send [06:55:01]OFD Sender: No OFD packet to send [06:55:06]OFD Sender: No OFD packet to send [06:55:11]OFD Sender: No OFD packet to send [06:55:16]OFD Sender: No OFD packet to send [06:55:21]OFD Sender: No OFD packet to send [06:55:26]OFD Sender: No OFD packet to send [06:55:31]OFD Sender: No OFD packet to send [06:55:36]OFD Sender: No OFD packet to send [06:55:41]OFD Sender: No OFD packet to send [06:55:46]OFD Sender: No OFD packet to send [06:55:51]OFD Sender: No OFD packet to send [06:55:56]OFD Sender: No OFD packet to send [06:56:01]OFD Sender: No OFD packet to send [06:56:06]OFD Sender: No OFD packet to send [06:56:11]OFD Sender: No OFD packet to send [06:56:16]OFD Sender: No OFD packet to send [06:56:21]OFD Sender: No OFD packet to send [06:56:26]OFD Sender: No OFD packet to send [06:56:31]OFD Sender: No OFD packet to send [06:56:36]OFD Sender: No OFD packet to send [06:56:41]OFD Sender: No OFD packet to send [06:56:46]OFD Sender: No OFD packet to send [06:56:51]OFD Sender: No OFD packet to send [06:56:56]OFD Sender: No OFD packet to send [06:57:01]OFD Sender: No OFD packet to send [06:57:06]OFD Sender: No OFD packet to send [06:57:11]OFD Sender: No OFD packet to send [06:57:16]OFD Sender: No OFD packet to send [06:57:21]OFD Sender: No OFD packet to send [06:57:26]OFD Sender: No OFD packet to send [06:57:31]OFD Sender: No OFD packet to send [06:57:36]OFD Sender: No OFD packet to send [06:57:41]OFD Sender: No OFD packet to send [06:57:46]OFD Sender: No OFD packet to send [06:57:51]OFD Sender: No OFD packet to send [06:57:56]OFD Sender: No OFD packet to send [06:58:01]OFD Sender: No OFD packet to send [06:58:06]OFD Sender: No OFD packet to send [06:58:11]OFD Sender: No OFD packet to send [06:58:16]OFD Sender: No OFD packet to send [06:58:21]OFD Sender: No OFD packet to send [06:58:26]OFD Sender: No OFD packet to send [06:58:31]OFD Sender: No OFD packet to send [06:58:36]OFD Sender: No OFD packet to send [06:58:41]OFD Sender: No OFD packet to send [06:58:46]OFD Sender: No OFD packet to send [06:58:51]OFD Sender: No OFD packet to send [06:58:56]OFD Sender: No OFD packet to send [06:59:01]OFD Sender: No OFD packet to send [06:59:06]OFD Sender: No OFD packet to send [06:59:11]OFD Sender: No OFD packet to send [06:59:16]OFD Sender: No OFD packet to send [06:59:21]OFD Sender: No OFD packet to send [06:59:26]OFD Sender: No OFD packet to send [06:59:31]OFD Sender: No OFD packet to send [06:59:36]OFD Sender: No OFD packet to send [06:59:41]OFD Sender: No OFD packet to send [06:59:46]OFD Sender: No OFD packet to send [06:59:51]OFD Sender: No OFD packet to send [06:59:56]OFD Sender: No OFD packet to send [07:00:01]OFD Sender: No OFD packet to send [07:00:06]OFD Sender: No OFD packet to send [07:00:11]OFD Sender: No OFD packet to send [07:00:16]OFD Sender: No OFD packet to send [07:00:21]OFD Sender: No OFD packet to send [07:00:26]OFD Sender: No OFD packet to send [07:00:31]OFD Sender: No OFD packet to send [07:00:36]OFD Sender: No OFD packet to send [07:00:41]OFD Sender: No OFD packet to send [07:00:46]OFD Sender: No OFD packet to send [07:00:51]OFD Sender: No OFD packet to send [07:00:56]OFD Sender: No OFD packet to send [07:01:01]OFD Sender: No OFD packet to send [07:01:06]OFD Sender: No OFD packet to send [07:01:11]OFD Sender: No OFD packet to send [07:01:16]OFD Sender: No OFD packet to send [07:01:21]OFD Sender: No OFD packet to send [07:01:26]OFD Sender: No OFD packet to send [07:01:31]OFD Sender: No OFD packet to send [07:01:36]OFD Sender: No OFD packet to send [07:01:41]OFD Sender: No OFD packet to send [07:01:46]OFD Sender: No OFD packet to send [07:01:51]OFD Sender: No OFD packet to send [07:01:56]OFD Sender: No OFD packet to send [07:02:01]OFD Sender: No OFD packet to send [07:02:06]OFD Sender: No OFD packet to send [07:02:11]OFD Sender: No OFD packet to send [07:02:16]OFD Sender: No OFD packet to send [07:02:21]OFD Sender: No OFD packet to send [07:02:26]OFD Sender: No OFD packet to send [07:02:31]OFD Sender: No OFD packet to send [07:02:36]OFD Sender: No OFD packet to send [07:02:41]OFD Sender: No OFD packet to send [07:02:46]OFD Sender: No OFD packet to send [07:02:51]OFD Sender: No OFD packet to send [07:02:56]OFD Sender: No OFD packet to send [07:03:01]OFD Sender: No OFD packet to send [07:03:06]OFD Sender: No OFD packet to send [07:03:11]OFD Sender: No OFD packet to send [07:03:16]OFD Sender: No OFD packet to send [07:03:21]OFD Sender: No OFD packet to send [07:03:26]OFD Sender: No OFD packet to send [07:03:31]OFD Sender: No OFD packet to send [07:03:36]OFD Sender: No OFD packet to send [07:03:41]OFD Sender: No OFD packet to send [07:03:46]OFD Sender: No OFD packet to send [07:03:51]OFD Sender: No OFD packet to send [07:03:56]OFD Sender: No OFD packet to send [07:04:01]OFD Sender: No OFD packet to send [07:04:06]OFD Sender: No OFD packet to send [07:04:11]OFD Sender: No OFD packet to send [07:04:16]OFD Sender: No OFD packet to send [07:04:21]accept exits with 8 [07:04:21]New connection [07:04:21]New thread 3066977636 created [07:04:21]Thread 3066834276 joined [07:04:21]Waiting for new connection... [07:04:21] Sock 8.Parse request [07:04:21]Sock 8.Check first char [07:04:21]Sock 8.First char is OK [07:04:21]request: POST /json_proto HTTP/1.0 [07:04:21]Method: POST [07:04:21]URL: /json_proto [07:04:21]Method is POST - this is cgi request [07:04:21]url: /json_proto [07:04:21]query_string will be loaded in cgi processing [07:04:21]execute_cgi json_proto POST (null) [07:04:21]execute_cgi path=json_proto method=POST [07:04:21]POST find Content-Length [07:04:21]Host: 172.17.63.3:8080 [07:04:21]Content-Length: 681 [07:04:21]Content-Type: application/json [07:04:21] [07:04:21]POST finish read [07:04:21]Found Content-Length = 681 [07:04:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99276", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 20.930, "sum" : 1400.22, "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" ] } } [07:04:21]execute_script... [07:04: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)99276", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 20.930, "sum" : 1400.22, "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" ] } } [07:04:21]POST & json_proto [07:04:21]process_json_proto [07:04:21]json parsed OK: [07:04:21]protocol is kg_v1.0 [07:04:21]action value=close_receipt [07:04:21]process_action close_receipt [07:04:21]cmd_close_receipt [07:04:21]MH_GetDate [07:04:21]Write to MH i2c: F0 00 00 CD 34 F0 [07:04:21]Write i2c OK [07:04:21]MH_I2C_Read... [07:04:21]Read from MH i2c: F0 [07:04:21]MH_I2C_Read... [07:04:21]Read from MH i2c: F0 09 00 [07:04:21]MH_I2C_Read... [07:04:21]Read from MH i2c: F0 09 00 CD 34 00 F9 E5 1D 67 50 D1 6C 64 4C [07:04:21]GetLastDocTimeStamp 1730010941 [07:04:21]current date 1730012665 [07:04:21]FM_GetShiftState [07:04:21]SAM_PROTO_GetShiftState [07:04:21]wFMCommunicate request_size=4 [07:04:21]MH_SAM_APDU [07:04:21]CAPDU: 80 13 01 00 [07:04:21]Write to MH i2c: E2 08 00 CE 34 80 13 01 00 00 00 00 00 7F [07:04:21]Write i2c OK [07:04:21]MH_I2C_Read... [07:04:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:04:21]Read from MH i2c: E2 [07:04:21]MH_I2C_Read... [07:04:21]Read from MH i2c: E2 0E 00 [07:04:21]MH_I2C_Read... [07:04:21]Read from MH i2c: E2 0E 00 CE 34 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 4C [07:04:21]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [07:04:21]wFMCommunicate OK [07:04:21]SAM_PROTO_GetShiftState done [07:04:21]FM_GetShiftState done [07:04:21]opened in 1729989044 [07:04:21]opened+sec_in_day 1730075444 [07:04:21]quantity*price = 140021 [07:04:21]sum+1 = 140023 [07:04:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.70 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 14 27.10.2024 07:04 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156463 ФПД: 79036161124465 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T070425&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156463&fm=79036161124465&tin=02508201610067®Number=0000000000091693&sum=140000 [07:04:22]StoreToDocumentArchive [07:04:22]shift 537 fd 156463 [07:04:22]save to /storage/0537/doc_00156463 [07:04:22]save last doc name /storage/0537/doc_00156463 to /storage/kkm_last_doc_name [07:04:22]save OK [07:04:22]Clear old archive folders... [07:04:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:04:22]tlvbuf is 016E9D20 [07:04:22]SAM_PROTO_ClearQueue [07:04:22]wFMCommunicate request_size=4 [07:04:22]MH_SAM_APDU [07:04:22]CAPDU: 80 09 00 00 [07:04:22]Write to MH i2c: E2 08 00 DB 34 80 09 00 00 00 00 00 00 81 [07:04:22]Write i2c OK [07:04:22]MH_I2C_Read... [07:04:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:04:22]Read from MH i2c: E2 [07:04:22]MH_I2C_Read... [07:04:22]Read from MH i2c: E2 03 00 [07:04:22]MH_I2C_Read... [07:04:22]Read from MH i2c: E2 03 00 DB 34 00 90 00 83 [07:04:22]RAPDU: 90 00 [07:04:22]wFMCommunicate OK [07:04:22]SAM_PROTO_ClearQueue done [07:04:22]KKMCreateOFDPacket [07:04:22]OFDProtocolAddRootSTLVToBuf [07:04:22]FM_MakeSignedData [07:04:22]FM_MakeSignedData [07:04:22]SAM_PROTO_SignData [07:04:22]wFMCommunicate request_size=4 [07:04:22]MH_SAM_APDU [07:04:22]CAPDU: 80 0D 01 02 [07:04:22]Write to MH i2c: E2 08 00 DC 34 80 0D 01 02 00 00 00 00 89 [07:04:22]Write i2c OK [07:04:22]MH_I2C_Read... [07:04:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:04:22]Read from MH i2c: E2 [07:04:22]MH_I2C_Read... [07:04:22]Read from MH i2c: E2 03 00 [07:04:22]MH_I2C_Read... [07:04:22]Read from MH i2c: E2 03 00 DC 34 00 90 00 84 [07:04:22]RAPDU: 90 00 [07:04:22]wFMCommunicate OK [07:04:22]wFMCommunicate request_size=255 [07:04:22]MH_SAM_APDU [07:04: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 C2 51 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 22 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 16 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 0E 00 00 00 F4 03 04 00 F9 E5 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2F 63 02 00 35 04 06 00 47 [07:04:22]Write to MH i2c: E2 02 01 DD 34 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C2 51 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 22 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 16 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 0E 00 00 00 F4 03 04 00 F9 E5 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2F 63 02 00 35 04 06 00 47 00 00 9A [07:04:22]Write i2c OK [07:04:22]MH_I2C_Read... [07:04:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:04:22]Read from MH i2c: E2 [07:04:22]MH_I2C_Read... [07:04:22]Read from MH i2c: E2 03 00 [07:04:22]MH_I2C_Read... [07:04:22]Read from MH i2c: E2 03 00 DD 34 00 90 00 85 [07:04:22]RAPDU: 90 00 [07:04:22]wFMCommunicate OK [07:04:22]wFMCommunicate request_size=10 [07:04:22]MH_SAM_APDU [07:04:22]CAPDU: 80 0D 02 02 05 E2 0A 4E E8 71 [07:04:22]Write to MH i2c: E2 0D 00 DE 34 80 0D 02 02 05 00 E2 0A 4E E8 71 00 00 29 [07:04:22]Write i2c OK [07:04:22]MH_I2C_Read... [07:04:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:04:23]Read from MH i2c: E2 [07:04:23]MH_I2C_Read... [07:04:23]Read from MH i2c: E2 03 00 [07:04:23]MH_I2C_Read... [07:04:23]Read from MH i2c: E2 03 00 DE 34 00 90 00 86 [07:04:23]RAPDU: 90 00 [07:04:23]wFMCommunicate OK [07:04:23]wFMCommunicate request_size=4 [07:04:23]MH_SAM_APDU [07:04:23]CAPDU: 80 0D 03 02 [07:04:23]Write to MH i2c: E2 08 00 DF 34 80 0D 03 02 00 00 00 00 8E [07:04:23]Write i2c OK [07:04:23]MH_I2C_Read... [07:04:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:04:23]Read from MH i2c: E2 [07:04:23]MH_I2C_Read... [07:04:23]Read from MH i2c: E2 0B 00 [07:04:23]MH_I2C_Read... [07:04:23]Read from MH i2c: E2 0B 00 DF 34 00 8B 9B 30 83 4B 45 20 80 90 00 98 [07:04:23]RAPDU: 8B 9B 30 83 4B 45 20 80 90 00 [07:04:23]wFMCommunicate OK [07:04:23]SAM_PROTO_SignData done [07:04:23]FM_MakeSignedData done [07:04:23]CreateOFDProtocolMessage [07:04:23]wFMCommunicate request_size=4 [07:04:23]MH_SAM_APDU [07:04:23]CAPDU: 80 11 00 00 [07:04:23]Write to MH i2c: E2 08 00 E0 34 80 11 00 00 00 00 00 00 8E [07:04:23]Write i2c OK [07:04:23]MH_I2C_Read... [07:04:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:04:23]Read from MH i2c: E2 [07:04:23]MH_I2C_Read... [07:04:23]Read from MH i2c: E2 17 00 [07:04:23]MH_I2C_Read... [07:04:23]Read from MH i2c: E2 17 00 E0 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 E3 [07:04:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [07:04:23]wFMCommunicate OK [07:04:23]CreateOFDProtocolMessage done [07:04:23]OFDSenderStorePacket 156463 [07:04:23]StoreOFDPacket docnum=156463 [07:04:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 D6 59 07 01 06 1B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C2 51 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 22 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 16 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 0E 00 00 00 F4 03 04 00 F9 E5 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2F 63 02 00 35 04 06 00 47 E2 0A 4E E8 71 8B 9B 30 83 4B 45 20 80 [07:04:23]CheckFolder [07:04:23]dirname=/storage/ofd_packets [07:04:23]CheckFolder done [07:04:23]ProducePacketName [07:04:23]name=ofd_packets/00156463 [07:04:23]NVStorageSaveData ofd_packets/00156463 [07:04:23]File name is /storage/ofd_packets/00156463 [07:04:23]Write 301 bytes [07:04:23]NVStorageSaveData done [07:04:23]OFDSenderStorePacket done [07:04:23]KKMCreateOFDPacket done [07:04:23]NVStorageSaveData kkm_last_timestamp [07:04:23]File name is /storage/kkm_last_timestamp [07:04:23]Write 4 bytes [07:04:23]NVStorageSaveData done [07:04:23]ExternCall_PrintAddStr [07:04:23]wPrintStart [07:04:23]Write to MH i2c: 01 00 00 E1 34 15 [07:04:23]Write i2c OK [07:04:23]MH_I2C_Read... [07:04:23]Read from MH i2c: 01 [07:04:23]MH_I2C_Read... [07:04:23]Read from MH i2c: 01 07 00 [07:04:23]MH_I2C_Read... [07:04:23]Read from MH i2c: 01 07 00 E1 34 00 00 00 00 00 FF 0F 2A [07:04:23]RasterBufferAndPrint [07:04:23]line Счет N : (1)99276 [07:04:23]line ИНН: 02508201610067 [07:04:23]line Контрольно-Кассовый Чек [07:04:23]line ПРОДАЖА [07:04:23]line ТРК (МРК, ГНК) : 21 [07:04:23]line Товар: 2710124130 [07:04:23]line Аи-92-К-5 [07:04:23]line 20.930 * 66.90 [07:04:23]line = 1400.22 [07:04:23]line НДС 12% НСП 1% [07:04:23]line > о реализуемом товаре [07:04:23]line ОКРУГЛЕНИЕ: -0.22 [07:04:23]line ИТОГО: 1400.00 [07:04:23]line Внесено: 1400.00 [07:04:23]line СДАЧА: 0.00 [07:04:23]line НСП 1% : 12.39 [07:04:23]line НДС 12% : 148.70 [07:04:23]line Наличными: 1400.00 [07:04:23]line Безнал.: 0.00 [07:04:23]line Место: АЗС № 143 "Партнер Нефть" [07:04:23]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [07:04:23]line СНО: Общий режим [07:04:23]line Чек 14 27.10.2024 07:04 [07:04:23]line Смена: 537 ФФД: 1.0 [07:04:23]line ЗНМ: 0300000096 [07:04:23]line РНМ: 0000000000091693 [07:04:23]line Версия ККМ: 001 [07:04:23]line ФМ: 0000000000871792 [07:04:23]line ФД: 156463 [07:04:23]line ФПД: 79036161124465 [07:04:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T070425&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156463&fm=79036161124465&tin=02508201610067®Number=0000000000091693&sum=140000 [07:04:23]OFD Sender: Processing packet 156463 [packets to send 31, broken 30] [07:04:23]ProducePacketName [07:04:23]name=ofd_packets/00156463 [07:04:23]OFD Sender: To server: pG, [07:04:23]CommunicateWithHost lk.salyk.kg:30040 [07:04:23]ConnectInit lk.salyk.kg [07:04:23]written 0, free lines is 4095 [07:04:23]Connected sock=10 [07:04:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 D6 59 07 01 06 1B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C2 51 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 22 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 16 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 0E 00 00 00 F4 03 04 00 F9 E5 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2F 63 02 00 35 04 06 00 47 E2 0A 4E E8 71 8B 9B 30 83 4B 45 20 80 [07:04:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 3D 84 47 00 A4 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 31 37 39 32 10 04 04 00 2F 63 02 00 F4 03 04 00 6A 8B 1D 67 B6 04 01 00 00 37 EF CF D6 A5 53 E4 30 [07:04:23]CommunicateWithHost err = 0 [07:04:23]CheckOFDResponse [07:04:23]1017 (14) - 77093643461234 [07:04:23]1041 (16) - 0000000000871792 [07:04:23]1040 (4) - 156463 [07:04:23]1012 (4) - 27.10.2024 00:38 [07:04:23]1206 (1) - 0 [07:04:23]OFD Sender: Remove packet 156463 [07:04:23]ProducePacketName [07:04:23]name=ofd_packets/00156463 [07:04:23]NVStorageDeleteData [07:04:23]Write to MH i2c: 01 00 00 0C 35 41 [07:04:23]Write i2c OK [07:04:23]MH_I2C_Read... [07:04:23]Read from MH i2c: 01 [07:04:23]MH_I2C_Read... [07:04:23]Read from MH i2c: 01 07 00 [07:04:23]MH_I2C_Read... [07:04:23]Read from MH i2c: 01 07 00 0C 35 00 00 00 00 00 DE 0C 32 [07:04:23]RasterBufferAndPrint [07:04:23]line [07:04:23]line [07:04:23]line [07:04:23]line [07:04:23]line [07:04:23]written 0, free lines is 3300 [07:04:23]process_action close_receipt done [07:04:23]requested_data is exist [07:04:23]produce_requested_data [07:04:23]requested_item fm.sn is exist - process it [07:04:23]wFMCommunicate request_size=4 [07:04:23]MH_SAM_APDU [07:04:23]CAPDU: 80 11 00 00 [07:04:23]Write to MH i2c: E2 08 00 13 35 80 11 00 00 00 00 00 00 C2 [07:04:23]Write i2c OK [07:04:23]MH_I2C_Read... [07:04:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:04:23]Read from MH i2c: E2 [07:04:23]MH_I2C_Read... [07:04:23]Read from MH i2c: E2 17 00 [07:04:23]MH_I2C_Read... [07:04:23]Read from MH i2c: E2 17 00 13 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 17 [07:04:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [07:04:23]wFMCommunicate OK [07:04:23]requested_item fd.num is exist - process it [07:04:23]SAM_PROTO_GetFieldsCounters [07:04:23]wFMCommunicate request_size=4 [07:04:23]MH_SAM_APDU [07:04:23]CAPDU: 80 13 00 00 [07:04:23]Write to MH i2c: E2 08 00 14 35 80 13 00 00 00 00 00 00 C5 [07:04:23]Write i2c OK [07:04:23]MH_I2C_Read... [07:04:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:04:24]Read from MH i2c: E2 [07:04:24]MH_I2C_Read... [07:04:24]Read from MH i2c: E2 62 00 [07:04:24]MH_I2C_Read... [07:04:24]Read from MH i2c: E2 62 00 14 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 2F 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 C4 [07:04:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 2F 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:04:24]wFMCommunicate OK [07:04:24]SAM_PROTO_GetFieldsCounters done [07:04:24]requested_item shift.num is exist - process it [07:04:24]requested_item shift.opened is exist - process it [07:04:24]req_shift_opened [07:04:24]FM_GetShiftState [07:04:24]SAM_PROTO_GetShiftState [07:04:24]wFMCommunicate request_size=4 [07:04:24]MH_SAM_APDU [07:04:24]CAPDU: 80 13 01 00 [07:04:24]Write to MH i2c: E2 08 00 15 35 80 13 01 00 00 00 00 00 C7 [07:04:24]Write i2c OK [07:04:24]MH_I2C_Read... [07:04:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:04:24]Read from MH i2c: E2 [07:04:24]MH_I2C_Read... [07:04:24]Read from MH i2c: E2 0E 00 [07:04:24]MH_I2C_Read... [07:04:24]Read from MH i2c: E2 0E 00 15 35 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 94 [07:04:24]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [07:04:24]wFMCommunicate OK [07:04:24]SAM_PROTO_GetShiftState done [07:04:24]FM_GetShiftState done [07:04:24]req_shift_opened done [07:04:24]requested_item shift.open_date is exist - process it [07:04:24]req_shift_open_date [07:04:24]req_shift_open_date done [07:04:24]produce_requested_data done [07:04:24]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156463,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [07:04:24]process_action_free close_receipt [07:04:24]json_value_free [07:04:24]json_value_free done [07:04:24]process_json_proto returns [07:04:24]Send response to host [07:04:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156463,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [07:04:24]free response buf [07:04:24]execute_script done [07:04:24]execute_script returns [07:04:24]free content buf [07:04:24]Sock 8.Close socket [07:04:24]Sock 8.Thread stoped [07:04:24]OFD Sender: No OFD packet to send [07:04:29]OFD Sender: No OFD packet to send [07:04:34]OFD Sender: No OFD packet to send [07:04:39]OFD Sender: No OFD packet to send [07:04:44]OFD Sender: No OFD packet to send [07:04:49]OFD Sender: No OFD packet to send [07:04:54]OFD Sender: No OFD packet to send [07:04:54]accept exits with 9 [07:04:54]New connection [07:04:54]New thread 3066834276 created [07:04:54]Thread 3066977636 joined [07:04:54]Waiting for new connection... [07:04:54] Sock 9.Parse request [07:04:54]Sock 9.Check first char [07:04:54]Sock 9.First char is OK [07:04:54]request: POST /json_proto HTTP/1.0 [07:04:54]Method: POST [07:04:54]URL: /json_proto [07:04:54]Method is POST - this is cgi request [07:04:54]url: /json_proto [07:04:54]query_string will be loaded in cgi processing [07:04:54]execute_cgi json_proto POST (null) [07:04:54]execute_cgi path=json_proto method=POST [07:04:54]POST find Content-Length [07:04:54]Host: 172.17.63.3:8080 [07:04:54]Content-Length: 678 [07:04:54]Content-Type: application/json [07:04:54] [07:04:54]POST finish read [07:04:54]Found Content-Length = 678 [07:04:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99277", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:04:54]execute_script... [07:04:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99277", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:04:54]POST & json_proto [07:04:54]process_json_proto [07:04:54]json parsed OK: [07:04:54]protocol is kg_v1.0 [07:04:54]action value=close_receipt [07:04:54]process_action close_receipt [07:04:54]cmd_close_receipt [07:04:54]MH_GetDate [07:04:54]Write to MH i2c: F0 00 00 16 35 3A [07:04:54]Write i2c OK [07:04:54]MH_I2C_Read... [07:04:54]Read from MH i2c: F0 [07:04:54]MH_I2C_Read... [07:04:54]Read from MH i2c: F0 09 00 [07:04:54]MH_I2C_Read... [07:04:54]Read from MH i2c: F0 09 00 16 35 00 1B E6 1D 67 50 D1 6C 64 B9 [07:04:54]GetLastDocTimeStamp 1730012665 [07:04:54]current date 1730012699 [07:04:54]FM_GetShiftState [07:04:54]SAM_PROTO_GetShiftState [07:04:54]wFMCommunicate request_size=4 [07:04:54]MH_SAM_APDU [07:04:54]CAPDU: 80 13 01 00 [07:04:54]Write to MH i2c: E2 08 00 17 35 80 13 01 00 00 00 00 00 C9 [07:04:54]Write i2c OK [07:04:54]MH_I2C_Read... [07:04:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:04:54]Read from MH i2c: E2 [07:04:54]MH_I2C_Read... [07:04:54]Read from MH i2c: E2 0E 00 [07:04:54]MH_I2C_Read... [07:04:54]Read from MH i2c: E2 0E 00 17 35 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 96 [07:04:54]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [07:04:54]wFMCommunicate OK [07:04:54]SAM_PROTO_GetShiftState done [07:04:54]FM_GetShiftState done [07:04:54]opened in 1729989044 [07:04:54]opened+sec_in_day 1730075444 [07:04:54]quantity*price = 200025 [07:04:54]sum+1 = 200026 [07:04:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 15 27.10.2024 07:04 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156464 ФПД: 179437753934050 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T070459&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156464&fm=179437753934050&tin=02508201610067®Number=0000000000091693&sum=200000 [07:04:55]StoreToDocumentArchive [07:04:55]shift 537 fd 156464 [07:04:55]save to /storage/0537/doc_00156464 [07:04:55]save last doc name /storage/0537/doc_00156464 to /storage/kkm_last_doc_name [07:04:55]save OK [07:04:55]Clear old archive folders... [07:04:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:04:55]tlvbuf is 0171E5E0 [07:04:55]SAM_PROTO_ClearQueue [07:04:55]wFMCommunicate request_size=4 [07:04:55]MH_SAM_APDU [07:04:55]CAPDU: 80 09 00 00 [07:04:55]Write to MH i2c: E2 08 00 24 35 80 09 00 00 00 00 00 00 CB [07:04:55]Write i2c OK [07:04:55]MH_I2C_Read... [07:04:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:04:55]Read from MH i2c: E2 [07:04:55]MH_I2C_Read... [07:04:55]Read from MH i2c: E2 03 00 [07:04:55]MH_I2C_Read... [07:04:55]Read from MH i2c: E2 03 00 24 35 00 90 00 CD [07:04:55]RAPDU: 90 00 [07:04:55]wFMCommunicate OK [07:04:55]SAM_PROTO_ClearQueue done [07:04:55]KKMCreateOFDPacket [07:04:55]OFDProtocolAddRootSTLVToBuf [07:04:55]FM_MakeSignedData [07:04:55]FM_MakeSignedData [07:04:55]SAM_PROTO_SignData [07:04:55]wFMCommunicate request_size=4 [07:04:55]MH_SAM_APDU [07:04:55]CAPDU: 80 0D 01 02 [07:04:55]Write to MH i2c: E2 08 00 25 35 80 0D 01 02 00 00 00 00 D3 [07:04:55]Write i2c OK [07:04:55]MH_I2C_Read... [07:04:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:04:55]Read from MH i2c: E2 [07:04:55]MH_I2C_Read... [07:04:55]Read from MH i2c: E2 03 00 [07:04:55]MH_I2C_Read... [07:04:55]Read from MH i2c: E2 03 00 25 35 00 90 00 CE [07:04:55]RAPDU: 90 00 [07:04:55]wFMCommunicate OK [07:04:55]wFMCommunicate request_size=255 [07:04:55]MH_SAM_APDU [07:04:55]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 1B E6 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 30 63 02 00 35 04 06 00 A3 32 9B 95 [07:04:55]Write to MH i2c: E2 02 01 26 35 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 1B E6 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 30 63 02 00 35 04 06 00 A3 32 9B 95 00 00 94 [07:04:55]Write i2c OK [07:04:55]MH_I2C_Read... [07:04:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:04:56]Read from MH i2c: E2 [07:04:56]MH_I2C_Read... [07:04:56]Read from MH i2c: E2 03 00 [07:04:56]MH_I2C_Read... [07:04:56]Read from MH i2c: E2 03 00 26 35 00 90 00 CF [07:04:56]RAPDU: 90 00 [07:04:56]wFMCommunicate OK [07:04:56]wFMCommunicate request_size=7 [07:04:56]MH_SAM_APDU [07:04:56]CAPDU: 80 0D 02 02 02 20 E2 [07:04:56]Write to MH i2c: E2 0A 00 27 35 80 0D 02 02 02 00 20 E2 00 00 DC [07:04:56]Write i2c OK [07:04:56]MH_I2C_Read... [07:04:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:04:56]Read from MH i2c: E2 [07:04:56]MH_I2C_Read... [07:04:56]Read from MH i2c: E2 03 00 [07:04:56]MH_I2C_Read... [07:04:56]Read from MH i2c: E2 03 00 27 35 00 90 00 D0 [07:04:56]RAPDU: 90 00 [07:04:56]wFMCommunicate OK [07:04:56]wFMCommunicate request_size=4 [07:04:56]MH_SAM_APDU [07:04:56]CAPDU: 80 0D 03 02 [07:04:56]Write to MH i2c: E2 08 00 28 35 80 0D 03 02 00 00 00 00 D8 [07:04:56]Write i2c OK [07:04:56]MH_I2C_Read... [07:04:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:04:56]Read from MH i2c: E2 [07:04:56]MH_I2C_Read... [07:04:56]Read from MH i2c: E2 0B 00 [07:04:56]MH_I2C_Read... [07:04:56]Read from MH i2c: E2 0B 00 28 35 00 9E 4D 4E 72 96 5E 04 6B 90 00 E7 [07:04:56]RAPDU: 9E 4D 4E 72 96 5E 04 6B 90 00 [07:04:56]wFMCommunicate OK [07:04:56]SAM_PROTO_SignData done [07:04:56]FM_MakeSignedData done [07:04:56]CreateOFDProtocolMessage [07:04:56]wFMCommunicate request_size=4 [07:04:56]MH_SAM_APDU [07:04:56]CAPDU: 80 11 00 00 [07:04:56]Write to MH i2c: E2 08 00 29 35 80 11 00 00 00 00 00 00 D8 [07:04:56]Write i2c OK [07:04:56]MH_I2C_Read... [07:04:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:04:56]Read from MH i2c: E2 [07:04:56]MH_I2C_Read... [07:04:56]Read from MH i2c: E2 17 00 [07:04:56]MH_I2C_Read... [07:04:56]Read from MH i2c: E2 17 00 29 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 2D [07:04:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [07:04:56]wFMCommunicate OK [07:04:56]CreateOFDProtocolMessage done [07:04:56]OFDSenderStorePacket 156464 [07:04:56]StoreOFDPacket docnum=156464 [07:04:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 73 11 04 01 FA D3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 1B E6 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 30 63 02 00 35 04 06 00 A3 32 9B 95 20 E2 9E 4D 4E 72 96 5E 04 6B [07:04:56]CheckFolder [07:04:56]dirname=/storage/ofd_packets [07:04:56]CheckFolder done [07:04:56]ProducePacketName [07:04:56]name=ofd_packets/00156464 [07:04:56]NVStorageSaveData ofd_packets/00156464 [07:04:56]File name is /storage/ofd_packets/00156464 [07:04:56]Write 298 bytes [07:04:56]NVStorageSaveData done [07:04:56]OFDSenderStorePacket done [07:04:56]KKMCreateOFDPacket done [07:04:56]NVStorageSaveData kkm_last_timestamp [07:04:56]File name is /storage/kkm_last_timestamp [07:04:56]Write 4 bytes [07:04:56]NVStorageSaveData done [07:04:56]ExternCall_PrintAddStr [07:04:56]wPrintStart [07:04:56]Write to MH i2c: 01 00 00 2A 35 5F [07:04:56]Write i2c OK [07:04:56]MH_I2C_Read... [07:04:56]Read from MH i2c: 01 [07:04:56]MH_I2C_Read... [07:04:56]Read from MH i2c: 01 07 00 [07:04:56]MH_I2C_Read... [07:04:56]Read from MH i2c: 01 07 00 2A 35 00 00 00 00 00 FF 0F 74 [07:04:56]RasterBufferAndPrint [07:04:56]line Счет N : (1)99277 [07:04:56]line ИНН: 02508201610067 [07:04:56]line Контрольно-Кассовый Чек [07:04:56]line ПРОДАЖА [07:04:56]line ТРК (МРК, ГНК) : 32 [07:04:56]line Товар: 2710194210 [07:04:56]line ДТ-К-5 [07:04:56]line 26.250 * 76.20 [07:04:56]line = 2000.25 [07:04:56]line НДС 12% НСП 1% [07:04:56]line > о реализуемом товаре [07:04:56]line ОКРУГЛЕНИЕ: -0.25 [07:04:56]line ИТОГО: 2000.00 [07:04:56]line Внесено: 2000.00 [07:04:56]line СДАЧА: 0.00 [07:04:56]line НСП 1% : 17.70 [07:04:56]line НДС 12% : 212.42 [07:04:56]line Наличными: 2000.00 [07:04:56]line Безнал.: 0.00 [07:04:56]line Место: АЗС № 143 "Партнер Нефть" [07:04:56]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [07:04:56]line СНО: Общий режим [07:04:56]line Чек 15 27.10.2024 07:04 [07:04:56]line Смена: 537 ФФД: 1.0 [07:04:56]line ЗНМ: 0300000096 [07:04:56]line РНМ: 0000000000091693 [07:04:56]line Версия ККМ: 001 [07:04:56]line ФМ: 0000000000871792 [07:04:56]line ФД: 156464 [07:04:56]line ФПД: 179437753934050 [07:04:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T070459&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156464&fm=179437753934050&tin=02508201610067®Number=0000000000091693&sum=200000 [07:04:56]written 0, free lines is 4095 [07:04:56]OFD Sender: Processing packet 156464 [packets to send 31, broken 30] [07:04:56]ProducePacketName [07:04:56]name=ofd_packets/00156464 [07:04:56]OFD Sender: To server: pG, [07:04:56]CommunicateWithHost lk.salyk.kg:30040 [07:04:56]ConnectInit lk.salyk.kg [07:04:56]Connected sock=11 [07:04:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 73 11 04 01 FA D3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 1B E6 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 30 63 02 00 35 04 06 00 A3 32 9B 95 20 E2 9E 4D 4E 72 96 5E 04 6B [07:04:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 B8 8C 47 00 16 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 30 63 02 00 F4 03 04 00 8B 8B 1D 67 B6 04 01 00 00 7C 28 4D C5 2B 99 DD B2 [07:04:57]CommunicateWithHost err = 0 [07:04:57]CheckOFDResponse [07:04:57]1017 (14) - 77093643461234 [07:04:57]1041 (16) - 0000000000871792 [07:04:57]1040 (4) - 156464 [07:04:57]1012 (4) - 27.10.2024 00:38 [07:04:57]1206 (1) - 0 [07:04:57]OFD Sender: Remove packet 156464 [07:04:57]ProducePacketName [07:04:57]name=ofd_packets/00156464 [07:04:57]NVStorageDeleteData [07:04:57]Write to MH i2c: 01 00 00 55 35 8A [07:04:57]Write i2c OK [07:04:57]MH_I2C_Read... [07:04:57]Read from MH i2c: 01 [07:04:57]MH_I2C_Read... [07:04:57]Read from MH i2c: 01 07 00 [07:04:57]MH_I2C_Read... [07:04:57]Read from MH i2c: 01 07 00 55 35 00 00 00 00 00 D9 0C 76 [07:04:57]RasterBufferAndPrint [07:04:57]line [07:04:57]line [07:04:57]line [07:04:57]line [07:04:57]line [07:04:57]written 0, free lines is 3296 [07:04:57]process_action close_receipt done [07:04:57]requested_data is exist [07:04:57]produce_requested_data [07:04:57]requested_item fm.sn is exist - process it [07:04:57]wFMCommunicate request_size=4 [07:04:57]MH_SAM_APDU [07:04:57]CAPDU: 80 11 00 00 [07:04:57]Write to MH i2c: E2 08 00 5C 35 80 11 00 00 00 00 00 00 0B [07:04:57]Write i2c OK [07:04:57]MH_I2C_Read... [07:04:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:04:57]Read from MH i2c: E2 [07:04:57]MH_I2C_Read... [07:04:57]Read from MH i2c: E2 17 00 [07:04:57]MH_I2C_Read... [07:04:57]Read from MH i2c: E2 17 00 5C 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 60 [07:04:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [07:04:57]wFMCommunicate OK [07:04:57]requested_item fd.num is exist - process it [07:04:57]SAM_PROTO_GetFieldsCounters [07:04:57]wFMCommunicate request_size=4 [07:04:57]MH_SAM_APDU [07:04:57]CAPDU: 80 13 00 00 [07:04:57]Write to MH i2c: E2 08 00 5D 35 80 13 00 00 00 00 00 00 0E [07:04:57]Write i2c OK [07:04:57]MH_I2C_Read... [07:04:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:04:57]Read from MH i2c: E2 [07:04:57]MH_I2C_Read... [07:04:57]Read from MH i2c: E2 62 00 [07:04:57]MH_I2C_Read... [07:04:57]Read from MH i2c: E2 62 00 5D 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 30 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 11 [07:04:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 30 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:04:57]wFMCommunicate OK [07:04:57]SAM_PROTO_GetFieldsCounters done [07:04:57]requested_item shift.num is exist - process it [07:04:57]requested_item shift.opened is exist - process it [07:04:57]req_shift_opened [07:04:57]FM_GetShiftState [07:04:57]SAM_PROTO_GetShiftState [07:04:57]wFMCommunicate request_size=4 [07:04:57]MH_SAM_APDU [07:04:57]CAPDU: 80 13 01 00 [07:04:57]Write to MH i2c: E2 08 00 5E 35 80 13 01 00 00 00 00 00 10 [07:04:57]Write i2c OK [07:04:57]MH_I2C_Read... [07:04:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:04:57]Read from MH i2c: E2 [07:04:57]MH_I2C_Read... [07:04:57]Read from MH i2c: E2 0E 00 [07:04:57]MH_I2C_Read... [07:04:57]Read from MH i2c: E2 0E 00 5E 35 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 DD [07:04:57]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [07:04:57]wFMCommunicate OK [07:04:57]SAM_PROTO_GetShiftState done [07:04:57]FM_GetShiftState done [07:04:57]req_shift_opened done [07:04:57]requested_item shift.open_date is exist - process it [07:04:57]req_shift_open_date [07:04:57]req_shift_open_date done [07:04:57]produce_requested_data done [07:04:57]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156464,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [07:04:57]process_action_free close_receipt [07:04:57]json_value_free [07:04:57]json_value_free done [07:04:57]process_json_proto returns [07:04:57]Send response to host [07:04:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156464,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [07:04:57]free response buf [07:04:57]execute_script done [07:04:57]execute_script returns [07:04:57]free content buf [07:04:57]Sock 9.Close socket [07:04:57]Sock 9.Thread stoped [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:52]OFD Sender: No OFD packet to send [07:08:57]OFD Sender: No OFD packet to send [07:09:02]OFD Sender: No OFD packet to send [07:09:07]OFD Sender: No OFD packet to send [07:09:12]OFD Sender: No OFD packet to send [07:09:17]OFD Sender: No OFD packet to send [07:09:22]OFD Sender: No OFD packet to send [07:09:27]OFD Sender: No OFD packet to send [07:09:32]OFD Sender: No OFD packet to send [07:09:37]OFD Sender: No OFD packet to send [07:09:42]OFD Sender: No OFD packet to send [07:09:47]OFD Sender: No OFD packet to send [07:09:52]OFD Sender: No OFD packet to send [07:09:57]OFD Sender: No OFD packet to send [07:10:02]OFD Sender: No OFD packet to send [07:10:07]OFD Sender: No OFD packet to send [07:10:12]OFD Sender: No OFD packet to send [07:10:17]OFD Sender: No OFD packet to send [07:10:22]OFD Sender: No OFD packet to send [07:10:27]OFD Sender: No OFD packet to send [07:10:32]OFD Sender: No OFD packet to send [07:10:37]OFD Sender: No OFD packet to send [07:10:42]OFD Sender: No OFD packet to send [07:10:47]OFD Sender: No OFD packet to send [07:10:52]OFD Sender: No OFD packet to send [07:10:57]OFD Sender: No OFD packet to send [07:11:02]OFD Sender: No OFD packet to send [07:11:07]OFD Sender: No OFD packet to send [07:11:12]OFD Sender: No OFD packet to send [07:11:17]OFD Sender: No OFD packet to send [07:11:22]OFD Sender: No OFD packet to send [07:11:27]OFD Sender: No OFD packet to send [07:11:32]OFD Sender: No OFD packet to send [07:11:37]OFD Sender: No OFD packet to send [07:11:42]OFD Sender: No OFD packet to send [07:11:47]OFD Sender: No OFD packet to send [07:11:52]OFD Sender: No OFD packet to send [07:11:57]OFD Sender: No OFD packet to send [07:12:02]OFD Sender: No OFD packet to send [07:12:07]OFD Sender: No OFD packet to send [07:12:12]OFD Sender: No OFD packet to send [07:12:17]OFD Sender: No OFD packet to send [07:12:22]OFD Sender: No OFD packet to send [07:12:27]OFD Sender: No OFD packet to send [07:12:32]OFD Sender: No OFD packet to send [07:12:37]OFD Sender: No OFD packet to send [07:12:42]OFD Sender: No OFD packet to send [07:12:47]OFD Sender: No OFD packet to send [07:12:52]OFD Sender: No OFD packet to send [07:12:57]OFD Sender: No OFD packet to send [07:13:02]OFD Sender: No OFD packet to send [07:13:07]OFD Sender: No OFD packet to send [07:13:12]OFD Sender: No OFD packet to send [07:13:17]OFD Sender: No OFD packet to send [07:13:22]OFD Sender: No OFD packet to send [07:13:27]OFD Sender: No OFD packet to send [07:13:32]OFD Sender: No OFD packet to send [07:13:37]OFD Sender: No OFD packet to send [07:13:42]OFD Sender: No OFD packet to send [07:13:47]OFD Sender: No OFD packet to send [07:13:52]OFD Sender: No OFD packet to send [07:13:57]OFD Sender: No OFD packet to send [07:14:02]OFD Sender: No OFD packet to send [07:14:07]OFD Sender: No OFD packet to send [07:14:12]OFD Sender: No OFD packet to send [07:14:17]OFD Sender: No OFD packet to send [07:14:22]OFD Sender: No OFD packet to send [07:14:28]OFD Sender: No OFD packet to send [07:14:33]OFD Sender: No OFD packet to send [07:14:38]OFD Sender: No OFD packet to send [07:14:43]OFD Sender: No OFD packet to send [07:14:48]OFD Sender: No OFD packet to send [07:14:53]OFD Sender: No OFD packet to send [07:14:58]OFD Sender: No OFD packet to send [07:15:03]OFD Sender: No OFD packet to send [07:15:08]OFD Sender: No OFD packet to send [07:15:13]OFD Sender: No OFD packet to send [07:15:18]OFD Sender: No OFD packet to send [07:15:23]OFD Sender: No OFD packet to send [07:15:28]OFD Sender: No OFD packet to send [07:15:33]OFD Sender: No OFD packet to send [07:15:38]OFD Sender: No OFD packet to send [07:15:43]OFD Sender: No OFD packet to send [07:15:48]OFD Sender: No OFD packet to send [07:15:53]OFD Sender: No OFD packet to send [07:15:58]OFD Sender: No OFD packet to send [07:16:03]OFD Sender: No OFD packet to send [07:16:08]OFD Sender: No OFD packet to send [07:16:13]OFD Sender: No OFD packet to send [07:16:18]OFD Sender: No OFD packet to send [07:16:23]OFD Sender: No OFD packet to send [07:16:28]OFD Sender: No OFD packet to send [07:16:33]OFD Sender: No OFD packet to send [07:16:38]OFD Sender: No OFD packet to send [07:16:39]accept exits with 8 [07:16:39]New connection [07:16:39]New thread 3066977636 created [07:16:39]Thread 3066834276 joined [07:16:39]Waiting for new connection... [07:16:39] Sock 8.Parse request [07:16:39]Sock 8.Check first char [07:16:39]Sock 8.First char is OK [07:16:39]request: POST /json_proto HTTP/1.0 [07:16:39]Method: POST [07:16:39]URL: /json_proto [07:16:39]Method is POST - this is cgi request [07:16:39]url: /json_proto [07:16:39]query_string will be loaded in cgi processing [07:16:39]execute_cgi json_proto POST (null) [07:16:39]execute_cgi path=json_proto method=POST [07:16:39]POST find Content-Length [07:16:39]Host: 172.17.63.3:8080 [07:16:39]Content-Length: 678 [07:16:39]Content-Type: application/json [07:16:39] [07:16:39]POST finish read [07:16:39]Found Content-Length = 678 [07:16:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99278", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "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" ] } } [07:16:39]execute_script... [07:16: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)99278", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "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" ] } } [07:16:39]POST & json_proto [07:16:39]process_json_proto [07:16:39]json parsed OK: [07:16:39]protocol is kg_v1.0 [07:16:39]action value=close_receipt [07:16:39]process_action close_receipt [07:16:39]cmd_close_receipt [07:16:39]MH_GetDate [07:16:39]Write to MH i2c: F0 00 00 5F 35 83 [07:16:39]Write i2c OK [07:16:39]MH_I2C_Read... [07:16:39]Read from MH i2c: F0 [07:16:39]MH_I2C_Read... [07:16:39]Read from MH i2c: F0 09 00 [07:16:39]MH_I2C_Read... [07:16:39]Read from MH i2c: F0 09 00 5F 35 00 DB E8 1D 67 50 D1 6C 64 C4 [07:16:39]GetLastDocTimeStamp 1730012699 [07:16:39]current date 1730013403 [07:16:39]FM_GetShiftState [07:16:39]SAM_PROTO_GetShiftState [07:16:39]wFMCommunicate request_size=4 [07:16:39]MH_SAM_APDU [07:16:39]CAPDU: 80 13 01 00 [07:16:39]Write to MH i2c: E2 08 00 60 35 80 13 01 00 00 00 00 00 12 [07:16:39]Write i2c OK [07:16:39]MH_I2C_Read... [07:16:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:16:39]Read from MH i2c: E2 [07:16:39]MH_I2C_Read... [07:16:39]Read from MH i2c: E2 0E 00 [07:16:39]MH_I2C_Read... [07:16:39]Read from MH i2c: E2 0E 00 60 35 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 DF [07:16:39]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [07:16:39]wFMCommunicate OK [07:16:39]SAM_PROTO_GetShiftState done [07:16:39]FM_GetShiftState done [07:16:39]opened in 1729989044 [07:16:39]opened+sec_in_day 1730075444 [07:16:39]quantity*price = 150037 [07:16:39]sum+1 = 150039 [07:16:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 16 27.10.2024 07:16 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156465 ФПД: 180531866345697 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T071644&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156465&fm=180531866345697&tin=02508201610067®Number=0000000000091693&sum=150000 [07:16:40]StoreToDocumentArchive [07:16:40]shift 537 fd 156465 [07:16:40]save to /storage/0537/doc_00156465 [07:16:40]save last doc name /storage/0537/doc_00156465 to /storage/kkm_last_doc_name [07:16:40]save OK [07:16:40]Clear old archive folders... [07:16:40]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:16:40]tlvbuf is 0167EC40 [07:16:40]SAM_PROTO_ClearQueue [07:16:40]wFMCommunicate request_size=4 [07:16:40]MH_SAM_APDU [07:16:40]CAPDU: 80 09 00 00 [07:16:40]Write to MH i2c: E2 08 00 6D 35 80 09 00 00 00 00 00 00 14 [07:16:40]Write i2c OK [07:16:40]MH_I2C_Read... [07:16:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:16:40]Read from MH i2c: E2 [07:16:40]MH_I2C_Read... [07:16:40]Read from MH i2c: E2 03 00 [07:16:40]MH_I2C_Read... [07:16:40]Read from MH i2c: E2 03 00 6D 35 00 90 00 16 [07:16:40]RAPDU: 90 00 [07:16:40]wFMCommunicate OK [07:16:40]SAM_PROTO_ClearQueue done [07:16:40]KKMCreateOFDPacket [07:16:40]OFDProtocolAddRootSTLVToBuf [07:16:40]FM_MakeSignedData [07:16:40]FM_MakeSignedData [07:16:40]SAM_PROTO_SignData [07:16:40]wFMCommunicate request_size=4 [07:16:40]MH_SAM_APDU [07:16:40]CAPDU: 80 0D 01 02 [07:16:40]Write to MH i2c: E2 08 00 6E 35 80 0D 01 02 00 00 00 00 1C [07:16:40]Write i2c OK [07:16:40]MH_I2C_Read... [07:16:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:16:40]Read from MH i2c: E2 [07:16:40]MH_I2C_Read... [07:16:40]Read from MH i2c: E2 03 00 [07:16:40]MH_I2C_Read... [07:16:40]Read from MH i2c: E2 03 00 6E 35 00 90 00 17 [07:16:40]RAPDU: 90 00 [07:16:40]wFMCommunicate OK [07:16:40]wFMCommunicate request_size=255 [07:16:40]MH_SAM_APDU [07:16:40]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 DC E8 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 31 63 02 00 35 04 06 00 A4 31 59 C3 [07:16:40]Write to MH i2c: E2 02 01 6F 35 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 DC E8 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 31 63 02 00 35 04 06 00 A4 31 59 C3 00 00 17 [07:16:40]Write i2c OK [07:16:40]MH_I2C_Read... [07:16:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:16:41]Read from MH i2c: E2 [07:16:41]MH_I2C_Read... [07:16:41]Read from MH i2c: E2 03 00 [07:16:41]MH_I2C_Read... [07:16:41]Read from MH i2c: E2 03 00 6F 35 00 90 00 18 [07:16:41]RAPDU: 90 00 [07:16:41]wFMCommunicate OK [07:16:41]wFMCommunicate request_size=7 [07:16:41]MH_SAM_APDU [07:16:41]CAPDU: 80 0D 02 02 02 A0 E1 [07:16:41]Write to MH i2c: E2 0A 00 70 35 80 0D 02 02 02 00 A0 E1 00 00 A4 [07:16:41]Write i2c OK [07:16:41]MH_I2C_Read... [07:16:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:16:41]Read from MH i2c: E2 [07:16:41]MH_I2C_Read... [07:16:41]Read from MH i2c: E2 03 00 [07:16:41]MH_I2C_Read... [07:16:41]Read from MH i2c: E2 03 00 70 35 00 90 00 19 [07:16:41]RAPDU: 90 00 [07:16:41]wFMCommunicate OK [07:16:41]wFMCommunicate request_size=4 [07:16:41]MH_SAM_APDU [07:16:41]CAPDU: 80 0D 03 02 [07:16:41]Write to MH i2c: E2 08 00 71 35 80 0D 03 02 00 00 00 00 21 [07:16:41]Write i2c OK [07:16:41]MH_I2C_Read... [07:16:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:16:41]Read from MH i2c: E2 [07:16:41]MH_I2C_Read... [07:16:41]Read from MH i2c: E2 0B 00 [07:16:41]MH_I2C_Read... [07:16:41]Read from MH i2c: E2 0B 00 71 35 00 D8 A5 53 92 96 7D FA 4C 90 00 DD [07:16:41]RAPDU: D8 A5 53 92 96 7D FA 4C 90 00 [07:16:41]wFMCommunicate OK [07:16:41]SAM_PROTO_SignData done [07:16:41]FM_MakeSignedData done [07:16:41]CreateOFDProtocolMessage [07:16:41]wFMCommunicate request_size=4 [07:16:41]MH_SAM_APDU [07:16:41]CAPDU: 80 11 00 00 [07:16:41]Write to MH i2c: E2 08 00 72 35 80 11 00 00 00 00 00 00 21 [07:16:41]Write i2c OK [07:16:41]MH_I2C_Read... [07:16:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:16:41]Read from MH i2c: E2 [07:16:41]MH_I2C_Read... [07:16:41]Read from MH i2c: E2 17 00 [07:16:41]MH_I2C_Read... [07:16:41]Read from MH i2c: E2 17 00 72 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 76 [07:16:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [07:16:41]wFMCommunicate OK [07:16:41]CreateOFDProtocolMessage done [07:16:41]OFDSenderStorePacket 156465 [07:16:41]StoreOFDPacket docnum=156465 [07:16:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 22 BA 04 01 FC 58 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 DC E8 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 31 63 02 00 35 04 06 00 A4 31 59 C3 A0 E1 D8 A5 53 92 96 7D FA 4C [07:16:41]CheckFolder [07:16:41]dirname=/storage/ofd_packets [07:16:41]CheckFolder done [07:16:41]ProducePacketName [07:16:41]name=ofd_packets/00156465 [07:16:41]NVStorageSaveData ofd_packets/00156465 [07:16:41]File name is /storage/ofd_packets/00156465 [07:16:41]Write 298 bytes [07:16:41]NVStorageSaveData done [07:16:41]OFDSenderStorePacket done [07:16:41]KKMCreateOFDPacket done [07:16:41]NVStorageSaveData kkm_last_timestamp [07:16:41]File name is /storage/kkm_last_timestamp [07:16:41]Write 4 bytes [07:16:41]NVStorageSaveData done [07:16:41]ExternCall_PrintAddStr [07:16:41]wPrintStart [07:16:41]Write to MH i2c: 01 00 00 73 35 A8 [07:16:41]Write i2c OK [07:16:41]MH_I2C_Read... [07:16:41]Read from MH i2c: 01 [07:16:41]MH_I2C_Read... [07:16:41]Read from MH i2c: 01 07 00 [07:16:41]MH_I2C_Read... [07:16:41]Read from MH i2c: 01 07 00 73 35 00 00 00 00 00 FF 0F BD [07:16:41]RasterBufferAndPrint [07:16:41]line Счет N : (1)99278 [07:16:41]line ИНН: 02508201610067 [07:16:41]line Контрольно-Кассовый Чек [07:16:41]line ПРОДАЖА [07:16:41]line ТРК (МРК, ГНК) : 32 [07:16:41]line Товар: 2710194210 [07:16:41]line ДТ-К-5 [07:16:41]line 19.690 * 76.20 [07:16:41]line = 1500.38 [07:16:41]line НДС 12% НСП 1% [07:16:41]line > о реализуемом товаре [07:16:41]line ОКРУГЛЕНИЕ: -0.38 [07:16:41]line ИТОГО: 1500.00 [07:16:41]line Внесено: 1500.00 [07:16:41]line СДАЧА: 0.00 [07:16:41]line НСП 1% : 13.28 [07:16:41]line НДС 12% : 159.33 [07:16:41]line Наличными: 1500.00 [07:16:41]line Безнал.: 0.00 [07:16:41]line Место: АЗС № 143 "Партнер Нефть" [07:16:41]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [07:16:41]line СНО: Общий режим [07:16:41]line Чек 16 27.10.2024 07:16 [07:16:41]line Смена: 537 ФФД: 1.0 [07:16:41]line ЗНМ: 0300000096 [07:16:41]line РНМ: 0000000000091693 [07:16:41]line Версия ККМ: 001 [07:16:41]line ФМ: 0000000000871792 [07:16:41]line ФД: 156465 [07:16:41]line ФПД: 180531866345697 [07:16:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T071644&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156465&fm=180531866345697&tin=02508201610067®Number=0000000000091693&sum=150000 [07:16:41]OFD Sender: Processing packet 156465 [packets to send 31, broken 30] [07:16:41]ProducePacketName [07:16:41]name=ofd_packets/00156465 [07:16:41]OFD Sender: To server: pG, [07:16:41]CommunicateWithHost lk.salyk.kg:30040 [07:16:41]ConnectInit lk.salyk.kg [07:16:41]written 0, free lines is 4095 [07:16:41]Connected sock=10 [07:16:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 22 BA 04 01 FC 58 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 DC E8 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 31 63 02 00 35 04 06 00 A4 31 59 C3 A0 E1 D8 A5 53 92 96 7D FA 4C [07:16:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 49 7D 47 00 BA 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 31 37 39 32 10 04 04 00 31 63 02 00 F4 03 04 00 4C 8E 1D 67 B6 04 01 00 00 96 67 A0 50 B1 29 5C 76 [07:16:41]CommunicateWithHost err = 0 [07:16:41]CheckOFDResponse [07:16:41]1017 (14) - 77093643461234 [07:16:41]1041 (16) - 0000000000871792 [07:16:41]1040 (4) - 156465 [07:16:41]1012 (4) - 27.10.2024 00:50 [07:16:41]1206 (1) - 0 [07:16:41]OFD Sender: Remove packet 156465 [07:16:41]ProducePacketName [07:16:41]name=ofd_packets/00156465 [07:16:41]NVStorageDeleteData [07:16:41]Write to MH i2c: 01 00 00 9E 35 D3 [07:16:41]Write i2c OK [07:16:41]MH_I2C_Read... [07:16:41]Read from MH i2c: 01 [07:16:41]MH_I2C_Read... [07:16:41]Read from MH i2c: 01 07 00 [07:16:41]MH_I2C_Read... [07:16:41]Read from MH i2c: 01 07 00 9E 35 00 00 00 00 00 DE 0C C4 [07:16:41]RasterBufferAndPrint [07:16:41]line [07:16:41]line [07:16:41]line [07:16:41]line [07:16:41]line [07:16:41]written 0, free lines is 3300 [07:16:41]process_action close_receipt done [07:16:41]requested_data is exist [07:16:41]produce_requested_data [07:16:41]requested_item fm.sn is exist - process it [07:16:41]wFMCommunicate request_size=4 [07:16:41]MH_SAM_APDU [07:16:41]CAPDU: 80 11 00 00 [07:16:41]Write to MH i2c: E2 08 00 A5 35 80 11 00 00 00 00 00 00 54 [07:16:41]Write i2c OK [07:16:41]MH_I2C_Read... [07:16:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:16:42]Read from MH i2c: E2 [07:16:42]MH_I2C_Read... [07:16:42]Read from MH i2c: E2 17 00 [07:16:42]MH_I2C_Read... [07:16:42]Read from MH i2c: E2 17 00 A5 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 A9 [07:16:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [07:16:42]wFMCommunicate OK [07:16:42]requested_item fd.num is exist - process it [07:16:42]SAM_PROTO_GetFieldsCounters [07:16:42]wFMCommunicate request_size=4 [07:16:42]MH_SAM_APDU [07:16:42]CAPDU: 80 13 00 00 [07:16:42]Write to MH i2c: E2 08 00 A6 35 80 13 00 00 00 00 00 00 57 [07:16:42]Write i2c OK [07:16:42]MH_I2C_Read... [07:16:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:16:42]Read from MH i2c: E2 [07:16:42]MH_I2C_Read... [07:16:42]Read from MH i2c: E2 62 00 [07:16:42]MH_I2C_Read... [07:16:42]Read from MH i2c: E2 62 00 A6 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 31 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 5E [07:16:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 31 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:16:42]wFMCommunicate OK [07:16:42]SAM_PROTO_GetFieldsCounters done [07:16:42]requested_item shift.num is exist - process it [07:16:42]requested_item shift.opened is exist - process it [07:16:42]req_shift_opened [07:16:42]FM_GetShiftState [07:16:42]SAM_PROTO_GetShiftState [07:16:42]wFMCommunicate request_size=4 [07:16:42]MH_SAM_APDU [07:16:42]CAPDU: 80 13 01 00 [07:16:42]Write to MH i2c: E2 08 00 A7 35 80 13 01 00 00 00 00 00 59 [07:16:42]Write i2c OK [07:16:42]MH_I2C_Read... [07:16:42]Read from MH i2c: E2 [07:16:42]MH_I2C_Read... [07:16:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:16:42]Read from MH i2c: E2 0E 00 [07:16:42]MH_I2C_Read... [07:16:42]Read from MH i2c: E2 0E 00 A7 35 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 26 [07:16:42]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [07:16:42]wFMCommunicate OK [07:16:42]SAM_PROTO_GetShiftState done [07:16:42]FM_GetShiftState done [07:16:42]req_shift_opened done [07:16:42]requested_item shift.open_date is exist - process it [07:16:42]req_shift_open_date [07:16:42]req_shift_open_date done [07:16:42]produce_requested_data done [07:16:42]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156465,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [07:16:42]process_action_free close_receipt [07:16:42]json_value_free [07:16:42]json_value_free done [07:16:42]process_json_proto returns [07:16:42]Send response to host [07:16:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156465,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [07:16:42]free response buf [07:16:42]execute_script done [07:16:42]execute_script returns [07:16:42]free content buf [07:16:42]Sock 8.Close socket [07:16:42]Sock 8.Thread stoped [07:16:42]OFD Sender: No OFD packet to send [07:16:47]OFD Sender: No OFD packet to send [07:16:52]OFD Sender: No OFD packet to send [07:16:57]OFD Sender: No OFD packet to send [07:17:02]OFD Sender: No OFD packet to send [07:17:07]OFD Sender: No OFD packet to send [07:17:12]OFD Sender: No OFD packet to send [07:17:17]OFD Sender: No OFD packet to send [07:17:22]OFD Sender: No OFD packet to send [07:17:27]OFD Sender: No OFD packet to send [07:17:32]OFD Sender: No OFD packet to send [07:17:37]OFD Sender: No OFD packet to send [07:17:42]OFD Sender: No OFD packet to send [07:17:47]OFD Sender: No OFD packet to send [07:17:52]OFD Sender: No OFD packet to send [07:17:57]OFD Sender: No OFD packet to send [07:18:02]OFD Sender: No OFD packet to send [07:18:07]OFD Sender: No OFD packet to send [07:18:12]OFD Sender: No OFD packet to send [07:18:17]OFD Sender: No OFD packet to send [07:18:22]OFD Sender: No OFD packet to send [07:18:27]OFD Sender: No OFD packet to send [07:18:32]OFD Sender: No OFD packet to send [07:18:37]OFD Sender: No OFD packet to send [07:18:42]OFD Sender: No OFD packet to send [07:18:47]OFD Sender: No OFD packet to send [07:18:52]OFD Sender: No OFD packet to send [07:18:57]OFD Sender: No OFD packet to send [07:19:02]OFD Sender: No OFD packet to send [07:19:07]OFD Sender: No OFD packet to send [07:19:12]OFD Sender: No OFD packet to send [07:19:17]OFD Sender: No OFD packet to send [07:19:22]OFD Sender: No OFD packet to send [07:19:27]OFD Sender: No OFD packet to send [07:19:32]OFD Sender: No OFD packet to send [07:19:37]OFD Sender: No OFD packet to send [07:19:42]OFD Sender: No OFD packet to send [07:19:47]OFD Sender: No OFD packet to send [07:19:52]OFD Sender: No OFD packet to send [07:19:57]OFD Sender: No OFD packet to send [07:20:02]OFD Sender: No OFD packet to send [07:20:07]OFD Sender: No OFD packet to send [07:20:12]OFD Sender: No OFD packet to send [07:20:17]OFD Sender: No OFD packet to send [07:20:22]OFD Sender: No OFD packet to send [07:20:27]OFD Sender: No OFD packet to send [07:20:32]OFD Sender: No OFD packet to send [07:20:37]OFD Sender: No OFD packet to send [07:20:42]OFD Sender: No OFD packet to send [07:20:47]OFD Sender: No OFD packet to send [07:20:52]OFD Sender: No OFD packet to send [07:20:57]OFD Sender: No OFD packet to send [07:21:02]OFD Sender: No OFD packet to send [07:21:07]OFD Sender: No OFD packet to send [07:21:12]OFD Sender: No OFD packet to send [07:21:17]OFD Sender: No OFD packet to send [07:21:22]OFD Sender: No OFD packet to send [07:21:27]OFD Sender: No OFD packet to send [07:21:32]OFD Sender: No OFD packet to send [07:21:37]OFD Sender: No OFD packet to send [07:21:42]OFD Sender: No OFD packet to send [07:21:47]OFD Sender: No OFD packet to send [07:21:52]OFD Sender: No OFD packet to send [07:21:57]OFD Sender: No OFD packet to send [07:22:02]OFD Sender: No OFD packet to send [07:22:07]OFD Sender: No OFD packet to send [07:22:12]OFD Sender: No OFD packet to send [07:22:17]OFD Sender: No OFD packet to send [07:22:22]OFD Sender: No OFD packet to send [07:22:27]OFD Sender: No OFD packet to send [07:22:32]OFD Sender: No OFD packet to send [07:22:37]OFD Sender: No OFD packet to send [07:22:42]OFD Sender: No OFD packet to send [07:22:47]OFD Sender: No OFD packet to send [07:22:52]OFD Sender: No OFD packet to send [07:22:57]OFD Sender: No OFD packet to send [07:23:02]OFD Sender: No OFD packet to send [07:23:07]OFD Sender: No OFD packet to send [07:23:12]OFD Sender: No OFD packet to send [07:23:17]OFD Sender: No OFD packet to send [07:23:22]OFD Sender: No OFD packet to send [07:23:27]OFD Sender: No OFD packet to send [07:23:32]OFD Sender: No OFD packet to send [07:23:37]OFD Sender: No OFD packet to send [07:23:42]OFD Sender: No OFD packet to send [07:23:47]OFD Sender: No OFD packet to send [07:23:52]OFD Sender: No OFD packet to send [07:23:57]OFD Sender: No OFD packet to send [07:24:02]OFD Sender: No OFD packet to send [07:24:07]OFD Sender: No OFD packet to send [07:24:12]OFD Sender: No OFD packet to send [07:24:17]OFD Sender: No OFD packet to send [07:24:22]OFD Sender: No OFD packet to send [07:24:27]OFD Sender: No OFD packet to send [07:24:32]OFD Sender: No OFD packet to send [07:24:37]OFD Sender: No OFD packet to send [07:24:42]OFD Sender: No OFD packet to send [07:24:47]OFD Sender: No OFD packet to send [07:24:52]OFD Sender: No OFD packet to send [07:24:57]OFD Sender: No OFD packet to send [07:25:02]OFD Sender: No OFD packet to send [07:25:07]OFD Sender: No OFD packet to send [07:25:12]OFD Sender: No OFD packet to send [07:25:17]OFD Sender: No OFD packet to send [07:25:22]OFD Sender: No OFD packet to send [07:25:27]OFD Sender: No OFD packet to send [07:25:32]OFD Sender: No OFD packet to send [07:25:37]OFD Sender: No OFD packet to send [07:25:42]OFD Sender: No OFD packet to send [07:25:47]OFD Sender: No OFD packet to send [07:25:52]OFD Sender: No OFD packet to send [07:25:57]OFD Sender: No OFD packet to send [07:26:02]OFD Sender: No OFD packet to send [07:26:07]OFD Sender: No OFD packet to send [07:26:12]OFD Sender: No OFD packet to send [07:26:17]OFD Sender: No OFD packet to send [07:26:22]OFD Sender: No OFD packet to send [07:26:27]OFD Sender: No OFD packet to send [07:26:32]OFD Sender: No OFD packet to send [07:26:37]OFD Sender: No OFD packet to send [07:26:42]OFD Sender: No OFD packet to send [07:26:47]OFD Sender: No OFD packet to send [07:26:52]OFD Sender: No OFD packet to send [07:26:57]OFD Sender: No OFD packet to send [07:27:02]OFD Sender: No OFD packet to send [07:27:07]OFD Sender: No OFD packet to send [07:27:12]OFD Sender: No OFD packet to send [07:27:17]OFD Sender: No OFD packet to send [07:27:22]OFD Sender: No OFD packet to send [07:27:27]OFD Sender: No OFD packet to send [07:27:32]OFD Sender: No OFD packet to send [07:27:37]OFD Sender: No OFD packet to send [07:27:42]OFD Sender: No OFD packet to send [07:27:47]OFD Sender: No OFD packet to send [07:27:52]OFD Sender: No OFD packet to send [07:27:57]OFD Sender: No OFD packet to send [07:28:02]OFD Sender: No OFD packet to send [07:28:07]OFD Sender: No OFD packet to send [07:28:12]OFD Sender: No OFD packet to send [07:28:17]OFD Sender: No OFD packet to send [07:28:22]OFD Sender: No OFD packet to send [07:28:27]OFD Sender: No OFD packet to send [07:28:32]OFD Sender: No OFD packet to send [07:28:37]OFD Sender: No OFD packet to send [07:28:42]OFD Sender: No OFD packet to send [07:28:47]OFD Sender: No OFD packet to send [07:28:52]OFD Sender: No OFD packet to send [07:28:57]OFD Sender: No OFD packet to send [07:29:02]OFD Sender: No OFD packet to send [07:29:07]OFD Sender: No OFD packet to send [07:29:12]OFD Sender: No OFD packet to send [07:29:18]OFD Sender: No OFD packet to send [07:29:23]OFD Sender: No OFD packet to send [07:29:28]OFD Sender: No OFD packet to send [07:29:33]OFD Sender: No OFD packet to send [07:29:38]OFD Sender: No OFD packet to send [07:29:43]OFD Sender: No OFD packet to send [07:29:48]OFD Sender: No OFD packet to send [07:29:53]OFD Sender: No OFD packet to send [07:29:58]OFD Sender: No OFD packet to send [07:30:03]OFD Sender: No OFD packet to send [07:30:08]OFD Sender: No OFD packet to send [07:30:13]OFD Sender: No OFD packet to send [07:30:18]OFD Sender: No OFD packet to send [07:30:23]OFD Sender: No OFD packet to send [07:30:28]OFD Sender: No OFD packet to send [07:30:33]OFD Sender: No OFD packet to send [07:30:38]OFD Sender: No OFD packet to send [07:30:43]OFD Sender: No OFD packet to send [07:30:48]OFD Sender: No OFD packet to send [07:30:53]OFD Sender: No OFD packet to send [07:30:58]OFD Sender: No OFD packet to send [07:31:03]OFD Sender: No OFD packet to send [07:31:08]OFD Sender: No OFD packet to send [07:31:13]OFD Sender: No OFD packet to send [07:31:17]accept exits with 9 [07:31:17]New connection [07:31:17]New thread 3066834276 created [07:31:17] Sock 9.Parse request [07:31:17]Thread 3066977636 joined [07:31:17]Sock 9.Check first char [07:31:17]Waiting for new connection... [07:31:17]Sock 9.First char is OK [07:31:17]request: POST /json_proto HTTP/1.0 [07:31:17]Method: POST [07:31:17]URL: /json_proto [07:31:17]Method is POST - this is cgi request [07:31:17]url: /json_proto [07:31:17]query_string will be loaded in cgi processing [07:31:17]execute_cgi json_proto POST (null) [07:31:17]execute_cgi path=json_proto method=POST [07:31:17]POST find Content-Length [07:31:17]Host: 172.17.63.3:8080 [07:31:17]Content-Length: 677 [07:31:17]Content-Type: application/json [07:31:17] [07:31:17]POST finish read [07:31:17]Found Content-Length = 677 [07:31:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99279", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "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" ] } } [07:31:17]execute_script... [07:31: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)99279", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "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" ] } } [07:31:17]POST & json_proto [07:31:17]process_json_proto [07:31:17]json parsed OK: [07:31:17]protocol is kg_v1.0 [07:31:17]action value=close_receipt [07:31:17]process_action close_receipt [07:31:17]cmd_close_receipt [07:31:17]MH_GetDate [07:31:17]Write to MH i2c: F0 00 00 A8 35 CC [07:31:17]Write i2c OK [07:31:17]MH_I2C_Read... [07:31:17]Read from MH i2c: F0 [07:31:17]MH_I2C_Read... [07:31:17]Read from MH i2c: F0 09 00 [07:31:17]MH_I2C_Read... [07:31:17]Read from MH i2c: F0 09 00 A8 35 00 49 EC 1D 67 50 D1 6C 64 7F [07:31:17]GetLastDocTimeStamp 1730013404 [07:31:17]current date 1730014281 [07:31:17]FM_GetShiftState [07:31:17]SAM_PROTO_GetShiftState [07:31:17]wFMCommunicate request_size=4 [07:31:17]MH_SAM_APDU [07:31:17]CAPDU: 80 13 01 00 [07:31:17]Write to MH i2c: E2 08 00 A9 35 80 13 01 00 00 00 00 00 5B [07:31:17]Write i2c OK [07:31:17]MH_I2C_Read... [07:31:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:31:17]Read from MH i2c: E2 [07:31:17]MH_I2C_Read... [07:31:17]Read from MH i2c: E2 0E 00 [07:31:17]MH_I2C_Read... [07:31:17]Read from MH i2c: E2 0E 00 A9 35 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 28 [07:31:17]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [07:31:17]wFMCommunicate OK [07:31:17]SAM_PROTO_GetShiftState done [07:31:17]FM_GetShiftState done [07:31:17]opened in 1729989044 [07:31:17]opened+sec_in_day 1730075444 [07:31:17]quantity*price = 70044 [07:31:17]sum+1 = 70045 [07:31:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 17 27.10.2024 07:31 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156466 ФПД: 121552581346700 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T073121&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156466&fm=121552581346700&tin=02508201610067®Number=0000000000091693&sum=70000 [07:31:18]StoreToDocumentArchive [07:31:18]shift 537 fd 156466 [07:31:18]save to /storage/0537/doc_00156466 [07:31:18]save last doc name /storage/0537/doc_00156466 to /storage/kkm_last_doc_name [07:31:18]save OK [07:31:18]Clear old archive folders... [07:31:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:31:18]tlvbuf is 0171E490 [07:31:18]SAM_PROTO_ClearQueue [07:31:18]wFMCommunicate request_size=4 [07:31:18]MH_SAM_APDU [07:31:18]CAPDU: 80 09 00 00 [07:31:18]Write to MH i2c: E2 08 00 B6 35 80 09 00 00 00 00 00 00 5D [07:31:18]Write i2c OK [07:31:18]MH_I2C_Read... [07:31:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:31:18]Read from MH i2c: E2 [07:31:18]MH_I2C_Read... [07:31:18]Read from MH i2c: E2 03 00 [07:31:18]MH_I2C_Read... [07:31:18]Read from MH i2c: E2 03 00 B6 35 00 90 00 5F [07:31:18]RAPDU: 90 00 [07:31:18]wFMCommunicate OK [07:31:18]SAM_PROTO_ClearQueue done [07:31:18]KKMCreateOFDPacket [07:31:18]OFDProtocolAddRootSTLVToBuf [07:31:18]FM_MakeSignedData [07:31:18]FM_MakeSignedData [07:31:18]SAM_PROTO_SignData [07:31:18]wFMCommunicate request_size=4 [07:31:18]MH_SAM_APDU [07:31:18]CAPDU: 80 0D 01 02 [07:31:18]Write to MH i2c: E2 08 00 B7 35 80 0D 01 02 00 00 00 00 65 [07:31:18]Write i2c OK [07:31:18]MH_I2C_Read... [07:31:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:31:18]Read from MH i2c: E2 [07:31:18]MH_I2C_Read... [07:31:18]Read from MH i2c: E2 03 00 [07:31:18]MH_I2C_Read... [07:31:18]Read from MH i2c: E2 03 00 B7 35 00 90 00 60 [07:31:18]RAPDU: 90 00 [07:31:18]wFMCommunicate OK [07:31:18]wFMCommunicate request_size=255 [07:31:18]MH_SAM_APDU [07:31:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 49 EC 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 32 63 02 00 35 04 06 00 6E [07:31:18]Write to MH i2c: E2 02 01 B8 35 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 49 EC 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 32 63 02 00 35 04 06 00 6E 00 00 F3 [07:31:18]Write i2c OK [07:31:18]MH_I2C_Read... [07:31:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:31:18]Read from MH i2c: E2 [07:31:18]MH_I2C_Read... [07:31:18]Read from MH i2c: E2 03 00 [07:31:18]MH_I2C_Read... [07:31:18]Read from MH i2c: E2 03 00 B8 35 00 90 00 61 [07:31:18]RAPDU: 90 00 [07:31:18]wFMCommunicate OK [07:31:18]wFMCommunicate request_size=10 [07:31:18]MH_SAM_APDU [07:31:18]CAPDU: 80 0D 02 02 05 8D 2A 6E C5 8C [07:31:18]Write to MH i2c: E2 0D 00 B9 35 80 0D 02 02 05 00 8D 2A 6E C5 8C 00 00 E8 [07:31:18]Write i2c OK [07:31:18]MH_I2C_Read... [07:31:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:31:18]Read from MH i2c: E2 [07:31:18]MH_I2C_Read... [07:31:18]Read from MH i2c: E2 03 00 [07:31:18]MH_I2C_Read... [07:31:18]Read from MH i2c: E2 03 00 B9 35 00 90 00 62 [07:31:18]RAPDU: 90 00 [07:31:18]wFMCommunicate OK [07:31:18]wFMCommunicate request_size=4 [07:31:18]MH_SAM_APDU [07:31:18]CAPDU: 80 0D 03 02 [07:31:18]Write to MH i2c: E2 08 00 BA 35 80 0D 03 02 00 00 00 00 6A [07:31:18]Write i2c OK [07:31:18]MH_I2C_Read... [07:31:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:31:18]Read from MH i2c: E2 [07:31:18]MH_I2C_Read... [07:31:18]Read from MH i2c: E2 0B 00 [07:31:18]MH_I2C_Read... [07:31:18]Read from MH i2c: E2 0B 00 BA 35 00 8C 99 E2 71 C9 A8 DE 29 90 00 5B [07:31:18]RAPDU: 8C 99 E2 71 C9 A8 DE 29 90 00 [07:31:18]wFMCommunicate OK [07:31:18]SAM_PROTO_SignData done [07:31:18]FM_MakeSignedData done [07:31:18]CreateOFDProtocolMessage [07:31:18]wFMCommunicate request_size=4 [07:31:18]MH_SAM_APDU [07:31:18]CAPDU: 80 11 00 00 [07:31:18]Write to MH i2c: E2 08 00 BB 35 80 11 00 00 00 00 00 00 6A [07:31:18]Write i2c OK [07:31:18]MH_I2C_Read... [07:31:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:31:18]Read from MH i2c: E2 [07:31:18]MH_I2C_Read... [07:31:18]Read from MH i2c: E2 17 00 [07:31:18]MH_I2C_Read... [07:31:18]Read from MH i2c: E2 17 00 BB 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 BF [07:31:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [07:31:18]wFMCommunicate OK [07:31:18]CreateOFDProtocolMessage done [07:31:18]OFDSenderStorePacket 156466 [07:31:18]StoreOFDPacket docnum=156466 [07:31:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 78 D3 07 01 FC 4C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 49 EC 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 32 63 02 00 35 04 06 00 6E 8D 2A 6E C5 8C 8C 99 E2 71 C9 A8 DE 29 [07:31:18]CheckFolder [07:31:18]dirname=/storage/ofd_packets [07:31:18]CheckFolder done [07:31:18]ProducePacketName [07:31:18]name=ofd_packets/00156466 [07:31:18]NVStorageSaveData ofd_packets/00156466 [07:31:18]File name is /storage/ofd_packets/00156466 [07:31:18]Write 301 bytes [07:31:18]NVStorageSaveData done [07:31:18]OFDSenderStorePacket done [07:31:18]KKMCreateOFDPacket done [07:31:18]NVStorageSaveData kkm_last_timestamp [07:31:18]File name is /storage/kkm_last_timestamp [07:31:18]Write 4 bytes [07:31:18]NVStorageSaveData done [07:31:18]ExternCall_PrintAddStr [07:31:18]wPrintStart [07:31:18]Write to MH i2c: 01 00 00 BC 35 F1 [07:31:18]OFD Sender: Processing packet 156466 [packets to send 31, broken 30] [07:31:18]ProducePacketName [07:31:18]name=ofd_packets/00156466 [07:31:18]OFD Sender: To server: pG, [07:31:18]CommunicateWithHost lk.salyk.kg:30040 [07:31:18]ConnectInit lk.salyk.kg [07:31:18]Write i2c OK [07:31:18]MH_I2C_Read... [07:31:18]Read from MH i2c: 01 [07:31:18]MH_I2C_Read... [07:31:18]Read from MH i2c: 01 07 00 [07:31:18]MH_I2C_Read... [07:31:18]Read from MH i2c: 01 07 00 BC 35 00 00 00 00 00 FF 0F 06 [07:31:18]RasterBufferAndPrint [07:31:18]line Счет N : (1)99279 [07:31:18]line ИНН: 02508201610067 [07:31:18]line Контрольно-Кассовый Чек [07:31:18]line ПРОДАЖА [07:31:18]line ТРК (МРК, ГНК) : 11 [07:31:18]line Товар: 2710124130 [07:31:18]line Аи-92-К-5 [07:31:18]line 10.470 * 66.90 [07:31:18]line = 700.44 [07:31:18]line НДС 12% НСП 1% [07:31:18]line > о реализуемом товаре [07:31:18]line ОКРУГЛЕНИЕ: -0.44 [07:31:18]line ИТОГО: 700.00 [07:31:18]line Внесено: 700.00 [07:31:18]line СДАЧА: 0.00 [07:31:18]line НСП 1% : 6.20 [07:31:18]line НДС 12% : 74.38 [07:31:18]line Наличными: 700.00 [07:31:18]line Безнал.: 0.00 [07:31:18]line Место: АЗС № 143 "Партнер Нефть" [07:31:18]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [07:31:18]line СНО: Общий режим [07:31:18]line Чек 17 27.10.2024 07:31 [07:31:18]line Смена: 537 ФФД: 1.0 [07:31:18]line ЗНМ: 0300000096 [07:31:18]line РНМ: 0000000000091693 [07:31:18]line Версия ККМ: 001 [07:31:18]line ФМ: 0000000000871792 [07:31:18]line ФД: 156466 [07:31:18]line ФПД: 121552581346700 [07:31:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T073121&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156466&fm=121552581346700&tin=02508201610067®Number=0000000000091693&sum=70000 [07:31:18]written 0, free lines is 4095 [07:31:18]Connected sock=10 [07:31:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 78 D3 07 01 FC 4C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 49 EC 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 32 63 02 00 35 04 06 00 6E 8D 2A 6E C5 8C 8C 99 E2 71 C9 A8 DE 29 [07:31:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 B2 CB 47 00 E4 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 31 37 39 32 10 04 04 00 32 63 02 00 F4 03 04 00 B9 91 1D 67 B6 04 01 00 00 68 B3 7E 04 7C 3E E1 10 [07:31:19]CommunicateWithHost err = 0 [07:31:19]CheckOFDResponse [07:31:19]1017 (14) - 77093643461234 [07:31:19]1041 (16) - 0000000000871792 [07:31:19]1040 (4) - 156466 [07:31:19]1012 (4) - 27.10.2024 01:04 [07:31:19]1206 (1) - 0 [07:31:19]OFD Sender: Remove packet 156466 [07:31:19]ProducePacketName [07:31:19]name=ofd_packets/00156466 [07:31:19]NVStorageDeleteData [07:31:19]Write to MH i2c: 01 00 00 E7 35 1C [07:31:19]Write i2c OK [07:31:19]MH_I2C_Read... [07:31:19]Read from MH i2c: 01 [07:31:19]MH_I2C_Read... [07:31:19]Read from MH i2c: 01 07 00 [07:31:19]MH_I2C_Read... [07:31:19]Read from MH i2c: 01 07 00 E7 35 00 00 00 00 00 DD 0C 0C [07:31:19]RasterBufferAndPrint [07:31:19]line [07:31:19]line [07:31:19]line [07:31:19]line [07:31:19]line [07:31:19]written 0, free lines is 3299 [07:31:19]process_action close_receipt done [07:31:19]requested_data is exist [07:31:19]produce_requested_data [07:31:19]requested_item fm.sn is exist - process it [07:31:19]wFMCommunicate request_size=4 [07:31:19]MH_SAM_APDU [07:31:19]CAPDU: 80 11 00 00 [07:31:19]Write to MH i2c: E2 08 00 EE 35 80 11 00 00 00 00 00 00 9D [07:31:19]Write i2c OK [07:31:19]MH_I2C_Read... [07:31:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:31:19]Read from MH i2c: E2 [07:31:19]MH_I2C_Read... [07:31:19]Read from MH i2c: E2 17 00 [07:31:19]MH_I2C_Read... [07:31:19]Read from MH i2c: E2 17 00 EE 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 F2 [07:31:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [07:31:19]wFMCommunicate OK [07:31:19]requested_item fd.num is exist - process it [07:31:19]SAM_PROTO_GetFieldsCounters [07:31:19]wFMCommunicate request_size=4 [07:31:19]MH_SAM_APDU [07:31:19]CAPDU: 80 13 00 00 [07:31:19]Write to MH i2c: E2 08 00 EF 35 80 13 00 00 00 00 00 00 A0 [07:31:19]Write i2c OK [07:31:19]MH_I2C_Read... [07:31:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:31:19]Read from MH i2c: E2 [07:31:19]MH_I2C_Read... [07:31:19]Read from MH i2c: E2 62 00 [07:31:19]MH_I2C_Read... [07:31:19]Read from MH i2c: E2 62 00 EF 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 32 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 AB [07:31:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 32 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:31:19]wFMCommunicate OK [07:31:19]SAM_PROTO_GetFieldsCounters done [07:31:19]requested_item shift.num is exist - process it [07:31:19]requested_item shift.opened is exist - process it [07:31:19]req_shift_opened [07:31:19]FM_GetShiftState [07:31:19]SAM_PROTO_GetShiftState [07:31:19]wFMCommunicate request_size=4 [07:31:19]MH_SAM_APDU [07:31:19]CAPDU: 80 13 01 00 [07:31:19]Write to MH i2c: E2 08 00 F0 35 80 13 01 00 00 00 00 00 A2 [07:31:19]Write i2c OK [07:31:19]MH_I2C_Read... [07:31:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:31:19]Read from MH i2c: E2 [07:31:19]MH_I2C_Read... [07:31:19]Read from MH i2c: E2 0E 00 [07:31:19]MH_I2C_Read... [07:31:19]Read from MH i2c: E2 0E 00 F0 35 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 6F [07:31:19]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [07:31:19]wFMCommunicate OK [07:31:19]SAM_PROTO_GetShiftState done [07:31:19]FM_GetShiftState done [07:31:19]req_shift_opened done [07:31:19]requested_item shift.open_date is exist - process it [07:31:19]req_shift_open_date [07:31:19]req_shift_open_date done [07:31:19]produce_requested_data done [07:31:19]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156466,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [07:31:19]process_action_free close_receipt [07:31:19]json_value_free [07:31:19]json_value_free done [07:31:19]process_json_proto returns [07:31:19]Send response to host [07:31:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156466,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [07:31:19]free response buf [07:31:19]execute_script done [07:31:19]execute_script returns [07:31:19]free content buf [07:31:19]Sock 9.Close socket [07:31:19]Sock 9.Thread stoped [07:31:19]OFD Sender: No OFD packet to send [07:31:24]OFD Sender: No OFD packet to send [07:31:29]OFD Sender: No OFD packet to send [07:31:34]OFD Sender: No OFD packet to send [07:31:39]OFD Sender: No OFD packet to send [07:31:44]OFD Sender: No OFD packet to send [07:31:49]OFD Sender: No OFD packet to send [07:31:54]OFD Sender: No OFD packet to send [07:31:59]OFD Sender: No OFD packet to send [07:32:04]OFD Sender: No OFD packet to send [07:32:09]OFD Sender: No OFD packet to send [07:32:14]OFD Sender: No OFD packet to send [07:32:19]OFD Sender: No OFD packet to send [07:32:24]OFD Sender: No OFD packet to send [07:32:29]OFD Sender: No OFD packet to send [07:32:34]OFD Sender: No OFD packet to send [07:32:39]OFD Sender: No OFD packet to send [07:32:44]OFD Sender: No OFD packet to send [07:32:49]OFD Sender: No OFD packet to send [07:32:54]OFD Sender: No OFD packet to send [07:32:59]OFD Sender: No OFD packet to send [07:33:04]OFD Sender: No OFD packet to send [07:33:09]OFD Sender: No OFD packet to send [07:33:14]OFD Sender: No OFD packet to send [07:33:19]OFD Sender: No OFD packet to send [07:33:24]OFD Sender: No OFD packet to send [07:33:29]OFD Sender: No OFD packet to send [07:33:34]OFD Sender: No OFD packet to send [07:33:39]OFD Sender: No OFD packet to send [07:33:44]OFD Sender: No OFD packet to send [07:33:49]OFD Sender: No OFD packet to send [07:33:54]OFD Sender: No OFD packet to send [07:33:59]OFD Sender: No OFD packet to send [07:34:04]OFD Sender: No OFD packet to send [07:34:09]OFD Sender: No OFD packet to send [07:34:14]OFD Sender: No OFD packet to send [07:34:19]OFD Sender: No OFD packet to send [07:34:24]OFD Sender: No OFD packet to send [07:34:29]OFD Sender: No OFD packet to send [07:34:34]OFD Sender: No OFD packet to send [07:34:39]OFD Sender: No OFD packet to send [07:34:44]OFD Sender: No OFD packet to send [07:34:49]OFD Sender: No OFD packet to send [07:34:54]OFD Sender: No OFD packet to send [07:34:59]OFD Sender: No OFD packet to send [07:35:04]OFD Sender: No OFD packet to send [07:35:09]OFD Sender: No OFD packet to send [07:35:14]OFD Sender: No OFD packet to send [07:35:19]OFD Sender: No OFD packet to send [07:35:24]OFD Sender: No OFD packet to send [07:35:29]OFD Sender: No OFD packet to send [07:35:34]OFD Sender: No OFD packet to send [07:35:39]OFD Sender: No OFD packet to send [07:35:44]OFD Sender: No OFD packet to send [07:35:49]OFD Sender: No OFD packet to send [07:35:54]OFD Sender: No OFD packet to send [07:35:59]OFD Sender: No OFD packet to send [07:36:04]OFD Sender: No OFD packet to send [07:36:09]OFD Sender: No OFD packet to send [07:36:14]OFD Sender: No OFD packet to send [07:36:19]OFD Sender: No OFD packet to send [07:36:24]OFD Sender: No OFD packet to send [07:36:29]OFD Sender: No OFD packet to send [07:36:34]OFD Sender: No OFD packet to send [07:36:39]OFD Sender: No OFD packet to send [07:36:44]OFD Sender: No OFD packet to send [07:36:49]OFD Sender: No OFD packet to send [07:36:54]OFD Sender: No OFD packet to send [07:36:59]OFD Sender: No OFD packet to send [07:37:04]OFD Sender: No OFD packet to send [07:37:09]OFD Sender: No OFD packet to send [07:37:14]OFD Sender: No OFD packet to send [07:37:19]OFD Sender: No OFD packet to send [07:37:24]OFD Sender: No OFD packet to send [07:37:29]OFD Sender: No OFD packet to send [07:37:34]OFD Sender: No OFD packet to send [07:37:39]OFD Sender: No OFD packet to send [07:37:44]OFD Sender: No OFD packet to send [07:37:49]OFD Sender: No OFD packet to send [07:37:54]OFD Sender: No OFD packet to send [07:37:59]OFD Sender: No OFD packet to send [07:38:04]OFD Sender: No OFD packet to send [07:38:09]OFD Sender: No OFD packet to send [07:38:14]OFD Sender: No OFD packet to send [07:38:19]OFD Sender: No OFD packet to send [07:38:24]OFD Sender: No OFD packet to send [07:38:29]OFD Sender: No OFD packet to send [07:38:34]OFD Sender: No OFD packet to send [07:38:39]OFD Sender: No OFD packet to send [07:38:44]OFD Sender: No OFD packet to send [07:38:49]OFD Sender: No OFD packet to send [07:38:54]OFD Sender: No OFD packet to send [07:38:59]OFD Sender: No OFD packet to send [07:39:04]OFD Sender: No OFD packet to send [07:39:09]OFD Sender: No OFD packet to send [07:39:14]OFD Sender: No OFD packet to send [07:39:19]OFD Sender: No OFD packet to send [07:39:24]OFD Sender: No OFD packet to send [07:39:29]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:48]accept exits with 8 [07:41:48]New connection [07:41:48]New thread 3066977636 created [07:41:48]Thread 3066834276 joined [07:41:48]Waiting for new connection... [07:41:48] Sock 8.Parse request [07:41:48]Sock 8.Check first char [07:41:48]Sock 8.First char is OK [07:41:48]request: POST /json_proto HTTP/1.0 [07:41:48]Method: POST [07:41:48]URL: /json_proto [07:41:48]Method is POST - this is cgi request [07:41:48]url: /json_proto [07:41:48]query_string will be loaded in cgi processing [07:41:48]execute_cgi json_proto POST (null) [07:41:48]execute_cgi path=json_proto method=POST [07:41:48]POST find Content-Length [07:41:48]Host: 172.17.63.3:8080 [07:41:48]Content-Length: 676 [07:41:48]Content-Type: application/json [07:41:48] [07:41:48]POST finish read [07:41:48]Found Content-Length = 676 [07:41:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99280", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:41:48]execute_script... [07:41: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)99280", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:41:48]POST & json_proto [07:41:48]process_json_proto [07:41:48]json parsed OK: [07:41:48]protocol is kg_v1.0 [07:41:48]action value=close_receipt [07:41:48]process_action close_receipt [07:41:48]cmd_close_receipt [07:41:48]MH_GetDate [07:41:48]Write to MH i2c: F0 00 00 F1 35 15 [07:41:48]Write i2c OK [07:41:48]MH_I2C_Read... [07:41:48]Read from MH i2c: F0 [07:41:48]MH_I2C_Read... [07:41:48]Read from MH i2c: F0 09 00 [07:41:48]MH_I2C_Read... [07:41:48]Read from MH i2c: F0 09 00 F1 35 00 C1 EE 1D 67 50 D1 6C 64 42 [07:41:48]GetLastDocTimeStamp 1730014281 [07:41:48]current date 1730014913 [07:41:48]FM_GetShiftState [07:41:48]SAM_PROTO_GetShiftState [07:41:48]wFMCommunicate request_size=4 [07:41:48]MH_SAM_APDU [07:41:48]CAPDU: 80 13 01 00 [07:41:48]Write to MH i2c: E2 08 00 F2 35 80 13 01 00 00 00 00 00 A4 [07:41:48]Write i2c OK [07:41:48]MH_I2C_Read... [07:41:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:41:48]Read from MH i2c: E2 [07:41:48]MH_I2C_Read... [07:41:48]Read from MH i2c: E2 0E 00 [07:41:48]MH_I2C_Read... [07:41:48]Read from MH i2c: E2 0E 00 F2 35 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 71 [07:41:48]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [07:41:48]wFMCommunicate OK [07:41:48]SAM_PROTO_GetShiftState done [07:41:48]FM_GetShiftState done [07:41:48]opened in 1729989044 [07:41:48]opened+sec_in_day 1730075444 [07:41:48]quantity*price = 30038 [07:41:48]sum+1 = 30039 [07:41:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 18 27.10.2024 07:41 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156467 ФПД: 192046744524560 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T074153&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156467&fm=192046744524560&tin=02508201610067®Number=0000000000091693&sum=30000 [07:41:49]StoreToDocumentArchive [07:41:49]shift 537 fd 156467 [07:41:49]save to /storage/0537/doc_00156467 [07:41:49]save last doc name /storage/0537/doc_00156467 to /storage/kkm_last_doc_name [07:41:49]save OK [07:41:49]Clear old archive folders... [07:41:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:41:49]tlvbuf is 016F7E50 [07:41:49]SAM_PROTO_ClearQueue [07:41:49]wFMCommunicate request_size=4 [07:41:49]MH_SAM_APDU [07:41:49]CAPDU: 80 09 00 00 [07:41:49]Write to MH i2c: E2 08 00 FF 35 80 09 00 00 00 00 00 00 A6 [07:41:49]Write i2c OK [07:41:49]MH_I2C_Read... [07:41:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:41:49]Read from MH i2c: E2 [07:41:49]MH_I2C_Read... [07:41:49]Read from MH i2c: E2 03 00 [07:41:49]MH_I2C_Read... [07:41:49]Read from MH i2c: E2 03 00 FF 35 00 90 00 A8 [07:41:49]RAPDU: 90 00 [07:41:49]wFMCommunicate OK [07:41:49]SAM_PROTO_ClearQueue done [07:41:49]KKMCreateOFDPacket [07:41:49]OFDProtocolAddRootSTLVToBuf [07:41:49]FM_MakeSignedData [07:41:49]FM_MakeSignedData [07:41:49]SAM_PROTO_SignData [07:41:49]wFMCommunicate request_size=4 [07:41:49]MH_SAM_APDU [07:41:49]CAPDU: 80 0D 01 02 [07:41:49]Write to MH i2c: E2 08 00 00 36 80 0D 01 02 00 00 00 00 AF [07:41:49]Write i2c OK [07:41:49]MH_I2C_Read... [07:41:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:41:49]Read from MH i2c: E2 [07:41:49]MH_I2C_Read... [07:41:49]Read from MH i2c: E2 03 00 [07:41:49]MH_I2C_Read... [07:41:49]Read from MH i2c: E2 03 00 00 36 00 90 00 AA [07:41:49]RAPDU: 90 00 [07:41:49]wFMCommunicate OK [07:41:49]wFMCommunicate request_size=255 [07:41:49]MH_SAM_APDU [07:41: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 C1 EE 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 33 63 02 00 35 04 06 00 AE [07:41:49]Write to MH i2c: E2 02 01 01 36 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 C1 EE 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 33 63 02 00 35 04 06 00 AE 00 00 DD [07:41:49]Write i2c OK [07:41:49]MH_I2C_Read... [07:41:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:41:50]Read from MH i2c: E2 [07:41:50]MH_I2C_Read... [07:41:50]Read from MH i2c: E2 03 00 [07:41:50]MH_I2C_Read... [07:41:50]Read from MH i2c: E2 03 00 01 36 00 90 00 AB [07:41:50]RAPDU: 90 00 [07:41:50]wFMCommunicate OK [07:41:50]wFMCommunicate request_size=10 [07:41:50]MH_SAM_APDU [07:41:50]CAPDU: 80 0D 02 02 05 AA 5D FC D7 10 [07:41:50]Write to MH i2c: E2 0D 00 02 36 80 0D 02 02 05 00 AA 5D FC D7 10 00 00 A6 [07:41:50]Write i2c OK [07:41:50]MH_I2C_Read... [07:41:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:41:50]Read from MH i2c: E2 [07:41:50]MH_I2C_Read... [07:41:50]Read from MH i2c: E2 03 00 [07:41:50]MH_I2C_Read... [07:41:50]Read from MH i2c: E2 03 00 02 36 00 90 00 AC [07:41:50]RAPDU: 90 00 [07:41:50]wFMCommunicate OK [07:41:50]wFMCommunicate request_size=4 [07:41:50]MH_SAM_APDU [07:41:50]CAPDU: 80 0D 03 02 [07:41:50]Write to MH i2c: E2 08 00 03 36 80 0D 03 02 00 00 00 00 B4 [07:41:50]Write i2c OK [07:41:50]MH_I2C_Read... [07:41:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:41:50]Read from MH i2c: E2 [07:41:50]MH_I2C_Read... [07:41:50]Read from MH i2c: E2 0B 00 [07:41:50]MH_I2C_Read... [07:41:50]Read from MH i2c: E2 0B 00 03 36 00 30 9C 9D F9 82 59 5A A6 90 00 F2 [07:41:50]RAPDU: 30 9C 9D F9 82 59 5A A6 90 00 [07:41:50]wFMCommunicate OK [07:41:50]SAM_PROTO_SignData done [07:41:50]FM_MakeSignedData done [07:41:50]CreateOFDProtocolMessage [07:41:50]wFMCommunicate request_size=4 [07:41:50]MH_SAM_APDU [07:41:50]CAPDU: 80 11 00 00 [07:41:50]Write to MH i2c: E2 08 00 04 36 80 11 00 00 00 00 00 00 B4 [07:41:50]Write i2c OK [07:41:50]MH_I2C_Read... [07:41:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:41:50]Read from MH i2c: E2 [07:41:50]MH_I2C_Read... [07:41:50]Read from MH i2c: E2 17 00 [07:41:50]MH_I2C_Read... [07:41:50]Read from MH i2c: E2 17 00 04 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 09 [07:41:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [07:41:50]wFMCommunicate OK [07:41:50]CreateOFDProtocolMessage done [07:41:50]OFDSenderStorePacket 156467 [07:41:50]StoreOFDPacket docnum=156467 [07:41:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 88 CE 07 01 E2 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 C1 EE 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 33 63 02 00 35 04 06 00 AE AA 5D FC D7 10 30 9C 9D F9 82 59 5A A6 [07:41:50]CheckFolder [07:41:50]dirname=/storage/ofd_packets [07:41:50]CheckFolder done [07:41:50]ProducePacketName [07:41:50]name=ofd_packets/00156467 [07:41:50]NVStorageSaveData ofd_packets/00156467 [07:41:50]File name is /storage/ofd_packets/00156467 [07:41:50]Write 301 bytes [07:41:50]NVStorageSaveData done [07:41:50]OFDSenderStorePacket done [07:41:50]KKMCreateOFDPacket done [07:41:50]NVStorageSaveData kkm_last_timestamp [07:41:50]File name is /storage/kkm_last_timestamp [07:41:50]Write 4 bytes [07:41:50]NVStorageSaveData done [07:41:50]ExternCall_PrintAddStr [07:41:50]wPrintStart [07:41:50]Write to MH i2c: 01 00 00 05 36 3B [07:41:50]OFD Sender: Processing packet 156467 [packets to send 31, broken 30] [07:41:50]ProducePacketName [07:41:50]name=ofd_packets/00156467 [07:41:50]OFD Sender: To server: pG, [07:41:50]CommunicateWithHost lk.salyk.kg:30040 [07:41:50]ConnectInit lk.salyk.kg [07:41:50]Write i2c OK [07:41:50]MH_I2C_Read... [07:41:50]Read from MH i2c: 01 [07:41:50]MH_I2C_Read... [07:41:50]Read from MH i2c: 01 07 00 [07:41:50]MH_I2C_Read... [07:41:50]Read from MH i2c: 01 07 00 05 36 00 00 00 00 00 FF 0F 50 [07:41:50]RasterBufferAndPrint [07:41:50]line Счет N : (1)99280 [07:41:50]line ИНН: 02508201610067 [07:41:50]line Контрольно-Кассовый Чек [07:41:50]line ПРОДАЖА [07:41:50]line ТРК (МРК, ГНК) : 21 [07:41:50]line Товар: 2710124130 [07:41:50]line Аи-92-К-5 [07:41:50]line 4.490 * 66.90 [07:41:50]line = 300.38 [07:41:50]line НДС 12% НСП 1% [07:41:50]line > о реализуемом товаре [07:41:50]line ОКРУГЛЕНИЕ: -0.38 [07:41:50]line ИТОГО: 300.00 [07:41:50]line Внесено: 300.00 [07:41:50]line СДАЧА: 0.00 [07:41:50]line НСП 1% : 2.66 [07:41:50]line НДС 12% : 31.90 [07:41:50]line Наличными: 300.00 [07:41:50]line Безнал.: 0.00 [07:41:50]line Место: АЗС № 143 "Партнер Нефть" [07:41:50]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [07:41:50]line СНО: Общий режим [07:41:50]line Чек 18 27.10.2024 07:41 [07:41:50]line Смена: 537 ФФД: 1.0 [07:41:50]line ЗНМ: 0300000096 [07:41:50]line РНМ: 0000000000091693 [07:41:50]line Версия ККМ: 001 [07:41:50]line ФМ: 0000000000871792 [07:41:50]line ФД: 156467 [07:41:50]line ФПД: 192046744524560 [07:41:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T074153&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156467&fm=192046744524560&tin=02508201610067®Number=0000000000091693&sum=30000 [07:41:50]written 0, free lines is 4095 [07:41:50]Connected sock=10 [07:41:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 88 CE 07 01 E2 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 C1 EE 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 33 63 02 00 35 04 06 00 AE AA 5D FC D7 10 30 9C 9D F9 82 59 5A A6 [07:41:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 1E A4 47 00 E1 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 33 63 02 00 F4 03 04 00 30 94 1D 67 B6 04 01 00 00 B8 82 9F 73 52 AB D4 B9 [07:41:50]CommunicateWithHost err = 0 [07:41:50]CheckOFDResponse [07:41:50]1017 (14) - 77093643461234 [07:41:50]1041 (16) - 0000000000871792 [07:41:50]1040 (4) - 156467 [07:41:50]1012 (4) - 27.10.2024 01:15 [07:41:50]1206 (1) - 0 [07:41:50]OFD Sender: Remove packet 156467 [07:41:50]ProducePacketName [07:41:50]name=ofd_packets/00156467 [07:41:50]NVStorageDeleteData [07:41:50]Write to MH i2c: 01 00 00 30 36 66 [07:41:50]Write i2c OK [07:41:50]MH_I2C_Read... [07:41:50]Read from MH i2c: 01 [07:41:50]MH_I2C_Read... [07:41:50]Read from MH i2c: 01 07 00 [07:41:50]MH_I2C_Read... [07:41:50]Read from MH i2c: 01 07 00 30 36 00 00 00 00 00 E4 0C 5D [07:41:50]RasterBufferAndPrint [07:41:50]line [07:41:50]line [07:41:50]line [07:41:50]line [07:41:50]line [07:41:50]written 0, free lines is 3306 [07:41:50]process_action close_receipt done [07:41:50]requested_data is exist [07:41:50]produce_requested_data [07:41:50]requested_item fm.sn is exist - process it [07:41:50]wFMCommunicate request_size=4 [07:41:50]MH_SAM_APDU [07:41:50]CAPDU: 80 11 00 00 [07:41:50]Write to MH i2c: E2 08 00 37 36 80 11 00 00 00 00 00 00 E7 [07:41:50]Write i2c OK [07:41:50]MH_I2C_Read... [07:41:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:41:50]Read from MH i2c: E2 [07:41:50]MH_I2C_Read... [07:41:50]Read from MH i2c: E2 17 00 [07:41:50]MH_I2C_Read... [07:41:50]Read from MH i2c: E2 17 00 37 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 3C [07:41:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [07:41:50]wFMCommunicate OK [07:41:50]requested_item fd.num is exist - process it [07:41:50]SAM_PROTO_GetFieldsCounters [07:41:50]wFMCommunicate request_size=4 [07:41:50]MH_SAM_APDU [07:41:50]CAPDU: 80 13 00 00 [07:41:50]Write to MH i2c: E2 08 00 38 36 80 13 00 00 00 00 00 00 EA [07:41:50]Write i2c OK [07:41:50]MH_I2C_Read... [07:41:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:41:50]Read from MH i2c: E2 [07:41:50]MH_I2C_Read... [07:41:50]Read from MH i2c: E2 62 00 [07:41:50]MH_I2C_Read... [07:41:50]Read from MH i2c: E2 62 00 38 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 33 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 F9 [07:41:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 33 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:41:50]wFMCommunicate OK [07:41:50]SAM_PROTO_GetFieldsCounters done [07:41:50]requested_item shift.num is exist - process it [07:41:50]requested_item shift.opened is exist - process it [07:41:50]req_shift_opened [07:41:50]FM_GetShiftState [07:41:50]SAM_PROTO_GetShiftState [07:41:50]wFMCommunicate request_size=4 [07:41:50]MH_SAM_APDU [07:41:50]CAPDU: 80 13 01 00 [07:41:50]Write to MH i2c: E2 08 00 39 36 80 13 01 00 00 00 00 00 EC [07:41:50]Write i2c OK [07:41:50]MH_I2C_Read... [07:41:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:41:50]Read from MH i2c: E2 [07:41:50]MH_I2C_Read... [07:41:50]Read from MH i2c: E2 0E 00 [07:41:50]MH_I2C_Read... [07:41:50]Read from MH i2c: E2 0E 00 39 36 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 B9 [07:41:50]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [07:41:50]wFMCommunicate OK [07:41:50]SAM_PROTO_GetShiftState done [07:41:50]FM_GetShiftState done [07:41:50]req_shift_opened done [07:41:50]requested_item shift.open_date is exist - process it [07:41:50]req_shift_open_date [07:41:50]req_shift_open_date done [07:41:50]produce_requested_data done [07:41:50]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156467,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [07:41:50]process_action_free close_receipt [07:41:50]json_value_free [07:41:50]json_value_free done [07:41:50]process_json_proto returns [07:41:50]Send response to host [07:41:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156467,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [07:41:50]free response buf [07:41:50]execute_script done [07:41:50]execute_script returns [07:41:50]free content buf [07:41:50]Sock 8.Close socket [07:41:50]Sock 8.Thread stoped [07:41:51]OFD Sender: No OFD packet to send [07:41:56]OFD Sender: No OFD packet to send [07:42:01]OFD Sender: No OFD packet to send [07:42:06]OFD Sender: No OFD packet to send [07:42:11]OFD Sender: No OFD packet to send [07:42:16]OFD Sender: No OFD packet to send [07:42:21]OFD Sender: No OFD packet to send [07:42:26]OFD Sender: No OFD packet to send [07:42:31]OFD Sender: No OFD packet to send [07:42:36]OFD Sender: No OFD packet to send [07:42:41]OFD Sender: No OFD packet to send [07:42:46]OFD Sender: No OFD packet to send [07:42:51]OFD Sender: No OFD packet to send [07:42:56]OFD Sender: No OFD packet to send [07:43:01]OFD Sender: No OFD packet to send [07:43:06]OFD Sender: No OFD packet to send [07:43:11]OFD Sender: No OFD packet to send [07:43:16]OFD Sender: No OFD packet to send [07:43:21]OFD Sender: No OFD packet to send [07:43:26]OFD Sender: No OFD packet to send [07:43:31]OFD Sender: No OFD packet to send [07:43:36]OFD Sender: No OFD packet to send [07:43:41]OFD Sender: No OFD packet to send [07:43:46]OFD Sender: No OFD packet to send [07:43:51]OFD Sender: No OFD packet to send [07:43:56]OFD Sender: No OFD packet to send [07:44:01]OFD Sender: No OFD packet to send [07:44:06]OFD Sender: No OFD packet to send [07:44:11]OFD Sender: No OFD packet to send [07:44:16]OFD Sender: No OFD packet to send [07:44:21]OFD Sender: No OFD packet to send [07:44:26]OFD Sender: No OFD packet to send [07:44:31]OFD Sender: No OFD packet to send [07:44:36]OFD Sender: No OFD packet to send [07:44:41]OFD Sender: No OFD packet to send [07:44:46]OFD Sender: No OFD packet to send [07:44:51]OFD Sender: No OFD packet to send [07:44:56]OFD Sender: No OFD packet to send [07:45:01]OFD Sender: No OFD packet to send [07:45:06]OFD Sender: No OFD packet to send [07:45:11]OFD Sender: No OFD packet to send [07:45:16]OFD Sender: No OFD packet to send [07:45:21]OFD Sender: No OFD packet to send [07:45:26]OFD Sender: No OFD packet to send [07:45:31]OFD Sender: No OFD packet to send [07:45:36]OFD Sender: No OFD packet to send [07:45:41]OFD Sender: No OFD packet to send [07:45:46]OFD Sender: No OFD packet to send [07:45:51]OFD Sender: No OFD packet to send [07:45:56]OFD Sender: No OFD packet to send [07:46:01]OFD Sender: No OFD packet to send [07:46:06]OFD Sender: No OFD packet to send [07:46:11]OFD Sender: No OFD packet to send [07:46:16]OFD Sender: No OFD packet to send [07:46:21]OFD Sender: No OFD packet to send [07:46:26]OFD Sender: No OFD packet to send [07:46:31]OFD Sender: No OFD packet to send [07:46:36]OFD Sender: No OFD packet to send [07:46:41]OFD Sender: No OFD packet to send [07:46:46]OFD Sender: No OFD packet to send [07:46:51]OFD Sender: No OFD packet to send [07:46:56]OFD Sender: No OFD packet to send [07:47:01]OFD Sender: No OFD packet to send [07:47:06]OFD Sender: No OFD packet to send [07:47:11]OFD Sender: No OFD packet to send [07:47:16]OFD Sender: No OFD packet to send [07:47:21]OFD Sender: No OFD packet to send [07:47:26]OFD Sender: No OFD packet to send [07:47:31]OFD Sender: No OFD packet to send [07:47:36]OFD Sender: No OFD packet to send [07:47:41]OFD Sender: No OFD packet to send [07:47:46]OFD Sender: No OFD packet to send [07:47:51]OFD Sender: No OFD packet to send [07:47:56]OFD Sender: No OFD packet to send [07:48:01]OFD Sender: No OFD packet to send [07:48:06]OFD Sender: No OFD packet to send [07:48:11]OFD Sender: No OFD packet to send [07:48:16]OFD Sender: No OFD packet to send [07:48:21]OFD Sender: No OFD packet to send [07:48:26]OFD Sender: No OFD packet to send [07:48:31]OFD Sender: No OFD packet to send [07:48:36]OFD Sender: No OFD packet to send [07:48:41]OFD Sender: No OFD packet to send [07:48:46]OFD Sender: No OFD packet to send [07:48:51]OFD Sender: No OFD packet to send [07:48:56]OFD Sender: No OFD packet to send [07:49:01]OFD Sender: No OFD packet to send [07:49:06]OFD Sender: No OFD packet to send [07:49:11]OFD Sender: No OFD packet to send [07:49:16]OFD Sender: No OFD packet to send [07:49:21]OFD Sender: No OFD packet to send [07:49:26]OFD Sender: No OFD packet to send [07:49:31]OFD Sender: No OFD packet to send [07:49:36]OFD Sender: No OFD packet to send [07:49:41]OFD Sender: No OFD packet to send [07:49:46]OFD Sender: No OFD packet to send [07:49:51]OFD Sender: No OFD packet to send [07:49:56]OFD Sender: No OFD packet to send [07:50:01]OFD Sender: No OFD packet to send [07:50:06]OFD Sender: No OFD packet to send [07:50:11]OFD Sender: No OFD packet to send [07:50:16]OFD Sender: No OFD packet to send [07:50:21]OFD Sender: No OFD packet to send [07:50:26]OFD Sender: No OFD packet to send [07:50:31]OFD Sender: No OFD packet to send [07:50:36]OFD Sender: No OFD packet to send [07:50:41]OFD Sender: No OFD packet to send [07:50:46]OFD Sender: No OFD packet to send [07:50:51]OFD Sender: No OFD packet to send [07:50:56]OFD Sender: No OFD packet to send [07:51:01]OFD Sender: No OFD packet to send [07:51:06]OFD Sender: No OFD packet to send [07:51:11]OFD Sender: No OFD packet to send [07:51:16]OFD Sender: No OFD packet to send [07:51:21]OFD Sender: No OFD packet to send [07:51:26]OFD Sender: No OFD packet to send [07:51:31]OFD Sender: No OFD packet to send [07:51:36]OFD Sender: No OFD packet to send [07:51:41]OFD Sender: No OFD packet to send [07:51:46]OFD Sender: No OFD packet to send [07:51:51]OFD Sender: No OFD packet to send [07:51:56]OFD Sender: No OFD packet to send [07:52:01]OFD Sender: No OFD packet to send [07:52:06]OFD Sender: No OFD packet to send [07:52:11]OFD Sender: No OFD packet to send [07:52:16]OFD Sender: No OFD packet to send [07:52:21]OFD Sender: No OFD packet to send [07:52:26]OFD Sender: No OFD packet to send [07:52:31]OFD Sender: No OFD packet to send [07:52:36]OFD Sender: No OFD packet to send [07:52:38]accept exits with 9 [07:52:38]New connection [07:52:38]New thread 3066834276 created [07:52:38]Thread 3066977636 joined [07:52:38]Waiting for new connection... [07:52:38] Sock 9.Parse request [07:52:38]Sock 9.Check first char [07:52:38]Sock 9.First char is OK [07:52:38]request: POST /json_proto HTTP/1.0 [07:52:38]Method: POST [07:52:38]URL: /json_proto [07:52:38]Method is POST - this is cgi request [07:52:38]url: /json_proto [07:52:38]query_string will be loaded in cgi processing [07:52:38]execute_cgi json_proto POST (null) [07:52:38]execute_cgi path=json_proto method=POST [07:52:38]POST find Content-Length [07:52:38]Host: 172.17.63.3:8080 [07:52:38]Content-Length: 677 [07:52:38]Content-Type: application/json [07:52:38] [07:52:38]POST finish read [07:52:38]Found Content-Length = 677 [07:52:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99281", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "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" ] } } [07:52:38]execute_script... [07:52: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)99281", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "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" ] } } [07:52:38]POST & json_proto [07:52:38]process_json_proto [07:52:38]json parsed OK: [07:52:38]protocol is kg_v1.0 [07:52:38]action value=close_receipt [07:52:38]process_action close_receipt [07:52:38]cmd_close_receipt [07:52:38]MH_GetDate [07:52:38]Write to MH i2c: F0 00 00 3A 36 5F [07:52:38]Write i2c OK [07:52:38]MH_I2C_Read... [07:52:38]Read from MH i2c: F0 [07:52:38]MH_I2C_Read... [07:52:38]Read from MH i2c: F0 09 00 [07:52:38]MH_I2C_Read... [07:52:38]Read from MH i2c: F0 09 00 3A 36 00 4B F1 1D 67 50 D1 6C 64 19 [07:52:38]GetLastDocTimeStamp 1730014913 [07:52:38]current date 1730015563 [07:52:38]FM_GetShiftState [07:52:38]SAM_PROTO_GetShiftState [07:52:38]wFMCommunicate request_size=4 [07:52:38]MH_SAM_APDU [07:52:38]CAPDU: 80 13 01 00 [07:52:38]Write to MH i2c: E2 08 00 3B 36 80 13 01 00 00 00 00 00 EE [07:52:38]Write i2c OK [07:52:38]MH_I2C_Read... [07:52:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:52:39]Read from MH i2c: E2 [07:52:39]MH_I2C_Read... [07:52:39]Read from MH i2c: E2 0E 00 [07:52:39]MH_I2C_Read... [07:52:39]Read from MH i2c: E2 0E 00 3B 36 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 BB [07:52:39]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [07:52:39]wFMCommunicate OK [07:52:39]SAM_PROTO_GetShiftState done [07:52:39]FM_GetShiftState done [07:52:39]opened in 1729989044 [07:52:39]opened+sec_in_day 1730075444 [07:52:39]quantity*price = 70044 [07:52:39]sum+1 = 70045 [07:52:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 19 27.10.2024 07:52 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156468 ФПД: 277982362952355 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T075243&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156468&fm=277982362952355&tin=02508201610067®Number=0000000000091693&sum=70000 [07:52:40]StoreToDocumentArchive [07:52:40]shift 537 fd 156468 [07:52:40]save to /storage/0537/doc_00156468 [07:52:40]save last doc name /storage/0537/doc_00156468 to /storage/kkm_last_doc_name [07:52:40]save OK [07:52:40]Clear old archive folders... [07:52:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:52:40]tlvbuf is 01772120 [07:52:40]SAM_PROTO_ClearQueue [07:52:40]wFMCommunicate request_size=4 [07:52:40]MH_SAM_APDU [07:52:40]CAPDU: 80 09 00 00 [07:52:40]Write to MH i2c: E2 08 00 48 36 80 09 00 00 00 00 00 00 F0 [07:52:40]Write i2c OK [07:52:40]MH_I2C_Read... [07:52:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:52:40]Read from MH i2c: E2 [07:52:40]MH_I2C_Read... [07:52:40]Read from MH i2c: E2 03 00 [07:52:40]MH_I2C_Read... [07:52:40]Read from MH i2c: E2 03 00 48 36 00 90 00 F2 [07:52:40]RAPDU: 90 00 [07:52:40]wFMCommunicate OK [07:52:40]SAM_PROTO_ClearQueue done [07:52:40]KKMCreateOFDPacket [07:52:40]OFDProtocolAddRootSTLVToBuf [07:52:40]FM_MakeSignedData [07:52:40]FM_MakeSignedData [07:52:40]SAM_PROTO_SignData [07:52:40]wFMCommunicate request_size=4 [07:52:40]MH_SAM_APDU [07:52:40]CAPDU: 80 0D 01 02 [07:52:40]Write to MH i2c: E2 08 00 49 36 80 0D 01 02 00 00 00 00 F8 [07:52:40]Write i2c OK [07:52:40]MH_I2C_Read... [07:52:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:52:40]Read from MH i2c: E2 [07:52:40]MH_I2C_Read... [07:52:40]Read from MH i2c: E2 03 00 [07:52:40]MH_I2C_Read... [07:52:40]Read from MH i2c: E2 03 00 49 36 00 90 00 F3 [07:52:40]RAPDU: 90 00 [07:52:40]wFMCommunicate OK [07:52:40]wFMCommunicate request_size=255 [07:52:40]MH_SAM_APDU [07:52: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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 13 00 00 00 F4 03 04 00 4B F1 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 34 63 02 00 35 04 06 00 FC [07:52:40]Write to MH i2c: E2 02 01 4A 36 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 13 00 00 00 F4 03 04 00 4B F1 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 34 63 02 00 35 04 06 00 FC 00 00 1F [07:52:40]Write i2c OK [07:52:40]MH_I2C_Read... [07:52:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:52:40]Read from MH i2c: E2 [07:52:40]MH_I2C_Read... [07:52:40]Read from MH i2c: E2 03 00 [07:52:40]MH_I2C_Read... [07:52:40]Read from MH i2c: E2 03 00 4A 36 00 90 00 F4 [07:52:40]RAPDU: 90 00 [07:52:40]wFMCommunicate OK [07:52:40]wFMCommunicate request_size=10 [07:52:40]MH_SAM_APDU [07:52:40]CAPDU: 80 0D 02 02 05 D2 CF FF 62 A3 [07:52:40]Write to MH i2c: E2 0D 00 4B 36 80 0D 02 02 05 00 D2 CF FF 62 A3 00 00 AA [07:52:40]Write i2c OK [07:52:40]MH_I2C_Read... [07:52:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:52:40]Read from MH i2c: E2 [07:52:40]MH_I2C_Read... [07:52:40]Read from MH i2c: E2 03 00 [07:52:40]MH_I2C_Read... [07:52:40]Read from MH i2c: E2 03 00 4B 36 00 90 00 F5 [07:52:40]RAPDU: 90 00 [07:52:40]wFMCommunicate OK [07:52:40]wFMCommunicate request_size=4 [07:52:40]MH_SAM_APDU [07:52:40]CAPDU: 80 0D 03 02 [07:52:40]Write to MH i2c: E2 08 00 4C 36 80 0D 03 02 00 00 00 00 FD [07:52:40]Write i2c OK [07:52:40]MH_I2C_Read... [07:52:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:52:40]Read from MH i2c: E2 [07:52:40]MH_I2C_Read... [07:52:40]Read from MH i2c: E2 0B 00 [07:52:40]MH_I2C_Read... [07:52:40]Read from MH i2c: E2 0B 00 4C 36 00 27 4E 30 BB 0A E6 76 1A 90 00 DE [07:52:40]RAPDU: 27 4E 30 BB 0A E6 76 1A 90 00 [07:52:40]wFMCommunicate OK [07:52:40]SAM_PROTO_SignData done [07:52:40]FM_MakeSignedData done [07:52:40]CreateOFDProtocolMessage [07:52:40]wFMCommunicate request_size=4 [07:52:40]MH_SAM_APDU [07:52:40]CAPDU: 80 11 00 00 [07:52:40]Write to MH i2c: E2 08 00 4D 36 80 11 00 00 00 00 00 00 FD [07:52:40]Write i2c OK [07:52:40]MH_I2C_Read... [07:52:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:52:40]Read from MH i2c: E2 [07:52:40]MH_I2C_Read... [07:52:40]Read from MH i2c: E2 17 00 [07:52:40]MH_I2C_Read... [07:52:40]Read from MH i2c: E2 17 00 4D 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 52 [07:52:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [07:52:40]wFMCommunicate OK [07:52:40]CreateOFDProtocolMessage done [07:52:40]OFDSenderStorePacket 156468 [07:52:40]StoreOFDPacket docnum=156468 [07:52:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 4A 2E 07 01 E8 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 13 00 00 00 F4 03 04 00 4B F1 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 34 63 02 00 35 04 06 00 FC D2 CF FF 62 A3 27 4E 30 BB 0A E6 76 1A [07:52:40]CheckFolder [07:52:40]dirname=/storage/ofd_packets [07:52:40]CheckFolder done [07:52:40]ProducePacketName [07:52:40]name=ofd_packets/00156468 [07:52:40]NVStorageSaveData ofd_packets/00156468 [07:52:40]File name is /storage/ofd_packets/00156468 [07:52:40]Write 301 bytes [07:52:40]NVStorageSaveData done [07:52:40]OFDSenderStorePacket done [07:52:40]KKMCreateOFDPacket done [07:52:40]NVStorageSaveData kkm_last_timestamp [07:52:40]File name is /storage/kkm_last_timestamp [07:52:40]Write 4 bytes [07:52:40]NVStorageSaveData done [07:52:40]ExternCall_PrintAddStr [07:52:40]wPrintStart [07:52:40]Write to MH i2c: 01 00 00 4E 36 84 [07:52:40]Write i2c OK [07:52:40]MH_I2C_Read... [07:52:40]Read from MH i2c: 01 [07:52:40]MH_I2C_Read... [07:52:40]Read from MH i2c: 01 07 00 [07:52:40]MH_I2C_Read... [07:52:40]Read from MH i2c: 01 07 00 4E 36 00 00 00 00 00 FF 0F 99 [07:52:40]RasterBufferAndPrint [07:52:40]line Счет N : (1)99281 [07:52:40]line ИНН: 02508201610067 [07:52:40]line Контрольно-Кассовый Чек [07:52:40]line ПРОДАЖА [07:52:40]line ТРК (МРК, ГНК) : 21 [07:52:40]line Товар: 2710124130 [07:52:40]line Аи-92-К-5 [07:52:40]line 10.470 * 66.90 [07:52:40]line = 700.44 [07:52:40]line НДС 12% НСП 1% [07:52:40]line > о реализуемом товаре [07:52:40]line ОКРУГЛЕНИЕ: -0.44 [07:52:40]line ИТОГО: 700.00 [07:52:40]line Внесено: 700.00 [07:52:40]line СДАЧА: 0.00 [07:52:40]line НСП 1% : 6.20 [07:52:40]line НДС 12% : 74.38 [07:52:40]line Наличными: 700.00 [07:52:40]line Безнал.: 0.00 [07:52:40]line Место: АЗС № 143 "Партнер Нефть" [07:52:40]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [07:52:40]line СНО: Общий режим [07:52:40]line Чек 19 27.10.2024 07:52 [07:52:40]line Смена: 537 ФФД: 1.0 [07:52:40]line ЗНМ: 0300000096 [07:52:40]line РНМ: 0000000000091693 [07:52:40]line Версия ККМ: 001 [07:52:40]line ФМ: 0000000000871792 [07:52:40]line ФД: 156468 [07:52:40]line ФПД: 277982362952355 [07:52:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T075243&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156468&fm=277982362952355&tin=02508201610067®Number=0000000000091693&sum=70000 [07:52:40]OFD Sender: Processing packet 156468 [packets to send 31, broken 30] [07:52:40]ProducePacketName [07:52:40]name=ofd_packets/00156468 [07:52:40]OFD Sender: To server: pG, [07:52:40]CommunicateWithHost lk.salyk.kg:30040 [07:52:40]ConnectInit lk.salyk.kg [07:52:40]written 0, free lines is 4095 [07:52:41]Connected sock=10 [07:52:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 4A 2E 07 01 E8 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 13 00 00 00 F4 03 04 00 4B F1 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 34 63 02 00 35 04 06 00 FC D2 CF FF 62 A3 27 4E 30 BB 0A E6 76 1A [07:52:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 3C 20 47 00 E0 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 34 63 02 00 F4 03 04 00 BB 96 1D 67 B6 04 01 00 00 66 05 2D 7D 49 FE 1B 6E [07:52:41]CommunicateWithHost err = 0 [07:52:41]CheckOFDResponse [07:52:41]1017 (14) - 77093643461234 [07:52:41]1041 (16) - 0000000000871792 [07:52:41]1040 (4) - 156468 [07:52:41]1012 (4) - 27.10.2024 01:26 [07:52:41]1206 (1) - 0 [07:52:41]OFD Sender: Remove packet 156468 [07:52:41]ProducePacketName [07:52:41]name=ofd_packets/00156468 [07:52:41]NVStorageDeleteData [07:52:41]Write to MH i2c: 01 00 00 79 36 AF [07:52:41]Write i2c OK [07:52:41]MH_I2C_Read... [07:52:41]Read from MH i2c: 01 [07:52:41]MH_I2C_Read... [07:52:41]Read from MH i2c: 01 07 00 [07:52:41]MH_I2C_Read... [07:52:41]Read from MH i2c: 01 07 00 79 36 00 00 00 00 00 DD 0C 9F [07:52:41]RasterBufferAndPrint [07:52:41]line [07:52:41]line [07:52:41]line [07:52:41]line [07:52:41]line [07:52:41]written 0, free lines is 3299 [07:52:41]process_action close_receipt done [07:52:41]requested_data is exist [07:52:41]produce_requested_data [07:52:41]requested_item fm.sn is exist - process it [07:52:41]wFMCommunicate request_size=4 [07:52:41]MH_SAM_APDU [07:52:41]CAPDU: 80 11 00 00 [07:52:41]Write to MH i2c: E2 08 00 80 36 80 11 00 00 00 00 00 00 30 [07:52:41]Write i2c OK [07:52:41]MH_I2C_Read... [07:52:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:52:41]Read from MH i2c: E2 [07:52:41]MH_I2C_Read... [07:52:41]Read from MH i2c: E2 17 00 [07:52:41]MH_I2C_Read... [07:52:41]Read from MH i2c: E2 17 00 80 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 85 [07:52:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [07:52:41]wFMCommunicate OK [07:52:41]requested_item fd.num is exist - process it [07:52:41]SAM_PROTO_GetFieldsCounters [07:52:41]wFMCommunicate request_size=4 [07:52:41]MH_SAM_APDU [07:52:41]CAPDU: 80 13 00 00 [07:52:41]Write to MH i2c: E2 08 00 81 36 80 13 00 00 00 00 00 00 33 [07:52:41]Write i2c OK [07:52:41]MH_I2C_Read... [07:52:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:52:41]Read from MH i2c: E2 [07:52:41]MH_I2C_Read... [07:52:41]Read from MH i2c: E2 62 00 [07:52:41]MH_I2C_Read... [07:52:41]Read from MH i2c: E2 62 00 81 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 34 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 46 [07:52:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 34 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:52:41]wFMCommunicate OK [07:52:41]SAM_PROTO_GetFieldsCounters done [07:52:41]requested_item shift.num is exist - process it [07:52:41]requested_item shift.opened is exist - process it [07:52:41]req_shift_opened [07:52:41]FM_GetShiftState [07:52:41]SAM_PROTO_GetShiftState [07:52:41]wFMCommunicate request_size=4 [07:52:41]MH_SAM_APDU [07:52:41]CAPDU: 80 13 01 00 [07:52:41]Write to MH i2c: E2 08 00 82 36 80 13 01 00 00 00 00 00 35 [07:52:41]Write i2c OK [07:52:41]MH_I2C_Read... [07:52:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:52:41]Read from MH i2c: E2 [07:52:41]MH_I2C_Read... [07:52:41]Read from MH i2c: E2 0E 00 [07:52:41]MH_I2C_Read... [07:52:41]Read from MH i2c: E2 0E 00 82 36 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 02 [07:52:41]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [07:52:41]wFMCommunicate OK [07:52:41]SAM_PROTO_GetShiftState done [07:52:41]FM_GetShiftState done [07:52:41]req_shift_opened done [07:52:41]requested_item shift.open_date is exist - process it [07:52:41]req_shift_open_date [07:52:41]req_shift_open_date done [07:52:41]produce_requested_data done [07:52:41]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156468,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [07:52:41]process_action_free close_receipt [07:52:41]json_value_free [07:52:41]json_value_free done [07:52:41]process_json_proto returns [07:52:41]Send response to host [07:52:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156468,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [07:52:41]free response buf [07:52:41]execute_script done [07:52:41]execute_script returns [07:52:41]free content buf [07:52:41]Sock 9.Close socket [07:52:41]Sock 9.Thread stoped [07:52:41]OFD Sender: No OFD packet to send [07:52:46]OFD Sender: No OFD packet to send [07:52:51]OFD Sender: No OFD packet to send [07:52:56]OFD Sender: No OFD packet to send [07:53:01]OFD Sender: No OFD packet to send [07:53:06]OFD Sender: No OFD packet to send [07:53:11]OFD Sender: No OFD packet to send [07:53:16]OFD Sender: No OFD packet to send [07:53:21]OFD Sender: No OFD packet to send [07:53:26]OFD Sender: No OFD packet to send [07:53:31]OFD Sender: No OFD packet to send [07:53:36]OFD Sender: No OFD packet to send [07:53:41]OFD Sender: No OFD packet to send [07:53:46]OFD Sender: No OFD packet to send [07:53:51]OFD Sender: No OFD packet to send [07:53:56]OFD Sender: No OFD packet to send [07:54:01]OFD Sender: No OFD packet to send [07:54:06]OFD Sender: No OFD packet to send [07:54:11]OFD Sender: No OFD packet to send [07:54:16]OFD Sender: No OFD packet to send [07:54:21]OFD Sender: No OFD packet to send [07:54:26]OFD Sender: No OFD packet to send [07:54:31]OFD Sender: No OFD packet to send [07:54:36]OFD Sender: No OFD packet to send [07:54:41]OFD Sender: No OFD packet to send [07:54:46]OFD Sender: No OFD packet to send [07:54:51]OFD Sender: No OFD packet to send [07:54:56]OFD Sender: No OFD packet to send [07:55:01]OFD Sender: No OFD packet to send [07:55:06]OFD Sender: No OFD packet to send [07:55:11]OFD Sender: No OFD packet to send [07:55:16]OFD Sender: No OFD packet to send [07:55:21]OFD Sender: No OFD packet to send [07:55:26]OFD Sender: No OFD packet to send [07:55:31]OFD Sender: No OFD packet to send [07:55:36]OFD Sender: No OFD packet to send [07:55:41]OFD Sender: No OFD packet to send [07:55:46]OFD Sender: No OFD packet to send [07:55:51]OFD Sender: No OFD packet to send [07:55:56]OFD Sender: No OFD packet to send [07:56:01]OFD Sender: No OFD packet to send [07:56:06]OFD Sender: No OFD packet to send [07:56:11]OFD Sender: No OFD packet to send [07:56:17]OFD Sender: No OFD packet to send [07:56:22]OFD Sender: No OFD packet to send [07:56:27]OFD Sender: No OFD packet to send [07:56:32]OFD Sender: No OFD packet to send [07:56:37]OFD Sender: No OFD packet to send [07:56:42]OFD Sender: No OFD packet to send [07:56:47]OFD Sender: No OFD packet to send [07:56:52]OFD Sender: No OFD packet to send [07:56:57]OFD Sender: No OFD packet to send [07:57:02]OFD Sender: No OFD packet to send [07:57:07]OFD Sender: No OFD packet to send [07:57:12]OFD Sender: No OFD packet to send [07:57:17]OFD Sender: No OFD packet to send [07:57:22]OFD Sender: No OFD packet to send [07:57:27]OFD Sender: No OFD packet to send [07:57:32]OFD Sender: No OFD packet to send [07:57:37]OFD Sender: No OFD packet to send [07:57:42]OFD Sender: No OFD packet to send [07:57:47]OFD Sender: No OFD packet to send [07:57:52]OFD Sender: No OFD packet to send [07:57:57]OFD Sender: No OFD packet to send [07:58:02]OFD Sender: No OFD packet to send [07:58:07]OFD Sender: No OFD packet to send [07:58:12]OFD Sender: No OFD packet to send [07:58:17]OFD Sender: No OFD packet to send [07:58:22]OFD Sender: No OFD packet to send [07:58:27]OFD Sender: No OFD packet to send [07:58:32]OFD Sender: No OFD packet to send [07:58:37]OFD Sender: No OFD packet to send [07:58:42]OFD Sender: No OFD packet to send [07:58:47]OFD Sender: No OFD packet to send [07:58:52]OFD Sender: No OFD packet to send [07:58:57]OFD Sender: No OFD packet to send [07:59:02]OFD Sender: No OFD packet to send [07:59:07]OFD Sender: No OFD packet to send [07:59:12]OFD Sender: No OFD packet to send [07:59:17]OFD Sender: No OFD packet to send [07:59:22]OFD Sender: No OFD packet to send [07:59:27]OFD Sender: No OFD packet to send [07:59:32]OFD Sender: No OFD packet to send [07:59:37]OFD Sender: No OFD packet to send [07:59:42]OFD Sender: No OFD packet to send [07:59:47]OFD Sender: No OFD packet to send [07:59:52]OFD Sender: No OFD packet to send [07:59:57]OFD Sender: No OFD packet to send [08:00:02]OFD Sender: No OFD packet to send [08:00:07]OFD Sender: No OFD packet to send [08:00:12]OFD Sender: No OFD packet to send [08:00:17]OFD Sender: No OFD packet to send [08:00:22]OFD Sender: No OFD packet to send [08:00:27]OFD Sender: No OFD packet to send [08:00:32]OFD Sender: No OFD packet to send [08:00:37]OFD Sender: No OFD packet to send [08:00:42]OFD Sender: No OFD packet to send [08:00:47]OFD Sender: No OFD packet to send [08:00:52]OFD Sender: No OFD packet to send [08:00:57]OFD Sender: No OFD packet to send [08:01:02]OFD Sender: No OFD packet to send [08:01:07]OFD Sender: No OFD packet to send [08:01:12]OFD Sender: No OFD packet to send [08:01:17]OFD Sender: No OFD packet to send [08:01:22]OFD Sender: No OFD packet to send [08:01:27]OFD Sender: No OFD packet to send [08:01:32]OFD Sender: No OFD packet to send [08:01:37]OFD Sender: No OFD packet to send [08:01:42]OFD Sender: No OFD packet to send [08:01:47]OFD Sender: No OFD packet to send [08:01:52]OFD Sender: No OFD packet to send [08:01:57]OFD Sender: No OFD packet to send [08:02:02]OFD Sender: No OFD packet to send [08:02:07]OFD Sender: No OFD packet to send [08:02:12]OFD Sender: No OFD packet to send [08:02:17]OFD Sender: No OFD packet to send [08:02:22]OFD Sender: No OFD packet to send [08:02:27]OFD Sender: No OFD packet to send [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:05:52]OFD Sender: No OFD packet to send [08:05:57]OFD Sender: No OFD packet to send [08:06:02]OFD Sender: No OFD packet to send [08:06:07]OFD Sender: No OFD packet to send [08:06:12]OFD Sender: No OFD packet to send [08:06:17]OFD Sender: No OFD packet to send [08:06:22]OFD Sender: No OFD packet to send [08:06:27]OFD Sender: No OFD packet to send [08:06:32]OFD Sender: No OFD packet to send [08:06:37]OFD Sender: No OFD packet to send [08:06:42]OFD Sender: No OFD packet to send [08:06:47]OFD Sender: No OFD packet to send [08:06:52]OFD Sender: No OFD packet to send [08:06:57]OFD Sender: No OFD packet to send [08:07:02]OFD Sender: No OFD packet to send [08:07:07]OFD Sender: No OFD packet to send [08:07:12]OFD Sender: No OFD packet to send [08:07:17]OFD Sender: No OFD packet to send [08:07:22]OFD Sender: No OFD packet to send [08:07:27]OFD Sender: No OFD packet to send [08:07:32]OFD Sender: No OFD packet to send [08:07:37]OFD Sender: No OFD packet to send [08:07:42]OFD Sender: No OFD packet to send [08:07:47]OFD Sender: No OFD packet to send [08:07:52]OFD Sender: No OFD packet to send [08:07:57]OFD Sender: No OFD packet to send [08:08:02]OFD Sender: No OFD packet to send [08:08:06]ConnectInit Can't connect to host [08:08:07]OFD Sender: No OFD packet to send [08:08:12]OFD Sender: No OFD packet to send [08:08:17]OFD Sender: No OFD packet to send [08:08:22]OFD Sender: No OFD packet to send [08:08:27]OFD Sender: No OFD packet to send [08:08:32]OFD Sender: No OFD packet to send [08:08:37]OFD Sender: No OFD packet to send [08:08:42]OFD Sender: No OFD packet to send [08:08:47]OFD Sender: No OFD packet to send [08:08:52]OFD Sender: No OFD packet to send [08:08:57]OFD Sender: No OFD packet to send [08:09:02]OFD Sender: No OFD packet to send [08:09:07]OFD Sender: No OFD packet to send [08:09:12]OFD Sender: No OFD packet to send [08:09:17]OFD Sender: No OFD packet to send [08:09:22]OFD Sender: No OFD packet to send [08:09:27]OFD Sender: No OFD packet to send [08:09:32]OFD Sender: No OFD packet to send [08:09:37]OFD Sender: No OFD packet to send [08:09:42]OFD Sender: No OFD packet to send [08:09:47]OFD Sender: No OFD packet to send [08:09:52]OFD Sender: No OFD packet to send [08:09:57]OFD Sender: No OFD packet to send [08:10:02]OFD Sender: No OFD packet to send [08:10:07]OFD Sender: No OFD packet to send [08:10:12]OFD Sender: No OFD packet to send [08:10:17]OFD Sender: No OFD packet to send [08:10:22]OFD Sender: No OFD packet to send [08:10:27]OFD Sender: No OFD packet to send [08:10:32]OFD Sender: No OFD packet to send [08:10:37]OFD Sender: No OFD packet to send [08:10:42]OFD Sender: No OFD packet to send [08:10:47]OFD Sender: No OFD packet to send [08:10:52]OFD Sender: No OFD packet to send [08:10:57]OFD Sender: No OFD packet to send [08:11:02]OFD Sender: No OFD packet to send [08:11:07]OFD Sender: No OFD packet to send [08:11:12]OFD Sender: No OFD packet to send [08:11:17]OFD Sender: No OFD packet to send [08:11:22]OFD Sender: No OFD packet to send [08:11:27]OFD Sender: No OFD packet to send [08:11:32]OFD Sender: No OFD packet to send [08:11:37]OFD Sender: No OFD packet to send [08:11:42]OFD Sender: No OFD packet to send [08:11:47]OFD Sender: No OFD packet to send [08:11:52]OFD Sender: No OFD packet to send [08:11:57]OFD Sender: No OFD packet to send [08:12:02]OFD Sender: No OFD packet to send [08:12:07]OFD Sender: No OFD packet to send [08:12:12]OFD Sender: No OFD packet to send [08:12:17]OFD Sender: No OFD packet to send [08:12:22]OFD Sender: No OFD packet to send [08:12:27]OFD Sender: No OFD packet to send [08:12:32]OFD Sender: No OFD packet to send [08:12:37]OFD Sender: No OFD packet to send [08:12:42]OFD Sender: No OFD packet to send [08:12:47]OFD Sender: No OFD packet to send [08:12:52]OFD Sender: No OFD packet to send [08:12:57]OFD Sender: No OFD packet to send [08:13:02]OFD Sender: No OFD packet to send [08:13:07]OFD Sender: No OFD packet to send [08:13:12]OFD Sender: No OFD packet to send [08:13:17]OFD Sender: No OFD packet to send [08:13:22]OFD Sender: No OFD packet to send [08:13:27]OFD Sender: No OFD packet to send [08:13:32]OFD Sender: No OFD packet to send [08:13:37]OFD Sender: No OFD packet to send [08:13:42]OFD Sender: No OFD packet to send [08:13:47]OFD Sender: No OFD packet to send [08:13:52]OFD Sender: No OFD packet to send [08:13:57]OFD Sender: No OFD packet to send [08:14:02]OFD Sender: No OFD packet to send [08:14:07]OFD Sender: No OFD packet to send [08:14:12]OFD Sender: No OFD packet to send [08:14:17]OFD Sender: No OFD packet to send [08:14:22]OFD Sender: No OFD packet to send [08:14:27]OFD Sender: No OFD packet to send [08:14:32]OFD Sender: No OFD packet to send [08:14:37]OFD Sender: No OFD packet to send [08:14:42]OFD Sender: No OFD packet to send [08:14:47]OFD Sender: No OFD packet to send [08:14:52]OFD Sender: No OFD packet to send [08:14:57]OFD Sender: No OFD packet to send [08:15:02]OFD Sender: No OFD packet to send [08:15:07]OFD Sender: No OFD packet to send [08:15:12]OFD Sender: No OFD packet to send [08:15:17]OFD Sender: No OFD packet to send [08:15:22]OFD Sender: No OFD packet to send [08:15:27]OFD Sender: No OFD packet to send [08:15:32]OFD Sender: No OFD packet to send [08:15:37]OFD Sender: No OFD packet to send [08:15:42]OFD Sender: No OFD packet to send [08:15:47]OFD Sender: No OFD packet to send [08:15:53]OFD Sender: No OFD packet to send [08:15:58]OFD Sender: No OFD packet to send [08:16:03]OFD Sender: No OFD packet to send [08:16:08]OFD Sender: No OFD packet to send [08:16:13]OFD Sender: No OFD packet to send [08:16:18]OFD Sender: No OFD packet to send [08:16:23]OFD Sender: No OFD packet to send [08:16:28]OFD Sender: No OFD packet to send [08:16:33]OFD Sender: No OFD packet to send [08:16:38]OFD Sender: No OFD packet to send [08:16:43]OFD Sender: No OFD packet to send [08:16:48]OFD Sender: No OFD packet to send [08:16:53]OFD Sender: No OFD packet to send [08:16:58]OFD Sender: No OFD packet to send [08:17:03]OFD Sender: No OFD packet to send [08:17:08]OFD Sender: No OFD packet to send [08:17:13]OFD Sender: No OFD packet to send [08:17:18]OFD Sender: No OFD packet to send [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:48]OFD Sender: No OFD packet to send [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:26]accept exits with 8 [08:20:26]New connection [08:20:26]New thread 3066977636 created [08:20:26]Thread 3066834276 joined [08:20:26]Waiting for new connection... [08:20:26] Sock 8.Parse request [08:20:26]Sock 8.Check first char [08:20:26]Sock 8.First char is OK [08:20:26]request: POST /json_proto HTTP/1.0 [08:20:26]Method: POST [08:20:26]URL: /json_proto [08:20:26]Method is POST - this is cgi request [08:20:26]url: /json_proto [08:20:26]query_string will be loaded in cgi processing [08:20:26]execute_cgi json_proto POST (null) [08:20:26]execute_cgi path=json_proto method=POST [08:20:26]POST find Content-Length [08:20:26]Host: 172.17.63.3:8080 [08:20:26]Content-Length: 765 [08:20:26]Content-Type: application/json [08:20:26] [08:20:26]POST finish read [08:20:26]Found Content-Length = 765 [08:20:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99282", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:20:26]execute_script... [08:20:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99282", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:20:26]POST & json_proto [08:20:26]process_json_proto [08:20:26]json parsed OK: [08:20:26]protocol is kg_v1.0 [08:20:26]action value=close_receipt [08:20:26]process_action close_receipt [08:20:26]cmd_close_receipt [08:20:26]MH_GetDate [08:20:26]Write to MH i2c: F0 00 00 83 36 A8 [08:20:26]Write i2c OK [08:20:26]MH_I2C_Read... [08:20:26]Read from MH i2c: F0 [08:20:26]MH_I2C_Read... [08:20:26]Read from MH i2c: F0 09 00 [08:20:26]MH_I2C_Read... [08:20:26]Read from MH i2c: F0 09 00 83 36 00 CF F7 1D 67 50 D1 6C 64 EC [08:20:26]GetLastDocTimeStamp 1730015563 [08:20:26]current date 1730017231 [08:20:26]FM_GetShiftState [08:20:26]SAM_PROTO_GetShiftState [08:20:26]wFMCommunicate request_size=4 [08:20:26]MH_SAM_APDU [08:20:26]CAPDU: 80 13 01 00 [08:20:26]Write to MH i2c: E2 08 00 84 36 80 13 01 00 00 00 00 00 37 [08:20:26]Write i2c OK [08:20:26]MH_I2C_Read... [08:20:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:20:26]Read from MH i2c: E2 [08:20:26]MH_I2C_Read... [08:20:26]Read from MH i2c: E2 0E 00 [08:20:26]MH_I2C_Read... [08:20:26]Read from MH i2c: E2 0E 00 84 36 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 04 [08:20:26]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [08:20:26]wFMCommunicate OK [08:20:26]SAM_PROTO_GetShiftState done [08:20:26]FM_GetShiftState done [08:20:26]opened in 1729989044 [08:20:26]opened+sec_in_day 1730075444 [08:20:26]quantity*price = 50041 [08:20:26]sum+1 = 50042 [08:20:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 20 27.10.2024 08:20 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 156469 ФПД: 15836196836008 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T082031&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156469&fm=15836196836008&tin=02508201610067®Number=0000000000091693&sum=50041 [08:20:27]StoreToDocumentArchive [08:20:27]shift 537 fd 156469 [08:20:27]save to /storage/0537/doc_00156469 [08:20:27]save last doc name /storage/0537/doc_00156469 to /storage/kkm_last_doc_name [08:20:27]save OK [08:20:27]Clear old archive folders... [08:20:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:20:27]tlvbuf is B6EE0790 [08:20:27]SAM_PROTO_ClearQueue [08:20:27]wFMCommunicate request_size=4 [08:20:27]MH_SAM_APDU [08:20:27]CAPDU: 80 09 00 00 [08:20:27]Write to MH i2c: E2 08 00 91 36 80 09 00 00 00 00 00 00 39 [08:20:27]Write i2c OK [08:20:27]MH_I2C_Read... [08:20:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:20:27]Read from MH i2c: E2 [08:20:27]MH_I2C_Read... [08:20:27]Read from MH i2c: E2 03 00 [08:20:27]MH_I2C_Read... [08:20:27]Read from MH i2c: E2 03 00 91 36 00 90 00 3B [08:20:27]RAPDU: 90 00 [08:20:27]wFMCommunicate OK [08:20:27]SAM_PROTO_ClearQueue done [08:20:27]KKMCreateOFDPacket [08:20:27]OFDProtocolAddRootSTLVToBuf [08:20:27]FM_MakeSignedData [08:20:27]FM_MakeSignedData [08:20:27]SAM_PROTO_SignData [08:20:27]wFMCommunicate request_size=4 [08:20:27]MH_SAM_APDU [08:20:27]CAPDU: 80 0D 01 02 [08:20:27]Write to MH i2c: E2 08 00 92 36 80 0D 01 02 00 00 00 00 41 [08:20:27]Write i2c OK [08:20:27]MH_I2C_Read... [08:20:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:20:27]Read from MH i2c: E2 [08:20:27]MH_I2C_Read... [08:20:27]Read from MH i2c: E2 03 00 [08:20:27]MH_I2C_Read... [08:20:27]Read from MH i2c: E2 03 00 92 36 00 90 00 3C [08:20:27]RAPDU: 90 00 [08:20:27]wFMCommunicate OK [08:20:27]wFMCommunicate request_size=255 [08:20:27]MH_SAM_APDU [08:20:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 CF F7 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 35 63 02 00 35 04 06 00 0E [08:20:27]Write to MH i2c: E2 02 01 93 36 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 CF F7 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 35 63 02 00 35 04 06 00 0E 00 00 48 [08:20:27]Write i2c OK [08:20:27]MH_I2C_Read... [08:20:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:20:28]Read from MH i2c: E2 [08:20:28]MH_I2C_Read... [08:20:28]Read from MH i2c: E2 03 00 [08:20:28]MH_I2C_Read... [08:20:28]Read from MH i2c: E2 03 00 93 36 00 90 00 3D [08:20:28]RAPDU: 90 00 [08:20:28]wFMCommunicate OK [08:20:28]wFMCommunicate request_size=10 [08:20:28]MH_SAM_APDU [08:20:28]CAPDU: 80 0D 02 02 05 67 26 E3 12 A8 [08:20:28]Write to MH i2c: E2 0D 00 94 36 80 0D 02 02 05 00 67 26 E3 12 A8 00 00 78 [08:20:28]Write i2c OK [08:20:28]MH_I2C_Read... [08:20:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:20:28]Read from MH i2c: E2 [08:20:28]MH_I2C_Read... [08:20:28]Read from MH i2c: E2 03 00 [08:20:28]MH_I2C_Read... [08:20:28]Read from MH i2c: E2 03 00 94 36 00 90 00 3E [08:20:28]RAPDU: 90 00 [08:20:28]wFMCommunicate OK [08:20:28]wFMCommunicate request_size=4 [08:20:28]MH_SAM_APDU [08:20:28]CAPDU: 80 0D 03 02 [08:20:28]Write to MH i2c: E2 08 00 95 36 80 0D 03 02 00 00 00 00 46 [08:20:28]Write i2c OK [08:20:28]MH_I2C_Read... [08:20:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:20:28]OFD Sender: No OFD packet to send [08:20:28]Read from MH i2c: E2 [08:20:28]MH_I2C_Read... [08:20:28]Read from MH i2c: E2 0B 00 [08:20:28]MH_I2C_Read... [08:20:28]Read from MH i2c: E2 0B 00 95 36 00 4F E3 52 13 B6 0C D0 8E 90 00 FE [08:20:28]RAPDU: 4F E3 52 13 B6 0C D0 8E 90 00 [08:20:28]wFMCommunicate OK [08:20:28]SAM_PROTO_SignData done [08:20:28]FM_MakeSignedData done [08:20:28]CreateOFDProtocolMessage [08:20:28]wFMCommunicate request_size=4 [08:20:28]MH_SAM_APDU [08:20:28]CAPDU: 80 11 00 00 [08:20:28]Write to MH i2c: E2 08 00 96 36 80 11 00 00 00 00 00 00 46 [08:20:28]Write i2c OK [08:20:28]MH_I2C_Read... [08:20:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:20:28]Read from MH i2c: E2 [08:20:28]MH_I2C_Read... [08:20:28]Read from MH i2c: E2 17 00 [08:20:28]MH_I2C_Read... [08:20:28]Read from MH i2c: E2 17 00 96 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 9B [08:20:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [08:20:28]wFMCommunicate OK [08:20:28]CreateOFDProtocolMessage done [08:20:28]OFDSenderStorePacket 156469 [08:20:28]StoreOFDPacket docnum=156469 [08:20:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 F8 4D 07 01 B1 DF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 CF F7 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 35 63 02 00 35 04 06 00 0E 67 26 E3 12 A8 4F E3 52 13 B6 0C D0 8E [08:20:28]CheckFolder [08:20:28]dirname=/storage/ofd_packets [08:20:28]CheckFolder done [08:20:28]ProducePacketName [08:20:28]name=ofd_packets/00156469 [08:20:28]NVStorageSaveData ofd_packets/00156469 [08:20:28]File name is /storage/ofd_packets/00156469 [08:20:28]Write 301 bytes [08:20:28]NVStorageSaveData done [08:20:28]OFDSenderStorePacket done [08:20:28]KKMCreateOFDPacket done [08:20:28]NVStorageSaveData kkm_last_timestamp [08:20:28]File name is /storage/kkm_last_timestamp [08:20:28]Write 4 bytes [08:20:28]NVStorageSaveData done [08:20:28]ExternCall_PrintAddStr [08:20:28]wPrintStart [08:20:28]Write to MH i2c: 01 00 00 97 36 CD [08:20:28]Write i2c OK [08:20:28]MH_I2C_Read... [08:20:28]Read from MH i2c: 01 [08:20:28]MH_I2C_Read... [08:20:28]Read from MH i2c: 01 07 00 [08:20:28]MH_I2C_Read... [08:20:28]Read from MH i2c: 01 07 00 97 36 00 00 00 00 00 FF 0F E2 [08:20:28]RasterBufferAndPrint [08:20:28]line Счет N : (1)99282 [08:20:28]line ИНН: 02508201610067 [08:20:28]line Контрольно-Кассовый Чек [08:20:28]line ПРОДАЖА [08:20:28]line ТРК (МРК, ГНК) : 31 [08:20:28]line Товар: 2710124130 [08:20:28]line Аи-92-К-5 [08:20:28]line 7.480 * 66.90 [08:20:28]line = 500.41 [08:20:28]line НДС 12% НСП 1% [08:20:28]line > о реализуемом товаре [08:20:28]line ИТОГО: 500.41 [08:20:28]line НСП 1% : 4.43 [08:20:28]line НДС 12% : 53.14 [08:20:28]line Наличными: 0.00 [08:20:28]line Безнал.: 500.41 [08:20:28]line Место: АЗС № 143 "Партнер Нефть" [08:20:28]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [08:20:28]line СНО: Общий режим [08:20:28]line Чек 20 27.10.2024 08:20 [08:20:28]line Смена: 537 ФФД: 1.0 [08:20:28]line ЗНМ: 0300000096 [08:20:28]line РНМ: 0000000000091693 [08:20:28]line Версия ККМ: 001 [08:20:28]line Платежная система: Mbank [08:20:28]line ФМ: 0000000000871792 [08:20:28]line ФД: 156469 [08:20:28]line ФПД: 15836196836008 [08:20:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T082031&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156469&fm=15836196836008&tin=02508201610067®Number=0000000000091693&sum=50041 [08:20:28]OFD Sender: Processing packet 156469 [packets to send 31, broken 30] [08:20:28]ProducePacketName [08:20:28]name=ofd_packets/00156469 [08:20:28]OFD Sender: To server: pG, [08:20:28]CommunicateWithHost lk.salyk.kg:30040 [08:20:28]ConnectInit lk.salyk.kg [08:20:28]written 0, free lines is 4095 [08:20:28]Connected sock=10 [08:20:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 F8 4D 07 01 B1 DF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 CF F7 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 35 63 02 00 35 04 06 00 0E 67 26 E3 12 A8 4F E3 52 13 B6 0C D0 8E [08:20:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 C2 71 47 00 11 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 31 37 39 32 10 04 04 00 35 63 02 00 F4 03 04 00 3F 9D 1D 67 B6 04 01 00 00 F4 2E C7 8B 4B 8F E2 2D [08:20:29]CommunicateWithHost err = 0 [08:20:29]CheckOFDResponse [08:20:29]1017 (14) - 77093643461234 [08:20:29]1041 (16) - 0000000000871792 [08:20:29]1040 (4) - 156469 [08:20:29]1012 (4) - 27.10.2024 01:54 [08:20:29]1206 (1) - 0 [08:20:29]OFD Sender: Remove packet 156469 [08:20:29]ProducePacketName [08:20:29]name=ofd_packets/00156469 [08:20:29]NVStorageDeleteData [08:20:29]Write to MH i2c: 01 00 00 C0 36 F6 [08:20:29]Write i2c OK [08:20:29]MH_I2C_Read... [08:20:29]Read from MH i2c: 01 [08:20:29]MH_I2C_Read... [08:20:29]Read from MH i2c: 01 07 00 [08:20:29]MH_I2C_Read... [08:20:29]Read from MH i2c: 01 07 00 C0 36 00 00 00 00 00 FD 0C 06 [08:20:29]RasterBufferAndPrint [08:20:29]line [08:20:29]line [08:20:29]line [08:20:29]line [08:20:29]line [08:20:29]written 0, free lines is 3331 [08:20:29]process_action close_receipt done [08:20:29]requested_data is exist [08:20:29]produce_requested_data [08:20:29]requested_item fm.sn is exist - process it [08:20:29]wFMCommunicate request_size=4 [08:20:29]MH_SAM_APDU [08:20:29]CAPDU: 80 11 00 00 [08:20:29]Write to MH i2c: E2 08 00 C7 36 80 11 00 00 00 00 00 00 77 [08:20:29]Write i2c OK [08:20:29]MH_I2C_Read... [08:20:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:20:29]Read from MH i2c: E2 [08:20:29]MH_I2C_Read... [08:20:29]Read from MH i2c: E2 17 00 [08:20:29]MH_I2C_Read... [08:20:29]Read from MH i2c: E2 17 00 C7 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 CC [08:20:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [08:20:29]wFMCommunicate OK [08:20:29]requested_item fd.num is exist - process it [08:20:29]SAM_PROTO_GetFieldsCounters [08:20:29]wFMCommunicate request_size=4 [08:20:29]MH_SAM_APDU [08:20:29]CAPDU: 80 13 00 00 [08:20:29]Write to MH i2c: E2 08 00 C8 36 80 13 00 00 00 00 00 00 7A [08:20:29]Write i2c OK [08:20:29]MH_I2C_Read... [08:20:29]Read from MH i2c: E2 [08:20:29]MH_I2C_Read... [08:20:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:20:29]Read from MH i2c: E2 62 00 [08:20:29]MH_I2C_Read... [08:20:29]Read from MH i2c: E2 62 00 C8 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 35 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 91 [08:20:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 35 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:20:29]wFMCommunicate OK [08:20:29]SAM_PROTO_GetFieldsCounters done [08:20:29]requested_item shift.num is exist - process it [08:20:29]requested_item shift.opened is exist - process it [08:20:29]req_shift_opened [08:20:29]FM_GetShiftState [08:20:29]SAM_PROTO_GetShiftState [08:20:29]wFMCommunicate request_size=4 [08:20:29]MH_SAM_APDU [08:20:29]CAPDU: 80 13 01 00 [08:20:29]Write to MH i2c: E2 08 00 C9 36 80 13 01 00 00 00 00 00 7C [08:20:29]Write i2c OK [08:20:29]MH_I2C_Read... [08:20:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:20:29]Read from MH i2c: E2 [08:20:29]MH_I2C_Read... [08:20:29]Read from MH i2c: E2 0E 00 [08:20:29]MH_I2C_Read... [08:20:29]Read from MH i2c: E2 0E 00 C9 36 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 49 [08:20:29]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [08:20:29]wFMCommunicate OK [08:20:29]SAM_PROTO_GetShiftState done [08:20:29]FM_GetShiftState done [08:20:29]req_shift_opened done [08:20:29]requested_item shift.open_date is exist - process it [08:20:29]req_shift_open_date [08:20:29]req_shift_open_date done [08:20:29]produce_requested_data done [08:20:29]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156469,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [08:20:29]process_action_free close_receipt [08:20:29]json_value_free [08:20:29]json_value_free done [08:20:29]process_json_proto returns [08:20:29]Send response to host [08:20:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156469,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [08:20:29]free response buf [08:20:29]execute_script done [08:20:29]execute_script returns [08:20:29]free content buf [08:20:29]Sock 8.Close socket [08:20:29]Sock 8.Thread stoped [08:20:29]OFD Sender: No OFD packet to send [08:20:34]OFD Sender: No OFD packet to send [08:20:39]OFD Sender: No OFD packet to send [08:20:44]OFD Sender: No OFD packet to send [08:20:49]OFD Sender: No OFD packet to send [08:20:54]OFD Sender: No OFD packet to send [08:20:59]OFD Sender: No OFD packet to send [08:21:04]OFD Sender: No OFD packet to send [08:21:09]OFD Sender: No OFD packet to send [08:21:14]OFD Sender: No OFD packet to send [08:21:19]OFD Sender: No OFD packet to send [08:21:24]OFD Sender: No OFD packet to send [08:21:29]OFD Sender: No OFD packet to send [08:21:34]OFD Sender: No OFD packet to send [08:21:39]OFD Sender: No OFD packet to send [08:21:44]OFD Sender: No OFD packet to send [08:21:49]OFD Sender: No OFD packet to send [08:21:54]OFD Sender: No OFD packet to send [08:21:59]OFD Sender: No OFD packet to send [08:22:04]OFD Sender: No OFD packet to send [08:22:09]OFD Sender: No OFD packet to send [08:22:14]OFD Sender: No OFD packet to send [08:22:19]OFD Sender: No OFD packet to send [08:22:24]OFD Sender: No OFD packet to send [08:22:29]OFD Sender: No OFD packet to send [08:22:34]OFD Sender: No OFD packet to send [08:22:39]OFD Sender: No OFD packet to send [08:22:44]OFD Sender: No OFD packet to send [08:22:49]OFD Sender: No OFD packet to send [08:22:54]OFD Sender: No OFD packet to send [08:22:59]OFD Sender: No OFD packet to send [08:23:04]OFD Sender: No OFD packet to send [08:23:09]OFD Sender: No OFD packet to send [08:23:14]OFD Sender: No OFD packet to send [08:23:19]OFD Sender: No OFD packet to send [08:23:24]OFD Sender: No OFD packet to send [08:23:29]OFD Sender: No OFD packet to send [08:23:30]accept exits with 9 [08:23:30]New connection [08:23:30]New thread 3066834276 created [08:23:30]Thread 3066977636 joined [08:23:30]Waiting for new connection... [08:23:30] Sock 9.Parse request [08:23:30]Sock 9.Check first char [08:23:30]Sock 9.First char is OK [08:23:30]request: POST /json_proto HTTP/1.0 [08:23:30]Method: POST [08:23:30]URL: /json_proto [08:23:30]Method is POST - this is cgi request [08:23:30]url: /json_proto [08:23:30]query_string will be loaded in cgi processing [08:23:30]execute_cgi json_proto POST (null) [08:23:30]execute_cgi path=json_proto method=POST [08:23:30]POST find Content-Length [08:23:30]Host: 172.17.63.3:8080 [08:23:30]Content-Length: 676 [08:23:30]Content-Type: application/json [08:23:30] [08:23:30]POST finish read [08:23:30]Found Content-Length = 676 [08:23:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99283", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:23:30]execute_script... [08:23: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)99283", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:23:30]POST & json_proto [08:23:30]process_json_proto [08:23:30]json parsed OK: [08:23:30]protocol is kg_v1.0 [08:23:30]action value=close_receipt [08:23:30]process_action close_receipt [08:23:30]cmd_close_receipt [08:23:30]MH_GetDate [08:23:30]Write to MH i2c: F0 00 00 CA 36 EF [08:23:30]Write i2c OK [08:23:30]MH_I2C_Read... [08:23:30]Read from MH i2c: F0 [08:23:30]MH_I2C_Read... [08:23:30]Read from MH i2c: F0 09 00 [08:23:30]MH_I2C_Read... [08:23:30]Read from MH i2c: F0 09 00 CA 36 00 87 F8 1D 67 50 D1 6C 64 EC [08:23:30]GetLastDocTimeStamp 1730017231 [08:23:30]current date 1730017415 [08:23:30]FM_GetShiftState [08:23:30]SAM_PROTO_GetShiftState [08:23:30]wFMCommunicate request_size=4 [08:23:30]MH_SAM_APDU [08:23:30]CAPDU: 80 13 01 00 [08:23:30]Write to MH i2c: E2 08 00 CB 36 80 13 01 00 00 00 00 00 7E [08:23:30]Write i2c OK [08:23:30]MH_I2C_Read... [08:23:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:23:30]Read from MH i2c: E2 [08:23:30]MH_I2C_Read... [08:23:30]Read from MH i2c: E2 0E 00 [08:23:30]MH_I2C_Read... [08:23:30]Read from MH i2c: E2 0E 00 CB 36 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 4B [08:23:30]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [08:23:30]wFMCommunicate OK [08:23:30]SAM_PROTO_GetShiftState done [08:23:30]FM_GetShiftState done [08:23:30]opened in 1729989044 [08:23:30]opened+sec_in_day 1730075444 [08:23:30]quantity*price = 50041 [08:23:30]sum+1 = 50042 [08:23:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 21 27.10.2024 08:23 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156470 ФПД: 158084686507343 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T082335&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156470&fm=158084686507343&tin=02508201610067®Number=0000000000091693&sum=50000 [08:23:31]StoreToDocumentArchive [08:23:31]shift 537 fd 156470 [08:23:31]save to /storage/0537/doc_00156470 [08:23:31]save last doc name /storage/0537/doc_00156470 to /storage/kkm_last_doc_name [08:23:31]save OK [08:23:31]Clear old archive folders... [08:23:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:23:31]tlvbuf is 01712200 [08:23:31]SAM_PROTO_ClearQueue [08:23:31]wFMCommunicate request_size=4 [08:23:31]MH_SAM_APDU [08:23:31]CAPDU: 80 09 00 00 [08:23:31]Write to MH i2c: E2 08 00 D8 36 80 09 00 00 00 00 00 00 80 [08:23:31]Write i2c OK [08:23:31]MH_I2C_Read... [08:23:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:23:31]Read from MH i2c: E2 [08:23:31]MH_I2C_Read... [08:23:31]Read from MH i2c: E2 03 00 [08:23:31]MH_I2C_Read... [08:23:31]Read from MH i2c: E2 03 00 D8 36 00 90 00 82 [08:23:31]RAPDU: 90 00 [08:23:31]wFMCommunicate OK [08:23:31]SAM_PROTO_ClearQueue done [08:23:31]KKMCreateOFDPacket [08:23:31]OFDProtocolAddRootSTLVToBuf [08:23:31]FM_MakeSignedData [08:23:31]FM_MakeSignedData [08:23:31]SAM_PROTO_SignData [08:23:31]wFMCommunicate request_size=4 [08:23:31]MH_SAM_APDU [08:23:31]CAPDU: 80 0D 01 02 [08:23:31]Write to MH i2c: E2 08 00 D9 36 80 0D 01 02 00 00 00 00 88 [08:23:31]Write i2c OK [08:23:31]MH_I2C_Read... [08:23:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:23:31]Read from MH i2c: E2 [08:23:31]MH_I2C_Read... [08:23:31]Read from MH i2c: E2 03 00 [08:23:31]MH_I2C_Read... [08:23:31]Read from MH i2c: E2 03 00 D9 36 00 90 00 83 [08:23:31]RAPDU: 90 00 [08:23:31]wFMCommunicate OK [08:23:31]wFMCommunicate request_size=255 [08:23:31]MH_SAM_APDU [08:23: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 87 F8 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 36 63 02 00 35 04 06 00 8F [08:23:31]Write to MH i2c: E2 02 01 DA 36 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 87 F8 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 36 63 02 00 35 04 06 00 8F 00 00 79 [08:23:31]Write i2c OK [08:23:31]MH_I2C_Read... [08:23:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:23:31]Read from MH i2c: E2 [08:23:31]MH_I2C_Read... [08:23:31]Read from MH i2c: E2 03 00 [08:23:31]MH_I2C_Read... [08:23:31]Read from MH i2c: E2 03 00 DA 36 00 90 00 84 [08:23:31]RAPDU: 90 00 [08:23:31]wFMCommunicate OK [08:23:31]wFMCommunicate request_size=10 [08:23:31]MH_SAM_APDU [08:23:31]CAPDU: 80 0D 02 02 05 C6 F5 95 6D 4F [08:23:31]Write to MH i2c: E2 0D 00 DB 36 80 0D 02 02 05 00 C6 F5 95 6D 4F 00 00 A1 [08:23:31]Write i2c OK [08:23:31]MH_I2C_Read... [08:23:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:23:31]Read from MH i2c: E2 [08:23:31]MH_I2C_Read... [08:23:31]Read from MH i2c: E2 03 00 [08:23:31]MH_I2C_Read... [08:23:31]Read from MH i2c: E2 03 00 DB 36 00 90 00 85 [08:23:31]RAPDU: 90 00 [08:23:31]wFMCommunicate OK [08:23:31]wFMCommunicate request_size=4 [08:23:31]MH_SAM_APDU [08:23:31]CAPDU: 80 0D 03 02 [08:23:31]Write to MH i2c: E2 08 00 DC 36 80 0D 03 02 00 00 00 00 8D [08:23:31]Write i2c OK [08:23:31]MH_I2C_Read... [08:23:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:23:32]Read from MH i2c: E2 [08:23:32]MH_I2C_Read... [08:23:32]Read from MH i2c: E2 0B 00 [08:23:32]MH_I2C_Read... [08:23:32]Read from MH i2c: E2 0B 00 DC 36 00 F8 E7 2C 6C 0F B2 F4 99 90 00 53 [08:23:32]RAPDU: F8 E7 2C 6C 0F B2 F4 99 90 00 [08:23:32]wFMCommunicate OK [08:23:32]SAM_PROTO_SignData done [08:23:32]FM_MakeSignedData done [08:23:32]CreateOFDProtocolMessage [08:23:32]wFMCommunicate request_size=4 [08:23:32]MH_SAM_APDU [08:23:32]CAPDU: 80 11 00 00 [08:23:32]Write to MH i2c: E2 08 00 DD 36 80 11 00 00 00 00 00 00 8D [08:23:32]Write i2c OK [08:23:32]MH_I2C_Read... [08:23:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:23:32]Read from MH i2c: E2 [08:23:32]MH_I2C_Read... [08:23:32]Read from MH i2c: E2 17 00 [08:23:32]MH_I2C_Read... [08:23:32]Read from MH i2c: E2 17 00 DD 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 E2 [08:23:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [08:23:32]wFMCommunicate OK [08:23:32]CreateOFDProtocolMessage done [08:23:32]OFDSenderStorePacket 156470 [08:23:32]StoreOFDPacket docnum=156470 [08:23:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 7D 4A 07 01 06 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 87 F8 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 36 63 02 00 35 04 06 00 8F C6 F5 95 6D 4F F8 E7 2C 6C 0F B2 F4 99 [08:23:32]CheckFolder [08:23:32]dirname=/storage/ofd_packets [08:23:32]CheckFolder done [08:23:32]ProducePacketName [08:23:32]name=ofd_packets/00156470 [08:23:32]NVStorageSaveData ofd_packets/00156470 [08:23:32]File name is /storage/ofd_packets/00156470 [08:23:32]Write 301 bytes [08:23:32]NVStorageSaveData done [08:23:32]OFDSenderStorePacket done [08:23:32]KKMCreateOFDPacket done [08:23:32]NVStorageSaveData kkm_last_timestamp [08:23:32]File name is /storage/kkm_last_timestamp [08:23:32]Write 4 bytes [08:23:32]NVStorageSaveData done [08:23:32]ExternCall_PrintAddStr [08:23:32]wPrintStart [08:23:32]Write to MH i2c: 01 00 00 DE 36 14 [08:23:32]Write i2c OK [08:23:32]MH_I2C_Read... [08:23:32]Read from MH i2c: 01 [08:23:32]MH_I2C_Read... [08:23:32]Read from MH i2c: 01 07 00 [08:23:32]MH_I2C_Read... [08:23:32]Read from MH i2c: 01 07 00 DE 36 00 00 00 00 00 FF 0F 29 [08:23:32]RasterBufferAndPrint [08:23:32]line Счет N : (1)99283 [08:23:32]line ИНН: 02508201610067 [08:23:32]line Контрольно-Кассовый Чек [08:23:32]line ПРОДАЖА [08:23:32]line ТРК (МРК, ГНК) : 11 [08:23:32]line Товар: 2710124130 [08:23:32]line Аи-92-К-5 [08:23:32]line 7.480 * 66.90 [08:23:32]line = 500.41 [08:23:32]line НДС 12% НСП 1% [08:23:32]line > о реализуемом товаре [08:23:32]line ОКРУГЛЕНИЕ: -0.41 [08:23:32]line ИТОГО: 500.00 [08:23:32]line Внесено: 500.00 [08:23:32]line СДАЧА: 0.00 [08:23:32]line НСП 1% : 4.43 [08:23:32]line НДС 12% : 53.14 [08:23:32]line Наличными: 500.00 [08:23:32]line Безнал.: 0.00 [08:23:32]line Место: АЗС № 143 "Партнер Нефть" [08:23:32]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [08:23:32]line СНО: Общий режим [08:23:32]line Чек 21 27.10.2024 08:23 [08:23:32]line Смена: 537 ФФД: 1.0 [08:23:32]line ЗНМ: 0300000096 [08:23:32]line РНМ: 0000000000091693 [08:23:32]line Версия ККМ: 001 [08:23:32]line ФМ: 0000000000871792 [08:23:32]line ФД: 156470 [08:23:32]line ФПД: 158084686507343 [08:23:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T082335&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156470&fm=158084686507343&tin=02508201610067®Number=0000000000091693&sum=50000 [08:23:32]OFD Sender: Processing packet 156470 [packets to send 31, broken 30] [08:23:32]ProducePacketName [08:23:32]name=ofd_packets/00156470 [08:23:32]OFD Sender: To server: pG, [08:23:32]CommunicateWithHost lk.salyk.kg:30040 [08:23:32]ConnectInit lk.salyk.kg [08:23:32]written 0, free lines is 4095 [08:23:32]Connected sock=11 [08:23:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 7D 4A 07 01 06 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 87 F8 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 36 63 02 00 35 04 06 00 8F C6 F5 95 6D 4F F8 E7 2C 6C 0F B2 F4 99 [08:23:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 53 FE 47 00 06 0A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 36 63 02 00 F4 03 04 00 F7 9D 1D 67 B6 04 01 00 00 7C 16 51 30 EC 5A 19 8B [08:23:32]CommunicateWithHost err = 0 [08:23:32]CheckOFDResponse [08:23:32]1017 (14) - 77093643461234 [08:23:32]1041 (16) - 0000000000871792 [08:23:32]1040 (4) - 156470 [08:23:32]1012 (4) - 27.10.2024 01:57 [08:23:32]1206 (1) - 0 [08:23:32]OFD Sender: Remove packet 156470 [08:23:32]ProducePacketName [08:23:32]name=ofd_packets/00156470 [08:23:32]NVStorageDeleteData [08:23:32]Write to MH i2c: 01 00 00 09 37 40 [08:23:32]Write i2c OK [08:23:32]MH_I2C_Read... [08:23:32]Read from MH i2c: 01 [08:23:32]MH_I2C_Read... [08:23:32]Read from MH i2c: 01 07 00 [08:23:32]MH_I2C_Read... [08:23:32]Read from MH i2c: 01 07 00 09 37 00 00 00 00 00 D6 0C 29 [08:23:32]RasterBufferAndPrint [08:23:32]line [08:23:32]line [08:23:32]line [08:23:32]line [08:23:32]line [08:23:32]written 0, free lines is 3289 [08:23:32]process_action close_receipt done [08:23:32]requested_data is exist [08:23:32]produce_requested_data [08:23:32]requested_item fm.sn is exist - process it [08:23:32]wFMCommunicate request_size=4 [08:23:32]MH_SAM_APDU [08:23:32]CAPDU: 80 11 00 00 [08:23:32]Write to MH i2c: E2 08 00 10 37 80 11 00 00 00 00 00 00 C1 [08:23:32]Write i2c OK [08:23:32]MH_I2C_Read... [08:23:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:23:32]Read from MH i2c: E2 [08:23:32]MH_I2C_Read... [08:23:32]Read from MH i2c: E2 17 00 [08:23:32]MH_I2C_Read... [08:23:32]Read from MH i2c: E2 17 00 10 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 16 [08:23:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [08:23:32]wFMCommunicate OK [08:23:32]requested_item fd.num is exist - process it [08:23:32]SAM_PROTO_GetFieldsCounters [08:23:32]wFMCommunicate request_size=4 [08:23:32]MH_SAM_APDU [08:23:32]CAPDU: 80 13 00 00 [08:23:32]Write to MH i2c: E2 08 00 11 37 80 13 00 00 00 00 00 00 C4 [08:23:32]Write i2c OK [08:23:32]MH_I2C_Read... [08:23:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:23:33]Read from MH i2c: E2 [08:23:33]MH_I2C_Read... [08:23:33]Read from MH i2c: E2 62 00 [08:23:33]MH_I2C_Read... [08:23:33]Read from MH i2c: E2 62 00 11 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 36 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 DF [08:23:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 36 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:23:33]wFMCommunicate OK [08:23:33]SAM_PROTO_GetFieldsCounters done [08:23:33]requested_item shift.num is exist - process it [08:23:33]requested_item shift.opened is exist - process it [08:23:33]req_shift_opened [08:23:33]FM_GetShiftState [08:23:33]SAM_PROTO_GetShiftState [08:23:33]wFMCommunicate request_size=4 [08:23:33]MH_SAM_APDU [08:23:33]CAPDU: 80 13 01 00 [08:23:33]Write to MH i2c: E2 08 00 12 37 80 13 01 00 00 00 00 00 C6 [08:23:33]Write i2c OK [08:23:33]MH_I2C_Read... [08:23:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:23:33]Read from MH i2c: E2 [08:23:33]MH_I2C_Read... [08:23:33]Read from MH i2c: E2 0E 00 [08:23:33]MH_I2C_Read... [08:23:33]Read from MH i2c: E2 0E 00 12 37 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 93 [08:23:33]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [08:23:33]wFMCommunicate OK [08:23:33]SAM_PROTO_GetShiftState done [08:23:33]FM_GetShiftState done [08:23:33]req_shift_opened done [08:23:33]requested_item shift.open_date is exist - process it [08:23:33]req_shift_open_date [08:23:33]req_shift_open_date done [08:23:33]produce_requested_data done [08:23:33]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156470,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [08:23:33]process_action_free close_receipt [08:23:33]json_value_free [08:23:33]json_value_free done [08:23:33]process_json_proto returns [08:23:33]Send response to host [08:23:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156470,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [08:23:33]free response buf [08:23:33]execute_script done [08:23:33]execute_script returns [08:23:33]free content buf [08:23:33]Sock 9.Close socket [08:23:33]Sock 9.Thread stoped [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:43]OFD Sender: No OFD packet to send [08:28:48]OFD Sender: No OFD packet to send [08:28:53]OFD Sender: No OFD packet to send [08:28:58]OFD Sender: No OFD packet to send [08:29:03]OFD Sender: No OFD packet to send [08:29:08]OFD Sender: No OFD packet to send [08:29:13]OFD Sender: No OFD packet to send [08:29:18]OFD Sender: No OFD packet to send [08:29:23]OFD Sender: No OFD packet to send [08:29:28]OFD Sender: No OFD packet to send [08:29:33]OFD Sender: No OFD packet to send [08:29:38]OFD Sender: No OFD packet to send [08:29:43]OFD Sender: No OFD packet to send [08:29:48]OFD Sender: No OFD packet to send [08:29:53]OFD Sender: No OFD packet to send [08:29:58]OFD Sender: No OFD packet to send [08:30:03]OFD Sender: No OFD packet to send [08:30:08]OFD Sender: No OFD packet to send [08:30:13]OFD Sender: No OFD packet to send [08:30:18]OFD Sender: No OFD packet to send [08:30:23]OFD Sender: No OFD packet to send [08:30:28]OFD Sender: No OFD packet to send [08:30:33]OFD Sender: No OFD packet to send [08:30:37]accept exits with 8 [08:30:37]New connection [08:30:37]New thread 3066977636 created [08:30:37]Thread 3066834276 joined [08:30:37]Waiting for new connection... [08:30:37] Sock 8.Parse request [08:30:37]Sock 8.Check first char [08:30:37]Sock 8.First char is OK [08:30:37]request: POST /json_proto HTTP/1.0 [08:30:37]Method: POST [08:30:37]URL: /json_proto [08:30:37]Method is POST - this is cgi request [08:30:37]url: /json_proto [08:30:37]query_string will be loaded in cgi processing [08:30:37]execute_cgi json_proto POST (null) [08:30:37]execute_cgi path=json_proto method=POST [08:30:37]POST find Content-Length [08:30:37]Host: 172.17.63.3:8080 [08:30:37]Content-Length: 681 [08:30:37]Content-Type: application/json [08:30:37] [08:30:37]POST finish read [08:30:37]Found Content-Length = 681 [08:30:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99284", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:30:37]execute_script... [08:30: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)99284", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:30:37]POST & json_proto [08:30:37]process_json_proto [08:30:37]json parsed OK: [08:30:37]protocol is kg_v1.0 [08:30:37]action value=close_receipt [08:30:37]process_action close_receipt [08:30:37]cmd_close_receipt [08:30:37]MH_GetDate [08:30:37]Write to MH i2c: F0 00 00 13 37 39 [08:30:37]Write i2c OK [08:30:37]MH_I2C_Read... [08:30:37]Read from MH i2c: F0 [08:30:37]MH_I2C_Read... [08:30:37]Read from MH i2c: F0 09 00 [08:30:37]MH_I2C_Read... [08:30:37]Read from MH i2c: F0 09 00 13 37 00 32 FA 1D 67 50 D1 6C 64 E3 [08:30:37]GetLastDocTimeStamp 1730017415 [08:30:37]current date 1730017842 [08:30:37]FM_GetShiftState [08:30:37]SAM_PROTO_GetShiftState [08:30:37]wFMCommunicate request_size=4 [08:30:37]MH_SAM_APDU [08:30:37]CAPDU: 80 13 01 00 [08:30:37]Write to MH i2c: E2 08 00 14 37 80 13 01 00 00 00 00 00 C8 [08:30:37]Write i2c OK [08:30:37]MH_I2C_Read... [08:30:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:30:37]Read from MH i2c: E2 [08:30:37]MH_I2C_Read... [08:30:37]Read from MH i2c: E2 0E 00 [08:30:37]MH_I2C_Read... [08:30:37]Read from MH i2c: E2 0E 00 14 37 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 95 [08:30:37]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [08:30:37]wFMCommunicate OK [08:30:37]SAM_PROTO_GetShiftState done [08:30:37]FM_GetShiftState done [08:30:37]opened in 1729989044 [08:30:37]opened+sec_in_day 1730075444 [08:30:37]quantity*price = 100015 [08:30:37]sum+1 = 100017 [08:30:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 22 27.10.2024 08:30 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156471 ФПД: 185849735593966 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T083042&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156471&fm=185849735593966&tin=02508201610067®Number=0000000000091693&sum=100000 [08:30:38]StoreToDocumentArchive [08:30:38]shift 537 fd 156471 [08:30:38]save to /storage/0537/doc_00156471 [08:30:38]save last doc name /storage/0537/doc_00156471 to /storage/kkm_last_doc_name [08:30:38]save OK [08:30:38]Clear old archive folders... [08:30:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:30:38]tlvbuf is 016BB2B0 [08:30:38]SAM_PROTO_ClearQueue [08:30:38]wFMCommunicate request_size=4 [08:30:38]MH_SAM_APDU [08:30:38]CAPDU: 80 09 00 00 [08:30:38]Write to MH i2c: E2 08 00 21 37 80 09 00 00 00 00 00 00 CA [08:30:38]Write i2c OK [08:30:38]MH_I2C_Read... [08:30:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:30:38]Read from MH i2c: E2 [08:30:38]MH_I2C_Read... [08:30:38]Read from MH i2c: E2 03 00 [08:30:38]MH_I2C_Read... [08:30:38]Read from MH i2c: E2 03 00 21 37 00 90 00 CC [08:30:38]RAPDU: 90 00 [08:30:38]wFMCommunicate OK [08:30:38]SAM_PROTO_ClearQueue done [08:30:38]KKMCreateOFDPacket [08:30:38]OFDProtocolAddRootSTLVToBuf [08:30:38]FM_MakeSignedData [08:30:38]FM_MakeSignedData [08:30:38]SAM_PROTO_SignData [08:30:38]wFMCommunicate request_size=4 [08:30:38]MH_SAM_APDU [08:30:38]CAPDU: 80 0D 01 02 [08:30:38]Write to MH i2c: E2 08 00 22 37 80 0D 01 02 00 00 00 00 D2 [08:30:38]Write i2c OK [08:30:38]MH_I2C_Read... [08:30:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:30:38]Read from MH i2c: E2 [08:30:38]MH_I2C_Read... [08:30:38]Read from MH i2c: E2 03 00 [08:30:38]MH_I2C_Read... [08:30:38]Read from MH i2c: E2 03 00 22 37 00 90 00 CD [08:30:38]RAPDU: 90 00 [08:30:38]wFMCommunicate OK [08:30:38]wFMCommunicate request_size=255 [08:30:38]MH_SAM_APDU [08:30:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 32 FA 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 37 63 02 00 35 04 06 00 A9 [08:30:38]Write to MH i2c: E2 02 01 23 37 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 32 FA 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 37 63 02 00 35 04 06 00 A9 00 00 86 [08:30:38]Write i2c OK [08:30:38]MH_I2C_Read... [08:30:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:30:39]Read from MH i2c: E2 [08:30:39]MH_I2C_Read... [08:30:39]Read from MH i2c: E2 03 00 [08:30:39]MH_I2C_Read... [08:30:39]Read from MH i2c: E2 03 00 23 37 00 90 00 CE [08:30:39]RAPDU: 90 00 [08:30:39]wFMCommunicate OK [08:30:39]wFMCommunicate request_size=10 [08:30:39]MH_SAM_APDU [08:30:39]CAPDU: 80 0D 02 02 05 07 83 78 BF EE [08:30:39]Write to MH i2c: E2 0D 00 24 37 80 0D 02 02 05 00 07 83 78 BF EE 00 00 8E [08:30:39]Write i2c OK [08:30:39]MH_I2C_Read... [08:30:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:30:39]Read from MH i2c: E2 [08:30:39]MH_I2C_Read... [08:30:39]Read from MH i2c: E2 03 00 [08:30:39]MH_I2C_Read... [08:30:39]Read from MH i2c: E2 03 00 24 37 00 90 00 CF [08:30:39]RAPDU: 90 00 [08:30:39]wFMCommunicate OK [08:30:39]wFMCommunicate request_size=4 [08:30:39]MH_SAM_APDU [08:30:39]CAPDU: 80 0D 03 02 [08:30:39]Write to MH i2c: E2 08 00 25 37 80 0D 03 02 00 00 00 00 D7 [08:30:39]Write i2c OK [08:30:39]MH_I2C_Read... [08:30:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:30:39]Read from MH i2c: E2 [08:30:39]MH_I2C_Read... [08:30:39]Read from MH i2c: E2 0B 00 [08:30:39]MH_I2C_Read... [08:30:39]Read from MH i2c: E2 0B 00 25 37 00 C4 90 1B D7 7D 5D 9D DF 90 00 74 [08:30:39]RAPDU: C4 90 1B D7 7D 5D 9D DF 90 00 [08:30:39]wFMCommunicate OK [08:30:39]SAM_PROTO_SignData done [08:30:39]FM_MakeSignedData done [08:30:39]CreateOFDProtocolMessage [08:30:39]wFMCommunicate request_size=4 [08:30:39]MH_SAM_APDU [08:30:39]CAPDU: 80 11 00 00 [08:30:39]Write to MH i2c: E2 08 00 26 37 80 11 00 00 00 00 00 00 D7 [08:30:39]Write i2c OK [08:30:39]MH_I2C_Read... [08:30:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:30:39]Read from MH i2c: E2 [08:30:39]MH_I2C_Read... [08:30:39]Read from MH i2c: E2 17 00 [08:30:39]MH_I2C_Read... [08:30:39]Read from MH i2c: E2 17 00 26 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 2C [08:30:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [08:30:39]wFMCommunicate OK [08:30:39]CreateOFDProtocolMessage done [08:30:39]OFDSenderStorePacket 156471 [08:30:39]StoreOFDPacket docnum=156471 [08:30:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 4A 84 07 01 7D 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 32 FA 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 37 63 02 00 35 04 06 00 A9 07 83 78 BF EE C4 90 1B D7 7D 5D 9D DF [08:30:39]CheckFolder [08:30:39]dirname=/storage/ofd_packets [08:30:39]CheckFolder done [08:30:39]ProducePacketName [08:30:39]name=ofd_packets/00156471 [08:30:39]NVStorageSaveData ofd_packets/00156471 [08:30:39]File name is /storage/ofd_packets/00156471 [08:30:39]Write 301 bytes [08:30:39]NVStorageSaveData done [08:30:39]OFDSenderStorePacket done [08:30:39]KKMCreateOFDPacket done [08:30:39]NVStorageSaveData kkm_last_timestamp [08:30:39]File name is /storage/kkm_last_timestamp [08:30:39]Write 4 bytes [08:30:39]NVStorageSaveData done [08:30:39]ExternCall_PrintAddStr [08:30:39]wPrintStart [08:30:39]Write to MH i2c: 01 00 00 27 37 5E [08:30:39]Write i2c OK [08:30:39]MH_I2C_Read... [08:30:39]Read from MH i2c: 01 [08:30:39]MH_I2C_Read... [08:30:39]Read from MH i2c: 01 07 00 [08:30:39]MH_I2C_Read... [08:30:39]Read from MH i2c: 01 07 00 27 37 00 00 00 00 00 FF 0F 73 [08:30:39]RasterBufferAndPrint [08:30:39]line Счет N : (1)99284 [08:30:39]line ИНН: 02508201610067 [08:30:39]line Контрольно-Кассовый Чек [08:30:39]line ПРОДАЖА [08:30:39]line ТРК (МРК, ГНК) : 31 [08:30:39]line Товар: 2710124130 [08:30:39]line Аи-92-К-5 [08:30:39]line 14.950 * 66.90 [08:30:39]line = 1000.16 [08:30:39]line НДС 12% НСП 1% [08:30:39]line > о реализуемом товаре [08:30:39]line ОКРУГЛЕНИЕ: -0.16 [08:30:39]line ИТОГО: 1000.00 [08:30:39]line Внесено: 1000.00 [08:30:39]line СДАЧА: 0.00 [08:30:39]line НСП 1% : 8.85 [08:30:39]line НДС 12% : 106.21 [08:30:39]line Наличными: 1000.00 [08:30:39]line Безнал.: 0.00 [08:30:39]line Место: АЗС № 143 "Партнер Нефть" [08:30:39]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [08:30:39]line СНО: Общий режим [08:30:39]line Чек 22 27.10.2024 08:30 [08:30:39]line Смена: 537 ФФД: 1.0 [08:30:39]line ЗНМ: 0300000096 [08:30:39]line РНМ: 0000000000091693 [08:30:39]line Версия ККМ: 001 [08:30:39]line ФМ: 0000000000871792 [08:30:39]line ФД: 156471 [08:30:39]line ФПД: 185849735593966 [08:30:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T083042&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156471&fm=185849735593966&tin=02508201610067®Number=0000000000091693&sum=100000 [08:30:39]OFD Sender: Processing packet 156471 [packets to send 31, broken 30] [08:30:39]ProducePacketName [08:30:39]name=ofd_packets/00156471 [08:30:39]OFD Sender: To server: pG, [08:30:39]CommunicateWithHost lk.salyk.kg:30040 [08:30:39]ConnectInit lk.salyk.kg [08:30:39]written 0, free lines is 4095 [08:30:39]Connected sock=11 [08:30:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 4A 84 07 01 7D 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 32 FA 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 37 63 02 00 35 04 06 00 A9 07 83 78 BF EE C4 90 1B D7 7D 5D 9D DF [08:30:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 BA 00 47 00 C9 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 37 63 02 00 F4 03 04 00 A2 9F 1D 67 B6 04 01 00 00 65 0B 4B A4 14 89 6B 09 [08:30:40]CommunicateWithHost err = 0 [08:30:40]CheckOFDResponse [08:30:40]1017 (14) - 77093643461234 [08:30:40]1041 (16) - 0000000000871792 [08:30:40]1040 (4) - 156471 [08:30:40]1012 (4) - 27.10.2024 02:04 [08:30:40]1206 (1) - 0 [08:30:40]OFD Sender: Remove packet 156471 [08:30:40]ProducePacketName [08:30:40]name=ofd_packets/00156471 [08:30:40]NVStorageDeleteData [08:30:40]Write to MH i2c: 01 00 00 52 37 89 [08:30:40]Write i2c OK [08:30:40]MH_I2C_Read... [08:30:40]Read from MH i2c: 01 [08:30:40]MH_I2C_Read... [08:30:40]Read from MH i2c: 01 07 00 [08:30:40]MH_I2C_Read... [08:30:40]Read from MH i2c: 01 07 00 52 37 00 00 00 00 00 D4 0C 70 [08:30:40]RasterBufferAndPrint [08:30:40]line [08:30:40]line [08:30:40]line [08:30:40]line [08:30:40]line [08:30:40]written 0, free lines is 3290 [08:30:40]process_action close_receipt done [08:30:40]requested_data is exist [08:30:40]produce_requested_data [08:30:40]requested_item fm.sn is exist - process it [08:30:40]wFMCommunicate request_size=4 [08:30:40]MH_SAM_APDU [08:30:40]CAPDU: 80 11 00 00 [08:30:40]Write to MH i2c: E2 08 00 59 37 80 11 00 00 00 00 00 00 0A [08:30:40]Write i2c OK [08:30:40]MH_I2C_Read... [08:30:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:30:40]Read from MH i2c: E2 [08:30:40]MH_I2C_Read... [08:30:40]Read from MH i2c: E2 17 00 [08:30:40]MH_I2C_Read... [08:30:40]Read from MH i2c: E2 17 00 59 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 5F [08:30:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [08:30:40]wFMCommunicate OK [08:30:40]requested_item fd.num is exist - process it [08:30:40]SAM_PROTO_GetFieldsCounters [08:30:40]wFMCommunicate request_size=4 [08:30:40]MH_SAM_APDU [08:30:40]CAPDU: 80 13 00 00 [08:30:40]Write to MH i2c: E2 08 00 5A 37 80 13 00 00 00 00 00 00 0D [08:30:40]Write i2c OK [08:30:40]MH_I2C_Read... [08:30:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:30:40]Read from MH i2c: E2 [08:30:40]MH_I2C_Read... [08:30:40]Read from MH i2c: E2 62 00 [08:30:40]MH_I2C_Read... [08:30:40]Read from MH i2c: E2 62 00 5A 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 37 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 2C [08:30:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 37 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:30:40]wFMCommunicate OK [08:30:40]SAM_PROTO_GetFieldsCounters done [08:30:40]requested_item shift.num is exist - process it [08:30:40]requested_item shift.opened is exist - process it [08:30:40]req_shift_opened [08:30:40]FM_GetShiftState [08:30:40]SAM_PROTO_GetShiftState [08:30:40]wFMCommunicate request_size=4 [08:30:40]MH_SAM_APDU [08:30:40]CAPDU: 80 13 01 00 [08:30:40]Write to MH i2c: E2 08 00 5B 37 80 13 01 00 00 00 00 00 0F [08:30:40]Write i2c OK [08:30:40]MH_I2C_Read... [08:30:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:30:40]Read from MH i2c: E2 [08:30:40]MH_I2C_Read... [08:30:40]Read from MH i2c: E2 0E 00 [08:30:40]MH_I2C_Read... [08:30:40]Read from MH i2c: E2 0E 00 5B 37 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 DC [08:30:40]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [08:30:40]wFMCommunicate OK [08:30:40]SAM_PROTO_GetShiftState done [08:30:40]FM_GetShiftState done [08:30:40]req_shift_opened done [08:30:40]requested_item shift.open_date is exist - process it [08:30:40]req_shift_open_date [08:30:40]req_shift_open_date done [08:30:40]produce_requested_data done [08:30:40]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156471,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [08:30:40]process_action_free close_receipt [08:30:40]json_value_free [08:30:40]json_value_free done [08:30:40]process_json_proto returns [08:30:40]Send response to host [08:30:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156471,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [08:30:40]free response buf [08:30:40]execute_script done [08:30:40]execute_script returns [08:30:40]free content buf [08:30:40]Sock 8.Close socket [08:30:40]Sock 8.Thread stoped [08:30:40]OFD Sender: No OFD packet to send [08:30:45]OFD Sender: No OFD packet to send [08:30:50]OFD Sender: No OFD packet to send [08:30:55]OFD Sender: No OFD packet to send [08:31:00]OFD Sender: No OFD packet to send [08:31:05]OFD Sender: No OFD packet to send [08:31:10]OFD Sender: No OFD packet to send [08:31:15]OFD Sender: No OFD packet to send [08:31:20]OFD Sender: No OFD packet to send [08:31:25]OFD Sender: No OFD packet to send [08:31:30]OFD Sender: No OFD packet to send [08:31:35]OFD Sender: No OFD packet to send [08:31:40]OFD Sender: No OFD packet to send [08:31:45]OFD Sender: No OFD packet to send [08:31:50]OFD Sender: No OFD packet to send [08:31:55]OFD Sender: No OFD packet to send [08:32:00]OFD Sender: No OFD packet to send [08:32:05]OFD Sender: No OFD packet to send [08:32:10]OFD Sender: No OFD packet to send [08:32:15]OFD Sender: No OFD packet to send [08:32:20]OFD Sender: No OFD packet to send [08:32:25]OFD Sender: No OFD packet to send [08:32:30]OFD Sender: No OFD packet to send [08:32:35]OFD Sender: No OFD packet to send [08:32:40]OFD Sender: No OFD packet to send [08:32:45]OFD Sender: No OFD packet to send [08:32:50]OFD Sender: No OFD packet to send [08:32:55]OFD Sender: No OFD packet to send [08:33:00]OFD Sender: No OFD packet to send [08:33:05]OFD Sender: No OFD packet to send [08:33:10]OFD Sender: No OFD packet to send [08:33:15]OFD Sender: No OFD packet to send [08:33:20]OFD Sender: No OFD packet to send [08:33:25]OFD Sender: No OFD packet to send [08:33:30]OFD Sender: No OFD packet to send [08:33:35]OFD Sender: No OFD packet to send [08:33:40]OFD Sender: No OFD packet to send [08:33:45]OFD Sender: No OFD packet to send [08:33:50]OFD Sender: No OFD packet to send [08:33:55]OFD Sender: No OFD packet to send [08:34:00]OFD Sender: No OFD packet to send [08:34:05]OFD Sender: No OFD packet to send [08:34:10]OFD Sender: No OFD packet to send [08:34:15]OFD Sender: No OFD packet to send [08:34:20]OFD Sender: No OFD packet to send [08:34:25]OFD Sender: No OFD packet to send [08:34:30]OFD Sender: No OFD packet to send [08:34:35]OFD Sender: No OFD packet to send [08:34:40]OFD Sender: No OFD packet to send [08:34:45]OFD Sender: No OFD packet to send [08:34:50]OFD Sender: No OFD packet to send [08:34:55]OFD Sender: No OFD packet to send [08:35:00]OFD Sender: No OFD packet to send [08:35:05]OFD Sender: No OFD packet to send [08:35:10]OFD Sender: No OFD packet to send [08:35:15]OFD Sender: No OFD packet to send [08:35:20]OFD Sender: No OFD packet to send [08:35:25]OFD Sender: No OFD packet to send [08:35:30]OFD Sender: No OFD packet to send [08:35:35]OFD Sender: No OFD packet to send [08:35:40]OFD Sender: No OFD packet to send [08:35:45]OFD Sender: No OFD packet to send [08:35:50]OFD Sender: No OFD packet to send [08:35:55]OFD Sender: No OFD packet to send [08:36:00]OFD Sender: No OFD packet to send [08:36:05]OFD Sender: No OFD packet to send [08:36:10]OFD Sender: No OFD packet to send [08:36:15]OFD Sender: No OFD packet to send [08:36:20]OFD Sender: No OFD packet to send [08:36:25]OFD Sender: No OFD packet to send [08:36:30]OFD Sender: No OFD packet to send [08:36:35]OFD Sender: No OFD packet to send [08:36:40]OFD Sender: No OFD packet to send [08:36:45]OFD Sender: No OFD packet to send [08:36:50]OFD Sender: No OFD packet to send [08:36:55]OFD Sender: No OFD packet to send [08:37:00]OFD Sender: No OFD packet to send [08:37:05]OFD Sender: No OFD packet to send [08:37:10]OFD Sender: No OFD packet to send [08:37:15]OFD Sender: No OFD packet to send [08:37:20]OFD Sender: No OFD packet to send [08:37:25]OFD Sender: No OFD packet to send [08:37:30]OFD Sender: No OFD packet to send [08:37:36]OFD Sender: No OFD packet to send [08:37:41]OFD Sender: No OFD packet to send [08:37:46]OFD Sender: No OFD packet to send [08:37:51]OFD Sender: No OFD packet to send [08:37:56]OFD Sender: No OFD packet to send [08:38:01]OFD Sender: No OFD packet to send [08:38:06]OFD Sender: No OFD packet to send [08:38:11]OFD Sender: No OFD packet to send [08:38:16]OFD Sender: No OFD packet to send [08:38:21]OFD Sender: No OFD packet to send [08:38:26]OFD Sender: No OFD packet to send [08:38:31]OFD Sender: No OFD packet to send [08:38:36]OFD Sender: No OFD packet to send [08:38:41]OFD Sender: No OFD packet to send [08:38:46]OFD Sender: No OFD packet to send [08:38:51]OFD Sender: No OFD packet to send [08:38:56]OFD Sender: No OFD packet to send [08:39:01]OFD Sender: No OFD packet to send [08:39:06]OFD Sender: No OFD packet to send [08:39:11]OFD Sender: No OFD packet to send [08:39:16]OFD Sender: No OFD packet to send [08:39:21]OFD Sender: No OFD packet to send [08:39:26]OFD Sender: No OFD packet to send [08:39:31]OFD Sender: No OFD packet to send [08:39:36]OFD Sender: No OFD packet to send [08:39:41]OFD Sender: No OFD packet to send [08:39:46]OFD Sender: No OFD packet to send [08:39:51]OFD Sender: No OFD packet to send [08:39:56]OFD Sender: No OFD packet to send [08:40:01]OFD Sender: No OFD packet to send [08:40:06]OFD Sender: No OFD packet to send [08:40:11]OFD Sender: No OFD packet to send [08:40:16]OFD Sender: No OFD packet to send [08:40:21]OFD Sender: No OFD packet to send [08:40:26]OFD Sender: No OFD packet to send [08:40:30]accept exits with 10 [08:40:30]New connection [08:40:30]New thread 3066834276 created [08:40:30]Thread 3066977636 joined [08:40:30]Waiting for new connection... [08:40:30] Sock 10.Parse request [08:40:30]Sock 10.Check first char [08:40:30]Sock 10.First char is OK [08:40:30]request: POST /json_proto HTTP/1.0 [08:40:30]Method: POST [08:40:30]URL: /json_proto [08:40:30]Method is POST - this is cgi request [08:40:30]url: /json_proto [08:40:30]query_string will be loaded in cgi processing [08:40:30]execute_cgi json_proto POST (null) [08:40:30]execute_cgi path=json_proto method=POST [08:40:30]POST find Content-Length [08:40:30]Host: 172.17.63.3:8080 [08:40:30]Content-Length: 678 [08:40:30]Content-Type: application/json [08:40:30] [08:40:30]POST finish read [08:40:30]Found Content-Length = 678 [08:40:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99285", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 22.310, "sum" : 1700.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1700.00, "total" : 1700.00, "payments": [ { "type": 0, "sum" : 1700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:40:30]execute_script... [08:40: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)99285", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 22.310, "sum" : 1700.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1700.00, "total" : 1700.00, "payments": [ { "type": 0, "sum" : 1700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:40:30]POST & json_proto [08:40:30]process_json_proto [08:40:30]json parsed OK: [08:40:30]protocol is kg_v1.0 [08:40:30]action value=close_receipt [08:40:30]process_action close_receipt [08:40:30]cmd_close_receipt [08:40:30]MH_GetDate [08:40:30]Write to MH i2c: F0 00 00 5C 37 82 [08:40:30]Write i2c OK [08:40:30]MH_I2C_Read... [08:40:30]Read from MH i2c: F0 [08:40:30]MH_I2C_Read... [08:40:30]Read from MH i2c: F0 09 00 [08:40:30]MH_I2C_Read... [08:40:30]Read from MH i2c: F0 09 00 5C 37 00 83 FC 1D 67 50 D1 6C 64 7F [08:40:30]GetLastDocTimeStamp 1730017842 [08:40:30]current date 1730018435 [08:40:30]FM_GetShiftState [08:40:30]SAM_PROTO_GetShiftState [08:40:30]wFMCommunicate request_size=4 [08:40:30]MH_SAM_APDU [08:40:30]CAPDU: 80 13 01 00 [08:40:30]Write to MH i2c: E2 08 00 5D 37 80 13 01 00 00 00 00 00 11 [08:40:30]Write i2c OK [08:40:30]MH_I2C_Read... [08:40:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:40:30]Read from MH i2c: E2 [08:40:30]MH_I2C_Read... [08:40:30]Read from MH i2c: E2 0E 00 [08:40:30]MH_I2C_Read... [08:40:30]Read from MH i2c: E2 0E 00 5D 37 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 DE [08:40:30]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [08:40:30]wFMCommunicate OK [08:40:30]SAM_PROTO_GetShiftState done [08:40:30]FM_GetShiftState done [08:40:30]opened in 1729989044 [08:40:30]opened+sec_in_day 1730075444 [08:40:30]quantity*price = 170002 [08:40:30]sum+1 = 170003 [08:40:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 1700.00 Внесено: 1700.00 СДАЧА: 0.00 НСП 1% : 15.04 НДС 12% : 180.53 Наличными: 1700.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 23 27.10.2024 08:40 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156472 ФПД: 2947707783541 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T084035&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156472&fm=2947707783541&tin=02508201610067®Number=0000000000091693&sum=170000 [08:40:31]StoreToDocumentArchive [08:40:31]shift 537 fd 156472 [08:40:31]save to /storage/0537/doc_00156472 [08:40:31]save last doc name /storage/0537/doc_00156472 to /storage/kkm_last_doc_name [08:40:31]save OK [08:40:31]Clear old archive folders... [08:40:31]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:40:31]tlvbuf is 0179A910 [08:40:31]SAM_PROTO_ClearQueue [08:40:31]wFMCommunicate request_size=4 [08:40:31]MH_SAM_APDU [08:40:31]CAPDU: 80 09 00 00 [08:40:31]Write to MH i2c: E2 08 00 6A 37 80 09 00 00 00 00 00 00 13 [08:40:31]Write i2c OK [08:40:31]MH_I2C_Read... [08:40:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:40:31]Read from MH i2c: E2 [08:40:31]MH_I2C_Read... [08:40:31]Read from MH i2c: E2 03 00 [08:40:31]MH_I2C_Read... [08:40:31]Read from MH i2c: E2 03 00 6A 37 00 90 00 15 [08:40:31]RAPDU: 90 00 [08:40:31]wFMCommunicate OK [08:40:31]SAM_PROTO_ClearQueue done [08:40:31]KKMCreateOFDPacket [08:40:31]OFDProtocolAddRootSTLVToBuf [08:40:31]FM_MakeSignedData [08:40:31]FM_MakeSignedData [08:40:31]SAM_PROTO_SignData [08:40:31]wFMCommunicate request_size=4 [08:40:31]MH_SAM_APDU [08:40:31]CAPDU: 80 0D 01 02 [08:40:31]Write to MH i2c: E2 08 00 6B 37 80 0D 01 02 00 00 00 00 1B [08:40:31]Write i2c OK [08:40:31]MH_I2C_Read... [08:40:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:40:31]Read from MH i2c: E2 [08:40:31]MH_I2C_Read... [08:40:31]Read from MH i2c: E2 03 00 [08:40:31]MH_I2C_Read... [08:40:31]Read from MH i2c: E2 03 00 6B 37 00 90 00 16 [08:40:31]RAPDU: 90 00 [08:40:31]wFMCommunicate OK [08:40:31]wFMCommunicate request_size=255 [08:40:31]MH_SAM_APDU [08:40:31]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 26 57 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 12 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 46 00 00 00 00 07 04 06 00 10 98 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 83 FC 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 38 63 02 00 35 04 06 00 02 AE 51 13 [08:40:31]Write to MH i2c: E2 02 01 6C 37 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 26 57 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 12 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 46 00 00 00 00 07 04 06 00 10 98 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 83 FC 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 38 63 02 00 35 04 06 00 02 AE 51 13 00 00 71 [08:40:31]Write i2c OK [08:40:31]MH_I2C_Read... [08:40:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:40:32]Read from MH i2c: E2 [08:40:32]MH_I2C_Read... [08:40:32]Read from MH i2c: E2 03 00 [08:40:32]MH_I2C_Read... [08:40:32]Read from MH i2c: E2 03 00 6C 37 00 90 00 17 [08:40:32]RAPDU: 90 00 [08:40:32]wFMCommunicate OK [08:40:32]wFMCommunicate request_size=7 [08:40:32]MH_SAM_APDU [08:40:32]CAPDU: 80 0D 02 02 02 49 75 [08:40:32]Write to MH i2c: E2 0A 00 6D 37 80 0D 02 02 02 00 49 75 00 00 E0 [08:40:32]Write i2c OK [08:40:32]MH_I2C_Read... [08:40:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:40:32]Read from MH i2c: E2 [08:40:32]MH_I2C_Read... [08:40:32]Read from MH i2c: E2 03 00 [08:40:32]MH_I2C_Read... [08:40:32]Read from MH i2c: E2 03 00 6D 37 00 90 00 18 [08:40:32]RAPDU: 90 00 [08:40:32]wFMCommunicate OK [08:40:32]wFMCommunicate request_size=4 [08:40:32]MH_SAM_APDU [08:40:32]CAPDU: 80 0D 03 02 [08:40:32]Write to MH i2c: E2 08 00 6E 37 80 0D 03 02 00 00 00 00 20 [08:40:32]Write i2c OK [08:40:32]MH_I2C_Read... [08:40:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:40:32]Read from MH i2c: E2 [08:40:32]MH_I2C_Read... [08:40:32]Read from MH i2c: E2 0B 00 [08:40:32]MH_I2C_Read... [08:40:32]Read from MH i2c: E2 0B 00 6E 37 00 89 32 1C 20 30 90 81 86 90 00 DF [08:40:32]RAPDU: 89 32 1C 20 30 90 81 86 90 00 [08:40:32]wFMCommunicate OK [08:40:32]SAM_PROTO_SignData done [08:40:32]FM_MakeSignedData done [08:40:32]CreateOFDProtocolMessage [08:40:32]wFMCommunicate request_size=4 [08:40:32]MH_SAM_APDU [08:40:32]CAPDU: 80 11 00 00 [08:40:32]Write to MH i2c: E2 08 00 6F 37 80 11 00 00 00 00 00 00 20 [08:40:32]Write i2c OK [08:40:32]MH_I2C_Read... [08:40:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:40:32]Read from MH i2c: E2 [08:40:32]MH_I2C_Read... [08:40:32]Read from MH i2c: E2 17 00 [08:40:32]MH_I2C_Read... [08:40:32]Read from MH i2c: E2 17 00 6F 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 75 [08:40:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [08:40:32]wFMCommunicate OK [08:40:32]CreateOFDProtocolMessage done [08:40:32]OFDSenderStorePacket 156472 [08:40:32]StoreOFDPacket docnum=156472 [08:40:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 C6 C1 04 01 BB 57 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 26 57 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 12 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 46 00 00 00 00 07 04 06 00 10 98 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 83 FC 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 38 63 02 00 35 04 06 00 02 AE 51 13 49 75 89 32 1C 20 30 90 81 86 [08:40:32]CheckFolder [08:40:32]dirname=/storage/ofd_packets [08:40:32]CheckFolder done [08:40:32]ProducePacketName [08:40:32]name=ofd_packets/00156472 [08:40:32]NVStorageSaveData ofd_packets/00156472 [08:40:32]File name is /storage/ofd_packets/00156472 [08:40:32]Write 298 bytes [08:40:32]NVStorageSaveData done [08:40:32]OFDSenderStorePacket done [08:40:32]KKMCreateOFDPacket done [08:40:32]NVStorageSaveData kkm_last_timestamp [08:40:32]File name is /storage/kkm_last_timestamp [08:40:32]Write 4 bytes [08:40:32]NVStorageSaveData done [08:40:32]ExternCall_PrintAddStr [08:40:32]wPrintStart [08:40:32]Write to MH i2c: 01 00 00 70 37 A7 [08:40:32]Write i2c OK [08:40:32]MH_I2C_Read... [08:40:32]Read from MH i2c: 01 [08:40:32]MH_I2C_Read... [08:40:32]Read from MH i2c: 01 07 00 [08:40:32]MH_I2C_Read... [08:40:32]Read from MH i2c: 01 07 00 70 37 00 00 00 00 00 FF 0F BC [08:40:32]RasterBufferAndPrint [08:40:32]line Счет N : (1)99285 [08:40:32]line ИНН: 02508201610067 [08:40:32]line Контрольно-Кассовый Чек [08:40:32]line ПРОДАЖА [08:40:32]line ТРК (МРК, ГНК) : 32 [08:40:32]line Товар: 2710194210 [08:40:32]line ДТ-К-5 [08:40:32]line 22.310 * 76.20 [08:40:32]line = 1700.02 [08:40:32]line НДС 12% НСП 1% [08:40:32]line > о реализуемом товаре [08:40:32]line ОКРУГЛЕНИЕ: -0.02 [08:40:32]line ИТОГО: 1700.00 [08:40:32]line Внесено: 1700.00 [08:40:32]line СДАЧА: 0.00 [08:40:32]line НСП 1% : 15.04 [08:40:32]line НДС 12% : 180.53 [08:40:32]line Наличными: 1700.00 [08:40:32]line Безнал.: 0.00 [08:40:32]line Место: АЗС № 143 "Партнер Нефть" [08:40:32]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [08:40:32]line СНО: Общий режим [08:40:32]line Чек 23 27.10.2024 08:40 [08:40:32]line Смена: 537 ФФД: 1.0 [08:40:32]line ЗНМ: 0300000096 [08:40:32]line РНМ: 0000000000091693 [08:40:32]line Версия ККМ: 001 [08:40:32]line ФМ: 0000000000871792 [08:40:32]line ФД: 156472 [08:40:32]line ФПД: 2947707783541 [08:40:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T084035&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156472&fm=2947707783541&tin=02508201610067®Number=0000000000091693&sum=170000 [08:40:32]OFD Sender: Processing packet 156472 [packets to send 31, broken 30] [08:40:32]ProducePacketName [08:40:32]name=ofd_packets/00156472 [08:40:32]OFD Sender: To server: pG, [08:40:32]CommunicateWithHost lk.salyk.kg:30040 [08:40:32]ConnectInit lk.salyk.kg [08:40:32]written 0, free lines is 4095 [08:40:32]Connected sock=9 [08:40:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 C6 C1 04 01 BB 57 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 26 57 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 12 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 46 00 00 00 00 07 04 06 00 10 98 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 83 FC 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 38 63 02 00 35 04 06 00 02 AE 51 13 49 75 89 32 1C 20 30 90 81 86 [08:40:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 3D 66 47 00 9E 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 31 37 39 32 10 04 04 00 38 63 02 00 F4 03 04 00 F3 A1 1D 67 B6 04 01 00 00 EB 5F A2 2B 4D 2E 32 47 [08:40:32]CommunicateWithHost err = 0 [08:40:32]CheckOFDResponse [08:40:32]1017 (14) - 77093643461234 [08:40:32]1041 (16) - 0000000000871792 [08:40:32]1040 (4) - 156472 [08:40:32]1012 (4) - 27.10.2024 02:14 [08:40:32]1206 (1) - 0 [08:40:32]OFD Sender: Remove packet 156472 [08:40:32]ProducePacketName [08:40:32]name=ofd_packets/00156472 [08:40:32]NVStorageDeleteData [08:40:32]Write to MH i2c: 01 00 00 9B 37 D2 [08:40:32]Write i2c OK [08:40:32]MH_I2C_Read... [08:40:32]Read from MH i2c: 01 [08:40:32]MH_I2C_Read... [08:40:32]Read from MH i2c: 01 07 00 [08:40:32]MH_I2C_Read... [08:40:32]Read from MH i2c: 01 07 00 9B 37 00 00 00 00 00 DC 0C C1 [08:40:32]RasterBufferAndPrint [08:40:32]line [08:40:32]line [08:40:32]line [08:40:32]line [08:40:32]line [08:40:32]written 0, free lines is 3298 [08:40:32]process_action close_receipt done [08:40:32]requested_data is exist [08:40:32]produce_requested_data [08:40:32]requested_item fm.sn is exist - process it [08:40:32]wFMCommunicate request_size=4 [08:40:32]MH_SAM_APDU [08:40:32]CAPDU: 80 11 00 00 [08:40:32]Write to MH i2c: E2 08 00 A2 37 80 11 00 00 00 00 00 00 53 [08:40:32]Write i2c OK [08:40:32]MH_I2C_Read... [08:40:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:40:33]Read from MH i2c: E2 [08:40:33]MH_I2C_Read... [08:40:33]Read from MH i2c: E2 17 00 [08:40:33]MH_I2C_Read... [08:40:33]Read from MH i2c: E2 17 00 A2 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 A8 [08:40:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [08:40:33]wFMCommunicate OK [08:40:33]requested_item fd.num is exist - process it [08:40:33]SAM_PROTO_GetFieldsCounters [08:40:33]wFMCommunicate request_size=4 [08:40:33]MH_SAM_APDU [08:40:33]CAPDU: 80 13 00 00 [08:40:33]Write to MH i2c: E2 08 00 A3 37 80 13 00 00 00 00 00 00 56 [08:40:33]Write i2c OK [08:40:33]MH_I2C_Read... [08:40:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:40:33]Read from MH i2c: E2 [08:40:33]MH_I2C_Read... [08:40:33]Read from MH i2c: E2 62 00 [08:40:33]MH_I2C_Read... [08:40:33]Read from MH i2c: E2 62 00 A3 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 38 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 79 [08:40:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 38 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:40:33]wFMCommunicate OK [08:40:33]SAM_PROTO_GetFieldsCounters done [08:40:33]requested_item shift.num is exist - process it [08:40:33]requested_item shift.opened is exist - process it [08:40:33]req_shift_opened [08:40:33]FM_GetShiftState [08:40:33]SAM_PROTO_GetShiftState [08:40:33]wFMCommunicate request_size=4 [08:40:33]MH_SAM_APDU [08:40:33]CAPDU: 80 13 01 00 [08:40:33]Write to MH i2c: E2 08 00 A4 37 80 13 01 00 00 00 00 00 58 [08:40:33]Write i2c OK [08:40:33]MH_I2C_Read... [08:40:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:40:33]Read from MH i2c: E2 [08:40:33]MH_I2C_Read... [08:40:33]Read from MH i2c: E2 0E 00 [08:40:33]MH_I2C_Read... [08:40:33]Read from MH i2c: E2 0E 00 A4 37 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 25 [08:40:33]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [08:40:33]wFMCommunicate OK [08:40:33]SAM_PROTO_GetShiftState done [08:40:33]FM_GetShiftState done [08:40:33]req_shift_opened done [08:40:33]requested_item shift.open_date is exist - process it [08:40:33]req_shift_open_date [08:40:33]req_shift_open_date done [08:40:33]produce_requested_data done [08:40:33]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156472,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [08:40:33]process_action_free close_receipt [08:40:33]json_value_free [08:40:33]json_value_free done [08:40:33]process_json_proto returns [08:40:33]Send response to host [08:40:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156472,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [08:40:33]free response buf [08:40:33]execute_script done [08:40:33]execute_script returns [08:40:33]free content buf [08:40:33]Sock 10.Close socket [08:40:33]Sock 10.Thread stoped [08:40:33]OFD Sender: No OFD packet to send [08:40:38]OFD Sender: No OFD packet to send [08:40:43]OFD Sender: No OFD packet to send [08:40:48]OFD Sender: No OFD packet to send [08:40:53]OFD Sender: No OFD packet to send [08:40:58]OFD Sender: No OFD packet to send [08:41:03]OFD Sender: No OFD packet to send [08:41:08]OFD Sender: No OFD packet to send [08:41:13]OFD Sender: No OFD packet to send [08:41:18]OFD Sender: No OFD packet to send [08:41:23]OFD Sender: No OFD packet to send [08:41:33]OFD Sender: No OFD packet to send [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:41]ConnectInit Can't connect to host [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:18]OFD Sender: No OFD packet to send [08:44:23]OFD Sender: No OFD packet to send [08:44:28]OFD Sender: No OFD packet to send [08:44:33]OFD Sender: No OFD packet to send [08:44:37]accept exits with 8 [08:44:37]New connection [08:44:37]New thread 3066977636 created [08:44:37]Thread 3066834276 joined [08:44:37]Waiting for new connection... [08:44:37] Sock 8.Parse request [08:44:37]Sock 8.Check first char [08:44:37]Sock 8.First char is OK [08:44:37]request: POST /json_proto HTTP/1.0 [08:44:37]Method: POST [08:44:37]URL: /json_proto [08:44:37]Method is POST - this is cgi request [08:44:37]url: /json_proto [08:44:37]query_string will be loaded in cgi processing [08:44:37]execute_cgi json_proto POST (null) [08:44:37]execute_cgi path=json_proto method=POST [08:44:37]POST find Content-Length [08:44:37]Host: 172.17.63.3:8080 [08:44:37]Content-Length: 677 [08:44:37]Content-Type: application/json [08:44:37] [08:44:37]POST finish read [08:44:37]Found Content-Length = 677 [08:44:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99287", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:44:37]execute_script... [08:44: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)99287", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:44:37]POST & json_proto [08:44:37]process_json_proto [08:44:37]json parsed OK: [08:44:37]protocol is kg_v1.0 [08:44:37]action value=close_receipt [08:44:37]process_action close_receipt [08:44:37]cmd_close_receipt [08:44:37]MH_GetDate [08:44:37]Write to MH i2c: F0 00 00 A5 37 CB [08:44:37]Write i2c OK [08:44:37]MH_I2C_Read... [08:44:37]Read from MH i2c: F0 [08:44:37]MH_I2C_Read... [08:44:37]Read from MH i2c: F0 09 00 [08:44:37]MH_I2C_Read... [08:44:37]Read from MH i2c: F0 09 00 A5 37 00 79 FD 1D 67 50 D1 6C 64 BF [08:44:37]GetLastDocTimeStamp 1730018435 [08:44:37]current date 1730018681 [08:44:37]FM_GetShiftState [08:44:37]SAM_PROTO_GetShiftState [08:44:37]wFMCommunicate request_size=4 [08:44:37]MH_SAM_APDU [08:44:37]CAPDU: 80 13 01 00 [08:44:37]Write to MH i2c: E2 08 00 A6 37 80 13 01 00 00 00 00 00 5A [08:44:37]Write i2c OK [08:44:37]MH_I2C_Read... [08:44:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:44:37]Read from MH i2c: E2 [08:44:37]MH_I2C_Read... [08:44:37]Read from MH i2c: E2 0E 00 [08:44:37]MH_I2C_Read... [08:44:37]Read from MH i2c: E2 0E 00 A6 37 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 27 [08:44:37]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [08:44:37]wFMCommunicate OK [08:44:37]SAM_PROTO_GetShiftState done [08:44:37]FM_GetShiftState done [08:44:37]opened in 1729989044 [08:44:37]opened+sec_in_day 1730075444 [08:44:37]quantity*price = 70044 [08:44:37]sum+1 = 70045 [08:44:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 24 27.10.2024 08:44 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156473 ФПД: 151893942146261 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T084442&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156473&fm=151893942146261&tin=02508201610067®Number=0000000000091693&sum=70000 [08:44:38]StoreToDocumentArchive [08:44:38]shift 537 fd 156473 [08:44:38]save to /storage/0537/doc_00156473 [08:44:38]save last doc name /storage/0537/doc_00156473 to /storage/kkm_last_doc_name [08:44:38]save OK [08:44:38]Clear old archive folders... [08:44:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:44:38]tlvbuf is 01782B80 [08:44:38]SAM_PROTO_ClearQueue [08:44:38]wFMCommunicate request_size=4 [08:44:38]MH_SAM_APDU [08:44:38]CAPDU: 80 09 00 00 [08:44:38]Write to MH i2c: E2 08 00 B3 37 80 09 00 00 00 00 00 00 5C [08:44:38]Write i2c OK [08:44:38]MH_I2C_Read... [08:44:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:44:38]Read from MH i2c: E2 [08:44:38]MH_I2C_Read... [08:44:38]Read from MH i2c: E2 03 00 [08:44:38]MH_I2C_Read... [08:44:38]Read from MH i2c: E2 03 00 B3 37 00 90 00 5E [08:44:38]RAPDU: 90 00 [08:44:38]wFMCommunicate OK [08:44:38]SAM_PROTO_ClearQueue done [08:44:38]KKMCreateOFDPacket [08:44:38]OFDProtocolAddRootSTLVToBuf [08:44:38]FM_MakeSignedData [08:44:38]FM_MakeSignedData [08:44:38]SAM_PROTO_SignData [08:44:38]wFMCommunicate request_size=4 [08:44:38]MH_SAM_APDU [08:44:38]CAPDU: 80 0D 01 02 [08:44:38]Write to MH i2c: E2 08 00 B4 37 80 0D 01 02 00 00 00 00 64 [08:44:38]Write i2c OK [08:44:38]MH_I2C_Read... [08:44:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:44:38]Read from MH i2c: E2 [08:44:38]MH_I2C_Read... [08:44:38]Read from MH i2c: E2 03 00 [08:44:38]MH_I2C_Read... [08:44:38]Read from MH i2c: E2 03 00 B4 37 00 90 00 5F [08:44:38]RAPDU: 90 00 [08:44:38]wFMCommunicate OK [08:44:38]wFMCommunicate request_size=255 [08:44:38]MH_SAM_APDU [08:44:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 18 00 00 00 F4 03 04 00 7A FD 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 39 63 02 00 35 04 06 00 8A [08:44:38]Write to MH i2c: E2 02 01 B5 37 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 18 00 00 00 F4 03 04 00 7A FD 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 39 63 02 00 35 04 06 00 8A 00 00 5E [08:44:38]Write i2c OK [08:44:38]MH_I2C_Read... [08:44:38]OFD Sender: No OFD packet to send [08:44:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:44:38]Read from MH i2c: E2 [08:44:38]MH_I2C_Read... [08:44:38]Read from MH i2c: E2 03 00 [08:44:38]MH_I2C_Read... [08:44:38]Read from MH i2c: E2 03 00 B5 37 00 90 00 60 [08:44:38]RAPDU: 90 00 [08:44:38]wFMCommunicate OK [08:44:38]wFMCommunicate request_size=10 [08:44:38]MH_SAM_APDU [08:44:38]CAPDU: 80 0D 02 02 05 25 90 77 14 D5 [08:44:38]Write to MH i2c: E2 0D 00 B6 37 80 0D 02 02 05 00 25 90 77 14 D5 00 00 86 [08:44:38]Write i2c OK [08:44:38]MH_I2C_Read... [08:44:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:44:38]Read from MH i2c: E2 [08:44:38]MH_I2C_Read... [08:44:38]Read from MH i2c: E2 03 00 [08:44:38]MH_I2C_Read... [08:44:38]Read from MH i2c: E2 03 00 B6 37 00 90 00 61 [08:44:38]RAPDU: 90 00 [08:44:38]wFMCommunicate OK [08:44:38]wFMCommunicate request_size=4 [08:44:38]MH_SAM_APDU [08:44:38]CAPDU: 80 0D 03 02 [08:44:38]Write to MH i2c: E2 08 00 B7 37 80 0D 03 02 00 00 00 00 69 [08:44:38]Write i2c OK [08:44:38]MH_I2C_Read... [08:44:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:44:38]Read from MH i2c: E2 [08:44:38]MH_I2C_Read... [08:44:38]Read from MH i2c: E2 0B 00 [08:44:38]MH_I2C_Read... [08:44:38]Read from MH i2c: E2 0B 00 B7 37 00 86 50 7C 9D 1A 6C 82 EA 90 00 4B [08:44:38]RAPDU: 86 50 7C 9D 1A 6C 82 EA 90 00 [08:44:38]wFMCommunicate OK [08:44:38]SAM_PROTO_SignData done [08:44:38]FM_MakeSignedData done [08:44:38]CreateOFDProtocolMessage [08:44:38]wFMCommunicate request_size=4 [08:44:38]MH_SAM_APDU [08:44:38]CAPDU: 80 11 00 00 [08:44:38]Write to MH i2c: E2 08 00 B8 37 80 11 00 00 00 00 00 00 69 [08:44:38]Write i2c OK [08:44:38]MH_I2C_Read... [08:44:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:44:38]Read from MH i2c: E2 [08:44:38]MH_I2C_Read... [08:44:38]Read from MH i2c: E2 17 00 [08:44:38]MH_I2C_Read... [08:44:38]Read from MH i2c: E2 17 00 B8 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 BE [08:44:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [08:44:38]wFMCommunicate OK [08:44:38]CreateOFDProtocolMessage done [08:44:38]OFDSenderStorePacket 156473 [08:44:38]StoreOFDPacket docnum=156473 [08:44:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 07 5C 07 01 FE 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 18 00 00 00 F4 03 04 00 7A FD 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 39 63 02 00 35 04 06 00 8A 25 90 77 14 D5 86 50 7C 9D 1A 6C 82 EA [08:44:38]CheckFolder [08:44:38]dirname=/storage/ofd_packets [08:44:38]CheckFolder done [08:44:38]ProducePacketName [08:44:38]name=ofd_packets/00156473 [08:44:38]NVStorageSaveData ofd_packets/00156473 [08:44:38]File name is /storage/ofd_packets/00156473 [08:44:38]Write 301 bytes [08:44:38]NVStorageSaveData done [08:44:38]OFDSenderStorePacket done [08:44:38]KKMCreateOFDPacket done [08:44:38]NVStorageSaveData kkm_last_timestamp [08:44:38]File name is /storage/kkm_last_timestamp [08:44:38]Write 4 bytes [08:44:38]NVStorageSaveData done [08:44:38]ExternCall_PrintAddStr [08:44:38]wPrintStart [08:44:38]Write to MH i2c: 01 00 00 B9 37 F0 [08:44:38]Write i2c OK [08:44:38]MH_I2C_Read... [08:44:38]Read from MH i2c: 01 [08:44:38]MH_I2C_Read... [08:44:38]Read from MH i2c: 01 07 00 [08:44:38]MH_I2C_Read... [08:44:38]Read from MH i2c: 01 07 00 B9 37 00 00 00 00 00 FF 0F 05 [08:44:38]RasterBufferAndPrint [08:44:38]line Счет N : (1)99287 [08:44:38]line ИНН: 02508201610067 [08:44:38]line Контрольно-Кассовый Чек [08:44:38]line ПРОДАЖА [08:44:38]line ТРК (МРК, ГНК) : 11 [08:44:38]line Товар: 2710124130 [08:44:38]line Аи-92-К-5 [08:44:38]line 10.470 * 66.90 [08:44:38]line = 700.44 [08:44:38]line НДС 12% НСП 1% [08:44:38]line > о реализуемом товаре [08:44:38]line ОКРУГЛЕНИЕ: -0.44 [08:44:38]line ИТОГО: 700.00 [08:44:38]line Внесено: 700.00 [08:44:38]line СДАЧА: 0.00 [08:44:38]line НСП 1% : 6.20 [08:44:38]line НДС 12% : 74.38 [08:44:38]line Наличными: 700.00 [08:44:38]line Безнал.: 0.00 [08:44:38]line Место: АЗС № 143 "Партнер Нефть" [08:44:38]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [08:44:38]line СНО: Общий режим [08:44:38]line Чек 24 27.10.2024 08:44 [08:44:38]line Смена: 537 ФФД: 1.0 [08:44:38]line ЗНМ: 0300000096 [08:44:38]line РНМ: 0000000000091693 [08:44:38]line Версия ККМ: 001 [08:44:38]line ФМ: 0000000000871792 [08:44:38]line ФД: 156473 [08:44:38]line ФПД: 151893942146261 [08:44:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T084442&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156473&fm=151893942146261&tin=02508201610067®Number=0000000000091693&sum=70000 [08:44:39]OFD Sender: Processing packet 156473 [packets to send 31, broken 30] [08:44:39]ProducePacketName [08:44:39]name=ofd_packets/00156473 [08:44:39]OFD Sender: To server: pG, [08:44:39]CommunicateWithHost lk.salyk.kg:30040 [08:44:39]ConnectInit lk.salyk.kg [08:44:39]written 0, free lines is 4095 [08:44:39]Connected sock=11 [08:44:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 07 5C 07 01 FE 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 18 00 00 00 F4 03 04 00 7A FD 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 39 63 02 00 35 04 06 00 8A 25 90 77 14 D5 86 50 7C 9D 1A 6C 82 EA [08:44:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 DF FA 47 00 F1 C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 39 63 02 00 F4 03 04 00 EA A2 1D 67 B6 04 01 00 00 15 8C EC 8B 7A 27 A1 84 [08:44:39]CommunicateWithHost err = 0 [08:44:39]CheckOFDResponse [08:44:39]1017 (14) - 77093643461234 [08:44:39]1041 (16) - 0000000000871792 [08:44:39]1040 (4) - 156473 [08:44:39]1012 (4) - 27.10.2024 02:18 [08:44:39]1206 (1) - 0 [08:44:39]OFD Sender: Remove packet 156473 [08:44:39]ProducePacketName [08:44:39]name=ofd_packets/00156473 [08:44:39]NVStorageDeleteData [08:44:39]Write to MH i2c: 01 00 00 E4 37 1B [08:44:39]Write i2c OK [08:44:39]MH_I2C_Read... [08:44:39]Read from MH i2c: 01 [08:44:39]MH_I2C_Read... [08:44:39]Read from MH i2c: 01 07 00 [08:44:39]MH_I2C_Read... [08:44:39]Read from MH i2c: 01 07 00 E4 37 00 00 00 00 00 CD 0C FB [08:44:39]RasterBufferAndPrint [08:44:39]line [08:44:39]line [08:44:39]line [08:44:39]line [08:44:39]line [08:44:39]written 0, free lines is 3287 [08:44:39]process_action close_receipt done [08:44:39]requested_data is exist [08:44:39]produce_requested_data [08:44:39]requested_item fm.sn is exist - process it [08:44:39]wFMCommunicate request_size=4 [08:44:39]MH_SAM_APDU [08:44:39]CAPDU: 80 11 00 00 [08:44:39]Write to MH i2c: E2 08 00 EB 37 80 11 00 00 00 00 00 00 9C [08:44:39]Write i2c OK [08:44:39]MH_I2C_Read... [08:44:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:44:39]Read from MH i2c: E2 [08:44:39]MH_I2C_Read... [08:44:39]Read from MH i2c: E2 17 00 [08:44:39]MH_I2C_Read... [08:44:39]Read from MH i2c: E2 17 00 EB 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 F1 [08:44:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [08:44:39]wFMCommunicate OK [08:44:39]requested_item fd.num is exist - process it [08:44:39]SAM_PROTO_GetFieldsCounters [08:44:39]wFMCommunicate request_size=4 [08:44:39]MH_SAM_APDU [08:44:39]CAPDU: 80 13 00 00 [08:44:39]Write to MH i2c: E2 08 00 EC 37 80 13 00 00 00 00 00 00 9F [08:44:39]Write i2c OK [08:44:39]MH_I2C_Read... [08:44:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:44:39]Read from MH i2c: E2 [08:44:39]MH_I2C_Read... [08:44:39]Read from MH i2c: E2 62 00 [08:44:39]MH_I2C_Read... [08:44:39]Read from MH i2c: E2 62 00 EC 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 39 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 C6 [08:44:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 39 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:44:39]wFMCommunicate OK [08:44:39]SAM_PROTO_GetFieldsCounters done [08:44:39]requested_item shift.num is exist - process it [08:44:39]requested_item shift.opened is exist - process it [08:44:39]req_shift_opened [08:44:39]FM_GetShiftState [08:44:39]SAM_PROTO_GetShiftState [08:44:39]wFMCommunicate request_size=4 [08:44:39]MH_SAM_APDU [08:44:39]CAPDU: 80 13 01 00 [08:44:39]Write to MH i2c: E2 08 00 ED 37 80 13 01 00 00 00 00 00 A1 [08:44:39]Write i2c OK [08:44:39]MH_I2C_Read... [08:44:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:44:39]Read from MH i2c: E2 [08:44:39]MH_I2C_Read... [08:44:39]Read from MH i2c: E2 0E 00 [08:44:39]MH_I2C_Read... [08:44:39]Read from MH i2c: E2 0E 00 ED 37 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 6E [08:44:39]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [08:44:39]wFMCommunicate OK [08:44:39]SAM_PROTO_GetShiftState done [08:44:39]FM_GetShiftState done [08:44:39]req_shift_opened done [08:44:39]requested_item shift.open_date is exist - process it [08:44:39]req_shift_open_date [08:44:39]req_shift_open_date done [08:44:39]produce_requested_data done [08:44:39]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156473,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [08:44:39]process_action_free close_receipt [08:44:39]json_value_free [08:44:39]json_value_free done [08:44:39]process_json_proto returns [08:44:39]Send response to host [08:44:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156473,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [08:44:39]free response buf [08:44:39]execute_script done [08:44:39]execute_script returns [08:44:39]free content buf [08:44:39]Sock 8.Close socket [08:44:39]Sock 8.Thread stoped [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:02]accept exits with 10 [08:45:02]New connection [08:45:02]New thread 3066834276 created [08:45:02]Thread 3066977636 joined [08:45:02]Waiting for new connection... [08:45:02] Sock 10.Parse request [08:45:02]Sock 10.Check first char [08:45:02]Sock 10.First char is OK [08:45:02]request: POST /json_proto HTTP/1.0 [08:45:02]Method: POST [08:45:02]URL: /json_proto [08:45:02]Method is POST - this is cgi request [08:45:02]url: /json_proto [08:45:02]query_string will be loaded in cgi processing [08:45:02]execute_cgi json_proto POST (null) [08:45:02]execute_cgi path=json_proto method=POST [08:45:02]POST find Content-Length [08:45:02]Host: 172.17.63.3:8080 [08:45:02]Content-Length: 788 [08:45:02]Content-Type: application/json [08:45:02] [08:45:02]POST finish read [08:45:02]Found Content-Length = 788 [08:45:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99286", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 26.250, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A82200", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:45:02]execute_script... [08:45:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99286", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 26.250, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A82200", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:45:02]POST & json_proto [08:45:02]process_json_proto [08:45:02]json parsed OK: [08:45:02]protocol is kg_v1.0 [08:45:02]action value=close_receipt [08:45:02]process_action close_receipt [08:45:02]cmd_close_receipt [08:45:02]MH_GetDate [08:45:02]Write to MH i2c: F0 00 00 EE 37 14 [08:45:02]Write i2c OK [08:45:02]MH_I2C_Read... [08:45:02]Read from MH i2c: F0 [08:45:02]MH_I2C_Read... [08:45:02]Read from MH i2c: F0 09 00 [08:45:02]MH_I2C_Read... [08:45:02]Read from MH i2c: F0 09 00 EE 37 00 92 FD 1D 67 50 D1 6C 64 21 [08:45:02]GetLastDocTimeStamp 1730018682 [08:45:02]current date 1730018706 [08:45:02]FM_GetShiftState [08:45:02]SAM_PROTO_GetShiftState [08:45:02]wFMCommunicate request_size=4 [08:45:02]MH_SAM_APDU [08:45:02]CAPDU: 80 13 01 00 [08:45:02]Write to MH i2c: E2 08 00 EF 37 80 13 01 00 00 00 00 00 A3 [08:45:02]Write i2c OK [08:45:02]MH_I2C_Read... [08:45:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:45:02]Read from MH i2c: E2 [08:45:02]MH_I2C_Read... [08:45:02]Read from MH i2c: E2 0E 00 [08:45:02]MH_I2C_Read... [08:45:02]Read from MH i2c: E2 0E 00 EF 37 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 70 [08:45:02]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [08:45:02]wFMCommunicate OK [08:45:02]SAM_PROTO_GetShiftState done [08:45:02]FM_GetShiftState done [08:45:02]opened in 1729989044 [08:45:02]opened+sec_in_day 1730075444 [08:45:02]quantity*price = 0 [08:45:02]sum+1 = 1 [08:45:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 25 27.10.2024 08:45 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Талоны: Топливная Карта 82200 ФМ: 0000000000871792 ФД: 156474 ФПД: 54659116871424 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T084507&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156474&fm=54659116871424&tin=02508201610067®Number=0000000000091693&sum=0 [08:45:03]StoreToDocumentArchive [08:45:03]shift 537 fd 156474 [08:45:03]save to /storage/0537/doc_00156474 [08:45:03]save last doc name /storage/0537/doc_00156474 to /storage/kkm_last_doc_name [08:45:03]save OK [08:45:03]Clear old archive folders... [08:45:03]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:45:03]tlvbuf is B6F5B300 [08:45:03]SAM_PROTO_ClearQueue [08:45:03]wFMCommunicate request_size=4 [08:45:03]MH_SAM_APDU [08:45:03]CAPDU: 80 09 00 00 [08:45:03]Write to MH i2c: E2 08 00 FC 37 80 09 00 00 00 00 00 00 A5 [08:45:03]Write i2c OK [08:45:03]MH_I2C_Read... [08:45:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:45:03]Read from MH i2c: E2 [08:45:03]MH_I2C_Read... [08:45:03]Read from MH i2c: E2 03 00 [08:45:03]MH_I2C_Read... [08:45:03]Read from MH i2c: E2 03 00 FC 37 00 90 00 A7 [08:45:03]RAPDU: 90 00 [08:45:03]wFMCommunicate OK [08:45:03]SAM_PROTO_ClearQueue done [08:45:03]KKMCreateOFDPacket [08:45:03]OFDProtocolAddRootSTLVToBuf [08:45:03]FM_MakeSignedData [08:45:03]FM_MakeSignedData [08:45:03]SAM_PROTO_SignData [08:45:03]wFMCommunicate request_size=4 [08:45:03]MH_SAM_APDU [08:45:03]CAPDU: 80 0D 01 02 [08:45:03]Write to MH i2c: E2 08 00 FD 37 80 0D 01 02 00 00 00 00 AD [08:45:03]Write i2c OK [08:45:03]MH_I2C_Read... [08:45:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:45:03]Read from MH i2c: E2 [08:45:03]MH_I2C_Read... [08:45:03]Read from MH i2c: E2 03 00 [08:45:03]MH_I2C_Read... [08:45:03]Read from MH i2c: E2 03 00 FD 37 00 90 00 A8 [08:45:03]RAPDU: 90 00 [08:45:03]wFMCommunicate OK [08:45:03]wFMCommunicate request_size=255 [08:45:03]MH_SAM_APDU [08:45:03]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 93 FD 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3A 63 02 00 35 04 06 00 31 B6 51 3E [08:45:03]Write to MH i2c: E2 02 01 FE 37 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 93 FD 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3A 63 02 00 35 04 06 00 31 B6 51 3E 00 00 5C [08:45:03]Write i2c OK [08:45:03]MH_I2C_Read... [08:45:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:45:03]Read from MH i2c: E2 [08:45:03]MH_I2C_Read... [08:45:03]Read from MH i2c: E2 03 00 [08:45:03]MH_I2C_Read... [08:45:03]Read from MH i2c: E2 03 00 FE 37 00 90 00 A9 [08:45:03]RAPDU: 90 00 [08:45:03]wFMCommunicate OK [08:45:03]wFMCommunicate request_size=7 [08:45:03]MH_SAM_APDU [08:45:03]CAPDU: 80 0D 02 02 02 AF 00 [08:45:03]Write to MH i2c: E2 0A 00 FF 37 80 0D 02 02 02 00 AF 00 00 00 63 [08:45:03]Write i2c OK [08:45:03]MH_I2C_Read... [08:45:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:45:03]Read from MH i2c: E2 [08:45:03]MH_I2C_Read... [08:45:03]Read from MH i2c: E2 03 00 [08:45:03]MH_I2C_Read... [08:45:03]Read from MH i2c: E2 03 00 FF 37 00 90 00 AA [08:45:03]RAPDU: 90 00 [08:45:03]wFMCommunicate OK [08:45:03]wFMCommunicate request_size=4 [08:45:03]MH_SAM_APDU [08:45:03]CAPDU: 80 0D 03 02 [08:45:03]Write to MH i2c: E2 08 00 00 38 80 0D 03 02 00 00 00 00 B3 [08:45:03]Write i2c OK [08:45:03]MH_I2C_Read... [08:45:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:45:03]Read from MH i2c: E2 [08:45:03]MH_I2C_Read... [08:45:03]Read from MH i2c: E2 0B 00 [08:45:03]MH_I2C_Read... [08:45:03]Read from MH i2c: E2 0B 00 00 38 00 80 A8 43 93 61 98 A5 53 90 00 A3 [08:45:03]RAPDU: 80 A8 43 93 61 98 A5 53 90 00 [08:45:03]wFMCommunicate OK [08:45:03]SAM_PROTO_SignData done [08:45:03]FM_MakeSignedData done [08:45:03]CreateOFDProtocolMessage [08:45:03]wFMCommunicate request_size=4 [08:45:03]MH_SAM_APDU [08:45:03]CAPDU: 80 11 00 00 [08:45:03]Write to MH i2c: E2 08 00 01 38 80 11 00 00 00 00 00 00 B3 [08:45:03]Write i2c OK [08:45:03]MH_I2C_Read... [08:45:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:45:03]Read from MH i2c: E2 [08:45:03]MH_I2C_Read... [08:45:03]Read from MH i2c: E2 17 00 [08:45:03]MH_I2C_Read... [08:45:03]Read from MH i2c: E2 17 00 01 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 08 [08:45:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [08:45:03]wFMCommunicate OK [08:45:03]CreateOFDProtocolMessage done [08:45:03]OFDSenderStorePacket 156474 [08:45:03]StoreOFDPacket docnum=156474 [08:45:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 CA 01 04 01 0B EA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 93 FD 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3A 63 02 00 35 04 06 00 31 B6 51 3E AF 00 80 A8 43 93 61 98 A5 53 [08:45:03]CheckFolder [08:45:03]dirname=/storage/ofd_packets [08:45:03]CheckFolder done [08:45:03]ProducePacketName [08:45:03]name=ofd_packets/00156474 [08:45:03]NVStorageSaveData ofd_packets/00156474 [08:45:03]File name is /storage/ofd_packets/00156474 [08:45:03]Write 298 bytes [08:45:03]NVStorageSaveData done [08:45:03]OFDSenderStorePacket done [08:45:03]KKMCreateOFDPacket done [08:45:03]NVStorageSaveData kkm_last_timestamp [08:45:03]File name is /storage/kkm_last_timestamp [08:45:03]Write 4 bytes [08:45:03]NVStorageSaveData done [08:45:03]ExternCall_PrintAddStr [08:45:03]wPrintStart [08:45:03]Write to MH i2c: 01 00 00 02 38 3A [08:45:03]Write i2c OK [08:45:03]MH_I2C_Read... [08:45:03]Read from MH i2c: 01 [08:45:03]MH_I2C_Read... [08:45:03]Read from MH i2c: 01 07 00 [08:45:03]MH_I2C_Read... [08:45:03]Read from MH i2c: 01 07 00 02 38 00 00 00 00 00 FF 0F 4F [08:45:03]RasterBufferAndPrint [08:45:03]line Счет N : (1)99286 [08:45:03]line ИНН: 02508201610067 [08:45:03]line Контрольно-Кассовый Чек [08:45:03]line ПРОДАЖА [08:45:03]line ТРК (МРК, ГНК) : 32 [08:45:03]line Товар: 2710194210 [08:45:03]line ДТ-К-5 [08:45:03]line 26.250 * 0.00 [08:45:03]line = 0.00 [08:45:03]line НДС 12% НСП 1% [08:45:03]line > о реализуемом товаре [08:45:03]line ИТОГО: 0.00 [08:45:03]line НСП 1% : 0.00 [08:45:03]line НДС 12% : 0.00 [08:45:03]line Наличными: 0.00 [08:45:03]line Безнал.: 0.00 [08:45:03]line Место: АЗС № 143 "Партнер Нефть" [08:45:03]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [08:45:03]line СНО: Общий режим [08:45:03]line Чек 25 27.10.2024 08:45 [08:45:03]line Смена: 537 ФФД: 1.0 [08:45:03]line ЗНМ: 0300000096 [08:45:03]line РНМ: 0000000000091693 [08:45:03]line Версия ККМ: 001 [08:45:03]line Талоны: Топливная Карта [08:45:03]line 82200 [08:45:03]line ФМ: 0000000000871792 [08:45:03]line ФД: 156474 [08:45:03]line ФПД: 54659116871424 [08:45:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T084507&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156474&fm=54659116871424&tin=02508201610067®Number=0000000000091693&sum=0 [08:45:03]written 0, free lines is 4095 [08:45:03]OFD Sender: Processing packet 156474 [packets to send 31, broken 30] [08:45:03]ProducePacketName [08:45:03]name=ofd_packets/00156474 [08:45:03]OFD Sender: To server: pG, [08:45:03]CommunicateWithHost lk.salyk.kg:30040 [08:45:03]ConnectInit lk.salyk.kg [08:45:04]Connected sock=9 [08:45:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 CA 01 04 01 0B EA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 93 FD 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3A 63 02 00 35 04 06 00 31 B6 51 3E AF 00 80 A8 43 93 61 98 A5 53 [08:45:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 CF 19 47 00 4C 3A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3A 63 02 00 F4 03 04 00 02 A3 1D 67 B6 04 01 00 00 59 79 47 E1 51 EF E7 D7 [08:45:04]CommunicateWithHost err = 0 [08:45:04]CheckOFDResponse [08:45:04]1017 (14) - 77093643461234 [08:45:04]1041 (16) - 0000000000871792 [08:45:04]1040 (4) - 156474 [08:45:04]1012 (4) - 27.10.2024 02:18 [08:45:04]1206 (1) - 0 [08:45:04]OFD Sender: Remove packet 156474 [08:45:04]ProducePacketName [08:45:04]name=ofd_packets/00156474 [08:45:04]NVStorageDeleteData [08:45:04]Write to MH i2c: 01 00 00 2C 38 64 [08:45:04]Write i2c OK [08:45:04]MH_I2C_Read... [08:45:04]Read from MH i2c: 01 [08:45:04]MH_I2C_Read... [08:45:04]Read from MH i2c: 01 07 00 [08:45:04]MH_I2C_Read... [08:45:04]Read from MH i2c: 01 07 00 2C 38 00 00 00 00 00 D7 0C 4E [08:45:04]RasterBufferAndPrint [08:45:04]line [08:45:04]line [08:45:04]line [08:45:04]line [08:45:04]line [08:45:04]written 0, free lines is 3296 [08:45:04]process_action close_receipt done [08:45:04]requested_data is exist [08:45:04]produce_requested_data [08:45:04]requested_item fm.sn is exist - process it [08:45:04]wFMCommunicate request_size=4 [08:45:04]MH_SAM_APDU [08:45:04]CAPDU: 80 11 00 00 [08:45:04]Write to MH i2c: E2 08 00 33 38 80 11 00 00 00 00 00 00 E5 [08:45:04]Write i2c OK [08:45:04]MH_I2C_Read... [08:45:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:45:04]Read from MH i2c: E2 [08:45:04]MH_I2C_Read... [08:45:04]Read from MH i2c: E2 17 00 [08:45:04]MH_I2C_Read... [08:45:04]Read from MH i2c: E2 17 00 33 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 3A [08:45:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [08:45:04]wFMCommunicate OK [08:45:04]requested_item fd.num is exist - process it [08:45:04]SAM_PROTO_GetFieldsCounters [08:45:04]wFMCommunicate request_size=4 [08:45:04]MH_SAM_APDU [08:45:04]CAPDU: 80 13 00 00 [08:45:04]Write to MH i2c: E2 08 00 34 38 80 13 00 00 00 00 00 00 E8 [08:45:04]Write i2c OK [08:45:04]MH_I2C_Read... [08:45:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:45:04]Read from MH i2c: E2 [08:45:04]MH_I2C_Read... [08:45:04]Read from MH i2c: E2 62 00 [08:45:04]MH_I2C_Read... [08:45:04]Read from MH i2c: E2 62 00 34 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 3A 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 13 [08:45:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 3A 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:45:04]wFMCommunicate OK [08:45:04]SAM_PROTO_GetFieldsCounters done [08:45:04]requested_item shift.num is exist - process it [08:45:04]requested_item shift.opened is exist - process it [08:45:04]req_shift_opened [08:45:04]FM_GetShiftState [08:45:04]SAM_PROTO_GetShiftState [08:45:04]wFMCommunicate request_size=4 [08:45:04]MH_SAM_APDU [08:45:04]CAPDU: 80 13 01 00 [08:45:04]Write to MH i2c: E2 08 00 35 38 80 13 01 00 00 00 00 00 EA [08:45:04]Write i2c OK [08:45:04]MH_I2C_Read... [08:45:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:45:04]Read from MH i2c: E2 [08:45:04]MH_I2C_Read... [08:45:04]Read from MH i2c: E2 0E 00 [08:45:04]MH_I2C_Read... [08:45:04]Read from MH i2c: E2 0E 00 35 38 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 B7 [08:45:04]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [08:45:04]wFMCommunicate OK [08:45:04]SAM_PROTO_GetShiftState done [08:45:04]FM_GetShiftState done [08:45:04]req_shift_opened done [08:45:04]requested_item shift.open_date is exist - process it [08:45:04]req_shift_open_date [08:45:04]req_shift_open_date done [08:45:04]produce_requested_data done [08:45:04]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156474,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [08:45:04]process_action_free close_receipt [08:45:04]json_value_free [08:45:04]json_value_free done [08:45:04]process_json_proto returns [08:45:04]Send response to host [08:45:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156474,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [08:45:04]free response buf [08:45:04]execute_script done [08:45:04]execute_script returns [08:45:04]free content buf [08:45:04]Sock 10.Close socket [08:45:04]Sock 10.Thread stoped [08:45:04]OFD Sender: No OFD packet to send [08:45:09]OFD Sender: No OFD packet to send [08:45:14]OFD Sender: No OFD packet to send [08:45:19]OFD Sender: No OFD packet to send [08:45:24]OFD Sender: No OFD packet to send [08:45:29]OFD Sender: No OFD packet to send [08:45:34]OFD Sender: No OFD packet to send [08:45:39]OFD Sender: No OFD packet to send [08:45:44]OFD Sender: No OFD packet to send [08:45:49]OFD Sender: No OFD packet to send [08:45:54]OFD Sender: No OFD packet to send [08:45:59]OFD Sender: No OFD packet to send [08:46:02]accept exits with 8 [08:46:02]New connection [08:46:02]New thread 3066977636 created [08:46:02]Thread 3066834276 joined [08:46:02]Waiting for new connection... [08:46:02] Sock 8.Parse request [08:46:02]Sock 8.Check first char [08:46:02]Sock 8.First char is OK [08:46:02]request: POST /json_proto HTTP/1.0 [08:46:02]Method: POST [08:46:02]URL: /json_proto [08:46:02]Method is POST - this is cgi request [08:46:02]url: /json_proto [08:46:02]query_string will be loaded in cgi processing [08:46:02]execute_cgi json_proto POST (null) [08:46:02]execute_cgi path=json_proto method=POST [08:46:02]POST find Content-Length [08:46:02]Host: 172.17.63.3:8080 [08:46:02]Content-Length: 676 [08:46:02]Content-Type: application/json [08:46:02] [08:46:02]POST finish read [08:46:02]Found Content-Length = 676 [08:46:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99288", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:46:02]execute_script... [08:46: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)99288", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:46:02]POST & json_proto [08:46:02]process_json_proto [08:46:02]json parsed OK: [08:46:02]protocol is kg_v1.0 [08:46:02]action value=close_receipt [08:46:02]process_action close_receipt [08:46:02]cmd_close_receipt [08:46:02]MH_GetDate [08:46:02]Write to MH i2c: F0 00 00 36 38 5D [08:46:02]Write i2c OK [08:46:02]MH_I2C_Read... [08:46:02]Read from MH i2c: F0 [08:46:02]MH_I2C_Read... [08:46:02]Read from MH i2c: F0 09 00 [08:46:02]MH_I2C_Read... [08:46:02]Read from MH i2c: F0 09 00 36 38 00 CE FD 1D 67 50 D1 6C 64 A6 [08:46:02]GetLastDocTimeStamp 1730018707 [08:46:02]current date 1730018766 [08:46:02]FM_GetShiftState [08:46:02]SAM_PROTO_GetShiftState [08:46:02]wFMCommunicate request_size=4 [08:46:02]MH_SAM_APDU [08:46:02]CAPDU: 80 13 01 00 [08:46:02]Write to MH i2c: E2 08 00 37 38 80 13 01 00 00 00 00 00 EC [08:46:02]Write i2c OK [08:46:02]MH_I2C_Read... [08:46:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:46:02]Read from MH i2c: E2 [08:46:02]MH_I2C_Read... [08:46:02]Read from MH i2c: E2 0E 00 [08:46:02]MH_I2C_Read... [08:46:02]Read from MH i2c: E2 0E 00 37 38 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 B9 [08:46:02]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [08:46:02]wFMCommunicate OK [08:46:02]SAM_PROTO_GetShiftState done [08:46:02]FM_GetShiftState done [08:46:02]opened in 1729989044 [08:46:02]opened+sec_in_day 1730075444 [08:46:02]quantity*price = 40006 [08:46:02]sum+1 = 40007 [08:46:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 26 27.10.2024 08:46 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156475 ФПД: 227107928658593 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T084606&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156475&fm=227107928658593&tin=02508201610067®Number=0000000000091693&sum=40000 [08:46:03]StoreToDocumentArchive [08:46:03]shift 537 fd 156475 [08:46:03]save to /storage/0537/doc_00156475 [08:46:03]save last doc name /storage/0537/doc_00156475 to /storage/kkm_last_doc_name [08:46:03]save OK [08:46:03]Clear old archive folders... [08:46:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:46:03]tlvbuf is 016E9C40 [08:46:03]SAM_PROTO_ClearQueue [08:46:03]wFMCommunicate request_size=4 [08:46:03]MH_SAM_APDU [08:46:03]CAPDU: 80 09 00 00 [08:46:03]Write to MH i2c: E2 08 00 44 38 80 09 00 00 00 00 00 00 EE [08:46:03]Write i2c OK [08:46:03]MH_I2C_Read... [08:46:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:46:03]Read from MH i2c: E2 [08:46:03]MH_I2C_Read... [08:46:03]Read from MH i2c: E2 03 00 [08:46:03]MH_I2C_Read... [08:46:03]Read from MH i2c: E2 03 00 44 38 00 90 00 F0 [08:46:03]RAPDU: 90 00 [08:46:03]wFMCommunicate OK [08:46:03]SAM_PROTO_ClearQueue done [08:46:03]KKMCreateOFDPacket [08:46:03]OFDProtocolAddRootSTLVToBuf [08:46:03]FM_MakeSignedData [08:46:03]FM_MakeSignedData [08:46:03]SAM_PROTO_SignData [08:46:03]wFMCommunicate request_size=4 [08:46:03]MH_SAM_APDU [08:46:03]CAPDU: 80 0D 01 02 [08:46:03]Write to MH i2c: E2 08 00 45 38 80 0D 01 02 00 00 00 00 F6 [08:46:03]Write i2c OK [08:46:03]MH_I2C_Read... [08:46:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:46:03]Read from MH i2c: E2 [08:46:03]MH_I2C_Read... [08:46:03]Read from MH i2c: E2 03 00 [08:46:03]MH_I2C_Read... [08:46:03]Read from MH i2c: E2 03 00 45 38 00 90 00 F1 [08:46:03]RAPDU: 90 00 [08:46:03]wFMCommunicate OK [08:46:03]wFMCommunicate request_size=255 [08:46:03]MH_SAM_APDU [08:46: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 CE FD 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3B 63 02 00 35 04 06 00 CE [08:46:03]Write to MH i2c: E2 02 01 46 38 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 CE FD 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3B 63 02 00 35 04 06 00 CE 00 00 4B [08:46:03]Write i2c OK [08:46:03]MH_I2C_Read... [08:46:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:46:03]Read from MH i2c: E2 [08:46:03]MH_I2C_Read... [08:46:03]Read from MH i2c: E2 03 00 [08:46:03]MH_I2C_Read... [08:46:03]Read from MH i2c: E2 03 00 46 38 00 90 00 F2 [08:46:03]RAPDU: 90 00 [08:46:03]wFMCommunicate OK [08:46:03]wFMCommunicate request_size=10 [08:46:03]MH_SAM_APDU [08:46:03]CAPDU: 80 0D 02 02 05 8D AF 69 D2 A1 [08:46:03]Write to MH i2c: E2 0D 00 47 38 80 0D 02 02 05 00 8D AF 69 D2 A1 00 00 1B [08:46:03]Write i2c OK [08:46:03]MH_I2C_Read... [08:46:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:46:03]Read from MH i2c: E2 [08:46:03]MH_I2C_Read... [08:46:03]Read from MH i2c: E2 03 00 [08:46:03]MH_I2C_Read... [08:46:03]Read from MH i2c: E2 03 00 47 38 00 90 00 F3 [08:46:03]RAPDU: 90 00 [08:46:03]wFMCommunicate OK [08:46:03]wFMCommunicate request_size=4 [08:46:03]MH_SAM_APDU [08:46:03]CAPDU: 80 0D 03 02 [08:46:03]Write to MH i2c: E2 08 00 48 38 80 0D 03 02 00 00 00 00 FB [08:46:03]Write i2c OK [08:46:03]MH_I2C_Read... [08:46:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:46:03]Read from MH i2c: E2 [08:46:03]MH_I2C_Read... [08:46:03]Read from MH i2c: E2 0B 00 [08:46:03]MH_I2C_Read... [08:46:03]Read from MH i2c: E2 0B 00 48 38 00 97 AD 22 CB 56 C8 DD 01 90 00 29 [08:46:03]RAPDU: 97 AD 22 CB 56 C8 DD 01 90 00 [08:46:03]wFMCommunicate OK [08:46:03]SAM_PROTO_SignData done [08:46:03]FM_MakeSignedData done [08:46:03]CreateOFDProtocolMessage [08:46:03]wFMCommunicate request_size=4 [08:46:03]MH_SAM_APDU [08:46:03]CAPDU: 80 11 00 00 [08:46:03]Write to MH i2c: E2 08 00 49 38 80 11 00 00 00 00 00 00 FB [08:46:03]Write i2c OK [08:46:03]MH_I2C_Read... [08:46:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:46:03]Read from MH i2c: E2 [08:46:03]MH_I2C_Read... [08:46:03]Read from MH i2c: E2 17 00 [08:46:03]MH_I2C_Read... [08:46:03]Read from MH i2c: E2 17 00 49 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 50 [08:46:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [08:46:03]wFMCommunicate OK [08:46:03]CreateOFDProtocolMessage done [08:46:03]OFDSenderStorePacket 156475 [08:46:03]StoreOFDPacket docnum=156475 [08:46:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 ED 2A 07 01 73 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 CE FD 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3B 63 02 00 35 04 06 00 CE 8D AF 69 D2 A1 97 AD 22 CB 56 C8 DD 01 [08:46:03]CheckFolder [08:46:03]dirname=/storage/ofd_packets [08:46:03]CheckFolder done [08:46:03]ProducePacketName [08:46:03]name=ofd_packets/00156475 [08:46:03]NVStorageSaveData ofd_packets/00156475 [08:46:03]File name is /storage/ofd_packets/00156475 [08:46:03]Write 301 bytes [08:46:03]NVStorageSaveData done [08:46:03]OFDSenderStorePacket done [08:46:03]KKMCreateOFDPacket done [08:46:03]NVStorageSaveData kkm_last_timestamp [08:46:03]File name is /storage/kkm_last_timestamp [08:46:03]Write 4 bytes [08:46:03]NVStorageSaveData done [08:46:03]ExternCall_PrintAddStr [08:46:03]wPrintStart [08:46:03]Write to MH i2c: 01 00 00 4A 38 82 [08:46:03]Write i2c OK [08:46:03]MH_I2C_Read... [08:46:03]Read from MH i2c: 01 [08:46:03]MH_I2C_Read... [08:46:03]Read from MH i2c: 01 07 00 [08:46:03]MH_I2C_Read... [08:46:03]Read from MH i2c: 01 07 00 4A 38 00 00 00 00 00 FF 0F 97 [08:46:03]RasterBufferAndPrint [08:46:03]line Счет N : (1)99288 [08:46:03]line ИНН: 02508201610067 [08:46:03]line Контрольно-Кассовый Чек [08:46:03]line ПРОДАЖА [08:46:03]line ТРК (МРК, ГНК) : 11 [08:46:03]line Товар: 2710124130 [08:46:03]line Аи-92-К-5 [08:46:03]line 5.980 * 66.90 [08:46:03]line = 400.06 [08:46:03]line НДС 12% НСП 1% [08:46:03]line > о реализуемом товаре [08:46:03]line ОКРУГЛЕНИЕ: -0.06 [08:46:03]line ИТОГО: 400.00 [08:46:03]line Внесено: 400.00 [08:46:03]line СДАЧА: 0.00 [08:46:03]line НСП 1% : 3.54 [08:46:03]line НДС 12% : 42.48 [08:46:03]line Наличными: 400.00 [08:46:03]line Безнал.: 0.00 [08:46:03]line Место: АЗС № 143 "Партнер Нефть" [08:46:03]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [08:46:03]line СНО: Общий режим [08:46:03]line Чек 26 27.10.2024 08:46 [08:46:03]line Смена: 537 ФФД: 1.0 [08:46:03]line ЗНМ: 0300000096 [08:46:03]line РНМ: 0000000000091693 [08:46:03]line Версия ККМ: 001 [08:46:03]line ФМ: 0000000000871792 [08:46:03]line ФД: 156475 [08:46:03]line ФПД: 227107928658593 [08:46:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T084606&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156475&fm=227107928658593&tin=02508201610067®Number=0000000000091693&sum=40000 [08:46:04]OFD Sender: Processing packet 156475 [packets to send 31, broken 30] [08:46:04]ProducePacketName [08:46:04]name=ofd_packets/00156475 [08:46:04]OFD Sender: To server: pG, [08:46:04]CommunicateWithHost lk.salyk.kg:30040 [08:46:04]ConnectInit lk.salyk.kg [08:46:04]written 0, free lines is 4095 [08:46:04]Connected sock=10 [08:46:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 ED 2A 07 01 73 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 CE FD 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3B 63 02 00 35 04 06 00 CE 8D AF 69 D2 A1 97 AD 22 CB 56 C8 DD 01 [08:46:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 AC 40 47 00 C5 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 31 37 39 32 10 04 04 00 3B 63 02 00 F4 03 04 00 3E A3 1D 67 B6 04 01 00 00 CB 5D 42 B5 8F F3 80 C0 [08:46:04]CommunicateWithHost err = 0 [08:46:04]CheckOFDResponse [08:46:04]1017 (14) - 77093643461234 [08:46:04]1041 (16) - 0000000000871792 [08:46:04]1040 (4) - 156475 [08:46:04]1012 (4) - 27.10.2024 02:19 [08:46:04]1206 (1) - 0 [08:46:04]OFD Sender: Remove packet 156475 [08:46:04]ProducePacketName [08:46:04]name=ofd_packets/00156475 [08:46:04]NVStorageDeleteData [08:46:04]Write to MH i2c: 01 00 00 75 38 AD [08:46:04]Write i2c OK [08:46:04]MH_I2C_Read... [08:46:04]Read from MH i2c: 01 [08:46:04]MH_I2C_Read... [08:46:04]Read from MH i2c: 01 07 00 [08:46:04]MH_I2C_Read... [08:46:04]Read from MH i2c: 01 07 00 75 38 00 00 00 00 00 D4 0C 94 [08:46:04]RasterBufferAndPrint [08:46:04]line [08:46:04]line [08:46:04]line [08:46:04]line [08:46:04]line [08:46:04]written 0, free lines is 3292 [08:46:04]process_action close_receipt done [08:46:04]requested_data is exist [08:46:04]produce_requested_data [08:46:04]requested_item fm.sn is exist - process it [08:46:04]wFMCommunicate request_size=4 [08:46:04]MH_SAM_APDU [08:46:04]CAPDU: 80 11 00 00 [08:46:04]Write to MH i2c: E2 08 00 7C 38 80 11 00 00 00 00 00 00 2E [08:46:04]Write i2c OK [08:46:04]MH_I2C_Read... [08:46:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:46:04]Read from MH i2c: E2 [08:46:04]MH_I2C_Read... [08:46:04]Read from MH i2c: E2 17 00 [08:46:04]MH_I2C_Read... [08:46:04]Read from MH i2c: E2 17 00 7C 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 83 [08:46:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [08:46:04]wFMCommunicate OK [08:46:04]requested_item fd.num is exist - process it [08:46:04]SAM_PROTO_GetFieldsCounters [08:46:04]wFMCommunicate request_size=4 [08:46:04]MH_SAM_APDU [08:46:04]CAPDU: 80 13 00 00 [08:46:04]Write to MH i2c: E2 08 00 7D 38 80 13 00 00 00 00 00 00 31 [08:46:04]Write i2c OK [08:46:04]MH_I2C_Read... [08:46:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:46:04]Read from MH i2c: E2 [08:46:04]MH_I2C_Read... [08:46:04]Read from MH i2c: E2 62 00 [08:46:04]MH_I2C_Read... [08:46:04]Read from MH i2c: E2 62 00 7D 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 3B 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 60 [08:46:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 3B 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:46:04]wFMCommunicate OK [08:46:04]SAM_PROTO_GetFieldsCounters done [08:46:04]requested_item shift.num is exist - process it [08:46:04]requested_item shift.opened is exist - process it [08:46:04]req_shift_opened [08:46:04]FM_GetShiftState [08:46:04]SAM_PROTO_GetShiftState [08:46:04]wFMCommunicate request_size=4 [08:46:04]MH_SAM_APDU [08:46:04]CAPDU: 80 13 01 00 [08:46:04]Write to MH i2c: E2 08 00 7E 38 80 13 01 00 00 00 00 00 33 [08:46:04]Write i2c OK [08:46:04]MH_I2C_Read... [08:46:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:46:04]Read from MH i2c: E2 [08:46:04]MH_I2C_Read... [08:46:04]Read from MH i2c: E2 0E 00 [08:46:04]MH_I2C_Read... [08:46:04]Read from MH i2c: E2 0E 00 7E 38 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 00 [08:46:04]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [08:46:04]wFMCommunicate OK [08:46:04]SAM_PROTO_GetShiftState done [08:46:04]FM_GetShiftState done [08:46:04]req_shift_opened done [08:46:04]requested_item shift.open_date is exist - process it [08:46:04]req_shift_open_date [08:46:04]req_shift_open_date done [08:46:04]produce_requested_data done [08:46:04]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156475,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [08:46:04]process_action_free close_receipt [08:46:04]json_value_free [08:46:04]json_value_free done [08:46:04]process_json_proto returns [08:46:04]Send response to host [08:46:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156475,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [08:46:04]free response buf [08:46:04]execute_script done [08:46:04]execute_script returns [08:46:04]free content buf [08:46:04]Sock 8.Close socket [08:46:04]Sock 8.Thread stoped [08:46:04]OFD Sender: No OFD packet to send [08:46:09]OFD Sender: No OFD packet to send [08:46:14]OFD Sender: No OFD packet to send [08:46:19]OFD Sender: No OFD packet to send [08:46:24]OFD Sender: No OFD packet to send [08:46:29]OFD Sender: No OFD packet to send [08:46:34]OFD Sender: No OFD packet to send [08:46:39]OFD Sender: No OFD packet to send [08:46:44]OFD Sender: No OFD packet to send [08:46:49]OFD Sender: No OFD packet to send [08:46:54]OFD Sender: No OFD packet to send [08:46:59]OFD Sender: No OFD packet to send [08:47:04]OFD Sender: No OFD packet to send [08:47:09]OFD Sender: No OFD packet to send [08:47:14]OFD Sender: No OFD packet to send [08:47:19]OFD Sender: No OFD packet to send [08:47:24]OFD Sender: No OFD packet to send [08:47:29]OFD Sender: No OFD packet to send [08:47:34]OFD Sender: No OFD packet to send [08:47:39]OFD Sender: No OFD packet to send [08:47:44]OFD Sender: No OFD packet to send [08:47:49]OFD Sender: No OFD packet to send [08:47:54]OFD Sender: No OFD packet to send [08:47:59]OFD Sender: No OFD packet to send [08:48:05]OFD Sender: No OFD packet to send [08:48:10]OFD Sender: No OFD packet to send [08:48:15]OFD Sender: No OFD packet to send [08:48:20]OFD Sender: No OFD packet to send [08:48:25]OFD Sender: No OFD packet to send [08:48:30]OFD Sender: No OFD packet to send [08:48:35]OFD Sender: No OFD packet to send [08:48:40]OFD Sender: No OFD packet to send [08:48:45]OFD Sender: No OFD packet to send [08:48:50]OFD Sender: No OFD packet to send [08:48:55]OFD Sender: No OFD packet to send [08:49:00]OFD Sender: No OFD packet to send [08:49:05]OFD Sender: No OFD packet to send [08:49:10]OFD Sender: No OFD packet to send [08:49:15]OFD Sender: No OFD packet to send [08:49:20]OFD Sender: No OFD packet to send [08:49:25]OFD Sender: No OFD packet to send [08:49:30]OFD Sender: No OFD packet to send [08:49:35]OFD Sender: No OFD packet to send [08:49:40]OFD Sender: No OFD packet to send [08:49:45]OFD Sender: No OFD packet to send [08:49:50]OFD Sender: No OFD packet to send [08:49:55]OFD Sender: No OFD packet to send [08:50:00]OFD Sender: No OFD packet to send [08:50:05]OFD Sender: No OFD packet to send [08:50:10]OFD Sender: No OFD packet to send [08:50:15]OFD Sender: No OFD packet to send [08:50:20]OFD Sender: No OFD packet to send [08:50:25]OFD Sender: No OFD packet to send [08:50:27]accept exits with 9 [08:50:27]New connection [08:50:27]New thread 3066834276 created [08:50:27]Thread 3066977636 joined [08:50:27]Waiting for new connection... [08:50:27] Sock 9.Parse request [08:50:27]Sock 9.Check first char [08:50:27]Sock 9.First char is OK [08:50:27]request: POST /json_proto HTTP/1.0 [08:50:27]Method: POST [08:50:27]URL: /json_proto [08:50:27]Method is POST - this is cgi request [08:50:27]url: /json_proto [08:50:27]query_string will be loaded in cgi processing [08:50:27]execute_cgi json_proto POST (null) [08:50:27]execute_cgi path=json_proto method=POST [08:50:27]POST find Content-Length [08:50:27]Host: 172.17.63.3:8080 [08:50:27]Content-Length: 676 [08:50:27]Content-Type: application/json [08:50:27] [08:50:27]POST finish read [08:50:27]Found Content-Length = 676 [08:50:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99290", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:50:27]execute_script... [08:50: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)99290", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:50:27]POST & json_proto [08:50:27]process_json_proto [08:50:27]json parsed OK: [08:50:27]protocol is kg_v1.0 [08:50:27]action value=close_receipt [08:50:27]process_action close_receipt [08:50:27]cmd_close_receipt [08:50:27]MH_GetDate [08:50:27]Write to MH i2c: F0 00 00 7F 38 A6 [08:50:27]Write i2c OK [08:50:27]MH_I2C_Read... [08:50:27]Read from MH i2c: F0 [08:50:27]MH_I2C_Read... [08:50:27]Read from MH i2c: F0 09 00 [08:50:27]MH_I2C_Read... [08:50:27]Read from MH i2c: F0 09 00 7F 38 00 D8 FE 1D 67 50 D1 6C 64 FA [08:50:27]GetLastDocTimeStamp 1730018766 [08:50:27]current date 1730019032 [08:50:27]FM_GetShiftState [08:50:27]SAM_PROTO_GetShiftState [08:50:27]wFMCommunicate request_size=4 [08:50:27]MH_SAM_APDU [08:50:27]CAPDU: 80 13 01 00 [08:50:27]Write to MH i2c: E2 08 00 80 38 80 13 01 00 00 00 00 00 35 [08:50:27]Write i2c OK [08:50:27]MH_I2C_Read... [08:50:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:50:27]Read from MH i2c: E2 [08:50:27]MH_I2C_Read... [08:50:27]Read from MH i2c: E2 0E 00 [08:50:27]MH_I2C_Read... [08:50:27]Read from MH i2c: E2 0E 00 80 38 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 02 [08:50:27]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [08:50:27]wFMCommunicate OK [08:50:27]SAM_PROTO_GetShiftState done [08:50:27]FM_GetShiftState done [08:50:27]opened in 1729989044 [08:50:27]opened+sec_in_day 1730075444 [08:50:27]quantity*price = 30038 [08:50:27]sum+1 = 30039 [08:50:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 27 27.10.2024 08:50 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156476 ФПД: 261390998346167 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T085032&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156476&fm=261390998346167&tin=02508201610067®Number=0000000000091693&sum=30000 [08:50:29]StoreToDocumentArchive [08:50:29]shift 537 fd 156476 [08:50:29]save to /storage/0537/doc_00156476 [08:50:29]save last doc name /storage/0537/doc_00156476 to /storage/kkm_last_doc_name [08:50:29]save OK [08:50:29]Clear old archive folders... [08:50:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:50:29]tlvbuf is 017121E0 [08:50:29]SAM_PROTO_ClearQueue [08:50:29]wFMCommunicate request_size=4 [08:50:29]MH_SAM_APDU [08:50:29]CAPDU: 80 09 00 00 [08:50:29]Write to MH i2c: E2 08 00 8D 38 80 09 00 00 00 00 00 00 37 [08:50:29]Write i2c OK [08:50:29]MH_I2C_Read... [08:50:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:50:29]Read from MH i2c: E2 [08:50:29]MH_I2C_Read... [08:50:29]Read from MH i2c: E2 03 00 [08:50:29]MH_I2C_Read... [08:50:29]Read from MH i2c: E2 03 00 8D 38 00 90 00 39 [08:50:29]RAPDU: 90 00 [08:50:29]wFMCommunicate OK [08:50:29]SAM_PROTO_ClearQueue done [08:50:29]KKMCreateOFDPacket [08:50:29]OFDProtocolAddRootSTLVToBuf [08:50:29]FM_MakeSignedData [08:50:29]FM_MakeSignedData [08:50:29]SAM_PROTO_SignData [08:50:29]wFMCommunicate request_size=4 [08:50:29]MH_SAM_APDU [08:50:29]CAPDU: 80 0D 01 02 [08:50:29]Write to MH i2c: E2 08 00 8E 38 80 0D 01 02 00 00 00 00 3F [08:50:29]Write i2c OK [08:50:29]MH_I2C_Read... [08:50:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:50:29]Read from MH i2c: E2 [08:50:29]MH_I2C_Read... [08:50:29]Read from MH i2c: E2 03 00 [08:50:29]MH_I2C_Read... [08:50:29]Read from MH i2c: E2 03 00 8E 38 00 90 00 3A [08:50:29]RAPDU: 90 00 [08:50:29]wFMCommunicate OK [08:50:29]wFMCommunicate request_size=255 [08:50:29]MH_SAM_APDU [08:50: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 D8 FE 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3C 63 02 00 35 04 06 00 ED [08:50:29]Write to MH i2c: E2 02 01 8F 38 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 D8 FE 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3C 63 02 00 35 04 06 00 ED 00 00 E5 [08:50:29]Write i2c OK [08:50:29]MH_I2C_Read... [08:50:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:50:29]Read from MH i2c: E2 [08:50:29]MH_I2C_Read... [08:50:29]Read from MH i2c: E2 03 00 [08:50:29]MH_I2C_Read... [08:50:29]Read from MH i2c: E2 03 00 8F 38 00 90 00 3B [08:50:29]RAPDU: 90 00 [08:50:29]wFMCommunicate OK [08:50:29]wFMCommunicate request_size=10 [08:50:29]MH_SAM_APDU [08:50:29]CAPDU: 80 0D 02 02 05 BB D5 9A 99 B7 [08:50:29]Write to MH i2c: E2 0D 00 90 38 80 0D 02 02 05 00 BB D5 9A 99 B7 00 00 C6 [08:50:29]Write i2c OK [08:50:29]MH_I2C_Read... [08:50:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:50:29]Read from MH i2c: E2 [08:50:29]MH_I2C_Read... [08:50:29]Read from MH i2c: E2 03 00 [08:50:29]MH_I2C_Read... [08:50:29]Read from MH i2c: E2 03 00 90 38 00 90 00 3C [08:50:29]RAPDU: 90 00 [08:50:29]wFMCommunicate OK [08:50:29]wFMCommunicate request_size=4 [08:50:29]MH_SAM_APDU [08:50:29]CAPDU: 80 0D 03 02 [08:50:29]Write to MH i2c: E2 08 00 91 38 80 0D 03 02 00 00 00 00 44 [08:50:29]Write i2c OK [08:50:29]MH_I2C_Read... [08:50:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:50:29]Read from MH i2c: E2 [08:50:29]MH_I2C_Read... [08:50:29]Read from MH i2c: E2 0B 00 [08:50:29]MH_I2C_Read... [08:50:29]Read from MH i2c: E2 0B 00 91 38 00 85 B5 56 7A CC E1 38 E9 90 00 1D [08:50:29]RAPDU: 85 B5 56 7A CC E1 38 E9 90 00 [08:50:29]wFMCommunicate OK [08:50:29]SAM_PROTO_SignData done [08:50:29]FM_MakeSignedData done [08:50:29]CreateOFDProtocolMessage [08:50:29]wFMCommunicate request_size=4 [08:50:29]MH_SAM_APDU [08:50:29]CAPDU: 80 11 00 00 [08:50:29]Write to MH i2c: E2 08 00 92 38 80 11 00 00 00 00 00 00 44 [08:50:29]Write i2c OK [08:50:29]MH_I2C_Read... [08:50:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:50:29]Read from MH i2c: E2 [08:50:29]MH_I2C_Read... [08:50:29]Read from MH i2c: E2 17 00 [08:50:29]MH_I2C_Read... [08:50:29]Read from MH i2c: E2 17 00 92 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 99 [08:50:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [08:50:29]wFMCommunicate OK [08:50:29]CreateOFDProtocolMessage done [08:50:29]OFDSenderStorePacket 156476 [08:50:29]StoreOFDPacket docnum=156476 [08:50:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 AB 90 07 01 1A 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 D8 FE 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3C 63 02 00 35 04 06 00 ED BB D5 9A 99 B7 85 B5 56 7A CC E1 38 E9 [08:50:29]CheckFolder [08:50:29]dirname=/storage/ofd_packets [08:50:29]CheckFolder done [08:50:29]ProducePacketName [08:50:29]name=ofd_packets/00156476 [08:50:29]NVStorageSaveData ofd_packets/00156476 [08:50:29]File name is /storage/ofd_packets/00156476 [08:50:29]Write 301 bytes [08:50:29]NVStorageSaveData done [08:50:29]OFDSenderStorePacket done [08:50:29]KKMCreateOFDPacket done [08:50:29]NVStorageSaveData kkm_last_timestamp [08:50:29]File name is /storage/kkm_last_timestamp [08:50:29]Write 4 bytes [08:50:29]NVStorageSaveData done [08:50:29]ExternCall_PrintAddStr [08:50:29]wPrintStart [08:50:29]Write to MH i2c: 01 00 00 93 38 CB [08:50:29]Write i2c OK [08:50:29]MH_I2C_Read... [08:50:29]Read from MH i2c: 01 [08:50:29]MH_I2C_Read... [08:50:29]Read from MH i2c: 01 07 00 [08:50:29]MH_I2C_Read... [08:50:29]Read from MH i2c: 01 07 00 93 38 00 00 00 00 00 FF 0F E0 [08:50:29]RasterBufferAndPrint [08:50:29]line Счет N : (1)99290 [08:50:29]line ИНН: 02508201610067 [08:50:29]line Контрольно-Кассовый Чек [08:50:29]line ПРОДАЖА [08:50:29]line ТРК (МРК, ГНК) : 21 [08:50:29]line Товар: 2710124130 [08:50:29]line Аи-92-К-5 [08:50:29]line 4.490 * 66.90 [08:50:29]line = 300.38 [08:50:29]line НДС 12% НСП 1% [08:50:29]line > о реализуемом товаре [08:50:29]line ОКРУГЛЕНИЕ: -0.38 [08:50:29]line ИТОГО: 300.00 [08:50:29]line Внесено: 300.00 [08:50:29]line СДАЧА: 0.00 [08:50:29]line НСП 1% : 2.66 [08:50:29]line НДС 12% : 31.90 [08:50:29]line Наличными: 300.00 [08:50:29]line Безнал.: 0.00 [08:50:29]line Место: АЗС № 143 "Партнер Нефть" [08:50:29]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [08:50:29]line СНО: Общий режим [08:50:29]line Чек 27 27.10.2024 08:50 [08:50:29]line Смена: 537 ФФД: 1.0 [08:50:29]line ЗНМ: 0300000096 [08:50:29]line РНМ: 0000000000091693 [08:50:29]line Версия ККМ: 001 [08:50:29]line ФМ: 0000000000871792 [08:50:29]line ФД: 156476 [08:50:29]line ФПД: 261390998346167 [08:50:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T085032&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156476&fm=261390998346167&tin=02508201610067®Number=0000000000091693&sum=30000 [08:50:29]OFD Sender: Processing packet 156476 [packets to send 31, broken 30] [08:50:29]ProducePacketName [08:50:29]name=ofd_packets/00156476 [08:50:29]OFD Sender: To server: pG, [08:50:29]CommunicateWithHost lk.salyk.kg:30040 [08:50:29]ConnectInit lk.salyk.kg [08:50:29]written 0, free lines is 4095 [08:50:30]Connected sock=10 [08:50:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 AB 90 07 01 1A 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 D8 FE 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3C 63 02 00 35 04 06 00 ED BB D5 9A 99 B7 85 B5 56 7A CC E1 38 E9 [08:50:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 A9 4A 47 00 DA F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3C 63 02 00 F4 03 04 00 48 A4 1D 67 B6 04 01 00 00 01 BC D2 9C 00 BF 30 B5 [08:50:30]CommunicateWithHost err = 0 [08:50:30]CheckOFDResponse [08:50:30]1017 (14) - 77093643461234 [08:50:30]1041 (16) - 0000000000871792 [08:50:30]1040 (4) - 156476 [08:50:30]1012 (4) - 27.10.2024 02:24 [08:50:30]1206 (1) - 0 [08:50:30]OFD Sender: Remove packet 156476 [08:50:30]ProducePacketName [08:50:30]name=ofd_packets/00156476 [08:50:30]NVStorageDeleteData [08:50:30]Write to MH i2c: 01 00 00 BE 38 F6 [08:50:30]Write i2c OK [08:50:30]MH_I2C_Read... [08:50:30]Read from MH i2c: 01 [08:50:30]MH_I2C_Read... [08:50:30]Read from MH i2c: 01 07 00 [08:50:30]MH_I2C_Read... [08:50:30]Read from MH i2c: 01 07 00 BE 38 00 00 00 00 00 D7 0C E0 [08:50:30]RasterBufferAndPrint [08:50:30]line [08:50:30]line [08:50:30]line [08:50:30]line [08:50:30]line [08:50:30]written 0, free lines is 3309 [08:50:30]process_action close_receipt done [08:50:30]requested_data is exist [08:50:30]produce_requested_data [08:50:30]requested_item fm.sn is exist - process it [08:50:30]wFMCommunicate request_size=4 [08:50:30]MH_SAM_APDU [08:50:30]CAPDU: 80 11 00 00 [08:50:30]Write to MH i2c: E2 08 00 C5 38 80 11 00 00 00 00 00 00 77 [08:50:30]Write i2c OK [08:50:30]MH_I2C_Read... [08:50:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:50:30]Read from MH i2c: E2 [08:50:30]MH_I2C_Read... [08:50:30]Read from MH i2c: E2 17 00 [08:50:30]MH_I2C_Read... [08:50:30]Read from MH i2c: E2 17 00 C5 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 CC [08:50:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [08:50:30]wFMCommunicate OK [08:50:30]requested_item fd.num is exist - process it [08:50:30]SAM_PROTO_GetFieldsCounters [08:50:30]wFMCommunicate request_size=4 [08:50:30]MH_SAM_APDU [08:50:30]CAPDU: 80 13 00 00 [08:50:30]Write to MH i2c: E2 08 00 C6 38 80 13 00 00 00 00 00 00 7A [08:50:30]Write i2c OK [08:50:30]MH_I2C_Read... [08:50:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:50:30]Read from MH i2c: E2 [08:50:30]MH_I2C_Read... [08:50:30]Read from MH i2c: E2 62 00 [08:50:30]MH_I2C_Read... [08:50:30]Read from MH i2c: E2 62 00 C6 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 3C 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 AD [08:50:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 3C 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:50:30]wFMCommunicate OK [08:50:30]SAM_PROTO_GetFieldsCounters done [08:50:30]requested_item shift.num is exist - process it [08:50:30]requested_item shift.opened is exist - process it [08:50:30]req_shift_opened [08:50:30]FM_GetShiftState [08:50:30]SAM_PROTO_GetShiftState [08:50:30]wFMCommunicate request_size=4 [08:50:30]MH_SAM_APDU [08:50:30]CAPDU: 80 13 01 00 [08:50:30]Write to MH i2c: E2 08 00 C7 38 80 13 01 00 00 00 00 00 7C [08:50:30]Write i2c OK [08:50:30]MH_I2C_Read... [08:50:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:50:30]Read from MH i2c: E2 [08:50:30]MH_I2C_Read... [08:50:30]Read from MH i2c: E2 0E 00 [08:50:30]MH_I2C_Read... [08:50:30]Read from MH i2c: E2 0E 00 C7 38 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 49 [08:50:30]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [08:50:30]wFMCommunicate OK [08:50:30]SAM_PROTO_GetShiftState done [08:50:30]FM_GetShiftState done [08:50:30]req_shift_opened done [08:50:30]requested_item shift.open_date is exist - process it [08:50:30]req_shift_open_date [08:50:30]req_shift_open_date done [08:50:30]produce_requested_data done [08:50:30]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156476,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [08:50:30]process_action_free close_receipt [08:50:30]json_value_free [08:50:30]json_value_free done [08:50:30]process_json_proto returns [08:50:30]Send response to host [08:50:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156476,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [08:50:30]free response buf [08:50:30]execute_script done [08:50:30]execute_script returns [08:50:30]free content buf [08:50:30]Sock 9.Close socket [08:50:30]Sock 9.Thread stoped [08:50:30]OFD Sender: No OFD packet to send [08:50:35]OFD Sender: No OFD packet to send [08:50:40]OFD Sender: No OFD packet to send [08:50:44]accept exits with 8 [08:50:44]New connection [08:50:44]New thread 3066977636 created [08:50:44]Thread 3066834276 joined [08:50:44]Waiting for new connection... [08:50:44] Sock 8.Parse request [08:50:44]Sock 8.Check first char [08:50:44]Sock 8.First char is OK [08:50:44]request: POST /json_proto HTTP/1.0 [08:50:44]Method: POST [08:50:44]URL: /json_proto [08:50:44]Method is POST - this is cgi request [08:50:44]url: /json_proto [08:50:44]query_string will be loaded in cgi processing [08:50:44]execute_cgi json_proto POST (null) [08:50:44]execute_cgi path=json_proto method=POST [08:50:44]POST find Content-Length [08:50:44]Host: 172.17.63.3:8080 [08:50:44]Content-Length: 766 [08:50:44]Content-Type: application/json [08:50:44] [08:50:44]POST finish read [08:50:44]Found Content-Length = 766 [08:50:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99289", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 700.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:50:44]execute_script... [08:50: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)99289", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 700.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:50:44]POST & json_proto [08:50:44]process_json_proto [08:50:44]json parsed OK: [08:50:44]protocol is kg_v1.0 [08:50:44]action value=close_receipt [08:50:44]process_action close_receipt [08:50:44]cmd_close_receipt [08:50:44]MH_GetDate [08:50:44]Write to MH i2c: F0 00 00 C8 38 EF [08:50:44]Write i2c OK [08:50:44]MH_I2C_Read... [08:50:44]Read from MH i2c: F0 [08:50:44]MH_I2C_Read... [08:50:44]Read from MH i2c: F0 09 00 [08:50:44]MH_I2C_Read... [08:50:44]Read from MH i2c: F0 09 00 C8 38 00 E8 FE 1D 67 50 D1 6C 64 53 [08:50:44]GetLastDocTimeStamp 1730019032 [08:50:44]current date 1730019048 [08:50:44]FM_GetShiftState [08:50:44]SAM_PROTO_GetShiftState [08:50:44]wFMCommunicate request_size=4 [08:50:44]MH_SAM_APDU [08:50:44]CAPDU: 80 13 01 00 [08:50:44]Write to MH i2c: E2 08 00 C9 38 80 13 01 00 00 00 00 00 7E [08:50:44]Write i2c OK [08:50:44]MH_I2C_Read... [08:50:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:50:44]Read from MH i2c: E2 [08:50:44]MH_I2C_Read... [08:50:44]Read from MH i2c: E2 0E 00 [08:50:44]MH_I2C_Read... [08:50:44]Read from MH i2c: E2 0E 00 C9 38 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 4B [08:50:44]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [08:50:44]wFMCommunicate OK [08:50:44]SAM_PROTO_GetShiftState done [08:50:44]FM_GetShiftState done [08:50:44]opened in 1729989044 [08:50:44]opened+sec_in_day 1730075444 [08:50:44]quantity*price = 70044 [08:50:44]sum+1 = 70045 [08:50:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.44 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 0.00 Безнал.: 700.44 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 28 27.10.2024 08:50 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 156477 ФПД: 154091993083497 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T085048&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156477&fm=154091993083497&tin=02508201610067®Number=0000000000091693&sum=70044 [08:50:45]StoreToDocumentArchive [08:50:45]shift 537 fd 156477 [08:50:45]save to /storage/0537/doc_00156477 [08:50:45]save last doc name /storage/0537/doc_00156477 to /storage/kkm_last_doc_name [08:50:45]save OK [08:50:45]Clear old archive folders... [08:50:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:50:45]tlvbuf is 01782C60 [08:50:45]SAM_PROTO_ClearQueue [08:50:45]wFMCommunicate request_size=4 [08:50:45]MH_SAM_APDU [08:50:45]CAPDU: 80 09 00 00 [08:50:45]Write to MH i2c: E2 08 00 D6 38 80 09 00 00 00 00 00 00 80 [08:50:45]Write i2c OK [08:50:45]MH_I2C_Read... [08:50:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:50:45]Read from MH i2c: E2 [08:50:45]MH_I2C_Read... [08:50:45]Read from MH i2c: E2 03 00 [08:50:45]MH_I2C_Read... [08:50:45]Read from MH i2c: E2 03 00 D6 38 00 90 00 82 [08:50:45]RAPDU: 90 00 [08:50:45]wFMCommunicate OK [08:50:45]SAM_PROTO_ClearQueue done [08:50:45]KKMCreateOFDPacket [08:50:45]OFDProtocolAddRootSTLVToBuf [08:50:45]FM_MakeSignedData [08:50:45]FM_MakeSignedData [08:50:45]SAM_PROTO_SignData [08:50:45]wFMCommunicate request_size=4 [08:50:45]MH_SAM_APDU [08:50:45]CAPDU: 80 0D 01 02 [08:50:45]Write to MH i2c: E2 08 00 D7 38 80 0D 01 02 00 00 00 00 88 [08:50:45]Write i2c OK [08:50:45]MH_I2C_Read... [08:50:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:50:45]Read from MH i2c: E2 [08:50:45]MH_I2C_Read... [08:50:45]Read from MH i2c: E2 03 00 [08:50:45]MH_I2C_Read... [08:50:45]Read from MH i2c: E2 03 00 D7 38 00 90 00 83 [08:50:45]RAPDU: 90 00 [08:50:45]wFMCommunicate OK [08:50:45]wFMCommunicate request_size=255 [08:50:45]MH_SAM_APDU [08:50: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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 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 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 E8 FE 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3D 63 02 00 35 04 06 00 8C [08:50:45]Write to MH i2c: E2 02 01 D8 38 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 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 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 E8 FE 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3D 63 02 00 35 04 06 00 8C 00 00 53 [08:50:45]Write i2c OK [08:50:45]MH_I2C_Read... [08:50:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:50:45]Read from MH i2c: E2 [08:50:45]MH_I2C_Read... [08:50:45]Read from MH i2c: E2 03 00 [08:50:45]MH_I2C_Read... [08:50:45]Read from MH i2c: E2 03 00 D8 38 00 90 00 84 [08:50:45]RAPDU: 90 00 [08:50:45]wFMCommunicate OK [08:50:45]wFMCommunicate request_size=10 [08:50:45]MH_SAM_APDU [08:50:45]CAPDU: 80 0D 02 02 05 25 56 82 AE 69 [08:50:45]Write to MH i2c: E2 0D 00 D9 38 80 0D 02 02 05 00 25 56 82 AE 69 00 00 A9 [08:50:45]Write i2c OK [08:50:45]MH_I2C_Read... [08:50:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:50:45]Read from MH i2c: E2 [08:50:45]MH_I2C_Read... [08:50:45]Read from MH i2c: E2 03 00 [08:50:45]MH_I2C_Read... [08:50:45]Read from MH i2c: E2 03 00 D9 38 00 90 00 85 [08:50:45]RAPDU: 90 00 [08:50:45]wFMCommunicate OK [08:50:45]wFMCommunicate request_size=4 [08:50:45]MH_SAM_APDU [08:50:45]CAPDU: 80 0D 03 02 [08:50:45]Write to MH i2c: E2 08 00 DA 38 80 0D 03 02 00 00 00 00 8D [08:50:45]Write i2c OK [08:50:45]MH_I2C_Read... [08:50:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:50:45]Read from MH i2c: E2 [08:50:45]MH_I2C_Read... [08:50:45]Read from MH i2c: E2 0B 00 [08:50:45]MH_I2C_Read... [08:50:45]Read from MH i2c: E2 0B 00 DA 38 00 77 83 51 9C DD 52 9A 27 90 00 65 [08:50:45]RAPDU: 77 83 51 9C DD 52 9A 27 90 00 [08:50:45]wFMCommunicate OK [08:50:45]SAM_PROTO_SignData done [08:50:45]FM_MakeSignedData done [08:50:45]CreateOFDProtocolMessage [08:50:45]wFMCommunicate request_size=4 [08:50:45]MH_SAM_APDU [08:50:45]CAPDU: 80 11 00 00 [08:50:45]Write to MH i2c: E2 08 00 DB 38 80 11 00 00 00 00 00 00 8D [08:50:45]Write i2c OK [08:50:45]MH_I2C_Read... [08:50:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:50:45]Read from MH i2c: E2 [08:50:45]MH_I2C_Read... [08:50:45]Read from MH i2c: E2 17 00 [08:50:45]MH_I2C_Read... [08:50:45]Read from MH i2c: E2 17 00 DB 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 E2 [08:50:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [08:50:45]wFMCommunicate OK [08:50:45]CreateOFDProtocolMessage done [08:50:45]OFDSenderStorePacket 156477 [08:50:45]StoreOFDPacket docnum=156477 [08:50:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 DC 78 07 01 2B 81 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 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 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 E8 FE 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3D 63 02 00 35 04 06 00 8C 25 56 82 AE 69 77 83 51 9C DD 52 9A 27 [08:50:45]CheckFolder [08:50:45]dirname=/storage/ofd_packets [08:50:45]CheckFolder done [08:50:45]ProducePacketName [08:50:45]name=ofd_packets/00156477 [08:50:45]NVStorageSaveData ofd_packets/00156477 [08:50:45]File name is /storage/ofd_packets/00156477 [08:50:45]Write 301 bytes [08:50:45]NVStorageSaveData done [08:50:45]OFDSenderStorePacket done [08:50:45]KKMCreateOFDPacket done [08:50:45]NVStorageSaveData kkm_last_timestamp [08:50:45]File name is /storage/kkm_last_timestamp [08:50:45]Write 4 bytes [08:50:45]NVStorageSaveData done [08:50:45]ExternCall_PrintAddStr [08:50:45]wPrintStart [08:50:45]Write to MH i2c: 01 00 00 DC 38 14 [08:50:45]Write i2c OK [08:50:45]MH_I2C_Read... [08:50:45]Read from MH i2c: 01 [08:50:45]MH_I2C_Read... [08:50:45]Read from MH i2c: 01 07 00 [08:50:45]MH_I2C_Read... [08:50:45]Read from MH i2c: 01 07 00 DC 38 00 00 00 00 00 FF 0F 29 [08:50:45]RasterBufferAndPrint [08:50:45]line Счет N : (1)99289 [08:50:45]line ИНН: 02508201610067 [08:50:45]line Контрольно-Кассовый Чек [08:50:45]line ПРОДАЖА [08:50:45]line ТРК (МРК, ГНК) : 31 [08:50:45]line Товар: 2710124130 [08:50:45]line Аи-92-К-5 [08:50:45]line 10.470 * 66.90 [08:50:45]line = 700.44 [08:50:45]line НДС 12% НСП 1% [08:50:45]line > о реализуемом товаре [08:50:45]line ИТОГО: 700.44 [08:50:45]line НСП 1% : 6.20 [08:50:45]line НДС 12% : 74.38 [08:50:45]line Наличными: 0.00 [08:50:45]line Безнал.: 700.44 [08:50:45]line Место: АЗС № 143 "Партнер Нефть" [08:50:45]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [08:50:45]line СНО: Общий режим [08:50:45]line Чек 28 27.10.2024 08:50 [08:50:45]line Смена: 537 ФФД: 1.0 [08:50:45]line ЗНМ: 0300000096 [08:50:45]line РНМ: 0000000000091693 [08:50:45]line Версия ККМ: 001 [08:50:45]line Платежная система: Mbank [08:50:45]line ФМ: 0000000000871792 [08:50:45]line ФД: 156477 [08:50:45]line ФПД: 154091993083497 [08:50:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T085048&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156477&fm=154091993083497&tin=02508201610067®Number=0000000000091693&sum=70044 [08:50:46]OFD Sender: Processing packet 156477 [packets to send 31, broken 30] [08:50:46]ProducePacketName [08:50:46]name=ofd_packets/00156477 [08:50:46]OFD Sender: To server: pG, [08:50:46]CommunicateWithHost lk.salyk.kg:30040 [08:50:46]ConnectInit lk.salyk.kg [08:50:46]written 0, free lines is 4095 [08:50:46]Connected sock=10 [08:50:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 DC 78 07 01 2B 81 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 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 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 E8 FE 1D 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3D 63 02 00 35 04 06 00 8C 25 56 82 AE 69 77 83 51 9C DD 52 9A 27 [08:50:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 AD C0 47 00 A5 F4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3D 63 02 00 F4 03 04 00 58 A4 1D 67 B6 04 01 00 00 C0 63 5C 95 98 8A 4A 72 [08:50:46]CommunicateWithHost err = 0 [08:50:46]CheckOFDResponse [08:50:46]1017 (14) - 77093643461234 [08:50:46]1041 (16) - 0000000000871792 [08:50:46]1040 (4) - 156477 [08:50:46]1012 (4) - 27.10.2024 02:24 [08:50:46]1206 (1) - 0 [08:50:46]OFD Sender: Remove packet 156477 [08:50:46]ProducePacketName [08:50:46]name=ofd_packets/00156477 [08:50:46]NVStorageDeleteData [08:50:46]Write to MH i2c: 01 00 00 05 39 3E [08:50:46]Write i2c OK [08:50:46]MH_I2C_Read... [08:50:46]Read from MH i2c: 01 [08:50:46]MH_I2C_Read... [08:50:46]Read from MH i2c: 01 07 00 [08:50:46]MH_I2C_Read... [08:50:46]Read from MH i2c: 01 07 00 05 39 00 00 00 00 00 F5 0C 46 [08:50:46]RasterBufferAndPrint [08:50:46]line [08:50:46]line [08:50:46]line [08:50:46]line [08:50:46]line [08:50:46]written 0, free lines is 3324 [08:50:46]process_action close_receipt done [08:50:46]requested_data is exist [08:50:46]produce_requested_data [08:50:46]requested_item fm.sn is exist - process it [08:50:46]wFMCommunicate request_size=4 [08:50:46]MH_SAM_APDU [08:50:46]CAPDU: 80 11 00 00 [08:50:46]Write to MH i2c: E2 08 00 0C 39 80 11 00 00 00 00 00 00 BF [08:50:46]Write i2c OK [08:50:46]MH_I2C_Read... [08:50:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:50:46]Read from MH i2c: E2 [08:50:46]MH_I2C_Read... [08:50:46]Read from MH i2c: E2 17 00 [08:50:46]MH_I2C_Read... [08:50:46]Read from MH i2c: E2 17 00 0C 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 14 [08:50:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [08:50:46]wFMCommunicate OK [08:50:46]requested_item fd.num is exist - process it [08:50:46]SAM_PROTO_GetFieldsCounters [08:50:46]wFMCommunicate request_size=4 [08:50:46]MH_SAM_APDU [08:50:46]CAPDU: 80 13 00 00 [08:50:46]Write to MH i2c: E2 08 00 0D 39 80 13 00 00 00 00 00 00 C2 [08:50:46]Write i2c OK [08:50:46]MH_I2C_Read... [08:50:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:50:46]Read from MH i2c: E2 [08:50:46]MH_I2C_Read... [08:50:46]Read from MH i2c: E2 62 00 [08:50:46]MH_I2C_Read... [08:50:46]Read from MH i2c: E2 62 00 0D 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 3D 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 F9 [08:50:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 3D 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:50:46]wFMCommunicate OK [08:50:46]SAM_PROTO_GetFieldsCounters done [08:50:46]requested_item shift.num is exist - process it [08:50:46]requested_item shift.opened is exist - process it [08:50:46]req_shift_opened [08:50:46]FM_GetShiftState [08:50:46]SAM_PROTO_GetShiftState [08:50:46]wFMCommunicate request_size=4 [08:50:46]MH_SAM_APDU [08:50:46]CAPDU: 80 13 01 00 [08:50:46]Write to MH i2c: E2 08 00 0E 39 80 13 01 00 00 00 00 00 C4 [08:50:46]Write i2c OK [08:50:46]MH_I2C_Read... [08:50:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:50:46]Read from MH i2c: E2 [08:50:46]MH_I2C_Read... [08:50:46]Read from MH i2c: E2 0E 00 [08:50:46]MH_I2C_Read... [08:50:46]Read from MH i2c: E2 0E 00 0E 39 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 91 [08:50:46]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [08:50:46]wFMCommunicate OK [08:50:46]SAM_PROTO_GetShiftState done [08:50:46]FM_GetShiftState done [08:50:46]req_shift_opened done [08:50:46]requested_item shift.open_date is exist - process it [08:50:46]req_shift_open_date [08:50:46]req_shift_open_date done [08:50:46]produce_requested_data done [08:50:46]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156477,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [08:50:46]process_action_free close_receipt [08:50:46]json_value_free [08:50:46]json_value_free done [08:50:46]process_json_proto returns [08:50:46]Send response to host [08:50:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156477,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [08:50:46]free response buf [08:50:46]execute_script done [08:50:46]execute_script returns [08:50:46]free content buf [08:50:46]Sock 8.Close socket [08:50:46]Sock 8.Thread stoped [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:37]OFD Sender: No OFD packet to send [08:52:42]OFD Sender: No OFD packet to send [08:52:47]OFD Sender: No OFD packet to send [08:52:52]OFD Sender: No OFD packet to send [08:52:57]OFD Sender: No OFD packet to send [08:53:02]OFD Sender: No OFD packet to send [08:53:07]OFD Sender: No OFD packet to send [08:53:12]OFD Sender: No OFD packet to send [08:53:17]OFD Sender: No OFD packet to send [08:53:22]OFD Sender: No OFD packet to send [08:53:27]OFD Sender: No OFD packet to send [08:53:32]OFD Sender: No OFD packet to send [08:53:37]OFD Sender: No OFD packet to send [08:53:42]OFD Sender: No OFD packet to send [08:53:47]OFD Sender: No OFD packet to send [08:53:52]OFD Sender: No OFD packet to send [08:53:57]OFD Sender: No OFD packet to send [08:54:02]OFD Sender: No OFD packet to send [08:54:07]OFD Sender: No OFD packet to send [08:54:12]OFD Sender: No OFD packet to send [08:54:17]OFD Sender: No OFD packet to send [08:54:22]OFD Sender: No OFD packet to send [08:54:27]OFD Sender: No OFD packet to send [08:54:32]OFD Sender: No OFD packet to send [08:54:37]OFD Sender: No OFD packet to send [08:54:42]OFD Sender: No OFD packet to send [08:54:47]OFD Sender: No OFD packet to send [08:54:52]OFD Sender: No OFD packet to send [08:54:57]OFD Sender: No OFD packet to send [08:55:02]OFD Sender: No OFD packet to send [08:55:07]OFD Sender: No OFD packet to send [08:55:12]OFD Sender: No OFD packet to send [08:55:17]OFD Sender: No OFD packet to send [08:55:22]OFD Sender: No OFD packet to send [08:55:27]OFD Sender: No OFD packet to send [08:55:32]OFD Sender: No OFD packet to send [08:55:37]OFD Sender: No OFD packet to send [08:55:42]OFD Sender: No OFD packet to send [08:55:47]OFD Sender: No OFD packet to send [08:55:52]OFD Sender: No OFD packet to send [08:55:57]OFD Sender: No OFD packet to send [08:56:02]OFD Sender: No OFD packet to send [08:56:07]OFD Sender: No OFD packet to send [08:56:12]OFD Sender: No OFD packet to send [08:56:17]OFD Sender: No OFD packet to send [08:56:22]OFD Sender: No OFD packet to send [08:56:27]OFD Sender: No OFD packet to send [08:56:32]OFD Sender: No OFD packet to send [08:56:37]OFD Sender: No OFD packet to send [08:56:42]OFD Sender: No OFD packet to send [08:56:47]OFD Sender: No OFD packet to send [08:56:52]OFD Sender: No OFD packet to send [08:56:57]OFD Sender: No OFD packet to send [08:57:02]OFD Sender: No OFD packet to send [08:57:07]OFD Sender: No OFD packet to send [08:57:12]OFD Sender: No OFD packet to send [08:57:17]OFD Sender: No OFD packet to send [08:57:22]OFD Sender: No OFD packet to send [08:57:27]OFD Sender: No OFD packet to send [08:57:32]OFD Sender: No OFD packet to send [08:57:37]OFD Sender: No OFD packet to send [08:57:42]OFD Sender: No OFD packet to send [08:57:47]OFD Sender: No OFD packet to send [08:57:52]OFD Sender: No OFD packet to send [08:57:57]OFD Sender: No OFD packet to send [08:58:02]OFD Sender: No OFD packet to send [08:58:07]OFD Sender: No OFD packet to send [08:58:12]OFD Sender: No OFD packet to send [08:58:17]OFD Sender: No OFD packet to send [08:58:22]OFD Sender: No OFD packet to send [08:58:27]OFD Sender: No OFD packet to send [08:58:32]OFD Sender: No OFD packet to send [08:58:37]OFD Sender: No OFD packet to send [08:58:42]OFD Sender: No OFD packet to send [08:58:47]OFD Sender: No OFD packet to send [08:58:52]OFD Sender: No OFD packet to send [08:58:57]OFD Sender: No OFD packet to send [08:59:02]OFD Sender: No OFD packet to send [08:59:07]OFD Sender: No OFD packet to send [08:59:12]OFD Sender: No OFD packet to send [08:59:17]OFD Sender: No OFD packet to send [08:59:22]OFD Sender: No OFD packet to send [08:59:27]OFD Sender: No OFD packet to send [08:59:32]OFD Sender: No OFD packet to send [08:59:37]OFD Sender: No OFD packet to send [08:59:42]OFD Sender: No OFD packet to send [08:59:47]OFD Sender: No OFD packet to send [08:59:52]OFD Sender: No OFD packet to send [08:59:57]OFD Sender: No OFD packet to send [09:00:02]OFD Sender: No OFD packet to send [09:00:07]OFD Sender: No OFD packet to send [09:00:12]OFD Sender: No OFD packet to send [09:00:17]OFD Sender: No OFD packet to send [09:00:22]OFD Sender: No OFD packet to send [09:00:27]OFD Sender: No OFD packet to send [09:00:32]OFD Sender: No OFD packet to send [09:00:37]OFD Sender: No OFD packet to send [09:00:42]OFD Sender: No OFD packet to send [09:00:47]OFD Sender: No OFD packet to send [09:00:52]OFD Sender: No OFD packet to send [09:00:57]OFD Sender: No OFD packet to send [09:01:02]OFD Sender: No OFD packet to send [09:01:02]accept exits with 9 [09:01:02]New connection [09:01:02]New thread 3066834276 created [09:01:02]Thread 3066977636 joined [09:01:02]Waiting for new connection... [09:01:02] Sock 9.Parse request [09:01:02]Sock 9.Check first char [09:01:02]Sock 9.First char is OK [09:01:02]request: POST /json_proto HTTP/1.0 [09:01:02]Method: POST [09:01:02]URL: /json_proto [09:01:02]Method is POST - this is cgi request [09:01:02]url: /json_proto [09:01:02]query_string will be loaded in cgi processing [09:01:02]execute_cgi json_proto POST (null) [09:01:02]execute_cgi path=json_proto method=POST [09:01:02]POST find Content-Length [09:01:02]Host: 172.17.63.3:8080 [09:01:02]Content-Length: 681 [09:01:02]Content-Type: application/json [09:01:02] [09:01:02]POST finish read [09:01:02]Found Content-Length = 681 [09:01:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99291", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:01:02]execute_script... [09:01: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)99291", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:01:02]POST & json_proto [09:01:02]process_json_proto [09:01:02]json parsed OK: [09:01:02]protocol is kg_v1.0 [09:01:02]action value=close_receipt [09:01:02]process_action close_receipt [09:01:02]cmd_close_receipt [09:01:02]MH_GetDate [09:01:02]Write to MH i2c: F0 00 00 0F 39 37 [09:01:02]Write i2c OK [09:01:02]MH_I2C_Read... [09:01:02]Read from MH i2c: F0 [09:01:02]MH_I2C_Read... [09:01:02]Read from MH i2c: F0 09 00 [09:01:02]MH_I2C_Read... [09:01:02]Read from MH i2c: F0 09 00 0F 39 00 53 01 1E 67 50 D1 6C 64 0A [09:01:02]GetLastDocTimeStamp 1730019048 [09:01:02]current date 1730019667 [09:01:02]FM_GetShiftState [09:01:02]SAM_PROTO_GetShiftState [09:01:02]wFMCommunicate request_size=4 [09:01:02]MH_SAM_APDU [09:01:02]CAPDU: 80 13 01 00 [09:01:02]Write to MH i2c: E2 08 00 10 39 80 13 01 00 00 00 00 00 C6 [09:01:02]Write i2c OK [09:01:02]MH_I2C_Read... [09:01:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:01:02]Read from MH i2c: E2 [09:01:02]MH_I2C_Read... [09:01:02]Read from MH i2c: E2 0E 00 [09:01:02]MH_I2C_Read... [09:01:02]Read from MH i2c: E2 0E 00 10 39 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 93 [09:01:02]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [09:01:02]wFMCommunicate OK [09:01:02]SAM_PROTO_GetShiftState done [09:01:02]FM_GetShiftState done [09:01:02]opened in 1729989044 [09:01:02]opened+sec_in_day 1730075444 [09:01:02]quantity*price = 100015 [09:01:02]sum+1 = 100017 [09:01:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 29 27.10.2024 09:01 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156478 ФПД: 122302855202470 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T090107&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156478&fm=122302855202470&tin=02508201610067®Number=0000000000091693&sum=100000 [09:01:03]StoreToDocumentArchive [09:01:03]shift 537 fd 156478 [09:01:03]save to /storage/0537/doc_00156478 [09:01:03]save last doc name /storage/0537/doc_00156478 to /storage/kkm_last_doc_name [09:01:03]save OK [09:01:03]Clear old archive folders... [09:01:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:01:03]tlvbuf is 016A99C0 [09:01:03]SAM_PROTO_ClearQueue [09:01:03]wFMCommunicate request_size=4 [09:01:03]MH_SAM_APDU [09:01:03]CAPDU: 80 09 00 00 [09:01:03]Write to MH i2c: E2 08 00 1D 39 80 09 00 00 00 00 00 00 C8 [09:01:03]Write i2c OK [09:01:03]MH_I2C_Read... [09:01:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:01:03]Read from MH i2c: E2 [09:01:03]MH_I2C_Read... [09:01:03]Read from MH i2c: E2 03 00 [09:01:03]MH_I2C_Read... [09:01:03]Read from MH i2c: E2 03 00 1D 39 00 90 00 CA [09:01:03]RAPDU: 90 00 [09:01:03]wFMCommunicate OK [09:01:03]SAM_PROTO_ClearQueue done [09:01:03]KKMCreateOFDPacket [09:01:03]OFDProtocolAddRootSTLVToBuf [09:01:03]FM_MakeSignedData [09:01:03]FM_MakeSignedData [09:01:03]SAM_PROTO_SignData [09:01:03]wFMCommunicate request_size=4 [09:01:03]MH_SAM_APDU [09:01:03]CAPDU: 80 0D 01 02 [09:01:03]Write to MH i2c: E2 08 00 1E 39 80 0D 01 02 00 00 00 00 D0 [09:01:03]Write i2c OK [09:01:03]MH_I2C_Read... [09:01:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:01:03]Read from MH i2c: E2 [09:01:03]MH_I2C_Read... [09:01:03]Read from MH i2c: E2 03 00 [09:01:03]MH_I2C_Read... [09:01:03]Read from MH i2c: E2 03 00 1E 39 00 90 00 CB [09:01:03]RAPDU: 90 00 [09:01:03]wFMCommunicate OK [09:01:03]wFMCommunicate request_size=255 [09:01:03]MH_SAM_APDU [09:01: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 53 01 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3E 63 02 00 35 04 06 00 6F [09:01:03]Write to MH i2c: E2 02 01 1F 39 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 53 01 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3E 63 02 00 35 04 06 00 6F 00 00 81 [09:01:03]Write i2c OK [09:01:03]MH_I2C_Read... [09:01:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:01:04]Read from MH i2c: E2 [09:01:04]MH_I2C_Read... [09:01:04]Read from MH i2c: E2 03 00 [09:01:04]MH_I2C_Read... [09:01:04]Read from MH i2c: E2 03 00 1F 39 00 90 00 CC [09:01:04]RAPDU: 90 00 [09:01:04]wFMCommunicate OK [09:01:04]wFMCommunicate request_size=10 [09:01:04]MH_SAM_APDU [09:01:04]CAPDU: 80 0D 02 02 05 3B DA 3D 46 A6 [09:01:04]Write to MH i2c: E2 0D 00 20 39 80 0D 02 02 05 00 3B DA 3D 46 A6 00 00 1B [09:01:04]Write i2c OK [09:01:04]MH_I2C_Read... [09:01:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:01:04]Read from MH i2c: E2 [09:01:04]MH_I2C_Read... [09:01:04]Read from MH i2c: E2 03 00 [09:01:04]MH_I2C_Read... [09:01:04]Read from MH i2c: E2 03 00 20 39 00 90 00 CD [09:01:04]RAPDU: 90 00 [09:01:04]wFMCommunicate OK [09:01:04]wFMCommunicate request_size=4 [09:01:04]MH_SAM_APDU [09:01:04]CAPDU: 80 0D 03 02 [09:01:04]Write to MH i2c: E2 08 00 21 39 80 0D 03 02 00 00 00 00 D5 [09:01:04]Write i2c OK [09:01:04]MH_I2C_Read... [09:01:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:01:04]Read from MH i2c: E2 [09:01:04]MH_I2C_Read... [09:01:04]Read from MH i2c: E2 0B 00 [09:01:04]MH_I2C_Read... [09:01:04]Read from MH i2c: E2 0B 00 21 39 00 98 03 DC 5E CD B1 0E 66 90 00 9D [09:01:04]RAPDU: 98 03 DC 5E CD B1 0E 66 90 00 [09:01:04]wFMCommunicate OK [09:01:04]SAM_PROTO_SignData done [09:01:04]FM_MakeSignedData done [09:01:04]CreateOFDProtocolMessage [09:01:04]wFMCommunicate request_size=4 [09:01:04]MH_SAM_APDU [09:01:04]CAPDU: 80 11 00 00 [09:01:04]Write to MH i2c: E2 08 00 22 39 80 11 00 00 00 00 00 00 D5 [09:01:04]Write i2c OK [09:01:04]MH_I2C_Read... [09:01:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:01:04]Read from MH i2c: E2 [09:01:04]MH_I2C_Read... [09:01:04]Read from MH i2c: E2 17 00 [09:01:04]MH_I2C_Read... [09:01:04]Read from MH i2c: E2 17 00 22 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 2A [09:01:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:01:04]wFMCommunicate OK [09:01:04]CreateOFDProtocolMessage done [09:01:04]OFDSenderStorePacket 156478 [09:01:04]StoreOFDPacket docnum=156478 [09:01:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 25 E4 07 01 1E 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 53 01 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3E 63 02 00 35 04 06 00 6F 3B DA 3D 46 A6 98 03 DC 5E CD B1 0E 66 [09:01:04]CheckFolder [09:01:04]dirname=/storage/ofd_packets [09:01:04]CheckFolder done [09:01:04]ProducePacketName [09:01:04]name=ofd_packets/00156478 [09:01:04]NVStorageSaveData ofd_packets/00156478 [09:01:04]File name is /storage/ofd_packets/00156478 [09:01:04]Write 301 bytes [09:01:04]NVStorageSaveData done [09:01:04]OFDSenderStorePacket done [09:01:04]KKMCreateOFDPacket done [09:01:04]NVStorageSaveData kkm_last_timestamp [09:01:04]File name is /storage/kkm_last_timestamp [09:01:04]Write 4 bytes [09:01:04]NVStorageSaveData done [09:01:04]ExternCall_PrintAddStr [09:01:04]wPrintStart [09:01:04]Write to MH i2c: 01 00 00 23 39 5C [09:01:04]Write i2c OK [09:01:04]MH_I2C_Read... [09:01:04]Read from MH i2c: 01 [09:01:04]MH_I2C_Read... [09:01:04]Read from MH i2c: 01 07 00 [09:01:04]MH_I2C_Read... [09:01:04]Read from MH i2c: 01 07 00 23 39 00 00 00 00 00 FF 0F 71 [09:01:04]RasterBufferAndPrint [09:01:04]line Счет N : (1)99291 [09:01:04]line ИНН: 02508201610067 [09:01:04]line Контрольно-Кассовый Чек [09:01:04]line ПРОДАЖА [09:01:04]line ТРК (МРК, ГНК) : 21 [09:01:04]line Товар: 2710124130 [09:01:04]line Аи-92-К-5 [09:01:04]line 14.950 * 66.90 [09:01:04]line = 1000.16 [09:01:04]line НДС 12% НСП 1% [09:01:04]line > о реализуемом товаре [09:01:04]line ОКРУГЛЕНИЕ: -0.16 [09:01:04]line ИТОГО: 1000.00 [09:01:04]line Внесено: 1000.00 [09:01:04]line СДАЧА: 0.00 [09:01:04]line НСП 1% : 8.85 [09:01:04]line НДС 12% : 106.21 [09:01:04]line Наличными: 1000.00 [09:01:04]line Безнал.: 0.00 [09:01:04]line Место: АЗС № 143 "Партнер Нефть" [09:01:04]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [09:01:04]line СНО: Общий режим [09:01:04]line Чек 29 27.10.2024 09:01 [09:01:04]line Смена: 537 ФФД: 1.0 [09:01:04]line ЗНМ: 0300000096 [09:01:04]line РНМ: 0000000000091693 [09:01:04]line Версия ККМ: 001 [09:01:04]line ФМ: 0000000000871792 [09:01:04]line ФД: 156478 [09:01:04]line ФПД: 122302855202470 [09:01:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T090107&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156478&fm=122302855202470&tin=02508201610067®Number=0000000000091693&sum=100000 [09:01:04]OFD Sender: Processing packet 156478 [packets to send 31, broken 30] [09:01:04]ProducePacketName [09:01:04]name=ofd_packets/00156478 [09:01:04]OFD Sender: To server: pG, [09:01:04]CommunicateWithHost lk.salyk.kg:30040 [09:01:04]ConnectInit lk.salyk.kg [09:01:04]written 0, free lines is 4095 [09:01:04]Connected sock=10 [09:01:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 25 E4 07 01 1E 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 53 01 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3E 63 02 00 35 04 06 00 6F 3B DA 3D 46 A6 98 03 DC 5E CD B1 0E 66 [09:01:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 C5 B3 47 00 2D 93 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3E 63 02 00 F4 03 04 00 C3 A6 1D 67 B6 04 01 00 00 00 E0 0D F8 B9 86 A4 6F [09:01:05]CommunicateWithHost err = 0 [09:01:05]CheckOFDResponse [09:01:05]1017 (14) - 77093643461234 [09:01:05]1041 (16) - 0000000000871792 [09:01:05]1040 (4) - 156478 [09:01:05]1012 (4) - 27.10.2024 02:34 [09:01:05]1206 (1) - 0 [09:01:05]OFD Sender: Remove packet 156478 [09:01:05]ProducePacketName [09:01:05]name=ofd_packets/00156478 [09:01:05]NVStorageDeleteData [09:01:05]Write to MH i2c: 01 00 00 4E 39 87 [09:01:05]Write i2c OK [09:01:05]MH_I2C_Read... [09:01:05]Read from MH i2c: 01 [09:01:05]MH_I2C_Read... [09:01:05]Read from MH i2c: 01 07 00 [09:01:05]MH_I2C_Read... [09:01:05]Read from MH i2c: 01 07 00 4E 39 00 00 00 00 00 D6 0C 70 [09:01:05]RasterBufferAndPrint [09:01:05]line [09:01:05]line [09:01:05]line [09:01:05]line [09:01:05]line [09:01:05]written 0, free lines is 3294 [09:01:05]process_action close_receipt done [09:01:05]requested_data is exist [09:01:05]produce_requested_data [09:01:05]requested_item fm.sn is exist - process it [09:01:05]wFMCommunicate request_size=4 [09:01:05]MH_SAM_APDU [09:01:05]CAPDU: 80 11 00 00 [09:01:05]Write to MH i2c: E2 08 00 55 39 80 11 00 00 00 00 00 00 08 [09:01:05]Write i2c OK [09:01:05]MH_I2C_Read... [09:01:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:01:05]Read from MH i2c: E2 [09:01:05]MH_I2C_Read... [09:01:05]Read from MH i2c: E2 17 00 [09:01:05]MH_I2C_Read... [09:01:05]Read from MH i2c: E2 17 00 55 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 5D [09:01:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:01:05]wFMCommunicate OK [09:01:05]requested_item fd.num is exist - process it [09:01:05]SAM_PROTO_GetFieldsCounters [09:01:05]wFMCommunicate request_size=4 [09:01:05]MH_SAM_APDU [09:01:05]CAPDU: 80 13 00 00 [09:01:05]Write to MH i2c: E2 08 00 56 39 80 13 00 00 00 00 00 00 0B [09:01:05]Write i2c OK [09:01:05]MH_I2C_Read... [09:01:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:01:05]Read from MH i2c: E2 [09:01:05]MH_I2C_Read... [09:01:05]Read from MH i2c: E2 62 00 [09:01:05]MH_I2C_Read... [09:01:05]Read from MH i2c: E2 62 00 56 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 3E 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 46 [09:01:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 3E 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:01:05]wFMCommunicate OK [09:01:05]SAM_PROTO_GetFieldsCounters done [09:01:05]requested_item shift.num is exist - process it [09:01:05]requested_item shift.opened is exist - process it [09:01:05]req_shift_opened [09:01:05]FM_GetShiftState [09:01:05]SAM_PROTO_GetShiftState [09:01:05]wFMCommunicate request_size=4 [09:01:05]MH_SAM_APDU [09:01:05]CAPDU: 80 13 01 00 [09:01:05]Write to MH i2c: E2 08 00 57 39 80 13 01 00 00 00 00 00 0D [09:01:05]Write i2c OK [09:01:05]MH_I2C_Read... [09:01:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:01:05]Read from MH i2c: E2 [09:01:05]MH_I2C_Read... [09:01:05]Read from MH i2c: E2 0E 00 [09:01:05]MH_I2C_Read... [09:01:05]Read from MH i2c: E2 0E 00 57 39 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 DA [09:01:05]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [09:01:05]wFMCommunicate OK [09:01:05]SAM_PROTO_GetShiftState done [09:01:05]FM_GetShiftState done [09:01:05]req_shift_opened done [09:01:05]requested_item shift.open_date is exist - process it [09:01:05]req_shift_open_date [09:01:05]req_shift_open_date done [09:01:05]produce_requested_data done [09:01:05]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156478,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [09:01:05]process_action_free close_receipt [09:01:05]json_value_free [09:01:05]json_value_free done [09:01:05]process_json_proto returns [09:01:05]Send response to host [09:01:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156478,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [09:01:05]free response buf [09:01:05]execute_script done [09:01:05]execute_script returns [09:01:05]free content buf [09:01:05]Sock 9.Close socket [09:01:05]Sock 9.Thread stoped [09:01:05]OFD Sender: No OFD packet to send [09:01:10]OFD Sender: No OFD packet to send [09:01:15]OFD Sender: No OFD packet to send [09:01:20]OFD Sender: No OFD packet to send [09:01:25]OFD Sender: No OFD packet to send [09:01:30]OFD Sender: No OFD packet to send [09:01:35]OFD Sender: No OFD packet to send [09:01:40]OFD Sender: No OFD packet to send [09:01:45]OFD Sender: No OFD packet to send [09:01:50]OFD Sender: No OFD packet to send [09:01:55]OFD Sender: No OFD packet to send [09:02:00]OFD Sender: No OFD packet to send [09:02:05]OFD Sender: No OFD packet to send [09:02:10]OFD Sender: No OFD packet to send [09:02:15]OFD Sender: No OFD packet to send [09:02:20]OFD Sender: No OFD packet to send [09:02:25]OFD Sender: No OFD packet to send [09:02:27]accept exits with 8 [09:02:27]New connection [09:02:27]New thread 3066977636 created [09:02:27]Thread 3066834276 joined [09:02:27]Waiting for new connection... [09:02:27] Sock 8.Parse request [09:02:27]Sock 8.Check first char [09:02:27]Sock 8.First char is OK [09:02:27]request: POST /json_proto HTTP/1.0 [09:02:27]Method: POST [09:02:27]URL: /json_proto [09:02:27]Method is POST - this is cgi request [09:02:27]url: /json_proto [09:02:27]query_string will be loaded in cgi processing [09:02:27]execute_cgi json_proto POST (null) [09:02:27]execute_cgi path=json_proto method=POST [09:02:27]POST find Content-Length [09:02:27]Host: 172.17.63.3:8080 [09:02:27]Content-Length: 678 [09:02:27]Content-Type: application/json [09:02:27] [09:02:27]POST finish read [09:02:27]Found Content-Length = 678 [09:02:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99292", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:02:27]execute_script... [09:02:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99292", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:02:27]POST & json_proto [09:02:27]process_json_proto [09:02:27]json parsed OK: [09:02:27]protocol is kg_v1.0 [09:02:27]action value=close_receipt [09:02:27]process_action close_receipt [09:02:27]cmd_close_receipt [09:02:27]MH_GetDate [09:02:27]Write to MH i2c: F0 00 00 58 39 80 [09:02:27]Write i2c OK [09:02:27]MH_I2C_Read... [09:02:27]Read from MH i2c: F0 [09:02:27]MH_I2C_Read... [09:02:27]Read from MH i2c: F0 09 00 [09:02:27]MH_I2C_Read... [09:02:27]Read from MH i2c: F0 09 00 58 39 00 A8 01 1E 67 50 D1 6C 64 A8 [09:02:27]GetLastDocTimeStamp 1730019667 [09:02:27]current date 1730019752 [09:02:27]FM_GetShiftState [09:02:27]SAM_PROTO_GetShiftState [09:02:27]wFMCommunicate request_size=4 [09:02:27]MH_SAM_APDU [09:02:27]CAPDU: 80 13 01 00 [09:02:27]Write to MH i2c: E2 08 00 59 39 80 13 01 00 00 00 00 00 0F [09:02:27]Write i2c OK [09:02:27]MH_I2C_Read... [09:02:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:02:27]Read from MH i2c: E2 [09:02:27]MH_I2C_Read... [09:02:27]Read from MH i2c: E2 0E 00 [09:02:27]MH_I2C_Read... [09:02:27]Read from MH i2c: E2 0E 00 59 39 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 DC [09:02:27]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [09:02:27]wFMCommunicate OK [09:02:27]SAM_PROTO_GetShiftState done [09:02:27]FM_GetShiftState done [09:02:27]opened in 1729989044 [09:02:27]opened+sec_in_day 1730075444 [09:02:27]quantity*price = 200025 [09:02:27]sum+1 = 200026 [09:02:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 30 27.10.2024 09:02 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156479 ФПД: 251259109760615 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T090232&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156479&fm=251259109760615&tin=02508201610067®Number=0000000000091693&sum=200000 [09:02:28]StoreToDocumentArchive [09:02:28]shift 537 fd 156479 [09:02:28]save to /storage/0537/doc_00156479 [09:02:28]save last doc name /storage/0537/doc_00156479 to /storage/kkm_last_doc_name [09:02:28]save OK [09:02:28]Clear old archive folders... [09:02:28]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:02:28]tlvbuf is 016A9950 [09:02:28]SAM_PROTO_ClearQueue [09:02:28]wFMCommunicate request_size=4 [09:02:28]MH_SAM_APDU [09:02:28]CAPDU: 80 09 00 00 [09:02:28]Write to MH i2c: E2 08 00 66 39 80 09 00 00 00 00 00 00 11 [09:02:28]Write i2c OK [09:02:28]MH_I2C_Read... [09:02:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:02:28]Read from MH i2c: E2 [09:02:28]MH_I2C_Read... [09:02:28]Read from MH i2c: E2 03 00 [09:02:28]MH_I2C_Read... [09:02:28]Read from MH i2c: E2 03 00 66 39 00 90 00 13 [09:02:28]RAPDU: 90 00 [09:02:28]wFMCommunicate OK [09:02:28]SAM_PROTO_ClearQueue done [09:02:28]KKMCreateOFDPacket [09:02:28]OFDProtocolAddRootSTLVToBuf [09:02:28]FM_MakeSignedData [09:02:28]FM_MakeSignedData [09:02:28]SAM_PROTO_SignData [09:02:28]wFMCommunicate request_size=4 [09:02:28]MH_SAM_APDU [09:02:28]CAPDU: 80 0D 01 02 [09:02:28]Write to MH i2c: E2 08 00 67 39 80 0D 01 02 00 00 00 00 19 [09:02:28]Write i2c OK [09:02:28]MH_I2C_Read... [09:02:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:02:28]Read from MH i2c: E2 [09:02:28]MH_I2C_Read... [09:02:28]Read from MH i2c: E2 03 00 [09:02:28]MH_I2C_Read... [09:02:28]Read from MH i2c: E2 03 00 67 39 00 90 00 14 [09:02:28]RAPDU: 90 00 [09:02:28]wFMCommunicate OK [09:02:28]wFMCommunicate request_size=255 [09:02:28]MH_SAM_APDU [09:02:28]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 A8 01 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3F 63 02 00 35 04 06 00 E4 84 D1 FB [09:02:28]Write to MH i2c: E2 02 01 68 39 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 A8 01 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3F 63 02 00 35 04 06 00 E4 84 D1 FB 00 00 D0 [09:02:28]Write i2c OK [09:02:28]MH_I2C_Read... [09:02:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:02:29]Read from MH i2c: E2 [09:02:29]MH_I2C_Read... [09:02:29]Read from MH i2c: E2 03 00 [09:02:29]MH_I2C_Read... [09:02:29]Read from MH i2c: E2 03 00 68 39 00 90 00 15 [09:02:29]RAPDU: 90 00 [09:02:29]wFMCommunicate OK [09:02:29]wFMCommunicate request_size=7 [09:02:29]MH_SAM_APDU [09:02:29]CAPDU: 80 0D 02 02 02 DE 67 [09:02:29]Write to MH i2c: E2 0A 00 69 39 80 0D 02 02 02 00 DE 67 00 00 65 [09:02:29]Write i2c OK [09:02:29]MH_I2C_Read... [09:02:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:02:29]Read from MH i2c: E2 [09:02:29]MH_I2C_Read... [09:02:29]Read from MH i2c: E2 03 00 [09:02:29]MH_I2C_Read... [09:02:29]Read from MH i2c: E2 03 00 69 39 00 90 00 16 [09:02:29]RAPDU: 90 00 [09:02:29]wFMCommunicate OK [09:02:29]wFMCommunicate request_size=4 [09:02:29]MH_SAM_APDU [09:02:29]CAPDU: 80 0D 03 02 [09:02:29]Write to MH i2c: E2 08 00 6A 39 80 0D 03 02 00 00 00 00 1E [09:02:29]Write i2c OK [09:02:29]MH_I2C_Read... [09:02:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:02:29]Read from MH i2c: E2 [09:02:29]MH_I2C_Read... [09:02:29]Read from MH i2c: E2 0B 00 [09:02:29]MH_I2C_Read... [09:02:29]Read from MH i2c: E2 0B 00 6A 39 00 C4 9C B8 48 35 F0 32 DD 90 00 B3 [09:02:29]RAPDU: C4 9C B8 48 35 F0 32 DD 90 00 [09:02:29]wFMCommunicate OK [09:02:29]SAM_PROTO_SignData done [09:02:29]FM_MakeSignedData done [09:02:29]CreateOFDProtocolMessage [09:02:29]wFMCommunicate request_size=4 [09:02:29]MH_SAM_APDU [09:02:29]CAPDU: 80 11 00 00 [09:02:29]Write to MH i2c: E2 08 00 6B 39 80 11 00 00 00 00 00 00 1E [09:02:29]Write i2c OK [09:02:29]MH_I2C_Read... [09:02:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:02:29]Read from MH i2c: E2 [09:02:29]MH_I2C_Read... [09:02:29]Read from MH i2c: E2 17 00 [09:02:29]MH_I2C_Read... [09:02:29]Read from MH i2c: E2 17 00 6B 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 73 [09:02:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:02:29]wFMCommunicate OK [09:02:29]CreateOFDProtocolMessage done [09:02:29]OFDSenderStorePacket 156479 [09:02:29]StoreOFDPacket docnum=156479 [09:02:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 B3 AF 04 01 3E D1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 A8 01 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3F 63 02 00 35 04 06 00 E4 84 D1 FB DE 67 C4 9C B8 48 35 F0 32 DD [09:02:29]CheckFolder [09:02:29]dirname=/storage/ofd_packets [09:02:29]CheckFolder done [09:02:29]ProducePacketName [09:02:29]name=ofd_packets/00156479 [09:02:29]NVStorageSaveData ofd_packets/00156479 [09:02:29]File name is /storage/ofd_packets/00156479 [09:02:29]Write 298 bytes [09:02:29]NVStorageSaveData done [09:02:29]OFDSenderStorePacket done [09:02:29]KKMCreateOFDPacket done [09:02:29]NVStorageSaveData kkm_last_timestamp [09:02:29]File name is /storage/kkm_last_timestamp [09:02:29]Write 4 bytes [09:02:29]NVStorageSaveData done [09:02:29]ExternCall_PrintAddStr [09:02:29]wPrintStart [09:02:29]Write to MH i2c: 01 00 00 6C 39 A5 [09:02:29]Write i2c OK [09:02:29]MH_I2C_Read... [09:02:29]Read from MH i2c: 01 [09:02:29]MH_I2C_Read... [09:02:29]Read from MH i2c: 01 07 00 [09:02:29]MH_I2C_Read... [09:02:29]Read from MH i2c: 01 07 00 6C 39 00 00 00 00 00 FF 0F BA [09:02:29]RasterBufferAndPrint [09:02:29]line Счет N : (1)99292 [09:02:29]line ИНН: 02508201610067 [09:02:29]line Контрольно-Кассовый Чек [09:02:29]line ПРОДАЖА [09:02:29]line ТРК (МРК, ГНК) : 32 [09:02:29]line Товар: 2710194210 [09:02:29]line ДТ-К-5 [09:02:29]line 26.250 * 76.20 [09:02:29]line = 2000.25 [09:02:29]line НДС 12% НСП 1% [09:02:29]line > о реализуемом товаре [09:02:29]line ОКРУГЛЕНИЕ: -0.25 [09:02:29]line ИТОГО: 2000.00 [09:02:29]line Внесено: 2000.00 [09:02:29]line СДАЧА: 0.00 [09:02:29]line НСП 1% : 17.70 [09:02:29]line НДС 12% : 212.42 [09:02:29]line Наличными: 2000.00 [09:02:29]line Безнал.: 0.00 [09:02:29]line Место: АЗС № 143 "Партнер Нефть" [09:02:29]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [09:02:29]line СНО: Общий режим [09:02:29]line Чек 30 27.10.2024 09:02 [09:02:29]line Смена: 537 ФФД: 1.0 [09:02:29]line ЗНМ: 0300000096 [09:02:29]line РНМ: 0000000000091693 [09:02:29]line Версия ККМ: 001 [09:02:29]line ФМ: 0000000000871792 [09:02:29]line ФД: 156479 [09:02:29]line ФПД: 251259109760615 [09:02:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T090232&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156479&fm=251259109760615&tin=02508201610067®Number=0000000000091693&sum=200000 [09:02:29]OFD Sender: Processing packet 156479 [packets to send 31, broken 30] [09:02:29]ProducePacketName [09:02:29]name=ofd_packets/00156479 [09:02:29]OFD Sender: To server: pG, [09:02:29]CommunicateWithHost lk.salyk.kg:30040 [09:02:29]ConnectInit lk.salyk.kg [09:02:29]written 0, free lines is 4095 [09:02:29]Connected sock=10 [09:02:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 B3 AF 04 01 3E D1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 A8 01 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3F 63 02 00 35 04 06 00 E4 84 D1 FB DE 67 C4 9C B8 48 35 F0 32 DD [09:02:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 E0 0F 47 00 79 C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3F 63 02 00 F4 03 04 00 18 A7 1D 67 B6 04 01 00 00 03 86 F7 D5 B9 0D 6C 93 [09:02:30]CommunicateWithHost err = 0 [09:02:30]CheckOFDResponse [09:02:30]1017 (14) - 77093643461234 [09:02:30]1041 (16) - 0000000000871792 [09:02:30]1040 (4) - 156479 [09:02:30]1012 (4) - 27.10.2024 02:36 [09:02:30]1206 (1) - 0 [09:02:30]OFD Sender: Remove packet 156479 [09:02:30]ProducePacketName [09:02:30]name=ofd_packets/00156479 [09:02:30]NVStorageDeleteData [09:02:30]Write to MH i2c: 01 00 00 97 39 D0 [09:02:30]Write i2c OK [09:02:30]MH_I2C_Read... [09:02:30]Read from MH i2c: 01 [09:02:30]MH_I2C_Read... [09:02:30]Read from MH i2c: 01 07 00 [09:02:30]MH_I2C_Read... [09:02:30]Read from MH i2c: 01 07 00 97 39 00 00 00 00 00 DA 0C BD [09:02:30]RasterBufferAndPrint [09:02:30]line [09:02:30]line [09:02:30]line [09:02:30]line [09:02:30]line [09:02:30]written 0, free lines is 3297 [09:02:30]process_action close_receipt done [09:02:30]requested_data is exist [09:02:30]produce_requested_data [09:02:30]requested_item fm.sn is exist - process it [09:02:30]wFMCommunicate request_size=4 [09:02:30]MH_SAM_APDU [09:02:30]CAPDU: 80 11 00 00 [09:02:30]Write to MH i2c: E2 08 00 9E 39 80 11 00 00 00 00 00 00 51 [09:02:30]Write i2c OK [09:02:30]MH_I2C_Read... [09:02:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:02:30]Read from MH i2c: E2 [09:02:30]MH_I2C_Read... [09:02:30]Read from MH i2c: E2 17 00 [09:02:30]MH_I2C_Read... [09:02:30]Read from MH i2c: E2 17 00 9E 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 A6 [09:02:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:02:30]wFMCommunicate OK [09:02:30]requested_item fd.num is exist - process it [09:02:30]SAM_PROTO_GetFieldsCounters [09:02:30]wFMCommunicate request_size=4 [09:02:30]MH_SAM_APDU [09:02:30]CAPDU: 80 13 00 00 [09:02:30]Write to MH i2c: E2 08 00 9F 39 80 13 00 00 00 00 00 00 54 [09:02:30]Write i2c OK [09:02:30]MH_I2C_Read... [09:02:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:02:30]Read from MH i2c: E2 [09:02:30]MH_I2C_Read... [09:02:30]Read from MH i2c: E2 62 00 [09:02:30]MH_I2C_Read... [09:02:30]Read from MH i2c: E2 62 00 9F 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 3F 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 93 [09:02:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 3F 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:02:30]wFMCommunicate OK [09:02:30]SAM_PROTO_GetFieldsCounters done [09:02:30]requested_item shift.num is exist - process it [09:02:30]requested_item shift.opened is exist - process it [09:02:30]req_shift_opened [09:02:30]FM_GetShiftState [09:02:30]SAM_PROTO_GetShiftState [09:02:30]wFMCommunicate request_size=4 [09:02:30]MH_SAM_APDU [09:02:30]CAPDU: 80 13 01 00 [09:02:30]Write to MH i2c: E2 08 00 A0 39 80 13 01 00 00 00 00 00 56 [09:02:30]Write i2c OK [09:02:30]MH_I2C_Read... [09:02:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:02:30]Read from MH i2c: E2 [09:02:30]MH_I2C_Read... [09:02:30]Read from MH i2c: E2 0E 00 [09:02:30]MH_I2C_Read... [09:02:30]Read from MH i2c: E2 0E 00 A0 39 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 23 [09:02:30]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [09:02:30]wFMCommunicate OK [09:02:30]SAM_PROTO_GetShiftState done [09:02:30]FM_GetShiftState done [09:02:30]req_shift_opened done [09:02:30]requested_item shift.open_date is exist - process it [09:02:30]req_shift_open_date [09:02:30]req_shift_open_date done [09:02:30]produce_requested_data done [09:02:30]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156479,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [09:02:30]process_action_free close_receipt [09:02:30]json_value_free [09:02:30]json_value_free done [09:02:30]process_json_proto returns [09:02:30]Send response to host [09:02:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156479,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [09:02:30]free response buf [09:02:30]execute_script done [09:02:30]execute_script returns [09:02:30]free content buf [09:02:30]Sock 8.Close socket [09:02:30]Sock 8.Thread stoped [09:02:30]OFD Sender: No OFD packet to send [09:02:35]OFD Sender: No OFD packet to send [09:02:40]OFD Sender: No OFD packet to send [09:02:45]OFD Sender: No OFD packet to send [09:02:50]OFD Sender: No OFD packet to send [09:02:55]OFD Sender: No OFD packet to send [09:03:00]OFD Sender: No OFD packet to send [09:03:05]OFD Sender: No OFD packet to send [09:03:10]OFD Sender: No OFD packet to send [09:03:15]OFD Sender: No OFD packet to send [09:03:20]OFD Sender: No OFD packet to send [09:03:25]OFD Sender: No OFD packet to send [09:03:30]OFD Sender: No OFD packet to send [09:03:35]OFD Sender: No OFD packet to send [09:03:40]OFD Sender: No OFD packet to send [09:03:45]OFD Sender: No OFD packet to send [09:03:50]OFD Sender: No OFD packet to send [09:03:55]OFD Sender: No OFD packet to send [09:04:00]OFD Sender: No OFD packet to send [09:04:05]OFD Sender: No OFD packet to send [09:04:10]OFD Sender: No OFD packet to send [09:04:15]OFD Sender: No OFD packet to send [09:04:20]OFD Sender: No OFD packet to send [09:04:25]OFD Sender: No OFD packet to send [09:04:30]OFD Sender: No OFD packet to send [09:04:35]OFD Sender: No OFD packet to send [09:04:40]OFD Sender: No OFD packet to send [09:04:45]OFD Sender: No OFD packet to send [09:04:50]OFD Sender: No OFD packet to send [09:04:55]OFD Sender: No OFD packet to send [09:05:00]OFD Sender: No OFD packet to send [09:05:05]OFD Sender: No OFD packet to send [09:05:10]OFD Sender: No OFD packet to send [09:05:15]OFD Sender: No OFD packet to send [09:05:20]OFD Sender: No OFD packet to send [09:05:25]OFD Sender: No OFD packet to send [09:05:30]OFD Sender: No OFD packet to send [09:05:35]OFD Sender: No OFD packet to send [09:05:40]OFD Sender: No OFD packet to send [09:05:45]OFD Sender: No OFD packet to send [09:05:50]OFD Sender: No OFD packet to send [09:05:55]OFD Sender: No OFD packet to send [09:06:00]OFD Sender: No OFD packet to send [09:06:05]OFD Sender: No OFD packet to send [09:06:10]OFD Sender: No OFD packet to send [09:06:15]OFD Sender: No OFD packet to send [09:06:20]OFD Sender: No OFD packet to send [09:06:25]OFD Sender: No OFD packet to send [09:06:30]OFD Sender: No OFD packet to send [09:06:35]OFD Sender: No OFD packet to send [09:06:40]OFD Sender: No OFD packet to send [09:06:45]OFD Sender: No OFD packet to send [09:06:50]OFD Sender: No OFD packet to send [09:06:55]OFD Sender: No OFD packet to send [09:07:00]OFD Sender: No OFD packet to send [09:07:05]OFD Sender: No OFD packet to send [09:07:10]OFD Sender: No OFD packet to send [09:07:15]OFD Sender: No OFD packet to send [09:07:20]OFD Sender: No OFD packet to send [09:07:25]OFD Sender: No OFD packet to send [09:07:30]OFD Sender: No OFD packet to send [09:07:35]OFD Sender: No OFD packet to send [09:07:40]OFD Sender: No OFD packet to send [09:07:45]OFD Sender: No OFD packet to send [09:07:50]OFD Sender: No OFD packet to send [09:07:55]OFD Sender: No OFD packet to send [09:08:00]OFD Sender: No OFD packet to send [09:08:05]OFD Sender: No OFD packet to send [09:08:10]OFD Sender: No OFD packet to send [09:08:15]OFD Sender: No OFD packet to send [09:08:20]OFD Sender: No OFD packet to send [09:08:25]OFD Sender: No OFD packet to send [09:08:30]OFD Sender: No OFD packet to send [09:08:34]accept exits with 9 [09:08:34]New connection [09:08:34]New thread 3066834276 created [09:08:34]Thread 3066977636 joined [09:08:34]Waiting for new connection... [09:08:34] Sock 9.Parse request [09:08:34]Sock 9.Check first char [09:08:34]Sock 9.First char is OK [09:08:34]request: POST /json_proto HTTP/1.0 [09:08:34]Method: POST [09:08:34]URL: /json_proto [09:08:34]Method is POST - this is cgi request [09:08:34]url: /json_proto [09:08:34]query_string will be loaded in cgi processing [09:08:34]execute_cgi json_proto POST (null) [09:08:34]execute_cgi path=json_proto method=POST [09:08:34]POST find Content-Length [09:08:34]Host: 172.17.63.3:8080 [09:08:34]Content-Length: 676 [09:08:34]Content-Type: application/json [09:08:34] [09:08:34]POST finish read [09:08:34]Found Content-Length = 676 [09:08:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99294", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:08:34]execute_script... [09:08: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)99294", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:08:34]POST & json_proto [09:08:34]process_json_proto [09:08:34]json parsed OK: [09:08:34]protocol is kg_v1.0 [09:08:34]action value=close_receipt [09:08:34]process_action close_receipt [09:08:34]cmd_close_receipt [09:08:34]MH_GetDate [09:08:34]Write to MH i2c: F0 00 00 A1 39 C9 [09:08:34]Write i2c OK [09:08:34]MH_I2C_Read... [09:08:34]Read from MH i2c: F0 [09:08:34]MH_I2C_Read... [09:08:34]Read from MH i2c: F0 09 00 [09:08:34]MH_I2C_Read... [09:08:34]Read from MH i2c: F0 09 00 A1 39 00 17 03 1E 67 50 D1 6C 64 62 [09:08:34]GetLastDocTimeStamp 1730019752 [09:08:34]current date 1730020119 [09:08:34]FM_GetShiftState [09:08:34]SAM_PROTO_GetShiftState [09:08:34]wFMCommunicate request_size=4 [09:08:34]MH_SAM_APDU [09:08:34]CAPDU: 80 13 01 00 [09:08:34]Write to MH i2c: E2 08 00 A2 39 80 13 01 00 00 00 00 00 58 [09:08:34]Write i2c OK [09:08:34]MH_I2C_Read... [09:08:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:34]Read from MH i2c: E2 [09:08:34]MH_I2C_Read... [09:08:34]Read from MH i2c: E2 0E 00 [09:08:34]MH_I2C_Read... [09:08:34]Read from MH i2c: E2 0E 00 A2 39 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 25 [09:08:34]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [09:08:34]wFMCommunicate OK [09:08:34]SAM_PROTO_GetShiftState done [09:08:34]FM_GetShiftState done [09:08:34]opened in 1729989044 [09:08:34]opened+sec_in_day 1730075444 [09:08:34]quantity*price = 30038 [09:08:34]sum+1 = 30039 [09:08:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 31 27.10.2024 09:08 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156480 ФПД: 254067862509360 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T090839&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156480&fm=254067862509360&tin=02508201610067®Number=0000000000091693&sum=30000 [09:08:35]StoreToDocumentArchive [09:08:35]shift 537 fd 156480 [09:08:35]save to /storage/0537/doc_00156480 [09:08:35]save last doc name /storage/0537/doc_00156480 to /storage/kkm_last_doc_name [09:08:35]save OK [09:08:35]Clear old archive folders... [09:08:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:08:35]tlvbuf is B6F5E7E0 [09:08:35]SAM_PROTO_ClearQueue [09:08:35]wFMCommunicate request_size=4 [09:08:35]MH_SAM_APDU [09:08:35]CAPDU: 80 09 00 00 [09:08:35]Write to MH i2c: E2 08 00 AF 39 80 09 00 00 00 00 00 00 5A [09:08:35]Write i2c OK [09:08:35]MH_I2C_Read... [09:08:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:08:35]Read from MH i2c: E2 [09:08:35]MH_I2C_Read... [09:08:35]Read from MH i2c: E2 03 00 [09:08:35]MH_I2C_Read... [09:08:35]Read from MH i2c: E2 03 00 AF 39 00 90 00 5C [09:08:35]RAPDU: 90 00 [09:08:35]wFMCommunicate OK [09:08:35]SAM_PROTO_ClearQueue done [09:08:35]KKMCreateOFDPacket [09:08:35]OFDProtocolAddRootSTLVToBuf [09:08:35]FM_MakeSignedData [09:08:35]FM_MakeSignedData [09:08:35]SAM_PROTO_SignData [09:08:35]wFMCommunicate request_size=4 [09:08:35]MH_SAM_APDU [09:08:35]CAPDU: 80 0D 01 02 [09:08:35]Write to MH i2c: E2 08 00 B0 39 80 0D 01 02 00 00 00 00 62 [09:08:35]Write i2c OK [09:08:35]MH_I2C_Read... [09:08:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:08:36]Read from MH i2c: E2 [09:08:36]MH_I2C_Read... [09:08:36]Read from MH i2c: E2 03 00 [09:08:36]MH_I2C_Read... [09:08:36]Read from MH i2c: E2 03 00 B0 39 00 90 00 5D [09:08:36]RAPDU: 90 00 [09:08:36]wFMCommunicate OK [09:08:36]wFMCommunicate request_size=255 [09:08:36]MH_SAM_APDU [09:08: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 17 03 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 40 63 02 00 35 04 06 00 E7 [09:08:36]Write to MH i2c: E2 02 01 B1 39 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 17 03 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 40 63 02 00 35 04 06 00 E7 00 00 4F [09:08:36]Write i2c OK [09:08:36]MH_I2C_Read... [09:08:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:36]Read from MH i2c: E2 [09:08:36]MH_I2C_Read... [09:08:36]Read from MH i2c: E2 03 00 [09:08:36]MH_I2C_Read... [09:08:36]Read from MH i2c: E2 03 00 B1 39 00 90 00 5E [09:08:36]RAPDU: 90 00 [09:08:36]wFMCommunicate OK [09:08:36]wFMCommunicate request_size=10 [09:08:36]MH_SAM_APDU [09:08:36]CAPDU: 80 0D 02 02 05 12 C8 B1 97 30 [09:08:36]Write to MH i2c: E2 0D 00 B2 39 80 0D 02 02 05 00 12 C8 B1 97 30 00 00 C1 [09:08:36]Write i2c OK [09:08:36]MH_I2C_Read... [09:08:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:36]Read from MH i2c: E2 [09:08:36]MH_I2C_Read... [09:08:36]Read from MH i2c: E2 03 00 [09:08:36]MH_I2C_Read... [09:08:36]Read from MH i2c: E2 03 00 B2 39 00 90 00 5F [09:08:36]RAPDU: 90 00 [09:08:36]wFMCommunicate OK [09:08:36]wFMCommunicate request_size=4 [09:08:36]MH_SAM_APDU [09:08:36]CAPDU: 80 0D 03 02 [09:08:36]Write to MH i2c: E2 08 00 B3 39 80 0D 03 02 00 00 00 00 67 [09:08:36]Write i2c OK [09:08:36]MH_I2C_Read... [09:08:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:08:36]Read from MH i2c: E2 [09:08:36]MH_I2C_Read... [09:08:36]Read from MH i2c: E2 0B 00 [09:08:36]MH_I2C_Read... [09:08:36]Read from MH i2c: E2 0B 00 B3 39 00 3D 73 F2 87 A0 E5 32 3E 90 00 86 [09:08:36]RAPDU: 3D 73 F2 87 A0 E5 32 3E 90 00 [09:08:36]wFMCommunicate OK [09:08:36]SAM_PROTO_SignData done [09:08:36]FM_MakeSignedData done [09:08:36]CreateOFDProtocolMessage [09:08:36]wFMCommunicate request_size=4 [09:08:36]MH_SAM_APDU [09:08:36]CAPDU: 80 11 00 00 [09:08:36]Write to MH i2c: E2 08 00 B4 39 80 11 00 00 00 00 00 00 67 [09:08:36]Write i2c OK [09:08:36]MH_I2C_Read... [09:08:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:36]Read from MH i2c: E2 [09:08:36]MH_I2C_Read... [09:08:36]Read from MH i2c: E2 17 00 [09:08:36]MH_I2C_Read... [09:08:36]Read from MH i2c: E2 17 00 B4 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 BC [09:08:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:08:36]wFMCommunicate OK [09:08:36]CreateOFDProtocolMessage done [09:08:36]OFDSenderStorePacket 156480 [09:08:36]StoreOFDPacket docnum=156480 [09:08:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 E5 B1 07 01 D4 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 17 03 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 40 63 02 00 35 04 06 00 E7 12 C8 B1 97 30 3D 73 F2 87 A0 E5 32 3E [09:08:36]CheckFolder [09:08:36]dirname=/storage/ofd_packets [09:08:36]CheckFolder done [09:08:36]ProducePacketName [09:08:36]name=ofd_packets/00156480 [09:08:36]NVStorageSaveData ofd_packets/00156480 [09:08:36]File name is /storage/ofd_packets/00156480 [09:08:36]Write 301 bytes [09:08:36]NVStorageSaveData done [09:08:36]OFDSenderStorePacket done [09:08:36]KKMCreateOFDPacket done [09:08:36]NVStorageSaveData kkm_last_timestamp [09:08:36]File name is /storage/kkm_last_timestamp [09:08:36]Write 4 bytes [09:08:36]NVStorageSaveData done [09:08:36]ExternCall_PrintAddStr [09:08:36]wPrintStart [09:08:36]Write to MH i2c: 01 00 00 B5 39 EE [09:08:36]Write i2c OK [09:08:36]MH_I2C_Read... [09:08:36]Read from MH i2c: 01 [09:08:36]MH_I2C_Read... [09:08:36]Read from MH i2c: 01 07 00 [09:08:36]MH_I2C_Read... [09:08:36]Read from MH i2c: 01 07 00 B5 39 00 00 00 00 00 FF 0F 03 [09:08:36]RasterBufferAndPrint [09:08:36]line Счет N : (1)99294 [09:08:36]line ИНН: 02508201610067 [09:08:36]line Контрольно-Кассовый Чек [09:08:36]line ПРОДАЖА [09:08:36]line ТРК (МРК, ГНК) : 11 [09:08:36]line Товар: 2710124130 [09:08:36]line Аи-92-К-5 [09:08:36]line 4.490 * 66.90 [09:08:36]line = 300.38 [09:08:36]line НДС 12% НСП 1% [09:08:36]line > о реализуемом товаре [09:08:36]line ОКРУГЛЕНИЕ: -0.38 [09:08:36]line ИТОГО: 300.00 [09:08:36]line Внесено: 300.00 [09:08:36]line СДАЧА: 0.00 [09:08:36]line НСП 1% : 2.66 [09:08:36]line НДС 12% : 31.90 [09:08:36]line Наличными: 300.00 [09:08:36]line Безнал.: 0.00 [09:08:36]line Место: АЗС № 143 "Партнер Нефть" [09:08:36]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [09:08:36]line СНО: Общий режим [09:08:36]line Чек 31 27.10.2024 09:08 [09:08:36]line Смена: 537 ФФД: 1.0 [09:08:36]line ЗНМ: 0300000096 [09:08:36]line РНМ: 0000000000091693 [09:08:36]line Версия ККМ: 001 [09:08:36]line ФМ: 0000000000871792 [09:08:36]line ФД: 156480 [09:08:36]line ФПД: 254067862509360 [09:08:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T090839&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156480&fm=254067862509360&tin=02508201610067®Number=0000000000091693&sum=30000 [09:08:36]OFD Sender: Processing packet 156480 [packets to send 31, broken 30] [09:08:36]ProducePacketName [09:08:36]name=ofd_packets/00156480 [09:08:36]OFD Sender: To server: pG, [09:08:36]CommunicateWithHost lk.salyk.kg:30040 [09:08:36]ConnectInit lk.salyk.kg [09:08:36]written 0, free lines is 4095 [09:08:36]Connected sock=10 [09:08:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 E5 B1 07 01 D4 0B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 17 03 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 40 63 02 00 35 04 06 00 E7 12 C8 B1 97 30 3D 73 F2 87 A0 E5 32 3E [09:08:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 40 59 47 00 C0 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 40 63 02 00 F4 03 04 00 87 A8 1D 67 B6 04 01 00 00 57 92 45 6A 53 6E C8 46 [09:08:37]CommunicateWithHost err = 0 [09:08:37]CheckOFDResponse [09:08:37]1017 (14) - 77093643461234 [09:08:37]1041 (16) - 0000000000871792 [09:08:37]1040 (4) - 156480 [09:08:37]1012 (4) - 27.10.2024 02:42 [09:08:37]1206 (1) - 0 [09:08:37]OFD Sender: Remove packet 156480 [09:08:37]ProducePacketName [09:08:37]name=ofd_packets/00156480 [09:08:37]NVStorageDeleteData [09:08:37]Write to MH i2c: 01 00 00 E0 39 19 [09:08:37]Write i2c OK [09:08:37]MH_I2C_Read... [09:08:37]Read from MH i2c: 01 [09:08:37]MH_I2C_Read... [09:08:37]Read from MH i2c: 01 07 00 [09:08:37]MH_I2C_Read... [09:08:37]Read from MH i2c: 01 07 00 E0 39 00 00 00 00 00 D4 0C 00 [09:08:37]RasterBufferAndPrint [09:08:37]line [09:08:37]line [09:08:37]line [09:08:37]line [09:08:37]line [09:08:37]written 0, free lines is 3292 [09:08:37]process_action close_receipt done [09:08:37]requested_data is exist [09:08:37]produce_requested_data [09:08:37]requested_item fm.sn is exist - process it [09:08:37]wFMCommunicate request_size=4 [09:08:37]MH_SAM_APDU [09:08:37]CAPDU: 80 11 00 00 [09:08:37]Write to MH i2c: E2 08 00 E7 39 80 11 00 00 00 00 00 00 9A [09:08:37]Write i2c OK [09:08:37]MH_I2C_Read... [09:08:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:37]Read from MH i2c: E2 [09:08:37]MH_I2C_Read... [09:08:37]Read from MH i2c: E2 17 00 [09:08:37]MH_I2C_Read... [09:08:37]Read from MH i2c: E2 17 00 E7 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 EF [09:08:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:08:37]wFMCommunicate OK [09:08:37]requested_item fd.num is exist - process it [09:08:37]SAM_PROTO_GetFieldsCounters [09:08:37]wFMCommunicate request_size=4 [09:08:37]MH_SAM_APDU [09:08:37]CAPDU: 80 13 00 00 [09:08:37]Write to MH i2c: E2 08 00 E8 39 80 13 00 00 00 00 00 00 9D [09:08:37]Write i2c OK [09:08:37]MH_I2C_Read... [09:08:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:08:37]Read from MH i2c: E2 [09:08:37]MH_I2C_Read... [09:08:37]Read from MH i2c: E2 62 00 [09:08:37]MH_I2C_Read... [09:08:37]Read from MH i2c: E2 62 00 E8 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 40 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 E0 [09: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 40 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:08:37]wFMCommunicate OK [09:08:37]SAM_PROTO_GetFieldsCounters done [09:08:37]requested_item shift.num is exist - process it [09:08:37]requested_item shift.opened is exist - process it [09:08:37]req_shift_opened [09:08:37]FM_GetShiftState [09:08:37]SAM_PROTO_GetShiftState [09:08:37]wFMCommunicate request_size=4 [09:08:37]MH_SAM_APDU [09:08:37]CAPDU: 80 13 01 00 [09:08:37]Write to MH i2c: E2 08 00 E9 39 80 13 01 00 00 00 00 00 9F [09:08:37]Write i2c OK [09:08:37]MH_I2C_Read... [09:08:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:37]Read from MH i2c: E2 [09:08:37]MH_I2C_Read... [09:08:37]Read from MH i2c: E2 0E 00 [09:08:37]MH_I2C_Read... [09:08:37]Read from MH i2c: E2 0E 00 E9 39 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 6C [09:08:37]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [09:08:37]wFMCommunicate OK [09:08:37]SAM_PROTO_GetShiftState done [09:08:37]FM_GetShiftState done [09:08:37]req_shift_opened done [09:08:37]requested_item shift.open_date is exist - process it [09:08:37]req_shift_open_date [09:08:37]req_shift_open_date done [09:08:37]produce_requested_data done [09:08:37]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156480,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [09:08:37]process_action_free close_receipt [09:08:37]json_value_free [09:08:37]json_value_free done [09:08:37]process_json_proto returns [09:08:37]Send response to host [09:08:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156480,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [09:08:37]free response buf [09:08:37]execute_script done [09:08:37]execute_script returns [09:08:37]free content buf [09:08:37]Sock 9.Close socket [09:08:37]Sock 9.Thread stoped [09:08:37]OFD Sender: No OFD packet to send [09:08:42]OFD Sender: No OFD packet to send [09:08:47]OFD Sender: No OFD packet to send [09:08:52]OFD Sender: No OFD packet to send [09:08:57]OFD Sender: No OFD packet to send [09:09:02]OFD Sender: No OFD packet to send [09:09:07]OFD Sender: No OFD packet to send [09:09:12]accept exits with 8 [09:09:12]New connection [09:09:12]New thread 3066977636 created [09:09:12]Thread 3066834276 joined [09:09:12]Waiting for new connection... [09:09:12] Sock 8.Parse request [09:09:12]Sock 8.Check first char [09:09:12]Sock 8.First char is OK [09:09:12]request: POST /json_proto HTTP/1.0 [09:09:12]Method: POST [09:09:12]URL: /json_proto [09:09:12]Method is POST - this is cgi request [09:09:12]url: /json_proto [09:09:12]query_string will be loaded in cgi processing [09:09:12]execute_cgi json_proto POST (null) [09:09:12]execute_cgi path=json_proto method=POST [09:09:12]POST find Content-Length [09:09:12]Host: 172.17.63.3:8080 [09:09:12]Content-Length: 677 [09:09:12]Content-Type: application/json [09:09:12] [09:09:12]POST finish read [09:09:12]Found Content-Length = 677 [09:09:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99293", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "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:12]execute_script... [09:09: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)99293", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "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:12]POST & json_proto [09:09:12]process_json_proto [09:09:12]json parsed OK: [09:09:12]protocol is kg_v1.0 [09:09:12]action value=close_receipt [09:09:12]process_action close_receipt [09:09:12]cmd_close_receipt [09:09:12]MH_GetDate [09:09:12]Write to MH i2c: F0 00 00 EA 39 12 [09:09:12]Write i2c OK [09:09:12]MH_I2C_Read... [09:09:12]Read from MH i2c: F0 [09:09:12]MH_I2C_Read... [09:09:12]Read from MH i2c: F0 09 00 [09:09:12]MH_I2C_Read... [09:09:12]Read from MH i2c: F0 09 00 EA 39 00 3D 03 1E 67 50 D1 6C 64 D1 [09:09:12]GetLastDocTimeStamp 1730020119 [09:09:12]current date 1730020157 [09:09:12]FM_GetShiftState [09:09:12]SAM_PROTO_GetShiftState [09:09:12]wFMCommunicate request_size=4 [09:09:12]MH_SAM_APDU [09:09:12]CAPDU: 80 13 01 00 [09:09:12]Write to MH i2c: E2 08 00 EB 39 80 13 01 00 00 00 00 00 A1 [09:09:12]Write i2c OK [09:09:12]MH_I2C_Read... [09:09:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:09:12]Read from MH i2c: E2 [09:09:12]MH_I2C_Read... [09:09:12]Read from MH i2c: E2 0E 00 [09:09:12]MH_I2C_Read... [09:09:12]Read from MH i2c: E2 0E 00 EB 39 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 6E [09:09:12]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [09:09:12]wFMCommunicate OK [09:09:12]SAM_PROTO_GetShiftState done [09:09:12]FM_GetShiftState done [09:09:12]opened in 1729989044 [09:09:12]opened+sec_in_day 1730075444 [09:09:12]quantity*price = 70044 [09:09:12]sum+1 = 70045 [09:09:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 32 27.10.2024 09:09 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156481 ФПД: 52369424822548 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T090917&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156481&fm=52369424822548&tin=02508201610067®Number=0000000000091693&sum=70000 [09:09:13]StoreToDocumentArchive [09:09:13]shift 537 fd 156481 [09:09:13]save to /storage/0537/doc_00156481 [09:09:13]save last doc name /storage/0537/doc_00156481 to /storage/kkm_last_doc_name [09:09:13]save OK [09:09:13]Clear old archive folders... [09:09:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:09:13]tlvbuf is 01754200 [09:09:13]SAM_PROTO_ClearQueue [09:09:13]wFMCommunicate request_size=4 [09:09:13]MH_SAM_APDU [09:09:13]CAPDU: 80 09 00 00 [09:09:13]Write to MH i2c: E2 08 00 F8 39 80 09 00 00 00 00 00 00 A3 [09:09:13]Write i2c OK [09:09:13]MH_I2C_Read... [09:09:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:09:13]Read from MH i2c: E2 [09:09:13]MH_I2C_Read... [09:09:13]Read from MH i2c: E2 03 00 [09:09:13]MH_I2C_Read... [09:09:13]Read from MH i2c: E2 03 00 F8 39 00 90 00 A5 [09:09:13]RAPDU: 90 00 [09:09:13]wFMCommunicate OK [09:09:13]SAM_PROTO_ClearQueue done [09:09:13]KKMCreateOFDPacket [09:09:13]OFDProtocolAddRootSTLVToBuf [09:09:13]FM_MakeSignedData [09:09:13]FM_MakeSignedData [09:09:13]SAM_PROTO_SignData [09:09:13]wFMCommunicate request_size=4 [09:09:13]MH_SAM_APDU [09:09:13]CAPDU: 80 0D 01 02 [09:09:13]Write to MH i2c: E2 08 00 F9 39 80 0D 01 02 00 00 00 00 AB [09:09:13]Write i2c OK [09:09:13]MH_I2C_Read... [09:09:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:09:13]Read from MH i2c: E2 [09:09:13]MH_I2C_Read... [09:09:13]Read from MH i2c: E2 03 00 [09:09:13]MH_I2C_Read... [09:09:13]Read from MH i2c: E2 03 00 F9 39 00 90 00 A6 [09:09:13]RAPDU: 90 00 [09:09:13]wFMCommunicate OK [09:09:13]wFMCommunicate request_size=255 [09:09:13]MH_SAM_APDU [09:09:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 3D 03 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 41 63 02 00 35 04 06 00 2F [09:09:13]Write to MH i2c: E2 02 01 FA 39 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 3D 03 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 41 63 02 00 35 04 06 00 2F 00 00 24 [09:09:13]Write i2c OK [09:09:13]MH_I2C_Read... [09:09:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:09:13]Read from MH i2c: E2 [09:09:13]MH_I2C_Read... [09:09:13]Read from MH i2c: E2 03 00 [09:09:13]MH_I2C_Read... [09:09:13]Read from MH i2c: E2 03 00 FA 39 00 90 00 A7 [09:09:13]RAPDU: 90 00 [09:09:13]wFMCommunicate OK [09:09:13]wFMCommunicate request_size=10 [09:09:13]MH_SAM_APDU [09:09:13]CAPDU: 80 0D 02 02 05 A1 34 F6 B1 14 [09:09:13]Write to MH i2c: E2 0D 00 FB 39 80 0D 02 02 05 00 A1 34 F6 B1 14 00 00 48 [09:09:13]Write i2c OK [09:09:13]MH_I2C_Read... [09:09:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:09:13]Read from MH i2c: E2 [09:09:13]MH_I2C_Read... [09:09:13]Read from MH i2c: E2 03 00 [09:09:13]MH_I2C_Read... [09:09:13]Read from MH i2c: E2 03 00 FB 39 00 90 00 A8 [09:09:13]RAPDU: 90 00 [09:09:13]wFMCommunicate OK [09:09:13]wFMCommunicate request_size=4 [09:09:13]MH_SAM_APDU [09:09:13]CAPDU: 80 0D 03 02 [09:09:13]Write to MH i2c: E2 08 00 FC 39 80 0D 03 02 00 00 00 00 B0 [09:09:13]Write i2c OK [09:09:13]MH_I2C_Read... [09:09:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:09:13]Read from MH i2c: E2 [09:09:13]MH_I2C_Read... [09:09:13]Read from MH i2c: E2 0B 00 [09:09:13]MH_I2C_Read... [09:09:13]Read from MH i2c: E2 0B 00 FC 39 00 5F 4E 11 B8 EF B8 9E C5 90 00 31 [09:09:13]RAPDU: 5F 4E 11 B8 EF B8 9E C5 90 00 [09:09:13]wFMCommunicate OK [09:09:13]SAM_PROTO_SignData done [09:09:13]FM_MakeSignedData done [09:09:13]CreateOFDProtocolMessage [09:09:13]wFMCommunicate request_size=4 [09:09:13]MH_SAM_APDU [09:09:13]CAPDU: 80 11 00 00 [09:09:13]Write to MH i2c: E2 08 00 FD 39 80 11 00 00 00 00 00 00 B0 [09:09:13]Write i2c OK [09:09:13]MH_I2C_Read... [09:09:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:09:13]Read from MH i2c: E2 [09:09:13]MH_I2C_Read... [09:09:13]Read from MH i2c: E2 17 00 [09:09:13]MH_I2C_Read... [09:09:13]Read from MH i2c: E2 17 00 FD 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 05 [09:09:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:09:13]wFMCommunicate OK [09:09:13]CreateOFDProtocolMessage done [09:09:13]OFDSenderStorePacket 156481 [09:09:13]StoreOFDPacket docnum=156481 [09:09:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 B6 1D 07 01 69 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 3D 03 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 41 63 02 00 35 04 06 00 2F A1 34 F6 B1 14 5F 4E 11 B8 EF B8 9E C5 [09:09:13]CheckFolder [09:09:13]dirname=/storage/ofd_packets [09:09:13]CheckFolder done [09:09:13]ProducePacketName [09:09:13]name=ofd_packets/00156481 [09:09:13]NVStorageSaveData ofd_packets/00156481 [09:09:13]File name is /storage/ofd_packets/00156481 [09:09:13]Write 301 bytes [09:09:13]NVStorageSaveData done [09:09:13]OFDSenderStorePacket done [09:09:13]KKMCreateOFDPacket done [09:09:13]NVStorageSaveData kkm_last_timestamp [09:09:13]File name is /storage/kkm_last_timestamp [09:09:13]Write 4 bytes [09:09:13]NVStorageSaveData done [09:09:13]ExternCall_PrintAddStr [09:09:13]wPrintStart [09:09:13]Write to MH i2c: 01 00 00 FE 39 37 [09:09:13]Write i2c OK [09:09:13]MH_I2C_Read... [09:09:13]Read from MH i2c: 01 [09:09:13]MH_I2C_Read... [09:09:13]Read from MH i2c: 01 07 00 [09:09:13]MH_I2C_Read... [09:09:13]Read from MH i2c: 01 07 00 FE 39 00 00 00 00 00 FF 0F 4C [09:09:13]RasterBufferAndPrint [09:09:13]line Счет N : (1)99293 [09:09:13]line ИНН: 02508201610067 [09:09:13]line Контрольно-Кассовый Чек [09:09:13]line ПРОДАЖА [09:09:13]line ТРК (МРК, ГНК) : 31 [09:09:13]line Товар: 2710124130 [09:09:13]line Аи-92-К-5 [09:09:13]line 10.470 * 66.90 [09:09:13]line = 700.44 [09:09:13]line НДС 12% НСП 1% [09:09:13]line > о реализуемом товаре [09:09:13]line ОКРУГЛЕНИЕ: -0.44 [09:09:13]line ИТОГО: 700.00 [09:09:13]line Внесено: 700.00 [09:09:13]line СДАЧА: 0.00 [09:09:13]line НСП 1% : 6.20 [09:09:13]line НДС 12% : 74.38 [09:09:13]line Наличными: 700.00 [09:09:13]line Безнал.: 0.00 [09:09:13]line Место: АЗС № 143 "Партнер Нефть" [09:09:13]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [09:09:13]line СНО: Общий режим [09:09:13]line Чек 32 27.10.2024 09:09 [09:09:13]line Смена: 537 ФФД: 1.0 [09:09:13]line ЗНМ: 0300000096 [09:09:13]line РНМ: 0000000000091693 [09:09:13]line Версия ККМ: 001 [09:09:13]line ФМ: 0000000000871792 [09:09:13]line ФД: 156481 [09:09:13]line ФПД: 52369424822548 [09:09:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T090917&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156481&fm=52369424822548&tin=02508201610067®Number=0000000000091693&sum=70000 [09:09:14]OFD Sender: Processing packet 156481 [packets to send 31, broken 30] [09:09:14]ProducePacketName [09:09:14]name=ofd_packets/00156481 [09:09:14]OFD Sender: To server: pG, [09:09:14]CommunicateWithHost lk.salyk.kg:30040 [09:09:14]ConnectInit lk.salyk.kg [09:09:14]written 0, free lines is 4095 [09:09:14]Connected sock=10 [09:09:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 B6 1D 07 01 69 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 3D 03 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 41 63 02 00 35 04 06 00 2F A1 34 F6 B1 14 5F 4E 11 B8 EF B8 9E C5 [09:09:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 98 8B 47 00 61 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 41 63 02 00 F4 03 04 00 AD A8 1D 67 B6 04 01 00 00 67 29 F2 C6 47 17 59 DC [09:09:14]CommunicateWithHost err = 0 [09:09:14]CheckOFDResponse [09:09:14]1017 (14) - 77093643461234 [09:09:14]1041 (16) - 0000000000871792 [09:09:14]1040 (4) - 156481 [09:09:14]1012 (4) - 27.10.2024 02:42 [09:09:14]1206 (1) - 0 [09:09:14]OFD Sender: Remove packet 156481 [09:09:14]ProducePacketName [09:09:14]name=ofd_packets/00156481 [09:09:14]NVStorageDeleteData [09:09:14]Write to MH i2c: 01 00 00 29 3A 63 [09:09:14]Write i2c OK [09:09:14]MH_I2C_Read... [09:09:14]Read from MH i2c: 01 [09:09:14]MH_I2C_Read... [09:09:14]Read from MH i2c: 01 07 00 [09:09:14]MH_I2C_Read... [09:09:14]Read from MH i2c: 01 07 00 29 3A 00 00 00 00 00 D7 0C 4D [09:09:14]RasterBufferAndPrint [09:09:14]line [09:09:14]line [09:09:14]line [09:09:14]line [09:09:14]line [09:09:14]written 0, free lines is 3294 [09:09:14]process_action close_receipt done [09:09:14]requested_data is exist [09:09:14]produce_requested_data [09:09:14]requested_item fm.sn is exist - process it [09:09:14]wFMCommunicate request_size=4 [09:09:14]MH_SAM_APDU [09:09:14]CAPDU: 80 11 00 00 [09:09:14]Write to MH i2c: E2 08 00 30 3A 80 11 00 00 00 00 00 00 E4 [09:09:14]Write i2c OK [09:09:14]MH_I2C_Read... [09:09:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:09:14]Read from MH i2c: E2 [09:09:14]MH_I2C_Read... [09:09:14]Read from MH i2c: E2 17 00 [09:09:14]MH_I2C_Read... [09:09:14]Read from MH i2c: E2 17 00 30 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 39 [09:09:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:09:14]wFMCommunicate OK [09:09:14]requested_item fd.num is exist - process it [09:09:14]SAM_PROTO_GetFieldsCounters [09:09:14]wFMCommunicate request_size=4 [09:09:14]MH_SAM_APDU [09:09:14]CAPDU: 80 13 00 00 [09:09:14]Write to MH i2c: E2 08 00 31 3A 80 13 00 00 00 00 00 00 E7 [09:09:14]Write i2c OK [09:09:14]MH_I2C_Read... [09:09:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:09:14]Read from MH i2c: E2 [09:09:14]MH_I2C_Read... [09:09:14]Read from MH i2c: E2 62 00 [09:09:14]MH_I2C_Read... [09:09:14]Read from MH i2c: E2 62 00 31 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 41 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 2E [09:09:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 41 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:09:14]wFMCommunicate OK [09:09:14]SAM_PROTO_GetFieldsCounters done [09:09:14]requested_item shift.num is exist - process it [09:09:14]requested_item shift.opened is exist - process it [09:09:14]req_shift_opened [09:09:14]FM_GetShiftState [09:09:14]SAM_PROTO_GetShiftState [09:09:14]wFMCommunicate request_size=4 [09:09:14]MH_SAM_APDU [09:09:14]CAPDU: 80 13 01 00 [09:09:14]Write to MH i2c: E2 08 00 32 3A 80 13 01 00 00 00 00 00 E9 [09:09:14]Write i2c OK [09:09:14]MH_I2C_Read... [09:09:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:09:14]Read from MH i2c: E2 [09:09:14]MH_I2C_Read... [09:09:14]Read from MH i2c: E2 0E 00 [09:09:14]MH_I2C_Read... [09:09:14]Read from MH i2c: E2 0E 00 32 3A 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 B6 [09:09:14]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [09:09:14]wFMCommunicate OK [09:09:14]SAM_PROTO_GetShiftState done [09:09:14]FM_GetShiftState done [09:09:14]req_shift_opened done [09:09:14]requested_item shift.open_date is exist - process it [09:09:14]req_shift_open_date [09:09:14]req_shift_open_date done [09:09:14]produce_requested_data done [09:09:14]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156481,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [09:09:14]process_action_free close_receipt [09:09:14]json_value_free [09:09:14]json_value_free done [09:09:14]process_json_proto returns [09:09:14]Send response to host [09:09:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156481,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [09:09:14]free response buf [09:09:14]execute_script done [09:09:14]execute_script returns [09:09:14]free content buf [09:09:14]Sock 8.Close socket [09:09:14]Sock 8.Thread stoped [09:09:15]OFD Sender: No OFD packet to send [09:09:20]OFD Sender: No OFD packet to send [09:09:25]OFD Sender: No OFD packet to send [09:09:30]OFD Sender: No OFD packet to send [09:09:35]OFD Sender: No OFD packet to send [09:09:40]OFD Sender: No OFD packet to send [09:09:45]OFD Sender: No OFD packet to send [09:09:50]OFD Sender: No OFD packet to send [09:09:55]OFD Sender: No OFD packet to send [09:10:00]OFD Sender: No OFD packet to send [09:10:05]OFD Sender: No OFD packet to send [09:10:10]OFD Sender: No OFD packet to send [09:10:15]OFD Sender: No OFD packet to send [09:10:20]OFD Sender: No OFD packet to send [09:10:25]OFD Sender: No OFD packet to send [09:10:30]OFD Sender: No OFD packet to send [09:10:35]OFD Sender: No OFD packet to send [09:10:40]OFD Sender: No OFD packet to send [09:10:45]OFD Sender: No OFD packet to send [09:10:50]OFD Sender: No OFD packet to send [09:10:55]OFD Sender: No OFD packet to send [09:11:00]OFD Sender: No OFD packet to send [09:11:05]OFD Sender: No OFD packet to send [09:11:10]OFD Sender: No OFD packet to send [09:11:15]OFD Sender: No OFD packet to send [09:11:20]OFD Sender: No OFD packet to send [09:11:25]OFD Sender: No OFD packet to send [09:11:30]OFD Sender: No OFD packet to send [09:11:30]accept exits with 9 [09:11:30]New connection [09:11:30]New thread 3066834276 created [09:11:30]Thread 3066977636 joined [09:11:30]Waiting for new connection... [09:11:30] Sock 9.Parse request [09:11:30]Sock 9.Check first char [09:11:30]Sock 9.First char is OK [09:11:30]request: POST /json_proto HTTP/1.0 [09:11:30]Method: POST [09:11:30]URL: /json_proto [09:11:30]Method is POST - this is cgi request [09:11:30]url: /json_proto [09:11:30]query_string will be loaded in cgi processing [09:11:30]execute_cgi json_proto POST (null) [09:11:30]execute_cgi path=json_proto method=POST [09:11:30]POST find Content-Length [09:11:30]Host: 172.17.63.3:8080 [09:11:30]Content-Length: 681 [09:11:30]Content-Type: application/json [09:11:30] [09:11:30]POST finish read [09:11:30]Found Content-Length = 681 [09:11:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99295", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:11:30]execute_script... [09:11:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99295", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:11:30]POST & json_proto [09:11:30]process_json_proto [09:11:30]json parsed OK: [09:11:30]protocol is kg_v1.0 [09:11:30]action value=close_receipt [09:11:30]process_action close_receipt [09:11:30]cmd_close_receipt [09:11:30]MH_GetDate [09:11:30]Write to MH i2c: F0 00 00 33 3A 5C [09:11:30]Write i2c OK [09:11:30]MH_I2C_Read... [09:11:30]Read from MH i2c: F0 [09:11:30]MH_I2C_Read... [09:11:30]Read from MH i2c: F0 09 00 [09:11:30]MH_I2C_Read... [09:11:30]Read from MH i2c: F0 09 00 33 3A 00 C7 03 1E 67 50 D1 6C 64 A5 [09:11:30]GetLastDocTimeStamp 1730020157 [09:11:30]current date 1730020295 [09:11:30]FM_GetShiftState [09:11:30]SAM_PROTO_GetShiftState [09:11:30]wFMCommunicate request_size=4 [09:11:30]MH_SAM_APDU [09:11:30]CAPDU: 80 13 01 00 [09:11:30]Write to MH i2c: E2 08 00 34 3A 80 13 01 00 00 00 00 00 EB [09:11:30]Write i2c OK [09:11:30]MH_I2C_Read... [09:11:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:30]Read from MH i2c: E2 [09:11:30]MH_I2C_Read... [09:11:30]Read from MH i2c: E2 0E 00 [09:11:30]MH_I2C_Read... [09:11:30]Read from MH i2c: E2 0E 00 34 3A 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 B8 [09:11:30]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [09:11:30]wFMCommunicate OK [09:11:30]SAM_PROTO_GetShiftState done [09:11:30]FM_GetShiftState done [09:11:30]opened in 1729989044 [09:11:30]opened+sec_in_day 1730075444 [09:11:30]quantity*price = 100015 [09:11:30]sum+1 = 100017 [09:11:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 33 27.10.2024 09:11 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156482 ФПД: 135109275081164 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T091135&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156482&fm=135109275081164&tin=02508201610067®Number=0000000000091693&sum=100000 [09:11:31]StoreToDocumentArchive [09:11:31]shift 537 fd 156482 [09:11:31]save to /storage/0537/doc_00156482 [09:11:31]save last doc name /storage/0537/doc_00156482 to /storage/kkm_last_doc_name [09:11:31]save OK [09:11:31]Clear old archive folders... [09:11:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:11:31]tlvbuf is 0179AE60 [09:11:31]SAM_PROTO_ClearQueue [09:11:31]wFMCommunicate request_size=4 [09:11:31]MH_SAM_APDU [09:11:31]CAPDU: 80 09 00 00 [09:11:31]Write to MH i2c: E2 08 00 41 3A 80 09 00 00 00 00 00 00 ED [09:11:31]Write i2c OK [09:11:31]MH_I2C_Read... [09:11:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:11:31]Read from MH i2c: E2 [09:11:31]MH_I2C_Read... [09:11:31]Read from MH i2c: E2 03 00 [09:11:31]MH_I2C_Read... [09:11:31]Read from MH i2c: E2 03 00 41 3A 00 90 00 EF [09:11:31]RAPDU: 90 00 [09:11:31]wFMCommunicate OK [09:11:31]SAM_PROTO_ClearQueue done [09:11:31]KKMCreateOFDPacket [09:11:31]OFDProtocolAddRootSTLVToBuf [09:11:31]FM_MakeSignedData [09:11:31]FM_MakeSignedData [09:11:31]SAM_PROTO_SignData [09:11:31]wFMCommunicate request_size=4 [09:11:31]MH_SAM_APDU [09:11:31]CAPDU: 80 0D 01 02 [09:11:31]Write to MH i2c: E2 08 00 42 3A 80 0D 01 02 00 00 00 00 F5 [09:11:31]Write i2c OK [09:11:31]MH_I2C_Read... [09:11:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:11:31]Read from MH i2c: E2 [09:11:31]MH_I2C_Read... [09:11:31]Read from MH i2c: E2 03 00 [09:11:31]MH_I2C_Read... [09:11:31]Read from MH i2c: E2 03 00 42 3A 00 90 00 F0 [09:11:31]RAPDU: 90 00 [09:11:31]wFMCommunicate OK [09:11:31]wFMCommunicate request_size=255 [09:11:31]MH_SAM_APDU [09:11: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 C7 03 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 42 63 02 00 35 04 06 00 7A [09:11:31]Write to MH i2c: E2 02 01 43 3A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 C7 03 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 42 63 02 00 35 04 06 00 7A 00 00 2F [09:11:31]Write i2c OK [09:11:31]MH_I2C_Read... [09:11:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:32]Read from MH i2c: E2 [09:11:32]MH_I2C_Read... [09:11:32]Read from MH i2c: E2 03 00 [09:11:32]MH_I2C_Read... [09:11:32]Read from MH i2c: E2 03 00 43 3A 00 90 00 F1 [09:11:32]RAPDU: 90 00 [09:11:32]wFMCommunicate OK [09:11:32]wFMCommunicate request_size=10 [09:11:32]MH_SAM_APDU [09:11:32]CAPDU: 80 0D 02 02 05 E1 94 58 D9 CC [09:11:32]Write to MH i2c: E2 0D 00 44 3A 80 0D 02 02 05 00 E1 94 58 D9 CC 00 00 74 [09:11:32]Write i2c OK [09:11:32]MH_I2C_Read... [09:11:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:11:32]Read from MH i2c: E2 [09:11:32]MH_I2C_Read... [09:11:32]Read from MH i2c: E2 03 00 [09:11:32]MH_I2C_Read... [09:11:32]Read from MH i2c: E2 03 00 44 3A 00 90 00 F2 [09:11:32]RAPDU: 90 00 [09:11:32]wFMCommunicate OK [09:11:32]wFMCommunicate request_size=4 [09:11:32]MH_SAM_APDU [09:11:32]CAPDU: 80 0D 03 02 [09:11:32]Write to MH i2c: E2 08 00 45 3A 80 0D 03 02 00 00 00 00 FA [09:11:32]Write i2c OK [09:11:32]MH_I2C_Read... [09:11:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:11:32]Read from MH i2c: E2 [09:11:32]MH_I2C_Read... [09:11:32]Read from MH i2c: E2 0B 00 [09:11:32]MH_I2C_Read... [09:11:32]Read from MH i2c: E2 0B 00 45 3A 00 51 02 01 2F 55 E1 18 2C 90 00 F8 [09:11:32]RAPDU: 51 02 01 2F 55 E1 18 2C 90 00 [09:11:32]wFMCommunicate OK [09:11:32]SAM_PROTO_SignData done [09:11:32]FM_MakeSignedData done [09:11:32]CreateOFDProtocolMessage [09:11:32]wFMCommunicate request_size=4 [09:11:32]MH_SAM_APDU [09:11:32]CAPDU: 80 11 00 00 [09:11:32]Write to MH i2c: E2 08 00 46 3A 80 11 00 00 00 00 00 00 FA [09:11:32]Write i2c OK [09:11:32]MH_I2C_Read... [09:11:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:32]Read from MH i2c: E2 [09:11:32]MH_I2C_Read... [09:11:32]Read from MH i2c: E2 17 00 [09:11:32]MH_I2C_Read... [09:11:32]Read from MH i2c: E2 17 00 46 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 4F [09:11:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:11:32]wFMCommunicate OK [09:11:32]CreateOFDProtocolMessage done [09:11:32]OFDSenderStorePacket 156482 [09:11:32]StoreOFDPacket docnum=156482 [09:11:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 D5 1E 07 01 22 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 C7 03 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 42 63 02 00 35 04 06 00 7A E1 94 58 D9 CC 51 02 01 2F 55 E1 18 2C [09:11:32]CheckFolder [09:11:32]dirname=/storage/ofd_packets [09:11:32]CheckFolder done [09:11:32]ProducePacketName [09:11:32]name=ofd_packets/00156482 [09:11:32]NVStorageSaveData ofd_packets/00156482 [09:11:32]File name is /storage/ofd_packets/00156482 [09:11:32]Write 301 bytes [09:11:32]NVStorageSaveData done [09:11:32]OFDSenderStorePacket done [09:11:32]KKMCreateOFDPacket done [09:11:32]NVStorageSaveData kkm_last_timestamp [09:11:32]File name is /storage/kkm_last_timestamp [09:11:32]Write 4 bytes [09:11:32]NVStorageSaveData done [09:11:32]ExternCall_PrintAddStr [09:11:32]wPrintStart [09:11:32]Write to MH i2c: 01 00 00 47 3A 81 [09:11:32]Write i2c OK [09:11:32]MH_I2C_Read... [09:11:32]Read from MH i2c: 01 [09:11:32]MH_I2C_Read... [09:11:32]Read from MH i2c: 01 07 00 [09:11:32]MH_I2C_Read... [09:11:32]Read from MH i2c: 01 07 00 47 3A 00 00 00 00 00 FF 0F 96 [09:11:32]RasterBufferAndPrint [09:11:32]line Счет N : (1)99295 [09:11:32]line ИНН: 02508201610067 [09:11:32]line Контрольно-Кассовый Чек [09:11:32]line ПРОДАЖА [09:11:32]line ТРК (МРК, ГНК) : 11 [09:11:32]line Товар: 2710124130 [09:11:32]line Аи-92-К-5 [09:11:32]line 14.950 * 66.90 [09:11:32]line = 1000.16 [09:11:32]line НДС 12% НСП 1% [09:11:32]line > о реализуемом товаре [09:11:32]line ОКРУГЛЕНИЕ: -0.16 [09:11:32]line ИТОГО: 1000.00 [09:11:32]line Внесено: 1000.00 [09:11:32]line СДАЧА: 0.00 [09:11:32]line НСП 1% : 8.85 [09:11:32]line НДС 12% : 106.21 [09:11:32]line Наличными: 1000.00 [09:11:32]line Безнал.: 0.00 [09:11:32]line Место: АЗС № 143 "Партнер Нефть" [09:11:32]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [09:11:32]line СНО: Общий режим [09:11:32]line Чек 33 27.10.2024 09:11 [09:11:32]line Смена: 537 ФФД: 1.0 [09:11:32]line ЗНМ: 0300000096 [09:11:32]line РНМ: 0000000000091693 [09:11:32]line Версия ККМ: 001 [09:11:32]line ФМ: 0000000000871792 [09:11:32]line ФД: 156482 [09:11:32]line ФПД: 135109275081164 [09:11:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T091135&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156482&fm=135109275081164&tin=02508201610067®Number=0000000000091693&sum=100000 [09:11:32]OFD Sender: Processing packet 156482 [packets to send 31, broken 30] [09:11:32]ProducePacketName [09:11:32]name=ofd_packets/00156482 [09:11:32]OFD Sender: To server: pG, [09:11:32]CommunicateWithHost lk.salyk.kg:30040 [09:11:32]ConnectInit lk.salyk.kg [09:11:32]written 0, free lines is 4095 [09:11:32]Connected sock=10 [09:11:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 D5 1E 07 01 22 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 C7 03 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 42 63 02 00 35 04 06 00 7A E1 94 58 D9 CC 51 02 01 2F 55 E1 18 2C [09:11:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 DF 5F 47 00 A6 D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 42 63 02 00 F4 03 04 00 37 A9 1D 67 B6 04 01 00 00 C5 76 31 A9 D8 4E FB 41 [09:11:32]CommunicateWithHost err = 0 [09:11:32]CheckOFDResponse [09:11:32]1017 (14) - 77093643461234 [09:11:32]1041 (16) - 0000000000871792 [09:11:32]1040 (4) - 156482 [09:11:32]1012 (4) - 27.10.2024 02:45 [09:11:32]1206 (1) - 0 [09:11:32]OFD Sender: Remove packet 156482 [09:11:32]ProducePacketName [09:11:32]name=ofd_packets/00156482 [09:11:32]NVStorageDeleteData [09:11:32]Write to MH i2c: 01 00 00 72 3A AC [09:11:32]Write i2c OK [09:11:32]MH_I2C_Read... [09:11:32]Read from MH i2c: 01 [09:11:32]MH_I2C_Read... [09:11:32]Read from MH i2c: 01 07 00 [09:11:32]MH_I2C_Read... [09:11:32]Read from MH i2c: 01 07 00 72 3A 00 00 00 00 00 D8 0C 97 [09:11:32]RasterBufferAndPrint [09:11:32]line [09:11:32]line [09:11:32]line [09:11:32]line [09:11:32]line [09:11:32]written 0, free lines is 3295 [09:11:32]process_action close_receipt done [09:11:32]requested_data is exist [09:11:32]produce_requested_data [09:11:32]requested_item fm.sn is exist - process it [09:11:32]wFMCommunicate request_size=4 [09:11:32]MH_SAM_APDU [09:11:32]CAPDU: 80 11 00 00 [09:11:32]Write to MH i2c: E2 08 00 79 3A 80 11 00 00 00 00 00 00 2D [09:11:32]Write i2c OK [09:11:32]MH_I2C_Read... [09:11:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:11:33]Read from MH i2c: E2 [09:11:33]MH_I2C_Read... [09:11:33]Read from MH i2c: E2 17 00 [09:11:33]MH_I2C_Read... [09:11:33]Read from MH i2c: E2 17 00 79 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 82 [09:11:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:11:33]wFMCommunicate OK [09:11:33]requested_item fd.num is exist - process it [09:11:33]SAM_PROTO_GetFieldsCounters [09:11:33]wFMCommunicate request_size=4 [09:11:33]MH_SAM_APDU [09:11:33]CAPDU: 80 13 00 00 [09:11:33]Write to MH i2c: E2 08 00 7A 3A 80 13 00 00 00 00 00 00 30 [09:11:33]Write i2c OK [09:11:33]MH_I2C_Read... [09:11:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:11:33]Read from MH i2c: E2 [09:11:33]MH_I2C_Read... [09:11:33]Read from MH i2c: E2 62 00 [09:11:33]MH_I2C_Read... [09:11:33]Read from MH i2c: E2 62 00 7A 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 42 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 7B [09:11:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 42 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:11:33]wFMCommunicate OK [09:11:33]SAM_PROTO_GetFieldsCounters done [09:11:33]requested_item shift.num is exist - process it [09:11:33]requested_item shift.opened is exist - process it [09:11:33]req_shift_opened [09:11:33]FM_GetShiftState [09:11:33]SAM_PROTO_GetShiftState [09:11:33]wFMCommunicate request_size=4 [09:11:33]MH_SAM_APDU [09:11:33]CAPDU: 80 13 01 00 [09:11:33]Write to MH i2c: E2 08 00 7B 3A 80 13 01 00 00 00 00 00 32 [09:11:33]Write i2c OK [09:11:33]MH_I2C_Read... [09:11:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:11:33]Read from MH i2c: E2 [09:11:33]MH_I2C_Read... [09:11:33]Read from MH i2c: E2 0E 00 [09:11:33]MH_I2C_Read... [09:11:33]Read from MH i2c: E2 0E 00 7B 3A 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 FF [09:11:33]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [09:11:33]wFMCommunicate OK [09:11:33]SAM_PROTO_GetShiftState done [09:11:33]FM_GetShiftState done [09:11:33]req_shift_opened done [09:11:33]requested_item shift.open_date is exist - process it [09:11:33]req_shift_open_date [09:11:33]req_shift_open_date done [09:11:33]produce_requested_data done [09:11:33]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156482,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [09:11:33]process_action_free close_receipt [09:11:33]json_value_free [09:11:33]json_value_free done [09:11:33]process_json_proto returns [09:11:33]Send response to host [09:11:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156482,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [09:11:33]free response buf [09:11:33]execute_script done [09:11:33]execute_script returns [09:11:33]free content buf [09:11:33]Sock 9.Close socket [09:11:33]Sock 9.Thread stoped [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:01]accept exits with 8 [09:13:01]New connection [09:13:01]New thread 3066977636 created [09:13:01]Thread 3066834276 joined [09:13:01]Waiting for new connection... [09:13:01] Sock 8.Parse request [09:13:01]Sock 8.Check first char [09:13:01]Sock 8.First char is OK [09:13:01]request: POST /json_proto HTTP/1.0 [09:13:01]Method: POST [09:13:01]URL: /json_proto [09:13:01]Method is POST - this is cgi request [09:13:01]url: /json_proto [09:13:01]query_string will be loaded in cgi processing [09:13:01]execute_cgi json_proto POST (null) [09:13:01]execute_cgi path=json_proto method=POST [09:13:01]POST find Content-Length [09:13:01]Host: 172.17.63.3:8080 [09:13:01]Content-Length: 681 [09:13:01]Content-Type: application/json [09:13:01] [09:13:01]POST finish read [09:13:01]Found Content-Length = 681 [09:13:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99296", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:13:01]execute_script... [09:13: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)99296", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:13:01]POST & json_proto [09:13:01]process_json_proto [09:13:01]json parsed OK: [09:13:01]protocol is kg_v1.0 [09:13:01]action value=close_receipt [09:13:01]process_action close_receipt [09:13:01]cmd_close_receipt [09:13:01]MH_GetDate [09:13:01]Write to MH i2c: F0 00 00 7C 3A A5 [09:13:01]Write i2c OK [09:13:01]MH_I2C_Read... [09:13:01]Read from MH i2c: F0 [09:13:01]MH_I2C_Read... [09:13:01]Read from MH i2c: F0 09 00 [09:13:01]MH_I2C_Read... [09:13:01]Read from MH i2c: F0 09 00 7C 3A 00 22 04 1E 67 50 D1 6C 64 4A [09:13:01]GetLastDocTimeStamp 1730020295 [09:13:01]current date 1730020386 [09:13:01]FM_GetShiftState [09:13:01]SAM_PROTO_GetShiftState [09:13:01]wFMCommunicate request_size=4 [09:13:01]MH_SAM_APDU [09:13:01]CAPDU: 80 13 01 00 [09:13:01]Write to MH i2c: E2 08 00 7D 3A 80 13 01 00 00 00 00 00 34 [09:13:01]Write i2c OK [09:13:01]MH_I2C_Read... [09:13:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:13:01]Read from MH i2c: E2 [09:13:01]MH_I2C_Read... [09:13:01]Read from MH i2c: E2 0E 00 [09:13:01]MH_I2C_Read... [09:13:01]Read from MH i2c: E2 0E 00 7D 3A 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 01 [09:13:01]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [09:13:01]wFMCommunicate OK [09:13:01]SAM_PROTO_GetShiftState done [09:13:01]FM_GetShiftState done [09:13:01]opened in 1729989044 [09:13:01]opened+sec_in_day 1730075444 [09:13:01]quantity*price = 100015 [09:13:01]sum+1 = 100017 [09:13:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 34 27.10.2024 09:13 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156483 ФПД: 61432771000777 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T091306&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156483&fm=61432771000777&tin=02508201610067®Number=0000000000091693&sum=100000 [09:13:02]StoreToDocumentArchive [09:13:02]shift 537 fd 156483 [09:13:02]save to /storage/0537/doc_00156483 [09:13:02]save last doc name /storage/0537/doc_00156483 to /storage/kkm_last_doc_name [09:13:02]save OK [09:13:02]Clear old archive folders... [09:13:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:13:02]tlvbuf is 016BAE90 [09:13:02]SAM_PROTO_ClearQueue [09:13:02]wFMCommunicate request_size=4 [09:13:02]MH_SAM_APDU [09:13:02]CAPDU: 80 09 00 00 [09:13:02]Write to MH i2c: E2 08 00 8A 3A 80 09 00 00 00 00 00 00 36 [09:13:02]Write i2c OK [09:13:02]MH_I2C_Read... [09:13:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:13:02]Read from MH i2c: E2 [09:13:02]MH_I2C_Read... [09:13:02]Read from MH i2c: E2 03 00 [09:13:02]MH_I2C_Read... [09:13:02]Read from MH i2c: E2 03 00 8A 3A 00 90 00 38 [09:13:02]RAPDU: 90 00 [09:13:02]wFMCommunicate OK [09:13:02]SAM_PROTO_ClearQueue done [09:13:02]KKMCreateOFDPacket [09:13:02]OFDProtocolAddRootSTLVToBuf [09:13:02]FM_MakeSignedData [09:13:02]FM_MakeSignedData [09:13:02]SAM_PROTO_SignData [09:13:02]wFMCommunicate request_size=4 [09:13:02]MH_SAM_APDU [09:13:02]CAPDU: 80 0D 01 02 [09:13:02]Write to MH i2c: E2 08 00 8B 3A 80 0D 01 02 00 00 00 00 3E [09:13:02]Write i2c OK [09:13:02]MH_I2C_Read... [09:13:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:13:02]Read from MH i2c: E2 [09:13:02]MH_I2C_Read... [09:13:02]Read from MH i2c: E2 03 00 [09:13:02]MH_I2C_Read... [09:13:02]Read from MH i2c: E2 03 00 8B 3A 00 90 00 39 [09:13:02]RAPDU: 90 00 [09:13:02]wFMCommunicate OK [09:13:02]wFMCommunicate request_size=255 [09:13:02]MH_SAM_APDU [09:13: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 22 04 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 43 63 02 00 35 04 06 00 37 [09:13:02]Write to MH i2c: E2 02 01 8C 3A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 22 04 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 43 63 02 00 35 04 06 00 37 00 00 93 [09:13:02]Write i2c OK [09:13:02]MH_I2C_Read... [09:13:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:13:02]Read from MH i2c: E2 [09:13:02]MH_I2C_Read... [09:13:02]Read from MH i2c: E2 03 00 [09:13:02]MH_I2C_Read... [09:13:02]Read from MH i2c: E2 03 00 8C 3A 00 90 00 3A [09:13:02]RAPDU: 90 00 [09:13:02]wFMCommunicate OK [09:13:02]wFMCommunicate request_size=10 [09:13:02]MH_SAM_APDU [09:13:02]CAPDU: 80 0D 02 02 05 DF 6E 7E 39 C9 [09:13:02]Write to MH i2c: E2 0D 00 8D 3A 80 0D 02 02 05 00 DF 6E 7E 39 C9 00 00 18 [09:13:02]Write i2c OK [09:13:02]MH_I2C_Read... [09:13:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:13:03]Read from MH i2c: E2 [09:13:03]MH_I2C_Read... [09:13:03]Read from MH i2c: E2 03 00 [09:13:03]MH_I2C_Read... [09:13:03]Read from MH i2c: E2 03 00 8D 3A 00 90 00 3B [09:13:03]RAPDU: 90 00 [09:13:03]wFMCommunicate OK [09:13:03]wFMCommunicate request_size=4 [09:13:03]MH_SAM_APDU [09:13:03]CAPDU: 80 0D 03 02 [09:13:03]Write to MH i2c: E2 08 00 8E 3A 80 0D 03 02 00 00 00 00 43 [09:13:03]Write i2c OK [09:13:03]MH_I2C_Read... [09:13:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:13:03]Read from MH i2c: E2 [09:13:03]MH_I2C_Read... [09:13:03]Read from MH i2c: E2 0B 00 [09:13:03]MH_I2C_Read... [09:13:03]Read from MH i2c: E2 0B 00 8E 3A 00 50 6A C6 44 AD 15 F7 41 90 00 02 [09:13:03]RAPDU: 50 6A C6 44 AD 15 F7 41 90 00 [09:13:03]wFMCommunicate OK [09:13:03]SAM_PROTO_SignData done [09:13:03]FM_MakeSignedData done [09:13:03]CreateOFDProtocolMessage [09:13:03]wFMCommunicate request_size=4 [09:13:03]MH_SAM_APDU [09:13:03]CAPDU: 80 11 00 00 [09:13:03]Write to MH i2c: E2 08 00 8F 3A 80 11 00 00 00 00 00 00 43 [09:13:03]Write i2c OK [09:13:03]MH_I2C_Read... [09:13:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:13:03]Read from MH i2c: E2 [09:13:03]MH_I2C_Read... [09:13:03]Read from MH i2c: E2 17 00 [09:13:03]MH_I2C_Read... [09:13:03]Read from MH i2c: E2 17 00 8F 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 98 [09:13:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:13:03]wFMCommunicate OK [09:13:03]CreateOFDProtocolMessage done [09:13:03]OFDSenderStorePacket 156483 [09:13:03]StoreOFDPacket docnum=156483 [09:13:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 46 B8 07 01 22 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 22 04 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 43 63 02 00 35 04 06 00 37 DF 6E 7E 39 C9 50 6A C6 44 AD 15 F7 41 [09:13:03]CheckFolder [09:13:03]dirname=/storage/ofd_packets [09:13:03]CheckFolder done [09:13:03]ProducePacketName [09:13:03]name=ofd_packets/00156483 [09:13:03]NVStorageSaveData ofd_packets/00156483 [09:13:03]File name is /storage/ofd_packets/00156483 [09:13:03]Write 301 bytes [09:13:03]NVStorageSaveData done [09:13:03]OFDSenderStorePacket done [09:13:03]KKMCreateOFDPacket done [09:13:03]NVStorageSaveData kkm_last_timestamp [09:13:03]File name is /storage/kkm_last_timestamp [09:13:03]Write 4 bytes [09:13:03]NVStorageSaveData done [09:13:03]ExternCall_PrintAddStr [09:13:03]wPrintStart [09:13:03]Write to MH i2c: 01 00 00 90 3A CA [09:13:03]Write i2c OK [09:13:03]MH_I2C_Read... [09:13:03]Read from MH i2c: 01 [09:13:03]MH_I2C_Read... [09:13:03]Read from MH i2c: 01 07 00 [09:13:03]MH_I2C_Read... [09:13:03]Read from MH i2c: 01 07 00 90 3A 00 00 00 00 00 FF 0F DF [09:13:03]RasterBufferAndPrint [09:13:03]line Счет N : (1)99296 [09:13:03]line ИНН: 02508201610067 [09:13:03]line Контрольно-Кассовый Чек [09:13:03]line ПРОДАЖА [09:13:03]line ТРК (МРК, ГНК) : 21 [09:13:03]line Товар: 2710124130 [09:13:03]line Аи-92-К-5 [09:13:03]line 14.950 * 66.90 [09:13:03]line = 1000.16 [09:13:03]line НДС 12% НСП 1% [09:13:03]line > о реализуемом товаре [09:13:03]line ОКРУГЛЕНИЕ: -0.16 [09:13:03]line ИТОГО: 1000.00 [09:13:03]line Внесено: 1000.00 [09:13:03]line СДАЧА: 0.00 [09:13:03]line НСП 1% : 8.85 [09:13:03]line НДС 12% : 106.21 [09:13:03]line Наличными: 1000.00 [09:13:03]line Безнал.: 0.00 [09:13:03]line Место: АЗС № 143 "Партнер Нефть" [09:13:03]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [09:13:03]line СНО: Общий режим [09:13:03]line Чек 34 27.10.2024 09:13 [09:13:03]line Смена: 537 ФФД: 1.0 [09:13:03]line ЗНМ: 0300000096 [09:13:03]line РНМ: 0000000000091693 [09:13:03]line Версия ККМ: 001 [09:13:03]line ФМ: 0000000000871792 [09:13:03]line ФД: 156483 [09:13:03]line ФПД: 61432771000777 [09:13:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T091306&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156483&fm=61432771000777&tin=02508201610067®Number=0000000000091693&sum=100000 [09:13:03]OFD Sender: Processing packet 156483 [packets to send 31, broken 30] [09:13:03]ProducePacketName [09:13:03]name=ofd_packets/00156483 [09:13:03]OFD Sender: To server: pG, [09:13:03]CommunicateWithHost lk.salyk.kg:30040 [09:13:03]ConnectInit lk.salyk.kg [09:13:03]written 0, free lines is 4095 [09:13:03]Connected sock=10 [09:13:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 46 B8 07 01 22 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 22 04 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 43 63 02 00 35 04 06 00 37 DF 6E 7E 39 C9 50 6A C6 44 AD 15 F7 41 [09:13:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 4A 4D 47 00 34 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 31 37 39 32 10 04 04 00 43 63 02 00 F4 03 04 00 92 A9 1D 67 B6 04 01 00 00 74 AF 01 1A 43 63 26 ED [09:13:03]CommunicateWithHost err = 0 [09:13:03]CheckOFDResponse [09:13:03]1017 (14) - 77093643461234 [09:13:03]1041 (16) - 0000000000871792 [09:13:03]1040 (4) - 156483 [09:13:03]1012 (4) - 27.10.2024 02:46 [09:13:03]1206 (1) - 0 [09:13:03]OFD Sender: Remove packet 156483 [09:13:03]ProducePacketName [09:13:03]name=ofd_packets/00156483 [09:13:03]NVStorageDeleteData [09:13:03]Write to MH i2c: 01 00 00 BB 3A F5 [09:13:03]Write i2c OK [09:13:03]MH_I2C_Read... [09:13:03]Read from MH i2c: 01 [09:13:03]MH_I2C_Read... [09:13:03]Read from MH i2c: 01 07 00 [09:13:03]MH_I2C_Read... [09:13:03]Read from MH i2c: 01 07 00 BB 3A 00 00 00 00 00 D5 0C DD [09:13:03]RasterBufferAndPrint [09:13:03]line [09:13:03]line [09:13:03]line [09:13:03]line [09:13:03]line [09:13:03]written 0, free lines is 3289 [09:13:03]process_action close_receipt done [09:13:03]requested_data is exist [09:13:03]produce_requested_data [09:13:03]requested_item fm.sn is exist - process it [09:13:03]wFMCommunicate request_size=4 [09:13:03]MH_SAM_APDU [09:13:03]CAPDU: 80 11 00 00 [09:13:03]Write to MH i2c: E2 08 00 C2 3A 80 11 00 00 00 00 00 00 76 [09:13:03]Write i2c OK [09:13:03]MH_I2C_Read... [09:13:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:13:03]Read from MH i2c: E2 [09:13:03]MH_I2C_Read... [09:13:03]Read from MH i2c: E2 17 00 [09:13:03]MH_I2C_Read... [09:13:03]Read from MH i2c: E2 17 00 C2 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 CB [09:13:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:13:03]wFMCommunicate OK [09:13:03]requested_item fd.num is exist - process it [09:13:03]SAM_PROTO_GetFieldsCounters [09:13:03]wFMCommunicate request_size=4 [09:13:03]MH_SAM_APDU [09:13:03]CAPDU: 80 13 00 00 [09:13:03]Write to MH i2c: E2 08 00 C3 3A 80 13 00 00 00 00 00 00 79 [09:13:03]Write i2c OK [09:13:03]MH_I2C_Read... [09:13:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:13:04]Read from MH i2c: E2 [09:13:04]MH_I2C_Read... [09:13:04]Read from MH i2c: E2 62 00 [09:13:04]MH_I2C_Read... [09:13:04]Read from MH i2c: E2 62 00 C3 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 43 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 C8 [09:13:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 43 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:13:04]wFMCommunicate OK [09:13:04]SAM_PROTO_GetFieldsCounters done [09:13:04]requested_item shift.num is exist - process it [09:13:04]requested_item shift.opened is exist - process it [09:13:04]req_shift_opened [09:13:04]FM_GetShiftState [09:13:04]SAM_PROTO_GetShiftState [09:13:04]wFMCommunicate request_size=4 [09:13:04]MH_SAM_APDU [09:13:04]CAPDU: 80 13 01 00 [09:13:04]Write to MH i2c: E2 08 00 C4 3A 80 13 01 00 00 00 00 00 7B [09:13:04]Write i2c OK [09:13:04]MH_I2C_Read... [09:13:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:13:04]Read from MH i2c: E2 [09:13:04]MH_I2C_Read... [09:13:04]Read from MH i2c: E2 0E 00 [09:13:04]MH_I2C_Read... [09:13:04]Read from MH i2c: E2 0E 00 C4 3A 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 48 [09:13:04]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [09:13:04]wFMCommunicate OK [09:13:04]SAM_PROTO_GetShiftState done [09:13:04]FM_GetShiftState done [09:13:04]req_shift_opened done [09:13:04]requested_item shift.open_date is exist - process it [09:13:04]req_shift_open_date [09:13:04]req_shift_open_date done [09:13:04]produce_requested_data done [09:13:04]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156483,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [09:13:04]process_action_free close_receipt [09:13:04]json_value_free [09:13:04]json_value_free done [09:13:04]process_json_proto returns [09:13:04]Send response to host [09:13:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156483,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [09:13:04]free response buf [09:13:04]execute_script done [09:13:04]execute_script returns [09:13:04]free content buf [09:13:04]Sock 8.Close socket [09:13:04]Sock 8.Thread stoped [09:13:04]OFD Sender: No OFD packet to send [09:13:09]OFD Sender: No OFD packet to send [09:13:14]OFD Sender: No OFD packet to send [09:13:19]OFD Sender: No OFD packet to send [09:13:24]OFD Sender: No OFD packet to send [09:13:29]OFD Sender: No OFD packet to send [09:13:34]OFD Sender: No OFD packet to send [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:19]OFD Sender: No OFD packet to send [09:16:24]OFD Sender: No OFD packet to send [09:16:29]OFD Sender: No OFD packet to send [09:16:34]OFD Sender: No OFD packet to send [09:16:39]OFD Sender: No OFD packet to send [09:16:44]OFD Sender: No OFD packet to send [09:16:49]OFD Sender: No OFD packet to send [09:16:54]OFD Sender: No OFD packet to send [09:16:59]OFD Sender: No OFD packet to send [09:17:04]OFD Sender: No OFD packet to send [09:17:09]OFD Sender: No OFD packet to send [09:17:14]OFD Sender: No OFD packet to send [09:17:19]OFD Sender: No OFD packet to send [09:17:24]OFD Sender: No OFD packet to send [09:17:29]OFD Sender: No OFD packet to send [09:17:33]accept exits with 9 [09:17:33]New connection [09:17:33]New thread 3066834276 created [09:17:33]Thread 3066977636 joined [09:17:33]Waiting for new connection... [09:17:33] Sock 9.Parse request [09:17:33]Sock 9.Check first char [09:17:33]Sock 9.First char is OK [09:17:33]request: POST /json_proto HTTP/1.0 [09:17:33]Method: POST [09:17:33]URL: /json_proto [09:17:33]Method is POST - this is cgi request [09:17:33]url: /json_proto [09:17:33]query_string will be loaded in cgi processing [09:17:33]execute_cgi json_proto POST (null) [09:17:33]execute_cgi path=json_proto method=POST [09:17:33]POST find Content-Length [09:17:33]Host: 172.17.63.3:8080 [09:17:33]Content-Length: 681 [09:17:33]Content-Type: application/json [09:17:33] [09:17:33]POST finish read [09:17:33]Found Content-Length = 681 [09:17:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99297", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "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" ] } } [09:17:33]execute_script... [09:17:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99297", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "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" ] } } [09:17:33]POST & json_proto [09:17:33]process_json_proto [09:17:33]json parsed OK: [09:17:33]protocol is kg_v1.0 [09:17:33]action value=close_receipt [09:17:33]process_action close_receipt [09:17:33]cmd_close_receipt [09:17:33]MH_GetDate [09:17:33]Write to MH i2c: F0 00 00 C5 3A EE [09:17:33]Write i2c OK [09:17:33]MH_I2C_Read... [09:17:33]Read from MH i2c: F0 [09:17:33]MH_I2C_Read... [09:17:33]Read from MH i2c: F0 09 00 [09:17:33]MH_I2C_Read... [09:17:33]Read from MH i2c: F0 09 00 C5 3A 00 32 05 1E 67 50 D1 6C 64 A4 [09:17:33]GetLastDocTimeStamp 1730020386 [09:17:33]current date 1730020658 [09:17:33]FM_GetShiftState [09:17:33]SAM_PROTO_GetShiftState [09:17:33]wFMCommunicate request_size=4 [09:17:33]MH_SAM_APDU [09:17:33]CAPDU: 80 13 01 00 [09:17:33]Write to MH i2c: E2 08 00 C6 3A 80 13 01 00 00 00 00 00 7D [09:17:33]Write i2c OK [09:17:33]MH_I2C_Read... [09:17:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:17:33]Read from MH i2c: E2 [09:17:33]MH_I2C_Read... [09:17:33]Read from MH i2c: E2 0E 00 [09:17:33]MH_I2C_Read... [09:17:33]Read from MH i2c: E2 0E 00 C6 3A 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 4A [09:17:33]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [09:17:33]wFMCommunicate OK [09:17:33]SAM_PROTO_GetShiftState done [09:17:33]FM_GetShiftState done [09:17:33]opened in 1729989044 [09:17:33]opened+sec_in_day 1730075444 [09:17:33]quantity*price = 150056 [09:17:33]sum+1 = 150058 [09:17:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 35 27.10.2024 09:17 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156484 ФПД: 148331579289395 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T091738&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156484&fm=148331579289395&tin=02508201610067®Number=0000000000091693&sum=150000 [09:17:34]StoreToDocumentArchive [09:17:34]shift 537 fd 156484 [09:17:34]save to /storage/0537/doc_00156484 [09:17:34]save last doc name /storage/0537/doc_00156484 to /storage/kkm_last_doc_name [09:17:34]save OK [09:17:34]Clear old archive folders... [09:17:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:17:34]tlvbuf is 016811E0 [09:17:34]SAM_PROTO_ClearQueue [09:17:34]wFMCommunicate request_size=4 [09:17:34]MH_SAM_APDU [09:17:34]CAPDU: 80 09 00 00 [09:17:34]Write to MH i2c: E2 08 00 D3 3A 80 09 00 00 00 00 00 00 7F [09:17:34]Write i2c OK [09:17:34]MH_I2C_Read... [09:17:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:17:34]Read from MH i2c: E2 [09:17:34]MH_I2C_Read... [09:17:34]Read from MH i2c: E2 03 00 [09:17:34]MH_I2C_Read... [09:17:34]Read from MH i2c: E2 03 00 D3 3A 00 90 00 81 [09:17:34]RAPDU: 90 00 [09:17:34]wFMCommunicate OK [09:17:34]SAM_PROTO_ClearQueue done [09:17:34]KKMCreateOFDPacket [09:17:34]OFDProtocolAddRootSTLVToBuf [09:17:34]FM_MakeSignedData [09:17:34]FM_MakeSignedData [09:17:34]SAM_PROTO_SignData [09:17:34]wFMCommunicate request_size=4 [09:17:34]MH_SAM_APDU [09:17:34]CAPDU: 80 0D 01 02 [09:17:34]Write to MH i2c: E2 08 00 D4 3A 80 0D 01 02 00 00 00 00 87 [09:17:34]Write i2c OK [09:17:34]MH_I2C_Read... [09:17:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:17:34]Read from MH i2c: E2 [09:17:34]MH_I2C_Read... [09:17:34]Read from MH i2c: E2 03 00 [09:17:34]MH_I2C_Read... [09:17:34]Read from MH i2c: E2 03 00 D4 3A 00 90 00 82 [09:17:34]RAPDU: 90 00 [09:17:34]wFMCommunicate OK [09:17:34]wFMCommunicate request_size=255 [09:17:34]MH_SAM_APDU [09:17:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 32 05 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 44 63 02 00 35 04 06 00 86 [09:17:34]Write to MH i2c: E2 02 01 D5 3A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 32 05 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 44 63 02 00 35 04 06 00 86 00 00 8D [09:17:34]Write i2c OK [09:17:34]MH_I2C_Read... [09:17:34]OFD Sender: No OFD packet to send [09:17:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:17:34]Read from MH i2c: E2 [09:17:34]MH_I2C_Read... [09:17:34]Read from MH i2c: E2 03 00 [09:17:34]MH_I2C_Read... [09:17:34]Read from MH i2c: E2 03 00 D5 3A 00 90 00 83 [09:17:34]RAPDU: 90 00 [09:17:34]wFMCommunicate OK [09:17:34]wFMCommunicate request_size=10 [09:17:34]MH_SAM_APDU [09:17:34]CAPDU: 80 0D 02 02 05 E8 23 17 AF 33 [09:17:34]Write to MH i2c: E2 0D 00 D6 3A 80 0D 02 02 05 00 E8 23 17 AF 33 00 00 98 [09:17:34]Write i2c OK [09:17:34]MH_I2C_Read... [09:17:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:17:34]Read from MH i2c: E2 [09:17:34]MH_I2C_Read... [09:17:34]Read from MH i2c: E2 03 00 [09:17:34]MH_I2C_Read... [09:17:34]Read from MH i2c: E2 03 00 D6 3A 00 90 00 84 [09:17:34]RAPDU: 90 00 [09:17:34]wFMCommunicate OK [09:17:34]wFMCommunicate request_size=4 [09:17:34]MH_SAM_APDU [09:17:34]CAPDU: 80 0D 03 02 [09:17:34]Write to MH i2c: E2 08 00 D7 3A 80 0D 03 02 00 00 00 00 8C [09:17:34]Write i2c OK [09:17:34]MH_I2C_Read... [09:17:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:17:34]Read from MH i2c: E2 [09:17:34]MH_I2C_Read... [09:17:34]Read from MH i2c: E2 0B 00 [09:17:34]MH_I2C_Read... [09:17:34]Read from MH i2c: E2 0B 00 D7 3A 00 52 B2 22 80 D7 62 4E 40 90 00 FA [09:17:34]RAPDU: 52 B2 22 80 D7 62 4E 40 90 00 [09:17:34]wFMCommunicate OK [09:17:34]SAM_PROTO_SignData done [09:17:34]FM_MakeSignedData done [09:17:34]CreateOFDProtocolMessage [09:17:34]wFMCommunicate request_size=4 [09:17:34]MH_SAM_APDU [09:17:34]CAPDU: 80 11 00 00 [09:17:34]Write to MH i2c: E2 08 00 D8 3A 80 11 00 00 00 00 00 00 8C [09:17:34]Write i2c OK [09:17:34]MH_I2C_Read... [09:17:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:17:34]Read from MH i2c: E2 [09:17:34]MH_I2C_Read... [09:17:34]Read from MH i2c: E2 17 00 [09:17:34]MH_I2C_Read... [09:17:34]Read from MH i2c: E2 17 00 D8 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 E1 [09:17:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:17:34]wFMCommunicate OK [09:17:34]CreateOFDProtocolMessage done [09:17:34]OFDSenderStorePacket 156484 [09:17:34]StoreOFDPacket docnum=156484 [09:17:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 16 B8 07 01 4A 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 32 05 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 44 63 02 00 35 04 06 00 86 E8 23 17 AF 33 52 B2 22 80 D7 62 4E 40 [09:17:34]CheckFolder [09:17:34]dirname=/storage/ofd_packets [09:17:34]CheckFolder done [09:17:34]ProducePacketName [09:17:34]name=ofd_packets/00156484 [09:17:34]NVStorageSaveData ofd_packets/00156484 [09:17:34]File name is /storage/ofd_packets/00156484 [09:17:34]Write 301 bytes [09:17:34]NVStorageSaveData done [09:17:34]OFDSenderStorePacket done [09:17:34]KKMCreateOFDPacket done [09:17:34]NVStorageSaveData kkm_last_timestamp [09:17:34]File name is /storage/kkm_last_timestamp [09:17:34]Write 4 bytes [09:17:34]NVStorageSaveData done [09:17:34]ExternCall_PrintAddStr [09:17:34]wPrintStart [09:17:34]Write to MH i2c: 01 00 00 D9 3A 13 [09:17:34]Write i2c OK [09:17:34]MH_I2C_Read... [09:17:34]Read from MH i2c: 01 [09:17:34]MH_I2C_Read... [09:17:34]Read from MH i2c: 01 07 00 [09:17:34]MH_I2C_Read... [09:17:34]Read from MH i2c: 01 07 00 D9 3A 00 00 00 00 00 FF 0F 28 [09:17:34]RasterBufferAndPrint [09:17:34]line Счет N : (1)99297 [09:17:34]line ИНН: 02508201610067 [09:17:34]line Контрольно-Кассовый Чек [09:17:34]line ПРОДАЖА [09:17:34]line ТРК (МРК, ГНК) : 31 [09:17:34]line Товар: 2710124130 [09:17:34]line Аи-92-К-5 [09:17:34]line 22.430 * 66.90 [09:17:34]line = 1500.57 [09:17:34]line НДС 12% НСП 1% [09:17:34]line > о реализуемом товаре [09:17:34]line ОКРУГЛЕНИЕ: -0.57 [09:17:34]line ИТОГО: 1500.00 [09:17:34]line Внесено: 1500.00 [09:17:34]line СДАЧА: 0.00 [09:17:34]line НСП 1% : 13.28 [09:17:34]line НДС 12% : 159.35 [09:17:34]line Наличными: 1500.00 [09:17:34]line Безнал.: 0.00 [09:17:34]line Место: АЗС № 143 "Партнер Нефть" [09:17:34]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [09:17:34]line СНО: Общий режим [09:17:34]line Чек 35 27.10.2024 09:17 [09:17:34]line Смена: 537 ФФД: 1.0 [09:17:34]line ЗНМ: 0300000096 [09:17:34]line РНМ: 0000000000091693 [09:17:34]line Версия ККМ: 001 [09:17:34]line ФМ: 0000000000871792 [09:17:34]line ФД: 156484 [09:17:34]line ФПД: 148331579289395 [09:17:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T091738&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156484&fm=148331579289395&tin=02508201610067®Number=0000000000091693&sum=150000 [09:17:35]OFD Sender: Processing packet 156484 [packets to send 31, broken 30] [09:17:35]ProducePacketName [09:17:35]name=ofd_packets/00156484 [09:17:35]OFD Sender: To server: pG, [09:17:35]CommunicateWithHost lk.salyk.kg:30040 [09:17:35]ConnectInit lk.salyk.kg [09:17:35]written 0, free lines is 4095 [09:17:35]Connected sock=10 [09:17:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 16 B8 07 01 4A 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 32 05 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 44 63 02 00 35 04 06 00 86 E8 23 17 AF 33 52 B2 22 80 D7 62 4E 40 [09:17:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 83 88 47 00 D8 0A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 44 63 02 00 F4 03 04 00 A2 AA 1D 67 B6 04 01 00 00 74 4C 87 96 45 D3 CA 2C [09:17:35]CommunicateWithHost err = 0 [09:17:35]CheckOFDResponse [09:17:35]1017 (14) - 77093643461234 [09:17:35]1041 (16) - 0000000000871792 [09:17:35]1040 (4) - 156484 [09:17:35]1012 (4) - 27.10.2024 02:51 [09:17:35]1206 (1) - 0 [09:17:35]OFD Sender: Remove packet 156484 [09:17:35]ProducePacketName [09:17:35]name=ofd_packets/00156484 [09:17:35]NVStorageDeleteData [09:17:35]Write to MH i2c: 01 00 00 04 3B 3F [09:17:35]Write i2c OK [09:17:35]MH_I2C_Read... [09:17:35]Read from MH i2c: 01 [09:17:35]MH_I2C_Read... [09:17:35]Read from MH i2c: 01 07 00 [09:17:35]MH_I2C_Read... [09:17:35]Read from MH i2c: 01 07 00 04 3B 00 00 00 00 00 E1 0C 33 [09:17:35]RasterBufferAndPrint [09:17:35]line [09:17:35]line [09:17:35]line [09:17:35]line [09:17:35]line [09:17:35]written 0, free lines is 3303 [09:17:35]process_action close_receipt done [09:17:35]requested_data is exist [09:17:35]produce_requested_data [09:17:35]requested_item fm.sn is exist - process it [09:17:35]wFMCommunicate request_size=4 [09:17:35]MH_SAM_APDU [09:17:35]CAPDU: 80 11 00 00 [09:17:35]Write to MH i2c: E2 08 00 0B 3B 80 11 00 00 00 00 00 00 C0 [09:17:35]Write i2c OK [09:17:35]MH_I2C_Read... [09:17:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:17:35]Read from MH i2c: E2 [09:17:35]MH_I2C_Read... [09:17:35]Read from MH i2c: E2 17 00 [09:17:35]MH_I2C_Read... [09:17:35]Read from MH i2c: E2 17 00 0B 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 15 [09:17:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:17:35]wFMCommunicate OK [09:17:35]requested_item fd.num is exist - process it [09:17:35]SAM_PROTO_GetFieldsCounters [09:17:35]wFMCommunicate request_size=4 [09:17:35]MH_SAM_APDU [09:17:35]CAPDU: 80 13 00 00 [09:17:35]Write to MH i2c: E2 08 00 0C 3B 80 13 00 00 00 00 00 00 C3 [09:17:35]Write i2c OK [09:17:35]MH_I2C_Read... [09:17:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:17:35]Read from MH i2c: E2 [09:17:35]MH_I2C_Read... [09:17:35]Read from MH i2c: E2 62 00 [09:17:35]MH_I2C_Read... [09:17:35]Read from MH i2c: E2 62 00 0C 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 44 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 16 [09:17:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 44 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:17:35]wFMCommunicate OK [09:17:35]SAM_PROTO_GetFieldsCounters done [09:17:35]requested_item shift.num is exist - process it [09:17:35]requested_item shift.opened is exist - process it [09:17:35]req_shift_opened [09:17:35]FM_GetShiftState [09:17:35]SAM_PROTO_GetShiftState [09:17:35]wFMCommunicate request_size=4 [09:17:35]MH_SAM_APDU [09:17:35]CAPDU: 80 13 01 00 [09:17:35]Write to MH i2c: E2 08 00 0D 3B 80 13 01 00 00 00 00 00 C5 [09:17:35]Write i2c OK [09:17:35]MH_I2C_Read... [09:17:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:17:35]Read from MH i2c: E2 [09:17:35]MH_I2C_Read... [09:17:35]Read from MH i2c: E2 0E 00 [09:17:35]MH_I2C_Read... [09:17:35]Read from MH i2c: E2 0E 00 0D 3B 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 92 [09:17:35]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [09:17:35]wFMCommunicate OK [09:17:35]SAM_PROTO_GetShiftState done [09:17:35]FM_GetShiftState done [09:17:35]req_shift_opened done [09:17:35]requested_item shift.open_date is exist - process it [09:17:35]req_shift_open_date [09:17:35]req_shift_open_date done [09:17:35]produce_requested_data done [09:17:35]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156484,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [09:17:35]process_action_free close_receipt [09:17:35]json_value_free [09:17:35]json_value_free done [09:17:35]process_json_proto returns [09:17:35]Send response to host [09:17:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156484,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [09:17:35]free response buf [09:17:35]execute_script done [09:17:35]execute_script returns [09:17:35]free content buf [09:17:35]Sock 9.Close socket [09:17:35]Sock 9.Thread stoped [09:17:36]OFD Sender: No OFD packet to send [09:17:41]OFD Sender: No OFD packet to send [09:17:46]OFD Sender: No OFD packet to send [09:17:51]OFD Sender: No OFD packet to send [09:17:56]OFD Sender: No OFD packet to send [09:18:01]OFD Sender: No OFD packet to send [09:18:06]OFD Sender: No OFD packet to send [09:18:11]OFD Sender: No OFD packet to send [09:18:16]OFD Sender: No OFD packet to send [09:18:21]OFD Sender: No OFD packet to send [09:18:26]OFD Sender: No OFD packet to send [09:18:31]OFD Sender: No OFD packet to send [09:18:36]OFD Sender: No OFD packet to send [09:18:41]OFD Sender: No OFD packet to send [09:18:46]OFD Sender: No OFD packet to send [09:18:51]OFD Sender: No OFD packet to send [09:18:56]OFD Sender: No OFD packet to send [09:19:01]OFD Sender: No OFD packet to send [09:19:06]OFD Sender: No OFD packet to send [09:19:11]OFD Sender: No OFD packet to send [09:19:16]OFD Sender: No OFD packet to send [09:19:21]OFD Sender: No OFD packet to send [09:19:26]OFD Sender: No OFD packet to send [09:19:31]OFD Sender: No OFD packet to send [09:19:36]OFD Sender: No OFD packet to send [09:19:41]OFD Sender: No OFD packet to send [09:19:46]OFD Sender: No OFD packet to send [09:19:51]OFD Sender: No OFD packet to send [09:19:56]OFD Sender: No OFD packet to send [09:19:57]accept exits with 8 [09:19:57]New connection [09:19:57]New thread 3066977636 created [09:19:57]Thread 3066834276 joined [09:19:57]Waiting for new connection... [09:19:57] Sock 8.Parse request [09:19:57]Sock 8.Check first char [09:19:57]Sock 8.First char is OK [09:19:57]request: POST /json_proto HTTP/1.0 [09:19:57]Method: POST [09:19:57]URL: /json_proto [09:19:57]Method is POST - this is cgi request [09:19:57]url: /json_proto [09:19:57]query_string will be loaded in cgi processing [09:19:57]execute_cgi json_proto POST (null) [09:19:57]execute_cgi path=json_proto method=POST [09:19:57]POST find Content-Length [09:19:57]Host: 172.17.63.3:8080 [09:19:57]Content-Length: 681 [09:19:57]Content-Type: application/json [09:19:57] [09:19:57]POST finish read [09:19:57]Found Content-Length = 681 [09:19:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99298", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:19:57]execute_script... [09:19: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)99298", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:19:57]POST & json_proto [09:19:57]process_json_proto [09:19:57]json parsed OK: [09:19:57]protocol is kg_v1.0 [09:19:57]action value=close_receipt [09:19:57]process_action close_receipt [09:19:57]cmd_close_receipt [09:19:57]MH_GetDate [09:19:57]Write to MH i2c: F0 00 00 0E 3B 38 [09:19:57]Write i2c OK [09:19:57]MH_I2C_Read... [09:19:57]Read from MH i2c: F0 [09:19:57]MH_I2C_Read... [09:19:57]Read from MH i2c: F0 09 00 [09:19:57]MH_I2C_Read... [09:19:57]Read from MH i2c: F0 09 00 0E 3B 00 C2 05 1E 67 50 D1 6C 64 7E [09:19:57]GetLastDocTimeStamp 1730020658 [09:19:57]current date 1730020802 [09:19:57]FM_GetShiftState [09:19:57]SAM_PROTO_GetShiftState [09:19:57]wFMCommunicate request_size=4 [09:19:57]MH_SAM_APDU [09:19:57]CAPDU: 80 13 01 00 [09:19:57]Write to MH i2c: E2 08 00 0F 3B 80 13 01 00 00 00 00 00 C7 [09:19:57]Write i2c OK [09:19:57]MH_I2C_Read... [09:19:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:19:57]Read from MH i2c: E2 [09:19:57]MH_I2C_Read... [09:19:57]Read from MH i2c: E2 0E 00 [09:19:57]MH_I2C_Read... [09:19:57]Read from MH i2c: E2 0E 00 0F 3B 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 94 [09:19:57]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [09:19:57]wFMCommunicate OK [09:19:57]SAM_PROTO_GetShiftState done [09:19:57]FM_GetShiftState done [09:19:57]opened in 1729989044 [09:19:57]opened+sec_in_day 1730075444 [09:19:57]quantity*price = 100015 [09:19:57]sum+1 = 100017 [09:19:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 36 27.10.2024 09:20 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156485 ФПД: 220918798930907 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T092002&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156485&fm=220918798930907&tin=02508201610067®Number=0000000000091693&sum=100000 [09:19:58]StoreToDocumentArchive [09:19:58]shift 537 fd 156485 [09:19:58]save to /storage/0537/doc_00156485 [09:19:58]save last doc name /storage/0537/doc_00156485 to /storage/kkm_last_doc_name [09:19:58]save OK [09:19:58]Clear old archive folders... [09:19:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:19:58]tlvbuf is 016E4290 [09:19:58]SAM_PROTO_ClearQueue [09:19:58]wFMCommunicate request_size=4 [09:19:58]MH_SAM_APDU [09:19:58]CAPDU: 80 09 00 00 [09:19:58]Write to MH i2c: E2 08 00 1C 3B 80 09 00 00 00 00 00 00 C9 [09:19:58]Write i2c OK [09:19:58]MH_I2C_Read... [09:19:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:19:59]Read from MH i2c: E2 [09:19:59]MH_I2C_Read... [09:19:59]Read from MH i2c: E2 03 00 [09:19:59]MH_I2C_Read... [09:19:59]Read from MH i2c: E2 03 00 1C 3B 00 90 00 CB [09:19:59]RAPDU: 90 00 [09:19:59]wFMCommunicate OK [09:19:59]SAM_PROTO_ClearQueue done [09:19:59]KKMCreateOFDPacket [09:19:59]OFDProtocolAddRootSTLVToBuf [09:19:59]FM_MakeSignedData [09:19:59]FM_MakeSignedData [09:19:59]SAM_PROTO_SignData [09:19:59]wFMCommunicate request_size=4 [09:19:59]MH_SAM_APDU [09:19:59]CAPDU: 80 0D 01 02 [09:19:59]Write to MH i2c: E2 08 00 1D 3B 80 0D 01 02 00 00 00 00 D1 [09:19:59]Write i2c OK [09:19:59]MH_I2C_Read... [09:19:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:19:59]Read from MH i2c: E2 [09:19:59]MH_I2C_Read... [09:19:59]Read from MH i2c: E2 03 00 [09:19:59]MH_I2C_Read... [09:19:59]Read from MH i2c: E2 03 00 1D 3B 00 90 00 CC [09:19:59]RAPDU: 90 00 [09:19:59]wFMCommunicate OK [09:19:59]wFMCommunicate request_size=255 [09:19:59]MH_SAM_APDU [09:19: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 C2 05 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 45 63 02 00 35 04 06 00 C8 [09:19:59]Write to MH i2c: E2 02 01 1E 3B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 C2 05 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 45 63 02 00 35 04 06 00 C8 00 00 5C [09:19:59]Write i2c OK [09:19:59]MH_I2C_Read... [09:19:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:19:59]Read from MH i2c: E2 [09:19:59]MH_I2C_Read... [09:19:59]Read from MH i2c: E2 03 00 [09:19:59]MH_I2C_Read... [09:19:59]Read from MH i2c: E2 03 00 1E 3B 00 90 00 CD [09:19:59]RAPDU: 90 00 [09:19:59]wFMCommunicate OK [09:19:59]wFMCommunicate request_size=10 [09:19:59]MH_SAM_APDU [09:19:59]CAPDU: 80 0D 02 02 05 EC AA 88 D3 DB [09:19:59]Write to MH i2c: E2 0D 00 1F 3B 80 0D 02 02 05 00 EC AA 88 D3 DB 00 00 AA [09:19:59]Write i2c OK [09:19:59]MH_I2C_Read... [09:19:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:19:59]Read from MH i2c: E2 [09:19:59]MH_I2C_Read... [09:19:59]Read from MH i2c: E2 03 00 [09:19:59]MH_I2C_Read... [09:19:59]Read from MH i2c: E2 03 00 1F 3B 00 90 00 CE [09:19:59]RAPDU: 90 00 [09:19:59]wFMCommunicate OK [09:19:59]wFMCommunicate request_size=4 [09:19:59]MH_SAM_APDU [09:19:59]CAPDU: 80 0D 03 02 [09:19:59]Write to MH i2c: E2 08 00 20 3B 80 0D 03 02 00 00 00 00 D6 [09:19:59]Write i2c OK [09:19:59]MH_I2C_Read... [09:19:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:19:59]Read from MH i2c: E2 [09:19:59]MH_I2C_Read... [09:19:59]Read from MH i2c: E2 0B 00 [09:19:59]MH_I2C_Read... [09:19:59]Read from MH i2c: E2 0B 00 20 3B 00 2D 8F 72 56 18 E7 31 80 90 00 0B [09:19:59]RAPDU: 2D 8F 72 56 18 E7 31 80 90 00 [09:19:59]wFMCommunicate OK [09:19:59]SAM_PROTO_SignData done [09:19:59]FM_MakeSignedData done [09:19:59]CreateOFDProtocolMessage [09:19:59]wFMCommunicate request_size=4 [09:19:59]MH_SAM_APDU [09:19:59]CAPDU: 80 11 00 00 [09:19:59]Write to MH i2c: E2 08 00 21 3B 80 11 00 00 00 00 00 00 D6 [09:19:59]Write i2c OK [09:19:59]MH_I2C_Read... [09:19:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:19:59]Read from MH i2c: E2 [09:19:59]MH_I2C_Read... [09:19:59]Read from MH i2c: E2 17 00 [09:19:59]MH_I2C_Read... [09:19:59]Read from MH i2c: E2 17 00 21 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 2B [09:19:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:19:59]wFMCommunicate OK [09:19:59]CreateOFDProtocolMessage done [09:19:59]OFDSenderStorePacket 156485 [09:19:59]StoreOFDPacket docnum=156485 [09:19:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 31 36 07 01 60 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 C2 05 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 45 63 02 00 35 04 06 00 C8 EC AA 88 D3 DB 2D 8F 72 56 18 E7 31 80 [09:19:59]CheckFolder [09:19:59]dirname=/storage/ofd_packets [09:19:59]CheckFolder done [09:19:59]ProducePacketName [09:19:59]name=ofd_packets/00156485 [09:19:59]NVStorageSaveData ofd_packets/00156485 [09:19:59]File name is /storage/ofd_packets/00156485 [09:19:59]Write 301 bytes [09:19:59]NVStorageSaveData done [09:19:59]OFDSenderStorePacket done [09:19:59]KKMCreateOFDPacket done [09:19:59]NVStorageSaveData kkm_last_timestamp [09:19:59]File name is /storage/kkm_last_timestamp [09:19:59]Write 4 bytes [09:19:59]NVStorageSaveData done [09:19:59]ExternCall_PrintAddStr [09:19:59]wPrintStart [09:19:59]Write to MH i2c: 01 00 00 22 3B 5D [09:19:59]Write i2c OK [09:19:59]MH_I2C_Read... [09:19:59]Read from MH i2c: 01 [09:19:59]MH_I2C_Read... [09:19:59]Read from MH i2c: 01 07 00 [09:19:59]MH_I2C_Read... [09:19:59]Read from MH i2c: 01 07 00 22 3B 00 00 00 00 00 FF 0F 72 [09:19:59]RasterBufferAndPrint [09:19:59]line Счет N : (1)99298 [09:19:59]line ИНН: 02508201610067 [09:19:59]line Контрольно-Кассовый Чек [09:19:59]line ПРОДАЖА [09:19:59]line ТРК (МРК, ГНК) : 21 [09:19:59]line Товар: 2710124130 [09:19:59]line Аи-92-К-5 [09:19:59]line 14.950 * 66.90 [09:19:59]line = 1000.16 [09:19:59]line НДС 12% НСП 1% [09:19:59]line > о реализуемом товаре [09:19:59]line ОКРУГЛЕНИЕ: -0.16 [09:19:59]line ИТОГО: 1000.00 [09:19:59]line Внесено: 1000.00 [09:19:59]line СДАЧА: 0.00 [09:19:59]line НСП 1% : 8.85 [09:19:59]line НДС 12% : 106.21 [09:19:59]line Наличными: 1000.00 [09:19:59]line Безнал.: 0.00 [09:19:59]line Место: АЗС № 143 "Партнер Нефть" [09:19:59]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [09:19:59]line СНО: Общий режим [09:19:59]line Чек 36 27.10.2024 09:20 [09:19:59]line Смена: 537 ФФД: 1.0 [09:19:59]line ЗНМ: 0300000096 [09:19:59]line РНМ: 0000000000091693 [09:19:59]line Версия ККМ: 001 [09:19:59]line ФМ: 0000000000871792 [09:19:59]line ФД: 156485 [09:19:59]line ФПД: 220918798930907 [09:19:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T092002&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156485&fm=220918798930907&tin=02508201610067®Number=0000000000091693&sum=100000 [09:19:59]OFD Sender: Processing packet 156485 [packets to send 31, broken 30] [09:19:59]ProducePacketName [09:19:59]name=ofd_packets/00156485 [09:19:59]OFD Sender: To server: pG, [09:19:59]CommunicateWithHost lk.salyk.kg:30040 [09:19:59]ConnectInit lk.salyk.kg [09:19:59]written 0, free lines is 4095 [09:19:59]Connected sock=10 [09:19:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 31 36 07 01 60 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 C2 05 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 45 63 02 00 35 04 06 00 C8 EC AA 88 D3 DB 2D 8F 72 56 18 E7 31 80 [09:20:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 06 6E 47 00 68 3A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 45 63 02 00 F4 03 04 00 32 AB 1D 67 B6 04 01 00 00 93 4D 85 D5 B5 A7 4B 76 [09:20:00]CommunicateWithHost err = 0 [09:20:00]CheckOFDResponse [09:20:00]1017 (14) - 77093643461234 [09:20:00]1041 (16) - 0000000000871792 [09:20:00]1040 (4) - 156485 [09:20:00]1012 (4) - 27.10.2024 02:53 [09:20:00]1206 (1) - 0 [09:20:00]OFD Sender: Remove packet 156485 [09:20:00]ProducePacketName [09:20:00]name=ofd_packets/00156485 [09:20:00]NVStorageDeleteData [09:20:00]Write to MH i2c: 01 00 00 4D 3B 88 [09:20:00]Write i2c OK [09:20:00]MH_I2C_Read... [09:20:00]Read from MH i2c: 01 [09:20:00]MH_I2C_Read... [09:20:00]Read from MH i2c: 01 07 00 [09:20:00]MH_I2C_Read... [09:20:00]Read from MH i2c: 01 07 00 4D 3B 00 00 00 00 00 FB 0C 96 [09:20:00]RasterBufferAndPrint [09:20:00]line [09:20:00]line [09:20:00]line [09:20:00]line [09:20:00]line [09:20:00]written 0, free lines is 3329 [09:20:00]process_action close_receipt done [09:20:00]requested_data is exist [09:20:00]produce_requested_data [09:20:00]requested_item fm.sn is exist - process it [09:20:00]wFMCommunicate request_size=4 [09:20:00]MH_SAM_APDU [09:20:00]CAPDU: 80 11 00 00 [09:20:00]Write to MH i2c: E2 08 00 54 3B 80 11 00 00 00 00 00 00 09 [09:20:00]Write i2c OK [09:20:00]MH_I2C_Read... [09:20:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:20:00]Read from MH i2c: E2 [09:20:00]MH_I2C_Read... [09:20:00]Read from MH i2c: E2 17 00 [09:20:00]MH_I2C_Read... [09:20:00]Read from MH i2c: E2 17 00 54 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 5E [09:20:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:20:00]wFMCommunicate OK [09:20:00]requested_item fd.num is exist - process it [09:20:00]SAM_PROTO_GetFieldsCounters [09:20:00]wFMCommunicate request_size=4 [09:20:00]MH_SAM_APDU [09:20:00]CAPDU: 80 13 00 00 [09:20:00]Write to MH i2c: E2 08 00 55 3B 80 13 00 00 00 00 00 00 0C [09:20:00]Write i2c OK [09:20:00]MH_I2C_Read... [09:20:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:20:00]Read from MH i2c: E2 [09:20:00]MH_I2C_Read... [09:20:00]Read from MH i2c: E2 62 00 [09:20:00]MH_I2C_Read... [09:20:00]Read from MH i2c: E2 62 00 55 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 45 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 63 [09:20:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 45 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:20:00]wFMCommunicate OK [09:20:00]SAM_PROTO_GetFieldsCounters done [09:20:00]requested_item shift.num is exist - process it [09:20:00]requested_item shift.opened is exist - process it [09:20:00]req_shift_opened [09:20:00]FM_GetShiftState [09:20:00]SAM_PROTO_GetShiftState [09:20:00]wFMCommunicate request_size=4 [09:20:00]MH_SAM_APDU [09:20:00]CAPDU: 80 13 01 00 [09:20:00]Write to MH i2c: E2 08 00 56 3B 80 13 01 00 00 00 00 00 0E [09:20:00]Write i2c OK [09:20:00]MH_I2C_Read... [09:20:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:20:00]Read from MH i2c: E2 [09:20:00]MH_I2C_Read... [09:20:00]Read from MH i2c: E2 0E 00 [09:20:00]MH_I2C_Read... [09:20:00]Read from MH i2c: E2 0E 00 56 3B 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 DB [09:20:00]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [09:20:00]wFMCommunicate OK [09:20:00]SAM_PROTO_GetShiftState done [09:20:00]FM_GetShiftState done [09:20:00]req_shift_opened done [09:20:00]requested_item shift.open_date is exist - process it [09:20:00]req_shift_open_date [09:20:00]req_shift_open_date done [09:20:00]produce_requested_data done [09:20:00]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156485,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [09:20:00]process_action_free close_receipt [09:20:00]json_value_free [09:20:00]json_value_free done [09:20:00]process_json_proto returns [09:20:00]Send response to host [09:20:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156485,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [09:20:00]free response buf [09:20:00]execute_script done [09:20:00]execute_script returns [09:20:00]free content buf [09:20:00]Sock 8.Close socket [09:20:00]Sock 8.Thread stoped [09:20:00]OFD Sender: No OFD packet to send [09:20:01]int [09:20:01]Write to MH i2c: 01 00 00 57 3B 92 [09:20:01]*** FLAG_PRN_KEY set [09:20:01]Write i2c OK [09:20:01]MH_I2C_Read... [09:20:01]Read from MH i2c: 01 [09:20:01]MH_I2C_Read... [09:20:01]Read from MH i2c: 01 07 00 [09:20:01]MH_I2C_Read... [09:20:01]Read from MH i2c: 01 07 00 57 3B 00 08 00 00 00 FF 0F AF [09:20:01]state=0 [09:20:01]Key pressed [09:20:01]Feed [09:20:01]Write to MH i2c: D8 00 00 58 3B 6A [09:20:01]Write i2c OK [09:20:01]MH_I2C_Read... [09:20:01]Read from MH i2c: D8 [09:20:01]MH_I2C_Read... [09:20:01]Read from MH i2c: D8 01 00 [09:20:01]MH_I2C_Read... [09:20:01]Read from MH i2c: D8 01 00 58 3B 00 6B [09:20:01]int [09:20:01]Write to MH i2c: 01 00 00 59 3B 94 [09:20:01]Write i2c OK [09:20:01]MH_I2C_Read... [09:20:01]Read from MH i2c: 01 [09:20:01]MH_I2C_Read... [09:20:01]Read from MH i2c: 01 07 00 [09:20:01]MH_I2C_Read... [09:20:01]Read from MH i2c: 01 07 00 59 3B 00 48 00 00 00 3C 00 1F [09:20:01]state=2 [09:20:01]Key pressed [09:20:02]int [09:20:02]Write to MH i2c: 01 00 00 5A 3B 95 [09:20:02]*** FLAG_PRN_KEY reset [09:20:02]Write i2c OK [09:20:02]MH_I2C_Read... [09:20:02]Read from MH i2c: 01 [09:20:02]MH_I2C_Read... [09:20:02]Read from MH i2c: 01 07 00 [09:20:02]MH_I2C_Read... [09:20:02]Read from MH i2c: 01 07 00 5A 3B 00 00 00 00 00 F7 0F A2 [09:20:02]state=2 [09:20:02]Stop feed [09:20:05]OFD Sender: No OFD packet to send [09:20:10]OFD Sender: No OFD packet to send [09:20:15]OFD Sender: No OFD packet to send [09:20:20]OFD Sender: No OFD packet to send [09:20:25]OFD Sender: No OFD packet to send [09:20:30]OFD Sender: No OFD packet to send [09:20:35]OFD Sender: No OFD packet to send [09:20:40]OFD Sender: No OFD packet to send [09:20:45]OFD Sender: No OFD packet to send [09:20:50]OFD Sender: No OFD packet to send [09:20:55]OFD Sender: No OFD packet to send [09:21:00]OFD Sender: No OFD packet to send [09:21:05]OFD Sender: No OFD packet to send [09:21:10]OFD Sender: No OFD packet to send [09:21:15]OFD Sender: No OFD packet to send [09:21:20]OFD Sender: No OFD packet to send [09:21:25]OFD Sender: No OFD packet to send [09:21:30]OFD Sender: No OFD packet to send [09:21:35]OFD Sender: No OFD packet to send [09:21:40]OFD Sender: No OFD packet to send [09:21:45]OFD Sender: No OFD packet to send [09:21:50]OFD Sender: No OFD packet to send [09:21:55]OFD Sender: No OFD packet to send [09:22:00]OFD Sender: No OFD packet to send [09:22:05]OFD Sender: No OFD packet to send [09:22:10]OFD Sender: No OFD packet to send [09:22:15]OFD Sender: No OFD packet to send [09:22:20]OFD Sender: No OFD packet to send [09:22:25]OFD Sender: No OFD packet to send [09:22:30]OFD Sender: No OFD packet to send [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:03]accept exits with 9 [09:25:03]New connection [09:25:03]New thread 3066834276 created [09:25:03]Thread 3066977636 joined [09:25:03]Waiting for new connection... [09:25:03] Sock 9.Parse request [09:25:03]Sock 9.Check first char [09:25:03]Sock 9.First char is OK [09:25:03]request: POST /json_proto HTTP/1.0 [09:25:03]Method: POST [09:25:03]URL: /json_proto [09:25:03]Method is POST - this is cgi request [09:25:03]url: /json_proto [09:25:03]query_string will be loaded in cgi processing [09:25:03]execute_cgi json_proto POST (null) [09:25:03]execute_cgi path=json_proto method=POST [09:25:03]POST find Content-Length [09:25:03]Host: 172.17.63.3:8080 [09:25:03]Content-Length: 676 [09:25:03]Content-Type: application/json [09:25:03] [09:25:03]POST finish read [09:25:03]Found Content-Length = 676 [09:25:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99299", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:25:03]execute_script... [09:25: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)99299", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:25:03]POST & json_proto [09:25:03]process_json_proto [09:25:03]json parsed OK: [09:25:03]protocol is kg_v1.0 [09:25:03]action value=close_receipt [09:25:03]process_action close_receipt [09:25:03]cmd_close_receipt [09:25:03]MH_GetDate [09:25:03]Write to MH i2c: F0 00 00 5B 3B 85 [09:25:03]Write i2c OK [09:25:03]MH_I2C_Read... [09:25:03]Read from MH i2c: F0 [09:25:03]MH_I2C_Read... [09:25:03]Read from MH i2c: F0 09 00 [09:25:03]MH_I2C_Read... [09:25:03]Read from MH i2c: F0 09 00 5B 3B 00 F4 06 1E 67 50 D1 6C 64 FE [09:25:03]GetLastDocTimeStamp 1730020802 [09:25:03]current date 1730021108 [09:25:03]FM_GetShiftState [09:25:03]SAM_PROTO_GetShiftState [09:25:03]wFMCommunicate request_size=4 [09:25:03]MH_SAM_APDU [09:25:03]CAPDU: 80 13 01 00 [09:25:03]Write to MH i2c: E2 08 00 5C 3B 80 13 01 00 00 00 00 00 14 [09:25:03]Write i2c OK [09:25:03]MH_I2C_Read... [09:25:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:25:04]Read from MH i2c: E2 [09:25:04]MH_I2C_Read... [09:25:04]Read from MH i2c: E2 0E 00 [09:25:04]MH_I2C_Read... [09:25:04]Read from MH i2c: E2 0E 00 5C 3B 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 E1 [09:25:04]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [09:25:04]wFMCommunicate OK [09:25:04]SAM_PROTO_GetShiftState done [09:25:04]FM_GetShiftState done [09:25:04]opened in 1729989044 [09:25:04]opened+sec_in_day 1730075444 [09:25:04]quantity*price = 50041 [09:25:04]sum+1 = 50042 [09:25:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 37 27.10.2024 09:25 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156486 ФПД: 234812657097910 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T092508&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156486&fm=234812657097910&tin=02508201610067®Number=0000000000091693&sum=50000 [09:25:05]StoreToDocumentArchive [09:25:05]shift 537 fd 156486 [09:25:05]save to /storage/0537/doc_00156486 [09:25:05]save last doc name /storage/0537/doc_00156486 to /storage/kkm_last_doc_name [09:25:05]save OK [09:25:05]Clear old archive folders... [09:25:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:25:05]tlvbuf is 016F7F10 [09:25:05]SAM_PROTO_ClearQueue [09:25:05]wFMCommunicate request_size=4 [09:25:05]MH_SAM_APDU [09:25:05]CAPDU: 80 09 00 00 [09:25:05]Write to MH i2c: E2 08 00 69 3B 80 09 00 00 00 00 00 00 16 [09:25:05]Write i2c OK [09:25:05]MH_I2C_Read... [09:25:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:25:05]Read from MH i2c: E2 [09:25:05]MH_I2C_Read... [09:25:05]Read from MH i2c: E2 03 00 [09:25:05]MH_I2C_Read... [09:25:05]Read from MH i2c: E2 03 00 69 3B 00 90 00 18 [09:25:05]RAPDU: 90 00 [09:25:05]wFMCommunicate OK [09:25:05]SAM_PROTO_ClearQueue done [09:25:05]KKMCreateOFDPacket [09:25:05]OFDProtocolAddRootSTLVToBuf [09:25:05]FM_MakeSignedData [09:25:05]FM_MakeSignedData [09:25:05]SAM_PROTO_SignData [09:25:05]wFMCommunicate request_size=4 [09:25:05]MH_SAM_APDU [09:25:05]CAPDU: 80 0D 01 02 [09:25:05]Write to MH i2c: E2 08 00 6A 3B 80 0D 01 02 00 00 00 00 1E [09:25:05]Write i2c OK [09:25:05]MH_I2C_Read... [09:25:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:25:05]Read from MH i2c: E2 [09:25:05]MH_I2C_Read... [09:25:05]Read from MH i2c: E2 03 00 [09:25:05]MH_I2C_Read... [09:25:05]Read from MH i2c: E2 03 00 6A 3B 00 90 00 19 [09:25:05]RAPDU: 90 00 [09:25:05]wFMCommunicate OK [09:25:05]wFMCommunicate request_size=255 [09:25:05]MH_SAM_APDU [09:25: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 F4 06 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 46 63 02 00 35 04 06 00 D5 [09:25:05]Write to MH i2c: E2 02 01 6B 3B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 F4 06 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 46 63 02 00 35 04 06 00 D5 00 00 F1 [09:25:05]Write i2c OK [09:25:05]MH_I2C_Read... [09:25:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:25:05]Read from MH i2c: E2 [09:25:05]MH_I2C_Read... [09:25:05]Read from MH i2c: E2 03 00 [09:25:05]MH_I2C_Read... [09:25:05]Read from MH i2c: E2 03 00 6B 3B 00 90 00 1A [09:25:05]RAPDU: 90 00 [09:25:05]wFMCommunicate OK [09:25:05]wFMCommunicate request_size=10 [09:25:05]MH_SAM_APDU [09:25:05]CAPDU: 80 0D 02 02 05 8F 95 03 DC B6 [09:25:05]Write to MH i2c: E2 0D 00 6C 3B 80 0D 02 02 05 00 8F 95 03 DC B6 00 00 E4 [09:25:05]Write i2c OK [09:25:05]MH_I2C_Read... [09:25:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:25:05]Read from MH i2c: E2 [09:25:05]MH_I2C_Read... [09:25:05]Read from MH i2c: E2 03 00 [09:25:05]MH_I2C_Read... [09:25:05]Read from MH i2c: E2 03 00 6C 3B 00 90 00 1B [09:25:05]RAPDU: 90 00 [09:25:05]wFMCommunicate OK [09:25:05]wFMCommunicate request_size=4 [09:25:05]MH_SAM_APDU [09:25:05]CAPDU: 80 0D 03 02 [09:25:05]Write to MH i2c: E2 08 00 6D 3B 80 0D 03 02 00 00 00 00 23 [09:25:05]Write i2c OK [09:25:05]MH_I2C_Read... [09:25:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:25:05]Read from MH i2c: E2 [09:25:05]MH_I2C_Read... [09:25:05]Read from MH i2c: E2 0B 00 [09:25:05]MH_I2C_Read... [09:25:05]Read from MH i2c: E2 0B 00 6D 3B 00 10 76 BF 60 9A CE 73 3C 90 00 E0 [09:25:05]RAPDU: 10 76 BF 60 9A CE 73 3C 90 00 [09:25:05]wFMCommunicate OK [09:25:05]SAM_PROTO_SignData done [09:25:05]FM_MakeSignedData done [09:25:05]CreateOFDProtocolMessage [09:25:05]wFMCommunicate request_size=4 [09:25:05]MH_SAM_APDU [09:25:05]CAPDU: 80 11 00 00 [09:25:05]Write to MH i2c: E2 08 00 6E 3B 80 11 00 00 00 00 00 00 23 [09:25:05]Write i2c OK [09:25:05]MH_I2C_Read... [09:25:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:25:05]Read from MH i2c: E2 [09:25:05]MH_I2C_Read... [09:25:05]Read from MH i2c: E2 17 00 [09:25:05]MH_I2C_Read... [09:25:05]Read from MH i2c: E2 17 00 6E 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 78 [09:25:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:25:05]wFMCommunicate OK [09:25:05]CreateOFDProtocolMessage done [09:25:05]OFDSenderStorePacket 156486 [09:25:05]StoreOFDPacket docnum=156486 [09:25:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 6F 79 07 01 19 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 F4 06 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 46 63 02 00 35 04 06 00 D5 8F 95 03 DC B6 10 76 BF 60 9A CE 73 3C [09:25:05]CheckFolder [09:25:05]dirname=/storage/ofd_packets [09:25:05]CheckFolder done [09:25:05]ProducePacketName [09:25:05]name=ofd_packets/00156486 [09:25:05]NVStorageSaveData ofd_packets/00156486 [09:25:05]File name is /storage/ofd_packets/00156486 [09:25:05]Write 301 bytes [09:25:05]NVStorageSaveData done [09:25:05]OFDSenderStorePacket done [09:25:05]KKMCreateOFDPacket done [09:25:05]NVStorageSaveData kkm_last_timestamp [09:25:05]File name is /storage/kkm_last_timestamp [09:25:05]Write 4 bytes [09:25:05]NVStorageSaveData done [09:25:05]ExternCall_PrintAddStr [09:25:05]wPrintStart [09:25:05]Write to MH i2c: 01 00 00 6F 3B AA [09:25:05]Write i2c OK [09:25:05]MH_I2C_Read... [09:25:05]Read from MH i2c: 01 [09:25:05]MH_I2C_Read... [09:25:05]Read from MH i2c: 01 07 00 [09:25:05]MH_I2C_Read... [09:25:05]Read from MH i2c: 01 07 00 6F 3B 00 00 00 00 00 FF 0F BF [09:25:05]RasterBufferAndPrint [09:25:05]line Счет N : (1)99299 [09:25:05]line ИНН: 02508201610067 [09:25:05]line Контрольно-Кассовый Чек [09:25:05]line ПРОДАЖА [09:25:05]line ТРК (МРК, ГНК) : 11 [09:25:05]line Товар: 2710124130 [09:25:05]line Аи-92-К-5 [09:25:05]line 7.480 * 66.90 [09:25:05]line = 500.41 [09:25:05]line НДС 12% НСП 1% [09:25:05]line > о реализуемом товаре [09:25:05]line ОКРУГЛЕНИЕ: -0.41 [09:25:05]line ИТОГО: 500.00 [09:25:05]line Внесено: 500.00 [09:25:05]line СДАЧА: 0.00 [09:25:05]line НСП 1% : 4.43 [09:25:05]line НДС 12% : 53.14 [09:25:05]line Наличными: 500.00 [09:25:05]line Безнал.: 0.00 [09:25:05]line Место: АЗС № 143 "Партнер Нефть" [09:25:05]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [09:25:05]line СНО: Общий режим [09:25:05]line Чек 37 27.10.2024 09:25 [09:25:05]line Смена: 537 ФФД: 1.0 [09:25:05]line ЗНМ: 0300000096 [09:25:05]line РНМ: 0000000000091693 [09:25:05]line Версия ККМ: 001 [09:25:05]line ФМ: 0000000000871792 [09:25:05]line ФД: 156486 [09:25:05]line ФПД: 234812657097910 [09:25:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T092508&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156486&fm=234812657097910&tin=02508201610067®Number=0000000000091693&sum=50000 [09:25:06]OFD Sender: Processing packet 156486 [packets to send 31, broken 30] [09:25:06]ProducePacketName [09:25:06]name=ofd_packets/00156486 [09:25:06]OFD Sender: To server: pG, [09:25:06]CommunicateWithHost lk.salyk.kg:30040 [09:25:06]ConnectInit lk.salyk.kg [09:25:06]written 0, free lines is 4095 [09:25:06]Connected sock=10 [09:25:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 6F 79 07 01 19 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 F4 06 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 46 63 02 00 35 04 06 00 D5 8F 95 03 DC B6 10 76 BF 60 9A CE 73 3C [09:25:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 3D 7E 47 00 CD 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 31 37 39 32 10 04 04 00 46 63 02 00 F4 03 04 00 64 AC 1D 67 B6 04 01 00 00 19 DC 18 DF 72 F9 9E 94 [09:25:06]CommunicateWithHost err = 0 [09:25:06]CheckOFDResponse [09:25:06]1017 (14) - 77093643461234 [09:25:06]1041 (16) - 0000000000871792 [09:25:06]1040 (4) - 156486 [09:25:06]1012 (4) - 27.10.2024 02:58 [09:25:06]1206 (1) - 0 [09:25:06]OFD Sender: Remove packet 156486 [09:25:06]ProducePacketName [09:25:06]name=ofd_packets/00156486 [09:25:06]NVStorageDeleteData [09:25:06]Write to MH i2c: 01 00 00 9A 3B D5 [09:25:06]Write i2c OK [09:25:06]MH_I2C_Read... [09:25:06]Read from MH i2c: 01 [09:25:06]MH_I2C_Read... [09:25:06]Read from MH i2c: 01 07 00 [09:25:06]MH_I2C_Read... [09:25:06]Read from MH i2c: 01 07 00 9A 3B 00 00 00 00 00 D2 0C BA [09:25:06]RasterBufferAndPrint [09:25:06]line [09:25:06]line [09:25:06]line [09:25:06]line [09:25:06]line [09:25:06]written 0, free lines is 3289 [09:25:06]process_action close_receipt done [09:25:06]requested_data is exist [09:25:06]produce_requested_data [09:25:06]requested_item fm.sn is exist - process it [09:25:06]wFMCommunicate request_size=4 [09:25:06]MH_SAM_APDU [09:25:06]CAPDU: 80 11 00 00 [09:25:06]Write to MH i2c: E2 08 00 A1 3B 80 11 00 00 00 00 00 00 56 [09:25:06]Write i2c OK [09:25:06]MH_I2C_Read... [09:25:06]Read from MH i2c: E2 [09:25:06]MH_I2C_Read... [09:25:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:25:06]Read from MH i2c: E2 17 00 [09:25:06]MH_I2C_Read... [09:25:06]Read from MH i2c: E2 17 00 A1 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 AB [09:25:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:25:06]wFMCommunicate OK [09:25:06]requested_item fd.num is exist - process it [09:25:06]SAM_PROTO_GetFieldsCounters [09:25:06]wFMCommunicate request_size=4 [09:25:06]MH_SAM_APDU [09:25:06]CAPDU: 80 13 00 00 [09:25:06]Write to MH i2c: E2 08 00 A2 3B 80 13 00 00 00 00 00 00 59 [09:25:06]Write i2c OK [09:25:06]MH_I2C_Read... [09:25:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:25:06]Read from MH i2c: E2 [09:25:06]MH_I2C_Read... [09:25:06]Read from MH i2c: E2 62 00 [09:25:06]MH_I2C_Read... [09:25:06]Read from MH i2c: E2 62 00 A2 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 46 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 B4 [09: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 46 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:25:06]wFMCommunicate OK [09:25:06]SAM_PROTO_GetFieldsCounters done [09:25:06]requested_item shift.num is exist - process it [09:25:06]requested_item shift.opened is exist - process it [09:25:06]req_shift_opened [09:25:06]FM_GetShiftState [09:25:06]SAM_PROTO_GetShiftState [09:25:06]wFMCommunicate request_size=4 [09:25:06]MH_SAM_APDU [09:25:06]CAPDU: 80 13 01 00 [09:25:06]Write to MH i2c: E2 08 00 A3 3B 80 13 01 00 00 00 00 00 5B [09:25:06]Write i2c OK [09:25:06]MH_I2C_Read... [09:25:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:25:06]Read from MH i2c: E2 [09:25:06]MH_I2C_Read... [09:25:06]Read from MH i2c: E2 0E 00 [09:25:06]MH_I2C_Read... [09:25:06]Read from MH i2c: E2 0E 00 A3 3B 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 28 [09:25:06]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [09:25:06]wFMCommunicate OK [09:25:06]SAM_PROTO_GetShiftState done [09:25:06]FM_GetShiftState done [09:25:06]req_shift_opened done [09:25:06]requested_item shift.open_date is exist - process it [09:25:06]req_shift_open_date [09:25:06]req_shift_open_date done [09:25:06]produce_requested_data done [09:25:06]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156486,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [09:25:06]process_action_free close_receipt [09:25:06]json_value_free [09:25:06]json_value_free done [09:25:06]process_json_proto returns [09:25:06]Send response to host [09:25:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156486,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [09:25:06]free response buf [09:25:06]execute_script done [09:25:06]execute_script returns [09:25:06]free content buf [09:25:06]Sock 9.Close socket [09:25:06]Sock 9.Thread stoped [09:25:06]OFD Sender: No OFD packet to send [09:25:11]OFD Sender: No OFD packet to send [09:25:16]OFD Sender: No OFD packet to send [09:25:21]OFD Sender: No OFD packet to send [09:25:26]OFD Sender: No OFD packet to send [09:25:31]OFD Sender: No OFD packet to send [09:25:36]OFD Sender: No OFD packet to send [09:25:41]OFD Sender: No OFD packet to send [09:25:46]OFD Sender: No OFD packet to send [09:25:51]OFD Sender: No OFD packet to send [09:25:56]OFD Sender: No OFD packet to send [09:26:01]OFD Sender: No OFD packet to send [09:26:06]OFD Sender: No OFD packet to send [09:26:11]OFD Sender: No OFD packet to send [09:26:16]OFD Sender: No OFD packet to send [09:26:21]OFD Sender: No OFD packet to send [09:26:26]OFD Sender: No OFD packet to send [09:26:31]OFD Sender: No OFD packet to send [09:26:36]OFD Sender: No OFD packet to send [09:26:41]OFD Sender: No OFD packet to send [09:26:46]OFD Sender: No OFD packet to send [09:26:51]OFD Sender: No OFD packet to send [09:26:56]OFD Sender: No OFD packet to send [09:27:01]OFD Sender: No OFD packet to send [09:27:06]OFD Sender: No OFD packet to send [09:27:11]OFD Sender: No OFD packet to send [09:27:16]OFD Sender: No OFD packet to send [09:27:21]OFD Sender: No OFD packet to send [09:27: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: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:07]OFD Sender: No OFD packet to send [09:28:12]OFD Sender: No OFD packet to send [09:28:17]OFD Sender: No OFD packet to send [09:28:22]OFD Sender: No OFD packet to send [09:28:26]accept exits with 8 [09:28:26]New connection [09:28:26]New thread 3066977636 created [09:28:26]Thread 3066834276 joined [09:28:26]Waiting for new connection... [09:28:26] Sock 8.Parse request [09:28:26]Sock 8.Check first char [09:28:26]Sock 8.First char is OK [09:28:26]request: POST /json_proto HTTP/1.0 [09:28:26]Method: POST [09:28:26]URL: /json_proto [09:28:26]Method is POST - this is cgi request [09:28:26]url: /json_proto [09:28:26]query_string will be loaded in cgi processing [09:28:26]execute_cgi json_proto POST (null) [09:28:26]execute_cgi path=json_proto method=POST [09:28:26]POST find Content-Length [09:28:26]Host: 172.17.63.3:8080 [09:28:26]Content-Length: 676 [09:28:26]Content-Type: application/json [09:28:26] [09:28:26]POST finish read [09:28:26]Found Content-Length = 676 [09:28:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99300", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:28:26]execute_script... [09:28: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)99300", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:28:26]POST & json_proto [09:28:26]process_json_proto [09:28:26]json parsed OK: [09:28:26]protocol is kg_v1.0 [09:28:26]action value=close_receipt [09:28:26]process_action close_receipt [09:28:26]cmd_close_receipt [09:28:26]MH_GetDate [09:28:26]Write to MH i2c: F0 00 00 A4 3B CE [09:28:26]Write i2c OK [09:28:26]MH_I2C_Read... [09:28:26]Read from MH i2c: F0 [09:28:26]MH_I2C_Read... [09:28:26]Read from MH i2c: F0 09 00 [09:28:26]MH_I2C_Read... [09:28:26]Read from MH i2c: F0 09 00 A4 3B 00 BF 07 1E 67 50 D1 6C 64 13 [09:28:26]GetLastDocTimeStamp 1730021108 [09:28:26]current date 1730021311 [09:28:26]FM_GetShiftState [09:28:26]SAM_PROTO_GetShiftState [09:28:26]wFMCommunicate request_size=4 [09:28:26]MH_SAM_APDU [09:28:26]CAPDU: 80 13 01 00 [09:28:26]Write to MH i2c: E2 08 00 A5 3B 80 13 01 00 00 00 00 00 5D [09:28:26]Write i2c OK [09:28:26]MH_I2C_Read... [09:28:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:26]Read from MH i2c: E2 [09:28:26]MH_I2C_Read... [09:28:26]Read from MH i2c: E2 0E 00 [09:28:26]MH_I2C_Read... [09:28:26]Read from MH i2c: E2 0E 00 A5 3B 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 2A [09:28:26]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [09:28:26]wFMCommunicate OK [09:28:26]SAM_PROTO_GetShiftState done [09:28:26]FM_GetShiftState done [09:28:26]opened in 1729989044 [09:28:26]opened+sec_in_day 1730075444 [09:28:26]quantity*price = 50041 [09:28:26]sum+1 = 50042 [09:28:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 38 27.10.2024 09:28 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156487 ФПД: 10574270547525 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T092831&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156487&fm=10574270547525&tin=02508201610067®Number=0000000000091693&sum=50000 [09:28:27]StoreToDocumentArchive [09:28:27]shift 537 fd 156487 [09:28:27]save to /storage/0537/doc_00156487 [09:28:27]save last doc name /storage/0537/doc_00156487 to /storage/kkm_last_doc_name [09:28:27]save OK [09:28:27]Clear old archive folders... [09:28:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:28:27]tlvbuf is B6F5E720 [09:28:27]SAM_PROTO_ClearQueue [09:28:27]wFMCommunicate request_size=4 [09:28:27]MH_SAM_APDU [09:28:27]CAPDU: 80 09 00 00 [09:28:27]Write to MH i2c: E2 08 00 B2 3B 80 09 00 00 00 00 00 00 5F [09:28:27]Write i2c OK [09:28:27]MH_I2C_Read... [09:28:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:28:27]Read from MH i2c: E2 [09:28:27]MH_I2C_Read... [09:28:27]Read from MH i2c: E2 03 00 [09:28:27]MH_I2C_Read... [09:28:27]Read from MH i2c: E2 03 00 B2 3B 00 90 00 61 [09:28:27]RAPDU: 90 00 [09:28:27]wFMCommunicate OK [09:28:27]SAM_PROTO_ClearQueue done [09:28:27]KKMCreateOFDPacket [09:28:27]OFDProtocolAddRootSTLVToBuf [09:28:27]FM_MakeSignedData [09:28:27]FM_MakeSignedData [09:28:27]SAM_PROTO_SignData [09:28:27]wFMCommunicate request_size=4 [09:28:27]MH_SAM_APDU [09:28:27]CAPDU: 80 0D 01 02 [09:28:27]Write to MH i2c: E2 08 00 B3 3B 80 0D 01 02 00 00 00 00 67 [09:28:27]Write i2c OK [09:28:27]MH_I2C_Read... [09:28:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:28:27]Read from MH i2c: E2 [09:28:27]MH_I2C_Read... [09:28:27]Read from MH i2c: E2 03 00 [09:28:27]MH_I2C_Read... [09:28:27]Read from MH i2c: E2 03 00 B3 3B 00 90 00 62 [09:28:27]RAPDU: 90 00 [09:28:27]wFMCommunicate OK [09:28:27]wFMCommunicate request_size=255 [09:28:27]MH_SAM_APDU [09:28:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 BF 07 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 47 63 02 00 35 04 06 00 09 [09:28:27]Write to MH i2c: E2 02 01 B4 3B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 BF 07 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 47 63 02 00 35 04 06 00 09 00 00 3C [09:28:27]Write i2c OK [09:28:27]MH_I2C_Read... [09:28:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:27]Read from MH i2c: E2 [09:28:27]MH_I2C_Read... [09:28:27]Read from MH i2c: E2 03 00 [09:28:27]MH_I2C_Read... [09:28:27]Read from MH i2c: E2 03 00 B4 3B 00 90 00 63 [09:28:27]RAPDU: 90 00 [09:28:27]wFMCommunicate OK [09:28:27]wFMCommunicate request_size=10 [09:28:27]MH_SAM_APDU [09:28:27]CAPDU: 80 0D 02 02 05 9E 03 A3 C6 45 [09:28:27]Write to MH i2c: E2 0D 00 B5 3B 80 0D 02 02 05 00 9E 03 A3 C6 45 00 00 C3 [09:28:27]Write i2c OK [09:28:27]MH_I2C_Read... [09:28:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:27]Read from MH i2c: E2 [09:28:27]MH_I2C_Read... [09:28:27]Read from MH i2c: E2 03 00 [09:28:27]MH_I2C_Read... [09:28:27]Read from MH i2c: E2 03 00 B5 3B 00 90 00 64 [09:28:27]RAPDU: 90 00 [09:28:27]wFMCommunicate OK [09:28:27]wFMCommunicate request_size=4 [09:28:27]MH_SAM_APDU [09:28:27]CAPDU: 80 0D 03 02 [09:28:27]Write to MH i2c: E2 08 00 B6 3B 80 0D 03 02 00 00 00 00 6C [09:28:27]Write i2c OK [09:28:27]MH_I2C_Read... [09:28:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:28:27]Read from MH i2c: E2 [09:28:27]MH_I2C_Read... [09:28:27]Read from MH i2c: E2 0B 00 [09:28:27]MH_I2C_Read... [09:28:27]Read from MH i2c: E2 0B 00 B6 3B 00 8B DC FD 2A 0B A6 25 39 90 00 0A [09:28:27]RAPDU: 8B DC FD 2A 0B A6 25 39 90 00 [09:28:27]wFMCommunicate OK [09:28:27]SAM_PROTO_SignData done [09:28:27]FM_MakeSignedData done [09:28:27]CreateOFDProtocolMessage [09:28:27]wFMCommunicate request_size=4 [09:28:27]MH_SAM_APDU [09:28:27]CAPDU: 80 11 00 00 [09:28:27]Write to MH i2c: E2 08 00 B7 3B 80 11 00 00 00 00 00 00 6C [09:28:27]Write i2c OK [09:28:27]MH_I2C_Read... [09:28:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:27]Read from MH i2c: E2 [09:28:27]MH_I2C_Read... [09:28:27]Read from MH i2c: E2 17 00 [09:28:27]MH_I2C_Read... [09:28:27]Read from MH i2c: E2 17 00 B7 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 C1 [09:28:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:28:27]wFMCommunicate OK [09:28:27]CreateOFDProtocolMessage done [09:28:27]OFDSenderStorePacket 156487 [09:28:27]StoreOFDPacket docnum=156487 [09:28:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 C3 EC 07 01 31 B2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 BF 07 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 47 63 02 00 35 04 06 00 09 9E 03 A3 C6 45 8B DC FD 2A 0B A6 25 39 [09:28:27]CheckFolder [09:28:27]dirname=/storage/ofd_packets [09:28:27]CheckFolder done [09:28:27]ProducePacketName [09:28:27]name=ofd_packets/00156487 [09:28:27]NVStorageSaveData ofd_packets/00156487 [09:28:27]File name is /storage/ofd_packets/00156487 [09:28:27]Write 301 bytes [09:28:27]NVStorageSaveData done [09:28:27]OFDSenderStorePacket done [09:28:27]KKMCreateOFDPacket done [09:28:27]NVStorageSaveData kkm_last_timestamp [09:28:27]File name is /storage/kkm_last_timestamp [09:28:27]Write 4 bytes [09:28:27]NVStorageSaveData done [09:28:27]ExternCall_PrintAddStr [09:28:27]wPrintStart [09:28:27]Write to MH i2c: 01 00 00 B8 3B F3 [09:28:27]Write i2c OK [09:28:27]MH_I2C_Read... [09:28:27]Read from MH i2c: 01 [09:28:27]MH_I2C_Read... [09:28:27]Read from MH i2c: 01 07 00 [09:28:27]MH_I2C_Read... [09:28:27]Read from MH i2c: 01 07 00 B8 3B 00 00 00 00 00 FF 0F 08 [09:28:27]RasterBufferAndPrint [09:28:27]line Счет N : (1)99300 [09:28:27]line ИНН: 02508201610067 [09:28:27]line Контрольно-Кассовый Чек [09:28:27]line ПРОДАЖА [09:28:27]line ТРК (МРК, ГНК) : 21 [09:28:27]line Товар: 2710124130 [09:28:27]line Аи-92-К-5 [09:28:27]line 7.480 * 66.90 [09:28:27]line = 500.41 [09:28:27]line НДС 12% НСП 1% [09:28:27]line > о реализуемом товаре [09:28:27]line ОКРУГЛЕНИЕ: -0.41 [09:28:27]line ИТОГО: 500.00 [09:28:27]line Внесено: 500.00 [09:28:27]line СДАЧА: 0.00 [09:28:27]line НСП 1% : 4.43 [09:28:27]line НДС 12% : 53.14 [09:28:27]line Наличными: 500.00 [09:28:27]line Безнал.: 0.00 [09:28:27]line Место: АЗС № 143 "Партнер Нефть" [09:28:27]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [09:28:27]line СНО: Общий режим [09:28:27]line Чек 38 27.10.2024 09:28 [09:28:27]line Смена: 537 ФФД: 1.0 [09:28:27]line ЗНМ: 0300000096 [09:28:27]line РНМ: 0000000000091693 [09:28:27]line Версия ККМ: 001 [09:28:27]line ФМ: 0000000000871792 [09:28:27]line ФД: 156487 [09:28:27]line ФПД: 10574270547525 [09:28:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T092831&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156487&fm=10574270547525&tin=02508201610067®Number=0000000000091693&sum=50000 [09:28:28]OFD Sender: Processing packet 156487 [packets to send 31, broken 30] [09:28:28]ProducePacketName [09:28:28]name=ofd_packets/00156487 [09:28:28]OFD Sender: To server: pG, [09:28:28]CommunicateWithHost lk.salyk.kg:30040 [09:28:28]ConnectInit lk.salyk.kg [09:28:28]written 0, free lines is 4095 [09:28:28]Write to MH i2c: 01 00 00 E3 3B 1E [09:28:28]Write i2c OK [09:28:28]MH_I2C_Read... [09:28:28]Read from MH i2c: 01 [09:28:28]MH_I2C_Read... [09:28:28]Read from MH i2c: 01 07 00 [09:28:28]MH_I2C_Read... [09:28:28]Read from MH i2c: 01 07 00 E3 3B 00 00 00 00 00 CA 0C FB [09:28:28]RasterBufferAndPrint [09:28:28]line [09:28:28]line [09:28:28]line [09:28:28]line [09:28:28]line [09:28:28]written 0, free lines is 3281 [09:28:28]process_action close_receipt done [09:28:28]requested_data is exist [09:28:28]produce_requested_data [09:28:28]requested_item fm.sn is exist - process it [09:28:28]wFMCommunicate request_size=4 [09:28:28]MH_SAM_APDU [09:28:28]CAPDU: 80 11 00 00 [09:28:28]Write to MH i2c: E2 08 00 EA 3B 80 11 00 00 00 00 00 00 9F [09:28:28]Write i2c OK [09:28:28]MH_I2C_Read... [09:28:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:28]Read from MH i2c: E2 [09:28:28]MH_I2C_Read... [09:28:28]Read from MH i2c: E2 17 00 [09:28:28]MH_I2C_Read... [09:28:28]Read from MH i2c: E2 17 00 EA 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 F4 [09:28:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:28:28]wFMCommunicate OK [09:28:28]requested_item fd.num is exist - process it [09:28:28]SAM_PROTO_GetFieldsCounters [09:28:28]wFMCommunicate request_size=4 [09:28:28]MH_SAM_APDU [09:28:28]CAPDU: 80 13 00 00 [09:28:28]Write to MH i2c: E2 08 00 EB 3B 80 13 00 00 00 00 00 00 A2 [09:28:28]Write i2c OK [09:28:28]MH_I2C_Read... [09:28:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:28:28]Read from MH i2c: E2 [09:28:28]MH_I2C_Read... [09:28:28]Read from MH i2c: E2 62 00 [09:28:28]MH_I2C_Read... [09:28:28]Read from MH i2c: E2 62 00 EB 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 47 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 01 [09:28:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 47 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:28:28]wFMCommunicate OK [09:28:28]SAM_PROTO_GetFieldsCounters done [09:28:28]requested_item shift.num is exist - process it [09:28:28]requested_item shift.opened is exist - process it [09:28:28]req_shift_opened [09:28:28]FM_GetShiftState [09:28:28]SAM_PROTO_GetShiftState [09:28:28]wFMCommunicate request_size=4 [09:28:28]MH_SAM_APDU [09:28:28]CAPDU: 80 13 01 00 [09:28:28]Write to MH i2c: E2 08 00 EC 3B 80 13 01 00 00 00 00 00 A4 [09:28:28]Write i2c OK [09:28:28]MH_I2C_Read... [09:28:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:28]Read from MH i2c: E2 [09:28:28]MH_I2C_Read... [09:28:28]Read from MH i2c: E2 0E 00 [09:28:28]MH_I2C_Read... [09:28:28]Read from MH i2c: E2 0E 00 EC 3B 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 71 [09:28:28]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [09:28:28]wFMCommunicate OK [09:28:28]SAM_PROTO_GetShiftState done [09:28:28]FM_GetShiftState done [09:28:28]req_shift_opened done [09:28:28]requested_item shift.open_date is exist - process it [09:28:28]req_shift_open_date [09:28:28]req_shift_open_date done [09:28:28]produce_requested_data done [09:28:28]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156487,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [09:28:28]process_action_free close_receipt [09:28:28]json_value_free [09:28:28]json_value_free done [09:28:28]process_json_proto returns [09:28:28]Send response to host [09:28:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156487,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [09:28:28]free response buf [09:28:28]execute_script done [09:28:28]execute_script returns [09:28:28]free content buf [09:28:28]Sock 8.Close socket [09:28:28]Sock 8.Thread stoped [09:28:33]ConnectInit Can't take IP for lk.salyk.kg [09:28:33]CommunicateWithHost connect error [09:28:33]CommunicateWithHost err = -1 [09:28:33]OFD Sender: Server communicate error [09:28:38]OFD Sender: Processing packet 156487 [packets to send 31, broken 30] [09:28:38]ProducePacketName [09:28:38]name=ofd_packets/00156487 [09:28:38]OFD Sender: To server: pG, [09:28:38]CommunicateWithHost lk.salyk.kg:30040 [09:28:38]ConnectInit lk.salyk.kg [09:28:43]ConnectInit Can't take IP for lk.salyk.kg [09:28:43]CommunicateWithHost connect error [09:28:43]CommunicateWithHost err = -1 [09:28:43]OFD Sender: Server communicate error [09:28:48]OFD Sender: Processing packet 156487 [packets to send 31, broken 30] [09:28:48]ProducePacketName [09:28:48]name=ofd_packets/00156487 [09:28:48]OFD Sender: To server: pG, [09:28:48]CommunicateWithHost lk.salyk.kg:30040 [09:28:48]ConnectInit lk.salyk.kg [09:28:49]accept exits with 10 [09:28:49]New connection [09:28:49]New thread 3066834276 created [09:28:49]Thread 3066977636 joined [09:28:49]Waiting for new connection... [09:28:49] Sock 10.Parse request [09:28:49]Sock 10.Check first char [09:28:49]Sock 10.First char is OK [09:28:49]request: POST /json_proto HTTP/1.0 [09:28:49]Method: POST [09:28:49]URL: /json_proto [09:28:49]Method is POST - this is cgi request [09:28:49]url: /json_proto [09:28:49]query_string will be loaded in cgi processing [09:28:49]execute_cgi json_proto POST (null) [09:28:49]execute_cgi path=json_proto method=POST [09:28:49]POST find Content-Length [09:28:49]Host: 172.17.63.3:8080 [09:28:49]Content-Length: 765 [09:28:49]Content-Type: application/json [09:28:49] [09:28:49]POST finish read [09:28:49]Found Content-Length = 765 [09:28:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99301", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:28:49]execute_script... [09:28:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99301", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:28:49]POST & json_proto [09:28:49]process_json_proto [09:28:49]json parsed OK: [09:28:49]protocol is kg_v1.0 [09:28:49]action value=close_receipt [09:28:49]process_action close_receipt [09:28:49]cmd_close_receipt [09:28:49]MH_GetDate [09:28:49]Write to MH i2c: F0 00 00 ED 3B 17 [09:28:49]Write i2c OK [09:28:49]MH_I2C_Read... [09:28:49]Read from MH i2c: F0 [09:28:49]MH_I2C_Read... [09:28:49]Read from MH i2c: F0 09 00 [09:28:49]MH_I2C_Read... [09:28:49]Read from MH i2c: F0 09 00 ED 3B 00 D6 07 1E 67 50 D1 6C 64 73 [09:28:49]GetLastDocTimeStamp 1730021311 [09:28:49]current date 1730021334 [09:28:49]FM_GetShiftState [09:28:49]SAM_PROTO_GetShiftState [09:28:49]wFMCommunicate request_size=4 [09:28:49]MH_SAM_APDU [09:28:49]CAPDU: 80 13 01 00 [09:28:49]Write to MH i2c: E2 08 00 EE 3B 80 13 01 00 00 00 00 00 A6 [09:28:49]Write i2c OK [09:28:49]MH_I2C_Read... [09:28:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:49]Read from MH i2c: E2 [09:28:49]MH_I2C_Read... [09:28:49]Read from MH i2c: E2 0E 00 [09:28:49]MH_I2C_Read... [09:28:49]Read from MH i2c: E2 0E 00 EE 3B 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 73 [09:28:49]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [09:28:49]wFMCommunicate OK [09:28:49]SAM_PROTO_GetShiftState done [09:28:49]FM_GetShiftState done [09:28:49]opened in 1729989044 [09:28:49]opened+sec_in_day 1730075444 [09:28:49]quantity*price = 50041 [09:28:49]sum+1 = 50042 [09:28:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 39 27.10.2024 09:28 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 156488 ФПД: 60313215495907 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T092854&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156488&fm=60313215495907&tin=02508201610067®Number=0000000000091693&sum=50041 [09:28:51]StoreToDocumentArchive [09:28:51]shift 537 fd 156488 [09:28:51]save to /storage/0537/doc_00156488 [09:28:51]save last doc name /storage/0537/doc_00156488 to /storage/kkm_last_doc_name [09:28:51]save OK [09:28:51]Clear old archive folders... [09:28:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:28:51]tlvbuf is 0179ADC0 [09:28:51]SAM_PROTO_ClearQueue [09:28:51]wFMCommunicate request_size=4 [09:28:51]MH_SAM_APDU [09:28:51]CAPDU: 80 09 00 00 [09:28:51]Write to MH i2c: E2 08 00 FB 3B 80 09 00 00 00 00 00 00 A8 [09:28:51]Write i2c OK [09:28:51]MH_I2C_Read... [09:28:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:28:51]Read from MH i2c: E2 [09:28:51]MH_I2C_Read... [09:28:51]Read from MH i2c: E2 03 00 [09:28:51]MH_I2C_Read... [09:28:51]Read from MH i2c: E2 03 00 FB 3B 00 90 00 AA [09:28:51]RAPDU: 90 00 [09:28:51]wFMCommunicate OK [09:28:51]SAM_PROTO_ClearQueue done [09:28:51]KKMCreateOFDPacket [09:28:51]OFDProtocolAddRootSTLVToBuf [09:28:51]FM_MakeSignedData [09:28:51]FM_MakeSignedData [09:28:51]SAM_PROTO_SignData [09:28:51]wFMCommunicate request_size=4 [09:28:51]MH_SAM_APDU [09:28:51]CAPDU: 80 0D 01 02 [09:28:51]Write to MH i2c: E2 08 00 FC 3B 80 0D 01 02 00 00 00 00 B0 [09:28:51]Write i2c OK [09:28:51]MH_I2C_Read... [09:28:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:28:51]Read from MH i2c: E2 [09:28:51]MH_I2C_Read... [09:28:51]Read from MH i2c: E2 03 00 [09:28:51]MH_I2C_Read... [09:28:51]Read from MH i2c: E2 03 00 FC 3B 00 90 00 AB [09:28:51]RAPDU: 90 00 [09:28:51]wFMCommunicate OK [09:28:51]wFMCommunicate request_size=255 [09:28:51]MH_SAM_APDU [09:28: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 D6 07 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 48 63 02 00 35 04 06 00 36 [09:28:51]Write to MH i2c: E2 02 01 FD 3B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 D6 07 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 48 63 02 00 35 04 06 00 36 00 00 1D [09:28:51]Write i2c OK [09:28:51]MH_I2C_Read... [09:28:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:51]Read from MH i2c: E2 [09:28:51]MH_I2C_Read... [09:28:51]Read from MH i2c: E2 03 00 [09:28:51]MH_I2C_Read... [09:28:51]Read from MH i2c: E2 03 00 FD 3B 00 90 00 AC [09:28:51]RAPDU: 90 00 [09:28:51]wFMCommunicate OK [09:28:51]wFMCommunicate request_size=10 [09:28:51]MH_SAM_APDU [09:28:51]CAPDU: 80 0D 02 02 05 DA C3 C8 EE E3 [09:28:51]Write to MH i2c: E2 0D 00 FE 3B 80 0D 02 02 05 00 DA C3 C8 EE E3 00 00 F3 [09:28:51]Write i2c OK [09:28:51]MH_I2C_Read... [09:28:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:51]Read from MH i2c: E2 [09:28:51]MH_I2C_Read... [09:28:51]Read from MH i2c: E2 03 00 [09:28:51]MH_I2C_Read... [09:28:51]Read from MH i2c: E2 03 00 FE 3B 00 90 00 AD [09:28:51]RAPDU: 90 00 [09:28:51]wFMCommunicate OK [09:28:51]wFMCommunicate request_size=4 [09:28:51]MH_SAM_APDU [09:28:51]CAPDU: 80 0D 03 02 [09:28:51]Write to MH i2c: E2 08 00 FF 3B 80 0D 03 02 00 00 00 00 B5 [09:28:51]Write i2c OK [09:28:51]MH_I2C_Read... [09:28:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:28:51]Read from MH i2c: E2 [09:28:51]MH_I2C_Read... [09:28:51]Read from MH i2c: E2 0B 00 [09:28:51]MH_I2C_Read... [09:28:51]Read from MH i2c: E2 0B 00 FF 3B 00 B7 18 80 1F 8B 02 DB EA 90 00 76 [09:28:51]RAPDU: B7 18 80 1F 8B 02 DB EA 90 00 [09:28:51]wFMCommunicate OK [09:28:51]SAM_PROTO_SignData done [09:28:51]FM_MakeSignedData done [09:28:51]CreateOFDProtocolMessage [09:28:51]wFMCommunicate request_size=4 [09:28:51]MH_SAM_APDU [09:28:51]CAPDU: 80 11 00 00 [09:28:51]Write to MH i2c: E2 08 00 00 3C 80 11 00 00 00 00 00 00 B6 [09:28:51]Write i2c OK [09:28:51]MH_I2C_Read... [09:28:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:51]Read from MH i2c: E2 [09:28:51]MH_I2C_Read... [09:28:51]Read from MH i2c: E2 17 00 [09:28:51]MH_I2C_Read... [09:28:51]Read from MH i2c: E2 17 00 00 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 0B [09:28:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:28:51]wFMCommunicate OK [09:28:51]CreateOFDProtocolMessage done [09:28:51]OFDSenderStorePacket 156488 [09:28:51]StoreOFDPacket docnum=156488 [09:28:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 91 35 07 01 82 C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 D6 07 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 48 63 02 00 35 04 06 00 36 DA C3 C8 EE E3 B7 18 80 1F 8B 02 DB EA [09:28:51]CheckFolder [09:28:51]dirname=/storage/ofd_packets [09:28:51]CheckFolder done [09:28:51]ProducePacketName [09:28:51]name=ofd_packets/00156488 [09:28:51]NVStorageSaveData ofd_packets/00156488 [09:28:51]File name is /storage/ofd_packets/00156488 [09:28:51]Write 301 bytes [09:28:51]NVStorageSaveData done [09:28:51]OFDSenderStorePacket done [09:28:51]KKMCreateOFDPacket done [09:28:51]NVStorageSaveData kkm_last_timestamp [09:28:51]File name is /storage/kkm_last_timestamp [09:28:51]Write 4 bytes [09:28:51]NVStorageSaveData done [09:28:51]ExternCall_PrintAddStr [09:28:51]wPrintStart [09:28:51]Write to MH i2c: 01 00 00 01 3C 3D [09:28:51]Write i2c OK [09:28:51]MH_I2C_Read... [09:28:51]Read from MH i2c: 01 [09:28:51]MH_I2C_Read... [09:28:51]Read from MH i2c: 01 07 00 [09:28:51]MH_I2C_Read... [09:28:51]Read from MH i2c: 01 07 00 01 3C 00 00 00 00 00 FF 0F 52 [09:28:51]RasterBufferAndPrint [09:28:51]line Счет N : (1)99301 [09:28:51]line ИНН: 02508201610067 [09:28:51]line Контрольно-Кассовый Чек [09:28:51]line ПРОДАЖА [09:28:51]line ТРК (МРК, ГНК) : 31 [09:28:51]line Товар: 2710124130 [09:28:51]line Аи-92-К-5 [09:28:51]line 7.480 * 66.90 [09:28:51]line = 500.41 [09:28:51]line НДС 12% НСП 1% [09:28:51]line > о реализуемом товаре [09:28:51]line ИТОГО: 500.41 [09:28:51]line НСП 1% : 4.43 [09:28:51]line НДС 12% : 53.14 [09:28:51]line Наличными: 0.00 [09:28:51]line Безнал.: 500.41 [09:28:51]line Место: АЗС № 143 "Партнер Нефть" [09:28:51]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [09:28:51]line СНО: Общий режим [09:28:51]line Чек 39 27.10.2024 09:28 [09:28:51]line Смена: 537 ФФД: 1.0 [09:28:51]line ЗНМ: 0300000096 [09:28:51]line РНМ: 0000000000091693 [09:28:51]line Версия ККМ: 001 [09:28:51]line Платежная система: Mbank [09:28:51]line ФМ: 0000000000871792 [09:28:51]line ФД: 156488 [09:28:51]line ФПД: 60313215495907 [09:28:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T092854&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156488&fm=60313215495907&tin=02508201610067®Number=0000000000091693&sum=50041 [09:28:51]written 0, free lines is 4095 [09:28:52]Write to MH i2c: 01 00 00 2A 3C 66 [09:28:52]Write i2c OK [09:28:52]MH_I2C_Read... [09:28:52]Read from MH i2c: 01 [09:28:52]MH_I2C_Read... [09:28:52]Read from MH i2c: 01 07 00 [09:28:52]MH_I2C_Read... [09:28:52]Read from MH i2c: 01 07 00 2A 3C 00 00 00 00 00 F8 0C 71 [09:28:52]RasterBufferAndPrint [09:28:52]line [09:28:52]line [09:28:52]line [09:28:52]line [09:28:52]line [09:28:52]written 0, free lines is 3336 [09:28:52]process_action close_receipt done [09:28:52]requested_data is exist [09:28:52]produce_requested_data [09:28:52]requested_item fm.sn is exist - process it [09:28:52]wFMCommunicate request_size=4 [09:28:52]MH_SAM_APDU [09:28:52]CAPDU: 80 11 00 00 [09:28:52]Write to MH i2c: E2 08 00 31 3C 80 11 00 00 00 00 00 00 E7 [09:28:52]Write i2c OK [09:28:52]MH_I2C_Read... [09:28:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:52]Read from MH i2c: E2 [09:28:52]MH_I2C_Read... [09:28:52]Read from MH i2c: E2 17 00 [09:28:52]MH_I2C_Read... [09:28:52]Read from MH i2c: E2 17 00 31 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 3C [09:28:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:28:52]wFMCommunicate OK [09:28:52]requested_item fd.num is exist - process it [09:28:52]SAM_PROTO_GetFieldsCounters [09:28:52]wFMCommunicate request_size=4 [09:28:52]MH_SAM_APDU [09:28:52]CAPDU: 80 13 00 00 [09:28:52]Write to MH i2c: E2 08 00 32 3C 80 13 00 00 00 00 00 00 EA [09:28:52]Write i2c OK [09:28:52]MH_I2C_Read... [09:28:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:28:52]Read from MH i2c: E2 [09:28:52]MH_I2C_Read... [09:28:52]Read from MH i2c: E2 62 00 [09:28:52]MH_I2C_Read... [09:28:52]Read from MH i2c: E2 62 00 32 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 48 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 4D [09:28:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 48 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:28:52]wFMCommunicate OK [09:28:52]SAM_PROTO_GetFieldsCounters done [09:28:52]requested_item shift.num is exist - process it [09:28:52]requested_item shift.opened is exist - process it [09:28:52]req_shift_opened [09:28:52]FM_GetShiftState [09:28:52]SAM_PROTO_GetShiftState [09:28:52]wFMCommunicate request_size=4 [09:28:52]MH_SAM_APDU [09:28:52]CAPDU: 80 13 01 00 [09:28:52]Write to MH i2c: E2 08 00 33 3C 80 13 01 00 00 00 00 00 EC [09:28:52]Write i2c OK [09:28:52]MH_I2C_Read... [09:28:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:52]Read from MH i2c: E2 [09:28:52]MH_I2C_Read... [09:28:52]Read from MH i2c: E2 0E 00 [09:28:52]MH_I2C_Read... [09:28:52]Read from MH i2c: E2 0E 00 33 3C 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 B9 [09:28:52]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [09:28:52]wFMCommunicate OK [09:28:52]SAM_PROTO_GetShiftState done [09:28:52]FM_GetShiftState done [09:28:52]req_shift_opened done [09:28:52]requested_item shift.open_date is exist - process it [09:28:52]req_shift_open_date [09:28:52]req_shift_open_date done [09:28:52]produce_requested_data done [09:28:52]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156488,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [09:28:52]process_action_free close_receipt [09:28:52]json_value_free [09:28:52]json_value_free done [09:28:52]process_json_proto returns [09:28:52]Send response to host [09:28:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156488,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [09:28:52]free response buf [09:28:52]execute_script done [09:28:52]execute_script returns [09:28:52]free content buf [09:28:52]Sock 10.Close socket [09:28:52]Sock 10.Thread stoped [09:28:53]ConnectInit Can't take IP for lk.salyk.kg [09:28:53]CommunicateWithHost connect error [09:28:53]CommunicateWithHost err = -1 [09:28:53]OFD Sender: Server communicate error [09:28:53]OFD Sender: Processing packet 156487 [packets to send 32, broken 30] [09:28:53]ProducePacketName [09:28:53]name=ofd_packets/00156487 [09:28:53]OFD Sender: To server: pG, [09:28:53]CommunicateWithHost lk.salyk.kg:30040 [09:28:53]ConnectInit lk.salyk.kg [09:28:58]ConnectInit Can't take IP for lk.salyk.kg [09:28:58]CommunicateWithHost connect error [09:28:58]CommunicateWithHost err = -1 [09:28:58]OFD Sender: Server communicate error [09:29:03]OFD Sender: Processing packet 156487 [packets to send 32, broken 30] [09:29:03]ProducePacketName [09:29:03]name=ofd_packets/00156487 [09:29:03]OFD Sender: To server: pG, [09:29:03]CommunicateWithHost lk.salyk.kg:30040 [09:29:03]ConnectInit lk.salyk.kg [09:29:08]ConnectInit Can't take IP for lk.salyk.kg [09:29:08]CommunicateWithHost connect error [09:29:08]CommunicateWithHost err = -1 [09:29:08]OFD Sender: Server communicate error [09:29:13]OFD Sender: Processing packet 156487 [packets to send 32, broken 30] [09:29:13]ProducePacketName [09:29:13]name=ofd_packets/00156487 [09:29:13]OFD Sender: To server: pG, [09:29:13]CommunicateWithHost lk.salyk.kg:30040 [09:29:13]ConnectInit lk.salyk.kg [09:29:18]ConnectInit Can't take IP for lk.salyk.kg [09:29:18]CommunicateWithHost connect error [09:29:18]CommunicateWithHost err = -1 [09:29:18]OFD Sender: Server communicate error [09:29:23]OFD Sender: Processing packet 156487 [packets to send 32, broken 30] [09:29:23]ProducePacketName [09:29:23]name=ofd_packets/00156487 [09:29:23]OFD Sender: To server: pG, [09:29:23]CommunicateWithHost lk.salyk.kg:30040 [09:29:23]ConnectInit lk.salyk.kg [09:29:28]ConnectInit Can't take IP for lk.salyk.kg [09:29:28]CommunicateWithHost connect error [09:29:28]CommunicateWithHost err = -1 [09:29:28]OFD Sender: Server communicate error [09:29:33]OFD Sender: Processing packet 156487 [packets to send 32, broken 30] [09:29:33]ProducePacketName [09:29:33]name=ofd_packets/00156487 [09:29:33]OFD Sender: To server: pG, [09:29:33]CommunicateWithHost lk.salyk.kg:30040 [09:29:33]ConnectInit lk.salyk.kg [09:29:38]ConnectInit Can't take IP for lk.salyk.kg [09:29:38]CommunicateWithHost connect error [09:29:38]CommunicateWithHost err = -1 [09:29:38]OFD Sender: Server communicate error [09:29:43]OFD Sender: Processing packet 156487 [packets to send 32, broken 30] [09:29:43]ProducePacketName [09:29:43]name=ofd_packets/00156487 [09:29:43]OFD Sender: To server: pG, [09:29:43]CommunicateWithHost lk.salyk.kg:30040 [09:29:43]ConnectInit lk.salyk.kg [09:29:48]ConnectInit Can't take IP for lk.salyk.kg [09:29:48]CommunicateWithHost connect error [09:29:48]CommunicateWithHost err = -1 [09:29:48]OFD Sender: Server communicate error [09:29:53]OFD Sender: Processing packet 156487 [packets to send 32, broken 30] [09:29:53]ProducePacketName [09:29:53]name=ofd_packets/00156487 [09:29:53]OFD Sender: To server: pG, [09:29:53]CommunicateWithHost lk.salyk.kg:30040 [09:29:53]ConnectInit lk.salyk.kg [09:29:58]ConnectInit Can't take IP for lk.salyk.kg [09:29:58]CommunicateWithHost connect error [09:29:58]CommunicateWithHost err = -1 [09:29:58]OFD Sender: Server communicate error [09:30:01]ConnectInit Can't connect to host [09:30:03]OFD Sender: Processing packet 156487 [packets to send 32, broken 30] [09:30:03]ProducePacketName [09:30:03]name=ofd_packets/00156487 [09:30:03]OFD Sender: To server: pG, [09:30:03]CommunicateWithHost lk.salyk.kg:30040 [09:30:03]ConnectInit lk.salyk.kg [09:30:03]Connected sock=8 [09:30:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 C3 EC 07 01 31 B2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 BF 07 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 47 63 02 00 35 04 06 00 09 9E 03 A3 C6 45 8B DC FD 2A 0B A6 25 39 [09:30:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 EB DC 47 00 C6 C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 47 63 02 00 F4 03 04 00 8E AD 1D 67 B6 04 01 00 00 F3 00 5F 1E 12 DA 1B 0D [09:30:03]CommunicateWithHost err = 0 [09:30:03]CheckOFDResponse [09:30:03]1017 (14) - 77093643461234 [09:30:03]1041 (16) - 0000000000871792 [09:30:03]1040 (4) - 156487 [09:30:03]1012 (4) - 27.10.2024 03:03 [09:30:03]1206 (1) - 0 [09:30:03]OFD Sender: Remove packet 156487 [09:30:03]ProducePacketName [09:30:03]name=ofd_packets/00156487 [09:30:03]NVStorageDeleteData [09:30:04]OFD Sender: Processing packet 156488 [packets to send 31, broken 30] [09:30:04]ProducePacketName [09:30:04]name=ofd_packets/00156488 [09:30:04]OFD Sender: To server: pG, [09:30:04]CommunicateWithHost lk.salyk.kg:30040 [09:30:04]ConnectInit lk.salyk.kg [09:30:04]Connected sock=8 [09:30:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 91 35 07 01 82 C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 D6 07 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 48 63 02 00 35 04 06 00 36 DA C3 C8 EE E3 B7 18 80 1F 8B 02 DB EA [09:30:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 CF DF 47 00 52 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 48 63 02 00 F4 03 04 00 8F AD 1D 67 B6 04 01 00 00 C5 16 91 49 4C 64 0A 50 [09:30:04]CommunicateWithHost err = 0 [09:30:04]CheckOFDResponse [09:30:04]1017 (14) - 77093643461234 [09:30:04]1041 (16) - 0000000000871792 [09:30:04]1040 (4) - 156488 [09:30:04]1012 (4) - 27.10.2024 03:03 [09:30:04]1206 (1) - 0 [09:30:04]OFD Sender: Remove packet 156488 [09:30:04]ProducePacketName [09:30:04]name=ofd_packets/00156488 [09:30:04]NVStorageDeleteData [09:30:05]OFD Sender: No OFD packet to send [09:30:10]OFD Sender: No OFD packet to send [09:30:15]OFD Sender: No OFD packet to send [09:30:20]OFD Sender: No OFD packet to send [09:30:25]OFD Sender: No OFD packet to send [09:30:30]OFD Sender: No OFD packet to send [09:30:35]OFD Sender: No OFD packet to send [09:30:40]OFD Sender: No OFD packet to send [09:30:45]OFD Sender: No OFD packet to send [09:30:50]OFD Sender: No OFD packet to send [09:30:55]OFD Sender: No OFD packet to send [09:31:00]OFD Sender: No OFD packet to send [09:31:05]OFD Sender: No OFD packet to send [09:31:10]OFD Sender: No OFD packet to send [09:31:15]OFD Sender: No OFD packet to send [09:31:20]OFD Sender: No OFD packet to send [09:31:25]OFD Sender: No OFD packet to send [09:31:30]OFD Sender: No OFD packet to send [09:31:35]OFD Sender: No OFD packet to send [09:31:40]OFD Sender: No OFD packet to send [09:31:45]OFD Sender: No OFD packet to send [09:31:50]OFD Sender: No OFD packet to send [09:31:55]OFD Sender: No OFD packet to send [09:32:00]OFD Sender: No OFD packet to send [09:32:05]OFD Sender: No OFD packet to send [09:32:10]OFD Sender: No OFD packet to send [09:32:15]OFD Sender: No OFD packet to send [09:32:20]OFD Sender: No OFD packet to send [09:32:25]OFD Sender: No OFD packet to send [09:32:30]OFD Sender: No OFD packet to send [09:32:35]OFD Sender: No OFD packet to send [09:32:40]OFD Sender: No OFD packet to send [09:32:45]OFD Sender: No OFD packet to send [09:32:50]OFD Sender: No OFD packet to send [09:32:55]OFD Sender: No OFD packet to send [09:33:00]OFD Sender: No OFD packet to send [09:33:05]OFD Sender: No OFD packet to send [09:33:10]accept exits with 12 [09:33:10]New connection [09:33:10]New thread 3066977636 created [09:33:10]Thread 3066834276 joined [09:33:10]Waiting for new connection... [09:33:10] Sock 12.Parse request [09:33:10]Sock 12.Check first char [09:33:10]Sock 12.First char is OK [09:33:10]request: POST /json_proto HTTP/1.0 [09:33:10]Method: POST [09:33:10]URL: /json_proto [09:33:10]Method is POST - this is cgi request [09:33:10]url: /json_proto [09:33:10]query_string will be loaded in cgi processing [09:33:10]execute_cgi json_proto POST (null) [09:33:10]execute_cgi path=json_proto method=POST [09:33:10]POST find Content-Length [09:33:10]Host: 172.17.63.3:8080 [09:33:10]Content-Length: 681 [09:33:10]Content-Type: application/json [09:33:10] [09:33:10]POST finish read [09:33:10]Found Content-Length = 681 [09:33:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99302", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 37.370, "sum" : 2500.05, "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:33:10]execute_script... [09:33: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)99302", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 37.370, "sum" : 2500.05, "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:33:10]POST & json_proto [09:33:10]process_json_proto [09:33:10]json parsed OK: [09:33:10]protocol is kg_v1.0 [09:33:10]action value=close_receipt [09:33:10]process_action close_receipt [09:33:10]cmd_close_receipt [09:33:10]MH_GetDate [09:33:10]Write to MH i2c: F0 00 00 34 3C 5F [09:33:10]Write i2c OK [09:33:10]MH_I2C_Read... [09:33:10]Read from MH i2c: F0 [09:33:10]MH_I2C_Read... [09:33:10]Read from MH i2c: F0 09 00 [09:33:10]MH_I2C_Read... [09:33:10]Read from MH i2c: F0 09 00 34 3C 00 DB 08 1E 67 50 D1 6C 64 C1 [09:33:10]GetLastDocTimeStamp 1730021334 [09:33:10]current date 1730021595 [09:33:10]FM_GetShiftState [09:33:10]SAM_PROTO_GetShiftState [09:33:10]wFMCommunicate request_size=4 [09:33:10]MH_SAM_APDU [09:33:10]CAPDU: 80 13 01 00 [09:33:10]Write to MH i2c: E2 08 00 35 3C 80 13 01 00 00 00 00 00 EE [09:33:10]Write i2c OK [09:33:10]MH_I2C_Read... [09:33:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:10]OFD Sender: No OFD packet to send [09:33:10]Read from MH i2c: E2 [09:33:10]MH_I2C_Read... [09:33:10]Read from MH i2c: E2 0E 00 [09:33:10]MH_I2C_Read... [09:33:10]Read from MH i2c: E2 0E 00 35 3C 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 BB [09:33:10]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [09:33:10]wFMCommunicate OK [09:33:10]SAM_PROTO_GetShiftState done [09:33:10]FM_GetShiftState done [09:33:10]opened in 1729989044 [09:33:10]opened+sec_in_day 1730075444 [09:33:10]quantity*price = 250005 [09:33:10]sum+1 = 250006 [09:33:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.12 НДС 12% : 265.49 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 40 27.10.2024 09:33 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156489 ФПД: 214808686968519 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T093315&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156489&fm=214808686968519&tin=02508201610067®Number=0000000000091693&sum=250000 [09:33:11]StoreToDocumentArchive [09:33:11]shift 537 fd 156489 [09:33:11]save to /storage/0537/doc_00156489 [09:33:11]save last doc name /storage/0537/doc_00156489 to /storage/kkm_last_doc_name [09:33:11]save OK [09:33:11]Clear old archive folders... [09:33:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:33:11]tlvbuf is 016E41E0 [09:33:11]SAM_PROTO_ClearQueue [09:33:11]wFMCommunicate request_size=4 [09:33:11]MH_SAM_APDU [09:33:11]CAPDU: 80 09 00 00 [09:33:11]Write to MH i2c: E2 08 00 42 3C 80 09 00 00 00 00 00 00 F0 [09:33:11]Write i2c OK [09:33:11]MH_I2C_Read... [09:33:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:33:11]Read from MH i2c: E2 [09:33:11]MH_I2C_Read... [09:33:11]Read from MH i2c: E2 03 00 [09:33:11]MH_I2C_Read... [09:33:11]Read from MH i2c: E2 03 00 42 3C 00 90 00 F2 [09:33:11]RAPDU: 90 00 [09:33:11]wFMCommunicate OK [09:33:11]SAM_PROTO_ClearQueue done [09:33:11]KKMCreateOFDPacket [09:33:11]OFDProtocolAddRootSTLVToBuf [09:33:11]FM_MakeSignedData [09:33:11]FM_MakeSignedData [09:33:11]SAM_PROTO_SignData [09:33:11]wFMCommunicate request_size=4 [09:33:11]MH_SAM_APDU [09:33:11]CAPDU: 80 0D 01 02 [09:33:11]Write to MH i2c: E2 08 00 43 3C 80 0D 01 02 00 00 00 00 F8 [09:33:11]Write i2c OK [09:33:11]MH_I2C_Read... [09:33:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:33:11]Read from MH i2c: E2 [09:33:11]MH_I2C_Read... [09:33:11]Read from MH i2c: E2 03 00 [09:33:11]MH_I2C_Read... [09:33:11]Read from MH i2c: E2 03 00 43 3C 00 90 00 F3 [09:33:11]RAPDU: 90 00 [09:33:11]wFMCommunicate OK [09:33:11]wFMCommunicate request_size=255 [09:33:11]MH_SAM_APDU [09:33:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FA 91 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 95 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 28 00 00 00 F4 03 04 00 DB 08 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 49 63 02 00 35 04 06 00 C3 [09:33:11]Write to MH i2c: E2 02 01 44 3C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 FA 91 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 95 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 28 00 00 00 F4 03 04 00 DB 08 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 49 63 02 00 35 04 06 00 C3 00 00 E0 [09:33:11]Write i2c OK [09:33:11]MH_I2C_Read... [09:33:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:33:11]Read from MH i2c: E2 [09:33:11]MH_I2C_Read... [09:33:11]Read from MH i2c: E2 03 00 [09:33:11]MH_I2C_Read... [09:33:11]Read from MH i2c: E2 03 00 44 3C 00 90 00 F4 [09:33:11]RAPDU: 90 00 [09:33:11]wFMCommunicate OK [09:33:11]wFMCommunicate request_size=10 [09:33:11]MH_SAM_APDU [09:33:11]CAPDU: 80 0D 02 02 05 5E 0B 7B 3E C7 [09:33:11]Write to MH i2c: E2 0D 00 45 3C 80 0D 02 02 05 00 5E 0B 7B 3E C7 00 00 EE [09:33:11]Write i2c OK [09:33:11]MH_I2C_Read... [09:33:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:33:11]Read from MH i2c: E2 [09:33:11]MH_I2C_Read... [09:33:11]Read from MH i2c: E2 03 00 [09:33:11]MH_I2C_Read... [09:33:11]Read from MH i2c: E2 03 00 45 3C 00 90 00 F5 [09:33:11]RAPDU: 90 00 [09:33:11]wFMCommunicate OK [09:33:11]wFMCommunicate request_size=4 [09:33:11]MH_SAM_APDU [09:33:11]CAPDU: 80 0D 03 02 [09:33:11]Write to MH i2c: E2 08 00 46 3C 80 0D 03 02 00 00 00 00 FD [09:33:11]Write i2c OK [09:33:11]MH_I2C_Read... [09:33:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:33:11]Read from MH i2c: E2 [09:33:11]MH_I2C_Read... [09:33:11]Read from MH i2c: E2 0B 00 [09:33:11]MH_I2C_Read... [09:33:11]Read from MH i2c: E2 0B 00 46 3C 00 9F 5E 74 1A 17 8B 21 7A 90 00 C6 [09:33:11]RAPDU: 9F 5E 74 1A 17 8B 21 7A 90 00 [09:33:11]wFMCommunicate OK [09:33:11]SAM_PROTO_SignData done [09:33:11]FM_MakeSignedData done [09:33:11]CreateOFDProtocolMessage [09:33:11]wFMCommunicate request_size=4 [09:33:11]MH_SAM_APDU [09:33:11]CAPDU: 80 11 00 00 [09:33:11]Write to MH i2c: E2 08 00 47 3C 80 11 00 00 00 00 00 00 FD [09:33:11]Write i2c OK [09:33:11]MH_I2C_Read... [09:33:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:11]Read from MH i2c: E2 [09:33:11]MH_I2C_Read... [09:33:11]Read from MH i2c: E2 17 00 [09:33:11]MH_I2C_Read... [09:33:11]Read from MH i2c: E2 17 00 47 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 52 [09:33:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:33:11]wFMCommunicate OK [09:33:11]CreateOFDProtocolMessage done [09:33:11]OFDSenderStorePacket 156489 [09:33:11]StoreOFDPacket docnum=156489 [09:33:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 B9 50 07 01 DB 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 FA 91 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 95 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 28 00 00 00 F4 03 04 00 DB 08 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 49 63 02 00 35 04 06 00 C3 5E 0B 7B 3E C7 9F 5E 74 1A 17 8B 21 7A [09:33:11]CheckFolder [09:33:11]dirname=/storage/ofd_packets [09:33:11]CheckFolder done [09:33:11]ProducePacketName [09:33:11]name=ofd_packets/00156489 [09:33:11]NVStorageSaveData ofd_packets/00156489 [09:33:11]File name is /storage/ofd_packets/00156489 [09:33:11]Write 301 bytes [09:33:11]NVStorageSaveData done [09:33:11]OFDSenderStorePacket done [09:33:11]KKMCreateOFDPacket done [09:33:11]NVStorageSaveData kkm_last_timestamp [09:33:11]File name is /storage/kkm_last_timestamp [09:33:11]Write 4 bytes [09:33:11]NVStorageSaveData done [09:33:11]ExternCall_PrintAddStr [09:33:11]wPrintStart [09:33:11]Write to MH i2c: 01 00 00 48 3C 84 [09:33:11]Write i2c OK [09:33:11]MH_I2C_Read... [09:33:11]Read from MH i2c: 01 [09:33:11]MH_I2C_Read... [09:33:11]Read from MH i2c: 01 07 00 [09:33:11]MH_I2C_Read... [09:33:11]Read from MH i2c: 01 07 00 48 3C 00 00 00 00 00 FF 0F 99 [09:33:11]RasterBufferAndPrint [09:33:11]line Счет N : (1)99302 [09:33:11]line ИНН: 02508201610067 [09:33:11]line Контрольно-Кассовый Чек [09:33:11]line ПРОДАЖА [09:33:11]line ТРК (МРК, ГНК) : 11 [09:33:11]line Товар: 2710124130 [09:33:11]line Аи-92-К-5 [09:33:11]line 37.370 * 66.90 [09:33:11]line = 2500.05 [09:33:11]line НДС 12% НСП 1% [09:33:11]line > о реализуемом товаре [09:33:11]line ОКРУГЛЕНИЕ: -0.05 [09:33:11]line ИТОГО: 2500.00 [09:33:11]line Внесено: 2500.00 [09:33:11]line СДАЧА: 0.00 [09:33:11]line НСП 1% : 22.12 [09:33:11]line НДС 12% : 265.49 [09:33:11]line Наличными: 2500.00 [09:33:11]line Безнал.: 0.00 [09:33:11]line Место: АЗС № 143 "Партнер Нефть" [09:33:11]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [09:33:11]line СНО: Общий режим [09:33:11]line Чек 40 27.10.2024 09:33 [09:33:11]line Смена: 537 ФФД: 1.0 [09:33:11]line ЗНМ: 0300000096 [09:33:11]line РНМ: 0000000000091693 [09:33:11]line Версия ККМ: 001 [09:33:11]line ФМ: 0000000000871792 [09:33:11]line ФД: 156489 [09:33:11]line ФПД: 214808686968519 [09:33:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T093315&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156489&fm=214808686968519&tin=02508201610067®Number=0000000000091693&sum=250000 [09:33:12]OFD Sender: Processing packet 156489 [packets to send 31, broken 30] [09:33:12]ProducePacketName [09:33:12]name=ofd_packets/00156489 [09:33:12]OFD Sender: To server: pG, [09:33:12]CommunicateWithHost lk.salyk.kg:30040 [09:33:12]ConnectInit lk.salyk.kg [09:33:12]written 0, free lines is 4095 [09:33:12]Connected sock=9 [09:33:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 B9 50 07 01 DB 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 FA 91 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 95 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 28 00 00 00 F4 03 04 00 DB 08 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 49 63 02 00 35 04 06 00 C3 5E 0B 7B 3E C7 9F 5E 74 1A 17 8B 21 7A [09:33:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 B9 2B 47 00 E0 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 49 63 02 00 F4 03 04 00 4B AE 1D 67 B6 04 01 00 00 C8 AD 5C FC 60 A6 72 8C [09:33:12]CommunicateWithHost err = 0 [09:33:12]CheckOFDResponse [09:33:12]1017 (14) - 77093643461234 [09:33:12]1041 (16) - 0000000000871792 [09:33:12]1040 (4) - 156489 [09:33:12]1012 (4) - 27.10.2024 03:06 [09:33:12]1206 (1) - 0 [09:33:12]OFD Sender: Remove packet 156489 [09:33:12]ProducePacketName [09:33:12]name=ofd_packets/00156489 [09:33:12]NVStorageDeleteData [09:33:12]Write to MH i2c: 01 00 00 73 3C AF [09:33:12]Write i2c OK [09:33:12]MH_I2C_Read... [09:33:12]Read from MH i2c: 01 [09:33:12]MH_I2C_Read... [09:33:12]Read from MH i2c: 01 07 00 [09:33:12]MH_I2C_Read... [09:33:12]Read from MH i2c: 01 07 00 73 3C 00 00 00 00 00 E0 0C A2 [09:33:12]RasterBufferAndPrint [09:33:12]line [09:33:12]line [09:33:12]line [09:33:12]line [09:33:12]line [09:33:12]written 0, free lines is 3302 [09:33:12]process_action close_receipt done [09:33:12]requested_data is exist [09:33:12]produce_requested_data [09:33:12]requested_item fm.sn is exist - process it [09:33:12]wFMCommunicate request_size=4 [09:33:12]MH_SAM_APDU [09:33:12]CAPDU: 80 11 00 00 [09:33:12]Write to MH i2c: E2 08 00 7A 3C 80 11 00 00 00 00 00 00 30 [09:33:12]Write i2c OK [09:33:12]MH_I2C_Read... [09:33:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:12]Read from MH i2c: E2 [09:33:12]MH_I2C_Read... [09:33:12]Read from MH i2c: E2 17 00 [09:33:12]MH_I2C_Read... [09:33:12]Read from MH i2c: E2 17 00 7A 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 85 [09:33:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:33:12]wFMCommunicate OK [09:33:12]requested_item fd.num is exist - process it [09:33:12]SAM_PROTO_GetFieldsCounters [09:33:12]wFMCommunicate request_size=4 [09:33:12]MH_SAM_APDU [09:33:12]CAPDU: 80 13 00 00 [09:33:12]Write to MH i2c: E2 08 00 7B 3C 80 13 00 00 00 00 00 00 33 [09:33:12]Write i2c OK [09:33:12]MH_I2C_Read... [09:33:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:33:12]Read from MH i2c: E2 [09:33:12]MH_I2C_Read... [09:33:12]Read from MH i2c: E2 62 00 [09:33:12]MH_I2C_Read... [09:33:12]Read from MH i2c: E2 62 00 7B 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 49 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 9A [09:33:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 49 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:33:12]wFMCommunicate OK [09:33:12]SAM_PROTO_GetFieldsCounters done [09:33:12]requested_item shift.num is exist - process it [09:33:12]requested_item shift.opened is exist - process it [09:33:12]req_shift_opened [09:33:12]FM_GetShiftState [09:33:12]SAM_PROTO_GetShiftState [09:33:12]wFMCommunicate request_size=4 [09:33:12]MH_SAM_APDU [09:33:12]CAPDU: 80 13 01 00 [09:33:12]Write to MH i2c: E2 08 00 7C 3C 80 13 01 00 00 00 00 00 35 [09:33:12]Write i2c OK [09:33:12]MH_I2C_Read... [09:33:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:13]Read from MH i2c: E2 [09:33:13]MH_I2C_Read... [09:33:13]Read from MH i2c: E2 0E 00 [09:33:13]MH_I2C_Read... [09:33:13]Read from MH i2c: E2 0E 00 7C 3C 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 02 [09:33:13]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [09:33:13]wFMCommunicate OK [09:33:13]SAM_PROTO_GetShiftState done [09:33:13]FM_GetShiftState done [09:33:13]req_shift_opened done [09:33:13]requested_item shift.open_date is exist - process it [09:33:13]req_shift_open_date [09:33:13]req_shift_open_date done [09:33:13]produce_requested_data done [09:33:13]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156489,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [09:33:13]process_action_free close_receipt [09:33:13]json_value_free [09:33:13]json_value_free done [09:33:13]process_json_proto returns [09:33:13]Send response to host [09:33:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156489,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [09:33:13]free response buf [09:33:13]execute_script done [09:33:13]execute_script returns [09:33:13]free content buf [09:33:13]Sock 12.Close socket [09:33:13]Sock 12.Thread stoped [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:13]accept exits with 8 [09:35:13]New connection [09:35:13]New thread 3066834276 created [09:35:13]Thread 3066977636 joined [09:35:13]Waiting for new connection... [09:35:13] Sock 8.Parse request [09:35:13]Sock 8.Check first char [09:35:13]Sock 8.First char is OK [09:35:13]request: POST /json_proto HTTP/1.0 [09:35:13]Method: POST [09:35:13]URL: /json_proto [09:35:13]Method is POST - this is cgi request [09:35:13]url: /json_proto [09:35:13]query_string will be loaded in cgi processing [09:35:13]execute_cgi json_proto POST (null) [09:35:13]execute_cgi path=json_proto method=POST [09:35:13]POST find Content-Length [09:35:13]Host: 172.17.63.3:8080 [09:35:13]Content-Length: 676 [09:35:13]Content-Type: application/json [09:35:13] [09:35:13]POST finish read [09:35:13]Found Content-Length = 676 [09:35:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99303", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:35:13]execute_script... [09:35:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99303", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:35:13]POST & json_proto [09:35:13]process_json_proto [09:35:13]json parsed OK: [09:35:13]protocol is kg_v1.0 [09:35:13]action value=close_receipt [09:35:13]process_action close_receipt [09:35:13]cmd_close_receipt [09:35:13]MH_GetDate [09:35:13]Write to MH i2c: F0 00 00 7D 3C A8 [09:35:13]Write i2c OK [09:35:13]MH_I2C_Read... [09:35:13]Read from MH i2c: F0 [09:35:13]MH_I2C_Read... [09:35:13]Read from MH i2c: F0 09 00 [09:35:13]MH_I2C_Read... [09:35:13]Read from MH i2c: F0 09 00 7D 3C 00 56 09 1E 67 50 D1 6C 64 86 [09:35:13]GetLastDocTimeStamp 1730021595 [09:35:13]current date 1730021718 [09:35:13]FM_GetShiftState [09:35:13]SAM_PROTO_GetShiftState [09:35:13]wFMCommunicate request_size=4 [09:35:13]MH_SAM_APDU [09:35:13]CAPDU: 80 13 01 00 [09:35:13]Write to MH i2c: E2 08 00 7E 3C 80 13 01 00 00 00 00 00 37 [09:35:13]Write i2c OK [09:35:13]MH_I2C_Read... [09:35:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:35:14]Read from MH i2c: E2 [09:35:14]MH_I2C_Read... [09:35:14]Read from MH i2c: E2 0E 00 [09:35:14]MH_I2C_Read... [09:35:14]Read from MH i2c: E2 0E 00 7E 3C 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 04 [09:35:14]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [09:35:14]wFMCommunicate OK [09:35:14]SAM_PROTO_GetShiftState done [09:35:14]FM_GetShiftState done [09:35:14]opened in 1729989044 [09:35:14]opened+sec_in_day 1730075444 [09:35:14]quantity*price = 40006 [09:35:14]sum+1 = 40007 [09:35:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 41 27.10.2024 09:35 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156490 ФПД: 231696685562060 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T093519&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156490&fm=231696685562060&tin=02508201610067®Number=0000000000091693&sum=40000 [09:35:15]StoreToDocumentArchive [09:35:15]shift 537 fd 156490 [09:35:15]save to /storage/0537/doc_00156490 [09:35:15]save last doc name /storage/0537/doc_00156490 to /storage/kkm_last_doc_name [09:35:15]save OK [09:35:15]Clear old archive folders... [09:35:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:35:15]tlvbuf is 016BD1D0 [09:35:15]SAM_PROTO_ClearQueue [09:35:15]wFMCommunicate request_size=4 [09:35:15]MH_SAM_APDU [09:35:15]CAPDU: 80 09 00 00 [09:35:15]Write to MH i2c: E2 08 00 8B 3C 80 09 00 00 00 00 00 00 39 [09:35:15]Write i2c OK [09:35:15]MH_I2C_Read... [09:35:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:35:15]Read from MH i2c: E2 [09:35:15]MH_I2C_Read... [09:35:15]Read from MH i2c: E2 03 00 [09:35:15]MH_I2C_Read... [09:35:15]Read from MH i2c: E2 03 00 8B 3C 00 90 00 3B [09:35:15]RAPDU: 90 00 [09:35:15]wFMCommunicate OK [09:35:15]SAM_PROTO_ClearQueue done [09:35:15]KKMCreateOFDPacket [09:35:15]OFDProtocolAddRootSTLVToBuf [09:35:15]FM_MakeSignedData [09:35:15]FM_MakeSignedData [09:35:15]SAM_PROTO_SignData [09:35:15]wFMCommunicate request_size=4 [09:35:15]MH_SAM_APDU [09:35:15]CAPDU: 80 0D 01 02 [09:35:15]Write to MH i2c: E2 08 00 8C 3C 80 0D 01 02 00 00 00 00 41 [09:35:15]Write i2c OK [09:35:15]MH_I2C_Read... [09:35:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:35:15]Read from MH i2c: E2 [09:35:15]MH_I2C_Read... [09:35:15]Read from MH i2c: E2 03 00 [09:35:15]MH_I2C_Read... [09:35:15]Read from MH i2c: E2 03 00 8C 3C 00 90 00 3C [09:35:15]RAPDU: 90 00 [09:35:15]wFMCommunicate OK [09:35:15]wFMCommunicate request_size=255 [09:35:15]MH_SAM_APDU [09:35: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 57 09 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4A 63 02 00 35 04 06 00 D2 [09:35:15]Write to MH i2c: E2 02 01 8D 3C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 57 09 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4A 63 02 00 35 04 06 00 D2 00 00 4E [09:35:15]Write i2c OK [09:35:15]MH_I2C_Read... [09:35:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:35:15]Read from MH i2c: E2 [09:35:15]MH_I2C_Read... [09:35:15]Read from MH i2c: E2 03 00 [09:35:15]MH_I2C_Read... [09:35:15]Read from MH i2c: E2 03 00 8D 3C 00 90 00 3D [09:35:15]RAPDU: 90 00 [09:35:15]wFMCommunicate OK [09:35:15]wFMCommunicate request_size=10 [09:35:15]MH_SAM_APDU [09:35:15]CAPDU: 80 0D 02 02 05 BA 16 A3 78 CC [09:35:15]Write to MH i2c: E2 0D 00 8E 3C 80 0D 02 02 05 00 BA 16 A3 78 CC 00 00 05 [09:35:15]Write i2c OK [09:35:15]MH_I2C_Read... [09:35:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:35:15]Read from MH i2c: E2 [09:35:15]MH_I2C_Read... [09:35:15]Read from MH i2c: E2 03 00 [09:35:15]MH_I2C_Read... [09:35:15]Read from MH i2c: E2 03 00 8E 3C 00 90 00 3E [09:35:15]RAPDU: 90 00 [09:35:15]wFMCommunicate OK [09:35:15]wFMCommunicate request_size=4 [09:35:15]MH_SAM_APDU [09:35:15]CAPDU: 80 0D 03 02 [09:35:15]Write to MH i2c: E2 08 00 8F 3C 80 0D 03 02 00 00 00 00 46 [09:35:15]Write i2c OK [09:35:15]MH_I2C_Read... [09:35:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:35:15]Read from MH i2c: E2 [09:35:15]MH_I2C_Read... [09:35:15]Read from MH i2c: E2 0B 00 [09:35:15]MH_I2C_Read... [09:35:15]Read from MH i2c: E2 0B 00 8F 3C 00 71 F1 42 E3 E1 E3 D8 14 90 00 7E [09:35:15]RAPDU: 71 F1 42 E3 E1 E3 D8 14 90 00 [09:35:15]wFMCommunicate OK [09:35:15]SAM_PROTO_SignData done [09:35:15]FM_MakeSignedData done [09:35:15]CreateOFDProtocolMessage [09:35:15]wFMCommunicate request_size=4 [09:35:15]MH_SAM_APDU [09:35:15]CAPDU: 80 11 00 00 [09:35:15]Write to MH i2c: E2 08 00 90 3C 80 11 00 00 00 00 00 00 46 [09:35:15]Write i2c OK [09:35:15]MH_I2C_Read... [09:35:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:35:15]Read from MH i2c: E2 [09:35:15]MH_I2C_Read... [09:35:15]Read from MH i2c: E2 17 00 [09:35:15]MH_I2C_Read... [09:35:15]Read from MH i2c: E2 17 00 90 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 9B [09:35:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:35:15]wFMCommunicate OK [09:35:15]CreateOFDProtocolMessage done [09:35:15]OFDSenderStorePacket 156490 [09:35:15]StoreOFDPacket docnum=156490 [09:35:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 3F C2 07 01 3A 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 57 09 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4A 63 02 00 35 04 06 00 D2 BA 16 A3 78 CC 71 F1 42 E3 E1 E3 D8 14 [09:35:15]CheckFolder [09:35:15]dirname=/storage/ofd_packets [09:35:15]CheckFolder done [09:35:15]ProducePacketName [09:35:15]name=ofd_packets/00156490 [09:35:15]NVStorageSaveData ofd_packets/00156490 [09:35:15]File name is /storage/ofd_packets/00156490 [09:35:15]Write 301 bytes [09:35:15]NVStorageSaveData done [09:35:15]OFDSenderStorePacket done [09:35:15]KKMCreateOFDPacket done [09:35:15]NVStorageSaveData kkm_last_timestamp [09:35:15]File name is /storage/kkm_last_timestamp [09:35:15]Write 4 bytes [09:35:15]NVStorageSaveData done [09:35:15]ExternCall_PrintAddStr [09:35:15]wPrintStart [09:35:15]Write to MH i2c: 01 00 00 91 3C CD [09:35:15]Write i2c OK [09:35:15]MH_I2C_Read... [09:35:15]Read from MH i2c: 01 [09:35:15]MH_I2C_Read... [09:35:15]Read from MH i2c: 01 07 00 [09:35:15]MH_I2C_Read... [09:35:15]Read from MH i2c: 01 07 00 91 3C 00 00 00 00 00 FF 0F E2 [09:35:15]RasterBufferAndPrint [09:35:15]line Счет N : (1)99303 [09:35:15]line ИНН: 02508201610067 [09:35:15]line Контрольно-Кассовый Чек [09:35:15]line ПРОДАЖА [09:35:15]line ТРК (МРК, ГНК) : 11 [09:35:15]line Товар: 2710124130 [09:35:15]line Аи-92-К-5 [09:35:15]line 5.980 * 66.90 [09:35:15]line = 400.06 [09:35:15]line НДС 12% НСП 1% [09:35:15]line > о реализуемом товаре [09:35:15]line ОКРУГЛЕНИЕ: -0.06 [09:35:15]line ИТОГО: 400.00 [09:35:15]line Внесено: 400.00 [09:35:15]line СДАЧА: 0.00 [09:35:15]line НСП 1% : 3.54 [09:35:15]line НДС 12% : 42.48 [09:35:15]line Наличными: 400.00 [09:35:15]line Безнал.: 0.00 [09:35:15]line Место: АЗС № 143 "Партнер Нефть" [09:35:15]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [09:35:15]line СНО: Общий режим [09:35:15]line Чек 41 27.10.2024 09:35 [09:35:15]line Смена: 537 ФФД: 1.0 [09:35:15]line ЗНМ: 0300000096 [09:35:15]line РНМ: 0000000000091693 [09:35:15]line Версия ККМ: 001 [09:35:15]line ФМ: 0000000000871792 [09:35:15]line ФД: 156490 [09:35:15]line ФПД: 231696685562060 [09:35:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T093519&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156490&fm=231696685562060&tin=02508201610067®Number=0000000000091693&sum=40000 [09:35:16]OFD Sender: Processing packet 156490 [packets to send 31, broken 30] [09:35:16]ProducePacketName [09:35:16]name=ofd_packets/00156490 [09:35:16]OFD Sender: To server: pG, [09:35:16]CommunicateWithHost lk.salyk.kg:30040 [09:35:16]ConnectInit lk.salyk.kg [09:35:16]written 0, free lines is 4095 [09:35:16]Connected sock=10 [09:35:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 3F C2 07 01 3A 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 57 09 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4A 63 02 00 35 04 06 00 D2 BA 16 A3 78 CC 71 F1 42 E3 E1 E3 D8 14 [09:35:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 B5 65 47 00 38 E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4A 63 02 00 F4 03 04 00 C6 AE 1D 67 B6 04 01 00 00 9E 5C A7 F2 06 7A 7D 57 [09:35:16]CommunicateWithHost err = 0 [09:35:16]CheckOFDResponse [09:35:16]1017 (14) - 77093643461234 [09:35:16]1041 (16) - 0000000000871792 [09:35:16]1040 (4) - 156490 [09:35:16]1012 (4) - 27.10.2024 03:08 [09:35:16]1206 (1) - 0 [09:35:16]OFD Sender: Remove packet 156490 [09:35:16]ProducePacketName [09:35:16]name=ofd_packets/00156490 [09:35:16]NVStorageDeleteData [09:35:16]Write to MH i2c: 01 00 00 BC 3C F8 [09:35:16]Write i2c OK [09:35:16]MH_I2C_Read... [09:35:16]Read from MH i2c: 01 [09:35:16]MH_I2C_Read... [09:35:16]Read from MH i2c: 01 07 00 [09:35:16]MH_I2C_Read... [09:35:16]Read from MH i2c: 01 07 00 BC 3C 00 00 00 00 00 D3 0C DE [09:35:16]RasterBufferAndPrint [09:35:16]line [09:35:16]line [09:35:16]line [09:35:16]line [09:35:16]line [09:35:16]written 0, free lines is 3290 [09:35:16]process_action close_receipt done [09:35:16]requested_data is exist [09:35:16]produce_requested_data [09:35:16]requested_item fm.sn is exist - process it [09:35:16]wFMCommunicate request_size=4 [09:35:16]MH_SAM_APDU [09:35:16]CAPDU: 80 11 00 00 [09:35:16]Write to MH i2c: E2 08 00 C3 3C 80 11 00 00 00 00 00 00 79 [09:35:16]Write i2c OK [09:35:16]MH_I2C_Read... [09:35:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:35:16]Read from MH i2c: E2 [09:35:16]MH_I2C_Read... [09:35:16]Read from MH i2c: E2 17 00 [09:35:16]MH_I2C_Read... [09:35:16]Read from MH i2c: E2 17 00 C3 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 CE [09:35:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:35:16]wFMCommunicate OK [09:35:16]requested_item fd.num is exist - process it [09:35:16]SAM_PROTO_GetFieldsCounters [09:35:16]wFMCommunicate request_size=4 [09:35:16]MH_SAM_APDU [09:35:16]CAPDU: 80 13 00 00 [09:35:16]Write to MH i2c: E2 08 00 C4 3C 80 13 00 00 00 00 00 00 7C [09:35:16]Write i2c OK [09:35:16]MH_I2C_Read... [09:35:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:35:16]Read from MH i2c: E2 [09:35:16]MH_I2C_Read... [09:35:16]Read from MH i2c: E2 62 00 [09:35:16]MH_I2C_Read... [09:35:16]Read from MH i2c: E2 62 00 C4 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 4A 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 E7 [09:35:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 4A 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:35:16]wFMCommunicate OK [09:35:16]SAM_PROTO_GetFieldsCounters done [09:35:16]requested_item shift.num is exist - process it [09:35:16]requested_item shift.opened is exist - process it [09:35:16]req_shift_opened [09:35:16]FM_GetShiftState [09:35:16]SAM_PROTO_GetShiftState [09:35:16]wFMCommunicate request_size=4 [09:35:16]MH_SAM_APDU [09:35:16]CAPDU: 80 13 01 00 [09:35:16]Write to MH i2c: E2 08 00 C5 3C 80 13 01 00 00 00 00 00 7E [09:35:16]Write i2c OK [09:35:16]MH_I2C_Read... [09:35:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:35:16]Read from MH i2c: E2 [09:35:16]MH_I2C_Read... [09:35:16]Read from MH i2c: E2 0E 00 [09:35:16]MH_I2C_Read... [09:35:16]Read from MH i2c: E2 0E 00 C5 3C 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 4B [09:35:16]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [09:35:16]wFMCommunicate OK [09:35:16]SAM_PROTO_GetShiftState done [09:35:16]FM_GetShiftState done [09:35:16]req_shift_opened done [09:35:16]requested_item shift.open_date is exist - process it [09:35:16]req_shift_open_date [09:35:16]req_shift_open_date done [09:35:16]produce_requested_data done [09:35:16]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156490,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [09:35:16]process_action_free close_receipt [09:35:16]json_value_free [09:35:16]json_value_free done [09:35:16]process_json_proto returns [09:35:16]Send response to host [09:35:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156490,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [09:35:16]free response buf [09:35:16]execute_script done [09:35:16]execute_script returns [09:35:16]free content buf [09:35:16]Sock 8.Close socket [09:35:16]Sock 8.Thread stoped [09:35:16]OFD Sender: No OFD packet to send [09:35:21]OFD Sender: No OFD packet to send [09:35:26]OFD Sender: No OFD packet to send [09:35:31]OFD Sender: No OFD packet to send [09:35:36]OFD Sender: No OFD packet to send [09:35:41]OFD Sender: No OFD packet to send [09:35:46]OFD Sender: No OFD packet to send [09:35:51]OFD Sender: No OFD packet to send [09:35:56]OFD Sender: No OFD packet to send [09:36:01]OFD Sender: No OFD packet to send [09:36:06]OFD Sender: No OFD packet to send [09:36:11]OFD Sender: No OFD packet to send [09:36:16]OFD Sender: No OFD packet to send [09:36:21]OFD Sender: No OFD packet to send [09:36:26]OFD Sender: No OFD packet to send [09:36:31]OFD Sender: No OFD packet to send [09:36:36]OFD Sender: No OFD packet to send [09:36:41]OFD Sender: No OFD packet to send [09:36:46]OFD Sender: No OFD packet to send [09:36:51]OFD Sender: No OFD packet to send [09:36:56]OFD Sender: No OFD packet to send [09:37:01]OFD Sender: No OFD packet to send [09:37:06]OFD Sender: No OFD packet to send [09:37:11]OFD Sender: No OFD packet to send [09:37:16]OFD Sender: No OFD packet to send [09:37:21]OFD Sender: No OFD packet to send [09:37:26]OFD Sender: No OFD packet to send [09:37:31]OFD Sender: No OFD packet to send [09:37:36]OFD Sender: No OFD packet to send [09:37:41]OFD Sender: No OFD packet to send [09:37:46]OFD Sender: No OFD packet to send [09:37:51]OFD Sender: No OFD packet to send [09:37:56]OFD Sender: No OFD packet to send [09:38:01]OFD Sender: No OFD packet to send [09:38:06]OFD Sender: No OFD packet to send [09:38:11]OFD Sender: No OFD packet to send [09:38:17]OFD Sender: No OFD packet to send [09:38:22]OFD Sender: No OFD packet to send [09:38:27]OFD Sender: No OFD packet to send [09:38:32]OFD Sender: No OFD packet to send [09:38:37]OFD Sender: No OFD packet to send [09:38:42]OFD Sender: No OFD packet to send [09:38:47]OFD Sender: No OFD packet to send [09:38:52]OFD Sender: No OFD packet to send [09:38:58]CAPDU: 80 15 02 00 08 F4 03 04 00 36 0A 1E 67 [09:38:58]Write to MH i2c: E2 10 00 D0 3C 80 15 02 00 08 00 F4 03 04 00 36 0A 1E 67 00 00 5C [09:38:58]Write i2c OK [09:38:58]MH_I2C_Read... [09:38:58]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [09:38:58]Read from MH i2c: E2 [09:38:58]MH_I2C_Read... [09:38:58]Read from MH i2c: E2 03 00 [09:38:58]MH_I2C_Read... [09:38:58]Read from MH i2c: E2 03 00 D0 3C 00 90 00 80 [09:38:58]RAPDU: 90 00 [09:38:58]wFMCommunicate OK [09:38:58]wFMCommunicate request_size=25 [09:38:58]MH_SAM_APDU [09:38:58]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 [09:38:58]Write to MH i2c: E2 1C 00 D1 3C 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 00 00 F2 [09:38:58]Write i2c OK [09:38:58]MH_I2C_Read... [09:38:58]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [09:38:58]Read from MH i2c: E2 [09:38:58]MH_I2C_Read... [09:38:58]Read from MH i2c: E2 03 00 [09:38:58]MH_I2C_Read... [09:38:58]Read from MH i2c: E2 03 00 D1 3C 00 90 00 81 [09:38:58]RAPDU: 90 00 [09:38:58]wFMCommunicate OK [09:38:58]wFMCommunicate request_size=4 [09:38:58]MH_SAM_APDU [09:38:58]CAPDU: 80 15 03 00 [09:38:58]Write to MH i2c: E2 08 00 D2 3C 80 15 03 00 00 00 00 00 8F [09:38:58]Write i2c OK [09:38:58]MH_I2C_Read... [09:38:58]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [09:38:58]Read from MH i2c: E2 [09:38:58]MH_I2C_Read... [09:38:58]Read from MH i2c: E2 40 00 [09:38:58]MH_I2C_Read... [09:38:58]Read from MH i2c: E2 40 00 D2 3C 00 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4B 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 2A 00 00 00 35 04 06 00 64 FD 40 54 75 77 90 00 5D [09:38:58]RAPDU: 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4B 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 2A 00 00 00 35 04 06 00 64 FD 40 54 75 77 90 00 [09:38:58]wFMCommunicate OK [09:38:58]SAM_PROTO_ProcessDocument answer len = 59 [09:38:58]SAM_PROTO_ProcessDocument done [09:38:58]SetTLVBufToDocument [09:38:58]Processing tag 1209 (04B9) [09:38:58]Malloc new data [09:38:58]Processing tag 1041 (0411) [09:38:58]Processing tag 1040 (0410) [09:38:58]Malloc new data [09:38:58]Processing tag 1038 (040E) [09:38:58]Malloc new data [09:38:58]Processing tag 1042 (0412) [09:38:58]Malloc new data [09:38:58]Processing tag 1077 (0435) [09:38:58]Malloc new data [09:38:58]SetTLVBufToDocument err=0 [09:38:58]KKMLoadAndSignReceiptData store KKM data [09:38:58]KKMLoadAndSignReceiptData err=0 [09:38:58]wFMCommunicate request_size=4 [09:38:58]MH_SAM_APDU [09:38:58]CAPDU: 80 11 00 00 [09:38:58]Write to MH i2c: E2 08 00 D3 3C 80 11 00 00 00 00 00 00 89 [09:38:58]Write i2c OK [09:38:58]MH_I2C_Read... [09:38:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:38:58]Read from MH i2c: E2 [09:38:58]MH_I2C_Read... [09:38:58]Read from MH i2c: E2 17 00 [09:38:58]MH_I2C_Read... [09:38:58]Read from MH i2c: E2 17 00 D3 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 DE [09:38:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:38:58]wFMCommunicate OK [09:38:58]Счет N : (1)99304 ИНН: 02508201610067 Контрольно-Кассовый Чек ПРОДАЖА ТРК (МРК, ГНК) : 31 Товар: 2710124130 Аи-92-К-5 7.480 * 66.90 = 500.41 НДС 12% НСП 1% > о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 42 27.10.2024 09:39 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156491 ФПД: 111038868780407 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T093902&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156491&fm=111038868780407&tin=02508201610067®Number=0000000000091693&sum=50000 [09:38:58]StoreToDocumentArchive [09:38:58]shift 537 fd 156491 [09:38:58]save to /storage/0537/doc_00156491 [09:38:58]save last doc name /storage/0537/doc_00156491 to /storage/kkm_last_doc_name [09:38:58]save OK [09:38:58]Clear old archive folders... [09:38:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:38:58]tlvbuf is 01753EF0 [09:38:58]SAM_PROTO_ClearQueue [09:38:58]wFMCommunicate request_size=4 [09:38:58]MH_SAM_APDU [09:38:58]CAPDU: 80 09 00 00 [09:38:58]Write to MH i2c: E2 08 00 D4 3C 80 09 00 00 00 00 00 00 82 [09:38:58]Write i2c OK [09:38:58]MH_I2C_Read... [09:38:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:38:58]Read from MH i2c: E2 [09:38:58]MH_I2C_Read... [09:38:58]Read from MH i2c: E2 03 00 [09:38:58]MH_I2C_Read... [09:38:58]Read from MH i2c: E2 03 00 D4 3C 00 90 00 84 [09:38:58]RAPDU: 90 00 [09:38:58]wFMCommunicate OK [09:38:58]SAM_PROTO_ClearQueue done [09:38:58]KKMCreateOFDPacket [09:38:58]OFDProtocolAddRootSTLVToBuf [09:38:58]FM_MakeSignedData [09:38:58]FM_MakeSignedData [09:38:58]SAM_PROTO_SignData [09:38:58]wFMCommunicate request_size=4 [09:38:58]MH_SAM_APDU [09:38:58]CAPDU: 80 0D 01 02 [09:38:58]Write to MH i2c: E2 08 00 D5 3C 80 0D 01 02 00 00 00 00 8A [09:38:58]Write i2c OK [09:38:58]MH_I2C_Read... [09:38:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:38:58]Read from MH i2c: E2 [09:38:58]MH_I2C_Read... [09:38:58]Read from MH i2c: E2 03 00 [09:38:58]MH_I2C_Read... [09:38:58]Read from MH i2c: E2 03 00 D5 3C 00 90 00 85 [09:38:58]RAPDU: 90 00 [09:38:58]wFMCommunicate OK [09:38:58]wFMCommunicate request_size=255 [09:38:58]MH_SAM_APDU [09:38: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 36 0A 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4B 63 02 00 35 04 06 00 64 [09:38:58]Write to MH i2c: E2 02 01 D6 3C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 36 0A 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4B 63 02 00 35 04 06 00 64 00 00 3C [09:38:58]Write i2c OK [09:38:58]MH_I2C_Read... [09:38:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:38:59]Read from MH i2c: E2 [09:38:59]MH_I2C_Read... [09:38:59]Read from MH i2c: E2 03 00 [09:38:59]MH_I2C_Read... [09:38:59]Read from MH i2c: E2 03 00 D6 3C 00 90 00 86 [09:38:59]RAPDU: 90 00 [09:38:59]wFMCommunicate OK [09:38:59]wFMCommunicate request_size=10 [09:38:59]MH_SAM_APDU [09:38:59]CAPDU: 80 0D 02 02 05 FD 40 54 75 77 [09:38:59]Write to MH i2c: E2 0D 00 D7 3C 80 0D 02 02 05 00 FD 40 54 75 77 00 00 14 [09:38:59]Write i2c OK [09:38:59]MH_I2C_Read... [09:38:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:38:59]Read from MH i2c: E2 [09:38:59]MH_I2C_Read... [09:38:59]Read from MH i2c: E2 03 00 [09:38:59]MH_I2C_Read... [09:38:59]Read from MH i2c: E2 03 00 D7 3C 00 90 00 87 [09:38:59]RAPDU: 90 00 [09:38:59]wFMCommunicate OK [09:38:59]wFMCommunicate request_size=4 [09:38:59]MH_SAM_APDU [09:38:59]CAPDU: 80 0D 03 02 [09:38:59]Write to MH i2c: E2 08 00 D8 3C 80 0D 03 02 00 00 00 00 8F [09:38:59]Write i2c OK [09:38:59]MH_I2C_Read... [09:38:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:38:59]Read from MH i2c: E2 [09:38:59]MH_I2C_Read... [09:38:59]Read from MH i2c: E2 0B 00 [09:38:59]MH_I2C_Read... [09:38:59]Read from MH i2c: E2 0B 00 D8 3C 00 73 F5 64 C9 AA 26 5C 33 90 00 84 [09:38:59]RAPDU: 73 F5 64 C9 AA 26 5C 33 90 00 [09:38:59]wFMCommunicate OK [09:38:59]SAM_PROTO_SignData done [09:38:59]FM_MakeSignedData done [09:38:59]CreateOFDProtocolMessage [09:38:59]wFMCommunicate request_size=4 [09:38:59]MH_SAM_APDU [09:38:59]CAPDU: 80 11 00 00 [09:38:59]Write to MH i2c: E2 08 00 D9 3C 80 11 00 00 00 00 00 00 8F [09:38:59]Write i2c OK [09:38:59]MH_I2C_Read... [09:38:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:38:59]Read from MH i2c: E2 [09:38:59]MH_I2C_Read... [09:38:59]Read from MH i2c: E2 17 00 [09:38:59]MH_I2C_Read... [09:38:59]Read from MH i2c: E2 17 00 D9 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 E4 [09:38:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:38:59]wFMCommunicate OK [09:38:59]CreateOFDProtocolMessage done [09:38:59]OFDSenderStorePacket 156491 [09:38:59]StoreOFDPacket docnum=156491 [09:38:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 12 3E 07 01 99 63 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 36 0A 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4B 63 02 00 35 04 06 00 64 FD 40 54 75 77 73 F5 64 C9 AA 26 5C 33 [09:38:59]CheckFolder [09:38:59]dirname=/storage/ofd_packets [09:38:59]CheckFolder done [09:38:59]ProducePacketName [09:38:59]name=ofd_packets/00156491 [09:38:59]NVStorageSaveData ofd_packets/00156491 [09:38:59]File name is /storage/ofd_packets/00156491 [09:38:59]Write 301 bytes [09:38:59]NVStorageSaveData done [09:38:59]OFDSenderStorePacket done [09:38:59]KKMCreateOFDPacket done [09:38:59]NVStorageSaveData kkm_last_timestamp [09:38:59]File name is /storage/kkm_last_timestamp [09:38:59]Write 4 bytes [09:38:59]NVStorageSaveData done [09:38:59]ExternCall_PrintAddStr [09:38:59]wPrintStart [09:38:59]Write to MH i2c: 01 00 00 DA 3C 16 [09:38:59]Write i2c OK [09:38:59]MH_I2C_Read... [09:38:59]Read from MH i2c: 01 [09:38:59]MH_I2C_Read... [09:38:59]Read from MH i2c: 01 07 00 [09:38:59]MH_I2C_Read... [09:38:59]Read from MH i2c: 01 07 00 DA 3C 00 00 00 00 00 FF 0F 2B [09:38:59]RasterBufferAndPrint [09:38:59]line Счет N : (1)99304 [09:38:59]line ИНН: 02508201610067 [09:38:59]line Контрольно-Кассовый Чек [09:38:59]line ПРОДАЖА [09:38:59]line ТРК (МРК, ГНК) : 31 [09:38:59]line Товар: 2710124130 [09:38:59]line Аи-92-К-5 [09:38:59]line 7.480 * 66.90 [09:38:59]line = 500.41 [09:38:59]line НДС 12% НСП 1% [09:38:59]line > о реализуемом товаре [09:38:59]line ОКРУГЛЕНИЕ: -0.41 [09:38:59]line ИТОГО: 500.00 [09:38:59]line Внесено: 500.00 [09:38:59]line СДАЧА: 0.00 [09:38:59]line НСП 1% : 4.43 [09:38:59]line НДС 12% : 53.14 [09:38:59]line Наличными: 500.00 [09:38:59]line Безнал.: 0.00 [09:38:59]line Место: АЗС № 143 "Партнер Нефть" [09:38:59]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [09:38:59]line СНО: Общий режим [09:38:59]line Чек 42 27.10.2024 09:39 [09:38:59]line Смена: 537 ФФД: 1.0 [09:38:59]line ЗНМ: 0300000096 [09:38:59]line РНМ: 0000000000091693 [09:38:59]line Версия ККМ: 001 [09:38:59]line ФМ: 0000000000871792 [09:38:59]line ФД: 156491 [09:38:59]line ФПД: 111038868780407 [09:38:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T093902&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156491&fm=111038868780407&tin=02508201610067®Number=0000000000091693&sum=50000 [09:38:59]OFD Sender: Processing packet 156491 [packets to send 31, broken 30] [09:38:59]ProducePacketName [09:38:59]name=ofd_packets/00156491 [09:38:59]OFD Sender: To server: pG, [09:38:59]CommunicateWithHost lk.salyk.kg:30040 [09:38:59]ConnectInit lk.salyk.kg [09:38:59]written 0, free lines is 4095 [09:38:59]Connected sock=10 [09:38:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 12 3E 07 01 99 63 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 36 0A 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4B 63 02 00 35 04 06 00 64 FD 40 54 75 77 73 F5 64 C9 AA 26 5C 33 [09:38:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 84 19 47 00 A4 B5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4B 63 02 00 F4 03 04 00 A6 AF 1D 67 B6 04 01 00 00 95 91 AA 72 43 DC 73 FE [09:38:59]CommunicateWithHost err = 0 [09:38:59]CheckOFDResponse [09:38:59]1017 (14) - 77093643461234 [09:38:59]1041 (16) - 0000000000871792 [09:38:59]1040 (4) - 156491 [09:38:59]1012 (4) - 27.10.2024 03:12 [09:38:59]1206 (1) - 0 [09:38:59]OFD Sender: Remove packet 156491 [09:38:59]ProducePacketName [09:38:59]name=ofd_packets/00156491 [09:38:59]NVStorageDeleteData [09:39:00]Write to MH i2c: 01 00 00 05 3D 42 [09:39:00]Write i2c OK [09:39:00]MH_I2C_Read... [09:39:00]Read from MH i2c: 01 [09:39:00]MH_I2C_Read... [09:39:00]Read from MH i2c: 01 07 00 [09:39:00]MH_I2C_Read... [09:39:00]Read from MH i2c: 01 07 00 05 3D 00 00 00 00 00 DF 0C 34 [09:39:00]RasterBufferAndPrint [09:39:00]line [09:39:00]line [09:39:00]line [09:39:00]line [09:39:00]line [09:39:00]written 0, free lines is 3304 [09:39:00]process_action close_receipt done [09:39:00]requested_data is exist [09:39:00]produce_requested_data [09:39:00]requested_item fm.sn is exist - process it [09:39:00]wFMCommunicate request_size=4 [09:39:00]MH_SAM_APDU [09:39:00]CAPDU: 80 11 00 00 [09:39:00]Write to MH i2c: E2 08 00 0C 3D 80 11 00 00 00 00 00 00 C3 [09:39:00]Write i2c OK [09:39:00]MH_I2C_Read... [09:39:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:00]Read from MH i2c: E2 [09:39:00]MH_I2C_Read... [09:39:00]Read from MH i2c: E2 17 00 [09:39:00]MH_I2C_Read... [09:39:00]Read from MH i2c: E2 17 00 0C 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 18 [09:39:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:39:00]wFMCommunicate OK [09:39:00]requested_item fd.num is exist - process it [09:39:00]SAM_PROTO_GetFieldsCounters [09:39:00]wFMCommunicate request_size=4 [09:39:00]MH_SAM_APDU [09:39:00]CAPDU: 80 13 00 00 [09:39:00]Write to MH i2c: E2 08 00 0D 3D 80 13 00 00 00 00 00 00 C6 [09:39:00]Write i2c OK [09:39:00]MH_I2C_Read... [09:39:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:39:00]Read from MH i2c: E2 [09:39:00]MH_I2C_Read... [09:39:00]Read from MH i2c: E2 62 00 [09:39:00]MH_I2C_Read... [09:39:00]Read from MH i2c: E2 62 00 0D 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 4B 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 35 [09:39:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 4B 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:39:00]wFMCommunicate OK [09:39:00]SAM_PROTO_GetFieldsCounters done [09:39:00]requested_item shift.num is exist - process it [09:39:00]requested_item shift.opened is exist - process it [09:39:00]req_shift_opened [09:39:00]FM_GetShiftState [09:39:00]SAM_PROTO_GetShiftState [09:39:00]wFMCommunicate request_size=4 [09:39:00]MH_SAM_APDU [09:39:00]CAPDU: 80 13 01 00 [09:39:00]Write to MH i2c: E2 08 00 0E 3D 80 13 01 00 00 00 00 00 C8 [09:39:00]Write i2c OK [09:39:00]MH_I2C_Read... [09:39:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:00]Read from MH i2c: E2 [09:39:00]MH_I2C_Read... [09:39:00]Read from MH i2c: E2 0E 00 [09:39:00]MH_I2C_Read... [09:39:00]Read from MH i2c: E2 0E 00 0E 3D 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 95 [09:39:00]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [09:39:00]wFMCommunicate OK [09:39:00]SAM_PROTO_GetShiftState done [09:39:00]FM_GetShiftState done [09:39:00]req_shift_opened done [09:39:00]requested_item shift.open_date is exist - process it [09:39:00]req_shift_open_date [09:39:00]req_shift_open_date done [09:39:00]produce_requested_data done [09:39:00]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156491,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [09:39:00]process_action_free close_receipt [09:39:00]json_value_free [09:39:00]json_value_free done [09:39:00]process_json_proto returns [09:39:00]Send response to host [09:39:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156491,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [09:39:00]free response buf [09:39:00]execute_script done [09:39:00]execute_script returns [09:39:00]free content buf [09:39:00]Sock 9.Close socket [09:39:00]Sock 9.Thread stoped [09:39:00]OFD Sender: No OFD packet to send [09:39:05]OFD Sender: No OFD packet to send [09:39:10]OFD Sender: No OFD packet to send [09:39:15]OFD Sender: No OFD packet to send [09:39:20]OFD Sender: No OFD packet to send [09:39:25]OFD Sender: No OFD packet to send [09:39:30]OFD Sender: No OFD packet to send [09:39:35]OFD Sender: No OFD packet to send [09:39:40]OFD Sender: No OFD packet to send [09:39:45]OFD Sender: No OFD packet to send [09:39:50]OFD Sender: No OFD packet to send [09:39:55]OFD Sender: No OFD packet to send [09:40:00]OFD Sender: No OFD packet to send [09:40:05]OFD Sender: No OFD packet to send [09:40:10]OFD Sender: No OFD packet to send [09:40:15]OFD Sender: No OFD packet to send [09:40:20]OFD Sender: No OFD packet to send [09:40:25]OFD Sender: No OFD packet to send [09:40:30]OFD Sender: No OFD packet to send [09:40:35]OFD Sender: No OFD packet to send [09:40:40]OFD Sender: No OFD packet to send [09:40:45]OFD Sender: No OFD packet to send [09:40:50]OFD Sender: No OFD packet to send [09:40:55]OFD Sender: No OFD packet to send [09:41:00]OFD Sender: No OFD packet to send [09:41:05]OFD Sender: No OFD packet to send [09:41:10]OFD Sender: No OFD packet to send [09:41:12]ConnectInit Can't connect to host [09:41:15]OFD Sender: No OFD packet to send [09:41:20]OFD Sender: No OFD packet to send [09:41:25]OFD Sender: No OFD packet to send [09:41:30]OFD Sender: No OFD packet to send [09:41:35]OFD Sender: No OFD packet to send [09:41:40]OFD Sender: No OFD packet to send [09:41:45]OFD Sender: No OFD packet to send [09:41:50]OFD Sender: No OFD packet to send [09:41:55]OFD Sender: No OFD packet to send [09:42:00]OFD Sender: No OFD packet to send [09:42:05]OFD Sender: No OFD packet to send [09:42:10]OFD Sender: No OFD packet to send [09:42:15]OFD Sender: No OFD packet to send [09:42:20]OFD Sender: No OFD packet to send [09:42:25]OFD Sender: No OFD packet to send [09:42:30]OFD Sender: No OFD packet to send [09:42:35]OFD Sender: No OFD packet to send [09:42:40]OFD Sender: No OFD packet to send [09:42:45]OFD Sender: No OFD packet to send [09:42:50]OFD Sender: No OFD packet to send [09:42:55]OFD Sender: No OFD packet to send [09:43:00]OFD Sender: No OFD packet to send [09:43:05]OFD Sender: No OFD packet to send [09:43:10]OFD Sender: No OFD packet to send [09:43:15]OFD Sender: No OFD packet to send [09:43:20]OFD Sender: No OFD packet to send [09:43:25]OFD Sender: No OFD packet to send [09:43:30]OFD Sender: No OFD packet to send [09:43:32]accept exits with 8 [09:43:32]New connection [09:43:32]New thread 3066834276 created [09:43:32]Thread 3066977636 joined [09:43:32]Waiting for new connection... [09:43:32] Sock 8.Parse request [09:43:32]Sock 8.Check first char [09:43:32]Sock 8.First char is OK [09:43:32]request: POST /json_proto HTTP/1.0 [09:43:32]Method: POST [09:43:32]URL: /json_proto [09:43:32]Method is POST - this is cgi request [09:43:32]url: /json_proto [09:43:32]query_string will be loaded in cgi processing [09:43:32]execute_cgi json_proto POST (null) [09:43:32]execute_cgi path=json_proto method=POST [09:43:32]POST find Content-Length [09:43:32]Host: 172.17.63.3:8080 [09:43:32]Content-Length: 676 [09:43:32]Content-Type: application/json [09:43:32] [09:43:32]POST finish read [09:43:32]Found Content-Length = 676 [09:43:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99305", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:43:32]execute_script... [09:43: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)99305", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:43:32]POST & json_proto [09:43:32]process_json_proto [09:43:32]json parsed OK: [09:43:32]protocol is kg_v1.0 [09:43:32]action value=close_receipt [09:43:32]process_action close_receipt [09:43:32]cmd_close_receipt [09:43:32]MH_GetDate [09:43:32]Write to MH i2c: F0 00 00 0F 3D 3B [09:43:32]Write i2c OK [09:43:32]MH_I2C_Read... [09:43:32]Read from MH i2c: F0 [09:43:32]MH_I2C_Read... [09:43:32]Read from MH i2c: F0 09 00 [09:43:32]MH_I2C_Read... [09:43:32]Read from MH i2c: F0 09 00 0F 3D 00 49 0B 1E 67 50 D1 6C 64 0E [09:43:32]GetLastDocTimeStamp 1730021942 [09:43:32]current date 1730022217 [09:43:32]FM_GetShiftState [09:43:32]SAM_PROTO_GetShiftState [09:43:32]wFMCommunicate request_size=4 [09:43:32]MH_SAM_APDU [09:43:32]CAPDU: 80 13 01 00 [09:43:32]Write to MH i2c: E2 08 00 10 3D 80 13 01 00 00 00 00 00 CA [09:43:32]Write i2c OK [09:43:32]MH_I2C_Read... [09:43:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:32]Read from MH i2c: E2 [09:43:32]MH_I2C_Read... [09:43:32]Read from MH i2c: E2 0E 00 [09:43:32]MH_I2C_Read... [09:43:32]Read from MH i2c: E2 0E 00 10 3D 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 97 [09:43:32]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [09:43:32]wFMCommunicate OK [09:43:32]SAM_PROTO_GetShiftState done [09:43:32]FM_GetShiftState done [09:43:32]opened in 1729989044 [09:43:32]opened+sec_in_day 1730075444 [09:43:32]quantity*price = 50041 [09:43:32]sum+1 = 50042 [09:43:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 43 27.10.2024 09:43 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156492 ФПД: 149128137041682 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T094337&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156492&fm=149128137041682&tin=02508201610067®Number=0000000000091693&sum=50000 [09:43:33]StoreToDocumentArchive [09:43:33]shift 537 fd 156492 [09:43:33]save to /storage/0537/doc_00156492 [09:43:33]save last doc name /storage/0537/doc_00156492 to /storage/kkm_last_doc_name [09:43:33]save OK [09:43:33]Clear old archive folders... [09:43:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:43:33]tlvbuf is 01763070 [09:43:33]SAM_PROTO_ClearQueue [09:43:33]wFMCommunicate request_size=4 [09:43:33]MH_SAM_APDU [09:43:33]CAPDU: 80 09 00 00 [09:43:33]Write to MH i2c: E2 08 00 1D 3D 80 09 00 00 00 00 00 00 CC [09:43:33]Write i2c OK [09:43:33]MH_I2C_Read... [09:43:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:43:33]Read from MH i2c: E2 [09:43:33]MH_I2C_Read... [09:43:33]Read from MH i2c: E2 03 00 [09:43:33]MH_I2C_Read... [09:43:33]Read from MH i2c: E2 03 00 1D 3D 00 90 00 CE [09:43:33]RAPDU: 90 00 [09:43:33]wFMCommunicate OK [09:43:33]SAM_PROTO_ClearQueue done [09:43:33]KKMCreateOFDPacket [09:43:33]OFDProtocolAddRootSTLVToBuf [09:43:33]FM_MakeSignedData [09:43:33]FM_MakeSignedData [09:43:33]SAM_PROTO_SignData [09:43:33]wFMCommunicate request_size=4 [09:43:33]MH_SAM_APDU [09:43:33]CAPDU: 80 0D 01 02 [09:43:33]Write to MH i2c: E2 08 00 1E 3D 80 0D 01 02 00 00 00 00 D4 [09:43:33]Write i2c OK [09:43:33]MH_I2C_Read... [09:43:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:43:33]Read from MH i2c: E2 [09:43:33]MH_I2C_Read... [09:43:33]Read from MH i2c: E2 03 00 [09:43:33]MH_I2C_Read... [09:43:33]Read from MH i2c: E2 03 00 1E 3D 00 90 00 CF [09:43:33]RAPDU: 90 00 [09:43:33]wFMCommunicate OK [09:43:33]wFMCommunicate request_size=255 [09:43:33]MH_SAM_APDU [09:43: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 49 0B 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4C 63 02 00 35 04 06 00 87 [09:43:33]Write to MH i2c: E2 02 01 1F 3D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 49 0B 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4C 63 02 00 35 04 06 00 87 00 00 BF [09:43:33]Write i2c OK [09:43:33]MH_I2C_Read... [09:43:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:33]Read from MH i2c: E2 [09:43:33]MH_I2C_Read... [09:43:33]Read from MH i2c: E2 03 00 [09:43:33]MH_I2C_Read... [09:43:33]Read from MH i2c: E2 03 00 1F 3D 00 90 00 D0 [09:43:33]RAPDU: 90 00 [09:43:33]wFMCommunicate OK [09:43:33]wFMCommunicate request_size=10 [09:43:33]MH_SAM_APDU [09:43:33]CAPDU: 80 0D 02 02 05 A1 99 A2 67 12 [09:43:33]Write to MH i2c: E2 0D 00 20 3D 80 0D 02 02 05 00 A1 99 A2 67 12 00 00 36 [09:43:33]Write i2c OK [09:43:33]MH_I2C_Read... [09:43:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:33]Read from MH i2c: E2 [09:43:33]MH_I2C_Read... [09:43:33]Read from MH i2c: E2 03 00 [09:43:33]MH_I2C_Read... [09:43:33]Read from MH i2c: E2 03 00 20 3D 00 90 00 D1 [09:43:33]RAPDU: 90 00 [09:43:33]wFMCommunicate OK [09:43:33]wFMCommunicate request_size=4 [09:43:33]MH_SAM_APDU [09:43:33]CAPDU: 80 0D 03 02 [09:43:33]Write to MH i2c: E2 08 00 21 3D 80 0D 03 02 00 00 00 00 D9 [09:43:33]Write i2c OK [09:43:33]MH_I2C_Read... [09:43:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:43:33]Read from MH i2c: E2 [09:43:33]MH_I2C_Read... [09:43:33]Read from MH i2c: E2 0B 00 [09:43:33]MH_I2C_Read... [09:43:33]Read from MH i2c: E2 0B 00 21 3D 00 90 8F E6 DA 42 71 FF E5 90 00 50 [09:43:33]RAPDU: 90 8F E6 DA 42 71 FF E5 90 00 [09:43:33]wFMCommunicate OK [09:43:33]SAM_PROTO_SignData done [09:43:33]FM_MakeSignedData done [09:43:33]CreateOFDProtocolMessage [09:43:33]wFMCommunicate request_size=4 [09:43:33]MH_SAM_APDU [09:43:33]CAPDU: 80 11 00 00 [09:43:33]Write to MH i2c: E2 08 00 22 3D 80 11 00 00 00 00 00 00 D9 [09:43:33]Write i2c OK [09:43:33]MH_I2C_Read... [09:43:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:33]Read from MH i2c: E2 [09:43:33]MH_I2C_Read... [09:43:33]Read from MH i2c: E2 17 00 [09:43:33]MH_I2C_Read... [09:43:33]Read from MH i2c: E2 17 00 22 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 2E [09:43:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:43:33]wFMCommunicate OK [09:43:33]CreateOFDProtocolMessage done [09:43:33]OFDSenderStorePacket 156492 [09:43:33]StoreOFDPacket docnum=156492 [09:43:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 C5 10 07 01 DA 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 49 0B 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4C 63 02 00 35 04 06 00 87 A1 99 A2 67 12 90 8F E6 DA 42 71 FF E5 [09:43:33]CheckFolder [09:43:33]dirname=/storage/ofd_packets [09:43:33]CheckFolder done [09:43:33]ProducePacketName [09:43:33]name=ofd_packets/00156492 [09:43:33]NVStorageSaveData ofd_packets/00156492 [09:43:33]File name is /storage/ofd_packets/00156492 [09:43:33]Write 301 bytes [09:43:33]NVStorageSaveData done [09:43:33]OFDSenderStorePacket done [09:43:33]KKMCreateOFDPacket done [09:43:33]NVStorageSaveData kkm_last_timestamp [09:43:33]File name is /storage/kkm_last_timestamp [09:43:33]Write 4 bytes [09:43:33]NVStorageSaveData done [09:43:33]ExternCall_PrintAddStr [09:43:33]wPrintStart [09:43:33]Write to MH i2c: 01 00 00 23 3D 60 [09:43:33]Write i2c OK [09:43:33]MH_I2C_Read... [09:43:33]Read from MH i2c: 01 [09:43:33]MH_I2C_Read... [09:43:33]Read from MH i2c: 01 07 00 [09:43:33]MH_I2C_Read... [09:43:33]Read from MH i2c: 01 07 00 23 3D 00 00 00 00 00 FF 0F 75 [09:43:33]RasterBufferAndPrint [09:43:33]line Счет N : (1)99305 [09:43:33]line ИНН: 02508201610067 [09:43:33]line Контрольно-Кассовый Чек [09:43:33]line ПРОДАЖА [09:43:33]line ТРК (МРК, ГНК) : 21 [09:43:33]line Товар: 2710124130 [09:43:33]line Аи-92-К-5 [09:43:33]line 7.480 * 66.90 [09:43:33]line = 500.41 [09:43:33]line НДС 12% НСП 1% [09:43:33]line > о реализуемом товаре [09:43:33]line ОКРУГЛЕНИЕ: -0.41 [09:43:33]line ИТОГО: 500.00 [09:43:33]line Внесено: 500.00 [09:43:33]line СДАЧА: 0.00 [09:43:33]line НСП 1% : 4.43 [09:43:33]line НДС 12% : 53.14 [09:43:33]line Наличными: 500.00 [09:43:33]line Безнал.: 0.00 [09:43:33]line Место: АЗС № 143 "Партнер Нефть" [09:43:33]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [09:43:33]line СНО: Общий режим [09:43:33]line Чек 43 27.10.2024 09:43 [09:43:33]line Смена: 537 ФФД: 1.0 [09:43:33]line ЗНМ: 0300000096 [09:43:33]line РНМ: 0000000000091693 [09:43:33]line Версия ККМ: 001 [09:43:33]line ФМ: 0000000000871792 [09:43:33]line ФД: 156492 [09:43:33]line ФПД: 149128137041682 [09:43:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T094337&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156492&fm=149128137041682&tin=02508201610067®Number=0000000000091693&sum=50000 [09:43:34]OFD Sender: Processing packet 156492 [packets to send 31, broken 30] [09:43:34]ProducePacketName [09:43:34]name=ofd_packets/00156492 [09:43:34]OFD Sender: To server: pG, [09:43:34]CommunicateWithHost lk.salyk.kg:30040 [09:43:34]ConnectInit lk.salyk.kg [09:43:34]written 0, free lines is 4095 [09:43:34]Connected sock=10 [09:43:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 C5 10 07 01 DA 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 49 0B 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4C 63 02 00 35 04 06 00 87 A1 99 A2 67 12 90 8F E6 DA 42 71 FF E5 [09:43:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 81 AD 47 00 4B 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 31 37 39 32 10 04 04 00 4C 63 02 00 F4 03 04 00 B9 B0 1D 67 B6 04 01 00 00 D1 69 7D 21 DD 2A B2 12 [09:43:34]CommunicateWithHost err = 0 [09:43:34]CheckOFDResponse [09:43:34]1017 (14) - 77093643461234 [09:43:34]1041 (16) - 0000000000871792 [09:43:34]1040 (4) - 156492 [09:43:34]1012 (4) - 27.10.2024 03:17 [09:43:34]1206 (1) - 0 [09:43:34]OFD Sender: Remove packet 156492 [09:43:34]ProducePacketName [09:43:34]name=ofd_packets/00156492 [09:43:34]NVStorageDeleteData [09:43:34]Write to MH i2c: 01 00 00 4E 3D 8B [09:43:34]Write i2c OK [09:43:34]MH_I2C_Read... [09:43:34]Read from MH i2c: 01 [09:43:34]MH_I2C_Read... [09:43:34]Read from MH i2c: 01 07 00 [09:43:34]MH_I2C_Read... [09:43:34]Read from MH i2c: 01 07 00 4E 3D 00 00 00 00 00 E0 0C 7E [09:43:34]RasterBufferAndPrint [09:43:34]line [09:43:34]line [09:43:34]line [09:43:34]line [09:43:34]line [09:43:34]written 0, free lines is 3302 [09:43:34]process_action close_receipt done [09:43:34]requested_data is exist [09:43:34]produce_requested_data [09:43:34]requested_item fm.sn is exist - process it [09:43:34]wFMCommunicate request_size=4 [09:43:34]MH_SAM_APDU [09:43:34]CAPDU: 80 11 00 00 [09:43:34]Write to MH i2c: E2 08 00 55 3D 80 11 00 00 00 00 00 00 0C [09:43:34]Write i2c OK [09:43:34]MH_I2C_Read... [09:43:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:34]Read from MH i2c: E2 [09:43:34]MH_I2C_Read... [09:43:34]Read from MH i2c: E2 17 00 [09:43:34]MH_I2C_Read... [09:43:34]Read from MH i2c: E2 17 00 55 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 61 [09:43:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:43:34]wFMCommunicate OK [09:43:34]requested_item fd.num is exist - process it [09:43:34]SAM_PROTO_GetFieldsCounters [09:43:34]wFMCommunicate request_size=4 [09:43:34]MH_SAM_APDU [09:43:34]CAPDU: 80 13 00 00 [09:43:34]Write to MH i2c: E2 08 00 56 3D 80 13 00 00 00 00 00 00 0F [09:43:34]Write i2c OK [09:43:34]MH_I2C_Read... [09:43:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:43:34]Read from MH i2c: E2 [09:43:34]MH_I2C_Read... [09:43:34]Read from MH i2c: E2 62 00 [09:43:34]MH_I2C_Read... [09:43:34]Read from MH i2c: E2 62 00 56 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 4C 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 82 [09:43:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 4C 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:43:34]wFMCommunicate OK [09:43:34]SAM_PROTO_GetFieldsCounters done [09:43:34]requested_item shift.num is exist - process it [09:43:34]requested_item shift.opened is exist - process it [09:43:34]req_shift_opened [09:43:34]FM_GetShiftState [09:43:34]SAM_PROTO_GetShiftState [09:43:34]wFMCommunicate request_size=4 [09:43:34]MH_SAM_APDU [09:43:34]CAPDU: 80 13 01 00 [09:43:34]Write to MH i2c: E2 08 00 57 3D 80 13 01 00 00 00 00 00 11 [09:43:34]Write i2c OK [09:43:34]MH_I2C_Read... [09:43:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:34]Read from MH i2c: E2 [09:43:34]MH_I2C_Read... [09:43:34]Read from MH i2c: E2 0E 00 [09:43:34]MH_I2C_Read... [09:43:34]Read from MH i2c: E2 0E 00 57 3D 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 DE [09:43:34]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [09:43:34]wFMCommunicate OK [09:43:34]SAM_PROTO_GetShiftState done [09:43:34]FM_GetShiftState done [09:43:34]req_shift_opened done [09:43:34]requested_item shift.open_date is exist - process it [09:43:34]req_shift_open_date [09:43:34]req_shift_open_date done [09:43:34]produce_requested_data done [09:43:34]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156492,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [09:43:34]process_action_free close_receipt [09:43:34]json_value_free [09:43:34]json_value_free done [09:43:34]process_json_proto returns [09:43:34]Send response to host [09:43:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156492,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [09:43:34]free response buf [09:43:34]execute_script done [09:43:34]execute_script returns [09:43:34]free content buf [09:43:34]Sock 8.Close socket [09:43:34]Sock 8.Thread stoped [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:20]OFD Sender: No OFD packet to send [09:45:25]OFD Sender: No OFD packet to send [09:45:30]OFD Sender: No OFD packet to send [09:45:35]OFD Sender: No OFD packet to send [09:45:39]accept exits with 9 [09:45:39]New connection [09:45:39]New thread 3066977636 created [09:45:39]Thread 3066834276 joined [09:45:39]Waiting for new connection... [09:45:39] Sock 9.Parse request [09:45:39]Sock 9.Check first char [09:45:39]Sock 9.First char is OK [09:45:39]request: POST /json_proto HTTP/1.0 [09:45:39]Method: POST [09:45:39]URL: /json_proto [09:45:39]Method is POST - this is cgi request [09:45:39]url: /json_proto [09:45:39]query_string will be loaded in cgi processing [09:45:39]execute_cgi json_proto POST (null) [09:45:39]execute_cgi path=json_proto method=POST [09:45:39]POST find Content-Length [09:45:39]Host: 172.17.63.3:8080 [09:45:39]Content-Length: 677 [09:45:39]Content-Type: application/json [09:45:39] [09:45:39]POST finish read [09:45:39]Found Content-Length = 677 [09:45:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99306", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "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" ] } } [09:45:39]execute_script... [09:45: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)99306", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "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" ] } } [09:45:39]POST & json_proto [09:45:39]process_json_proto [09:45:39]json parsed OK: [09:45:39]protocol is kg_v1.0 [09:45:39]action value=close_receipt [09:45:39]process_action close_receipt [09:45:39]cmd_close_receipt [09:45:39]MH_GetDate [09:45:39]Write to MH i2c: F0 00 00 58 3D 84 [09:45:39]Write i2c OK [09:45:39]MH_I2C_Read... [09:45:39]Read from MH i2c: F0 [09:45:39]MH_I2C_Read... [09:45:39]Read from MH i2c: F0 09 00 [09:45:39]MH_I2C_Read... [09:45:39]Read from MH i2c: F0 09 00 58 3D 00 C8 0B 1E 67 50 D1 6C 64 D6 [09:45:39]GetLastDocTimeStamp 1730022217 [09:45:39]current date 1730022344 [09:45:39]FM_GetShiftState [09:45:39]SAM_PROTO_GetShiftState [09:45:39]wFMCommunicate request_size=4 [09:45:39]MH_SAM_APDU [09:45:39]CAPDU: 80 13 01 00 [09:45:39]Write to MH i2c: E2 08 00 59 3D 80 13 01 00 00 00 00 00 13 [09:45:39]Write i2c OK [09:45:39]MH_I2C_Read... [09:45:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:45:39]Read from MH i2c: E2 [09:45:39]MH_I2C_Read... [09:45:39]Read from MH i2c: E2 0E 00 [09:45:39]MH_I2C_Read... [09:45:39]Read from MH i2c: E2 0E 00 59 3D 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 E0 [09:45:39]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [09:45:39]wFMCommunicate OK [09:45:39]SAM_PROTO_GetShiftState done [09:45:39]FM_GetShiftState done [09:45:39]opened in 1729989044 [09:45:39]opened+sec_in_day 1730075444 [09:45:39]quantity*price = 80012 [09:45:39]sum+1 = 80013 [09:45: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 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 44 27.10.2024 09:45 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156493 ФПД: 68314995732765 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T094544&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156493&fm=68314995732765&tin=02508201610067®Number=0000000000091693&sum=80000 [09:45:40]StoreToDocumentArchive [09:45:40]shift 537 fd 156493 [09:45:40]save to /storage/0537/doc_00156493 [09:45:40]save last doc name /storage/0537/doc_00156493 to /storage/kkm_last_doc_name [09:45:40]save OK [09:45:40]Clear old archive folders... [09:45:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:45:40]tlvbuf is 017ADE80 [09:45:40]SAM_PROTO_ClearQueue [09:45:40]wFMCommunicate request_size=4 [09:45:40]MH_SAM_APDU [09:45:40]CAPDU: 80 09 00 00 [09:45:40]Write to MH i2c: E2 08 00 66 3D 80 09 00 00 00 00 00 00 15 [09:45:40]Write i2c OK [09:45:40]MH_I2C_Read... [09:45:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:45:40]Read from MH i2c: E2 [09:45:40]MH_I2C_Read... [09:45:40]Read from MH i2c: E2 03 00 [09:45:40]MH_I2C_Read... [09:45:40]Read from MH i2c: E2 03 00 66 3D 00 90 00 17 [09:45:40]RAPDU: 90 00 [09:45:40]wFMCommunicate OK [09:45:40]SAM_PROTO_ClearQueue done [09:45:40]KKMCreateOFDPacket [09:45:40]OFDProtocolAddRootSTLVToBuf [09:45:40]FM_MakeSignedData [09:45:40]FM_MakeSignedData [09:45:40]SAM_PROTO_SignData [09:45:40]wFMCommunicate request_size=4 [09:45:40]MH_SAM_APDU [09:45:40]CAPDU: 80 0D 01 02 [09:45:40]Write to MH i2c: E2 08 00 67 3D 80 0D 01 02 00 00 00 00 1D [09:45:40]Write i2c OK [09:45:40]MH_I2C_Read... [09:45:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:45:40]Read from MH i2c: E2 [09:45:40]MH_I2C_Read... [09:45:40]Read from MH i2c: E2 03 00 [09:45:40]MH_I2C_Read... [09:45:40]Read from MH i2c: E2 03 00 67 3D 00 90 00 18 [09:45:40]RAPDU: 90 00 [09:45:40]wFMCommunicate OK [09:45:40]wFMCommunicate request_size=255 [09:45:40]MH_SAM_APDU [09:45: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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 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 2C 00 00 00 F4 03 04 00 C8 0B 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4D 63 02 00 35 04 06 00 3E [09:45:40]Write to MH i2c: E2 02 01 68 3D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 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 2C 00 00 00 F4 03 04 00 C8 0B 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4D 63 02 00 35 04 06 00 3E 00 00 2C [09:45:40]Write i2c OK [09:45:40]MH_I2C_Read... [09:45:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:45:41]Read from MH i2c: E2 [09:45:41]MH_I2C_Read... [09:45:41]Read from MH i2c: E2 03 00 [09:45:41]MH_I2C_Read... [09:45:41]Read from MH i2c: E2 03 00 68 3D 00 90 00 19 [09:45:41]RAPDU: 90 00 [09:45:41]wFMCommunicate OK [09:45:41]wFMCommunicate request_size=10 [09:45:41]MH_SAM_APDU [09:45:41]CAPDU: 80 0D 02 02 05 21 D3 0D B1 1D [09:45:41]Write to MH i2c: E2 0D 00 69 3D 80 0D 02 02 05 00 21 D3 0D B1 1D 00 00 F9 [09:45:41]Write i2c OK [09:45:41]MH_I2C_Read... [09:45:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:45:41]Read from MH i2c: E2 [09:45:41]MH_I2C_Read... [09:45:41]Read from MH i2c: E2 03 00 [09:45:41]MH_I2C_Read... [09:45:41]Read from MH i2c: E2 03 00 69 3D 00 90 00 1A [09:45:41]RAPDU: 90 00 [09:45:41]wFMCommunicate OK [09:45:41]wFMCommunicate request_size=4 [09:45:41]MH_SAM_APDU [09:45:41]CAPDU: 80 0D 03 02 [09:45:41]Write to MH i2c: E2 08 00 6A 3D 80 0D 03 02 00 00 00 00 22 [09:45:41]Write i2c OK [09:45:41]MH_I2C_Read... [09:45:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:45:41]Read from MH i2c: E2 [09:45:41]MH_I2C_Read... [09:45:41]Read from MH i2c: E2 0B 00 [09:45:41]MH_I2C_Read... [09:45:41]Read from MH i2c: E2 0B 00 6A 3D 00 A4 69 4C FD 62 85 21 96 90 00 17 [09:45:41]RAPDU: A4 69 4C FD 62 85 21 96 90 00 [09:45:41]wFMCommunicate OK [09:45:41]SAM_PROTO_SignData done [09:45:41]FM_MakeSignedData done [09:45:41]CreateOFDProtocolMessage [09:45:41]wFMCommunicate request_size=4 [09:45:41]MH_SAM_APDU [09:45:41]CAPDU: 80 11 00 00 [09:45:41]Write to MH i2c: E2 08 00 6B 3D 80 11 00 00 00 00 00 00 22 [09:45:41]Write i2c OK [09:45:41]MH_I2C_Read... [09:45:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:45:41]Read from MH i2c: E2 [09:45:41]MH_I2C_Read... [09:45:41]Read from MH i2c: E2 17 00 [09:45:41]MH_I2C_Read... [09:45:41]Read from MH i2c: E2 17 00 6B 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 77 [09:45:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:45:41]wFMCommunicate OK [09:45:41]CreateOFDProtocolMessage done [09:45:41]OFDSenderStorePacket 156493 [09:45:41]StoreOFDPacket docnum=156493 [09:45:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 6F BF 07 01 10 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 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 2C 00 00 00 F4 03 04 00 C8 0B 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4D 63 02 00 35 04 06 00 3E 21 D3 0D B1 1D A4 69 4C FD 62 85 21 96 [09:45:41]CheckFolder [09:45:41]dirname=/storage/ofd_packets [09:45:41]CheckFolder done [09:45:41]ProducePacketName [09:45:41]name=ofd_packets/00156493 [09:45:41]NVStorageSaveData ofd_packets/00156493 [09:45:41]File name is /storage/ofd_packets/00156493 [09:45:41]Write 301 bytes [09:45:41]NVStorageSaveData done [09:45:41]OFDSenderStorePacket done [09:45:41]KKMCreateOFDPacket done [09:45:41]NVStorageSaveData kkm_last_timestamp [09:45:41]File name is /storage/kkm_last_timestamp [09:45:41]Write 4 bytes [09:45:41]NVStorageSaveData done [09:45:41]ExternCall_PrintAddStr [09:45:41]wPrintStart [09:45:41]Write to MH i2c: 01 00 00 6C 3D A9 [09:45:41]Write i2c OK [09:45:41]MH_I2C_Read... [09:45:41]Read from MH i2c: 01 [09:45:41]MH_I2C_Read... [09:45:41]Read from MH i2c: 01 07 00 [09:45:41]MH_I2C_Read... [09:45:41]Read from MH i2c: 01 07 00 6C 3D 00 00 00 00 00 FF 0F BE [09:45:41]RasterBufferAndPrint [09:45:41]line Счет N : (1)99306 [09:45:41]line ИНН: 02508201610067 [09:45:41]line Контрольно-Кассовый Чек [09:45:41]line ПРОДАЖА [09:45:41]line ТРК (МРК, ГНК) : 21 [09:45:41]line Товар: 2710124130 [09:45:41]line Аи-92-К-5 [09:45:41]line 11.960 * 66.90 [09:45:41]line = 800.12 [09:45:41]line НДС 12% НСП 1% [09:45:41]line > о реализуемом товаре [09:45:41]line ОКРУГЛЕНИЕ: -0.12 [09:45:41]line ИТОГО: 800.00 [09:45:41]line Внесено: 800.00 [09:45:41]line СДАЧА: 0.00 [09:45:41]line НСП 1% : 7.08 [09:45:41]line НДС 12% : 84.97 [09:45:41]line Наличными: 800.00 [09:45:41]line Безнал.: 0.00 [09:45:41]line Место: АЗС № 143 "Партнер Нефть" [09:45:41]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [09:45:41]line СНО: Общий режим [09:45:41]line Чек 44 27.10.2024 09:45 [09:45:41]line Смена: 537 ФФД: 1.0 [09:45:41]line ЗНМ: 0300000096 [09:45:41]line РНМ: 0000000000091693 [09:45:41]line Версия ККМ: 001 [09:45:41]line ФМ: 0000000000871792 [09:45:41]line ФД: 156493 [09:45:41]line ФПД: 68314995732765 [09:45:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T094544&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156493&fm=68314995732765&tin=02508201610067®Number=0000000000091693&sum=80000 [09:45:41]OFD Sender: Processing packet 156493 [packets to send 31, broken 30] [09:45:41]ProducePacketName [09:45:41]name=ofd_packets/00156493 [09:45:41]OFD Sender: To server: pG, [09:45:41]CommunicateWithHost lk.salyk.kg:30040 [09:45:41]ConnectInit lk.salyk.kg [09:45:41]written 0, free lines is 4095 [09:45:41]Connected sock=10 [09:45:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 6F BF 07 01 10 13 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 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 2C 00 00 00 F4 03 04 00 C8 0B 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4D 63 02 00 35 04 06 00 3E 21 D3 0D B1 1D A4 69 4C FD 62 85 21 96 [09:45:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 01 11 47 00 73 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 31 37 39 32 10 04 04 00 4D 63 02 00 F4 03 04 00 38 B1 1D 67 B6 04 01 00 00 D7 20 EB 17 AD B6 CE 49 [09:45:41]CommunicateWithHost err = 0 [09:45:41]CheckOFDResponse [09:45:41]1017 (14) - 77093643461234 [09:45:41]1041 (16) - 0000000000871792 [09:45:41]1040 (4) - 156493 [09:45:41]1012 (4) - 27.10.2024 03:19 [09:45:41]1206 (1) - 0 [09:45:41]OFD Sender: Remove packet 156493 [09:45:41]ProducePacketName [09:45:41]name=ofd_packets/00156493 [09:45:41]NVStorageDeleteData [09:45:42]Write to MH i2c: 01 00 00 97 3D D4 [09:45:42]Write i2c OK [09:45:42]MH_I2C_Read... [09:45:42]Read from MH i2c: 01 [09:45:42]MH_I2C_Read... [09:45:42]Read from MH i2c: 01 07 00 [09:45:42]MH_I2C_Read... [09:45:42]Read from MH i2c: 01 07 00 97 3D 00 00 00 00 00 D8 0C BF [09:45:42]RasterBufferAndPrint [09:45:42]line [09:45:42]line [09:45:42]line [09:45:42]line [09:45:42]line [09:45:42]written 0, free lines is 3296 [09:45:42]process_action close_receipt done [09:45:42]requested_data is exist [09:45:42]produce_requested_data [09:45:42]requested_item fm.sn is exist - process it [09:45:42]wFMCommunicate request_size=4 [09:45:42]MH_SAM_APDU [09:45:42]CAPDU: 80 11 00 00 [09:45:42]Write to MH i2c: E2 08 00 9E 3D 80 11 00 00 00 00 00 00 55 [09:45:42]Write i2c OK [09:45:42]MH_I2C_Read... [09:45:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:45:42]Read from MH i2c: E2 [09:45:42]MH_I2C_Read... [09:45:42]Read from MH i2c: E2 17 00 [09:45:42]MH_I2C_Read... [09:45:42]Read from MH i2c: E2 17 00 9E 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 AA [09:45:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:45:42]wFMCommunicate OK [09:45:42]requested_item fd.num is exist - process it [09:45:42]SAM_PROTO_GetFieldsCounters [09:45:42]wFMCommunicate request_size=4 [09:45:42]MH_SAM_APDU [09:45:42]CAPDU: 80 13 00 00 [09:45:42]Write to MH i2c: E2 08 00 9F 3D 80 13 00 00 00 00 00 00 58 [09:45:42]Write i2c OK [09:45:42]MH_I2C_Read... [09:45:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:45:42]Read from MH i2c: E2 [09:45:42]MH_I2C_Read... [09:45:42]Read from MH i2c: E2 62 00 [09:45:42]MH_I2C_Read... [09:45:42]Read from MH i2c: E2 62 00 9F 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 4D 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 CF [09:45:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 4D 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:45:42]wFMCommunicate OK [09:45:42]SAM_PROTO_GetFieldsCounters done [09:45:42]requested_item shift.num is exist - process it [09:45:42]requested_item shift.opened is exist - process it [09:45:42]req_shift_opened [09:45:42]FM_GetShiftState [09:45:42]SAM_PROTO_GetShiftState [09:45:42]wFMCommunicate request_size=4 [09:45:42]MH_SAM_APDU [09:45:42]CAPDU: 80 13 01 00 [09:45:42]Write to MH i2c: E2 08 00 A0 3D 80 13 01 00 00 00 00 00 5A [09:45:42]Write i2c OK [09:45:42]MH_I2C_Read... [09:45:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:45:42]Read from MH i2c: E2 [09:45:42]MH_I2C_Read... [09:45:42]Read from MH i2c: E2 0E 00 [09:45:42]MH_I2C_Read... [09:45:42]Read from MH i2c: E2 0E 00 A0 3D 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 27 [09:45:42]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [09:45:42]wFMCommunicate OK [09:45:42]SAM_PROTO_GetShiftState done [09:45:42]FM_GetShiftState done [09:45:42]req_shift_opened done [09:45:42]requested_item shift.open_date is exist - process it [09:45:42]req_shift_open_date [09:45:42]req_shift_open_date done [09:45:42]produce_requested_data done [09:45:42]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156493,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [09:45:42]process_action_free close_receipt [09:45:42]json_value_free [09:45:42]json_value_free done [09:45:42]process_json_proto returns [09:45:42]Send response to host [09:45:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156493,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [09:45:42]free response buf [09:45:42]execute_script done [09:45:42]execute_script returns [09:45:42]free content buf [09:45:42]Sock 9.Close socket [09:45:42]Sock 9.Thread stoped [09:45:42]OFD Sender: No OFD packet to send [09:45:47]OFD Sender: No OFD packet to send [09:45:52]OFD Sender: No OFD packet to send [09:45:57]OFD Sender: No OFD packet to send [09:46:02]OFD Sender: No OFD packet to send [09:46:07]OFD Sender: No OFD packet to send [09:46:12]OFD Sender: No OFD packet to send [09:46:17]OFD Sender: No OFD packet to send [09:46:22]OFD Sender: No OFD packet to send [09:46:27]OFD Sender: No OFD packet to send [09:46:32]OFD Sender: No OFD packet to send [09:46:37]OFD Sender: No OFD packet to send [09:46:42]OFD Sender: No OFD packet to send [09:46:47]OFD Sender: No OFD packet to send [09:46:52]OFD Sender: No OFD packet to send [09:46:57]OFD Sender: No OFD packet to send [09:47:02]OFD Sender: No OFD packet to send [09:47:07]OFD Sender: No OFD packet to send [09:47:12]OFD Sender: No OFD packet to send [09:47:17]OFD Sender: No OFD packet to send [09:47:22]OFD Sender: No OFD packet to send [09:47:27]OFD Sender: No OFD packet to send [09:47:32]OFD Sender: No OFD packet to send [09:47:37]OFD Sender: No OFD packet to send [09:47:42]OFD Sender: No OFD packet to send [09:47:47]OFD Sender: No OFD packet to send [09:47:52]OFD Sender: No OFD packet to send [09:47:57]OFD Sender: No OFD packet to send [09:48:02]OFD Sender: No OFD packet to send [09:48:07]OFD Sender: No OFD packet to send [09:48:12]OFD Sender: No OFD packet to send [09:48:17]OFD Sender: No OFD packet to send [09:48:22]OFD Sender: No OFD packet to send [09:48:27]OFD Sender: No OFD packet to send [09:48:32]OFD Sender: No OFD packet to send [09:48:37]OFD Sender: No OFD packet to send [09:48:42]OFD Sender: No OFD packet to send [09:48:47]OFD Sender: No OFD packet to send [09:48:52]OFD Sender: No OFD packet to send [09:48:57]OFD Sender: No OFD packet to send [09:49:02]OFD Sender: No OFD packet to send [09:49:07]OFD Sender: No OFD packet to send [09:49:12]OFD Sender: No OFD packet to send [09:49:17]OFD Sender: No OFD packet to send [09:49:22]OFD Sender: No OFD packet to send [09:49:27]OFD Sender: No OFD packet to send [09:49:32]OFD Sender: No OFD packet to send [09:49:37]OFD Sender: No OFD packet to send [09:49:42]OFD Sender: No OFD packet to send [09:49:47]OFD Sender: No OFD packet to send [09:49:52]OFD Sender: No OFD packet to send [09:49:57]OFD Sender: No OFD packet to send [09:50:02]OFD Sender: No OFD packet to send [09:50:07]OFD Sender: No OFD packet to send [09:50:12]OFD Sender: No OFD packet to send [09:50:17]OFD Sender: No OFD packet to send [09:50:22]OFD Sender: No OFD packet to send [09:50:27]OFD Sender: No OFD packet to send [09:50:32]OFD Sender: No OFD packet to send [09:50:37]OFD Sender: No OFD packet to send [09:50:42]OFD Sender: No OFD packet to send [09:50:47]OFD Sender: No OFD packet to send [09:50:52]OFD Sender: No OFD packet to send [09:50:57]OFD Sender: No OFD packet to send [09:51:02]OFD Sender: No OFD packet to send [09:51:07]OFD Sender: No OFD packet to send [09:51:12]OFD Sender: No OFD packet to send [09:51:17]OFD Sender: No OFD packet to send [09:51:22]OFD Sender: No OFD packet to send [09:51:27]OFD Sender: No OFD packet to send [09:51:32]OFD Sender: No OFD packet to send [09:51:35]accept exits with 8 [09:51:35]New connection [09:51:35]New thread 3066834276 created [09:51:35]Thread 3066977636 joined [09:51:35]Waiting for new connection... [09:51:35] Sock 8.Parse request [09:51:35]Sock 8.Check first char [09:51:35]Sock 8.First char is OK [09:51:35]request: POST /json_proto HTTP/1.0 [09:51:35]Method: POST [09:51:35]URL: /json_proto [09:51:35]Method is POST - this is cgi request [09:51:35]url: /json_proto [09:51:35]query_string will be loaded in cgi processing [09:51:35]execute_cgi json_proto POST (null) [09:51:35]execute_cgi path=json_proto method=POST [09:51:35]POST find Content-Length [09:51:35]Host: 172.17.63.3:8080 [09:51:35]Content-Length: 678 [09:51:35]Content-Type: application/json [09:51:35] [09:51:35]POST finish read [09:51:35]Found Content-Length = 678 [09:51:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99307", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 18.380, "sum" : 1400.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:51:35]execute_script... [09:51: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)99307", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 18.380, "sum" : 1400.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:51:35]POST & json_proto [09:51:35]process_json_proto [09:51:35]json parsed OK: [09:51:35]protocol is kg_v1.0 [09:51:35]action value=close_receipt [09:51:35]process_action close_receipt [09:51:35]cmd_close_receipt [09:51:35]MH_GetDate [09:51:35]Write to MH i2c: F0 00 00 A1 3D CD [09:51:35]Write i2c OK [09:51:35]MH_I2C_Read... [09:51:35]Read from MH i2c: F0 [09:51:35]MH_I2C_Read... [09:51:35]Read from MH i2c: F0 09 00 [09:51:35]MH_I2C_Read... [09:51:35]Read from MH i2c: F0 09 00 A1 3D 00 2C 0D 1E 67 50 D1 6C 64 85 [09:51:35]GetLastDocTimeStamp 1730022344 [09:51:35]current date 1730022700 [09:51:35]FM_GetShiftState [09:51:35]SAM_PROTO_GetShiftState [09:51:35]wFMCommunicate request_size=4 [09:51:35]MH_SAM_APDU [09:51:35]CAPDU: 80 13 01 00 [09:51:35]Write to MH i2c: E2 08 00 A2 3D 80 13 01 00 00 00 00 00 5C [09:51:35]Write i2c OK [09:51:35]MH_I2C_Read... [09:51:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:35]Read from MH i2c: E2 [09:51:35]MH_I2C_Read... [09:51:35]Read from MH i2c: E2 0E 00 [09:51:35]MH_I2C_Read... [09:51:35]Read from MH i2c: E2 0E 00 A2 3D 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 29 [09:51:35]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [09:51:35]wFMCommunicate OK [09:51:35]SAM_PROTO_GetShiftState done [09:51:35]FM_GetShiftState done [09:51:35]opened in 1729989044 [09:51:35]opened+sec_in_day 1730075444 [09:51:35]quantity*price = 140055 [09:51:35]sum+1 = 140057 [09:51:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.73 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 45 27.10.2024 09:51 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156494 ФПД: 236695508318727 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T095140&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156494&fm=236695508318727&tin=02508201610067®Number=0000000000091693&sum=140000 [09:51:36]StoreToDocumentArchive [09:51:36]shift 537 fd 156494 [09:51:36]save to /storage/0537/doc_00156494 [09:51:36]save last doc name /storage/0537/doc_00156494 to /storage/kkm_last_doc_name [09:51:36]save OK [09:51:36]Clear old archive folders... [09:51:36]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:51:36]tlvbuf is 017C6CC0 [09:51:36]SAM_PROTO_ClearQueue [09:51:36]wFMCommunicate request_size=4 [09:51:36]MH_SAM_APDU [09:51:36]CAPDU: 80 09 00 00 [09:51:36]Write to MH i2c: E2 08 00 AF 3D 80 09 00 00 00 00 00 00 5E [09:51:36]Write i2c OK [09:51:36]MH_I2C_Read... [09:51:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:51:36]Read from MH i2c: E2 [09:51:36]MH_I2C_Read... [09:51:36]Read from MH i2c: E2 03 00 [09:51:36]MH_I2C_Read... [09:51:36]Read from MH i2c: E2 03 00 AF 3D 00 90 00 60 [09:51:36]RAPDU: 90 00 [09:51:36]wFMCommunicate OK [09:51:36]SAM_PROTO_ClearQueue done [09:51:36]KKMCreateOFDPacket [09:51:36]OFDProtocolAddRootSTLVToBuf [09:51:36]FM_MakeSignedData [09:51:36]FM_MakeSignedData [09:51:36]SAM_PROTO_SignData [09:51:36]wFMCommunicate request_size=4 [09:51:36]MH_SAM_APDU [09:51:36]CAPDU: 80 0D 01 02 [09:51:36]Write to MH i2c: E2 08 00 B0 3D 80 0D 01 02 00 00 00 00 66 [09:51:36]Write i2c OK [09:51:36]MH_I2C_Read... [09:51:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:51:36]Read from MH i2c: E2 [09:51:36]MH_I2C_Read... [09:51:36]Read from MH i2c: E2 03 00 [09:51:36]MH_I2C_Read... [09:51:36]Read from MH i2c: E2 03 00 B0 3D 00 90 00 61 [09:51:36]RAPDU: 90 00 [09:51:36]wFMCommunicate OK [09:51:36]wFMCommunicate request_size=255 [09:51:36]MH_SAM_APDU [09:51:36]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 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 19 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 2D 00 00 00 F4 03 04 00 2C 0D 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4E 63 02 00 35 04 06 00 D7 45 F7 B1 [09:51:36]Write to MH i2c: E2 02 01 B1 3D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 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 19 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 2D 00 00 00 F4 03 04 00 2C 0D 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4E 63 02 00 35 04 06 00 D7 45 F7 B1 00 00 AC [09:51:36]Write i2c OK [09:51:36]MH_I2C_Read... [09:51:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:37]Read from MH i2c: E2 [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: E2 03 00 [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: E2 03 00 B1 3D 00 90 00 62 [09:51:37]RAPDU: 90 00 [09:51:37]wFMCommunicate OK [09:51:37]wFMCommunicate request_size=7 [09:51:37]MH_SAM_APDU [09:51:37]CAPDU: 80 0D 02 02 02 7A 07 [09:51:37]Write to MH i2c: E2 0A 00 B2 3D 80 0D 02 02 02 00 7A 07 00 00 EE [09:51:37]Write i2c OK [09:51:37]MH_I2C_Read... [09:51:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:37]Read from MH i2c: E2 [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: E2 03 00 [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: E2 03 00 B2 3D 00 90 00 63 [09:51:37]RAPDU: 90 00 [09:51:37]wFMCommunicate OK [09:51:37]wFMCommunicate request_size=4 [09:51:37]MH_SAM_APDU [09:51:37]CAPDU: 80 0D 03 02 [09:51:37]Write to MH i2c: E2 08 00 B3 3D 80 0D 03 02 00 00 00 00 6B [09:51:37]Write i2c OK [09:51:37]MH_I2C_Read... [09:51:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:51:37]Read from MH i2c: E2 [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: E2 0B 00 [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: E2 0B 00 B3 3D 00 2E 87 F1 56 84 D3 2E 58 90 00 45 [09:51:37]RAPDU: 2E 87 F1 56 84 D3 2E 58 90 00 [09:51:37]wFMCommunicate OK [09:51:37]SAM_PROTO_SignData done [09:51:37]FM_MakeSignedData done [09:51:37]CreateOFDProtocolMessage [09:51:37]wFMCommunicate request_size=4 [09:51:37]MH_SAM_APDU [09:51:37]CAPDU: 80 11 00 00 [09:51:37]Write to MH i2c: E2 08 00 B4 3D 80 11 00 00 00 00 00 00 6B [09:51:37]Write i2c OK [09:51:37]MH_I2C_Read... [09:51:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:37]Read from MH i2c: E2 [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: E2 17 00 [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: E2 17 00 B4 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 C0 [09:51:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:51:37]wFMCommunicate OK [09:51:37]CreateOFDProtocolMessage done [09:51:37]OFDSenderStorePacket 156494 [09:51:37]StoreOFDPacket docnum=156494 [09:51:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 AA 67 04 01 8E 99 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 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 19 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 2D 00 00 00 F4 03 04 00 2C 0D 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4E 63 02 00 35 04 06 00 D7 45 F7 B1 7A 07 2E 87 F1 56 84 D3 2E 58 [09:51:37]CheckFolder [09:51:37]dirname=/storage/ofd_packets [09:51:37]CheckFolder done [09:51:37]ProducePacketName [09:51:37]name=ofd_packets/00156494 [09:51:37]NVStorageSaveData ofd_packets/00156494 [09:51:37]File name is /storage/ofd_packets/00156494 [09:51:37]Write 298 bytes [09:51:37]NVStorageSaveData done [09:51:37]OFDSenderStorePacket done [09:51:37]KKMCreateOFDPacket done [09:51:37]NVStorageSaveData kkm_last_timestamp [09:51:37]File name is /storage/kkm_last_timestamp [09:51:37]Write 4 bytes [09:51:37]NVStorageSaveData done [09:51:37]ExternCall_PrintAddStr [09:51:37]wPrintStart [09:51:37]Write to MH i2c: 01 00 00 B5 3D F2 [09:51:37]Write i2c OK [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: 01 [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: 01 07 00 [09:51:37]MH_I2C_Read... [09:51:37]Read from MH i2c: 01 07 00 B5 3D 00 00 00 00 00 FF 0F 07 [09:51:37]RasterBufferAndPrint [09:51:37]line Счет N : (1)99307 [09:51:37]line ИНН: 02508201610067 [09:51:37]line Контрольно-Кассовый Чек [09:51:37]line ПРОДАЖА [09:51:37]line ТРК (МРК, ГНК) : 32 [09:51:37]line Товар: 2710194210 [09:51:37]line ДТ-К-5 [09:51:37]line 18.380 * 76.20 [09:51:37]line = 1400.56 [09:51:37]line НДС 12% НСП 1% [09:51:37]line > о реализуемом товаре [09:51:37]line ОКРУГЛЕНИЕ: -0.56 [09:51:37]line ИТОГО: 1400.00 [09:51:37]line Внесено: 1400.00 [09:51:37]line СДАЧА: 0.00 [09:51:37]line НСП 1% : 12.39 [09:51:37]line НДС 12% : 148.73 [09:51:37]line Наличными: 1400.00 [09:51:37]line Безнал.: 0.00 [09:51:37]line Место: АЗС № 143 "Партнер Нефть" [09:51:37]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [09:51:37]line СНО: Общий режим [09:51:37]line Чек 45 27.10.2024 09:51 [09:51:37]line Смена: 537 ФФД: 1.0 [09:51:37]line ЗНМ: 0300000096 [09:51:37]line РНМ: 0000000000091693 [09:51:37]line Версия ККМ: 001 [09:51:37]line ФМ: 0000000000871792 [09:51:37]line ФД: 156494 [09:51:37]line ФПД: 236695508318727 [09:51:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T095140&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156494&fm=236695508318727&tin=02508201610067®Number=0000000000091693&sum=140000 [09:51:37]OFD Sender: Processing packet 156494 [packets to send 31, broken 30] [09:51:37]ProducePacketName [09:51:37]name=ofd_packets/00156494 [09:51:37]OFD Sender: To server: pG, [09:51:37]CommunicateWithHost lk.salyk.kg:30040 [09:51:37]ConnectInit lk.salyk.kg [09:51:37]written 0, free lines is 4095 [09:51:37]Connected sock=10 [09:51:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 AA 67 04 01 8E 99 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 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 19 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 2D 00 00 00 F4 03 04 00 2C 0D 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4E 63 02 00 35 04 06 00 D7 45 F7 B1 7A 07 2E 87 F1 56 84 D3 2E 58 [09:51:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 53 54 47 00 F8 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 31 37 39 32 10 04 04 00 4E 63 02 00 F4 03 04 00 9C B2 1D 67 B6 04 01 00 00 B1 BC 22 1F 07 70 F8 81 [09:51:37]CommunicateWithHost err = 0 [09:51:37]CheckOFDResponse [09:51:37]1017 (14) - 77093643461234 [09:51:37]1041 (16) - 0000000000871792 [09:51:37]1040 (4) - 156494 [09:51:37]1012 (4) - 27.10.2024 03:25 [09:51:37]1206 (1) - 0 [09:51:37]OFD Sender: Remove packet 156494 [09:51:37]ProducePacketName [09:51:37]name=ofd_packets/00156494 [09:51:37]NVStorageDeleteData [09:51:38]Write to MH i2c: 01 00 00 E0 3D 1D [09:51:38]Write i2c OK [09:51:38]MH_I2C_Read... [09:51:38]Read from MH i2c: 01 [09:51:38]MH_I2C_Read... [09:51:38]Read from MH i2c: 01 07 00 [09:51:38]MH_I2C_Read... [09:51:38]Read from MH i2c: 01 07 00 E0 3D 00 00 00 00 00 E4 0C 14 [09:51:38]RasterBufferAndPrint [09:51:38]line [09:51:38]line [09:51:38]line [09:51:38]line [09:51:38]line [09:51:38]written 0, free lines is 3306 [09:51:38]process_action close_receipt done [09:51:38]requested_data is exist [09:51:38]produce_requested_data [09:51:38]requested_item fm.sn is exist - process it [09:51:38]wFMCommunicate request_size=4 [09:51:38]MH_SAM_APDU [09:51:38]CAPDU: 80 11 00 00 [09:51:38]Write to MH i2c: E2 08 00 E7 3D 80 11 00 00 00 00 00 00 9E [09:51:38]Write i2c OK [09:51:38]MH_I2C_Read... [09:51:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:38]Read from MH i2c: E2 [09:51:38]MH_I2C_Read... [09:51:38]Read from MH i2c: E2 17 00 [09:51:38]MH_I2C_Read... [09:51:38]Read from MH i2c: E2 17 00 E7 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 F3 [09:51:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:51:38]wFMCommunicate OK [09:51:38]requested_item fd.num is exist - process it [09:51:38]SAM_PROTO_GetFieldsCounters [09:51:38]wFMCommunicate request_size=4 [09:51:38]MH_SAM_APDU [09:51:38]CAPDU: 80 13 00 00 [09:51:38]Write to MH i2c: E2 08 00 E8 3D 80 13 00 00 00 00 00 00 A1 [09:51:38]Write i2c OK [09:51:38]MH_I2C_Read... [09:51:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:51:38]Read from MH i2c: E2 [09:51:38]MH_I2C_Read... [09:51:38]Read from MH i2c: E2 62 00 [09:51:38]MH_I2C_Read... [09:51:38]Read from MH i2c: E2 62 00 E8 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 4E 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 1C [09:51:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 4E 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:51:38]wFMCommunicate OK [09:51:38]SAM_PROTO_GetFieldsCounters done [09:51:38]requested_item shift.num is exist - process it [09:51:38]requested_item shift.opened is exist - process it [09:51:38]req_shift_opened [09:51:38]FM_GetShiftState [09:51:38]SAM_PROTO_GetShiftState [09:51:38]wFMCommunicate request_size=4 [09:51:38]MH_SAM_APDU [09:51:38]CAPDU: 80 13 01 00 [09:51:38]Write to MH i2c: E2 08 00 E9 3D 80 13 01 00 00 00 00 00 A3 [09:51:38]Write i2c OK [09:51:38]MH_I2C_Read... [09:51:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:38]Read from MH i2c: E2 [09:51:38]MH_I2C_Read... [09:51:38]Read from MH i2c: E2 0E 00 [09:51:38]MH_I2C_Read... [09:51:38]Read from MH i2c: E2 0E 00 E9 3D 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 70 [09:51:38]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [09:51:38]wFMCommunicate OK [09:51:38]SAM_PROTO_GetShiftState done [09:51:38]FM_GetShiftState done [09:51:38]req_shift_opened done [09:51:38]requested_item shift.open_date is exist - process it [09:51:38]req_shift_open_date [09:51:38]req_shift_open_date done [09:51:38]produce_requested_data done [09:51:38]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156494,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [09:51:38]process_action_free close_receipt [09:51:38]json_value_free [09:51:38]json_value_free done [09:51:38]process_json_proto returns [09:51:38]Send response to host [09:51:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156494,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [09:51:38]free response buf [09:51:38]execute_script done [09:51:38]execute_script returns [09:51:38]free content buf [09:51:38]Sock 8.Close socket [09:51:38]Sock 8.Thread stoped [09:51:38]OFD Sender: No OFD packet to send [09:51:43]OFD Sender: No OFD packet to send [09:51:48]OFD Sender: No OFD packet to send [09:51:53]OFD Sender: No OFD packet to send [09:51:53]accept exits with 9 [09:51:53]New connection [09:51:53]New thread 3066977636 created [09:51:53]Thread 3066834276 joined [09:51:53]Waiting for new connection... [09:51:53] Sock 9.Parse request [09:51:53]Sock 9.Check first char [09:51:53]Sock 9.First char is OK [09:51:53]request: POST /json_proto HTTP/1.0 [09:51:53]Method: POST [09:51:53]URL: /json_proto [09:51:53]Method is POST - this is cgi request [09:51:53]url: /json_proto [09:51:53]query_string will be loaded in cgi processing [09:51:53]execute_cgi json_proto POST (null) [09:51:53]execute_cgi path=json_proto method=POST [09:51:53]POST find Content-Length [09:51:53]Host: 172.17.63.3:8080 [09:51:53]Content-Length: 681 [09:51:53]Content-Type: application/json [09:51:53] [09:51:53]POST finish read [09:51:53]Found Content-Length = 681 [09:51:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99308", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 17.940, "sum" : 1200.19, "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" ] } } [09:51:53]execute_script... [09:51: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)99308", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 17.940, "sum" : 1200.19, "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" ] } } [09:51:53]POST & json_proto [09:51:53]process_json_proto [09:51:53]json parsed OK: [09:51:53]protocol is kg_v1.0 [09:51:53]action value=close_receipt [09:51:53]process_action close_receipt [09:51:53]cmd_close_receipt [09:51:53]MH_GetDate [09:51:53]Write to MH i2c: F0 00 00 EA 3D 16 [09:51:53]Write i2c OK [09:51:53]MH_I2C_Read... [09:51:53]Read from MH i2c: F0 [09:51:53]MH_I2C_Read... [09:51:53]Read from MH i2c: F0 09 00 [09:51:53]MH_I2C_Read... [09:51:53]Read from MH i2c: F0 09 00 EA 3D 00 3E 0D 1E 67 50 D1 6C 64 E0 [09:51:53]GetLastDocTimeStamp 1730022700 [09:51:53]current date 1730022718 [09:51:53]FM_GetShiftState [09:51:53]SAM_PROTO_GetShiftState [09:51:53]wFMCommunicate request_size=4 [09:51:53]MH_SAM_APDU [09:51:53]CAPDU: 80 13 01 00 [09:51:53]Write to MH i2c: E2 08 00 EB 3D 80 13 01 00 00 00 00 00 A5 [09:51:53]Write i2c OK [09:51:53]MH_I2C_Read... [09:51:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:53]Read from MH i2c: E2 [09:51:53]MH_I2C_Read... [09:51:53]Read from MH i2c: E2 0E 00 [09:51:53]MH_I2C_Read... [09:51:53]Read from MH i2c: E2 0E 00 EB 3D 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 72 [09:51:53]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [09:51:53]wFMCommunicate OK [09:51:53]SAM_PROTO_GetShiftState done [09:51:53]FM_GetShiftState done [09:51:53]opened in 1729989044 [09:51:53]opened+sec_in_day 1730075444 [09:51:53]quantity*price = 120018 [09:51:53]sum+1 = 120020 [09:51:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 46 27.10.2024 09:51 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156495 ФПД: 73659448989227 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T095159&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156495&fm=73659448989227&tin=02508201610067®Number=0000000000091693&sum=120000 [09:51:55]StoreToDocumentArchive [09:51:55]shift 537 fd 156495 [09:51:55]save to /storage/0537/doc_00156495 [09:51:55]save last doc name /storage/0537/doc_00156495 to /storage/kkm_last_doc_name [09:51:55]save OK [09:51:55]Clear old archive folders... [09:51:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:51:55]tlvbuf is B6EAEC30 [09:51:55]SAM_PROTO_ClearQueue [09:51:55]wFMCommunicate request_size=4 [09:51:55]MH_SAM_APDU [09:51:55]CAPDU: 80 09 00 00 [09:51:55]Write to MH i2c: E2 08 00 F8 3D 80 09 00 00 00 00 00 00 A7 [09:51:55]Write i2c OK [09:51:55]MH_I2C_Read... [09:51:55]Read from MH i2c: E2 [09:51:55]MH_I2C_Read... [09:51:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:51:55]Read from MH i2c: E2 03 00 [09:51:55]MH_I2C_Read... [09:51:55]Read from MH i2c: E2 03 00 F8 3D 00 90 00 A9 [09:51:55]RAPDU: 90 00 [09:51:55]wFMCommunicate OK [09:51:55]SAM_PROTO_ClearQueue done [09:51:55]KKMCreateOFDPacket [09:51:55]OFDProtocolAddRootSTLVToBuf [09:51:55]FM_MakeSignedData [09:51:55]FM_MakeSignedData [09:51:55]SAM_PROTO_SignData [09:51:55]wFMCommunicate request_size=4 [09:51:55]MH_SAM_APDU [09:51:55]CAPDU: 80 0D 01 02 [09:51:55]Write to MH i2c: E2 08 00 F9 3D 80 0D 01 02 00 00 00 00 AF [09:51:55]Write i2c OK [09:51:55]MH_I2C_Read... [09:51:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:51:55]Read from MH i2c: E2 [09:51:55]MH_I2C_Read... [09:51:55]Read from MH i2c: E2 03 00 [09:51:55]MH_I2C_Read... [09:51:55]Read from MH i2c: E2 03 00 F9 3D 00 90 00 AA [09:51:55]RAPDU: 90 00 [09:51:55]wFMCommunicate OK [09:51:55]wFMCommunicate request_size=255 [09:51:55]MH_SAM_APDU [09:51: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 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 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 C9 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 2E 00 00 00 F4 03 04 00 3F 0D 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4F 63 02 00 35 04 06 00 42 [09:51:55]Write to MH i2c: E2 02 01 FA 3D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 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 C9 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 2E 00 00 00 F4 03 04 00 3F 0D 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4F 63 02 00 35 04 06 00 42 00 00 5A [09:51:55]Write i2c OK [09:51:55]MH_I2C_Read... [09:51:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:55]Read from MH i2c: E2 [09:51:55]MH_I2C_Read... [09:51:55]Read from MH i2c: E2 03 00 [09:51:55]MH_I2C_Read... [09:51:55]Read from MH i2c: E2 03 00 FA 3D 00 90 00 AB [09:51:55]RAPDU: 90 00 [09:51:55]wFMCommunicate OK [09:51:55]wFMCommunicate request_size=10 [09:51:55]MH_SAM_APDU [09:51:55]CAPDU: 80 0D 02 02 05 FE 2D 4A 96 2B [09:51:55]Write to MH i2c: E2 0D 00 FB 3D 80 0D 02 02 05 00 FE 2D 4A 96 2B 00 00 F2 [09:51:55]Write i2c OK [09:51:55]MH_I2C_Read... [09:51:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:55]Read from MH i2c: E2 [09:51:55]MH_I2C_Read... [09:51:55]Read from MH i2c: E2 03 00 [09:51:55]MH_I2C_Read... [09:51:55]Read from MH i2c: E2 03 00 FB 3D 00 90 00 AC [09:51:55]RAPDU: 90 00 [09:51:55]wFMCommunicate OK [09:51:55]wFMCommunicate request_size=4 [09:51:55]MH_SAM_APDU [09:51:55]CAPDU: 80 0D 03 02 [09:51:55]Write to MH i2c: E2 08 00 FC 3D 80 0D 03 02 00 00 00 00 B4 [09:51:55]Write i2c OK [09:51:55]MH_I2C_Read... [09:51:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:51:55]Read from MH i2c: E2 [09:51:55]MH_I2C_Read... [09:51:55]Read from MH i2c: E2 0B 00 [09:51:55]MH_I2C_Read... [09:51:55]Read from MH i2c: E2 0B 00 FC 3D 00 6C 0B AD AC 0A 9D BC 16 90 00 FE [09:51:55]RAPDU: 6C 0B AD AC 0A 9D BC 16 90 00 [09:51:55]wFMCommunicate OK [09:51:55]SAM_PROTO_SignData done [09:51:55]FM_MakeSignedData done [09:51:55]CreateOFDProtocolMessage [09:51:55]wFMCommunicate request_size=4 [09:51:55]MH_SAM_APDU [09:51:55]CAPDU: 80 11 00 00 [09:51:55]Write to MH i2c: E2 08 00 FD 3D 80 11 00 00 00 00 00 00 B4 [09:51:55]Write i2c OK [09:51:55]MH_I2C_Read... [09:51:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:55]Read from MH i2c: E2 [09:51:55]MH_I2C_Read... [09:51:55]Read from MH i2c: E2 17 00 [09:51:55]MH_I2C_Read... [09:51:55]Read from MH i2c: E2 17 00 FD 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 09 [09:51:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:51:55]wFMCommunicate OK [09:51:55]CreateOFDProtocolMessage done [09:51:55]OFDSenderStorePacket 156495 [09:51:55]StoreOFDPacket docnum=156495 [09:51:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 06 8C 07 01 A8 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 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 C9 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 2E 00 00 00 F4 03 04 00 3F 0D 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4F 63 02 00 35 04 06 00 42 FE 2D 4A 96 2B 6C 0B AD AC 0A 9D BC 16 [09:51:55]CheckFolder [09:51:55]dirname=/storage/ofd_packets [09:51:55]CheckFolder done [09:51:55]ProducePacketName [09:51:55]name=ofd_packets/00156495 [09:51:55]NVStorageSaveData ofd_packets/00156495 [09:51:55]File name is /storage/ofd_packets/00156495 [09:51:55]Write 301 bytes [09:51:55]NVStorageSaveData done [09:51:55]OFDSenderStorePacket done [09:51:55]KKMCreateOFDPacket done [09:51:55]NVStorageSaveData kkm_last_timestamp [09:51:55]File name is /storage/kkm_last_timestamp [09:51:55]Write 4 bytes [09:51:55]NVStorageSaveData done [09:51:55]ExternCall_PrintAddStr [09:51:55]wPrintStart [09:51:55]Write to MH i2c: 01 00 00 FE 3D 3B [09:51:55]Write i2c OK [09:51:55]MH_I2C_Read... [09:51:55]Read from MH i2c: 01 [09:51:55]MH_I2C_Read... [09:51:55]Read from MH i2c: 01 07 00 [09:51:55]MH_I2C_Read... [09:51:55]Read from MH i2c: 01 07 00 FE 3D 00 00 00 00 00 FF 0F 50 [09:51:55]RasterBufferAndPrint [09:51:55]line Счет N : (1)99308 [09:51:55]line ИНН: 02508201610067 [09:51:55]line Контрольно-Кассовый Чек [09:51:55]line ПРОДАЖА [09:51:55]line ТРК (МРК, ГНК) : 11 [09:51:55]line Товар: 2710124130 [09:51:55]line Аи-92-К-5 [09:51:55]line 17.940 * 66.90 [09:51:55]line = 1200.19 [09:51:55]line НДС 12% НСП 1% [09:51:55]line > о реализуемом товаре [09:51:55]line ОКРУГЛЕНИЕ: -0.19 [09:51:55]line ИТОГО: 1200.00 [09:51:55]line Внесено: 1200.00 [09:51:55]line СДАЧА: 0.00 [09:51:55]line НСП 1% : 10.62 [09:51:55]line НДС 12% : 127.45 [09:51:55]line Наличными: 1200.00 [09:51:55]line Безнал.: 0.00 [09:51:55]line Место: АЗС № 143 "Партнер Нефть" [09:51:55]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [09:51:55]line СНО: Общий режим [09:51:55]line Чек 46 27.10.2024 09:51 [09:51:55]line Смена: 537 ФФД: 1.0 [09:51:55]line ЗНМ: 0300000096 [09:51:55]line РНМ: 0000000000091693 [09:51:55]line Версия ККМ: 001 [09:51:55]line ФМ: 0000000000871792 [09:51:55]line ФД: 156495 [09:51:55]line ФПД: 73659448989227 [09:51:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T095159&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156495&fm=73659448989227&tin=02508201610067®Number=0000000000091693&sum=120000 [09:51:55]OFD Sender: Processing packet 156495 [packets to send 31, broken 30] [09:51:55]ProducePacketName [09:51:55]name=ofd_packets/00156495 [09:51:55]OFD Sender: To server: pG, [09:51:55]CommunicateWithHost lk.salyk.kg:30040 [09:51:55]ConnectInit lk.salyk.kg [09:51:55]written 0, free lines is 4095 [09:51:56]Connected sock=10 [09:51:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 06 8C 07 01 A8 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 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 C9 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 2E 00 00 00 F4 03 04 00 3F 0D 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4F 63 02 00 35 04 06 00 42 FE 2D 4A 96 2B 6C 0B AD AC 0A 9D BC 16 [09:51:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 69 25 47 00 96 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 31 37 39 32 10 04 04 00 4F 63 02 00 F4 03 04 00 AE B2 1D 67 B6 04 01 00 00 10 75 94 4A DB AC 19 3B [09:51:56]CommunicateWithHost err = 0 [09:51:56]CheckOFDResponse [09:51:56]1017 (14) - 77093643461234 [09:51:56]1041 (16) - 0000000000871792 [09:51:56]1040 (4) - 156495 [09:51:56]1012 (4) - 27.10.2024 03:25 [09:51:56]1206 (1) - 0 [09:51:56]OFD Sender: Remove packet 156495 [09:51:56]ProducePacketName [09:51:56]name=ofd_packets/00156495 [09:51:56]NVStorageDeleteData [09:51:56]Write to MH i2c: 01 00 00 29 3E 67 [09:51:56]Write i2c OK [09:51:56]MH_I2C_Read... [09:51:56]Read from MH i2c: 01 [09:51:56]MH_I2C_Read... [09:51:56]Read from MH i2c: 01 07 00 [09:51:56]MH_I2C_Read... [09:51:56]Read from MH i2c: 01 07 00 29 3E 00 00 00 00 00 D6 0C 50 [09:51:56]RasterBufferAndPrint [09:51:56]line [09:51:56]line [09:51:56]line [09:51:56]line [09:51:56]line [09:51:56]written 0, free lines is 3293 [09:51:56]process_action close_receipt done [09:51:56]requested_data is exist [09:51:56]produce_requested_data [09:51:56]requested_item fm.sn is exist - process it [09:51:56]wFMCommunicate request_size=4 [09:51:56]MH_SAM_APDU [09:51:56]CAPDU: 80 11 00 00 [09:51:56]Write to MH i2c: E2 08 00 30 3E 80 11 00 00 00 00 00 00 E8 [09:51:56]Write i2c OK [09:51:56]MH_I2C_Read... [09:51:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:56]Read from MH i2c: E2 [09:51:56]MH_I2C_Read... [09:51:56]Read from MH i2c: E2 17 00 [09:51:56]MH_I2C_Read... [09:51:56]Read from MH i2c: E2 17 00 30 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 3D [09:51:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:51:56]wFMCommunicate OK [09:51:56]requested_item fd.num is exist - process it [09:51:56]SAM_PROTO_GetFieldsCounters [09:51:56]wFMCommunicate request_size=4 [09:51:56]MH_SAM_APDU [09:51:56]CAPDU: 80 13 00 00 [09:51:56]Write to MH i2c: E2 08 00 31 3E 80 13 00 00 00 00 00 00 EB [09:51:56]Write i2c OK [09:51:56]MH_I2C_Read... [09:51:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:51:56]Read from MH i2c: E2 [09:51:56]MH_I2C_Read... [09:51:56]Read from MH i2c: E2 62 00 [09:51:56]MH_I2C_Read... [09:51:56]Read from MH i2c: E2 62 00 31 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 4F 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 6A [09:51:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 4F 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:51:56]wFMCommunicate OK [09:51:56]SAM_PROTO_GetFieldsCounters done [09:51:56]requested_item shift.num is exist - process it [09:51:56]requested_item shift.opened is exist - process it [09:51:56]req_shift_opened [09:51:56]FM_GetShiftState [09:51:56]SAM_PROTO_GetShiftState [09:51:56]wFMCommunicate request_size=4 [09:51:56]MH_SAM_APDU [09:51:56]CAPDU: 80 13 01 00 [09:51:56]Write to MH i2c: E2 08 00 32 3E 80 13 01 00 00 00 00 00 ED [09:51:56]Write i2c OK [09:51:56]MH_I2C_Read... [09:51:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:56]Read from MH i2c: E2 [09:51:56]MH_I2C_Read... [09:51:56]Read from MH i2c: E2 0E 00 [09:51:56]MH_I2C_Read... [09:51:56]Read from MH i2c: E2 0E 00 32 3E 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 BA [09:51:56]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [09:51:56]wFMCommunicate OK [09:51:56]SAM_PROTO_GetShiftState done [09:51:56]FM_GetShiftState done [09:51:56]req_shift_opened done [09:51:56]requested_item shift.open_date is exist - process it [09:51:56]req_shift_open_date [09:51:56]req_shift_open_date done [09:51:56]produce_requested_data done [09:51:56]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156495,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [09:51:56]process_action_free close_receipt [09:51:56]json_value_free [09:51:56]json_value_free done [09:51:56]process_json_proto returns [09:51:56]Send response to host [09:51:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156495,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [09:51:56]free response buf [09:51:56]execute_script done [09:51:56]execute_script returns [09:51:56]free content buf [09:51:56]Sock 9.Close socket [09:51:56]Sock 9.Thread stoped [09:51:56]OFD Sender: No OFD packet to send [09:52:01]OFD Sender: No OFD packet to send [09:52:06]OFD Sender: No OFD packet to send [09:52:11]OFD Sender: No OFD packet to send [09:52:16]OFD Sender: No OFD packet to send [09:52:21]OFD Sender: No OFD packet to send [09:52:26]OFD Sender: No OFD packet to send [09:52:31]OFD Sender: No OFD packet to send [09:52:36]OFD Sender: No OFD packet to send [09:52:41]OFD Sender: No OFD packet to send [09:52:46]OFD Sender: No OFD packet to send [09:52:51]OFD Sender: No OFD packet to send [09:52:56]OFD Sender: No OFD packet to send [09:53:01]OFD Sender: No OFD packet to send [09:53:06]OFD Sender: No OFD packet to send [09:53:11]OFD Sender: No OFD packet to send [09:53:16]OFD Sender: No OFD packet to send [09:53:21]OFD Sender: No OFD packet to send [09:53:26]OFD Sender: No OFD packet to send [09:53:31]OFD Sender: No OFD packet to send [09:53:33]accept exits with 8 [09:53:33]New connection [09:53:33]New thread 3066834276 created [09:53:33]Thread 3066977636 joined [09:53:33]Waiting for new connection... [09:53:33] Sock 8.Parse request [09:53:33]Sock 8.Check first char [09:53:33]Sock 8.First char is OK [09:53:33]request: POST /json_proto HTTP/1.0 [09:53:33]Method: POST [09:53:33]URL: /json_proto [09:53:33]Method is POST - this is cgi request [09:53:33]url: /json_proto [09:53:33]query_string will be loaded in cgi processing [09:53:33]execute_cgi json_proto POST (null) [09:53:33]execute_cgi path=json_proto method=POST [09:53:33]POST find Content-Length [09:53:33]Host: 172.17.63.3:8080 [09:53:33]Content-Length: 676 [09:53:33]Content-Type: application/json [09:53:33] [09:53:33]POST finish read [09:53:33]Found Content-Length = 676 [09:53:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99309", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:53:33]execute_script... [09:53: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)99309", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:53:33]POST & json_proto [09:53:33]process_json_proto [09:53:33]json parsed OK: [09:53:33]protocol is kg_v1.0 [09:53:33]action value=close_receipt [09:53:33]process_action close_receipt [09:53:33]cmd_close_receipt [09:53:33]MH_GetDate [09:53:33]Write to MH i2c: F0 00 00 33 3E 60 [09:53:33]Write i2c OK [09:53:33]MH_I2C_Read... [09:53:33]Read from MH i2c: F0 [09:53:33]MH_I2C_Read... [09:53:33]Read from MH i2c: F0 09 00 [09:53:33]MH_I2C_Read... [09:53:33]Read from MH i2c: F0 09 00 33 3E 00 A2 0D 1E 67 50 D1 6C 64 8E [09:53:33]GetLastDocTimeStamp 1730022719 [09:53:33]current date 1730022818 [09:53:33]FM_GetShiftState [09:53:33]SAM_PROTO_GetShiftState [09:53:33]wFMCommunicate request_size=4 [09:53:33]MH_SAM_APDU [09:53:33]CAPDU: 80 13 01 00 [09:53:33]Write to MH i2c: E2 08 00 34 3E 80 13 01 00 00 00 00 00 EF [09:53:33]Write i2c OK [09:53:33]MH_I2C_Read... [09:53:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:33]Read from MH i2c: E2 [09:53:33]MH_I2C_Read... [09:53:33]Read from MH i2c: E2 0E 00 [09:53:33]MH_I2C_Read... [09:53:33]Read from MH i2c: E2 0E 00 34 3E 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 BC [09:53:33]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [09:53:33]wFMCommunicate OK [09:53:33]SAM_PROTO_GetShiftState done [09:53:33]FM_GetShiftState done [09:53:33]opened in 1729989044 [09:53:33]opened+sec_in_day 1730075444 [09:53:33]quantity*price = 50041 [09:53:33]sum+1 = 50042 [09:53:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 47 27.10.2024 09:53 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156496 ФПД: 207200454445553 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T095338&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156496&fm=207200454445553&tin=02508201610067®Number=0000000000091693&sum=50000 [09:53:35]StoreToDocumentArchive [09:53:35]shift 537 fd 156496 [09:53:35]save to /storage/0537/doc_00156496 [09:53:35]save last doc name /storage/0537/doc_00156496 to /storage/kkm_last_doc_name [09:53:35]save OK [09:53:35]Clear old archive folders... [09:53:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:53:35]tlvbuf is 017C6CF0 [09:53:35]SAM_PROTO_ClearQueue [09:53:35]wFMCommunicate request_size=4 [09:53:35]MH_SAM_APDU [09:53:35]CAPDU: 80 09 00 00 [09:53:35]Write to MH i2c: E2 08 00 41 3E 80 09 00 00 00 00 00 00 F1 [09:53:35]Write i2c OK [09:53:35]MH_I2C_Read... [09:53:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:53:35]Read from MH i2c: E2 [09:53:35]MH_I2C_Read... [09:53:35]Read from MH i2c: E2 03 00 [09:53:35]MH_I2C_Read... [09:53:35]Read from MH i2c: E2 03 00 41 3E 00 90 00 F3 [09:53:35]RAPDU: 90 00 [09:53:35]wFMCommunicate OK [09:53:35]SAM_PROTO_ClearQueue done [09:53:35]KKMCreateOFDPacket [09:53:35]OFDProtocolAddRootSTLVToBuf [09:53:35]FM_MakeSignedData [09:53:35]FM_MakeSignedData [09:53:35]SAM_PROTO_SignData [09:53:35]wFMCommunicate request_size=4 [09:53:35]MH_SAM_APDU [09:53:35]CAPDU: 80 0D 01 02 [09:53:35]Write to MH i2c: E2 08 00 42 3E 80 0D 01 02 00 00 00 00 F9 [09:53:35]Write i2c OK [09:53:35]MH_I2C_Read... [09:53:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:53:35]Read from MH i2c: E2 [09:53:35]MH_I2C_Read... [09:53:35]Read from MH i2c: E2 03 00 [09:53:35]MH_I2C_Read... [09:53:35]Read from MH i2c: E2 03 00 42 3E 00 90 00 F4 [09:53:35]RAPDU: 90 00 [09:53:35]wFMCommunicate OK [09:53:35]wFMCommunicate request_size=255 [09:53:35]MH_SAM_APDU [09:53: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 A2 0D 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 50 63 02 00 35 04 06 00 BC [09:53:35]Write to MH i2c: E2 02 01 43 3E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 A2 0D 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 50 63 02 00 35 04 06 00 BC 00 00 7C [09:53:35]Write i2c OK [09:53:35]MH_I2C_Read... [09:53:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:35]Read from MH i2c: E2 [09:53:35]MH_I2C_Read... [09:53:35]Read from MH i2c: E2 03 00 [09:53:35]MH_I2C_Read... [09:53:35]Read from MH i2c: E2 03 00 43 3E 00 90 00 F5 [09:53:35]RAPDU: 90 00 [09:53:35]wFMCommunicate OK [09:53:35]wFMCommunicate request_size=10 [09:53:35]MH_SAM_APDU [09:53:35]CAPDU: 80 0D 02 02 05 72 9D 7C 09 F1 [09:53:35]Write to MH i2c: E2 0D 00 44 3E 80 0D 02 02 05 00 72 9D 7C 09 F1 00 00 8B [09:53:35]Write i2c OK [09:53:35]MH_I2C_Read... [09:53:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:35]Read from MH i2c: E2 [09:53:35]MH_I2C_Read... [09:53:35]Read from MH i2c: E2 03 00 [09:53:35]MH_I2C_Read... [09:53:35]Read from MH i2c: E2 03 00 44 3E 00 90 00 F6 [09:53:35]RAPDU: 90 00 [09:53:35]wFMCommunicate OK [09:53:35]wFMCommunicate request_size=4 [09:53:35]MH_SAM_APDU [09:53:35]CAPDU: 80 0D 03 02 [09:53:35]Write to MH i2c: E2 08 00 45 3E 80 0D 03 02 00 00 00 00 FE [09:53:35]Write i2c OK [09:53:35]MH_I2C_Read... [09:53:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:53:35]Read from MH i2c: E2 [09:53:35]MH_I2C_Read... [09:53:35]Read from MH i2c: E2 0B 00 [09:53:35]MH_I2C_Read... [09:53:35]Read from MH i2c: E2 0B 00 45 3E 00 C9 BE D5 06 05 EA 08 B2 90 00 0A [09:53:35]RAPDU: C9 BE D5 06 05 EA 08 B2 90 00 [09:53:35]wFMCommunicate OK [09:53:35]SAM_PROTO_SignData done [09:53:35]FM_MakeSignedData done [09:53:35]CreateOFDProtocolMessage [09:53:35]wFMCommunicate request_size=4 [09:53:35]MH_SAM_APDU [09:53:35]CAPDU: 80 11 00 00 [09:53:35]Write to MH i2c: E2 08 00 46 3E 80 11 00 00 00 00 00 00 FE [09:53:35]Write i2c OK [09:53:35]MH_I2C_Read... [09:53:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:35]Read from MH i2c: E2 [09:53:35]MH_I2C_Read... [09:53:35]Read from MH i2c: E2 17 00 [09:53:35]MH_I2C_Read... [09:53:35]Read from MH i2c: E2 17 00 46 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 53 [09:53:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:53:35]wFMCommunicate OK [09:53:35]CreateOFDProtocolMessage done [09:53:35]OFDSenderStorePacket 156496 [09:53:35]StoreOFDPacket docnum=156496 [09:53:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 6A B3 07 01 C0 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 A2 0D 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 50 63 02 00 35 04 06 00 BC 72 9D 7C 09 F1 C9 BE D5 06 05 EA 08 B2 [09:53:35]CheckFolder [09:53:35]dirname=/storage/ofd_packets [09:53:35]CheckFolder done [09:53:35]ProducePacketName [09:53:35]name=ofd_packets/00156496 [09:53:35]NVStorageSaveData ofd_packets/00156496 [09:53:35]File name is /storage/ofd_packets/00156496 [09:53:35]Write 301 bytes [09:53:35]NVStorageSaveData done [09:53:35]OFDSenderStorePacket done [09:53:35]KKMCreateOFDPacket done [09:53:35]NVStorageSaveData kkm_last_timestamp [09:53:35]File name is /storage/kkm_last_timestamp [09:53:35]Write 4 bytes [09:53:35]NVStorageSaveData done [09:53:35]ExternCall_PrintAddStr [09:53:35]wPrintStart [09:53:35]Write to MH i2c: 01 00 00 47 3E 85 [09:53:35]Write i2c OK [09:53:35]MH_I2C_Read... [09:53:35]Read from MH i2c: 01 [09:53:35]MH_I2C_Read... [09:53:35]Read from MH i2c: 01 07 00 [09:53:35]MH_I2C_Read... [09:53:35]Read from MH i2c: 01 07 00 47 3E 00 00 00 00 00 FF 0F 9A [09:53:35]RasterBufferAndPrint [09:53:35]line Счет N : (1)99309 [09:53:35]line ИНН: 02508201610067 [09:53:35]line Контрольно-Кассовый Чек [09:53:35]line ПРОДАЖА [09:53:35]line ТРК (МРК, ГНК) : 21 [09:53:35]line Товар: 2710124130 [09:53:35]line Аи-92-К-5 [09:53:35]line 7.480 * 66.90 [09:53:35]line = 500.41 [09:53:35]line НДС 12% НСП 1% [09:53:35]line > о реализуемом товаре [09:53:35]line ОКРУГЛЕНИЕ: -0.41 [09:53:35]line ИТОГО: 500.00 [09:53:35]line Внесено: 500.00 [09:53:35]line СДАЧА: 0.00 [09:53:35]line НСП 1% : 4.43 [09:53:35]line НДС 12% : 53.14 [09:53:35]line Наличными: 500.00 [09:53:35]line Безнал.: 0.00 [09:53:35]line Место: АЗС № 143 "Партнер Нефть" [09:53:35]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [09:53:35]line СНО: Общий режим [09:53:35]line Чек 47 27.10.2024 09:53 [09:53:35]line Смена: 537 ФФД: 1.0 [09:53:35]line ЗНМ: 0300000096 [09:53:35]line РНМ: 0000000000091693 [09:53:35]line Версия ККМ: 001 [09:53:35]line ФМ: 0000000000871792 [09:53:35]line ФД: 156496 [09:53:35]line ФПД: 207200454445553 [09:53:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T095338&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156496&fm=207200454445553&tin=02508201610067®Number=0000000000091693&sum=50000 [09:53:35]OFD Sender: Processing packet 156496 [packets to send 31, broken 30] [09:53:35]ProducePacketName [09:53:35]name=ofd_packets/00156496 [09:53:35]OFD Sender: To server: pG, [09:53:35]CommunicateWithHost lk.salyk.kg:30040 [09:53:35]ConnectInit lk.salyk.kg [09:53:35]written 0, free lines is 4095 [09:53:36]Connected sock=10 [09:53:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 6A B3 07 01 C0 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 A2 0D 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 50 63 02 00 35 04 06 00 BC 72 9D 7C 09 F1 C9 BE D5 06 05 EA 08 B2 [09:53:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 7C 1E 47 00 07 F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 50 63 02 00 F4 03 04 00 12 B3 1D 67 B6 04 01 00 00 85 0A 65 67 59 AE 54 EA [09:53:36]CommunicateWithHost err = 0 [09:53:36]CheckOFDResponse [09:53:36]1017 (14) - 77093643461234 [09:53:36]1041 (16) - 0000000000871792 [09:53:36]1040 (4) - 156496 [09:53:36]1012 (4) - 27.10.2024 03:27 [09:53:36]1206 (1) - 0 [09:53:36]OFD Sender: Remove packet 156496 [09:53:36]ProducePacketName [09:53:36]name=ofd_packets/00156496 [09:53:36]NVStorageDeleteData [09:53:36]Write to MH i2c: 01 00 00 72 3E B0 [09:53:36]Write i2c OK [09:53:36]MH_I2C_Read... [09:53:36]Read from MH i2c: 01 [09:53:36]MH_I2C_Read... [09:53:36]Read from MH i2c: 01 07 00 [09:53:36]MH_I2C_Read... [09:53:36]Read from MH i2c: 01 07 00 72 3E 00 00 00 00 00 D4 0C 97 [09:53:36]RasterBufferAndPrint [09:53:36]line [09:53:36]line [09:53:36]line [09:53:36]line [09:53:36]line [09:53:36]written 0, free lines is 3288 [09:53:36]process_action close_receipt done [09:53:36]requested_data is exist [09:53:36]produce_requested_data [09:53:36]requested_item fm.sn is exist - process it [09:53:36]wFMCommunicate request_size=4 [09:53:36]MH_SAM_APDU [09:53:36]CAPDU: 80 11 00 00 [09:53:36]Write to MH i2c: E2 08 00 79 3E 80 11 00 00 00 00 00 00 31 [09:53:36]Write i2c OK [09:53:36]MH_I2C_Read... [09:53:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:36]Read from MH i2c: E2 [09:53:36]MH_I2C_Read... [09:53:36]Read from MH i2c: E2 17 00 [09:53:36]MH_I2C_Read... [09:53:36]Read from MH i2c: E2 17 00 79 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 86 [09:53:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:53:36]wFMCommunicate OK [09:53:36]requested_item fd.num is exist - process it [09:53:36]SAM_PROTO_GetFieldsCounters [09:53:36]wFMCommunicate request_size=4 [09:53:36]MH_SAM_APDU [09:53:36]CAPDU: 80 13 00 00 [09:53:36]Write to MH i2c: E2 08 00 7A 3E 80 13 00 00 00 00 00 00 34 [09:53:36]Write i2c OK [09:53:36]MH_I2C_Read... [09:53:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:53:36]Read from MH i2c: E2 [09:53:36]MH_I2C_Read... [09:53:36]Read from MH i2c: E2 62 00 [09:53:36]MH_I2C_Read... [09:53:36]Read from MH i2c: E2 62 00 7A 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 50 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 B7 [09:53:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 50 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:53:36]wFMCommunicate OK [09:53:36]SAM_PROTO_GetFieldsCounters done [09:53:36]requested_item shift.num is exist - process it [09:53:36]requested_item shift.opened is exist - process it [09:53:36]req_shift_opened [09:53:36]FM_GetShiftState [09:53:36]SAM_PROTO_GetShiftState [09:53:36]wFMCommunicate request_size=4 [09:53:36]MH_SAM_APDU [09:53:36]CAPDU: 80 13 01 00 [09:53:36]Write to MH i2c: E2 08 00 7B 3E 80 13 01 00 00 00 00 00 36 [09:53:36]Write i2c OK [09:53:36]MH_I2C_Read... [09:53:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:36]Read from MH i2c: E2 [09:53:36]MH_I2C_Read... [09:53:36]Read from MH i2c: E2 0E 00 [09:53:36]MH_I2C_Read... [09:53:36]Read from MH i2c: E2 0E 00 7B 3E 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 03 [09:53:36]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [09:53:36]wFMCommunicate OK [09:53:36]SAM_PROTO_GetShiftState done [09:53:36]FM_GetShiftState done [09:53:36]req_shift_opened done [09:53:36]requested_item shift.open_date is exist - process it [09:53:36]req_shift_open_date [09:53:36]req_shift_open_date done [09:53:36]produce_requested_data done [09:53:36]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156496,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [09:53:36]process_action_free close_receipt [09:53:36]json_value_free [09:53:36]json_value_free done [09:53:36]process_json_proto returns [09:53:36]Send response to host [09:53:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156496,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [09:53:36]free response buf [09:53:36]execute_script done [09:53:36]execute_script returns [09:53:36]free content buf [09:53:36]Sock 8.Close socket [09:53:36]Sock 8.Thread stoped [09:53:36]OFD Sender: No OFD packet to send [09:53:41]OFD Sender: No OFD packet to send [09:53:46]OFD Sender: No OFD packet to send [09:53:51]OFD Sender: No OFD packet to send [09:53:56]OFD Sender: No OFD packet to send [09:54:01]OFD Sender: No OFD packet to send [09:54:06]OFD Sender: No OFD packet to send [09:54:11]OFD Sender: No OFD packet to send [09:54:16]OFD Sender: No OFD packet to send [09:54:21]OFD Sender: No OFD packet to send [09:54:26]OFD Sender: No OFD packet to send [09:54:31]OFD Sender: No OFD packet to send [09:54:36]OFD Sender: No OFD packet to send [09:54:41]OFD Sender: No OFD packet to send [09:54:46]OFD Sender: No OFD packet to send [09:54:51]OFD Sender: No OFD packet to send [09:54:56]OFD Sender: No OFD packet to send [09:55:01]OFD Sender: No OFD packet to send [09:55:06]OFD Sender: No OFD packet to send [09:55:11]OFD Sender: No OFD packet to send [09:55:16]OFD Sender: No OFD packet to send [09:55:21]OFD Sender: No OFD packet to send [09:55:26]OFD Sender: No OFD packet to send [09:55:31]OFD Sender: No OFD packet to send [09:55:36]OFD Sender: No OFD packet to send [09:55:41]OFD Sender: No OFD packet to send [09:55:46]OFD Sender: No OFD packet to send [09:55:51]OFD Sender: No OFD packet to send [09:55:56]OFD Sender: No OFD packet to send [09:56:01]OFD Sender: No OFD packet to send [09:56:06]OFD Sender: No OFD packet to send [09:56:11]OFD Sender: No OFD packet to send [09:56:16]OFD Sender: No OFD packet to send [09:56:19]accept exits with 9 [09:56:19]New connection [09:56:19]New thread 3066977636 created [09:56:19]Thread 3066834276 joined [09:56:19]Waiting for new connection... [09:56:19] Sock 9.Parse request [09:56:19]Sock 9.Check first char [09:56:19]Sock 9.First char is OK [09:56:19]request: POST /json_proto HTTP/1.0 [09:56:19]Method: POST [09:56:19]URL: /json_proto [09:56:19]Method is POST - this is cgi request [09:56:19]url: /json_proto [09:56:19]query_string will be loaded in cgi processing [09:56:19]execute_cgi json_proto POST (null) [09:56:19]execute_cgi path=json_proto method=POST [09:56:19]POST find Content-Length [09:56:19]Host: 172.17.63.3:8080 [09:56:19]Content-Length: 765 [09:56:19]Content-Type: application/json [09:56:19] [09:56:19]POST finish read [09:56:19]Found Content-Length = 765 [09:56:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99310", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.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: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:56:19]execute_script... [09:56: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)99310", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.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: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:56:19]POST & json_proto [09:56:19]process_json_proto [09:56:19]json parsed OK: [09:56:19]protocol is kg_v1.0 [09:56:19]action value=close_receipt [09:56:19]process_action close_receipt [09:56:19]cmd_close_receipt [09:56:19]MH_GetDate [09:56:19]Write to MH i2c: F0 00 00 7C 3E A9 [09:56:19]Write i2c OK [09:56:19]MH_I2C_Read... [09:56:19]Read from MH i2c: F0 [09:56:19]MH_I2C_Read... [09:56:19]Read from MH i2c: F0 09 00 [09:56:19]MH_I2C_Read... [09:56:19]Read from MH i2c: F0 09 00 7C 3E 00 48 0E 1E 67 50 D1 6C 64 7E [09:56:19]GetLastDocTimeStamp 1730022818 [09:56:19]current date 1730022984 [09:56:19]FM_GetShiftState [09:56:19]SAM_PROTO_GetShiftState [09:56:19]wFMCommunicate request_size=4 [09:56:19]MH_SAM_APDU [09:56:19]CAPDU: 80 13 01 00 [09:56:19]Write to MH i2c: E2 08 00 7D 3E 80 13 01 00 00 00 00 00 38 [09:56:19]Write i2c OK [09:56:19]MH_I2C_Read... [09:56:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:56:19]Read from MH i2c: E2 [09:56:19]MH_I2C_Read... [09:56:19]Read from MH i2c: E2 0E 00 [09:56:19]MH_I2C_Read... [09:56:19]Read from MH i2c: E2 0E 00 7D 3E 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 05 [09:56:19]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [09:56:19]wFMCommunicate OK [09:56:19]SAM_PROTO_GetShiftState done [09:56:19]FM_GetShiftState done [09:56:19]opened in 1729989044 [09:56:19]opened+sec_in_day 1730075444 [09:56:19]quantity*price = 100050 [09:56:19]sum+1 = 100052 [09:56:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 48 27.10.2024 09:56 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 156497 ФПД: 209004842437725 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T095624&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156497&fm=209004842437725&tin=02508201610067®Number=0000000000091693&sum=100051 [09:56:20]StoreToDocumentArchive [09:56:20]shift 537 fd 156497 [09:56:20]save to /storage/0537/doc_00156497 [09:56:20]save last doc name /storage/0537/doc_00156497 to /storage/kkm_last_doc_name [09:56:20]save OK [09:56:20]Clear old archive folders... [09:56:20]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:56:20]tlvbuf is 01795550 [09:56:20]SAM_PROTO_ClearQueue [09:56:20]wFMCommunicate request_size=4 [09:56:20]MH_SAM_APDU [09:56:20]CAPDU: 80 09 00 00 [09:56:20]Write to MH i2c: E2 08 00 8A 3E 80 09 00 00 00 00 00 00 3A [09:56:20]Write i2c OK [09:56:20]MH_I2C_Read... [09:56:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:56:20]Read from MH i2c: E2 [09:56:20]MH_I2C_Read... [09:56:20]Read from MH i2c: E2 03 00 [09:56:20]MH_I2C_Read... [09:56:20]Read from MH i2c: E2 03 00 8A 3E 00 90 00 3C [09:56:20]RAPDU: 90 00 [09:56:20]wFMCommunicate OK [09:56:20]SAM_PROTO_ClearQueue done [09:56:20]KKMCreateOFDPacket [09:56:20]OFDProtocolAddRootSTLVToBuf [09:56:20]FM_MakeSignedData [09:56:20]FM_MakeSignedData [09:56:20]SAM_PROTO_SignData [09:56:20]wFMCommunicate request_size=4 [09:56:20]MH_SAM_APDU [09:56:20]CAPDU: 80 0D 01 02 [09:56:20]Write to MH i2c: E2 08 00 8B 3E 80 0D 01 02 00 00 00 00 42 [09:56:20]Write i2c OK [09:56:20]MH_I2C_Read... [09:56:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:56:21]Read from MH i2c: E2 [09:56:21]MH_I2C_Read... [09:56:21]Read from MH i2c: E2 03 00 [09:56:21]MH_I2C_Read... [09:56:21]Read from MH i2c: E2 03 00 8B 3E 00 90 00 3D [09:56:21]RAPDU: 90 00 [09:56:21]wFMCommunicate OK [09:56:21]wFMCommunicate request_size=255 [09:56:21]MH_SAM_APDU [09:56:21]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 48 0E 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 51 63 02 00 35 04 06 00 BE 16 BB 63 [09:56:21]Write to MH i2c: E2 02 01 8C 3E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 48 0E 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 51 63 02 00 35 04 06 00 BE 16 BB 63 00 00 00 [09:56:21]Write i2c OK [09:56:21]MH_I2C_Read... [09:56:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:56:21]Read from MH i2c: E2 [09:56:21]MH_I2C_Read... [09:56:21]Read from MH i2c: E2 03 00 [09:56:21]MH_I2C_Read... [09:56:21]Read from MH i2c: E2 03 00 8C 3E 00 90 00 3E [09:56:21]RAPDU: 90 00 [09:56:21]wFMCommunicate OK [09:56:21]wFMCommunicate request_size=7 [09:56:21]MH_SAM_APDU [09:56:21]CAPDU: 80 0D 02 02 02 CC 5D [09:56:21]Write to MH i2c: E2 0A 00 8D 3E 80 0D 02 02 02 00 CC 5D 00 00 72 [09:56:21]Write i2c OK [09:56:21]MH_I2C_Read... [09:56:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:56:21]Read from MH i2c: E2 [09:56:21]MH_I2C_Read... [09:56:21]Read from MH i2c: E2 03 00 [09:56:21]MH_I2C_Read... [09:56:21]Read from MH i2c: E2 03 00 8D 3E 00 90 00 3F [09:56:21]RAPDU: 90 00 [09:56:21]wFMCommunicate OK [09:56:21]wFMCommunicate request_size=4 [09:56:21]MH_SAM_APDU [09:56:21]CAPDU: 80 0D 03 02 [09:56:21]Write to MH i2c: E2 08 00 8E 3E 80 0D 03 02 00 00 00 00 47 [09:56:21]Write i2c OK [09:56:21]MH_I2C_Read... [09:56:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:56:21]Read from MH i2c: E2 [09:56:21]MH_I2C_Read... [09:56:21]Read from MH i2c: E2 0B 00 [09:56:21]MH_I2C_Read... [09:56:21]Read from MH i2c: E2 0B 00 8E 3E 00 9A 60 7D FD B0 F7 C1 8F 90 00 B3 [09:56:21]RAPDU: 9A 60 7D FD B0 F7 C1 8F 90 00 [09:56:21]wFMCommunicate OK [09:56:21]SAM_PROTO_SignData done [09:56:21]FM_MakeSignedData done [09:56:21]CreateOFDProtocolMessage [09:56:21]wFMCommunicate request_size=4 [09:56:21]MH_SAM_APDU [09:56:21]CAPDU: 80 11 00 00 [09:56:21]Write to MH i2c: E2 08 00 8F 3E 80 11 00 00 00 00 00 00 47 [09:56:21]Write i2c OK [09:56:21]MH_I2C_Read... [09:56:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:56:21]Read from MH i2c: E2 [09:56:21]MH_I2C_Read... [09:56:21]Read from MH i2c: E2 17 00 [09:56:21]MH_I2C_Read... [09:56:21]Read from MH i2c: E2 17 00 8F 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 9C [09:56:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:56:21]wFMCommunicate OK [09:56:21]CreateOFDProtocolMessage done [09:56:21]OFDSenderStorePacket 156497 [09:56:21]StoreOFDPacket docnum=156497 [09:56:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 11 54 04 01 A7 80 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 48 0E 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 51 63 02 00 35 04 06 00 BE 16 BB 63 CC 5D 9A 60 7D FD B0 F7 C1 8F [09:56:21]CheckFolder [09:56:21]dirname=/storage/ofd_packets [09:56:21]CheckFolder done [09:56:21]ProducePacketName [09:56:21]name=ofd_packets/00156497 [09:56:21]NVStorageSaveData ofd_packets/00156497 [09:56:21]File name is /storage/ofd_packets/00156497 [09:56:21]Write 298 bytes [09:56:21]NVStorageSaveData done [09:56:21]OFDSenderStorePacket done [09:56:21]KKMCreateOFDPacket done [09:56:21]NVStorageSaveData kkm_last_timestamp [09:56:21]File name is /storage/kkm_last_timestamp [09:56:21]Write 4 bytes [09:56:21]NVStorageSaveData done [09:56:21]ExternCall_PrintAddStr [09:56:21]wPrintStart [09:56:21]Write to MH i2c: 01 00 00 90 3E CE [09:56:21]Write i2c OK [09:56:21]MH_I2C_Read... [09:56:21]Read from MH i2c: 01 [09:56:21]MH_I2C_Read... [09:56:21]Read from MH i2c: 01 07 00 [09:56:21]MH_I2C_Read... [09:56:21]Read from MH i2c: 01 07 00 90 3E 00 00 00 00 00 FF 0F E3 [09:56:21]RasterBufferAndPrint [09:56:21]line Счет N : (1)99310 [09:56:21]line ИНН: 02508201610067 [09:56:21]line Контрольно-Кассовый Чек [09:56:21]line ПРОДАЖА [09:56:21]line ТРК (МРК, ГНК) : 32 [09:56:21]line Товар: 2710194210 [09:56:21]line ДТ-К-5 [09:56:21]line 13.130 * 76.20 [09:56:21]line = 1000.51 [09:56:21]line НДС 12% НСП 1% [09:56:21]line > о реализуемом товаре [09:56:21]line ИТОГО: 1000.51 [09:56:21]line НСП 1% : 8.85 [09:56:21]line НДС 12% : 106.25 [09:56:21]line Наличными: 0.00 [09:56:21]line Безнал.: 1000.51 [09:56:21]line Место: АЗС № 143 "Партнер Нефть" [09:56:21]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [09:56:21]line СНО: Общий режим [09:56:21]line Чек 48 27.10.2024 09:56 [09:56:21]line Смена: 537 ФФД: 1.0 [09:56:21]line ЗНМ: 0300000096 [09:56:21]line РНМ: 0000000000091693 [09:56:21]line Версия ККМ: 001 [09:56:21]line Платежная система: Mbank [09:56:21]line ФМ: 0000000000871792 [09:56:21]line ФД: 156497 [09:56:21]line ФПД: 209004842437725 [09:56:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T095624&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156497&fm=209004842437725&tin=02508201610067®Number=0000000000091693&sum=100051 [09:56:21]OFD Sender: Processing packet 156497 [packets to send 31, broken 30] [09:56:21]ProducePacketName [09:56:21]name=ofd_packets/00156497 [09:56:21]OFD Sender: To server: pG, [09:56:21]CommunicateWithHost lk.salyk.kg:30040 [09:56:21]ConnectInit lk.salyk.kg [09:56:21]written 0, free lines is 4095 [09:56:21]Connected sock=10 [09:56:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 11 54 04 01 A7 80 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 48 0E 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 51 63 02 00 35 04 06 00 BE 16 BB 63 CC 5D 9A 60 7D FD B0 F7 C1 8F [09:56:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 25 E7 47 00 61 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 31 37 39 32 10 04 04 00 51 63 02 00 F4 03 04 00 B8 B3 1D 67 B6 04 01 00 00 A4 9B 81 4D CC B5 1A 3B [09:56:22]CommunicateWithHost err = 0 [09:56:22]CheckOFDResponse [09:56:22]1017 (14) - 77093643461234 [09:56:22]1041 (16) - 0000000000871792 [09:56:22]1040 (4) - 156497 [09:56:22]1012 (4) - 27.10.2024 03:30 [09:56:22]1206 (1) - 0 [09:56:22]OFD Sender: Remove packet 156497 [09:56:22]ProducePacketName [09:56:22]name=ofd_packets/00156497 [09:56:22]NVStorageDeleteData [09:56:22]Write to MH i2c: 01 00 00 B9 3E F7 [09:56:22]Write i2c OK [09:56:22]MH_I2C_Read... [09:56:22]Read from MH i2c: 01 [09:56:22]MH_I2C_Read... [09:56:22]Read from MH i2c: 01 07 00 [09:56:22]MH_I2C_Read... [09:56:22]Read from MH i2c: 01 07 00 B9 3E 00 00 00 00 00 FA 0C 04 [09:56:22]RasterBufferAndPrint [09:56:22]line [09:56:22]line [09:56:22]line [09:56:22]line [09:56:22]line [09:56:22]written 0, free lines is 3328 [09:56:22]process_action close_receipt done [09:56:22]requested_data is exist [09:56:22]produce_requested_data [09:56:22]requested_item fm.sn is exist - process it [09:56:22]wFMCommunicate request_size=4 [09:56:22]MH_SAM_APDU [09:56:22]CAPDU: 80 11 00 00 [09:56:22]Write to MH i2c: E2 08 00 C0 3E 80 11 00 00 00 00 00 00 78 [09:56:22]Write i2c OK [09:56:22]MH_I2C_Read... [09:56:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:56:22]Read from MH i2c: E2 [09:56:22]MH_I2C_Read... [09:56:22]Read from MH i2c: E2 17 00 [09:56:22]MH_I2C_Read... [09:56:22]Read from MH i2c: E2 17 00 C0 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 CD [09:56:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:56:22]wFMCommunicate OK [09:56:22]requested_item fd.num is exist - process it [09:56:22]SAM_PROTO_GetFieldsCounters [09:56:22]wFMCommunicate request_size=4 [09:56:22]MH_SAM_APDU [09:56:22]CAPDU: 80 13 00 00 [09:56:22]Write to MH i2c: E2 08 00 C1 3E 80 13 00 00 00 00 00 00 7B [09:56:22]Write i2c OK [09:56:22]MH_I2C_Read... [09:56:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:56:22]Read from MH i2c: E2 [09:56:22]MH_I2C_Read... [09:56:22]Read from MH i2c: E2 62 00 [09:56:22]MH_I2C_Read... [09:56:22]Read from MH i2c: E2 62 00 C1 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 51 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 02 [09:56:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 51 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:56:22]wFMCommunicate OK [09:56:22]SAM_PROTO_GetFieldsCounters done [09:56:22]requested_item shift.num is exist - process it [09:56:22]requested_item shift.opened is exist - process it [09:56:22]req_shift_opened [09:56:22]FM_GetShiftState [09:56:22]SAM_PROTO_GetShiftState [09:56:22]wFMCommunicate request_size=4 [09:56:22]MH_SAM_APDU [09:56:22]CAPDU: 80 13 01 00 [09:56:22]Write to MH i2c: E2 08 00 C2 3E 80 13 01 00 00 00 00 00 7D [09:56:22]Write i2c OK [09:56:22]MH_I2C_Read... [09:56:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:56:22]Read from MH i2c: E2 [09:56:22]MH_I2C_Read... [09:56:22]Read from MH i2c: E2 0E 00 [09:56:22]MH_I2C_Read... [09:56:22]Read from MH i2c: E2 0E 00 C2 3E 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 4A [09:56:22]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [09:56:22]wFMCommunicate OK [09:56:22]SAM_PROTO_GetShiftState done [09:56:22]FM_GetShiftState done [09:56:22]req_shift_opened done [09:56:22]requested_item shift.open_date is exist - process it [09:56:22]req_shift_open_date [09:56:22]req_shift_open_date done [09:56:22]produce_requested_data done [09:56:22]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156497,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [09:56:22]process_action_free close_receipt [09:56:22]json_value_free [09:56:22]json_value_free done [09:56:22]process_json_proto returns [09:56:22]Send response to host [09:56:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156497,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [09:56:22]free response buf [09:56:22]execute_script done [09:56:22]execute_script returns [09:56:22]free content buf [09:56:22]Sock 9.Close socket [09:56:22]Sock 9.Thread stoped [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: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:31]accept exits with 8 [09:57:31]New connection [09:57:31]New thread 3066834276 created [09:57:31]Thread 3066977636 joined [09:57:31]Waiting for new connection... [09:57:31] Sock 8.Parse request [09:57:31]Sock 8.Check first char [09:57:31]Sock 8.First char is OK [09:57:31]request: POST /json_proto HTTP/1.0 [09:57:31]Method: POST [09:57:31]URL: /json_proto [09:57:31]Method is POST - this is cgi request [09:57:31]url: /json_proto [09:57:31]query_string will be loaded in cgi processing [09:57:31]execute_cgi json_proto POST (null) [09:57:31]execute_cgi path=json_proto method=POST [09:57:31]POST find Content-Length [09:57:31]Host: 172.17.63.3:8080 [09:57:31]Content-Length: 676 [09:57:31]Content-Type: application/json [09:57:31] [09:57:31]POST finish read [09:57:31]Found Content-Length = 676 [09:57:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99311", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:57:31]execute_script... [09:57: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)99311", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:57:31]POST & json_proto [09:57:31]process_json_proto [09:57:31]json parsed OK: [09:57:31]protocol is kg_v1.0 [09:57:31]action value=close_receipt [09:57:31]process_action close_receipt [09:57:31]cmd_close_receipt [09:57:31]MH_GetDate [09:57:31]Write to MH i2c: F0 00 00 C3 3E F0 [09:57:31]Write i2c OK [09:57:31]MH_I2C_Read... [09:57:31]Read from MH i2c: F0 [09:57:31]MH_I2C_Read... [09:57:31]Read from MH i2c: F0 09 00 [09:57:31]MH_I2C_Read... [09:57:31]Read from MH i2c: F0 09 00 C3 3E 00 90 0E 1E 67 50 D1 6C 64 0D [09:57:31]GetLastDocTimeStamp 1730022984 [09:57:31]current date 1730023056 [09:57:31]FM_GetShiftState [09:57:31]SAM_PROTO_GetShiftState [09:57:31]wFMCommunicate request_size=4 [09:57:31]MH_SAM_APDU [09:57:31]CAPDU: 80 13 01 00 [09:57:31]Write to MH i2c: E2 08 00 C4 3E 80 13 01 00 00 00 00 00 7F [09:57:31]Write i2c OK [09:57:31]MH_I2C_Read... [09:57:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:57:31]Read from MH i2c: E2 [09:57:31]MH_I2C_Read... [09:57:31]Read from MH i2c: E2 0E 00 [09:57:31]MH_I2C_Read... [09:57:31]Read from MH i2c: E2 0E 00 C4 3E 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 4C [09:57:31]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [09:57:31]wFMCommunicate OK [09:57:31]SAM_PROTO_GetShiftState done [09:57:31]FM_GetShiftState done [09:57:31]opened in 1729989044 [09:57:31]opened+sec_in_day 1730075444 [09:57:31]quantity*price = 50041 [09:57:31]sum+1 = 50042 [09:57:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 49 27.10.2024 09:57 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156498 ФПД: 205302719488319 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T095736&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156498&fm=205302719488319&tin=02508201610067®Number=0000000000091693&sum=50000 [09:57:32]StoreToDocumentArchive [09:57:32]shift 537 fd 156498 [09:57:32]save to /storage/0537/doc_00156498 [09:57:32]save last doc name /storage/0537/doc_00156498 to /storage/kkm_last_doc_name [09:57:32]save OK [09:57:32]Clear old archive folders... [09:57:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:57:32]tlvbuf is 0171EB00 [09:57:32]SAM_PROTO_ClearQueue [09:57:32]wFMCommunicate request_size=4 [09:57:32]MH_SAM_APDU [09:57:32]CAPDU: 80 09 00 00 [09:57:32]Write to MH i2c: E2 08 00 D1 3E 80 09 00 00 00 00 00 00 81 [09:57:32]Write i2c OK [09:57:32]MH_I2C_Read... [09:57:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:57:32]Read from MH i2c: E2 [09:57:32]MH_I2C_Read... [09:57:32]Read from MH i2c: E2 03 00 [09:57:32]MH_I2C_Read... [09:57:32]Read from MH i2c: E2 03 00 D1 3E 00 90 00 83 [09:57:32]RAPDU: 90 00 [09:57:32]wFMCommunicate OK [09:57:32]SAM_PROTO_ClearQueue done [09:57:32]KKMCreateOFDPacket [09:57:32]OFDProtocolAddRootSTLVToBuf [09:57:32]FM_MakeSignedData [09:57:32]FM_MakeSignedData [09:57:32]SAM_PROTO_SignData [09:57:32]wFMCommunicate request_size=4 [09:57:32]MH_SAM_APDU [09:57:32]CAPDU: 80 0D 01 02 [09:57:32]Write to MH i2c: E2 08 00 D2 3E 80 0D 01 02 00 00 00 00 89 [09:57:32]Write i2c OK [09:57:32]MH_I2C_Read... [09:57:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:57:32]Read from MH i2c: E2 [09:57:32]MH_I2C_Read... [09:57:32]Read from MH i2c: E2 03 00 [09:57:32]MH_I2C_Read... [09:57:32]Read from MH i2c: E2 03 00 D2 3E 00 90 00 84 [09:57:32]RAPDU: 90 00 [09:57:32]wFMCommunicate OK [09:57:32]wFMCommunicate request_size=255 [09:57:32]MH_SAM_APDU [09:57: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 90 0E 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 52 63 02 00 35 04 06 00 BA [09:57:32]Write to MH i2c: E2 02 01 D3 3E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 90 0E 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 52 63 02 00 35 04 06 00 BA 00 00 FD [09:57:32]Write i2c OK [09:57:32]MH_I2C_Read... [09:57:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:57:32]Read from MH i2c: E2 [09:57:32]MH_I2C_Read... [09:57:32]Read from MH i2c: E2 03 00 [09:57:32]MH_I2C_Read... [09:57:32]Read from MH i2c: E2 03 00 D3 3E 00 90 00 85 [09:57:32]RAPDU: 90 00 [09:57:32]wFMCommunicate OK [09:57:32]wFMCommunicate request_size=10 [09:57:32]MH_SAM_APDU [09:57:32]CAPDU: 80 0D 02 02 05 B8 C3 AA A1 3F [09:57:32]Write to MH i2c: E2 0D 00 D4 3E 80 0D 02 02 05 00 B8 C3 AA A1 3F 00 00 9B [09:57:32]Write i2c OK [09:57:32]MH_I2C_Read... [09:57:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:57:32]Read from MH i2c: E2 [09:57:32]MH_I2C_Read... [09:57:32]Read from MH i2c: E2 03 00 [09:57:32]MH_I2C_Read... [09:57:32]Read from MH i2c: E2 03 00 D4 3E 00 90 00 86 [09:57:32]RAPDU: 90 00 [09:57:32]wFMCommunicate OK [09:57:32]wFMCommunicate request_size=4 [09:57:32]MH_SAM_APDU [09:57:32]CAPDU: 80 0D 03 02 [09:57:32]Write to MH i2c: E2 08 00 D5 3E 80 0D 03 02 00 00 00 00 8E [09:57:32]Write i2c OK [09:57:32]MH_I2C_Read... [09:57:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:57:32]Read from MH i2c: E2 [09:57:32]MH_I2C_Read... [09:57:32]Read from MH i2c: E2 0B 00 [09:57:32]MH_I2C_Read... [09:57:32]Read from MH i2c: E2 0B 00 D5 3E 00 3F AC CF 2F B1 0F 73 93 90 00 3E [09:57:32]RAPDU: 3F AC CF 2F B1 0F 73 93 90 00 [09:57:32]wFMCommunicate OK [09:57:32]SAM_PROTO_SignData done [09:57:32]FM_MakeSignedData done [09:57:32]CreateOFDProtocolMessage [09:57:32]wFMCommunicate request_size=4 [09:57:32]MH_SAM_APDU [09:57:32]CAPDU: 80 11 00 00 [09:57:32]Write to MH i2c: E2 08 00 D6 3E 80 11 00 00 00 00 00 00 8E [09:57:32]Write i2c OK [09:57:32]MH_I2C_Read... [09:57:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:57:32]Read from MH i2c: E2 [09:57:32]MH_I2C_Read... [09:57:32]Read from MH i2c: E2 17 00 [09:57:32]MH_I2C_Read... [09:57:32]Read from MH i2c: E2 17 00 D6 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 E3 [09:57:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:57:32]wFMCommunicate OK [09:57:32]CreateOFDProtocolMessage done [09:57:32]OFDSenderStorePacket 156498 [09:57:32]StoreOFDPacket docnum=156498 [09:57:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 C6 16 07 01 1D 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 90 0E 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 52 63 02 00 35 04 06 00 BA B8 C3 AA A1 3F 3F AC CF 2F B1 0F 73 93 [09:57:32]CheckFolder [09:57:32]dirname=/storage/ofd_packets [09:57:32]CheckFolder done [09:57:32]ProducePacketName [09:57:32]name=ofd_packets/00156498 [09:57:32]NVStorageSaveData ofd_packets/00156498 [09:57:32]File name is /storage/ofd_packets/00156498 [09:57:32]Write 301 bytes [09:57:32]NVStorageSaveData done [09:57:32]OFDSenderStorePacket done [09:57:32]KKMCreateOFDPacket done [09:57:32]NVStorageSaveData kkm_last_timestamp [09:57:32]File name is /storage/kkm_last_timestamp [09:57:32]Write 4 bytes [09:57:32]NVStorageSaveData done [09:57:32]ExternCall_PrintAddStr [09:57:32]wPrintStart [09:57:32]Write to MH i2c: 01 00 00 D7 3E 15 [09:57:32]Write i2c OK [09:57:32]MH_I2C_Read... [09:57:32]Read from MH i2c: 01 [09:57:32]MH_I2C_Read... [09:57:32]Read from MH i2c: 01 07 00 [09:57:32]MH_I2C_Read... [09:57:32]Read from MH i2c: 01 07 00 D7 3E 00 00 00 00 00 FF 0F 2A [09:57:32]RasterBufferAndPrint [09:57:32]line Счет N : (1)99311 [09:57:32]line ИНН: 02508201610067 [09:57:32]line Контрольно-Кассовый Чек [09:57:32]line ПРОДАЖА [09:57:32]line ТРК (МРК, ГНК) : 31 [09:57:32]line Товар: 2710124130 [09:57:32]line Аи-92-К-5 [09:57:32]line 7.480 * 66.90 [09:57:32]line = 500.41 [09:57:32]line НДС 12% НСП 1% [09:57:32]line > о реализуемом товаре [09:57:32]line ОКРУГЛЕНИЕ: -0.41 [09:57:32]line ИТОГО: 500.00 [09:57:32]line Внесено: 500.00 [09:57:32]line СДАЧА: 0.00 [09:57:32]line НСП 1% : 4.43 [09:57:32]line НДС 12% : 53.14 [09:57:32]line Наличными: 500.00 [09:57:32]line Безнал.: 0.00 [09:57:32]line Место: АЗС № 143 "Партнер Нефть" [09:57:32]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [09:57:32]line СНО: Общий режим [09:57:32]line Чек 49 27.10.2024 09:57 [09:57:32]line Смена: 537 ФФД: 1.0 [09:57:32]line ЗНМ: 0300000096 [09:57:32]line РНМ: 0000000000091693 [09:57:32]line Версия ККМ: 001 [09:57:32]line ФМ: 0000000000871792 [09:57:32]line ФД: 156498 [09:57:32]line ФПД: 205302719488319 [09:57:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T095736&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156498&fm=205302719488319&tin=02508201610067®Number=0000000000091693&sum=50000 [09:57:32]OFD Sender: Processing packet 156498 [packets to send 31, broken 30] [09:57:32]ProducePacketName [09:57:32]name=ofd_packets/00156498 [09:57:32]OFD Sender: To server: pG, [09:57:32]CommunicateWithHost lk.salyk.kg:30040 [09:57:32]ConnectInit lk.salyk.kg [09:57:32]written 0, free lines is 4095 [09:57:33]Connected sock=10 [09:57:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 C6 16 07 01 1D 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 90 0E 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 52 63 02 00 35 04 06 00 BA B8 C3 AA A1 3F 3F AC CF 2F B1 0F 73 93 [09:57:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 1A E8 47 00 E5 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 31 37 39 32 10 04 04 00 52 63 02 00 F4 03 04 00 FF B3 1D 67 B6 04 01 00 00 A4 D8 17 89 E0 8D 7A A7 [09:57:33]CommunicateWithHost err = 0 [09:57:33]CheckOFDResponse [09:57:33]1017 (14) - 77093643461234 [09:57:33]1041 (16) - 0000000000871792 [09:57:33]1040 (4) - 156498 [09:57:33]1012 (4) - 27.10.2024 03:31 [09:57:33]1206 (1) - 0 [09:57:33]OFD Sender: Remove packet 156498 [09:57:33]ProducePacketName [09:57:33]name=ofd_packets/00156498 [09:57:33]NVStorageDeleteData [09:57:33]Write to MH i2c: 01 00 00 02 3F 41 [09:57:33]Write i2c OK [09:57:33]MH_I2C_Read... [09:57:33]Read from MH i2c: 01 [09:57:33]MH_I2C_Read... [09:57:33]Read from MH i2c: 01 07 00 [09:57:33]MH_I2C_Read... [09:57:33]Read from MH i2c: 01 07 00 02 3F 00 00 00 00 00 DC 0C 30 [09:57:33]RasterBufferAndPrint [09:57:33]line [09:57:33]line [09:57:33]line [09:57:33]line [09:57:33]line [09:57:33]written 0, free lines is 3298 [09:57:33]process_action close_receipt done [09:57:33]requested_data is exist [09:57:33]produce_requested_data [09:57:33]requested_item fm.sn is exist - process it [09:57:33]wFMCommunicate request_size=4 [09:57:33]MH_SAM_APDU [09:57:33]CAPDU: 80 11 00 00 [09:57:33]Write to MH i2c: E2 08 00 09 3F 80 11 00 00 00 00 00 00 C2 [09:57:33]Write i2c OK [09:57:33]MH_I2C_Read... [09:57:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:57:33]Read from MH i2c: E2 [09:57:33]MH_I2C_Read... [09:57:33]Read from MH i2c: E2 17 00 [09:57:33]MH_I2C_Read... [09:57:33]Read from MH i2c: E2 17 00 09 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 17 [09:57:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:57:33]wFMCommunicate OK [09:57:33]requested_item fd.num is exist - process it [09:57:33]SAM_PROTO_GetFieldsCounters [09:57:33]wFMCommunicate request_size=4 [09:57:33]MH_SAM_APDU [09:57:33]CAPDU: 80 13 00 00 [09:57:33]Write to MH i2c: E2 08 00 0A 3F 80 13 00 00 00 00 00 00 C5 [09:57:33]Write i2c OK [09:57:33]MH_I2C_Read... [09:57:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:57:33]Read from MH i2c: E2 [09:57:33]MH_I2C_Read... [09:57:33]Read from MH i2c: E2 62 00 [09:57:33]MH_I2C_Read... [09:57:33]Read from MH i2c: E2 62 00 0A 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 52 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 50 [09:57:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 52 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:57:33]wFMCommunicate OK [09:57:33]SAM_PROTO_GetFieldsCounters done [09:57:33]requested_item shift.num is exist - process it [09:57:33]requested_item shift.opened is exist - process it [09:57:33]req_shift_opened [09:57:33]FM_GetShiftState [09:57:33]SAM_PROTO_GetShiftState [09:57:33]wFMCommunicate request_size=4 [09:57:33]MH_SAM_APDU [09:57:33]CAPDU: 80 13 01 00 [09:57:33]Write to MH i2c: E2 08 00 0B 3F 80 13 01 00 00 00 00 00 C7 [09:57:33]Write i2c OK [09:57:33]MH_I2C_Read... [09:57:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:57:33]Read from MH i2c: E2 [09:57:33]MH_I2C_Read... [09:57:33]Read from MH i2c: E2 0E 00 [09:57:33]MH_I2C_Read... [09:57:33]Read from MH i2c: E2 0E 00 0B 3F 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 94 [09:57:33]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [09:57:33]wFMCommunicate OK [09:57:33]SAM_PROTO_GetShiftState done [09:57:33]FM_GetShiftState done [09:57:33]req_shift_opened done [09:57:33]requested_item shift.open_date is exist - process it [09:57:33]req_shift_open_date [09:57:33]req_shift_open_date done [09:57:33]produce_requested_data done [09:57:33]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156498,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [09:57:33]process_action_free close_receipt [09:57:33]json_value_free [09:57:33]json_value_free done [09:57:33]process_json_proto returns [09:57:33]Send response to host [09:57:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156498,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [09:57:33]free response buf [09:57:33]execute_script done [09:57:33]execute_script returns [09:57:33]free content buf [09:57:33]Sock 8.Close socket [09:57:33]Sock 8.Thread stoped [09:57:33]OFD Sender: No OFD packet to send [09:57:38]OFD Sender: No OFD packet to send [09:57:43]OFD Sender: No OFD packet to send [09:57:48]OFD Sender: No OFD packet to send [09:57:53]OFD Sender: No OFD packet to send [09:57:58]OFD Sender: No OFD packet to send [09:58:03]OFD Sender: No OFD packet to send [09:58:06]accept exits with 9 [09:58:06]New connection [09:58:06]New thread 3066977636 created [09:58:06]Thread 3066834276 joined [09:58:06]Waiting for new connection... [09:58:06] Sock 9.Parse request [09:58:06]Sock 9.Check first char [09:58:06]Sock 9.First char is OK [09:58:06]request: POST /json_proto HTTP/1.0 [09:58:06]Method: POST [09:58:06]URL: /json_proto [09:58:06]Method is POST - this is cgi request [09:58:06]url: /json_proto [09:58:06]query_string will be loaded in cgi processing [09:58:06]execute_cgi json_proto POST (null) [09:58:06]execute_cgi path=json_proto method=POST [09:58:06]POST find Content-Length [09:58:06]Host: 172.17.63.3:8080 [09:58:06]Content-Length: 678 [09:58:06]Content-Type: application/json [09:58:06] [09:58:06]POST finish read [09:58:06]Found Content-Length = 678 [09:58:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99312", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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:58:06]execute_script... [09:58: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)99312", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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:58:06]POST & json_proto [09:58:06]process_json_proto [09:58:06]json parsed OK: [09:58:06]protocol is kg_v1.0 [09:58:06]action value=close_receipt [09:58:06]process_action close_receipt [09:58:06]cmd_close_receipt [09:58:06]MH_GetDate [09:58:06]Write to MH i2c: F0 00 00 0C 3F 3A [09:58:06]Write i2c OK [09:58:06]MH_I2C_Read... [09:58:06]Read from MH i2c: F0 [09:58:06]MH_I2C_Read... [09:58:06]Read from MH i2c: F0 09 00 [09:58:06]MH_I2C_Read... [09:58:06]Read from MH i2c: F0 09 00 0C 3F 00 B3 0E 1E 67 50 D1 6C 64 7A [09:58:06]GetLastDocTimeStamp 1730023056 [09:58:06]current date 1730023091 [09:58:06]FM_GetShiftState [09:58:06]SAM_PROTO_GetShiftState [09:58:06]wFMCommunicate request_size=4 [09:58:06]MH_SAM_APDU [09:58:06]CAPDU: 80 13 01 00 [09:58:06]Write to MH i2c: E2 08 00 0D 3F 80 13 01 00 00 00 00 00 C9 [09:58:06]Write i2c OK [09:58:06]MH_I2C_Read... [09:58:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:58:06]Read from MH i2c: E2 [09:58:06]MH_I2C_Read... [09:58:06]Read from MH i2c: E2 0E 00 [09:58:06]MH_I2C_Read... [09:58:06]Read from MH i2c: E2 0E 00 0D 3F 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 96 [09:58:06]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [09:58:06]wFMCommunicate OK [09:58:06]SAM_PROTO_GetShiftState done [09:58:06]FM_GetShiftState done [09:58:06]opened in 1729989044 [09:58:06]opened+sec_in_day 1730075444 [09:58:06]quantity*price = 100050 [09:58:06]sum+1 = 100052 [09:58:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 50 27.10.2024 09:58 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156499 ФПД: 198180231456277 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T095811&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156499&fm=198180231456277&tin=02508201610067®Number=0000000000091693&sum=100000 [09:58:07]StoreToDocumentArchive [09:58:07]shift 537 fd 156499 [09:58:07]save to /storage/0537/doc_00156499 [09:58:07]save last doc name /storage/0537/doc_00156499 to /storage/kkm_last_doc_name [09:58:07]save OK [09:58:07]Clear old archive folders... [09:58:07]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:58:07]tlvbuf is 016C1440 [09:58:07]SAM_PROTO_ClearQueue [09:58:07]wFMCommunicate request_size=4 [09:58:07]MH_SAM_APDU [09:58:07]CAPDU: 80 09 00 00 [09:58:07]Write to MH i2c: E2 08 00 1A 3F 80 09 00 00 00 00 00 00 CB [09:58:07]Write i2c OK [09:58:07]MH_I2C_Read... [09:58:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:58:08]Read from MH i2c: E2 [09:58:08]MH_I2C_Read... [09:58:08]Read from MH i2c: E2 03 00 [09:58:08]MH_I2C_Read... [09:58:08]Read from MH i2c: E2 03 00 1A 3F 00 90 00 CD [09:58:08]RAPDU: 90 00 [09:58:08]wFMCommunicate OK [09:58:08]SAM_PROTO_ClearQueue done [09:58:08]KKMCreateOFDPacket [09:58:08]OFDProtocolAddRootSTLVToBuf [09:58:08]FM_MakeSignedData [09:58:08]FM_MakeSignedData [09:58:08]SAM_PROTO_SignData [09:58:08]wFMCommunicate request_size=4 [09:58:08]MH_SAM_APDU [09:58:08]CAPDU: 80 0D 01 02 [09:58:08]Write to MH i2c: E2 08 00 1B 3F 80 0D 01 02 00 00 00 00 D3 [09:58:08]Write i2c OK [09:58:08]MH_I2C_Read... [09:58:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:58:08]Read from MH i2c: E2 [09:58:08]MH_I2C_Read... [09:58:08]Read from MH i2c: E2 03 00 [09:58:08]MH_I2C_Read... [09:58:08]Read from MH i2c: E2 03 00 1B 3F 00 90 00 CE [09:58:08]RAPDU: 90 00 [09:58:08]wFMCommunicate OK [09:58:08]wFMCommunicate request_size=255 [09:58:08]MH_SAM_APDU [09:58:08]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 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 B3 0E 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 53 63 02 00 35 04 06 00 B4 3E 6E 4C [09:58:08]Write to MH i2c: E2 02 01 1C 3F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 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 B3 0E 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 53 63 02 00 35 04 06 00 B4 3E 6E 4C 00 00 54 [09:58:08]Write i2c OK [09:58:08]MH_I2C_Read... [09:58:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:58:08]Read from MH i2c: E2 [09:58:08]MH_I2C_Read... [09:58:08]Read from MH i2c: E2 03 00 [09:58:08]MH_I2C_Read... [09:58:08]Read from MH i2c: E2 03 00 1C 3F 00 90 00 CF [09:58:08]RAPDU: 90 00 [09:58:08]wFMCommunicate OK [09:58:08]wFMCommunicate request_size=7 [09:58:08]MH_SAM_APDU [09:58:08]CAPDU: 80 0D 02 02 02 26 15 [09:58:08]Write to MH i2c: E2 0A 00 1D 3F 80 0D 02 02 02 00 26 15 00 00 15 [09:58:08]Write i2c OK [09:58:08]MH_I2C_Read... [09:58:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:58:08]Read from MH i2c: E2 [09:58:08]MH_I2C_Read... [09:58:08]Read from MH i2c: E2 03 00 [09:58:08]MH_I2C_Read... [09:58:08]Read from MH i2c: E2 03 00 1D 3F 00 90 00 D0 [09:58:08]RAPDU: 90 00 [09:58:08]wFMCommunicate OK [09:58:08]wFMCommunicate request_size=4 [09:58:08]MH_SAM_APDU [09:58:08]CAPDU: 80 0D 03 02 [09:58:08]Write to MH i2c: E2 08 00 1E 3F 80 0D 03 02 00 00 00 00 D8 [09:58:08]Write i2c OK [09:58:08]MH_I2C_Read... [09:58:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:58:08]Read from MH i2c: E2 [09:58:08]MH_I2C_Read... [09:58:08]Read from MH i2c: E2 0B 00 [09:58:08]MH_I2C_Read... [09:58:08]Read from MH i2c: E2 0B 00 1E 3F 00 28 5D 89 CE 05 6F 88 2E 90 00 DF [09:58:08]RAPDU: 28 5D 89 CE 05 6F 88 2E 90 00 [09:58:08]wFMCommunicate OK [09:58:08]SAM_PROTO_SignData done [09:58:08]FM_MakeSignedData done [09:58:08]CreateOFDProtocolMessage [09:58:08]wFMCommunicate request_size=4 [09:58:08]MH_SAM_APDU [09:58:08]CAPDU: 80 11 00 00 [09:58:08]Write to MH i2c: E2 08 00 1F 3F 80 11 00 00 00 00 00 00 D8 [09:58:08]Write i2c OK [09:58:08]MH_I2C_Read... [09:58:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:58:08]Read from MH i2c: E2 [09:58:08]MH_I2C_Read... [09:58:08]Read from MH i2c: E2 17 00 [09:58:08]MH_I2C_Read... [09:58:08]Read from MH i2c: E2 17 00 1F 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 2D [09:58:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:58:08]wFMCommunicate OK [09:58:08]CreateOFDProtocolMessage done [09:58:08]OFDSenderStorePacket 156499 [09:58:08]StoreOFDPacket docnum=156499 [09:58:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 7E 94 04 01 54 5E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 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 B3 0E 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 53 63 02 00 35 04 06 00 B4 3E 6E 4C 26 15 28 5D 89 CE 05 6F 88 2E [09:58:08]CheckFolder [09:58:08]dirname=/storage/ofd_packets [09:58:08]CheckFolder done [09:58:08]ProducePacketName [09:58:08]name=ofd_packets/00156499 [09:58:08]NVStorageSaveData ofd_packets/00156499 [09:58:08]File name is /storage/ofd_packets/00156499 [09:58:08]Write 298 bytes [09:58:08]NVStorageSaveData done [09:58:08]OFDSenderStorePacket done [09:58:08]KKMCreateOFDPacket done [09:58:08]NVStorageSaveData kkm_last_timestamp [09:58:08]File name is /storage/kkm_last_timestamp [09:58:08]Write 4 bytes [09:58:08]NVStorageSaveData done [09:58:08]ExternCall_PrintAddStr [09:58:08]wPrintStart [09:58:08]Write to MH i2c: 01 00 00 20 3F 5F [09:58:08]Write i2c OK [09:58:08]MH_I2C_Read... [09:58:08]Read from MH i2c: 01 [09:58:08]MH_I2C_Read... [09:58:08]Read from MH i2c: 01 07 00 [09:58:08]MH_I2C_Read... [09:58:08]Read from MH i2c: 01 07 00 20 3F 00 00 00 00 00 FF 0F 74 [09:58:08]RasterBufferAndPrint [09:58:08]line Счет N : (1)99312 [09:58:08]line ИНН: 02508201610067 [09:58:08]line Контрольно-Кассовый Чек [09:58:08]line ПРОДАЖА [09:58:08]line ТРК (МРК, ГНК) : 32 [09:58:08]line Товар: 2710194210 [09:58:08]line ДТ-К-5 [09:58:08]line 13.130 * 76.20 [09:58:08]line = 1000.51 [09:58:08]line НДС 12% НСП 1% [09:58:08]line > о реализуемом товаре [09:58:08]line ОКРУГЛЕНИЕ: -0.51 [09:58:08]line ИТОГО: 1000.00 [09:58:08]line Внесено: 1000.00 [09:58:08]line СДАЧА: 0.00 [09:58:08]line НСП 1% : 8.85 [09:58:08]line НДС 12% : 106.25 [09:58:08]line Наличными: 1000.00 [09:58:08]line Безнал.: 0.00 [09:58:08]line Место: АЗС № 143 "Партнер Нефть" [09:58:08]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [09:58:08]line СНО: Общий режим [09:58:08]line Чек 50 27.10.2024 09:58 [09:58:08]line Смена: 537 ФФД: 1.0 [09:58:08]line ЗНМ: 0300000096 [09:58:08]line РНМ: 0000000000091693 [09:58:08]line Версия ККМ: 001 [09:58:08]line ФМ: 0000000000871792 [09:58:08]line ФД: 156499 [09:58:08]line ФПД: 198180231456277 [09:58:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T095811&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156499&fm=198180231456277&tin=02508201610067®Number=0000000000091693&sum=100000 [09:58:08]OFD Sender: Processing packet 156499 [packets to send 31, broken 30] [09:58:08]ProducePacketName [09:58:08]name=ofd_packets/00156499 [09:58:08]OFD Sender: To server: pG, [09:58:08]CommunicateWithHost lk.salyk.kg:30040 [09:58:08]ConnectInit lk.salyk.kg [09:58:08]written 0, free lines is 4095 [09:58:08]Connected sock=10 [09:58:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 7E 94 04 01 54 5E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 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 B3 0E 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 53 63 02 00 35 04 06 00 B4 3E 6E 4C 26 15 28 5D 89 CE 05 6F 88 2E [09:58:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 B0 AA 47 00 CD 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 53 63 02 00 F4 03 04 00 23 B4 1D 67 B6 04 01 00 00 F9 B0 BA 3E 62 B2 8E E2 [09:58:09]CommunicateWithHost err = 0 [09:58:09]CheckOFDResponse [09:58:09]1017 (14) - 77093643461234 [09:58:09]1041 (16) - 0000000000871792 [09:58:09]1040 (4) - 156499 [09:58:09]1012 (4) - 27.10.2024 03:31 [09:58:09]1206 (1) - 0 [09:58:09]OFD Sender: Remove packet 156499 [09:58:09]ProducePacketName [09:58:09]name=ofd_packets/00156499 [09:58:09]NVStorageDeleteData [09:58:09]Write to MH i2c: 01 00 00 4B 3F 8A [09:58:09]Write i2c OK [09:58:09]MH_I2C_Read... [09:58:09]Read from MH i2c: 01 [09:58:09]MH_I2C_Read... [09:58:09]Read from MH i2c: 01 07 00 [09:58:09]MH_I2C_Read... [09:58:09]Read from MH i2c: 01 07 00 4B 3F 00 00 00 00 00 D9 0C 76 [09:58:09]RasterBufferAndPrint [09:58:09]line [09:58:09]line [09:58:09]line [09:58:09]line [09:58:09]line [09:58:09]written 0, free lines is 3296 [09:58:09]process_action close_receipt done [09:58:09]requested_data is exist [09:58:09]produce_requested_data [09:58:09]requested_item fm.sn is exist - process it [09:58:09]wFMCommunicate request_size=4 [09:58:09]MH_SAM_APDU [09:58:09]CAPDU: 80 11 00 00 [09:58:09]Write to MH i2c: E2 08 00 52 3F 80 11 00 00 00 00 00 00 0B [09:58:09]Write i2c OK [09:58:09]MH_I2C_Read... [09:58:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:58:09]Read from MH i2c: E2 [09:58:09]MH_I2C_Read... [09:58:09]Read from MH i2c: E2 17 00 [09:58:09]MH_I2C_Read... [09:58:09]Read from MH i2c: E2 17 00 52 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 60 [09:58:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [09:58:09]wFMCommunicate OK [09:58:09]requested_item fd.num is exist - process it [09:58:09]SAM_PROTO_GetFieldsCounters [09:58:09]wFMCommunicate request_size=4 [09:58:09]MH_SAM_APDU [09:58:09]CAPDU: 80 13 00 00 [09:58:09]Write to MH i2c: E2 08 00 53 3F 80 13 00 00 00 00 00 00 0E [09:58:09]Write i2c OK [09:58:09]MH_I2C_Read... [09:58:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:58:09]Read from MH i2c: E2 [09:58:09]MH_I2C_Read... [09:58:09]Read from MH i2c: E2 62 00 [09:58:09]MH_I2C_Read... [09:58:09]Read from MH i2c: E2 62 00 53 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 53 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 9D [09:58:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 53 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:58:09]wFMCommunicate OK [09:58:09]SAM_PROTO_GetFieldsCounters done [09:58:09]requested_item shift.num is exist - process it [09:58:09]requested_item shift.opened is exist - process it [09:58:09]req_shift_opened [09:58:09]FM_GetShiftState [09:58:09]SAM_PROTO_GetShiftState [09:58:09]wFMCommunicate request_size=4 [09:58:09]MH_SAM_APDU [09:58:09]CAPDU: 80 13 01 00 [09:58:09]Write to MH i2c: E2 08 00 54 3F 80 13 01 00 00 00 00 00 10 [09:58:09]Write i2c OK [09:58:09]MH_I2C_Read... [09:58:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:58:09]Read from MH i2c: E2 [09:58:09]MH_I2C_Read... [09:58:09]Read from MH i2c: E2 0E 00 [09:58:09]MH_I2C_Read... [09:58:09]Read from MH i2c: E2 0E 00 54 3F 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 DD [09:58:09]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [09:58:09]wFMCommunicate OK [09:58:09]SAM_PROTO_GetShiftState done [09:58:09]FM_GetShiftState done [09:58:09]req_shift_opened done [09:58:09]requested_item shift.open_date is exist - process it [09:58:09]req_shift_open_date [09:58:09]req_shift_open_date done [09:58:09]produce_requested_data done [09:58:09]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156499,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [09:58:09]process_action_free close_receipt [09:58:09]json_value_free [09:58:09]json_value_free done [09:58:09]process_json_proto returns [09:58:09]Send response to host [09:58:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156499,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [09:58:09]free response buf [09:58:09]execute_script done [09:58:09]execute_script returns [09:58:09]free content buf [09:58:09]Sock 9.Close socket [09:58:09]Sock 9.Thread stoped [09:58:09]OFD Sender: No OFD packet to send [09:58:14]OFD Sender: No OFD packet to send [09:58:19]OFD Sender: No OFD packet to send [09:58:24]OFD Sender: No OFD packet to send [09:58:29]OFD Sender: No OFD packet to send [09:58:34]OFD Sender: No OFD packet to send [09:58:39]OFD Sender: No OFD packet to send [09:58:44]OFD Sender: No OFD packet to send [09:58:49]OFD Sender: No OFD packet to send [09:58:54]OFD Sender: No OFD packet to send [09:58:59]OFD Sender: No OFD packet to send [09:59:04]OFD Sender: No OFD packet to send [09:59:09]OFD Sender: No OFD packet to send [09:59:14]OFD Sender: No OFD packet to send [09:59:19]OFD Sender: No OFD packet to send [09:59:24]OFD Sender: No OFD packet to send [09:59:29]OFD Sender: No OFD packet to send [09:59:34]OFD Sender: No OFD packet to send [09:59:39]OFD Sender: No OFD packet to send [09:59:44]OFD Sender: No OFD packet to send [09:59:49]OFD Sender: No OFD packet to send [09:59:54]OFD Sender: No OFD packet to send [09:59:59]OFD Sender: No OFD packet to send [10:00:04]OFD Sender: No OFD packet to send [10:00:09]OFD Sender: No OFD packet to send [10:00:14]OFD Sender: No OFD packet to send [10:00:19]OFD Sender: No OFD packet to send [10:00:24]OFD Sender: No OFD packet to send [10:00:29]OFD Sender: No OFD packet to send [10:00:34]OFD Sender: No OFD packet to send [10:00:39]OFD Sender: No OFD packet to send [10:00:44]OFD Sender: No OFD packet to send [10:00:49]OFD Sender: No OFD packet to send [10:00:54]OFD Sender: No OFD packet to send [10:00:59]OFD Sender: No OFD packet to send [10:01:04]OFD Sender: No OFD packet to send [10:01:09]OFD Sender: No OFD packet to send [10:01:14]OFD Sender: No OFD packet to send [10:01:19]OFD Sender: No OFD packet to send [10:01:24]OFD Sender: No OFD packet to send [10:01:29]OFD Sender: No OFD packet to send [10:01:34]OFD Sender: No OFD packet to send [10:01:39]OFD Sender: No OFD packet to send [10:01:44]OFD Sender: No OFD packet to send [10:01:49]OFD Sender: No OFD packet to send [10:01:54]OFD Sender: No OFD packet to send [10:01:59]OFD Sender: No OFD packet to send [10:02:04]OFD Sender: No OFD packet to send [10:02:09]OFD Sender: No OFD packet to send [10:02:14]OFD Sender: No OFD packet to send [10:02:19]OFD Sender: No OFD packet to send [10:02:24]OFD Sender: No OFD packet to send [10:02:25]accept exits with 8 [10:02:25]New connection [10:02:25]New thread 3066834276 created [10:02:25]Thread 3066977636 joined [10:02:25]Waiting for new connection... [10:02:25] Sock 8.Parse request [10:02:25]Sock 8.Check first char [10:02:25]Sock 8.First char is OK [10:02:25]request: POST /json_proto HTTP/1.0 [10:02:25]Method: POST [10:02:25]URL: /json_proto [10:02:25]Method is POST - this is cgi request [10:02:25]url: /json_proto [10:02:25]query_string will be loaded in cgi processing [10:02:25]execute_cgi json_proto POST (null) [10:02:25]execute_cgi path=json_proto method=POST [10:02:25]POST find Content-Length [10:02:25]Host: 172.17.63.3:8080 [10:02:25]Content-Length: 678 [10:02:25]Content-Type: application/json [10:02:25] [10:02:25]POST finish read [10:02:25]Found Content-Length = 678 [10:02:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99313", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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:02:25]execute_script... [10:02: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)99313", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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:02:25]POST & json_proto [10:02:25]process_json_proto [10:02:25]json parsed OK: [10:02:25]protocol is kg_v1.0 [10:02:25]action value=close_receipt [10:02:25]process_action close_receipt [10:02:25]cmd_close_receipt [10:02:25]MH_GetDate [10:02:25]Write to MH i2c: F0 00 00 55 3F 83 [10:02:25]Write i2c OK [10:02:25]MH_I2C_Read... [10:02:25]Read from MH i2c: F0 [10:02:25]MH_I2C_Read... [10:02:25]Read from MH i2c: F0 09 00 [10:02:25]MH_I2C_Read... [10:02:25]Read from MH i2c: F0 09 00 55 3F 00 B7 0F 1E 67 50 D1 6C 64 C8 [10:02:25]GetLastDocTimeStamp 1730023091 [10:02:25]current date 1730023351 [10:02:25]FM_GetShiftState [10:02:25]SAM_PROTO_GetShiftState [10:02:25]wFMCommunicate request_size=4 [10:02:25]MH_SAM_APDU [10:02:25]CAPDU: 80 13 01 00 [10:02:25]Write to MH i2c: E2 08 00 56 3F 80 13 01 00 00 00 00 00 12 [10:02:25]Write i2c OK [10:02:25]MH_I2C_Read... [10:02:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:26]Read from MH i2c: E2 [10:02:26]MH_I2C_Read... [10:02:26]Read from MH i2c: E2 0E 00 [10:02:26]MH_I2C_Read... [10:02:26]Read from MH i2c: E2 0E 00 56 3F 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 DF [10:02:26]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [10:02:26]wFMCommunicate OK [10:02:26]SAM_PROTO_GetShiftState done [10:02:26]FM_GetShiftState done [10:02:26]opened in 1729989044 [10:02:26]opened+sec_in_day 1730075444 [10:02:26]quantity*price = 100050 [10:02:26]sum+1 = 100052 [10:02:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 51 27.10.2024 10:02 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156500 ФПД: 153367751009275 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T100231&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156500&fm=153367751009275&tin=02508201610067®Number=0000000000091693&sum=100000 [10:02:27]StoreToDocumentArchive [10:02:27]shift 537 fd 156500 [10:02:27]save to /storage/0537/doc_00156500 [10:02:27]save last doc name /storage/0537/doc_00156500 to /storage/kkm_last_doc_name [10:02:27]save OK [10:02:27]Clear old archive folders... [10:02:27]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:02:27]tlvbuf is B6DAE450 [10:02:27]SAM_PROTO_ClearQueue [10:02:27]wFMCommunicate request_size=4 [10:02:27]MH_SAM_APDU [10:02:27]CAPDU: 80 09 00 00 [10:02:27]Write to MH i2c: E2 08 00 63 3F 80 09 00 00 00 00 00 00 14 [10:02:27]Write i2c OK [10:02:27]MH_I2C_Read... [10:02:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:02:27]Read from MH i2c: E2 [10:02:27]MH_I2C_Read... [10:02:27]Read from MH i2c: E2 03 00 [10:02:27]MH_I2C_Read... [10:02:27]Read from MH i2c: E2 03 00 63 3F 00 90 00 16 [10:02:27]RAPDU: 90 00 [10:02:27]wFMCommunicate OK [10:02:27]SAM_PROTO_ClearQueue done [10:02:27]KKMCreateOFDPacket [10:02:27]OFDProtocolAddRootSTLVToBuf [10:02:27]FM_MakeSignedData [10:02:27]FM_MakeSignedData [10:02:27]SAM_PROTO_SignData [10:02:27]wFMCommunicate request_size=4 [10:02:27]MH_SAM_APDU [10:02:27]CAPDU: 80 0D 01 02 [10:02:27]Write to MH i2c: E2 08 00 64 3F 80 0D 01 02 00 00 00 00 1C [10:02:27]Write i2c OK [10:02:27]MH_I2C_Read... [10:02:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:02:27]Read from MH i2c: E2 [10:02:27]MH_I2C_Read... [10:02:27]Read from MH i2c: E2 03 00 [10:02:27]MH_I2C_Read... [10:02:27]Read from MH i2c: E2 03 00 64 3F 00 90 00 17 [10:02:27]RAPDU: 90 00 [10:02:27]wFMCommunicate OK [10:02:27]wFMCommunicate request_size=255 [10:02:27]MH_SAM_APDU [10:02:27]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 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 B7 0F 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 54 63 02 00 35 04 06 00 8B 7C B6 51 [10:02:27]Write to MH i2c: E2 02 01 65 3F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 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 B7 0F 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 54 63 02 00 35 04 06 00 8B 7C B6 51 00 00 06 [10:02:27]Write i2c OK [10:02:27]MH_I2C_Read... [10:02:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:02:27]Read from MH i2c: E2 [10:02:27]MH_I2C_Read... [10:02:27]Read from MH i2c: E2 03 00 [10:02:27]MH_I2C_Read... [10:02:27]Read from MH i2c: E2 03 00 65 3F 00 90 00 18 [10:02:27]RAPDU: 90 00 [10:02:27]wFMCommunicate OK [10:02:27]wFMCommunicate request_size=7 [10:02:27]MH_SAM_APDU [10:02:27]CAPDU: 80 0D 02 02 02 A3 FB [10:02:27]Write to MH i2c: E2 0A 00 66 3F 80 0D 02 02 02 00 A3 FB 00 00 C1 [10:02:27]Write i2c OK [10:02:27]MH_I2C_Read... [10:02:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:02:27]Read from MH i2c: E2 [10:02:27]MH_I2C_Read... [10:02:27]Read from MH i2c: E2 03 00 [10:02:27]MH_I2C_Read... [10:02:27]Read from MH i2c: E2 03 00 66 3F 00 90 00 19 [10:02:27]RAPDU: 90 00 [10:02:27]wFMCommunicate OK [10:02:27]wFMCommunicate request_size=4 [10:02:27]MH_SAM_APDU [10:02:27]CAPDU: 80 0D 03 02 [10:02:27]Write to MH i2c: E2 08 00 67 3F 80 0D 03 02 00 00 00 00 21 [10:02:27]Write i2c OK [10:02:27]MH_I2C_Read... [10:02:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:02:27]Read from MH i2c: E2 [10:02:27]MH_I2C_Read... [10:02:27]Read from MH i2c: E2 0B 00 [10:02:27]MH_I2C_Read... [10:02:27]Read from MH i2c: E2 0B 00 67 3F 00 0C 26 CF 5B C3 B8 9A BC 90 00 4F [10:02:27]RAPDU: 0C 26 CF 5B C3 B8 9A BC 90 00 [10:02:27]wFMCommunicate OK [10:02:27]SAM_PROTO_SignData done [10:02:27]FM_MakeSignedData done [10:02:27]CreateOFDProtocolMessage [10:02:27]wFMCommunicate request_size=4 [10:02:27]MH_SAM_APDU [10:02:27]CAPDU: 80 11 00 00 [10:02:27]Write to MH i2c: E2 08 00 68 3F 80 11 00 00 00 00 00 00 21 [10:02:27]Write i2c OK [10:02:27]MH_I2C_Read... [10:02:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:27]Read from MH i2c: E2 [10:02:27]MH_I2C_Read... [10:02:27]Read from MH i2c: E2 17 00 [10:02:27]MH_I2C_Read... [10:02:27]Read from MH i2c: E2 17 00 68 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 76 [10:02:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:02:27]wFMCommunicate OK [10:02:27]CreateOFDProtocolMessage done [10:02:27]OFDSenderStorePacket 156500 [10:02:27]StoreOFDPacket docnum=156500 [10:02:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 3F 7A 04 01 92 7B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 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 B7 0F 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 54 63 02 00 35 04 06 00 8B 7C B6 51 A3 FB 0C 26 CF 5B C3 B8 9A BC [10:02:27]CheckFolder [10:02:27]dirname=/storage/ofd_packets [10:02:27]CheckFolder done [10:02:27]ProducePacketName [10:02:27]name=ofd_packets/00156500 [10:02:27]NVStorageSaveData ofd_packets/00156500 [10:02:27]File name is /storage/ofd_packets/00156500 [10:02:27]Write 298 bytes [10:02:27]NVStorageSaveData done [10:02:27]OFDSenderStorePacket done [10:02:27]KKMCreateOFDPacket done [10:02:27]NVStorageSaveData kkm_last_timestamp [10:02:27]File name is /storage/kkm_last_timestamp [10:02:27]Write 4 bytes [10:02:27]NVStorageSaveData done [10:02:27]ExternCall_PrintAddStr [10:02:27]wPrintStart [10:02:27]Write to MH i2c: 01 00 00 69 3F A8 [10:02:27]Write i2c OK [10:02:27]MH_I2C_Read... [10:02:27]Read from MH i2c: 01 [10:02:27]MH_I2C_Read... [10:02:27]Read from MH i2c: 01 07 00 [10:02:27]MH_I2C_Read... [10:02:27]Read from MH i2c: 01 07 00 69 3F 00 00 00 00 00 FF 0F BD [10:02:27]RasterBufferAndPrint [10:02:27]line Счет N : (1)99313 [10:02:27]line ИНН: 02508201610067 [10:02:27]line Контрольно-Кассовый Чек [10:02:27]line ПРОДАЖА [10:02:27]line ТРК (МРК, ГНК) : 32 [10:02:27]line Товар: 2710194210 [10:02:27]line ДТ-К-5 [10:02:27]line 13.130 * 76.20 [10:02:27]line = 1000.51 [10:02:27]line НДС 12% НСП 1% [10:02:27]line > о реализуемом товаре [10:02:27]line ОКРУГЛЕНИЕ: -0.51 [10:02:27]line ИТОГО: 1000.00 [10:02:27]line Внесено: 1000.00 [10:02:27]line СДАЧА: 0.00 [10:02:27]line НСП 1% : 8.85 [10:02:27]line НДС 12% : 106.25 [10:02:27]line Наличными: 1000.00 [10:02:27]line Безнал.: 0.00 [10:02:27]line Место: АЗС № 143 "Партнер Нефть" [10:02:27]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [10:02:27]line СНО: Общий режим [10:02:27]line Чек 51 27.10.2024 10:02 [10:02:27]line Смена: 537 ФФД: 1.0 [10:02:27]line ЗНМ: 0300000096 [10:02:27]line РНМ: 0000000000091693 [10:02:27]line Версия ККМ: 001 [10:02:27]line ФМ: 0000000000871792 [10:02:27]line ФД: 156500 [10:02:27]line ФПД: 153367751009275 [10:02:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T100231&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156500&fm=153367751009275&tin=02508201610067®Number=0000000000091693&sum=100000 [10:02:27]OFD Sender: Processing packet 156500 [packets to send 31, broken 30] [10:02:27]ProducePacketName [10:02:27]name=ofd_packets/00156500 [10:02:27]OFD Sender: To server: pG, [10:02:27]CommunicateWithHost lk.salyk.kg:30040 [10:02:27]ConnectInit lk.salyk.kg [10:02:27]written 0, free lines is 4095 [10:02:28]Connected sock=9 [10:02:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 3F 7A 04 01 92 7B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 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 B7 0F 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 54 63 02 00 35 04 06 00 8B 7C B6 51 A3 FB 0C 26 CF 5B C3 B8 9A BC [10:02:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 61 4B 47 00 AA 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 31 37 39 32 10 04 04 00 54 63 02 00 F4 03 04 00 26 B5 1D 67 B6 04 01 00 00 C1 F5 12 B5 4B B2 47 36 [10:02:28]CommunicateWithHost err = 0 [10:02:28]CheckOFDResponse [10:02:28]1017 (14) - 77093643461234 [10:02:28]1041 (16) - 0000000000871792 [10:02:28]1040 (4) - 156500 [10:02:28]1012 (4) - 27.10.2024 03:36 [10:02:28]1206 (1) - 0 [10:02:28]OFD Sender: Remove packet 156500 [10:02:28]ProducePacketName [10:02:28]name=ofd_packets/00156500 [10:02:28]NVStorageDeleteData [10:02:28]Write to MH i2c: 01 00 00 94 3F D3 [10:02:28]Write i2c OK [10:02:28]MH_I2C_Read... [10:02:28]Read from MH i2c: 01 [10:02:28]MH_I2C_Read... [10:02:28]Read from MH i2c: 01 07 00 [10:02:28]MH_I2C_Read... [10:02:28]Read from MH i2c: 01 07 00 94 3F 00 00 00 00 00 D0 0C B6 [10:02:28]RasterBufferAndPrint [10:02:28]line [10:02:28]line [10:02:28]line [10:02:28]line [10:02:28]line [10:02:28]written 0, free lines is 3287 [10:02:28]process_action close_receipt done [10:02:28]requested_data is exist [10:02:28]produce_requested_data [10:02:28]requested_item fm.sn is exist - process it [10:02:28]wFMCommunicate request_size=4 [10:02:28]MH_SAM_APDU [10:02:28]CAPDU: 80 11 00 00 [10:02:28]Write to MH i2c: E2 08 00 9B 3F 80 11 00 00 00 00 00 00 54 [10:02:28]Write i2c OK [10:02:28]MH_I2C_Read... [10:02:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:28]Read from MH i2c: E2 [10:02:28]MH_I2C_Read... [10:02:28]Read from MH i2c: E2 17 00 [10:02:28]MH_I2C_Read... [10:02:28]Read from MH i2c: E2 17 00 9B 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 A9 [10:02:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:02:28]wFMCommunicate OK [10:02:28]requested_item fd.num is exist - process it [10:02:28]SAM_PROTO_GetFieldsCounters [10:02:28]wFMCommunicate request_size=4 [10:02:28]MH_SAM_APDU [10:02:28]CAPDU: 80 13 00 00 [10:02:28]Write to MH i2c: E2 08 00 9C 3F 80 13 00 00 00 00 00 00 57 [10:02:28]Write i2c OK [10:02:28]MH_I2C_Read... [10:02:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:02:28]Read from MH i2c: E2 [10:02:28]MH_I2C_Read... [10:02:28]Read from MH i2c: E2 62 00 [10:02:28]MH_I2C_Read... [10:02:28]Read from MH i2c: E2 62 00 9C 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 54 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 EA [10: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 54 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:02:28]wFMCommunicate OK [10:02:28]SAM_PROTO_GetFieldsCounters done [10:02:28]requested_item shift.num is exist - process it [10:02:28]requested_item shift.opened is exist - process it [10:02:28]req_shift_opened [10:02:28]FM_GetShiftState [10:02:28]SAM_PROTO_GetShiftState [10:02:28]wFMCommunicate request_size=4 [10:02:28]MH_SAM_APDU [10:02:28]CAPDU: 80 13 01 00 [10:02:28]Write to MH i2c: E2 08 00 9D 3F 80 13 01 00 00 00 00 00 59 [10:02:28]Write i2c OK [10:02:28]MH_I2C_Read... [10:02:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:28]Read from MH i2c: E2 [10:02:28]MH_I2C_Read... [10:02:28]Read from MH i2c: E2 0E 00 [10:02:28]MH_I2C_Read... [10:02:28]Read from MH i2c: E2 0E 00 9D 3F 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 26 [10:02:28]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [10:02:28]wFMCommunicate OK [10:02:28]SAM_PROTO_GetShiftState done [10:02:28]FM_GetShiftState done [10:02:28]req_shift_opened done [10:02:28]requested_item shift.open_date is exist - process it [10:02:28]req_shift_open_date [10:02:28]req_shift_open_date done [10:02:28]produce_requested_data done [10:02:28]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156500,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [10:02:28]process_action_free close_receipt [10:02:28]json_value_free [10:02:28]json_value_free done [10:02:28]process_json_proto returns [10:02:28]Send response to host [10:02:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156500,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [10:02:28]free response buf [10:02:28]execute_script done [10:02:28]execute_script returns [10:02:28]free content buf [10:02:28]Sock 8.Close socket [10:02:28]Sock 8.Thread stoped [10:02:28]OFD Sender: No OFD packet to send [10:02:33]OFD Sender: No OFD packet to send [10:02:38]OFD Sender: No OFD packet to send [10:02:43]accept exits with 10 [10:02:43]New connection [10:02:43]New thread 3066977636 created [10:02:43]Thread 3066834276 joined [10:02:43]Waiting for new connection... [10:02:43] Sock 10.Parse request [10:02:43]Sock 10.Check first char [10:02:43]Sock 10.First char is OK [10:02:43]request: POST /json_proto HTTP/1.0 [10:02:43]Method: POST [10:02:43]URL: /json_proto [10:02:43]Method is POST - this is cgi request [10:02:43]url: /json_proto [10:02:43]query_string will be loaded in cgi processing [10:02:43]execute_cgi json_proto POST (null) [10:02:43]execute_cgi path=json_proto method=POST [10:02:43]POST find Content-Length [10:02:43]Host: 172.17.63.3:8080 [10:02:43]Content-Length: 676 [10:02:43]Content-Type: application/json [10:02:43] [10:02:43]POST finish read [10:02:43]Found Content-Length = 676 [10:02:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99314", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "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:02:43]execute_script... [10:02: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)99314", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "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:02:43]POST & json_proto [10:02:43]process_json_proto [10:02:43]json parsed OK: [10:02:43]protocol is kg_v1.0 [10:02:43]action value=close_receipt [10:02:43]process_action close_receipt [10:02:43]cmd_close_receipt [10:02:43]MH_GetDate [10:02:43]Write to MH i2c: F0 00 00 9E 3F CC [10:02:43]Write i2c OK [10:02:43]MH_I2C_Read... [10:02:43]Read from MH i2c: F0 [10:02:43]MH_I2C_Read... [10:02:43]Read from MH i2c: F0 09 00 [10:02:43]MH_I2C_Read... [10:02:43]Read from MH i2c: F0 09 00 9E 3F 00 C8 0F 1E 67 50 D1 6C 64 22 [10:02:43]GetLastDocTimeStamp 1730023351 [10:02:43]current date 1730023368 [10:02:43]FM_GetShiftState [10:02:43]SAM_PROTO_GetShiftState [10:02:43]wFMCommunicate request_size=4 [10:02:43]MH_SAM_APDU [10:02:43]CAPDU: 80 13 01 00 [10:02:43]Write to MH i2c: E2 08 00 9F 3F 80 13 01 00 00 00 00 00 5B [10:02:43]Write i2c OK [10:02:43]MH_I2C_Read... [10:02:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:43]Read from MH i2c: E2 [10:02:43]MH_I2C_Read... [10:02:43]Read from MH i2c: E2 0E 00 [10:02:43]MH_I2C_Read... [10:02:43]Read from MH i2c: E2 0E 00 9F 3F 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 28 [10:02:43]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [10:02:43]wFMCommunicate OK [10:02:43]SAM_PROTO_GetShiftState done [10:02:43]FM_GetShiftState done [10:02:43]opened in 1729989044 [10:02:43]opened+sec_in_day 1730075444 [10:02:43]quantity*price = 60009 [10:02:43]sum+1 = 60010 [10:02:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 52 27.10.2024 10:02 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156501 ФПД: 235932698350550 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T100248&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156501&fm=235932698350550&tin=02508201610067®Number=0000000000091693&sum=60000 [10:02:44]StoreToDocumentArchive [10:02:44]shift 537 fd 156501 [10:02:44]save to /storage/0537/doc_00156501 [10:02:44]save last doc name /storage/0537/doc_00156501 to /storage/kkm_last_doc_name [10:02:44]save OK [10:02:44]Clear old archive folders... [10:02:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:02:44]tlvbuf is B6EE08A0 [10:02:44]SAM_PROTO_ClearQueue [10:02:44]wFMCommunicate request_size=4 [10:02:44]MH_SAM_APDU [10:02:44]CAPDU: 80 09 00 00 [10:02:44]Write to MH i2c: E2 08 00 AC 3F 80 09 00 00 00 00 00 00 5D [10:02:44]Write i2c OK [10:02:44]MH_I2C_Read... [10:02:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:02:44]Read from MH i2c: E2 [10:02:44]MH_I2C_Read... [10:02:44]Read from MH i2c: E2 03 00 [10:02:44]MH_I2C_Read... [10:02:44]Read from MH i2c: E2 03 00 AC 3F 00 90 00 5F [10:02:44]RAPDU: 90 00 [10:02:44]wFMCommunicate OK [10:02:44]SAM_PROTO_ClearQueue done [10:02:44]KKMCreateOFDPacket [10:02:44]OFDProtocolAddRootSTLVToBuf [10:02:44]FM_MakeSignedData [10:02:44]FM_MakeSignedData [10:02:44]SAM_PROTO_SignData [10:02:44]wFMCommunicate request_size=4 [10:02:44]MH_SAM_APDU [10:02:44]CAPDU: 80 0D 01 02 [10:02:44]Write to MH i2c: E2 08 00 AD 3F 80 0D 01 02 00 00 00 00 65 [10:02:44]Write i2c OK [10:02:44]MH_I2C_Read... [10:02:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:02:44]Read from MH i2c: E2 [10:02:44]MH_I2C_Read... [10:02:44]Read from MH i2c: E2 03 00 [10:02:44]MH_I2C_Read... [10:02:44]Read from MH i2c: E2 03 00 AD 3F 00 90 00 60 [10:02:44]RAPDU: 90 00 [10:02:44]wFMCommunicate OK [10:02:44]wFMCommunicate request_size=255 [10:02:44]MH_SAM_APDU [10:02: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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 34 00 00 00 F4 03 04 00 C8 0F 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 55 63 02 00 35 04 06 00 D6 [10:02:44]Write to MH i2c: E2 02 01 AE 3F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 34 00 00 00 F4 03 04 00 C8 0F 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 55 63 02 00 35 04 06 00 D6 00 00 11 [10:02:44]Write i2c OK [10:02:44]MH_I2C_Read... [10:02:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:02:44]Read from MH i2c: E2 [10:02:44]MH_I2C_Read... [10:02:44]Read from MH i2c: E2 03 00 [10:02:44]MH_I2C_Read... [10:02:44]Read from MH i2c: E2 03 00 AE 3F 00 90 00 61 [10:02:44]RAPDU: 90 00 [10:02:44]wFMCommunicate OK [10:02:44]wFMCommunicate request_size=10 [10:02:44]MH_SAM_APDU [10:02:44]CAPDU: 80 0D 02 02 05 94 5C AD 13 D6 [10:02:44]Write to MH i2c: E2 0D 00 AF 3F 80 0D 02 02 05 00 94 5C AD 13 D6 00 00 F8 [10:02:44]Write i2c OK [10:02:44]MH_I2C_Read... [10:02:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:02:44]Read from MH i2c: E2 [10:02:44]MH_I2C_Read... [10:02:44]Read from MH i2c: E2 03 00 [10:02:44]MH_I2C_Read... [10:02:44]Read from MH i2c: E2 03 00 AF 3F 00 90 00 62 [10:02:44]RAPDU: 90 00 [10:02:44]wFMCommunicate OK [10:02:44]wFMCommunicate request_size=4 [10:02:44]MH_SAM_APDU [10:02:44]CAPDU: 80 0D 03 02 [10:02:44]Write to MH i2c: E2 08 00 B0 3F 80 0D 03 02 00 00 00 00 6A [10:02:44]Write i2c OK [10:02:44]MH_I2C_Read... [10:02:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:02:44]Read from MH i2c: E2 [10:02:44]MH_I2C_Read... [10:02:44]Read from MH i2c: E2 0B 00 [10:02:44]MH_I2C_Read... [10:02:44]Read from MH i2c: E2 0B 00 B0 3F 00 07 FE 90 A7 C3 1F 4F 25 90 00 FD [10:02:44]RAPDU: 07 FE 90 A7 C3 1F 4F 25 90 00 [10:02:44]wFMCommunicate OK [10:02:44]SAM_PROTO_SignData done [10:02:44]FM_MakeSignedData done [10:02:44]CreateOFDProtocolMessage [10:02:44]wFMCommunicate request_size=4 [10:02:44]MH_SAM_APDU [10:02:44]CAPDU: 80 11 00 00 [10:02:44]Write to MH i2c: E2 08 00 B1 3F 80 11 00 00 00 00 00 00 6A [10:02:44]Write i2c OK [10:02:44]MH_I2C_Read... [10:02:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:44]Read from MH i2c: E2 [10:02:44]MH_I2C_Read... [10:02:44]Read from MH i2c: E2 17 00 [10:02:44]MH_I2C_Read... [10:02:44]Read from MH i2c: E2 17 00 B1 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 BF [10:02:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:02:44]wFMCommunicate OK [10:02:44]CreateOFDProtocolMessage done [10:02:44]OFDSenderStorePacket 156501 [10:02:44]StoreOFDPacket docnum=156501 [10:02:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 04 B2 07 01 D6 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 34 00 00 00 F4 03 04 00 C8 0F 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 55 63 02 00 35 04 06 00 D6 94 5C AD 13 D6 07 FE 90 A7 C3 1F 4F 25 [10:02:44]CheckFolder [10:02:44]dirname=/storage/ofd_packets [10:02:44]CheckFolder done [10:02:44]ProducePacketName [10:02:44]name=ofd_packets/00156501 [10:02:44]NVStorageSaveData ofd_packets/00156501 [10:02:44]File name is /storage/ofd_packets/00156501 [10:02:44]Write 301 bytes [10:02:44]NVStorageSaveData done [10:02:44]OFDSenderStorePacket done [10:02:44]KKMCreateOFDPacket done [10:02:44]NVStorageSaveData kkm_last_timestamp [10:02:44]File name is /storage/kkm_last_timestamp [10:02:44]Write 4 bytes [10:02:44]NVStorageSaveData done [10:02:44]ExternCall_PrintAddStr [10:02:44]wPrintStart [10:02:44]Write to MH i2c: 01 00 00 B2 3F F1 [10:02:44]Write i2c OK [10:02:44]MH_I2C_Read... [10:02:44]Read from MH i2c: 01 [10:02:44]MH_I2C_Read... [10:02:44]Read from MH i2c: 01 07 00 [10:02:44]MH_I2C_Read... [10:02:44]Read from MH i2c: 01 07 00 B2 3F 00 00 00 00 00 FF 0F 06 [10:02:44]RasterBufferAndPrint [10:02:44]line Счет N : (1)99314 [10:02:44]line ИНН: 02508201610067 [10:02:44]line Контрольно-Кассовый Чек [10:02:44]line ПРОДАЖА [10:02:44]line ТРК (МРК, ГНК) : 21 [10:02:44]line Товар: 2710124130 [10:02:44]line Аи-92-К-5 [10:02:44]line 8.970 * 66.90 [10:02:44]line = 600.09 [10:02:44]line НДС 12% НСП 1% [10:02:44]line > о реализуемом товаре [10:02:44]line ОКРУГЛЕНИЕ: -0.09 [10:02:44]line ИТОГО: 600.00 [10:02:44]line Внесено: 600.00 [10:02:44]line СДАЧА: 0.00 [10:02:44]line НСП 1% : 5.31 [10:02:44]line НДС 12% : 63.73 [10:02:44]line Наличными: 600.00 [10:02:44]line Безнал.: 0.00 [10:02:44]line Место: АЗС № 143 "Партнер Нефть" [10:02:44]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [10:02:44]line СНО: Общий режим [10:02:44]line Чек 52 27.10.2024 10:02 [10:02:44]line Смена: 537 ФФД: 1.0 [10:02:44]line ЗНМ: 0300000096 [10:02:44]line РНМ: 0000000000091693 [10:02:44]line Версия ККМ: 001 [10:02:44]line ФМ: 0000000000871792 [10:02:44]line ФД: 156501 [10:02:44]line ФПД: 235932698350550 [10:02:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T100248&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156501&fm=235932698350550&tin=02508201610067®Number=0000000000091693&sum=60000 [10:02:45]OFD Sender: Processing packet 156501 [packets to send 31, broken 30] [10:02:45]ProducePacketName [10:02:45]name=ofd_packets/00156501 [10:02:45]OFD Sender: To server: pG, [10:02:45]CommunicateWithHost lk.salyk.kg:30040 [10:02:45]ConnectInit lk.salyk.kg [10:02:45]written 0, free lines is 4095 [10:02:45]Connected sock=9 [10:02:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 04 B2 07 01 D6 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 34 00 00 00 F4 03 04 00 C8 0F 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 55 63 02 00 35 04 06 00 D6 94 5C AD 13 D6 07 FE 90 A7 C3 1F 4F 25 [10:02:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 D2 3B 47 00 C3 CE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 55 63 02 00 F4 03 04 00 38 B5 1D 67 B6 04 01 00 00 99 35 6C E0 64 32 F0 04 [10:02:45]CommunicateWithHost err = 0 [10:02:45]CheckOFDResponse [10:02:45]1017 (14) - 77093643461234 [10:02:45]1041 (16) - 0000000000871792 [10:02:45]1040 (4) - 156501 [10:02:45]1012 (4) - 27.10.2024 03:36 [10:02:45]1206 (1) - 0 [10:02:45]OFD Sender: Remove packet 156501 [10:02:45]ProducePacketName [10:02:45]name=ofd_packets/00156501 [10:02:45]NVStorageDeleteData [10:02:45]Write to MH i2c: 01 00 00 DD 3F 1C [10:02:45]Write i2c OK [10:02:45]MH_I2C_Read... [10:02:45]Read from MH i2c: 01 [10:02:45]MH_I2C_Read... [10:02:45]Read from MH i2c: 01 07 00 [10:02:45]MH_I2C_Read... [10:02:45]Read from MH i2c: 01 07 00 DD 3F 00 00 00 00 00 E2 0C 11 [10:02:45]RasterBufferAndPrint [10:02:45]line [10:02:45]line [10:02:45]line [10:02:45]line [10:02:45]line [10:02:45]written 0, free lines is 3304 [10:02:45]process_action close_receipt done [10:02:45]requested_data is exist [10:02:45]produce_requested_data [10:02:45]requested_item fm.sn is exist - process it [10:02:45]wFMCommunicate request_size=4 [10:02:45]MH_SAM_APDU [10:02:45]CAPDU: 80 11 00 00 [10:02:45]Write to MH i2c: E2 08 00 E4 3F 80 11 00 00 00 00 00 00 9D [10:02:45]Write i2c OK [10:02:45]MH_I2C_Read... [10:02:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:45]Read from MH i2c: E2 [10:02:45]MH_I2C_Read... [10:02:45]Read from MH i2c: E2 17 00 [10:02:45]MH_I2C_Read... [10:02:45]Read from MH i2c: E2 17 00 E4 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 F2 [10:02:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:02:45]wFMCommunicate OK [10:02:45]requested_item fd.num is exist - process it [10:02:45]SAM_PROTO_GetFieldsCounters [10:02:45]wFMCommunicate request_size=4 [10:02:45]MH_SAM_APDU [10:02:45]CAPDU: 80 13 00 00 [10:02:45]Write to MH i2c: E2 08 00 E5 3F 80 13 00 00 00 00 00 00 A0 [10:02:45]Write i2c OK [10:02:45]MH_I2C_Read... [10:02:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:02:45]Read from MH i2c: E2 [10:02:45]MH_I2C_Read... [10:02:45]Read from MH i2c: E2 62 00 [10:02:45]MH_I2C_Read... [10:02:45]Read from MH i2c: E2 62 00 E5 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 55 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 37 [10:02:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 55 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:02:45]wFMCommunicate OK [10:02:45]SAM_PROTO_GetFieldsCounters done [10:02:45]requested_item shift.num is exist - process it [10:02:45]requested_item shift.opened is exist - process it [10:02:45]req_shift_opened [10:02:45]FM_GetShiftState [10:02:45]SAM_PROTO_GetShiftState [10:02:45]wFMCommunicate request_size=4 [10:02:45]MH_SAM_APDU [10:02:45]CAPDU: 80 13 01 00 [10:02:45]Write to MH i2c: E2 08 00 E6 3F 80 13 01 00 00 00 00 00 A2 [10:02:45]Write i2c OK [10:02:45]MH_I2C_Read... [10:02:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:45]Read from MH i2c: E2 [10:02:45]MH_I2C_Read... [10:02:45]Read from MH i2c: E2 0E 00 [10:02:45]MH_I2C_Read... [10:02:45]Read from MH i2c: E2 0E 00 E6 3F 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 6F [10:02:45]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [10:02:45]wFMCommunicate OK [10:02:45]SAM_PROTO_GetShiftState done [10:02:45]FM_GetShiftState done [10:02:45]req_shift_opened done [10:02:45]requested_item shift.open_date is exist - process it [10:02:45]req_shift_open_date [10:02:45]req_shift_open_date done [10:02:45]produce_requested_data done [10:02:45]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156501,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [10:02:45]process_action_free close_receipt [10:02:45]json_value_free [10:02:45]json_value_free done [10:02:45]process_json_proto returns [10:02:45]Send response to host [10:02:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156501,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [10:02:45]free response buf [10:02:45]execute_script done [10:02:45]execute_script returns [10:02:45]free content buf [10:02:45]Sock 10.Close socket [10:02:45]Sock 10.Thread stoped [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:03]accept exits with 8 [10:04:03]New connection [10:04:03]New thread 3066834276 created [10:04:03]Thread 3066977636 joined [10:04:03]Waiting for new connection... [10:04:03] Sock 8.Parse request [10:04:03]Sock 8.Check first char [10:04:03]Sock 8.First char is OK [10:04:03]request: POST /json_proto HTTP/1.0 [10:04:03]Method: POST [10:04:03]URL: /json_proto [10:04:03]Method is POST - this is cgi request [10:04:03]url: /json_proto [10:04:03]query_string will be loaded in cgi processing [10:04:03]execute_cgi json_proto POST (null) [10:04:03]execute_cgi path=json_proto method=POST [10:04:03]POST find Content-Length [10:04:03]Host: 172.17.63.3:8080 [10:04:03]Content-Length: 681 [10:04:03]Content-Type: application/json [10:04:03] [10:04:03]POST finish read [10:04:03]Found Content-Length = 681 [10:04:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99315", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:04:03]execute_script... [10:04: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)99315", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:04:03]POST & json_proto [10:04:03]process_json_proto [10:04:03]json parsed OK: [10:04:03]protocol is kg_v1.0 [10:04:03]action value=close_receipt [10:04:03]process_action close_receipt [10:04:03]cmd_close_receipt [10:04:03]MH_GetDate [10:04:03]Write to MH i2c: F0 00 00 E7 3F 15 [10:04:03]Write i2c OK [10:04:03]MH_I2C_Read... [10:04:03]Read from MH i2c: F0 [10:04:03]MH_I2C_Read... [10:04:03]Read from MH i2c: F0 09 00 [10:04:03]MH_I2C_Read... [10:04:03]Read from MH i2c: F0 09 00 E7 3F 00 18 10 1E 67 50 D1 6C 64 BC [10:04:03]GetLastDocTimeStamp 1730023368 [10:04:03]current date 1730023448 [10:04:03]FM_GetShiftState [10:04:03]SAM_PROTO_GetShiftState [10:04:03]wFMCommunicate request_size=4 [10:04:03]MH_SAM_APDU [10:04:03]CAPDU: 80 13 01 00 [10:04:03]Write to MH i2c: E2 08 00 E8 3F 80 13 01 00 00 00 00 00 A4 [10:04:03]Write i2c OK [10:04:03]MH_I2C_Read... [10:04:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:03]Read from MH i2c: E2 [10:04:03]MH_I2C_Read... [10:04:03]Read from MH i2c: E2 0E 00 [10:04:03]MH_I2C_Read... [10:04:03]Read from MH i2c: E2 0E 00 E8 3F 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 71 [10:04:03]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [10:04:03]wFMCommunicate OK [10:04:03]SAM_PROTO_GetShiftState done [10:04:03]FM_GetShiftState done [10:04:03]opened in 1729989044 [10:04:03]opened+sec_in_day 1730075444 [10:04:03]quantity*price = 100015 [10:04:03]sum+1 = 100017 [10:04:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 53 27.10.2024 10:04 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156502 ФПД: 156351238576258 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T100408&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156502&fm=156351238576258&tin=02508201610067®Number=0000000000091693&sum=100000 [10:04:04]StoreToDocumentArchive [10:04:04]shift 537 fd 156502 [10:04:04]save to /storage/0537/doc_00156502 [10:04:04]save last doc name /storage/0537/doc_00156502 to /storage/kkm_last_doc_name [10:04:04]save OK [10:04:04]Clear old archive folders... [10:04:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:04:05]tlvbuf is B6F5B3C0 [10:04:05]SAM_PROTO_ClearQueue [10:04:05]wFMCommunicate request_size=4 [10:04:05]MH_SAM_APDU [10:04:05]CAPDU: 80 09 00 00 [10:04:05]Write to MH i2c: E2 08 00 F5 3F 80 09 00 00 00 00 00 00 A6 [10:04:05]Write i2c OK [10:04:05]MH_I2C_Read... [10:04:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:04:05]Read from MH i2c: E2 [10:04:05]MH_I2C_Read... [10:04:05]Read from MH i2c: E2 03 00 [10:04:05]MH_I2C_Read... [10:04:05]Read from MH i2c: E2 03 00 F5 3F 00 90 00 A8 [10:04:05]RAPDU: 90 00 [10:04:05]wFMCommunicate OK [10:04:05]SAM_PROTO_ClearQueue done [10:04:05]KKMCreateOFDPacket [10:04:05]OFDProtocolAddRootSTLVToBuf [10:04:05]FM_MakeSignedData [10:04:05]FM_MakeSignedData [10:04:05]SAM_PROTO_SignData [10:04:05]wFMCommunicate request_size=4 [10:04:05]MH_SAM_APDU [10:04:05]CAPDU: 80 0D 01 02 [10:04:05]Write to MH i2c: E2 08 00 F6 3F 80 0D 01 02 00 00 00 00 AE [10:04:05]Write i2c OK [10:04:05]MH_I2C_Read... [10:04:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:04:05]Read from MH i2c: E2 [10:04:05]MH_I2C_Read... [10:04:05]Read from MH i2c: E2 03 00 [10:04:05]MH_I2C_Read... [10:04:05]Read from MH i2c: E2 03 00 F6 3F 00 90 00 A9 [10:04:05]RAPDU: 90 00 [10:04:05]wFMCommunicate OK [10:04:05]wFMCommunicate request_size=255 [10:04:05]MH_SAM_APDU [10:04: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 18 10 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 56 63 02 00 35 04 06 00 8E [10:04:05]Write to MH i2c: E2 02 01 F7 3F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 18 10 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 56 63 02 00 35 04 06 00 8E 00 00 82 [10:04:05]Write i2c OK [10:04:05]MH_I2C_Read... [10:04:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:05]Read from MH i2c: E2 [10:04:05]MH_I2C_Read... [10:04:05]Read from MH i2c: E2 03 00 [10:04:05]MH_I2C_Read... [10:04:05]Read from MH i2c: E2 03 00 F7 3F 00 90 00 AA [10:04:05]RAPDU: 90 00 [10:04:05]wFMCommunicate OK [10:04:05]wFMCommunicate request_size=10 [10:04:05]MH_SAM_APDU [10:04:05]CAPDU: 80 0D 02 02 05 33 5C 09 18 82 [10:04:05]Write to MH i2c: E2 0D 00 F8 3F 80 0D 02 02 05 00 33 5C 09 18 82 00 00 ED [10:04:05]Write i2c OK [10:04:05]MH_I2C_Read... [10:04:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:05]Read from MH i2c: E2 [10:04:05]MH_I2C_Read... [10:04:05]Read from MH i2c: E2 03 00 [10:04:05]MH_I2C_Read... [10:04:05]Read from MH i2c: E2 03 00 F8 3F 00 90 00 AB [10:04:05]RAPDU: 90 00 [10:04:05]wFMCommunicate OK [10:04:05]wFMCommunicate request_size=4 [10:04:05]MH_SAM_APDU [10:04:05]CAPDU: 80 0D 03 02 [10:04:05]Write to MH i2c: E2 08 00 F9 3F 80 0D 03 02 00 00 00 00 B3 [10:04:05]Write i2c OK [10:04:05]MH_I2C_Read... [10:04:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:04:05]Read from MH i2c: E2 [10:04:05]MH_I2C_Read... [10:04:05]Read from MH i2c: E2 0B 00 [10:04:05]MH_I2C_Read... [10:04:05]Read from MH i2c: E2 0B 00 F9 3F 00 BF D8 07 CA 48 23 7F 11 90 00 17 [10:04:05]RAPDU: BF D8 07 CA 48 23 7F 11 90 00 [10:04:05]wFMCommunicate OK [10:04:05]SAM_PROTO_SignData done [10:04:05]FM_MakeSignedData done [10:04:05]CreateOFDProtocolMessage [10:04:05]wFMCommunicate request_size=4 [10:04:05]MH_SAM_APDU [10:04:05]CAPDU: 80 11 00 00 [10:04:05]Write to MH i2c: E2 08 00 FA 3F 80 11 00 00 00 00 00 00 B3 [10:04:05]Write i2c OK [10:04:05]MH_I2C_Read... [10:04:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:05]Read from MH i2c: E2 [10:04:05]MH_I2C_Read... [10:04:05]Read from MH i2c: E2 17 00 [10:04:05]MH_I2C_Read... [10:04:05]Read from MH i2c: E2 17 00 FA 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 08 [10:04:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:04:05]wFMCommunicate OK [10:04:05]CreateOFDProtocolMessage done [10:04:05]OFDSenderStorePacket 156502 [10:04:05]StoreOFDPacket docnum=156502 [10:04:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 D7 5D 07 01 99 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 18 10 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 56 63 02 00 35 04 06 00 8E 33 5C 09 18 82 BF D8 07 CA 48 23 7F 11 [10:04:05]CheckFolder [10:04:05]dirname=/storage/ofd_packets [10:04:05]CheckFolder done [10:04:05]ProducePacketName [10:04:05]name=ofd_packets/00156502 [10:04:05]NVStorageSaveData ofd_packets/00156502 [10:04:05]File name is /storage/ofd_packets/00156502 [10:04:05]Write 301 bytes [10:04:05]NVStorageSaveData done [10:04:05]OFDSenderStorePacket done [10:04:05]KKMCreateOFDPacket done [10:04:05]NVStorageSaveData kkm_last_timestamp [10:04:05]File name is /storage/kkm_last_timestamp [10:04:05]Write 4 bytes [10:04:05]NVStorageSaveData done [10:04:05]ExternCall_PrintAddStr [10:04:05]wPrintStart [10:04:05]Write to MH i2c: 01 00 00 FB 3F 3A [10:04:05]Write i2c OK [10:04:05]MH_I2C_Read... [10:04:05]Read from MH i2c: 01 [10:04:05]MH_I2C_Read... [10:04:05]Read from MH i2c: 01 07 00 [10:04:05]MH_I2C_Read... [10:04:05]Read from MH i2c: 01 07 00 FB 3F 00 00 00 00 00 FF 0F 4F [10:04:05]RasterBufferAndPrint [10:04:05]line Счет N : (1)99315 [10:04:05]line ИНН: 02508201610067 [10:04:05]line Контрольно-Кассовый Чек [10:04:05]line ПРОДАЖА [10:04:05]line ТРК (МРК, ГНК) : 11 [10:04:05]line Товар: 2710124130 [10:04:05]line Аи-92-К-5 [10:04:05]line 14.950 * 66.90 [10:04:05]line = 1000.16 [10:04:05]line НДС 12% НСП 1% [10:04:05]line > о реализуемом товаре [10:04:05]line ОКРУГЛЕНИЕ: -0.16 [10:04:05]line ИТОГО: 1000.00 [10:04:05]line Внесено: 1000.00 [10:04:05]line СДАЧА: 0.00 [10:04:05]line НСП 1% : 8.85 [10:04:05]line НДС 12% : 106.21 [10:04:05]line Наличными: 1000.00 [10:04:05]line Безнал.: 0.00 [10:04:05]line Место: АЗС № 143 "Партнер Нефть" [10:04:05]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [10:04:05]line СНО: Общий режим [10:04:05]line Чек 53 27.10.2024 10:04 [10:04:05]line Смена: 537 ФФД: 1.0 [10:04:05]line ЗНМ: 0300000096 [10:04:05]line РНМ: 0000000000091693 [10:04:05]line Версия ККМ: 001 [10:04:05]line ФМ: 0000000000871792 [10:04:05]line ФД: 156502 [10:04:05]line ФПД: 156351238576258 [10:04:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T100408&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156502&fm=156351238576258&tin=02508201610067®Number=0000000000091693&sum=100000 [10:04:05]OFD Sender: Processing packet 156502 [packets to send 31, broken 30] [10:04:05]ProducePacketName [10:04:05]name=ofd_packets/00156502 [10:04:05]OFD Sender: To server: pG, [10:04:05]CommunicateWithHost lk.salyk.kg:30040 [10:04:05]ConnectInit lk.salyk.kg [10:04:05]written 0, free lines is 4095 [10:04:05]Connected sock=10 [10:04:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 D7 5D 07 01 99 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 18 10 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 56 63 02 00 35 04 06 00 8E 33 5C 09 18 82 BF D8 07 CA 48 23 7F 11 [10:04:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 87 25 47 00 77 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 56 63 02 00 F4 03 04 00 88 B5 1D 67 B6 04 01 00 00 B7 3E C6 55 ED DF 8C C5 [10:04:06]CommunicateWithHost err = 0 [10:04:06]CheckOFDResponse [10:04:06]1017 (14) - 77093643461234 [10:04:06]1041 (16) - 0000000000871792 [10:04:06]1040 (4) - 156502 [10:04:06]1012 (4) - 27.10.2024 03:37 [10:04:06]1206 (1) - 0 [10:04:06]OFD Sender: Remove packet 156502 [10:04:06]ProducePacketName [10:04:06]name=ofd_packets/00156502 [10:04:06]NVStorageDeleteData [10:04:06]Write to MH i2c: 01 00 00 26 40 66 [10:04:06]Write i2c OK [10:04:06]MH_I2C_Read... [10:04:06]Read from MH i2c: 01 [10:04:06]MH_I2C_Read... [10:04:06]Read from MH i2c: 01 07 00 [10:04:06]MH_I2C_Read... [10:04:06]Read from MH i2c: 01 07 00 26 40 00 00 00 00 00 D6 0C 4F [10:04:06]RasterBufferAndPrint [10:04:06]line [10:04:06]line [10:04:06]line [10:04:06]line [10:04:06]line [10:04:06]written 0, free lines is 3293 [10:04:06]process_action close_receipt done [10:04:06]requested_data is exist [10:04:06]produce_requested_data [10:04:06]requested_item fm.sn is exist - process it [10:04:06]wFMCommunicate request_size=4 [10:04:06]MH_SAM_APDU [10:04:06]CAPDU: 80 11 00 00 [10:04:06]Write to MH i2c: E2 08 00 2D 40 80 11 00 00 00 00 00 00 E7 [10:04:06]Write i2c OK [10:04:06]MH_I2C_Read... [10:04:06]Read from MH i2c: E2 [10:04:06]MH_I2C_Read... [10:04:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:06]Read from MH i2c: E2 17 00 [10:04:06]MH_I2C_Read... [10:04:06]Read from MH i2c: E2 17 00 2D 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 3C [10:04:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:04:06]wFMCommunicate OK [10:04:06]requested_item fd.num is exist - process it [10:04:06]SAM_PROTO_GetFieldsCounters [10:04:06]wFMCommunicate request_size=4 [10:04:06]MH_SAM_APDU [10:04:06]CAPDU: 80 13 00 00 [10:04:06]Write to MH i2c: E2 08 00 2E 40 80 13 00 00 00 00 00 00 EA [10:04:06]Write i2c OK [10:04:06]MH_I2C_Read... [10:04:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:04:06]Read from MH i2c: E2 [10:04:06]MH_I2C_Read... [10:04:06]Read from MH i2c: E2 62 00 [10:04:06]MH_I2C_Read... [10:04:06]Read from MH i2c: E2 62 00 2E 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 56 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 85 [10:04:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 56 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:04:06]wFMCommunicate OK [10:04:06]SAM_PROTO_GetFieldsCounters done [10:04:06]requested_item shift.num is exist - process it [10:04:06]requested_item shift.opened is exist - process it [10:04:06]req_shift_opened [10:04:06]FM_GetShiftState [10:04:06]SAM_PROTO_GetShiftState [10:04:06]wFMCommunicate request_size=4 [10:04:06]MH_SAM_APDU [10:04:06]CAPDU: 80 13 01 00 [10:04:06]Write to MH i2c: E2 08 00 2F 40 80 13 01 00 00 00 00 00 EC [10:04:06]Write i2c OK [10:04:06]MH_I2C_Read... [10:04:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:06]Read from MH i2c: E2 [10:04:06]MH_I2C_Read... [10:04:06]Read from MH i2c: E2 0E 00 [10:04:06]MH_I2C_Read... [10:04:06]Read from MH i2c: E2 0E 00 2F 40 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 B9 [10:04:06]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [10:04:06]wFMCommunicate OK [10:04:06]SAM_PROTO_GetShiftState done [10:04:06]FM_GetShiftState done [10:04:06]req_shift_opened done [10:04:06]requested_item shift.open_date is exist - process it [10:04:06]req_shift_open_date [10:04:06]req_shift_open_date done [10:04:06]produce_requested_data done [10:04:06]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156502,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [10:04:06]process_action_free close_receipt [10:04:06]json_value_free [10:04:06]json_value_free done [10:04:06]process_json_proto returns [10:04:06]Send response to host [10:04:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156502,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [10:04:06]free response buf [10:04:06]execute_script done [10:04:06]execute_script returns [10:04:06]free content buf [10:04:06]Sock 8.Close socket [10:04:06]Sock 8.Thread stoped [10:04:06]OFD Sender: No OFD packet to send [10:04:11]OFD Sender: No OFD packet to send [10:04:16]OFD Sender: No OFD packet to send [10:04:21]OFD Sender: No OFD packet to send [10:04:26]OFD Sender: No OFD packet to send [10:04:31]OFD Sender: No OFD packet to send [10:04:36]OFD Sender: No OFD packet to send [10:04:41]OFD Sender: No OFD packet to send [10:04:46]OFD Sender: No OFD packet to send [10:04:51]OFD Sender: No OFD packet to send [10:04:56]OFD Sender: No OFD packet to send [10:05:01]OFD Sender: No OFD packet to send [10:05:06]OFD Sender: No OFD packet to send [10:05:11]OFD Sender: No OFD packet to send [10:05:14]accept exits with 9 [10:05:14]New connection [10:05:14]New thread 3066977636 created [10:05:14]Thread 3066834276 joined [10:05:14]Waiting for new connection... [10:05:14] Sock 9.Parse request [10:05:14]Sock 9.Check first char [10:05:14]Sock 9.First char is OK [10:05:14]request: POST /json_proto HTTP/1.0 [10:05:14]Method: POST [10:05:14]URL: /json_proto [10:05:14]Method is POST - this is cgi request [10:05:14]url: /json_proto [10:05:14]query_string will be loaded in cgi processing [10:05:14]execute_cgi json_proto POST (null) [10:05:14]execute_cgi path=json_proto method=POST [10:05:14]POST find Content-Length [10:05:14]Host: 172.17.63.3:8080 [10:05:14]Content-Length: 676 [10:05:14]Content-Type: application/json [10:05:14] [10:05:14]POST finish read [10:05:14]Found Content-Length = 676 [10:05:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99316", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "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:05:14]execute_script... [10:05: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)99316", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "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:05:14]POST & json_proto [10:05:14]process_json_proto [10:05:14]json parsed OK: [10:05:14]protocol is kg_v1.0 [10:05:14]action value=close_receipt [10:05:14]process_action close_receipt [10:05:14]cmd_close_receipt [10:05:14]MH_GetDate [10:05:14]Write to MH i2c: F0 00 00 30 40 5F [10:05:14]Write i2c OK [10:05:14]MH_I2C_Read... [10:05:14]Read from MH i2c: F0 [10:05:14]MH_I2C_Read... [10:05:14]Read from MH i2c: F0 09 00 [10:05:14]MH_I2C_Read... [10:05:14]Read from MH i2c: F0 09 00 30 40 00 5F 10 1E 67 50 D1 6C 64 4D [10:05:14]GetLastDocTimeStamp 1730023448 [10:05:14]current date 1730023519 [10:05:14]FM_GetShiftState [10:05:14]SAM_PROTO_GetShiftState [10:05:14]wFMCommunicate request_size=4 [10:05:14]MH_SAM_APDU [10:05:14]CAPDU: 80 13 01 00 [10:05:14]Write to MH i2c: E2 08 00 31 40 80 13 01 00 00 00 00 00 EE [10:05:14]Write i2c OK [10:05:14]MH_I2C_Read... [10:05:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:14]Read from MH i2c: E2 [10:05:14]MH_I2C_Read... [10:05:14]Read from MH i2c: E2 0E 00 [10:05:14]MH_I2C_Read... [10:05:14]Read from MH i2c: E2 0E 00 31 40 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 BB [10:05:14]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [10:05:14]wFMCommunicate OK [10:05:14]SAM_PROTO_GetShiftState done [10:05:14]FM_GetShiftState done [10:05:14]opened in 1729989044 [10:05:14]opened+sec_in_day 1730075444 [10:05:14]quantity*price = 60009 [10:05:14]sum+1 = 60010 [10:05:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 54 27.10.2024 10:05 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156503 ФПД: 214103974542916 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T100519&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156503&fm=214103974542916&tin=02508201610067®Number=0000000000091693&sum=60000 [10:05:15]StoreToDocumentArchive [10:05:15]shift 537 fd 156503 [10:05:15]save to /storage/0537/doc_00156503 [10:05:15]save last doc name /storage/0537/doc_00156503 to /storage/kkm_last_doc_name [10:05:15]save OK [10:05:15]Clear old archive folders... [10:05:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:05:15]tlvbuf is 017ABB90 [10:05:15]SAM_PROTO_ClearQueue [10:05:15]wFMCommunicate request_size=4 [10:05:15]MH_SAM_APDU [10:05:15]CAPDU: 80 09 00 00 [10:05:15]Write to MH i2c: E2 08 00 3E 40 80 09 00 00 00 00 00 00 F0 [10:05:15]Write i2c OK [10:05:15]MH_I2C_Read... [10:05:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:05:15]Read from MH i2c: E2 [10:05:15]MH_I2C_Read... [10:05:15]Read from MH i2c: E2 03 00 [10:05:15]MH_I2C_Read... [10:05:15]Read from MH i2c: E2 03 00 3E 40 00 90 00 F2 [10:05:15]RAPDU: 90 00 [10:05:15]wFMCommunicate OK [10:05:15]SAM_PROTO_ClearQueue done [10:05:15]KKMCreateOFDPacket [10:05:15]OFDProtocolAddRootSTLVToBuf [10:05:15]FM_MakeSignedData [10:05:15]FM_MakeSignedData [10:05:15]SAM_PROTO_SignData [10:05:15]wFMCommunicate request_size=4 [10:05:15]MH_SAM_APDU [10:05:15]CAPDU: 80 0D 01 02 [10:05:15]Write to MH i2c: E2 08 00 3F 40 80 0D 01 02 00 00 00 00 F8 [10:05:15]Write i2c OK [10:05:15]MH_I2C_Read... [10:05:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:05:15]Read from MH i2c: E2 [10:05:15]MH_I2C_Read... [10:05:15]Read from MH i2c: E2 03 00 [10:05:15]MH_I2C_Read... [10:05:15]Read from MH i2c: E2 03 00 3F 40 00 90 00 F3 [10:05:15]RAPDU: 90 00 [10:05:15]wFMCommunicate OK [10:05:15]wFMCommunicate request_size=255 [10:05:15]MH_SAM_APDU [10:05: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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 36 00 00 00 F4 03 04 00 5F 10 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 57 63 02 00 35 04 06 00 C2 [10:05:15]Write to MH i2c: E2 02 01 40 40 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 36 00 00 00 F4 03 04 00 5F 10 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 57 63 02 00 35 04 06 00 C2 00 00 2C [10:05:15]Write i2c OK [10:05:15]MH_I2C_Read... [10:05:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:05:15]Read from MH i2c: E2 [10:05:15]MH_I2C_Read... [10:05:15]Read from MH i2c: E2 03 00 [10:05:15]MH_I2C_Read... [10:05:15]Read from MH i2c: E2 03 00 40 40 00 90 00 F4 [10:05:15]RAPDU: 90 00 [10:05:15]wFMCommunicate OK [10:05:15]wFMCommunicate request_size=10 [10:05:15]MH_SAM_APDU [10:05:15]CAPDU: 80 0D 02 02 05 B9 F7 58 FE 44 [10:05:15]Write to MH i2c: E2 0D 00 41 40 80 0D 02 02 05 00 B9 F7 58 FE 44 00 00 4F [10:05:15]Write i2c OK [10:05:15]MH_I2C_Read... [10:05:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:05:15]Read from MH i2c: E2 [10:05:15]MH_I2C_Read... [10:05:15]Read from MH i2c: E2 03 00 [10:05:15]MH_I2C_Read... [10:05:15]Read from MH i2c: E2 03 00 41 40 00 90 00 F5 [10:05:15]RAPDU: 90 00 [10:05:15]wFMCommunicate OK [10:05:15]wFMCommunicate request_size=4 [10:05:15]MH_SAM_APDU [10:05:15]CAPDU: 80 0D 03 02 [10:05:15]Write to MH i2c: E2 08 00 42 40 80 0D 03 02 00 00 00 00 FD [10:05:15]Write i2c OK [10:05:15]MH_I2C_Read... [10:05:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:05:15]Read from MH i2c: E2 [10:05:15]MH_I2C_Read... [10:05:15]Read from MH i2c: E2 0B 00 [10:05:15]MH_I2C_Read... [10:05:15]Read from MH i2c: E2 0B 00 42 40 00 80 03 EE E4 E2 E8 2C 40 90 00 89 [10:05:15]RAPDU: 80 03 EE E4 E2 E8 2C 40 90 00 [10:05:15]wFMCommunicate OK [10:05:15]SAM_PROTO_SignData done [10:05:15]FM_MakeSignedData done [10:05:15]CreateOFDProtocolMessage [10:05:15]wFMCommunicate request_size=4 [10:05:15]MH_SAM_APDU [10:05:15]CAPDU: 80 11 00 00 [10:05:15]Write to MH i2c: E2 08 00 43 40 80 11 00 00 00 00 00 00 FD [10:05:15]Write i2c OK [10:05:15]MH_I2C_Read... [10:05:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:16]Read from MH i2c: E2 [10:05:16]MH_I2C_Read... [10:05:16]Read from MH i2c: E2 17 00 [10:05:16]MH_I2C_Read... [10:05:16]Read from MH i2c: E2 17 00 43 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 52 [10:05:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:05:16]wFMCommunicate OK [10:05:16]CreateOFDProtocolMessage done [10:05:16]OFDSenderStorePacket 156503 [10:05:16]StoreOFDPacket docnum=156503 [10:05:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 00 15 07 01 A9 E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 36 00 00 00 F4 03 04 00 5F 10 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 57 63 02 00 35 04 06 00 C2 B9 F7 58 FE 44 80 03 EE E4 E2 E8 2C 40 [10:05:16]CheckFolder [10:05:16]dirname=/storage/ofd_packets [10:05:16]CheckFolder done [10:05:16]ProducePacketName [10:05:16]name=ofd_packets/00156503 [10:05:16]NVStorageSaveData ofd_packets/00156503 [10:05:16]File name is /storage/ofd_packets/00156503 [10:05:16]Write 301 bytes [10:05:16]NVStorageSaveData done [10:05:16]OFDSenderStorePacket done [10:05:16]KKMCreateOFDPacket done [10:05:16]NVStorageSaveData kkm_last_timestamp [10:05:16]File name is /storage/kkm_last_timestamp [10:05:16]Write 4 bytes [10:05:16]NVStorageSaveData done [10:05:16]ExternCall_PrintAddStr [10:05:16]wPrintStart [10:05:16]Write to MH i2c: 01 00 00 44 40 84 [10:05:16]Write i2c OK [10:05:16]MH_I2C_Read... [10:05:16]Read from MH i2c: 01 [10:05:16]MH_I2C_Read... [10:05:16]Read from MH i2c: 01 07 00 [10:05:16]MH_I2C_Read... [10:05:16]Read from MH i2c: 01 07 00 44 40 00 00 00 00 00 FF 0F 99 [10:05:16]RasterBufferAndPrint [10:05:16]line Счет N : (1)99316 [10:05:16]line ИНН: 02508201610067 [10:05:16]line Контрольно-Кассовый Чек [10:05:16]line ПРОДАЖА [10:05:16]line ТРК (МРК, ГНК) : 11 [10:05:16]line Товар: 2710124130 [10:05:16]line Аи-92-К-5 [10:05:16]line 8.970 * 66.90 [10:05:16]line = 600.09 [10:05:16]line НДС 12% НСП 1% [10:05:16]line > о реализуемом товаре [10:05:16]line ОКРУГЛЕНИЕ: -0.09 [10:05:16]line ИТОГО: 600.00 [10:05:16]line Внесено: 600.00 [10:05:16]line СДАЧА: 0.00 [10:05:16]line НСП 1% : 5.31 [10:05:16]line НДС 12% : 63.73 [10:05:16]line Наличными: 600.00 [10:05:16]line Безнал.: 0.00 [10:05:16]line Место: АЗС № 143 "Партнер Нефть" [10:05:16]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [10:05:16]line СНО: Общий режим [10:05:16]line Чек 54 27.10.2024 10:05 [10:05:16]line Смена: 537 ФФД: 1.0 [10:05:16]line ЗНМ: 0300000096 [10:05:16]line РНМ: 0000000000091693 [10:05:16]line Версия ККМ: 001 [10:05:16]line ФМ: 0000000000871792 [10:05:16]line ФД: 156503 [10:05:16]line ФПД: 214103974542916 [10:05:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T100519&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156503&fm=214103974542916&tin=02508201610067®Number=0000000000091693&sum=60000 [10:05:16]OFD Sender: Processing packet 156503 [packets to send 31, broken 30] [10:05:16]ProducePacketName [10:05:16]name=ofd_packets/00156503 [10:05:16]OFD Sender: To server: pG, [10:05:16]CommunicateWithHost lk.salyk.kg:30040 [10:05:16]ConnectInit lk.salyk.kg [10:05:16]written 0, free lines is 4095 [10:05:16]Connected sock=10 [10:05:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 00 15 07 01 A9 E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 36 00 00 00 F4 03 04 00 5F 10 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 57 63 02 00 35 04 06 00 C2 B9 F7 58 FE 44 80 03 EE E4 E2 E8 2C 40 [10:05:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 DF 1B 47 00 5A A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 57 63 02 00 F4 03 04 00 CF B5 1D 67 B6 04 01 00 00 57 52 C7 43 D9 19 C1 75 [10:05:16]CommunicateWithHost err = 0 [10:05:16]CheckOFDResponse [10:05:16]1017 (14) - 77093643461234 [10:05:16]1041 (16) - 0000000000871792 [10:05:16]1040 (4) - 156503 [10:05:16]1012 (4) - 27.10.2024 03:38 [10:05:16]1206 (1) - 0 [10:05:16]OFD Sender: Remove packet 156503 [10:05:16]ProducePacketName [10:05:16]name=ofd_packets/00156503 [10:05:16]NVStorageDeleteData [10:05:16]Write to MH i2c: 01 00 00 6F 40 AF [10:05:16]Write i2c OK [10:05:16]MH_I2C_Read... [10:05:16]Read from MH i2c: 01 [10:05:16]MH_I2C_Read... [10:05:16]Read from MH i2c: 01 07 00 [10:05:16]MH_I2C_Read... [10:05:16]Read from MH i2c: 01 07 00 6F 40 00 00 00 00 00 D7 0C 99 [10:05:16]RasterBufferAndPrint [10:05:16]line [10:05:16]line [10:05:16]line [10:05:16]line [10:05:16]line [10:05:16]written 0, free lines is 3290 [10:05:16]process_action close_receipt done [10:05:16]requested_data is exist [10:05:16]produce_requested_data [10:05:16]requested_item fm.sn is exist - process it [10:05:16]wFMCommunicate request_size=4 [10:05:16]MH_SAM_APDU [10:05:16]CAPDU: 80 11 00 00 [10:05:16]Write to MH i2c: E2 08 00 76 40 80 11 00 00 00 00 00 00 30 [10:05:16]Write i2c OK [10:05:16]MH_I2C_Read... [10:05:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:05:16]Read from MH i2c: E2 [10:05:16]MH_I2C_Read... [10:05:16]Read from MH i2c: E2 17 00 [10:05:16]MH_I2C_Read... [10:05:16]Read from MH i2c: E2 17 00 76 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 85 [10:05:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:05:16]wFMCommunicate OK [10:05:16]requested_item fd.num is exist - process it [10:05:16]SAM_PROTO_GetFieldsCounters [10:05:16]wFMCommunicate request_size=4 [10:05:16]MH_SAM_APDU [10:05:16]CAPDU: 80 13 00 00 [10:05:16]Write to MH i2c: E2 08 00 77 40 80 13 00 00 00 00 00 00 33 [10:05:16]Write i2c OK [10:05:16]MH_I2C_Read... [10:05:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:05:17]Read from MH i2c: E2 [10:05:17]MH_I2C_Read... [10:05:17]Read from MH i2c: E2 62 00 [10:05:17]MH_I2C_Read... [10:05:17]Read from MH i2c: E2 62 00 77 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 57 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 D2 [10:05:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 57 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:05:17]wFMCommunicate OK [10:05:17]SAM_PROTO_GetFieldsCounters done [10:05:17]requested_item shift.num is exist - process it [10:05:17]requested_item shift.opened is exist - process it [10:05:17]req_shift_opened [10:05:17]FM_GetShiftState [10:05:17]SAM_PROTO_GetShiftState [10:05:17]wFMCommunicate request_size=4 [10:05:17]MH_SAM_APDU [10:05:17]CAPDU: 80 13 01 00 [10:05:17]Write to MH i2c: E2 08 00 78 40 80 13 01 00 00 00 00 00 35 [10:05:17]Write i2c OK [10:05:17]MH_I2C_Read... [10:05:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:05:17]Read from MH i2c: E2 [10:05:17]MH_I2C_Read... [10:05:17]Read from MH i2c: E2 0E 00 [10:05:17]MH_I2C_Read... [10:05:17]Read from MH i2c: E2 0E 00 78 40 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 02 [10:05:17]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [10:05:17]wFMCommunicate OK [10:05:17]SAM_PROTO_GetShiftState done [10:05:17]FM_GetShiftState done [10:05:17]req_shift_opened done [10:05:17]requested_item shift.open_date is exist - process it [10:05:17]req_shift_open_date [10:05:17]req_shift_open_date done [10:05:17]produce_requested_data done [10:05:17]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156503,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [10:05:17]process_action_free close_receipt [10:05:17]json_value_free [10:05:17]json_value_free done [10:05:17]process_json_proto returns [10:05:17]Send response to host [10:05:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156503,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [10:05:17]free response buf [10:05:17]execute_script done [10:05:17]execute_script returns [10:05:17]free content buf [10:05:17]Sock 9.Close socket [10:05:17]Sock 9.Thread stoped [10:05:17]OFD Sender: No OFD packet to send [10:05:22]OFD Sender: No OFD packet to send [10:05:27]OFD Sender: No OFD packet to send [10:05:32]OFD Sender: No OFD packet to send [10:05:37]OFD Sender: No OFD packet to send [10:05:42]OFD Sender: No OFD packet to send [10:05:47]OFD Sender: No OFD packet to send [10:05:52]OFD Sender: No OFD packet to send [10:05:57]OFD Sender: No OFD packet to send [10:06:02]OFD Sender: No OFD packet to send [10:06:07]OFD Sender: No OFD packet to send [10:06:12]OFD Sender: No OFD packet to send [10:06:16]accept exits with 8 [10:06:16]New connection [10:06:16]New thread 3066834276 created [10:06:16]Thread 3066977636 joined [10:06:16]Waiting for new connection... [10:06:16] Sock 8.Parse request [10:06:16]Sock 8.Check first char [10:06:16]Sock 8.First char is OK [10:06:16]request: POST /json_proto HTTP/1.0 [10:06:16]Method: POST [10:06:16]URL: /json_proto [10:06:16]Method is POST - this is cgi request [10:06:16]url: /json_proto [10:06:16]query_string will be loaded in cgi processing [10:06:16]execute_cgi json_proto POST (null) [10:06:16]execute_cgi path=json_proto method=POST [10:06:16]POST find Content-Length [10:06:16]Host: 172.17.63.3:8080 [10:06:16]Content-Length: 681 [10:06:16]Content-Type: application/json [10:06:16] [10:06:16]POST finish read [10:06:16]Found Content-Length = 681 [10:06:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99317", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:06:16]execute_script... [10:06: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)99317", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:06:16]POST & json_proto [10:06:16]process_json_proto [10:06:16]json parsed OK: [10:06:16]protocol is kg_v1.0 [10:06:16]action value=close_receipt [10:06:16]process_action close_receipt [10:06:16]cmd_close_receipt [10:06:16]MH_GetDate [10:06:16]Write to MH i2c: F0 00 00 79 40 A8 [10:06:16]Write i2c OK [10:06:16]MH_I2C_Read... [10:06:16]Read from MH i2c: F0 [10:06:16]MH_I2C_Read... [10:06:16]Read from MH i2c: F0 09 00 [10:06:16]MH_I2C_Read... [10:06:16]Read from MH i2c: F0 09 00 79 40 00 9D 10 1E 67 50 D1 6C 64 D4 [10:06:16]GetLastDocTimeStamp 1730023519 [10:06:16]current date 1730023581 [10:06:16]FM_GetShiftState [10:06:16]SAM_PROTO_GetShiftState [10:06:16]wFMCommunicate request_size=4 [10:06:16]MH_SAM_APDU [10:06:16]CAPDU: 80 13 01 00 [10:06:16]Write to MH i2c: E2 08 00 7A 40 80 13 01 00 00 00 00 00 37 [10:06:16]Write i2c OK [10:06:16]MH_I2C_Read... [10:06:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:06:16]Read from MH i2c: E2 [10:06:16]MH_I2C_Read... [10:06:16]Read from MH i2c: E2 0E 00 [10:06:16]MH_I2C_Read... [10:06:16]Read from MH i2c: E2 0E 00 7A 40 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 04 [10:06:16]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [10:06:16]wFMCommunicate OK [10:06:16]SAM_PROTO_GetShiftState done [10:06:16]FM_GetShiftState done [10:06:16]opened in 1729989044 [10:06:16]opened+sec_in_day 1730075444 [10:06:16]quantity*price = 100015 [10:06:16]sum+1 = 100017 [10:06:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 55 27.10.2024 10:06 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156504 ФПД: 263867501366591 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T100621&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156504&fm=263867501366591&tin=02508201610067®Number=0000000000091693&sum=100000 [10:06:17]StoreToDocumentArchive [10:06:17]shift 537 fd 156504 [10:06:17]save to /storage/0537/doc_00156504 [10:06:17]save last doc name /storage/0537/doc_00156504 to /storage/kkm_last_doc_name [10:06:17]save OK [10:06:17]Clear old archive folders... [10:06:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:06:17]tlvbuf is 016BAF00 [10:06:17]SAM_PROTO_ClearQueue [10:06:17]wFMCommunicate request_size=4 [10:06:17]MH_SAM_APDU [10:06:17]CAPDU: 80 09 00 00 [10:06:17]Write to MH i2c: E2 08 00 87 40 80 09 00 00 00 00 00 00 39 [10:06:17]Write i2c OK [10:06:17]MH_I2C_Read... [10:06:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:06:17]Read from MH i2c: E2 [10:06:17]MH_I2C_Read... [10:06:17]Read from MH i2c: E2 03 00 [10:06:17]MH_I2C_Read... [10:06:17]Read from MH i2c: E2 03 00 87 40 00 90 00 3B [10:06:17]RAPDU: 90 00 [10:06:17]wFMCommunicate OK [10:06:17]SAM_PROTO_ClearQueue done [10:06:17]KKMCreateOFDPacket [10:06:17]OFDProtocolAddRootSTLVToBuf [10:06:17]FM_MakeSignedData [10:06:17]FM_MakeSignedData [10:06:17]SAM_PROTO_SignData [10:06:17]wFMCommunicate request_size=4 [10:06:17]MH_SAM_APDU [10:06:17]CAPDU: 80 0D 01 02 [10:06:17]Write to MH i2c: E2 08 00 88 40 80 0D 01 02 00 00 00 00 41 [10:06:17]Write i2c OK [10:06:17]MH_I2C_Read... [10:06:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:06:17]Read from MH i2c: E2 [10:06:17]MH_I2C_Read... [10:06:17]Read from MH i2c: E2 03 00 [10:06:17]MH_I2C_Read... [10:06:17]Read from MH i2c: E2 03 00 88 40 00 90 00 3C [10:06:17]RAPDU: 90 00 [10:06:17]wFMCommunicate OK [10:06:17]wFMCommunicate request_size=255 [10:06:17]MH_SAM_APDU [10:06: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 9D 10 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 58 63 02 00 35 04 06 00 EF [10:06:17]Write to MH i2c: E2 02 01 89 40 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 9D 10 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 58 63 02 00 35 04 06 00 EF 00 00 FF [10:06:17]Write i2c OK [10:06:17]MH_I2C_Read... [10:06:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:06:18]Read from MH i2c: E2 [10:06:18]MH_I2C_Read... [10:06:18]Read from MH i2c: E2 03 00 [10:06:18]MH_I2C_Read... [10:06:18]Read from MH i2c: E2 03 00 89 40 00 90 00 3D [10:06:18]RAPDU: 90 00 [10:06:18]wFMCommunicate OK [10:06:18]wFMCommunicate request_size=10 [10:06:18]MH_SAM_APDU [10:06:18]CAPDU: 80 0D 02 02 05 FC 70 AF CD 3F [10:06:18]Write to MH i2c: E2 0D 00 8A 40 80 0D 02 02 05 00 FC 70 AF CD 3F 00 00 75 [10:06:18]Write i2c OK [10:06:18]MH_I2C_Read... [10:06:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:06:18]Read from MH i2c: E2 [10:06:18]MH_I2C_Read... [10:06:18]Read from MH i2c: E2 03 00 [10:06:18]MH_I2C_Read... [10:06:18]Read from MH i2c: E2 03 00 8A 40 00 90 00 3E [10:06:18]RAPDU: 90 00 [10:06:18]wFMCommunicate OK [10:06:18]wFMCommunicate request_size=4 [10:06:18]MH_SAM_APDU [10:06:18]CAPDU: 80 0D 03 02 [10:06:18]Write to MH i2c: E2 08 00 8B 40 80 0D 03 02 00 00 00 00 46 [10:06:18]Write i2c OK [10:06:18]MH_I2C_Read... [10:06:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:06:18]Read from MH i2c: E2 [10:06:18]MH_I2C_Read... [10:06:18]Read from MH i2c: E2 0B 00 [10:06:18]MH_I2C_Read... [10:06:18]Read from MH i2c: E2 0B 00 8B 40 00 ED 0C 65 BE F9 53 0F 6D 90 00 2B [10:06:18]RAPDU: ED 0C 65 BE F9 53 0F 6D 90 00 [10:06:18]wFMCommunicate OK [10:06:18]SAM_PROTO_SignData done [10:06:18]FM_MakeSignedData done [10:06:18]CreateOFDProtocolMessage [10:06:18]wFMCommunicate request_size=4 [10:06:18]MH_SAM_APDU [10:06:18]CAPDU: 80 11 00 00 [10:06:18]Write to MH i2c: E2 08 00 8C 40 80 11 00 00 00 00 00 00 46 [10:06:18]Write i2c OK [10:06:18]MH_I2C_Read... [10:06:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:06:18]Read from MH i2c: E2 [10:06:18]MH_I2C_Read... [10:06:18]Read from MH i2c: E2 17 00 [10:06:18]MH_I2C_Read... [10:06:18]Read from MH i2c: E2 17 00 8C 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 9B [10:06:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:06:18]wFMCommunicate OK [10:06:18]CreateOFDProtocolMessage done [10:06:18]OFDSenderStorePacket 156504 [10:06:18]StoreOFDPacket docnum=156504 [10:06:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 19 05 07 01 38 EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 9D 10 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 58 63 02 00 35 04 06 00 EF FC 70 AF CD 3F ED 0C 65 BE F9 53 0F 6D [10:06:18]CheckFolder [10:06:18]dirname=/storage/ofd_packets [10:06:18]CheckFolder done [10:06:18]ProducePacketName [10:06:18]name=ofd_packets/00156504 [10:06:18]NVStorageSaveData ofd_packets/00156504 [10:06:18]File name is /storage/ofd_packets/00156504 [10:06:18]Write 301 bytes [10:06:18]NVStorageSaveData done [10:06:18]OFDSenderStorePacket done [10:06:18]KKMCreateOFDPacket done [10:06:18]NVStorageSaveData kkm_last_timestamp [10:06:18]File name is /storage/kkm_last_timestamp [10:06:18]Write 4 bytes [10:06:18]NVStorageSaveData done [10:06:18]OFD Sender: Processing packet 156504 [packets to send 31, broken 30] [10:06:18]ProducePacketName [10:06:18]name=ofd_packets/00156504 [10:06:18]OFD Sender: To server: pG, [10:06:18]CommunicateWithHost lk.salyk.kg:30040 [10:06:18]ConnectInit lk.salyk.kg [10:06:18]ExternCall_PrintAddStr [10:06:18]wPrintStart [10:06:18]Write to MH i2c: 01 00 00 8D 40 CD [10:06:18]Write i2c OK [10:06:18]MH_I2C_Read... [10:06:18]Read from MH i2c: 01 [10:06:18]MH_I2C_Read... [10:06:18]Read from MH i2c: 01 07 00 [10:06:18]MH_I2C_Read... [10:06:18]Read from MH i2c: 01 07 00 8D 40 00 00 00 00 00 FF 0F E2 [10:06:18]RasterBufferAndPrint [10:06:18]line Счет N : (1)99317 [10:06:18]line ИНН: 02508201610067 [10:06:18]line Контрольно-Кассовый Чек [10:06:18]line ПРОДАЖА [10:06:18]line ТРК (МРК, ГНК) : 21 [10:06:18]line Товар: 2710124130 [10:06:18]line Аи-92-К-5 [10:06:18]line 14.950 * 66.90 [10:06:18]line = 1000.16 [10:06:18]line НДС 12% НСП 1% [10:06:18]line > о реализуемом товаре [10:06:18]line ОКРУГЛЕНИЕ: -0.16 [10:06:18]line ИТОГО: 1000.00 [10:06:18]line Внесено: 1000.00 [10:06:18]line СДАЧА: 0.00 [10:06:18]line НСП 1% : 8.85 [10:06:18]line НДС 12% : 106.21 [10:06:18]line Наличными: 1000.00 [10:06:18]line Безнал.: 0.00 [10:06:18]line Место: АЗС № 143 "Партнер Нефть" [10:06:18]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [10:06:18]line СНО: Общий режим [10:06:18]line Чек 55 27.10.2024 10:06 [10:06:18]line Смена: 537 ФФД: 1.0 [10:06:18]line ЗНМ: 0300000096 [10:06:18]line РНМ: 0000000000091693 [10:06:18]line Версия ККМ: 001 [10:06:18]line ФМ: 0000000000871792 [10:06:18]line ФД: 156504 [10:06:18]line ФПД: 263867501366591 [10:06:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T100621&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156504&fm=263867501366591&tin=02508201610067®Number=0000000000091693&sum=100000 [10:06:18]Connected sock=11 [10:06:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 19 05 07 01 38 EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 9D 10 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 58 63 02 00 35 04 06 00 EF FC 70 AF CD 3F ED 0C 65 BE F9 53 0F 6D [10:06:18]written 0, free lines is 4095 [10:06:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 B2 C8 47 00 33 0F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 58 63 02 00 F4 03 04 00 0D B6 1D 67 B6 04 01 00 00 F2 84 75 8F E5 65 1B A6 [10:06:18]CommunicateWithHost err = 0 [10:06:18]CheckOFDResponse [10:06:18]1017 (14) - 77093643461234 [10:06:18]1041 (16) - 0000000000871792 [10:06:18]1040 (4) - 156504 [10:06:18]1012 (4) - 27.10.2024 03:39 [10:06:18]1206 (1) - 0 [10:06:18]OFD Sender: Remove packet 156504 [10:06:18]ProducePacketName [10:06:18]name=ofd_packets/00156504 [10:06:18]NVStorageDeleteData [10:06:19]Write to MH i2c: 01 00 00 B8 40 F8 [10:06:19]Write i2c OK [10:06:19]MH_I2C_Read... [10:06:19]Read from MH i2c: 01 [10:06:19]MH_I2C_Read... [10:06:19]Read from MH i2c: 01 07 00 [10:06:19]MH_I2C_Read... [10:06:19]Read from MH i2c: 01 07 00 B8 40 00 00 00 00 00 D8 0C E3 [10:06:19]RasterBufferAndPrint [10:06:19]line [10:06:19]line [10:06:19]line [10:06:19]line [10:06:19]line [10:06:19]written 0, free lines is 3295 [10:06:19]process_action close_receipt done [10:06:19]requested_data is exist [10:06:19]produce_requested_data [10:06:19]requested_item fm.sn is exist - process it [10:06:19]wFMCommunicate request_size=4 [10:06:19]MH_SAM_APDU [10:06:19]CAPDU: 80 11 00 00 [10:06:19]Write to MH i2c: E2 08 00 BF 40 80 11 00 00 00 00 00 00 79 [10:06:19]Write i2c OK [10:06:19]MH_I2C_Read... [10:06:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:06:19]Read from MH i2c: E2 [10:06:19]MH_I2C_Read... [10:06:19]Read from MH i2c: E2 17 00 [10:06:19]MH_I2C_Read... [10:06:19]Read from MH i2c: E2 17 00 BF 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 CE [10:06:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:06:19]wFMCommunicate OK [10:06:19]requested_item fd.num is exist - process it [10:06:19]SAM_PROTO_GetFieldsCounters [10:06:19]wFMCommunicate request_size=4 [10:06:19]MH_SAM_APDU [10:06:19]CAPDU: 80 13 00 00 [10:06:19]Write to MH i2c: E2 08 00 C0 40 80 13 00 00 00 00 00 00 7C [10:06:19]Write i2c OK [10:06:19]MH_I2C_Read... [10:06:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:06:19]Read from MH i2c: E2 [10:06:19]MH_I2C_Read... [10:06:19]Read from MH i2c: E2 62 00 [10:06:19]MH_I2C_Read... [10:06:19]Read from MH i2c: E2 62 00 C0 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 58 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 1F [10:06:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 58 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:06:19]wFMCommunicate OK [10:06:19]SAM_PROTO_GetFieldsCounters done [10:06:19]requested_item shift.num is exist - process it [10:06:19]requested_item shift.opened is exist - process it [10:06:19]req_shift_opened [10:06:19]FM_GetShiftState [10:06:19]SAM_PROTO_GetShiftState [10:06:19]wFMCommunicate request_size=4 [10:06:19]MH_SAM_APDU [10:06:19]CAPDU: 80 13 01 00 [10:06:19]Write to MH i2c: E2 08 00 C1 40 80 13 01 00 00 00 00 00 7E [10:06:19]Write i2c OK [10:06:19]MH_I2C_Read... [10:06:19]OFD Sender: No OFD packet to send [10:06:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:06:19]Read from MH i2c: E2 [10:06:19]MH_I2C_Read... [10:06:19]Read from MH i2c: E2 0E 00 [10:06:19]MH_I2C_Read... [10:06:19]Read from MH i2c: E2 0E 00 C1 40 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 4B [10:06:19]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [10:06:19]wFMCommunicate OK [10:06:19]SAM_PROTO_GetShiftState done [10:06:19]FM_GetShiftState done [10:06:19]req_shift_opened done [10:06:19]requested_item shift.open_date is exist - process it [10:06:19]req_shift_open_date [10:06:19]req_shift_open_date done [10:06:19]produce_requested_data done [10:06:19]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156504,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [10:06:19]process_action_free close_receipt [10:06:19]json_value_free [10:06:19]json_value_free done [10:06:19]process_json_proto returns [10:06:19]Send response to host [10:06:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156504,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [10:06:19]free response buf [10:06:19]execute_script done [10:06:19]execute_script returns [10:06:19]free content buf [10:06:19]Sock 8.Close socket [10:06:19]Sock 8.Thread stoped [10:06:24]OFD Sender: No OFD packet to send [10:06:29]OFD Sender: No OFD packet to send [10:06:34]OFD Sender: No OFD packet to send [10:06:39]OFD Sender: No OFD packet to send [10:06:44]OFD Sender: No OFD packet to send [10:06:49]OFD Sender: No OFD packet to send [10:06:54]OFD Sender: No OFD packet to send [10:06:59]OFD Sender: No OFD packet to send [10:07:04]OFD Sender: No OFD packet to send [10:07:09]OFD Sender: No OFD packet to send [10:07:14]OFD Sender: No OFD packet to send [10:07:19]OFD Sender: No OFD packet to send [10:07:24]OFD Sender: No OFD packet to send [10:07:29]OFD Sender: No OFD packet to send [10:07:34]OFD Sender: No OFD packet to send [10:07:39]OFD Sender: No OFD packet to send [10:07:44]OFD Sender: No OFD packet to send [10:07:49]OFD Sender: No OFD packet to send [10:07:54]OFD Sender: No OFD packet to send [10:07:59]OFD Sender: No OFD packet to send [10:08:04]OFD Sender: No OFD packet to send [10:08:09]OFD Sender: No OFD packet to send [10:08:14]OFD Sender: No OFD packet to send [10:08:19]OFD Sender: No OFD packet to send [10:08:24]OFD Sender: No OFD packet to send [10:08:29]OFD Sender: No OFD packet to send [10:08:34]OFD Sender: No OFD packet to send [10:08:39]OFD Sender: No OFD packet to send [10:08:44]OFD Sender: No OFD packet to send [10:08:49]OFD Sender: No OFD packet to send [10:08:54]OFD Sender: No OFD packet to send [10:08:59]OFD Sender: No OFD packet to send [10:09:04]OFD Sender: No OFD packet to send [10:09:09]OFD Sender: No OFD packet to send [10:09:14]OFD Sender: No OFD packet to send [10:09:19]OFD Sender: No OFD packet to send [10:09:24]OFD Sender: No OFD packet to send [10:09:29]OFD Sender: No OFD packet to send [10:09:34]OFD Sender: No OFD packet to send [10:09:39]OFD Sender: No OFD packet to send [10:09:44]OFD Sender: No OFD packet to send [10:09:49]OFD Sender: No OFD packet to send [10:09:51]accept exits with 9 [10:09:51]New connection [10:09:51]New thread 3066977636 created [10:09:51]Thread 3066834276 joined [10:09:51]Waiting for new connection... [10:09:51] Sock 9.Parse request [10:09:51]Sock 9.Check first char [10:09:51]Sock 9.First char is OK [10:09:51]request: POST /json_proto HTTP/1.0 [10:09:51]Method: POST [10:09:51]URL: /json_proto [10:09:51]Method is POST - this is cgi request [10:09:51]url: /json_proto [10:09:51]query_string will be loaded in cgi processing [10:09:51]execute_cgi json_proto POST (null) [10:09:51]execute_cgi path=json_proto method=POST [10:09:51]POST find Content-Length [10:09:51]Host: 172.17.63.3:8080 [10:09:51]Content-Length: 681 [10:09:51]Content-Type: application/json [10:09:51] [10:09:51]POST finish read [10:09:51]Found Content-Length = 681 [10:09:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99318", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:09:51]execute_script... [10:09: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)99318", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:09:51]POST & json_proto [10:09:51]process_json_proto [10:09:51]json parsed OK: [10:09:51]protocol is kg_v1.0 [10:09:51]action value=close_receipt [10:09:51]process_action close_receipt [10:09:51]cmd_close_receipt [10:09:51]MH_GetDate [10:09:51]Write to MH i2c: F0 00 00 C2 40 F1 [10:09:51]Write i2c OK [10:09:51]MH_I2C_Read... [10:09:51]Read from MH i2c: F0 [10:09:51]MH_I2C_Read... [10:09:51]Read from MH i2c: F0 09 00 [10:09:51]MH_I2C_Read... [10:09:51]Read from MH i2c: F0 09 00 C2 40 00 75 11 1E 67 50 D1 6C 64 F6 [10:09:51]GetLastDocTimeStamp 1730023581 [10:09:51]current date 1730023797 [10:09:51]FM_GetShiftState [10:09:51]SAM_PROTO_GetShiftState [10:09:51]wFMCommunicate request_size=4 [10:09:51]MH_SAM_APDU [10:09:51]CAPDU: 80 13 01 00 [10:09:51]Write to MH i2c: E2 08 00 C3 40 80 13 01 00 00 00 00 00 80 [10:09:51]Write i2c OK [10:09:51]MH_I2C_Read... [10:09:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:52]Read from MH i2c: E2 [10:09:52]MH_I2C_Read... [10:09:52]Read from MH i2c: E2 0E 00 [10:09:52]MH_I2C_Read... [10:09:52]Read from MH i2c: E2 0E 00 C3 40 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 4D [10:09:52]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [10:09:52]wFMCommunicate OK [10:09:52]SAM_PROTO_GetShiftState done [10:09:52]FM_GetShiftState done [10:09:52]opened in 1729989044 [10:09:52]opened+sec_in_day 1730075444 [10:09:52]quantity*price = 100015 [10:09:52]sum+1 = 100017 [10:09:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 56 27.10.2024 10:09 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156505 ФПД: 193593366424171 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T100957&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156505&fm=193593366424171&tin=02508201610067®Number=0000000000091693&sum=100000 [10:09:53]StoreToDocumentArchive [10:09:53]shift 537 fd 156505 [10:09:53]save to /storage/0537/doc_00156505 [10:09:53]save last doc name /storage/0537/doc_00156505 to /storage/kkm_last_doc_name [10:09:53]save OK [10:09:53]Clear old archive folders... [10:09:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:09:53]tlvbuf is 01782C30 [10:09:53]SAM_PROTO_ClearQueue [10:09:53]wFMCommunicate request_size=4 [10:09:53]MH_SAM_APDU [10:09:53]CAPDU: 80 09 00 00 [10:09:53]Write to MH i2c: E2 08 00 D0 40 80 09 00 00 00 00 00 00 82 [10:09:53]Write i2c OK [10:09:53]MH_I2C_Read... [10:09:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:09:53]Read from MH i2c: E2 [10:09:53]MH_I2C_Read... [10:09:53]Read from MH i2c: E2 03 00 [10:09:53]MH_I2C_Read... [10:09:53]Read from MH i2c: E2 03 00 D0 40 00 90 00 84 [10:09:53]RAPDU: 90 00 [10:09:53]wFMCommunicate OK [10:09:53]SAM_PROTO_ClearQueue done [10:09:53]KKMCreateOFDPacket [10:09:53]OFDProtocolAddRootSTLVToBuf [10:09:53]FM_MakeSignedData [10:09:53]FM_MakeSignedData [10:09:53]SAM_PROTO_SignData [10:09:53]wFMCommunicate request_size=4 [10:09:53]MH_SAM_APDU [10:09:53]CAPDU: 80 0D 01 02 [10:09:53]Write to MH i2c: E2 08 00 D1 40 80 0D 01 02 00 00 00 00 8A [10:09:53]Write i2c OK [10:09:53]MH_I2C_Read... [10:09:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:09:53]Read from MH i2c: E2 [10:09:53]MH_I2C_Read... [10:09:53]Read from MH i2c: E2 03 00 [10:09:53]MH_I2C_Read... [10:09:53]Read from MH i2c: E2 03 00 D1 40 00 90 00 85 [10:09:53]RAPDU: 90 00 [10:09:53]wFMCommunicate OK [10:09:53]wFMCommunicate request_size=255 [10:09:53]MH_SAM_APDU [10:09: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 75 11 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 59 63 02 00 35 04 06 00 B0 [10:09:53]Write to MH i2c: E2 02 01 D2 40 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 75 11 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 59 63 02 00 35 04 06 00 B0 00 00 E4 [10:09:53]Write i2c OK [10:09:53]MH_I2C_Read... [10:09:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:53]Read from MH i2c: E2 [10:09:53]MH_I2C_Read... [10:09:53]Read from MH i2c: E2 03 00 [10:09:53]MH_I2C_Read... [10:09:53]Read from MH i2c: E2 03 00 D2 40 00 90 00 86 [10:09:53]RAPDU: 90 00 [10:09:53]wFMCommunicate OK [10:09:53]wFMCommunicate request_size=10 [10:09:53]MH_SAM_APDU [10:09:53]CAPDU: 80 0D 02 02 05 12 77 D6 2A 6B [10:09:53]Write to MH i2c: E2 0D 00 D3 40 80 0D 02 02 05 00 12 77 D6 2A 6B 00 00 8B [10:09:53]Write i2c OK [10:09:53]MH_I2C_Read... [10:09:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:53]Read from MH i2c: E2 [10:09:53]MH_I2C_Read... [10:09:53]Read from MH i2c: E2 03 00 [10:09:53]MH_I2C_Read... [10:09:53]Read from MH i2c: E2 03 00 D3 40 00 90 00 87 [10:09:53]RAPDU: 90 00 [10:09:53]wFMCommunicate OK [10:09:53]wFMCommunicate request_size=4 [10:09:53]MH_SAM_APDU [10:09:53]CAPDU: 80 0D 03 02 [10:09:53]Write to MH i2c: E2 08 00 D4 40 80 0D 03 02 00 00 00 00 8F [10:09:53]Write i2c OK [10:09:53]MH_I2C_Read... [10:09:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:09:53]Read from MH i2c: E2 [10:09:53]MH_I2C_Read... [10:09:53]Read from MH i2c: E2 0B 00 [10:09:53]MH_I2C_Read... [10:09:53]Read from MH i2c: E2 0B 00 D4 40 00 26 21 19 7D AE C3 EF D5 90 00 A2 [10:09:53]RAPDU: 26 21 19 7D AE C3 EF D5 90 00 [10:09:53]wFMCommunicate OK [10:09:53]SAM_PROTO_SignData done [10:09:53]FM_MakeSignedData done [10:09:53]CreateOFDProtocolMessage [10:09:53]wFMCommunicate request_size=4 [10:09:53]MH_SAM_APDU [10:09:53]CAPDU: 80 11 00 00 [10:09:53]Write to MH i2c: E2 08 00 D5 40 80 11 00 00 00 00 00 00 8F [10:09:53]Write i2c OK [10:09:53]MH_I2C_Read... [10:09:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:53]Read from MH i2c: E2 [10:09:53]MH_I2C_Read... [10:09:53]Read from MH i2c: E2 17 00 [10:09:53]MH_I2C_Read... [10:09:53]Read from MH i2c: E2 17 00 D5 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 E4 [10:09:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:09:53]wFMCommunicate OK [10:09:53]CreateOFDProtocolMessage done [10:09:53]OFDSenderStorePacket 156505 [10:09:53]StoreOFDPacket docnum=156505 [10:09:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 87 F7 07 01 E3 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 75 11 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 59 63 02 00 35 04 06 00 B0 12 77 D6 2A 6B 26 21 19 7D AE C3 EF D5 [10:09:53]CheckFolder [10:09:53]dirname=/storage/ofd_packets [10:09:53]CheckFolder done [10:09:53]ProducePacketName [10:09:53]name=ofd_packets/00156505 [10:09:53]NVStorageSaveData ofd_packets/00156505 [10:09:53]File name is /storage/ofd_packets/00156505 [10:09:53]Write 301 bytes [10:09:53]NVStorageSaveData done [10:09:53]OFDSenderStorePacket done [10:09:53]KKMCreateOFDPacket done [10:09:53]NVStorageSaveData kkm_last_timestamp [10:09:53]File name is /storage/kkm_last_timestamp [10:09:53]Write 4 bytes [10:09:53]NVStorageSaveData done [10:09:53]ExternCall_PrintAddStr [10:09:53]wPrintStart [10:09:53]Write to MH i2c: 01 00 00 D6 40 16 [10:09:53]Write i2c OK [10:09:53]MH_I2C_Read... [10:09:53]Read from MH i2c: 01 [10:09:53]MH_I2C_Read... [10:09:53]Read from MH i2c: 01 07 00 [10:09:53]MH_I2C_Read... [10:09:53]Read from MH i2c: 01 07 00 D6 40 00 00 00 00 00 FF 0F 2B [10:09:53]RasterBufferAndPrint [10:09:53]line Счет N : (1)99318 [10:09:53]line ИНН: 02508201610067 [10:09:53]line Контрольно-Кассовый Чек [10:09:53]line ПРОДАЖА [10:09:53]line ТРК (МРК, ГНК) : 21 [10:09:53]line Товар: 2710124130 [10:09:53]line Аи-92-К-5 [10:09:53]line 14.950 * 66.90 [10:09:53]line = 1000.16 [10:09:53]line НДС 12% НСП 1% [10:09:53]line > о реализуемом товаре [10:09:53]line ОКРУГЛЕНИЕ: -0.16 [10:09:53]line ИТОГО: 1000.00 [10:09:53]line Внесено: 1000.00 [10:09:53]line СДАЧА: 0.00 [10:09:53]line НСП 1% : 8.85 [10:09:53]line НДС 12% : 106.21 [10:09:53]line Наличными: 1000.00 [10:09:53]line Безнал.: 0.00 [10:09:53]line Место: АЗС № 143 "Партнер Нефть" [10:09:53]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [10:09:53]line СНО: Общий режим [10:09:53]line Чек 56 27.10.2024 10:09 [10:09:53]line Смена: 537 ФФД: 1.0 [10:09:53]line ЗНМ: 0300000096 [10:09:53]line РНМ: 0000000000091693 [10:09:53]line Версия ККМ: 001 [10:09:53]line ФМ: 0000000000871792 [10:09:53]line ФД: 156505 [10:09:53]line ФПД: 193593366424171 [10:09:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T100957&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156505&fm=193593366424171&tin=02508201610067®Number=0000000000091693&sum=100000 [10:09:54]OFD Sender: Processing packet 156505 [packets to send 31, broken 30] [10:09:54]ProducePacketName [10:09:54]name=ofd_packets/00156505 [10:09:54]OFD Sender: To server: pG, [10:09:54]CommunicateWithHost lk.salyk.kg:30040 [10:09:54]ConnectInit lk.salyk.kg [10:09:54]written 0, free lines is 4095 [10:09:54]Connected sock=10 [10:09:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 87 F7 07 01 E3 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 75 11 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 59 63 02 00 35 04 06 00 B0 12 77 D6 2A 6B 26 21 19 7D AE C3 EF D5 [10:09:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 1D DF 47 00 3A 5F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 59 63 02 00 F4 03 04 00 E5 B6 1D 67 B6 04 01 00 00 21 38 79 5B 6E FB 45 A2 [10:09:54]CommunicateWithHost err = 0 [10:09:54]CheckOFDResponse [10:09:54]1017 (14) - 77093643461234 [10:09:54]1041 (16) - 0000000000871792 [10:09:54]1040 (4) - 156505 [10:09:54]1012 (4) - 27.10.2024 03:43 [10:09:54]1206 (1) - 0 [10:09:54]OFD Sender: Remove packet 156505 [10:09:54]ProducePacketName [10:09:54]name=ofd_packets/00156505 [10:09:54]NVStorageDeleteData [10:09:54]Write to MH i2c: 01 00 00 01 41 42 [10:09:54]Write i2c OK [10:09:54]MH_I2C_Read... [10:09:54]Read from MH i2c: 01 [10:09:54]MH_I2C_Read... [10:09:54]Read from MH i2c: 01 07 00 [10:09:54]MH_I2C_Read... [10:09:54]Read from MH i2c: 01 07 00 01 41 00 00 00 00 00 D5 0C 2A [10:09:54]RasterBufferAndPrint [10:09:54]line [10:09:54]line [10:09:54]line [10:09:54]line [10:09:54]line [10:09:54]written 0, free lines is 3293 [10:09:54]process_action close_receipt done [10:09:54]requested_data is exist [10:09:54]produce_requested_data [10:09:54]requested_item fm.sn is exist - process it [10:09:54]wFMCommunicate request_size=4 [10:09:54]MH_SAM_APDU [10:09:54]CAPDU: 80 11 00 00 [10:09:54]Write to MH i2c: E2 08 00 08 41 80 11 00 00 00 00 00 00 C3 [10:09:54]Write i2c OK [10:09:54]MH_I2C_Read... [10:09:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:54]Read from MH i2c: E2 [10:09:54]MH_I2C_Read... [10:09:54]Read from MH i2c: E2 17 00 [10:09:54]MH_I2C_Read... [10:09:54]Read from MH i2c: E2 17 00 08 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 18 [10:09:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:09:54]wFMCommunicate OK [10:09:54]requested_item fd.num is exist - process it [10:09:54]SAM_PROTO_GetFieldsCounters [10:09:54]wFMCommunicate request_size=4 [10:09:54]MH_SAM_APDU [10:09:54]CAPDU: 80 13 00 00 [10:09:54]Write to MH i2c: E2 08 00 09 41 80 13 00 00 00 00 00 00 C6 [10:09:54]Write i2c OK [10:09:54]MH_I2C_Read... [10:09:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:09:54]Read from MH i2c: E2 [10:09:54]MH_I2C_Read... [10:09:54]Read from MH i2c: E2 62 00 [10:09:54]MH_I2C_Read... [10:09:54]Read from MH i2c: E2 62 00 09 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 59 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 6D [10:09:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 59 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:09:54]wFMCommunicate OK [10:09:54]SAM_PROTO_GetFieldsCounters done [10:09:54]requested_item shift.num is exist - process it [10:09:54]requested_item shift.opened is exist - process it [10:09:54]req_shift_opened [10:09:54]FM_GetShiftState [10:09:54]SAM_PROTO_GetShiftState [10:09:54]wFMCommunicate request_size=4 [10:09:54]MH_SAM_APDU [10:09:54]CAPDU: 80 13 01 00 [10:09:54]Write to MH i2c: E2 08 00 0A 41 80 13 01 00 00 00 00 00 C8 [10:09:54]Write i2c OK [10:09:54]MH_I2C_Read... [10:09:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:54]Read from MH i2c: E2 [10:09:54]MH_I2C_Read... [10:09:54]Read from MH i2c: E2 0E 00 [10:09:54]MH_I2C_Read... [10:09:54]Read from MH i2c: E2 0E 00 0A 41 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 95 [10:09:54]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [10:09:54]wFMCommunicate OK [10:09:54]SAM_PROTO_GetShiftState done [10:09:54]FM_GetShiftState done [10:09:54]req_shift_opened done [10:09:54]requested_item shift.open_date is exist - process it [10:09:54]req_shift_open_date [10:09:54]req_shift_open_date done [10:09:54]produce_requested_data done [10:09:54]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156505,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [10:09:54]process_action_free close_receipt [10:09:54]json_value_free [10:09:54]json_value_free done [10:09:54]process_json_proto returns [10:09:54]Send response to host [10:09:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156505,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [10:09:54]free response buf [10:09:54]execute_script done [10:09:54]execute_script returns [10:09:54]free content buf [10:09:54]Sock 9.Close socket [10:09:54]Sock 9.Thread stoped [10:09:54]OFD Sender: No OFD packet to send [10:09:59]OFD Sender: No OFD packet to send [10:10:04]OFD Sender: No OFD packet to send [10:10:09]OFD Sender: No OFD packet to send [10:10:14]OFD Sender: No OFD packet to send [10:10:19]OFD Sender: No OFD packet to send [10:10:24]OFD Sender: No OFD packet to send [10:10:29]OFD Sender: No OFD packet to send [10:10:34]OFD Sender: No OFD packet to send [10:10:39]OFD Sender: No OFD packet to send [10:10:44]OFD Sender: No OFD packet to send [10:10:49]OFD Sender: No OFD packet to send [10:10:54]OFD Sender: No OFD packet to send [10:10:59]OFD Sender: No OFD packet to send [10:11:04]OFD Sender: No OFD packet to send [10:11:09]OFD Sender: No OFD packet to send [10:11:14]OFD Sender: No OFD packet to send [10:11:19]OFD Sender: No OFD packet to send [10:11:24]OFD Sender: No OFD packet to send [10:11:29]OFD Sender: No OFD packet to send [10:11:34]OFD Sender: No OFD packet to send [10:11:39]OFD Sender: No OFD packet to send [10:11:44]OFD Sender: No OFD packet to send [10:11:49]OFD Sender: No OFD packet to send [10:11:54]OFD Sender: No OFD packet to send [10:11:59]OFD Sender: No OFD packet to send [10:12:04]OFD Sender: No OFD packet to send [10:12:09]OFD Sender: No OFD packet to send [10:12:10]accept exits with 8 [10:12:10]New connection [10:12:10]New thread 3066834276 created [10:12:10]Thread 3066977636 joined [10:12:10]Waiting for new connection... [10:12:10] Sock 8.Parse request [10:12:10]Sock 8.Check first char [10:12:10]Sock 8.First char is OK [10:12:10]request: POST /json_proto HTTP/1.0 [10:12:10]Method: POST [10:12:10]URL: /json_proto [10:12:10]Method is POST - this is cgi request [10:12:10]url: /json_proto [10:12:10]query_string will be loaded in cgi processing [10:12:10]execute_cgi json_proto POST (null) [10:12:10]execute_cgi path=json_proto method=POST [10:12:10]POST find Content-Length [10:12:10]Host: 172.17.63.3:8080 [10:12:10]Content-Length: 676 [10:12:10]Content-Type: application/json [10:12:10] [10:12:10]POST finish read [10:12:10]Found Content-Length = 676 [10:12:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99319", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:12:10]execute_script... [10:12: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)99319", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:12:10]POST & json_proto [10:12:10]process_json_proto [10:12:10]json parsed OK: [10:12:10]protocol is kg_v1.0 [10:12:10]action value=close_receipt [10:12:10]process_action close_receipt [10:12:10]cmd_close_receipt [10:12:10]MH_GetDate [10:12:10]Write to MH i2c: F0 00 00 0B 41 3B [10:12:10]Write i2c OK [10:12:10]MH_I2C_Read... [10:12:10]Read from MH i2c: F0 [10:12:10]MH_I2C_Read... [10:12:10]Read from MH i2c: F0 09 00 [10:12:10]MH_I2C_Read... [10:12:10]Read from MH i2c: F0 09 00 0B 41 00 FF 11 1E 67 50 D1 6C 64 CA [10:12:10]GetLastDocTimeStamp 1730023797 [10:12:10]current date 1730023935 [10:12:10]FM_GetShiftState [10:12:10]SAM_PROTO_GetShiftState [10:12:10]wFMCommunicate request_size=4 [10:12:10]MH_SAM_APDU [10:12:10]CAPDU: 80 13 01 00 [10:12:10]Write to MH i2c: E2 08 00 0C 41 80 13 01 00 00 00 00 00 CA [10:12:10]Write i2c OK [10:12:10]MH_I2C_Read... [10:12:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:10]Read from MH i2c: E2 [10:12:10]MH_I2C_Read... [10:12:10]Read from MH i2c: E2 0E 00 [10:12:10]MH_I2C_Read... [10:12:10]Read from MH i2c: E2 0E 00 0C 41 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 97 [10:12:10]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [10:12:10]wFMCommunicate OK [10:12:10]SAM_PROTO_GetShiftState done [10:12:10]FM_GetShiftState done [10:12:10]opened in 1729989044 [10:12:10]opened+sec_in_day 1730075444 [10:12:10]quantity*price = 30038 [10:12:10]sum+1 = 30039 [10:12:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 57 27.10.2024 10:12 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156506 ФПД: 274256851274170 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T101215&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156506&fm=274256851274170&tin=02508201610067®Number=0000000000091693&sum=30000 [10:12:11]StoreToDocumentArchive [10:12:11]shift 537 fd 156506 [10:12:11]save to /storage/0537/doc_00156506 [10:12:11]save last doc name /storage/0537/doc_00156506 to /storage/kkm_last_doc_name [10:12:11]save OK [10:12:11]Clear old archive folders... [10:12:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:12:11]tlvbuf is B6F5E660 [10:12:11]SAM_PROTO_ClearQueue [10:12:11]wFMCommunicate request_size=4 [10:12:11]MH_SAM_APDU [10:12:11]CAPDU: 80 09 00 00 [10:12:11]Write to MH i2c: E2 08 00 19 41 80 09 00 00 00 00 00 00 CC [10:12:11]Write i2c OK [10:12:11]MH_I2C_Read... [10:12:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:12:11]Read from MH i2c: E2 [10:12:11]MH_I2C_Read... [10:12:11]Read from MH i2c: E2 03 00 [10:12:11]MH_I2C_Read... [10:12:11]Read from MH i2c: E2 03 00 19 41 00 90 00 CE [10:12:11]RAPDU: 90 00 [10:12:11]wFMCommunicate OK [10:12:11]SAM_PROTO_ClearQueue done [10:12:11]KKMCreateOFDPacket [10:12:11]OFDProtocolAddRootSTLVToBuf [10:12:11]FM_MakeSignedData [10:12:11]FM_MakeSignedData [10:12:11]SAM_PROTO_SignData [10:12:11]wFMCommunicate request_size=4 [10:12:11]MH_SAM_APDU [10:12:11]CAPDU: 80 0D 01 02 [10:12:11]Write to MH i2c: E2 08 00 1A 41 80 0D 01 02 00 00 00 00 D4 [10:12:11]Write i2c OK [10:12:11]MH_I2C_Read... [10:12:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:12:11]Read from MH i2c: E2 [10:12:11]MH_I2C_Read... [10:12:11]Read from MH i2c: E2 03 00 [10:12:11]MH_I2C_Read... [10:12:11]Read from MH i2c: E2 03 00 1A 41 00 90 00 CF [10:12:11]RAPDU: 90 00 [10:12:11]wFMCommunicate OK [10:12:11]wFMCommunicate request_size=255 [10:12:11]MH_SAM_APDU [10:12:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 FF 11 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 5A 63 02 00 35 04 06 00 F9 [10:12:11]Write to MH i2c: E2 02 01 1B 41 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 FF 11 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 5A 63 02 00 35 04 06 00 F9 00 00 FD [10:12:11]Write i2c OK [10:12:11]MH_I2C_Read... [10:12:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:11]Read from MH i2c: E2 [10:12:11]MH_I2C_Read... [10:12:11]Read from MH i2c: E2 03 00 [10:12:11]MH_I2C_Read... [10:12:11]Read from MH i2c: E2 03 00 1B 41 00 90 00 D0 [10:12:11]RAPDU: 90 00 [10:12:11]wFMCommunicate OK [10:12:11]wFMCommunicate request_size=10 [10:12:11]MH_SAM_APDU [10:12:11]CAPDU: 80 0D 02 02 05 6F 66 32 89 BA [10:12:11]Write to MH i2c: E2 0D 00 1C 41 80 0D 02 02 05 00 6F 66 32 89 BA 00 00 2B [10:12:11]Write i2c OK [10:12:11]MH_I2C_Read... [10:12:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:11]Read from MH i2c: E2 [10:12:11]MH_I2C_Read... [10:12:11]Read from MH i2c: E2 03 00 [10:12:11]MH_I2C_Read... [10:12:11]Read from MH i2c: E2 03 00 1C 41 00 90 00 D1 [10:12:11]RAPDU: 90 00 [10:12:11]wFMCommunicate OK [10:12:11]wFMCommunicate request_size=4 [10:12:11]MH_SAM_APDU [10:12:11]CAPDU: 80 0D 03 02 [10:12:11]Write to MH i2c: E2 08 00 1D 41 80 0D 03 02 00 00 00 00 D9 [10:12:11]Write i2c OK [10:12:11]MH_I2C_Read... [10:12:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:12:11]Read from MH i2c: E2 [10:12:11]MH_I2C_Read... [10:12:11]Read from MH i2c: E2 0B 00 [10:12:11]MH_I2C_Read... [10:12:11]Read from MH i2c: E2 0B 00 1D 41 00 75 03 B3 B5 DA 5F 12 C2 90 00 C7 [10:12:11]RAPDU: 75 03 B3 B5 DA 5F 12 C2 90 00 [10:12:11]wFMCommunicate OK [10:12:11]SAM_PROTO_SignData done [10:12:11]FM_MakeSignedData done [10:12:11]CreateOFDProtocolMessage [10:12:11]wFMCommunicate request_size=4 [10:12:11]MH_SAM_APDU [10:12:11]CAPDU: 80 11 00 00 [10:12:11]Write to MH i2c: E2 08 00 1E 41 80 11 00 00 00 00 00 00 D9 [10:12:11]Write i2c OK [10:12:11]MH_I2C_Read... [10:12:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:11]Read from MH i2c: E2 [10:12:11]MH_I2C_Read... [10:12:11]Read from MH i2c: E2 17 00 [10:12:11]MH_I2C_Read... [10:12:11]Read from MH i2c: E2 17 00 1E 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 2E [10:12:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:12:11]wFMCommunicate OK [10:12:11]CreateOFDProtocolMessage done [10:12:11]OFDSenderStorePacket 156506 [10:12:11]StoreOFDPacket docnum=156506 [10:12:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 87 A8 07 01 13 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 FF 11 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 5A 63 02 00 35 04 06 00 F9 6F 66 32 89 BA 75 03 B3 B5 DA 5F 12 C2 [10:12:11]CheckFolder [10:12:11]dirname=/storage/ofd_packets [10:12:11]CheckFolder done [10:12:11]ProducePacketName [10:12:11]name=ofd_packets/00156506 [10:12:11]NVStorageSaveData ofd_packets/00156506 [10:12:11]File name is /storage/ofd_packets/00156506 [10:12:11]Write 301 bytes [10:12:11]NVStorageSaveData done [10:12:11]OFDSenderStorePacket done [10:12:11]KKMCreateOFDPacket done [10:12:11]NVStorageSaveData kkm_last_timestamp [10:12:11]File name is /storage/kkm_last_timestamp [10:12:11]Write 4 bytes [10:12:11]NVStorageSaveData done [10:12:11]ExternCall_PrintAddStr [10:12:11]wPrintStart [10:12:11]Write to MH i2c: 01 00 00 1F 41 60 [10:12:11]Write i2c OK [10:12:11]MH_I2C_Read... [10:12:11]Read from MH i2c: 01 [10:12:11]MH_I2C_Read... [10:12:11]Read from MH i2c: 01 07 00 [10:12:11]MH_I2C_Read... [10:12:11]Read from MH i2c: 01 07 00 1F 41 00 00 00 00 00 FF 0F 75 [10:12:11]RasterBufferAndPrint [10:12:11]line Счет N : (1)99319 [10:12:11]line ИНН: 02508201610067 [10:12:11]line Контрольно-Кассовый Чек [10:12:11]line ПРОДАЖА [10:12:11]line ТРК (МРК, ГНК) : 31 [10:12:11]line Товар: 2710124130 [10:12:11]line Аи-92-К-5 [10:12:11]line 4.490 * 66.90 [10:12:11]line = 300.38 [10:12:11]line НДС 12% НСП 1% [10:12:11]line > о реализуемом товаре [10:12:11]line ОКРУГЛЕНИЕ: -0.38 [10:12:11]line ИТОГО: 300.00 [10:12:11]line Внесено: 300.00 [10:12:11]line СДАЧА: 0.00 [10:12:11]line НСП 1% : 2.66 [10:12:11]line НДС 12% : 31.90 [10:12:11]line Наличными: 300.00 [10:12:11]line Безнал.: 0.00 [10:12:11]line Место: АЗС № 143 "Партнер Нефть" [10:12:11]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [10:12:11]line СНО: Общий режим [10:12:11]line Чек 57 27.10.2024 10:12 [10:12:11]line Смена: 537 ФФД: 1.0 [10:12:11]line ЗНМ: 0300000096 [10:12:11]line РНМ: 0000000000091693 [10:12:11]line Версия ККМ: 001 [10:12:11]line ФМ: 0000000000871792 [10:12:11]line ФД: 156506 [10:12:11]line ФПД: 274256851274170 [10:12:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T101215&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156506&fm=274256851274170&tin=02508201610067®Number=0000000000091693&sum=30000 [10:12:12]OFD Sender: Processing packet 156506 [packets to send 31, broken 30] [10:12:12]ProducePacketName [10:12:12]name=ofd_packets/00156506 [10:12:12]OFD Sender: To server: pG, [10:12:12]CommunicateWithHost lk.salyk.kg:30040 [10:12:12]ConnectInit lk.salyk.kg [10:12:12]written 0, free lines is 4095 [10:12:12]Connected sock=10 [10:12:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 87 A8 07 01 13 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 FF 11 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 5A 63 02 00 35 04 06 00 F9 6F 66 32 89 BA 75 03 B3 B5 DA 5F 12 C2 [10:12:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 2B 98 47 00 41 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 5A 63 02 00 F4 03 04 00 6F B7 1D 67 B6 04 01 00 00 DC 55 E4 9E 2D D8 95 16 [10:12:12]CommunicateWithHost err = 0 [10:12:12]CheckOFDResponse [10:12:12]1017 (14) - 77093643461234 [10:12:12]1041 (16) - 0000000000871792 [10:12:12]1040 (4) - 156506 [10:12:12]1012 (4) - 27.10.2024 03:45 [10:12:12]1206 (1) - 0 [10:12:12]OFD Sender: Remove packet 156506 [10:12:12]ProducePacketName [10:12:12]name=ofd_packets/00156506 [10:12:12]NVStorageDeleteData [10:12:12]Write to MH i2c: 01 00 00 4A 41 8B [10:12:12]Write i2c OK [10:12:12]MH_I2C_Read... [10:12:12]Read from MH i2c: 01 [10:12:12]MH_I2C_Read... [10:12:12]Read from MH i2c: 01 07 00 [10:12:12]MH_I2C_Read... [10:12:12]Read from MH i2c: 01 07 00 4A 41 00 00 00 00 00 D2 0C 70 [10:12:12]RasterBufferAndPrint [10:12:12]line [10:12:12]line [10:12:12]line [10:12:12]line [10:12:12]line [10:12:12]written 0, free lines is 3290 [10:12:12]process_action close_receipt done [10:12:12]requested_data is exist [10:12:12]produce_requested_data [10:12:12]requested_item fm.sn is exist - process it [10:12:12]wFMCommunicate request_size=4 [10:12:12]MH_SAM_APDU [10:12:12]CAPDU: 80 11 00 00 [10:12:12]Write to MH i2c: E2 08 00 51 41 80 11 00 00 00 00 00 00 0C [10:12:12]Write i2c OK [10:12:12]MH_I2C_Read... [10:12:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:12]Read from MH i2c: E2 [10:12:12]MH_I2C_Read... [10:12:12]Read from MH i2c: E2 17 00 [10:12:12]MH_I2C_Read... [10:12:12]Read from MH i2c: E2 17 00 51 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 61 [10:12:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:12:12]wFMCommunicate OK [10:12:12]requested_item fd.num is exist - process it [10:12:12]SAM_PROTO_GetFieldsCounters [10:12:12]wFMCommunicate request_size=4 [10:12:12]MH_SAM_APDU [10:12:12]CAPDU: 80 13 00 00 [10:12:12]Write to MH i2c: E2 08 00 52 41 80 13 00 00 00 00 00 00 0F [10:12:12]Write i2c OK [10:12:12]MH_I2C_Read... [10:12:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:12:12]Read from MH i2c: E2 [10:12:12]MH_I2C_Read... [10:12:12]Read from MH i2c: E2 62 00 [10:12:12]MH_I2C_Read... [10:12:12]Read from MH i2c: E2 62 00 52 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 5A 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 BA [10:12:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 5A 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:12:12]wFMCommunicate OK [10:12:12]SAM_PROTO_GetFieldsCounters done [10:12:12]requested_item shift.num is exist - process it [10:12:12]requested_item shift.opened is exist - process it [10:12:12]req_shift_opened [10:12:12]FM_GetShiftState [10:12:12]SAM_PROTO_GetShiftState [10:12:12]wFMCommunicate request_size=4 [10:12:12]MH_SAM_APDU [10:12:12]CAPDU: 80 13 01 00 [10:12:12]Write to MH i2c: E2 08 00 53 41 80 13 01 00 00 00 00 00 11 [10:12:12]Write i2c OK [10:12:12]MH_I2C_Read... [10:12:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:12]Read from MH i2c: E2 [10:12:12]MH_I2C_Read... [10:12:12]Read from MH i2c: E2 0E 00 [10:12:12]MH_I2C_Read... [10:12:12]Read from MH i2c: E2 0E 00 53 41 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 DE [10:12:12]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [10:12:12]wFMCommunicate OK [10:12:12]SAM_PROTO_GetShiftState done [10:12:12]FM_GetShiftState done [10:12:12]req_shift_opened done [10:12:12]requested_item shift.open_date is exist - process it [10:12:12]req_shift_open_date [10:12:12]req_shift_open_date done [10:12:12]produce_requested_data done [10:12:12]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156506,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [10:12:12]process_action_free close_receipt [10:12:12]json_value_free [10:12:12]json_value_free done [10:12:12]process_json_proto returns [10:12:12]Send response to host [10:12:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156506,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [10:12:12]free response buf [10:12:12]execute_script done [10:12:12]execute_script returns [10:12:12]free content buf [10:12:12]Sock 8.Close socket [10:12:12]Sock 8.Thread stoped [10:12:13]OFD Sender: No OFD packet to send [10:12:18]OFD Sender: No OFD packet to send [10:12:23]OFD Sender: No OFD packet to send [10:12:28]OFD Sender: No OFD packet to send [10:12:33]OFD Sender: No OFD packet to send [10:12:38]OFD Sender: No OFD packet to send [10:12:43]OFD Sender: No OFD packet to send [10:12:48]OFD Sender: No OFD packet to send [10:12:53]OFD Sender: No OFD packet to send [10:12:58]OFD Sender: No OFD packet to send [10:13:03]OFD Sender: No OFD packet to send [10:13:08]OFD Sender: No OFD packet to send [10:13:13]OFD Sender: No OFD packet to send [10:13:18]OFD Sender: No OFD packet to send [10:13:23]OFD Sender: No OFD packet to send [10:13:28]OFD Sender: No OFD packet to send [10:13:33]OFD Sender: No OFD packet to send [10:13:38]OFD Sender: No OFD packet to send [10:13:43]OFD Sender: No OFD packet to send [10:13:48]OFD Sender: No OFD packet to send [10:13:53]OFD Sender: No OFD packet to send [10:13:58]OFD Sender: No OFD packet to send [10:14:03]OFD Sender: No OFD packet to send [10:14:06]accept exits with 9 [10:14:06]New connection [10:14:06]New thread 3066977636 created [10:14:06]Thread 3066834276 joined [10:14:06]Waiting for new connection... [10:14:06] Sock 9.Parse request [10:14:06]Sock 9.Check first char [10:14:06]Sock 9.First char is OK [10:14:06]request: POST /json_proto HTTP/1.0 [10:14:06]Method: POST [10:14:06]URL: /json_proto [10:14:06]Method is POST - this is cgi request [10:14:06]url: /json_proto [10:14:06]query_string will be loaded in cgi processing [10:14:06]execute_cgi json_proto POST (null) [10:14:06]execute_cgi path=json_proto method=POST [10:14:06]POST find Content-Length [10:14:06]Host: 172.17.63.3:8080 [10:14:06]Content-Length: 676 [10:14:06]Content-Type: application/json [10:14:06] [10:14:06]POST finish read [10:14:06]Found Content-Length = 676 [10:14:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99321", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.800, "sum" : 120.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 120.00, "total" : 120.00, "payments": [ { "type": 0, "sum" : 120.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:14:06]execute_script... [10: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)99321", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.800, "sum" : 120.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 120.00, "total" : 120.00, "payments": [ { "type": 0, "sum" : 120.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:14:06]POST & json_proto [10:14:06]process_json_proto [10:14:06]json parsed OK: [10:14:06]protocol is kg_v1.0 [10:14:06]action value=close_receipt [10:14:06]process_action close_receipt [10:14:06]cmd_close_receipt [10:14:06]MH_GetDate [10:14:06]Write to MH i2c: F0 00 00 54 41 84 [10:14:06]Write i2c OK [10:14:06]MH_I2C_Read... [10:14:06]Read from MH i2c: F0 [10:14:06]MH_I2C_Read... [10:14:06]Read from MH i2c: F0 09 00 [10:14:06]MH_I2C_Read... [10:14:06]Read from MH i2c: F0 09 00 54 41 00 74 12 1E 67 50 D1 6C 64 89 [10:14:06]GetLastDocTimeStamp 1730023935 [10:14:06]current date 1730024052 [10:14:06]FM_GetShiftState [10:14:06]SAM_PROTO_GetShiftState [10:14:06]wFMCommunicate request_size=4 [10:14:06]MH_SAM_APDU [10:14:06]CAPDU: 80 13 01 00 [10:14:06]Write to MH i2c: E2 08 00 55 41 80 13 01 00 00 00 00 00 13 [10:14:06]Write i2c OK [10:14:06]MH_I2C_Read... [10:14:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:06]Read from MH i2c: E2 [10:14:06]MH_I2C_Read... [10:14:06]Read from MH i2c: E2 0E 00 [10:14:06]MH_I2C_Read... [10:14:06]Read from MH i2c: E2 0E 00 55 41 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 E0 [10:14:06]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [10:14:06]wFMCommunicate OK [10:14:06]SAM_PROTO_GetShiftState done [10:14:06]FM_GetShiftState done [10:14:06]opened in 1729989044 [10:14:06]opened+sec_in_day 1730075444 [10:14:06]quantity*price = 12042 [10:14:06]sum+1 = 12043 [10:14:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 120.00 Внесено: 120.00 СДАЧА: 0.00 НСП 1% : 1.07 НДС 12% : 12.79 Наличными: 120.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 58 27.10.2024 10:14 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156507 ФПД: 74867791530518 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T101412&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156507&fm=74867791530518&tin=02508201610067®Number=0000000000091693&sum=12000 [10:14:08]StoreToDocumentArchive [10:14:08]shift 537 fd 156507 [10:14:08]save to /storage/0537/doc_00156507 [10:14:08]save last doc name /storage/0537/doc_00156507 to /storage/kkm_last_doc_name [10:14:08]save OK [10:14:08]Clear old archive folders... [10:14:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:14:08]tlvbuf is 017951B0 [10:14:08]SAM_PROTO_ClearQueue [10:14:08]wFMCommunicate request_size=4 [10:14:08]MH_SAM_APDU [10:14:08]CAPDU: 80 09 00 00 [10:14:08]Write to MH i2c: E2 08 00 62 41 80 09 00 00 00 00 00 00 15 [10:14:08]Write i2c OK [10:14:08]MH_I2C_Read... [10:14:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:14:08]Read from MH i2c: E2 [10:14:08]MH_I2C_Read... [10:14:08]Read from MH i2c: E2 03 00 [10:14:08]MH_I2C_Read... [10:14:08]Read from MH i2c: E2 03 00 62 41 00 90 00 17 [10:14:08]RAPDU: 90 00 [10:14:08]wFMCommunicate OK [10:14:08]SAM_PROTO_ClearQueue done [10:14:08]KKMCreateOFDPacket [10:14:08]OFDProtocolAddRootSTLVToBuf [10:14:08]FM_MakeSignedData [10:14:08]FM_MakeSignedData [10:14:08]SAM_PROTO_SignData [10:14:08]wFMCommunicate request_size=4 [10:14:08]MH_SAM_APDU [10:14:08]CAPDU: 80 0D 01 02 [10:14:08]Write to MH i2c: E2 08 00 63 41 80 0D 01 02 00 00 00 00 1D [10:14:08]Write i2c OK [10:14:08]MH_I2C_Read... [10:14:08]OFD Sender: No OFD packet to send [10:14:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:14:08]Read from MH i2c: E2 [10:14:08]MH_I2C_Read... [10:14:08]Read from MH i2c: E2 03 00 [10:14:08]MH_I2C_Read... [10:14:08]Read from MH i2c: E2 03 00 63 41 00 90 00 18 [10:14:08]RAPDU: 90 00 [10:14:08]wFMCommunicate OK [10:14:08]wFMCommunicate request_size=255 [10:14:08]MH_SAM_APDU [10:14:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 08 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0A 2F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 74 12 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 5B 63 02 00 35 04 06 00 44 [10:14:08]Write to MH i2c: E2 02 01 64 41 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 08 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0A 2F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 74 12 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 5B 63 02 00 35 04 06 00 44 00 00 9E [10:14:08]Write i2c OK [10:14:08]MH_I2C_Read... [10:14:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:08]Read from MH i2c: E2 [10:14:08]MH_I2C_Read... [10:14:08]Read from MH i2c: E2 03 00 [10:14:08]MH_I2C_Read... [10:14:08]Read from MH i2c: E2 03 00 64 41 00 90 00 19 [10:14:08]RAPDU: 90 00 [10:14:08]wFMCommunicate OK [10:14:08]wFMCommunicate request_size=10 [10:14:08]MH_SAM_APDU [10:14:08]CAPDU: 80 0D 02 02 05 17 84 1E 8A 16 [10:14:08]Write to MH i2c: E2 0D 00 65 41 80 0D 02 02 05 00 17 84 1E 8A 16 00 00 83 [10:14:08]Write i2c OK [10:14:08]MH_I2C_Read... [10:14:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:08]Read from MH i2c: E2 [10:14:08]MH_I2C_Read... [10:14:08]Read from MH i2c: E2 03 00 [10:14:08]MH_I2C_Read... [10:14:08]Read from MH i2c: E2 03 00 65 41 00 90 00 1A [10:14:08]RAPDU: 90 00 [10:14:08]wFMCommunicate OK [10:14:08]wFMCommunicate request_size=4 [10:14:08]MH_SAM_APDU [10:14:08]CAPDU: 80 0D 03 02 [10:14:08]Write to MH i2c: E2 08 00 66 41 80 0D 03 02 00 00 00 00 22 [10:14:08]Write i2c OK [10:14:08]MH_I2C_Read... [10:14:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:14:08]Read from MH i2c: E2 [10:14:08]MH_I2C_Read... [10:14:08]Read from MH i2c: E2 0B 00 [10:14:08]MH_I2C_Read... [10:14:08]Read from MH i2c: E2 0B 00 66 41 00 A6 07 3C 12 F7 FE 13 0B 90 00 31 [10:14:08]RAPDU: A6 07 3C 12 F7 FE 13 0B 90 00 [10:14:08]wFMCommunicate OK [10:14:08]SAM_PROTO_SignData done [10:14:08]FM_MakeSignedData done [10:14:08]CreateOFDProtocolMessage [10:14:08]wFMCommunicate request_size=4 [10:14:08]MH_SAM_APDU [10:14:08]CAPDU: 80 11 00 00 [10:14:08]Write to MH i2c: E2 08 00 67 41 80 11 00 00 00 00 00 00 22 [10:14:08]Write i2c OK [10:14:08]MH_I2C_Read... [10:14:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:08]Read from MH i2c: E2 [10:14:08]MH_I2C_Read... [10:14:08]Read from MH i2c: E2 17 00 [10:14:08]MH_I2C_Read... [10:14:08]Read from MH i2c: E2 17 00 67 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 77 [10:14:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:14:08]wFMCommunicate OK [10:14:08]CreateOFDProtocolMessage done [10:14:08]OFDSenderStorePacket 156507 [10:14:08]StoreOFDPacket docnum=156507 [10:14:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 13 E1 07 01 02 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 08 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0A 2F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 74 12 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 5B 63 02 00 35 04 06 00 44 17 84 1E 8A 16 A6 07 3C 12 F7 FE 13 0B [10:14:08]CheckFolder [10:14:08]dirname=/storage/ofd_packets [10:14:08]CheckFolder done [10:14:08]ProducePacketName [10:14:08]name=ofd_packets/00156507 [10:14:08]NVStorageSaveData ofd_packets/00156507 [10:14:08]File name is /storage/ofd_packets/00156507 [10:14:08]Write 301 bytes [10:14:08]NVStorageSaveData done [10:14:08]OFDSenderStorePacket done [10:14:08]KKMCreateOFDPacket done [10:14:08]NVStorageSaveData kkm_last_timestamp [10:14:08]File name is /storage/kkm_last_timestamp [10:14:08]Write 4 bytes [10:14:08]NVStorageSaveData done [10:14:08]ExternCall_PrintAddStr [10:14:08]wPrintStart [10:14:08]Write to MH i2c: 01 00 00 68 41 A9 [10:14:08]Write i2c OK [10:14:08]MH_I2C_Read... [10:14:08]Read from MH i2c: 01 [10:14:08]MH_I2C_Read... [10:14:08]Read from MH i2c: 01 07 00 [10:14:08]MH_I2C_Read... [10:14:08]Read from MH i2c: 01 07 00 68 41 00 00 00 00 00 FF 0F BE [10:14:08]RasterBufferAndPrint [10:14:08]line Счет N : (1)99321 [10:14:08]line ИНН: 02508201610067 [10:14:08]line Контрольно-Кассовый Чек [10:14:08]line ПРОДАЖА [10:14:08]line ТРК (МРК, ГНК) : 11 [10:14:08]line Товар: 2710124130 [10:14:08]line Аи-92-К-5 [10:14:08]line 1.800 * 66.90 [10:14:08]line = 120.42 [10:14:08]line НДС 12% НСП 1% [10:14:08]line > о реализуемом товаре [10:14:08]line ОКРУГЛЕНИЕ: -0.42 [10:14:08]line ИТОГО: 120.00 [10:14:08]line Внесено: 120.00 [10:14:08]line СДАЧА: 0.00 [10:14:08]line НСП 1% : 1.07 [10:14:08]line НДС 12% : 12.79 [10:14:08]line Наличными: 120.00 [10:14:08]line Безнал.: 0.00 [10:14:08]line Место: АЗС № 143 "Партнер Нефть" [10:14:08]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [10:14:08]line СНО: Общий режим [10:14:08]line Чек 58 27.10.2024 10:14 [10:14:08]line Смена: 537 ФФД: 1.0 [10:14:08]line ЗНМ: 0300000096 [10:14:08]line РНМ: 0000000000091693 [10:14:08]line Версия ККМ: 001 [10:14:08]line ФМ: 0000000000871792 [10:14:08]line ФД: 156507 [10:14:08]line ФПД: 74867791530518 [10:14:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T101412&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156507&fm=74867791530518&tin=02508201610067®Number=0000000000091693&sum=12000 [10:14:08]OFD Sender: Processing packet 156507 [packets to send 31, broken 30] [10:14:08]ProducePacketName [10:14:08]name=ofd_packets/00156507 [10:14:08]OFD Sender: To server: pG, [10:14:08]CommunicateWithHost lk.salyk.kg:30040 [10:14:08]ConnectInit lk.salyk.kg [10:14:08]written 0, free lines is 4095 [10:14:09]Connected sock=10 [10:14:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 13 E1 07 01 02 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 08 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0A 2F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 74 12 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 5B 63 02 00 35 04 06 00 44 17 84 1E 8A 16 A6 07 3C 12 F7 FE 13 0B [10:14:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 3E FF 47 00 1A D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 5B 63 02 00 F4 03 04 00 E3 B7 1D 67 B6 04 01 00 00 3B 40 3B BE 21 4B DF 6C [10:14:09]CommunicateWithHost err = 0 [10:14:09]CheckOFDResponse [10:14:09]1017 (14) - 77093643461234 [10:14:09]1041 (16) - 0000000000871792 [10:14:09]1040 (4) - 156507 [10:14:09]1012 (4) - 27.10.2024 03:47 [10:14:09]1206 (1) - 0 [10:14:09]OFD Sender: Remove packet 156507 [10:14:09]ProducePacketName [10:14:09]name=ofd_packets/00156507 [10:14:09]NVStorageDeleteData [10:14:09]Write to MH i2c: 01 00 00 93 41 D4 [10:14:09]Write i2c OK [10:14:09]MH_I2C_Read... [10:14:09]Read from MH i2c: 01 [10:14:09]MH_I2C_Read... [10:14:09]Read from MH i2c: 01 07 00 [10:14:09]MH_I2C_Read... [10:14:09]Read from MH i2c: 01 07 00 93 41 00 00 00 00 00 D0 0C B7 [10:14:09]RasterBufferAndPrint [10:14:09]line [10:14:09]line [10:14:09]line [10:14:09]line [10:14:09]line [10:14:09]written 0, free lines is 3287 [10:14:09]process_action close_receipt done [10:14:09]requested_data is exist [10:14:09]produce_requested_data [10:14:09]requested_item fm.sn is exist - process it [10:14:09]wFMCommunicate request_size=4 [10:14:09]MH_SAM_APDU [10:14:09]CAPDU: 80 11 00 00 [10:14:09]Write to MH i2c: E2 08 00 9A 41 80 11 00 00 00 00 00 00 55 [10:14:09]Write i2c OK [10:14:09]MH_I2C_Read... [10:14:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:09]Read from MH i2c: E2 [10:14:09]MH_I2C_Read... [10:14:09]Read from MH i2c: E2 17 00 [10:14:09]MH_I2C_Read... [10:14:09]Read from MH i2c: E2 17 00 9A 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 AA [10:14:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:14:09]wFMCommunicate OK [10:14:09]requested_item fd.num is exist - process it [10:14:09]SAM_PROTO_GetFieldsCounters [10:14:09]wFMCommunicate request_size=4 [10:14:09]MH_SAM_APDU [10:14:09]CAPDU: 80 13 00 00 [10:14:09]Write to MH i2c: E2 08 00 9B 41 80 13 00 00 00 00 00 00 58 [10:14:09]Write i2c OK [10:14:09]MH_I2C_Read... [10:14:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:14:09]Read from MH i2c: E2 [10:14:09]MH_I2C_Read... [10:14:09]Read from MH i2c: E2 62 00 [10:14:09]MH_I2C_Read... [10:14:09]Read from MH i2c: E2 62 00 9B 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 5B 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 07 [10:14:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 5B 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:14:09]wFMCommunicate OK [10:14:09]SAM_PROTO_GetFieldsCounters done [10:14:09]requested_item shift.num is exist - process it [10:14:09]requested_item shift.opened is exist - process it [10:14:09]req_shift_opened [10:14:09]FM_GetShiftState [10:14:09]SAM_PROTO_GetShiftState [10:14:09]wFMCommunicate request_size=4 [10:14:09]MH_SAM_APDU [10:14:09]CAPDU: 80 13 01 00 [10:14:09]Write to MH i2c: E2 08 00 9C 41 80 13 01 00 00 00 00 00 5A [10:14:09]Write i2c OK [10:14:09]MH_I2C_Read... [10:14:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:09]Read from MH i2c: E2 [10:14:09]MH_I2C_Read... [10:14:09]Read from MH i2c: E2 0E 00 [10:14:09]MH_I2C_Read... [10:14:09]Read from MH i2c: E2 0E 00 9C 41 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 27 [10:14:09]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [10:14:09]wFMCommunicate OK [10:14:09]SAM_PROTO_GetShiftState done [10:14:09]FM_GetShiftState done [10:14:09]req_shift_opened done [10:14:09]requested_item shift.open_date is exist - process it [10:14:09]req_shift_open_date [10:14:09]req_shift_open_date done [10:14:09]produce_requested_data done [10:14:09]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156507,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [10:14:09]process_action_free close_receipt [10:14:09]json_value_free [10:14:09]json_value_free done [10:14:09]process_json_proto returns [10:14:09]Send response to host [10:14:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156507,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [10:14:09]free response buf [10:14:09]execute_script done [10:14:09]execute_script returns [10:14:09]free content buf [10:14:09]Sock 9.Close socket [10:14:09]Sock 9.Thread stoped [10:14:09]OFD Sender: No OFD packet to send [10:14:14]accept exits with 8 [10:14:14]New connection [10:14:14]New thread 3066834276 created [10:14:14]Thread 3066977636 joined [10:14:14]Waiting for new connection... [10:14:14] Sock 8.Parse request [10:14:14]Sock 8.Check first char [10:14:14]Sock 8.First char is OK [10:14:14]request: POST /json_proto HTTP/1.0 [10:14:14]Method: POST [10:14:14]URL: /json_proto [10:14:14]Method is POST - this is cgi request [10:14:14]url: /json_proto [10:14:14]query_string will be loaded in cgi processing [10:14:14]execute_cgi json_proto POST (null) [10:14:14]execute_cgi path=json_proto method=POST [10:14:14]POST find Content-Length [10:14:14]Host: 172.17.63.3:8080 [10:14:14]Content-Length: 676 [10:14:14]Content-Type: application/json [10:14:14] [10:14:14]POST finish read [10:14:14]Found Content-Length = 676 [10:14:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99320", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "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" ] } } [10:14:14]execute_script... [10:14: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)99320", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "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" ] } } [10:14:14]POST & json_proto [10:14:14]process_json_proto [10:14:14]json parsed OK: [10:14:14]protocol is kg_v1.0 [10:14:14]action value=close_receipt [10:14:14]process_action close_receipt [10:14:14]cmd_close_receipt [10:14:14]MH_GetDate [10:14:14]Write to MH i2c: F0 00 00 9D 41 CD [10:14:14]Write i2c OK [10:14:14]MH_I2C_Read... [10:14:14]Read from MH i2c: F0 [10:14:14]MH_I2C_Read... [10:14:14]Read from MH i2c: F0 09 00 [10:14:14]MH_I2C_Read... [10:14:14]Read from MH i2c: F0 09 00 9D 41 00 7B 12 1E 67 50 D1 6C 64 D9 [10:14:14]GetLastDocTimeStamp 1730024052 [10:14:14]current date 1730024059 [10:14:14]FM_GetShiftState [10:14:14]SAM_PROTO_GetShiftState [10:14:14]wFMCommunicate request_size=4 [10:14:14]MH_SAM_APDU [10:14:14]CAPDU: 80 13 01 00 [10:14:14]Write to MH i2c: E2 08 00 9E 41 80 13 01 00 00 00 00 00 5C [10:14:14]Write i2c OK [10:14:14]MH_I2C_Read... [10:14:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:14]Read from MH i2c: E2 [10:14:14]MH_I2C_Read... [10:14:14]Read from MH i2c: E2 0E 00 [10:14:14]MH_I2C_Read... [10:14:14]Read from MH i2c: E2 0E 00 9E 41 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 29 [10:14:14]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [10:14:14]wFMCommunicate OK [10:14:14]SAM_PROTO_GetShiftState done [10:14:14]FM_GetShiftState done [10:14:14]opened in 1729989044 [10:14:14]opened+sec_in_day 1730075444 [10:14:14]quantity*price = 20003 [10:14:14]sum+1 = 20004 [10:14:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 59 27.10.2024 10:14 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156508 ФПД: 82542898343530 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T101419&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156508&fm=82542898343530&tin=02508201610067®Number=0000000000091693&sum=20000 [10:14:15]StoreToDocumentArchive [10:14:15]shift 537 fd 156508 [10:14:15]save to /storage/0537/doc_00156508 [10:14:15]save last doc name /storage/0537/doc_00156508 to /storage/kkm_last_doc_name [10:14:15]save OK [10:14:15]Clear old archive folders... [10:14:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:14:15]tlvbuf is 0174F7C0 [10:14:15]SAM_PROTO_ClearQueue [10:14:15]wFMCommunicate request_size=4 [10:14:15]MH_SAM_APDU [10:14:15]CAPDU: 80 09 00 00 [10:14:15]Write to MH i2c: E2 08 00 AB 41 80 09 00 00 00 00 00 00 5E [10:14:15]Write i2c OK [10:14:15]MH_I2C_Read... [10:14:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:14:15]Read from MH i2c: E2 [10:14:15]MH_I2C_Read... [10:14:15]Read from MH i2c: E2 03 00 [10:14:15]MH_I2C_Read... [10:14:15]Read from MH i2c: E2 03 00 AB 41 00 90 00 60 [10:14:15]RAPDU: 90 00 [10:14:15]wFMCommunicate OK [10:14:15]SAM_PROTO_ClearQueue done [10:14:15]KKMCreateOFDPacket [10:14:15]OFDProtocolAddRootSTLVToBuf [10:14:15]FM_MakeSignedData [10:14:15]FM_MakeSignedData [10:14:15]SAM_PROTO_SignData [10:14:15]wFMCommunicate request_size=4 [10:14:15]MH_SAM_APDU [10:14:15]CAPDU: 80 0D 01 02 [10:14:15]Write to MH i2c: E2 08 00 AC 41 80 0D 01 02 00 00 00 00 66 [10:14:15]Write i2c OK [10:14:15]MH_I2C_Read... [10:14:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:14:15]Read from MH i2c: E2 [10:14:15]MH_I2C_Read... [10:14:15]Read from MH i2c: E2 03 00 [10:14:15]MH_I2C_Read... [10:14:15]Read from MH i2c: E2 03 00 AC 41 00 90 00 61 [10:14:15]RAPDU: 90 00 [10:14:15]wFMCommunicate OK [10:14:15]wFMCommunicate request_size=255 [10:14:15]MH_SAM_APDU [10:14: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 3B 00 00 00 F4 03 04 00 7B 12 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 5C 63 02 00 35 04 06 00 4B [10:14:15]Write to MH i2c: E2 02 01 AD 41 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 3B 00 00 00 F4 03 04 00 7B 12 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 5C 63 02 00 35 04 06 00 4B 00 00 30 [10:14:15]Write i2c OK [10:14:15]MH_I2C_Read... [10:14:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:16]Read from MH i2c: E2 [10:14:16]MH_I2C_Read... [10:14:16]Read from MH i2c: E2 03 00 [10:14:16]MH_I2C_Read... [10:14:16]Read from MH i2c: E2 03 00 AD 41 00 90 00 62 [10:14:16]RAPDU: 90 00 [10:14:16]wFMCommunicate OK [10:14:16]wFMCommunicate request_size=10 [10:14:16]MH_SAM_APDU [10:14:16]CAPDU: 80 0D 02 02 05 12 84 22 6E 6A [10:14:16]Write to MH i2c: E2 0D 00 AE 41 80 0D 02 02 05 00 12 84 22 6E 6A 00 00 03 [10:14:16]Write i2c OK [10:14:16]MH_I2C_Read... [10:14:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:16]Read from MH i2c: E2 [10:14:16]MH_I2C_Read... [10:14:16]Read from MH i2c: E2 03 00 [10:14:16]MH_I2C_Read... [10:14:16]Read from MH i2c: E2 03 00 AE 41 00 90 00 63 [10:14:16]RAPDU: 90 00 [10:14:16]wFMCommunicate OK [10:14:16]wFMCommunicate request_size=4 [10:14:16]MH_SAM_APDU [10:14:16]CAPDU: 80 0D 03 02 [10:14:16]Write to MH i2c: E2 08 00 AF 41 80 0D 03 02 00 00 00 00 6B [10:14:16]Write i2c OK [10:14:16]MH_I2C_Read... [10:14:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:14:16]Read from MH i2c: E2 [10:14:16]MH_I2C_Read... [10:14:16]Read from MH i2c: E2 0B 00 [10:14:16]MH_I2C_Read... [10:14:16]Read from MH i2c: E2 0B 00 AF 41 00 C4 72 13 E9 38 4E C7 34 90 00 1F [10:14:16]RAPDU: C4 72 13 E9 38 4E C7 34 90 00 [10:14:16]wFMCommunicate OK [10:14:16]SAM_PROTO_SignData done [10:14:16]FM_MakeSignedData done [10:14:16]CreateOFDProtocolMessage [10:14:16]wFMCommunicate request_size=4 [10:14:16]MH_SAM_APDU [10:14:16]CAPDU: 80 11 00 00 [10:14:16]Write to MH i2c: E2 08 00 B0 41 80 11 00 00 00 00 00 00 6B [10:14:16]Write i2c OK [10:14:16]MH_I2C_Read... [10:14:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:16]Read from MH i2c: E2 [10:14:16]MH_I2C_Read... [10:14:16]Read from MH i2c: E2 17 00 [10:14:16]MH_I2C_Read... [10:14:16]Read from MH i2c: E2 17 00 B0 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 C0 [10:14:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:14:16]wFMCommunicate OK [10:14:16]CreateOFDProtocolMessage done [10:14:16]OFDSenderStorePacket 156508 [10:14:16]StoreOFDPacket docnum=156508 [10:14:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 68 6A 07 01 9C A3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 3B 00 00 00 F4 03 04 00 7B 12 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 5C 63 02 00 35 04 06 00 4B 12 84 22 6E 6A C4 72 13 E9 38 4E C7 34 [10:14:16]CheckFolder [10:14:16]dirname=/storage/ofd_packets [10:14:16]CheckFolder done [10:14:16]ProducePacketName [10:14:16]name=ofd_packets/00156508 [10:14:16]NVStorageSaveData ofd_packets/00156508 [10:14:16]File name is /storage/ofd_packets/00156508 [10:14:16]Write 301 bytes [10:14:16]NVStorageSaveData done [10:14:16]OFDSenderStorePacket done [10:14:16]KKMCreateOFDPacket done [10:14:16]NVStorageSaveData kkm_last_timestamp [10:14:16]File name is /storage/kkm_last_timestamp [10:14:16]Write 4 bytes [10:14:16]NVStorageSaveData done [10:14:16]ExternCall_PrintAddStr [10:14:16]wPrintStart [10:14:16]Write to MH i2c: 01 00 00 B1 41 F2 [10:14:16]Write i2c OK [10:14:16]MH_I2C_Read... [10:14:16]Read from MH i2c: 01 [10:14:16]MH_I2C_Read... [10:14:16]Read from MH i2c: 01 07 00 [10:14:16]MH_I2C_Read... [10:14:16]Read from MH i2c: 01 07 00 B1 41 00 00 00 00 00 FF 0F 07 [10:14:16]RasterBufferAndPrint [10:14:16]line Счет N : (1)99320 [10:14:16]line ИНН: 02508201610067 [10:14:16]line Контрольно-Кассовый Чек [10:14:16]line ПРОДАЖА [10:14:16]line ТРК (МРК, ГНК) : 31 [10:14:16]line Товар: 2710124130 [10:14:16]line Аи-92-К-5 [10:14:16]line 2.990 * 66.90 [10:14:16]line = 200.03 [10:14:16]line НДС 12% НСП 1% [10:14:16]line > о реализуемом товаре [10:14:16]line ОКРУГЛЕНИЕ: -0.03 [10:14:16]line ИТОГО: 200.00 [10:14:16]line Внесено: 200.00 [10:14:16]line СДАЧА: 0.00 [10:14:16]line НСП 1% : 1.77 [10:14:16]line НДС 12% : 21.24 [10:14:16]line Наличными: 200.00 [10:14:16]line Безнал.: 0.00 [10:14:16]line Место: АЗС № 143 "Партнер Нефть" [10:14:16]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [10:14:16]line СНО: Общий режим [10:14:16]line Чек 59 27.10.2024 10:14 [10:14:16]line Смена: 537 ФФД: 1.0 [10:14:16]line ЗНМ: 0300000096 [10:14:16]line РНМ: 0000000000091693 [10:14:16]line Версия ККМ: 001 [10:14:16]line ФМ: 0000000000871792 [10:14:16]line ФД: 156508 [10:14:16]line ФПД: 82542898343530 [10:14:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T101419&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156508&fm=82542898343530&tin=02508201610067®Number=0000000000091693&sum=20000 [10:14:16]written 0, free lines is 4095 [10:14:16]OFD Sender: Processing packet 156508 [packets to send 31, broken 30] [10:14:16]ProducePacketName [10:14:16]name=ofd_packets/00156508 [10:14:16]OFD Sender: To server: pG, [10:14:16]CommunicateWithHost lk.salyk.kg:30040 [10:14:16]ConnectInit lk.salyk.kg [10:14:16]Connected sock=10 [10:14:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 68 6A 07 01 9C A3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 3B 00 00 00 F4 03 04 00 7B 12 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 5C 63 02 00 35 04 06 00 4B 12 84 22 6E 6A C4 72 13 E9 38 4E C7 34 [10:14:16]Write to MH i2c: 01 00 00 DC 41 1D [10:14:16]Write i2c OK [10:14:16]MH_I2C_Read... [10:14:16]Read from MH i2c: 01 [10:14:16]MH_I2C_Read... [10:14:16]Read from MH i2c: 01 07 00 [10:14:16]MH_I2C_Read... [10:14:16]Read from MH i2c: 01 07 00 DC 41 00 00 00 00 00 EA 0C 1A [10:14:16]RasterBufferAndPrint [10:14:16]line [10:14:16]line [10:14:16]line [10:14:16]line [10:14:16]line [10:14:16]written 0, free lines is 3316 [10:14:16]process_action close_receipt done [10:14:16]requested_data is exist [10:14:16]produce_requested_data [10:14:16]requested_item fm.sn is exist - process it [10:14:16]wFMCommunicate request_size=4 [10:14:16]MH_SAM_APDU [10:14:16]CAPDU: 80 11 00 00 [10:14:16]Write to MH i2c: E2 08 00 E3 41 80 11 00 00 00 00 00 00 9E [10:14:16]Write i2c OK [10:14:16]MH_I2C_Read... [10:14:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:16]Read from MH i2c: E2 [10:14:16]MH_I2C_Read... [10:14:16]Read from MH i2c: E2 17 00 [10:14:16]MH_I2C_Read... [10:14:16]Read from MH i2c: E2 17 00 E3 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 F3 [10:14:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:14:16]wFMCommunicate OK [10:14:16]requested_item fd.num is exist - process it [10:14:16]SAM_PROTO_GetFieldsCounters [10:14:16]wFMCommunicate request_size=4 [10:14:16]MH_SAM_APDU [10:14:16]CAPDU: 80 13 00 00 [10:14:16]Write to MH i2c: E2 08 00 E4 41 80 13 00 00 00 00 00 00 A1 [10:14:16]Write i2c OK [10:14:16]MH_I2C_Read... [10:14:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 8A D7 47 00 9B 42 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 5C 63 02 00 F4 03 04 00 EB B7 1D 67 B6 04 01 00 00 B3 DD EB 76 CA 18 36 8D [10:14:17]CommunicateWithHost err = 0 [10:14:17]CheckOFDResponse [10:14:17]1017 (14) - 77093643461234 [10:14:17]1041 (16) - 0000000000871792 [10:14:17]1040 (4) - 156508 [10:14:17]1012 (4) - 27.10.2024 03:47 [10:14:17]1206 (1) - 0 [10:14:17]OFD Sender: Remove packet 156508 [10:14:17]ProducePacketName [10:14:17]name=ofd_packets/00156508 [10:14:17]NVStorageDeleteData [10:14:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:14:17]Read from MH i2c: E2 [10:14:17]MH_I2C_Read... [10:14:17]Read from MH i2c: E2 62 00 [10:14:17]MH_I2C_Read... [10:14:17]Read from MH i2c: E2 62 00 E4 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 5C 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 54 [10:14:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 5C 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:14:17]wFMCommunicate OK [10:14:17]SAM_PROTO_GetFieldsCounters done [10:14:17]requested_item shift.num is exist - process it [10:14:17]requested_item shift.opened is exist - process it [10:14:17]req_shift_opened [10:14:17]FM_GetShiftState [10:14:17]SAM_PROTO_GetShiftState [10:14:17]wFMCommunicate request_size=4 [10:14:17]MH_SAM_APDU [10:14:17]CAPDU: 80 13 01 00 [10:14:17]Write to MH i2c: E2 08 00 E5 41 80 13 01 00 00 00 00 00 A3 [10:14:17]Write i2c OK [10:14:17]MH_I2C_Read... [10:14:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:17]Read from MH i2c: E2 [10:14:17]MH_I2C_Read... [10:14:17]Read from MH i2c: E2 0E 00 [10:14:17]MH_I2C_Read... [10:14:17]Read from MH i2c: E2 0E 00 E5 41 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 70 [10:14:17]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [10:14:17]wFMCommunicate OK [10:14:17]SAM_PROTO_GetShiftState done [10:14:17]FM_GetShiftState done [10:14:17]req_shift_opened done [10:14:17]requested_item shift.open_date is exist - process it [10:14:17]req_shift_open_date [10:14:17]req_shift_open_date done [10:14:17]produce_requested_data done [10:14:17]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156508,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [10:14:17]process_action_free close_receipt [10:14:17]json_value_free [10:14:17]json_value_free done [10:14:17]process_json_proto returns [10:14:17]Send response to host [10:14:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156508,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [10:14:17]free response buf [10:14:17]execute_script done [10:14:17]execute_script returns [10:14:17]free content buf [10:14:17]Sock 8.Close socket [10:14:17]Sock 8.Thread stoped [10:14:17]OFD Sender: No OFD packet to send [10:14:22]OFD Sender: No OFD packet to send [10:14:27]OFD Sender: No OFD packet to send [10:14:32]OFD Sender: No OFD packet to send [10:14:37]OFD Sender: No OFD packet to send [10:14:42]OFD Sender: No OFD packet to send [10:14:47]OFD Sender: No OFD packet to send [10:14:52]OFD Sender: No OFD packet to send [10:14:56]accept exits with 9 [10:14:56]New connection [10:14:56]New thread 3066977636 created [10:14:56]Thread 3066834276 joined [10:14:56]Waiting for new connection... [10:14:56] Sock 9.Parse request [10:14:56]Sock 9.Check first char [10:14:56]Sock 9.First char is OK [10:14:56]request: POST /json_proto HTTP/1.0 [10:14:56]Method: POST [10:14:56]URL: /json_proto [10:14:56]Method is POST - this is cgi request [10:14:56]url: /json_proto [10:14:56]query_string will be loaded in cgi processing [10:14:56]execute_cgi json_proto POST (null) [10:14:56]execute_cgi path=json_proto method=POST [10:14:56]POST find Content-Length [10:14:56]Host: 172.17.63.3:8080 [10:14:56]Content-Length: 677 [10:14:56]Content-Type: application/json [10:14:56] [10:14:56]POST finish read [10:14:56]Found Content-Length = 677 [10:14:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99322", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 13.460, "sum" : 900.47, "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:14:56]execute_script... [10:14: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)99322", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 13.460, "sum" : 900.47, "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:14:56]POST & json_proto [10:14:56]process_json_proto [10:14:56]json parsed OK: [10:14:56]protocol is kg_v1.0 [10:14:56]action value=close_receipt [10:14:56]process_action close_receipt [10:14:56]cmd_close_receipt [10:14:56]MH_GetDate [10:14:56]Write to MH i2c: F0 00 00 E6 41 16 [10:14:56]Write i2c OK [10:14:56]MH_I2C_Read... [10:14:56]Read from MH i2c: F0 [10:14:56]MH_I2C_Read... [10:14:56]Read from MH i2c: F0 09 00 [10:14:56]MH_I2C_Read... [10:14:56]Read from MH i2c: F0 09 00 E6 41 00 A5 12 1E 67 50 D1 6C 64 4C [10:14:56]GetLastDocTimeStamp 1730024059 [10:14:56]current date 1730024101 [10:14:56]FM_GetShiftState [10:14:56]SAM_PROTO_GetShiftState [10:14:56]wFMCommunicate request_size=4 [10:14:56]MH_SAM_APDU [10:14:56]CAPDU: 80 13 01 00 [10:14:56]Write to MH i2c: E2 08 00 E7 41 80 13 01 00 00 00 00 00 A5 [10:14:56]Write i2c OK [10:14:56]MH_I2C_Read... [10:14:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:56]Read from MH i2c: E2 [10:14:56]MH_I2C_Read... [10:14:56]Read from MH i2c: E2 0E 00 [10:14:56]MH_I2C_Read... [10:14:56]Read from MH i2c: E2 0E 00 E7 41 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 72 [10:14:56]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [10:14:56]wFMCommunicate OK [10:14:56]SAM_PROTO_GetShiftState done [10:14:56]FM_GetShiftState done [10:14:56]opened in 1729989044 [10:14:56]opened+sec_in_day 1730075444 [10:14:56]quantity*price = 90047 [10:14:56]sum+1 = 90048 [10:14:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.62 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 60 27.10.2024 10:15 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156509 ФПД: 253350889052613 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T101501&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156509&fm=253350889052613&tin=02508201610067®Number=0000000000091693&sum=90000 [10:14:57]StoreToDocumentArchive [10:14:57]shift 537 fd 156509 [10:14:57]save to /storage/0537/doc_00156509 [10:14:57]save last doc name /storage/0537/doc_00156509 to /storage/kkm_last_doc_name [10:14:57]save OK [10:14:57]Clear old archive folders... [10:14:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:14:57]tlvbuf is B6EE0A00 [10:14:57]SAM_PROTO_ClearQueue [10:14:57]wFMCommunicate request_size=4 [10:14:57]MH_SAM_APDU [10:14:57]CAPDU: 80 09 00 00 [10:14:57]Write to MH i2c: E2 08 00 F4 41 80 09 00 00 00 00 00 00 A7 [10:14:57]Write i2c OK [10:14:57]MH_I2C_Read... [10:14:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:14:57]Read from MH i2c: E2 [10:14:57]MH_I2C_Read... [10:14:57]Read from MH i2c: E2 03 00 [10:14:57]MH_I2C_Read... [10:14:57]Read from MH i2c: E2 03 00 F4 41 00 90 00 A9 [10:14:57]RAPDU: 90 00 [10:14:57]wFMCommunicate OK [10:14:57]SAM_PROTO_ClearQueue done [10:14:57]KKMCreateOFDPacket [10:14:57]OFDProtocolAddRootSTLVToBuf [10:14:57]FM_MakeSignedData [10:14:57]FM_MakeSignedData [10:14:57]SAM_PROTO_SignData [10:14:57]wFMCommunicate request_size=4 [10:14:57]MH_SAM_APDU [10:14:57]CAPDU: 80 0D 01 02 [10:14:57]Write to MH i2c: E2 08 00 F5 41 80 0D 01 02 00 00 00 00 AF [10:14:57]Write i2c OK [10:14:57]MH_I2C_Read... [10:14:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:14:57]Read from MH i2c: E2 [10:14:57]MH_I2C_Read... [10:14:57]Read from MH i2c: E2 03 00 [10:14:57]MH_I2C_Read... [10:14:57]Read from MH i2c: E2 03 00 F5 41 00 90 00 AA [10:14:57]RAPDU: 90 00 [10:14:57]wFMCommunicate OK [10:14:57]wFMCommunicate request_size=255 [10:14:57]MH_SAM_APDU [10:14: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 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 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 3C 00 00 00 F4 03 04 00 A5 12 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 5D 63 02 00 35 04 06 00 E6 [10:14:57]Write to MH i2c: E2 02 01 F6 41 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 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 3C 00 00 00 F4 03 04 00 A5 12 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 5D 63 02 00 35 04 06 00 E6 00 00 9B [10:14:57]Write i2c OK [10:14:57]MH_I2C_Read... [10:14:57]OFD Sender: No OFD packet to send [10:14:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:57]Read from MH i2c: E2 [10:14:57]MH_I2C_Read... [10:14:57]Read from MH i2c: E2 03 00 [10:14:57]MH_I2C_Read... [10:14:57]Read from MH i2c: E2 03 00 F6 41 00 90 00 AB [10:14:57]RAPDU: 90 00 [10:14:57]wFMCommunicate OK [10:14:57]wFMCommunicate request_size=10 [10:14:57]MH_SAM_APDU [10:14:57]CAPDU: 80 0D 02 02 05 6B D9 BE D9 C5 [10:14:57]Write to MH i2c: E2 0D 00 F7 41 80 0D 02 02 05 00 6B D9 BE D9 C5 00 00 5C [10:14:57]Write i2c OK [10:14:57]MH_I2C_Read... [10:14:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:57]Read from MH i2c: E2 [10:14:57]MH_I2C_Read... [10:14:57]Read from MH i2c: E2 03 00 [10:14:57]MH_I2C_Read... [10:14:57]Read from MH i2c: E2 03 00 F7 41 00 90 00 AC [10:14:57]RAPDU: 90 00 [10:14:57]wFMCommunicate OK [10:14:57]wFMCommunicate request_size=4 [10:14:57]MH_SAM_APDU [10:14:57]CAPDU: 80 0D 03 02 [10:14:57]Write to MH i2c: E2 08 00 F8 41 80 0D 03 02 00 00 00 00 B4 [10:14:57]Write i2c OK [10:14:57]MH_I2C_Read... [10:14:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:14:57]Read from MH i2c: E2 [10:14:57]MH_I2C_Read... [10:14:57]Read from MH i2c: E2 0B 00 [10:14:57]MH_I2C_Read... [10:14:57]Read from MH i2c: E2 0B 00 F8 41 00 0F 4A 82 1A E7 B8 E0 97 90 00 C0 [10:14:57]RAPDU: 0F 4A 82 1A E7 B8 E0 97 90 00 [10:14:57]wFMCommunicate OK [10:14:57]SAM_PROTO_SignData done [10:14:57]FM_MakeSignedData done [10:14:57]CreateOFDProtocolMessage [10:14:57]wFMCommunicate request_size=4 [10:14:57]MH_SAM_APDU [10:14:57]CAPDU: 80 11 00 00 [10:14:57]Write to MH i2c: E2 08 00 F9 41 80 11 00 00 00 00 00 00 B4 [10:14:57]Write i2c OK [10:14:57]MH_I2C_Read... [10:14:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:57]Read from MH i2c: E2 [10:14:57]MH_I2C_Read... [10:14:57]Read from MH i2c: E2 17 00 [10:14:57]MH_I2C_Read... [10:14:57]Read from MH i2c: E2 17 00 F9 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 09 [10:14:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:14:57]wFMCommunicate OK [10:14:57]CreateOFDProtocolMessage done [10:14:57]OFDSenderStorePacket 156509 [10:14:57]StoreOFDPacket docnum=156509 [10:14:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 E1 9D 07 01 15 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 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 3C 00 00 00 F4 03 04 00 A5 12 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 5D 63 02 00 35 04 06 00 E6 6B D9 BE D9 C5 0F 4A 82 1A E7 B8 E0 97 [10:14:57]CheckFolder [10:14:57]dirname=/storage/ofd_packets [10:14:57]CheckFolder done [10:14:57]ProducePacketName [10:14:57]name=ofd_packets/00156509 [10:14:57]NVStorageSaveData ofd_packets/00156509 [10:14:57]File name is /storage/ofd_packets/00156509 [10:14:57]Write 301 bytes [10:14:57]NVStorageSaveData done [10:14:57]OFDSenderStorePacket done [10:14:57]KKMCreateOFDPacket done [10:14:57]NVStorageSaveData kkm_last_timestamp [10:14:57]File name is /storage/kkm_last_timestamp [10:14:57]Write 4 bytes [10:14:57]NVStorageSaveData done [10:14:57]ExternCall_PrintAddStr [10:14:57]wPrintStart [10:14:57]Write to MH i2c: 01 00 00 FA 41 3B [10:14:57]Write i2c OK [10:14:57]MH_I2C_Read... [10:14:57]Read from MH i2c: 01 [10:14:57]MH_I2C_Read... [10:14:57]Read from MH i2c: 01 07 00 [10:14:57]MH_I2C_Read... [10:14:57]Read from MH i2c: 01 07 00 FA 41 00 00 00 00 00 FF 0F 50 [10:14:57]RasterBufferAndPrint [10:14:57]line Счет N : (1)99322 [10:14:57]line ИНН: 02508201610067 [10:14:57]line Контрольно-Кассовый Чек [10:14:57]line ПРОДАЖА [10:14:57]line ТРК (МРК, ГНК) : 21 [10:14:57]line Товар: 2710124130 [10:14:57]line Аи-92-К-5 [10:14:57]line 13.460 * 66.90 [10:14:57]line = 900.47 [10:14:57]line НДС 12% НСП 1% [10:14:57]line > о реализуемом товаре [10:14:57]line ОКРУГЛЕНИЕ: -0.47 [10:14:57]line ИТОГО: 900.00 [10:14:57]line Внесено: 900.00 [10:14:57]line СДАЧА: 0.00 [10:14:57]line НСП 1% : 7.97 [10:14:57]line НДС 12% : 95.62 [10:14:57]line Наличными: 900.00 [10:14:57]line Безнал.: 0.00 [10:14:57]line Место: АЗС № 143 "Партнер Нефть" [10:14:57]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [10:14:57]line СНО: Общий режим [10:14:57]line Чек 60 27.10.2024 10:15 [10:14:57]line Смена: 537 ФФД: 1.0 [10:14:57]line ЗНМ: 0300000096 [10:14:57]line РНМ: 0000000000091693 [10:14:57]line Версия ККМ: 001 [10:14:57]line ФМ: 0000000000871792 [10:14:57]line ФД: 156509 [10:14:57]line ФПД: 253350889052613 [10:14:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T101501&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156509&fm=253350889052613&tin=02508201610067®Number=0000000000091693&sum=90000 [10:14:58]OFD Sender: Processing packet 156509 [packets to send 31, broken 30] [10:14:58]ProducePacketName [10:14:58]name=ofd_packets/00156509 [10:14:58]OFD Sender: To server: pG, [10:14:58]CommunicateWithHost lk.salyk.kg:30040 [10:14:58]ConnectInit lk.salyk.kg [10:14:58]written 0, free lines is 4095 [10:14:58]Connected sock=10 [10:14:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 E1 9D 07 01 15 7B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 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 3C 00 00 00 F4 03 04 00 A5 12 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 5D 63 02 00 35 04 06 00 E6 6B D9 BE D9 C5 0F 4A 82 1A E7 B8 E0 97 [10:14:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 77 C2 47 00 74 3D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 5D 63 02 00 F4 03 04 00 15 B8 1D 67 B6 04 01 00 00 9E 05 E6 A2 E8 A4 16 23 [10:14:58]CommunicateWithHost err = 0 [10:14:58]CheckOFDResponse [10:14:58]1017 (14) - 77093643461234 [10:14:58]1041 (16) - 0000000000871792 [10:14:58]1040 (4) - 156509 [10:14:58]1012 (4) - 27.10.2024 03:48 [10:14:58]1206 (1) - 0 [10:14:58]OFD Sender: Remove packet 156509 [10:14:58]ProducePacketName [10:14:58]name=ofd_packets/00156509 [10:14:58]NVStorageDeleteData [10:14:58]Write to MH i2c: 01 00 00 25 42 67 [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 25 42 00 00 00 00 00 DC 0C 56 [10:14:58]RasterBufferAndPrint [10:14:58]line [10:14:58]line [10:14:58]line [10:14:58]line [10:14:58]line [10:14:58]written 0, free lines is 3298 [10:14:58]process_action close_receipt done [10:14:58]requested_data is exist [10:14:58]produce_requested_data [10:14:58]requested_item fm.sn is exist - process it [10:14:58]wFMCommunicate request_size=4 [10:14:58]MH_SAM_APDU [10:14:58]CAPDU: 80 11 00 00 [10:14:58]Write to MH i2c: E2 08 00 2C 42 80 11 00 00 00 00 00 00 E8 [10:14:58]Write i2c OK [10:14:58]MH_I2C_Read... [10:14:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:58]Read from MH i2c: E2 [10:14:58]MH_I2C_Read... [10:14:58]Read from MH i2c: E2 17 00 [10:14:58]MH_I2C_Read... [10:14:58]Read from MH i2c: E2 17 00 2C 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 3D [10:14:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:14:58]wFMCommunicate OK [10:14:58]requested_item fd.num is exist - process it [10:14:58]SAM_PROTO_GetFieldsCounters [10:14:58]wFMCommunicate request_size=4 [10:14:58]MH_SAM_APDU [10:14:58]CAPDU: 80 13 00 00 [10:14:58]Write to MH i2c: E2 08 00 2D 42 80 13 00 00 00 00 00 00 EB [10:14:58]Write i2c OK [10:14:58]MH_I2C_Read... [10:14:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:14:58]Read from MH i2c: E2 [10:14:58]MH_I2C_Read... [10:14:58]Read from MH i2c: E2 62 00 [10:14:58]MH_I2C_Read... [10:14:58]Read from MH i2c: E2 62 00 2D 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 5D 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 A2 [10:14:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 5D 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:14:58]wFMCommunicate OK [10:14:58]SAM_PROTO_GetFieldsCounters done [10:14:58]requested_item shift.num is exist - process it [10:14:58]requested_item shift.opened is exist - process it [10:14:58]req_shift_opened [10:14:58]FM_GetShiftState [10:14:58]SAM_PROTO_GetShiftState [10:14:58]wFMCommunicate request_size=4 [10:14:58]MH_SAM_APDU [10:14:58]CAPDU: 80 13 01 00 [10:14:58]Write to MH i2c: E2 08 00 2E 42 80 13 01 00 00 00 00 00 ED [10:14:58]Write i2c OK [10:14:58]MH_I2C_Read... [10:14:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:58]Read from MH i2c: E2 [10:14:58]MH_I2C_Read... [10:14:58]Read from MH i2c: E2 0E 00 [10:14:58]MH_I2C_Read... [10:14:58]Read from MH i2c: E2 0E 00 2E 42 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 BA [10:14:58]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [10:14:58]wFMCommunicate OK [10:14:58]SAM_PROTO_GetShiftState done [10:14:58]FM_GetShiftState done [10:14:58]req_shift_opened done [10:14:58]requested_item shift.open_date is exist - process it [10:14:58]req_shift_open_date [10:14:58]req_shift_open_date done [10:14:58]produce_requested_data done [10:14:58]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156509,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [10:14:58]process_action_free close_receipt [10:14:58]json_value_free [10:14:58]json_value_free done [10:14:58]process_json_proto returns [10:14:58]Send response to host [10:14:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156509,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [10:14:58]free response buf [10:14:58]execute_script done [10:14:58]execute_script returns [10:14:58]free content buf [10:14:58]Sock 9.Close socket [10:14:58]Sock 9.Thread stoped [10:14:59]OFD Sender: No OFD packet to send [10:15:04]OFD Sender: No OFD packet to send [10:15:09]OFD Sender: No OFD packet to send [10:15:14]OFD Sender: No OFD packet to send [10:15:19]OFD Sender: No OFD packet to send [10:15:24]OFD Sender: No OFD packet to send [10:15:29]OFD Sender: No OFD packet to send [10:15:34]OFD Sender: No OFD packet to send [10:15:39]OFD Sender: No OFD packet to send [10:15:44]OFD Sender: No OFD packet to send [10:15:49]OFD Sender: No OFD packet to send [10:15:54]OFD Sender: No OFD packet to send [10:15:59]OFD Sender: No OFD packet to send [10:16:04]OFD Sender: No OFD packet to send [10:16:09]OFD Sender: No OFD packet to send [10:16:14]OFD Sender: No OFD packet to send [10:16:19]OFD Sender: No OFD packet to send [10:16:24]OFD Sender: No OFD packet to send [10:16:29]OFD Sender: No OFD packet to send [10:16:34]OFD Sender: No OFD packet to send [10:16:39]OFD Sender: No OFD packet to send [10:16:44]OFD Sender: No OFD packet to send [10:16:49]OFD Sender: No OFD packet to send [10:16:54]OFD Sender: No OFD packet to send [10:16:59]OFD Sender: No OFD packet to send [10:17:04]OFD Sender: No OFD packet to send [10:17:09]OFD Sender: No OFD packet to send [10:17:14]OFD Sender: No OFD packet to send [10:17:19]OFD Sender: No OFD packet to send [10:17:24]OFD Sender: No OFD packet to send [10:17:29]OFD Sender: No OFD packet to send [10:17:34]OFD Sender: No OFD packet to send [10:17:39]OFD Sender: No OFD packet to send [10:17:44]OFD Sender: No OFD packet to send [10:17:49]OFD Sender: No OFD packet to send [10:17:54]OFD Sender: No OFD packet to send [10:17:59]OFD Sender: No OFD packet to send [10:18:04]OFD Sender: No OFD packet to send [10:18:09]OFD Sender: No OFD packet to send [10:18:14]OFD Sender: No OFD packet to send [10:18:19]OFD Sender: No OFD packet to send [10:18:24]OFD Sender: No OFD packet to send [10:18:29]OFD Sender: No OFD packet to send [10:18:34]OFD Sender: No OFD packet to send [10:18:39]OFD Sender: No OFD packet to send [10:18:44]OFD Sender: No OFD packet to send [10:18:49]OFD Sender: No OFD packet to send [10:18:54]OFD Sender: No OFD packet to send [10:18:59]OFD Sender: No OFD packet to send [10:19:04]OFD Sender: No OFD packet to send [10:19:09]OFD Sender: No OFD packet to send [10:19:14]OFD Sender: No OFD packet to send [10:19:19]OFD Sender: No OFD packet to send [10:19:24]OFD Sender: No OFD packet to send [10:19:29]OFD Sender: No OFD packet to send [10:19:34]OFD Sender: No OFD packet to send [10:19:39]OFD Sender: No OFD packet to send [10:19:44]OFD Sender: No OFD packet to send [10:19:49]OFD Sender: No OFD packet to send [10:19:54]OFD Sender: No OFD packet to send [10:19:59]OFD Sender: No OFD packet to send [10:20:04]OFD Sender: No OFD packet to send [10:20:09]OFD Sender: No OFD packet to send [10:20:14]OFD Sender: No OFD packet to send [10:20:19]OFD Sender: No OFD packet to send [10:20:24]OFD Sender: No OFD packet to send [10:20:29]OFD Sender: No OFD packet to send [10:20:34]OFD Sender: No OFD packet to send [10:20:39]OFD Sender: No OFD packet to send [10:20:44]OFD Sender: No OFD packet to send [10:20:49]OFD Sender: No OFD packet to send [10:20:54]OFD Sender: No OFD packet to send [10:20:59]OFD Sender: No OFD packet to send [10:21:04]OFD Sender: No OFD packet to send [10:21:09]OFD Sender: No OFD packet to send [10:21:14]OFD Sender: No OFD packet to send [10:21:19]OFD Sender: No OFD packet to send [10:21:24]OFD Sender: No OFD packet to send [10:21:29]OFD Sender: No OFD packet to send [10:21:34]OFD Sender: No OFD packet to send [10:21:39]OFD Sender: No OFD packet to send [10:21:44]OFD Sender: No OFD packet to send [10:21:49]OFD Sender: No OFD packet to send [10:21:54]OFD Sender: No OFD packet to send [10:21:59]OFD Sender: No OFD packet to send [10:22:04]OFD Sender: No OFD packet to send [10:22:09]OFD Sender: No OFD packet to send [10:22:14]OFD Sender: No OFD packet to send [10:22:19]OFD Sender: No OFD packet to send [10:22:24]OFD Sender: No OFD packet to send [10:22:29]OFD Sender: No OFD packet to send [10:22:34]OFD Sender: No OFD packet to send [10:22:39]OFD Sender: No OFD packet to send [10:22:44]OFD Sender: No OFD packet to send [10:22:49]OFD Sender: No OFD packet to send [10:22:54]OFD Sender: No OFD packet to send [10:22:59]OFD Sender: No OFD packet to send [10:23:04]OFD Sender: No OFD packet to send [10:23:09]OFD Sender: No OFD packet to send [10:23:14]OFD Sender: No OFD packet to send [10:23:19]OFD Sender: No OFD packet to send [10:23:24]OFD Sender: No OFD packet to send [10:23:29]OFD Sender: No OFD packet to send [10:23:34]OFD Sender: No OFD packet to send [10:23:39]OFD Sender: No OFD packet to send [10:23:44]OFD Sender: No OFD packet to send [10:23:49]OFD Sender: No OFD packet to send [10:23:54]OFD Sender: No OFD packet to send [10:23:59]OFD Sender: No OFD packet to send [10:24:04]OFD Sender: No OFD packet to send [10:24:09]OFD Sender: No OFD packet to send [10:24:14]OFD Sender: No OFD packet to send [10:24:19]OFD Sender: No OFD packet to send [10:24:24]OFD Sender: No OFD packet to send [10:24:29]OFD Sender: No OFD packet to send [10:24:34]OFD Sender: No OFD packet to send [10:24:39]OFD Sender: No OFD packet to send [10:24:44]OFD Sender: No OFD packet to send [10:24:49]OFD Sender: No OFD packet to send [10:24:54]OFD Sender: No OFD packet to send [10:24:59]OFD Sender: No OFD packet to send [10:25:04]OFD Sender: No OFD packet to send [10:25:09]OFD Sender: No OFD packet to send [10:25:14]OFD Sender: No OFD packet to send [10:25:19]OFD Sender: No OFD packet to send [10:25:24]OFD Sender: No OFD packet to send [10:25:29]OFD Sender: No OFD packet to send [10:25:34]OFD Sender: No OFD packet to send [10:25:39]OFD Sender: No OFD packet to send [10:25:44]OFD Sender: No OFD packet to send [10:25:49]OFD Sender: No OFD packet to send [10:25:54]OFD Sender: No OFD packet to send [10:25:59]OFD Sender: No OFD packet to send [10:26:04]OFD Sender: No OFD packet to send [10:26:09]OFD Sender: No OFD packet to send [10:26:14]OFD Sender: No OFD packet to send [10:26:19]OFD Sender: No OFD packet to send [10:26:24]OFD Sender: No OFD packet to send [10:26:29]OFD Sender: No OFD packet to send [10:26:34]OFD Sender: No OFD packet to send [10:26:39]OFD Sender: No OFD packet to send [10:26:44]OFD Sender: No OFD packet to send [10:26:49]OFD Sender: No OFD packet to send [10:26:54]OFD Sender: No OFD packet to send [10:26:59]OFD Sender: No OFD packet to send [10:27:04]OFD Sender: No OFD packet to send [10:27:09]OFD Sender: No OFD packet to send [10:27:14]OFD Sender: No OFD packet to send [10:27:19]OFD Sender: No OFD packet to send [10:27:24]OFD Sender: No OFD packet to send [10:27:29]OFD Sender: No OFD packet to send [10:27:34]OFD Sender: No OFD packet to send [10:27:39]OFD Sender: No OFD packet to send [10:27:44]OFD Sender: No OFD packet to send [10:27:49]OFD Sender: No OFD packet to send [10:27:54]OFD Sender: No OFD packet to send [10:27:59]OFD Sender: No OFD packet to send [10:28:04]OFD Sender: No OFD packet to send [10:28:09]OFD Sender: No OFD packet to send [10:28:14]OFD Sender: No OFD packet to send [10:28:19]OFD Sender: No OFD packet to send [10:28:24]OFD Sender: No OFD packet to send [10:28:29]OFD Sender: No OFD packet to send [10:28:34]OFD Sender: No OFD packet to send [10:28:39]OFD Sender: No OFD packet to send [10:28:44]OFD Sender: No OFD packet to send [10:28:49]OFD Sender: No OFD packet to send [10:28:54]OFD Sender: No OFD packet to send [10:28:59]OFD Sender: No OFD packet to send [10:29:04]OFD Sender: No OFD packet to send [10:29:09]OFD Sender: No OFD packet to send [10:29:14]OFD Sender: No OFD packet to send [10:29:19]OFD Sender: No OFD packet to send [10:29:24]OFD Sender: No OFD packet to send [10:29:29]OFD Sender: No OFD packet to send [10:29:34]OFD Sender: No OFD packet to send [10:29:39]OFD Sender: No OFD packet to send [10:29:44]OFD Sender: No OFD packet to send [10:29:49]OFD Sender: No OFD packet to send [10:29:54]OFD Sender: No OFD packet to send [10:29:59]OFD Sender: No OFD packet to send [10:30:04]OFD Sender: No OFD packet to send [10:30:09]OFD Sender: No OFD packet to send [10:30:14]OFD Sender: No OFD packet to send [10:30:19]OFD Sender: No OFD packet to send [10:30:23]accept exits with 8 [10:30:23]New connection [10:30:23]New thread 3066834276 created [10:30:23]Thread 3066977636 joined [10:30:23]Waiting for new connection... [10:30:23] Sock 8.Parse request [10:30:23]Sock 8.Check first char [10:30:23]Sock 8.First char is OK [10:30:23]request: POST /json_proto HTTP/1.0 [10:30:23]Method: POST [10:30:23]URL: /json_proto [10:30:23]Method is POST - this is cgi request [10:30:23]url: /json_proto [10:30:23]query_string will be loaded in cgi processing [10:30:23]execute_cgi json_proto POST (null) [10:30:23]execute_cgi path=json_proto method=POST [10:30:23]POST find Content-Length [10:30:23]Host: 172.17.63.3:8080 [10:30:23]Content-Length: 676 [10:30:23]Content-Type: application/json [10:30:23] [10:30:23]POST finish read [10:30:23]Found Content-Length = 676 [10:30:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99324", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:30:23]execute_script... [10: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)99324", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:30:23]POST & json_proto [10:30:23]process_json_proto [10:30:23]json parsed OK: [10:30:23]protocol is kg_v1.0 [10:30:23]action value=close_receipt [10:30:23]process_action close_receipt [10:30:23]cmd_close_receipt [10:30:23]MH_GetDate [10:30:23]Write to MH i2c: F0 00 00 2F 42 60 [10:30:23]Write i2c OK [10:30:23]MH_I2C_Read... [10:30:23]Read from MH i2c: F0 [10:30:23]MH_I2C_Read... [10:30:23]Read from MH i2c: F0 09 00 [10:30:23]MH_I2C_Read... [10:30:23]Read from MH i2c: F0 09 00 2F 42 00 44 16 1E 67 50 D1 6C 64 39 [10:30:23]GetLastDocTimeStamp 1730024101 [10:30:23]current date 1730025028 [10:30:23]FM_GetShiftState [10:30:23]SAM_PROTO_GetShiftState [10:30:23]wFMCommunicate request_size=4 [10:30:23]MH_SAM_APDU [10:30:23]CAPDU: 80 13 01 00 [10:30:23]Write to MH i2c: E2 08 00 30 42 80 13 01 00 00 00 00 00 EF [10:30:23]Write i2c OK [10:30:23]MH_I2C_Read... [10:30:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:30:23]Read from MH i2c: E2 [10:30:23]MH_I2C_Read... [10:30:23]Read from MH i2c: E2 0E 00 [10:30:23]MH_I2C_Read... [10:30:23]Read from MH i2c: E2 0E 00 30 42 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 BC [10:30:23]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [10:30:23]wFMCommunicate OK [10:30:23]SAM_PROTO_GetShiftState done [10:30:23]FM_GetShiftState done [10:30:23]opened in 1729989044 [10:30:23]opened+sec_in_day 1730075444 [10:30:23]quantity*price = 30038 [10:30:23]sum+1 = 30039 [10:30:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 61 27.10.2024 10:30 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156510 ФПД: 100340814017291 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T103028&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156510&fm=100340814017291&tin=02508201610067®Number=0000000000091693&sum=30000 [10:30:24]StoreToDocumentArchive [10:30:24]shift 537 fd 156510 [10:30:24]save to /storage/0537/doc_00156510 [10:30:24]save last doc name /storage/0537/doc_00156510 to /storage/kkm_last_doc_name [10:30:24]save OK [10:30:24]Clear old archive folders... [10:30:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:30:24]tlvbuf is 0167ED20 [10:30:24]SAM_PROTO_ClearQueue [10:30:24]wFMCommunicate request_size=4 [10:30:24]MH_SAM_APDU [10:30:24]CAPDU: 80 09 00 00 [10:30:24]Write to MH i2c: E2 08 00 3D 42 80 09 00 00 00 00 00 00 F1 [10:30:24]Write i2c OK [10:30:24]MH_I2C_Read... [10:30:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:30:24]Read from MH i2c: E2 [10:30:24]MH_I2C_Read... [10:30:24]Read from MH i2c: E2 03 00 [10:30:24]MH_I2C_Read... [10:30:24]Read from MH i2c: E2 03 00 3D 42 00 90 00 F3 [10:30:24]RAPDU: 90 00 [10:30:24]wFMCommunicate OK [10:30:24]SAM_PROTO_ClearQueue done [10:30:24]KKMCreateOFDPacket [10:30:24]OFDProtocolAddRootSTLVToBuf [10:30:24]FM_MakeSignedData [10:30:24]FM_MakeSignedData [10:30:24]SAM_PROTO_SignData [10:30:24]wFMCommunicate request_size=4 [10:30:24]MH_SAM_APDU [10:30:24]CAPDU: 80 0D 01 02 [10:30:24]Write to MH i2c: E2 08 00 3E 42 80 0D 01 02 00 00 00 00 F9 [10:30:24]Write i2c OK [10:30:24]MH_I2C_Read... [10:30:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:30:24]Read from MH i2c: E2 [10:30:24]MH_I2C_Read... [10:30:24]Read from MH i2c: E2 03 00 [10:30:24]MH_I2C_Read... [10:30:24]Read from MH i2c: E2 03 00 3E 42 00 90 00 F4 [10:30:24]RAPDU: 90 00 [10:30:24]wFMCommunicate OK [10:30:24]wFMCommunicate request_size=255 [10:30:24]MH_SAM_APDU [10:30: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 44 16 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 5E 63 02 00 35 04 06 00 5B [10:30:24]Write to MH i2c: E2 02 01 3F 42 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 44 16 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 5E 63 02 00 35 04 06 00 5B 00 00 D6 [10:30:24]Write i2c OK [10:30:24]MH_I2C_Read... [10:30:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:30:24]Read from MH i2c: E2 [10:30:24]MH_I2C_Read... [10:30:24]Read from MH i2c: E2 03 00 [10:30:24]MH_I2C_Read... [10:30:24]Read from MH i2c: E2 03 00 3F 42 00 90 00 F5 [10:30:24]RAPDU: 90 00 [10:30:24]wFMCommunicate OK [10:30:24]wFMCommunicate request_size=10 [10:30:24]MH_SAM_APDU [10:30:24]CAPDU: 80 0D 02 02 05 42 6A 93 73 0B [10:30:24]Write to MH i2c: E2 0D 00 40 42 80 0D 02 02 05 00 42 6A 93 73 0B 00 00 C3 [10:30:24]Write i2c OK [10:30:24]MH_I2C_Read... [10:30:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:30:24]Read from MH i2c: E2 [10:30:24]MH_I2C_Read... [10:30:24]Read from MH i2c: E2 03 00 [10:30:24]MH_I2C_Read... [10:30:24]Read from MH i2c: E2 03 00 40 42 00 90 00 F6 [10:30:24]RAPDU: 90 00 [10:30:24]wFMCommunicate OK [10:30:24]wFMCommunicate request_size=4 [10:30:24]MH_SAM_APDU [10:30:24]CAPDU: 80 0D 03 02 [10:30:24]Write to MH i2c: E2 08 00 41 42 80 0D 03 02 00 00 00 00 FE [10:30:24]Write i2c OK [10:30:24]MH_I2C_Read... [10:30:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:30:24]Read from MH i2c: E2 [10:30:24]MH_I2C_Read... [10:30:24]Read from MH i2c: E2 0B 00 [10:30:24]MH_I2C_Read... [10:30:24]Read from MH i2c: E2 0B 00 41 42 00 DF 4D 0B 1D 56 88 8F 70 90 00 30 [10:30:24]RAPDU: DF 4D 0B 1D 56 88 8F 70 90 00 [10:30:24]wFMCommunicate OK [10:30:24]SAM_PROTO_SignData done [10:30:24]FM_MakeSignedData done [10:30:24]CreateOFDProtocolMessage [10:30:24]wFMCommunicate request_size=4 [10:30:24]MH_SAM_APDU [10:30:24]CAPDU: 80 11 00 00 [10:30:24]Write to MH i2c: E2 08 00 42 42 80 11 00 00 00 00 00 00 FE [10:30:24]Write i2c OK [10:30:24]MH_I2C_Read... [10:30:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:30:24]Read from MH i2c: E2 [10:30:24]MH_I2C_Read... [10:30:24]Read from MH i2c: E2 17 00 [10:30:24]MH_I2C_Read... [10:30:24]Read from MH i2c: E2 17 00 42 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 53 [10:30:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:30:24]wFMCommunicate OK [10:30:24]CreateOFDProtocolMessage done [10:30:24]OFDSenderStorePacket 156510 [10:30:24]StoreOFDPacket docnum=156510 [10:30:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 60 32 07 01 10 EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 44 16 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 5E 63 02 00 35 04 06 00 5B 42 6A 93 73 0B DF 4D 0B 1D 56 88 8F 70 [10:30:24]CheckFolder [10:30:24]dirname=/storage/ofd_packets [10:30:24]CheckFolder done [10:30:24]ProducePacketName [10:30:24]name=ofd_packets/00156510 [10:30:24]NVStorageSaveData ofd_packets/00156510 [10:30:24]File name is /storage/ofd_packets/00156510 [10:30:24]Write 301 bytes [10:30:24]NVStorageSaveData done [10:30:24]OFDSenderStorePacket done [10:30:24]KKMCreateOFDPacket done [10:30:24]NVStorageSaveData kkm_last_timestamp [10:30:24]File name is /storage/kkm_last_timestamp [10:30:24]Write 4 bytes [10:30:24]NVStorageSaveData done [10:30:24]OFD Sender: Processing packet 156510 [packets to send 31, broken 30] [10:30:24]ProducePacketName [10:30:24]name=ofd_packets/00156510 [10:30:24]OFD Sender: To server: pG, [10:30:24]CommunicateWithHost lk.salyk.kg:30040 [10:30:24]ConnectInit lk.salyk.kg [10:30:24]ExternCall_PrintAddStr [10:30:24]wPrintStart [10:30:24]Write to MH i2c: 01 00 00 43 42 85 [10:30:24]Write i2c OK [10:30:24]MH_I2C_Read... [10:30:24]Read from MH i2c: 01 [10:30:24]MH_I2C_Read... [10:30:24]Read from MH i2c: 01 07 00 [10:30:24]MH_I2C_Read... [10:30:24]Read from MH i2c: 01 07 00 43 42 00 00 00 00 00 FF 0F 9A [10:30:24]RasterBufferAndPrint [10:30:24]line Счет N : (1)99324 [10:30:24]line ИНН: 02508201610067 [10:30:24]line Контрольно-Кассовый Чек [10:30:24]line ПРОДАЖА [10:30:24]line ТРК (МРК, ГНК) : 21 [10:30:24]line Товар: 2710124130 [10:30:24]line Аи-92-К-5 [10:30:24]line 4.490 * 66.90 [10:30:24]line = 300.38 [10:30:24]line НДС 12% НСП 1% [10:30:24]line > о реализуемом товаре [10:30:24]line ОКРУГЛЕНИЕ: -0.38 [10:30:24]line ИТОГО: 300.00 [10:30:24]line Внесено: 300.00 [10:30:24]line СДАЧА: 0.00 [10:30:24]line НСП 1% : 2.66 [10:30:24]line НДС 12% : 31.90 [10:30:24]line Наличными: 300.00 [10:30:24]line Безнал.: 0.00 [10:30:24]line Место: АЗС № 143 "Партнер Нефть" [10:30:24]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [10:30:24]line СНО: Общий режим [10:30:24]line Чек 61 27.10.2024 10:30 [10:30:24]line Смена: 537 ФФД: 1.0 [10:30:24]line ЗНМ: 0300000096 [10:30:24]line РНМ: 0000000000091693 [10:30:24]line Версия ККМ: 001 [10:30:24]line ФМ: 0000000000871792 [10:30:24]line ФД: 156510 [10:30:24]line ФПД: 100340814017291 [10:30:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T103028&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156510&fm=100340814017291&tin=02508201610067®Number=0000000000091693&sum=30000 [10:30:25]Connected sock=11 [10:30:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 60 32 07 01 10 EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 44 16 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 5E 63 02 00 35 04 06 00 5B 42 6A 93 73 0B DF 4D 0B 1D 56 88 8F 70 [10:30:25]written 0, free lines is 4095 [10:30:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 1B 38 47 00 12 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 31 37 39 32 10 04 04 00 5E 63 02 00 F4 03 04 00 B4 BB 1D 67 B6 04 01 00 00 41 BF C7 1F 29 A9 89 1A [10:30:25]CommunicateWithHost err = 0 [10:30:25]CheckOFDResponse [10:30:25]1017 (14) - 77093643461234 [10:30:25]1041 (16) - 0000000000871792 [10:30:25]1040 (4) - 156510 [10:30:25]1012 (4) - 27.10.2024 04:04 [10:30:25]1206 (1) - 0 [10:30:25]OFD Sender: Remove packet 156510 [10:30:25]ProducePacketName [10:30:25]name=ofd_packets/00156510 [10:30:25]NVStorageDeleteData [10:30:25]Write to MH i2c: 01 00 00 6E 42 B0 [10:30:25]Write i2c OK [10:30:25]MH_I2C_Read... [10:30:25]Read from MH i2c: 01 [10:30:25]MH_I2C_Read... [10:30:25]Read from MH i2c: 01 07 00 [10:30:25]MH_I2C_Read... [10:30:25]Read from MH i2c: 01 07 00 6E 42 00 00 00 00 00 D6 0C 99 [10:30:25]RasterBufferAndPrint [10:30:25]line [10:30:25]line [10:30:25]line [10:30:25]line [10:30:25]line [10:30:25]written 0, free lines is 3289 [10:30:25]process_action close_receipt done [10:30:25]requested_data is exist [10:30:25]produce_requested_data [10:30:25]requested_item fm.sn is exist - process it [10:30:25]wFMCommunicate request_size=4 [10:30:25]MH_SAM_APDU [10:30:25]CAPDU: 80 11 00 00 [10:30:25]Write to MH i2c: E2 08 00 75 42 80 11 00 00 00 00 00 00 31 [10:30:25]Write i2c OK [10:30:25]MH_I2C_Read... [10:30:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:30:25]Read from MH i2c: E2 [10:30:25]MH_I2C_Read... [10:30:25]Read from MH i2c: E2 17 00 [10:30:25]MH_I2C_Read... [10:30:25]Read from MH i2c: E2 17 00 75 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 86 [10:30:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:30:25]wFMCommunicate OK [10:30:25]requested_item fd.num is exist - process it [10:30:25]SAM_PROTO_GetFieldsCounters [10:30:25]wFMCommunicate request_size=4 [10:30:25]MH_SAM_APDU [10:30:25]CAPDU: 80 13 00 00 [10:30:25]Write to MH i2c: E2 08 00 76 42 80 13 00 00 00 00 00 00 34 [10:30:25]Write i2c OK [10:30:25]MH_I2C_Read... [10:30:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:30:25]Read from MH i2c: E2 [10:30:25]MH_I2C_Read... [10:30:25]Read from MH i2c: E2 62 00 [10:30:25]MH_I2C_Read... [10:30:25]Read from MH i2c: E2 62 00 76 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 5E 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 EF [10:30:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 5E 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:30:25]wFMCommunicate OK [10:30:25]SAM_PROTO_GetFieldsCounters done [10:30:25]requested_item shift.num is exist - process it [10:30:25]requested_item shift.opened is exist - process it [10:30:25]req_shift_opened [10:30:25]FM_GetShiftState [10:30:25]SAM_PROTO_GetShiftState [10:30:25]wFMCommunicate request_size=4 [10:30:25]MH_SAM_APDU [10:30:25]CAPDU: 80 13 01 00 [10:30:25]Write to MH i2c: E2 08 00 77 42 80 13 01 00 00 00 00 00 36 [10:30:25]Write i2c OK [10:30:25]MH_I2C_Read... [10:30:25]OFD Sender: No OFD packet to send [10:30:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:30:25]Read from MH i2c: E2 [10:30:25]MH_I2C_Read... [10:30:25]Read from MH i2c: E2 0E 00 [10:30:25]MH_I2C_Read... [10:30:25]Read from MH i2c: E2 0E 00 77 42 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 03 [10:30:25]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [10:30:25]wFMCommunicate OK [10:30:25]SAM_PROTO_GetShiftState done [10:30:25]FM_GetShiftState done [10:30:25]req_shift_opened done [10:30:25]requested_item shift.open_date is exist - process it [10:30:25]req_shift_open_date [10:30:25]req_shift_open_date done [10:30:25]produce_requested_data done [10:30:25]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156510,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [10:30:25]process_action_free close_receipt [10:30:25]json_value_free [10:30:25]json_value_free done [10:30:25]process_json_proto returns [10:30:25]Send response to host [10:30:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156510,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [10:30:25]free response buf [10:30:25]execute_script done [10:30:25]execute_script returns [10:30:25]free content buf [10:30:25]Sock 8.Close socket [10:30:25]Sock 8.Thread stoped [10:30:30]OFD Sender: No OFD packet to send [10:30:35]OFD Sender: No OFD packet to send [10:30:40]OFD Sender: No OFD packet to send [10:30:45]OFD Sender: No OFD packet to send [10:30:50]OFD Sender: No OFD packet to send [10:30:55]OFD Sender: No OFD packet to send [10:31:00]OFD Sender: No OFD packet to send [10:31:05]OFD Sender: No OFD packet to send [10:31:10]OFD Sender: No OFD packet to send [10:31:15]OFD Sender: No OFD packet to send [10:31:20]OFD Sender: No OFD packet to send [10:31:25]OFD Sender: No OFD packet to send [10:31:30]OFD Sender: No OFD packet to send [10:31:35]OFD Sender: No OFD packet to send [10:31:40]OFD Sender: No OFD packet to send [10:31:45]OFD Sender: No OFD packet to send [10:31:50]OFD Sender: No OFD packet to send [10:31:55]OFD Sender: No OFD packet to send [10:32:00]OFD Sender: No OFD packet to send [10:32:05]OFD Sender: No OFD packet to send [10:32:10]OFD Sender: No OFD packet to send [10:32:15]OFD Sender: No OFD packet to send [10:32:20]OFD Sender: No OFD packet to send [10:32:25]OFD Sender: No OFD packet to send [10:32:30]OFD Sender: No OFD packet to send [10:32:35]OFD Sender: No OFD packet to send [10:32:40]OFD Sender: No OFD packet to send [10:32:45]OFD Sender: No OFD packet to send [10:32:50]OFD Sender: No OFD packet to send [10:32:55]OFD Sender: No OFD packet to send [10:33:00]OFD Sender: No OFD packet to send [10:33:05]OFD Sender: No OFD packet to send [10:33:10]OFD Sender: No OFD packet to send [10:33:16]OFD Sender: No OFD packet to send [10:33:21]OFD Sender: No OFD packet to send [10:33:26]OFD Sender: No OFD packet to send [10:33:31]OFD Sender: No OFD packet to send [10:33:36]OFD Sender: No OFD packet to send [10:33:41]OFD Sender: No OFD packet to send [10:33:46]OFD Sender: No OFD packet to send [10:33:51]OFD Sender: No OFD packet to send [10:33:56]OFD Sender: No OFD packet to send [10:34:01]OFD Sender: No OFD packet to send [10:34:06]OFD Sender: No OFD packet to send [10:34:11]OFD Sender: No OFD packet to send [10:34:16]OFD Sender: No OFD packet to send [10:34:21]OFD Sender: No OFD packet to send [10:34:26]OFD Sender: No OFD packet to send [10:34:31]OFD Sender: No OFD packet to send [10:34:36]OFD Sender: No OFD packet to send [10:34:41]OFD Sender: No OFD packet to send [10:34:46]OFD Sender: No OFD packet to send [10:34:51]OFD Sender: No OFD packet to send [10:34:56]OFD Sender: No OFD packet to send [10:35:01]OFD Sender: No OFD packet to send [10:35:06]OFD Sender: No OFD packet to send [10:35:11]OFD Sender: No OFD packet to send [10:35:16]OFD Sender: No OFD packet to send [10:35:21]OFD Sender: No OFD packet to send [10:35:26]OFD Sender: No OFD packet to send [10:35:31]OFD Sender: No OFD packet to send [10:35:36]OFD Sender: No OFD packet to send [10:35:41]OFD Sender: No OFD packet to send [10:35:46]OFD Sender: No OFD packet to send [10:35:51]OFD Sender: No OFD packet to send [10:35:56]OFD Sender: No OFD packet to send [10:36:01]OFD Sender: No OFD packet to send [10:36:06]OFD Sender: No OFD packet to send [10:36:11]OFD Sender: No OFD packet to send [10:36:16]OFD Sender: No OFD packet to send [10:36:21]OFD Sender: No OFD packet to send [10:36:26]OFD Sender: No OFD packet to send [10:36:31]OFD Sender: No OFD packet to send [10:36:36]OFD Sender: No OFD packet to send [10:36:41]OFD Sender: No OFD packet to send [10:36:46]OFD Sender: No OFD packet to send [10:36:51]OFD Sender: No OFD packet to send [10:36:56]OFD Sender: No OFD packet to send [10:37:01]OFD Sender: No OFD packet to send [10:37:06]OFD Sender: No OFD packet to send [10:37:11]OFD Sender: No OFD packet to send [10:37:16]OFD Sender: No OFD packet to send [10:37:21]OFD Sender: No OFD packet to send [10:37:26]OFD Sender: No OFD packet to send [10:37:31]OFD Sender: No OFD packet to send [10:37:36]OFD Sender: No OFD packet to send [10:37:41]OFD Sender: No OFD packet to send [10:37:46]OFD Sender: No OFD packet to send [10:37:51]OFD Sender: No OFD packet to send [10:37:56]OFD Sender: No OFD packet to send [10:38:01]OFD Sender: No OFD packet to send [10:38:06]OFD Sender: No OFD packet to send [10:38:11]OFD Sender: No OFD packet to send [10:38:16]OFD Sender: No OFD packet to send [10:38:21]OFD Sender: No OFD packet to send [10:38:26]OFD Sender: No OFD packet to send [10:38:31]OFD Sender: No OFD packet to send [10:38:36]OFD Sender: No OFD packet to send [10:38:41]OFD Sender: No OFD packet to send [10:38:46]OFD Sender: No OFD packet to send [10:38:51]OFD Sender: No OFD packet to send [10:38:56]OFD Sender: No OFD packet to send [10:39:00]accept exits with 9 [10:39:00]New connection [10:39:00]New thread 3066977636 created [10:39:00]Thread 3066834276 joined [10:39:00]Waiting for new connection... [10:39:00] Sock 9.Parse request [10:39:00]Sock 9.Check first char [10:39:00]Sock 9.First char is OK [10:39:00]request: POST /json_proto HTTP/1.0 [10:39:00]Method: POST [10:39:00]URL: /json_proto [10:39:00]Method is POST - this is cgi request [10:39:00]url: /json_proto [10:39:00]query_string will be loaded in cgi processing [10:39:00]execute_cgi json_proto POST (null) [10:39:00]execute_cgi path=json_proto method=POST [10:39:00]POST find Content-Length [10:39:00]Host: 172.17.63.3:8080 [10:39:00]Content-Length: 676 [10:39:00]Content-Type: application/json [10:39:00] [10:39:00]POST finish read [10:39:00]Found Content-Length = 676 [10:39:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99325", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:39:00]execute_script... [10:39: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)99325", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:39:00]POST & json_proto [10:39:00]process_json_proto [10:39:00]json parsed OK: [10:39:00]protocol is kg_v1.0 [10:39:00]action value=close_receipt [10:39:00]process_action close_receipt [10:39:00]cmd_close_receipt [10:39:00]MH_GetDate [10:39:00]Write to MH i2c: F0 00 00 78 42 A9 [10:39:00]Write i2c OK [10:39:00]MH_I2C_Read... [10:39:00]Read from MH i2c: F0 [10:39:00]MH_I2C_Read... [10:39:00]Read from MH i2c: F0 09 00 [10:39:00]MH_I2C_Read... [10:39:00]Read from MH i2c: F0 09 00 78 42 00 49 18 1E 67 50 D1 6C 64 89 [10:39:00]GetLastDocTimeStamp 1730025028 [10:39:00]current date 1730025545 [10:39:00]FM_GetShiftState [10:39:00]SAM_PROTO_GetShiftState [10:39:00]wFMCommunicate request_size=4 [10:39:00]MH_SAM_APDU [10:39:00]CAPDU: 80 13 01 00 [10:39:00]Write to MH i2c: E2 08 00 79 42 80 13 01 00 00 00 00 00 38 [10:39:00]Write i2c OK [10:39:00]MH_I2C_Read... [10:39:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:39:00]Read from MH i2c: E2 [10:39:00]MH_I2C_Read... [10:39:00]Read from MH i2c: E2 0E 00 [10:39:00]MH_I2C_Read... [10:39:00]Read from MH i2c: E2 0E 00 79 42 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 05 [10:39:00]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [10:39:00]wFMCommunicate OK [10:39:00]SAM_PROTO_GetShiftState done [10:39:00]FM_GetShiftState done [10:39:00]opened in 1729989044 [10:39:00]opened+sec_in_day 1730075444 [10:39:00]quantity*price = 30038 [10:39:00]sum+1 = 30039 [10:39:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 62 27.10.2024 10:39 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156511 ФПД: 252656966276904 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T103905&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156511&fm=252656966276904&tin=02508201610067®Number=0000000000091693&sum=30000 [10:39:01]StoreToDocumentArchive [10:39:01]shift 537 fd 156511 [10:39:01]save to /storage/0537/doc_00156511 [10:39:01]save last doc name /storage/0537/doc_00156511 to /storage/kkm_last_doc_name [10:39:01]save OK [10:39:01]Clear old archive folders... [10:39:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:39:01]tlvbuf is B6F5B640 [10:39:01]SAM_PROTO_ClearQueue [10:39:01]wFMCommunicate request_size=4 [10:39:01]MH_SAM_APDU [10:39:01]CAPDU: 80 09 00 00 [10:39:01]Write to MH i2c: E2 08 00 86 42 80 09 00 00 00 00 00 00 3A [10:39:01]Write i2c OK [10:39:01]MH_I2C_Read... [10:39:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:39:01]Read from MH i2c: E2 [10:39:01]MH_I2C_Read... [10:39:01]Read from MH i2c: E2 03 00 [10:39:01]MH_I2C_Read... [10:39:01]Read from MH i2c: E2 03 00 86 42 00 90 00 3C [10:39:01]RAPDU: 90 00 [10:39:01]wFMCommunicate OK [10:39:01]SAM_PROTO_ClearQueue done [10:39:01]KKMCreateOFDPacket [10:39:01]OFDProtocolAddRootSTLVToBuf [10:39:01]FM_MakeSignedData [10:39:01]FM_MakeSignedData [10:39:01]SAM_PROTO_SignData [10:39:01]wFMCommunicate request_size=4 [10:39:01]MH_SAM_APDU [10:39:01]CAPDU: 80 0D 01 02 [10:39:01]Write to MH i2c: E2 08 00 87 42 80 0D 01 02 00 00 00 00 42 [10:39:01]Write i2c OK [10:39:01]MH_I2C_Read... [10:39:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:39:01]Read from MH i2c: E2 [10:39:01]MH_I2C_Read... [10:39:01]Read from MH i2c: E2 03 00 [10:39:01]MH_I2C_Read... [10:39:01]Read from MH i2c: E2 03 00 87 42 00 90 00 3D [10:39:01]RAPDU: 90 00 [10:39:01]wFMCommunicate OK [10:39:01]wFMCommunicate request_size=255 [10:39:01]MH_SAM_APDU [10:39: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 49 18 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 5F 63 02 00 35 04 06 00 E5 [10:39:01]Write to MH i2c: E2 02 01 88 42 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 49 18 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 5F 63 02 00 35 04 06 00 E5 00 00 B2 [10:39:01]Write i2c OK [10:39:01]MH_I2C_Read... [10:39:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:39:01]Read from MH i2c: E2 [10:39:01]MH_I2C_Read... [10:39:01]Read from MH i2c: E2 03 00 [10:39:01]MH_I2C_Read... [10:39:01]Read from MH i2c: E2 03 00 88 42 00 90 00 3E [10:39:01]RAPDU: 90 00 [10:39:01]wFMCommunicate OK [10:39:01]wFMCommunicate request_size=10 [10:39:01]MH_SAM_APDU [10:39:01]CAPDU: 80 0D 02 02 05 CA 48 B9 97 28 [10:39:01]Write to MH i2c: E2 0D 00 89 42 80 0D 02 02 05 00 CA 48 B9 97 28 00 00 D9 [10:39:01]Write i2c OK [10:39:01]MH_I2C_Read... [10:39:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:39:01]Read from MH i2c: E2 [10:39:01]MH_I2C_Read... [10:39:01]Read from MH i2c: E2 03 00 [10:39:01]MH_I2C_Read... [10:39:01]Read from MH i2c: E2 03 00 89 42 00 90 00 3F [10:39:01]RAPDU: 90 00 [10:39:01]wFMCommunicate OK [10:39:01]wFMCommunicate request_size=4 [10:39:01]MH_SAM_APDU [10:39:01]CAPDU: 80 0D 03 02 [10:39:01]Write to MH i2c: E2 08 00 8A 42 80 0D 03 02 00 00 00 00 47 [10:39:01]Write i2c OK [10:39:01]MH_I2C_Read... [10:39:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:39:01]Read from MH i2c: E2 [10:39:01]MH_I2C_Read... [10:39:01]Read from MH i2c: E2 0B 00 [10:39:01]MH_I2C_Read... [10:39:01]Read from MH i2c: E2 0B 00 8A 42 00 46 EF CC FC 28 7D 91 8C 90 00 07 [10:39:01]RAPDU: 46 EF CC FC 28 7D 91 8C 90 00 [10:39:01]wFMCommunicate OK [10:39:01]SAM_PROTO_SignData done [10:39:01]FM_MakeSignedData done [10:39:01]CreateOFDProtocolMessage [10:39:01]wFMCommunicate request_size=4 [10:39:01]MH_SAM_APDU [10:39:01]CAPDU: 80 11 00 00 [10:39:01]Write to MH i2c: E2 08 00 8B 42 80 11 00 00 00 00 00 00 47 [10:39:01]Write i2c OK [10:39:01]MH_I2C_Read... [10:39:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:39:01]Read from MH i2c: E2 [10:39:01]MH_I2C_Read... [10:39:01]Read from MH i2c: E2 17 00 [10:39:01]MH_I2C_Read... [10:39:01]Read from MH i2c: E2 17 00 8B 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 9C [10:39:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:39:01]wFMCommunicate OK [10:39:01]CreateOFDProtocolMessage done [10:39:01]OFDSenderStorePacket 156511 [10:39:01]StoreOFDPacket docnum=156511 [10:39:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 D2 0B 07 01 9B 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 49 18 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 5F 63 02 00 35 04 06 00 E5 CA 48 B9 97 28 46 EF CC FC 28 7D 91 8C [10:39:01]CheckFolder [10:39:01]dirname=/storage/ofd_packets [10:39:01]CheckFolder done [10:39:01]ProducePacketName [10:39:01]name=ofd_packets/00156511 [10:39:01]NVStorageSaveData ofd_packets/00156511 [10:39:01]File name is /storage/ofd_packets/00156511 [10:39:01]Write 301 bytes [10:39:01]NVStorageSaveData done [10:39:01]OFDSenderStorePacket done [10:39:01]KKMCreateOFDPacket done [10:39:01]NVStorageSaveData kkm_last_timestamp [10:39:01]File name is /storage/kkm_last_timestamp [10:39:01]Write 4 bytes [10:39:01]NVStorageSaveData done [10:39:01]ExternCall_PrintAddStr [10:39:01]wPrintStart [10:39:01]Write to MH i2c: 01 00 00 8C 42 CE [10:39:01]Write i2c OK [10:39:01]MH_I2C_Read... [10:39:01]Read from MH i2c: 01 [10:39:01]MH_I2C_Read... [10:39:01]Read from MH i2c: 01 07 00 [10:39:01]MH_I2C_Read... [10:39:01]Read from MH i2c: 01 07 00 8C 42 00 00 00 00 00 FF 0F E3 [10:39:01]RasterBufferAndPrint [10:39:01]line Счет N : (1)99325 [10:39:01]line ИНН: 02508201610067 [10:39:01]line Контрольно-Кассовый Чек [10:39:01]line ПРОДАЖА [10:39:01]line ТРК (МРК, ГНК) : 21 [10:39:01]line Товар: 2710124130 [10:39:01]line Аи-92-К-5 [10:39:01]line 4.490 * 66.90 [10:39:01]line = 300.38 [10:39:02]line НДС 12% НСП 1% [10:39:02]line > о реализуемом товаре [10:39:02]line ОКРУГЛЕНИЕ: -0.38 [10:39:02]line ИТОГО: 300.00 [10:39:02]line Внесено: 300.00 [10:39:02]line СДАЧА: 0.00 [10:39:02]line НСП 1% : 2.66 [10:39:02]line НДС 12% : 31.90 [10:39:02]line Наличными: 300.00 [10:39:02]line Безнал.: 0.00 [10:39:02]line Место: АЗС № 143 "Партнер Нефть" [10:39:02]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [10:39:02]line СНО: Общий режим [10:39:02]line Чек 62 27.10.2024 10:39 [10:39:02]line Смена: 537 ФФД: 1.0 [10:39:02]line ЗНМ: 0300000096 [10:39:02]line РНМ: 0000000000091693 [10:39:02]line Версия ККМ: 001 [10:39:02]line ФМ: 0000000000871792 [10:39:02]line ФД: 156511 [10:39:02]line ФПД: 252656966276904 [10:39:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T103905&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156511&fm=252656966276904&tin=02508201610067®Number=0000000000091693&sum=30000 [10:39:02]OFD Sender: Processing packet 156511 [packets to send 31, broken 30] [10:39:02]ProducePacketName [10:39:02]name=ofd_packets/00156511 [10:39:02]OFD Sender: To server: pG, [10:39:02]CommunicateWithHost lk.salyk.kg:30040 [10:39:02]ConnectInit lk.salyk.kg [10:39:02]written 0, free lines is 4095 [10:39:02]Connected sock=10 [10:39:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 D2 0B 07 01 9B 9E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 49 18 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 5F 63 02 00 35 04 06 00 E5 CA 48 B9 97 28 46 EF CC FC 28 7D 91 8C [10:39:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 9A 43 47 00 04 DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 5F 63 02 00 F4 03 04 00 B9 BD 1D 67 B6 04 01 00 00 21 26 B9 1D 29 60 14 ED [10:39:02]CommunicateWithHost err = 0 [10:39:02]CheckOFDResponse [10:39:02]1017 (14) - 77093643461234 [10:39:02]1041 (16) - 0000000000871792 [10:39:02]1040 (4) - 156511 [10:39:02]1012 (4) - 27.10.2024 04:12 [10:39:02]1206 (1) - 0 [10:39:02]OFD Sender: Remove packet 156511 [10:39:02]ProducePacketName [10:39:02]name=ofd_packets/00156511 [10:39:02]NVStorageDeleteData [10:39:02]Write to MH i2c: 01 00 00 B7 42 F9 [10:39:02]Write i2c OK [10:39:02]MH_I2C_Read... [10:39:02]Read from MH i2c: 01 [10:39:02]MH_I2C_Read... [10:39:02]Read from MH i2c: 01 07 00 [10:39:02]MH_I2C_Read... [10:39:02]Read from MH i2c: 01 07 00 B7 42 00 00 00 00 00 DC 0C E8 [10:39:02]RasterBufferAndPrint [10:39:02]line [10:39:02]line [10:39:02]line [10:39:02]line [10:39:02]line [10:39:02]written 0, free lines is 3298 [10:39:02]process_action close_receipt done [10:39:02]requested_data is exist [10:39:02]produce_requested_data [10:39:02]requested_item fm.sn is exist - process it [10:39:02]wFMCommunicate request_size=4 [10:39:02]MH_SAM_APDU [10:39:02]CAPDU: 80 11 00 00 [10:39:02]Write to MH i2c: E2 08 00 BE 42 80 11 00 00 00 00 00 00 7A [10:39:02]Write i2c OK [10:39:02]MH_I2C_Read... [10:39:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:39:02]Read from MH i2c: E2 [10:39:02]MH_I2C_Read... [10:39:02]Read from MH i2c: E2 17 00 [10:39:02]MH_I2C_Read... [10:39:02]Read from MH i2c: E2 17 00 BE 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 CF [10:39:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:39:02]wFMCommunicate OK [10:39:02]requested_item fd.num is exist - process it [10:39:02]SAM_PROTO_GetFieldsCounters [10:39:02]wFMCommunicate request_size=4 [10:39:02]MH_SAM_APDU [10:39:02]CAPDU: 80 13 00 00 [10:39:02]Write to MH i2c: E2 08 00 BF 42 80 13 00 00 00 00 00 00 7D [10:39:02]Write i2c OK [10:39:02]MH_I2C_Read... [10:39:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:39:03]Read from MH i2c: E2 [10:39:03]MH_I2C_Read... [10:39:03]Read from MH i2c: E2 62 00 [10:39:03]MH_I2C_Read... [10:39:03]Read from MH i2c: E2 62 00 BF 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 5F 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 3C [10:39:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 5F 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:39:03]wFMCommunicate OK [10:39:03]SAM_PROTO_GetFieldsCounters done [10:39:03]requested_item shift.num is exist - process it [10:39:03]requested_item shift.opened is exist - process it [10:39:03]req_shift_opened [10:39:03]FM_GetShiftState [10:39:03]SAM_PROTO_GetShiftState [10:39:03]wFMCommunicate request_size=4 [10:39:03]MH_SAM_APDU [10:39:03]CAPDU: 80 13 01 00 [10:39:03]Write to MH i2c: E2 08 00 C0 42 80 13 01 00 00 00 00 00 7F [10:39:03]Write i2c OK [10:39:03]MH_I2C_Read... [10:39:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:39:03]Read from MH i2c: E2 [10:39:03]MH_I2C_Read... [10:39:03]Read from MH i2c: E2 0E 00 [10:39:03]MH_I2C_Read... [10:39:03]Read from MH i2c: E2 0E 00 C0 42 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 4C [10:39:03]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [10:39:03]wFMCommunicate OK [10:39:03]SAM_PROTO_GetShiftState done [10:39:03]FM_GetShiftState done [10:39:03]req_shift_opened done [10:39:03]requested_item shift.open_date is exist - process it [10:39:03]req_shift_open_date [10:39:03]req_shift_open_date done [10:39:03]produce_requested_data done [10:39:03]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156511,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [10:39:03]process_action_free close_receipt [10:39:03]json_value_free [10:39:03]json_value_free done [10:39:03]process_json_proto returns [10:39:03]Send response to host [10:39:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156511,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [10:39:03]free response buf [10:39:03]execute_script done [10:39:03]execute_script returns [10:39:03]free content buf [10:39:03]Sock 9.Close socket [10:39:03]Sock 9.Thread stoped [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:42]accept exits with 8 [10:39:42]New connection [10:39:42]New thread 3066834276 created [10:39:42]Thread 3066977636 joined [10:39:42]Waiting for new connection... [10:39:42] Sock 8.Parse request [10:39:42]Sock 8.Check first char [10:39:42]Sock 8.First char is OK [10:39:42]request: POST /json_proto HTTP/1.0 [10:39:42]Method: POST [10:39:42]URL: /json_proto [10:39:42]Method is POST - this is cgi request [10:39:42]url: /json_proto [10:39:42]query_string will be loaded in cgi processing [10:39:42]execute_cgi json_proto POST (null) [10:39:42]execute_cgi path=json_proto method=POST [10:39:42]POST find Content-Length [10:39:42]Host: 172.17.63.3:8080 [10:39:42]Content-Length: 789 [10:39:42]Content-Type: application/json [10:39:42] [10:39:42]POST finish read [10:39:42]Found Content-Length = 789 [10:39:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99323", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 600.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A83333", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:39:42]execute_script... [10:39: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)99323", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 600.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A83333", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:39:42]POST & json_proto [10:39:42]process_json_proto [10:39:42]json parsed OK: [10:39:42]protocol is kg_v1.0 [10:39:42]action value=close_receipt [10:39:42]process_action close_receipt [10:39:42]cmd_close_receipt [10:39:42]MH_GetDate [10:39:42]Write to MH i2c: F0 00 00 C1 42 F2 [10:39:42]Write i2c OK [10:39:42]MH_I2C_Read... [10:39:42]Read from MH i2c: F0 [10:39:42]MH_I2C_Read... [10:39:42]Read from MH i2c: F0 09 00 [10:39:42]MH_I2C_Read... [10:39:42]Read from MH i2c: F0 09 00 C1 42 00 74 18 1E 67 50 D1 6C 64 FD [10:39:42]GetLastDocTimeStamp 1730025545 [10:39:42]current date 1730025588 [10:39:42]FM_GetShiftState [10:39:42]SAM_PROTO_GetShiftState [10:39:42]wFMCommunicate request_size=4 [10:39:42]MH_SAM_APDU [10:39:42]CAPDU: 80 13 01 00 [10:39:42]Write to MH i2c: E2 08 00 C2 42 80 13 01 00 00 00 00 00 81 [10:39:42]Write i2c OK [10:39:42]MH_I2C_Read... [10:39:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:39:42]Read from MH i2c: E2 [10:39:42]MH_I2C_Read... [10:39:42]Read from MH i2c: E2 0E 00 [10:39:42]MH_I2C_Read... [10:39:42]Read from MH i2c: E2 0E 00 C2 42 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 4E [10:39:42]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [10:39:42]wFMCommunicate OK [10:39:42]SAM_PROTO_GetShiftState done [10:39:42]FM_GetShiftState done [10:39:42]opened in 1729989044 [10:39:42]opened+sec_in_day 1730075444 [10:39:42]quantity*price = 0 [10:39:42]sum+1 = 1 [10:39:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 63 27.10.2024 10:39 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Талоны: Топливная Карта 83333 ФМ: 0000000000871792 ФД: 156512 ФПД: 125233752443667 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T103948&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156512&fm=125233752443667&tin=02508201610067®Number=0000000000091693&sum=0 [10:39:44]StoreToDocumentArchive [10:39:44]shift 537 fd 156512 [10:39:44]save to /storage/0537/doc_00156512 [10:39:44]save last doc name /storage/0537/doc_00156512 to /storage/kkm_last_doc_name [10:39:44]save OK [10:39:44]Clear old archive folders... [10:39:44]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:39:44]tlvbuf is 0179A9F0 [10:39:44]SAM_PROTO_ClearQueue [10:39:44]wFMCommunicate request_size=4 [10:39:44]MH_SAM_APDU [10:39:44]CAPDU: 80 09 00 00 [10:39:44]Write to MH i2c: E2 08 00 CF 42 80 09 00 00 00 00 00 00 83 [10:39:44]Write i2c OK [10:39:44]MH_I2C_Read... [10:39:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:39:44]Read from MH i2c: E2 [10:39:44]MH_I2C_Read... [10:39:44]Read from MH i2c: E2 03 00 [10:39:44]MH_I2C_Read... [10:39:44]Read from MH i2c: E2 03 00 CF 42 00 90 00 85 [10:39:44]RAPDU: 90 00 [10:39:44]wFMCommunicate OK [10:39:44]SAM_PROTO_ClearQueue done [10:39:44]KKMCreateOFDPacket [10:39:44]OFDProtocolAddRootSTLVToBuf [10:39:44]FM_MakeSignedData [10:39:44]FM_MakeSignedData [10:39:44]SAM_PROTO_SignData [10:39:44]wFMCommunicate request_size=4 [10:39:44]MH_SAM_APDU [10:39:44]CAPDU: 80 0D 01 02 [10:39:44]Write to MH i2c: E2 08 00 D0 42 80 0D 01 02 00 00 00 00 8B [10:39:44]Write i2c OK [10:39:44]MH_I2C_Read... [10:39:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:39:44]Read from MH i2c: E2 [10:39:44]MH_I2C_Read... [10:39:44]Read from MH i2c: E2 03 00 [10:39:44]MH_I2C_Read... [10:39:44]Read from MH i2c: E2 03 00 D0 42 00 90 00 86 [10:39:44]RAPDU: 90 00 [10:39:44]wFMCommunicate OK [10:39:44]wFMCommunicate request_size=255 [10:39:44]MH_SAM_APDU [10:39:44]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C0 27 09 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 74 18 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 60 63 02 00 35 04 06 00 71 E6 41 54 [10:39:44]Write to MH i2c: E2 02 01 D1 42 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C0 27 09 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 74 18 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 60 63 02 00 35 04 06 00 71 E6 41 54 00 00 F9 [10:39:44]Write i2c OK [10:39:44]MH_I2C_Read... [10:39:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:39:44]Read from MH i2c: E2 [10:39:44]MH_I2C_Read... [10:39:44]Read from MH i2c: E2 03 00 [10:39:44]MH_I2C_Read... [10:39:44]Read from MH i2c: E2 03 00 D1 42 00 90 00 87 [10:39:44]RAPDU: 90 00 [10:39:44]wFMCommunicate OK [10:39:44]wFMCommunicate request_size=7 [10:39:44]MH_SAM_APDU [10:39:44]CAPDU: 80 0D 02 02 02 0B 13 [10:39:44]Write to MH i2c: E2 0A 00 D2 42 80 0D 02 02 02 00 0B 13 00 00 B0 [10:39:44]Write i2c OK [10:39:44]MH_I2C_Read... [10:39:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:39:44]Read from MH i2c: E2 [10:39:44]MH_I2C_Read... [10:39:44]Read from MH i2c: E2 03 00 [10:39:44]MH_I2C_Read... [10:39:44]Read from MH i2c: E2 03 00 D2 42 00 90 00 88 [10:39:44]RAPDU: 90 00 [10:39:44]wFMCommunicate OK [10:39:44]wFMCommunicate request_size=4 [10:39:44]MH_SAM_APDU [10:39:44]CAPDU: 80 0D 03 02 [10:39:44]Write to MH i2c: E2 08 00 D3 42 80 0D 03 02 00 00 00 00 90 [10:39:44]Write i2c OK [10:39:44]MH_I2C_Read... [10:39:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:39:44]Read from MH i2c: E2 [10:39:44]MH_I2C_Read... [10:39:44]Read from MH i2c: E2 0B 00 [10:39:44]MH_I2C_Read... [10:39:44]Read from MH i2c: E2 0B 00 D3 42 00 FB A6 98 E3 F0 18 B3 F4 90 00 5C [10:39:44]RAPDU: FB A6 98 E3 F0 18 B3 F4 90 00 [10:39:44]wFMCommunicate OK [10:39:44]SAM_PROTO_SignData done [10:39:44]FM_MakeSignedData done [10:39:44]CreateOFDProtocolMessage [10:39:44]wFMCommunicate request_size=4 [10:39:44]MH_SAM_APDU [10:39:44]CAPDU: 80 11 00 00 [10:39:44]Write to MH i2c: E2 08 00 D4 42 80 11 00 00 00 00 00 00 90 [10:39:44]Write i2c OK [10:39:44]MH_I2C_Read... [10:39:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:39:44]Read from MH i2c: E2 [10:39:44]MH_I2C_Read... [10:39:44]Read from MH i2c: E2 17 00 [10:39:44]MH_I2C_Read... [10:39:44]Read from MH i2c: E2 17 00 D4 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 E5 [10:39:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:39:44]wFMCommunicate OK [10:39:44]CreateOFDProtocolMessage done [10:39:44]OFDSenderStorePacket 156512 [10:39:44]StoreOFDPacket docnum=156512 [10:39:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 01 56 04 01 30 8A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C0 27 09 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 74 18 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 60 63 02 00 35 04 06 00 71 E6 41 54 0B 13 FB A6 98 E3 F0 18 B3 F4 [10:39:44]CheckFolder [10:39:44]dirname=/storage/ofd_packets [10:39:44]CheckFolder done [10:39:44]ProducePacketName [10:39:44]name=ofd_packets/00156512 [10:39:44]NVStorageSaveData ofd_packets/00156512 [10:39:44]File name is /storage/ofd_packets/00156512 [10:39:44]Write 298 bytes [10:39:44]NVStorageSaveData done [10:39:44]OFDSenderStorePacket done [10:39:44]KKMCreateOFDPacket done [10:39:44]NVStorageSaveData kkm_last_timestamp [10:39:44]File name is /storage/kkm_last_timestamp [10:39:44]Write 4 bytes [10:39:44]NVStorageSaveData done [10:39:44]ExternCall_PrintAddStr [10:39:44]wPrintStart [10:39:44]Write to MH i2c: 01 00 00 D5 42 17 [10:39:44]Write i2c OK [10:39:44]MH_I2C_Read... [10:39:44]Read from MH i2c: 01 [10:39:44]MH_I2C_Read... [10:39:44]Read from MH i2c: 01 07 00 [10:39:44]MH_I2C_Read... [10:39:44]Read from MH i2c: 01 07 00 D5 42 00 00 00 00 00 FF 0F 2C [10:39:44]RasterBufferAndPrint [10:39:44]line Счет N : (1)99323 [10:39:44]line ИНН: 02508201610067 [10:39:44]line Контрольно-Кассовый Чек [10:39:44]line ПРОДАЖА [10:39:44]line ТРК (МРК, ГНК) : 32 [10:39:44]line Товар: 2710194210 [10:39:44]line ДТ-К-5 [10:39:44]line 600.000 * 0.00 [10:39:44]line = 0.00 [10:39:44]line НДС 12% НСП 1% [10:39:44]line > о реализуемом товаре [10:39:44]line ИТОГО: 0.00 [10:39:44]line НСП 1% : 0.00 [10:39:44]line НДС 12% : 0.00 [10:39:44]line Наличными: 0.00 [10:39:44]line Безнал.: 0.00 [10:39:44]line Место: АЗС № 143 "Партнер Нефть" [10:39:44]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [10:39:44]line СНО: Общий режим [10:39:44]line Чек 63 27.10.2024 10:39 [10:39:44]line Смена: 537 ФФД: 1.0 [10:39:44]line ЗНМ: 0300000096 [10:39:44]line РНМ: 0000000000091693 [10:39:44]line Версия ККМ: 001 [10:39:44]line Талоны: Топливная Карта [10:39:44]line 83333 [10:39:44]line ФМ: 0000000000871792 [10:39:44]line ФД: 156512 [10:39:44]line ФПД: 125233752443667 [10:39:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T103948&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156512&fm=125233752443667&tin=02508201610067®Number=0000000000091693&sum=0 [10:39:44]OFD Sender: Processing packet 156512 [packets to send 31, broken 30] [10:39:44]ProducePacketName [10:39:44]name=ofd_packets/00156512 [10:39:44]OFD Sender: To server: pG, [10:39:44]CommunicateWithHost lk.salyk.kg:30040 [10:39:44]ConnectInit lk.salyk.kg [10:39:44]written 0, free lines is 4095 [10:39:45]Connected sock=10 [10:39:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 01 56 04 01 30 8A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C0 27 09 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 74 18 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 60 63 02 00 35 04 06 00 71 E6 41 54 0B 13 FB A6 98 E3 F0 18 B3 F4 [10:39:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 BE 20 47 00 2D 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 60 63 02 00 F4 03 04 00 E4 BD 1D 67 B6 04 01 00 00 00 CE 54 23 62 AE D5 4A [10:39:45]CommunicateWithHost err = 0 [10:39:45]CheckOFDResponse [10:39:45]1017 (14) - 77093643461234 [10:39:45]1041 (16) - 0000000000871792 [10:39:45]1040 (4) - 156512 [10:39:45]1012 (4) - 27.10.2024 04:13 [10:39:45]1206 (1) - 0 [10:39:45]OFD Sender: Remove packet 156512 [10:39:45]ProducePacketName [10:39:45]name=ofd_packets/00156512 [10:39:45]NVStorageDeleteData [10:39:45]Write to MH i2c: 01 00 00 FF 42 41 [10:39:45]Write i2c OK [10:39:45]MH_I2C_Read... [10:39:45]Read from MH i2c: 01 [10:39:45]MH_I2C_Read... [10:39:45]Read from MH i2c: 01 07 00 [10:39:45]MH_I2C_Read... [10:39:45]Read from MH i2c: 01 07 00 FF 42 00 00 00 00 00 DF 0C 33 [10:39:45]RasterBufferAndPrint [10:39:45]line [10:39:45]line [10:39:45]line [10:39:45]line [10:39:45]line [10:39:45]written 0, free lines is 3301 [10:39:45]process_action close_receipt done [10:39:45]requested_data is exist [10:39:45]produce_requested_data [10:39:45]requested_item fm.sn is exist - process it [10:39:45]wFMCommunicate request_size=4 [10:39:45]MH_SAM_APDU [10:39:45]CAPDU: 80 11 00 00 [10:39:45]Write to MH i2c: E2 08 00 06 43 80 11 00 00 00 00 00 00 C3 [10:39:45]Write i2c OK [10:39:45]MH_I2C_Read... [10:39:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:39:45]Read from MH i2c: E2 [10:39:45]MH_I2C_Read... [10:39:45]Read from MH i2c: E2 17 00 [10:39:45]MH_I2C_Read... [10:39:45]Read from MH i2c: E2 17 00 06 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 18 [10:39:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:39:45]wFMCommunicate OK [10:39:45]requested_item fd.num is exist - process it [10:39:45]SAM_PROTO_GetFieldsCounters [10:39:45]wFMCommunicate request_size=4 [10:39:45]MH_SAM_APDU [10:39:45]CAPDU: 80 13 00 00 [10:39:45]Write to MH i2c: E2 08 00 07 43 80 13 00 00 00 00 00 00 C6 [10:39:45]Write i2c OK [10:39:45]MH_I2C_Read... [10:39:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:39:45]Read from MH i2c: E2 [10:39:45]MH_I2C_Read... [10:39:45]Read from MH i2c: E2 62 00 [10:39:45]MH_I2C_Read... [10:39:45]Read from MH i2c: E2 62 00 07 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 60 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 89 [10:39:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 60 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:39:45]wFMCommunicate OK [10:39:45]SAM_PROTO_GetFieldsCounters done [10:39:45]requested_item shift.num is exist - process it [10:39:45]requested_item shift.opened is exist - process it [10:39:45]req_shift_opened [10:39:45]FM_GetShiftState [10:39:45]SAM_PROTO_GetShiftState [10:39:45]wFMCommunicate request_size=4 [10:39:45]MH_SAM_APDU [10:39:45]CAPDU: 80 13 01 00 [10:39:45]Write to MH i2c: E2 08 00 08 43 80 13 01 00 00 00 00 00 C8 [10:39:45]Write i2c OK [10:39:45]MH_I2C_Read... [10:39:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:39:45]Read from MH i2c: E2 [10:39:45]MH_I2C_Read... [10:39:45]Read from MH i2c: E2 0E 00 [10:39:45]MH_I2C_Read... [10:39:45]Read from MH i2c: E2 0E 00 08 43 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 95 [10:39:45]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [10:39:45]wFMCommunicate OK [10:39:45]SAM_PROTO_GetShiftState done [10:39:45]FM_GetShiftState done [10:39:45]req_shift_opened done [10:39:45]requested_item shift.open_date is exist - process it [10:39:45]req_shift_open_date [10:39:45]req_shift_open_date done [10:39:45]produce_requested_data done [10:39:45]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156512,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [10:39:45]process_action_free close_receipt [10:39:45]json_value_free [10:39:45]json_value_free done [10:39:45]process_json_proto returns [10:39:45]Send response to host [10:39:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156512,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [10:39:45]free response buf [10:39:45]execute_script done [10:39:45]execute_script returns [10:39:45]free content buf [10:39:45]Sock 8.Close socket [10:39:45]Sock 8.Thread stoped [10:39:45]OFD Sender: No OFD packet to send [10:39:50]OFD Sender: No OFD packet to send [10:39:55]OFD Sender: No OFD packet to send [10:40:00]OFD Sender: No OFD packet to send [10:40:05]OFD Sender: No OFD packet to send [10:40:10]OFD Sender: No OFD packet to send [10:40:15]OFD Sender: No OFD packet to send [10:40:15]int [10:40:15]Write to MH i2c: 01 00 00 09 43 4C [10:40:15]*** FLAG_PRN_KEY set [10:40:15]Write i2c OK [10:40:15]MH_I2C_Read... [10:40:15]Read from MH i2c: 01 [10:40:15]MH_I2C_Read... [10:40:15]Read from MH i2c: 01 07 00 [10:40:15]MH_I2C_Read... [10:40:15]Read from MH i2c: 01 07 00 09 43 00 08 00 00 00 FF 0F 69 [10:40:15]state=0 [10:40:15]Key pressed [10:40:15]Feed [10:40:15]Write to MH i2c: D8 00 00 0A 43 24 [10:40:15]Write i2c OK [10:40:15]MH_I2C_Read... [10:40:15]Read from MH i2c: D8 [10:40:15]MH_I2C_Read... [10:40:15]Read from MH i2c: D8 01 00 [10:40:15]MH_I2C_Read... [10:40:15]Read from MH i2c: D8 01 00 0A 43 00 25 [10:40:15]int [10:40:15]Write to MH i2c: 01 00 00 0B 43 4E [10:40:15]Write i2c OK [10:40:15]MH_I2C_Read... [10:40:15]Read from MH i2c: 01 [10:40:15]MH_I2C_Read... [10:40:15]Read from MH i2c: 01 07 00 [10:40:15]MH_I2C_Read... [10:40:15]Read from MH i2c: 01 07 00 0B 43 00 48 00 00 00 3D 00 DA [10:40:15]state=2 [10:40:15]Key pressed [10:40:16]int [10:40:16]Write to MH i2c: 01 00 00 0C 43 4F [10:40:16]*** FLAG_PRN_KEY reset [10:40:16]Write i2c OK [10:40:16]MH_I2C_Read... [10:40:16]Read from MH i2c: 01 [10:40:16]MH_I2C_Read... [10:40:16]Read from MH i2c: 01 07 00 [10:40:16]MH_I2C_Read... [10:40:16]Read from MH i2c: 01 07 00 0C 43 00 00 00 00 00 F6 0F 5B [10:40:16]state=2 [10:40:16]Stop feed [10:40:20]OFD Sender: No OFD packet to send [10:40:25]OFD Sender: No OFD packet to send [10:40:30]OFD Sender: No OFD packet to send [10:40:35]OFD Sender: No OFD packet to send [10:40:40]OFD Sender: No OFD packet to send [10:40:45]OFD Sender: No OFD packet to send [10:40:50]OFD Sender: No OFD packet to send [10:40:54]accept exits with 9 [10:40:54]New connection [10:40:54]New thread 3066977636 created [10:40:54]Thread 3066834276 joined [10:40:54]Waiting for new connection... [10:40:54] Sock 9.Parse request [10:40:54]Sock 9.Check first char [10:40:54]Sock 9.First char is OK [10:40:54]request: POST /json_proto HTTP/1.0 [10:40:54]Method: POST [10:40:54]URL: /json_proto [10:40:54]Method is POST - this is cgi request [10:40:54]url: /json_proto [10:40:54]query_string will be loaded in cgi processing [10:40:54]execute_cgi json_proto POST (null) [10:40:54]execute_cgi path=json_proto method=POST [10:40:54]POST find Content-Length [10:40:54]Host: 172.17.63.3:8080 [10:40:54]Content-Length: 677 [10:40:54]Content-Type: application/json [10:40:54] [10:40:54]POST finish read [10:40:54]Found Content-Length = 677 [10:40:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99326", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "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:40:54]execute_script... [10:40:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99326", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "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:40:54]POST & json_proto [10:40:54]process_json_proto [10:40:54]json parsed OK: [10:40:54]protocol is kg_v1.0 [10:40:54]action value=close_receipt [10:40:54]process_action close_receipt [10:40:54]cmd_close_receipt [10:40:54]MH_GetDate [10:40:54]Write to MH i2c: F0 00 00 0D 43 3F [10:40:54]Write i2c OK [10:40:54]MH_I2C_Read... [10:40:54]Read from MH i2c: F0 [10:40:54]MH_I2C_Read... [10:40:54]Read from MH i2c: F0 09 00 [10:40:54]MH_I2C_Read... [10:40:54]Read from MH i2c: F0 09 00 0D 43 00 BB 18 1E 67 50 D1 6C 64 91 [10:40:54]GetLastDocTimeStamp 1730025588 [10:40:54]current date 1730025659 [10:40:54]FM_GetShiftState [10:40:54]SAM_PROTO_GetShiftState [10:40:54]wFMCommunicate request_size=4 [10:40:54]MH_SAM_APDU [10:40:54]CAPDU: 80 13 01 00 [10:40:54]Write to MH i2c: E2 08 00 0E 43 80 13 01 00 00 00 00 00 CE [10:40:54]Write i2c OK [10:40:54]MH_I2C_Read... [10:40:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:40:54]Read from MH i2c: E2 [10:40:54]MH_I2C_Read... [10:40:54]Read from MH i2c: E2 0E 00 [10:40:54]MH_I2C_Read... [10:40:54]Read from MH i2c: E2 0E 00 0E 43 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 9B [10:40:54]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [10:40:54]wFMCommunicate OK [10:40:54]SAM_PROTO_GetShiftState done [10:40:54]FM_GetShiftState done [10:40:54]opened in 1729989044 [10:40:54]opened+sec_in_day 1730075444 [10:40:54]quantity*price = 70044 [10:40:54]sum+1 = 70045 [10:40:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 64 27.10.2024 10:40 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156513 ФПД: 216323338497601 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T104059&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156513&fm=216323338497601&tin=02508201610067®Number=0000000000091693&sum=70000 [10:40:55]StoreToDocumentArchive [10:40:55]shift 537 fd 156513 [10:40:55]save to /storage/0537/doc_00156513 [10:40:55]save last doc name /storage/0537/doc_00156513 to /storage/kkm_last_doc_name [10:40:55]save OK [10:40:55]Clear old archive folders... [10:40:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:40:55]tlvbuf is B6EE03B0 [10:40:55]SAM_PROTO_ClearQueue [10:40:55]wFMCommunicate request_size=4 [10:40:55]MH_SAM_APDU [10:40:55]CAPDU: 80 09 00 00 [10:40:55]Write to MH i2c: E2 08 00 1B 43 80 09 00 00 00 00 00 00 D0 [10:40:55]Write i2c OK [10:40:55]MH_I2C_Read... [10:40:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:40:55]Read from MH i2c: E2 [10:40:55]MH_I2C_Read... [10:40:55]Read from MH i2c: E2 03 00 [10:40:55]MH_I2C_Read... [10:40:55]Read from MH i2c: E2 03 00 1B 43 00 90 00 D2 [10:40:55]RAPDU: 90 00 [10:40:55]wFMCommunicate OK [10:40:55]SAM_PROTO_ClearQueue done [10:40:55]KKMCreateOFDPacket [10:40:55]OFDProtocolAddRootSTLVToBuf [10:40:55]FM_MakeSignedData [10:40:55]FM_MakeSignedData [10:40:55]SAM_PROTO_SignData [10:40:55]wFMCommunicate request_size=4 [10:40:55]MH_SAM_APDU [10:40:55]CAPDU: 80 0D 01 02 [10:40:55]Write to MH i2c: E2 08 00 1C 43 80 0D 01 02 00 00 00 00 D8 [10:40:55]Write i2c OK [10:40:55]MH_I2C_Read... [10:40:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:40:55]Read from MH i2c: E2 [10:40:55]MH_I2C_Read... [10:40:55]Read from MH i2c: E2 03 00 [10:40:55]MH_I2C_Read... [10:40:55]Read from MH i2c: E2 03 00 1C 43 00 90 00 D3 [10:40:55]RAPDU: 90 00 [10:40:55]wFMCommunicate OK [10:40:55]wFMCommunicate request_size=255 [10:40:55]MH_SAM_APDU [10:40: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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 BB 18 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 61 63 02 00 35 04 06 00 C4 [10:40:55]Write to MH i2c: E2 02 01 1D 43 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 BB 18 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 61 63 02 00 35 04 06 00 C4 00 00 B9 [10:40:55]Write i2c OK [10:40:55]MH_I2C_Read... [10:40:55]OFD Sender: No OFD packet to send [10:40:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:40:56]Read from MH i2c: E2 [10:40:56]MH_I2C_Read... [10:40:56]Read from MH i2c: E2 03 00 [10:40:56]MH_I2C_Read... [10:40:56]Read from MH i2c: E2 03 00 1D 43 00 90 00 D4 [10:40:56]RAPDU: 90 00 [10:40:56]wFMCommunicate OK [10:40:56]wFMCommunicate request_size=10 [10:40:56]MH_SAM_APDU [10:40:56]CAPDU: 80 0D 02 02 05 BE B3 BF 6E 41 [10:40:56]Write to MH i2c: E2 0D 00 1E 43 80 0D 02 02 05 00 BE B3 BF 6E 41 00 00 C4 [10:40:56]Write i2c OK [10:40:56]MH_I2C_Read... [10:40:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:40:56]Read from MH i2c: E2 [10:40:56]MH_I2C_Read... [10:40:56]Read from MH i2c: E2 03 00 [10:40:56]MH_I2C_Read... [10:40:56]Read from MH i2c: E2 03 00 1E 43 00 90 00 D5 [10:40:56]RAPDU: 90 00 [10:40:56]wFMCommunicate OK [10:40:56]wFMCommunicate request_size=4 [10:40:56]MH_SAM_APDU [10:40:56]CAPDU: 80 0D 03 02 [10:40:56]Write to MH i2c: E2 08 00 1F 43 80 0D 03 02 00 00 00 00 DD [10:40:56]Write i2c OK [10:40:56]MH_I2C_Read... [10:40:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:40:56]Read from MH i2c: E2 [10:40:56]MH_I2C_Read... [10:40:56]Read from MH i2c: E2 0B 00 [10:40:56]MH_I2C_Read... [10:40:56]Read from MH i2c: E2 0B 00 1F 43 00 A5 2B 45 60 9A 8E 94 78 90 00 87 [10:40:56]RAPDU: A5 2B 45 60 9A 8E 94 78 90 00 [10:40:56]wFMCommunicate OK [10:40:56]SAM_PROTO_SignData done [10:40:56]FM_MakeSignedData done [10:40:56]CreateOFDProtocolMessage [10:40:56]wFMCommunicate request_size=4 [10:40:56]MH_SAM_APDU [10:40:56]CAPDU: 80 11 00 00 [10:40:56]Write to MH i2c: E2 08 00 20 43 80 11 00 00 00 00 00 00 DD [10:40:56]Write i2c OK [10:40:56]MH_I2C_Read... [10:40:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:40:56]Read from MH i2c: E2 [10:40:56]MH_I2C_Read... [10:40:56]Read from MH i2c: E2 17 00 [10:40:56]MH_I2C_Read... [10:40:56]Read from MH i2c: E2 17 00 20 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 32 [10:40:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:40:56]wFMCommunicate OK [10:40:56]CreateOFDProtocolMessage done [10:40:56]OFDSenderStorePacket 156513 [10:40:56]StoreOFDPacket docnum=156513 [10:40:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 46 41 07 01 13 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 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 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 BB 18 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 61 63 02 00 35 04 06 00 C4 BE B3 BF 6E 41 A5 2B 45 60 9A 8E 94 78 [10:40:56]CheckFolder [10:40:56]dirname=/storage/ofd_packets [10:40:56]CheckFolder done [10:40:56]ProducePacketName [10:40:56]name=ofd_packets/00156513 [10:40:56]NVStorageSaveData ofd_packets/00156513 [10:40:56]File name is /storage/ofd_packets/00156513 [10:40:56]Write 301 bytes [10:40:56]NVStorageSaveData done [10:40:56]OFDSenderStorePacket done [10:40:56]KKMCreateOFDPacket done [10:40:56]NVStorageSaveData kkm_last_timestamp [10:40:56]File name is /storage/kkm_last_timestamp [10:40:56]Write 4 bytes [10:40:56]NVStorageSaveData done [10:40:56]ExternCall_PrintAddStr [10:40:56]wPrintStart [10:40:56]Write to MH i2c: 01 00 00 21 43 64 [10:40:56]Write i2c OK [10:40:56]MH_I2C_Read... [10:40:56]Read from MH i2c: 01 [10:40:56]MH_I2C_Read... [10:40:56]Read from MH i2c: 01 07 00 [10:40:56]MH_I2C_Read... [10:40:56]Read from MH i2c: 01 07 00 21 43 00 00 00 00 00 FF 0F 79 [10:40:56]RasterBufferAndPrint [10:40:56]line Счет N : (1)99326 [10:40:56]line ИНН: 02508201610067 [10:40:56]line Контрольно-Кассовый Чек [10:40:56]line ПРОДАЖА [10:40:56]line ТРК (МРК, ГНК) : 21 [10:40:56]line Товар: 2710124130 [10:40:56]line Аи-92-К-5 [10:40:56]line 10.470 * 66.90 [10:40:56]line = 700.44 [10:40:56]line НДС 12% НСП 1% [10:40:56]line > о реализуемом товаре [10:40:56]line ОКРУГЛЕНИЕ: -0.44 [10:40:56]line ИТОГО: 700.00 [10:40:56]line Внесено: 700.00 [10:40:56]line СДАЧА: 0.00 [10:40:56]line НСП 1% : 6.20 [10:40:56]line НДС 12% : 74.38 [10:40:56]line Наличными: 700.00 [10:40:56]line Безнал.: 0.00 [10:40:56]line Место: АЗС № 143 "Партнер Нефть" [10:40:56]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [10:40:56]line СНО: Общий режим [10:40:56]line Чек 64 27.10.2024 10:40 [10:40:56]line Смена: 537 ФФД: 1.0 [10:40:56]line ЗНМ: 0300000096 [10:40:56]line РНМ: 0000000000091693 [10:40:56]line Версия ККМ: 001 [10:40:56]line ФМ: 0000000000871792 [10:40:56]line ФД: 156513 [10:40:56]line ФПД: 216323338497601 [10:40:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T104059&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156513&fm=216323338497601&tin=02508201610067®Number=0000000000091693&sum=70000 [10:40:56]OFD Sender: Processing packet 156513 [packets to send 31, broken 30] [10:40:56]ProducePacketName [10:40:56]name=ofd_packets/00156513 [10:40:56]OFD Sender: To server: pG, [10:40:56]CommunicateWithHost lk.salyk.kg:30040 [10:40:56]ConnectInit lk.salyk.kg [10:40:56]written 0, free lines is 4095 [10:40:56]Connected sock=10 [10:40:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 46 41 07 01 13 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 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 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 BB 18 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 61 63 02 00 35 04 06 00 C4 BE B3 BF 6E 41 A5 2B 45 60 9A 8E 94 78 [10:40:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 F1 B1 47 00 78 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 31 37 39 32 10 04 04 00 61 63 02 00 F4 03 04 00 2B BE 1D 67 B6 04 01 00 00 98 0C 8C A9 F6 B4 1C 23 [10:40:56]CommunicateWithHost err = 0 [10:40:56]CheckOFDResponse [10:40:56]1017 (14) - 77093643461234 [10:40:56]1041 (16) - 0000000000871792 [10:40:56]1040 (4) - 156513 [10:40:56]1012 (4) - 27.10.2024 04:14 [10:40:56]1206 (1) - 0 [10:40:56]OFD Sender: Remove packet 156513 [10:40:56]ProducePacketName [10:40:56]name=ofd_packets/00156513 [10:40:56]NVStorageDeleteData [10:40:57]Write to MH i2c: 01 00 00 4C 43 8F [10:40:57]Write i2c OK [10:40:57]MH_I2C_Read... [10:40:57]Read from MH i2c: 01 [10:40:57]MH_I2C_Read... [10:40:57]Read from MH i2c: 01 07 00 [10:40:57]MH_I2C_Read... [10:40:57]Read from MH i2c: 01 07 00 4C 43 00 00 00 00 00 DD 0C 7F [10:40:57]RasterBufferAndPrint [10:40:57]line [10:40:57]line [10:40:57]line [10:40:57]line [10:40:57]line [10:40:57]written 0, free lines is 3299 [10:40:57]process_action close_receipt done [10:40:57]requested_data is exist [10:40:57]produce_requested_data [10:40:57]requested_item fm.sn is exist - process it [10:40:57]wFMCommunicate request_size=4 [10:40:57]MH_SAM_APDU [10:40:57]CAPDU: 80 11 00 00 [10:40:57]Write to MH i2c: E2 08 00 53 43 80 11 00 00 00 00 00 00 10 [10:40:57]Write i2c OK [10:40:57]MH_I2C_Read... [10:40:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:40:57]Read from MH i2c: E2 [10:40:57]MH_I2C_Read... [10:40:57]Read from MH i2c: E2 17 00 [10:40:57]MH_I2C_Read... [10:40:57]Read from MH i2c: E2 17 00 53 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 65 [10:40:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:40:57]wFMCommunicate OK [10:40:57]requested_item fd.num is exist - process it [10:40:57]SAM_PROTO_GetFieldsCounters [10:40:57]wFMCommunicate request_size=4 [10:40:57]MH_SAM_APDU [10:40:57]CAPDU: 80 13 00 00 [10:40:57]Write to MH i2c: E2 08 00 54 43 80 13 00 00 00 00 00 00 13 [10:40:57]Write i2c OK [10:40:57]MH_I2C_Read... [10:40:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:40:57]Read from MH i2c: E2 [10:40:57]MH_I2C_Read... [10:40:57]Read from MH i2c: E2 62 00 [10:40:57]MH_I2C_Read... [10:40:57]Read from MH i2c: E2 62 00 54 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 61 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 DA [10:40:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 61 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:40:57]wFMCommunicate OK [10:40:57]SAM_PROTO_GetFieldsCounters done [10:40:57]requested_item shift.num is exist - process it [10:40:57]requested_item shift.opened is exist - process it [10:40:57]req_shift_opened [10:40:57]FM_GetShiftState [10:40:57]SAM_PROTO_GetShiftState [10:40:57]wFMCommunicate request_size=4 [10:40:57]MH_SAM_APDU [10:40:57]CAPDU: 80 13 01 00 [10:40:57]Write to MH i2c: E2 08 00 55 43 80 13 01 00 00 00 00 00 15 [10:40:57]Write i2c OK [10:40:57]MH_I2C_Read... [10:40:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:40:57]Read from MH i2c: E2 [10:40:57]MH_I2C_Read... [10:40:57]Read from MH i2c: E2 0E 00 [10:40:57]MH_I2C_Read... [10:40:57]Read from MH i2c: E2 0E 00 55 43 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 E2 [10:40:57]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [10:40:57]wFMCommunicate OK [10:40:57]SAM_PROTO_GetShiftState done [10:40:57]FM_GetShiftState done [10:40:57]req_shift_opened done [10:40:57]requested_item shift.open_date is exist - process it [10:40:57]req_shift_open_date [10:40:57]req_shift_open_date done [10:40:57]produce_requested_data done [10:40:57]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156513,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [10:40:57]process_action_free close_receipt [10:40:57]json_value_free [10:40:57]json_value_free done [10:40:57]process_json_proto returns [10:40:57]Send response to host [10:40:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156513,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [10:40:57]free response buf [10:40:57]execute_script done [10:40:57]execute_script returns [10:40:57]free content buf [10:40:57]Sock 9.Close socket [10:40:57]Sock 9.Thread stoped [10:40:57]OFD Sender: No OFD packet to send [10:41:02]OFD Sender: No OFD packet to send [10:41:07]OFD Sender: No OFD packet to send [10:41:12]OFD Sender: No OFD packet to send [10:41:17]OFD Sender: No OFD packet to send [10:41:22]OFD Sender: No OFD packet to send [10:41:27]OFD Sender: No OFD packet to send [10:41:32]OFD Sender: No OFD packet to send [10:41:37]OFD Sender: No OFD packet to send [10:41:42]OFD Sender: No OFD packet to send [10:41:47]OFD Sender: No OFD packet to send [10:41:52]OFD Sender: No OFD packet to send [10:41:57]OFD Sender: No OFD packet to send [10:42:02]OFD Sender: No OFD packet to send [10:42:07]OFD Sender: No OFD packet to send [10:42:12]OFD Sender: No OFD packet to send [10:42:17]OFD Sender: No OFD packet to send [10:42:22]OFD Sender: No OFD packet to send [10:42:27]OFD Sender: No OFD packet to send [10:42:32]OFD Sender: No OFD packet to send [10:42:37]OFD Sender: No OFD packet to send [10:42:42]OFD Sender: No OFD packet to send [10:42:47]OFD Sender: No OFD packet to send [10:42:52]OFD Sender: No OFD packet to send [10:42:57]OFD Sender: No OFD packet to send [10:43:02]OFD Sender: No OFD packet to send [10:43:07]OFD Sender: No OFD packet to send [10:43:12]OFD Sender: No OFD packet to send [10:43:17]OFD Sender: No OFD packet to send [10:43:22]OFD Sender: No OFD packet to send [10:43:27]OFD Sender: No OFD packet to send [10:43:32]OFD Sender: No OFD packet to send [10:43:37]OFD Sender: No OFD packet to send [10:43:42]OFD Sender: No OFD packet to send [10:43:47]OFD Sender: No OFD packet to send [10:43:52]OFD Sender: No OFD packet to send [10:43:57]OFD Sender: No OFD packet to send [10:44:02]OFD Sender: No OFD packet to send [10:44:07]OFD Sender: No OFD packet to send [10:44:12]OFD Sender: No OFD packet to send [10:44:17]OFD Sender: No OFD packet to send [10:44:22]OFD Sender: No OFD packet to send [10:44:27]OFD Sender: No OFD packet to send [10:44:32]OFD Sender: No OFD packet to send [10:44:37]OFD Sender: No OFD packet to send [10:44:42]OFD Sender: No OFD packet to send [10:44:47]OFD Sender: No OFD packet to send [10:44:52]OFD Sender: No OFD packet to send [10:44:57]OFD Sender: No OFD packet to send [10:45:02]OFD Sender: No OFD packet to send [10:45:07]OFD Sender: No OFD packet to send [10:45:12]OFD Sender: No OFD packet to send [10:45:17]OFD Sender: No OFD packet to send [10:45:22]OFD Sender: No OFD packet to send [10:45:27]OFD Sender: No OFD packet to send [10:45:32]OFD Sender: No OFD packet to send [10:45:37]OFD Sender: No OFD packet to send [10:45:42]OFD Sender: No OFD packet to send [10:45:47]OFD Sender: No OFD packet to send [10:45:52]OFD Sender: No OFD packet to send [10:45:57]OFD Sender: No OFD packet to send [10:46:02]OFD Sender: No OFD packet to send [10:46:07]OFD Sender: No OFD packet to send [10:46:12]OFD Sender: No OFD packet to send [10:46:17]OFD Sender: No OFD packet to send [10:46:22]OFD Sender: No OFD packet to send [10:46:27]OFD Sender: No OFD packet to send [10:46:32]OFD Sender: No OFD packet to send [10:46:37]OFD Sender: No OFD packet to send [10:46:42]OFD Sender: No OFD packet to send [10:46:47]OFD Sender: No OFD packet to send [10:46:52]OFD Sender: No OFD packet to send [10:46:57]OFD Sender: No OFD packet to send [10:47:02]OFD Sender: No OFD packet to send [10:47:07]OFD Sender: No OFD packet to send [10:47:12]OFD Sender: No OFD packet to send [10:47:17]OFD Sender: No OFD packet to send [10:47:22]OFD Sender: No OFD packet to send [10:47:27]OFD Sender: No OFD packet to send [10:47:32]OFD Sender: No OFD packet to send [10:47:37]OFD Sender: No OFD packet to send [10:47:42]OFD Sender: No OFD packet to send [10:47:47]OFD Sender: No OFD packet to send [10:47:52]OFD Sender: No OFD packet to send [10:47:57]OFD Sender: No OFD packet to send [10:48:02]OFD Sender: No OFD packet to send [10:48:07]OFD Sender: No OFD packet to send [10:48:12]OFD Sender: No OFD packet to send [10:48:17]OFD Sender: No OFD packet to send [10:48:22]OFD Sender: No OFD packet to send [10:48:27]OFD Sender: No OFD packet to send [10:48:32]OFD Sender: No OFD packet to send [10:48:37]OFD Sender: No OFD packet to send [10:48:42]OFD Sender: No OFD packet to send [10:48:47]OFD Sender: No OFD packet to send [10:48:52]OFD Sender: No OFD packet to send [10:48:57]OFD Sender: No OFD packet to send [10:49:02]OFD Sender: No OFD packet to send [10:49:03]accept exits with 8 [10:49:03]New connection [10:49:03]New thread 3066834276 created [10:49:03]Thread 3066977636 joined [10:49:03]Waiting for new connection... [10:49:03] Sock 8.Parse request [10:49:03]Sock 8.Check first char [10:49:03]Sock 8.First char is OK [10:49:03]request: POST /json_proto HTTP/1.0 [10:49:03]Method: POST [10:49:03]URL: /json_proto [10:49:03]Method is POST - this is cgi request [10:49:03]url: /json_proto [10:49:03]query_string will be loaded in cgi processing [10:49:03]execute_cgi json_proto POST (null) [10:49:03]execute_cgi path=json_proto method=POST [10:49:03]POST find Content-Length [10:49:03]Host: 172.17.63.3:8080 [10:49:03]Content-Length: 676 [10:49:03]Content-Type: application/json [10:49:03] [10:49:03]POST finish read [10:49:03]Found Content-Length = 676 [10:49:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99327", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:49:03]execute_script... [10:49: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)99327", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:49:03]POST & json_proto [10:49:03]process_json_proto [10:49:03]json parsed OK: [10:49:03]protocol is kg_v1.0 [10:49:03]action value=close_receipt [10:49:03]process_action close_receipt [10:49:03]cmd_close_receipt [10:49:03]MH_GetDate [10:49:03]Write to MH i2c: F0 00 00 56 43 88 [10:49:03]Write i2c OK [10:49:03]MH_I2C_Read... [10:49:03]Read from MH i2c: F0 [10:49:03]MH_I2C_Read... [10:49:03]Read from MH i2c: F0 09 00 [10:49:03]MH_I2C_Read... [10:49:03]Read from MH i2c: F0 09 00 56 43 00 A4 1A 1E 67 50 D1 6C 64 C5 [10:49:03]GetLastDocTimeStamp 1730025659 [10:49:03]current date 1730026148 [10:49:03]FM_GetShiftState [10:49:03]SAM_PROTO_GetShiftState [10:49:03]wFMCommunicate request_size=4 [10:49:03]MH_SAM_APDU [10:49:03]CAPDU: 80 13 01 00 [10:49:03]Write to MH i2c: E2 08 00 57 43 80 13 01 00 00 00 00 00 17 [10:49:03]Write i2c OK [10:49:03]MH_I2C_Read... [10:49:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:03]Read from MH i2c: E2 [10:49:03]MH_I2C_Read... [10:49:03]Read from MH i2c: E2 0E 00 [10:49:03]MH_I2C_Read... [10:49:03]Read from MH i2c: E2 0E 00 57 43 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 E4 [10:49:03]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [10:49:03]wFMCommunicate OK [10:49:03]SAM_PROTO_GetShiftState done [10:49:03]FM_GetShiftState done [10:49:03]opened in 1729989044 [10:49:03]opened+sec_in_day 1730075444 [10:49:03]quantity*price = 50041 [10:49:03]sum+1 = 50042 [10:49:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 65 27.10.2024 10:49 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156514 ФПД: 44263674983732 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T104908&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156514&fm=44263674983732&tin=02508201610067®Number=0000000000091693&sum=50000 [10:49:04]StoreToDocumentArchive [10:49:04]shift 537 fd 156514 [10:49:04]save to /storage/0537/doc_00156514 [10:49:04]save last doc name /storage/0537/doc_00156514 to /storage/kkm_last_doc_name [10:49:04]save OK [10:49:04]Clear old archive folders... [10:49:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:49:04]tlvbuf is B6F5E3B0 [10:49:04]SAM_PROTO_ClearQueue [10:49:04]wFMCommunicate request_size=4 [10:49:04]MH_SAM_APDU [10:49:04]CAPDU: 80 09 00 00 [10:49:04]Write to MH i2c: E2 08 00 64 43 80 09 00 00 00 00 00 00 19 [10:49:04]Write i2c OK [10:49:04]MH_I2C_Read... [10:49:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:49:04]Read from MH i2c: E2 [10:49:04]MH_I2C_Read... [10:49:04]Read from MH i2c: E2 03 00 [10:49:04]MH_I2C_Read... [10:49:04]Read from MH i2c: E2 03 00 64 43 00 90 00 1B [10:49:04]RAPDU: 90 00 [10:49:04]wFMCommunicate OK [10:49:04]SAM_PROTO_ClearQueue done [10:49:04]KKMCreateOFDPacket [10:49:04]OFDProtocolAddRootSTLVToBuf [10:49:04]FM_MakeSignedData [10:49:04]FM_MakeSignedData [10:49:04]SAM_PROTO_SignData [10:49:04]wFMCommunicate request_size=4 [10:49:04]MH_SAM_APDU [10:49:04]CAPDU: 80 0D 01 02 [10:49:04]Write to MH i2c: E2 08 00 65 43 80 0D 01 02 00 00 00 00 21 [10:49:04]Write i2c OK [10:49:04]MH_I2C_Read... [10:49:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:49:04]Read from MH i2c: E2 [10:49:04]MH_I2C_Read... [10:49:04]Read from MH i2c: E2 03 00 [10:49:04]MH_I2C_Read... [10:49:04]Read from MH i2c: E2 03 00 65 43 00 90 00 1C [10:49:04]RAPDU: 90 00 [10:49:04]wFMCommunicate OK [10:49:04]wFMCommunicate request_size=255 [10:49:04]MH_SAM_APDU [10:49: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 A4 1A 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 62 63 02 00 35 04 06 00 28 [10:49:04]Write to MH i2c: E2 02 01 66 43 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 A4 1A 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 62 63 02 00 35 04 06 00 28 00 00 43 [10:49:04]Write i2c OK [10:49:04]MH_I2C_Read... [10:49:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:04]Read from MH i2c: E2 [10:49:04]MH_I2C_Read... [10:49:04]Read from MH i2c: E2 03 00 [10:49:04]MH_I2C_Read... [10:49:04]Read from MH i2c: E2 03 00 66 43 00 90 00 1D [10:49:04]RAPDU: 90 00 [10:49:04]wFMCommunicate OK [10:49:04]wFMCommunicate request_size=10 [10:49:04]MH_SAM_APDU [10:49:04]CAPDU: 80 0D 02 02 05 41 F0 9F B5 34 [10:49:04]Write to MH i2c: E2 0D 00 67 43 80 0D 02 02 05 00 41 F0 9F B5 34 00 00 E7 [10:49:04]Write i2c OK [10:49:04]MH_I2C_Read... [10:49:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:04]Read from MH i2c: E2 [10:49:04]MH_I2C_Read... [10:49:04]Read from MH i2c: E2 03 00 [10:49:04]MH_I2C_Read... [10:49:04]Read from MH i2c: E2 03 00 67 43 00 90 00 1E [10:49:04]RAPDU: 90 00 [10:49:04]wFMCommunicate OK [10:49:04]wFMCommunicate request_size=4 [10:49:04]MH_SAM_APDU [10:49:04]CAPDU: 80 0D 03 02 [10:49:04]Write to MH i2c: E2 08 00 68 43 80 0D 03 02 00 00 00 00 26 [10:49:04]Write i2c OK [10:49:04]MH_I2C_Read... [10:49:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:49:04]Read from MH i2c: E2 [10:49:04]MH_I2C_Read... [10:49:04]Read from MH i2c: E2 0B 00 [10:49:04]MH_I2C_Read... [10:49:04]Read from MH i2c: E2 0B 00 68 43 00 76 55 0F 44 AE 01 2D 9C 90 00 BD [10:49:04]RAPDU: 76 55 0F 44 AE 01 2D 9C 90 00 [10:49:04]wFMCommunicate OK [10:49:04]SAM_PROTO_SignData done [10:49:04]FM_MakeSignedData done [10:49:04]CreateOFDProtocolMessage [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 69 43 80 11 00 00 00 00 00 00 26 [10:49:04]Write i2c OK [10:49:04]MH_I2C_Read... [10:49:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:05]Read from MH i2c: E2 [10:49:05]MH_I2C_Read... [10:49:05]Read from MH i2c: E2 17 00 [10:49:05]MH_I2C_Read... [10:49:05]Read from MH i2c: E2 17 00 69 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 7B [10:49:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:49:05]wFMCommunicate OK [10:49:05]CreateOFDProtocolMessage done [10:49:05]OFDSenderStorePacket 156514 [10:49:05]StoreOFDPacket docnum=156514 [10:49:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 AF 58 07 01 E7 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 A4 1A 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 62 63 02 00 35 04 06 00 28 41 F0 9F B5 34 76 55 0F 44 AE 01 2D 9C [10:49:05]CheckFolder [10:49:05]dirname=/storage/ofd_packets [10:49:05]CheckFolder done [10:49:05]ProducePacketName [10:49:05]name=ofd_packets/00156514 [10:49:05]NVStorageSaveData ofd_packets/00156514 [10:49:05]File name is /storage/ofd_packets/00156514 [10:49:05]Write 301 bytes [10:49:05]NVStorageSaveData done [10:49:05]OFDSenderStorePacket done [10:49:05]KKMCreateOFDPacket done [10:49:05]NVStorageSaveData kkm_last_timestamp [10:49:05]File name is /storage/kkm_last_timestamp [10:49:05]Write 4 bytes [10:49:05]NVStorageSaveData done [10:49:05]ExternCall_PrintAddStr [10:49:05]wPrintStart [10:49:05]Write to MH i2c: 01 00 00 6A 43 AD [10:49:05]Write i2c OK [10:49:05]MH_I2C_Read... [10:49:05]Read from MH i2c: 01 [10:49:05]MH_I2C_Read... [10:49:05]Read from MH i2c: 01 07 00 [10:49:05]MH_I2C_Read... [10:49:05]Read from MH i2c: 01 07 00 6A 43 00 00 00 00 00 FF 0F C2 [10:49:05]RasterBufferAndPrint [10:49:05]line Счет N : (1)99327 [10:49:05]line ИНН: 02508201610067 [10:49:05]line Контрольно-Кассовый Чек [10:49:05]line ПРОДАЖА [10:49:05]line ТРК (МРК, ГНК) : 21 [10:49:05]line Товар: 2710124130 [10:49:05]line Аи-92-К-5 [10:49:05]line 7.480 * 66.90 [10:49:05]line = 500.41 [10:49:05]line НДС 12% НСП 1% [10:49:05]line > о реализуемом товаре [10:49:05]line ОКРУГЛЕНИЕ: -0.41 [10:49:05]line ИТОГО: 500.00 [10:49:05]line Внесено: 500.00 [10:49:05]line СДАЧА: 0.00 [10:49:05]line НСП 1% : 4.43 [10:49:05]line НДС 12% : 53.14 [10:49:05]line Наличными: 500.00 [10:49:05]line Безнал.: 0.00 [10:49:05]line Место: АЗС № 143 "Партнер Нефть" [10:49:05]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [10:49:05]line СНО: Общий режим [10:49:05]line Чек 65 27.10.2024 10:49 [10:49:05]line Смена: 537 ФФД: 1.0 [10:49:05]line ЗНМ: 0300000096 [10:49:05]line РНМ: 0000000000091693 [10:49:05]line Версия ККМ: 001 [10:49:05]line ФМ: 0000000000871792 [10:49:05]line ФД: 156514 [10:49:05]line ФПД: 44263674983732 [10:49:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T104908&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156514&fm=44263674983732&tin=02508201610067®Number=0000000000091693&sum=50000 [10:49:05]OFD Sender: Processing packet 156514 [packets to send 31, broken 30] [10:49:05]ProducePacketName [10:49:05]name=ofd_packets/00156514 [10:49:05]OFD Sender: To server: pG, [10:49:05]CommunicateWithHost lk.salyk.kg:30040 [10:49:05]ConnectInit lk.salyk.kg [10:49:05]written 0, free lines is 4095 [10:49:05]Connected sock=10 [10:49:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 AF 58 07 01 E7 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 A4 1A 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 62 63 02 00 35 04 06 00 28 41 F0 9F B5 34 76 55 0F 44 AE 01 2D 9C [10:49:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 90 67 47 00 BF 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 31 37 39 32 10 04 04 00 62 63 02 00 F4 03 04 00 14 C0 1D 67 B6 04 01 00 00 95 51 52 3A 48 22 D9 E4 [10:49:05]CommunicateWithHost err = 0 [10:49:05]CheckOFDResponse [10:49:05]1017 (14) - 77093643461234 [10:49:05]1041 (16) - 0000000000871792 [10:49:05]1040 (4) - 156514 [10:49:05]1012 (4) - 27.10.2024 04:22 [10:49:05]1206 (1) - 0 [10:49:05]OFD Sender: Remove packet 156514 [10:49:05]ProducePacketName [10:49:05]name=ofd_packets/00156514 [10:49:05]NVStorageDeleteData [10:49:05]Write to MH i2c: 01 00 00 95 43 D8 [10:49:05]Write i2c OK [10:49:05]MH_I2C_Read... [10:49:05]Read from MH i2c: 01 [10:49:05]MH_I2C_Read... [10:49:05]Read from MH i2c: 01 07 00 [10:49:05]MH_I2C_Read... [10:49:05]Read from MH i2c: 01 07 00 95 43 00 00 00 00 00 CF 0C BA [10:49:05]RasterBufferAndPrint [10:49:05]line [10:49:05]line [10:49:05]line [10:49:05]line [10:49:05]line [10:49:05]written 0, free lines is 3287 [10:49:05]process_action close_receipt done [10:49:05]requested_data is exist [10:49:05]produce_requested_data [10:49:05]requested_item fm.sn is exist - process it [10:49:05]wFMCommunicate request_size=4 [10:49:05]MH_SAM_APDU [10:49:05]CAPDU: 80 11 00 00 [10:49:05]Write to MH i2c: E2 08 00 9C 43 80 11 00 00 00 00 00 00 59 [10:49:05]Write i2c OK [10:49:05]MH_I2C_Read... [10:49:05]Read from MH i2c: E2 [10:49:05]MH_I2C_Read... [10:49:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:05]Read from MH i2c: E2 17 00 [10:49:05]MH_I2C_Read... [10:49:05]Read from MH i2c: E2 17 00 9C 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 AE [10:49:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:49:05]wFMCommunicate OK [10:49:05]requested_item fd.num is exist - process it [10:49:05]SAM_PROTO_GetFieldsCounters [10:49:05]wFMCommunicate request_size=4 [10:49:05]MH_SAM_APDU [10:49:05]CAPDU: 80 13 00 00 [10:49:05]Write to MH i2c: E2 08 00 9D 43 80 13 00 00 00 00 00 00 5C [10:49:05]Write i2c OK [10:49:05]MH_I2C_Read... [10:49:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:49:06]Read from MH i2c: E2 [10:49:06]MH_I2C_Read... [10:49:06]Read from MH i2c: E2 62 00 [10:49:06]MH_I2C_Read... [10:49:06]Read from MH i2c: E2 62 00 9D 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 62 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 27 [10:49:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 62 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:49:06]wFMCommunicate OK [10:49:06]SAM_PROTO_GetFieldsCounters done [10:49:06]requested_item shift.num is exist - process it [10:49:06]requested_item shift.opened is exist - process it [10:49:06]req_shift_opened [10:49:06]FM_GetShiftState [10:49:06]SAM_PROTO_GetShiftState [10:49:06]wFMCommunicate request_size=4 [10:49:06]MH_SAM_APDU [10:49:06]CAPDU: 80 13 01 00 [10:49:06]Write to MH i2c: E2 08 00 9E 43 80 13 01 00 00 00 00 00 5E [10:49:06]Write i2c OK [10:49:06]MH_I2C_Read... [10:49:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:06]Read from MH i2c: E2 [10:49:06]MH_I2C_Read... [10:49:06]Read from MH i2c: E2 0E 00 [10:49:06]MH_I2C_Read... [10:49:06]Read from MH i2c: E2 0E 00 9E 43 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 2B [10:49:06]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [10:49:06]wFMCommunicate OK [10:49:06]SAM_PROTO_GetShiftState done [10:49:06]FM_GetShiftState done [10:49:06]req_shift_opened done [10:49:06]requested_item shift.open_date is exist - process it [10:49:06]req_shift_open_date [10:49:06]req_shift_open_date done [10:49:06]produce_requested_data done [10:49:06]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156514,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [10:49:06]process_action_free close_receipt [10:49:06]json_value_free [10:49:06]json_value_free done [10:49:06]process_json_proto returns [10:49:06]Send response to host [10:49:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156514,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [10:49:06]free response buf [10:49:06]execute_script done [10:49:06]execute_script returns [10:49:06]free content buf [10:49:06]Sock 8.Close socket [10:49:06]Sock 8.Thread stoped [10:49:06]OFD Sender: No OFD packet to send [10:49:11]OFD Sender: No OFD packet to send [10:49:16]OFD Sender: No OFD packet to send [10:49:21]OFD Sender: No OFD packet to send [10:49:26]OFD Sender: No OFD packet to send [10:49:31]OFD Sender: No OFD packet to send [10:49:36]OFD Sender: No OFD packet to send [10:49:41]OFD Sender: No OFD packet to send [10:49:46]OFD Sender: No OFD packet to send [10:49:51]OFD Sender: No OFD packet to send [10:49:56]OFD Sender: No OFD packet to send [10:50:01]OFD Sender: No OFD packet to send [10:50:06]OFD Sender: No OFD packet to send [10:50:11]OFD Sender: No OFD packet to send [10:50:16]OFD Sender: No OFD packet to send [10:50:21]OFD Sender: No OFD packet to send [10:50:26]OFD Sender: No OFD packet to send [10:50:31]OFD Sender: No OFD packet to send [10:50:36]OFD Sender: No OFD packet to send [10:50:41]OFD Sender: No OFD packet to send [10:50:46]OFD Sender: No OFD packet to send [10:50:51]OFD Sender: No OFD packet to send [10:50:56]OFD Sender: No OFD packet to send [10:51:01]OFD Sender: No OFD packet to send [10:51:06]OFD Sender: No OFD packet to send [10:51:11]OFD Sender: No OFD packet to send [10:51:16]OFD Sender: No OFD packet to send [10:51:21]OFD Sender: No OFD packet to send [10:51:25]accept exits with 9 [10:51:25]New connection [10:51:25]New thread 3066977636 created [10:51:25]Thread 3066834276 joined [10:51:25]Waiting for new connection... [10:51:25] Sock 9.Parse request [10:51:25]Sock 9.Check first char [10:51:25]Sock 9.First char is OK [10:51:25]request: POST /json_proto HTTP/1.0 [10:51:25]Method: POST [10:51:25]URL: /json_proto [10:51:25]Method is POST - this is cgi request [10:51:25]url: /json_proto [10:51:25]query_string will be loaded in cgi processing [10:51:25]execute_cgi json_proto POST (null) [10:51:25]execute_cgi path=json_proto method=POST [10:51:25]POST find Content-Length [10:51:25]Host: 172.17.63.3:8080 [10:51:25]Content-Length: 676 [10:51:25]Content-Type: application/json [10:51:25] [10:51:25]POST finish read [10:51:25]Found Content-Length = 676 [10:51:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99328", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:51:25]execute_script... [10:51: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)99328", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:51:25]POST & json_proto [10:51:25]process_json_proto [10:51:25]json parsed OK: [10:51:25]protocol is kg_v1.0 [10:51:25]action value=close_receipt [10:51:25]process_action close_receipt [10:51:25]cmd_close_receipt [10:51:25]MH_GetDate [10:51:25]Write to MH i2c: F0 00 00 9F 43 D1 [10:51:25]Write i2c OK [10:51:25]MH_I2C_Read... [10:51:25]Read from MH i2c: F0 [10:51:25]MH_I2C_Read... [10:51:25]Read from MH i2c: F0 09 00 [10:51:25]MH_I2C_Read... [10:51:25]Read from MH i2c: F0 09 00 9F 43 00 32 1B 1E 67 50 D1 6C 64 9D [10:51:25]GetLastDocTimeStamp 1730026148 [10:51:25]current date 1730026290 [10:51:25]FM_GetShiftState [10:51:25]SAM_PROTO_GetShiftState [10:51:25]wFMCommunicate request_size=4 [10:51:25]MH_SAM_APDU [10:51:25]CAPDU: 80 13 01 00 [10:51:25]Write to MH i2c: E2 08 00 A0 43 80 13 01 00 00 00 00 00 60 [10:51:25]Write i2c OK [10:51:25]MH_I2C_Read... [10:51:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:51:25]Read from MH i2c: E2 [10:51:25]MH_I2C_Read... [10:51:25]Read from MH i2c: E2 0E 00 [10:51:25]MH_I2C_Read... [10:51:25]Read from MH i2c: E2 0E 00 A0 43 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 2D [10:51:25]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [10:51:25]wFMCommunicate OK [10:51:25]SAM_PROTO_GetShiftState done [10:51:25]FM_GetShiftState done [10:51:25]opened in 1729989044 [10:51:25]opened+sec_in_day 1730075444 [10:51:25]quantity*price = 30038 [10:51:25]sum+1 = 30039 [10:51:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 66 27.10.2024 10:51 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156515 ФПД: 23631791778804 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T105130&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156515&fm=23631791778804&tin=02508201610067®Number=0000000000091693&sum=30000 [10:51:26]StoreToDocumentArchive [10:51:26]shift 537 fd 156515 [10:51:26]save to /storage/0537/doc_00156515 [10:51:26]save last doc name /storage/0537/doc_00156515 to /storage/kkm_last_doc_name [10:51:26]save OK [10:51:26]Clear old archive folders... [10:51:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:51:26]tlvbuf is 017015C0 [10:51:26]SAM_PROTO_ClearQueue [10:51:26]wFMCommunicate request_size=4 [10:51:26]MH_SAM_APDU [10:51:26]CAPDU: 80 09 00 00 [10:51:26]Write to MH i2c: E2 08 00 AD 43 80 09 00 00 00 00 00 00 62 [10:51:26]Write i2c OK [10:51:26]MH_I2C_Read... [10:51:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:51:26]Read from MH i2c: E2 [10:51:26]MH_I2C_Read... [10:51:26]Read from MH i2c: E2 03 00 [10:51:26]MH_I2C_Read... [10:51:26]Read from MH i2c: E2 03 00 AD 43 00 90 00 64 [10:51:26]RAPDU: 90 00 [10:51:26]wFMCommunicate OK [10:51:26]SAM_PROTO_ClearQueue done [10:51:26]KKMCreateOFDPacket [10:51:26]OFDProtocolAddRootSTLVToBuf [10:51:26]FM_MakeSignedData [10:51:26]FM_MakeSignedData [10:51:26]SAM_PROTO_SignData [10:51:26]wFMCommunicate request_size=4 [10:51:26]MH_SAM_APDU [10:51:26]CAPDU: 80 0D 01 02 [10:51:26]Write to MH i2c: E2 08 00 AE 43 80 0D 01 02 00 00 00 00 6A [10:51:26]Write i2c OK [10:51:26]MH_I2C_Read... [10:51:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:51:26]Read from MH i2c: E2 [10:51:26]MH_I2C_Read... [10:51:26]Read from MH i2c: E2 03 00 [10:51:26]MH_I2C_Read... [10:51:26]Read from MH i2c: E2 03 00 AE 43 00 90 00 65 [10:51:26]RAPDU: 90 00 [10:51:26]wFMCommunicate OK [10:51:26]wFMCommunicate request_size=255 [10:51:26]MH_SAM_APDU [10:51: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 32 1B 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 63 63 02 00 35 04 06 00 15 [10:51:26]Write to MH i2c: E2 02 01 AF 43 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 32 1B 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 63 63 02 00 35 04 06 00 15 00 00 FE [10:51:26]Write i2c OK [10:51:26]MH_I2C_Read... [10:51:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:51:27]Read from MH i2c: E2 [10:51:27]MH_I2C_Read... [10:51:27]Read from MH i2c: E2 03 00 [10:51:27]MH_I2C_Read... [10:51:27]Read from MH i2c: E2 03 00 AF 43 00 90 00 66 [10:51:27]RAPDU: 90 00 [10:51:27]wFMCommunicate OK [10:51:27]wFMCommunicate request_size=10 [10:51:27]MH_SAM_APDU [10:51:27]CAPDU: 80 0D 02 02 05 7E 34 8D EB F4 [10:51:27]Write to MH i2c: E2 0D 00 B0 43 80 0D 02 02 05 00 7E 34 8D EB F4 00 00 95 [10:51:27]Write i2c OK [10:51:27]MH_I2C_Read... [10:51:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:51:27]Read from MH i2c: E2 [10:51:27]MH_I2C_Read... [10:51:27]Read from MH i2c: E2 03 00 [10:51:27]MH_I2C_Read... [10:51:27]Read from MH i2c: E2 03 00 B0 43 00 90 00 67 [10:51:27]RAPDU: 90 00 [10:51:27]wFMCommunicate OK [10:51:27]wFMCommunicate request_size=4 [10:51:27]MH_SAM_APDU [10:51:27]CAPDU: 80 0D 03 02 [10:51:27]Write to MH i2c: E2 08 00 B1 43 80 0D 03 02 00 00 00 00 6F [10:51:27]Write i2c OK [10:51:27]MH_I2C_Read... [10:51:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:51:27]Read from MH i2c: E2 [10:51:27]MH_I2C_Read... [10:51:27]Read from MH i2c: E2 0B 00 [10:51:27]MH_I2C_Read... [10:51:27]Read from MH i2c: E2 0B 00 B1 43 00 AB CC 9E 13 5E 80 E6 3A 90 00 96 [10:51:27]RAPDU: AB CC 9E 13 5E 80 E6 3A 90 00 [10:51:27]wFMCommunicate OK [10:51:27]SAM_PROTO_SignData done [10:51:27]FM_MakeSignedData done [10:51:27]CreateOFDProtocolMessage [10:51:27]wFMCommunicate request_size=4 [10:51:27]MH_SAM_APDU [10:51:27]CAPDU: 80 11 00 00 [10:51:27]Write to MH i2c: E2 08 00 B2 43 80 11 00 00 00 00 00 00 6F [10:51:27]Write i2c OK [10:51:27]MH_I2C_Read... [10:51:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:51:27]Read from MH i2c: E2 [10:51:27]MH_I2C_Read... [10:51:27]Read from MH i2c: E2 17 00 [10:51:27]MH_I2C_Read... [10:51:27]Read from MH i2c: E2 17 00 B2 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 C4 [10:51:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:51:27]wFMCommunicate OK [10:51:27]CreateOFDProtocolMessage done [10:51:27]OFDSenderStorePacket 156515 [10:51:27]StoreOFDPacket docnum=156515 [10:51:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 04 C3 07 01 C0 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 32 1B 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 63 63 02 00 35 04 06 00 15 7E 34 8D EB F4 AB CC 9E 13 5E 80 E6 3A [10:51:27]CheckFolder [10:51:27]dirname=/storage/ofd_packets [10:51:27]CheckFolder done [10:51:27]ProducePacketName [10:51:27]name=ofd_packets/00156515 [10:51:27]NVStorageSaveData ofd_packets/00156515 [10:51:27]File name is /storage/ofd_packets/00156515 [10:51:27]Write 301 bytes [10:51:27]NVStorageSaveData done [10:51:27]OFDSenderStorePacket done [10:51:27]KKMCreateOFDPacket done [10:51:27]NVStorageSaveData kkm_last_timestamp [10:51:27]File name is /storage/kkm_last_timestamp [10:51:27]Write 4 bytes [10:51:27]NVStorageSaveData done [10:51:27]ExternCall_PrintAddStr [10:51:27]wPrintStart [10:51:27]Write to MH i2c: 01 00 00 B3 43 F6 [10:51:27]Write i2c OK [10:51:27]MH_I2C_Read... [10:51:27]Read from MH i2c: 01 [10:51:27]MH_I2C_Read... [10:51:27]Read from MH i2c: 01 07 00 [10:51:27]MH_I2C_Read... [10:51:27]Read from MH i2c: 01 07 00 B3 43 00 00 00 00 00 FF 0F 0B [10:51:27]RasterBufferAndPrint [10:51:27]line Счет N : (1)99328 [10:51:27]line ИНН: 02508201610067 [10:51:27]line Контрольно-Кассовый Чек [10:51:27]line ПРОДАЖА [10:51:27]line ТРК (МРК, ГНК) : 11 [10:51:27]line Товар: 2710124130 [10:51:27]line Аи-92-К-5 [10:51:27]line 4.490 * 66.90 [10:51:27]line = 300.38 [10:51:27]line НДС 12% НСП 1% [10:51:27]line > о реализуемом товаре [10:51:27]line ОКРУГЛЕНИЕ: -0.38 [10:51:27]line ИТОГО: 300.00 [10:51:27]line Внесено: 300.00 [10:51:27]line СДАЧА: 0.00 [10:51:27]line НСП 1% : 2.66 [10:51:27]line НДС 12% : 31.90 [10:51:27]line Наличными: 300.00 [10:51:27]line Безнал.: 0.00 [10:51:27]line Место: АЗС № 143 "Партнер Нефть" [10:51:27]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [10:51:27]line СНО: Общий режим [10:51:27]line Чек 66 27.10.2024 10:51 [10:51:27]line Смена: 537 ФФД: 1.0 [10:51:27]line ЗНМ: 0300000096 [10:51:27]line РНМ: 0000000000091693 [10:51:27]line Версия ККМ: 001 [10:51:27]line ФМ: 0000000000871792 [10:51:27]line ФД: 156515 [10:51:27]line ФПД: 23631791778804 [10:51:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T105130&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156515&fm=23631791778804&tin=02508201610067®Number=0000000000091693&sum=30000 [10:51:27]OFD Sender: Processing packet 156515 [packets to send 31, broken 30] [10:51:27]ProducePacketName [10:51:27]name=ofd_packets/00156515 [10:51:27]OFD Sender: To server: pG, [10:51:27]CommunicateWithHost lk.salyk.kg:30040 [10:51:27]ConnectInit lk.salyk.kg [10:51:27]written 0, free lines is 4095 [10:51:27]Connected sock=10 [10:51:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 04 C3 07 01 C0 4F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 32 1B 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 63 63 02 00 35 04 06 00 15 7E 34 8D EB F4 AB CC 9E 13 5E 80 E6 3A [10:51:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 6F 2F 47 00 48 B4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 63 63 02 00 F4 03 04 00 A2 C0 1D 67 B6 04 01 00 00 76 27 A9 92 69 D3 70 69 [10:51:27]CommunicateWithHost err = 0 [10:51:27]CheckOFDResponse [10:51:27]1017 (14) - 77093643461234 [10:51:27]1041 (16) - 0000000000871792 [10:51:27]1040 (4) - 156515 [10:51:27]1012 (4) - 27.10.2024 04:25 [10:51:27]1206 (1) - 0 [10:51:27]OFD Sender: Remove packet 156515 [10:51:27]ProducePacketName [10:51:27]name=ofd_packets/00156515 [10:51:27]NVStorageDeleteData [10:51:27]Write to MH i2c: 01 00 00 DE 43 21 [10:51:27]Write i2c OK [10:51:27]MH_I2C_Read... [10:51:27]Read from MH i2c: 01 [10:51:27]MH_I2C_Read... [10:51:27]Read from MH i2c: 01 07 00 [10:51:27]MH_I2C_Read... [10:51:27]Read from MH i2c: 01 07 00 DE 43 00 00 00 00 00 D6 0C 0A [10:51:27]RasterBufferAndPrint [10:51:27]line [10:51:27]line [10:51:27]line [10:51:27]line [10:51:27]line [10:51:27]written 0, free lines is 3289 [10:51:28]process_action close_receipt done [10:51:28]requested_data is exist [10:51:28]produce_requested_data [10:51:28]requested_item fm.sn is exist - process it [10:51:28]wFMCommunicate request_size=4 [10:51:28]MH_SAM_APDU [10:51:28]CAPDU: 80 11 00 00 [10:51:28]Write to MH i2c: E2 08 00 E5 43 80 11 00 00 00 00 00 00 A2 [10:51:28]Write i2c OK [10:51:28]MH_I2C_Read... [10:51:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:51:28]Read from MH i2c: E2 [10:51:28]MH_I2C_Read... [10:51:28]Read from MH i2c: E2 17 00 [10:51:28]MH_I2C_Read... [10:51:28]Read from MH i2c: E2 17 00 E5 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 F7 [10:51:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:51:28]wFMCommunicate OK [10:51:28]requested_item fd.num is exist - process it [10:51:28]SAM_PROTO_GetFieldsCounters [10:51:28]wFMCommunicate request_size=4 [10:51:28]MH_SAM_APDU [10:51:28]CAPDU: 80 13 00 00 [10:51:28]Write to MH i2c: E2 08 00 E6 43 80 13 00 00 00 00 00 00 A5 [10:51:28]Write i2c OK [10:51:28]MH_I2C_Read... [10:51:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:51:28]Read from MH i2c: E2 [10:51:28]MH_I2C_Read... [10:51:28]Read from MH i2c: E2 62 00 [10:51:28]MH_I2C_Read... [10:51:28]Read from MH i2c: E2 62 00 E6 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 63 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 74 [10:51:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 63 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:51:28]wFMCommunicate OK [10:51:28]SAM_PROTO_GetFieldsCounters done [10:51:28]requested_item shift.num is exist - process it [10:51:28]requested_item shift.opened is exist - process it [10:51:28]req_shift_opened [10:51:28]FM_GetShiftState [10:51:28]SAM_PROTO_GetShiftState [10:51:28]wFMCommunicate request_size=4 [10:51:28]MH_SAM_APDU [10:51:28]CAPDU: 80 13 01 00 [10:51:28]Write to MH i2c: E2 08 00 E7 43 80 13 01 00 00 00 00 00 A7 [10:51:28]Write i2c OK [10:51:28]MH_I2C_Read... [10:51:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:51:28]Read from MH i2c: E2 [10:51:28]MH_I2C_Read... [10:51:28]Read from MH i2c: E2 0E 00 [10:51:28]MH_I2C_Read... [10:51:28]Read from MH i2c: E2 0E 00 E7 43 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 74 [10:51:28]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [10:51:28]wFMCommunicate OK [10:51:28]SAM_PROTO_GetShiftState done [10:51:28]FM_GetShiftState done [10:51:28]req_shift_opened done [10:51:28]requested_item shift.open_date is exist - process it [10:51:28]req_shift_open_date [10:51:28]req_shift_open_date done [10:51:28]produce_requested_data done [10:51:28]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156515,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [10:51:28]process_action_free close_receipt [10:51:28]json_value_free [10:51:28]json_value_free done [10:51:28]process_json_proto returns [10:51:28]Send response to host [10:51:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156515,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [10:51:28]free response buf [10:51:28]execute_script done [10:51:28]execute_script returns [10:51:28]free content buf [10:51:28]Sock 9.Close socket [10:51:28]Sock 9.Thread stoped [10:51:28]OFD Sender: No OFD packet to send [10:51:33]OFD Sender: No OFD packet to send [10:51:38]OFD Sender: No OFD packet to send [10:51:43]OFD Sender: No OFD packet to send [10:51:48]OFD Sender: No OFD packet to send [10:51:53]OFD Sender: No OFD packet to send [10:51:58]OFD Sender: No OFD packet to send [10:52:03]OFD Sender: No OFD packet to send [10:52:08]OFD Sender: No OFD packet to send [10:52:13]OFD Sender: No OFD packet to send [10:52:18]OFD Sender: No OFD packet to send [10:52:23]OFD Sender: No OFD packet to send [10:52:28]OFD Sender: No OFD packet to send [10:52:33]OFD Sender: No OFD packet to send [10:52:38]OFD Sender: No OFD packet to send [10:52:43]OFD Sender: No OFD packet to send [10:52:48]OFD Sender: No OFD packet to send [10:52:53]OFD Sender: No OFD packet to send [10:52:58]OFD Sender: No OFD packet to send [10:53:03]OFD Sender: No OFD packet to send [10:53:08]OFD Sender: No OFD packet to send [10:53:13]OFD Sender: No OFD packet to send [10:53:18]OFD Sender: No OFD packet to send [10:53:23]OFD Sender: No OFD packet to send [10:53:28]OFD Sender: No OFD packet to send [10:53:33]OFD Sender: No OFD packet to send [10:53:38]OFD Sender: No OFD packet to send [10:53:43]OFD Sender: No OFD packet to send [10:53:48]OFD Sender: No OFD packet to send [10:53:53]OFD Sender: No OFD packet to send [10:53:58]OFD Sender: No OFD packet to send [10:54:03]OFD Sender: No OFD packet to send [10:54:08]OFD Sender: No OFD packet to send [10:54:13]OFD Sender: No OFD packet to send [10:54:18]OFD Sender: No OFD packet to send [10:54:18]accept exits with 8 [10:54:18]New connection [10:54:18]New thread 3066834276 created [10:54:18]Thread 3066977636 joined [10:54:18]Waiting for new connection... [10:54:18] Sock 8.Parse request [10:54:18]Sock 8.Check first char [10:54:18]Sock 8.First char is OK [10:54:18]request: POST /json_proto HTTP/1.0 [10:54:18]Method: POST [10:54:18]URL: /json_proto [10:54:18]Method is POST - this is cgi request [10:54:18]url: /json_proto [10:54:18]query_string will be loaded in cgi processing [10:54:18]execute_cgi json_proto POST (null) [10:54:18]execute_cgi path=json_proto method=POST [10:54:18]POST find Content-Length [10:54:18]Host: 172.17.63.3:8080 [10:54:18]Content-Length: 676 [10:54:18]Content-Type: application/json [10:54:18] [10:54:18]POST finish read [10:54:18]Found Content-Length = 676 [10:54:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99330", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:54:18]execute_script... [10:54:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99330", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:54:18]POST & json_proto [10:54:18]process_json_proto [10:54:18]json parsed OK: [10:54:18]protocol is kg_v1.0 [10:54:18]action value=close_receipt [10:54:18]process_action close_receipt [10:54:18]cmd_close_receipt [10:54:18]MH_GetDate [10:54:18]Write to MH i2c: F0 00 00 E8 43 1A [10:54:18]Write i2c OK [10:54:18]MH_I2C_Read... [10:54:18]Read from MH i2c: F0 [10:54:18]MH_I2C_Read... [10:54:18]Read from MH i2c: F0 09 00 [10:54:18]MH_I2C_Read... [10:54:18]Read from MH i2c: F0 09 00 E8 43 00 E0 1B 1E 67 50 D1 6C 64 94 [10:54:18]GetLastDocTimeStamp 1730026290 [10:54:18]current date 1730026464 [10:54:18]FM_GetShiftState [10:54:18]SAM_PROTO_GetShiftState [10:54:18]wFMCommunicate request_size=4 [10:54:18]MH_SAM_APDU [10:54:18]CAPDU: 80 13 01 00 [10:54:18]Write to MH i2c: E2 08 00 E9 43 80 13 01 00 00 00 00 00 A9 [10:54:18]Write i2c OK [10:54:18]MH_I2C_Read... [10:54:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:18]Read from MH i2c: E2 [10:54:18]MH_I2C_Read... [10:54:18]Read from MH i2c: E2 0E 00 [10:54:18]MH_I2C_Read... [10:54:18]Read from MH i2c: E2 0E 00 E9 43 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 76 [10:54:18]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [10:54:18]wFMCommunicate OK [10:54:18]SAM_PROTO_GetShiftState done [10:54:18]FM_GetShiftState done [10:54:18]opened in 1729989044 [10:54:18]opened+sec_in_day 1730075444 [10:54:18]quantity*price = 40006 [10:54:18]sum+1 = 40007 [10:54:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 67 27.10.2024 10:54 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156516 ФПД: 255736762461326 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T105424&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156516&fm=255736762461326&tin=02508201610067®Number=0000000000091693&sum=40000 [10:54:19]StoreToDocumentArchive [10:54:19]shift 537 fd 156516 [10:54:19]save to /storage/0537/doc_00156516 [10:54:19]save last doc name /storage/0537/doc_00156516 to /storage/kkm_last_doc_name [10:54:19]save OK [10:54:19]Clear old archive folders... [10:54:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:54:19]tlvbuf is 0171EA40 [10:54:19]SAM_PROTO_ClearQueue [10:54:19]wFMCommunicate request_size=4 [10:54:19]MH_SAM_APDU [10:54:19]CAPDU: 80 09 00 00 [10:54:19]Write to MH i2c: E2 08 00 F6 43 80 09 00 00 00 00 00 00 AB [10:54:19]Write i2c OK [10:54:19]MH_I2C_Read... [10:54:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:54:19]Read from MH i2c: E2 [10:54:19]MH_I2C_Read... [10:54:19]Read from MH i2c: E2 03 00 [10:54:19]MH_I2C_Read... [10:54:19]Read from MH i2c: E2 03 00 F6 43 00 90 00 AD [10:54:19]RAPDU: 90 00 [10:54:19]wFMCommunicate OK [10:54:19]SAM_PROTO_ClearQueue done [10:54:19]KKMCreateOFDPacket [10:54:19]OFDProtocolAddRootSTLVToBuf [10:54:19]FM_MakeSignedData [10:54:19]FM_MakeSignedData [10:54:19]SAM_PROTO_SignData [10:54:19]wFMCommunicate request_size=4 [10:54:19]MH_SAM_APDU [10:54:19]CAPDU: 80 0D 01 02 [10:54:19]Write to MH i2c: E2 08 00 F7 43 80 0D 01 02 00 00 00 00 B3 [10:54:19]Write i2c OK [10:54:19]MH_I2C_Read... [10:54:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:54:20]Read from MH i2c: E2 [10:54:20]MH_I2C_Read... [10:54:20]Read from MH i2c: E2 03 00 [10:54:20]MH_I2C_Read... [10:54:20]Read from MH i2c: E2 03 00 F7 43 00 90 00 AE [10:54:20]RAPDU: 90 00 [10:54:20]wFMCommunicate OK [10:54:20]wFMCommunicate request_size=255 [10:54:20]MH_SAM_APDU [10:54: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 E0 1B 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 64 63 02 00 35 04 06 00 E8 [10:54:20]Write to MH i2c: E2 02 01 F8 43 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 E0 1B 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 64 63 02 00 35 04 06 00 E8 00 00 A5 [10:54:20]Write i2c OK [10:54:20]MH_I2C_Read... [10:54:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:20]Read from MH i2c: E2 [10:54:20]MH_I2C_Read... [10:54:20]Read from MH i2c: E2 03 00 [10:54:20]MH_I2C_Read... [10:54:20]Read from MH i2c: E2 03 00 F8 43 00 90 00 AF [10:54:20]RAPDU: 90 00 [10:54:20]wFMCommunicate OK [10:54:20]wFMCommunicate request_size=10 [10:54:20]MH_SAM_APDU [10:54:20]CAPDU: 80 0D 02 02 05 97 5A E1 EC 8E [10:54:20]Write to MH i2c: E2 0D 00 F9 43 80 0D 02 02 05 00 97 5A E1 EC 8E 00 00 0C [10:54:20]Write i2c OK [10:54:20]MH_I2C_Read... [10:54:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:20]Read from MH i2c: E2 [10:54:20]MH_I2C_Read... [10:54:20]Read from MH i2c: E2 03 00 [10:54:20]MH_I2C_Read... [10:54:20]Read from MH i2c: E2 03 00 F9 43 00 90 00 B0 [10:54:20]RAPDU: 90 00 [10:54:20]wFMCommunicate OK [10:54:20]wFMCommunicate request_size=4 [10:54:20]MH_SAM_APDU [10:54:20]CAPDU: 80 0D 03 02 [10:54:20]Write to MH i2c: E2 08 00 FA 43 80 0D 03 02 00 00 00 00 B8 [10:54:20]Write i2c OK [10:54:20]MH_I2C_Read... [10:54:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:54:20]Read from MH i2c: E2 [10:54:20]MH_I2C_Read... [10:54:20]Read from MH i2c: E2 0B 00 [10:54:20]MH_I2C_Read... [10:54:20]Read from MH i2c: E2 0B 00 FA 43 00 A7 A1 CF 60 A3 85 86 96 90 00 74 [10:54:20]RAPDU: A7 A1 CF 60 A3 85 86 96 90 00 [10:54:20]wFMCommunicate OK [10:54:20]SAM_PROTO_SignData done [10:54:20]FM_MakeSignedData done [10:54:20]CreateOFDProtocolMessage [10:54:20]wFMCommunicate request_size=4 [10:54:20]MH_SAM_APDU [10:54:20]CAPDU: 80 11 00 00 [10:54:20]Write to MH i2c: E2 08 00 FB 43 80 11 00 00 00 00 00 00 B8 [10:54:20]Write i2c OK [10:54:20]MH_I2C_Read... [10:54:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:20]Read from MH i2c: E2 [10:54:20]MH_I2C_Read... [10:54:20]Read from MH i2c: E2 17 00 [10:54:20]MH_I2C_Read... [10:54:20]Read from MH i2c: E2 17 00 FB 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 0D [10:54:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:54:20]wFMCommunicate OK [10:54:20]CreateOFDProtocolMessage done [10:54:20]OFDSenderStorePacket 156516 [10:54:20]StoreOFDPacket docnum=156516 [10:54:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 6B D7 07 01 10 E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 E0 1B 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 64 63 02 00 35 04 06 00 E8 97 5A E1 EC 8E A7 A1 CF 60 A3 85 86 96 [10:54:20]CheckFolder [10:54:20]dirname=/storage/ofd_packets [10:54:20]CheckFolder done [10:54:20]ProducePacketName [10:54:20]name=ofd_packets/00156516 [10:54:20]NVStorageSaveData ofd_packets/00156516 [10:54:20]File name is /storage/ofd_packets/00156516 [10:54:20]Write 301 bytes [10:54:20]NVStorageSaveData done [10:54:20]OFDSenderStorePacket done [10:54:20]KKMCreateOFDPacket done [10:54:20]NVStorageSaveData kkm_last_timestamp [10:54:20]File name is /storage/kkm_last_timestamp [10:54:20]Write 4 bytes [10:54:20]NVStorageSaveData done [10:54:20]ExternCall_PrintAddStr [10:54:20]wPrintStart [10:54:20]Write to MH i2c: 01 00 00 FC 43 3F [10:54:20]Write i2c OK [10:54:20]MH_I2C_Read... [10:54:20]Read from MH i2c: 01 [10:54:20]MH_I2C_Read... [10:54:20]Read from MH i2c: 01 07 00 [10:54:20]MH_I2C_Read... [10:54:20]Read from MH i2c: 01 07 00 FC 43 00 00 00 00 00 FF 0F 54 [10:54:20]RasterBufferAndPrint [10:54:20]line Счет N : (1)99330 [10:54:20]line ИНН: 02508201610067 [10:54:20]line Контрольно-Кассовый Чек [10:54:20]line ПРОДАЖА [10:54:20]line ТРК (МРК, ГНК) : 21 [10:54:20]line Товар: 2710124130 [10:54:20]line Аи-92-К-5 [10:54:20]line 5.980 * 66.90 [10:54:20]line = 400.06 [10:54:20]line НДС 12% НСП 1% [10:54:20]line > о реализуемом товаре [10:54:20]line ОКРУГЛЕНИЕ: -0.06 [10:54:20]line ИТОГО: 400.00 [10:54:20]line Внесено: 400.00 [10:54:20]line СДАЧА: 0.00 [10:54:20]line НСП 1% : 3.54 [10:54:20]line НДС 12% : 42.48 [10:54:20]line Наличными: 400.00 [10:54:20]line Безнал.: 0.00 [10:54:20]line Место: АЗС № 143 "Партнер Нефть" [10:54:20]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [10:54:20]line СНО: Общий режим [10:54:20]line Чек 67 27.10.2024 10:54 [10:54:20]line Смена: 537 ФФД: 1.0 [10:54:20]line ЗНМ: 0300000096 [10:54:20]line РНМ: 0000000000091693 [10:54:20]line Версия ККМ: 001 [10:54:20]line ФМ: 0000000000871792 [10:54:20]line ФД: 156516 [10:54:20]line ФПД: 255736762461326 [10:54:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T105424&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156516&fm=255736762461326&tin=02508201610067®Number=0000000000091693&sum=40000 [10:54:20]OFD Sender: Processing packet 156516 [packets to send 31, broken 30] [10:54:20]ProducePacketName [10:54:20]name=ofd_packets/00156516 [10:54:20]OFD Sender: To server: pG, [10:54:20]CommunicateWithHost lk.salyk.kg:30040 [10:54:20]ConnectInit lk.salyk.kg [10:54:20]written 0, free lines is 4095 [10:54:20]Connected sock=10 [10:54:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 6B D7 07 01 10 E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 E0 1B 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 64 63 02 00 35 04 06 00 E8 97 5A E1 EC 8E A7 A1 CF 60 A3 85 86 96 [10:54:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 4D 5D 47 00 3B 28 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 64 63 02 00 F4 03 04 00 4F C1 1D 67 B6 04 01 00 00 86 F9 6E 21 50 AB D5 A1 [10:54:21]CommunicateWithHost err = 0 [10:54:21]CheckOFDResponse [10:54:21]1017 (14) - 77093643461234 [10:54:21]1041 (16) - 0000000000871792 [10:54:21]1040 (4) - 156516 [10:54:21]1012 (4) - 27.10.2024 04:27 [10:54:21]1206 (1) - 0 [10:54:21]OFD Sender: Remove packet 156516 [10:54:21]ProducePacketName [10:54:21]name=ofd_packets/00156516 [10:54:21]NVStorageDeleteData [10:54:21]Write to MH i2c: 01 00 00 27 44 6B [10:54:21]Write i2c OK [10:54:21]MH_I2C_Read... [10:54:21]Read from MH i2c: 01 [10:54:21]MH_I2C_Read... [10:54:21]Read from MH i2c: 01 07 00 [10:54:21]MH_I2C_Read... [10:54:21]Read from MH i2c: 01 07 00 27 44 00 00 00 00 00 D5 0C 53 [10:54:21]RasterBufferAndPrint [10:54:21]line [10:54:21]line [10:54:21]line [10:54:21]line [10:54:21]line [10:54:21]written 0, free lines is 3292 [10:54:21]process_action close_receipt done [10:54:21]requested_data is exist [10:54:21]produce_requested_data [10:54:21]requested_item fm.sn is exist - process it [10:54:21]wFMCommunicate request_size=4 [10:54:21]MH_SAM_APDU [10:54:21]CAPDU: 80 11 00 00 [10:54:21]Write to MH i2c: E2 08 00 2E 44 80 11 00 00 00 00 00 00 EC [10:54:21]Write i2c OK [10:54:21]MH_I2C_Read... [10:54:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:21]Read from MH i2c: E2 [10:54:21]MH_I2C_Read... [10:54:21]Read from MH i2c: E2 17 00 [10:54:21]MH_I2C_Read... [10:54:21]Read from MH i2c: E2 17 00 2E 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 41 [10:54:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:54:21]wFMCommunicate OK [10:54:21]requested_item fd.num is exist - process it [10:54:21]SAM_PROTO_GetFieldsCounters [10:54:21]wFMCommunicate request_size=4 [10:54:21]MH_SAM_APDU [10:54:21]CAPDU: 80 13 00 00 [10:54:21]Write to MH i2c: E2 08 00 2F 44 80 13 00 00 00 00 00 00 EF [10:54:21]Write i2c OK [10:54:21]MH_I2C_Read... [10:54:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:54:21]Read from MH i2c: E2 [10:54:21]MH_I2C_Read... [10:54:21]Read from MH i2c: E2 62 00 [10:54:21]MH_I2C_Read... [10:54:21]Read from MH i2c: E2 62 00 2F 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 64 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 C2 [10:54: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 64 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:54:21]wFMCommunicate OK [10:54:21]SAM_PROTO_GetFieldsCounters done [10:54:21]requested_item shift.num is exist - process it [10:54:21]requested_item shift.opened is exist - process it [10:54:21]req_shift_opened [10:54:21]FM_GetShiftState [10:54:21]SAM_PROTO_GetShiftState [10:54:21]wFMCommunicate request_size=4 [10:54:21]MH_SAM_APDU [10:54:21]CAPDU: 80 13 01 00 [10:54:21]Write to MH i2c: E2 08 00 30 44 80 13 01 00 00 00 00 00 F1 [10:54:21]Write i2c OK [10:54:21]MH_I2C_Read... [10:54:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:21]Read from MH i2c: E2 [10:54:21]MH_I2C_Read... [10:54:21]Read from MH i2c: E2 0E 00 [10:54:21]MH_I2C_Read... [10:54:21]Read from MH i2c: E2 0E 00 30 44 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 BE [10:54:21]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [10:54:21]wFMCommunicate OK [10:54:21]SAM_PROTO_GetShiftState done [10:54:21]FM_GetShiftState done [10:54:21]req_shift_opened done [10:54:21]requested_item shift.open_date is exist - process it [10:54:21]req_shift_open_date [10:54:21]req_shift_open_date done [10:54:21]produce_requested_data done [10:54:21]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156516,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [10:54:21]process_action_free close_receipt [10:54:21]json_value_free [10:54:21]json_value_free done [10:54:21]process_json_proto returns [10:54:21]Send response to host [10:54:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156516,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [10:54:21]free response buf [10:54:21]execute_script done [10:54:21]execute_script returns [10:54:21]free content buf [10:54:21]Sock 8.Close socket [10:54:21]Sock 8.Thread stoped [10:54:21]OFD Sender: No OFD packet to send [10:54:26]OFD Sender: No OFD packet to send [10:54:31]OFD Sender: No OFD packet to send [10:54:36]OFD Sender: No OFD packet to send [10:54:41]OFD Sender: No OFD packet to send [10:54:46]OFD Sender: No OFD packet to send [10:54:51]OFD Sender: No OFD packet to send [10:54:56]OFD Sender: No OFD packet to send [10:55:01]OFD Sender: No OFD packet to send [10:55:06]OFD Sender: No OFD packet to send [10:55:11]OFD Sender: No OFD packet to send [10:55:16]OFD Sender: No OFD packet to send [10:55:21]OFD Sender: No OFD packet to send [10:55:26]OFD Sender: No OFD packet to send [10:55:31]OFD Sender: No OFD packet to send [10:55:36]OFD Sender: No OFD packet to send [10:55:41]OFD Sender: No OFD packet to send [10:55:42]accept exits with 9 [10:55:42]New connection [10:55:42]New thread 3066977636 created [10:55:42]Thread 3066834276 joined [10:55:42]Waiting for new connection... [10:55:42] Sock 9.Parse request [10:55:42]Sock 9.Check first char [10:55:42]Sock 9.First char is OK [10:55:42]request: POST /json_proto HTTP/1.0 [10:55:42]Method: POST [10:55:42]URL: /json_proto [10:55:42]Method is POST - this is cgi request [10:55:42]url: /json_proto [10:55:42]query_string will be loaded in cgi processing [10:55:42]execute_cgi json_proto POST (null) [10:55:42]execute_cgi path=json_proto method=POST [10:55:42]POST find Content-Length [10:55:42]Host: 172.17.63.3:8080 [10:55:42]Content-Length: 678 [10:55:42]Content-Type: application/json [10:55:42] [10:55:42]POST finish read [10:55:42]Found Content-Length = 678 [10:55:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99329", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 59.060, "sum" : 4500.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4500.00, "total" : 4500.00, "payments": [ { "type": 0, "sum" : 4500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:55:42]execute_script... [10:55:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99329", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 59.060, "sum" : 4500.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4500.00, "total" : 4500.00, "payments": [ { "type": 0, "sum" : 4500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:55:42]POST & json_proto [10:55:42]process_json_proto [10:55:42]json parsed OK: [10:55:42]protocol is kg_v1.0 [10:55:42]action value=close_receipt [10:55:42]process_action close_receipt [10:55:42]cmd_close_receipt [10:55:42]MH_GetDate [10:55:42]Write to MH i2c: F0 00 00 31 44 64 [10:55:42]Write i2c OK [10:55:42]MH_I2C_Read... [10:55:42]Read from MH i2c: F0 [10:55:42]MH_I2C_Read... [10:55:42]Read from MH i2c: F0 09 00 [10:55:42]MH_I2C_Read... [10:55:42]Read from MH i2c: F0 09 00 31 44 00 34 1C 1E 67 50 D1 6C 64 33 [10:55:42]GetLastDocTimeStamp 1730026464 [10:55:42]current date 1730026548 [10:55:42]FM_GetShiftState [10:55:42]SAM_PROTO_GetShiftState [10:55:42]wFMCommunicate request_size=4 [10:55:42]MH_SAM_APDU [10:55:42]CAPDU: 80 13 01 00 [10:55:42]Write to MH i2c: E2 08 00 32 44 80 13 01 00 00 00 00 00 F3 [10:55:42]Write i2c OK [10:55:42]MH_I2C_Read... [10:55:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:55:42]Read from MH i2c: E2 [10:55:42]MH_I2C_Read... [10:55:42]Read from MH i2c: E2 0E 00 [10:55:42]MH_I2C_Read... [10:55:42]Read from MH i2c: E2 0E 00 32 44 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 C0 [10:55:42]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [10:55:42]wFMCommunicate OK [10:55:42]SAM_PROTO_GetShiftState done [10:55:42]FM_GetShiftState done [10:55:42]opened in 1729989044 [10:55:42]opened+sec_in_day 1730075444 [10:55:42]quantity*price = 450037 [10:55:42]sum+1 = 450038 [10:55:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 4500.00 Внесено: 4500.00 СДАЧА: 0.00 НСП 1% : 39.83 НДС 12% : 477.91 Наличными: 4500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 68 27.10.2024 10:55 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156517 ФПД: 206777349151414 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T105548&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156517&fm=206777349151414&tin=02508201610067®Number=0000000000091693&sum=450000 [10:55:43]StoreToDocumentArchive [10:55:43]shift 537 fd 156517 [10:55:43]save to /storage/0537/doc_00156517 [10:55:43]save last doc name /storage/0537/doc_00156517 to /storage/kkm_last_doc_name [10:55:43]save OK [10:55:43]Clear old archive folders... [10:55:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:55:43]tlvbuf is 0171E420 [10:55:43]SAM_PROTO_ClearQueue [10:55:43]wFMCommunicate request_size=4 [10:55:43]MH_SAM_APDU [10:55:43]CAPDU: 80 09 00 00 [10:55:43]Write to MH i2c: E2 08 00 3F 44 80 09 00 00 00 00 00 00 F5 [10:55:43]Write i2c OK [10:55:43]MH_I2C_Read... [10:55:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:55:43]Read from MH i2c: E2 [10:55:43]MH_I2C_Read... [10:55:43]Read from MH i2c: E2 03 00 [10:55:43]MH_I2C_Read... [10:55:43]Read from MH i2c: E2 03 00 3F 44 00 90 00 F7 [10:55:43]RAPDU: 90 00 [10:55:43]wFMCommunicate OK [10:55:43]SAM_PROTO_ClearQueue done [10:55:43]KKMCreateOFDPacket [10:55:43]OFDProtocolAddRootSTLVToBuf [10:55:43]FM_MakeSignedData [10:55:43]FM_MakeSignedData [10:55:43]SAM_PROTO_SignData [10:55:43]wFMCommunicate request_size=4 [10:55:43]MH_SAM_APDU [10:55:43]CAPDU: 80 0D 01 02 [10:55:43]Write to MH i2c: E2 08 00 40 44 80 0D 01 02 00 00 00 00 FD [10:55:43]Write i2c OK [10:55:43]MH_I2C_Read... [10:55:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:55:44]Read from MH i2c: E2 [10:55:44]MH_I2C_Read... [10:55:44]Read from MH i2c: E2 03 00 [10:55:44]MH_I2C_Read... [10:55:44]Read from MH i2c: E2 03 00 40 44 00 90 00 F8 [10:55:44]RAPDU: 90 00 [10:55:44]wFMCommunicate OK [10:55:44]wFMCommunicate request_size=255 [10:55:44]MH_SAM_APDU [10:55:44]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B4 E6 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 F5 DD 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF BA 00 00 00 00 07 04 06 00 D0 DD 06 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 34 1C 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 65 63 02 00 35 04 06 00 BC 10 1A 71 [10:55:44]Write to MH i2c: E2 02 01 41 44 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B4 E6 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 F5 DD 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF BA 00 00 00 00 07 04 06 00 D0 DD 06 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 34 1C 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 65 63 02 00 35 04 06 00 BC 10 1A 71 00 00 74 [10:55:44]Write i2c OK [10:55:44]MH_I2C_Read... [10:55:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:55:44]Read from MH i2c: E2 [10:55:44]MH_I2C_Read... [10:55:44]Read from MH i2c: E2 03 00 [10:55:44]MH_I2C_Read... [10:55:44]Read from MH i2c: E2 03 00 41 44 00 90 00 F9 [10:55:44]RAPDU: 90 00 [10:55:44]wFMCommunicate OK [10:55:44]wFMCommunicate request_size=7 [10:55:44]MH_SAM_APDU [10:55:44]CAPDU: 80 0D 02 02 02 9A B6 [10:55:44]Write to MH i2c: E2 0A 00 42 44 80 0D 02 02 02 00 9A B6 00 00 54 [10:55:44]Write i2c OK [10:55:44]MH_I2C_Read... [10:55:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:55:44]Read from MH i2c: E2 [10:55:44]MH_I2C_Read... [10:55:44]Read from MH i2c: E2 03 00 [10:55:44]MH_I2C_Read... [10:55:44]Read from MH i2c: E2 03 00 42 44 00 90 00 FA [10:55:44]RAPDU: 90 00 [10:55:44]wFMCommunicate OK [10:55:44]wFMCommunicate request_size=4 [10:55:44]MH_SAM_APDU [10:55:44]CAPDU: 80 0D 03 02 [10:55:44]Write to MH i2c: E2 08 00 43 44 80 0D 03 02 00 00 00 00 02 [10:55:44]Write i2c OK [10:55:44]MH_I2C_Read... [10:55:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:55:44]Read from MH i2c: E2 [10:55:44]MH_I2C_Read... [10:55:44]Read from MH i2c: E2 0B 00 [10:55:44]MH_I2C_Read... [10:55:44]Read from MH i2c: E2 0B 00 43 44 00 7C 1D 55 0B E7 30 CE 2B 90 00 0C [10:55:44]RAPDU: 7C 1D 55 0B E7 30 CE 2B 90 00 [10:55:44]wFMCommunicate OK [10:55:44]SAM_PROTO_SignData done [10:55:44]FM_MakeSignedData done [10:55:44]CreateOFDProtocolMessage [10:55:44]wFMCommunicate request_size=4 [10:55:44]MH_SAM_APDU [10:55:44]CAPDU: 80 11 00 00 [10:55:44]Write to MH i2c: E2 08 00 44 44 80 11 00 00 00 00 00 00 02 [10:55:44]Write i2c OK [10:55:44]MH_I2C_Read... [10:55:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:55:44]Read from MH i2c: E2 [10:55:44]MH_I2C_Read... [10:55:44]Read from MH i2c: E2 17 00 [10:55:44]MH_I2C_Read... [10:55:44]Read from MH i2c: E2 17 00 44 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 57 [10:55:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:55:44]wFMCommunicate OK [10:55:44]CreateOFDProtocolMessage done [10:55:44]OFDSenderStorePacket 156517 [10:55:44]StoreOFDPacket docnum=156517 [10:55:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 4F 0C 04 01 9A 91 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B4 E6 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 F5 DD 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF BA 00 00 00 00 07 04 06 00 D0 DD 06 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 34 1C 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 65 63 02 00 35 04 06 00 BC 10 1A 71 9A B6 7C 1D 55 0B E7 30 CE 2B [10:55:44]CheckFolder [10:55:44]dirname=/storage/ofd_packets [10:55:44]CheckFolder done [10:55:44]ProducePacketName [10:55:44]name=ofd_packets/00156517 [10:55:44]NVStorageSaveData ofd_packets/00156517 [10:55:44]File name is /storage/ofd_packets/00156517 [10:55:44]Write 298 bytes [10:55:44]NVStorageSaveData done [10:55:44]OFDSenderStorePacket done [10:55:44]KKMCreateOFDPacket done [10:55:44]NVStorageSaveData kkm_last_timestamp [10:55:44]File name is /storage/kkm_last_timestamp [10:55:44]Write 4 bytes [10:55:44]NVStorageSaveData done [10:55:44]ExternCall_PrintAddStr [10:55:44]wPrintStart [10:55:44]Write to MH i2c: 01 00 00 45 44 89 [10:55:44]Write i2c OK [10:55:44]MH_I2C_Read... [10:55:44]Read from MH i2c: 01 [10:55:44]MH_I2C_Read... [10:55:44]Read from MH i2c: 01 07 00 [10:55:44]MH_I2C_Read... [10:55:44]Read from MH i2c: 01 07 00 45 44 00 00 00 00 00 FF 0F 9E [10:55:44]RasterBufferAndPrint [10:55:44]line Счет N : (1)99329 [10:55:44]line ИНН: 02508201610067 [10:55:44]line Контрольно-Кассовый Чек [10:55:44]line ПРОДАЖА [10:55:44]line ТРК (МРК, ГНК) : 32 [10:55:44]line Товар: 2710194210 [10:55:44]line ДТ-К-5 [10:55:44]line 59.060 * 76.20 [10:55:44]line = 4500.37 [10:55:44]line НДС 12% НСП 1% [10:55:44]line > о реализуемом товаре [10:55:44]line ОКРУГЛЕНИЕ: -0.37 [10:55:44]line ИТОГО: 4500.00 [10:55:44]line Внесено: 4500.00 [10:55:44]line СДАЧА: 0.00 [10:55:44]line НСП 1% : 39.83 [10:55:44]line НДС 12% : 477.91 [10:55:44]line Наличными: 4500.00 [10:55:44]line Безнал.: 0.00 [10:55:44]line Место: АЗС № 143 "Партнер Нефть" [10:55:44]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [10:55:44]line СНО: Общий режим [10:55:44]line Чек 68 27.10.2024 10:55 [10:55:44]line Смена: 537 ФФД: 1.0 [10:55:44]line ЗНМ: 0300000096 [10:55:44]line РНМ: 0000000000091693 [10:55:44]line Версия ККМ: 001 [10:55:44]line ФМ: 0000000000871792 [10:55:44]line ФД: 156517 [10:55:44]line ФПД: 206777349151414 [10:55:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T105548&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156517&fm=206777349151414&tin=02508201610067®Number=0000000000091693&sum=450000 [10:55:44]OFD Sender: Processing packet 156517 [packets to send 31, broken 30] [10:55:44]ProducePacketName [10:55:44]name=ofd_packets/00156517 [10:55:44]OFD Sender: To server: pG, [10:55:44]CommunicateWithHost lk.salyk.kg:30040 [10:55:44]ConnectInit lk.salyk.kg [10:55:44]written 0, free lines is 4095 [10:55:44]Connected sock=10 [10:55:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 4F 0C 04 01 9A 91 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B4 E6 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 F5 DD 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF BA 00 00 00 00 07 04 06 00 D0 DD 06 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 34 1C 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 65 63 02 00 35 04 06 00 BC 10 1A 71 9A B6 7C 1D 55 0B E7 30 CE 2B [10:55:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 E0 D1 47 00 72 27 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 65 63 02 00 F4 03 04 00 A3 C1 1D 67 B6 04 01 00 00 92 6F 82 A4 17 ED 60 06 [10:55:45]CommunicateWithHost err = 0 [10:55:45]CheckOFDResponse [10:55:45]1017 (14) - 77093643461234 [10:55:45]1041 (16) - 0000000000871792 [10:55:45]1040 (4) - 156517 [10:55:45]1012 (4) - 27.10.2024 04:29 [10:55:45]1206 (1) - 0 [10:55:45]OFD Sender: Remove packet 156517 [10:55:45]ProducePacketName [10:55:45]name=ofd_packets/00156517 [10:55:45]NVStorageDeleteData [10:55:45]Write to MH i2c: 01 00 00 70 44 B4 [10:55:45]Write i2c OK [10:55:45]MH_I2C_Read... [10:55:45]Read from MH i2c: 01 [10:55:45]MH_I2C_Read... [10:55:45]Read from MH i2c: 01 07 00 [10:55:45]MH_I2C_Read... [10:55:45]Read from MH i2c: 01 07 00 70 44 00 00 00 00 00 D2 0C 99 [10:55:45]RasterBufferAndPrint [10:55:45]line [10:55:45]line [10:55:45]line [10:55:45]line [10:55:45]line [10:55:45]written 0, free lines is 3290 [10:55:45]process_action close_receipt done [10:55:45]requested_data is exist [10:55:45]produce_requested_data [10:55:45]requested_item fm.sn is exist - process it [10:55:45]wFMCommunicate request_size=4 [10:55:45]MH_SAM_APDU [10:55:45]CAPDU: 80 11 00 00 [10:55:45]Write to MH i2c: E2 08 00 77 44 80 11 00 00 00 00 00 00 35 [10:55:45]Write i2c OK [10:55:45]MH_I2C_Read... [10:55:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:55:45]Read from MH i2c: E2 [10:55:45]MH_I2C_Read... [10:55:45]Read from MH i2c: E2 17 00 [10:55:45]MH_I2C_Read... [10:55:45]Read from MH i2c: E2 17 00 77 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 8A [10:55:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:55:45]wFMCommunicate OK [10:55:45]requested_item fd.num is exist - process it [10:55:45]SAM_PROTO_GetFieldsCounters [10:55:45]wFMCommunicate request_size=4 [10:55:45]MH_SAM_APDU [10:55:45]CAPDU: 80 13 00 00 [10:55:45]Write to MH i2c: E2 08 00 78 44 80 13 00 00 00 00 00 00 38 [10:55:45]Write i2c OK [10:55:45]MH_I2C_Read... [10:55:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:55:45]Read from MH i2c: E2 [10:55:45]MH_I2C_Read... [10:55:45]Read from MH i2c: E2 62 00 [10:55:45]MH_I2C_Read... [10:55:45]Read from MH i2c: E2 62 00 78 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 65 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 0F [10:55:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 65 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:55:45]wFMCommunicate OK [10:55:45]SAM_PROTO_GetFieldsCounters done [10:55:45]requested_item shift.num is exist - process it [10:55:45]requested_item shift.opened is exist - process it [10:55:45]req_shift_opened [10:55:45]FM_GetShiftState [10:55:45]SAM_PROTO_GetShiftState [10:55:45]wFMCommunicate request_size=4 [10:55:45]MH_SAM_APDU [10:55:45]CAPDU: 80 13 01 00 [10:55:45]Write to MH i2c: E2 08 00 79 44 80 13 01 00 00 00 00 00 3A [10:55:45]Write i2c OK [10:55:45]MH_I2C_Read... [10:55:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:55:45]Read from MH i2c: E2 [10:55:45]MH_I2C_Read... [10:55:45]Read from MH i2c: E2 0E 00 [10:55:45]MH_I2C_Read... [10:55:45]Read from MH i2c: E2 0E 00 79 44 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 07 [10:55:45]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [10:55:45]wFMCommunicate OK [10:55:45]SAM_PROTO_GetShiftState done [10:55:45]FM_GetShiftState done [10:55:45]req_shift_opened done [10:55:45]requested_item shift.open_date is exist - process it [10:55:45]req_shift_open_date [10:55:45]req_shift_open_date done [10:55:45]produce_requested_data done [10:55:45]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156517,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [10:55:45]process_action_free close_receipt [10:55:45]json_value_free [10:55:45]json_value_free done [10:55:45]process_json_proto returns [10:55:45]Send response to host [10:55:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156517,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [10:55:45]free response buf [10:55:45]execute_script done [10:55:45]execute_script returns [10:55:45]free content buf [10:55:45]Sock 9.Close socket [10:55:45]Sock 9.Thread stoped [10:55:45]OFD Sender: No OFD packet to send [10:55:50]OFD Sender: No OFD packet to send [10:55:55]OFD Sender: No OFD packet to send [10:56:00]OFD Sender: No OFD packet to send [10:56:05]OFD Sender: No OFD packet to send [10:56:10]OFD Sender: No OFD packet to send [10:56:15]OFD Sender: No OFD packet to send [10:56:20]OFD Sender: No OFD packet to send [10:56:25]OFD Sender: No OFD packet to send [10:56:30]OFD Sender: No OFD packet to send [10:56:35]OFD Sender: No OFD packet to send [10:56:40]OFD Sender: No OFD packet to send [10:56:45]OFD Sender: No OFD packet to send [10:56:50]OFD Sender: No OFD packet to send [10:56:55]OFD Sender: No OFD packet to send [10:57:00]OFD Sender: No OFD packet to send [10:57:05]OFD Sender: No OFD packet to send [10:57:10]OFD Sender: No OFD packet to send [10:57:15]OFD Sender: No OFD packet to send [10:57:20]OFD Sender: No OFD packet to send [10:57:25]OFD Sender: No OFD packet to send [10:57:30]OFD Sender: No OFD packet to send [10:57:35]OFD Sender: No OFD packet to send [10:57:40]OFD Sender: No OFD packet to send [10:57:45]OFD Sender: No OFD packet to send [10:57:50]OFD Sender: No OFD packet to send [10:57:55]OFD Sender: No OFD packet to send [10:58:00]OFD Sender: No OFD packet to send [10:58:05]OFD Sender: No OFD packet to send [10:58:10]OFD Sender: No OFD packet to send [10:58:15]OFD Sender: No OFD packet to send [10:58:20]OFD Sender: No OFD packet to send [10:58:25]OFD Sender: No OFD packet to send [10:58:30]OFD Sender: No OFD packet to send [10:58:31]accept exits with 8 [10:58:31]New connection [10:58:31]New thread 3066834276 created [10:58:31]Thread 3066977636 joined [10:58:31]Waiting for new connection... [10:58:31] Sock 8.Parse request [10:58:31]Sock 8.Check first char [10:58:31]Sock 8.First char is OK [10:58:31]request: POST /json_proto HTTP/1.0 [10:58:31]Method: POST [10:58:31]URL: /json_proto [10:58:31]Method is POST - this is cgi request [10:58:31]url: /json_proto [10:58:31]query_string will be loaded in cgi processing [10:58:31]execute_cgi json_proto POST (null) [10:58:31]execute_cgi path=json_proto method=POST [10:58:31]POST find Content-Length [10:58:31]Host: 172.17.63.3:8080 [10:58:31]Content-Length: 678 [10:58:31]Content-Type: application/json [10:58:31] [10:58:31]POST finish read [10:58:31]Found Content-Length = 678 [10:58:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99331", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 59.720, "sum" : 4550.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4550.00, "total" : 4550.00, "payments": [ { "type": 0, "sum" : 4550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:58:31]execute_script... [10:58: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)99331", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 59.720, "sum" : 4550.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4550.00, "total" : 4550.00, "payments": [ { "type": 0, "sum" : 4550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:58:31]POST & json_proto [10:58:31]process_json_proto [10:58:31]json parsed OK: [10:58:31]protocol is kg_v1.0 [10:58:31]action value=close_receipt [10:58:31]process_action close_receipt [10:58:31]cmd_close_receipt [10:58:31]MH_GetDate [10:58:31]Write to MH i2c: F0 00 00 7A 44 AD [10:58:31]Write i2c OK [10:58:31]MH_I2C_Read... [10:58:31]Read from MH i2c: F0 [10:58:31]MH_I2C_Read... [10:58:31]Read from MH i2c: F0 09 00 [10:58:31]MH_I2C_Read... [10:58:31]Read from MH i2c: F0 09 00 7A 44 00 DD 1C 1E 67 50 D1 6C 64 25 [10:58:31]GetLastDocTimeStamp 1730026548 [10:58:31]current date 1730026717 [10:58:31]FM_GetShiftState [10:58:31]SAM_PROTO_GetShiftState [10:58:31]wFMCommunicate request_size=4 [10:58:31]MH_SAM_APDU [10:58:31]CAPDU: 80 13 01 00 [10:58:31]Write to MH i2c: E2 08 00 7B 44 80 13 01 00 00 00 00 00 3C [10:58:31]Write i2c OK [10:58:31]MH_I2C_Read... [10:58:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:58:31]Read from MH i2c: E2 [10:58:31]MH_I2C_Read... [10:58:31]Read from MH i2c: E2 0E 00 [10:58:31]MH_I2C_Read... [10:58:31]Read from MH i2c: E2 0E 00 7B 44 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 09 [10:58:31]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [10:58:31]wFMCommunicate OK [10:58:31]SAM_PROTO_GetShiftState done [10:58:31]FM_GetShiftState done [10:58:31]opened in 1729989044 [10:58:31]opened+sec_in_day 1730075444 [10:58:31]quantity*price = 455066 [10:58:31]sum+1 = 455067 [10:58:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 4550.00 Внесено: 4550.00 СДАЧА: 0.00 НСП 1% : 40.27 НДС 12% : 483.26 Наличными: 4550.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 69 27.10.2024 10:58 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156518 ФПД: 240672826448426 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T105837&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156518&fm=240672826448426&tin=02508201610067®Number=0000000000091693&sum=455000 [10:58:32]StoreToDocumentArchive [10:58:32]shift 537 fd 156518 [10:58:32]save to /storage/0537/doc_00156518 [10:58:32]save last doc name /storage/0537/doc_00156518 to /storage/kkm_last_doc_name [10:58:32]save OK [10:58:32]Clear old archive folders... [10:58:32]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:58:32]tlvbuf is 016F8000 [10:58:32]SAM_PROTO_ClearQueue [10:58:32]wFMCommunicate request_size=4 [10:58:32]MH_SAM_APDU [10:58:32]CAPDU: 80 09 00 00 [10:58:32]Write to MH i2c: E2 08 00 88 44 80 09 00 00 00 00 00 00 3E [10:58:32]Write i2c OK [10:58:32]MH_I2C_Read... [10:58:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:58:33]Read from MH i2c: E2 [10:58:33]MH_I2C_Read... [10:58:33]Read from MH i2c: E2 03 00 [10:58:33]MH_I2C_Read... [10:58:33]Read from MH i2c: E2 03 00 88 44 00 90 00 40 [10:58:33]RAPDU: 90 00 [10:58:33]wFMCommunicate OK [10:58:33]SAM_PROTO_ClearQueue done [10:58:33]KKMCreateOFDPacket [10:58:33]OFDProtocolAddRootSTLVToBuf [10:58:33]FM_MakeSignedData [10:58:33]FM_MakeSignedData [10:58:33]SAM_PROTO_SignData [10:58:33]wFMCommunicate request_size=4 [10:58:33]MH_SAM_APDU [10:58:33]CAPDU: 80 0D 01 02 [10:58:33]Write to MH i2c: E2 08 00 89 44 80 0D 01 02 00 00 00 00 46 [10:58:33]Write i2c OK [10:58:33]MH_I2C_Read... [10:58:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:58:33]Read from MH i2c: E2 [10:58:33]MH_I2C_Read... [10:58:33]Read from MH i2c: E2 03 00 [10:58:33]MH_I2C_Read... [10:58:33]Read from MH i2c: E2 03 00 89 44 00 90 00 41 [10:58:33]RAPDU: 90 00 [10:58:33]wFMCommunicate OK [10:58:33]wFMCommunicate request_size=255 [10:58:33]MH_SAM_APDU [10:58:33]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 48 E9 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9A F1 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 F1 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 BC 00 00 00 00 07 04 06 00 58 F1 06 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 DD 1C 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 66 63 02 00 35 04 06 00 DA E4 02 53 [10:58:33]Write to MH i2c: E2 02 01 8A 44 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 48 E9 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9A F1 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 F1 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 BC 00 00 00 00 07 04 06 00 58 F1 06 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 DD 1C 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 66 63 02 00 35 04 06 00 DA E4 02 53 00 00 F1 [10:58:33]Write i2c OK [10:58:33]MH_I2C_Read... [10:58:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:58:33]Read from MH i2c: E2 [10:58:33]MH_I2C_Read... [10:58:33]Read from MH i2c: E2 03 00 [10:58:33]MH_I2C_Read... [10:58:33]Read from MH i2c: E2 03 00 8A 44 00 90 00 42 [10:58:33]RAPDU: 90 00 [10:58:33]wFMCommunicate OK [10:58:33]wFMCommunicate request_size=7 [10:58:33]MH_SAM_APDU [10:58:33]CAPDU: 80 0D 02 02 02 DA 2A [10:58:33]Write to MH i2c: E2 0A 00 8B 44 80 0D 02 02 02 00 DA 2A 00 00 51 [10:58:33]Write i2c OK [10:58:33]MH_I2C_Read... [10:58:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:58:33]Read from MH i2c: E2 [10:58:33]MH_I2C_Read... [10:58:33]Read from MH i2c: E2 03 00 [10:58:33]MH_I2C_Read... [10:58:33]Read from MH i2c: E2 03 00 8B 44 00 90 00 43 [10:58:33]RAPDU: 90 00 [10:58:33]wFMCommunicate OK [10:58:33]wFMCommunicate request_size=4 [10:58:33]MH_SAM_APDU [10:58:33]CAPDU: 80 0D 03 02 [10:58:33]Write to MH i2c: E2 08 00 8C 44 80 0D 03 02 00 00 00 00 4B [10:58:33]Write i2c OK [10:58:33]MH_I2C_Read... [10:58:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:58:33]Read from MH i2c: E2 [10:58:33]MH_I2C_Read... [10:58:33]Read from MH i2c: E2 0B 00 [10:58:33]MH_I2C_Read... [10:58:33]Read from MH i2c: E2 0B 00 8C 44 00 27 B0 D0 CF 8C 61 F8 03 90 00 AA [10:58:33]RAPDU: 27 B0 D0 CF 8C 61 F8 03 90 00 [10:58:33]wFMCommunicate OK [10:58:33]SAM_PROTO_SignData done [10:58:33]FM_MakeSignedData done [10:58:33]CreateOFDProtocolMessage [10:58:33]wFMCommunicate request_size=4 [10:58:33]MH_SAM_APDU [10:58:33]CAPDU: 80 11 00 00 [10:58:33]Write to MH i2c: E2 08 00 8D 44 80 11 00 00 00 00 00 00 4B [10:58:33]Write i2c OK [10:58:33]MH_I2C_Read... [10:58:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:58:33]Read from MH i2c: E2 [10:58:33]MH_I2C_Read... [10:58:33]Read from MH i2c: E2 17 00 [10:58:33]MH_I2C_Read... [10:58:33]Read from MH i2c: E2 17 00 8D 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 A0 [10:58:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:58:33]wFMCommunicate OK [10:58:33]CreateOFDProtocolMessage done [10:58:33]OFDSenderStorePacket 156518 [10:58:33]StoreOFDPacket docnum=156518 [10:58:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 D1 FB 04 01 44 7A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 48 E9 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9A F1 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 F1 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 BC 00 00 00 00 07 04 06 00 58 F1 06 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 DD 1C 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 66 63 02 00 35 04 06 00 DA E4 02 53 DA 2A 27 B0 D0 CF 8C 61 F8 03 [10:58:33]CheckFolder [10:58:33]dirname=/storage/ofd_packets [10:58:33]CheckFolder done [10:58:33]ProducePacketName [10:58:33]name=ofd_packets/00156518 [10:58:33]NVStorageSaveData ofd_packets/00156518 [10:58:33]File name is /storage/ofd_packets/00156518 [10:58:33]Write 298 bytes [10:58:33]NVStorageSaveData done [10:58:33]OFDSenderStorePacket done [10:58:33]KKMCreateOFDPacket done [10:58:33]NVStorageSaveData kkm_last_timestamp [10:58:33]File name is /storage/kkm_last_timestamp [10:58:33]Write 4 bytes [10:58:33]NVStorageSaveData done [10:58:33]ExternCall_PrintAddStr [10:58:33]wPrintStart [10:58:33]Write to MH i2c: 01 00 00 8E 44 D2 [10:58:33]Write i2c OK [10:58:33]MH_I2C_Read... [10:58:33]Read from MH i2c: 01 [10:58:33]MH_I2C_Read... [10:58:33]Read from MH i2c: 01 07 00 [10:58:33]MH_I2C_Read... [10:58:33]Read from MH i2c: 01 07 00 8E 44 00 00 00 00 00 FF 0F E7 [10:58:33]RasterBufferAndPrint [10:58:33]line Счет N : (1)99331 [10:58:33]line ИНН: 02508201610067 [10:58:33]line Контрольно-Кассовый Чек [10:58:33]line ПРОДАЖА [10:58:33]line ТРК (МРК, ГНК) : 32 [10:58:33]line Товар: 2710194210 [10:58:33]line ДТ-К-5 [10:58:33]line 59.720 * 76.20 [10:58:33]line = 4550.66 [10:58:33]line НДС 12% НСП 1% [10:58:33]line > о реализуемом товаре [10:58:33]line ОКРУГЛЕНИЕ: -0.66 [10:58:33]line ИТОГО: 4550.00 [10:58:33]line Внесено: 4550.00 [10:58:33]line СДАЧА: 0.00 [10:58:33]line НСП 1% : 40.27 [10:58:33]line НДС 12% : 483.26 [10:58:33]line Наличными: 4550.00 [10:58:33]line Безнал.: 0.00 [10:58:33]line Место: АЗС № 143 "Партнер Нефть" [10:58:33]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [10:58:33]line СНО: Общий режим [10:58:33]line Чек 69 27.10.2024 10:58 [10:58:33]line Смена: 537 ФФД: 1.0 [10:58:33]line ЗНМ: 0300000096 [10:58:33]line РНМ: 0000000000091693 [10:58:33]line Версия ККМ: 001 [10:58:33]line ФМ: 0000000000871792 [10:58:33]line ФД: 156518 [10:58:33]line ФПД: 240672826448426 [10:58:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T105837&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156518&fm=240672826448426&tin=02508201610067®Number=0000000000091693&sum=455000 [10:58:33]OFD Sender: Processing packet 156518 [packets to send 31, broken 30] [10:58:33]ProducePacketName [10:58:33]name=ofd_packets/00156518 [10:58:33]OFD Sender: To server: pG, [10:58:33]CommunicateWithHost lk.salyk.kg:30040 [10:58:33]ConnectInit lk.salyk.kg [10:58:33]written 0, free lines is 4095 [10:58:33]Connected sock=10 [10:58:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 D1 FB 04 01 44 7A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 48 E9 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9A F1 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 F1 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 BC 00 00 00 00 07 04 06 00 58 F1 06 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 DD 1C 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 66 63 02 00 35 04 06 00 DA E4 02 53 DA 2A 27 B0 D0 CF 8C 61 F8 03 [10:58:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 CA 92 47 00 66 B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 66 63 02 00 F4 03 04 00 4C C2 1D 67 B6 04 01 00 00 15 5A 7B EF 84 4B 5E E2 [10:58:34]CommunicateWithHost err = 0 [10:58:34]CheckOFDResponse [10:58:34]1017 (14) - 77093643461234 [10:58:34]1041 (16) - 0000000000871792 [10:58:34]1040 (4) - 156518 [10:58:34]1012 (4) - 27.10.2024 04:32 [10:58:34]1206 (1) - 0 [10:58:34]OFD Sender: Remove packet 156518 [10:58:34]ProducePacketName [10:58:34]name=ofd_packets/00156518 [10:58:34]NVStorageDeleteData [10:58:34]Write to MH i2c: 01 00 00 B9 44 FD [10:58:34]Write i2c OK [10:58:34]MH_I2C_Read... [10:58:34]Read from MH i2c: 01 [10:58:34]MH_I2C_Read... [10:58:34]Read from MH i2c: 01 07 00 [10:58:34]MH_I2C_Read... [10:58:34]Read from MH i2c: 01 07 00 B9 44 00 00 00 00 00 E5 0C F5 [10:58:34]RasterBufferAndPrint [10:58:34]line [10:58:34]line [10:58:34]line [10:58:34]line [10:58:34]line [10:58:34]written 0, free lines is 3307 [10:58:34]process_action close_receipt done [10:58:34]requested_data is exist [10:58:34]produce_requested_data [10:58:34]requested_item fm.sn is exist - process it [10:58:34]wFMCommunicate request_size=4 [10:58:34]MH_SAM_APDU [10:58:34]CAPDU: 80 11 00 00 [10:58:34]Write to MH i2c: E2 08 00 C0 44 80 11 00 00 00 00 00 00 7E [10:58:34]Write i2c OK [10:58:34]MH_I2C_Read... [10:58:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:58:34]Read from MH i2c: E2 [10:58:34]MH_I2C_Read... [10:58:34]Read from MH i2c: E2 17 00 [10:58:34]MH_I2C_Read... [10:58:34]Read from MH i2c: E2 17 00 C0 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 D3 [10:58:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:58:34]wFMCommunicate OK [10:58:34]requested_item fd.num is exist - process it [10:58:34]SAM_PROTO_GetFieldsCounters [10:58:34]wFMCommunicate request_size=4 [10:58:34]MH_SAM_APDU [10:58:34]CAPDU: 80 13 00 00 [10:58:34]Write to MH i2c: E2 08 00 C1 44 80 13 00 00 00 00 00 00 81 [10:58:34]Write i2c OK [10:58:34]MH_I2C_Read... [10:58:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:58:34]Read from MH i2c: E2 [10:58:34]MH_I2C_Read... [10:58:34]Read from MH i2c: E2 62 00 [10:58:34]MH_I2C_Read... [10:58:34]Read from MH i2c: E2 62 00 C1 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 66 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 5C [10:58:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 66 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:58:34]wFMCommunicate OK [10:58:34]SAM_PROTO_GetFieldsCounters done [10:58:34]requested_item shift.num is exist - process it [10:58:34]requested_item shift.opened is exist - process it [10:58:34]req_shift_opened [10:58:34]FM_GetShiftState [10:58:34]SAM_PROTO_GetShiftState [10:58:34]wFMCommunicate request_size=4 [10:58:34]MH_SAM_APDU [10:58:34]CAPDU: 80 13 01 00 [10:58:34]Write to MH i2c: E2 08 00 C2 44 80 13 01 00 00 00 00 00 83 [10:58:34]Write i2c OK [10:58:34]MH_I2C_Read... [10:58:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:58:34]Read from MH i2c: E2 [10:58:34]MH_I2C_Read... [10:58:34]Read from MH i2c: E2 0E 00 [10:58:34]MH_I2C_Read... [10:58:34]Read from MH i2c: E2 0E 00 C2 44 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 50 [10:58:34]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [10:58:34]wFMCommunicate OK [10:58:34]SAM_PROTO_GetShiftState done [10:58:34]FM_GetShiftState done [10:58:34]req_shift_opened done [10:58:34]requested_item shift.open_date is exist - process it [10:58:34]req_shift_open_date [10:58:34]req_shift_open_date done [10:58:34]produce_requested_data done [10:58:34]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156518,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [10:58:34]process_action_free close_receipt [10:58:34]json_value_free [10:58:34]json_value_free done [10:58:34]process_json_proto returns [10:58:34]Send response to host [10:58:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156518,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [10:58:34]free response buf [10:58:34]execute_script done [10:58:34]execute_script returns [10:58:34]free content buf [10:58:34]Sock 8.Close socket [10:58:34]Sock 8.Thread stoped [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:34]OFD Sender: No OFD packet to send [10:59:39]OFD Sender: No OFD packet to send [10:59:44]OFD Sender: No OFD packet to send [10:59:44]accept exits with 9 [10:59:44]New connection [10:59:44]New thread 3066977636 created [10:59:44]Thread 3066834276 joined [10:59:44]Waiting for new connection... [10:59:44] Sock 9.Parse request [10:59:44]Sock 9.Check first char [10:59:44]Sock 9.First char is OK [10:59:44]request: POST /json_proto HTTP/1.0 [10:59:44]Method: POST [10:59:44]URL: /json_proto [10:59:44]Method is POST - this is cgi request [10:59:44]url: /json_proto [10:59:44]query_string will be loaded in cgi processing [10:59:44]execute_cgi json_proto POST (null) [10:59:44]execute_cgi path=json_proto method=POST [10:59:44]POST find Content-Length [10:59:44]Host: 172.17.63.3:8080 [10:59:44]Content-Length: 676 [10:59:44]Content-Type: application/json [10:59:44] [10:59:44]POST finish read [10:59:44]Found Content-Length = 676 [10:59:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99332", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:59:44]execute_script... [10:59: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)99332", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:59:44]POST & json_proto [10:59:44]process_json_proto [10:59:44]json parsed OK: [10:59:44]protocol is kg_v1.0 [10:59:44]action value=close_receipt [10:59:44]process_action close_receipt [10:59:44]cmd_close_receipt [10:59:44]MH_GetDate [10:59:44]Write to MH i2c: F0 00 00 C3 44 F6 [10:59:44]Write i2c OK [10:59:44]MH_I2C_Read... [10:59:44]Read from MH i2c: F0 [10:59:44]MH_I2C_Read... [10:59:44]Read from MH i2c: F0 09 00 [10:59:44]MH_I2C_Read... [10:59:44]Read from MH i2c: F0 09 00 C3 44 00 26 1D 1E 67 50 D1 6C 64 B8 [10:59:44]GetLastDocTimeStamp 1730026717 [10:59:44]current date 1730026790 [10:59:44]FM_GetShiftState [10:59:44]SAM_PROTO_GetShiftState [10:59:44]wFMCommunicate request_size=4 [10:59:44]MH_SAM_APDU [10:59:44]CAPDU: 80 13 01 00 [10:59:44]Write to MH i2c: E2 08 00 C4 44 80 13 01 00 00 00 00 00 85 [10:59:44]Write i2c OK [10:59:44]MH_I2C_Read... [10:59:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:44]Read from MH i2c: E2 [10:59:44]MH_I2C_Read... [10:59:44]Read from MH i2c: E2 0E 00 [10:59:44]MH_I2C_Read... [10:59:44]Read from MH i2c: E2 0E 00 C4 44 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 52 [10:59:44]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [10:59:44]wFMCommunicate OK [10:59:44]SAM_PROTO_GetShiftState done [10:59:44]FM_GetShiftState done [10:59:44]opened in 1729989044 [10:59:44]opened+sec_in_day 1730075444 [10:59:44]quantity*price = 50041 [10:59:44]sum+1 = 50042 [10:59:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 70 27.10.2024 10:59 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156519 ФПД: 103164806304429 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T105950&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156519&fm=103164806304429&tin=02508201610067®Number=0000000000091693&sum=50000 [10:59:46]StoreToDocumentArchive [10:59:46]shift 537 fd 156519 [10:59:46]save to /storage/0537/doc_00156519 [10:59:46]save last doc name /storage/0537/doc_00156519 to /storage/kkm_last_doc_name [10:59:46]save OK [10:59:46]Clear old archive folders... [10:59:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:59:46]tlvbuf is 016B3B20 [10:59:46]SAM_PROTO_ClearQueue [10:59:46]wFMCommunicate request_size=4 [10:59:46]MH_SAM_APDU [10:59:46]CAPDU: 80 09 00 00 [10:59:46]Write to MH i2c: E2 08 00 D1 44 80 09 00 00 00 00 00 00 87 [10:59:46]Write i2c OK [10:59:46]MH_I2C_Read... [10:59:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:59:46]Read from MH i2c: E2 [10:59:46]MH_I2C_Read... [10:59:46]Read from MH i2c: E2 03 00 [10:59:46]MH_I2C_Read... [10:59:46]Read from MH i2c: E2 03 00 D1 44 00 90 00 89 [10:59:46]RAPDU: 90 00 [10:59:46]wFMCommunicate OK [10:59:46]SAM_PROTO_ClearQueue done [10:59:46]KKMCreateOFDPacket [10:59:46]OFDProtocolAddRootSTLVToBuf [10:59:46]FM_MakeSignedData [10:59:46]FM_MakeSignedData [10:59:46]SAM_PROTO_SignData [10:59:46]wFMCommunicate request_size=4 [10:59:46]MH_SAM_APDU [10:59:46]CAPDU: 80 0D 01 02 [10:59:46]Write to MH i2c: E2 08 00 D2 44 80 0D 01 02 00 00 00 00 8F [10:59:46]Write i2c OK [10:59:46]MH_I2C_Read... [10:59:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:59:46]Read from MH i2c: E2 [10:59:46]MH_I2C_Read... [10:59:46]Read from MH i2c: E2 03 00 [10:59:46]MH_I2C_Read... [10:59:46]Read from MH i2c: E2 03 00 D2 44 00 90 00 8A [10:59:46]RAPDU: 90 00 [10:59:46]wFMCommunicate OK [10:59:46]wFMCommunicate request_size=255 [10:59:46]MH_SAM_APDU [10:59:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 26 1D 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 67 63 02 00 35 04 06 00 5D [10:59:46]Write to MH i2c: E2 02 01 D3 44 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 26 1D 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 67 63 02 00 35 04 06 00 5D 00 00 75 [10:59:46]Write i2c OK [10:59:46]MH_I2C_Read... [10:59:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:46]Read from MH i2c: E2 [10:59:46]MH_I2C_Read... [10:59:46]Read from MH i2c: E2 03 00 [10:59:46]MH_I2C_Read... [10:59:46]Read from MH i2c: E2 03 00 D3 44 00 90 00 8B [10:59:46]RAPDU: 90 00 [10:59:46]wFMCommunicate OK [10:59:46]wFMCommunicate request_size=10 [10:59:46]MH_SAM_APDU [10:59:46]CAPDU: 80 0D 02 02 05 D3 ED A2 12 AD [10:59:46]Write to MH i2c: E2 0D 00 D4 44 80 0D 02 02 05 00 D3 ED A2 12 AD 00 00 BD [10:59:46]Write i2c OK [10:59:46]MH_I2C_Read... [10:59:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:46]Read from MH i2c: E2 [10:59:46]MH_I2C_Read... [10:59:46]Read from MH i2c: E2 03 00 [10:59:46]MH_I2C_Read... [10:59:46]Read from MH i2c: E2 03 00 D4 44 00 90 00 8C [10:59:46]RAPDU: 90 00 [10:59:46]wFMCommunicate OK [10:59:46]wFMCommunicate request_size=4 [10:59:46]MH_SAM_APDU [10:59:46]CAPDU: 80 0D 03 02 [10:59:46]Write to MH i2c: E2 08 00 D5 44 80 0D 03 02 00 00 00 00 94 [10:59:46]Write i2c OK [10:59:46]MH_I2C_Read... [10:59:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:59:46]Read from MH i2c: E2 [10:59:46]MH_I2C_Read... [10:59:46]Read from MH i2c: E2 0B 00 [10:59:46]MH_I2C_Read... [10:59:46]Read from MH i2c: E2 0B 00 D5 44 00 25 1F A1 F8 F9 4A D2 5B 90 00 E2 [10:59:46]RAPDU: 25 1F A1 F8 F9 4A D2 5B 90 00 [10:59:46]wFMCommunicate OK [10:59:46]SAM_PROTO_SignData done [10:59:46]FM_MakeSignedData done [10:59:46]CreateOFDProtocolMessage [10:59:46]wFMCommunicate request_size=4 [10:59:46]MH_SAM_APDU [10:59:46]CAPDU: 80 11 00 00 [10:59:46]Write to MH i2c: E2 08 00 D6 44 80 11 00 00 00 00 00 00 94 [10:59:46]Write i2c OK [10:59:46]MH_I2C_Read... [10:59:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:46]Read from MH i2c: E2 [10:59:46]MH_I2C_Read... [10:59:46]Read from MH i2c: E2 17 00 [10:59:46]MH_I2C_Read... [10:59:46]Read from MH i2c: E2 17 00 D6 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 E9 [10:59:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:59:46]wFMCommunicate OK [10:59:46]CreateOFDProtocolMessage done [10:59:46]OFDSenderStorePacket 156519 [10:59:46]StoreOFDPacket docnum=156519 [10:59:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 50 4A 07 01 B6 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 26 1D 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 67 63 02 00 35 04 06 00 5D D3 ED A2 12 AD 25 1F A1 F8 F9 4A D2 5B [10:59:46]CheckFolder [10:59:46]dirname=/storage/ofd_packets [10:59:46]CheckFolder done [10:59:46]ProducePacketName [10:59:46]name=ofd_packets/00156519 [10:59:46]NVStorageSaveData ofd_packets/00156519 [10:59:46]File name is /storage/ofd_packets/00156519 [10:59:46]Write 301 bytes [10:59:46]NVStorageSaveData done [10:59:46]OFDSenderStorePacket done [10:59:46]KKMCreateOFDPacket done [10:59:46]NVStorageSaveData kkm_last_timestamp [10:59:46]File name is /storage/kkm_last_timestamp [10:59:46]Write 4 bytes [10:59:46]NVStorageSaveData done [10:59:46]ExternCall_PrintAddStr [10:59:46]wPrintStart [10:59:46]Write to MH i2c: 01 00 00 D7 44 1B [10:59:46]Write i2c OK [10:59:46]MH_I2C_Read... [10:59:46]Read from MH i2c: 01 [10:59:46]MH_I2C_Read... [10:59:46]Read from MH i2c: 01 07 00 [10:59:46]MH_I2C_Read... [10:59:46]Read from MH i2c: 01 07 00 D7 44 00 00 00 00 00 FF 0F 30 [10:59:46]RasterBufferAndPrint [10:59:46]line Счет N : (1)99332 [10:59:46]line ИНН: 02508201610067 [10:59:46]line Контрольно-Кассовый Чек [10:59:46]line ПРОДАЖА [10:59:46]line ТРК (МРК, ГНК) : 31 [10:59:46]line Товар: 2710124130 [10:59:46]line Аи-92-К-5 [10:59:46]line 7.480 * 66.90 [10:59:46]line = 500.41 [10:59:46]line НДС 12% НСП 1% [10:59:46]line > о реализуемом товаре [10:59:46]line ОКРУГЛЕНИЕ: -0.41 [10:59:46]line ИТОГО: 500.00 [10:59:46]line Внесено: 500.00 [10:59:46]line СДАЧА: 0.00 [10:59:46]line НСП 1% : 4.43 [10:59:46]line НДС 12% : 53.14 [10:59:46]line Наличными: 500.00 [10:59:46]line Безнал.: 0.00 [10:59:46]line Место: АЗС № 143 "Партнер Нефть" [10:59:46]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [10:59:46]line СНО: Общий режим [10:59:46]line Чек 70 27.10.2024 10:59 [10:59:46]line Смена: 537 ФФД: 1.0 [10:59:46]line ЗНМ: 0300000096 [10:59:46]line РНМ: 0000000000091693 [10:59:46]line Версия ККМ: 001 [10:59:46]line ФМ: 0000000000871792 [10:59:46]line ФД: 156519 [10:59:46]line ФПД: 103164806304429 [10:59:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T105950&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156519&fm=103164806304429&tin=02508201610067®Number=0000000000091693&sum=50000 [10:59:46]OFD Sender: Processing packet 156519 [packets to send 31, broken 30] [10:59:46]ProducePacketName [10:59:46]name=ofd_packets/00156519 [10:59:46]OFD Sender: To server: pG, [10:59:46]CommunicateWithHost lk.salyk.kg:30040 [10:59:46]ConnectInit lk.salyk.kg [10:59:46]written 0, free lines is 4095 [10:59:47]Connected sock=10 [10:59:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 50 4A 07 01 B6 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 26 1D 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 67 63 02 00 35 04 06 00 5D D3 ED A2 12 AD 25 1F A1 F8 F9 4A D2 5B [10:59:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 AD AF 47 00 F7 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 67 63 02 00 F4 03 04 00 96 C2 1D 67 B6 04 01 00 00 BF B2 5A F4 75 3D 4A AA [10:59:47]CommunicateWithHost err = 0 [10:59:47]CheckOFDResponse [10:59:47]1017 (14) - 77093643461234 [10:59:47]1041 (16) - 0000000000871792 [10:59:47]1040 (4) - 156519 [10:59:47]1012 (4) - 27.10.2024 04:33 [10:59:47]1206 (1) - 0 [10:59:47]OFD Sender: Remove packet 156519 [10:59:47]ProducePacketName [10:59:47]name=ofd_packets/00156519 [10:59:47]NVStorageDeleteData [10:59:47]Write to MH i2c: 01 00 00 02 45 47 [10:59:47]Write i2c OK [10:59:47]MH_I2C_Read... [10:59:47]Read from MH i2c: 01 [10:59:47]MH_I2C_Read... [10:59:47]Read from MH i2c: 01 07 00 [10:59:47]MH_I2C_Read... [10:59:47]Read from MH i2c: 01 07 00 02 45 00 00 00 00 00 D0 0C 2A [10:59:47]RasterBufferAndPrint [10:59:47]line [10:59:47]line [10:59:47]line [10:59:47]line [10:59:47]line [10:59:47]written 0, free lines is 3287 [10:59:47]process_action close_receipt done [10:59:47]requested_data is exist [10:59:47]produce_requested_data [10:59:47]requested_item fm.sn is exist - process it [10:59:47]wFMCommunicate request_size=4 [10:59:47]MH_SAM_APDU [10:59:47]CAPDU: 80 11 00 00 [10:59:47]Write to MH i2c: E2 08 00 09 45 80 11 00 00 00 00 00 00 C8 [10:59:47]Write i2c OK [10:59:47]MH_I2C_Read... [10:59:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:47]Read from MH i2c: E2 [10:59:47]MH_I2C_Read... [10:59:47]Read from MH i2c: E2 17 00 [10:59:47]MH_I2C_Read... [10:59:47]Read from MH i2c: E2 17 00 09 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 1D [10:59:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [10:59:47]wFMCommunicate OK [10:59:47]requested_item fd.num is exist - process it [10:59:47]SAM_PROTO_GetFieldsCounters [10:59:47]wFMCommunicate request_size=4 [10:59:47]MH_SAM_APDU [10:59:47]CAPDU: 80 13 00 00 [10:59:47]Write to MH i2c: E2 08 00 0A 45 80 13 00 00 00 00 00 00 CB [10:59:47]Write i2c OK [10:59:47]MH_I2C_Read... [10:59:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:59:47]Read from MH i2c: E2 [10:59:47]MH_I2C_Read... [10:59:47]Read from MH i2c: E2 62 00 [10:59:47]MH_I2C_Read... [10:59:47]Read from MH i2c: E2 62 00 0A 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 67 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 AA [10:59:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 67 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:59:47]wFMCommunicate OK [10:59:47]SAM_PROTO_GetFieldsCounters done [10:59:47]requested_item shift.num is exist - process it [10:59:47]requested_item shift.opened is exist - process it [10:59:47]req_shift_opened [10:59:47]FM_GetShiftState [10:59:47]SAM_PROTO_GetShiftState [10:59:47]wFMCommunicate request_size=4 [10:59:47]MH_SAM_APDU [10:59:47]CAPDU: 80 13 01 00 [10:59:47]Write to MH i2c: E2 08 00 0B 45 80 13 01 00 00 00 00 00 CD [10:59:47]Write i2c OK [10:59:47]MH_I2C_Read... [10:59:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:47]Read from MH i2c: E2 [10:59:47]MH_I2C_Read... [10:59:47]Read from MH i2c: E2 0E 00 [10:59:47]MH_I2C_Read... [10:59:47]Read from MH i2c: E2 0E 00 0B 45 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 9A [10:59:47]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [10:59:47]wFMCommunicate OK [10:59:47]SAM_PROTO_GetShiftState done [10:59:47]FM_GetShiftState done [10:59:47]req_shift_opened done [10:59:47]requested_item shift.open_date is exist - process it [10:59:47]req_shift_open_date [10:59:47]req_shift_open_date done [10:59:47]produce_requested_data done [10:59:47]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156519,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [10:59:47]process_action_free close_receipt [10:59:47]json_value_free [10:59:47]json_value_free done [10:59:47]process_json_proto returns [10:59:47]Send response to host [10:59:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156519,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [10:59:47]free response buf [10:59:47]execute_script done [10:59:47]execute_script returns [10:59:47]free content buf [10:59:47]Sock 9.Close socket [10:59:47]Sock 9.Thread stoped [10:59:47]OFD Sender: No OFD packet to send [10:59:52]OFD Sender: No OFD packet to send [10:59:57]OFD Sender: No OFD packet to send [11:00:02]OFD Sender: No OFD packet to send [11:00:07]OFD Sender: No OFD packet to send [11:00:12]OFD Sender: No OFD packet to send [11:00:17]OFD Sender: No OFD packet to send [11:00:22]OFD Sender: No OFD packet to send [11:00:27]OFD Sender: No OFD packet to send [11:00:32]OFD Sender: No OFD packet to send [11:00:37]OFD Sender: No OFD packet to send [11:00:42]OFD Sender: No OFD packet to send [11:00:47]OFD Sender: No OFD packet to send [11:00:52]OFD Sender: No OFD packet to send [11:00:57]OFD Sender: No OFD packet to send [11:01:02]OFD Sender: No OFD packet to send [11:01:07]OFD Sender: No OFD packet to send [11:01:12]OFD Sender: No OFD packet to send [11:01:17]OFD Sender: No OFD packet to send [11:01:22]OFD Sender: No OFD packet to send [11:01:27]OFD Sender: No OFD packet to send [11:01:32]OFD Sender: No OFD packet to send [11:01:37]OFD Sender: No OFD packet to send [11:01:42]OFD Sender: No OFD packet to send [11:01:43]accept exits with 8 [11:01:43]New connection [11:01:43]New thread 3066834276 created [11:01:43]Thread 3066977636 joined [11:01:43]Waiting for new connection... [11:01:43] Sock 8.Parse request [11:01:43]Sock 8.Check first char [11:01:43]Sock 8.First char is OK [11:01:43]request: POST /json_proto HTTP/1.0 [11:01:43]Method: POST [11:01:43]URL: /json_proto [11:01:43]Method is POST - this is cgi request [11:01:43]url: /json_proto [11:01:43]query_string will be loaded in cgi processing [11:01:43]execute_cgi json_proto POST (null) [11:01:43]execute_cgi path=json_proto method=POST [11:01:43]POST find Content-Length [11:01:43]Host: 172.17.63.3:8080 [11:01:43]Content-Length: 676 [11:01:43]Content-Type: application/json [11:01:43] [11:01:43]POST finish read [11:01:43]Found Content-Length = 676 [11:01:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99334", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.800, "sum" : 120.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 120.00, "total" : 120.00, "payments": [ { "type": 0, "sum" : 120.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:01:43]execute_script... [11:01: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)99334", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.800, "sum" : 120.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 120.00, "total" : 120.00, "payments": [ { "type": 0, "sum" : 120.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:01:43]POST & json_proto [11:01:43]process_json_proto [11:01:43]json parsed OK: [11:01:43]protocol is kg_v1.0 [11:01:43]action value=close_receipt [11:01:43]process_action close_receipt [11:01:43]cmd_close_receipt [11:01:43]MH_GetDate [11:01:43]Write to MH i2c: F0 00 00 0C 45 40 [11:01:43]Write i2c OK [11:01:43]MH_I2C_Read... [11:01:43]Read from MH i2c: F0 [11:01:43]MH_I2C_Read... [11:01:43]Read from MH i2c: F0 09 00 [11:01:43]MH_I2C_Read... [11:01:43]Read from MH i2c: F0 09 00 0C 45 00 9D 1D 1E 67 50 D1 6C 64 79 [11:01:43]GetLastDocTimeStamp 1730026790 [11:01:43]current date 1730026909 [11:01:43]FM_GetShiftState [11:01:43]SAM_PROTO_GetShiftState [11:01:43]wFMCommunicate request_size=4 [11:01:43]MH_SAM_APDU [11:01:43]CAPDU: 80 13 01 00 [11:01:43]Write to MH i2c: E2 08 00 0D 45 80 13 01 00 00 00 00 00 CF [11:01:43]Write i2c OK [11:01:43]MH_I2C_Read... [11:01:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:01:43]Read from MH i2c: E2 [11:01:43]MH_I2C_Read... [11:01:43]Read from MH i2c: E2 0E 00 [11:01:43]MH_I2C_Read... [11:01:43]Read from MH i2c: E2 0E 00 0D 45 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 9C [11:01:43]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [11:01:43]wFMCommunicate OK [11:01:43]SAM_PROTO_GetShiftState done [11:01:43]FM_GetShiftState done [11:01:43]opened in 1729989044 [11:01:43]opened+sec_in_day 1730075444 [11:01:43]quantity*price = 12042 [11:01:43]sum+1 = 12043 [11:01:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 120.00 Внесено: 120.00 СДАЧА: 0.00 НСП 1% : 1.07 НДС 12% : 12.79 Наличными: 120.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 71 27.10.2024 11:01 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156520 ФПД: 221042786566526 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T110149&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156520&fm=221042786566526&tin=02508201610067®Number=0000000000091693&sum=12000 [11:01:44]StoreToDocumentArchive [11:01:44]shift 537 fd 156520 [11:01:44]save to /storage/0537/doc_00156520 [11:01:44]save last doc name /storage/0537/doc_00156520 to /storage/kkm_last_doc_name [11:01:44]save OK [11:01:44]Clear old archive folders... [11:01:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:01:44]tlvbuf is 017A9160 [11:01:44]SAM_PROTO_ClearQueue [11:01:44]wFMCommunicate request_size=4 [11:01:44]MH_SAM_APDU [11:01:44]CAPDU: 80 09 00 00 [11:01:44]Write to MH i2c: E2 08 00 1A 45 80 09 00 00 00 00 00 00 D1 [11:01:44]Write i2c OK [11:01:44]MH_I2C_Read... [11:01:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:01:44]Read from MH i2c: E2 [11:01:44]MH_I2C_Read... [11:01:44]Read from MH i2c: E2 03 00 [11:01:44]MH_I2C_Read... [11:01:44]Read from MH i2c: E2 03 00 1A 45 00 90 00 D3 [11:01:44]RAPDU: 90 00 [11:01:44]wFMCommunicate OK [11:01:44]SAM_PROTO_ClearQueue done [11:01:44]KKMCreateOFDPacket [11:01:44]OFDProtocolAddRootSTLVToBuf [11:01:44]FM_MakeSignedData [11:01:44]FM_MakeSignedData [11:01:44]SAM_PROTO_SignData [11:01:44]wFMCommunicate request_size=4 [11:01:44]MH_SAM_APDU [11:01:44]CAPDU: 80 0D 01 02 [11:01:44]Write to MH i2c: E2 08 00 1B 45 80 0D 01 02 00 00 00 00 D9 [11:01:44]Write i2c OK [11:01:44]MH_I2C_Read... [11:01:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:01:44]Read from MH i2c: E2 [11:01:44]MH_I2C_Read... [11:01:44]Read from MH i2c: E2 03 00 [11:01:44]MH_I2C_Read... [11:01:44]Read from MH i2c: E2 03 00 1B 45 00 90 00 D4 [11:01:44]RAPDU: 90 00 [11:01:44]wFMCommunicate OK [11:01:44]wFMCommunicate request_size=255 [11:01:44]MH_SAM_APDU [11:01: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 08 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0A 2F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 9D 1D 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 68 63 02 00 35 04 06 00 C9 [11:01:44]Write to MH i2c: E2 02 01 1C 45 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 08 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0A 2F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 9D 1D 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 68 63 02 00 35 04 06 00 C9 00 00 2D [11:01:45]Write i2c OK [11:01:45]MH_I2C_Read... [11:01:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:01:45]Read from MH i2c: E2 [11:01:45]MH_I2C_Read... [11:01:45]Read from MH i2c: E2 03 00 [11:01:45]MH_I2C_Read... [11:01:45]Read from MH i2c: E2 03 00 1C 45 00 90 00 D5 [11:01:45]RAPDU: 90 00 [11:01:45]wFMCommunicate OK [11:01:45]wFMCommunicate request_size=10 [11:01:45]MH_SAM_APDU [11:01:45]CAPDU: 80 0D 02 02 05 09 88 C6 01 7E [11:01:45]Write to MH i2c: E2 0D 00 1D 45 80 0D 02 02 05 00 09 88 C6 01 7E 00 00 BC [11:01:45]Write i2c OK [11:01:45]MH_I2C_Read... [11:01:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:01:45]Read from MH i2c: E2 [11:01:45]MH_I2C_Read... [11:01:45]Read from MH i2c: E2 03 00 [11:01:45]MH_I2C_Read... [11:01:45]Read from MH i2c: E2 03 00 1D 45 00 90 00 D6 [11:01:45]RAPDU: 90 00 [11:01:45]wFMCommunicate OK [11:01:45]wFMCommunicate request_size=4 [11:01:45]MH_SAM_APDU [11:01:45]CAPDU: 80 0D 03 02 [11:01:45]Write to MH i2c: E2 08 00 1E 45 80 0D 03 02 00 00 00 00 DE [11:01:45]Write i2c OK [11:01:45]MH_I2C_Read... [11:01:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:01:45]Read from MH i2c: E2 [11:01:45]MH_I2C_Read... [11:01:45]Read from MH i2c: E2 0B 00 [11:01:45]MH_I2C_Read... [11:01:45]Read from MH i2c: E2 0B 00 1E 45 00 F2 6F 67 DA 1B CC E3 9A 90 00 E5 [11:01:45]RAPDU: F2 6F 67 DA 1B CC E3 9A 90 00 [11:01:45]wFMCommunicate OK [11:01:45]SAM_PROTO_SignData done [11:01:45]FM_MakeSignedData done [11:01:45]CreateOFDProtocolMessage [11:01:45]wFMCommunicate request_size=4 [11:01:45]MH_SAM_APDU [11:01:45]CAPDU: 80 11 00 00 [11:01:45]Write to MH i2c: E2 08 00 1F 45 80 11 00 00 00 00 00 00 DE [11:01:45]Write i2c OK [11:01:45]MH_I2C_Read... [11:01:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:01:45]Read from MH i2c: E2 [11:01:45]MH_I2C_Read... [11:01:45]Read from MH i2c: E2 17 00 [11:01:45]MH_I2C_Read... [11:01:45]Read from MH i2c: E2 17 00 1F 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 33 [11:01:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:01:45]wFMCommunicate OK [11:01:45]CreateOFDProtocolMessage done [11:01:45]OFDSenderStorePacket 156520 [11:01:45]StoreOFDPacket docnum=156520 [11:01:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 BC 7E 07 01 3E 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 08 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0A 2F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 9D 1D 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 68 63 02 00 35 04 06 00 C9 09 88 C6 01 7E F2 6F 67 DA 1B CC E3 9A [11:01:45]CheckFolder [11:01:45]dirname=/storage/ofd_packets [11:01:45]CheckFolder done [11:01:45]ProducePacketName [11:01:45]name=ofd_packets/00156520 [11:01:45]NVStorageSaveData ofd_packets/00156520 [11:01:45]File name is /storage/ofd_packets/00156520 [11:01:45]Write 301 bytes [11:01:45]NVStorageSaveData done [11:01:45]OFDSenderStorePacket done [11:01:45]KKMCreateOFDPacket done [11:01:45]NVStorageSaveData kkm_last_timestamp [11:01:45]File name is /storage/kkm_last_timestamp [11:01:45]Write 4 bytes [11:01:45]NVStorageSaveData done [11:01:45]ExternCall_PrintAddStr [11:01:45]wPrintStart [11:01:45]Write to MH i2c: 01 00 00 20 45 65 [11:01:45]Write i2c OK [11:01:45]MH_I2C_Read... [11:01:45]Read from MH i2c: 01 [11:01:45]MH_I2C_Read... [11:01:45]Read from MH i2c: 01 07 00 [11:01:45]MH_I2C_Read... [11:01:45]Read from MH i2c: 01 07 00 20 45 00 00 00 00 00 FF 0F 7A [11:01:45]RasterBufferAndPrint [11:01:45]line Счет N : (1)99334 [11:01:45]line ИНН: 02508201610067 [11:01:45]line Контрольно-Кассовый Чек [11:01:45]line ПРОДАЖА [11:01:45]line ТРК (МРК, ГНК) : 11 [11:01:45]line Товар: 2710124130 [11:01:45]line Аи-92-К-5 [11:01:45]line 1.800 * 66.90 [11:01:45]line = 120.42 [11:01:45]line НДС 12% НСП 1% [11:01:45]line > о реализуемом товаре [11:01:45]line ОКРУГЛЕНИЕ: -0.42 [11:01:45]line ИТОГО: 120.00 [11:01:45]line Внесено: 120.00 [11:01:45]line СДАЧА: 0.00 [11:01:45]line НСП 1% : 1.07 [11:01:45]line НДС 12% : 12.79 [11:01:45]line Наличными: 120.00 [11:01:45]line Безнал.: 0.00 [11:01:45]line Место: АЗС № 143 "Партнер Нефть" [11:01:45]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [11:01:45]line СНО: Общий режим [11:01:45]line Чек 71 27.10.2024 11:01 [11:01:45]line Смена: 537 ФФД: 1.0 [11:01:45]line ЗНМ: 0300000096 [11:01:45]line РНМ: 0000000000091693 [11:01:45]line Версия ККМ: 001 [11:01:45]line ФМ: 0000000000871792 [11:01:45]line ФД: 156520 [11:01:45]line ФПД: 221042786566526 [11:01:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T110149&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156520&fm=221042786566526&tin=02508201610067®Number=0000000000091693&sum=12000 [11:01:45]OFD Sender: Processing packet 156520 [packets to send 31, broken 30] [11:01:45]ProducePacketName [11:01:45]name=ofd_packets/00156520 [11:01:45]OFD Sender: To server: pG, [11:01:45]CommunicateWithHost lk.salyk.kg:30040 [11:01:45]ConnectInit lk.salyk.kg [11:01:45]written 0, free lines is 4095 [11:01:45]Connected sock=10 [11:01:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 BC 7E 07 01 3E 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 08 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0A 2F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 9D 1D 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 68 63 02 00 35 04 06 00 C9 09 88 C6 01 7E F2 6F 67 DA 1B CC E3 9A [11:01:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 10 11 47 00 C4 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 31 37 39 32 10 04 04 00 68 63 02 00 F4 03 04 00 0C C3 1D 67 B6 04 01 00 00 A4 7A B9 89 4A DC AE 13 [11:01:46]CommunicateWithHost err = 0 [11:01:46]CheckOFDResponse [11:01:46]1017 (14) - 77093643461234 [11:01:46]1041 (16) - 0000000000871792 [11:01:46]1040 (4) - 156520 [11:01:46]1012 (4) - 27.10.2024 04:35 [11:01:46]1206 (1) - 0 [11:01:46]OFD Sender: Remove packet 156520 [11:01:46]ProducePacketName [11:01:46]name=ofd_packets/00156520 [11:01:46]NVStorageDeleteData [11:01:46]Write to MH i2c: 01 00 00 4B 45 90 [11:01:46]Write i2c OK [11:01:46]MH_I2C_Read... [11:01:46]Read from MH i2c: 01 [11:01:46]MH_I2C_Read... [11:01:46]Read from MH i2c: 01 07 00 [11:01:46]MH_I2C_Read... [11:01:46]Read from MH i2c: 01 07 00 4B 45 00 00 00 00 00 CD 0C 70 [11:01:46]RasterBufferAndPrint [11:01:46]line [11:01:46]line [11:01:46]line [11:01:46]line [11:01:46]line [11:01:46]written 0, free lines is 3287 [11:01:46]process_action close_receipt done [11:01:46]requested_data is exist [11:01:46]produce_requested_data [11:01:46]requested_item fm.sn is exist - process it [11:01:46]wFMCommunicate request_size=4 [11:01:46]MH_SAM_APDU [11:01:46]CAPDU: 80 11 00 00 [11:01:46]Write to MH i2c: E2 08 00 52 45 80 11 00 00 00 00 00 00 11 [11:01:46]Write i2c OK [11:01:46]MH_I2C_Read... [11:01:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:01:46]Read from MH i2c: E2 [11:01:46]MH_I2C_Read... [11:01:46]Read from MH i2c: E2 17 00 [11:01:46]MH_I2C_Read... [11:01:46]Read from MH i2c: E2 17 00 52 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 66 [11:01:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:01:46]wFMCommunicate OK [11:01:46]requested_item fd.num is exist - process it [11:01:46]SAM_PROTO_GetFieldsCounters [11:01:46]wFMCommunicate request_size=4 [11:01:46]MH_SAM_APDU [11:01:46]CAPDU: 80 13 00 00 [11:01:46]Write to MH i2c: E2 08 00 53 45 80 13 00 00 00 00 00 00 14 [11:01:46]Write i2c OK [11:01:46]MH_I2C_Read... [11:01:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:01:46]Read from MH i2c: E2 [11:01:46]MH_I2C_Read... [11:01:46]Read from MH i2c: E2 62 00 [11:01:46]MH_I2C_Read... [11:01:46]Read from MH i2c: E2 62 00 53 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 68 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 F7 [11:01:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 68 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:01:46]wFMCommunicate OK [11:01:46]SAM_PROTO_GetFieldsCounters done [11:01:46]requested_item shift.num is exist - process it [11:01:46]requested_item shift.opened is exist - process it [11:01:46]req_shift_opened [11:01:46]FM_GetShiftState [11:01:46]SAM_PROTO_GetShiftState [11:01:46]wFMCommunicate request_size=4 [11:01:46]MH_SAM_APDU [11:01:46]CAPDU: 80 13 01 00 [11:01:46]Write to MH i2c: E2 08 00 54 45 80 13 01 00 00 00 00 00 16 [11:01:46]Write i2c OK [11:01:46]MH_I2C_Read... [11:01:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:01:46]Read from MH i2c: E2 [11:01:46]MH_I2C_Read... [11:01:46]Read from MH i2c: E2 0E 00 [11:01:46]MH_I2C_Read... [11:01:46]Read from MH i2c: E2 0E 00 54 45 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 E3 [11:01:46]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [11:01:46]wFMCommunicate OK [11:01:46]SAM_PROTO_GetShiftState done [11:01:46]FM_GetShiftState done [11:01:46]req_shift_opened done [11:01:46]requested_item shift.open_date is exist - process it [11:01:46]req_shift_open_date [11:01:46]req_shift_open_date done [11:01:46]produce_requested_data done [11:01:46]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156520,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [11:01:46]process_action_free close_receipt [11:01:46]json_value_free [11:01:46]json_value_free done [11:01:46]process_json_proto returns [11:01:46]Send response to host [11:01:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156520,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [11:01:46]free response buf [11:01:46]execute_script done [11:01:46]execute_script returns [11:01:46]free content buf [11:01:46]Sock 8.Close socket [11:01:46]Sock 8.Thread stoped [11:01:46]OFD Sender: No OFD packet to send [11:01:51]OFD Sender: No OFD packet to send [11:01:56]OFD Sender: No OFD packet to send [11:02:01]OFD Sender: No OFD packet to send [11:02:06]OFD Sender: No OFD packet to send [11:02:11]OFD Sender: No OFD packet to send [11:02:16]OFD Sender: No OFD packet to send [11:02:21]OFD Sender: No OFD packet to send [11:02:26]OFD Sender: No OFD packet to send [11:02:31]OFD Sender: No OFD packet to send [11:02:36]OFD Sender: No OFD packet to send [11:02:41]OFD Sender: No OFD packet to send [11:02:43]accept exits with 9 [11:02:43]New connection [11:02:43]New thread 3066977636 created [11:02:43]Thread 3066834276 joined [11:02:43]Waiting for new connection... [11:02:43] Sock 9.Parse request [11:02:43]Sock 9.Check first char [11:02:43]Sock 9.First char is OK [11:02:43]request: POST /json_proto HTTP/1.0 [11:02:43]Method: POST [11:02:43]URL: /json_proto [11:02:43]Method is POST - this is cgi request [11:02:43]url: /json_proto [11:02:43]query_string will be loaded in cgi processing [11:02:43]execute_cgi json_proto POST (null) [11:02:43]execute_cgi path=json_proto method=POST [11:02:43]POST find Content-Length [11:02:43]Host: 172.17.63.3:8080 [11:02:43]Content-Length: 681 [11:02:43]Content-Type: application/json [11:02:43] [11:02:43]POST finish read [11:02:43]Found Content-Length = 681 [11:02:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99335", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:02:43]execute_script... [11:02: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)99335", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:02:43]POST & json_proto [11:02:43]process_json_proto [11:02:43]json parsed OK: [11:02:43]protocol is kg_v1.0 [11:02:43]action value=close_receipt [11:02:43]process_action close_receipt [11:02:43]cmd_close_receipt [11:02:43]MH_GetDate [11:02:43]Write to MH i2c: F0 00 00 55 45 89 [11:02:43]Write i2c OK [11:02:43]MH_I2C_Read... [11:02:43]Read from MH i2c: F0 [11:02:43]MH_I2C_Read... [11:02:43]Read from MH i2c: F0 09 00 [11:02:43]MH_I2C_Read... [11:02:43]Read from MH i2c: F0 09 00 55 45 00 D8 1D 1E 67 50 D1 6C 64 FD [11:02:43]GetLastDocTimeStamp 1730026909 [11:02:43]current date 1730026968 [11:02:43]FM_GetShiftState [11:02:43]SAM_PROTO_GetShiftState [11:02:43]wFMCommunicate request_size=4 [11:02:43]MH_SAM_APDU [11:02:43]CAPDU: 80 13 01 00 [11:02:43]Write to MH i2c: E2 08 00 56 45 80 13 01 00 00 00 00 00 18 [11:02:43]Write i2c OK [11:02:43]MH_I2C_Read... [11:02:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:43]Read from MH i2c: E2 [11:02:43]MH_I2C_Read... [11:02:43]Read from MH i2c: E2 0E 00 [11:02:43]MH_I2C_Read... [11:02:43]Read from MH i2c: E2 0E 00 56 45 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 E5 [11:02:43]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [11:02:43]wFMCommunicate OK [11:02:43]SAM_PROTO_GetShiftState done [11:02:43]FM_GetShiftState done [11:02:43]opened in 1729989044 [11:02:43]opened+sec_in_day 1730075444 [11:02:43]quantity*price = 100015 [11:02:43]sum+1 = 100017 [11:02:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 72 27.10.2024 11:02 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156521 ФПД: 141638674146056 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T110248&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156521&fm=141638674146056&tin=02508201610067®Number=0000000000091693&sum=100000 [11:02:44]StoreToDocumentArchive [11:02:44]shift 537 fd 156521 [11:02:44]save to /storage/0537/doc_00156521 [11:02:44]save last doc name /storage/0537/doc_00156521 to /storage/kkm_last_doc_name [11:02:44]save OK [11:02:44]Clear old archive folders... [11:02:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:02:44]tlvbuf is 01782C50 [11:02:44]SAM_PROTO_ClearQueue [11:02:44]wFMCommunicate request_size=4 [11:02:44]MH_SAM_APDU [11:02:44]CAPDU: 80 09 00 00 [11:02:44]Write to MH i2c: E2 08 00 63 45 80 09 00 00 00 00 00 00 1A [11:02:44]Write i2c OK [11:02:44]MH_I2C_Read... [11:02:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:02:44]Read from MH i2c: E2 [11:02:44]MH_I2C_Read... [11:02:44]Read from MH i2c: E2 03 00 [11:02:44]MH_I2C_Read... [11:02:44]Read from MH i2c: E2 03 00 63 45 00 90 00 1C [11:02:44]RAPDU: 90 00 [11:02:44]wFMCommunicate OK [11:02:44]SAM_PROTO_ClearQueue done [11:02:44]KKMCreateOFDPacket [11:02:44]OFDProtocolAddRootSTLVToBuf [11:02:44]FM_MakeSignedData [11:02:44]FM_MakeSignedData [11:02:44]SAM_PROTO_SignData [11:02:44]wFMCommunicate request_size=4 [11:02:44]MH_SAM_APDU [11:02:44]CAPDU: 80 0D 01 02 [11:02:44]Write to MH i2c: E2 08 00 64 45 80 0D 01 02 00 00 00 00 22 [11:02:44]Write i2c OK [11:02:44]MH_I2C_Read... [11:02:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:02:44]Read from MH i2c: E2 [11:02:44]MH_I2C_Read... [11:02:44]Read from MH i2c: E2 03 00 [11:02:44]MH_I2C_Read... [11:02:44]Read from MH i2c: E2 03 00 64 45 00 90 00 1D [11:02:44]RAPDU: 90 00 [11:02:44]wFMCommunicate OK [11:02:44]wFMCommunicate request_size=255 [11:02:44]MH_SAM_APDU [11:02: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 D8 1D 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 69 63 02 00 35 04 06 00 80 [11:02:44]Write to MH i2c: E2 02 01 65 45 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 D8 1D 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 69 63 02 00 35 04 06 00 80 00 00 DB [11:02:44]Write i2c OK [11:02:44]MH_I2C_Read... [11:02:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:44]Read from MH i2c: E2 [11:02:44]MH_I2C_Read... [11:02:44]Read from MH i2c: E2 03 00 [11:02:44]MH_I2C_Read... [11:02:44]Read from MH i2c: E2 03 00 65 45 00 90 00 1E [11:02:44]RAPDU: 90 00 [11:02:44]wFMCommunicate OK [11:02:44]wFMCommunicate request_size=10 [11:02:44]MH_SAM_APDU [11:02:44]CAPDU: 80 0D 02 02 05 D1 D2 DB E3 08 [11:02:44]Write to MH i2c: E2 0D 00 66 45 80 0D 02 02 05 00 D1 D2 DB E3 08 00 00 98 [11:02:44]Write i2c OK [11:02:44]MH_I2C_Read... [11:02:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:44]Read from MH i2c: E2 [11:02:44]MH_I2C_Read... [11:02:44]Read from MH i2c: E2 03 00 [11:02:44]MH_I2C_Read... [11:02:44]Read from MH i2c: E2 03 00 66 45 00 90 00 1F [11:02:44]RAPDU: 90 00 [11:02:44]wFMCommunicate OK [11:02:44]wFMCommunicate request_size=4 [11:02:44]MH_SAM_APDU [11:02:44]CAPDU: 80 0D 03 02 [11:02:44]Write to MH i2c: E2 08 00 67 45 80 0D 03 02 00 00 00 00 27 [11:02:44]Write i2c OK [11:02:44]MH_I2C_Read... [11:02:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:02:44]Read from MH i2c: E2 [11:02:44]MH_I2C_Read... [11:02:44]Read from MH i2c: E2 0B 00 [11:02:44]MH_I2C_Read... [11:02:44]Read from MH i2c: E2 0B 00 67 45 00 57 55 31 6E C4 82 0D AF 90 00 75 [11:02:44]RAPDU: 57 55 31 6E C4 82 0D AF 90 00 [11:02:44]wFMCommunicate OK [11:02:44]SAM_PROTO_SignData done [11:02:44]FM_MakeSignedData done [11:02:44]CreateOFDProtocolMessage [11:02:44]wFMCommunicate request_size=4 [11:02:44]MH_SAM_APDU [11:02:44]CAPDU: 80 11 00 00 [11:02:44]Write to MH i2c: E2 08 00 68 45 80 11 00 00 00 00 00 00 27 [11:02:44]Write i2c OK [11:02:44]MH_I2C_Read... [11:02:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:44]Read from MH i2c: E2 [11:02:44]MH_I2C_Read... [11:02:44]Read from MH i2c: E2 17 00 [11:02:44]MH_I2C_Read... [11:02:44]Read from MH i2c: E2 17 00 68 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 7C [11:02:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:02:44]wFMCommunicate OK [11:02:44]CreateOFDProtocolMessage done [11:02:44]OFDSenderStorePacket 156521 [11:02:44]StoreOFDPacket docnum=156521 [11:02:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 B0 4D 07 01 AC 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 D8 1D 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 69 63 02 00 35 04 06 00 80 D1 D2 DB E3 08 57 55 31 6E C4 82 0D AF [11:02:44]CheckFolder [11:02:44]dirname=/storage/ofd_packets [11:02:44]CheckFolder done [11:02:44]ProducePacketName [11:02:44]name=ofd_packets/00156521 [11:02:44]NVStorageSaveData ofd_packets/00156521 [11:02:44]File name is /storage/ofd_packets/00156521 [11:02:44]Write 301 bytes [11:02:44]NVStorageSaveData done [11:02:44]OFDSenderStorePacket done [11:02:44]KKMCreateOFDPacket done [11:02:44]NVStorageSaveData kkm_last_timestamp [11:02:44]File name is /storage/kkm_last_timestamp [11:02:44]Write 4 bytes [11:02:44]NVStorageSaveData done [11:02:44]ExternCall_PrintAddStr [11:02:44]wPrintStart [11:02:44]Write to MH i2c: 01 00 00 69 45 AE [11:02:44]Write i2c OK [11:02:44]MH_I2C_Read... [11:02:44]Read from MH i2c: 01 [11:02:44]MH_I2C_Read... [11:02:44]Read from MH i2c: 01 07 00 [11:02:44]MH_I2C_Read... [11:02:44]Read from MH i2c: 01 07 00 69 45 00 00 00 00 00 FF 0F C3 [11:02:44]RasterBufferAndPrint [11:02:44]line Счет N : (1)99335 [11:02:44]line ИНН: 02508201610067 [11:02:44]line Контрольно-Кассовый Чек [11:02:44]line ПРОДАЖА [11:02:44]line ТРК (МРК, ГНК) : 21 [11:02:44]line Товар: 2710124130 [11:02:44]line Аи-92-К-5 [11:02:44]line 14.950 * 66.90 [11:02:44]line = 1000.16 [11:02:44]line НДС 12% НСП 1% [11:02:44]line > о реализуемом товаре [11:02:44]line ОКРУГЛЕНИЕ: -0.16 [11:02:44]line ИТОГО: 1000.00 [11:02:44]line Внесено: 1000.00 [11:02:44]line СДАЧА: 0.00 [11:02:44]line НСП 1% : 8.85 [11:02:44]line НДС 12% : 106.21 [11:02:44]line Наличными: 1000.00 [11:02:44]line Безнал.: 0.00 [11:02:44]line Место: АЗС № 143 "Партнер Нефть" [11:02:44]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [11:02:44]OFD Sender: Processing packet 156521 [packets to send 31, broken 30] [11:02:44]ProducePacketName [11:02:44]name=ofd_packets/00156521 [11:02:44]OFD Sender: To server: pG, [11:02:44]CommunicateWithHost lk.salyk.kg:30040 [11:02:44]ConnectInit lk.salyk.kg [11:02:44]line СНО: Общий режим [11:02:44]line Чек 72 27.10.2024 11:02 [11:02:44]line Смена: 537 ФФД: 1.0 [11:02:44]line ЗНМ: 0300000096 [11:02:44]line РНМ: 0000000000091693 [11:02:44]line Версия ККМ: 001 [11:02:44]line ФМ: 0000000000871792 [11:02:44]line ФД: 156521 [11:02:44]line ФПД: 141638674146056 [11:02:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T110248&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156521&fm=141638674146056&tin=02508201610067®Number=0000000000091693&sum=100000 [11:02:44]written 0, free lines is 4095 [11:02:44]Connected sock=11 [11:02:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 B0 4D 07 01 AC 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 D8 1D 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 69 63 02 00 35 04 06 00 80 D1 D2 DB E3 08 57 55 31 6E C4 82 0D AF [11:02:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 5F 6E 47 00 D5 42 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 69 63 02 00 F4 03 04 00 47 C3 1D 67 B6 04 01 00 00 D4 A3 D9 49 DA 6D E3 6D [11:02:45]CommunicateWithHost err = 0 [11:02:45]CheckOFDResponse [11:02:45]1017 (14) - 77093643461234 [11:02:45]1041 (16) - 0000000000871792 [11:02:45]1040 (4) - 156521 [11:02:45]1012 (4) - 27.10.2024 04:36 [11:02:45]1206 (1) - 0 [11:02:45]OFD Sender: Remove packet 156521 [11:02:45]ProducePacketName [11:02:45]name=ofd_packets/00156521 [11:02:45]NVStorageDeleteData [11:02:45]Write to MH i2c: 01 00 00 94 45 D9 [11:02:45]Write i2c OK [11:02:45]MH_I2C_Read... [11:02:45]Read from MH i2c: 01 [11:02:45]MH_I2C_Read... [11:02:45]Read from MH i2c: 01 07 00 [11:02:45]MH_I2C_Read... [11:02:45]Read from MH i2c: 01 07 00 94 45 00 00 00 00 00 E4 0C D0 [11:02:45]RasterBufferAndPrint [11:02:45]line [11:02:45]line [11:02:45]line [11:02:45]line [11:02:45]line [11:02:45]written 0, free lines is 3306 [11:02:45]process_action close_receipt done [11:02:45]requested_data is exist [11:02:45]produce_requested_data [11:02:45]requested_item fm.sn is exist - process it [11:02:45]wFMCommunicate request_size=4 [11:02:45]MH_SAM_APDU [11:02:45]CAPDU: 80 11 00 00 [11:02:45]Write to MH i2c: E2 08 00 9B 45 80 11 00 00 00 00 00 00 5A [11:02:45]Write i2c OK [11:02:45]MH_I2C_Read... [11:02:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:45]Read from MH i2c: E2 [11:02:45]MH_I2C_Read... [11:02:45]Read from MH i2c: E2 17 00 [11:02:45]MH_I2C_Read... [11:02:45]Read from MH i2c: E2 17 00 9B 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 AF [11:02:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:02:45]wFMCommunicate OK [11:02:45]requested_item fd.num is exist - process it [11:02:45]SAM_PROTO_GetFieldsCounters [11:02:45]wFMCommunicate request_size=4 [11:02:45]MH_SAM_APDU [11:02:45]CAPDU: 80 13 00 00 [11:02:45]Write to MH i2c: E2 08 00 9C 45 80 13 00 00 00 00 00 00 5D [11:02:45]Write i2c OK [11:02:45]MH_I2C_Read... [11:02:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:02:45]Read from MH i2c: E2 [11:02:45]MH_I2C_Read... [11:02:45]Read from MH i2c: E2 62 00 [11:02:45]MH_I2C_Read... [11:02:45]Read from MH i2c: E2 62 00 9C 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 69 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 44 [11:02:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 69 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:02:45]wFMCommunicate OK [11:02:45]SAM_PROTO_GetFieldsCounters done [11:02:45]requested_item shift.num is exist - process it [11:02:45]requested_item shift.opened is exist - process it [11:02:45]req_shift_opened [11:02:45]FM_GetShiftState [11:02:45]SAM_PROTO_GetShiftState [11:02:45]wFMCommunicate request_size=4 [11:02:45]MH_SAM_APDU [11:02:45]CAPDU: 80 13 01 00 [11:02:45]Write to MH i2c: E2 08 00 9D 45 80 13 01 00 00 00 00 00 5F [11:02:45]Write i2c OK [11:02:45]MH_I2C_Read... [11:02:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:45]Read from MH i2c: E2 [11:02:45]MH_I2C_Read... [11:02:45]Read from MH i2c: E2 0E 00 [11:02:45]MH_I2C_Read... [11:02:45]Read from MH i2c: E2 0E 00 9D 45 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 2C [11:02:45]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [11:02:45]wFMCommunicate OK [11:02:45]SAM_PROTO_GetShiftState done [11:02:45]FM_GetShiftState done [11:02:45]req_shift_opened done [11:02:45]requested_item shift.open_date is exist - process it [11:02:45]req_shift_open_date [11:02:45]req_shift_open_date done [11:02:45]produce_requested_data done [11:02:45]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156521,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [11:02:45]process_action_free close_receipt [11:02:45]json_value_free [11:02:45]json_value_free done [11:02:45]process_json_proto returns [11:02:45]Send response to host [11:02:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156521,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [11:02:45]free response buf [11:02:45]execute_script done [11:02:45]execute_script returns [11:02:45]free content buf [11:02:45]Sock 9.Close socket [11:02:45]Sock 9.Thread stoped [11:02:45]OFD Sender: No OFD packet to send [11:02:50]OFD Sender: No OFD packet to send [11:02:55]OFD Sender: No OFD packet to send [11:03:00]OFD Sender: No OFD packet to send [11:03:05]OFD Sender: No OFD packet to send [11:03:10]OFD Sender: No OFD packet to send [11:03:15]OFD Sender: No OFD packet to send [11:03:20]OFD Sender: No OFD packet to send [11:03:25]OFD Sender: No OFD packet to send [11:03:30]OFD Sender: No OFD packet to send [11:03:35]OFD Sender: No OFD packet to send [11:03:40]OFD Sender: No OFD packet to send [11:03:45]OFD Sender: No OFD packet to send [11:03:50]OFD Sender: No OFD packet to send [11:03:55]OFD Sender: No OFD packet to send [11:04:00]OFD Sender: No OFD packet to send [11:04:05]OFD Sender: No OFD packet to send [11:04:10]OFD Sender: No OFD packet to send [11:04:15]OFD Sender: No OFD packet to send [11:04:20]OFD Sender: No OFD packet to send [11:04:25]OFD Sender: No OFD packet to send [11:04:30]OFD Sender: No OFD packet to send [11:04:35]OFD Sender: No OFD packet to send [11:04:40]OFD Sender: No OFD packet to send [11:04:45]OFD Sender: No OFD packet to send [11:04:50]OFD Sender: No OFD packet to send [11:04:55]OFD Sender: No OFD packet to send [11:05:00]OFD Sender: No OFD packet to send [11:05:03]accept exits with 8 [11:05:03]New connection [11:05:03]New thread 3066834276 created [11:05:03]Thread 3066977636 joined [11:05:03]Waiting for new connection... [11:05:03] Sock 8.Parse request [11:05:03]Sock 8.Check first char [11:05:03]Sock 8.First char is OK [11:05:03]request: POST /json_proto HTTP/1.0 [11:05:03]Method: POST [11:05:03]URL: /json_proto [11:05:03]Method is POST - this is cgi request [11:05:03]url: /json_proto [11:05:03]query_string will be loaded in cgi processing [11:05:03]execute_cgi json_proto POST (null) [11:05:03]execute_cgi path=json_proto method=POST [11:05:03]POST find Content-Length [11:05:03]Host: 172.17.63.3:8080 [11:05:03]Content-Length: 677 [11:05:03]Content-Type: application/json [11:05:03] [11:05:03]POST finish read [11:05:03]Found Content-Length = 677 [11:05:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99336", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "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" ] } } [11:05:03]execute_script... [11:05: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)99336", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "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" ] } } [11:05:03]POST & json_proto [11:05:03]process_json_proto [11:05:03]json parsed OK: [11:05:03]protocol is kg_v1.0 [11:05:03]action value=close_receipt [11:05:03]process_action close_receipt [11:05:03]cmd_close_receipt [11:05:03]MH_GetDate [11:05:03]Write to MH i2c: F0 00 00 9E 45 D2 [11:05:03]Write i2c OK [11:05:03]MH_I2C_Read... [11:05:03]Read from MH i2c: F0 [11:05:03]MH_I2C_Read... [11:05:03]Read from MH i2c: F0 09 00 [11:05:03]MH_I2C_Read... [11:05:03]Read from MH i2c: F0 09 00 9E 45 00 64 1E 1E 67 50 D1 6C 64 D3 [11:05:03]GetLastDocTimeStamp 1730026968 [11:05:03]current date 1730027108 [11:05:03]FM_GetShiftState [11:05:03]SAM_PROTO_GetShiftState [11:05:03]wFMCommunicate request_size=4 [11:05:03]MH_SAM_APDU [11:05:03]CAPDU: 80 13 01 00 [11:05:03]Write to MH i2c: E2 08 00 9F 45 80 13 01 00 00 00 00 00 61 [11:05:03]Write i2c OK [11:05:03]MH_I2C_Read... [11:05:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:05:03]Read from MH i2c: E2 [11:05:03]MH_I2C_Read... [11:05:03]Read from MH i2c: E2 0E 00 [11:05:03]MH_I2C_Read... [11:05:03]Read from MH i2c: E2 0E 00 9F 45 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 2E [11:05:03]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [11:05:03]wFMCommunicate OK [11:05:03]SAM_PROTO_GetShiftState done [11:05:03]FM_GetShiftState done [11:05:03]opened in 1729989044 [11:05:03]opened+sec_in_day 1730075444 [11:05:03]quantity*price = 80012 [11:05:03]sum+1 = 80013 [11:05:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 73 27.10.2024 11:05 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156522 ФПД: 190341057563630 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T110508&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156522&fm=190341057563630&tin=02508201610067®Number=0000000000091693&sum=80000 [11:05:04]StoreToDocumentArchive [11:05:04]shift 537 fd 156522 [11:05:04]save to /storage/0537/doc_00156522 [11:05:04]save last doc name /storage/0537/doc_00156522 to /storage/kkm_last_doc_name [11:05:04]save OK [11:05:04]Clear old archive folders... [11:05:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:05:04]tlvbuf is B6F5E980 [11:05:04]SAM_PROTO_ClearQueue [11:05:04]wFMCommunicate request_size=4 [11:05:04]MH_SAM_APDU [11:05:04]CAPDU: 80 09 00 00 [11:05:04]Write to MH i2c: E2 08 00 AC 45 80 09 00 00 00 00 00 00 63 [11:05:04]Write i2c OK [11:05:04]MH_I2C_Read... [11:05:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:05:04]Read from MH i2c: E2 [11:05:04]MH_I2C_Read... [11:05:04]Read from MH i2c: E2 03 00 [11:05:04]MH_I2C_Read... [11:05:04]Read from MH i2c: E2 03 00 AC 45 00 90 00 65 [11:05:04]RAPDU: 90 00 [11:05:04]wFMCommunicate OK [11:05:04]SAM_PROTO_ClearQueue done [11:05:04]KKMCreateOFDPacket [11:05:04]OFDProtocolAddRootSTLVToBuf [11:05:04]FM_MakeSignedData [11:05:04]FM_MakeSignedData [11:05:04]SAM_PROTO_SignData [11:05:04]wFMCommunicate request_size=4 [11:05:04]MH_SAM_APDU [11:05:04]CAPDU: 80 0D 01 02 [11:05:04]Write to MH i2c: E2 08 00 AD 45 80 0D 01 02 00 00 00 00 6B [11:05:04]Write i2c OK [11:05:04]MH_I2C_Read... [11:05:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:05:04]Read from MH i2c: E2 [11:05:04]MH_I2C_Read... [11:05:04]Read from MH i2c: E2 03 00 [11:05:04]MH_I2C_Read... [11:05:04]Read from MH i2c: E2 03 00 AD 45 00 90 00 66 [11:05:04]RAPDU: 90 00 [11:05:04]wFMCommunicate OK [11:05:04]wFMCommunicate request_size=255 [11:05:04]MH_SAM_APDU [11:05: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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 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 49 00 00 00 F4 03 04 00 64 1E 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 6A 63 02 00 35 04 06 00 AD [11:05:04]Write to MH i2c: E2 02 01 AE 45 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 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 49 00 00 00 F4 03 04 00 64 1E 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 6A 63 02 00 35 04 06 00 AD 00 00 D2 [11:05:04]Write i2c OK [11:05:04]MH_I2C_Read... [11:05:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:04]Read from MH i2c: E2 [11:05:04]MH_I2C_Read... [11:05:04]Read from MH i2c: E2 03 00 [11:05:04]MH_I2C_Read... [11:05:04]Read from MH i2c: E2 03 00 AE 45 00 90 00 67 [11:05:04]RAPDU: 90 00 [11:05:04]wFMCommunicate OK [11:05:04]wFMCommunicate request_size=10 [11:05:04]MH_SAM_APDU [11:05:04]CAPDU: 80 0D 02 02 05 1D 3B 1F 4B EE [11:05:04]Write to MH i2c: E2 0D 00 AF 45 80 0D 02 02 05 00 1D 3B 1F 4B EE 00 00 28 [11:05:04]Write i2c OK [11:05:04]MH_I2C_Read... [11:05:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:04]Read from MH i2c: E2 [11:05:04]MH_I2C_Read... [11:05:04]Read from MH i2c: E2 03 00 [11:05:04]MH_I2C_Read... [11:05:04]Read from MH i2c: E2 03 00 AF 45 00 90 00 68 [11:05:04]RAPDU: 90 00 [11:05:04]wFMCommunicate OK [11:05:04]wFMCommunicate request_size=4 [11:05:04]MH_SAM_APDU [11:05:04]CAPDU: 80 0D 03 02 [11:05:04]Write to MH i2c: E2 08 00 B0 45 80 0D 03 02 00 00 00 00 70 [11:05:04]Write i2c OK [11:05:04]MH_I2C_Read... [11:05:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:05:04]Read from MH i2c: E2 [11:05:04]MH_I2C_Read... [11:05:04]Read from MH i2c: E2 0B 00 [11:05:04]MH_I2C_Read... [11:05:04]Read from MH i2c: E2 0B 00 B0 45 00 0A 37 4F 57 36 E1 1D 91 90 00 1D [11:05:04]RAPDU: 0A 37 4F 57 36 E1 1D 91 90 00 [11:05:04]wFMCommunicate OK [11:05:04]SAM_PROTO_SignData done [11:05:04]FM_MakeSignedData done [11:05:04]CreateOFDProtocolMessage [11:05:04]wFMCommunicate request_size=4 [11:05:04]MH_SAM_APDU [11:05:04]CAPDU: 80 11 00 00 [11:05:04]Write to MH i2c: E2 08 00 B1 45 80 11 00 00 00 00 00 00 70 [11:05:04]Write i2c OK [11:05:04]MH_I2C_Read... [11:05:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:05:04]Read from MH i2c: E2 [11:05:04]MH_I2C_Read... [11:05:04]Read from MH i2c: E2 17 00 [11:05:04]MH_I2C_Read... [11:05:04]Read from MH i2c: E2 17 00 B1 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 C5 [11:05:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:05:04]wFMCommunicate OK [11:05:04]CreateOFDProtocolMessage done [11:05:04]OFDSenderStorePacket 156522 [11:05:04]StoreOFDPacket docnum=156522 [11:05:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 1B A4 07 01 04 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 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 49 00 00 00 F4 03 04 00 64 1E 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 6A 63 02 00 35 04 06 00 AD 1D 3B 1F 4B EE 0A 37 4F 57 36 E1 1D 91 [11:05:04]CheckFolder [11:05:04]dirname=/storage/ofd_packets [11:05:04]CheckFolder done [11:05:04]ProducePacketName [11:05:04]name=ofd_packets/00156522 [11:05:04]NVStorageSaveData ofd_packets/00156522 [11:05:04]File name is /storage/ofd_packets/00156522 [11:05:04]Write 301 bytes [11:05:04]NVStorageSaveData done [11:05:04]OFDSenderStorePacket done [11:05:04]KKMCreateOFDPacket done [11:05:04]NVStorageSaveData kkm_last_timestamp [11:05:04]File name is /storage/kkm_last_timestamp [11:05:04]Write 4 bytes [11:05:04]NVStorageSaveData done [11:05:04]OFD Sender: Processing packet 156522 [packets to send 31, broken 30] [11:05:04]ProducePacketName [11:05:04]name=ofd_packets/00156522 [11:05:04]OFD Sender: To server: pG, [11:05:04]CommunicateWithHost lk.salyk.kg:30040 [11:05:04]ConnectInit lk.salyk.kg [11:05:04]ExternCall_PrintAddStr [11:05:04]wPrintStart [11:05:04]Write to MH i2c: 01 00 00 B2 45 F7 [11:05:04]Write i2c OK [11:05:04]MH_I2C_Read... [11:05:04]Read from MH i2c: 01 [11:05:04]MH_I2C_Read... [11:05:04]Read from MH i2c: 01 07 00 [11:05:04]MH_I2C_Read... [11:05:04]Read from MH i2c: 01 07 00 B2 45 00 00 00 00 00 FF 0F 0C [11:05:04]RasterBufferAndPrint [11:05:04]line Счет N : (1)99336 [11:05:04]line ИНН: 02508201610067 [11:05:04]line Контрольно-Кассовый Чек [11:05:04]line ПРОДАЖА [11:05:04]line ТРК (МРК, ГНК) : 21 [11:05:04]line Товар: 2710124130 [11:05:04]line Аи-92-К-5 [11:05:04]line 11.960 * 66.90 [11:05:04]line = 800.12 [11:05:04]line НДС 12% НСП 1% [11:05:04]line > о реализуемом товаре [11:05:04]line ОКРУГЛЕНИЕ: -0.12 [11:05:04]line ИТОГО: 800.00 [11:05:04]line Внесено: 800.00 [11:05:04]line СДАЧА: 0.00 [11:05:04]line НСП 1% : 7.08 [11:05:04]line НДС 12% : 84.97 [11:05:04]line Наличными: 800.00 [11:05:04]line Безнал.: 0.00 [11:05:04]line Место: АЗС № 143 "Партнер Нефть" [11:05:04]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [11:05:04]line СНО: Общий режим [11:05:04]line Чек 73 27.10.2024 11:05 [11:05:04]line Смена: 537 ФФД: 1.0 [11:05:04]line ЗНМ: 0300000096 [11:05:04]line РНМ: 0000000000091693 [11:05:04]line Версия ККМ: 001 [11:05:04]line ФМ: 0000000000871792 [11:05:04]line ФД: 156522 [11:05:04]line ФПД: 190341057563630 [11:05:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T110508&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156522&fm=190341057563630&tin=02508201610067®Number=0000000000091693&sum=80000 [11:05:05]Connected sock=11 [11:05:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 1B A4 07 01 04 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 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 49 00 00 00 F4 03 04 00 64 1E 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 6A 63 02 00 35 04 06 00 AD 1D 3B 1F 4B EE 0A 37 4F 57 36 E1 1D 91 [11:05:05]written 0, free lines is 4095 [11:05:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 33 E0 47 00 46 B1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 6A 63 02 00 F4 03 04 00 D4 C3 1D 67 B6 04 01 00 00 30 4C 05 03 89 A1 62 F3 [11:05:05]CommunicateWithHost err = 0 [11:05:05]CheckOFDResponse [11:05:05]1017 (14) - 77093643461234 [11:05:05]1041 (16) - 0000000000871792 [11:05:05]1040 (4) - 156522 [11:05:05]1012 (4) - 27.10.2024 04:38 [11:05:05]1206 (1) - 0 [11:05:05]OFD Sender: Remove packet 156522 [11:05:05]ProducePacketName [11:05:05]name=ofd_packets/00156522 [11:05:05]NVStorageDeleteData [11:05:05]Write to MH i2c: 01 00 00 DD 45 22 [11:05:05]Write i2c OK [11:05:05]MH_I2C_Read... [11:05:05]Read from MH i2c: 01 [11:05:05]MH_I2C_Read... [11:05:05]Read from MH i2c: 01 07 00 [11:05:05]MH_I2C_Read... [11:05:05]Read from MH i2c: 01 07 00 DD 45 00 00 00 00 00 E0 0C 15 [11:05:05]RasterBufferAndPrint [11:05:05]line [11:05:05]line [11:05:05]line [11:05:05]line [11:05:05]line [11:05:05]written 0, free lines is 3302 [11:05:05]process_action close_receipt done [11:05:05]requested_data is exist [11:05:05]produce_requested_data [11:05:05]requested_item fm.sn is exist - process it [11:05:05]wFMCommunicate request_size=4 [11:05:05]MH_SAM_APDU [11:05:05]CAPDU: 80 11 00 00 [11:05:05]Write to MH i2c: E2 08 00 E4 45 80 11 00 00 00 00 00 00 A3 [11:05:05]Write i2c OK [11:05:05]MH_I2C_Read... [11:05:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:05:05]Read from MH i2c: E2 [11:05:05]MH_I2C_Read... [11:05:05]Read from MH i2c: E2 17 00 [11:05:05]MH_I2C_Read... [11:05:05]Read from MH i2c: E2 17 00 E4 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 F8 [11:05:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:05:05]wFMCommunicate OK [11:05:05]requested_item fd.num is exist - process it [11:05:05]SAM_PROTO_GetFieldsCounters [11:05:05]wFMCommunicate request_size=4 [11:05:05]MH_SAM_APDU [11:05:05]CAPDU: 80 13 00 00 [11:05:05]Write to MH i2c: E2 08 00 E5 45 80 13 00 00 00 00 00 00 A6 [11:05:05]Write i2c OK [11:05:05]MH_I2C_Read... [11:05:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:05:05]Read from MH i2c: E2 [11:05:05]MH_I2C_Read... [11:05:05]Read from MH i2c: E2 62 00 [11:05:05]MH_I2C_Read... [11:05:05]Read from MH i2c: E2 62 00 E5 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 6A 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 91 [11:05:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 6A 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:05:05]wFMCommunicate OK [11:05:05]SAM_PROTO_GetFieldsCounters done [11:05:05]requested_item shift.num is exist - process it [11:05:05]requested_item shift.opened is exist - process it [11:05:05]req_shift_opened [11:05:05]FM_GetShiftState [11:05:05]SAM_PROTO_GetShiftState [11:05:05]wFMCommunicate request_size=4 [11:05:05]MH_SAM_APDU [11:05:05]CAPDU: 80 13 01 00 [11:05:05]Write to MH i2c: E2 08 00 E6 45 80 13 01 00 00 00 00 00 A8 [11:05:05]Write i2c OK [11:05:05]MH_I2C_Read... [11:05:05]OFD Sender: No OFD packet to send [11:05:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:05:05]Read from MH i2c: E2 [11:05:05]MH_I2C_Read... [11:05:05]Read from MH i2c: E2 0E 00 [11:05:05]MH_I2C_Read... [11:05:05]Read from MH i2c: E2 0E 00 E6 45 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 75 [11:05:05]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [11:05:05]wFMCommunicate OK [11:05:05]SAM_PROTO_GetShiftState done [11:05:05]FM_GetShiftState done [11:05:05]req_shift_opened done [11:05:05]requested_item shift.open_date is exist - process it [11:05:05]req_shift_open_date [11:05:05]req_shift_open_date done [11:05:05]produce_requested_data done [11:05:05]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156522,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [11:05:05]process_action_free close_receipt [11:05:05]json_value_free [11:05:05]json_value_free done [11:05:05]process_json_proto returns [11:05:05]Send response to host [11:05:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156522,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [11:05:05]free response buf [11:05:05]execute_script done [11:05:05]execute_script returns [11:05:05]free content buf [11:05:05]Sock 8.Close socket [11:05:05]Sock 8.Thread stoped [11:05:10]OFD Sender: No OFD packet to send [11:05:15]OFD Sender: No OFD packet to send [11:05:20]OFD Sender: No OFD packet to send [11:05:25]OFD Sender: No OFD packet to send [11:05:30]OFD Sender: No OFD packet to send [11:05:35]OFD Sender: No OFD packet to send [11:05:40]OFD Sender: No OFD packet to send [11:05:45]OFD Sender: No OFD packet to send [11:05:50]OFD Sender: No OFD packet to send [11:05:55]OFD Sender: No OFD packet to send [11:06:00]OFD Sender: No OFD packet to send [11:06:05]OFD Sender: No OFD packet to send [11:06:10]OFD Sender: No OFD packet to send [11:06:15]OFD Sender: No OFD packet to send [11:06:21]OFD Sender: No OFD packet to send [11:06:26]OFD Sender: No OFD packet to send [11:06:31]OFD Sender: No OFD packet to send [11:06:36]OFD Sender: No OFD packet to send [11:06:41]OFD Sender: No OFD packet to send [11:06:42]accept exits with 9 [11:06:42]New connection [11:06:42]New thread 3066977636 created [11:06:42]Thread 3066834276 joined [11:06:42]Waiting for new connection... [11:06:42] Sock 9.Parse request [11:06:42]Sock 9.Check first char [11:06:42]Sock 9.First char is OK [11:06:42]request: POST /json_proto HTTP/1.0 [11:06:42]Method: POST [11:06:42]URL: /json_proto [11:06:42]Method is POST - this is cgi request [11:06:42]url: /json_proto [11:06:42]query_string will be loaded in cgi processing [11:06:42]execute_cgi json_proto POST (null) [11:06:42]execute_cgi path=json_proto method=POST [11:06:42]POST find Content-Length [11:06:42]Host: 172.17.63.3:8080 [11:06:42]Content-Length: 676 [11:06:42]Content-Type: application/json [11:06:42] [11:06:42]POST finish read [11:06:42]Found Content-Length = 676 [11:06:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99338", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:06:42]execute_script... [11:06: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)99338", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:06:42]POST & json_proto [11:06:42]process_json_proto [11:06:42]json parsed OK: [11:06:42]protocol is kg_v1.0 [11:06:42]action value=close_receipt [11:06:42]process_action close_receipt [11:06:42]cmd_close_receipt [11:06:42]MH_GetDate [11:06:42]Write to MH i2c: F0 00 00 E7 45 1B [11:06:42]Write i2c OK [11:06:42]MH_I2C_Read... [11:06:42]Read from MH i2c: F0 [11:06:42]MH_I2C_Read... [11:06:42]Read from MH i2c: F0 09 00 [11:06:42]MH_I2C_Read... [11:06:42]Read from MH i2c: F0 09 00 E7 45 00 C7 1E 1E 67 50 D1 6C 64 7F [11:06:42]GetLastDocTimeStamp 1730027108 [11:06:42]current date 1730027207 [11:06:42]FM_GetShiftState [11:06:42]SAM_PROTO_GetShiftState [11:06:42]wFMCommunicate request_size=4 [11:06:42]MH_SAM_APDU [11:06:42]CAPDU: 80 13 01 00 [11:06:42]Write to MH i2c: E2 08 00 E8 45 80 13 01 00 00 00 00 00 AA [11:06:42]Write i2c OK [11:06:42]MH_I2C_Read... [11:06:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:06:42]Read from MH i2c: E2 [11:06:42]MH_I2C_Read... [11:06:42]Read from MH i2c: E2 0E 00 [11:06:42]MH_I2C_Read... [11:06:42]Read from MH i2c: E2 0E 00 E8 45 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 77 [11:06:42]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [11:06:42]wFMCommunicate OK [11:06:42]SAM_PROTO_GetShiftState done [11:06:42]FM_GetShiftState done [11:06:42]opened in 1729989044 [11:06:42]opened+sec_in_day 1730075444 [11:06:42]quantity*price = 20003 [11:06:42]sum+1 = 20004 [11:06:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 74 27.10.2024 11:06 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156523 ФПД: 14171192409327 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T110647&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156523&fm=14171192409327&tin=02508201610067®Number=0000000000091693&sum=20000 [11:06:43]StoreToDocumentArchive [11:06:43]shift 537 fd 156523 [11:06:43]save to /storage/0537/doc_00156523 [11:06:43]save last doc name /storage/0537/doc_00156523 to /storage/kkm_last_doc_name [11:06:43]save OK [11:06:43]Clear old archive folders... [11:06:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:06:43]tlvbuf is 017633D0 [11:06:43]SAM_PROTO_ClearQueue [11:06:43]wFMCommunicate request_size=4 [11:06:43]MH_SAM_APDU [11:06:43]CAPDU: 80 09 00 00 [11:06:43]Write to MH i2c: E2 08 00 F5 45 80 09 00 00 00 00 00 00 AC [11:06:43]Write i2c OK [11:06:43]MH_I2C_Read... [11:06:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:06:43]Read from MH i2c: E2 [11:06:43]MH_I2C_Read... [11:06:43]Read from MH i2c: E2 03 00 [11:06:43]MH_I2C_Read... [11:06:43]Read from MH i2c: E2 03 00 F5 45 00 90 00 AE [11:06:43]RAPDU: 90 00 [11:06:43]wFMCommunicate OK [11:06:43]SAM_PROTO_ClearQueue done [11:06:43]KKMCreateOFDPacket [11:06:43]OFDProtocolAddRootSTLVToBuf [11:06:43]FM_MakeSignedData [11:06:43]FM_MakeSignedData [11:06:43]SAM_PROTO_SignData [11:06:43]wFMCommunicate request_size=4 [11:06:43]MH_SAM_APDU [11:06:43]CAPDU: 80 0D 01 02 [11:06:43]Write to MH i2c: E2 08 00 F6 45 80 0D 01 02 00 00 00 00 B4 [11:06:43]Write i2c OK [11:06:43]MH_I2C_Read... [11:06:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:06:43]Read from MH i2c: E2 [11:06:43]MH_I2C_Read... [11:06:43]Read from MH i2c: E2 03 00 [11:06:43]MH_I2C_Read... [11:06:43]Read from MH i2c: E2 03 00 F6 45 00 90 00 AF [11:06:43]RAPDU: 90 00 [11:06:43]wFMCommunicate OK [11:06:43]wFMCommunicate request_size=255 [11:06:43]MH_SAM_APDU [11:06:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 4A 00 00 00 F4 03 04 00 C7 1E 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 6B 63 02 00 35 04 06 00 0C [11:06:43]Write to MH i2c: E2 02 01 F7 45 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 4A 00 00 00 F4 03 04 00 C7 1E 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 6B 63 02 00 35 04 06 00 0C 00 00 B5 [11:06:43]Write i2c OK [11:06:43]MH_I2C_Read... [11:06:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:06:43]Read from MH i2c: E2 [11:06:43]MH_I2C_Read... [11:06:43]Read from MH i2c: E2 03 00 [11:06:43]MH_I2C_Read... [11:06:43]Read from MH i2c: E2 03 00 F7 45 00 90 00 B0 [11:06:43]RAPDU: 90 00 [11:06:43]wFMCommunicate OK [11:06:43]wFMCommunicate request_size=10 [11:06:43]MH_SAM_APDU [11:06:43]CAPDU: 80 0D 02 02 05 E3 7C E3 BC EF [11:06:43]Write to MH i2c: E2 0D 00 F8 45 80 0D 02 02 05 00 E3 7C E3 BC EF 00 00 AE [11:06:43]Write i2c OK [11:06:43]MH_I2C_Read... [11:06:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:06:43]Read from MH i2c: E2 [11:06:43]MH_I2C_Read... [11:06:43]Read from MH i2c: E2 03 00 [11:06:43]MH_I2C_Read... [11:06:43]Read from MH i2c: E2 03 00 F8 45 00 90 00 B1 [11:06:43]RAPDU: 90 00 [11:06:43]wFMCommunicate OK [11:06:43]wFMCommunicate request_size=4 [11:06:43]MH_SAM_APDU [11:06:43]CAPDU: 80 0D 03 02 [11:06:43]Write to MH i2c: E2 08 00 F9 45 80 0D 03 02 00 00 00 00 B9 [11:06:43]Write i2c OK [11:06:43]MH_I2C_Read... [11:06:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:06:43]Read from MH i2c: E2 [11:06:43]MH_I2C_Read... [11:06:43]Read from MH i2c: E2 0B 00 [11:06:43]MH_I2C_Read... [11:06:43]Read from MH i2c: E2 0B 00 F9 45 00 B5 93 DD 56 75 B9 3F 43 90 00 E5 [11:06:43]RAPDU: B5 93 DD 56 75 B9 3F 43 90 00 [11:06:43]wFMCommunicate OK [11:06:43]SAM_PROTO_SignData done [11:06:43]FM_MakeSignedData done [11:06:43]CreateOFDProtocolMessage [11:06:43]wFMCommunicate request_size=4 [11:06:43]MH_SAM_APDU [11:06:43]CAPDU: 80 11 00 00 [11:06:43]Write to MH i2c: E2 08 00 FA 45 80 11 00 00 00 00 00 00 B9 [11:06:43]Write i2c OK [11:06:43]MH_I2C_Read... [11:06:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:06:43]Read from MH i2c: E2 [11:06:43]MH_I2C_Read... [11:06:43]Read from MH i2c: E2 17 00 [11:06:43]MH_I2C_Read... [11:06:43]Read from MH i2c: E2 17 00 FA 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 0E [11:06:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:06:43]wFMCommunicate OK [11:06:43]CreateOFDProtocolMessage done [11:06:43]OFDSenderStorePacket 156523 [11:06:43]StoreOFDPacket docnum=156523 [11:06:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 AB AA 07 01 00 BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 4A 00 00 00 F4 03 04 00 C7 1E 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 6B 63 02 00 35 04 06 00 0C E3 7C E3 BC EF B5 93 DD 56 75 B9 3F 43 [11:06:43]CheckFolder [11:06:43]dirname=/storage/ofd_packets [11:06:43]CheckFolder done [11:06:43]ProducePacketName [11:06:43]name=ofd_packets/00156523 [11:06:43]NVStorageSaveData ofd_packets/00156523 [11:06:43]File name is /storage/ofd_packets/00156523 [11:06:43]Write 301 bytes [11:06:43]NVStorageSaveData done [11:06:43]OFDSenderStorePacket done [11:06:43]KKMCreateOFDPacket done [11:06:43]NVStorageSaveData kkm_last_timestamp [11:06:43]File name is /storage/kkm_last_timestamp [11:06:43]Write 4 bytes [11:06:43]NVStorageSaveData done [11:06:43]ExternCall_PrintAddStr [11:06:43]wPrintStart [11:06:43]Write to MH i2c: 01 00 00 FB 45 40 [11:06:43]Write i2c OK [11:06:43]MH_I2C_Read... [11:06:43]Read from MH i2c: 01 [11:06:43]MH_I2C_Read... [11:06:43]Read from MH i2c: 01 07 00 [11:06:43]MH_I2C_Read... [11:06:43]Read from MH i2c: 01 07 00 FB 45 00 00 00 00 00 FF 0F 55 [11:06:43]RasterBufferAndPrint [11:06:43]line Счет N : (1)99338 [11:06:43]line ИНН: 02508201610067 [11:06:43]line Контрольно-Кассовый Чек [11:06:43]line ПРОДАЖА [11:06:43]line ТРК (МРК, ГНК) : 21 [11:06:43]line Товар: 2710124130 [11:06:43]line Аи-92-К-5 [11:06:43]line 2.990 * 66.90 [11:06:43]line = 200.03 [11:06:43]line НДС 12% НСП 1% [11:06:43]line > о реализуемом товаре [11:06:43]line ОКРУГЛЕНИЕ: -0.03 [11:06:43]line ИТОГО: 200.00 [11:06:43]line Внесено: 200.00 [11:06:43]line СДАЧА: 0.00 [11:06:43]line НСП 1% : 1.77 [11:06:43]line НДС 12% : 21.24 [11:06:43]line Наличными: 200.00 [11:06:43]line Безнал.: 0.00 [11:06:43]line Место: АЗС № 143 "Партнер Нефть" [11:06:43]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [11:06:43]line СНО: Общий режим [11:06:43]line Чек 74 27.10.2024 11:06 [11:06:43]line Смена: 537 ФФД: 1.0 [11:06:43]line ЗНМ: 0300000096 [11:06:43]line РНМ: 0000000000091693 [11:06:43]line Версия ККМ: 001 [11:06:43]line ФМ: 0000000000871792 [11:06:43]line ФД: 156523 [11:06:43]line ФПД: 14171192409327 [11:06:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T110647&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156523&fm=14171192409327&tin=02508201610067®Number=0000000000091693&sum=20000 [11:06:44]OFD Sender: Processing packet 156523 [packets to send 31, broken 30] [11:06:44]ProducePacketName [11:06:44]name=ofd_packets/00156523 [11:06:44]OFD Sender: To server: pG, [11:06:44]CommunicateWithHost lk.salyk.kg:30040 [11:06:44]ConnectInit lk.salyk.kg [11:06:44]written 0, free lines is 4095 [11:06:44]Connected sock=10 [11:06:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 AB AA 07 01 00 BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 4A 00 00 00 F4 03 04 00 C7 1E 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 6B 63 02 00 35 04 06 00 0C E3 7C E3 BC EF B5 93 DD 56 75 B9 3F 43 [11:06:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 EC 7E 47 00 47 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 6B 63 02 00 F4 03 04 00 37 C4 1D 67 B6 04 01 00 00 75 4A 96 4D 15 74 12 01 [11:06:44]CommunicateWithHost err = 0 [11:06:44]CheckOFDResponse [11:06:44]1017 (14) - 77093643461234 [11:06:44]1041 (16) - 0000000000871792 [11:06:44]1040 (4) - 156523 [11:06:44]1012 (4) - 27.10.2024 04:40 [11:06:44]1206 (1) - 0 [11:06:44]OFD Sender: Remove packet 156523 [11:06:44]ProducePacketName [11:06:44]name=ofd_packets/00156523 [11:06:44]NVStorageDeleteData [11:06:44]Write to MH i2c: 01 00 00 26 46 6C [11:06:44]Write i2c OK [11:06:44]MH_I2C_Read... [11:06:44]Read from MH i2c: 01 [11:06:44]MH_I2C_Read... [11:06:44]Read from MH i2c: 01 07 00 [11:06:44]MH_I2C_Read... [11:06:44]Read from MH i2c: 01 07 00 26 46 00 00 00 00 00 DC 0C 5B [11:06:44]RasterBufferAndPrint [11:06:44]line [11:06:44]line [11:06:44]line [11:06:44]line [11:06:44]line [11:06:44]written 0, free lines is 3298 [11:06:44]process_action close_receipt done [11:06:44]requested_data is exist [11:06:44]produce_requested_data [11:06:44]requested_item fm.sn is exist - process it [11:06:44]wFMCommunicate request_size=4 [11:06:44]MH_SAM_APDU [11:06:44]CAPDU: 80 11 00 00 [11:06:44]Write to MH i2c: E2 08 00 2D 46 80 11 00 00 00 00 00 00 ED [11:06:44]Write i2c OK [11:06:44]MH_I2C_Read... [11:06:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:06:44]Read from MH i2c: E2 [11:06:44]MH_I2C_Read... [11:06:44]Read from MH i2c: E2 17 00 [11:06:44]MH_I2C_Read... [11:06:44]Read from MH i2c: E2 17 00 2D 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 42 [11:06:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:06:44]wFMCommunicate OK [11:06:44]requested_item fd.num is exist - process it [11:06:44]SAM_PROTO_GetFieldsCounters [11:06:44]wFMCommunicate request_size=4 [11:06:44]MH_SAM_APDU [11:06:44]CAPDU: 80 13 00 00 [11:06:44]Write to MH i2c: E2 08 00 2E 46 80 13 00 00 00 00 00 00 F0 [11:06:44]Write i2c OK [11:06:44]MH_I2C_Read... [11:06:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:06:44]Read from MH i2c: E2 [11:06:44]MH_I2C_Read... [11:06:44]Read from MH i2c: E2 62 00 [11:06:44]MH_I2C_Read... [11:06:44]Read from MH i2c: E2 62 00 2E 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 6B 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 DF [11:06: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 6B 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:06:44]wFMCommunicate OK [11:06:44]SAM_PROTO_GetFieldsCounters done [11:06:44]requested_item shift.num is exist - process it [11:06:44]requested_item shift.opened is exist - process it [11:06:44]req_shift_opened [11:06:44]FM_GetShiftState [11:06:44]SAM_PROTO_GetShiftState [11:06:44]wFMCommunicate request_size=4 [11:06:44]MH_SAM_APDU [11:06:44]CAPDU: 80 13 01 00 [11:06:44]Write to MH i2c: E2 08 00 2F 46 80 13 01 00 00 00 00 00 F2 [11:06:44]Write i2c OK [11:06:44]MH_I2C_Read... [11:06:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:06:45]Read from MH i2c: E2 [11:06:45]MH_I2C_Read... [11:06:45]Read from MH i2c: E2 0E 00 [11:06:45]MH_I2C_Read... [11:06:45]Read from MH i2c: E2 0E 00 2F 46 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 BF [11:06:45]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [11:06:45]wFMCommunicate OK [11:06:45]SAM_PROTO_GetShiftState done [11:06:45]FM_GetShiftState done [11:06:45]req_shift_opened done [11:06:45]requested_item shift.open_date is exist - process it [11:06:45]req_shift_open_date [11:06:45]req_shift_open_date done [11:06:45]produce_requested_data done [11:06:45]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156523,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [11:06:45]process_action_free close_receipt [11:06:45]json_value_free [11:06:45]json_value_free done [11:06:45]process_json_proto returns [11:06:45]Send response to host [11:06:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156523,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [11:06:45]free response buf [11:06:45]execute_script done [11:06:45]execute_script returns [11:06:45]free content buf [11:06:45]Sock 9.Close socket [11:06:45]Sock 9.Thread stoped [11:06:45]OFD Sender: No OFD packet to send [11:06:50]OFD Sender: No OFD packet to send [11:06:55]OFD Sender: No OFD packet to send [11:07:00]OFD Sender: No OFD packet to send [11:07:05]OFD Sender: No OFD packet to send [11:07:10]OFD Sender: No OFD packet to send [11:07:15]OFD Sender: No OFD packet to send [11:07:20]OFD Sender: No OFD packet to send [11:07:25]OFD Sender: No OFD packet to send [11:07:30]OFD Sender: No OFD packet to send [11:07:35]OFD Sender: No OFD packet to send [11:07:37]accept exits with 8 [11:07:37]New connection [11:07:37]New thread 3066834276 created [11:07:37]Thread 3066977636 joined [11:07:37]Waiting for new connection... [11:07:37] Sock 8.Parse request [11:07:37]Sock 8.Check first char [11:07:37]Sock 8.First char is OK [11:07:37]request: POST /json_proto HTTP/1.0 [11:07:37]Method: POST [11:07:37]URL: /json_proto [11:07:37]Method is POST - this is cgi request [11:07:37]url: /json_proto [11:07:37]query_string will be loaded in cgi processing [11:07:37]execute_cgi json_proto POST (null) [11:07:37]execute_cgi path=json_proto method=POST [11:07:37]POST find Content-Length [11:07:37]Host: 172.17.63.3:8080 [11:07:37]Content-Length: 765 [11:07:37]Content-Type: application/json [11:07:37] [11:07:37]POST finish read [11:07:37]Found Content-Length = 765 [11:07:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99337", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 3000.76 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:07:37]execute_script... [11:07: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)99337", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 3000.76 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:07:37]POST & json_proto [11:07:37]process_json_proto [11:07:37]json parsed OK: [11:07:37]protocol is kg_v1.0 [11:07:37]action value=close_receipt [11:07:37]process_action close_receipt [11:07:37]cmd_close_receipt [11:07:37]MH_GetDate [11:07:37]Write to MH i2c: F0 00 00 30 46 65 [11:07:37]Write i2c OK [11:07:37]MH_I2C_Read... [11:07:37]Read from MH i2c: F0 [11:07:37]MH_I2C_Read... [11:07:37]Read from MH i2c: F0 09 00 [11:07:37]MH_I2C_Read... [11:07:37]Read from MH i2c: F0 09 00 30 46 00 FF 1E 1E 67 50 D1 6C 64 01 [11:07:37]GetLastDocTimeStamp 1730027207 [11:07:37]current date 1730027263 [11:07:37]FM_GetShiftState [11:07:37]SAM_PROTO_GetShiftState [11:07:37]wFMCommunicate request_size=4 [11:07:37]MH_SAM_APDU [11:07:37]CAPDU: 80 13 01 00 [11:07:37]Write to MH i2c: E2 08 00 31 46 80 13 01 00 00 00 00 00 F4 [11:07:37]Write i2c OK [11:07:37]MH_I2C_Read... [11:07:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:07:37]Read from MH i2c: E2 [11:07:37]MH_I2C_Read... [11:07:37]Read from MH i2c: E2 0E 00 [11:07:37]MH_I2C_Read... [11:07:37]Read from MH i2c: E2 0E 00 31 46 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 C1 [11:07:37]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [11:07:37]wFMCommunicate OK [11:07:37]SAM_PROTO_GetShiftState done [11:07:37]FM_GetShiftState done [11:07:37]opened in 1729989044 [11:07:37]opened+sec_in_day 1730075444 [11:07:37]quantity*price = 300075 [11:07:37]sum+1 = 300077 [11:07:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.76 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 0.00 Безнал.: 3000.76 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 75 27.10.2024 11:07 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 156524 ФПД: 250879612258816 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T110743&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156524&fm=250879612258816&tin=02508201610067®Number=0000000000091693&sum=300076 [11:07:38]StoreToDocumentArchive [11:07:38]shift 537 fd 156524 [11:07:38]save to /storage/0537/doc_00156524 [11:07:38]save last doc name /storage/0537/doc_00156524 to /storage/kkm_last_doc_name [11:07:38]save OK [11:07:38]Clear old archive folders... [11:07:38]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:07:38]tlvbuf is 01806FE0 [11:07:38]SAM_PROTO_ClearQueue [11:07:38]wFMCommunicate request_size=4 [11:07:38]MH_SAM_APDU [11:07:38]CAPDU: 80 09 00 00 [11:07:38]Write to MH i2c: E2 08 00 3E 46 80 09 00 00 00 00 00 00 F6 [11:07:38]Write i2c OK [11:07:38]MH_I2C_Read... [11:07:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:07:38]Read from MH i2c: E2 [11:07:38]MH_I2C_Read... [11:07:38]Read from MH i2c: E2 03 00 [11:07:38]MH_I2C_Read... [11:07:38]Read from MH i2c: E2 03 00 3E 46 00 90 00 F8 [11:07:38]RAPDU: 90 00 [11:07:38]wFMCommunicate OK [11:07:38]SAM_PROTO_ClearQueue done [11:07:38]KKMCreateOFDPacket [11:07:38]OFDProtocolAddRootSTLVToBuf [11:07:38]FM_MakeSignedData [11:07:38]FM_MakeSignedData [11:07:38]SAM_PROTO_SignData [11:07:38]wFMCommunicate request_size=4 [11:07:38]MH_SAM_APDU [11:07:38]CAPDU: 80 0D 01 02 [11:07:38]Write to MH i2c: E2 08 00 3F 46 80 0D 01 02 00 00 00 00 FE [11:07:38]Write i2c OK [11:07:38]MH_I2C_Read... [11:07:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:07:39]Read from MH i2c: E2 [11:07:39]MH_I2C_Read... [11:07:39]Read from MH i2c: E2 03 00 [11:07:39]MH_I2C_Read... [11:07:39]Read from MH i2c: E2 03 00 3F 46 00 90 00 F9 [11:07:39]RAPDU: 90 00 [11:07:39]wFMCommunicate OK [11:07:39]wFMCommunicate request_size=255 [11:07:39]MH_SAM_APDU [11:07:39]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 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 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 FF 1E 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 6C 63 02 00 35 04 06 00 E4 2C 76 2B [11:07:39]Write to MH i2c: E2 02 01 40 46 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 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 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 FF 1E 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 6C 63 02 00 35 04 06 00 E4 2C 76 2B 00 00 E3 [11:07:39]Write i2c OK [11:07:39]MH_I2C_Read... [11:07:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:07:39]Read from MH i2c: E2 [11:07:39]MH_I2C_Read... [11:07:39]Read from MH i2c: E2 03 00 [11:07:39]MH_I2C_Read... [11:07:39]Read from MH i2c: E2 03 00 40 46 00 90 00 FA [11:07:39]RAPDU: 90 00 [11:07:39]wFMCommunicate OK [11:07:39]wFMCommunicate request_size=7 [11:07:39]MH_SAM_APDU [11:07:39]CAPDU: 80 0D 02 02 02 8A 00 [11:07:39]Write to MH i2c: E2 0A 00 41 46 80 0D 02 02 02 00 8A 00 00 00 8F [11:07:39]Write i2c OK [11:07:39]MH_I2C_Read... [11:07:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:07:39]Read from MH i2c: E2 [11:07:39]MH_I2C_Read... [11:07:39]Read from MH i2c: E2 03 00 [11:07:39]MH_I2C_Read... [11:07:39]Read from MH i2c: E2 03 00 41 46 00 90 00 FB [11:07:39]RAPDU: 90 00 [11:07:39]wFMCommunicate OK [11:07:39]wFMCommunicate request_size=4 [11:07:39]MH_SAM_APDU [11:07:39]CAPDU: 80 0D 03 02 [11:07:39]Write to MH i2c: E2 08 00 42 46 80 0D 03 02 00 00 00 00 03 [11:07:39]Write i2c OK [11:07:39]MH_I2C_Read... [11:07:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:07:39]Read from MH i2c: E2 [11:07:39]MH_I2C_Read... [11:07:39]Read from MH i2c: E2 0B 00 [11:07:39]MH_I2C_Read... [11:07:39]Read from MH i2c: E2 0B 00 42 46 00 98 6E 71 AF B9 78 EF 53 90 00 9D [11:07:39]RAPDU: 98 6E 71 AF B9 78 EF 53 90 00 [11:07:39]wFMCommunicate OK [11:07:39]SAM_PROTO_SignData done [11:07:39]FM_MakeSignedData done [11:07:39]CreateOFDProtocolMessage [11:07:39]wFMCommunicate request_size=4 [11:07:39]MH_SAM_APDU [11:07:39]CAPDU: 80 11 00 00 [11:07:39]Write to MH i2c: E2 08 00 43 46 80 11 00 00 00 00 00 00 03 [11:07:39]Write i2c OK [11:07:39]MH_I2C_Read... [11:07:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:07:39]Read from MH i2c: E2 [11:07:39]MH_I2C_Read... [11:07:39]Read from MH i2c: E2 17 00 [11:07:39]MH_I2C_Read... [11:07:39]Read from MH i2c: E2 17 00 43 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 58 [11:07:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:07:39]wFMCommunicate OK [11:07:39]CreateOFDProtocolMessage done [11:07:39]OFDSenderStorePacket 156524 [11:07:39]StoreOFDPacket docnum=156524 [11:07:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 D6 ED 04 01 96 01 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 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 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 FF 1E 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 6C 63 02 00 35 04 06 00 E4 2C 76 2B 8A 00 98 6E 71 AF B9 78 EF 53 [11:07:39]CheckFolder [11:07:39]dirname=/storage/ofd_packets [11:07:39]CheckFolder done [11:07:39]ProducePacketName [11:07:39]name=ofd_packets/00156524 [11:07:39]NVStorageSaveData ofd_packets/00156524 [11:07:39]File name is /storage/ofd_packets/00156524 [11:07:39]Write 298 bytes [11:07:39]NVStorageSaveData done [11:07:39]OFDSenderStorePacket done [11:07:39]KKMCreateOFDPacket done [11:07:39]NVStorageSaveData kkm_last_timestamp [11:07:39]File name is /storage/kkm_last_timestamp [11:07:39]Write 4 bytes [11:07:39]NVStorageSaveData done [11:07:39]ExternCall_PrintAddStr [11:07:39]wPrintStart [11:07:39]Write to MH i2c: 01 00 00 44 46 8A [11:07:39]Write i2c OK [11:07:39]MH_I2C_Read... [11:07:39]Read from MH i2c: 01 [11:07:39]MH_I2C_Read... [11:07:39]Read from MH i2c: 01 07 00 [11:07:39]MH_I2C_Read... [11:07:39]Read from MH i2c: 01 07 00 44 46 00 00 00 00 00 FF 0F 9F [11:07:39]RasterBufferAndPrint [11:07:39]line Счет N : (1)99337 [11:07:39]line ИНН: 02508201610067 [11:07:39]line Контрольно-Кассовый Чек [11:07:39]line ПРОДАЖА [11:07:39]line ТРК (МРК, ГНК) : 32 [11:07:39]line Товар: 2710194210 [11:07:39]line ДТ-К-5 [11:07:39]line 39.380 * 76.20 [11:07:39]line = 3000.76 [11:07:39]line НДС 12% НСП 1% [11:07:39]line > о реализуемом товаре [11:07:39]line ИТОГО: 3000.76 [11:07:39]line НСП 1% : 26.55 [11:07:39]line НДС 12% : 318.66 [11:07:39]line Наличными: 0.00 [11:07:39]line Безнал.: 3000.76 [11:07:39]line Место: АЗС № 143 "Партнер Нефть" [11:07:39]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [11:07:39]line СНО: Общий режим [11:07:39]line Чек 75 27.10.2024 11:07 [11:07:39]line Смена: 537 ФФД: 1.0 [11:07:39]line ЗНМ: 0300000096 [11:07:39]line РНМ: 0000000000091693 [11:07:39]line Версия ККМ: 001 [11:07:39]line Платежная система: Mbank [11:07:39]line ФМ: 0000000000871792 [11:07:39]line ФД: 156524 [11:07:39]line ФПД: 250879612258816 [11:07:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T110743&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156524&fm=250879612258816&tin=02508201610067®Number=0000000000091693&sum=300076 [11:07:39]OFD Sender: Processing packet 156524 [packets to send 31, broken 30] [11:07:39]ProducePacketName [11:07:39]name=ofd_packets/00156524 [11:07:39]OFD Sender: To server: pG, [11:07:39]CommunicateWithHost lk.salyk.kg:30040 [11:07:39]ConnectInit lk.salyk.kg [11:07:39]written 0, free lines is 4095 [11:07:39]Connected sock=10 [11:07:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 D6 ED 04 01 96 01 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 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 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 FF 1E 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 6C 63 02 00 35 04 06 00 E4 2C 76 2B 8A 00 98 6E 71 AF B9 78 EF 53 [11:07:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 76 21 47 00 38 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 6C 63 02 00 F4 03 04 00 6E C4 1D 67 B6 04 01 00 00 3F 7A 53 DE 71 99 8E 2B [11:07:40]CommunicateWithHost err = 0 [11:07:40]CheckOFDResponse [11:07:40]1017 (14) - 77093643461234 [11:07:40]1041 (16) - 0000000000871792 [11:07:40]1040 (4) - 156524 [11:07:40]1012 (4) - 27.10.2024 04:41 [11:07:40]1206 (1) - 0 [11:07:40]OFD Sender: Remove packet 156524 [11:07:40]ProducePacketName [11:07:40]name=ofd_packets/00156524 [11:07:40]NVStorageDeleteData [11:07:40]Write to MH i2c: 01 00 00 6D 46 B3 [11:07:40]Write i2c OK [11:07:40]MH_I2C_Read... [11:07:40]Read from MH i2c: 01 [11:07:40]MH_I2C_Read... [11:07:40]Read from MH i2c: 01 07 00 [11:07:40]MH_I2C_Read... [11:07:40]Read from MH i2c: 01 07 00 6D 46 00 00 00 00 00 10 0D D7 [11:07:40]RasterBufferAndPrint [11:07:40]line [11:07:40]line [11:07:40]line [11:07:40]line [11:07:40]line [11:07:40]written 0, free lines is 3350 [11:07:40]process_action close_receipt done [11:07:40]requested_data is exist [11:07:40]produce_requested_data [11:07:40]requested_item fm.sn is exist - process it [11:07:40]wFMCommunicate request_size=4 [11:07:40]MH_SAM_APDU [11:07:40]CAPDU: 80 11 00 00 [11:07:40]Write to MH i2c: E2 08 00 74 46 80 11 00 00 00 00 00 00 34 [11:07:40]Write i2c OK [11:07:40]MH_I2C_Read... [11:07:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:07:40]Read from MH i2c: E2 [11:07:40]MH_I2C_Read... [11:07:40]Read from MH i2c: E2 17 00 [11:07:40]MH_I2C_Read... [11:07:40]Read from MH i2c: E2 17 00 74 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 89 [11:07:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:07:40]wFMCommunicate OK [11:07:40]requested_item fd.num is exist - process it [11:07:40]SAM_PROTO_GetFieldsCounters [11:07:40]wFMCommunicate request_size=4 [11:07:40]MH_SAM_APDU [11:07:40]CAPDU: 80 13 00 00 [11:07:40]Write to MH i2c: E2 08 00 75 46 80 13 00 00 00 00 00 00 37 [11:07:40]Write i2c OK [11:07:40]MH_I2C_Read... [11:07:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:07:40]Read from MH i2c: E2 [11:07:40]MH_I2C_Read... [11:07:40]Read from MH i2c: E2 62 00 [11:07:40]MH_I2C_Read... [11:07:40]Read from MH i2c: E2 62 00 75 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 6C 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 2A [11:07:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 6C 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:07:40]wFMCommunicate OK [11:07:40]SAM_PROTO_GetFieldsCounters done [11:07:40]requested_item shift.num is exist - process it [11:07:40]requested_item shift.opened is exist - process it [11:07:40]req_shift_opened [11:07:40]FM_GetShiftState [11:07:40]SAM_PROTO_GetShiftState [11:07:40]wFMCommunicate request_size=4 [11:07:40]MH_SAM_APDU [11:07:40]CAPDU: 80 13 01 00 [11:07:40]Write to MH i2c: E2 08 00 76 46 80 13 01 00 00 00 00 00 39 [11:07:40]Write i2c OK [11:07:40]MH_I2C_Read... [11:07:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:07:40]Read from MH i2c: E2 [11:07:40]MH_I2C_Read... [11:07:40]Read from MH i2c: E2 0E 00 [11:07:40]MH_I2C_Read... [11:07:40]Read from MH i2c: E2 0E 00 76 46 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 06 [11:07:40]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [11:07:40]wFMCommunicate OK [11:07:40]SAM_PROTO_GetShiftState done [11:07:40]FM_GetShiftState done [11:07:40]req_shift_opened done [11:07:40]requested_item shift.open_date is exist - process it [11:07:40]req_shift_open_date [11:07:40]req_shift_open_date done [11:07:40]produce_requested_data done [11:07:40]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156524,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [11:07:40]process_action_free close_receipt [11:07:40]json_value_free [11:07:40]json_value_free done [11:07:40]process_json_proto returns [11:07:40]Send response to host [11:07:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156524,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [11:07:40]free response buf [11:07:40]execute_script done [11:07:40]execute_script returns [11:07:40]free content buf [11:07:40]Sock 8.Close socket [11:07:40]Sock 8.Thread stoped [11:07:40]OFD Sender: No OFD packet to send [11:07:45]OFD Sender: No OFD packet to send [11:07:50]OFD Sender: No OFD packet to send [11:07:55]OFD Sender: No OFD packet to send [11:08:00]OFD Sender: No OFD packet to send [11:08:05]OFD Sender: No OFD packet to send [11:08:10]OFD Sender: No OFD packet to send [11:08:15]OFD Sender: No OFD packet to send [11:08:20]OFD Sender: No OFD packet to send [11:08:25]OFD Sender: No OFD packet to send [11:08:30]OFD Sender: No OFD packet to send [11:08:34]accept exits with 9 [11:08:34]New connection [11:08:34]New thread 3066977636 created [11:08:34]Thread 3066834276 joined [11:08:34]Waiting for new connection... [11:08:34] Sock 9.Parse request [11:08:34]Sock 9.Check first char [11:08:34]Sock 9.First char is OK [11:08:34]request: POST /json_proto HTTP/1.0 [11:08:34]Method: POST [11:08:34]URL: /json_proto [11:08:34]Method is POST - this is cgi request [11:08:34]url: /json_proto [11:08:34]query_string will be loaded in cgi processing [11:08:34]execute_cgi json_proto POST (null) [11:08:34]execute_cgi path=json_proto method=POST [11:08:34]POST find Content-Length [11:08:34]Host: 172.17.63.3:8080 [11:08:34]Content-Length: 676 [11:08:34]Content-Type: application/json [11:08:34] [11:08:34]POST finish read [11:08:34]Found Content-Length = 676 [11:08:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99339", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:08:34]execute_script... [11:08: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)99339", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:08:34]POST & json_proto [11:08:34]process_json_proto [11:08:34]json parsed OK: [11:08:34]protocol is kg_v1.0 [11:08:34]action value=close_receipt [11:08:34]process_action close_receipt [11:08:34]cmd_close_receipt [11:08:34]MH_GetDate [11:08:34]Write to MH i2c: F0 00 00 77 46 AC [11:08:34]Write i2c OK [11:08:34]MH_I2C_Read... [11:08:34]Read from MH i2c: F0 [11:08:34]MH_I2C_Read... [11:08:34]Read from MH i2c: F0 09 00 [11:08:34]MH_I2C_Read... [11:08:34]Read from MH i2c: F0 09 00 77 46 00 37 1F 1E 67 50 D1 6C 64 81 [11:08:34]GetLastDocTimeStamp 1730027263 [11:08:34]current date 1730027319 [11:08:34]FM_GetShiftState [11:08:34]SAM_PROTO_GetShiftState [11:08:34]wFMCommunicate request_size=4 [11:08:34]MH_SAM_APDU [11:08:34]CAPDU: 80 13 01 00 [11:08:34]Write to MH i2c: E2 08 00 78 46 80 13 01 00 00 00 00 00 3B [11:08:34]Write i2c OK [11:08:34]MH_I2C_Read... [11:08:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:08:34]Read from MH i2c: E2 [11:08:34]MH_I2C_Read... [11:08:34]Read from MH i2c: E2 0E 00 [11:08:34]MH_I2C_Read... [11:08:34]Read from MH i2c: E2 0E 00 78 46 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 08 [11:08:34]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [11:08:34]wFMCommunicate OK [11:08:34]SAM_PROTO_GetShiftState done [11:08:34]FM_GetShiftState done [11:08:34]opened in 1729989044 [11:08:34]opened+sec_in_day 1730075444 [11:08:34]quantity*price = 20003 [11:08:34]sum+1 = 20004 [11:08:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 76 27.10.2024 11:08 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156525 ФПД: 59920373094973 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T110839&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156525&fm=59920373094973&tin=02508201610067®Number=0000000000091693&sum=20000 [11:08:35]StoreToDocumentArchive [11:08:35]shift 537 fd 156525 [11:08:35]save to /storage/0537/doc_00156525 [11:08:35]save last doc name /storage/0537/doc_00156525 to /storage/kkm_last_doc_name [11:08:35]save OK [11:08:35]Clear old archive folders... [11:08:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:08:35]tlvbuf is 017DCC10 [11:08:35]SAM_PROTO_ClearQueue [11:08:35]wFMCommunicate request_size=4 [11:08:35]MH_SAM_APDU [11:08:35]CAPDU: 80 09 00 00 [11:08:35]Write to MH i2c: E2 08 00 85 46 80 09 00 00 00 00 00 00 3D [11:08:35]Write i2c OK [11:08:35]MH_I2C_Read... [11:08:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:08:35]Read from MH i2c: E2 [11:08:35]MH_I2C_Read... [11:08:35]Read from MH i2c: E2 03 00 [11:08:35]MH_I2C_Read... [11:08:35]Read from MH i2c: E2 03 00 85 46 00 90 00 3F [11:08:35]RAPDU: 90 00 [11:08:35]wFMCommunicate OK [11:08:35]SAM_PROTO_ClearQueue done [11:08:35]KKMCreateOFDPacket [11:08:35]OFDProtocolAddRootSTLVToBuf [11:08:35]FM_MakeSignedData [11:08:35]FM_MakeSignedData [11:08:35]SAM_PROTO_SignData [11:08:35]wFMCommunicate request_size=4 [11:08:35]MH_SAM_APDU [11:08:35]CAPDU: 80 0D 01 02 [11:08:35]Write to MH i2c: E2 08 00 86 46 80 0D 01 02 00 00 00 00 45 [11:08:35]Write i2c OK [11:08:35]MH_I2C_Read... [11:08:35]OFD Sender: No OFD packet to send [11:08:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:08:35]Read from MH i2c: E2 [11:08:35]MH_I2C_Read... [11:08:35]Read from MH i2c: E2 03 00 [11:08:35]MH_I2C_Read... [11:08:35]Read from MH i2c: E2 03 00 86 46 00 90 00 40 [11:08:35]RAPDU: 90 00 [11:08:35]wFMCommunicate OK [11:08:35]wFMCommunicate request_size=255 [11:08:35]MH_SAM_APDU [11:08: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 4C 00 00 00 F4 03 04 00 37 1F 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 6D 63 02 00 35 04 06 00 36 [11:08:35]Write to MH i2c: E2 02 01 87 46 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 4C 00 00 00 F4 03 04 00 37 1F 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 6D 63 02 00 35 04 06 00 36 00 00 E5 [11:08:35]Write i2c OK [11:08:35]MH_I2C_Read... [11:08:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:08:35]Read from MH i2c: E2 [11:08:35]MH_I2C_Read... [11:08:35]Read from MH i2c: E2 03 00 [11:08:35]MH_I2C_Read... [11:08:35]Read from MH i2c: E2 03 00 87 46 00 90 00 41 [11:08:35]RAPDU: 90 00 [11:08:35]wFMCommunicate OK [11:08:35]wFMCommunicate request_size=10 [11:08:35]MH_SAM_APDU [11:08:35]CAPDU: 80 0D 02 02 05 7F 4C 8D 9A 3D [11:08:35]Write to MH i2c: E2 0D 00 88 46 80 0D 02 02 05 00 7F 4C 8D 9A 3D 00 00 81 [11:08:35]Write i2c OK [11:08:35]MH_I2C_Read... [11:08:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:08:36]Read from MH i2c: E2 [11:08:36]MH_I2C_Read... [11:08:36]Read from MH i2c: E2 03 00 [11:08:36]MH_I2C_Read... [11:08:36]Read from MH i2c: E2 03 00 88 46 00 90 00 42 [11:08:36]RAPDU: 90 00 [11:08:36]wFMCommunicate OK [11:08:36]wFMCommunicate request_size=4 [11:08:36]MH_SAM_APDU [11:08:36]CAPDU: 80 0D 03 02 [11:08:36]Write to MH i2c: E2 08 00 89 46 80 0D 03 02 00 00 00 00 4A [11:08:36]Write i2c OK [11:08:36]MH_I2C_Read... [11:08:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:08:36]Read from MH i2c: E2 [11:08:36]MH_I2C_Read... [11:08:36]Read from MH i2c: E2 0B 00 [11:08:36]MH_I2C_Read... [11:08:36]Read from MH i2c: E2 0B 00 89 46 00 4D 3A 0E 90 92 45 F9 76 90 00 B6 [11:08:36]RAPDU: 4D 3A 0E 90 92 45 F9 76 90 00 [11:08:36]wFMCommunicate OK [11:08:36]SAM_PROTO_SignData done [11:08:36]FM_MakeSignedData done [11:08:36]CreateOFDProtocolMessage [11:08:36]wFMCommunicate request_size=4 [11:08:36]MH_SAM_APDU [11:08:36]CAPDU: 80 11 00 00 [11:08:36]Write to MH i2c: E2 08 00 8A 46 80 11 00 00 00 00 00 00 4A [11:08:36]Write i2c OK [11:08:36]MH_I2C_Read... [11:08:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:08:36]Read from MH i2c: E2 [11:08:36]MH_I2C_Read... [11:08:36]Read from MH i2c: E2 17 00 [11:08:36]MH_I2C_Read... [11:08:36]Read from MH i2c: E2 17 00 8A 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 9F [11:08:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:08:36]wFMCommunicate OK [11:08:36]CreateOFDProtocolMessage done [11:08:36]OFDSenderStorePacket 156525 [11:08:36]StoreOFDPacket docnum=156525 [11:08:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 A8 B4 07 01 E8 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 4C 00 00 00 F4 03 04 00 37 1F 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 6D 63 02 00 35 04 06 00 36 7F 4C 8D 9A 3D 4D 3A 0E 90 92 45 F9 76 [11:08:36]CheckFolder [11:08:36]dirname=/storage/ofd_packets [11:08:36]CheckFolder done [11:08:36]ProducePacketName [11:08:36]name=ofd_packets/00156525 [11:08:36]NVStorageSaveData ofd_packets/00156525 [11:08:36]File name is /storage/ofd_packets/00156525 [11:08:36]Write 301 bytes [11:08:36]NVStorageSaveData done [11:08:36]OFDSenderStorePacket done [11:08:36]KKMCreateOFDPacket done [11:08:36]NVStorageSaveData kkm_last_timestamp [11:08:36]File name is /storage/kkm_last_timestamp [11:08:36]Write 4 bytes [11:08:36]NVStorageSaveData done [11:08:36]ExternCall_PrintAddStr [11:08:36]wPrintStart [11:08:36]Write to MH i2c: 01 00 00 8B 46 D1 [11:08:36]Write i2c OK [11:08:36]MH_I2C_Read... [11:08:36]Read from MH i2c: 01 [11:08:36]MH_I2C_Read... [11:08:36]Read from MH i2c: 01 07 00 [11:08:36]MH_I2C_Read... [11:08:36]Read from MH i2c: 01 07 00 8B 46 00 00 00 00 00 FF 0F E6 [11:08:36]RasterBufferAndPrint [11:08:36]line Счет N : (1)99339 [11:08:36]line ИНН: 02508201610067 [11:08:36]line Контрольно-Кассовый Чек [11:08:36]line ПРОДАЖА [11:08:36]line ТРК (МРК, ГНК) : 21 [11:08:36]line Товар: 2710124130 [11:08:36]line Аи-92-К-5 [11:08:36]line 2.990 * 66.90 [11:08:36]line = 200.03 [11:08:36]line НДС 12% НСП 1% [11:08:36]line > о реализуемом товаре [11:08:36]line ОКРУГЛЕНИЕ: -0.03 [11:08:36]line ИТОГО: 200.00 [11:08:36]line Внесено: 200.00 [11:08:36]line СДАЧА: 0.00 [11:08:36]line НСП 1% : 1.77 [11:08:36]line НДС 12% : 21.24 [11:08:36]line Наличными: 200.00 [11:08:36]line Безнал.: 0.00 [11:08:36]line Место: АЗС № 143 "Партнер Нефть" [11:08:36]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [11:08:36]line СНО: Общий режим [11:08:36]line Чек 76 27.10.2024 11:08 [11:08:36]line Смена: 537 ФФД: 1.0 [11:08:36]line ЗНМ: 0300000096 [11:08:36]line РНМ: 0000000000091693 [11:08:36]line Версия ККМ: 001 [11:08:36]line ФМ: 0000000000871792 [11:08:36]line ФД: 156525 [11:08:36]line ФПД: 59920373094973 [11:08:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T110839&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156525&fm=59920373094973&tin=02508201610067®Number=0000000000091693&sum=20000 [11:08:36]OFD Sender: Processing packet 156525 [packets to send 31, broken 30] [11:08:36]ProducePacketName [11:08:36]name=ofd_packets/00156525 [11:08:36]OFD Sender: To server: pG, [11:08:36]CommunicateWithHost lk.salyk.kg:30040 [11:08:36]ConnectInit lk.salyk.kg [11:08:36]written 0, free lines is 4095 [11:08:36]Connected sock=8 [11:08:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 A8 B4 07 01 E8 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 4C 00 00 00 F4 03 04 00 37 1F 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 6D 63 02 00 35 04 06 00 36 7F 4C 8D 9A 3D 4D 3A 0E 90 92 45 F9 76 [11:08:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 F8 6F 47 00 0E CE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 6D 63 02 00 F4 03 04 00 A7 C4 1D 67 B6 04 01 00 00 93 E6 01 50 6F 6A 4A 23 [11:08:36]CommunicateWithHost err = 0 [11:08:36]CheckOFDResponse [11:08:36]1017 (14) - 77093643461234 [11:08:36]1041 (16) - 0000000000871792 [11:08:36]1040 (4) - 156525 [11:08:36]1012 (4) - 27.10.2024 04:42 [11:08:36]1206 (1) - 0 [11:08:36]OFD Sender: Remove packet 156525 [11:08:36]ProducePacketName [11:08:36]name=ofd_packets/00156525 [11:08:36]NVStorageDeleteData [11:08:36]Write to MH i2c: 01 00 00 B6 46 FC [11:08:36]Write i2c OK [11:08:36]MH_I2C_Read... [11:08:36]Read from MH i2c: 01 [11:08:36]MH_I2C_Read... [11:08:36]Read from MH i2c: 01 07 00 [11:08:36]MH_I2C_Read... [11:08:36]Read from MH i2c: 01 07 00 B6 46 00 00 00 00 00 D4 0C E3 [11:08:36]RasterBufferAndPrint [11:08:36]line [11:08:36]line [11:08:36]line [11:08:36]line [11:08:36]line [11:08:36]written 0, free lines is 3292 [11:08:36]process_action close_receipt done [11:08:36]requested_data is exist [11:08:36]produce_requested_data [11:08:36]requested_item fm.sn is exist - process it [11:08:36]wFMCommunicate request_size=4 [11:08:36]MH_SAM_APDU [11:08:36]CAPDU: 80 11 00 00 [11:08:36]Write to MH i2c: E2 08 00 BD 46 80 11 00 00 00 00 00 00 7D [11:08:36]Write i2c OK [11:08:36]MH_I2C_Read... [11:08:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:08:37]Read from MH i2c: E2 [11:08:37]MH_I2C_Read... [11:08:37]Read from MH i2c: E2 17 00 [11:08:37]MH_I2C_Read... [11:08:37]Read from MH i2c: E2 17 00 BD 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 D2 [11:08:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:08:37]wFMCommunicate OK [11:08:37]requested_item fd.num is exist - process it [11:08:37]SAM_PROTO_GetFieldsCounters [11:08:37]wFMCommunicate request_size=4 [11:08:37]MH_SAM_APDU [11:08:37]CAPDU: 80 13 00 00 [11:08:37]Write to MH i2c: E2 08 00 BE 46 80 13 00 00 00 00 00 00 80 [11:08:37]Write i2c OK [11:08:37]MH_I2C_Read... [11:08:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:08:37]Read from MH i2c: E2 [11:08:37]MH_I2C_Read... [11:08:37]Read from MH i2c: E2 62 00 [11:08:37]MH_I2C_Read... [11:08:37]Read from MH i2c: E2 62 00 BE 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 6D 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 77 [11: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 6D 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:08:37]wFMCommunicate OK [11:08:37]SAM_PROTO_GetFieldsCounters done [11:08:37]requested_item shift.num is exist - process it [11:08:37]requested_item shift.opened is exist - process it [11:08:37]req_shift_opened [11:08:37]FM_GetShiftState [11:08:37]SAM_PROTO_GetShiftState [11:08:37]wFMCommunicate request_size=4 [11:08:37]MH_SAM_APDU [11:08:37]CAPDU: 80 13 01 00 [11:08:37]Write to MH i2c: E2 08 00 BF 46 80 13 01 00 00 00 00 00 82 [11:08:37]Write i2c OK [11:08:37]MH_I2C_Read... [11:08:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:08:37]Read from MH i2c: E2 [11:08:37]MH_I2C_Read... [11:08:37]Read from MH i2c: E2 0E 00 [11:08:37]MH_I2C_Read... [11:08:37]Read from MH i2c: E2 0E 00 BF 46 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 4F [11:08:37]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [11:08:37]wFMCommunicate OK [11:08:37]SAM_PROTO_GetShiftState done [11:08:37]FM_GetShiftState done [11:08:37]req_shift_opened done [11:08:37]requested_item shift.open_date is exist - process it [11:08:37]req_shift_open_date [11:08:37]req_shift_open_date done [11:08:37]produce_requested_data done [11:08:37]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156525,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [11:08:37]process_action_free close_receipt [11:08:37]json_value_free [11:08:37]json_value_free done [11:08:37]process_json_proto returns [11:08:37]Send response to host [11:08:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156525,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [11:08:37]free response buf [11:08:37]execute_script done [11:08:37]execute_script returns [11:08:37]free content buf [11:08:37]Sock 9.Close socket [11:08:37]Sock 9.Thread stoped [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:40]accept exits with 10 [11:09:40]New connection [11:09:40]New thread 3066834276 created [11:09:40]Thread 3066977636 joined [11:09:40]Waiting for new connection... [11:09:40] Sock 10.Parse request [11:09:40]Sock 10.Check first char [11:09:40]Sock 10.First char is OK [11:09:40]request: POST /json_proto HTTP/1.0 [11:09:40]Method: POST [11:09:40]URL: /json_proto [11:09:40]Method is POST - this is cgi request [11:09:40]url: /json_proto [11:09:40]query_string will be loaded in cgi processing [11:09:40]execute_cgi json_proto POST (null) [11:09:40]execute_cgi path=json_proto method=POST [11:09:40]POST find Content-Length [11:09:40]Host: 172.17.63.3:8080 [11:09:40]Content-Length: 676 [11:09:40]Content-Type: application/json [11:09:40] [11:09:40]POST finish read [11:09:40]Found Content-Length = 676 [11:09:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99340", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:09:40]execute_script... [11:09:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99340", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:09:40]POST & json_proto [11:09:40]process_json_proto [11:09:40]json parsed OK: [11:09:40]protocol is kg_v1.0 [11:09:40]action value=close_receipt [11:09:40]process_action close_receipt [11:09:40]cmd_close_receipt [11:09:40]MH_GetDate [11:09:40]Write to MH i2c: F0 00 00 C0 46 F5 [11:09:40]Write i2c OK [11:09:40]MH_I2C_Read... [11:09:40]Read from MH i2c: F0 [11:09:40]MH_I2C_Read... [11:09:40]Read from MH i2c: F0 09 00 [11:09:40]MH_I2C_Read... [11:09:40]Read from MH i2c: F0 09 00 C0 46 00 7A 1F 1E 67 50 D1 6C 64 0D [11:09:40]GetLastDocTimeStamp 1730027319 [11:09:40]current date 1730027386 [11:09:40]FM_GetShiftState [11:09:40]SAM_PROTO_GetShiftState [11:09:40]wFMCommunicate request_size=4 [11:09:40]MH_SAM_APDU [11:09:40]CAPDU: 80 13 01 00 [11:09:40]Write to MH i2c: E2 08 00 C1 46 80 13 01 00 00 00 00 00 84 [11:09:40]Write i2c OK [11:09:40]MH_I2C_Read... [11:09:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:09:40]Read from MH i2c: E2 [11:09:40]MH_I2C_Read... [11:09:40]Read from MH i2c: E2 0E 00 [11:09:40]MH_I2C_Read... [11:09:40]Read from MH i2c: E2 0E 00 C1 46 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 51 [11:09:40]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [11:09:40]wFMCommunicate OK [11:09:40]SAM_PROTO_GetShiftState done [11:09:40]FM_GetShiftState done [11:09:40]opened in 1729989044 [11:09:40]opened+sec_in_day 1730075444 [11:09:40]quantity*price = 20003 [11:09:40]sum+1 = 20004 [11:09:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 77 27.10.2024 11:09 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156526 ФПД: 109648069340516 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T110946&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156526&fm=109648069340516&tin=02508201610067®Number=0000000000091693&sum=20000 [11:09:41]StoreToDocumentArchive [11:09:41]shift 537 fd 156526 [11:09:41]save to /storage/0537/doc_00156526 [11:09:41]save last doc name /storage/0537/doc_00156526 to /storage/kkm_last_doc_name [11:09:41]save OK [11:09:41]Clear old archive folders... [11:09:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:09:41]tlvbuf is 016E42A0 [11:09:41]SAM_PROTO_ClearQueue [11:09:41]wFMCommunicate request_size=4 [11:09:41]MH_SAM_APDU [11:09:41]CAPDU: 80 09 00 00 [11:09:41]Write to MH i2c: E2 08 00 CE 46 80 09 00 00 00 00 00 00 86 [11:09:41]Write i2c OK [11:09:41]MH_I2C_Read... [11:09:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:09:42]Read from MH i2c: E2 [11:09:42]MH_I2C_Read... [11:09:42]Read from MH i2c: E2 03 00 [11:09:42]MH_I2C_Read... [11:09:42]Read from MH i2c: E2 03 00 CE 46 00 90 00 88 [11:09:42]RAPDU: 90 00 [11:09:42]wFMCommunicate OK [11:09:42]SAM_PROTO_ClearQueue done [11:09:42]KKMCreateOFDPacket [11:09:42]OFDProtocolAddRootSTLVToBuf [11:09:42]FM_MakeSignedData [11:09:42]FM_MakeSignedData [11:09:42]SAM_PROTO_SignData [11:09:42]wFMCommunicate request_size=4 [11:09:42]MH_SAM_APDU [11:09:42]CAPDU: 80 0D 01 02 [11:09:42]Write to MH i2c: E2 08 00 CF 46 80 0D 01 02 00 00 00 00 8E [11:09:42]Write i2c OK [11:09:42]MH_I2C_Read... [11:09:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:09:42]Read from MH i2c: E2 [11:09:42]MH_I2C_Read... [11:09:42]Read from MH i2c: E2 03 00 [11:09:42]MH_I2C_Read... [11:09:42]Read from MH i2c: E2 03 00 CF 46 00 90 00 89 [11:09:42]RAPDU: 90 00 [11:09:42]wFMCommunicate OK [11:09:42]wFMCommunicate request_size=255 [11:09:42]MH_SAM_APDU [11:09: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 4D 00 00 00 F4 03 04 00 7A 1F 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 6E 63 02 00 35 04 06 00 63 [11:09:42]Write to MH i2c: E2 02 01 D0 46 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 4D 00 00 00 F4 03 04 00 7A 1F 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 6E 63 02 00 35 04 06 00 63 00 00 A0 [11:09:42]Write i2c OK [11:09:42]MH_I2C_Read... [11:09:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:09:42]Read from MH i2c: E2 [11:09:42]MH_I2C_Read... [11:09:42]Read from MH i2c: E2 03 00 [11:09:42]MH_I2C_Read... [11:09:42]Read from MH i2c: E2 03 00 D0 46 00 90 00 8A [11:09:42]RAPDU: 90 00 [11:09:42]wFMCommunicate OK [11:09:42]wFMCommunicate request_size=10 [11:09:42]MH_SAM_APDU [11:09:42]CAPDU: 80 0D 02 02 05 B9 6E 39 2D 64 [11:09:42]Write to MH i2c: E2 0D 00 D1 46 80 0D 02 02 05 00 B9 6E 39 2D 64 00 00 8C [11:09:42]Write i2c OK [11:09:42]MH_I2C_Read... [11:09:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:09:42]Read from MH i2c: E2 [11:09:42]MH_I2C_Read... [11:09:42]Read from MH i2c: E2 03 00 [11:09:42]MH_I2C_Read... [11:09:42]Read from MH i2c: E2 03 00 D1 46 00 90 00 8B [11:09:42]RAPDU: 90 00 [11:09:42]wFMCommunicate OK [11:09:42]wFMCommunicate request_size=4 [11:09:42]MH_SAM_APDU [11:09:42]CAPDU: 80 0D 03 02 [11:09:42]Write to MH i2c: E2 08 00 D2 46 80 0D 03 02 00 00 00 00 93 [11:09:42]Write i2c OK [11:09:42]MH_I2C_Read... [11:09:42]OFD Sender: No OFD packet to send [11:09:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:09:42]Read from MH i2c: E2 [11:09:42]MH_I2C_Read... [11:09:42]Read from MH i2c: E2 0B 00 [11:09:42]MH_I2C_Read... [11:09:42]Read from MH i2c: E2 0B 00 D2 46 00 69 24 39 B0 2F 7A 00 27 90 00 DA [11:09:42]RAPDU: 69 24 39 B0 2F 7A 00 27 90 00 [11:09:42]wFMCommunicate OK [11:09:42]SAM_PROTO_SignData done [11:09:42]FM_MakeSignedData done [11:09:42]CreateOFDProtocolMessage [11:09:42]wFMCommunicate request_size=4 [11:09:42]MH_SAM_APDU [11:09:42]CAPDU: 80 11 00 00 [11:09:42]Write to MH i2c: E2 08 00 D3 46 80 11 00 00 00 00 00 00 93 [11:09:42]Write i2c OK [11:09:42]MH_I2C_Read... [11:09:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:09:42]Read from MH i2c: E2 [11:09:42]MH_I2C_Read... [11:09:42]Read from MH i2c: E2 17 00 [11:09:42]MH_I2C_Read... [11:09:42]Read from MH i2c: E2 17 00 D3 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 E8 [11:09:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:09:42]wFMCommunicate OK [11:09:42]CreateOFDProtocolMessage done [11:09:42]OFDSenderStorePacket 156526 [11:09:42]StoreOFDPacket docnum=156526 [11:09:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 1E 79 07 01 3F F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 4D 00 00 00 F4 03 04 00 7A 1F 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 6E 63 02 00 35 04 06 00 63 B9 6E 39 2D 64 69 24 39 B0 2F 7A 00 27 [11:09:42]CheckFolder [11:09:42]dirname=/storage/ofd_packets [11:09:42]CheckFolder done [11:09:42]ProducePacketName [11:09:42]name=ofd_packets/00156526 [11:09:42]NVStorageSaveData ofd_packets/00156526 [11:09:42]File name is /storage/ofd_packets/00156526 [11:09:42]Write 301 bytes [11:09:42]NVStorageSaveData done [11:09:42]OFDSenderStorePacket done [11:09:42]KKMCreateOFDPacket done [11:09:42]NVStorageSaveData kkm_last_timestamp [11:09:42]File name is /storage/kkm_last_timestamp [11:09:42]Write 4 bytes [11:09:42]NVStorageSaveData done [11:09:42]ExternCall_PrintAddStr [11:09:42]wPrintStart [11:09:42]Write to MH i2c: 01 00 00 D4 46 1A [11:09:42]Write i2c OK [11:09:42]MH_I2C_Read... [11:09:42]Read from MH i2c: 01 [11:09:42]MH_I2C_Read... [11:09:42]Read from MH i2c: 01 07 00 [11:09:42]MH_I2C_Read... [11:09:42]Read from MH i2c: 01 07 00 D4 46 00 00 00 00 00 FF 0F 2F [11:09:42]RasterBufferAndPrint [11:09:42]line Счет N : (1)99340 [11:09:42]line ИНН: 02508201610067 [11:09:42]line Контрольно-Кассовый Чек [11:09:42]line ПРОДАЖА [11:09:42]line ТРК (МРК, ГНК) : 11 [11:09:42]line Товар: 2710124130 [11:09:42]line Аи-92-К-5 [11:09:42]line 2.990 * 66.90 [11:09:42]line = 200.03 [11:09:42]line НДС 12% НСП 1% [11:09:42]line > о реализуемом товаре [11:09:42]line ОКРУГЛЕНИЕ: -0.03 [11:09:42]line ИТОГО: 200.00 [11:09:42]line Внесено: 200.00 [11:09:42]line СДАЧА: 0.00 [11:09:42]line НСП 1% : 1.77 [11:09:42]line НДС 12% : 21.24 [11:09:42]line Наличными: 200.00 [11:09:42]line Безнал.: 0.00 [11:09:42]line Место: АЗС № 143 "Партнер Нефть" [11:09:42]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [11:09:42]line СНО: Общий режим [11:09:42]line Чек 77 27.10.2024 11:09 [11:09:42]line Смена: 537 ФФД: 1.0 [11:09:42]line ЗНМ: 0300000096 [11:09:42]line РНМ: 0000000000091693 [11:09:42]line Версия ККМ: 001 [11:09:42]line ФМ: 0000000000871792 [11:09:42]line ФД: 156526 [11:09:42]line ФПД: 109648069340516 [11:09:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T110946&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156526&fm=109648069340516&tin=02508201610067®Number=0000000000091693&sum=20000 [11:09:42]OFD Sender: Processing packet 156526 [packets to send 31, broken 30] [11:09:42]ProducePacketName [11:09:42]name=ofd_packets/00156526 [11:09:42]OFD Sender: To server: pG, [11:09:42]CommunicateWithHost lk.salyk.kg:30040 [11:09:42]ConnectInit lk.salyk.kg [11:09:42]written 0, free lines is 4095 [11:09:42]Connected sock=9 [11:09:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 1E 79 07 01 3F F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 4D 00 00 00 F4 03 04 00 7A 1F 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 6E 63 02 00 35 04 06 00 63 B9 6E 39 2D 64 69 24 39 B0 2F 7A 00 27 [11:09:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 DB AD 47 00 37 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 31 37 39 32 10 04 04 00 6E 63 02 00 F4 03 04 00 E9 C4 1D 67 B6 04 01 00 00 D8 68 DF 37 A0 C8 B2 12 [11:09:43]CommunicateWithHost err = 0 [11:09:43]CheckOFDResponse [11:09:43]1017 (14) - 77093643461234 [11:09:43]1041 (16) - 0000000000871792 [11:09:43]1040 (4) - 156526 [11:09:43]1012 (4) - 27.10.2024 04:43 [11:09:43]1206 (1) - 0 [11:09:43]OFD Sender: Remove packet 156526 [11:09:43]ProducePacketName [11:09:43]name=ofd_packets/00156526 [11:09:43]NVStorageDeleteData [11:09:43]Write to MH i2c: 01 00 00 FF 46 45 [11:09:43]Write i2c OK [11:09:43]MH_I2C_Read... [11:09:43]Read from MH i2c: 01 [11:09:43]MH_I2C_Read... [11:09:43]Read from MH i2c: 01 07 00 [11:09:43]MH_I2C_Read... [11:09:43]Read from MH i2c: 01 07 00 FF 46 00 00 00 00 00 D7 0C 2F [11:09:43]RasterBufferAndPrint [11:09:43]line [11:09:43]line [11:09:43]line [11:09:43]line [11:09:43]line [11:09:43]written 0, free lines is 3294 [11:09:43]process_action close_receipt done [11:09:43]requested_data is exist [11:09:43]produce_requested_data [11:09:43]requested_item fm.sn is exist - process it [11:09:43]wFMCommunicate request_size=4 [11:09:43]MH_SAM_APDU [11:09:43]CAPDU: 80 11 00 00 [11:09:43]Write to MH i2c: E2 08 00 06 47 80 11 00 00 00 00 00 00 C7 [11:09:43]Write i2c OK [11:09:43]MH_I2C_Read... [11:09:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:09:43]Read from MH i2c: E2 [11:09:43]MH_I2C_Read... [11:09:43]Read from MH i2c: E2 17 00 [11:09:43]MH_I2C_Read... [11:09:43]Read from MH i2c: E2 17 00 06 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 1C [11:09:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:09:43]wFMCommunicate OK [11:09:43]requested_item fd.num is exist - process it [11:09:43]SAM_PROTO_GetFieldsCounters [11:09:43]wFMCommunicate request_size=4 [11:09:43]MH_SAM_APDU [11:09:43]CAPDU: 80 13 00 00 [11:09:43]Write to MH i2c: E2 08 00 07 47 80 13 00 00 00 00 00 00 CA [11:09:43]Write i2c OK [11:09:43]MH_I2C_Read... [11:09:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:09:43]Read from MH i2c: E2 [11:09:43]MH_I2C_Read... [11:09:43]Read from MH i2c: E2 62 00 [11:09:43]MH_I2C_Read... [11:09:43]Read from MH i2c: E2 62 00 07 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 6E 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 C5 [11:09:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 6E 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:09:43]wFMCommunicate OK [11:09:43]SAM_PROTO_GetFieldsCounters done [11:09:43]requested_item shift.num is exist - process it [11:09:43]requested_item shift.opened is exist - process it [11:09:43]req_shift_opened [11:09:43]FM_GetShiftState [11:09:43]SAM_PROTO_GetShiftState [11:09:43]wFMCommunicate request_size=4 [11:09:43]MH_SAM_APDU [11:09:43]CAPDU: 80 13 01 00 [11:09:43]Write to MH i2c: E2 08 00 08 47 80 13 01 00 00 00 00 00 CC [11:09:43]Write i2c OK [11:09:43]MH_I2C_Read... [11:09:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:09:43]Read from MH i2c: E2 [11:09:43]MH_I2C_Read... [11:09:43]Read from MH i2c: E2 0E 00 [11:09:43]MH_I2C_Read... [11:09:43]Read from MH i2c: E2 0E 00 08 47 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 99 [11:09:43]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [11:09:43]wFMCommunicate OK [11:09:43]SAM_PROTO_GetShiftState done [11:09:43]FM_GetShiftState done [11:09:43]req_shift_opened done [11:09:43]requested_item shift.open_date is exist - process it [11:09:43]req_shift_open_date [11:09:43]req_shift_open_date done [11:09:43]produce_requested_data done [11:09:43]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156526,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [11:09:43]process_action_free close_receipt [11:09:43]json_value_free [11:09:43]json_value_free done [11:09:43]process_json_proto returns [11:09:43]Send response to host [11:09:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156526,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [11:09:43]free response buf [11:09:43]execute_script done [11:09:43]execute_script returns [11:09:43]free content buf [11:09:43]Sock 10.Close socket [11:09:43]Sock 10.Thread stoped [11:09:43]OFD Sender: No OFD packet to send [11:09:48]OFD Sender: No OFD packet to send [11:09:53]OFD Sender: No OFD packet to send [11:09:58]OFD Sender: No OFD packet to send [11:10:03]OFD Sender: No OFD packet to send [11:10:08]OFD Sender: No OFD packet to send [11:10:13]OFD Sender: No OFD packet to send [11:10:18]OFD Sender: No OFD packet to send [11:10:22]accept exits with 8 [11:10:22]New connection [11:10:22]New thread 3066977636 created [11:10:22]Thread 3066834276 joined [11:10:22]Waiting for new connection... [11:10:22] Sock 8.Parse request [11:10:22]Sock 8.Check first char [11:10:22]Sock 8.First char is OK [11:10:22]request: POST /json_proto HTTP/1.0 [11:10:22]Method: POST [11:10:22]URL: /json_proto [11:10:22]Method is POST - this is cgi request [11:10:22]url: /json_proto [11:10:22]query_string will be loaded in cgi processing [11:10:22]execute_cgi json_proto POST (null) [11:10:22]execute_cgi path=json_proto method=POST [11:10:22]POST find Content-Length [11:10:22]Host: 172.17.63.3:8080 [11:10:22]Content-Length: 674 [11:10:22]Content-Type: application/json [11:10:22] [11:10:22]POST finish read [11:10:22]Found Content-Length = 674 [11:10:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99341", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 11.030, "sum" : 840.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 840.00, "total" : 840.00, "payments": [ { "type": 0, "sum" : 840.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:10:22]execute_script... [11:10: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)99341", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 11.030, "sum" : 840.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 840.00, "total" : 840.00, "payments": [ { "type": 0, "sum" : 840.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:10:22]POST & json_proto [11:10:22]process_json_proto [11:10:22]json parsed OK: [11:10:22]protocol is kg_v1.0 [11:10:22]action value=close_receipt [11:10:22]process_action close_receipt [11:10:22]cmd_close_receipt [11:10:22]MH_GetDate [11:10:22]Write to MH i2c: F0 00 00 09 47 3F [11:10:22]Write i2c OK [11:10:22]MH_I2C_Read... [11:10:22]Read from MH i2c: F0 [11:10:22]MH_I2C_Read... [11:10:22]Read from MH i2c: F0 09 00 [11:10:22]MH_I2C_Read... [11:10:22]Read from MH i2c: F0 09 00 09 47 00 A3 1F 1E 67 50 D1 6C 64 80 [11:10:22]GetLastDocTimeStamp 1730027386 [11:10:22]current date 1730027427 [11:10:22]FM_GetShiftState [11:10:22]SAM_PROTO_GetShiftState [11:10:22]wFMCommunicate request_size=4 [11:10:22]MH_SAM_APDU [11:10:22]CAPDU: 80 13 01 00 [11:10:22]Write to MH i2c: E2 08 00 0A 47 80 13 01 00 00 00 00 00 CE [11:10:22]Write i2c OK [11:10:22]MH_I2C_Read... [11:10:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:22]Read from MH i2c: E2 [11:10:22]MH_I2C_Read... [11:10:22]Read from MH i2c: E2 0E 00 [11:10:22]MH_I2C_Read... [11:10:22]Read from MH i2c: E2 0E 00 0A 47 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 9B [11:10:22]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [11:10:22]wFMCommunicate OK [11:10:22]SAM_PROTO_GetShiftState done [11:10:22]FM_GetShiftState done [11:10:22]opened in 1729989044 [11:10:22]opened+sec_in_day 1730075444 [11:10:22]quantity*price = 84048 [11:10:22]sum+1 = 84050 [11:10:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 840.00 Внесено: 840.00 СДАЧА: 0.00 НСП 1% : 7.44 НДС 12% : 89.26 Наличными: 840.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 78 27.10.2024 11:10 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156527 ФПД: 246174935194655 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T111027&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156527&fm=246174935194655&tin=02508201610067®Number=0000000000091693&sum=84000 [11:10:23]StoreToDocumentArchive [11:10:23]shift 537 fd 156527 [11:10:23]save to /storage/0537/doc_00156527 [11:10:23]save last doc name /storage/0537/doc_00156527 to /storage/kkm_last_doc_name [11:10:23]save OK [11:10:23]Clear old archive folders... [11:10:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:10:23]tlvbuf is B6DAE6C0 [11:10:23]SAM_PROTO_ClearQueue [11:10:23]wFMCommunicate request_size=4 [11:10:23]MH_SAM_APDU [11:10:23]CAPDU: 80 09 00 00 [11:10:23]Write to MH i2c: E2 08 00 17 47 80 09 00 00 00 00 00 00 D0 [11:10:23]Write i2c OK [11:10:23]MH_I2C_Read... [11:10:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:10:23]Read from MH i2c: E2 [11:10:23]MH_I2C_Read... [11:10:23]Read from MH i2c: E2 03 00 [11:10:23]MH_I2C_Read... [11:10:23]Read from MH i2c: E2 03 00 17 47 00 90 00 D2 [11:10:23]RAPDU: 90 00 [11:10:23]wFMCommunicate OK [11:10:23]SAM_PROTO_ClearQueue done [11:10:23]KKMCreateOFDPacket [11:10:23]OFDProtocolAddRootSTLVToBuf [11:10:23]FM_MakeSignedData [11:10:23]FM_MakeSignedData [11:10:23]SAM_PROTO_SignData [11:10:23]wFMCommunicate request_size=4 [11:10:23]MH_SAM_APDU [11:10:23]CAPDU: 80 0D 01 02 [11:10:23]Write to MH i2c: E2 08 00 18 47 80 0D 01 02 00 00 00 00 D8 [11:10:23]Write i2c OK [11:10:23]MH_I2C_Read... [11:10:23]Read from MH i2c: E2 [11:10:23]MH_I2C_Read... [11:10:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:10:23]Read from MH i2c: E2 03 00 [11:10:23]MH_I2C_Read... [11:10:23]Read from MH i2c: E2 03 00 18 47 00 90 00 D3 [11:10:23]RAPDU: 90 00 [11:10:23]wFMCommunicate OK [11:10:23]wFMCommunicate request_size=255 [11:10:23]MH_SAM_APDU [11:10:23]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 16 2B 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 51 48 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 48 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E8 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 22 00 00 00 00 07 04 06 00 20 48 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 A3 1F 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 6F 63 02 00 35 04 06 00 DF E5 11 90 [11:10:23]Write to MH i2c: E2 02 01 19 47 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 16 2B 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 51 48 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 48 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E8 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 22 00 00 00 00 07 04 06 00 20 48 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 A3 1F 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 6F 63 02 00 35 04 06 00 DF E5 11 90 00 00 9B [11:10:23]Write i2c OK [11:10:23]MH_I2C_Read... [11:10:23]OFD Sender: No OFD packet to send [11:10:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:10:23]Read from MH i2c: E2 [11:10:23]MH_I2C_Read... [11:10:23]Read from MH i2c: E2 03 00 [11:10:23]MH_I2C_Read... [11:10:23]Read from MH i2c: E2 03 00 19 47 00 90 00 D4 [11:10:23]RAPDU: 90 00 [11:10:23]wFMCommunicate OK [11:10:23]wFMCommunicate request_size=7 [11:10:23]MH_SAM_APDU [11:10:23]CAPDU: 80 0D 02 02 02 9C 1F [11:10:23]Write to MH i2c: E2 0A 00 1A 47 80 0D 02 02 02 00 9C 1F 00 00 9A [11:10:23]Write i2c OK [11:10:23]MH_I2C_Read... [11:10:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:10:23]Read from MH i2c: E2 [11:10:23]MH_I2C_Read... [11:10:23]Read from MH i2c: E2 03 00 [11:10:23]MH_I2C_Read... [11:10:23]Read from MH i2c: E2 03 00 1A 47 00 90 00 D5 [11:10:23]RAPDU: 90 00 [11:10:23]wFMCommunicate OK [11:10:23]wFMCommunicate request_size=4 [11:10:23]MH_SAM_APDU [11:10:23]CAPDU: 80 0D 03 02 [11:10:23]Write to MH i2c: E2 08 00 1B 47 80 0D 03 02 00 00 00 00 DD [11:10:23]Write i2c OK [11:10:23]MH_I2C_Read... [11:10:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:10:23]Read from MH i2c: E2 [11:10:23]MH_I2C_Read... [11:10:23]Read from MH i2c: E2 0B 00 [11:10:23]MH_I2C_Read... [11:10:23]Read from MH i2c: E2 0B 00 1B 47 00 E5 22 1B C1 13 EF C3 D1 90 00 57 [11:10:23]RAPDU: E5 22 1B C1 13 EF C3 D1 90 00 [11:10:23]wFMCommunicate OK [11:10:23]SAM_PROTO_SignData done [11:10:23]FM_MakeSignedData done [11:10:23]CreateOFDProtocolMessage [11:10:23]wFMCommunicate request_size=4 [11:10:23]MH_SAM_APDU [11:10:23]CAPDU: 80 11 00 00 [11:10:23]Write to MH i2c: E2 08 00 1C 47 80 11 00 00 00 00 00 00 DD [11:10:23]Write i2c OK [11:10:23]MH_I2C_Read... [11:10:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:24]Read from MH i2c: E2 [11:10:24]MH_I2C_Read... [11:10:24]Read from MH i2c: E2 17 00 [11:10:24]MH_I2C_Read... [11:10:24]Read from MH i2c: E2 17 00 1C 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 32 [11:10:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:10:24]wFMCommunicate OK [11:10:24]CreateOFDProtocolMessage done [11:10:24]OFDSenderStorePacket 156527 [11:10:24]StoreOFDPacket docnum=156527 [11:10:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 B8 D6 04 01 C2 81 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 16 2B 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 51 48 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 48 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E8 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 22 00 00 00 00 07 04 06 00 20 48 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 A3 1F 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 6F 63 02 00 35 04 06 00 DF E5 11 90 9C 1F E5 22 1B C1 13 EF C3 D1 [11:10:24]CheckFolder [11:10:24]dirname=/storage/ofd_packets [11:10:24]CheckFolder done [11:10:24]ProducePacketName [11:10:24]name=ofd_packets/00156527 [11:10:24]NVStorageSaveData ofd_packets/00156527 [11:10:24]File name is /storage/ofd_packets/00156527 [11:10:24]Write 298 bytes [11:10:24]NVStorageSaveData done [11:10:24]OFDSenderStorePacket done [11:10:24]KKMCreateOFDPacket done [11:10:24]NVStorageSaveData kkm_last_timestamp [11:10:24]File name is /storage/kkm_last_timestamp [11:10:24]Write 4 bytes [11:10:24]NVStorageSaveData done [11:10:24]ExternCall_PrintAddStr [11:10:24]wPrintStart [11:10:24]Write to MH i2c: 01 00 00 1D 47 64 [11:10:24]Write i2c OK [11:10:24]MH_I2C_Read... [11:10:24]Read from MH i2c: 01 [11:10:24]MH_I2C_Read... [11:10:24]Read from MH i2c: 01 07 00 [11:10:24]MH_I2C_Read... [11:10:24]Read from MH i2c: 01 07 00 1D 47 00 00 00 00 00 FF 0F 79 [11:10:24]RasterBufferAndPrint [11:10:24]line Счет N : (1)99341 [11:10:24]line ИНН: 02508201610067 [11:10:24]line Контрольно-Кассовый Чек [11:10:24]line ПРОДАЖА [11:10:24]line ТРК (МРК, ГНК) : 32 [11:10:24]line Товар: 2710194210 [11:10:24]line ДТ-К-5 [11:10:24]line 11.030 * 76.20 [11:10:24]line = 840.49 [11:10:24]line НДС 12% НСП 1% [11:10:24]line > о реализуемом товаре [11:10:24]line ОКРУГЛЕНИЕ: -0.49 [11:10:24]line ИТОГО: 840.00 [11:10:24]line Внесено: 840.00 [11:10:24]line СДАЧА: 0.00 [11:10:24]line НСП 1% : 7.44 [11:10:24]line НДС 12% : 89.26 [11:10:24]line Наличными: 840.00 [11:10:24]line Безнал.: 0.00 [11:10:24]line Место: АЗС № 143 "Партнер Нефть" [11:10:24]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [11:10:24]line СНО: Общий режим [11:10:24]line Чек 78 27.10.2024 11:10 [11:10:24]line Смена: 537 ФФД: 1.0 [11:10:24]line ЗНМ: 0300000096 [11:10:24]line РНМ: 0000000000091693 [11:10:24]line Версия ККМ: 001 [11:10:24]line ФМ: 0000000000871792 [11:10:24]line ФД: 156527 [11:10:24]line ФПД: 246174935194655 [11:10:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T111027&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156527&fm=246174935194655&tin=02508201610067®Number=0000000000091693&sum=84000 [11:10:24]OFD Sender: Processing packet 156527 [packets to send 31, broken 30] [11:10:24]ProducePacketName [11:10:24]name=ofd_packets/00156527 [11:10:24]OFD Sender: To server: pG, [11:10:24]CommunicateWithHost lk.salyk.kg:30040 [11:10:24]ConnectInit lk.salyk.kg [11:10:24]written 0, free lines is 4095 [11:10:24]Connected sock=10 [11:10:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 B8 D6 04 01 C2 81 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 16 2B 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 51 48 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 48 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E8 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 22 00 00 00 00 07 04 06 00 20 48 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 A3 1F 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 6F 63 02 00 35 04 06 00 DF E5 11 90 9C 1F E5 22 1B C1 13 EF C3 D1 [11:10:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 9D CA 47 00 2B C5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 6F 63 02 00 F4 03 04 00 13 C5 1D 67 B6 04 01 00 00 AF F3 3A CE 29 49 2F 95 [11:10:24]CommunicateWithHost err = 0 [11:10:24]CheckOFDResponse [11:10:24]1017 (14) - 77093643461234 [11:10:24]1041 (16) - 0000000000871792 [11:10:24]1040 (4) - 156527 [11:10:24]1012 (4) - 27.10.2024 04:44 [11:10:24]1206 (1) - 0 [11:10:24]OFD Sender: Remove packet 156527 [11:10:24]ProducePacketName [11:10:24]name=ofd_packets/00156527 [11:10:24]NVStorageDeleteData [11:10:24]Write to MH i2c: 01 00 00 48 47 8F [11:10:24]Write i2c OK [11:10:24]MH_I2C_Read... [11:10:24]Read from MH i2c: 01 [11:10:24]MH_I2C_Read... [11:10:24]Read from MH i2c: 01 07 00 [11:10:24]MH_I2C_Read... [11:10:24]Read from MH i2c: 01 07 00 48 47 00 00 00 00 00 E0 0C 82 [11:10:24]RasterBufferAndPrint [11:10:24]line [11:10:24]line [11:10:24]line [11:10:24]line [11:10:24]line [11:10:24]written 0, free lines is 3302 [11:10:24]process_action close_receipt done [11:10:24]requested_data is exist [11:10:24]produce_requested_data [11:10:24]requested_item fm.sn is exist - process it [11:10:24]wFMCommunicate request_size=4 [11:10:24]MH_SAM_APDU [11:10:24]CAPDU: 80 11 00 00 [11:10:24]Write to MH i2c: E2 08 00 4F 47 80 11 00 00 00 00 00 00 10 [11:10:24]Write i2c OK [11:10:24]MH_I2C_Read... [11:10:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:24]Read from MH i2c: E2 [11:10:24]MH_I2C_Read... [11:10:24]Read from MH i2c: E2 17 00 [11:10:24]MH_I2C_Read... [11:10:24]Read from MH i2c: E2 17 00 4F 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 65 [11:10:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:10:24]wFMCommunicate OK [11:10:24]requested_item fd.num is exist - process it [11:10:24]SAM_PROTO_GetFieldsCounters [11:10:24]wFMCommunicate request_size=4 [11:10:24]MH_SAM_APDU [11:10:24]CAPDU: 80 13 00 00 [11:10:24]Write to MH i2c: E2 08 00 50 47 80 13 00 00 00 00 00 00 13 [11:10:24]Write i2c OK [11:10:24]MH_I2C_Read... [11:10:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:10:25]Read from MH i2c: E2 [11:10:25]MH_I2C_Read... [11:10:25]Read from MH i2c: E2 62 00 [11:10:25]MH_I2C_Read... [11:10:25]Read from MH i2c: E2 62 00 50 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 6F 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 12 [11:10:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 6F 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:10:25]wFMCommunicate OK [11:10:25]SAM_PROTO_GetFieldsCounters done [11:10:25]requested_item shift.num is exist - process it [11:10:25]requested_item shift.opened is exist - process it [11:10:25]req_shift_opened [11:10:25]FM_GetShiftState [11:10:25]SAM_PROTO_GetShiftState [11:10:25]wFMCommunicate request_size=4 [11:10:25]MH_SAM_APDU [11:10:25]CAPDU: 80 13 01 00 [11:10:25]Write to MH i2c: E2 08 00 51 47 80 13 01 00 00 00 00 00 15 [11:10:25]Write i2c OK [11:10:25]MH_I2C_Read... [11:10:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:25]Read from MH i2c: E2 [11:10:25]MH_I2C_Read... [11:10:25]Read from MH i2c: E2 0E 00 [11:10:25]MH_I2C_Read... [11:10:25]Read from MH i2c: E2 0E 00 51 47 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 E2 [11:10:25]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [11:10:25]wFMCommunicate OK [11:10:25]SAM_PROTO_GetShiftState done [11:10:25]FM_GetShiftState done [11:10:25]req_shift_opened done [11:10:25]requested_item shift.open_date is exist - process it [11:10:25]req_shift_open_date [11:10:25]req_shift_open_date done [11:10:25]produce_requested_data done [11:10:25]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156527,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [11:10:25]process_action_free close_receipt [11:10:25]json_value_free [11:10:25]json_value_free done [11:10:25]process_json_proto returns [11:10:25]Send response to host [11:10:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156527,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [11:10:25]free response buf [11:10:25]execute_script done [11:10:25]execute_script returns [11:10:25]free content buf [11:10:25]Sock 8.Close socket [11:10:25]Sock 8.Thread stoped [11:10:25]OFD Sender: No OFD packet to send [11:10:30]OFD Sender: No OFD packet to send [11:10:35]OFD Sender: No OFD packet to send [11:10:40]OFD Sender: No OFD packet to send [11:10:45]OFD Sender: No OFD packet to send [11:10:50]OFD Sender: No OFD packet to send [11:10:55]OFD Sender: No OFD packet to send [11:11:00]OFD Sender: No OFD packet to send [11:11:05]OFD Sender: No OFD packet to send [11:11:10]OFD Sender: No OFD packet to send [11:11:15]OFD Sender: No OFD packet to send [11:11:20]OFD Sender: No OFD packet to send [11:11:25]OFD Sender: No OFD packet to send [11:11:30]OFD Sender: No OFD packet to send [11:11:35]OFD Sender: No OFD packet to send [11:11:40]OFD Sender: No OFD packet to send [11:11:45]OFD Sender: No OFD packet to send [11:11:50]OFD Sender: No OFD packet to send [11:11:55]OFD Sender: No OFD packet to send [11:12:00]OFD Sender: No OFD packet to send [11:12:05]OFD Sender: No OFD packet to send [11:12:10]OFD Sender: No OFD packet to send [11:12:15]OFD Sender: No OFD packet to send [11:12:20]OFD Sender: No OFD packet to send [11:12:25]OFD Sender: No OFD packet to send [11:12:30]OFD Sender: No OFD packet to send [11:12:35]OFD Sender: No OFD packet to send [11:12:40]OFD Sender: No OFD packet to send [11:12:45]OFD Sender: No OFD packet to send [11:12:46]accept exits with 9 [11:12:46]New connection [11:12:46]New thread 3066834276 created [11:12:46]Thread 3066977636 joined [11:12:46]Waiting for new connection... [11:12:46] Sock 9.Parse request [11:12:46]Sock 9.Check first char [11:12:46]Sock 9.First char is OK [11:12:46]request: POST /json_proto HTTP/1.0 [11:12:46]Method: POST [11:12:46]URL: /json_proto [11:12:46]Method is POST - this is cgi request [11:12:46]url: /json_proto [11:12:46]query_string will be loaded in cgi processing [11:12:46]execute_cgi json_proto POST (null) [11:12:46]execute_cgi path=json_proto method=POST [11:12:46]POST find Content-Length [11:12:46]Host: 172.17.63.3:8080 [11:12:46]Content-Length: 676 [11:12:46]Content-Type: application/json [11:12:46] [11:12:46]POST finish read [11:12:46]Found Content-Length = 676 [11:12:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99342", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:12:46]execute_script... [11:12: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)99342", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:12:46]POST & json_proto [11:12:46]process_json_proto [11:12:46]json parsed OK: [11:12:46]protocol is kg_v1.0 [11:12:46]action value=close_receipt [11:12:46]process_action close_receipt [11:12:46]cmd_close_receipt [11:12:46]MH_GetDate [11:12:46]Write to MH i2c: F0 00 00 52 47 88 [11:12:46]Write i2c OK [11:12:46]MH_I2C_Read... [11:12:46]Read from MH i2c: F0 [11:12:46]MH_I2C_Read... [11:12:46]Read from MH i2c: F0 09 00 [11:12:46]MH_I2C_Read... [11:12:46]Read from MH i2c: F0 09 00 52 47 00 34 20 1E 67 50 D1 6C 64 5B [11:12:46]GetLastDocTimeStamp 1730027427 [11:12:46]current date 1730027572 [11:12:46]FM_GetShiftState [11:12:46]SAM_PROTO_GetShiftState [11:12:46]wFMCommunicate request_size=4 [11:12:46]MH_SAM_APDU [11:12:46]CAPDU: 80 13 01 00 [11:12:46]Write to MH i2c: E2 08 00 53 47 80 13 01 00 00 00 00 00 17 [11:12:46]Write i2c OK [11:12:46]MH_I2C_Read... [11:12:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:46]Read from MH i2c: E2 [11:12:46]MH_I2C_Read... [11:12:46]Read from MH i2c: E2 0E 00 [11:12:46]MH_I2C_Read... [11:12:46]Read from MH i2c: E2 0E 00 53 47 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 E4 [11:12:46]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [11:12:46]wFMCommunicate OK [11:12:46]SAM_PROTO_GetShiftState done [11:12:46]FM_GetShiftState done [11:12:46]opened in 1729989044 [11:12:46]opened+sec_in_day 1730075444 [11:12:46]quantity*price = 50041 [11:12:46]sum+1 = 50042 [11:12:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 79 27.10.2024 11:12 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156528 ФПД: 11006955315174 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T111252&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156528&fm=11006955315174&tin=02508201610067®Number=0000000000091693&sum=50000 [11:12:47]StoreToDocumentArchive [11:12:47]shift 537 fd 156528 [11:12:47]save to /storage/0537/doc_00156528 [11:12:47]save last doc name /storage/0537/doc_00156528 to /storage/kkm_last_doc_name [11:12:47]save OK [11:12:47]Clear old archive folders... [11:12:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:12:48]tlvbuf is 017A9290 [11:12:48]SAM_PROTO_ClearQueue [11:12:48]wFMCommunicate request_size=4 [11:12:48]MH_SAM_APDU [11:12:48]CAPDU: 80 09 00 00 [11:12:48]Write to MH i2c: E2 08 00 60 47 80 09 00 00 00 00 00 00 19 [11:12:48]Write i2c OK [11:12:48]MH_I2C_Read... [11:12:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:12:48]Read from MH i2c: E2 [11:12:48]MH_I2C_Read... [11:12:48]Read from MH i2c: E2 03 00 [11:12:48]MH_I2C_Read... [11:12:48]Read from MH i2c: E2 03 00 60 47 00 90 00 1B [11:12:48]RAPDU: 90 00 [11:12:48]wFMCommunicate OK [11:12:48]SAM_PROTO_ClearQueue done [11:12:48]KKMCreateOFDPacket [11:12:48]OFDProtocolAddRootSTLVToBuf [11:12:48]FM_MakeSignedData [11:12:48]FM_MakeSignedData [11:12:48]SAM_PROTO_SignData [11:12:48]wFMCommunicate request_size=4 [11:12:48]MH_SAM_APDU [11:12:48]CAPDU: 80 0D 01 02 [11:12:48]Write to MH i2c: E2 08 00 61 47 80 0D 01 02 00 00 00 00 21 [11:12:48]Write i2c OK [11:12:48]MH_I2C_Read... [11:12:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:12:48]Read from MH i2c: E2 [11:12:48]MH_I2C_Read... [11:12:48]Read from MH i2c: E2 03 00 [11:12:48]MH_I2C_Read... [11:12:48]Read from MH i2c: E2 03 00 61 47 00 90 00 1C [11:12:48]RAPDU: 90 00 [11:12:48]wFMCommunicate OK [11:12:48]wFMCommunicate request_size=255 [11:12:48]MH_SAM_APDU [11:12: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 34 20 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 70 63 02 00 35 04 06 00 0A [11:12:48]Write to MH i2c: E2 02 01 62 47 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 34 20 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 70 63 02 00 35 04 06 00 0A 00 00 D7 [11:12:48]Write i2c OK [11:12:48]MH_I2C_Read... [11:12:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:48]Read from MH i2c: E2 [11:12:48]MH_I2C_Read... [11:12:48]Read from MH i2c: E2 03 00 [11:12:48]MH_I2C_Read... [11:12:48]Read from MH i2c: E2 03 00 62 47 00 90 00 1D [11:12:48]RAPDU: 90 00 [11:12:48]wFMCommunicate OK [11:12:48]wFMCommunicate request_size=10 [11:12:48]MH_SAM_APDU [11:12:48]CAPDU: 80 0D 02 02 05 02 C1 A9 5F E6 [11:12:48]Write to MH i2c: E2 0D 00 63 47 80 0D 02 02 05 00 02 C1 A9 5F E6 00 00 DF [11:12:48]Write i2c OK [11:12:48]MH_I2C_Read... [11:12:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:48]Read from MH i2c: E2 [11:12:48]MH_I2C_Read... [11:12:48]Read from MH i2c: E2 03 00 [11:12:48]MH_I2C_Read... [11:12:48]Read from MH i2c: E2 03 00 63 47 00 90 00 1E [11:12:48]RAPDU: 90 00 [11:12:48]wFMCommunicate OK [11:12:48]wFMCommunicate request_size=4 [11:12:48]MH_SAM_APDU [11:12:48]CAPDU: 80 0D 03 02 [11:12:48]Write to MH i2c: E2 08 00 64 47 80 0D 03 02 00 00 00 00 26 [11:12:48]Write i2c OK [11:12:48]MH_I2C_Read... [11:12:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:12:48]Read from MH i2c: E2 [11:12:48]MH_I2C_Read... [11:12:48]Read from MH i2c: E2 0B 00 [11:12:48]MH_I2C_Read... [11:12:48]Read from MH i2c: E2 0B 00 64 47 00 39 9B 3F 1D 87 10 A7 B5 90 00 4A [11:12:48]RAPDU: 39 9B 3F 1D 87 10 A7 B5 90 00 [11:12:48]wFMCommunicate OK [11:12:48]SAM_PROTO_SignData done [11:12:48]FM_MakeSignedData done [11:12:48]CreateOFDProtocolMessage [11:12:48]wFMCommunicate request_size=4 [11:12:48]MH_SAM_APDU [11:12:48]CAPDU: 80 11 00 00 [11:12:48]Write to MH i2c: E2 08 00 65 47 80 11 00 00 00 00 00 00 26 [11:12:48]Write i2c OK [11:12:48]MH_I2C_Read... [11:12:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:48]Read from MH i2c: E2 [11:12:48]MH_I2C_Read... [11:12:48]Read from MH i2c: E2 17 00 [11:12:48]MH_I2C_Read... [11:12:48]Read from MH i2c: E2 17 00 65 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 7B [11:12:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:12:48]wFMCommunicate OK [11:12:48]CreateOFDProtocolMessage done [11:12:48]OFDSenderStorePacket 156528 [11:12:48]StoreOFDPacket docnum=156528 [11:12:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 4E A1 07 01 4D 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 34 20 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 70 63 02 00 35 04 06 00 0A 02 C1 A9 5F E6 39 9B 3F 1D 87 10 A7 B5 [11:12:48]CheckFolder [11:12:48]dirname=/storage/ofd_packets [11:12:48]CheckFolder done [11:12:48]ProducePacketName [11:12:48]name=ofd_packets/00156528 [11:12:48]NVStorageSaveData ofd_packets/00156528 [11:12:48]File name is /storage/ofd_packets/00156528 [11:12:48]Write 301 bytes [11:12:48]NVStorageSaveData done [11:12:48]OFDSenderStorePacket done [11:12:48]KKMCreateOFDPacket done [11:12:48]NVStorageSaveData kkm_last_timestamp [11:12:48]File name is /storage/kkm_last_timestamp [11:12:48]Write 4 bytes [11:12:48]NVStorageSaveData done [11:12:48]ExternCall_PrintAddStr [11:12:48]wPrintStart [11:12:48]Write to MH i2c: 01 00 00 66 47 AD [11:12:48]Write i2c OK [11:12:48]MH_I2C_Read... [11:12:48]Read from MH i2c: 01 [11:12:48]MH_I2C_Read... [11:12:48]Read from MH i2c: 01 07 00 [11:12:48]MH_I2C_Read... [11:12:48]Read from MH i2c: 01 07 00 66 47 00 00 00 00 00 FF 0F C2 [11:12:48]RasterBufferAndPrint [11:12:48]line Счет N : (1)99342 [11:12:48]line ИНН: 02508201610067 [11:12:48]line Контрольно-Кассовый Чек [11:12:48]line ПРОДАЖА [11:12:48]line ТРК (МРК, ГНК) : 21 [11:12:48]line Товар: 2710124130 [11:12:48]line Аи-92-К-5 [11:12:48]line 7.480 * 66.90 [11:12:48]line = 500.41 [11:12:48]line НДС 12% НСП 1% [11:12:48]line > о реализуемом товаре [11:12:48]line ОКРУГЛЕНИЕ: -0.41 [11:12:48]line ИТОГО: 500.00 [11:12:48]line Внесено: 500.00 [11:12:48]line СДАЧА: 0.00 [11:12:48]line НСП 1% : 4.43 [11:12:48]line НДС 12% : 53.14 [11:12:48]line Наличными: 500.00 [11:12:48]line Безнал.: 0.00 [11:12:48]line Место: АЗС № 143 "Партнер Нефть" [11:12:48]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [11:12:48]line СНО: Общий режим [11:12:48]line Чек 79 27.10.2024 11:12 [11:12:48]line Смена: 537 ФФД: 1.0 [11:12:48]line ЗНМ: 0300000096 [11:12:48]line РНМ: 0000000000091693 [11:12:48]line Версия ККМ: 001 [11:12:48]line ФМ: 0000000000871792 [11:12:48]line ФД: 156528 [11:12:48]line ФПД: 11006955315174 [11:12:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T111252&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156528&fm=11006955315174&tin=02508201610067®Number=0000000000091693&sum=50000 [11:12:48]OFD Sender: Processing packet 156528 [packets to send 31, broken 30] [11:12:48]ProducePacketName [11:12:48]name=ofd_packets/00156528 [11:12:48]OFD Sender: To server: pG, [11:12:48]CommunicateWithHost lk.salyk.kg:30040 [11:12:48]ConnectInit lk.salyk.kg [11:12:48]written 0, free lines is 4095 [11:12:48]Connected sock=10 [11:12:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 4E A1 07 01 4D 6F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 34 20 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 70 63 02 00 35 04 06 00 0A 02 C1 A9 5F E6 39 9B 3F 1D 87 10 A7 B5 [11:12:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 9A 07 47 00 BE 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 31 37 39 32 10 04 04 00 70 63 02 00 F4 03 04 00 A4 C5 1D 67 B6 04 01 00 00 3E 4F BF 76 A1 A1 8C E4 [11:12:49]CommunicateWithHost err = 0 [11:12:49]CheckOFDResponse [11:12:49]1017 (14) - 77093643461234 [11:12:49]1041 (16) - 0000000000871792 [11:12:49]1040 (4) - 156528 [11:12:49]1012 (4) - 27.10.2024 04:46 [11:12:49]1206 (1) - 0 [11:12:49]OFD Sender: Remove packet 156528 [11:12:49]ProducePacketName [11:12:49]name=ofd_packets/00156528 [11:12:49]NVStorageDeleteData [11:12:49]Write to MH i2c: 01 00 00 91 47 D8 [11:12:49]Write i2c OK [11:12:49]MH_I2C_Read... [11:12:49]Read from MH i2c: 01 [11:12:49]MH_I2C_Read... [11:12:49]Read from MH i2c: 01 07 00 [11:12:49]MH_I2C_Read... [11:12:49]Read from MH i2c: 01 07 00 91 47 00 00 00 00 00 D4 0C BF [11:12:49]RasterBufferAndPrint [11:12:49]line [11:12:49]line [11:12:49]line [11:12:49]line [11:12:49]line [11:12:49]written 0, free lines is 3288 [11:12:49]process_action close_receipt done [11:12:49]requested_data is exist [11:12:49]produce_requested_data [11:12:49]requested_item fm.sn is exist - process it [11:12:49]wFMCommunicate request_size=4 [11:12:49]MH_SAM_APDU [11:12:49]CAPDU: 80 11 00 00 [11:12:49]Write to MH i2c: E2 08 00 98 47 80 11 00 00 00 00 00 00 59 [11:12:49]Write i2c OK [11:12:49]MH_I2C_Read... [11:12:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:49]Read from MH i2c: E2 [11:12:49]MH_I2C_Read... [11:12:49]Read from MH i2c: E2 17 00 [11:12:49]MH_I2C_Read... [11:12:49]Read from MH i2c: E2 17 00 98 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 AE [11:12:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:12:49]wFMCommunicate OK [11:12:49]requested_item fd.num is exist - process it [11:12:49]SAM_PROTO_GetFieldsCounters [11:12:49]wFMCommunicate request_size=4 [11:12:49]MH_SAM_APDU [11:12:49]CAPDU: 80 13 00 00 [11:12:49]Write to MH i2c: E2 08 00 99 47 80 13 00 00 00 00 00 00 5C [11:12:49]Write i2c OK [11:12:49]MH_I2C_Read... [11:12:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:12:49]Read from MH i2c: E2 [11:12:49]MH_I2C_Read... [11:12:49]Read from MH i2c: E2 62 00 [11:12:49]MH_I2C_Read... [11:12:49]Read from MH i2c: E2 62 00 99 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 70 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 5F [11:12:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 70 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:12:49]wFMCommunicate OK [11:12:49]SAM_PROTO_GetFieldsCounters done [11:12:49]requested_item shift.num is exist - process it [11:12:49]requested_item shift.opened is exist - process it [11:12:49]req_shift_opened [11:12:49]FM_GetShiftState [11:12:49]SAM_PROTO_GetShiftState [11:12:49]wFMCommunicate request_size=4 [11:12:49]MH_SAM_APDU [11:12:49]CAPDU: 80 13 01 00 [11:12:49]Write to MH i2c: E2 08 00 9A 47 80 13 01 00 00 00 00 00 5E [11:12:49]Write i2c OK [11:12:49]MH_I2C_Read... [11:12:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:49]Read from MH i2c: E2 [11:12:49]MH_I2C_Read... [11:12:49]Read from MH i2c: E2 0E 00 [11:12:49]MH_I2C_Read... [11:12:49]Read from MH i2c: E2 0E 00 9A 47 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 2B [11:12:49]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [11:12:49]wFMCommunicate OK [11:12:49]SAM_PROTO_GetShiftState done [11:12:49]FM_GetShiftState done [11:12:49]req_shift_opened done [11:12:49]requested_item shift.open_date is exist - process it [11:12:49]req_shift_open_date [11:12:49]req_shift_open_date done [11:12:49]produce_requested_data done [11:12:49]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156528,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [11:12:49]process_action_free close_receipt [11:12:49]json_value_free [11:12:49]json_value_free done [11:12:49]process_json_proto returns [11:12:49]Send response to host [11:12:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156528,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [11:12:49]free response buf [11:12:49]execute_script done [11:12:49]execute_script returns [11:12:49]free content buf [11:12:49]Sock 9.Close socket [11:12:49]Sock 9.Thread stoped [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:01]accept exits with 8 [11:13:01]New connection [11:13:01]New thread 3066977636 created [11:13:01]Thread 3066834276 joined [11:13:01]Waiting for new connection... [11:13:01] Sock 8.Parse request [11:13:01]Sock 8.Check first char [11:13:01]Sock 8.First char is OK [11:13:01]request: POST /json_proto HTTP/1.0 [11:13:01]Method: POST [11:13:01]URL: /json_proto [11:13:01]Method is POST - this is cgi request [11:13:01]url: /json_proto [11:13:01]query_string will be loaded in cgi processing [11:13:01]execute_cgi json_proto POST (null) [11:13:01]execute_cgi path=json_proto method=POST [11:13:01]POST find Content-Length [11:13:01]Host: 172.17.63.3:8080 [11:13:01]Content-Length: 676 [11:13:01]Content-Type: application/json [11:13:01] [11:13:01]POST finish read [11:13:01]Found Content-Length = 676 [11:13:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99343", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:01]execute_script... [11:13: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)99343", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:01]POST & json_proto [11:13:01]process_json_proto [11:13:01]json parsed OK: [11:13:01]protocol is kg_v1.0 [11:13:01]action value=close_receipt [11:13:01]process_action close_receipt [11:13:01]cmd_close_receipt [11:13:01]MH_GetDate [11:13:01]Write to MH i2c: F0 00 00 9B 47 D1 [11:13:01]Write i2c OK [11:13:01]MH_I2C_Read... [11:13:01]Read from MH i2c: F0 [11:13:01]MH_I2C_Read... [11:13:01]Read from MH i2c: F0 09 00 [11:13:01]MH_I2C_Read... [11:13:01]Read from MH i2c: F0 09 00 9B 47 00 43 20 1E 67 50 D1 6C 64 B3 [11:13:01]GetLastDocTimeStamp 1730027572 [11:13:01]current date 1730027587 [11:13:01]FM_GetShiftState [11:13:01]SAM_PROTO_GetShiftState [11:13:01]wFMCommunicate request_size=4 [11:13:01]MH_SAM_APDU [11:13:01]CAPDU: 80 13 01 00 [11:13:01]Write to MH i2c: E2 08 00 9C 47 80 13 01 00 00 00 00 00 60 [11:13:01]Write i2c OK [11:13:01]MH_I2C_Read... [11:13:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:02]Read from MH i2c: E2 [11:13:02]MH_I2C_Read... [11:13:02]Read from MH i2c: E2 0E 00 [11:13:02]MH_I2C_Read... [11:13:02]Read from MH i2c: E2 0E 00 9C 47 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 2D [11:13:02]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [11:13:02]wFMCommunicate OK [11:13:02]SAM_PROTO_GetShiftState done [11:13:02]FM_GetShiftState done [11:13:02]opened in 1729989044 [11:13:02]opened+sec_in_day 1730075444 [11:13:02]quantity*price = 20003 [11:13:02]sum+1 = 20004 [11:13:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 80 27.10.2024 11:13 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156529 ФПД: 52457341678840 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T111307&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156529&fm=52457341678840&tin=02508201610067®Number=0000000000091693&sum=20000 [11:13:03]StoreToDocumentArchive [11:13:03]shift 537 fd 156529 [11:13:03]save to /storage/0537/doc_00156529 [11:13:03]save last doc name /storage/0537/doc_00156529 to /storage/kkm_last_doc_name [11:13:03]save OK [11:13:03]Clear old archive folders... [11:13:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:13:03]tlvbuf is 016BD530 [11:13:03]SAM_PROTO_ClearQueue [11:13:03]wFMCommunicate request_size=4 [11:13:03]MH_SAM_APDU [11:13:03]CAPDU: 80 09 00 00 [11:13:03]Write to MH i2c: E2 08 00 A9 47 80 09 00 00 00 00 00 00 62 [11:13:03]Write i2c OK [11:13:03]MH_I2C_Read... [11:13:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:13:03]Read from MH i2c: E2 [11:13:03]MH_I2C_Read... [11:13:03]Read from MH i2c: E2 03 00 [11:13:03]MH_I2C_Read... [11:13:03]Read from MH i2c: E2 03 00 A9 47 00 90 00 64 [11:13:03]RAPDU: 90 00 [11:13:03]wFMCommunicate OK [11:13:03]SAM_PROTO_ClearQueue done [11:13:03]KKMCreateOFDPacket [11:13:03]OFDProtocolAddRootSTLVToBuf [11:13:03]FM_MakeSignedData [11:13:03]FM_MakeSignedData [11:13:03]SAM_PROTO_SignData [11:13:03]wFMCommunicate request_size=4 [11:13:03]MH_SAM_APDU [11:13:03]CAPDU: 80 0D 01 02 [11:13:03]Write to MH i2c: E2 08 00 AA 47 80 0D 01 02 00 00 00 00 6A [11:13:03]Write i2c OK [11:13:03]MH_I2C_Read... [11:13:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:13:03]Read from MH i2c: E2 [11:13:03]MH_I2C_Read... [11:13:03]Read from MH i2c: E2 03 00 [11:13:03]MH_I2C_Read... [11:13:03]Read from MH i2c: E2 03 00 AA 47 00 90 00 65 [11:13:03]RAPDU: 90 00 [11:13:03]wFMCommunicate OK [11:13:03]wFMCommunicate request_size=255 [11:13:03]MH_SAM_APDU [11:13: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 50 00 00 00 F4 03 04 00 43 20 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 71 63 02 00 35 04 06 00 2F [11:13:03]Write to MH i2c: E2 02 01 AB 47 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 50 00 00 00 F4 03 04 00 43 20 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 71 63 02 00 35 04 06 00 2F 00 00 18 [11:13:03]Write i2c OK [11:13:03]MH_I2C_Read... [11:13:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:03]Read from MH i2c: E2 [11:13:03]MH_I2C_Read... [11:13:03]Read from MH i2c: E2 03 00 [11:13:03]MH_I2C_Read... [11:13:03]Read from MH i2c: E2 03 00 AB 47 00 90 00 66 [11:13:03]RAPDU: 90 00 [11:13:03]wFMCommunicate OK [11:13:03]wFMCommunicate request_size=10 [11:13:03]MH_SAM_APDU [11:13:03]CAPDU: 80 0D 02 02 05 B5 AD 37 74 F8 [11:13:03]Write to MH i2c: E2 0D 00 AC 47 80 0D 02 02 05 00 B5 AD 37 74 F8 00 00 7C [11:13:03]Write i2c OK [11:13:03]MH_I2C_Read... [11:13:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:03]Read from MH i2c: E2 [11:13:03]MH_I2C_Read... [11:13:03]Read from MH i2c: E2 03 00 [11:13:03]MH_I2C_Read... [11:13:03]Read from MH i2c: E2 03 00 AC 47 00 90 00 67 [11:13:03]RAPDU: 90 00 [11:13:03]wFMCommunicate OK [11:13:03]wFMCommunicate request_size=4 [11:13:03]MH_SAM_APDU [11:13:03]CAPDU: 80 0D 03 02 [11:13:03]Write to MH i2c: E2 08 00 AD 47 80 0D 03 02 00 00 00 00 6F [11:13:03]Write i2c OK [11:13:03]MH_I2C_Read... [11:13:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:13:03]Read from MH i2c: E2 [11:13:03]MH_I2C_Read... [11:13:03]Read from MH i2c: E2 0B 00 [11:13:03]MH_I2C_Read... [11:13:03]Read from MH i2c: E2 0B 00 AD 47 00 42 85 7C F0 8A E8 2C 59 90 00 9A [11:13:03]RAPDU: 42 85 7C F0 8A E8 2C 59 90 00 [11:13:03]wFMCommunicate OK [11:13:03]SAM_PROTO_SignData done [11:13:03]FM_MakeSignedData done [11:13:03]CreateOFDProtocolMessage [11:13:03]wFMCommunicate request_size=4 [11:13:03]MH_SAM_APDU [11:13:03]CAPDU: 80 11 00 00 [11:13:03]Write to MH i2c: E2 08 00 AE 47 80 11 00 00 00 00 00 00 6F [11:13:03]Write i2c OK [11:13:03]MH_I2C_Read... [11:13:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:03]Read from MH i2c: E2 [11:13:03]MH_I2C_Read... [11:13:03]Read from MH i2c: E2 17 00 [11:13:03]MH_I2C_Read... [11:13:03]Read from MH i2c: E2 17 00 AE 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 C4 [11:13:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:13:03]wFMCommunicate OK [11:13:03]CreateOFDProtocolMessage done [11:13:03]OFDSenderStorePacket 156529 [11:13:03]StoreOFDPacket docnum=156529 [11:13:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 5C D0 07 01 28 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 50 00 00 00 F4 03 04 00 43 20 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 71 63 02 00 35 04 06 00 2F B5 AD 37 74 F8 42 85 7C F0 8A E8 2C 59 [11:13:03]CheckFolder [11:13:03]dirname=/storage/ofd_packets [11:13:03]CheckFolder done [11:13:03]ProducePacketName [11:13:03]name=ofd_packets/00156529 [11:13:03]NVStorageSaveData ofd_packets/00156529 [11:13:03]File name is /storage/ofd_packets/00156529 [11:13:03]Write 301 bytes [11:13:03]NVStorageSaveData done [11:13:03]OFDSenderStorePacket done [11:13:03]KKMCreateOFDPacket done [11:13:03]NVStorageSaveData kkm_last_timestamp [11:13:03]File name is /storage/kkm_last_timestamp [11:13:03]Write 4 bytes [11:13:03]NVStorageSaveData done [11:13:03]ExternCall_PrintAddStr [11:13:03]wPrintStart [11:13:03]Write to MH i2c: 01 00 00 AF 47 F6 [11:13:03]Write i2c OK [11:13:03]MH_I2C_Read... [11:13:03]Read from MH i2c: 01 [11:13:03]MH_I2C_Read... [11:13:03]Read from MH i2c: 01 07 00 [11:13:03]MH_I2C_Read... [11:13:03]Read from MH i2c: 01 07 00 AF 47 00 00 00 00 00 FF 0F 0B [11:13:03]RasterBufferAndPrint [11:13:03]line Счет N : (1)99343 [11:13:03]line ИНН: 02508201610067 [11:13:03]line Контрольно-Кассовый Чек [11:13:03]line ПРОДАЖА [11:13:03]line ТРК (МРК, ГНК) : 31 [11:13:03]line Товар: 2710124130 [11:13:03]line Аи-92-К-5 [11:13:03]line 2.990 * 66.90 [11:13:03]line = 200.03 [11:13:03]line НДС 12% НСП 1% [11:13:03]line > о реализуемом товаре [11:13:03]line ОКРУГЛЕНИЕ: -0.03 [11:13:03]line ИТОГО: 200.00 [11:13:03]line Внесено: 200.00 [11:13:03]line СДАЧА: 0.00 [11:13:03]line НСП 1% : 1.77 [11:13:03]line НДС 12% : 21.24 [11:13:03]line Наличными: 200.00 [11:13:03]line Безнал.: 0.00 [11:13:03]line Место: АЗС № 143 "Партнер Нефть" [11:13:03]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [11:13:03]line СНО: Общий режим [11:13:03]line Чек 80 27.10.2024 11:13 [11:13:03]line Смена: 537 ФФД: 1.0 [11:13:03]line ЗНМ: 0300000096 [11:13:03]line РНМ: 0000000000091693 [11:13:03]line Версия ККМ: 001 [11:13:03]line ФМ: 0000000000871792 [11:13:03]line ФД: 156529 [11:13:03]line ФПД: 52457341678840 [11:13:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T111307&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156529&fm=52457341678840&tin=02508201610067®Number=0000000000091693&sum=20000 [11:13:04]OFD Sender: Processing packet 156529 [packets to send 31, broken 30] [11:13:04]ProducePacketName [11:13:04]name=ofd_packets/00156529 [11:13:04]OFD Sender: To server: pG, [11:13:04]CommunicateWithHost lk.salyk.kg:30040 [11:13:04]ConnectInit lk.salyk.kg [11:13:04]written 0, free lines is 4095 [11:13:04]Connected sock=10 [11:13:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 5C D0 07 01 28 43 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 50 00 00 00 F4 03 04 00 43 20 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 71 63 02 00 35 04 06 00 2F B5 AD 37 74 F8 42 85 7C F0 8A E8 2C 59 [11:13:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 46 4B 47 00 28 C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 71 63 02 00 F4 03 04 00 B3 C5 1D 67 B6 04 01 00 00 10 4B 21 55 77 96 18 5C [11:13:04]CommunicateWithHost err = 0 [11:13:04]CheckOFDResponse [11:13:04]1017 (14) - 77093643461234 [11:13:04]1041 (16) - 0000000000871792 [11:13:04]1040 (4) - 156529 [11:13:04]1012 (4) - 27.10.2024 04:46 [11:13:04]1206 (1) - 0 [11:13:04]OFD Sender: Remove packet 156529 [11:13:04]ProducePacketName [11:13:04]name=ofd_packets/00156529 [11:13:04]NVStorageDeleteData [11:13:04]Write to MH i2c: 01 00 00 DA 47 21 [11:13:04]Write i2c OK [11:13:04]MH_I2C_Read... [11:13:04]Read from MH i2c: 01 [11:13:04]MH_I2C_Read... [11:13:04]Read from MH i2c: 01 07 00 [11:13:04]MH_I2C_Read... [11:13:04]Read from MH i2c: 01 07 00 DA 47 00 00 00 00 00 D7 0C 0B [11:13:04]RasterBufferAndPrint [11:13:04]line [11:13:04]line [11:13:04]line [11:13:04]line [11:13:04]line [11:13:04]written 0, free lines is 3290 [11:13:04]process_action close_receipt done [11:13:04]requested_data is exist [11:13:04]produce_requested_data [11:13:04]requested_item fm.sn is exist - process it [11:13:04]wFMCommunicate request_size=4 [11:13:04]MH_SAM_APDU [11:13:04]CAPDU: 80 11 00 00 [11:13:04]Write to MH i2c: E2 08 00 E1 47 80 11 00 00 00 00 00 00 A2 [11:13:04]Write i2c OK [11:13:04]MH_I2C_Read... [11:13:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:04]Read from MH i2c: E2 [11:13:04]MH_I2C_Read... [11:13:04]Read from MH i2c: E2 17 00 [11:13:04]MH_I2C_Read... [11:13:04]Read from MH i2c: E2 17 00 E1 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 F7 [11:13:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:13:04]wFMCommunicate OK [11:13:04]requested_item fd.num is exist - process it [11:13:04]SAM_PROTO_GetFieldsCounters [11:13:04]wFMCommunicate request_size=4 [11:13:04]MH_SAM_APDU [11:13:04]CAPDU: 80 13 00 00 [11:13:04]Write to MH i2c: E2 08 00 E2 47 80 13 00 00 00 00 00 00 A5 [11:13:04]Write i2c OK [11:13:04]MH_I2C_Read... [11:13:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:13:04]Read from MH i2c: E2 [11:13:04]MH_I2C_Read... [11:13:04]Read from MH i2c: E2 62 00 [11:13:04]MH_I2C_Read... [11:13:04]Read from MH i2c: E2 62 00 E2 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 71 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 AC [11:13:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 71 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:13:04]wFMCommunicate OK [11:13:04]SAM_PROTO_GetFieldsCounters done [11:13:04]requested_item shift.num is exist - process it [11:13:04]requested_item shift.opened is exist - process it [11:13:04]req_shift_opened [11:13:04]FM_GetShiftState [11:13:04]SAM_PROTO_GetShiftState [11:13:04]wFMCommunicate request_size=4 [11:13:04]MH_SAM_APDU [11:13:04]CAPDU: 80 13 01 00 [11:13:04]Write to MH i2c: E2 08 00 E3 47 80 13 01 00 00 00 00 00 A7 [11:13:04]Write i2c OK [11:13:04]MH_I2C_Read... [11:13:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:04]Read from MH i2c: E2 [11:13:04]MH_I2C_Read... [11:13:04]Read from MH i2c: E2 0E 00 [11:13:04]MH_I2C_Read... [11:13:04]Read from MH i2c: E2 0E 00 E3 47 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 74 [11:13:04]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [11:13:04]wFMCommunicate OK [11:13:04]SAM_PROTO_GetShiftState done [11:13:04]FM_GetShiftState done [11:13:04]req_shift_opened done [11:13:04]requested_item shift.open_date is exist - process it [11:13:04]req_shift_open_date [11:13:04]req_shift_open_date done [11:13:04]produce_requested_data done [11:13:04]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156529,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [11:13:04]process_action_free close_receipt [11:13:04]json_value_free [11:13:04]json_value_free done [11:13:04]process_json_proto returns [11:13:04]Send response to host [11:13:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156529,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [11:13:04]free response buf [11:13:04]execute_script done [11:13:04]execute_script returns [11:13:04]free content buf [11:13:04]Sock 8.Close socket [11:13:04]Sock 8.Thread stoped [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:47]accept exits with 9 [11:15:47]New connection [11:15:47]New thread 3066834276 created [11:15:47]Thread 3066977636 joined [11:15:47]Waiting for new connection... [11:15:47] Sock 9.Parse request [11:15:47]Sock 9.Check first char [11:15:47]Sock 9.First char is OK [11:15:47]request: POST /json_proto HTTP/1.0 [11:15:47]Method: POST [11:15:47]URL: /json_proto [11:15:47]Method is POST - this is cgi request [11:15:47]url: /json_proto [11:15:47]query_string will be loaded in cgi processing [11:15:47]execute_cgi json_proto POST (null) [11:15:47]execute_cgi path=json_proto method=POST [11:15:47]POST find Content-Length [11:15:47]Host: 172.17.63.3:8080 [11:15:47]Content-Length: 676 [11:15:47]Content-Type: application/json [11:15:47] [11:15:47]POST finish read [11:15:47]Found Content-Length = 676 [11:15:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99344", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:15:47]execute_script... [11:15:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99344", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:15:47]POST & json_proto [11:15:47]process_json_proto [11:15:47]json parsed OK: [11:15:47]protocol is kg_v1.0 [11:15:47]action value=close_receipt [11:15:47]process_action close_receipt [11:15:47]cmd_close_receipt [11:15:47]MH_GetDate [11:15:47]Write to MH i2c: F0 00 00 E4 47 1A [11:15:47]Write i2c OK [11:15:47]MH_I2C_Read... [11:15:47]Read from MH i2c: F0 [11:15:47]MH_I2C_Read... [11:15:47]Read from MH i2c: F0 09 00 [11:15:47]MH_I2C_Read... [11:15:47]Read from MH i2c: F0 09 00 E4 47 00 E9 20 1E 67 50 D1 6C 64 A2 [11:15:47]GetLastDocTimeStamp 1730027587 [11:15:47]current date 1730027753 [11:15:47]FM_GetShiftState [11:15:47]SAM_PROTO_GetShiftState [11:15:47]wFMCommunicate request_size=4 [11:15:47]MH_SAM_APDU [11:15:47]CAPDU: 80 13 01 00 [11:15:47]Write to MH i2c: E2 08 00 E5 47 80 13 01 00 00 00 00 00 A9 [11:15:47]Write i2c OK [11:15:47]MH_I2C_Read... [11:15:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:15:47]Read from MH i2c: E2 [11:15:47]MH_I2C_Read... [11:15:47]Read from MH i2c: E2 0E 00 [11:15:47]MH_I2C_Read... [11:15:47]Read from MH i2c: E2 0E 00 E5 47 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 76 [11:15:47]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [11:15:47]wFMCommunicate OK [11:15:47]SAM_PROTO_GetShiftState done [11:15:47]FM_GetShiftState done [11:15:47]opened in 1729989044 [11:15:47]opened+sec_in_day 1730075444 [11:15:47]quantity*price = 50041 [11:15:47]sum+1 = 50042 [11:15:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 81 27.10.2024 11:15 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156530 ФПД: 226340413170824 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T111553&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156530&fm=226340413170824&tin=02508201610067®Number=0000000000091693&sum=50000 [11:15:48]StoreToDocumentArchive [11:15:48]shift 537 fd 156530 [11:15:48]save to /storage/0537/doc_00156530 [11:15:48]save last doc name /storage/0537/doc_00156530 to /storage/kkm_last_doc_name [11:15:48]save OK [11:15:48]Clear old archive folders... [11:15:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:15:48]tlvbuf is 01701880 [11:15:48]SAM_PROTO_ClearQueue [11:15:48]wFMCommunicate request_size=4 [11:15:48]MH_SAM_APDU [11:15:48]CAPDU: 80 09 00 00 [11:15:48]Write to MH i2c: E2 08 00 F2 47 80 09 00 00 00 00 00 00 AB [11:15:48]Write i2c OK [11:15:48]MH_I2C_Read... [11:15:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:15:48]Read from MH i2c: E2 [11:15:48]MH_I2C_Read... [11:15:48]Read from MH i2c: E2 03 00 [11:15:48]MH_I2C_Read... [11:15:48]Read from MH i2c: E2 03 00 F2 47 00 90 00 AD [11:15:48]RAPDU: 90 00 [11:15:48]wFMCommunicate OK [11:15:48]SAM_PROTO_ClearQueue done [11:15:48]KKMCreateOFDPacket [11:15:48]OFDProtocolAddRootSTLVToBuf [11:15:48]FM_MakeSignedData [11:15:48]FM_MakeSignedData [11:15:48]SAM_PROTO_SignData [11:15:48]wFMCommunicate request_size=4 [11:15:48]MH_SAM_APDU [11:15:48]CAPDU: 80 0D 01 02 [11:15:48]Write to MH i2c: E2 08 00 F3 47 80 0D 01 02 00 00 00 00 B3 [11:15:48]Write i2c OK [11:15:48]MH_I2C_Read... [11:15:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:15:48]Read from MH i2c: E2 [11:15:48]MH_I2C_Read... [11:15:48]Read from MH i2c: E2 03 00 [11:15:48]MH_I2C_Read... [11:15:48]Read from MH i2c: E2 03 00 F3 47 00 90 00 AE [11:15:48]RAPDU: 90 00 [11:15:48]wFMCommunicate OK [11:15:48]wFMCommunicate request_size=255 [11:15:48]MH_SAM_APDU [11:15: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 E9 20 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 72 63 02 00 35 04 06 00 CD [11:15:48]Write to MH i2c: E2 02 01 F4 47 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 E9 20 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 72 63 02 00 35 04 06 00 CD 00 00 E5 [11:15:48]Write i2c OK [11:15:48]MH_I2C_Read... [11:15:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:15:49]Read from MH i2c: E2 [11:15:49]MH_I2C_Read... [11:15:49]Read from MH i2c: E2 03 00 [11:15:49]MH_I2C_Read... [11:15:49]Read from MH i2c: E2 03 00 F4 47 00 90 00 AF [11:15:49]RAPDU: 90 00 [11:15:49]wFMCommunicate OK [11:15:49]wFMCommunicate request_size=10 [11:15:49]MH_SAM_APDU [11:15:49]CAPDU: 80 0D 02 02 05 DA FB EC E4 88 [11:15:49]Write to MH i2c: E2 0D 00 F5 47 80 0D 02 02 05 00 DA FB EC E4 88 00 00 ED [11:15:49]Write i2c OK [11:15:49]MH_I2C_Read... [11:15:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:15:49]Read from MH i2c: E2 [11:15:49]MH_I2C_Read... [11:15:49]Read from MH i2c: E2 03 00 [11:15:49]MH_I2C_Read... [11:15:49]Read from MH i2c: E2 03 00 F5 47 00 90 00 B0 [11:15:49]RAPDU: 90 00 [11:15:49]wFMCommunicate OK [11:15:49]wFMCommunicate request_size=4 [11:15:49]MH_SAM_APDU [11:15:49]CAPDU: 80 0D 03 02 [11:15:49]Write to MH i2c: E2 08 00 F6 47 80 0D 03 02 00 00 00 00 B8 [11:15:49]Write i2c OK [11:15:49]MH_I2C_Read... [11:15:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:15:49]Read from MH i2c: E2 [11:15:49]MH_I2C_Read... [11:15:49]Read from MH i2c: E2 0B 00 [11:15:49]MH_I2C_Read... [11:15:49]Read from MH i2c: E2 0B 00 F6 47 00 1F 01 5F 0C 70 66 7F 12 90 00 AB [11:15:49]RAPDU: 1F 01 5F 0C 70 66 7F 12 90 00 [11:15:49]wFMCommunicate OK [11:15:49]SAM_PROTO_SignData done [11:15:49]FM_MakeSignedData done [11:15:49]CreateOFDProtocolMessage [11:15:49]wFMCommunicate request_size=4 [11:15:49]MH_SAM_APDU [11:15:49]CAPDU: 80 11 00 00 [11:15:49]Write to MH i2c: E2 08 00 F7 47 80 11 00 00 00 00 00 00 B8 [11:15:49]Write i2c OK [11:15:49]MH_I2C_Read... [11:15:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:15:49]Read from MH i2c: E2 [11:15:49]MH_I2C_Read... [11:15:49]Read from MH i2c: E2 17 00 [11:15:49]MH_I2C_Read... [11:15:49]Read from MH i2c: E2 17 00 F7 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 0D [11:15:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:15:49]wFMCommunicate OK [11:15:49]CreateOFDProtocolMessage done [11:15:49]OFDSenderStorePacket 156530 [11:15:49]StoreOFDPacket docnum=156530 [11:15:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 4A 09 07 01 FF 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 E9 20 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 72 63 02 00 35 04 06 00 CD DA FB EC E4 88 1F 01 5F 0C 70 66 7F 12 [11:15:49]CheckFolder [11:15:49]dirname=/storage/ofd_packets [11:15:49]CheckFolder done [11:15:49]ProducePacketName [11:15:49]name=ofd_packets/00156530 [11:15:49]NVStorageSaveData ofd_packets/00156530 [11:15:49]File name is /storage/ofd_packets/00156530 [11:15:49]Write 301 bytes [11:15:49]NVStorageSaveData done [11:15:49]OFDSenderStorePacket done [11:15:49]KKMCreateOFDPacket done [11:15:49]NVStorageSaveData kkm_last_timestamp [11:15:49]File name is /storage/kkm_last_timestamp [11:15:49]Write 4 bytes [11:15:49]NVStorageSaveData done [11:15:49]ExternCall_PrintAddStr [11:15:49]wPrintStart [11:15:49]Write to MH i2c: 01 00 00 F8 47 3F [11:15:49]Write i2c OK [11:15:49]MH_I2C_Read... [11:15:49]Read from MH i2c: 01 [11:15:49]MH_I2C_Read... [11:15:49]Read from MH i2c: 01 07 00 [11:15:49]MH_I2C_Read... [11:15:49]Read from MH i2c: 01 07 00 F8 47 00 00 00 00 00 FF 0F 54 [11:15:49]RasterBufferAndPrint [11:15:49]line Счет N : (1)99344 [11:15:49]line ИНН: 02508201610067 [11:15:49]line Контрольно-Кассовый Чек [11:15:49]line ПРОДАЖА [11:15:49]line ТРК (МРК, ГНК) : 31 [11:15:49]line Товар: 2710124130 [11:15:49]line Аи-92-К-5 [11:15:49]line 7.480 * 66.90 [11:15:49]line = 500.41 [11:15:49]line НДС 12% НСП 1% [11:15:49]line > о реализуемом товаре [11:15:49]line ОКРУГЛЕНИЕ: -0.41 [11:15:49]line ИТОГО: 500.00 [11:15:49]line Внесено: 500.00 [11:15:49]line СДАЧА: 0.00 [11:15:49]line НСП 1% : 4.43 [11:15:49]line НДС 12% : 53.14 [11:15:49]line Наличными: 500.00 [11:15:49]line Безнал.: 0.00 [11:15:49]line Место: АЗС № 143 "Партнер Нефть" [11:15:49]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [11:15:49]line СНО: Общий режим [11:15:49]line Чек 81 27.10.2024 11:15 [11:15:49]line Смена: 537 ФФД: 1.0 [11:15:49]line ЗНМ: 0300000096 [11:15:49]line РНМ: 0000000000091693 [11:15:49]line Версия ККМ: 001 [11:15:49]line ФМ: 0000000000871792 [11:15:49]line ФД: 156530 [11:15:49]line ФПД: 226340413170824 [11:15:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T111553&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156530&fm=226340413170824&tin=02508201610067®Number=0000000000091693&sum=50000 [11:15:49]OFD Sender: Processing packet 156530 [packets to send 31, broken 30] [11:15:49]ProducePacketName [11:15:49]name=ofd_packets/00156530 [11:15:49]OFD Sender: To server: pG, [11:15:49]CommunicateWithHost lk.salyk.kg:30040 [11:15:49]ConnectInit lk.salyk.kg [11:15:49]written 0, free lines is 4095 [11:15:49]Connected sock=10 [11:15:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 4A 09 07 01 FF 69 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 E9 20 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 72 63 02 00 35 04 06 00 CD DA FB EC E4 88 1F 01 5F 0C 70 66 7F 12 [11:15:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 A4 4E 47 00 44 11 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 72 63 02 00 F4 03 04 00 58 C6 1D 67 B6 04 01 00 00 5A 88 47 17 CF A5 3C 55 [11:15:50]CommunicateWithHost err = 0 [11:15:50]CheckOFDResponse [11:15:50]1017 (14) - 77093643461234 [11:15:50]1041 (16) - 0000000000871792 [11:15:50]1040 (4) - 156530 [11:15:50]1012 (4) - 27.10.2024 04:49 [11:15:50]1206 (1) - 0 [11:15:50]OFD Sender: Remove packet 156530 [11:15:50]ProducePacketName [11:15:50]name=ofd_packets/00156530 [11:15:50]NVStorageDeleteData [11:15:50]Write to MH i2c: 01 00 00 23 48 6B [11:15:50]Write i2c OK [11:15:50]MH_I2C_Read... [11:15:50]Read from MH i2c: 01 [11:15:50]MH_I2C_Read... [11:15:50]Read from MH i2c: 01 07 00 [11:15:50]MH_I2C_Read... [11:15:50]Read from MH i2c: 01 07 00 23 48 00 00 00 00 00 D3 0C 51 [11:15:50]RasterBufferAndPrint [11:15:50]line [11:15:50]line [11:15:50]line [11:15:50]line [11:15:50]line [11:15:50]written 0, free lines is 3287 [11:15:50]process_action close_receipt done [11:15:50]requested_data is exist [11:15:50]produce_requested_data [11:15:50]requested_item fm.sn is exist - process it [11:15:50]wFMCommunicate request_size=4 [11:15:50]MH_SAM_APDU [11:15:50]CAPDU: 80 11 00 00 [11:15:50]Write to MH i2c: E2 08 00 2A 48 80 11 00 00 00 00 00 00 EC [11:15:50]Write i2c OK [11:15:50]MH_I2C_Read... [11:15:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:15:50]Read from MH i2c: E2 [11:15:50]MH_I2C_Read... [11:15:50]Read from MH i2c: E2 17 00 [11:15:50]MH_I2C_Read... [11:15:50]Read from MH i2c: E2 17 00 2A 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 41 [11:15:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:15:50]wFMCommunicate OK [11:15:50]requested_item fd.num is exist - process it [11:15:50]SAM_PROTO_GetFieldsCounters [11:15:50]wFMCommunicate request_size=4 [11:15:50]MH_SAM_APDU [11:15:50]CAPDU: 80 13 00 00 [11:15:50]Write to MH i2c: E2 08 00 2B 48 80 13 00 00 00 00 00 00 EF [11:15:50]Write i2c OK [11:15:50]MH_I2C_Read... [11:15:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:15:50]Read from MH i2c: E2 [11:15:50]MH_I2C_Read... [11:15:50]Read from MH i2c: E2 62 00 [11:15:50]MH_I2C_Read... [11:15:50]Read from MH i2c: E2 62 00 2B 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 72 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 FA [11:15:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 72 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:15:50]wFMCommunicate OK [11:15:50]SAM_PROTO_GetFieldsCounters done [11:15:50]requested_item shift.num is exist - process it [11:15:50]requested_item shift.opened is exist - process it [11:15:50]req_shift_opened [11:15:50]FM_GetShiftState [11:15:50]SAM_PROTO_GetShiftState [11:15:50]wFMCommunicate request_size=4 [11:15:50]MH_SAM_APDU [11:15:50]CAPDU: 80 13 01 00 [11:15:50]Write to MH i2c: E2 08 00 2C 48 80 13 01 00 00 00 00 00 F1 [11:15:50]Write i2c OK [11:15:50]MH_I2C_Read... [11:15:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:15:50]Read from MH i2c: E2 [11:15:50]MH_I2C_Read... [11:15:50]Read from MH i2c: E2 0E 00 [11:15:50]MH_I2C_Read... [11:15:50]Read from MH i2c: E2 0E 00 2C 48 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 BE [11:15:50]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [11:15:50]wFMCommunicate OK [11:15:50]SAM_PROTO_GetShiftState done [11:15:50]FM_GetShiftState done [11:15:50]req_shift_opened done [11:15:50]requested_item shift.open_date is exist - process it [11:15:50]req_shift_open_date [11:15:50]req_shift_open_date done [11:15:50]produce_requested_data done [11:15:50]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156530,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [11:15:50]process_action_free close_receipt [11:15:50]json_value_free [11:15:50]json_value_free done [11:15:50]process_json_proto returns [11:15:50]Send response to host [11:15:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156530,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [11:15:50]free response buf [11:15:50]execute_script done [11:15:50]execute_script returns [11:15:50]free content buf [11:15:50]Sock 9.Close socket [11:15:50]Sock 9.Thread stoped [11:15:50]OFD Sender: No OFD packet to send [11:15:55]OFD Sender: No OFD packet to send [11:16:00]OFD Sender: No OFD packet to send [11:16:05]OFD Sender: No OFD packet to send [11:16:10]OFD Sender: No OFD packet to send [11:16:15]OFD Sender: No OFD packet to send [11:16:20]OFD Sender: No OFD packet to send [11:16:25]OFD Sender: No OFD packet to send [11:16:30]OFD Sender: No OFD packet to send [11:16:35]OFD Sender: No OFD packet to send [11:16:40]OFD Sender: No OFD packet to send [11:16:45]OFD Sender: No OFD packet to send [11:16:50]OFD Sender: No OFD packet to send [11:16:53]accept exits with 8 [11:16:53]New connection [11:16:53]New thread 3066977636 created [11:16:53]Thread 3066834276 joined [11:16:53]Waiting for new connection... [11:16:53] Sock 8.Parse request [11:16:53]Sock 8.Check first char [11:16:53]Sock 8.First char is OK [11:16:53]request: POST /json_proto HTTP/1.0 [11:16:53]Method: POST [11:16:53]URL: /json_proto [11:16:53]Method is POST - this is cgi request [11:16:53]url: /json_proto [11:16:53]query_string will be loaded in cgi processing [11:16:53]execute_cgi json_proto POST (null) [11:16:53]execute_cgi path=json_proto method=POST [11:16:53]POST find Content-Length [11:16:53]Host: 172.17.63.3:8080 [11:16:53]Content-Length: 681 [11:16:53]Content-Type: application/json [11:16:53] [11:16:53]POST finish read [11:16:53]Found Content-Length = 681 [11:16:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99345", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:53]execute_script... [11:16: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)99345", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:16:53]POST & json_proto [11:16:53]process_json_proto [11:16:53]json parsed OK: [11:16:53]protocol is kg_v1.0 [11:16:53]action value=close_receipt [11:16:53]process_action close_receipt [11:16:53]cmd_close_receipt [11:16:53]MH_GetDate [11:16:53]Write to MH i2c: F0 00 00 2D 48 64 [11:16:53]Write i2c OK [11:16:53]MH_I2C_Read... [11:16:53]Read from MH i2c: F0 [11:16:53]MH_I2C_Read... [11:16:53]Read from MH i2c: F0 09 00 [11:16:53]MH_I2C_Read... [11:16:53]Read from MH i2c: F0 09 00 2D 48 00 2A 21 1E 67 50 D1 6C 64 2E [11:16:53]GetLastDocTimeStamp 1730027753 [11:16:53]current date 1730027818 [11:16:53]FM_GetShiftState [11:16:53]SAM_PROTO_GetShiftState [11:16:53]wFMCommunicate request_size=4 [11:16:53]MH_SAM_APDU [11:16:53]CAPDU: 80 13 01 00 [11:16:53]Write to MH i2c: E2 08 00 2E 48 80 13 01 00 00 00 00 00 F3 [11:16:53]Write i2c OK [11:16:53]MH_I2C_Read... [11:16:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:53]Read from MH i2c: E2 [11:16:53]MH_I2C_Read... [11:16:53]Read from MH i2c: E2 0E 00 [11:16:53]MH_I2C_Read... [11:16:53]Read from MH i2c: E2 0E 00 2E 48 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 C0 [11:16:53]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [11:16:53]wFMCommunicate OK [11:16:53]SAM_PROTO_GetShiftState done [11:16:53]FM_GetShiftState done [11:16:53]opened in 1729989044 [11:16:53]opened+sec_in_day 1730075444 [11:16:53]quantity*price = 100015 [11:16:53]sum+1 = 100017 [11:16:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 82 27.10.2024 11:16 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156531 ФПД: 82989852650815 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T111658&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156531&fm=82989852650815&tin=02508201610067®Number=0000000000091693&sum=100000 [11:16:54]StoreToDocumentArchive [11:16:54]shift 537 fd 156531 [11:16:54]save to /storage/0537/doc_00156531 [11:16:54]save last doc name /storage/0537/doc_00156531 to /storage/kkm_last_doc_name [11:16:54]save OK [11:16:54]Clear old archive folders... [11:16:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:16:54]tlvbuf is 016A9760 [11:16:54]SAM_PROTO_ClearQueue [11:16:54]wFMCommunicate request_size=4 [11:16:54]MH_SAM_APDU [11:16:54]CAPDU: 80 09 00 00 [11:16:54]Write to MH i2c: E2 08 00 3B 48 80 09 00 00 00 00 00 00 F5 [11:16:54]Write i2c OK [11:16:54]MH_I2C_Read... [11:16:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:16:54]Read from MH i2c: E2 [11:16:54]MH_I2C_Read... [11:16:54]Read from MH i2c: E2 03 00 [11:16:54]MH_I2C_Read... [11:16:54]Read from MH i2c: E2 03 00 3B 48 00 90 00 F7 [11:16:54]RAPDU: 90 00 [11:16:54]wFMCommunicate OK [11:16:54]SAM_PROTO_ClearQueue done [11:16:54]KKMCreateOFDPacket [11:16:54]OFDProtocolAddRootSTLVToBuf [11:16:54]FM_MakeSignedData [11:16:54]FM_MakeSignedData [11:16:54]SAM_PROTO_SignData [11:16:54]wFMCommunicate request_size=4 [11:16:54]MH_SAM_APDU [11:16:54]CAPDU: 80 0D 01 02 [11:16:54]Write to MH i2c: E2 08 00 3C 48 80 0D 01 02 00 00 00 00 FD [11:16:54]Write i2c OK [11:16:54]MH_I2C_Read... [11:16:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:16:54]Read from MH i2c: E2 [11:16:54]MH_I2C_Read... [11:16:54]Read from MH i2c: E2 03 00 [11:16:54]MH_I2C_Read... [11:16:54]Read from MH i2c: E2 03 00 3C 48 00 90 00 F8 [11:16:54]RAPDU: 90 00 [11:16:54]wFMCommunicate OK [11:16:54]wFMCommunicate request_size=255 [11:16:54]MH_SAM_APDU [11:16:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 2A 21 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 73 63 02 00 35 04 06 00 4B [11:16:54]Write to MH i2c: E2 02 01 3D 48 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 2A 21 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 73 63 02 00 35 04 06 00 4B 00 00 EB [11:16:54]Write i2c OK [11:16:54]MH_I2C_Read... [11:16:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:54]Read from MH i2c: E2 [11:16:54]MH_I2C_Read... [11:16:54]Read from MH i2c: E2 03 00 [11:16:54]MH_I2C_Read... [11:16:54]Read from MH i2c: E2 03 00 3D 48 00 90 00 F9 [11:16:54]RAPDU: 90 00 [11:16:54]wFMCommunicate OK [11:16:54]wFMCommunicate request_size=10 [11:16:54]MH_SAM_APDU [11:16:54]CAPDU: 80 0D 02 02 05 7A 94 AF ED 3F [11:16:54]Write to MH i2c: E2 0D 00 3E 48 80 0D 02 02 05 00 7A 94 AF ED 3F 00 00 F3 [11:16:54]Write i2c OK [11:16:54]MH_I2C_Read... [11:16:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:16:54]Read from MH i2c: E2 [11:16:54]MH_I2C_Read... [11:16:54]Read from MH i2c: E2 03 00 [11:16:54]MH_I2C_Read... [11:16:54]Read from MH i2c: E2 03 00 3E 48 00 90 00 FA [11:16:54]RAPDU: 90 00 [11:16:54]wFMCommunicate OK [11:16:54]wFMCommunicate request_size=4 [11:16:54]MH_SAM_APDU [11:16:54]CAPDU: 80 0D 03 02 [11:16:54]Write to MH i2c: E2 08 00 3F 48 80 0D 03 02 00 00 00 00 02 [11:16:54]Write i2c OK [11:16:54]MH_I2C_Read... [11:16:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:16:54]Read from MH i2c: E2 [11:16:54]MH_I2C_Read... [11:16:54]Read from MH i2c: E2 0B 00 [11:16:54]MH_I2C_Read... [11:16:54]Read from MH i2c: E2 0B 00 3F 48 00 C3 A9 25 FE F0 31 76 21 90 00 4A [11:16:54]RAPDU: C3 A9 25 FE F0 31 76 21 90 00 [11:16:54]wFMCommunicate OK [11:16:54]SAM_PROTO_SignData done [11:16:54]FM_MakeSignedData done [11:16:54]CreateOFDProtocolMessage [11:16:54]wFMCommunicate request_size=4 [11:16:54]MH_SAM_APDU [11:16:54]CAPDU: 80 11 00 00 [11:16:54]Write to MH i2c: E2 08 00 40 48 80 11 00 00 00 00 00 00 02 [11:16:54]Write i2c OK [11:16:54]MH_I2C_Read... [11:16:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:54]Read from MH i2c: E2 [11:16:54]MH_I2C_Read... [11:16:54]Read from MH i2c: E2 17 00 [11:16:54]MH_I2C_Read... [11:16:54]Read from MH i2c: E2 17 00 40 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 57 [11:16:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:16:54]wFMCommunicate OK [11:16:54]CreateOFDProtocolMessage done [11:16:54]OFDSenderStorePacket 156531 [11:16:54]StoreOFDPacket docnum=156531 [11:16:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 06 A1 07 01 50 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 2A 21 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 73 63 02 00 35 04 06 00 4B 7A 94 AF ED 3F C3 A9 25 FE F0 31 76 21 [11:16:54]CheckFolder [11:16:54]dirname=/storage/ofd_packets [11:16:54]CheckFolder done [11:16:54]ProducePacketName [11:16:54]name=ofd_packets/00156531 [11:16:54]NVStorageSaveData ofd_packets/00156531 [11:16:54]File name is /storage/ofd_packets/00156531 [11:16:54]Write 301 bytes [11:16:54]NVStorageSaveData done [11:16:54]OFDSenderStorePacket done [11:16:54]KKMCreateOFDPacket done [11:16:54]NVStorageSaveData kkm_last_timestamp [11:16:54]File name is /storage/kkm_last_timestamp [11:16:54]Write 4 bytes [11:16:54]NVStorageSaveData done [11:16:54]ExternCall_PrintAddStr [11:16:54]wPrintStart [11:16:54]Write to MH i2c: 01 00 00 41 48 89 [11:16:54]Write i2c OK [11:16:54]MH_I2C_Read... [11:16:54]Read from MH i2c: 01 [11:16:54]MH_I2C_Read... [11:16:54]Read from MH i2c: 01 07 00 [11:16:54]MH_I2C_Read... [11:16:54]Read from MH i2c: 01 07 00 41 48 00 00 00 00 00 FF 0F 9E [11:16:54]RasterBufferAndPrint [11:16:54]line Счет N : (1)99345 [11:16:54]line ИНН: 02508201610067 [11:16:54]line Контрольно-Кассовый Чек [11:16:54]line ПРОДАЖА [11:16:54]line ТРК (МРК, ГНК) : 21 [11:16:54]line Товар: 2710124130 [11:16:54]line Аи-92-К-5 [11:16:54]line 14.950 * 66.90 [11:16:54]line = 1000.16 [11:16:54]line НДС 12% НСП 1% [11:16:54]line > о реализуемом товаре [11:16:54]line ОКРУГЛЕНИЕ: -0.16 [11:16:54]line ИТОГО: 1000.00 [11:16:54]line Внесено: 1000.00 [11:16:54]line СДАЧА: 0.00 [11:16:54]line НСП 1% : 8.85 [11:16:54]line НДС 12% : 106.21 [11:16:54]line Наличными: 1000.00 [11:16:54]line Безнал.: 0.00 [11:16:54]line Место: АЗС № 143 "Партнер Нефть" [11:16:54]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [11:16:54]line СНО: Общий режим [11:16:54]line Чек 82 27.10.2024 11:16 [11:16:54]line Смена: 537 ФФД: 1.0 [11:16:54]line ЗНМ: 0300000096 [11:16:54]line РНМ: 0000000000091693 [11:16:54]line Версия ККМ: 001 [11:16:54]line ФМ: 0000000000871792 [11:16:54]line ФД: 156531 [11:16:54]line ФПД: 82989852650815 [11:16:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T111658&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156531&fm=82989852650815&tin=02508201610067®Number=0000000000091693&sum=100000 [11:16:55]OFD Sender: Processing packet 156531 [packets to send 31, broken 30] [11:16:55]ProducePacketName [11:16:55]name=ofd_packets/00156531 [11:16:55]OFD Sender: To server: pG, [11:16:55]CommunicateWithHost lk.salyk.kg:30040 [11:16:55]ConnectInit lk.salyk.kg [11:16:55]written 0, free lines is 4095 [11:16:55]Connected sock=10 [11:16:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 06 A1 07 01 50 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 2A 21 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 73 63 02 00 35 04 06 00 4B 7A 94 AF ED 3F C3 A9 25 FE F0 31 76 21 [11:16:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 F1 60 47 00 DA 3B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 73 63 02 00 F4 03 04 00 9A C6 1D 67 B6 04 01 00 00 82 81 2A E0 74 62 E9 8B [11:16:55]CommunicateWithHost err = 0 [11:16:55]CheckOFDResponse [11:16:55]1017 (14) - 77093643461234 [11:16:55]1041 (16) - 0000000000871792 [11:16:55]1040 (4) - 156531 [11:16:55]1012 (4) - 27.10.2024 04:50 [11:16:55]1206 (1) - 0 [11:16:55]OFD Sender: Remove packet 156531 [11:16:55]ProducePacketName [11:16:55]name=ofd_packets/00156531 [11:16:55]NVStorageDeleteData [11:16:55]Write to MH i2c: 01 00 00 6C 48 B4 [11:16:55]Write i2c OK [11:16:55]MH_I2C_Read... [11:16:55]Read from MH i2c: 01 [11:16:55]MH_I2C_Read... [11:16:55]Read from MH i2c: 01 07 00 [11:16:55]MH_I2C_Read... [11:16:55]Read from MH i2c: 01 07 00 6C 48 00 00 00 00 00 E9 0C B0 [11:16:55]RasterBufferAndPrint [11:16:55]line [11:16:55]line [11:16:55]line [11:16:55]line [11:16:55]line [11:16:55]written 0, free lines is 3311 [11:16:55]process_action close_receipt done [11:16:55]requested_data is exist [11:16:55]produce_requested_data [11:16:55]requested_item fm.sn is exist - process it [11:16:55]wFMCommunicate request_size=4 [11:16:55]MH_SAM_APDU [11:16:55]CAPDU: 80 11 00 00 [11:16:55]Write to MH i2c: E2 08 00 73 48 80 11 00 00 00 00 00 00 35 [11:16:55]Write i2c OK [11:16:55]MH_I2C_Read... [11:16:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:16:55]Read from MH i2c: E2 [11:16:55]MH_I2C_Read... [11:16:55]Read from MH i2c: E2 17 00 [11:16:55]MH_I2C_Read... [11:16:55]Read from MH i2c: E2 17 00 73 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 8A [11:16:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:16:55]wFMCommunicate OK [11:16:55]requested_item fd.num is exist - process it [11:16:55]SAM_PROTO_GetFieldsCounters [11:16:55]wFMCommunicate request_size=4 [11:16:55]MH_SAM_APDU [11:16:55]CAPDU: 80 13 00 00 [11:16:55]Write to MH i2c: E2 08 00 74 48 80 13 00 00 00 00 00 00 38 [11:16:55]Write i2c OK [11:16:55]MH_I2C_Read... [11:16:55]Read from MH i2c: E2 [11:16:55]MH_I2C_Read... [11:16:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:16:55]Read from MH i2c: E2 62 00 [11:16:55]MH_I2C_Read... [11:16:55]Read from MH i2c: E2 62 00 74 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 73 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 47 [11:16:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 73 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:16:55]wFMCommunicate OK [11:16:55]SAM_PROTO_GetFieldsCounters done [11:16:55]requested_item shift.num is exist - process it [11:16:55]requested_item shift.opened is exist - process it [11:16:55]req_shift_opened [11:16:55]FM_GetShiftState [11:16:55]SAM_PROTO_GetShiftState [11:16:55]wFMCommunicate request_size=4 [11:16:55]MH_SAM_APDU [11:16:55]CAPDU: 80 13 01 00 [11:16:55]Write to MH i2c: E2 08 00 75 48 80 13 01 00 00 00 00 00 3A [11:16:55]Write i2c OK [11:16:55]MH_I2C_Read... [11:16:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:16:55]Read from MH i2c: E2 [11:16:55]MH_I2C_Read... [11:16:55]Read from MH i2c: E2 0E 00 [11:16:55]MH_I2C_Read... [11:16:55]Read from MH i2c: E2 0E 00 75 48 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 07 [11:16:55]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [11:16:55]wFMCommunicate OK [11:16:55]SAM_PROTO_GetShiftState done [11:16:55]FM_GetShiftState done [11:16:55]req_shift_opened done [11:16:55]requested_item shift.open_date is exist - process it [11:16:55]req_shift_open_date [11:16:55]req_shift_open_date done [11:16:55]produce_requested_data done [11:16:55]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156531,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [11:16:55]process_action_free close_receipt [11:16:55]json_value_free [11:16:55]json_value_free done [11:16:55]process_json_proto returns [11:16:55]Send response to host [11:16:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156531,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [11:16:55]free response buf [11:16:55]execute_script done [11:16:55]execute_script returns [11:16:55]free content buf [11:16:55]Sock 8.Close socket [11:16:55]Sock 8.Thread stoped [11:16:56]OFD Sender: No OFD packet to send [11:17:01]OFD Sender: No OFD packet to send [11:17:06]OFD Sender: No OFD packet to send [11:17:11]OFD Sender: No OFD packet to send [11:17:16]OFD Sender: No OFD packet to send [11:17:21]OFD Sender: No OFD packet to send [11:17:26]OFD Sender: No OFD packet to send [11:17:31]OFD Sender: No OFD packet to send [11:17:36]OFD Sender: No OFD packet to send [11:17:41]OFD Sender: No OFD packet to send [11:17:46]OFD Sender: No OFD packet to send [11:17:51]OFD Sender: No OFD packet to send [11:17:56]OFD Sender: No OFD packet to send [11:18:01]OFD Sender: No OFD packet to send [11:18:06]OFD Sender: No OFD packet to send [11:18:11]OFD Sender: No OFD packet to send [11:18:16]OFD Sender: No OFD packet to send [11:18:21]OFD Sender: No OFD packet to send [11:18:26]OFD Sender: No OFD packet to send [11:18:31]OFD Sender: No OFD packet to send [11:18:36]OFD Sender: No OFD packet to send [11:18:41]OFD Sender: No OFD packet to send [11:18:46]OFD Sender: No OFD packet to send [11:18:51]OFD Sender: No OFD packet to send [11:18:56]OFD Sender: No OFD packet to send [11:19:01]OFD Sender: No OFD packet to send [11:19:06]OFD Sender: No OFD packet to send [11:19:11]OFD Sender: No OFD packet to send [11:19:16]OFD Sender: No OFD packet to send [11:19:21]OFD Sender: No OFD packet to send [11:19:26]OFD Sender: No OFD packet to send [11:19:31]OFD Sender: No OFD packet to send [11:19:33]accept exits with 9 [11:19:33]New connection [11:19:33]New thread 3066834276 created [11:19:33]Thread 3066977636 joined [11:19:33]Waiting for new connection... [11:19:33] Sock 9.Parse request [11:19:33]Sock 9.Check first char [11:19:33]Sock 9.First char is OK [11:19:33]request: POST /json_proto HTTP/1.0 [11:19:33]Method: POST [11:19:33]URL: /json_proto [11:19:33]Method is POST - this is cgi request [11:19:33]url: /json_proto [11:19:33]query_string will be loaded in cgi processing [11:19:33]execute_cgi json_proto POST (null) [11:19:33]execute_cgi path=json_proto method=POST [11:19:33]POST find Content-Length [11:19:33]Host: 172.17.63.3:8080 [11:19:33]Content-Length: 681 [11:19:33]Content-Type: application/json [11:19:33] [11:19:33]POST finish read [11:19:33]Found Content-Length = 681 [11:19:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99346", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:19:33]execute_script... [11:19: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)99346", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:19:33]POST & json_proto [11:19:33]process_json_proto [11:19:33]json parsed OK: [11:19:33]protocol is kg_v1.0 [11:19:33]action value=close_receipt [11:19:33]process_action close_receipt [11:19:33]cmd_close_receipt [11:19:33]MH_GetDate [11:19:33]Write to MH i2c: F0 00 00 76 48 AD [11:19:33]Write i2c OK [11:19:33]MH_I2C_Read... [11:19:33]Read from MH i2c: F0 [11:19:33]MH_I2C_Read... [11:19:33]Read from MH i2c: F0 09 00 [11:19:33]MH_I2C_Read... [11:19:33]Read from MH i2c: F0 09 00 76 48 00 CA 21 1E 67 50 D1 6C 64 17 [11:19:33]GetLastDocTimeStamp 1730027818 [11:19:33]current date 1730027978 [11:19:33]FM_GetShiftState [11:19:33]SAM_PROTO_GetShiftState [11:19:33]wFMCommunicate request_size=4 [11:19:33]MH_SAM_APDU [11:19:33]CAPDU: 80 13 01 00 [11:19:33]Write to MH i2c: E2 08 00 77 48 80 13 01 00 00 00 00 00 3C [11:19:33]Write i2c OK [11:19:33]MH_I2C_Read... [11:19:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:33]Read from MH i2c: E2 [11:19:33]MH_I2C_Read... [11:19:33]Read from MH i2c: E2 0E 00 [11:19:33]MH_I2C_Read... [11:19:33]Read from MH i2c: E2 0E 00 77 48 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 09 [11:19:33]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [11:19:33]wFMCommunicate OK [11:19:33]SAM_PROTO_GetShiftState done [11:19:33]FM_GetShiftState done [11:19:33]opened in 1729989044 [11:19:33]opened+sec_in_day 1730075444 [11:19:33]quantity*price = 100015 [11:19:33]sum+1 = 100017 [11:19:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 83 27.10.2024 11:19 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156532 ФПД: 184927819448562 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T111938&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156532&fm=184927819448562&tin=02508201610067®Number=0000000000091693&sum=100000 [11:19:34]StoreToDocumentArchive [11:19:34]shift 537 fd 156532 [11:19:34]save to /storage/0537/doc_00156532 [11:19:34]save last doc name /storage/0537/doc_00156532 to /storage/kkm_last_doc_name [11:19:34]save OK [11:19:34]Clear old archive folders... [11:19:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:19:34]tlvbuf is 016F8200 [11:19:34]SAM_PROTO_ClearQueue [11:19:34]wFMCommunicate request_size=4 [11:19:34]MH_SAM_APDU [11:19:34]CAPDU: 80 09 00 00 [11:19:34]Write to MH i2c: E2 08 00 84 48 80 09 00 00 00 00 00 00 3E [11:19:34]Write i2c OK [11:19:34]MH_I2C_Read... [11:19:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:19:34]Read from MH i2c: E2 [11:19:34]MH_I2C_Read... [11:19:34]Read from MH i2c: E2 03 00 [11:19:34]MH_I2C_Read... [11:19:34]Read from MH i2c: E2 03 00 84 48 00 90 00 40 [11:19:34]RAPDU: 90 00 [11:19:34]wFMCommunicate OK [11:19:34]SAM_PROTO_ClearQueue done [11:19:34]KKMCreateOFDPacket [11:19:34]OFDProtocolAddRootSTLVToBuf [11:19:34]FM_MakeSignedData [11:19:34]FM_MakeSignedData [11:19:34]SAM_PROTO_SignData [11:19:34]wFMCommunicate request_size=4 [11:19:34]MH_SAM_APDU [11:19:34]CAPDU: 80 0D 01 02 [11:19:34]Write to MH i2c: E2 08 00 85 48 80 0D 01 02 00 00 00 00 46 [11:19:34]Write i2c OK [11:19:34]MH_I2C_Read... [11:19:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:19:34]Read from MH i2c: E2 [11:19:34]MH_I2C_Read... [11:19:34]Read from MH i2c: E2 03 00 [11:19:34]MH_I2C_Read... [11:19:34]Read from MH i2c: E2 03 00 85 48 00 90 00 41 [11:19:34]RAPDU: 90 00 [11:19:34]wFMCommunicate OK [11:19:34]wFMCommunicate request_size=255 [11:19:34]MH_SAM_APDU [11:19: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 CA 21 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 74 63 02 00 35 04 06 00 A8 [11:19:34]Write to MH i2c: E2 02 01 86 48 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 CA 21 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 74 63 02 00 35 04 06 00 A8 00 00 33 [11:19:34]Write i2c OK [11:19:34]MH_I2C_Read... [11:19:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:34]Read from MH i2c: E2 [11:19:34]MH_I2C_Read... [11:19:34]Read from MH i2c: E2 03 00 [11:19:34]MH_I2C_Read... [11:19:34]Read from MH i2c: E2 03 00 86 48 00 90 00 42 [11:19:34]RAPDU: 90 00 [11:19:34]wFMCommunicate OK [11:19:34]wFMCommunicate request_size=10 [11:19:34]MH_SAM_APDU [11:19:34]CAPDU: 80 0D 02 02 05 30 DC FC C0 F2 [11:19:34]Write to MH i2c: E2 0D 00 87 48 80 0D 02 02 05 00 30 DC FC C0 F2 00 00 0D [11:19:34]Write i2c OK [11:19:34]MH_I2C_Read... [11:19:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:34]Read from MH i2c: E2 [11:19:34]MH_I2C_Read... [11:19:34]Read from MH i2c: E2 03 00 [11:19:34]MH_I2C_Read... [11:19:34]Read from MH i2c: E2 03 00 87 48 00 90 00 43 [11:19:34]RAPDU: 90 00 [11:19:34]wFMCommunicate OK [11:19:34]wFMCommunicate request_size=4 [11:19:34]MH_SAM_APDU [11:19:34]CAPDU: 80 0D 03 02 [11:19:34]Write to MH i2c: E2 08 00 88 48 80 0D 03 02 00 00 00 00 4B [11:19:34]Write i2c OK [11:19:34]MH_I2C_Read... [11:19:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:19:34]Read from MH i2c: E2 [11:19:34]MH_I2C_Read... [11:19:34]Read from MH i2c: E2 0B 00 [11:19:34]MH_I2C_Read... [11:19:34]Read from MH i2c: E2 0B 00 88 48 00 64 B4 A2 84 D0 67 51 7E 90 00 90 [11:19:34]RAPDU: 64 B4 A2 84 D0 67 51 7E 90 00 [11:19:34]wFMCommunicate OK [11:19:34]SAM_PROTO_SignData done [11:19:34]FM_MakeSignedData done [11:19:34]CreateOFDProtocolMessage [11:19:34]wFMCommunicate request_size=4 [11:19:34]MH_SAM_APDU [11:19:34]CAPDU: 80 11 00 00 [11:19:34]Write to MH i2c: E2 08 00 89 48 80 11 00 00 00 00 00 00 4B [11:19:34]Write i2c OK [11:19:34]MH_I2C_Read... [11:19:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:34]Read from MH i2c: E2 [11:19:34]MH_I2C_Read... [11:19:34]Read from MH i2c: E2 17 00 [11:19:34]MH_I2C_Read... [11:19:34]Read from MH i2c: E2 17 00 89 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 A0 [11:19:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:19:34]wFMCommunicate OK [11:19:34]CreateOFDProtocolMessage done [11:19:34]OFDSenderStorePacket 156532 [11:19:34]StoreOFDPacket docnum=156532 [11:19:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 22 9B 07 01 80 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 CA 21 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 74 63 02 00 35 04 06 00 A8 30 DC FC C0 F2 64 B4 A2 84 D0 67 51 7E [11:19:34]CheckFolder [11:19:34]dirname=/storage/ofd_packets [11:19:34]CheckFolder done [11:19:34]ProducePacketName [11:19:34]name=ofd_packets/00156532 [11:19:34]NVStorageSaveData ofd_packets/00156532 [11:19:34]File name is /storage/ofd_packets/00156532 [11:19:34]Write 301 bytes [11:19:34]NVStorageSaveData done [11:19:34]OFDSenderStorePacket done [11:19:34]KKMCreateOFDPacket done [11:19:34]NVStorageSaveData kkm_last_timestamp [11:19:34]File name is /storage/kkm_last_timestamp [11:19:34]Write 4 bytes [11:19:34]NVStorageSaveData done [11:19:34]ExternCall_PrintAddStr [11:19:34]wPrintStart [11:19:34]Write to MH i2c: 01 00 00 8A 48 D2 [11:19:34]Write i2c OK [11:19:34]MH_I2C_Read... [11:19:34]Read from MH i2c: 01 [11:19:34]MH_I2C_Read... [11:19:34]Read from MH i2c: 01 07 00 [11:19:34]MH_I2C_Read... [11:19:34]Read from MH i2c: 01 07 00 8A 48 00 00 00 00 00 FF 0F E7 [11:19:34]RasterBufferAndPrint [11:19:34]line Счет N : (1)99346 [11:19:34]line ИНН: 02508201610067 [11:19:34]line Контрольно-Кассовый Чек [11:19:34]line ПРОДАЖА [11:19:34]line ТРК (МРК, ГНК) : 21 [11:19:34]line Товар: 2710124130 [11:19:34]line Аи-92-К-5 [11:19:34]line 14.950 * 66.90 [11:19:34]line = 1000.16 [11:19:34]line НДС 12% НСП 1% [11:19:34]line > о реализуемом товаре [11:19:34]line ОКРУГЛЕНИЕ: -0.16 [11:19:34]line ИТОГО: 1000.00 [11:19:34]line Внесено: 1000.00 [11:19:34]line СДАЧА: 0.00 [11:19:34]line НСП 1% : 8.85 [11:19:34]line НДС 12% : 106.21 [11:19:34]line Наличными: 1000.00 [11:19:34]line Безнал.: 0.00 [11:19:34]line Место: АЗС № 143 "Партнер Нефть" [11:19:34]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [11:19:34]line СНО: Общий режим [11:19:34]line Чек 83 27.10.2024 11:19 [11:19:34]line Смена: 537 ФФД: 1.0 [11:19:34]line ЗНМ: 0300000096 [11:19:34]line РНМ: 0000000000091693 [11:19:34]line Версия ККМ: 001 [11:19:34]line ФМ: 0000000000871792 [11:19:34]line ФД: 156532 [11:19:34]line ФПД: 184927819448562 [11:19:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T111938&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156532&fm=184927819448562&tin=02508201610067®Number=0000000000091693&sum=100000 [11:19:35]OFD Sender: Processing packet 156532 [packets to send 31, broken 30] [11:19:35]ProducePacketName [11:19:35]name=ofd_packets/00156532 [11:19:35]OFD Sender: To server: pG, [11:19:35]CommunicateWithHost lk.salyk.kg:30040 [11:19:35]ConnectInit lk.salyk.kg [11:19:35]written 0, free lines is 4095 [11:19:35]Connected sock=10 [11:19:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 22 9B 07 01 80 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 CA 21 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 74 63 02 00 35 04 06 00 A8 30 DC FC C0 F2 64 B4 A2 84 D0 67 51 7E [11:19:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 A3 3D 47 00 67 64 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 74 63 02 00 F4 03 04 00 3A C7 1D 67 B6 04 01 00 00 6F 37 D8 9C 8F 3E D1 EF [11:19:35]CommunicateWithHost err = 0 [11:19:35]CheckOFDResponse [11:19:35]1017 (14) - 77093643461234 [11:19:35]1041 (16) - 0000000000871792 [11:19:35]1040 (4) - 156532 [11:19:35]1012 (4) - 27.10.2024 04:53 [11:19:35]1206 (1) - 0 [11:19:35]OFD Sender: Remove packet 156532 [11:19:35]ProducePacketName [11:19:35]name=ofd_packets/00156532 [11:19:35]NVStorageDeleteData [11:19:35]Write to MH i2c: 01 00 00 B5 48 FD [11:19:35]Write i2c OK [11:19:35]MH_I2C_Read... [11:19:35]Read from MH i2c: 01 [11:19:35]MH_I2C_Read... [11:19:35]Read from MH i2c: 01 07 00 [11:19:35]MH_I2C_Read... [11:19:35]Read from MH i2c: 01 07 00 B5 48 00 00 00 00 00 E2 0C F2 [11:19:35]RasterBufferAndPrint [11:19:35]line [11:19:35]line [11:19:35]line [11:19:35]line [11:19:35]line [11:19:35]written 0, free lines is 3304 [11:19:35]process_action close_receipt done [11:19:35]requested_data is exist [11:19:35]produce_requested_data [11:19:35]requested_item fm.sn is exist - process it [11:19:35]wFMCommunicate request_size=4 [11:19:35]MH_SAM_APDU [11:19:35]CAPDU: 80 11 00 00 [11:19:35]Write to MH i2c: E2 08 00 BC 48 80 11 00 00 00 00 00 00 7E [11:19:35]Write i2c OK [11:19:35]MH_I2C_Read... [11:19:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:35]Read from MH i2c: E2 [11:19:35]MH_I2C_Read... [11:19:35]Read from MH i2c: E2 17 00 [11:19:35]MH_I2C_Read... [11:19:35]Read from MH i2c: E2 17 00 BC 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 D3 [11:19:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:19:35]wFMCommunicate OK [11:19:35]requested_item fd.num is exist - process it [11:19:35]SAM_PROTO_GetFieldsCounters [11:19:35]wFMCommunicate request_size=4 [11:19:35]MH_SAM_APDU [11:19:35]CAPDU: 80 13 00 00 [11:19:35]Write to MH i2c: E2 08 00 BD 48 80 13 00 00 00 00 00 00 81 [11:19:35]Write i2c OK [11:19:35]MH_I2C_Read... [11:19:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:19:35]Read from MH i2c: E2 [11:19:35]MH_I2C_Read... [11:19:35]Read from MH i2c: E2 62 00 [11:19:35]MH_I2C_Read... [11:19:35]Read from MH i2c: E2 62 00 BD 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 74 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 94 [11:19:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 74 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:19:35]wFMCommunicate OK [11:19:35]SAM_PROTO_GetFieldsCounters done [11:19:35]requested_item shift.num is exist - process it [11:19:35]requested_item shift.opened is exist - process it [11:19:35]req_shift_opened [11:19:35]FM_GetShiftState [11:19:35]SAM_PROTO_GetShiftState [11:19:35]wFMCommunicate request_size=4 [11:19:35]MH_SAM_APDU [11:19:35]CAPDU: 80 13 01 00 [11:19:35]Write to MH i2c: E2 08 00 BE 48 80 13 01 00 00 00 00 00 83 [11:19:35]Write i2c OK [11:19:35]MH_I2C_Read... [11:19:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:35]Read from MH i2c: E2 [11:19:35]MH_I2C_Read... [11:19:35]Read from MH i2c: E2 0E 00 [11:19:35]MH_I2C_Read... [11:19:35]Read from MH i2c: E2 0E 00 BE 48 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 50 [11:19:35]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [11:19:35]wFMCommunicate OK [11:19:35]SAM_PROTO_GetShiftState done [11:19:35]FM_GetShiftState done [11:19:35]req_shift_opened done [11:19:35]requested_item shift.open_date is exist - process it [11:19:35]req_shift_open_date [11:19:35]req_shift_open_date done [11:19:35]produce_requested_data done [11:19:35]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156532,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [11:19:35]process_action_free close_receipt [11:19:35]json_value_free [11:19:35]json_value_free done [11:19:35]process_json_proto returns [11:19:35]Send response to host [11:19:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156532,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [11:19:35]free response buf [11:19:35]execute_script done [11:19:35]execute_script returns [11:19:35]free content buf [11:19:35]Sock 9.Close socket [11:19:35]Sock 9.Thread stoped [11:19:36]OFD Sender: No OFD packet to send [11:19:41]OFD Sender: No OFD packet to send [11:19:46]OFD Sender: No OFD packet to send [11:19:49]accept exits with 8 [11:19:49]New connection [11:19:49]New thread 3066977636 created [11:19:49]Thread 3066834276 joined [11:19:49]Waiting for new connection... [11:19:49] Sock 8.Parse request [11:19:49]Sock 8.Check first char [11:19:49]Sock 8.First char is OK [11:19:49]request: POST /json_proto HTTP/1.0 [11:19:49]Method: POST [11:19:49]URL: /json_proto [11:19:49]Method is POST - this is cgi request [11:19:49]url: /json_proto [11:19:49]query_string will be loaded in cgi processing [11:19:49]execute_cgi json_proto POST (null) [11:19:49]execute_cgi path=json_proto method=POST [11:19:49]POST find Content-Length [11:19:49]Host: 172.17.63.3:8080 [11:19:49]Content-Length: 676 [11:19:49]Content-Type: application/json [11:19:49] [11:19:49]POST finish read [11:19:49]Found Content-Length = 676 [11:19:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99347", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:19:49]execute_script... [11:19: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)99347", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:19:49]POST & json_proto [11:19:49]process_json_proto [11:19:49]json parsed OK: [11:19:49]protocol is kg_v1.0 [11:19:49]action value=close_receipt [11:19:49]process_action close_receipt [11:19:49]cmd_close_receipt [11:19:49]MH_GetDate [11:19:49]Write to MH i2c: F0 00 00 BF 48 F6 [11:19:49]Write i2c OK [11:19:49]MH_I2C_Read... [11:19:49]Read from MH i2c: F0 [11:19:49]MH_I2C_Read... [11:19:49]Read from MH i2c: F0 09 00 [11:19:49]MH_I2C_Read... [11:19:49]Read from MH i2c: F0 09 00 BF 48 00 DA 21 1E 67 50 D1 6C 64 70 [11:19:49]GetLastDocTimeStamp 1730027978 [11:19:49]current date 1730027994 [11:19:49]FM_GetShiftState [11:19:49]SAM_PROTO_GetShiftState [11:19:49]wFMCommunicate request_size=4 [11:19:49]MH_SAM_APDU [11:19:49]CAPDU: 80 13 01 00 [11:19:49]Write to MH i2c: E2 08 00 C0 48 80 13 01 00 00 00 00 00 85 [11:19:49]Write i2c OK [11:19:49]MH_I2C_Read... [11:19:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:49]Read from MH i2c: E2 [11:19:49]MH_I2C_Read... [11:19:49]Read from MH i2c: E2 0E 00 [11:19:49]MH_I2C_Read... [11:19:49]Read from MH i2c: E2 0E 00 C0 48 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 52 [11:19:49]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [11:19:49]wFMCommunicate OK [11:19:49]SAM_PROTO_GetShiftState done [11:19:49]FM_GetShiftState done [11:19:49]opened in 1729989044 [11:19:49]opened+sec_in_day 1730075444 [11:19:49]quantity*price = 30038 [11:19:49]sum+1 = 30039 [11:19:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 84 27.10.2024 11:19 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156533 ФПД: 276664455690178 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T111954&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156533&fm=276664455690178&tin=02508201610067®Number=0000000000091693&sum=30000 [11:19:50]StoreToDocumentArchive [11:19:50]shift 537 fd 156533 [11:19:50]save to /storage/0537/doc_00156533 [11:19:50]save last doc name /storage/0537/doc_00156533 to /storage/kkm_last_doc_name [11:19:50]save OK [11:19:50]Clear old archive folders... [11:19:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:19:50]tlvbuf is 0182B980 [11:19:50]SAM_PROTO_ClearQueue [11:19:50]wFMCommunicate request_size=4 [11:19:50]MH_SAM_APDU [11:19:50]CAPDU: 80 09 00 00 [11:19:50]Write to MH i2c: E2 08 00 CD 48 80 09 00 00 00 00 00 00 87 [11:19:50]Write i2c OK [11:19:50]MH_I2C_Read... [11:19:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:19:50]Read from MH i2c: E2 [11:19:50]MH_I2C_Read... [11:19:50]Read from MH i2c: E2 03 00 [11:19:50]MH_I2C_Read... [11:19:50]Read from MH i2c: E2 03 00 CD 48 00 90 00 89 [11:19:50]RAPDU: 90 00 [11:19:50]wFMCommunicate OK [11:19:50]SAM_PROTO_ClearQueue done [11:19:50]KKMCreateOFDPacket [11:19:50]OFDProtocolAddRootSTLVToBuf [11:19:50]FM_MakeSignedData [11:19:50]FM_MakeSignedData [11:19:50]SAM_PROTO_SignData [11:19:50]wFMCommunicate request_size=4 [11:19:50]MH_SAM_APDU [11:19:50]CAPDU: 80 0D 01 02 [11:19:50]Write to MH i2c: E2 08 00 CE 48 80 0D 01 02 00 00 00 00 8F [11:19:50]Write i2c OK [11:19:50]MH_I2C_Read... [11:19:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:19:50]Read from MH i2c: E2 [11:19:50]MH_I2C_Read... [11:19:50]Read from MH i2c: E2 03 00 [11:19:50]MH_I2C_Read... [11:19:50]Read from MH i2c: E2 03 00 CE 48 00 90 00 8A [11:19:50]RAPDU: 90 00 [11:19:50]wFMCommunicate OK [11:19:50]wFMCommunicate request_size=255 [11:19:50]MH_SAM_APDU [11:19: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 DA 21 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 75 63 02 00 35 04 06 00 FB [11:19:50]Write to MH i2c: E2 02 01 CF 48 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 DA 21 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 75 63 02 00 35 04 06 00 FB 00 00 DB [11:19:50]Write i2c OK [11:19:50]MH_I2C_Read... [11:19:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:50]Read from MH i2c: E2 [11:19:50]MH_I2C_Read... [11:19:50]Read from MH i2c: E2 03 00 [11:19:50]MH_I2C_Read... [11:19:50]Read from MH i2c: E2 03 00 CF 48 00 90 00 8B [11:19:50]RAPDU: 90 00 [11:19:50]wFMCommunicate OK [11:19:50]wFMCommunicate request_size=10 [11:19:50]MH_SAM_APDU [11:19:50]CAPDU: 80 0D 02 02 05 9F F6 9A 77 C2 [11:19:50]Write to MH i2c: E2 0D 00 D0 48 80 0D 02 02 05 00 9F F6 9A 77 C2 00 00 04 [11:19:50]Write i2c OK [11:19:50]MH_I2C_Read... [11:19:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:50]Read from MH i2c: E2 [11:19:50]MH_I2C_Read... [11:19:50]Read from MH i2c: E2 03 00 [11:19:50]MH_I2C_Read... [11:19:50]Read from MH i2c: E2 03 00 D0 48 00 90 00 8C [11:19:50]RAPDU: 90 00 [11:19:50]wFMCommunicate OK [11:19:50]wFMCommunicate request_size=4 [11:19:50]MH_SAM_APDU [11:19:50]CAPDU: 80 0D 03 02 [11:19:50]Write to MH i2c: E2 08 00 D1 48 80 0D 03 02 00 00 00 00 94 [11:19:50]Write i2c OK [11:19:50]MH_I2C_Read... [11:19:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:19:50]Read from MH i2c: E2 [11:19:50]MH_I2C_Read... [11:19:50]Read from MH i2c: E2 0B 00 [11:19:50]MH_I2C_Read... [11:19:50]Read from MH i2c: E2 0B 00 D1 48 00 64 1A AA D0 13 C5 11 03 90 00 79 [11:19:50]RAPDU: 64 1A AA D0 13 C5 11 03 90 00 [11:19:50]wFMCommunicate OK [11:19:50]SAM_PROTO_SignData done [11:19:50]FM_MakeSignedData done [11:19:50]CreateOFDProtocolMessage [11:19:50]wFMCommunicate request_size=4 [11:19:50]MH_SAM_APDU [11:19:50]CAPDU: 80 11 00 00 [11:19:50]Write to MH i2c: E2 08 00 D2 48 80 11 00 00 00 00 00 00 94 [11:19:50]Write i2c OK [11:19:50]MH_I2C_Read... [11:19:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:51]Read from MH i2c: E2 [11:19:51]MH_I2C_Read... [11:19:51]Read from MH i2c: E2 17 00 [11:19:51]MH_I2C_Read... [11:19:51]Read from MH i2c: E2 17 00 D2 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 E9 [11:19:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:19:51]wFMCommunicate OK [11:19:51]CreateOFDProtocolMessage done [11:19:51]OFDSenderStorePacket 156533 [11:19:51]StoreOFDPacket docnum=156533 [11:19:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 A0 D3 07 01 5C 72 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 DA 21 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 75 63 02 00 35 04 06 00 FB 9F F6 9A 77 C2 64 1A AA D0 13 C5 11 03 [11:19:51]CheckFolder [11:19:51]dirname=/storage/ofd_packets [11:19:51]CheckFolder done [11:19:51]ProducePacketName [11:19:51]name=ofd_packets/00156533 [11:19:51]NVStorageSaveData ofd_packets/00156533 [11:19:51]File name is /storage/ofd_packets/00156533 [11:19:51]Write 301 bytes [11:19:51]NVStorageSaveData done [11:19:51]OFDSenderStorePacket done [11:19:51]KKMCreateOFDPacket done [11:19:51]NVStorageSaveData kkm_last_timestamp [11:19:51]File name is /storage/kkm_last_timestamp [11:19:51]Write 4 bytes [11:19:51]NVStorageSaveData done [11:19:51]ExternCall_PrintAddStr [11:19:51]wPrintStart [11:19:51]Write to MH i2c: 01 00 00 D3 48 1B [11:19:51]Write i2c OK [11:19:51]MH_I2C_Read... [11:19:51]Read from MH i2c: 01 [11:19:51]MH_I2C_Read... [11:19:51]Read from MH i2c: 01 07 00 [11:19:51]MH_I2C_Read... [11:19:51]Read from MH i2c: 01 07 00 D3 48 00 00 00 00 00 FF 0F 30 [11:19:51]RasterBufferAndPrint [11:19:51]line Счет N : (1)99347 [11:19:51]line ИНН: 02508201610067 [11:19:51]line Контрольно-Кассовый Чек [11:19:51]line ПРОДАЖА [11:19:51]line ТРК (МРК, ГНК) : 11 [11:19:51]line Товар: 2710124130 [11:19:51]line Аи-92-К-5 [11:19:51]line 4.490 * 66.90 [11:19:51]line = 300.38 [11:19:51]line НДС 12% НСП 1% [11:19:51]line > о реализуемом товаре [11:19:51]line ОКРУГЛЕНИЕ: -0.38 [11:19:51]line ИТОГО: 300.00 [11:19:51]line Внесено: 300.00 [11:19:51]line СДАЧА: 0.00 [11:19:51]line НСП 1% : 2.66 [11:19:51]line НДС 12% : 31.90 [11:19:51]line Наличными: 300.00 [11:19:51]line Безнал.: 0.00 [11:19:51]line Место: АЗС № 143 "Партнер Нефть" [11:19:51]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [11:19:51]line СНО: Общий режим [11:19:51]line Чек 84 27.10.2024 11:19 [11:19:51]line Смена: 537 ФФД: 1.0 [11:19:51]line ЗНМ: 0300000096 [11:19:51]line РНМ: 0000000000091693 [11:19:51]line Версия ККМ: 001 [11:19:51]line ФМ: 0000000000871792 [11:19:51]line ФД: 156533 [11:19:51]line ФПД: 276664455690178 [11:19:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T111954&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156533&fm=276664455690178&tin=02508201610067®Number=0000000000091693&sum=30000 [11:19:51]OFD Sender: Processing packet 156533 [packets to send 31, broken 30] [11:19:51]ProducePacketName [11:19:51]name=ofd_packets/00156533 [11:19:51]OFD Sender: To server: pG, [11:19:51]CommunicateWithHost lk.salyk.kg:30040 [11:19:51]ConnectInit lk.salyk.kg [11:19:51]written 0, free lines is 4095 [11:19:51]Connected sock=10 [11:19:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 A0 D3 07 01 5C 72 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 DA 21 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 75 63 02 00 35 04 06 00 FB 9F F6 9A 77 C2 64 1A AA D0 13 C5 11 03 [11:19:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 7A 99 47 00 92 D6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 75 63 02 00 F4 03 04 00 4A C7 1D 67 B6 04 01 00 00 D9 0A E0 C4 7F 46 42 7C [11:19:51]CommunicateWithHost err = 0 [11:19:51]CheckOFDResponse [11:19:51]1017 (14) - 77093643461234 [11:19:51]1041 (16) - 0000000000871792 [11:19:51]1040 (4) - 156533 [11:19:51]1012 (4) - 27.10.2024 04:53 [11:19:51]1206 (1) - 0 [11:19:51]OFD Sender: Remove packet 156533 [11:19:51]ProducePacketName [11:19:51]name=ofd_packets/00156533 [11:19:51]NVStorageDeleteData [11:19:51]Write to MH i2c: 01 00 00 FE 48 46 [11:19:51]Write i2c OK [11:19:51]MH_I2C_Read... [11:19:51]Read from MH i2c: 01 [11:19:51]MH_I2C_Read... [11:19:51]Read from MH i2c: 01 07 00 [11:19:51]MH_I2C_Read... [11:19:51]Read from MH i2c: 01 07 00 FE 48 00 00 00 00 00 D8 0C 31 [11:19:51]RasterBufferAndPrint [11:19:51]line [11:19:51]line [11:19:51]line [11:19:51]line [11:19:51]line [11:19:51]written 0, free lines is 3295 [11:19:51]process_action close_receipt done [11:19:51]requested_data is exist [11:19:51]produce_requested_data [11:19:51]requested_item fm.sn is exist - process it [11:19:51]wFMCommunicate request_size=4 [11:19:51]MH_SAM_APDU [11:19:51]CAPDU: 80 11 00 00 [11:19:51]Write to MH i2c: E2 08 00 05 49 80 11 00 00 00 00 00 00 C8 [11:19:51]Write i2c OK [11:19:51]MH_I2C_Read... [11:19:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:51]Read from MH i2c: E2 [11:19:51]MH_I2C_Read... [11:19:51]Read from MH i2c: E2 17 00 [11:19:51]MH_I2C_Read... [11:19:51]Read from MH i2c: E2 17 00 05 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 1D [11:19:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:19:51]wFMCommunicate OK [11:19:51]requested_item fd.num is exist - process it [11:19:51]SAM_PROTO_GetFieldsCounters [11:19:51]wFMCommunicate request_size=4 [11:19:51]MH_SAM_APDU [11:19:51]CAPDU: 80 13 00 00 [11:19:51]Write to MH i2c: E2 08 00 06 49 80 13 00 00 00 00 00 00 CB [11:19:51]Write i2c OK [11:19:51]MH_I2C_Read... [11:19:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:19:52]Read from MH i2c: E2 [11:19:52]MH_I2C_Read... [11:19:52]Read from MH i2c: E2 62 00 [11:19:52]MH_I2C_Read... [11:19:52]Read from MH i2c: E2 62 00 06 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 75 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [11:19:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 75 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:19:52]wFMCommunicate OK [11:19:52]SAM_PROTO_GetFieldsCounters done [11:19:52]requested_item shift.num is exist - process it [11:19:52]requested_item shift.opened is exist - process it [11:19:52]req_shift_opened [11:19:52]FM_GetShiftState [11:19:52]SAM_PROTO_GetShiftState [11:19:52]wFMCommunicate request_size=4 [11:19:52]MH_SAM_APDU [11:19:52]CAPDU: 80 13 01 00 [11:19:52]Write to MH i2c: E2 08 00 07 49 80 13 01 00 00 00 00 00 CD [11:19:52]Write i2c OK [11:19:52]MH_I2C_Read... [11:19:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:52]Read from MH i2c: E2 [11:19:52]MH_I2C_Read... [11:19:52]Read from MH i2c: E2 0E 00 [11:19:52]MH_I2C_Read... [11:19:52]Read from MH i2c: E2 0E 00 07 49 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 9A [11:19:52]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [11:19:52]wFMCommunicate OK [11:19:52]SAM_PROTO_GetShiftState done [11:19:52]FM_GetShiftState done [11:19:52]req_shift_opened done [11:19:52]requested_item shift.open_date is exist - process it [11:19:52]req_shift_open_date [11:19:52]req_shift_open_date done [11:19:52]produce_requested_data done [11:19:52]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156533,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [11:19:52]process_action_free close_receipt [11:19:52]json_value_free [11:19:52]json_value_free done [11:19:52]process_json_proto returns [11:19:52]Send response to host [11:19:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156533,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [11:19:52]free response buf [11:19:52]execute_script done [11:19:52]execute_script returns [11:19:52]free content buf [11:19:52]Sock 8.Close socket [11:19:52]Sock 8.Thread stoped [11:19:52]OFD Sender: No OFD packet to send [11:19:57]OFD Sender: No OFD packet to send [11:20:02]OFD Sender: No OFD packet to send [11:20:07]OFD Sender: No OFD packet to send [11:20:12]OFD Sender: No OFD packet to send [11:20:17]OFD Sender: No OFD packet to send [11:20:22]OFD Sender: No OFD packet to send [11:20:27]OFD Sender: No OFD packet to send [11:20:32]OFD Sender: No OFD packet to send [11:20:37]OFD Sender: No OFD packet to send [11:20:42]OFD Sender: No OFD packet to send [11:20:47]OFD Sender: No OFD packet to send [11:20:52]OFD Sender: No OFD packet to send [11:20:57]OFD Sender: No OFD packet to send [11:21:02]OFD Sender: No OFD packet to send [11:21:07]OFD Sender: No OFD packet to send [11:21:12]OFD Sender: No OFD packet to send [11:21:17]OFD Sender: No OFD packet to send [11:21:22]OFD Sender: No OFD packet to send [11:21:27]OFD Sender: No OFD packet to send [11:21:32]OFD Sender: No OFD packet to send [11:21:37]OFD Sender: No OFD packet to send [11:21:42]OFD Sender: No OFD packet to send [11:21:47]OFD Sender: No OFD packet to send [11:21:52]OFD Sender: No OFD packet to send [11:21:57]OFD Sender: No OFD packet to send [11:22:02]OFD Sender: No OFD packet to send [11:22:07]OFD Sender: No OFD packet to send [11:22:12]OFD Sender: No OFD packet to send [11:22:17]OFD Sender: No OFD packet to send [11:22:22]OFD Sender: No OFD packet to send [11:22:27]OFD Sender: No OFD packet to send [11:22:32]OFD Sender: No OFD packet to send [11:22:37]OFD Sender: No OFD packet to send [11:22:42]OFD Sender: No OFD packet to send [11:22:47]OFD Sender: No OFD packet to send [11:22:52]OFD Sender: No OFD packet to send [11:22:57]OFD Sender: No OFD packet to send [11:23:02]OFD Sender: No OFD packet to send [11:23:07]OFD Sender: No OFD packet to send [11:23:12]OFD Sender: No OFD packet to send [11:23:17]OFD Sender: No OFD packet to send [11:23:22]OFD Sender: No OFD packet to send [11:23:27]OFD Sender: No OFD packet to send [11:23:32]OFD Sender: No OFD packet to send [11:23:37]OFD Sender: No OFD packet to send [11:23:42]OFD Sender: No OFD packet to send [11:23:47]OFD Sender: No OFD packet to send [11:23:52]OFD Sender: No OFD packet to send [11:23:57]OFD Sender: No OFD packet to send [11:24:02]OFD Sender: No OFD packet to send [11:24:07]OFD Sender: No OFD packet to send [11:24:11]accept exits with 9 [11:24:11]New connection [11:24:11]New thread 3066834276 created [11:24:11]Thread 3066977636 joined [11:24:11]Waiting for new connection... [11:24:11] Sock 9.Parse request [11:24:11]Sock 9.Check first char [11:24:11]Sock 9.First char is OK [11:24:11]request: POST /json_proto HTTP/1.0 [11:24:11]Method: POST [11:24:11]URL: /json_proto [11:24:11]Method is POST - this is cgi request [11:24:11]url: /json_proto [11:24:11]query_string will be loaded in cgi processing [11:24:11]execute_cgi json_proto POST (null) [11:24:11]execute_cgi path=json_proto method=POST [11:24:11]POST find Content-Length [11:24:11]Host: 172.17.63.3:8080 [11:24:11]Content-Length: 676 [11:24:11]Content-Type: application/json [11:24:11] [11:24:11]POST finish read [11:24:11]Found Content-Length = 676 [11:24:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99348", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:24:11]execute_script... [11:24: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)99348", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:24:11]POST & json_proto [11:24:11]process_json_proto [11:24:11]json parsed OK: [11:24:11]protocol is kg_v1.0 [11:24:11]action value=close_receipt [11:24:11]process_action close_receipt [11:24:11]cmd_close_receipt [11:24:11]MH_GetDate [11:24:11]Write to MH i2c: F0 00 00 08 49 40 [11:24:11]Write i2c OK [11:24:11]MH_I2C_Read... [11:24:11]Read from MH i2c: F0 [11:24:11]MH_I2C_Read... [11:24:11]Read from MH i2c: F0 09 00 [11:24:11]MH_I2C_Read... [11:24:11]Read from MH i2c: F0 09 00 08 49 00 E1 22 1E 67 50 D1 6C 64 C2 [11:24:11]GetLastDocTimeStamp 1730027994 [11:24:11]current date 1730028257 [11:24:11]FM_GetShiftState [11:24:11]SAM_PROTO_GetShiftState [11:24:11]wFMCommunicate request_size=4 [11:24:11]MH_SAM_APDU [11:24:11]CAPDU: 80 13 01 00 [11:24:11]Write to MH i2c: E2 08 00 09 49 80 13 01 00 00 00 00 00 CF [11:24:11]Write i2c OK [11:24:11]MH_I2C_Read... [11:24:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:24:11]Read from MH i2c: E2 [11:24:11]MH_I2C_Read... [11:24:11]Read from MH i2c: E2 0E 00 [11:24:11]MH_I2C_Read... [11:24:11]Read from MH i2c: E2 0E 00 09 49 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 9C [11:24:11]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [11:24:11]wFMCommunicate OK [11:24:11]SAM_PROTO_GetShiftState done [11:24:11]FM_GetShiftState done [11:24:11]opened in 1729989044 [11:24:11]opened+sec_in_day 1730075444 [11:24:11]quantity*price = 30038 [11:24:11]sum+1 = 30039 [11:24:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 85 27.10.2024 11:24 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156534 ФПД: 188742117565308 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T112417&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156534&fm=188742117565308&tin=02508201610067®Number=0000000000091693&sum=30000 [11:24:12]StoreToDocumentArchive [11:24:12]shift 537 fd 156534 [11:24:12]save to /storage/0537/doc_00156534 [11:24:12]save last doc name /storage/0537/doc_00156534 to /storage/kkm_last_doc_name [11:24:12]save OK [11:24:12]Clear old archive folders... [11:24:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:24:12]tlvbuf is 017ADCA0 [11:24:12]SAM_PROTO_ClearQueue [11:24:12]wFMCommunicate request_size=4 [11:24:12]MH_SAM_APDU [11:24:12]CAPDU: 80 09 00 00 [11:24:12]Write to MH i2c: E2 08 00 16 49 80 09 00 00 00 00 00 00 D1 [11:24:12]Write i2c OK [11:24:12]MH_I2C_Read... [11:24:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:24:12]Read from MH i2c: E2 [11:24:12]MH_I2C_Read... [11:24:12]Read from MH i2c: E2 03 00 [11:24:12]MH_I2C_Read... [11:24:12]Read from MH i2c: E2 03 00 16 49 00 90 00 D3 [11:24:12]RAPDU: 90 00 [11:24:12]wFMCommunicate OK [11:24:12]SAM_PROTO_ClearQueue done [11:24:12]KKMCreateOFDPacket [11:24:12]OFDProtocolAddRootSTLVToBuf [11:24:12]FM_MakeSignedData [11:24:12]FM_MakeSignedData [11:24:12]SAM_PROTO_SignData [11:24:12]wFMCommunicate request_size=4 [11:24:12]MH_SAM_APDU [11:24:12]CAPDU: 80 0D 01 02 [11:24:12]Write to MH i2c: E2 08 00 17 49 80 0D 01 02 00 00 00 00 D9 [11:24:12]Write i2c OK [11:24:12]MH_I2C_Read... [11:24:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:24:12]Read from MH i2c: E2 [11:24:12]MH_I2C_Read... [11:24:12]Read from MH i2c: E2 03 00 [11:24:12]MH_I2C_Read... [11:24:12]Read from MH i2c: E2 03 00 17 49 00 90 00 D4 [11:24:12]RAPDU: 90 00 [11:24:12]wFMCommunicate OK [11:24:12]wFMCommunicate request_size=255 [11:24:12]MH_SAM_APDU [11:24: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 E1 22 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 76 63 02 00 35 04 06 00 AB [11:24:12]Write to MH i2c: E2 02 01 18 49 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 E1 22 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 76 63 02 00 35 04 06 00 AB 00 00 DF [11:24:12]Write i2c OK [11:24:12]MH_I2C_Read... [11:24:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:24:13]Read from MH i2c: E2 [11:24:13]MH_I2C_Read... [11:24:13]Read from MH i2c: E2 03 00 [11:24:13]MH_I2C_Read... [11:24:13]Read from MH i2c: E2 03 00 18 49 00 90 00 D5 [11:24:13]RAPDU: 90 00 [11:24:13]wFMCommunicate OK [11:24:13]wFMCommunicate request_size=10 [11:24:13]MH_SAM_APDU [11:24:13]CAPDU: 80 0D 02 02 05 A8 F2 DF 23 7C [11:24:13]Write to MH i2c: E2 0D 00 19 49 80 0D 02 02 05 00 A8 F2 DF 23 7C 00 00 FE [11:24:13]Write i2c OK [11:24:13]MH_I2C_Read... [11:24:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:24:13]Read from MH i2c: E2 [11:24:13]MH_I2C_Read... [11:24:13]Read from MH i2c: E2 03 00 [11:24:13]MH_I2C_Read... [11:24:13]Read from MH i2c: E2 03 00 19 49 00 90 00 D6 [11:24:13]RAPDU: 90 00 [11:24:13]wFMCommunicate OK [11:24:13]wFMCommunicate request_size=4 [11:24:13]MH_SAM_APDU [11:24:13]CAPDU: 80 0D 03 02 [11:24:13]Write to MH i2c: E2 08 00 1A 49 80 0D 03 02 00 00 00 00 DE [11:24:13]Write i2c OK [11:24:13]MH_I2C_Read... [11:24:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:24:13]Read from MH i2c: E2 [11:24:13]MH_I2C_Read... [11:24:13]Read from MH i2c: E2 0B 00 [11:24:13]MH_I2C_Read... [11:24:13]Read from MH i2c: E2 0B 00 1A 49 00 65 3B 7D 38 25 72 CC 43 90 00 DA [11:24:13]RAPDU: 65 3B 7D 38 25 72 CC 43 90 00 [11:24:13]wFMCommunicate OK [11:24:13]SAM_PROTO_SignData done [11:24:13]FM_MakeSignedData done [11:24:13]CreateOFDProtocolMessage [11:24:13]wFMCommunicate request_size=4 [11:24:13]MH_SAM_APDU [11:24:13]CAPDU: 80 11 00 00 [11:24:13]Write to MH i2c: E2 08 00 1B 49 80 11 00 00 00 00 00 00 DE [11:24:13]Write i2c OK [11:24:13]MH_I2C_Read... [11:24:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:24:13]Read from MH i2c: E2 [11:24:13]MH_I2C_Read... [11:24:13]Read from MH i2c: E2 17 00 [11:24:13]MH_I2C_Read... [11:24:13]Read from MH i2c: E2 17 00 1B 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 33 [11:24:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:24:13]wFMCommunicate OK [11:24:13]CreateOFDProtocolMessage done [11:24:13]OFDSenderStorePacket 156534 [11:24:13]StoreOFDPacket docnum=156534 [11:24:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 F1 14 07 01 07 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 E1 22 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 76 63 02 00 35 04 06 00 AB A8 F2 DF 23 7C 65 3B 7D 38 25 72 CC 43 [11:24:13]CheckFolder [11:24:13]dirname=/storage/ofd_packets [11:24:13]CheckFolder done [11:24:13]ProducePacketName [11:24:13]name=ofd_packets/00156534 [11:24:13]NVStorageSaveData ofd_packets/00156534 [11:24:13]File name is /storage/ofd_packets/00156534 [11:24:13]Write 301 bytes [11:24:13]NVStorageSaveData done [11:24:13]OFDSenderStorePacket done [11:24:13]KKMCreateOFDPacket done [11:24:13]NVStorageSaveData kkm_last_timestamp [11:24:13]File name is /storage/kkm_last_timestamp [11:24:13]Write 4 bytes [11:24:13]NVStorageSaveData done [11:24:13]ExternCall_PrintAddStr [11:24:13]wPrintStart [11:24:13]Write to MH i2c: 01 00 00 1C 49 65 [11:24:13]OFD Sender: Processing packet 156534 [packets to send 31, broken 30] [11:24:13]ProducePacketName [11:24:13]name=ofd_packets/00156534 [11:24:13]OFD Sender: To server: pG, [11:24:13]CommunicateWithHost lk.salyk.kg:30040 [11:24:13]ConnectInit lk.salyk.kg [11:24:13]Write i2c OK [11:24:13]MH_I2C_Read... [11:24:13]Read from MH i2c: 01 [11:24:13]MH_I2C_Read... [11:24:13]Read from MH i2c: 01 07 00 [11:24:13]MH_I2C_Read... [11:24:13]Read from MH i2c: 01 07 00 1C 49 00 00 00 00 00 FF 0F 7A [11:24:13]RasterBufferAndPrint [11:24:13]line Счет N : (1)99348 [11:24:13]line ИНН: 02508201610067 [11:24:13]line Контрольно-Кассовый Чек [11:24:13]line ПРОДАЖА [11:24:13]line ТРК (МРК, ГНК) : 11 [11:24:13]line Товар: 2710124130 [11:24:13]line Аи-92-К-5 [11:24:13]line 4.490 * 66.90 [11:24:13]line = 300.38 [11:24:13]line НДС 12% НСП 1% [11:24:13]line > о реализуемом товаре [11:24:13]line ОКРУГЛЕНИЕ: -0.38 [11:24:13]line ИТОГО: 300.00 [11:24:13]line Внесено: 300.00 [11:24:13]line СДАЧА: 0.00 [11:24:13]line НСП 1% : 2.66 [11:24:13]line НДС 12% : 31.90 [11:24:13]line Наличными: 300.00 [11:24:13]line Безнал.: 0.00 [11:24:13]line Место: АЗС № 143 "Партнер Нефть" [11:24:13]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [11:24:13]line СНО: Общий режим [11:24:13]line Чек 85 27.10.2024 11:24 [11:24:13]line Смена: 537 ФФД: 1.0 [11:24:13]line ЗНМ: 0300000096 [11:24:13]line РНМ: 0000000000091693 [11:24:13]line Версия ККМ: 001 [11:24:13]line ФМ: 0000000000871792 [11:24:13]line ФД: 156534 [11:24:13]line ФПД: 188742117565308 [11:24:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T112417&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156534&fm=188742117565308&tin=02508201610067®Number=0000000000091693&sum=30000 [11:24:13]Connected sock=10 [11:24:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 F1 14 07 01 07 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 E1 22 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 76 63 02 00 35 04 06 00 AB A8 F2 DF 23 7C 65 3B 7D 38 25 72 CC 43 [11:24:13]written 0, free lines is 4095 [11:24:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 A7 88 47 00 DD 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 31 37 39 32 10 04 04 00 76 63 02 00 F4 03 04 00 50 C8 1D 67 B6 04 01 00 00 C0 80 C9 7D 4D 51 56 22 [11:24:13]CommunicateWithHost err = 0 [11:24:13]CheckOFDResponse [11:24:13]1017 (14) - 77093643461234 [11:24:13]1041 (16) - 0000000000871792 [11:24:13]1040 (4) - 156534 [11:24:13]1012 (4) - 27.10.2024 04:57 [11:24:13]1206 (1) - 0 [11:24:13]OFD Sender: Remove packet 156534 [11:24:13]ProducePacketName [11:24:13]name=ofd_packets/00156534 [11:24:13]NVStorageDeleteData [11:24:14]Write to MH i2c: 01 00 00 47 49 90 [11:24:14]Write i2c OK [11:24:14]MH_I2C_Read... [11:24:14]Read from MH i2c: 01 [11:24:14]MH_I2C_Read... [11:24:14]Read from MH i2c: 01 07 00 [11:24:14]MH_I2C_Read... [11:24:14]Read from MH i2c: 01 07 00 47 49 00 00 00 00 00 E0 0C 83 [11:24:14]RasterBufferAndPrint [11:24:14]line [11:24:14]line [11:24:14]line [11:24:14]line [11:24:14]line [11:24:14]written 0, free lines is 3302 [11:24:14]process_action close_receipt done [11:24:14]requested_data is exist [11:24:14]produce_requested_data [11:24:14]requested_item fm.sn is exist - process it [11:24:14]wFMCommunicate request_size=4 [11:24:14]MH_SAM_APDU [11:24:14]CAPDU: 80 11 00 00 [11:24:14]Write to MH i2c: E2 08 00 4E 49 80 11 00 00 00 00 00 00 11 [11:24:14]Write i2c OK [11:24:14]MH_I2C_Read... [11:24:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:24:14]Read from MH i2c: E2 [11:24:14]MH_I2C_Read... [11:24:14]Read from MH i2c: E2 17 00 [11:24:14]MH_I2C_Read... [11:24:14]Read from MH i2c: E2 17 00 4E 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 66 [11:24:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:24:14]wFMCommunicate OK [11:24:14]requested_item fd.num is exist - process it [11:24:14]SAM_PROTO_GetFieldsCounters [11:24:14]wFMCommunicate request_size=4 [11:24:14]MH_SAM_APDU [11:24:14]CAPDU: 80 13 00 00 [11:24:14]Write to MH i2c: E2 08 00 4F 49 80 13 00 00 00 00 00 00 14 [11:24:14]Write i2c OK [11:24:14]MH_I2C_Read... [11:24:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:24:14]Read from MH i2c: E2 [11:24:14]MH_I2C_Read... [11:24:14]Read from MH i2c: E2 62 00 [11:24:14]MH_I2C_Read... [11:24:14]Read from MH i2c: E2 62 00 4F 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 76 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 2F [11: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 76 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:24:14]wFMCommunicate OK [11:24:14]SAM_PROTO_GetFieldsCounters done [11:24:14]requested_item shift.num is exist - process it [11:24:14]requested_item shift.opened is exist - process it [11:24:14]req_shift_opened [11:24:14]FM_GetShiftState [11:24:14]SAM_PROTO_GetShiftState [11:24:14]wFMCommunicate request_size=4 [11:24:14]MH_SAM_APDU [11:24:14]CAPDU: 80 13 01 00 [11:24:14]Write to MH i2c: E2 08 00 50 49 80 13 01 00 00 00 00 00 16 [11:24:14]Write i2c OK [11:24:14]MH_I2C_Read... [11:24:14]OFD Sender: No OFD packet to send [11:24:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:24:14]Read from MH i2c: E2 [11:24:14]MH_I2C_Read... [11:24:14]Read from MH i2c: E2 0E 00 [11:24:14]MH_I2C_Read... [11:24:14]Read from MH i2c: E2 0E 00 50 49 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 E3 [11:24:14]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [11:24:14]wFMCommunicate OK [11:24:14]SAM_PROTO_GetShiftState done [11:24:14]FM_GetShiftState done [11:24:14]req_shift_opened done [11:24:14]requested_item shift.open_date is exist - process it [11:24:14]req_shift_open_date [11:24:14]req_shift_open_date done [11:24:14]produce_requested_data done [11:24:14]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156534,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [11:24:14]process_action_free close_receipt [11:24:14]json_value_free [11:24:14]json_value_free done [11:24:14]process_json_proto returns [11:24:14]Send response to host [11:24:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156534,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [11:24:14]free response buf [11:24:14]execute_script done [11:24:14]execute_script returns [11:24:14]free content buf [11:24:14]Sock 9.Close socket [11:24:14]Sock 9.Thread stoped [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:11]accept exits with 8 [11:26:11]New connection [11:26:11]New thread 3066977636 created [11:26:11]Thread 3066834276 joined [11:26:11]Waiting for new connection... [11:26:11] Sock 8.Parse request [11:26:11]Sock 8.Check first char [11:26:11]Sock 8.First char is OK [11:26:11]request: POST /json_proto HTTP/1.0 [11:26:11]Method: POST [11:26:11]URL: /json_proto [11:26:11]Method is POST - this is cgi request [11:26:11]url: /json_proto [11:26:11]query_string will be loaded in cgi processing [11:26:11]execute_cgi json_proto POST (null) [11:26:11]execute_cgi path=json_proto method=POST [11:26:11]POST find Content-Length [11:26:11]Host: 172.17.63.3:8080 [11:26:11]Content-Length: 676 [11:26:11]Content-Type: application/json [11:26:11] [11:26:11]POST finish read [11:26:11]Found Content-Length = 676 [11:26:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99349", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 6.880, "sum" : 460.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 460.00, "total" : 460.00, "payments": [ { "type": 0, "sum" : 460.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:26:11]execute_script... [11:26: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)99349", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 6.880, "sum" : 460.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 460.00, "total" : 460.00, "payments": [ { "type": 0, "sum" : 460.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:26:11]POST & json_proto [11:26:11]process_json_proto [11:26:11]json parsed OK: [11:26:11]protocol is kg_v1.0 [11:26:11]action value=close_receipt [11:26:11]process_action close_receipt [11:26:11]cmd_close_receipt [11:26:11]MH_GetDate [11:26:11]Write to MH i2c: F0 00 00 51 49 89 [11:26:11]Write i2c OK [11:26:11]MH_I2C_Read... [11:26:11]Read from MH i2c: F0 [11:26:11]MH_I2C_Read... [11:26:11]Read from MH i2c: F0 09 00 [11:26:11]MH_I2C_Read... [11:26:11]Read from MH i2c: F0 09 00 51 49 00 58 23 1E 67 50 D1 6C 64 83 [11:26:11]GetLastDocTimeStamp 1730028257 [11:26:11]current date 1730028376 [11:26:11]FM_GetShiftState [11:26:11]SAM_PROTO_GetShiftState [11:26:11]wFMCommunicate request_size=4 [11:26:11]MH_SAM_APDU [11:26:11]CAPDU: 80 13 01 00 [11:26:11]Write to MH i2c: E2 08 00 52 49 80 13 01 00 00 00 00 00 18 [11:26:11]Write i2c OK [11:26:11]MH_I2C_Read... [11:26:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:11]Read from MH i2c: E2 [11:26:11]MH_I2C_Read... [11:26:11]Read from MH i2c: E2 0E 00 [11:26:11]MH_I2C_Read... [11:26:11]Read from MH i2c: E2 0E 00 52 49 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 E5 [11:26:11]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [11:26:11]wFMCommunicate OK [11:26:11]SAM_PROTO_GetShiftState done [11:26:11]FM_GetShiftState done [11:26:11]opened in 1729989044 [11:26:11]opened+sec_in_day 1730075444 [11:26:11]quantity*price = 46027 [11:26:11]sum+1 = 46028 [11:26:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 460.00 Внесено: 460.00 СДАЧА: 0.00 НСП 1% : 4.07 НДС 12% : 48.88 Наличными: 460.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 86 27.10.2024 11:26 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156535 ФПД: 155157534434452 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T112616&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156535&fm=155157534434452&tin=02508201610067®Number=0000000000091693&sum=46000 [11:26:12]StoreToDocumentArchive [11:26:12]shift 537 fd 156535 [11:26:12]save to /storage/0537/doc_00156535 [11:26:12]save last doc name /storage/0537/doc_00156535 to /storage/kkm_last_doc_name [11:26:12]save OK [11:26:12]Clear old archive folders... [11:26:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:26:12]tlvbuf is 01848370 [11:26:12]SAM_PROTO_ClearQueue [11:26:12]wFMCommunicate request_size=4 [11:26:12]MH_SAM_APDU [11:26:12]CAPDU: 80 09 00 00 [11:26:12]Write to MH i2c: E2 08 00 5F 49 80 09 00 00 00 00 00 00 1A [11:26:12]Write i2c OK [11:26:12]MH_I2C_Read... [11:26:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:26:12]Read from MH i2c: E2 [11:26:12]MH_I2C_Read... [11:26:12]Read from MH i2c: E2 03 00 [11:26:12]MH_I2C_Read... [11:26:12]Read from MH i2c: E2 03 00 5F 49 00 90 00 1C [11:26:12]RAPDU: 90 00 [11:26:12]wFMCommunicate OK [11:26:12]SAM_PROTO_ClearQueue done [11:26:12]KKMCreateOFDPacket [11:26:12]OFDProtocolAddRootSTLVToBuf [11:26:12]FM_MakeSignedData [11:26:12]FM_MakeSignedData [11:26:12]SAM_PROTO_SignData [11:26:12]wFMCommunicate request_size=4 [11:26:12]MH_SAM_APDU [11:26:12]CAPDU: 80 0D 01 02 [11:26:12]Write to MH i2c: E2 08 00 60 49 80 0D 01 02 00 00 00 00 22 [11:26:12]Write i2c OK [11:26:12]MH_I2C_Read... [11:26:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:26:12]Read from MH i2c: E2 [11:26:12]MH_I2C_Read... [11:26:12]Read from MH i2c: E2 03 00 [11:26:12]MH_I2C_Read... [11:26:12]Read from MH i2c: E2 03 00 60 49 00 90 00 1D [11:26:12]RAPDU: 90 00 [11:26:12]wFMCommunicate OK [11:26:12]wFMCommunicate request_size=255 [11:26:12]MH_SAM_APDU [11:26: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 E0 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CB B3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 B3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 13 00 00 00 00 07 04 06 00 B0 B3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 58 23 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 77 63 02 00 35 04 06 00 8D [11:26:12]Write to MH i2c: E2 02 01 61 49 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CB B3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 B3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 13 00 00 00 00 07 04 06 00 B0 B3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 58 23 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 77 63 02 00 35 04 06 00 8D 00 00 48 [11:26:12]Write i2c OK [11:26:12]MH_I2C_Read... [11:26:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:12]Read from MH i2c: E2 [11:26:12]MH_I2C_Read... [11:26:12]Read from MH i2c: E2 03 00 [11:26:12]MH_I2C_Read... [11:26:12]Read from MH i2c: E2 03 00 61 49 00 90 00 1E [11:26:12]RAPDU: 90 00 [11:26:12]wFMCommunicate OK [11:26:12]wFMCommunicate request_size=10 [11:26:12]MH_SAM_APDU [11:26:12]CAPDU: 80 0D 02 02 05 1D 6D B9 64 94 [11:26:12]Write to MH i2c: E2 0D 00 62 49 80 0D 02 02 05 00 1D 6D B9 64 94 00 00 6A [11:26:12]Write i2c OK [11:26:12]MH_I2C_Read... [11:26:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:12]Read from MH i2c: E2 [11:26:12]MH_I2C_Read... [11:26:12]Read from MH i2c: E2 03 00 [11:26:12]MH_I2C_Read... [11:26:12]Read from MH i2c: E2 03 00 62 49 00 90 00 1F [11:26:12]RAPDU: 90 00 [11:26:12]wFMCommunicate OK [11:26:12]wFMCommunicate request_size=4 [11:26:12]MH_SAM_APDU [11:26:12]CAPDU: 80 0D 03 02 [11:26:12]Write to MH i2c: E2 08 00 63 49 80 0D 03 02 00 00 00 00 27 [11:26:12]Write i2c OK [11:26:12]MH_I2C_Read... [11:26:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:26:12]Read from MH i2c: E2 [11:26:12]MH_I2C_Read... [11:26:12]Read from MH i2c: E2 0B 00 [11:26:12]MH_I2C_Read... [11:26:12]Read from MH i2c: E2 0B 00 63 49 00 0B 23 34 3B 28 6B FD 21 90 00 76 [11:26:12]RAPDU: 0B 23 34 3B 28 6B FD 21 90 00 [11:26:12]wFMCommunicate OK [11:26:12]SAM_PROTO_SignData done [11:26:12]FM_MakeSignedData done [11:26:12]CreateOFDProtocolMessage [11:26:12]wFMCommunicate request_size=4 [11:26:12]MH_SAM_APDU [11:26:12]CAPDU: 80 11 00 00 [11:26:12]Write to MH i2c: E2 08 00 64 49 80 11 00 00 00 00 00 00 27 [11:26:12]Write i2c OK [11:26:12]MH_I2C_Read... [11:26:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:12]Read from MH i2c: E2 [11:26:12]MH_I2C_Read... [11:26:12]Read from MH i2c: E2 17 00 [11:26:12]MH_I2C_Read... [11:26:12]Read from MH i2c: E2 17 00 64 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 7C [11:26:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:26:12]wFMCommunicate OK [11:26:12]CreateOFDProtocolMessage done [11:26:12]OFDSenderStorePacket 156535 [11:26:12]StoreOFDPacket docnum=156535 [11:26:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 23 9F 07 01 98 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 E0 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CB B3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 B3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 13 00 00 00 00 07 04 06 00 B0 B3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 58 23 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 77 63 02 00 35 04 06 00 8D 1D 6D B9 64 94 0B 23 34 3B 28 6B FD 21 [11:26:12]CheckFolder [11:26:12]dirname=/storage/ofd_packets [11:26:12]CheckFolder done [11:26:12]ProducePacketName [11:26:12]name=ofd_packets/00156535 [11:26:12]NVStorageSaveData ofd_packets/00156535 [11:26:12]File name is /storage/ofd_packets/00156535 [11:26:12]Write 301 bytes [11:26:12]NVStorageSaveData done [11:26:12]OFDSenderStorePacket done [11:26:12]KKMCreateOFDPacket done [11:26:12]NVStorageSaveData kkm_last_timestamp [11:26:12]File name is /storage/kkm_last_timestamp [11:26:12]Write 4 bytes [11:26:12]NVStorageSaveData done [11:26:12]ExternCall_PrintAddStr [11:26:12]wPrintStart [11:26:12]Write to MH i2c: 01 00 00 65 49 AE [11:26:12]Write i2c OK [11:26:12]MH_I2C_Read... [11:26:12]Read from MH i2c: 01 [11:26:12]MH_I2C_Read... [11:26:12]Read from MH i2c: 01 07 00 [11:26:12]MH_I2C_Read... [11:26:12]Read from MH i2c: 01 07 00 65 49 00 00 00 00 00 FF 0F C3 [11:26:12]RasterBufferAndPrint [11:26:12]line Счет N : (1)99349 [11:26:12]line ИНН: 02508201610067 [11:26:12]line Контрольно-Кассовый Чек [11:26:12]line ПРОДАЖА [11:26:12]line ТРК (МРК, ГНК) : 11 [11:26:12]line Товар: 2710124130 [11:26:12]line Аи-92-К-5 [11:26:12]line 6.880 * 66.90 [11:26:12]line = 460.27 [11:26:12]line НДС 12% НСП 1% [11:26:12]line > о реализуемом товаре [11:26:12]line ОКРУГЛЕНИЕ: -0.27 [11:26:12]line ИТОГО: 460.00 [11:26:12]line Внесено: 460.00 [11:26:12]line СДАЧА: 0.00 [11:26:12]line НСП 1% : 4.07 [11:26:12]line НДС 12% : 48.88 [11:26:12]line Наличными: 460.00 [11:26:12]line Безнал.: 0.00 [11:26:12]line Место: АЗС № 143 "Партнер Нефть" [11:26:12]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [11:26:12]line СНО: Общий режим [11:26:12]line Чек 86 27.10.2024 11:26 [11:26:12]line Смена: 537 ФФД: 1.0 [11:26:12]line ЗНМ: 0300000096 [11:26:12]line РНМ: 0000000000091693 [11:26:12]line Версия ККМ: 001 [11:26:12]line ФМ: 0000000000871792 [11:26:12]line ФД: 156535 [11:26:12]line ФПД: 155157534434452 [11:26:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T112616&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156535&fm=155157534434452&tin=02508201610067®Number=0000000000091693&sum=46000 [11:26:13]OFD Sender: Processing packet 156535 [packets to send 31, broken 30] [11:26:13]ProducePacketName [11:26:13]name=ofd_packets/00156535 [11:26:13]OFD Sender: To server: pG, [11:26:13]CommunicateWithHost lk.salyk.kg:30040 [11:26:13]ConnectInit lk.salyk.kg [11:26:13]written 0, free lines is 4095 [11:26:13]Connected sock=10 [11:26:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 23 9F 07 01 98 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 E0 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CB B3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 B3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 13 00 00 00 00 07 04 06 00 B0 B3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 58 23 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 77 63 02 00 35 04 06 00 8D 1D 6D B9 64 94 0B 23 34 3B 28 6B FD 21 [11:26:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 B9 77 47 00 6C E2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 77 63 02 00 F4 03 04 00 C8 C8 1D 67 B6 04 01 00 00 C6 D7 AC 96 F5 47 8E BA [11:26:13]CommunicateWithHost err = 0 [11:26:13]CheckOFDResponse [11:26:13]1017 (14) - 77093643461234 [11:26:13]1041 (16) - 0000000000871792 [11:26:13]1040 (4) - 156535 [11:26:13]1012 (4) - 27.10.2024 04:59 [11:26:13]1206 (1) - 0 [11:26:13]OFD Sender: Remove packet 156535 [11:26:13]ProducePacketName [11:26:13]name=ofd_packets/00156535 [11:26:13]NVStorageDeleteData [11:26:13]Write to MH i2c: 01 00 00 90 49 D9 [11:26:13]Write i2c OK [11:26:13]MH_I2C_Read... [11:26:13]Read from MH i2c: 01 [11:26:13]MH_I2C_Read... [11:26:13]Read from MH i2c: 01 07 00 [11:26:13]MH_I2C_Read... [11:26:13]Read from MH i2c: 01 07 00 90 49 00 00 00 00 00 ED 0C D9 [11:26:13]RasterBufferAndPrint [11:26:13]line [11:26:13]line [11:26:13]line [11:26:13]line [11:26:13]line [11:26:13]written 0, free lines is 3315 [11:26:13]process_action close_receipt done [11:26:13]requested_data is exist [11:26:13]produce_requested_data [11:26:13]requested_item fm.sn is exist - process it [11:26:13]wFMCommunicate request_size=4 [11:26:13]MH_SAM_APDU [11:26:13]CAPDU: 80 11 00 00 [11:26:13]Write to MH i2c: E2 08 00 97 49 80 11 00 00 00 00 00 00 5A [11:26:13]Write i2c OK [11:26:13]MH_I2C_Read... [11:26:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:13]Read from MH i2c: E2 [11:26:13]MH_I2C_Read... [11:26:13]Read from MH i2c: E2 17 00 [11:26:13]MH_I2C_Read... [11:26:13]Read from MH i2c: E2 17 00 97 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 AF [11:26:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:26:13]wFMCommunicate OK [11:26:13]requested_item fd.num is exist - process it [11:26:13]SAM_PROTO_GetFieldsCounters [11:26:13]wFMCommunicate request_size=4 [11:26:13]MH_SAM_APDU [11:26:13]CAPDU: 80 13 00 00 [11:26:13]Write to MH i2c: E2 08 00 98 49 80 13 00 00 00 00 00 00 5D [11:26:13]Write i2c OK [11:26:13]MH_I2C_Read... [11:26:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:26:13]Read from MH i2c: E2 [11:26:13]MH_I2C_Read... [11:26:13]Read from MH i2c: E2 62 00 [11:26:13]MH_I2C_Read... [11:26:13]Read from MH i2c: E2 62 00 98 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 77 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 7C [11:26:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 77 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:26:13]wFMCommunicate OK [11:26:13]SAM_PROTO_GetFieldsCounters done [11:26:13]requested_item shift.num is exist - process it [11:26:13]requested_item shift.opened is exist - process it [11:26:13]req_shift_opened [11:26:13]FM_GetShiftState [11:26:13]SAM_PROTO_GetShiftState [11:26:13]wFMCommunicate request_size=4 [11:26:13]MH_SAM_APDU [11:26:13]CAPDU: 80 13 01 00 [11:26:13]Write to MH i2c: E2 08 00 99 49 80 13 01 00 00 00 00 00 5F [11:26:13]Write i2c OK [11:26:13]MH_I2C_Read... [11:26:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:14]Read from MH i2c: E2 [11:26:14]MH_I2C_Read... [11:26:14]Read from MH i2c: E2 0E 00 [11:26:14]MH_I2C_Read... [11:26:14]Read from MH i2c: E2 0E 00 99 49 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 2C [11:26:14]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [11:26:14]wFMCommunicate OK [11:26:14]SAM_PROTO_GetShiftState done [11:26:14]FM_GetShiftState done [11:26:14]req_shift_opened done [11:26:14]requested_item shift.open_date is exist - process it [11:26:14]req_shift_open_date [11:26:14]req_shift_open_date done [11:26:14]produce_requested_data done [11:26:14]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156535,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [11:26:14]process_action_free close_receipt [11:26:14]json_value_free [11:26:14]json_value_free done [11:26:14]process_json_proto returns [11:26:14]Send response to host [11:26:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156535,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [11:26:14]free response buf [11:26:14]execute_script done [11:26:14]execute_script returns [11:26:14]free content buf [11:26:14]Sock 8.Close socket [11:26:14]Sock 8.Thread stoped [11:26:14]OFD Sender: No OFD packet to send [11:26:19]OFD Sender: No OFD packet to send [11:26:24]OFD Sender: No OFD packet to send [11:26:29]OFD Sender: No OFD packet to send [11:26:34]OFD Sender: No OFD packet to send [11:26:39]OFD Sender: No OFD packet to send [11:26:44]OFD Sender: No OFD packet to send [11:26:49]OFD Sender: No OFD packet to send [11:26:54]OFD Sender: No OFD packet to send [11:26:59]OFD Sender: No OFD packet to send [11:27:04]OFD Sender: No OFD packet to send [11:27:09]OFD Sender: No OFD packet to send [11:27:14]OFD Sender: No OFD packet to send [11:27:19]OFD Sender: No OFD packet to send [11:27:24]OFD Sender: No OFD packet to send [11:27:29]OFD Sender: No OFD packet to send [11:27:34]OFD Sender: No OFD packet to send [11:27:39]OFD Sender: No OFD packet to send [11:27:44]OFD Sender: No OFD packet to send [11:27:49]OFD Sender: No OFD packet to send [11:27:54]OFD Sender: No OFD packet to send [11:27:59]OFD Sender: No OFD packet to send [11:28:04]OFD Sender: No OFD packet to send [11:28:09]OFD Sender: No OFD packet to send [11:28:14]OFD Sender: No OFD packet to send [11:28:19]OFD Sender: No OFD packet to send [11:28:24]OFD Sender: No OFD packet to send [11:28:25]accept exits with 9 [11:28:25]New connection [11:28:25]New thread 3066834276 created [11:28:25]Thread 3066977636 joined [11:28:25]Waiting for new connection... [11:28:25] Sock 9.Parse request [11:28:25]Sock 9.Check first char [11:28:25]Sock 9.First char is OK [11:28:25]request: POST /json_proto HTTP/1.0 [11:28:25]Method: POST [11:28:25]URL: /json_proto [11:28:25]Method is POST - this is cgi request [11:28:25]url: /json_proto [11:28:25]query_string will be loaded in cgi processing [11:28:25]execute_cgi json_proto POST (null) [11:28:25]execute_cgi path=json_proto method=POST [11:28:25]POST find Content-Length [11:28:25]Host: 172.17.63.3:8080 [11:28:25]Content-Length: 676 [11:28:25]Content-Type: application/json [11:28:25] [11:28:25]POST finish read [11:28:25]Found Content-Length = 676 [11:28:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99350", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:25]execute_script... [11:28: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)99350", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:25]POST & json_proto [11:28:25]process_json_proto [11:28:25]json parsed OK: [11:28:25]protocol is kg_v1.0 [11:28:25]action value=close_receipt [11:28:25]process_action close_receipt [11:28:25]cmd_close_receipt [11:28:25]MH_GetDate [11:28:25]Write to MH i2c: F0 00 00 9A 49 D2 [11:28:25]Write i2c OK [11:28:25]MH_I2C_Read... [11:28:25]Read from MH i2c: F0 [11:28:25]MH_I2C_Read... [11:28:25]Read from MH i2c: F0 09 00 [11:28:25]MH_I2C_Read... [11:28:25]Read from MH i2c: F0 09 00 9A 49 00 DE 23 1E 67 50 D1 6C 64 52 [11:28:25]GetLastDocTimeStamp 1730028376 [11:28:25]current date 1730028510 [11:28:25]FM_GetShiftState [11:28:25]SAM_PROTO_GetShiftState [11:28:25]wFMCommunicate request_size=4 [11:28:25]MH_SAM_APDU [11:28:25]CAPDU: 80 13 01 00 [11:28:25]Write to MH i2c: E2 08 00 9B 49 80 13 01 00 00 00 00 00 61 [11:28:25]Write i2c OK [11:28:25]MH_I2C_Read... [11:28:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:25]Read from MH i2c: E2 [11:28:25]MH_I2C_Read... [11:28:25]Read from MH i2c: E2 0E 00 [11:28:25]MH_I2C_Read... [11:28:25]Read from MH i2c: E2 0E 00 9B 49 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 2E [11:28:25]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [11:28:25]wFMCommunicate OK [11:28:25]SAM_PROTO_GetShiftState done [11:28:25]FM_GetShiftState done [11:28:25]opened in 1729989044 [11:28:25]opened+sec_in_day 1730075444 [11:28:25]quantity*price = 50041 [11:28:25]sum+1 = 50042 [11:28:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 87 27.10.2024 11:28 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156536 ФПД: 192040863497939 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T112830&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156536&fm=192040863497939&tin=02508201610067®Number=0000000000091693&sum=50000 [11:28:26]StoreToDocumentArchive [11:28:26]shift 537 fd 156536 [11:28:26]save to /storage/0537/doc_00156536 [11:28:26]save last doc name /storage/0537/doc_00156536 to /storage/kkm_last_doc_name [11:28:26]save OK [11:28:26]Clear old archive folders... [11:28:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:28:26]tlvbuf is 017DD1B0 [11:28:26]SAM_PROTO_ClearQueue [11:28:26]wFMCommunicate request_size=4 [11:28:26]MH_SAM_APDU [11:28:26]CAPDU: 80 09 00 00 [11:28:26]Write to MH i2c: E2 08 00 A8 49 80 09 00 00 00 00 00 00 63 [11:28:26]Write i2c OK [11:28:26]MH_I2C_Read... [11:28:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:28:26]Read from MH i2c: E2 [11:28:26]MH_I2C_Read... [11:28:26]Read from MH i2c: E2 03 00 [11:28:26]MH_I2C_Read... [11:28:26]Read from MH i2c: E2 03 00 A8 49 00 90 00 65 [11:28:26]RAPDU: 90 00 [11:28:26]wFMCommunicate OK [11:28:26]SAM_PROTO_ClearQueue done [11:28:26]KKMCreateOFDPacket [11:28:26]OFDProtocolAddRootSTLVToBuf [11:28:26]FM_MakeSignedData [11:28:26]FM_MakeSignedData [11:28:26]SAM_PROTO_SignData [11:28:26]wFMCommunicate request_size=4 [11:28:26]MH_SAM_APDU [11:28:26]CAPDU: 80 0D 01 02 [11:28:26]Write to MH i2c: E2 08 00 A9 49 80 0D 01 02 00 00 00 00 6B [11:28:26]Write i2c OK [11:28:26]MH_I2C_Read... [11:28:26]Read from MH i2c: E2 [11:28:26]MH_I2C_Read... [11:28:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:28:26]Read from MH i2c: E2 03 00 [11:28:26]MH_I2C_Read... [11:28:26]Read from MH i2c: E2 03 00 A9 49 00 90 00 66 [11:28:26]RAPDU: 90 00 [11:28:26]wFMCommunicate OK [11:28:26]wFMCommunicate request_size=255 [11:28:26]MH_SAM_APDU [11:28: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 DE 23 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 78 63 02 00 35 04 06 00 AE [11:28:26]Write to MH i2c: E2 02 01 AA 49 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 DE 23 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 78 63 02 00 35 04 06 00 AE 00 00 82 [11:28:26]Write i2c OK [11:28:26]MH_I2C_Read... [11:28:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:26]Read from MH i2c: E2 [11:28:26]MH_I2C_Read... [11:28:26]Read from MH i2c: E2 03 00 [11:28:26]MH_I2C_Read... [11:28:26]Read from MH i2c: E2 03 00 AA 49 00 90 00 67 [11:28:26]RAPDU: 90 00 [11:28:26]wFMCommunicate OK [11:28:26]wFMCommunicate request_size=10 [11:28:26]MH_SAM_APDU [11:28:26]CAPDU: 80 0D 02 02 05 A8 FF 73 7E D3 [11:28:26]Write to MH i2c: E2 0D 00 AB 49 80 0D 02 02 05 00 A8 FF 73 7E D3 00 00 E3 [11:28:26]Write i2c OK [11:28:26]MH_I2C_Read... [11:28:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:26]Read from MH i2c: E2 [11:28:26]MH_I2C_Read... [11:28:26]Read from MH i2c: E2 03 00 [11:28:26]MH_I2C_Read... [11:28:26]Read from MH i2c: E2 03 00 AB 49 00 90 00 68 [11:28:26]RAPDU: 90 00 [11:28:26]wFMCommunicate OK [11:28:26]wFMCommunicate request_size=4 [11:28:26]MH_SAM_APDU [11:28:26]CAPDU: 80 0D 03 02 [11:28:26]Write to MH i2c: E2 08 00 AC 49 80 0D 03 02 00 00 00 00 70 [11:28:26]Write i2c OK [11:28:26]MH_I2C_Read... [11:28:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:28:26]Read from MH i2c: E2 [11:28:26]MH_I2C_Read... [11:28:26]Read from MH i2c: E2 0B 00 [11:28:26]MH_I2C_Read... [11:28:26]Read from MH i2c: E2 0B 00 AC 49 00 64 08 26 D3 61 75 A5 43 90 00 94 [11:28:26]RAPDU: 64 08 26 D3 61 75 A5 43 90 00 [11:28:26]wFMCommunicate OK [11:28:26]SAM_PROTO_SignData done [11:28:26]FM_MakeSignedData done [11:28:26]CreateOFDProtocolMessage [11:28:26]wFMCommunicate request_size=4 [11:28:26]MH_SAM_APDU [11:28:26]CAPDU: 80 11 00 00 [11:28:26]Write to MH i2c: E2 08 00 AD 49 80 11 00 00 00 00 00 00 70 [11:28:26]Write i2c OK [11:28:26]MH_I2C_Read... [11:28:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:26]Read from MH i2c: E2 [11:28:26]MH_I2C_Read... [11:28:26]Read from MH i2c: E2 17 00 [11:28:26]MH_I2C_Read... [11:28:26]Read from MH i2c: E2 17 00 AD 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 C5 [11:28:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:28:26]wFMCommunicate OK [11:28:26]CreateOFDProtocolMessage done [11:28:26]OFDSenderStorePacket 156536 [11:28:26]StoreOFDPacket docnum=156536 [11:28:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 25 3A 07 01 38 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 DE 23 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 78 63 02 00 35 04 06 00 AE A8 FF 73 7E D3 64 08 26 D3 61 75 A5 43 [11:28:26]CheckFolder [11:28:26]dirname=/storage/ofd_packets [11:28:26]CheckFolder done [11:28:26]ProducePacketName [11:28:26]name=ofd_packets/00156536 [11:28:26]NVStorageSaveData ofd_packets/00156536 [11:28:26]File name is /storage/ofd_packets/00156536 [11:28:26]Write 301 bytes [11:28:26]NVStorageSaveData done [11:28:26]OFDSenderStorePacket done [11:28:26]KKMCreateOFDPacket done [11:28:26]NVStorageSaveData kkm_last_timestamp [11:28:26]File name is /storage/kkm_last_timestamp [11:28:26]Write 4 bytes [11:28:26]NVStorageSaveData done [11:28:26]ExternCall_PrintAddStr [11:28:26]wPrintStart [11:28:26]Write to MH i2c: 01 00 00 AE 49 F7 [11:28:26]Write i2c OK [11:28:26]MH_I2C_Read... [11:28:26]Read from MH i2c: 01 [11:28:26]MH_I2C_Read... [11:28:26]Read from MH i2c: 01 07 00 [11:28:26]MH_I2C_Read... [11:28:26]Read from MH i2c: 01 07 00 AE 49 00 00 00 00 00 FF 0F 0C [11:28:26]RasterBufferAndPrint [11:28:26]line Счет N : (1)99350 [11:28:26]line ИНН: 02508201610067 [11:28:26]line Контрольно-Кассовый Чек [11:28:26]line ПРОДАЖА [11:28:26]line ТРК (МРК, ГНК) : 11 [11:28:26]line Товар: 2710124130 [11:28:26]line Аи-92-К-5 [11:28:26]line 7.480 * 66.90 [11:28:26]line = 500.41 [11:28:26]line НДС 12% НСП 1% [11:28:26]line > о реализуемом товаре [11:28:26]line ОКРУГЛЕНИЕ: -0.41 [11:28:26]line ИТОГО: 500.00 [11:28:26]line Внесено: 500.00 [11:28:26]line СДАЧА: 0.00 [11:28:26]line НСП 1% : 4.43 [11:28:26]line НДС 12% : 53.14 [11:28:26]line Наличными: 500.00 [11:28:26]line Безнал.: 0.00 [11:28:26]line Место: АЗС № 143 "Партнер Нефть" [11:28:26]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [11:28:26]line СНО: Общий режим [11:28:26]line Чек 87 27.10.2024 11:28 [11:28:26]line Смена: 537 ФФД: 1.0 [11:28:26]line ЗНМ: 0300000096 [11:28:26]line РНМ: 0000000000091693 [11:28:26]line Версия ККМ: 001 [11:28:26]line ФМ: 0000000000871792 [11:28:26]line ФД: 156536 [11:28:26]line ФПД: 192040863497939 [11:28:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T112830&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156536&fm=192040863497939&tin=02508201610067®Number=0000000000091693&sum=50000 [11:28:27]OFD Sender: Processing packet 156536 [packets to send 31, broken 30] [11:28:27]ProducePacketName [11:28:27]name=ofd_packets/00156536 [11:28:27]OFD Sender: To server: pG, [11:28:27]CommunicateWithHost lk.salyk.kg:30040 [11:28:27]ConnectInit lk.salyk.kg [11:28:27]written 0, free lines is 4095 [11:28:27]Connected sock=10 [11:28:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 25 3A 07 01 38 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 DE 23 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 78 63 02 00 35 04 06 00 AE A8 FF 73 7E D3 64 08 26 D3 61 75 A5 43 [11:28:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 2D 64 47 00 AB C4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 78 63 02 00 F4 03 04 00 4E C9 1D 67 B6 04 01 00 00 9E A7 B7 05 33 5F 3C C4 [11:28:27]CommunicateWithHost err = 0 [11:28:27]CheckOFDResponse [11:28:27]1017 (14) - 77093643461234 [11:28:27]1041 (16) - 0000000000871792 [11:28:27]1040 (4) - 156536 [11:28:27]1012 (4) - 27.10.2024 05:02 [11:28:27]1206 (1) - 0 [11:28:27]OFD Sender: Remove packet 156536 [11:28:27]ProducePacketName [11:28:27]name=ofd_packets/00156536 [11:28:27]NVStorageDeleteData [11:28:27]Write to MH i2c: 01 00 00 D9 49 22 [11:28:27]Write i2c OK [11:28:27]MH_I2C_Read... [11:28:27]Read from MH i2c: 01 [11:28:27]MH_I2C_Read... [11:28:27]Read from MH i2c: 01 07 00 [11:28:27]MH_I2C_Read... [11:28:27]Read from MH i2c: 01 07 00 D9 49 00 00 00 00 00 E6 0C 1B [11:28:27]RasterBufferAndPrint [11:28:27]line [11:28:27]line [11:28:27]line [11:28:27]line [11:28:27]line [11:28:27]written 0, free lines is 3308 [11:28:27]process_action close_receipt done [11:28:27]requested_data is exist [11:28:27]produce_requested_data [11:28:27]requested_item fm.sn is exist - process it [11:28:27]wFMCommunicate request_size=4 [11:28:27]MH_SAM_APDU [11:28:27]CAPDU: 80 11 00 00 [11:28:27]Write to MH i2c: E2 08 00 E0 49 80 11 00 00 00 00 00 00 A3 [11:28:27]Write i2c OK [11:28:27]MH_I2C_Read... [11:28:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:27]Read from MH i2c: E2 [11:28:27]MH_I2C_Read... [11:28:27]Read from MH i2c: E2 17 00 [11:28:27]MH_I2C_Read... [11:28:27]Read from MH i2c: E2 17 00 E0 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 F8 [11:28:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:28:27]wFMCommunicate OK [11:28:27]requested_item fd.num is exist - process it [11:28:27]SAM_PROTO_GetFieldsCounters [11:28:27]wFMCommunicate request_size=4 [11:28:27]MH_SAM_APDU [11:28:27]CAPDU: 80 13 00 00 [11:28:27]Write to MH i2c: E2 08 00 E1 49 80 13 00 00 00 00 00 00 A6 [11:28:27]Write i2c OK [11:28:27]MH_I2C_Read... [11:28:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:28:27]Read from MH i2c: E2 [11:28:27]MH_I2C_Read... [11:28:27]Read from MH i2c: E2 62 00 [11:28:27]MH_I2C_Read... [11:28:27]Read from MH i2c: E2 62 00 E1 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 78 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 C9 [11:28:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 78 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:28:27]wFMCommunicate OK [11:28:27]SAM_PROTO_GetFieldsCounters done [11:28:27]requested_item shift.num is exist - process it [11:28:27]requested_item shift.opened is exist - process it [11:28:27]req_shift_opened [11:28:27]FM_GetShiftState [11:28:27]SAM_PROTO_GetShiftState [11:28:27]wFMCommunicate request_size=4 [11:28:27]MH_SAM_APDU [11:28:27]CAPDU: 80 13 01 00 [11:28:27]Write to MH i2c: E2 08 00 E2 49 80 13 01 00 00 00 00 00 A8 [11:28:27]Write i2c OK [11:28:27]MH_I2C_Read... [11:28:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:27]Read from MH i2c: E2 [11:28:27]MH_I2C_Read... [11:28:27]Read from MH i2c: E2 0E 00 [11:28:27]MH_I2C_Read... [11:28:27]Read from MH i2c: E2 0E 00 E2 49 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 75 [11:28:27]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [11:28:27]wFMCommunicate OK [11:28:27]SAM_PROTO_GetShiftState done [11:28:27]FM_GetShiftState done [11:28:27]req_shift_opened done [11:28:27]requested_item shift.open_date is exist - process it [11:28:27]req_shift_open_date [11:28:27]req_shift_open_date done [11:28:27]produce_requested_data done [11:28:27]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156536,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [11:28:27]process_action_free close_receipt [11:28:27]json_value_free [11:28:27]json_value_free done [11:28:27]process_json_proto returns [11:28:27]Send response to host [11:28:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156536,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [11:28:27]free response buf [11:28:27]execute_script done [11:28:27]execute_script returns [11:28:27]free content buf [11:28:27]Sock 9.Close socket [11:28:27]Sock 9.Thread stoped [11:28:28]OFD Sender: No OFD packet to send [11:28:33]OFD Sender: No OFD packet to send [11:28:38]OFD Sender: No OFD packet to send [11:28:43]OFD Sender: No OFD packet to send [11:28:48]OFD Sender: No OFD packet to send [11:28:53]OFD Sender: No OFD packet to send [11:28:58]OFD Sender: No OFD packet to send [11:29:03]OFD Sender: No OFD packet to send [11:29:08]OFD Sender: No OFD packet to send [11:29:13]OFD Sender: No OFD packet to send [11:29:18]OFD Sender: No OFD packet to send [11:29:23]OFD Sender: No OFD packet to send [11:29:28]OFD Sender: No OFD packet to send [11:29:33]OFD Sender: No OFD packet to send [11:29:38]OFD Sender: No OFD packet to send [11:29:38]accept exits with 8 [11:29:38]New connection [11:29:38]New thread 3066977636 created [11:29:38]Thread 3066834276 joined [11:29:38]Waiting for new connection... [11:29:38] Sock 8.Parse request [11:29:38]Sock 8.Check first char [11:29:38]Sock 8.First char is OK [11:29:38]request: POST /json_proto HTTP/1.0 [11:29:38]Method: POST [11:29:38]URL: /json_proto [11:29:38]Method is POST - this is cgi request [11:29:38]url: /json_proto [11:29:38]query_string will be loaded in cgi processing [11:29:38]execute_cgi json_proto POST (null) [11:29:38]execute_cgi path=json_proto method=POST [11:29:38]POST find Content-Length [11:29:38]Host: 172.17.63.3:8080 [11:29:38]Content-Length: 676 [11:29:38]Content-Type: application/json [11:29:38] [11:29:38]POST finish read [11:29:38]Found Content-Length = 676 [11:29:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99351", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:29:38]execute_script... [11:29:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99351", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:29:38]POST & json_proto [11:29:38]process_json_proto [11:29:38]json parsed OK: [11:29:38]protocol is kg_v1.0 [11:29:38]action value=close_receipt [11:29:38]process_action close_receipt [11:29:38]cmd_close_receipt [11:29:38]MH_GetDate [11:29:38]Write to MH i2c: F0 00 00 E3 49 1B [11:29:38]Write i2c OK [11:29:38]MH_I2C_Read... [11:29:38]Read from MH i2c: F0 [11:29:38]MH_I2C_Read... [11:29:38]Read from MH i2c: F0 09 00 [11:29:38]MH_I2C_Read... [11:29:38]Read from MH i2c: F0 09 00 E3 49 00 27 24 1E 67 50 D1 6C 64 E5 [11:29:38]GetLastDocTimeStamp 1730028510 [11:29:38]current date 1730028583 [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 E4 49 80 13 01 00 00 00 00 00 AA [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 E4 49 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 77 [11:29:38]RAPDU: 09 00 01 B4 89 1D 67 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]opened in 1729989044 [11:29:38]opened+sec_in_day 1730075444 [11:29:38]quantity*price = 30038 [11:29:38]sum+1 = 30039 [11:29:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 88 27.10.2024 11:29 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156537 ФПД: 278778372440137 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T112943&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156537&fm=278778372440137&tin=02508201610067®Number=0000000000091693&sum=30000 [11:29:39]StoreToDocumentArchive [11:29:39]shift 537 fd 156537 [11:29:39]save to /storage/0537/doc_00156537 [11:29:39]save last doc name /storage/0537/doc_00156537 to /storage/kkm_last_doc_name [11:29:39]save OK [11:29:39]Clear old archive folders... [11:29:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:29:39]tlvbuf is 017A90A0 [11:29:39]SAM_PROTO_ClearQueue [11:29:39]wFMCommunicate request_size=4 [11:29:39]MH_SAM_APDU [11:29:39]CAPDU: 80 09 00 00 [11:29:39]Write to MH i2c: E2 08 00 F1 49 80 09 00 00 00 00 00 00 AC [11:29:39]Write i2c OK [11:29:39]MH_I2C_Read... [11:29:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:29:39]Read from MH i2c: E2 [11:29:39]MH_I2C_Read... [11:29:39]Read from MH i2c: E2 03 00 [11:29:39]MH_I2C_Read... [11:29:39]Read from MH i2c: E2 03 00 F1 49 00 90 00 AE [11:29:39]RAPDU: 90 00 [11:29:39]wFMCommunicate OK [11:29:39]SAM_PROTO_ClearQueue done [11:29:39]KKMCreateOFDPacket [11:29:39]OFDProtocolAddRootSTLVToBuf [11:29:39]FM_MakeSignedData [11:29:39]FM_MakeSignedData [11:29:39]SAM_PROTO_SignData [11:29:39]wFMCommunicate request_size=4 [11:29:39]MH_SAM_APDU [11:29:39]CAPDU: 80 0D 01 02 [11:29:39]Write to MH i2c: E2 08 00 F2 49 80 0D 01 02 00 00 00 00 B4 [11:29:39]Write i2c OK [11:29:39]MH_I2C_Read... [11:29:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:29:39]Read from MH i2c: E2 [11:29:39]MH_I2C_Read... [11:29:39]Read from MH i2c: E2 03 00 [11:29:39]MH_I2C_Read... [11:29:39]Read from MH i2c: E2 03 00 F2 49 00 90 00 AF [11:29:39]RAPDU: 90 00 [11:29:39]wFMCommunicate OK [11:29:39]wFMCommunicate request_size=255 [11:29:39]MH_SAM_APDU [11:29:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 27 24 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 79 63 02 00 35 04 06 00 FD [11:29:39]Write to MH i2c: E2 02 01 F3 49 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 27 24 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 79 63 02 00 35 04 06 00 FD 00 00 5A [11:29:39]Write i2c OK [11:29:39]MH_I2C_Read... [11:29:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:39]Read from MH i2c: E2 [11:29:39]MH_I2C_Read... [11:29:39]Read from MH i2c: E2 03 00 [11:29:39]MH_I2C_Read... [11:29:39]Read from MH i2c: E2 03 00 F3 49 00 90 00 B0 [11:29:39]RAPDU: 90 00 [11:29:39]wFMCommunicate OK [11:29:39]wFMCommunicate request_size=10 [11:29:39]MH_SAM_APDU [11:29:39]CAPDU: 80 0D 02 02 05 8C 25 DC 40 49 [11:29:39]Write to MH i2c: E2 0D 00 F4 49 80 0D 02 02 05 00 8C 25 DC 40 49 00 00 D7 [11:29:39]Write i2c OK [11:29:39]MH_I2C_Read... [11:29:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:39]Read from MH i2c: E2 [11:29:39]MH_I2C_Read... [11:29:39]Read from MH i2c: E2 03 00 [11:29:39]MH_I2C_Read... [11:29:39]Read from MH i2c: E2 03 00 F4 49 00 90 00 B1 [11:29:39]RAPDU: 90 00 [11:29:39]wFMCommunicate OK [11:29:39]wFMCommunicate request_size=4 [11:29:39]MH_SAM_APDU [11:29:39]CAPDU: 80 0D 03 02 [11:29:39]Write to MH i2c: E2 08 00 F5 49 80 0D 03 02 00 00 00 00 B9 [11:29:39]Write i2c OK [11:29:39]MH_I2C_Read... [11:29:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:29:39]Read from MH i2c: E2 [11:29:39]MH_I2C_Read... [11:29:39]Read from MH i2c: E2 0B 00 [11:29:39]MH_I2C_Read... [11:29:39]Read from MH i2c: E2 0B 00 F5 49 00 11 53 26 73 C1 CB BE 23 90 00 24 [11:29:39]RAPDU: 11 53 26 73 C1 CB BE 23 90 00 [11:29:39]wFMCommunicate OK [11:29:39]SAM_PROTO_SignData done [11:29:39]FM_MakeSignedData done [11:29:39]CreateOFDProtocolMessage [11:29:39]wFMCommunicate request_size=4 [11:29:39]MH_SAM_APDU [11:29:39]CAPDU: 80 11 00 00 [11:29:39]Write to MH i2c: E2 08 00 F6 49 80 11 00 00 00 00 00 00 B9 [11:29:39]Write i2c OK [11:29:39]MH_I2C_Read... [11:29:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:40]Read from MH i2c: E2 [11:29:40]MH_I2C_Read... [11:29:40]Read from MH i2c: E2 17 00 [11:29:40]MH_I2C_Read... [11:29:40]Read from MH i2c: E2 17 00 F6 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 0E [11:29:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:29:40]wFMCommunicate OK [11:29:40]CreateOFDProtocolMessage done [11:29:40]OFDSenderStorePacket 156537 [11:29:40]StoreOFDPacket docnum=156537 [11:29:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 23 BB 07 01 16 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 27 24 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 79 63 02 00 35 04 06 00 FD 8C 25 DC 40 49 11 53 26 73 C1 CB BE 23 [11:29:40]CheckFolder [11:29:40]dirname=/storage/ofd_packets [11:29:40]CheckFolder done [11:29:40]ProducePacketName [11:29:40]name=ofd_packets/00156537 [11:29:40]NVStorageSaveData ofd_packets/00156537 [11:29:40]File name is /storage/ofd_packets/00156537 [11:29:40]Write 301 bytes [11:29:40]NVStorageSaveData done [11:29:40]OFDSenderStorePacket done [11:29:40]KKMCreateOFDPacket done [11:29:40]NVStorageSaveData kkm_last_timestamp [11:29:40]File name is /storage/kkm_last_timestamp [11:29:40]OFD Sender: Processing packet 156537 [packets to send 31, broken 30] [11:29:40]ProducePacketName [11:29:40]name=ofd_packets/00156537 [11:29:40]OFD Sender: To server: pG, [11:29:40]CommunicateWithHost lk.salyk.kg:30040 [11:29:40]ConnectInit lk.salyk.kg [11:29:40]Write 4 bytes [11:29:40]NVStorageSaveData done [11:29:40]ExternCall_PrintAddStr [11:29:40]wPrintStart [11:29:40]Write to MH i2c: 01 00 00 F7 49 40 [11:29:40]Write i2c OK [11:29:40]MH_I2C_Read... [11:29:40]Read from MH i2c: 01 [11:29:40]MH_I2C_Read... [11:29:40]Read from MH i2c: 01 07 00 [11:29:40]MH_I2C_Read... [11:29:40]Read from MH i2c: 01 07 00 F7 49 00 00 00 00 00 FF 0F 55 [11:29:40]RasterBufferAndPrint [11:29:40]line Счет N : (1)99351 [11:29:40]line ИНН: 02508201610067 [11:29:40]line Контрольно-Кассовый Чек [11:29:40]line ПРОДАЖА [11:29:40]line ТРК (МРК, ГНК) : 21 [11:29:40]line Товар: 2710124130 [11:29:40]line Аи-92-К-5 [11:29:40]line 4.490 * 66.90 [11:29:40]line = 300.38 [11:29:40]line НДС 12% НСП 1% [11:29:40]line > о реализуемом товаре [11:29:40]line ОКРУГЛЕНИЕ: -0.38 [11:29:40]line ИТОГО: 300.00 [11:29:40]line Внесено: 300.00 [11:29:40]line СДАЧА: 0.00 [11:29:40]line НСП 1% : 2.66 [11:29:40]line НДС 12% : 31.90 [11:29:40]line Наличными: 300.00 [11:29:40]line Безнал.: 0.00 [11:29:40]line Место: АЗС № 143 "Партнер Нефть" [11:29:40]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [11:29:40]line СНО: Общий режим [11:29:40]line Чек 88 27.10.2024 11:29 [11:29:40]line Смена: 537 ФФД: 1.0 [11:29:40]line ЗНМ: 0300000096 [11:29:40]line РНМ: 0000000000091693 [11:29:40]line Версия ККМ: 001 [11:29:40]line ФМ: 0000000000871792 [11:29:40]line ФД: 156537 [11:29:40]line ФПД: 278778372440137 [11:29:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T112943&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156537&fm=278778372440137&tin=02508201610067®Number=0000000000091693&sum=30000 [11:29:40]Connected sock=11 [11:29:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 23 BB 07 01 16 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 27 24 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 79 63 02 00 35 04 06 00 FD 8C 25 DC 40 49 11 53 26 73 C1 CB BE 23 [11:29:40]written 0, free lines is 4095 [11:29:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 4D 3D 47 00 C0 D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 79 63 02 00 F4 03 04 00 97 C9 1D 67 B6 04 01 00 00 6B 1A 77 9B 51 93 32 15 [11:29:40]CommunicateWithHost err = 0 [11:29:40]CheckOFDResponse [11:29:40]1017 (14) - 77093643461234 [11:29:40]1041 (16) - 0000000000871792 [11:29:40]1040 (4) - 156537 [11:29:40]1012 (4) - 27.10.2024 05:03 [11:29:40]1206 (1) - 0 [11:29:40]OFD Sender: Remove packet 156537 [11:29:40]ProducePacketName [11:29:40]name=ofd_packets/00156537 [11:29:40]NVStorageDeleteData [11:29:40]Write to MH i2c: 01 00 00 22 4A 6C [11:29:40]Write i2c OK [11:29:40]MH_I2C_Read... [11:29:40]Read from MH i2c: 01 [11:29:40]MH_I2C_Read... [11:29:40]Read from MH i2c: 01 07 00 [11:29:40]MH_I2C_Read... [11:29:40]Read from MH i2c: 01 07 00 22 4A 00 00 00 00 00 E4 0C 63 [11:29:40]RasterBufferAndPrint [11:29:40]line [11:29:40]line [11:29:40]line [11:29:40]line [11:29:40]line [11:29:40]written 0, free lines is 3306 [11:29:40]process_action close_receipt done [11:29:40]requested_data is exist [11:29:40]produce_requested_data [11:29:40]requested_item fm.sn is exist - process it [11:29:40]wFMCommunicate request_size=4 [11:29:40]MH_SAM_APDU [11:29:40]CAPDU: 80 11 00 00 [11:29:40]Write to MH i2c: E2 08 00 29 4A 80 11 00 00 00 00 00 00 ED [11:29:40]Write i2c OK [11:29:40]MH_I2C_Read... [11:29:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:40]Read from MH i2c: E2 [11:29:40]MH_I2C_Read... [11:29:40]Read from MH i2c: E2 17 00 [11:29:40]MH_I2C_Read... [11:29:40]Read from MH i2c: E2 17 00 29 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 42 [11:29:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:29:40]wFMCommunicate OK [11:29:40]requested_item fd.num is exist - process it [11:29:40]SAM_PROTO_GetFieldsCounters [11:29:40]wFMCommunicate request_size=4 [11:29:40]MH_SAM_APDU [11:29:40]CAPDU: 80 13 00 00 [11:29:40]Write to MH i2c: E2 08 00 2A 4A 80 13 00 00 00 00 00 00 F0 [11:29:40]Write i2c OK [11:29:40]MH_I2C_Read... [11:29:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:29:41]OFD Sender: No OFD packet to send [11:29:41]Read from MH i2c: E2 [11:29:41]MH_I2C_Read... [11:29:41]Read from MH i2c: E2 62 00 [11:29:41]MH_I2C_Read... [11:29:41]Read from MH i2c: E2 62 00 2A 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 79 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 17 [11:29:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 79 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:29:41]wFMCommunicate OK [11:29:41]SAM_PROTO_GetFieldsCounters done [11:29:41]requested_item shift.num is exist - process it [11:29:41]requested_item shift.opened is exist - process it [11:29:41]req_shift_opened [11:29:41]FM_GetShiftState [11:29:41]SAM_PROTO_GetShiftState [11:29:41]wFMCommunicate request_size=4 [11:29:41]MH_SAM_APDU [11:29:41]CAPDU: 80 13 01 00 [11:29:41]Write to MH i2c: E2 08 00 2B 4A 80 13 01 00 00 00 00 00 F2 [11:29:41]Write i2c OK [11:29:41]MH_I2C_Read... [11:29:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:41]Read from MH i2c: E2 [11:29:41]MH_I2C_Read... [11:29:41]Read from MH i2c: E2 0E 00 [11:29:41]MH_I2C_Read... [11:29:41]Read from MH i2c: E2 0E 00 2B 4A 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 BF [11:29:41]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [11:29:41]wFMCommunicate OK [11:29:41]SAM_PROTO_GetShiftState done [11:29:41]FM_GetShiftState done [11:29:41]req_shift_opened done [11:29:41]requested_item shift.open_date is exist - process it [11:29:41]req_shift_open_date [11:29:41]req_shift_open_date done [11:29:41]produce_requested_data done [11:29:41]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156537,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [11:29:41]process_action_free close_receipt [11:29:41]json_value_free [11:29:41]json_value_free done [11:29:41]process_json_proto returns [11:29:41]Send response to host [11:29:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156537,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [11:29:41]free response buf [11:29:41]execute_script done [11:29:41]execute_script returns [11:29:41]free content buf [11:29:41]Sock 8.Close socket [11:29:41]Sock 8.Thread stoped [11:29:46]OFD Sender: No OFD packet to send [11:29:51]OFD Sender: No OFD packet to send [11:29:56]OFD Sender: No OFD packet to send [11:30:01]OFD Sender: No OFD packet to send [11:30:06]OFD Sender: No OFD packet to send [11:30:11]OFD Sender: No OFD packet to send [11:30:16]OFD Sender: No OFD packet to send [11:30:21]OFD Sender: No OFD packet to send [11:30:26]OFD Sender: No OFD packet to send [11:30:31]OFD Sender: No OFD packet to send [11:30:36]OFD Sender: No OFD packet to send [11:30:41]OFD Sender: No OFD packet to send [11:30:46]OFD Sender: No OFD packet to send [11:30:51]OFD Sender: No OFD packet to send [11:30:56]OFD Sender: No OFD packet to send [11:31:01]OFD Sender: No OFD packet to send [11:31:06]OFD Sender: No OFD packet to send [11:31:11]OFD Sender: No OFD packet to send [11:31:16]OFD Sender: No OFD packet to send [11:31:21]OFD Sender: No OFD packet to send [11:31:26]OFD Sender: No OFD packet to send [11:31:31]OFD Sender: No OFD packet to send [11:31:36]OFD Sender: No OFD packet to send [11:31:41]OFD Sender: No OFD packet to send [11:31:46]OFD Sender: No OFD packet to send [11:31:51]OFD Sender: No OFD packet to send [11:31:56]OFD Sender: No OFD packet to send [11:32:01]OFD Sender: No OFD packet to send [11:32:06]OFD Sender: No OFD packet to send [11:32:11]OFD Sender: No OFD packet to send [11:32:16]OFD Sender: No OFD packet to send [11:32:21]OFD Sender: No OFD packet to send [11:32:26]OFD Sender: No OFD packet to send [11:32:31]OFD Sender: No OFD packet to send [11:32:36]OFD Sender: No OFD packet to send [11:32:41]OFD Sender: No OFD packet to send [11:32:46]OFD Sender: No OFD packet to send [11:32:51]OFD Sender: No OFD packet to send [11:32:56]OFD Sender: No OFD packet to send [11:33:01]OFD Sender: No OFD packet to send [11:33:06]OFD Sender: No OFD packet to send [11:33:11]OFD Sender: No OFD packet to send [11:33:16]OFD Sender: No OFD packet to send [11:33:21]OFD Sender: No OFD packet to send [11:33:26]OFD Sender: No OFD packet to send [11:33:31]OFD Sender: No OFD packet to send [11:33:36]OFD Sender: No OFD packet to send [11:33:41]OFD Sender: No OFD packet to send [11:33:45]accept exits with 9 [11:33:45]New connection [11:33:45]New thread 3066834276 created [11:33:45]Thread 3066977636 joined [11:33:45]Waiting for new connection... [11:33:45] Sock 9.Parse request [11:33:45]Sock 9.Check first char [11:33:45]Sock 9.First char is OK [11:33:45]request: POST /json_proto HTTP/1.0 [11:33:45]Method: POST [11:33:45]URL: /json_proto [11:33:45]Method is POST - this is cgi request [11:33:45]url: /json_proto [11:33:45]query_string will be loaded in cgi processing [11:33:45]execute_cgi json_proto POST (null) [11:33:45]execute_cgi path=json_proto method=POST [11:33:45]POST find Content-Length [11:33:45]Host: 172.17.63.3:8080 [11:33:45]Content-Length: 676 [11:33:45]Content-Type: application/json [11:33:45] [11:33:45]POST finish read [11:33:45]Found Content-Length = 676 [11:33:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99352", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:33:45]execute_script... [11:33: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)99352", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:33:45]POST & json_proto [11:33:45]process_json_proto [11:33:45]json parsed OK: [11:33:45]protocol is kg_v1.0 [11:33:45]action value=close_receipt [11:33:45]process_action close_receipt [11:33:45]cmd_close_receipt [11:33:45]MH_GetDate [11:33:45]Write to MH i2c: F0 00 00 2C 4A 65 [11:33:45]Write i2c OK [11:33:45]MH_I2C_Read... [11:33:45]Read from MH i2c: F0 [11:33:45]MH_I2C_Read... [11:33:45]Read from MH i2c: F0 09 00 [11:33:45]MH_I2C_Read... [11:33:45]Read from MH i2c: F0 09 00 2C 4A 00 1E 25 1E 67 50 D1 6C 64 27 [11:33:45]GetLastDocTimeStamp 1730028583 [11:33:45]current date 1730028830 [11:33:45]FM_GetShiftState [11:33:45]SAM_PROTO_GetShiftState [11:33:45]wFMCommunicate request_size=4 [11:33:45]MH_SAM_APDU [11:33:45]CAPDU: 80 13 01 00 [11:33:45]Write to MH i2c: E2 08 00 2D 4A 80 13 01 00 00 00 00 00 F4 [11:33:45]Write i2c OK [11:33:45]MH_I2C_Read... [11:33:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:45]Read from MH i2c: E2 [11:33:45]MH_I2C_Read... [11:33:45]Read from MH i2c: E2 0E 00 [11:33:45]MH_I2C_Read... [11:33:45]Read from MH i2c: E2 0E 00 2D 4A 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 C1 [11:33:45]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [11:33:45]wFMCommunicate OK [11:33:45]SAM_PROTO_GetShiftState done [11:33:45]FM_GetShiftState done [11:33:45]opened in 1729989044 [11:33:45]opened+sec_in_day 1730075444 [11:33:45]quantity*price = 50041 [11:33:45]sum+1 = 50042 [11:33:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 89 27.10.2024 11:33 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156538 ФПД: 177528732191772 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T113350&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156538&fm=177528732191772&tin=02508201610067®Number=0000000000091693&sum=50000 [11:33:46]StoreToDocumentArchive [11:33:46]shift 537 fd 156538 [11:33:46]save to /storage/0537/doc_00156538 [11:33:46]save last doc name /storage/0537/doc_00156538 to /storage/kkm_last_doc_name [11:33:46]save OK [11:33:46]Clear old archive folders... [11:33:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:33:46]tlvbuf is 0179AF00 [11:33:46]SAM_PROTO_ClearQueue [11:33:46]wFMCommunicate request_size=4 [11:33:46]MH_SAM_APDU [11:33:46]CAPDU: 80 09 00 00 [11:33:46]Write to MH i2c: E2 08 00 3A 4A 80 09 00 00 00 00 00 00 F6 [11:33:46]Write i2c OK [11:33:46]MH_I2C_Read... [11:33:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:33:46]Read from MH i2c: E2 [11:33:46]MH_I2C_Read... [11:33:46]Read from MH i2c: E2 03 00 [11:33:46]MH_I2C_Read... [11:33:46]Read from MH i2c: E2 03 00 3A 4A 00 90 00 F8 [11:33:46]RAPDU: 90 00 [11:33:46]wFMCommunicate OK [11:33:46]SAM_PROTO_ClearQueue done [11:33:46]KKMCreateOFDPacket [11:33:46]OFDProtocolAddRootSTLVToBuf [11:33:46]FM_MakeSignedData [11:33:46]FM_MakeSignedData [11:33:46]SAM_PROTO_SignData [11:33:46]wFMCommunicate request_size=4 [11:33:46]MH_SAM_APDU [11:33:46]CAPDU: 80 0D 01 02 [11:33:46]Write to MH i2c: E2 08 00 3B 4A 80 0D 01 02 00 00 00 00 FE [11:33:46]Write i2c OK [11:33:46]MH_I2C_Read... [11:33:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:33:46]Read from MH i2c: E2 [11:33:46]MH_I2C_Read... [11:33:46]Read from MH i2c: E2 03 00 [11:33:46]MH_I2C_Read... [11:33:46]Read from MH i2c: E2 03 00 3B 4A 00 90 00 F9 [11:33:46]RAPDU: 90 00 [11:33:46]wFMCommunicate OK [11:33:46]wFMCommunicate request_size=255 [11:33:46]MH_SAM_APDU [11:33: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 1E 25 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 7A 63 02 00 35 04 06 00 A1 [11:33:46]Write to MH i2c: E2 02 01 3C 4A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 1E 25 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 7A 63 02 00 35 04 06 00 A1 00 00 4E [11:33:46]Write i2c OK [11:33:46]MH_I2C_Read... [11:33:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:46]Read from MH i2c: E2 [11:33:46]MH_I2C_Read... [11:33:46]Read from MH i2c: E2 03 00 [11:33:46]MH_I2C_Read... [11:33:46]Read from MH i2c: E2 03 00 3C 4A 00 90 00 FA [11:33:46]RAPDU: 90 00 [11:33:46]wFMCommunicate OK [11:33:46]wFMCommunicate request_size=10 [11:33:46]MH_SAM_APDU [11:33:46]CAPDU: 80 0D 02 02 05 76 21 05 0C 1C [11:33:46]Write to MH i2c: E2 0D 00 3D 4A 80 0D 02 02 05 00 76 21 05 0C 1C 00 00 CF [11:33:46]Write i2c OK [11:33:46]MH_I2C_Read... [11:33:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:46]Read from MH i2c: E2 [11:33:46]MH_I2C_Read... [11:33:46]Read from MH i2c: E2 03 00 [11:33:46]MH_I2C_Read... [11:33:46]Read from MH i2c: E2 03 00 3D 4A 00 90 00 FB [11:33:46]RAPDU: 90 00 [11:33:46]wFMCommunicate OK [11:33:46]wFMCommunicate request_size=4 [11:33:46]MH_SAM_APDU [11:33:46]CAPDU: 80 0D 03 02 [11:33:46]Write to MH i2c: E2 08 00 3E 4A 80 0D 03 02 00 00 00 00 03 [11:33:46]Write i2c OK [11:33:46]MH_I2C_Read... [11:33:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:33:46]Read from MH i2c: E2 [11:33:46]MH_I2C_Read... [11:33:46]Read from MH i2c: E2 0B 00 [11:33:46]MH_I2C_Read... [11:33:46]Read from MH i2c: E2 0B 00 3E 4A 00 D4 93 EF BD 7F 74 32 66 90 00 A2 [11:33:46]RAPDU: D4 93 EF BD 7F 74 32 66 90 00 [11:33:46]wFMCommunicate OK [11:33:46]SAM_PROTO_SignData done [11:33:46]FM_MakeSignedData done [11:33:46]CreateOFDProtocolMessage [11:33:46]wFMCommunicate request_size=4 [11:33:46]MH_SAM_APDU [11:33:46]CAPDU: 80 11 00 00 [11:33:46]Write to MH i2c: E2 08 00 3F 4A 80 11 00 00 00 00 00 00 03 [11:33:46]Write i2c OK [11:33:46]MH_I2C_Read... [11:33:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:46]Read from MH i2c: E2 [11:33:46]MH_I2C_Read... [11:33:46]Read from MH i2c: E2 17 00 [11:33:46]MH_I2C_Read... [11:33:46]Read from MH i2c: E2 17 00 3F 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 58 [11:33:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:33:46]wFMCommunicate OK [11:33:46]CreateOFDProtocolMessage done [11:33:46]OFDSenderStorePacket 156538 [11:33:46]StoreOFDPacket docnum=156538 [11:33:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 EE 67 07 01 3F 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 1E 25 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 7A 63 02 00 35 04 06 00 A1 76 21 05 0C 1C D4 93 EF BD 7F 74 32 66 [11:33:46]CheckFolder [11:33:46]dirname=/storage/ofd_packets [11:33:46]CheckFolder done [11:33:46]ProducePacketName [11:33:46]name=ofd_packets/00156538 [11:33:46]NVStorageSaveData ofd_packets/00156538 [11:33:46]File name is /storage/ofd_packets/00156538 [11:33:46]Write 301 bytes [11:33:46]NVStorageSaveData done [11:33:46]OFDSenderStorePacket done [11:33:46]KKMCreateOFDPacket done [11:33:46]NVStorageSaveData kkm_last_timestamp [11:33:46]File name is /storage/kkm_last_timestamp [11:33:46]Write 4 bytes [11:33:46]NVStorageSaveData done [11:33:46]OFD Sender: Processing packet 156538 [packets to send 31, broken 30] [11:33:46]ProducePacketName [11:33:46]name=ofd_packets/00156538 [11:33:46]OFD Sender: To server: pG, [11:33:46]CommunicateWithHost lk.salyk.kg:30040 [11:33:46]ConnectInit lk.salyk.kg [11:33:46]ExternCall_PrintAddStr [11:33:46]wPrintStart [11:33:46]Write to MH i2c: 01 00 00 40 4A 8A [11:33:46]Write i2c OK [11:33:46]MH_I2C_Read... [11:33:46]Read from MH i2c: 01 [11:33:46]MH_I2C_Read... [11:33:46]Read from MH i2c: 01 07 00 [11:33:46]MH_I2C_Read... [11:33:46]Read from MH i2c: 01 07 00 40 4A 00 00 00 00 00 FF 0F 9F [11:33:46]RasterBufferAndPrint [11:33:46]line Счет N : (1)99352 [11:33:46]line ИНН: 02508201610067 [11:33:46]line Контрольно-Кассовый Чек [11:33:46]line ПРОДАЖА [11:33:46]line ТРК (МРК, ГНК) : 11 [11:33:46]line Товар: 2710124130 [11:33:46]line Аи-92-К-5 [11:33:46]line 7.480 * 66.90 [11:33:46]line = 500.41 [11:33:46]line НДС 12% НСП 1% [11:33:46]line > о реализуемом товаре [11:33:46]line ОКРУГЛЕНИЕ: -0.41 [11:33:46]line ИТОГО: 500.00 [11:33:46]line Внесено: 500.00 [11:33:46]line СДАЧА: 0.00 [11:33:46]line НСП 1% : 4.43 [11:33:46]line НДС 12% : 53.14 [11:33:46]line Наличными: 500.00 [11:33:46]line Безнал.: 0.00 [11:33:46]line Место: АЗС № 143 "Партнер Нефть" [11:33:46]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [11:33:46]line СНО: Общий режим [11:33:46]line Чек 89 27.10.2024 11:33 [11:33:46]line Смена: 537 ФФД: 1.0 [11:33:46]line ЗНМ: 0300000096 [11:33:46]line РНМ: 0000000000091693 [11:33:46]line Версия ККМ: 001 [11:33:46]line ФМ: 0000000000871792 [11:33:46]line ФД: 156538 [11:33:46]line ФПД: 177528732191772 [11:33:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T113350&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156538&fm=177528732191772&tin=02508201610067®Number=0000000000091693&sum=50000 [11:33:47]Connected sock=11 [11:33:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 EE 67 07 01 3F 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 1E 25 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 7A 63 02 00 35 04 06 00 A1 76 21 05 0C 1C D4 93 EF BD 7F 74 32 66 [11:33:47]written 0, free lines is 4095 [11:33:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 6F B5 47 00 9C 59 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 7A 63 02 00 F4 03 04 00 8E CA 1D 67 B6 04 01 00 00 2B 78 6E 31 F8 7D 75 EB [11:33:47]CommunicateWithHost err = 0 [11:33:47]CheckOFDResponse [11:33:47]1017 (14) - 77093643461234 [11:33:47]1041 (16) - 0000000000871792 [11:33:47]1040 (4) - 156538 [11:33:47]1012 (4) - 27.10.2024 05:07 [11:33:47]1206 (1) - 0 [11:33:47]OFD Sender: Remove packet 156538 [11:33:47]ProducePacketName [11:33:47]name=ofd_packets/00156538 [11:33:47]NVStorageDeleteData [11:33:47]Write to MH i2c: 01 00 00 6B 4A B5 [11:33:47]Write i2c OK [11:33:47]MH_I2C_Read... [11:33:47]Read from MH i2c: 01 [11:33:47]MH_I2C_Read... [11:33:47]Read from MH i2c: 01 07 00 [11:33:47]MH_I2C_Read... [11:33:47]Read from MH i2c: 01 07 00 6B 4A 00 00 00 00 00 D7 0C 9F [11:33:47]RasterBufferAndPrint [11:33:47]line [11:33:47]line [11:33:47]line [11:33:47]line [11:33:47]line [11:33:47]written 0, free lines is 3294 [11:33:47]process_action close_receipt done [11:33:47]requested_data is exist [11:33:47]produce_requested_data [11:33:47]requested_item fm.sn is exist - process it [11:33:47]wFMCommunicate request_size=4 [11:33:47]MH_SAM_APDU [11:33:47]CAPDU: 80 11 00 00 [11:33:47]Write to MH i2c: E2 08 00 72 4A 80 11 00 00 00 00 00 00 36 [11:33:47]Write i2c OK [11:33:47]MH_I2C_Read... [11:33:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:47]Read from MH i2c: E2 [11:33:47]MH_I2C_Read... [11:33:47]Read from MH i2c: E2 17 00 [11:33:47]MH_I2C_Read... [11:33:47]Read from MH i2c: E2 17 00 72 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 8B [11:33:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:33:47]wFMCommunicate OK [11:33:47]requested_item fd.num is exist - process it [11:33:47]SAM_PROTO_GetFieldsCounters [11:33:47]wFMCommunicate request_size=4 [11:33:47]MH_SAM_APDU [11:33:47]CAPDU: 80 13 00 00 [11:33:47]Write to MH i2c: E2 08 00 73 4A 80 13 00 00 00 00 00 00 39 [11:33:47]Write i2c OK [11:33:47]MH_I2C_Read... [11:33:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:33:47]Read from MH i2c: E2 [11:33:47]MH_I2C_Read... [11:33:47]Read from MH i2c: E2 62 00 [11:33:47]MH_I2C_Read... [11:33:47]Read from MH i2c: E2 62 00 73 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 7A 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 64 [11:33:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 7A 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:33:47]wFMCommunicate OK [11:33:47]SAM_PROTO_GetFieldsCounters done [11:33:47]requested_item shift.num is exist - process it [11:33:47]requested_item shift.opened is exist - process it [11:33:47]req_shift_opened [11:33:47]FM_GetShiftState [11:33:47]SAM_PROTO_GetShiftState [11:33:47]wFMCommunicate request_size=4 [11:33:47]MH_SAM_APDU [11:33:47]CAPDU: 80 13 01 00 [11:33:47]Write to MH i2c: E2 08 00 74 4A 80 13 01 00 00 00 00 00 3B [11:33:47]Write i2c OK [11:33:47]MH_I2C_Read... [11:33:47]OFD Sender: No OFD packet to send [11:33:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:48]Read from MH i2c: E2 [11:33:48]MH_I2C_Read... [11:33:48]Read from MH i2c: E2 0E 00 [11:33:48]MH_I2C_Read... [11:33:48]Read from MH i2c: E2 0E 00 74 4A 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 08 [11:33:48]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [11:33:48]wFMCommunicate OK [11:33:48]SAM_PROTO_GetShiftState done [11:33:48]FM_GetShiftState done [11:33:48]req_shift_opened done [11:33:48]requested_item shift.open_date is exist - process it [11:33:48]req_shift_open_date [11:33:48]req_shift_open_date done [11:33:48]produce_requested_data done [11:33:48]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156538,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [11:33:48]process_action_free close_receipt [11:33:48]json_value_free [11:33:48]json_value_free done [11:33:48]process_json_proto returns [11:33:48]Send response to host [11:33:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156538,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [11:33:48]free response buf [11:33:48]execute_script done [11:33:48]execute_script returns [11:33:48]free content buf [11:33:48]Sock 9.Close socket [11:33:48]Sock 9.Thread stoped [11:33:52]OFD Sender: No OFD packet to send [11:33:57]OFD Sender: No OFD packet to send [11:34:03]OFD Sender: No OFD packet to send [11:34:08]OFD Sender: No OFD packet to send [11:34:13]OFD Sender: No OFD packet to send [11:34:18]OFD Sender: No OFD packet to send [11:34:23]OFD Sender: No OFD packet to send [11:34:28]OFD Sender: No OFD packet to send [11:34:33]OFD Sender: No OFD packet to send [11:34:38]OFD Sender: No OFD packet to send [11:34:43]OFD Sender: No OFD packet to send [11:34:48]OFD Sender: No OFD packet to send [11:34:53]OFD Sender: No OFD packet to send [11:34:58]OFD Sender: No OFD packet to send [11:35:03]OFD Sender: No OFD packet to send [11:35:08]OFD Sender: No OFD packet to send [11:35:13]OFD Sender: No OFD packet to send [11:35:18]OFD Sender: No OFD packet to send [11:35:23]OFD Sender: No OFD packet to send [11:35:28]OFD Sender: No OFD packet to send [11:35:33]OFD Sender: No OFD packet to send [11:35:38]OFD Sender: No OFD packet to send [11:35:43]OFD Sender: No OFD packet to send [11:35:48]OFD Sender: No OFD packet to send [11:35:53]OFD Sender: No OFD packet to send [11:35:58]OFD Sender: No OFD packet to send [11:36:03]OFD Sender: No OFD packet to send [11:36:08]OFD Sender: No OFD packet to send [11:36:13]OFD Sender: No OFD packet to send [11:36:18]OFD Sender: No OFD packet to send [11:36:23]OFD Sender: No OFD packet to send [11:36:28]OFD Sender: No OFD packet to send [11:36:33]OFD Sender: No OFD packet to send [11:36:38]accept exits with 8 [11:36:38]New connection [11:36:38]New thread 3066977636 created [11:36:38]Thread 3066834276 joined [11:36:38]Waiting for new connection... [11:36:38] Sock 8.Parse request [11:36:38]Sock 8.Check first char [11:36:38]Sock 8.First char is OK [11:36:38]request: POST /json_proto HTTP/1.0 [11:36:38]Method: POST [11:36:38]URL: /json_proto [11:36:38]Method is POST - this is cgi request [11:36:38]url: /json_proto [11:36:38]query_string will be loaded in cgi processing [11:36:38]execute_cgi json_proto POST (null) [11:36:38]execute_cgi path=json_proto method=POST [11:36:38]POST find Content-Length [11:36:38]Host: 172.17.63.3:8080 [11:36:38]Content-Length: 681 [11:36:38]Content-Type: application/json [11:36:38] [11:36:38]POST finish read [11:36:38]Found Content-Length = 681 [11:36:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99353", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:36:38]execute_script... [11: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)99353", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:36:38]POST & json_proto [11:36:38]process_json_proto [11:36:38]json parsed OK: [11:36:38]protocol is kg_v1.0 [11:36:38]action value=close_receipt [11:36:38]process_action close_receipt [11:36:38]cmd_close_receipt [11:36:38]MH_GetDate [11:36:38]Write to MH i2c: F0 00 00 75 4A AE [11:36:38]Write i2c OK [11:36:38]MH_I2C_Read... [11:36:38]Read from MH i2c: F0 [11:36:38]MH_I2C_Read... [11:36:38]Read from MH i2c: F0 09 00 [11:36:38]MH_I2C_Read... [11:36:38]Read from MH i2c: F0 09 00 75 4A 00 CB 25 1E 67 50 D1 6C 64 1D [11:36:38]GetLastDocTimeStamp 1730028830 [11:36:38]current date 1730029003 [11:36:38]FM_GetShiftState [11:36:38]SAM_PROTO_GetShiftState [11:36:38]wFMCommunicate request_size=4 [11:36:38]MH_SAM_APDU [11:36:38]CAPDU: 80 13 01 00 [11:36:38]Write to MH i2c: E2 08 00 76 4A 80 13 01 00 00 00 00 00 3D [11:36:38]Write i2c OK [11:36:38]MH_I2C_Read... [11:36:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:36:38]Read from MH i2c: E2 [11:36:38]MH_I2C_Read... [11:36:38]Read from MH i2c: E2 0E 00 [11:36:38]MH_I2C_Read... [11:36:38]Read from MH i2c: E2 0E 00 76 4A 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 0A [11:36:38]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [11:36:38]wFMCommunicate OK [11:36:38]SAM_PROTO_GetShiftState done [11:36:38]FM_GetShiftState done [11:36:38]opened in 1729989044 [11:36:38]opened+sec_in_day 1730075444 [11:36:38]quantity*price = 100015 [11:36:38]sum+1 = 100017 [11:36:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 90 27.10.2024 11:36 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156539 ФПД: 221252975081945 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T113643&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156539&fm=221252975081945&tin=02508201610067®Number=0000000000091693&sum=100000 [11:36:39]StoreToDocumentArchive [11:36:39]shift 537 fd 156539 [11:36:39]save to /storage/0537/doc_00156539 [11:36:39]save last doc name /storage/0537/doc_00156539 to /storage/kkm_last_doc_name [11:36:39]save OK [11:36:39]Clear old archive folders... [11:36:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:36:39]tlvbuf is 01712440 [11:36:39]SAM_PROTO_ClearQueue [11:36:39]wFMCommunicate request_size=4 [11:36:39]MH_SAM_APDU [11:36:39]CAPDU: 80 09 00 00 [11:36:39]Write to MH i2c: E2 08 00 83 4A 80 09 00 00 00 00 00 00 3F [11:36:39]Write i2c OK [11:36:39]MH_I2C_Read... [11:36:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:36:39]Read from MH i2c: E2 [11:36:39]MH_I2C_Read... [11:36:39]Read from MH i2c: E2 03 00 [11:36:39]MH_I2C_Read... [11:36:39]Read from MH i2c: E2 03 00 83 4A 00 90 00 41 [11:36:39]RAPDU: 90 00 [11:36:39]wFMCommunicate OK [11:36:39]SAM_PROTO_ClearQueue done [11:36:39]KKMCreateOFDPacket [11:36:39]OFDProtocolAddRootSTLVToBuf [11:36:39]FM_MakeSignedData [11:36:39]FM_MakeSignedData [11:36:39]SAM_PROTO_SignData [11:36:39]wFMCommunicate request_size=4 [11:36:39]MH_SAM_APDU [11:36:39]CAPDU: 80 0D 01 02 [11:36:39]Write to MH i2c: E2 08 00 84 4A 80 0D 01 02 00 00 00 00 47 [11:36:39]Write i2c OK [11:36:39]MH_I2C_Read... [11:36:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:36:39]Read from MH i2c: E2 [11:36:39]MH_I2C_Read... [11:36:39]Read from MH i2c: E2 03 00 [11:36:39]MH_I2C_Read... [11:36:39]Read from MH i2c: E2 03 00 84 4A 00 90 00 42 [11:36:39]RAPDU: 90 00 [11:36:39]wFMCommunicate OK [11:36:39]wFMCommunicate request_size=255 [11:36:39]MH_SAM_APDU [11:36: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 CB 25 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 7B 63 02 00 35 04 06 00 C9 [11:36:39]Write to MH i2c: E2 02 01 85 4A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 CB 25 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 7B 63 02 00 35 04 06 00 C9 00 00 68 [11:36:39]Write i2c OK [11:36:39]MH_I2C_Read... [11:36:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:36:39]Read from MH i2c: E2 [11:36:39]MH_I2C_Read... [11:36:39]Read from MH i2c: E2 03 00 [11:36:39]MH_I2C_Read... [11:36:39]Read from MH i2c: E2 03 00 85 4A 00 90 00 43 [11:36:39]RAPDU: 90 00 [11:36:39]wFMCommunicate OK [11:36:39]wFMCommunicate request_size=10 [11:36:39]MH_SAM_APDU [11:36:39]CAPDU: 80 0D 02 02 05 3A 78 FC 39 D9 [11:36:39]Write to MH i2c: E2 0D 00 86 4A 80 0D 02 02 05 00 3A 78 FC 39 D9 00 00 14 [11:36:39]Write i2c OK [11:36:39]MH_I2C_Read... [11:36:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:36:39]Read from MH i2c: E2 [11:36:39]MH_I2C_Read... [11:36:39]Read from MH i2c: E2 03 00 [11:36:39]MH_I2C_Read... [11:36:39]Read from MH i2c: E2 03 00 86 4A 00 90 00 44 [11:36:39]RAPDU: 90 00 [11:36:39]wFMCommunicate OK [11:36:39]wFMCommunicate request_size=4 [11:36:39]MH_SAM_APDU [11:36:39]CAPDU: 80 0D 03 02 [11:36:39]Write to MH i2c: E2 08 00 87 4A 80 0D 03 02 00 00 00 00 4C [11:36:39]Write i2c OK [11:36:39]MH_I2C_Read... [11:36:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:36:39]Read from MH i2c: E2 [11:36:39]MH_I2C_Read... [11:36:39]Read from MH i2c: E2 0B 00 [11:36:39]MH_I2C_Read... [11:36:39]Read from MH i2c: E2 0B 00 87 4A 00 93 7B 18 32 65 C7 65 9F 90 00 D5 [11:36:39]RAPDU: 93 7B 18 32 65 C7 65 9F 90 00 [11:36:39]wFMCommunicate OK [11:36:39]SAM_PROTO_SignData done [11:36:39]FM_MakeSignedData done [11:36:39]CreateOFDProtocolMessage [11:36:39]wFMCommunicate request_size=4 [11:36:39]MH_SAM_APDU [11:36:39]CAPDU: 80 11 00 00 [11:36:39]Write to MH i2c: E2 08 00 88 4A 80 11 00 00 00 00 00 00 4C [11:36:39]Write i2c OK [11:36:39]MH_I2C_Read... [11:36:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:36:39]Read from MH i2c: E2 [11:36:39]MH_I2C_Read... [11:36:39]Read from MH i2c: E2 17 00 [11:36:39]MH_I2C_Read... [11:36:39]Read from MH i2c: E2 17 00 88 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 A1 [11:36:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:36:39]wFMCommunicate OK [11:36:39]CreateOFDProtocolMessage done [11:36:39]OFDSenderStorePacket 156539 [11:36:39]StoreOFDPacket docnum=156539 [11:36:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 92 5C 07 01 C7 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 CB 25 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 7B 63 02 00 35 04 06 00 C9 3A 78 FC 39 D9 93 7B 18 32 65 C7 65 9F [11:36:39]CheckFolder [11:36:39]dirname=/storage/ofd_packets [11:36:39]CheckFolder done [11:36:39]ProducePacketName [11:36:39]name=ofd_packets/00156539 [11:36:39]NVStorageSaveData ofd_packets/00156539 [11:36:39]File name is /storage/ofd_packets/00156539 [11:36:39]Write 301 bytes [11:36:39]NVStorageSaveData done [11:36:39]OFDSenderStorePacket done [11:36:39]KKMCreateOFDPacket done [11:36:39]NVStorageSaveData kkm_last_timestamp [11:36:39]File name is /storage/kkm_last_timestamp [11:36:39]Write 4 bytes [11:36:39]NVStorageSaveData done [11:36:39]ExternCall_PrintAddStr [11:36:39]wPrintStart [11:36:39]Write to MH i2c: 01 00 00 89 4A D3 [11:36:39]Write i2c OK [11:36:39]MH_I2C_Read... [11:36:39]Read from MH i2c: 01 [11:36:39]MH_I2C_Read... [11:36:39]Read from MH i2c: 01 07 00 [11:36:39]MH_I2C_Read... [11:36:39]Read from MH i2c: 01 07 00 89 4A 00 00 00 00 00 FF 0F E8 [11:36:39]RasterBufferAndPrint [11:36:39]line Счет N : (1)99353 [11:36:39]line ИНН: 02508201610067 [11:36:39]line Контрольно-Кассовый Чек [11:36:39]line ПРОДАЖА [11:36:39]line ТРК (МРК, ГНК) : 21 [11:36:39]line Товар: 2710124130 [11:36:39]line Аи-92-К-5 [11:36:39]line 14.950 * 66.90 [11:36:39]line = 1000.16 [11:36:39]line НДС 12% НСП 1% [11:36:39]line > о реализуемом товаре [11:36:39]line ОКРУГЛЕНИЕ: -0.16 [11:36:39]line ИТОГО: 1000.00 [11:36:39]line Внесено: 1000.00 [11:36:39]line СДАЧА: 0.00 [11:36:39]line НСП 1% : 8.85 [11:36:39]line НДС 12% : 106.21 [11:36:39]line Наличными: 1000.00 [11:36:39]line Безнал.: 0.00 [11:36:39]line Место: АЗС № 143 "Партнер Нефть" [11:36:39]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [11:36:39]line СНО: Общий режим [11:36:39]line Чек 90 27.10.2024 11:36 [11:36:39]line Смена: 537 ФФД: 1.0 [11:36:39]line ЗНМ: 0300000096 [11:36:39]line РНМ: 0000000000091693 [11:36:39]line Версия ККМ: 001 [11:36:39]line ФМ: 0000000000871792 [11:36:39]line ФД: 156539 [11:36:39]line ФПД: 221252975081945 [11:36:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T113643&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156539&fm=221252975081945&tin=02508201610067®Number=0000000000091693&sum=100000 [11:36:40]OFD Sender: Processing packet 156539 [packets to send 31, broken 30] [11:36:40]ProducePacketName [11:36:40]name=ofd_packets/00156539 [11:36:40]OFD Sender: To server: pG, [11:36:40]CommunicateWithHost lk.salyk.kg:30040 [11:36:40]ConnectInit lk.salyk.kg [11:36:40]written 0, free lines is 4095 [11:36:40]Connected sock=10 [11: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 31 37 39 32 0F 01 00 00 92 5C 07 01 C7 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 CB 25 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 7B 63 02 00 35 04 06 00 C9 3A 78 FC 39 D9 93 7B 18 32 65 C7 65 9F [11:36:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 5A 6B 47 00 06 12 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 7B 63 02 00 F4 03 04 00 3B CB 1D 67 B6 04 01 00 00 35 59 59 D2 3B 05 26 75 [11:36:40]CommunicateWithHost err = 0 [11:36:40]CheckOFDResponse [11:36:40]1017 (14) - 77093643461234 [11:36:40]1041 (16) - 0000000000871792 [11:36:40]1040 (4) - 156539 [11:36:40]1012 (4) - 27.10.2024 05:10 [11:36:40]1206 (1) - 0 [11:36:40]OFD Sender: Remove packet 156539 [11:36:40]ProducePacketName [11:36:40]name=ofd_packets/00156539 [11:36:40]NVStorageDeleteData [11:36:40]Write to MH i2c: 01 00 00 B4 4A FE [11:36:40]Write i2c OK [11:36:40]MH_I2C_Read... [11:36:40]Read from MH i2c: 01 [11:36:40]MH_I2C_Read... [11:36:40]Read from MH i2c: 01 07 00 [11:36:40]MH_I2C_Read... [11:36:40]Read from MH i2c: 01 07 00 B4 4A 00 00 00 00 00 DD 0C EE [11:36:40]RasterBufferAndPrint [11:36:40]line [11:36:40]line [11:36:40]line [11:36:40]line [11:36:40]line [11:36:40]written 0, free lines is 3299 [11:36:40]process_action close_receipt done [11:36:40]requested_data is exist [11:36:40]produce_requested_data [11:36:40]requested_item fm.sn is exist - process it [11:36:40]wFMCommunicate request_size=4 [11:36:40]MH_SAM_APDU [11:36:40]CAPDU: 80 11 00 00 [11:36:40]Write to MH i2c: E2 08 00 BB 4A 80 11 00 00 00 00 00 00 7F [11:36:40]Write i2c OK [11:36:40]MH_I2C_Read... [11:36:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:36:40]Read from MH i2c: E2 [11:36:40]MH_I2C_Read... [11:36:40]Read from MH i2c: E2 17 00 [11:36:40]MH_I2C_Read... [11:36:40]Read from MH i2c: E2 17 00 BB 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 D4 [11:36:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:36:40]wFMCommunicate OK [11:36:40]requested_item fd.num is exist - process it [11:36:40]SAM_PROTO_GetFieldsCounters [11:36:40]wFMCommunicate request_size=4 [11:36:40]MH_SAM_APDU [11:36:40]CAPDU: 80 13 00 00 [11:36:40]Write to MH i2c: E2 08 00 BC 4A 80 13 00 00 00 00 00 00 82 [11:36:40]Write i2c OK [11:36:40]MH_I2C_Read... [11:36:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:36:40]Read from MH i2c: E2 [11:36:40]MH_I2C_Read... [11:36:40]Read from MH i2c: E2 62 00 [11:36:40]MH_I2C_Read... [11:36:40]Read from MH i2c: E2 62 00 BC 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 7B 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 B1 [11:36:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 7B 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:36:40]wFMCommunicate OK [11:36:40]SAM_PROTO_GetFieldsCounters done [11:36:40]requested_item shift.num is exist - process it [11:36:40]requested_item shift.opened is exist - process it [11:36:40]req_shift_opened [11:36:40]FM_GetShiftState [11:36:40]SAM_PROTO_GetShiftState [11:36:40]wFMCommunicate request_size=4 [11:36:40]MH_SAM_APDU [11:36:40]CAPDU: 80 13 01 00 [11:36:40]Write to MH i2c: E2 08 00 BD 4A 80 13 01 00 00 00 00 00 84 [11:36:40]Write i2c OK [11:36:40]MH_I2C_Read... [11:36:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:36:40]Read from MH i2c: E2 [11:36:40]MH_I2C_Read... [11:36:40]Read from MH i2c: E2 0E 00 [11:36:40]MH_I2C_Read... [11:36:40]Read from MH i2c: E2 0E 00 BD 4A 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 51 [11:36:40]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [11:36:40]wFMCommunicate OK [11:36:40]SAM_PROTO_GetShiftState done [11:36:40]FM_GetShiftState done [11:36:40]req_shift_opened done [11:36:40]requested_item shift.open_date is exist - process it [11:36:40]req_shift_open_date [11:36:40]req_shift_open_date done [11:36:40]produce_requested_data done [11:36:40]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156539,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [11:36:40]process_action_free close_receipt [11:36:40]json_value_free [11:36:40]json_value_free done [11:36:40]process_json_proto returns [11:36:40]Send response to host [11:36:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156539,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [11:36:40]free response buf [11:36:40]execute_script done [11:36:40]execute_script returns [11:36:40]free content buf [11:36:40]Sock 8.Close socket [11:36:40]Sock 8.Thread stoped [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:56]OFD Sender: No OFD packet to send [11:38:01]OFD Sender: No OFD packet to send [11:38:06]OFD Sender: No OFD packet to send [11:38:11]OFD Sender: No OFD packet to send [11:38:16]OFD Sender: No OFD packet to send [11:38:21]OFD Sender: No OFD packet to send [11:38:26]OFD Sender: No OFD packet to send [11:38:31]OFD Sender: No OFD packet to send [11:38:36]OFD Sender: No OFD packet to send [11:38:41]OFD Sender: No OFD packet to send [11:38:42]accept exits with 9 [11:38:42]New connection [11:38:42]New thread 3066834276 created [11:38:42]Thread 3066977636 joined [11:38:42]Waiting for new connection... [11:38:42] Sock 9.Parse request [11:38:42]Sock 9.Check first char [11:38:42]Sock 9.First char is OK [11:38:42]request: POST /json_proto HTTP/1.0 [11:38:42]Method: POST [11:38:42]URL: /json_proto [11:38:42]Method is POST - this is cgi request [11:38:42]url: /json_proto [11:38:42]query_string will be loaded in cgi processing [11:38:42]execute_cgi json_proto POST (null) [11:38:42]execute_cgi path=json_proto method=POST [11:38:42]POST find Content-Length [11:38:42]Host: 172.17.63.3:8080 [11:38:42]Content-Length: 799 [11:38:42]Content-Type: application/json [11:38:42] [11:38:42]POST finish read [11:38:42]Found Content-Length = 799 [11:38:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99354", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4564804", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:38:42]execute_script... [11:38: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)99354", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4564804", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:38:42]POST & json_proto [11:38:42]process_json_proto [11:38:42]json parsed OK: [11:38:42]protocol is kg_v1.0 [11:38:42]action value=close_receipt [11:38:42]process_action close_receipt [11:38:42]cmd_close_receipt [11:38:42]MH_GetDate [11:38:42]Write to MH i2c: F0 00 00 BE 4A F7 [11:38:42]Write i2c OK [11:38:42]MH_I2C_Read... [11:38:42]Read from MH i2c: F0 [11:38:42]MH_I2C_Read... [11:38:42]Read from MH i2c: F0 09 00 [11:38:42]MH_I2C_Read... [11:38:42]Read from MH i2c: F0 09 00 BE 4A 00 48 26 1E 67 50 D1 6C 64 E4 [11:38:42]GetLastDocTimeStamp 1730029003 [11:38:42]current date 1730029128 [11:38:42]FM_GetShiftState [11:38:42]SAM_PROTO_GetShiftState [11:38:42]wFMCommunicate request_size=4 [11:38:42]MH_SAM_APDU [11:38:42]CAPDU: 80 13 01 00 [11:38:42]Write to MH i2c: E2 08 00 BF 4A 80 13 01 00 00 00 00 00 86 [11:38:42]Write i2c OK [11:38:42]MH_I2C_Read... [11:38:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:42]Read from MH i2c: E2 [11:38:42]MH_I2C_Read... [11:38:42]Read from MH i2c: E2 0E 00 [11:38:42]MH_I2C_Read... [11:38:42]Read from MH i2c: E2 0E 00 BF 4A 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 53 [11:38:42]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [11:38:42]wFMCommunicate OK [11:38:42]SAM_PROTO_GetShiftState done [11:38:42]FM_GetShiftState done [11:38:42]opened in 1729989044 [11:38:42]opened+sec_in_day 1730075444 [11:38:42]quantity*price = 0 [11:38:42]sum+1 = 1 [11:38:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 91 27.10.2024 11:38 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Талоны: Топливные Талоны 4564804 ФМ: 0000000000871792 ФД: 156540 ФПД: 278277120837731 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T113848&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156540&fm=278277120837731&tin=02508201610067®Number=0000000000091693&sum=0 [11:38:43]StoreToDocumentArchive [11:38:43]shift 537 fd 156540 [11:38:43]save to /storage/0537/doc_00156540 [11:38:43]save last doc name /storage/0537/doc_00156540 to /storage/kkm_last_doc_name [11:38:43]save OK [11:38:43]Clear old archive folders... [11:38:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:38:43]tlvbuf is 016E9DD0 [11:38:43]SAM_PROTO_ClearQueue [11:38:43]wFMCommunicate request_size=4 [11:38:43]MH_SAM_APDU [11:38:43]CAPDU: 80 09 00 00 [11:38:43]Write to MH i2c: E2 08 00 CC 4A 80 09 00 00 00 00 00 00 88 [11:38:43]Write i2c OK [11:38:43]MH_I2C_Read... [11:38:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:38:44]Read from MH i2c: E2 [11:38:44]MH_I2C_Read... [11:38:44]Read from MH i2c: E2 03 00 [11:38:44]MH_I2C_Read... [11:38:44]Read from MH i2c: E2 03 00 CC 4A 00 90 00 8A [11:38:44]RAPDU: 90 00 [11:38:44]wFMCommunicate OK [11:38:44]SAM_PROTO_ClearQueue done [11:38:44]KKMCreateOFDPacket [11:38:44]OFDProtocolAddRootSTLVToBuf [11:38:44]FM_MakeSignedData [11:38:44]FM_MakeSignedData [11:38:44]SAM_PROTO_SignData [11:38:44]wFMCommunicate request_size=4 [11:38:44]MH_SAM_APDU [11:38:44]CAPDU: 80 0D 01 02 [11:38:44]Write to MH i2c: E2 08 00 CD 4A 80 0D 01 02 00 00 00 00 90 [11:38:44]Write i2c OK [11:38:44]MH_I2C_Read... [11:38:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:38:44]Read from MH i2c: E2 [11:38:44]MH_I2C_Read... [11:38:44]Read from MH i2c: E2 03 00 [11:38:44]MH_I2C_Read... [11:38:44]Read from MH i2c: E2 03 00 CD 4A 00 90 00 8B [11:38:44]RAPDU: 90 00 [11:38:44]wFMCommunicate OK [11:38:44]wFMCommunicate request_size=255 [11:38:44]MH_SAM_APDU [11:38: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 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 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 48 26 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 7C 63 02 00 35 04 06 00 FD [11:38:44]Write to MH i2c: E2 02 01 CE 4A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 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 48 26 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 7C 63 02 00 35 04 06 00 FD 00 00 1D [11:38:44]Write i2c OK [11:38:44]MH_I2C_Read... [11:38:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:44]Read from MH i2c: E2 [11:38:44]MH_I2C_Read... [11:38:44]Read from MH i2c: E2 03 00 [11:38:44]MH_I2C_Read... [11:38:44]Read from MH i2c: E2 03 00 CE 4A 00 90 00 8C [11:38:44]RAPDU: 90 00 [11:38:44]wFMCommunicate OK [11:38:44]wFMCommunicate request_size=10 [11:38:44]MH_SAM_APDU [11:38:44]CAPDU: 80 0D 02 02 05 17 70 EF C8 63 [11:38:44]Write to MH i2c: E2 0D 00 CF 4A 80 0D 02 02 05 00 17 70 EF C8 63 00 00 3E [11:38:44]Write i2c OK [11:38:44]MH_I2C_Read... [11:38:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:44]Read from MH i2c: E2 [11:38:44]MH_I2C_Read... [11:38:44]Read from MH i2c: E2 03 00 [11:38:44]MH_I2C_Read... [11:38:44]Read from MH i2c: E2 03 00 CF 4A 00 90 00 8D [11:38:44]RAPDU: 90 00 [11:38:44]wFMCommunicate OK [11:38:44]wFMCommunicate request_size=4 [11:38:44]MH_SAM_APDU [11:38:44]CAPDU: 80 0D 03 02 [11:38:44]Write to MH i2c: E2 08 00 D0 4A 80 0D 03 02 00 00 00 00 95 [11:38:44]Write i2c OK [11:38:44]MH_I2C_Read... [11:38:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:38:44]Read from MH i2c: E2 [11:38:44]MH_I2C_Read... [11:38:44]Read from MH i2c: E2 0B 00 [11:38:44]MH_I2C_Read... [11:38:44]Read from MH i2c: E2 0B 00 D0 4A 00 53 CE 45 B6 59 E5 9D 8B 90 00 18 [11:38:44]RAPDU: 53 CE 45 B6 59 E5 9D 8B 90 00 [11:38:44]wFMCommunicate OK [11:38:44]SAM_PROTO_SignData done [11:38:44]FM_MakeSignedData done [11:38:44]CreateOFDProtocolMessage [11:38:44]wFMCommunicate request_size=4 [11:38:44]MH_SAM_APDU [11:38:44]CAPDU: 80 11 00 00 [11:38:44]Write to MH i2c: E2 08 00 D1 4A 80 11 00 00 00 00 00 00 95 [11:38:44]Write i2c OK [11:38:44]MH_I2C_Read... [11:38:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:44]Read from MH i2c: E2 [11:38:44]MH_I2C_Read... [11:38:44]Read from MH i2c: E2 17 00 [11:38:44]MH_I2C_Read... [11:38:44]Read from MH i2c: E2 17 00 D1 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 EA [11:38:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:38:44]wFMCommunicate OK [11:38:44]CreateOFDProtocolMessage done [11:38:44]OFDSenderStorePacket 156540 [11:38:44]StoreOFDPacket docnum=156540 [11:38:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 21 E0 07 01 82 76 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 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 48 26 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 7C 63 02 00 35 04 06 00 FD 17 70 EF C8 63 53 CE 45 B6 59 E5 9D 8B [11:38:44]CheckFolder [11:38:44]dirname=/storage/ofd_packets [11:38:44]CheckFolder done [11:38:44]ProducePacketName [11:38:44]name=ofd_packets/00156540 [11:38:44]NVStorageSaveData ofd_packets/00156540 [11:38:44]File name is /storage/ofd_packets/00156540 [11:38:44]Write 301 bytes [11:38:44]NVStorageSaveData done [11:38:44]OFDSenderStorePacket done [11:38:44]KKMCreateOFDPacket done [11:38:44]NVStorageSaveData kkm_last_timestamp [11:38:44]File name is /storage/kkm_last_timestamp [11:38:44]Write 4 bytes [11:38:44]NVStorageSaveData done [11:38:44]ExternCall_PrintAddStr [11:38:44]wPrintStart [11:38:44]Write to MH i2c: 01 00 00 D2 4A 1C [11:38:44]Write i2c OK [11:38:44]MH_I2C_Read... [11:38:44]Read from MH i2c: 01 [11:38:44]MH_I2C_Read... [11:38:44]Read from MH i2c: 01 07 00 [11:38:44]MH_I2C_Read... [11:38:44]Read from MH i2c: 01 07 00 D2 4A 00 00 00 00 00 FF 0F 31 [11:38:44]RasterBufferAndPrint [11:38:44]line Счет N : (1)99354 [11:38:44]line ИНН: 02508201610067 [11:38:44]line Контрольно-Кассовый Чек [11:38:44]line ПРОДАЖА [11:38:44]line ТРК (МРК, ГНК) : 11 [11:38:44]line Товар: 2710124130 [11:38:44]line Аи-92-К-5 [11:38:44]line 10.000 * 0.00 [11:38:44]line = 0.00 [11:38:44]line НДС 12% НСП 1% [11:38:44]line > о реализуемом товаре [11:38:44]line ИТОГО: 0.00 [11:38:44]line НСП 1% : 0.00 [11:38:44]line НДС 12% : 0.00 [11:38:44]line Наличными: 0.00 [11:38:44]line Безнал.: 0.00 [11:38:44]line Место: АЗС № 143 "Партнер Нефть" [11:38:44]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [11:38:44]line СНО: Общий режим [11:38:44]line Чек 91 27.10.2024 11:38 [11:38:44]line Смена: 537 ФФД: 1.0 [11:38:44]line ЗНМ: 0300000096 [11:38:44]line РНМ: 0000000000091693 [11:38:44]line Версия ККМ: 001 [11:38:44]line Талоны: Топливные Талоны [11:38:44]line 4564804 [11:38:44]line ФМ: 0000000000871792 [11:38:44]line ФД: 156540 [11:38:44]line ФПД: 278277120837731 [11:38:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T113848&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156540&fm=278277120837731&tin=02508201610067®Number=0000000000091693&sum=0 [11:38:44]written 0, free lines is 4095 [11:38:44]OFD Sender: Processing packet 156540 [packets to send 31, broken 30] [11:38:44]ProducePacketName [11:38:44]name=ofd_packets/00156540 [11:38:44]OFD Sender: To server: pG, [11:38:44]CommunicateWithHost lk.salyk.kg:30040 [11:38:44]ConnectInit lk.salyk.kg [11:38:44]Connected sock=10 [11:38:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 21 E0 07 01 82 76 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 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 48 26 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 7C 63 02 00 35 04 06 00 FD 17 70 EF C8 63 53 CE 45 B6 59 E5 9D 8B [11:38:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 66 08 47 00 C6 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 31 37 39 32 10 04 04 00 7C 63 02 00 F4 03 04 00 B8 CB 1D 67 B6 04 01 00 00 E4 2E 43 2E 9D 0C AD AF [11:38:45]CommunicateWithHost err = 0 [11:38:45]CheckOFDResponse [11:38:45]1017 (14) - 77093643461234 [11:38:45]1041 (16) - 0000000000871792 [11:38:45]1040 (4) - 156540 [11:38:45]1012 (4) - 27.10.2024 05:12 [11:38:45]1206 (1) - 0 [11:38:45]OFD Sender: Remove packet 156540 [11:38:45]ProducePacketName [11:38:45]name=ofd_packets/00156540 [11:38:45]NVStorageDeleteData [11:38:45]Write to MH i2c: 01 00 00 FC 4A 46 [11:38:45]Write i2c OK [11:38:45]MH_I2C_Read... [11:38:45]Read from MH i2c: 01 [11:38:45]MH_I2C_Read... [11:38:45]Read from MH i2c: 01 07 00 [11:38:45]MH_I2C_Read... [11:38:45]Read from MH i2c: 01 07 00 FC 4A 00 00 00 00 00 DE 0C 37 [11:38:45]RasterBufferAndPrint [11:38:45]line [11:38:45]line [11:38:45]line [11:38:45]line [11:38:45]line [11:38:45]written 0, free lines is 3300 [11:38:45]process_action close_receipt done [11:38:45]requested_data is exist [11:38:45]produce_requested_data [11:38:45]requested_item fm.sn is exist - process it [11:38:45]wFMCommunicate request_size=4 [11:38:45]MH_SAM_APDU [11:38:45]CAPDU: 80 11 00 00 [11:38:45]Write to MH i2c: E2 08 00 03 4B 80 11 00 00 00 00 00 00 C8 [11:38:45]Write i2c OK [11:38:45]MH_I2C_Read... [11:38:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:45]Read from MH i2c: E2 [11:38:45]MH_I2C_Read... [11:38:45]Read from MH i2c: E2 17 00 [11:38:45]MH_I2C_Read... [11:38:45]Read from MH i2c: E2 17 00 03 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 1D [11:38:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:38:45]wFMCommunicate OK [11:38:45]requested_item fd.num is exist - process it [11:38:45]SAM_PROTO_GetFieldsCounters [11:38:45]wFMCommunicate request_size=4 [11:38:45]MH_SAM_APDU [11:38:45]CAPDU: 80 13 00 00 [11:38:45]Write to MH i2c: E2 08 00 04 4B 80 13 00 00 00 00 00 00 CB [11:38:45]Write i2c OK [11:38:45]MH_I2C_Read... [11:38:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:38:45]Read from MH i2c: E2 [11:38:45]MH_I2C_Read... [11:38:45]Read from MH i2c: E2 62 00 [11:38:45]MH_I2C_Read... [11:38:45]Read from MH i2c: E2 62 00 04 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 7C 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 FE [11:38:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 7C 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:38:45]wFMCommunicate OK [11:38:45]SAM_PROTO_GetFieldsCounters done [11:38:45]requested_item shift.num is exist - process it [11:38:45]requested_item shift.opened is exist - process it [11:38:45]req_shift_opened [11:38:45]FM_GetShiftState [11:38:45]SAM_PROTO_GetShiftState [11:38:45]wFMCommunicate request_size=4 [11:38:45]MH_SAM_APDU [11:38:45]CAPDU: 80 13 01 00 [11:38:45]Write to MH i2c: E2 08 00 05 4B 80 13 01 00 00 00 00 00 CD [11:38:45]Write i2c OK [11:38:45]MH_I2C_Read... [11:38:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:45]Read from MH i2c: E2 [11:38:45]MH_I2C_Read... [11:38:45]Read from MH i2c: E2 0E 00 [11:38:45]MH_I2C_Read... [11:38:45]Read from MH i2c: E2 0E 00 05 4B 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 9A [11:38:45]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [11:38:45]wFMCommunicate OK [11:38:45]SAM_PROTO_GetShiftState done [11:38:45]FM_GetShiftState done [11:38:45]req_shift_opened done [11:38:45]requested_item shift.open_date is exist - process it [11:38:45]req_shift_open_date [11:38:45]req_shift_open_date done [11:38:45]produce_requested_data done [11:38:45]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156540,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [11:38:45]process_action_free close_receipt [11:38:45]json_value_free [11:38:45]json_value_free done [11:38:45]process_json_proto returns [11:38:45]Send response to host [11:38:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156540,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [11:38:45]free response buf [11:38:45]execute_script done [11:38:45]execute_script returns [11:38:45]free content buf [11:38:45]Sock 9.Close socket [11:38:45]Sock 9.Thread stoped [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:38]accept exits with 8 [11:39:38]New connection [11:39:38]New thread 3066977636 created [11:39:38]Thread 3066834276 joined [11:39:38]Waiting for new connection... [11:39:38] Sock 8.Parse request [11:39:38]Sock 8.Check first char [11:39:38]Sock 8.First char is OK [11:39:38]request: POST /json_proto HTTP/1.0 [11:39:38]Method: POST [11:39:38]URL: /json_proto [11:39:38]Method is POST - this is cgi request [11:39:38]url: /json_proto [11:39:38]query_string will be loaded in cgi processing [11:39:38]execute_cgi json_proto POST (null) [11:39:38]execute_cgi path=json_proto method=POST [11:39:38]POST find Content-Length [11:39:38]Host: 172.17.63.3:8080 [11:39:38]Content-Length: 768 [11:39:38]Content-Type: application/json [11:39:38] [11:39:38]POST finish read [11:39:38]Found Content-Length = 768 [11:39:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99355", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:39:38]execute_script... [11:39: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)99355", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:39:38]POST & json_proto [11:39:38]process_json_proto [11:39:38]json parsed OK: [11:39:38]protocol is kg_v1.0 [11:39:38]action value=close_receipt [11:39:38]process_action close_receipt [11:39:38]cmd_close_receipt [11:39:38]MH_GetDate [11:39:38]Write to MH i2c: F0 00 00 06 4B 40 [11:39:38]Write i2c OK [11:39:38]MH_I2C_Read... [11:39:38]Read from MH i2c: F0 [11:39:38]MH_I2C_Read... [11:39:38]Read from MH i2c: F0 09 00 [11:39:38]MH_I2C_Read... [11:39:38]Read from MH i2c: F0 09 00 06 4B 00 7F 26 1E 67 50 D1 6C 64 64 [11:39:38]GetLastDocTimeStamp 1730029128 [11:39:38]current date 1730029183 [11:39:38]FM_GetShiftState [11:39:38]SAM_PROTO_GetShiftState [11:39:38]wFMCommunicate request_size=4 [11:39:38]MH_SAM_APDU [11:39:38]CAPDU: 80 13 01 00 [11:39:38]Write to MH i2c: E2 08 00 07 4B 80 13 01 00 00 00 00 00 CF [11:39:38]Write i2c OK [11:39:38]MH_I2C_Read... [11:39:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:39:38]Read from MH i2c: E2 [11:39:38]MH_I2C_Read... [11:39:38]Read from MH i2c: E2 0E 00 [11:39:38]MH_I2C_Read... [11:39:38]Read from MH i2c: E2 0E 00 07 4B 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 9C [11:39:38]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [11:39:38]wFMCommunicate OK [11:39:38]SAM_PROTO_GetShiftState done [11:39:38]FM_GetShiftState done [11:39:38]opened in 1729989044 [11:39:38]opened+sec_in_day 1730075444 [11:39:38]quantity*price = 100015 [11:39:38]sum+1 = 100017 [11:39:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 92 27.10.2024 11:39 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 156541 ФПД: 124092477137528 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T113943&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156541&fm=124092477137528&tin=02508201610067®Number=0000000000091693&sum=100016 [11:39:39]StoreToDocumentArchive [11:39:39]shift 537 fd 156541 [11:39:39]save to /storage/0537/doc_00156541 [11:39:39]save last doc name /storage/0537/doc_00156541 to /storage/kkm_last_doc_name [11:39:39]save OK [11:39:39]Clear old archive folders... [11:39:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:39:39]tlvbuf is 016A99E0 [11:39:39]SAM_PROTO_ClearQueue [11:39:39]wFMCommunicate request_size=4 [11:39:39]MH_SAM_APDU [11:39:39]CAPDU: 80 09 00 00 [11:39:39]Write to MH i2c: E2 08 00 14 4B 80 09 00 00 00 00 00 00 D1 [11:39:39]Write i2c OK [11:39:39]MH_I2C_Read... [11:39:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:39:39]Read from MH i2c: E2 [11:39:39]MH_I2C_Read... [11:39:39]Read from MH i2c: E2 03 00 [11:39:39]MH_I2C_Read... [11:39:39]Read from MH i2c: E2 03 00 14 4B 00 90 00 D3 [11:39:39]RAPDU: 90 00 [11:39:39]wFMCommunicate OK [11:39:39]SAM_PROTO_ClearQueue done [11:39:39]KKMCreateOFDPacket [11:39:39]OFDProtocolAddRootSTLVToBuf [11:39:39]FM_MakeSignedData [11:39:39]FM_MakeSignedData [11:39:39]SAM_PROTO_SignData [11:39:39]wFMCommunicate request_size=4 [11:39:39]MH_SAM_APDU [11:39:39]CAPDU: 80 0D 01 02 [11:39:39]Write to MH i2c: E2 08 00 15 4B 80 0D 01 02 00 00 00 00 D9 [11:39:39]Write i2c OK [11:39:39]MH_I2C_Read... [11:39:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:39:39]Read from MH i2c: E2 [11:39:39]MH_I2C_Read... [11:39:39]Read from MH i2c: E2 03 00 [11:39:39]MH_I2C_Read... [11:39:39]Read from MH i2c: E2 03 00 15 4B 00 90 00 D4 [11:39:39]RAPDU: 90 00 [11:39:39]wFMCommunicate OK [11:39:39]wFMCommunicate request_size=255 [11:39:39]MH_SAM_APDU [11:39: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 7F 26 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 7D 63 02 00 35 04 06 00 70 [11:39:39]Write to MH i2c: E2 02 01 16 4B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 7F 26 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 7D 63 02 00 35 04 06 00 70 00 00 7A [11:39:39]Write i2c OK [11:39:39]MH_I2C_Read... [11:39:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:39:40]Read from MH i2c: E2 [11:39:40]MH_I2C_Read... [11:39:40]Read from MH i2c: E2 03 00 [11:39:40]MH_I2C_Read... [11:39:40]Read from MH i2c: E2 03 00 16 4B 00 90 00 D5 [11:39:40]RAPDU: 90 00 [11:39:40]wFMCommunicate OK [11:39:40]wFMCommunicate request_size=10 [11:39:40]MH_SAM_APDU [11:39:40]CAPDU: 80 0D 02 02 05 DC 88 04 E2 78 [11:39:40]Write to MH i2c: E2 0D 00 17 4B 80 0D 02 02 05 00 DC 88 04 E2 78 00 00 A8 [11:39:40]Write i2c OK [11:39:40]MH_I2C_Read... [11:39:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:39:40]Read from MH i2c: E2 [11:39:40]MH_I2C_Read... [11:39:40]Read from MH i2c: E2 03 00 [11:39:40]MH_I2C_Read... [11:39:40]Read from MH i2c: E2 03 00 17 4B 00 90 00 D6 [11:39:40]RAPDU: 90 00 [11:39:40]wFMCommunicate OK [11:39:40]wFMCommunicate request_size=4 [11:39:40]MH_SAM_APDU [11:39:40]CAPDU: 80 0D 03 02 [11:39:40]Write to MH i2c: E2 08 00 18 4B 80 0D 03 02 00 00 00 00 DE [11:39:40]Write i2c OK [11:39:40]MH_I2C_Read... [11:39:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:39:40]Read from MH i2c: E2 [11:39:40]MH_I2C_Read... [11:39:40]Read from MH i2c: E2 0B 00 [11:39:40]MH_I2C_Read... [11:39:40]Read from MH i2c: E2 0B 00 18 4B 00 E0 B8 5F 17 AB 37 20 1D 90 00 0C [11:39:40]RAPDU: E0 B8 5F 17 AB 37 20 1D 90 00 [11:39:40]wFMCommunicate OK [11:39:40]SAM_PROTO_SignData done [11:39:40]FM_MakeSignedData done [11:39:40]CreateOFDProtocolMessage [11:39:40]wFMCommunicate request_size=4 [11:39:40]MH_SAM_APDU [11:39:40]CAPDU: 80 11 00 00 [11:39:40]Write to MH i2c: E2 08 00 19 4B 80 11 00 00 00 00 00 00 DE [11:39:40]Write i2c OK [11:39:40]MH_I2C_Read... [11:39:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:39:40]Read from MH i2c: E2 [11:39:40]MH_I2C_Read... [11:39:40]Read from MH i2c: E2 17 00 [11:39:40]MH_I2C_Read... [11:39:40]Read from MH i2c: E2 17 00 19 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 33 [11:39:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:39:40]wFMCommunicate OK [11:39:40]CreateOFDProtocolMessage done [11:39:40]OFDSenderStorePacket 156541 [11:39:40]StoreOFDPacket docnum=156541 [11:39:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 4F 28 07 01 50 FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 7F 26 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 7D 63 02 00 35 04 06 00 70 DC 88 04 E2 78 E0 B8 5F 17 AB 37 20 1D [11:39:40]CheckFolder [11:39:40]dirname=/storage/ofd_packets [11:39:40]CheckFolder done [11:39:40]ProducePacketName [11:39:40]name=ofd_packets/00156541 [11:39:40]NVStorageSaveData ofd_packets/00156541 [11:39:40]File name is /storage/ofd_packets/00156541 [11:39:40]Write 301 bytes [11:39:40]NVStorageSaveData done [11:39:40]OFDSenderStorePacket done [11:39:40]KKMCreateOFDPacket done [11:39:40]NVStorageSaveData kkm_last_timestamp [11:39:40]File name is /storage/kkm_last_timestamp [11:39:40]Write 4 bytes [11:39:40]NVStorageSaveData done [11:39:40]ExternCall_PrintAddStr [11:39:40]wPrintStart [11:39:40]Write to MH i2c: 01 00 00 1A 4B 65 [11:39:40]Write i2c OK [11:39:40]MH_I2C_Read... [11:39:40]Read from MH i2c: 01 [11:39:40]MH_I2C_Read... [11:39:40]Read from MH i2c: 01 07 00 [11:39:40]MH_I2C_Read... [11:39:40]Read from MH i2c: 01 07 00 1A 4B 00 00 00 00 00 FF 0F 7A [11:39:40]RasterBufferAndPrint [11:39:40]line Счет N : (1)99355 [11:39:40]line ИНН: 02508201610067 [11:39:40]line Контрольно-Кассовый Чек [11:39:40]line ПРОДАЖА [11:39:40]line ТРК (МРК, ГНК) : 21 [11:39:40]line Товар: 2710124130 [11:39:40]line Аи-92-К-5 [11:39:40]line 14.950 * 66.90 [11:39:40]line = 1000.16 [11:39:40]line НДС 12% НСП 1% [11:39:40]line > о реализуемом товаре [11:39:40]line ИТОГО: 1000.16 [11:39:40]line НСП 1% : 8.85 [11:39:40]line НДС 12% : 106.21 [11:39:40]line Наличными: 0.00 [11:39:40]line Безнал.: 1000.16 [11:39:40]line Место: АЗС № 143 "Партнер Нефть" [11:39:40]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [11:39:40]line СНО: Общий режим [11:39:40]line Чек 92 27.10.2024 11:39 [11:39:40]line Смена: 537 ФФД: 1.0 [11:39:40]line ЗНМ: 0300000096 [11:39:40]line РНМ: 0000000000091693 [11:39:40]line Версия ККМ: 001 [11:39:40]line Платежная система: Mbank [11:39:40]line ФМ: 0000000000871792 [11:39:40]line ФД: 156541 [11:39:40]line ФПД: 124092477137528 [11:39:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T113943&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156541&fm=124092477137528&tin=02508201610067®Number=0000000000091693&sum=100016 [11:39:40]written 0, free lines is 4095 [11:39:40]OFD Sender: Processing packet 156541 [packets to send 31, broken 30] [11:39:40]ProducePacketName [11:39:40]name=ofd_packets/00156541 [11:39:40]OFD Sender: To server: pG, [11:39:40]CommunicateWithHost lk.salyk.kg:30040 [11:39:40]ConnectInit lk.salyk.kg [11:39:40]Connected sock=10 [11:39:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 4F 28 07 01 50 FE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 7F 26 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 7D 63 02 00 35 04 06 00 70 DC 88 04 E2 78 E0 B8 5F 17 AB 37 20 1D [11:39:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 95 0D 47 00 78 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 31 37 39 32 10 04 04 00 7D 63 02 00 F4 03 04 00 EF CB 1D 67 B6 04 01 00 00 5F 37 CF 88 CC 5C 53 C0 [11:39:40]CommunicateWithHost err = 0 [11:39:40]CheckOFDResponse [11:39:40]1017 (14) - 77093643461234 [11:39:40]1041 (16) - 0000000000871792 [11:39:40]1040 (4) - 156541 [11:39:40]1012 (4) - 27.10.2024 05:13 [11:39:40]1206 (1) - 0 [11:39:40]OFD Sender: Remove packet 156541 [11:39:40]ProducePacketName [11:39:40]name=ofd_packets/00156541 [11:39:40]NVStorageDeleteData [11:39:40]Write to MH i2c: 01 00 00 43 4B 8E [11:39:40]Write i2c OK [11:39:40]MH_I2C_Read... [11:39:40]Read from MH i2c: 01 [11:39:40]MH_I2C_Read... [11:39:40]Read from MH i2c: 01 07 00 [11:39:40]MH_I2C_Read... [11:39:40]Read from MH i2c: 01 07 00 43 4B 00 00 00 00 00 11 0D B3 [11:39:40]RasterBufferAndPrint [11:39:40]line [11:39:40]line [11:39:40]line [11:39:40]line [11:39:40]line [11:39:40]written 0, free lines is 3351 [11:39:40]process_action close_receipt done [11:39:40]requested_data is exist [11:39:40]produce_requested_data [11:39:40]requested_item fm.sn is exist - process it [11:39:40]wFMCommunicate request_size=4 [11:39:40]MH_SAM_APDU [11:39:40]CAPDU: 80 11 00 00 [11:39:40]Write to MH i2c: E2 08 00 4A 4B 80 11 00 00 00 00 00 00 0F [11:39:40]Write i2c OK [11:39:40]MH_I2C_Read... [11:39:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:39:40]Read from MH i2c: E2 [11:39:40]MH_I2C_Read... [11:39:40]Read from MH i2c: E2 17 00 [11:39:40]MH_I2C_Read... [11:39:40]Read from MH i2c: E2 17 00 4A 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 64 [11:39:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:39:40]wFMCommunicate OK [11:39:40]requested_item fd.num is exist - process it [11:39:40]SAM_PROTO_GetFieldsCounters [11:39:40]wFMCommunicate request_size=4 [11:39:40]MH_SAM_APDU [11:39:40]CAPDU: 80 13 00 00 [11:39:40]Write to MH i2c: E2 08 00 4B 4B 80 13 00 00 00 00 00 00 12 [11:39:40]Write i2c OK [11:39:40]MH_I2C_Read... [11:39:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:39:40]Read from MH i2c: E2 [11:39:40]MH_I2C_Read... [11:39:40]Read from MH i2c: E2 62 00 [11:39:40]MH_I2C_Read... [11:39:40]Read from MH i2c: E2 62 00 4B 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 7D 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 49 [11:39:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 7D 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:39:40]wFMCommunicate OK [11:39:40]SAM_PROTO_GetFieldsCounters done [11:39:40]requested_item shift.num is exist - process it [11:39:40]requested_item shift.opened is exist - process it [11:39:40]req_shift_opened [11:39:40]FM_GetShiftState [11:39:40]SAM_PROTO_GetShiftState [11:39:40]wFMCommunicate request_size=4 [11:39:40]MH_SAM_APDU [11:39:40]CAPDU: 80 13 01 00 [11:39:40]Write to MH i2c: E2 08 00 4C 4B 80 13 01 00 00 00 00 00 14 [11:39:40]Write i2c OK [11:39:40]MH_I2C_Read... [11:39:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:39:40]Read from MH i2c: E2 [11:39:40]MH_I2C_Read... [11:39:40]Read from MH i2c: E2 0E 00 [11:39:40]MH_I2C_Read... [11:39:40]Read from MH i2c: E2 0E 00 4C 4B 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 E1 [11:39:40]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [11:39:40]wFMCommunicate OK [11:39:40]SAM_PROTO_GetShiftState done [11:39:40]FM_GetShiftState done [11:39:40]req_shift_opened done [11:39:40]requested_item shift.open_date is exist - process it [11:39:40]req_shift_open_date [11:39:40]req_shift_open_date done [11:39:40]produce_requested_data done [11:39:40]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156541,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [11:39:40]process_action_free close_receipt [11:39:40]json_value_free [11:39:40]json_value_free done [11:39:40]process_json_proto returns [11:39:40]Send response to host [11:39:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156541,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [11:39:40]free response buf [11:39:40]execute_script done [11:39:40]execute_script returns [11:39:40]free content buf [11:39:40]Sock 8.Close socket [11:39:40]Sock 8.Thread stoped [11:39:41]OFD Sender: No OFD packet to send [11:39:46]OFD Sender: No OFD packet to send [11:39:51]OFD Sender: No OFD packet to send [11:39:56]OFD Sender: No OFD packet to send [11:40:01]OFD Sender: No OFD packet to send [11:40:02]accept exits with 9 [11:40:02]New connection [11:40:02]New thread 3066834276 created [11:40:02]Thread 3066977636 joined [11:40:02]Waiting for new connection... [11:40:02] Sock 9.Parse request [11:40:02]Sock 9.Check first char [11:40:02]Sock 9.First char is OK [11:40:02]request: POST /json_proto HTTP/1.0 [11:40:02]Method: POST [11:40:02]URL: /json_proto [11:40:02]Method is POST - this is cgi request [11:40:02]url: /json_proto [11:40:02]query_string will be loaded in cgi processing [11:40:02]execute_cgi json_proto POST (null) [11:40:02]execute_cgi path=json_proto method=POST [11:40:02]POST find Content-Length [11:40:02]Host: 172.17.63.3:8080 [11:40:02]Content-Length: 676 [11:40:02]Content-Type: application/json [11:40:02] [11:40:02]POST finish read [11:40:02]Found Content-Length = 676 [11:40:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99356", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:40:02]execute_script... [11:40: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)99356", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:40:02]POST & json_proto [11:40:02]process_json_proto [11:40:02]json parsed OK: [11:40:02]protocol is kg_v1.0 [11:40:02]action value=close_receipt [11:40:02]process_action close_receipt [11:40:02]cmd_close_receipt [11:40:02]MH_GetDate [11:40:02]Write to MH i2c: F0 00 00 4D 4B 87 [11:40:02]Write i2c OK [11:40:02]MH_I2C_Read... [11:40:02]Read from MH i2c: F0 [11:40:02]MH_I2C_Read... [11:40:02]Read from MH i2c: F0 09 00 [11:40:02]MH_I2C_Read... [11:40:02]Read from MH i2c: F0 09 00 4D 4B 00 97 26 1E 67 50 D1 6C 64 C3 [11:40:02]GetLastDocTimeStamp 1730029183 [11:40:02]current date 1730029207 [11:40:02]FM_GetShiftState [11:40:02]SAM_PROTO_GetShiftState [11:40:02]wFMCommunicate request_size=4 [11:40:02]MH_SAM_APDU [11:40:02]CAPDU: 80 13 01 00 [11:40:02]Write to MH i2c: E2 08 00 4E 4B 80 13 01 00 00 00 00 00 16 [11:40:02]Write i2c OK [11:40:02]MH_I2C_Read... [11:40:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:40:02]Read from MH i2c: E2 [11:40:02]MH_I2C_Read... [11:40:02]Read from MH i2c: E2 0E 00 [11:40:02]MH_I2C_Read... [11:40:02]Read from MH i2c: E2 0E 00 4E 4B 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 E3 [11:40:02]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [11:40:02]wFMCommunicate OK [11:40:02]SAM_PROTO_GetShiftState done [11:40:02]FM_GetShiftState done [11:40:02]opened in 1729989044 [11:40:02]opened+sec_in_day 1730075444 [11:40:02]quantity*price = 20003 [11:40:02]sum+1 = 20004 [11:40:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 93 27.10.2024 11:40 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156542 ФПД: 49214670293322 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T114007&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156542&fm=49214670293322&tin=02508201610067®Number=0000000000091693&sum=20000 [11:40:03]StoreToDocumentArchive [11:40:03]shift 537 fd 156542 [11:40:03]save to /storage/0537/doc_00156542 [11:40:03]save last doc name /storage/0537/doc_00156542 to /storage/kkm_last_doc_name [11:40:03]save OK [11:40:03]Clear old archive folders... [11:40:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:40:03]tlvbuf is 0182B8F0 [11:40:03]SAM_PROTO_ClearQueue [11:40:03]wFMCommunicate request_size=4 [11:40:03]MH_SAM_APDU [11:40:03]CAPDU: 80 09 00 00 [11:40:03]Write to MH i2c: E2 08 00 5B 4B 80 09 00 00 00 00 00 00 18 [11:40:03]Write i2c OK [11:40:03]MH_I2C_Read... [11:40:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:40:03]Read from MH i2c: E2 [11:40:03]MH_I2C_Read... [11:40:03]Read from MH i2c: E2 03 00 [11:40:03]MH_I2C_Read... [11:40:03]Read from MH i2c: E2 03 00 5B 4B 00 90 00 1A [11:40:03]RAPDU: 90 00 [11:40:03]wFMCommunicate OK [11:40:03]SAM_PROTO_ClearQueue done [11:40:03]KKMCreateOFDPacket [11:40:03]OFDProtocolAddRootSTLVToBuf [11:40:03]FM_MakeSignedData [11:40:03]FM_MakeSignedData [11:40:03]SAM_PROTO_SignData [11:40:03]wFMCommunicate request_size=4 [11:40:03]MH_SAM_APDU [11:40:03]CAPDU: 80 0D 01 02 [11:40:03]Write to MH i2c: E2 08 00 5C 4B 80 0D 01 02 00 00 00 00 20 [11:40:03]Write i2c OK [11:40:03]MH_I2C_Read... [11:40:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:40:03]Read from MH i2c: E2 [11:40:03]MH_I2C_Read... [11:40:03]Read from MH i2c: E2 03 00 [11:40:03]MH_I2C_Read... [11:40:03]Read from MH i2c: E2 03 00 5C 4B 00 90 00 1B [11:40:03]RAPDU: 90 00 [11:40:03]wFMCommunicate OK [11:40:03]wFMCommunicate request_size=255 [11:40:03]MH_SAM_APDU [11:40: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 5D 00 00 00 F4 03 04 00 97 26 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 7E 63 02 00 35 04 06 00 2C [11:40:03]Write to MH i2c: E2 02 01 5D 4B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 5D 00 00 00 F4 03 04 00 97 26 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 7E 63 02 00 35 04 06 00 2C 00 00 3F [11:40:03]Write i2c OK [11:40:03]MH_I2C_Read... [11:40:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:40:03]Read from MH i2c: E2 [11:40:03]MH_I2C_Read... [11:40:03]Read from MH i2c: E2 03 00 [11:40:03]MH_I2C_Read... [11:40:03]Read from MH i2c: E2 03 00 5D 4B 00 90 00 1C [11:40:03]RAPDU: 90 00 [11:40:03]wFMCommunicate OK [11:40:03]wFMCommunicate request_size=10 [11:40:03]MH_SAM_APDU [11:40:03]CAPDU: 80 0D 02 02 05 C2 AE F0 C9 4A [11:40:03]Write to MH i2c: E2 0D 00 5E 4B 80 0D 02 02 05 00 C2 AE F0 C9 4A 00 00 A0 [11:40:03]Write i2c OK [11:40:03]MH_I2C_Read... [11:40:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:40:04]Read from MH i2c: E2 [11:40:04]MH_I2C_Read... [11:40:04]Read from MH i2c: E2 03 00 [11:40:04]MH_I2C_Read... [11:40:04]Read from MH i2c: E2 03 00 5E 4B 00 90 00 1D [11:40:04]RAPDU: 90 00 [11:40:04]wFMCommunicate OK [11:40:04]wFMCommunicate request_size=4 [11:40:04]MH_SAM_APDU [11:40:04]CAPDU: 80 0D 03 02 [11:40:04]Write to MH i2c: E2 08 00 5F 4B 80 0D 03 02 00 00 00 00 25 [11:40:04]Write i2c OK [11:40:04]MH_I2C_Read... [11:40:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:40:04]Read from MH i2c: E2 [11:40:04]MH_I2C_Read... [11:40:04]Read from MH i2c: E2 0B 00 [11:40:04]MH_I2C_Read... [11:40:04]Read from MH i2c: E2 0B 00 5F 4B 00 13 33 1C 4B E0 2A C0 E8 90 00 85 [11:40:04]RAPDU: 13 33 1C 4B E0 2A C0 E8 90 00 [11:40:04]wFMCommunicate OK [11:40:04]SAM_PROTO_SignData done [11:40:04]FM_MakeSignedData done [11:40:04]CreateOFDProtocolMessage [11:40:04]wFMCommunicate request_size=4 [11:40:04]MH_SAM_APDU [11:40:04]CAPDU: 80 11 00 00 [11:40:04]Write to MH i2c: E2 08 00 60 4B 80 11 00 00 00 00 00 00 25 [11:40:04]Write i2c OK [11:40:04]MH_I2C_Read... [11:40:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:40:04]Read from MH i2c: E2 [11:40:04]MH_I2C_Read... [11:40:04]Read from MH i2c: E2 17 00 [11:40:04]MH_I2C_Read... [11:40:04]Read from MH i2c: E2 17 00 60 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 7A [11:40:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:40:04]wFMCommunicate OK [11:40:04]CreateOFDProtocolMessage done [11:40:04]OFDSenderStorePacket 156542 [11:40:04]StoreOFDPacket docnum=156542 [11:40:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 31 14 07 01 D2 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 5D 00 00 00 F4 03 04 00 97 26 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 7E 63 02 00 35 04 06 00 2C C2 AE F0 C9 4A 13 33 1C 4B E0 2A C0 E8 [11:40:04]CheckFolder [11:40:04]dirname=/storage/ofd_packets [11:40:04]CheckFolder done [11:40:04]ProducePacketName [11:40:04]name=ofd_packets/00156542 [11:40:04]NVStorageSaveData ofd_packets/00156542 [11:40:04]File name is /storage/ofd_packets/00156542 [11:40:04]Write 301 bytes [11:40:04]NVStorageSaveData done [11:40:04]OFDSenderStorePacket done [11:40:04]KKMCreateOFDPacket done [11:40:04]NVStorageSaveData kkm_last_timestamp [11:40:04]File name is /storage/kkm_last_timestamp [11:40:04]Write 4 bytes [11:40:04]NVStorageSaveData done [11:40:04]ExternCall_PrintAddStr [11:40:04]wPrintStart [11:40:04]Write to MH i2c: 01 00 00 61 4B AC [11:40:04]Write i2c OK [11:40:04]MH_I2C_Read... [11:40:04]Read from MH i2c: 01 [11:40:04]MH_I2C_Read... [11:40:04]Read from MH i2c: 01 07 00 [11:40:04]MH_I2C_Read... [11:40:04]Read from MH i2c: 01 07 00 61 4B 00 00 00 00 00 FF 0F C1 [11:40:04]RasterBufferAndPrint [11:40:04]line Счет N : (1)99356 [11:40:04]line ИНН: 02508201610067 [11:40:04]line Контрольно-Кассовый Чек [11:40:04]line ПРОДАЖА [11:40:04]line ТРК (МРК, ГНК) : 11 [11:40:04]line Товар: 2710124130 [11:40:04]line Аи-92-К-5 [11:40:04]line 2.990 * 66.90 [11:40:04]line = 200.03 [11:40:04]line НДС 12% НСП 1% [11:40:04]line > о реализуемом товаре [11:40:04]line ОКРУГЛЕНИЕ: -0.03 [11:40:04]line ИТОГО: 200.00 [11:40:04]line Внесено: 200.00 [11:40:04]line СДАЧА: 0.00 [11:40:04]line НСП 1% : 1.77 [11:40:04]line НДС 12% : 21.24 [11:40:04]line Наличными: 200.00 [11:40:04]line Безнал.: 0.00 [11:40:04]line Место: АЗС № 143 "Партнер Нефть" [11:40:04]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [11:40:04]line СНО: Общий режим [11:40:04]line Чек 93 27.10.2024 11:40 [11:40:04]line Смена: 537 ФФД: 1.0 [11:40:04]line ЗНМ: 0300000096 [11:40:04]line РНМ: 0000000000091693 [11:40:04]line Версия ККМ: 001 [11:40:04]line ФМ: 0000000000871792 [11:40:04]line ФД: 156542 [11:40:04]line ФПД: 49214670293322 [11:40:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T114007&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156542&fm=49214670293322&tin=02508201610067®Number=0000000000091693&sum=20000 [11:40:04]OFD Sender: Processing packet 156542 [packets to send 31, broken 30] [11:40:04]ProducePacketName [11:40:04]name=ofd_packets/00156542 [11:40:04]OFD Sender: To server: pG, [11:40:04]CommunicateWithHost lk.salyk.kg:30040 [11:40:04]ConnectInit lk.salyk.kg [11:40:04]written 0, free lines is 4095 [11:40:04]Connected sock=10 [11:40:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 31 14 07 01 D2 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 5D 00 00 00 F4 03 04 00 97 26 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 7E 63 02 00 35 04 06 00 2C C2 AE F0 C9 4A 13 33 1C 4B E0 2A C0 E8 [11:40:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 D0 65 47 00 0C 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 7E 63 02 00 F4 03 04 00 07 CC 1D 67 B6 04 01 00 00 8B 36 23 EA AE 69 81 EC [11:40:04]CommunicateWithHost err = 0 [11:40:04]CheckOFDResponse [11:40:04]1017 (14) - 77093643461234 [11:40:04]1041 (16) - 0000000000871792 [11:40:04]1040 (4) - 156542 [11:40:04]1012 (4) - 27.10.2024 05:13 [11:40:04]1206 (1) - 0 [11:40:04]OFD Sender: Remove packet 156542 [11:40:04]ProducePacketName [11:40:04]name=ofd_packets/00156542 [11:40:04]NVStorageDeleteData [11:40:04]Write to MH i2c: 01 00 00 8C 4B D7 [11:40:04]Write i2c OK [11:40:04]MH_I2C_Read... [11:40:04]Read from MH i2c: 01 [11:40:04]MH_I2C_Read... [11:40:04]Read from MH i2c: 01 07 00 [11:40:04]MH_I2C_Read... [11:40:04]Read from MH i2c: 01 07 00 8C 4B 00 00 00 00 00 E4 0C CE [11:40:04]RasterBufferAndPrint [11:40:04]line [11:40:04]line [11:40:04]line [11:40:04]line [11:40:04]line [11:40:04]written 0, free lines is 3306 [11:40:04]process_action close_receipt done [11:40:04]requested_data is exist [11:40:04]produce_requested_data [11:40:04]requested_item fm.sn is exist - process it [11:40:04]wFMCommunicate request_size=4 [11:40:04]MH_SAM_APDU [11:40:04]CAPDU: 80 11 00 00 [11:40:04]Write to MH i2c: E2 08 00 93 4B 80 11 00 00 00 00 00 00 58 [11:40:04]Write i2c OK [11:40:04]MH_I2C_Read... [11:40:04]Read from MH i2c: E2 [11:40:04]MH_I2C_Read... [11:40:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:40:04]Read from MH i2c: E2 17 00 [11:40:04]MH_I2C_Read... [11:40:04]Read from MH i2c: E2 17 00 93 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 AD [11:40:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:40:04]wFMCommunicate OK [11:40:04]requested_item fd.num is exist - process it [11:40:04]SAM_PROTO_GetFieldsCounters [11:40:04]wFMCommunicate request_size=4 [11:40:04]MH_SAM_APDU [11:40:04]CAPDU: 80 13 00 00 [11:40:04]Write to MH i2c: E2 08 00 94 4B 80 13 00 00 00 00 00 00 5B [11:40:04]Write i2c OK [11:40:04]MH_I2C_Read... [11:40:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:40:05]Read from MH i2c: E2 [11:40:05]MH_I2C_Read... [11:40:05]Read from MH i2c: E2 62 00 [11:40:05]MH_I2C_Read... [11:40:05]Read from MH i2c: E2 62 00 94 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 7E 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 96 [11:40:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 7E 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:40:05]wFMCommunicate OK [11:40:05]SAM_PROTO_GetFieldsCounters done [11:40:05]requested_item shift.num is exist - process it [11:40:05]requested_item shift.opened is exist - process it [11:40:05]req_shift_opened [11:40:05]FM_GetShiftState [11:40:05]SAM_PROTO_GetShiftState [11:40:05]wFMCommunicate request_size=4 [11:40:05]MH_SAM_APDU [11:40:05]CAPDU: 80 13 01 00 [11:40:05]Write to MH i2c: E2 08 00 95 4B 80 13 01 00 00 00 00 00 5D [11:40:05]Write i2c OK [11:40:05]MH_I2C_Read... [11:40:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:40:05]Read from MH i2c: E2 [11:40:05]MH_I2C_Read... [11:40:05]Read from MH i2c: E2 0E 00 [11:40:05]MH_I2C_Read... [11:40:05]Read from MH i2c: E2 0E 00 95 4B 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 2A [11:40:05]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [11:40:05]wFMCommunicate OK [11:40:05]SAM_PROTO_GetShiftState done [11:40:05]FM_GetShiftState done [11:40:05]req_shift_opened done [11:40:05]requested_item shift.open_date is exist - process it [11:40:05]req_shift_open_date [11:40:05]req_shift_open_date done [11:40:05]produce_requested_data done [11:40:05]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156542,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [11:40:05]process_action_free close_receipt [11:40:05]json_value_free [11:40:05]json_value_free done [11:40:05]process_json_proto returns [11:40:05]Send response to host [11:40:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156542,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [11:40:05]free response buf [11:40:05]execute_script done [11:40:05]execute_script returns [11:40:05]free content buf [11:40:05]Sock 9.Close socket [11:40:05]Sock 9.Thread stoped [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: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:40]OFD Sender: No OFD packet to send [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:04]accept exits with 8 [11:43:04]New connection [11:43:04]New thread 3066977636 created [11:43:04]Thread 3066834276 joined [11:43:04]Waiting for new connection... [11:43:04] Sock 8.Parse request [11:43:04]Sock 8.Check first char [11:43:04]Sock 8.First char is OK [11:43:04]request: POST /json_proto HTTP/1.0 [11:43:04]Method: POST [11:43:04]URL: /json_proto [11:43:04]Method is POST - this is cgi request [11:43:04]url: /json_proto [11:43:04]query_string will be loaded in cgi processing [11:43:04]execute_cgi json_proto POST (null) [11:43:04]execute_cgi path=json_proto method=POST [11:43:04]POST find Content-Length [11:43:04]Host: 172.17.63.3:8080 [11:43:04]Content-Length: 678 [11:43:04]Content-Type: application/json [11:43:04] [11:43:04]POST finish read [11:43:04]Found Content-Length = 678 [11:43:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99357", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:04]execute_script... [11:43: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)99357", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:04]POST & json_proto [11:43:04]process_json_proto [11:43:04]json parsed OK: [11:43:04]protocol is kg_v1.0 [11:43:04]action value=close_receipt [11:43:04]process_action close_receipt [11:43:04]cmd_close_receipt [11:43:04]MH_GetDate [11:43:04]Write to MH i2c: F0 00 00 96 4B D0 [11:43:04]Write i2c OK [11:43:04]MH_I2C_Read... [11:43:04]Read from MH i2c: F0 [11:43:04]MH_I2C_Read... [11:43:04]Read from MH i2c: F0 09 00 [11:43:04]MH_I2C_Read... [11:43:04]Read from MH i2c: F0 09 00 96 4B 00 4E 27 1E 67 50 D1 6C 64 C4 [11:43:04]GetLastDocTimeStamp 1730029207 [11:43:04]current date 1730029390 [11:43:04]FM_GetShiftState [11:43:04]SAM_PROTO_GetShiftState [11:43:04]wFMCommunicate request_size=4 [11:43:04]MH_SAM_APDU [11:43:04]CAPDU: 80 13 01 00 [11:43:04]Write to MH i2c: E2 08 00 97 4B 80 13 01 00 00 00 00 00 5F [11:43:04]Write i2c OK [11:43:04]MH_I2C_Read... [11:43:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:04]Read from MH i2c: E2 [11:43:04]MH_I2C_Read... [11:43:04]Read from MH i2c: E2 0E 00 [11:43:04]MH_I2C_Read... [11:43:04]Read from MH i2c: E2 0E 00 97 4B 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 2C [11:43:04]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [11:43:04]wFMCommunicate OK [11:43:04]SAM_PROTO_GetShiftState done [11:43:04]FM_GetShiftState done [11:43:04]opened in 1729989044 [11:43:04]opened+sec_in_day 1730075444 [11:43:04]quantity*price = 150037 [11:43:04]sum+1 = 150039 [11:43:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 94 27.10.2024 11:43 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156543 ФПД: 86115749146326 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T114310&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156543&fm=86115749146326&tin=02508201610067®Number=0000000000091693&sum=150000 [11:43:05]StoreToDocumentArchive [11:43:05]shift 537 fd 156543 [11:43:05]save to /storage/0537/doc_00156543 [11:43:05]save last doc name /storage/0537/doc_00156543 to /storage/kkm_last_doc_name [11:43:05]save OK [11:43:05]Clear old archive folders... [11:43:05]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:43:05]tlvbuf is 01842E50 [11:43:05]SAM_PROTO_ClearQueue [11:43:05]wFMCommunicate request_size=4 [11:43:05]MH_SAM_APDU [11:43:05]CAPDU: 80 09 00 00 [11:43:05]Write to MH i2c: E2 08 00 A4 4B 80 09 00 00 00 00 00 00 61 [11:43:05]Write i2c OK [11:43:05]MH_I2C_Read... [11:43:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:43:05]Read from MH i2c: E2 [11:43:05]MH_I2C_Read... [11:43:05]Read from MH i2c: E2 03 00 [11:43:05]MH_I2C_Read... [11:43:05]Read from MH i2c: E2 03 00 A4 4B 00 90 00 63 [11:43:05]RAPDU: 90 00 [11:43:05]wFMCommunicate OK [11:43:05]SAM_PROTO_ClearQueue done [11:43:05]KKMCreateOFDPacket [11:43:05]OFDProtocolAddRootSTLVToBuf [11:43:05]FM_MakeSignedData [11:43:05]FM_MakeSignedData [11:43:05]SAM_PROTO_SignData [11:43:05]wFMCommunicate request_size=4 [11:43:05]MH_SAM_APDU [11:43:05]CAPDU: 80 0D 01 02 [11:43:05]Write to MH i2c: E2 08 00 A5 4B 80 0D 01 02 00 00 00 00 69 [11:43:05]Write i2c OK [11:43:05]MH_I2C_Read... [11:43:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:43:05]Read from MH i2c: E2 [11:43:05]MH_I2C_Read... [11:43:05]Read from MH i2c: E2 03 00 [11:43:05]MH_I2C_Read... [11:43:05]Read from MH i2c: E2 03 00 A5 4B 00 90 00 64 [11:43:05]RAPDU: 90 00 [11:43:05]wFMCommunicate OK [11:43:05]wFMCommunicate request_size=255 [11:43:05]MH_SAM_APDU [11:43:05]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 4E 27 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 7F 63 02 00 35 04 06 00 4E 52 62 A3 [11:43:05]Write to MH i2c: E2 02 01 A6 4B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 4E 27 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 7F 63 02 00 35 04 06 00 4E 52 62 A3 00 00 66 [11:43:05]Write i2c OK [11:43:05]MH_I2C_Read... [11:43:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:43:06]Read from MH i2c: E2 [11:43:06]MH_I2C_Read... [11:43:06]Read from MH i2c: E2 03 00 [11:43:06]MH_I2C_Read... [11:43:06]Read from MH i2c: E2 03 00 A6 4B 00 90 00 65 [11:43:06]RAPDU: 90 00 [11:43:06]wFMCommunicate OK [11:43:06]wFMCommunicate request_size=7 [11:43:06]MH_SAM_APDU [11:43:06]CAPDU: 80 0D 02 02 02 2E D6 [11:43:06]Write to MH i2c: E2 0A 00 A7 4B 80 0D 02 02 02 00 2E D6 00 00 74 [11:43:06]Write i2c OK [11:43:06]MH_I2C_Read... [11:43:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:43:06]Read from MH i2c: E2 [11:43:06]MH_I2C_Read... [11:43:06]Read from MH i2c: E2 03 00 [11:43:06]MH_I2C_Read... [11:43:06]Read from MH i2c: E2 03 00 A7 4B 00 90 00 66 [11:43:06]RAPDU: 90 00 [11:43:06]wFMCommunicate OK [11:43:06]wFMCommunicate request_size=4 [11:43:06]MH_SAM_APDU [11:43:06]CAPDU: 80 0D 03 02 [11:43:06]Write to MH i2c: E2 08 00 A8 4B 80 0D 03 02 00 00 00 00 6E [11:43:06]Write i2c OK [11:43:06]MH_I2C_Read... [11:43:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:43:06]Read from MH i2c: E2 [11:43:06]MH_I2C_Read... [11:43:06]Read from MH i2c: E2 0B 00 [11:43:06]MH_I2C_Read... [11:43:06]Read from MH i2c: E2 0B 00 A8 4B 00 2C 69 10 B1 5E 20 ED 33 90 00 63 [11:43:06]RAPDU: 2C 69 10 B1 5E 20 ED 33 90 00 [11:43:06]wFMCommunicate OK [11:43:06]SAM_PROTO_SignData done [11:43:06]FM_MakeSignedData done [11:43:06]CreateOFDProtocolMessage [11:43:06]wFMCommunicate request_size=4 [11:43:06]MH_SAM_APDU [11:43:06]CAPDU: 80 11 00 00 [11:43:06]Write to MH i2c: E2 08 00 A9 4B 80 11 00 00 00 00 00 00 6E [11:43:06]Write i2c OK [11:43:06]MH_I2C_Read... [11:43:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:06]Read from MH i2c: E2 [11:43:06]MH_I2C_Read... [11:43:06]Read from MH i2c: E2 17 00 [11:43:06]MH_I2C_Read... [11:43:06]Read from MH i2c: E2 17 00 A9 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 C3 [11:43:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:43:06]wFMCommunicate OK [11:43:06]CreateOFDProtocolMessage done [11:43:06]OFDSenderStorePacket 156543 [11:43:06]StoreOFDPacket docnum=156543 [11:43:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 C2 E4 04 01 27 C4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 4E 27 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 7F 63 02 00 35 04 06 00 4E 52 62 A3 2E D6 2C 69 10 B1 5E 20 ED 33 [11:43:06]CheckFolder [11:43:06]dirname=/storage/ofd_packets [11:43:06]CheckFolder done [11:43:06]ProducePacketName [11:43:06]name=ofd_packets/00156543 [11:43:06]NVStorageSaveData ofd_packets/00156543 [11:43:06]File name is /storage/ofd_packets/00156543 [11:43:06]Write 298 bytes [11:43:06]NVStorageSaveData done [11:43:06]OFDSenderStorePacket done [11:43:06]KKMCreateOFDPacket done [11:43:06]NVStorageSaveData kkm_last_timestamp [11:43:06]File name is /storage/kkm_last_timestamp [11:43:06]Write 4 bytes [11:43:06]NVStorageSaveData done [11:43:06]ExternCall_PrintAddStr [11:43:06]wPrintStart [11:43:06]Write to MH i2c: 01 00 00 AA 4B F5 [11:43:06]Write i2c OK [11:43:06]MH_I2C_Read... [11:43:06]Read from MH i2c: 01 [11:43:06]MH_I2C_Read... [11:43:06]Read from MH i2c: 01 07 00 [11:43:06]MH_I2C_Read... [11:43:06]Read from MH i2c: 01 07 00 AA 4B 00 00 00 00 00 FF 0F 0A [11:43:06]RasterBufferAndPrint [11:43:06]line Счет N : (1)99357 [11:43:06]line ИНН: 02508201610067 [11:43:06]line Контрольно-Кассовый Чек [11:43:06]line ПРОДАЖА [11:43:06]line ТРК (МРК, ГНК) : 32 [11:43:06]line Товар: 2710194210 [11:43:06]line ДТ-К-5 [11:43:06]line 19.690 * 76.20 [11:43:06]line = 1500.38 [11:43:06]line НДС 12% НСП 1% [11:43:06]line > о реализуемом товаре [11:43:06]line ОКРУГЛЕНИЕ: -0.38 [11:43:06]line ИТОГО: 1500.00 [11:43:06]line Внесено: 1500.00 [11:43:06]line СДАЧА: 0.00 [11:43:06]line НСП 1% : 13.28 [11:43:06]line НДС 12% : 159.33 [11:43:06]line Наличными: 1500.00 [11:43:06]line Безнал.: 0.00 [11:43:06]line Место: АЗС № 143 "Партнер Нефть" [11:43:06]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [11:43:06]line СНО: Общий режим [11:43:06]line Чек 94 27.10.2024 11:43 [11:43:06]line Смена: 537 ФФД: 1.0 [11:43:06]line ЗНМ: 0300000096 [11:43:06]line РНМ: 0000000000091693 [11:43:06]line Версия ККМ: 001 [11:43:06]line ФМ: 0000000000871792 [11:43:06]line ФД: 156543 [11:43:06]line ФПД: 86115749146326 [11:43:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T114310&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156543&fm=86115749146326&tin=02508201610067®Number=0000000000091693&sum=150000 [11:43:06]OFD Sender: Processing packet 156543 [packets to send 31, broken 30] [11:43:06]ProducePacketName [11:43:06]name=ofd_packets/00156543 [11:43:06]OFD Sender: To server: pG, [11:43:06]CommunicateWithHost lk.salyk.kg:30040 [11:43:06]ConnectInit lk.salyk.kg [11:43:06]written 0, free lines is 4095 [11:43:06]Connected sock=10 [11:43:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 C2 E4 04 01 27 C4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 4E 27 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 7F 63 02 00 35 04 06 00 4E 52 62 A3 2E D6 2C 69 10 B1 5E 20 ED 33 [11:43:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 77 AE 47 00 94 D0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 7F 63 02 00 F4 03 04 00 BD CC 1D 67 B6 04 01 00 00 FE 2B 52 7B 2A 71 B0 93 [11:43:06]CommunicateWithHost err = 0 [11:43:06]CheckOFDResponse [11:43:06]1017 (14) - 77093643461234 [11:43:06]1041 (16) - 0000000000871792 [11:43:06]1040 (4) - 156543 [11:43:06]1012 (4) - 27.10.2024 05:16 [11:43:06]1206 (1) - 0 [11:43:06]OFD Sender: Remove packet 156543 [11:43:06]ProducePacketName [11:43:06]name=ofd_packets/00156543 [11:43:06]NVStorageDeleteData [11:43:07]Write to MH i2c: 01 00 00 D5 4B 20 [11:43:07]Write i2c OK [11:43:07]MH_I2C_Read... [11:43:07]Read from MH i2c: 01 [11:43:07]MH_I2C_Read... [11:43:07]Read from MH i2c: 01 07 00 [11:43:07]MH_I2C_Read... [11:43:07]Read from MH i2c: 01 07 00 D5 4B 00 00 00 00 00 DE 0C 11 [11:43:07]RasterBufferAndPrint [11:43:07]line [11:43:07]line [11:43:07]line [11:43:07]line [11:43:07]line [11:43:07]written 0, free lines is 3300 [11:43:07]process_action close_receipt done [11:43:07]requested_data is exist [11:43:07]produce_requested_data [11:43:07]requested_item fm.sn is exist - process it [11:43:07]wFMCommunicate request_size=4 [11:43:07]MH_SAM_APDU [11:43:07]CAPDU: 80 11 00 00 [11:43:07]Write to MH i2c: E2 08 00 DC 4B 80 11 00 00 00 00 00 00 A1 [11:43:07]Write i2c OK [11:43:07]MH_I2C_Read... [11:43:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:07]Read from MH i2c: E2 [11:43:07]MH_I2C_Read... [11:43:07]Read from MH i2c: E2 17 00 [11:43:07]MH_I2C_Read... [11:43:07]Read from MH i2c: E2 17 00 DC 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 F6 [11:43:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:43:07]wFMCommunicate OK [11:43:07]requested_item fd.num is exist - process it [11:43:07]SAM_PROTO_GetFieldsCounters [11:43:07]wFMCommunicate request_size=4 [11:43:07]MH_SAM_APDU [11:43:07]CAPDU: 80 13 00 00 [11:43:07]Write to MH i2c: E2 08 00 DD 4B 80 13 00 00 00 00 00 00 A4 [11:43:07]Write i2c OK [11:43:07]MH_I2C_Read... [11:43:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:43:07]Read from MH i2c: E2 [11:43:07]MH_I2C_Read... [11:43:07]Read from MH i2c: E2 62 00 [11:43:07]MH_I2C_Read... [11:43:07]Read from MH i2c: E2 62 00 DD 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 7F 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 E3 [11:43:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 7F 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:43:07]wFMCommunicate OK [11:43:07]SAM_PROTO_GetFieldsCounters done [11:43:07]requested_item shift.num is exist - process it [11:43:07]requested_item shift.opened is exist - process it [11:43:07]req_shift_opened [11:43:07]FM_GetShiftState [11:43:07]SAM_PROTO_GetShiftState [11:43:07]wFMCommunicate request_size=4 [11:43:07]MH_SAM_APDU [11:43:07]CAPDU: 80 13 01 00 [11:43:07]Write to MH i2c: E2 08 00 DE 4B 80 13 01 00 00 00 00 00 A6 [11:43:07]Write i2c OK [11:43:07]MH_I2C_Read... [11:43:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:07]Read from MH i2c: E2 [11:43:07]MH_I2C_Read... [11:43:07]Read from MH i2c: E2 0E 00 [11:43:07]MH_I2C_Read... [11:43:07]Read from MH i2c: E2 0E 00 DE 4B 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 73 [11:43:07]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [11:43:07]wFMCommunicate OK [11:43:07]SAM_PROTO_GetShiftState done [11:43:07]FM_GetShiftState done [11:43:07]req_shift_opened done [11:43:07]requested_item shift.open_date is exist - process it [11:43:07]req_shift_open_date [11:43:07]req_shift_open_date done [11:43:07]produce_requested_data done [11:43:07]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156543,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [11:43:07]process_action_free close_receipt [11:43:07]json_value_free [11:43:07]json_value_free done [11:43:07]process_json_proto returns [11:43:07]Send response to host [11:43:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156543,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [11:43:07]free response buf [11:43:07]execute_script done [11:43:07]execute_script returns [11:43:07]free content buf [11:43:07]Sock 8.Close socket [11:43:07]Sock 8.Thread stoped [11:43:07]OFD Sender: No OFD packet to send [11:43:12]OFD Sender: No OFD packet to send [11:43:17]OFD Sender: No OFD packet to send [11:43:22]OFD Sender: No OFD packet to send [11:43:27]OFD Sender: No OFD packet to send [11:43:32]OFD Sender: No OFD packet to send [11:43:37]OFD Sender: No OFD packet to send [11:43:42]OFD Sender: No OFD packet to send [11:43:46]accept exits with 9 [11:43:46]New connection [11:43:46]New thread 3066834276 created [11:43:46]Thread 3066977636 joined [11:43:46]Waiting for new connection... [11:43:46] Sock 9.Parse request [11:43:46]Sock 9.Check first char [11:43:46]Sock 9.First char is OK [11:43:46]request: POST /json_proto HTTP/1.0 [11:43:46]Method: POST [11:43:46]URL: /json_proto [11:43:46]Method is POST - this is cgi request [11:43:46]url: /json_proto [11:43:46]query_string will be loaded in cgi processing [11:43:46]execute_cgi json_proto POST (null) [11:43:46]execute_cgi path=json_proto method=POST [11:43:46]POST find Content-Length [11:43:46]Host: 172.17.63.3:8080 [11:43:46]Content-Length: 762 [11:43:46]Content-Type: application/json [11:43:46] [11:43:46]POST finish read [11:43:46]Found Content-Length = 762 [11:43:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99358", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 600.46 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:46]execute_script... [11:43: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)99358", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 600.46 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:46]POST & json_proto [11:43:46]process_json_proto [11:43:46]json parsed OK: [11:43:46]protocol is kg_v1.0 [11:43:46]action value=close_receipt [11:43:46]process_action close_receipt [11:43:46]cmd_close_receipt [11:43:46]MH_GetDate [11:43:46]Write to MH i2c: F0 00 00 DF 4B 19 [11:43:46]Write i2c OK [11:43:46]MH_I2C_Read... [11:43:46]Read from MH i2c: F0 [11:43:46]MH_I2C_Read... [11:43:46]Read from MH i2c: F0 09 00 [11:43:46]MH_I2C_Read... [11:43:46]Read from MH i2c: F0 09 00 DF 4B 00 77 27 1E 67 50 D1 6C 64 36 [11:43:46]GetLastDocTimeStamp 1730029390 [11:43:46]current date 1730029431 [11:43:46]FM_GetShiftState [11:43:46]SAM_PROTO_GetShiftState [11:43:46]wFMCommunicate request_size=4 [11:43:46]MH_SAM_APDU [11:43:46]CAPDU: 80 13 01 00 [11:43:46]Write to MH i2c: E2 08 00 E0 4B 80 13 01 00 00 00 00 00 A8 [11:43:46]Write i2c OK [11:43:46]MH_I2C_Read... [11:43:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:46]Read from MH i2c: E2 [11:43:46]MH_I2C_Read... [11:43:46]Read from MH i2c: E2 0E 00 [11:43:46]MH_I2C_Read... [11:43:46]Read from MH i2c: E2 0E 00 E0 4B 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 75 [11:43:46]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [11:43:46]wFMCommunicate OK [11:43:46]SAM_PROTO_GetShiftState done [11:43:46]FM_GetShiftState done [11:43:46]opened in 1729989044 [11:43:46]opened+sec_in_day 1730075444 [11:43:46]quantity*price = 60045 [11:43:46]sum+1 = 60047 [11:43:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.46 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 0.00 Безнал.: 600.46 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 95 27.10.2024 11:43 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 156544 ФПД: 151680263585 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T114351&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156544&fm=151680263585&tin=02508201610067®Number=0000000000091693&sum=60046 [11:43:47]StoreToDocumentArchive [11:43:47]shift 537 fd 156544 [11:43:47]save to /storage/0537/doc_00156544 [11:43:47]save last doc name /storage/0537/doc_00156544 to /storage/kkm_last_doc_name [11:43:47]save OK [11:43:47]Clear old archive folders... [11:43:47]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:43:47]tlvbuf is 016FF420 [11:43:47]SAM_PROTO_ClearQueue [11:43:47]wFMCommunicate request_size=4 [11:43:47]MH_SAM_APDU [11:43:47]CAPDU: 80 09 00 00 [11:43:47]Write to MH i2c: E2 08 00 ED 4B 80 09 00 00 00 00 00 00 AA [11:43:47]Write i2c OK [11:43:47]MH_I2C_Read... [11:43:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:43:47]Read from MH i2c: E2 [11:43:47]MH_I2C_Read... [11:43:47]Read from MH i2c: E2 03 00 [11:43:47]MH_I2C_Read... [11:43:47]Read from MH i2c: E2 03 00 ED 4B 00 90 00 AC [11:43:47]RAPDU: 90 00 [11:43:47]wFMCommunicate OK [11:43:47]SAM_PROTO_ClearQueue done [11:43:47]KKMCreateOFDPacket [11:43:47]OFDProtocolAddRootSTLVToBuf [11:43:47]FM_MakeSignedData [11:43:47]FM_MakeSignedData [11:43:47]SAM_PROTO_SignData [11:43:47]wFMCommunicate request_size=4 [11:43:47]MH_SAM_APDU [11:43:47]CAPDU: 80 0D 01 02 [11:43:47]Write to MH i2c: E2 08 00 EE 4B 80 0D 01 02 00 00 00 00 B2 [11:43:47]Write i2c OK [11:43:47]MH_I2C_Read... [11:43:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:43:47]Read from MH i2c: E2 [11:43:47]MH_I2C_Read... [11:43:47]Read from MH i2c: E2 03 00 [11:43:47]MH_I2C_Read... [11:43:47]Read from MH i2c: E2 03 00 EE 4B 00 90 00 AD [11:43:47]RAPDU: 90 00 [11:43:47]wFMCommunicate OK [11:43:47]wFMCommunicate request_size=255 [11:43:47]MH_SAM_APDU [11:43:47]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8E 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 E9 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8E EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 77 27 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 80 63 02 00 35 04 06 00 00 23 50 D9 [11:43:47]Write to MH i2c: E2 02 01 EF 4B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8E 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 E9 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8E EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 77 27 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 80 63 02 00 35 04 06 00 00 23 50 D9 00 00 27 [11:43:47]Write i2c OK [11:43:47]MH_I2C_Read... [11:43:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:43:47]Read from MH i2c: E2 [11:43:47]MH_I2C_Read... [11:43:47]Read from MH i2c: E2 03 00 [11:43:47]MH_I2C_Read... [11:43:47]Read from MH i2c: E2 03 00 EF 4B 00 90 00 AE [11:43:47]RAPDU: 90 00 [11:43:47]wFMCommunicate OK [11:43:47]wFMCommunicate request_size=7 [11:43:47]MH_SAM_APDU [11:43:47]CAPDU: 80 0D 02 02 02 25 A1 [11:43:47]Write to MH i2c: E2 0A 00 F0 4B 80 0D 02 02 02 00 25 A1 00 00 7F [11:43:47]Write i2c OK [11:43:47]MH_I2C_Read... [11:43:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:43:48]Read from MH i2c: E2 [11:43:48]MH_I2C_Read... [11:43:48]Read from MH i2c: E2 03 00 [11:43:48]MH_I2C_Read... [11:43:48]Read from MH i2c: E2 03 00 F0 4B 00 90 00 AF [11:43:48]RAPDU: 90 00 [11:43:48]wFMCommunicate OK [11:43:48]wFMCommunicate request_size=4 [11:43:48]MH_SAM_APDU [11:43:48]CAPDU: 80 0D 03 02 [11:43:48]Write to MH i2c: E2 08 00 F1 4B 80 0D 03 02 00 00 00 00 B7 [11:43:48]Write i2c OK [11:43:48]MH_I2C_Read... [11:43:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:43:48]Read from MH i2c: E2 [11:43:48]MH_I2C_Read... [11:43:48]Read from MH i2c: E2 0B 00 [11:43:48]MH_I2C_Read... [11:43:48]Read from MH i2c: E2 0B 00 F1 4B 00 67 E9 F7 48 8D 52 35 FF 90 00 5A [11:43:48]RAPDU: 67 E9 F7 48 8D 52 35 FF 90 00 [11:43:48]wFMCommunicate OK [11:43:48]SAM_PROTO_SignData done [11:43:48]FM_MakeSignedData done [11:43:48]CreateOFDProtocolMessage [11:43:48]wFMCommunicate request_size=4 [11:43:48]MH_SAM_APDU [11:43:48]CAPDU: 80 11 00 00 [11:43:48]Write to MH i2c: E2 08 00 F2 4B 80 11 00 00 00 00 00 00 B7 [11:43:48]Write i2c OK [11:43:48]MH_I2C_Read... [11:43:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:48]Read from MH i2c: E2 [11:43:48]MH_I2C_Read... [11:43:48]Read from MH i2c: E2 17 00 [11:43:48]MH_I2C_Read... [11:43:48]Read from MH i2c: E2 17 00 F2 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 0C [11:43:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:43:48]wFMCommunicate OK [11:43:48]CreateOFDProtocolMessage done [11:43:48]OFDSenderStorePacket 156544 [11:43:48]StoreOFDPacket docnum=156544 [11:43:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 3D 48 04 01 6D A3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8E 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 E9 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8E EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 77 27 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 80 63 02 00 35 04 06 00 00 23 50 D9 25 A1 67 E9 F7 48 8D 52 35 FF [11:43:48]CheckFolder [11:43:48]dirname=/storage/ofd_packets [11:43:48]CheckFolder done [11:43:48]ProducePacketName [11:43:48]name=ofd_packets/00156544 [11:43:48]NVStorageSaveData ofd_packets/00156544 [11:43:48]File name is /storage/ofd_packets/00156544 [11:43:48]Write 298 bytes [11:43:48]NVStorageSaveData done [11:43:48]OFDSenderStorePacket done [11:43:48]KKMCreateOFDPacket done [11:43:48]NVStorageSaveData kkm_last_timestamp [11:43:48]File name is /storage/kkm_last_timestamp [11:43:48]Write 4 bytes [11:43:48]NVStorageSaveData done [11:43:48]ExternCall_PrintAddStr [11:43:48]wPrintStart [11:43:48]Write to MH i2c: 01 00 00 F3 4B 3E [11:43:48]Write i2c OK [11:43:48]MH_I2C_Read... [11:43:48]Read from MH i2c: 01 [11:43:48]MH_I2C_Read... [11:43:48]Read from MH i2c: 01 07 00 [11:43:48]MH_I2C_Read... [11:43:48]Read from MH i2c: 01 07 00 F3 4B 00 00 00 00 00 FF 0F 53 [11:43:48]RasterBufferAndPrint [11:43:48]line Счет N : (1)99358 [11:43:48]line ИНН: 02508201610067 [11:43:48]line Контрольно-Кассовый Чек [11:43:48]line ПРОДАЖА [11:43:48]line ТРК (МРК, ГНК) : 32 [11:43:48]line Товар: 2710194210 [11:43:48]line ДТ-К-5 [11:43:48]line 7.880 * 76.20 [11:43:48]line = 600.46 [11:43:48]line НДС 12% НСП 1% [11:43:48]line > о реализуемом товаре [11:43:48]line ИТОГО: 600.46 [11:43:48]line НСП 1% : 5.31 [11:43:48]line НДС 12% : 63.77 [11:43:48]line Наличными: 0.00 [11:43:48]line Безнал.: 600.46 [11:43:48]line Место: АЗС № 143 "Партнер Нефть" [11:43:48]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [11:43:48]line СНО: Общий режим [11:43:48]line Чек 95 27.10.2024 11:43 [11:43:48]line Смена: 537 ФФД: 1.0 [11:43:48]line ЗНМ: 0300000096 [11:43:48]line РНМ: 0000000000091693 [11:43:48]line Версия ККМ: 001 [11:43:48]line Платежная система: Mbank [11:43:48]line ФМ: 0000000000871792 [11:43:48]line ФД: 156544 [11:43:48]line ФПД: 151680263585 [11:43:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T114351&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156544&fm=151680263585&tin=02508201610067®Number=0000000000091693&sum=60046 [11:43:48]OFD Sender: Processing packet 156544 [packets to send 31, broken 30] [11:43:48]ProducePacketName [11:43:48]name=ofd_packets/00156544 [11:43:48]OFD Sender: To server: pG, [11:43:48]CommunicateWithHost lk.salyk.kg:30040 [11:43:48]ConnectInit lk.salyk.kg [11:43:48]written 0, free lines is 4095 [11:43:48]Connected sock=10 [11:43:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 3D 48 04 01 6D A3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8E 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 E9 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8E EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 77 27 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 80 63 02 00 35 04 06 00 00 23 50 D9 25 A1 67 E9 F7 48 8D 52 35 FF [11:43:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 D4 94 47 00 4A 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 31 37 39 32 10 04 04 00 80 63 02 00 F4 03 04 00 E7 CC 1D 67 B6 04 01 00 00 B9 76 E2 0A F6 18 CD 42 [11:43:48]CommunicateWithHost err = 0 [11:43:48]CheckOFDResponse [11:43:48]1017 (14) - 77093643461234 [11:43:48]1041 (16) - 0000000000871792 [11:43:48]1040 (4) - 156544 [11:43:48]1012 (4) - 27.10.2024 05:17 [11:43:48]1206 (1) - 0 [11:43:48]OFD Sender: Remove packet 156544 [11:43:48]ProducePacketName [11:43:48]name=ofd_packets/00156544 [11:43:48]NVStorageDeleteData [11:43:48]Write to MH i2c: 01 00 00 1C 4C 68 [11:43:48]Write i2c OK [11:43:48]MH_I2C_Read... [11:43:48]Read from MH i2c: 01 [11:43:48]MH_I2C_Read... [11:43:48]Read from MH i2c: 01 07 00 [11:43:48]MH_I2C_Read... [11:43:48]Read from MH i2c: 01 07 00 1C 4C 00 00 00 00 00 02 0D 7E [11:43:48]RasterBufferAndPrint [11:43:48]line [11:43:48]line [11:43:48]line [11:43:48]line [11:43:48]line [11:43:48]written 0, free lines is 3337 [11:43:48]process_action close_receipt done [11:43:48]requested_data is exist [11:43:48]produce_requested_data [11:43:48]requested_item fm.sn is exist - process it [11:43:48]wFMCommunicate request_size=4 [11:43:48]MH_SAM_APDU [11:43:48]CAPDU: 80 11 00 00 [11:43:48]Write to MH i2c: E2 08 00 23 4C 80 11 00 00 00 00 00 00 E9 [11:43:48]Write i2c OK [11:43:48]MH_I2C_Read... [11:43:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:48]Read from MH i2c: E2 [11:43:48]MH_I2C_Read... [11:43:48]Read from MH i2c: E2 17 00 [11:43:48]MH_I2C_Read... [11:43:48]Read from MH i2c: E2 17 00 23 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 3E [11:43:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:43:48]wFMCommunicate OK [11:43:48]requested_item fd.num is exist - process it [11:43:48]SAM_PROTO_GetFieldsCounters [11:43:48]wFMCommunicate request_size=4 [11:43:48]MH_SAM_APDU [11:43:48]CAPDU: 80 13 00 00 [11:43:48]Write to MH i2c: E2 08 00 24 4C 80 13 00 00 00 00 00 00 EC [11:43:48]Write i2c OK [11:43:48]MH_I2C_Read... [11:43:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:43:49]Read from MH i2c: E2 [11:43:49]MH_I2C_Read... [11:43:49]Read from MH i2c: E2 62 00 [11:43:49]MH_I2C_Read... [11:43:49]Read from MH i2c: E2 62 00 24 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 80 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 2F [11:43:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 80 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:43:49]wFMCommunicate OK [11:43:49]SAM_PROTO_GetFieldsCounters done [11:43:49]requested_item shift.num is exist - process it [11:43:49]requested_item shift.opened is exist - process it [11:43:49]req_shift_opened [11:43:49]FM_GetShiftState [11:43:49]SAM_PROTO_GetShiftState [11:43:49]wFMCommunicate request_size=4 [11:43:49]MH_SAM_APDU [11:43:49]CAPDU: 80 13 01 00 [11:43:49]Write to MH i2c: E2 08 00 25 4C 80 13 01 00 00 00 00 00 EE [11:43:49]Write i2c OK [11:43:49]MH_I2C_Read... [11:43:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:49]Read from MH i2c: E2 [11:43:49]MH_I2C_Read... [11:43:49]Read from MH i2c: E2 0E 00 [11:43:49]MH_I2C_Read... [11:43:49]Read from MH i2c: E2 0E 00 25 4C 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 BB [11:43:49]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [11:43:49]wFMCommunicate OK [11:43:49]SAM_PROTO_GetShiftState done [11:43:49]FM_GetShiftState done [11:43:49]req_shift_opened done [11:43:49]requested_item shift.open_date is exist - process it [11:43:49]req_shift_open_date [11:43:49]req_shift_open_date done [11:43:49]produce_requested_data done [11:43:49]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156544,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [11:43:49]process_action_free close_receipt [11:43:49]json_value_free [11:43:49]json_value_free done [11:43:49]process_json_proto returns [11:43:49]Send response to host [11:43:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156544,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [11:43:49]free response buf [11:43:49]execute_script done [11:43:49]execute_script returns [11:43:49]free content buf [11:43:49]Sock 9.Close socket [11:43:49]Sock 9.Thread stoped [11:43:49]OFD Sender: No OFD packet to send [11:43:54]OFD Sender: No OFD packet to send [11:43:59]OFD Sender: No OFD packet to send [11:44:04]OFD Sender: No OFD packet to send [11:44:09]OFD Sender: No OFD packet to send [11:44:14]OFD Sender: No OFD packet to send [11:44:19]OFD Sender: No OFD packet to send [11:44:24]OFD Sender: No OFD packet to send [11:44:29]OFD Sender: No OFD packet to send [11:44:34]OFD Sender: No OFD packet to send [11:44:39]OFD Sender: No OFD packet to send [11:44:44]OFD Sender: No OFD packet to send [11:44:49]OFD Sender: No OFD packet to send [11:44:54]OFD Sender: No OFD packet to send [11:44:59]OFD Sender: No OFD packet to send [11:45:04]OFD Sender: No OFD packet to send [11:45:09]OFD Sender: No OFD packet to send [11:45:14]OFD Sender: No OFD packet to send [11:45:19]OFD Sender: No OFD packet to send [11:45:24]OFD Sender: No OFD packet to send [11:45:29]OFD Sender: No OFD packet to send [11:45:34]OFD Sender: No OFD packet to send [11:45:39]OFD Sender: No OFD packet to send [11:45:44]OFD Sender: No OFD packet to send [11:45:49]OFD Sender: No OFD packet to send [11:45:54]OFD Sender: No OFD packet to send [11:45:59]OFD Sender: No OFD packet to send [11:46:04]OFD Sender: No OFD packet to send [11:46:09]OFD Sender: No OFD packet to send [11:46:14]OFD Sender: No OFD packet to send [11:46:19]OFD Sender: No OFD packet to send [11:46:24]OFD Sender: No OFD packet to send [11:46:29]OFD Sender: No OFD packet to send [11:46:30]accept exits with 8 [11:46:30]New connection [11:46:30]New thread 3066977636 created [11:46:30]Thread 3066834276 joined [11:46:30]Waiting for new connection... [11:46:30] Sock 8.Parse request [11:46:30]Sock 8.Check first char [11:46:30]Sock 8.First char is OK [11:46:30]request: POST /json_proto HTTP/1.0 [11:46:30]Method: POST [11:46:30]URL: /json_proto [11:46:30]Method is POST - this is cgi request [11:46:30]url: /json_proto [11:46:30]query_string will be loaded in cgi processing [11:46:30]execute_cgi json_proto POST (null) [11:46:30]execute_cgi path=json_proto method=POST [11:46:30]POST find Content-Length [11:46:30]Host: 172.17.63.3:8080 [11:46:30]Content-Length: 765 [11:46:30]Content-Type: application/json [11:46:30] [11:46:30]POST finish read [11:46:30]Found Content-Length = 765 [11:46:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99359", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:46:30]execute_script... [11:46: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)99359", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:46:30]POST & json_proto [11:46:30]process_json_proto [11:46:30]json parsed OK: [11:46:30]protocol is kg_v1.0 [11:46:30]action value=close_receipt [11:46:30]process_action close_receipt [11:46:30]cmd_close_receipt [11:46:30]MH_GetDate [11:46:30]Write to MH i2c: F0 00 00 26 4C 61 [11:46:30]Write i2c OK [11:46:30]MH_I2C_Read... [11:46:30]Read from MH i2c: F0 [11:46:30]MH_I2C_Read... [11:46:30]Read from MH i2c: F0 09 00 [11:46:30]MH_I2C_Read... [11:46:30]Read from MH i2c: F0 09 00 26 4C 00 1B 28 1E 67 50 D1 6C 64 23 [11:46:30]GetLastDocTimeStamp 1730029431 [11:46:30]current date 1730029595 [11:46:30]FM_GetShiftState [11:46:30]SAM_PROTO_GetShiftState [11:46:30]wFMCommunicate request_size=4 [11:46:30]MH_SAM_APDU [11:46:30]CAPDU: 80 13 01 00 [11:46:30]Write to MH i2c: E2 08 00 27 4C 80 13 01 00 00 00 00 00 F0 [11:46:30]Write i2c OK [11:46:30]MH_I2C_Read... [11:46:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:46:30]Read from MH i2c: E2 [11:46:30]MH_I2C_Read... [11:46:30]Read from MH i2c: E2 0E 00 [11:46:30]MH_I2C_Read... [11:46:30]Read from MH i2c: E2 0E 00 27 4C 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 BD [11:46:30]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [11:46:30]wFMCommunicate OK [11:46:30]SAM_PROTO_GetShiftState done [11:46:30]FM_GetShiftState done [11:46:30]opened in 1729989044 [11:46:30]opened+sec_in_day 1730075444 [11:46:30]quantity*price = 50041 [11:46:30]sum+1 = 50042 [11:46:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 96 27.10.2024 11:46 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 156545 ФПД: 118906540979412 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T114635&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156545&fm=118906540979412&tin=02508201610067®Number=0000000000091693&sum=50041 [11:46:31]StoreToDocumentArchive [11:46:31]shift 537 fd 156545 [11:46:31]save to /storage/0537/doc_00156545 [11:46:31]save last doc name /storage/0537/doc_00156545 to /storage/kkm_last_doc_name [11:46:31]save OK [11:46:31]Clear old archive folders... [11:46:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:46:31]tlvbuf is 016FF2F0 [11:46:31]SAM_PROTO_ClearQueue [11:46:31]wFMCommunicate request_size=4 [11:46:31]MH_SAM_APDU [11:46:31]CAPDU: 80 09 00 00 [11:46:31]Write to MH i2c: E2 08 00 34 4C 80 09 00 00 00 00 00 00 F2 [11:46:31]Write i2c OK [11:46:31]MH_I2C_Read... [11:46:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:46:31]Read from MH i2c: E2 [11:46:31]MH_I2C_Read... [11:46:31]Read from MH i2c: E2 03 00 [11:46:31]MH_I2C_Read... [11:46:31]Read from MH i2c: E2 03 00 34 4C 00 90 00 F4 [11:46:31]RAPDU: 90 00 [11:46:31]wFMCommunicate OK [11:46:31]SAM_PROTO_ClearQueue done [11:46:31]KKMCreateOFDPacket [11:46:31]OFDProtocolAddRootSTLVToBuf [11:46:31]FM_MakeSignedData [11:46:31]FM_MakeSignedData [11:46:31]SAM_PROTO_SignData [11:46:31]wFMCommunicate request_size=4 [11:46:31]MH_SAM_APDU [11:46:31]CAPDU: 80 0D 01 02 [11:46:31]Write to MH i2c: E2 08 00 35 4C 80 0D 01 02 00 00 00 00 FA [11:46:31]Write i2c OK [11:46:31]MH_I2C_Read... [11:46:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:46:31]Read from MH i2c: E2 [11:46:31]MH_I2C_Read... [11:46:31]Read from MH i2c: E2 03 00 [11:46:31]MH_I2C_Read... [11:46:31]Read from MH i2c: E2 03 00 35 4C 00 90 00 F5 [11:46:31]RAPDU: 90 00 [11:46:31]wFMCommunicate OK [11:46:31]wFMCommunicate request_size=255 [11:46:31]MH_SAM_APDU [11:46: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 1B 28 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 81 63 02 00 35 04 06 00 6C [11:46:31]Write to MH i2c: E2 02 01 36 4C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 1B 28 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 81 63 02 00 35 04 06 00 6C 00 00 75 [11:46:31]Write i2c OK [11:46:31]MH_I2C_Read... [11:46:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:31]Read from MH i2c: E2 [11:46:31]MH_I2C_Read... [11:46:31]Read from MH i2c: E2 03 00 [11:46:31]MH_I2C_Read... [11:46:31]Read from MH i2c: E2 03 00 36 4C 00 90 00 F6 [11:46:31]RAPDU: 90 00 [11:46:31]wFMCommunicate OK [11:46:31]wFMCommunicate request_size=10 [11:46:31]MH_SAM_APDU [11:46:31]CAPDU: 80 0D 02 02 05 25 16 22 F4 D4 [11:46:31]Write to MH i2c: E2 0D 00 37 4C 80 0D 02 02 05 00 25 16 22 F4 D4 00 00 2C [11:46:31]Write i2c OK [11:46:31]MH_I2C_Read... [11:46:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:31]Read from MH i2c: E2 [11:46:31]MH_I2C_Read... [11:46:31]Read from MH i2c: E2 03 00 [11:46:31]MH_I2C_Read... [11:46:31]Read from MH i2c: E2 03 00 37 4C 00 90 00 F7 [11:46:31]RAPDU: 90 00 [11:46:31]wFMCommunicate OK [11:46:31]wFMCommunicate request_size=4 [11:46:31]MH_SAM_APDU [11:46:31]CAPDU: 80 0D 03 02 [11:46:31]Write to MH i2c: E2 08 00 38 4C 80 0D 03 02 00 00 00 00 FF [11:46:31]Write i2c OK [11:46:31]MH_I2C_Read... [11:46:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:46:31]Read from MH i2c: E2 [11:46:31]MH_I2C_Read... [11:46:31]Read from MH i2c: E2 0B 00 [11:46:31]MH_I2C_Read... [11:46:31]Read from MH i2c: E2 0B 00 38 4C 00 79 09 FC 63 72 8C 90 25 90 00 94 [11:46:31]RAPDU: 79 09 FC 63 72 8C 90 25 90 00 [11:46:31]wFMCommunicate OK [11:46:31]SAM_PROTO_SignData done [11:46:31]FM_MakeSignedData done [11:46:31]CreateOFDProtocolMessage [11:46:31]wFMCommunicate request_size=4 [11:46:31]MH_SAM_APDU [11:46:31]CAPDU: 80 11 00 00 [11:46:31]Write to MH i2c: E2 08 00 39 4C 80 11 00 00 00 00 00 00 FF [11:46:31]Write i2c OK [11:46:31]MH_I2C_Read... [11:46:31]Read from MH i2c: E2 [11:46:31]MH_I2C_Read... [11:46:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:31]Read from MH i2c: E2 17 00 [11:46:31]MH_I2C_Read... [11:46:31]Read from MH i2c: E2 17 00 39 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 54 [11:46:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:46:31]wFMCommunicate OK [11:46:31]CreateOFDProtocolMessage done [11:46:31]OFDSenderStorePacket 156545 [11:46:31]StoreOFDPacket docnum=156545 [11:46:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 56 BA 07 01 09 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 1B 28 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 81 63 02 00 35 04 06 00 6C 25 16 22 F4 D4 79 09 FC 63 72 8C 90 25 [11:46:31]CheckFolder [11:46:31]dirname=/storage/ofd_packets [11:46:31]CheckFolder done [11:46:31]ProducePacketName [11:46:31]name=ofd_packets/00156545 [11:46:31]NVStorageSaveData ofd_packets/00156545 [11:46:31]File name is /storage/ofd_packets/00156545 [11:46:31]Write 301 bytes [11:46:31]NVStorageSaveData done [11:46:31]OFDSenderStorePacket done [11:46:31]KKMCreateOFDPacket done [11:46:31]NVStorageSaveData kkm_last_timestamp [11:46:31]File name is /storage/kkm_last_timestamp [11:46:31]Write 4 bytes [11:46:31]NVStorageSaveData done [11:46:31]ExternCall_PrintAddStr [11:46:31]wPrintStart [11:46:31]Write to MH i2c: 01 00 00 3A 4C 86 [11:46:31]Write i2c OK [11:46:31]MH_I2C_Read... [11:46:31]Read from MH i2c: 01 [11:46:31]MH_I2C_Read... [11:46:31]Read from MH i2c: 01 07 00 [11:46:31]MH_I2C_Read... [11:46:31]OFD Sender: Processing packet 156545 [packets to send 31, broken 30] [11:46:31]ProducePacketName [11:46:31]name=ofd_packets/00156545 [11:46:31]Read from MH i2c: 01 07 00 3A 4C 00 00 00 00 00 FF 0F 9B [11:46:31]RasterBufferAndPrint [11:46:31]line Счет N : (1)99359 [11:46:31]line ИНН: 02508201610067 [11:46:31]line Контрольно-Кассовый Чек [11:46:31]line ПРОДАЖА [11:46:31]line ТРК (МРК, ГНК) : 31 [11:46:31]line Товар: 2710124130 [11:46:31]line Аи-92-К-5 [11:46:31]line 7.480 * 66.90 [11:46:31]line = 500.41 [11:46:31]line НДС 12% НСП 1% [11:46:31]line > о реализуемом товаре [11:46:31]line ИТОГО: 500.41 [11:46:31]line НСП 1% : 4.43 [11:46:31]line НДС 12% : 53.14 [11:46:31]line Наличными: 0.00 [11:46:31]line Безнал.: 500.41 [11:46:31]line Место: АЗС № 143 "Партнер Нефть" [11:46:31]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [11:46:31]line СНО: Общий режим [11:46:31]line Чек 96 27.10.2024 11:46 [11:46:31]line Смена: 537 ФФД: 1.0 [11:46:31]line ЗНМ: 0300000096 [11:46:31]line РНМ: 0000000000091693 [11:46:31]line Версия ККМ: 001 [11:46:31]line Платежная система: Mbank [11:46:31]line ФМ: 0000000000871792 [11:46:31]line ФД: 156545 [11:46:31]line ФПД: 118906540979412 [11:46:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T114635&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156545&fm=118906540979412&tin=02508201610067®Number=0000000000091693&sum=50041 [11:46:31]OFD Sender: To server: pG, [11:46:31]CommunicateWithHost lk.salyk.kg:30040 [11:46:31]ConnectInit lk.salyk.kg [11:46:31]written 0, free lines is 4095 [11:46:32]Write to MH i2c: 01 00 00 63 4C AF [11:46:32]Write i2c OK [11:46:32]MH_I2C_Read... [11:46:32]Read from MH i2c: 01 [11:46:32]MH_I2C_Read... [11:46:32]Read from MH i2c: 01 07 00 [11:46:32]MH_I2C_Read... [11:46:32]Read from MH i2c: 01 07 00 63 4C 00 00 00 00 00 F8 0C BA [11:46:32]RasterBufferAndPrint [11:46:32]line [11:46:32]line [11:46:32]line [11:46:32]line [11:46:32]line [11:46:32]written 0, free lines is 3324 [11:46:32]process_action close_receipt done [11:46:32]requested_data is exist [11:46:32]produce_requested_data [11:46:32]requested_item fm.sn is exist - process it [11:46:32]wFMCommunicate request_size=4 [11:46:32]MH_SAM_APDU [11:46:32]CAPDU: 80 11 00 00 [11:46:32]Write to MH i2c: E2 08 00 6A 4C 80 11 00 00 00 00 00 00 30 [11:46:32]Write i2c OK [11:46:32]MH_I2C_Read... [11:46:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:32]Read from MH i2c: E2 [11:46:32]MH_I2C_Read... [11:46:32]Read from MH i2c: E2 17 00 [11:46:32]MH_I2C_Read... [11:46:32]Read from MH i2c: E2 17 00 6A 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 85 [11:46:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:46:32]wFMCommunicate OK [11:46:32]requested_item fd.num is exist - process it [11:46:32]SAM_PROTO_GetFieldsCounters [11:46:32]wFMCommunicate request_size=4 [11:46:32]MH_SAM_APDU [11:46:32]CAPDU: 80 13 00 00 [11:46:32]Write to MH i2c: E2 08 00 6B 4C 80 13 00 00 00 00 00 00 33 [11:46:32]Write i2c OK [11:46:32]MH_I2C_Read... [11:46:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:46:32]Read from MH i2c: E2 [11:46:32]MH_I2C_Read... [11:46:32]Read from MH i2c: E2 62 00 [11:46:32]MH_I2C_Read... [11:46:32]Read from MH i2c: E2 62 00 6B 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 81 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 7A [11:46:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 81 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:46:32]wFMCommunicate OK [11:46:32]SAM_PROTO_GetFieldsCounters done [11:46:32]requested_item shift.num is exist - process it [11:46:32]requested_item shift.opened is exist - process it [11:46:32]req_shift_opened [11:46:32]FM_GetShiftState [11:46:32]SAM_PROTO_GetShiftState [11:46:32]wFMCommunicate request_size=4 [11:46:32]MH_SAM_APDU [11:46:32]CAPDU: 80 13 01 00 [11:46:32]Write to MH i2c: E2 08 00 6C 4C 80 13 01 00 00 00 00 00 35 [11:46:32]Write i2c OK [11:46:32]MH_I2C_Read... [11:46:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:46:32]Read from MH i2c: E2 [11:46:32]MH_I2C_Read... [11:46:32]Read from MH i2c: E2 0E 00 [11:46:32]MH_I2C_Read... [11:46:32]Read from MH i2c: E2 0E 00 6C 4C 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 02 [11:46:32]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [11:46:32]wFMCommunicate OK [11:46:32]SAM_PROTO_GetShiftState done [11:46:32]FM_GetShiftState done [11:46:32]req_shift_opened done [11:46:32]requested_item shift.open_date is exist - process it [11:46:32]req_shift_open_date [11:46:32]req_shift_open_date done [11:46:32]produce_requested_data done [11:46:32]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156545,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [11:46:32]process_action_free close_receipt [11:46:32]json_value_free [11:46:32]json_value_free done [11:46:32]process_json_proto returns [11:46:32]Send response to host [11:46:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156545,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [11:46:32]free response buf [11:46:32]execute_script done [11:46:32]execute_script returns [11:46:32]free content buf [11:46:32]Sock 8.Close socket [11:46:32]Sock 8.Thread stoped [11:48:30]accept exits with 9 [11:48:30]New connection [11:48:30]New thread 3066834276 created [11:48:30]Thread 3066977636 joined [11:48:30]Waiting for new connection... [11:48:30] Sock 9.Parse request [11:48:30]Sock 9.Check first char [11:48:30]Sock 9.First char is OK [11:48:30]request: POST /json_proto HTTP/1.0 [11:48:30]Method: POST [11:48:30]URL: /json_proto [11:48:30]Method is POST - this is cgi request [11:48:30]url: /json_proto [11:48:30]query_string will be loaded in cgi processing [11:48:30]execute_cgi json_proto POST (null) [11:48:30]execute_cgi path=json_proto method=POST [11:48:30]POST find Content-Length [11:48:30]Host: 172.17.63.3:8080 [11:48:30]Content-Length: 676 [11:48:30]Content-Type: application/json [11:48:30] [11:48:30]POST finish read [11:48:30]Found Content-Length = 676 [11:48:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99360", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:30]execute_script... [11: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)99360", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:30]POST & json_proto [11:48:30]process_json_proto [11:48:30]json parsed OK: [11:48:30]protocol is kg_v1.0 [11:48:30]action value=close_receipt [11:48:30]process_action close_receipt [11:48:30]cmd_close_receipt [11:48:30]MH_GetDate [11:48:30]Write to MH i2c: F0 00 00 6D 4C A8 [11:48:30]Write i2c OK [11:48:30]MH_I2C_Read... [11:48:30]Read from MH i2c: F0 [11:48:30]MH_I2C_Read... [11:48:30]Read from MH i2c: F0 09 00 [11:48:30]MH_I2C_Read... [11:48:30]Read from MH i2c: F0 09 00 6D 4C 00 94 28 1E 67 50 D1 6C 64 E3 [11:48:30]GetLastDocTimeStamp 1730029595 [11:48:30]current date 1730029716 [11:48:30]FM_GetShiftState [11:48:30]SAM_PROTO_GetShiftState [11:48:30]wFMCommunicate request_size=4 [11:48:30]MH_SAM_APDU [11:48:30]CAPDU: 80 13 01 00 [11:48:30]Write to MH i2c: E2 08 00 6E 4C 80 13 01 00 00 00 00 00 37 [11:48:30]Write i2c OK [11:48:30]MH_I2C_Read... [11:48:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:30]Read from MH i2c: E2 [11:48:30]MH_I2C_Read... [11:48:30]Read from MH i2c: E2 0E 00 [11:48:30]MH_I2C_Read... [11:48:30]Read from MH i2c: E2 0E 00 6E 4C 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 04 [11:48:30]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [11:48:30]wFMCommunicate OK [11:48:30]SAM_PROTO_GetShiftState done [11:48:30]FM_GetShiftState done [11:48:30]opened in 1729989044 [11:48:30]opened+sec_in_day 1730075444 [11:48:30]quantity*price = 20003 [11:48:30]sum+1 = 20004 [11:48:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 97 27.10.2024 11:48 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156546 ФПД: 236932497903768 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T114836&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156546&fm=236932497903768&tin=02508201610067®Number=0000000000091693&sum=20000 [11:48:31]StoreToDocumentArchive [11:48:31]shift 537 fd 156546 [11:48:31]save to /storage/0537/doc_00156546 [11:48:31]save last doc name /storage/0537/doc_00156546 to /storage/kkm_last_doc_name [11:48:31]save OK [11:48:31]Clear old archive folders... [11:48:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:48:31]tlvbuf is 017540A0 [11:48:31]SAM_PROTO_ClearQueue [11:48:31]wFMCommunicate request_size=4 [11:48:31]MH_SAM_APDU [11:48:31]CAPDU: 80 09 00 00 [11:48:31]Write to MH i2c: E2 08 00 7B 4C 80 09 00 00 00 00 00 00 39 [11:48:31]Write i2c OK [11:48:31]MH_I2C_Read... [11:48:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:48:31]Read from MH i2c: E2 [11:48:31]MH_I2C_Read... [11:48:31]Read from MH i2c: E2 03 00 [11:48:31]MH_I2C_Read... [11:48:31]Read from MH i2c: E2 03 00 7B 4C 00 90 00 3B [11:48:31]RAPDU: 90 00 [11:48:31]wFMCommunicate OK [11:48:31]SAM_PROTO_ClearQueue done [11:48:31]KKMCreateOFDPacket [11:48:31]OFDProtocolAddRootSTLVToBuf [11:48:31]FM_MakeSignedData [11:48:31]FM_MakeSignedData [11:48:31]SAM_PROTO_SignData [11:48:31]wFMCommunicate request_size=4 [11:48:31]MH_SAM_APDU [11:48:31]CAPDU: 80 0D 01 02 [11:48:31]Write to MH i2c: E2 08 00 7C 4C 80 0D 01 02 00 00 00 00 41 [11:48:31]Write i2c OK [11:48:31]MH_I2C_Read... [11:48:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:48:31]Read from MH i2c: E2 [11:48:31]MH_I2C_Read... [11:48:31]Read from MH i2c: E2 03 00 [11:48:31]MH_I2C_Read... [11:48:31]Read from MH i2c: E2 03 00 7C 4C 00 90 00 3C [11:48:31]RAPDU: 90 00 [11:48:31]wFMCommunicate OK [11:48:31]wFMCommunicate request_size=255 [11:48:31]MH_SAM_APDU [11:48: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 61 00 00 00 F4 03 04 00 94 28 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 82 63 02 00 35 04 06 00 D7 [11:48:31]Write to MH i2c: E2 02 01 7D 4C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 61 00 00 00 F4 03 04 00 94 28 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 82 63 02 00 35 04 06 00 D7 00 00 12 [11:48:31]Write i2c OK [11:48:31]MH_I2C_Read... [11:48:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:32]Read from MH i2c: E2 [11:48:32]MH_I2C_Read... [11:48:32]Read from MH i2c: E2 03 00 [11:48:32]MH_I2C_Read... [11:48:32]Read from MH i2c: E2 03 00 7D 4C 00 90 00 3D [11:48:32]RAPDU: 90 00 [11:48:32]wFMCommunicate OK [11:48:32]wFMCommunicate request_size=10 [11:48:32]MH_SAM_APDU [11:48:32]CAPDU: 80 0D 02 02 05 7D 25 5F 90 98 [11:48:32]Write to MH i2c: E2 0D 00 7E 4C 80 0D 02 02 05 00 7D 25 5F 90 98 00 00 77 [11:48:32]Write i2c OK [11:48:32]MH_I2C_Read... [11:48:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:32]Read from MH i2c: E2 [11:48:32]MH_I2C_Read... [11:48:32]Read from MH i2c: E2 03 00 [11:48:32]MH_I2C_Read... [11:48:32]Read from MH i2c: E2 03 00 7E 4C 00 90 00 3E [11:48:32]RAPDU: 90 00 [11:48:32]wFMCommunicate OK [11:48:32]wFMCommunicate request_size=4 [11:48:32]MH_SAM_APDU [11:48:32]CAPDU: 80 0D 03 02 [11:48:32]Write to MH i2c: E2 08 00 7F 4C 80 0D 03 02 00 00 00 00 46 [11:48:32]Write i2c OK [11:48:32]MH_I2C_Read... [11:48:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:48:32]Read from MH i2c: E2 [11:48:32]MH_I2C_Read... [11:48:32]Read from MH i2c: E2 0B 00 [11:48:32]MH_I2C_Read... [11:48:32]Read from MH i2c: E2 0B 00 7F 4C 00 49 09 86 BD 50 43 ED DD 90 00 39 [11:48:32]RAPDU: 49 09 86 BD 50 43 ED DD 90 00 [11:48:32]wFMCommunicate OK [11:48:32]SAM_PROTO_SignData done [11:48:32]FM_MakeSignedData done [11:48:32]CreateOFDProtocolMessage [11:48:32]wFMCommunicate request_size=4 [11:48:32]MH_SAM_APDU [11:48:32]CAPDU: 80 11 00 00 [11:48:32]Write to MH i2c: E2 08 00 80 4C 80 11 00 00 00 00 00 00 46 [11:48:32]Write i2c OK [11:48:32]MH_I2C_Read... [11:48:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:32]Read from MH i2c: E2 [11:48:32]MH_I2C_Read... [11:48:32]Read from MH i2c: E2 17 00 [11:48:32]MH_I2C_Read... [11:48:32]Read from MH i2c: E2 17 00 80 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 9B [11:48:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:48:32]wFMCommunicate OK [11:48:32]CreateOFDProtocolMessage done [11:48:32]OFDSenderStorePacket 156546 [11:48:32]StoreOFDPacket docnum=156546 [11:48:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 1F E8 07 01 8A 8B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 61 00 00 00 F4 03 04 00 94 28 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 82 63 02 00 35 04 06 00 D7 7D 25 5F 90 98 49 09 86 BD 50 43 ED DD [11:48:32]CheckFolder [11:48:32]dirname=/storage/ofd_packets [11:48:32]CheckFolder done [11:48:32]ProducePacketName [11:48:32]name=ofd_packets/00156546 [11:48:32]NVStorageSaveData ofd_packets/00156546 [11:48:32]File name is /storage/ofd_packets/00156546 [11:48:32]Write 301 bytes [11:48:32]NVStorageSaveData done [11:48:32]OFDSenderStorePacket done [11:48:32]KKMCreateOFDPacket done [11:48:32]NVStorageSaveData kkm_last_timestamp [11:48:32]File name is /storage/kkm_last_timestamp [11:48:32]Write 4 bytes [11:48:32]NVStorageSaveData done [11:48:32]ExternCall_PrintAddStr [11:48:32]wPrintStart [11:48:32]Write to MH i2c: 01 00 00 81 4C CD [11:48:32]Write i2c OK [11:48:32]MH_I2C_Read... [11:48:32]Read from MH i2c: 01 [11:48:32]MH_I2C_Read... [11:48:32]Read from MH i2c: 01 07 00 [11:48:32]MH_I2C_Read... [11:48:32]Read from MH i2c: 01 07 00 81 4C 00 00 00 00 00 FF 0F E2 [11:48:32]RasterBufferAndPrint [11:48:32]line Счет N : (1)99360 [11:48:32]line ИНН: 02508201610067 [11:48:32]line Контрольно-Кассовый Чек [11:48:32]line ПРОДАЖА [11:48:32]line ТРК (МРК, ГНК) : 31 [11:48:32]line Товар: 2710124130 [11:48:32]line Аи-92-К-5 [11:48:32]line 2.990 * 66.90 [11:48:32]line = 200.03 [11:48:32]line НДС 12% НСП 1% [11:48:32]line > о реализуемом товаре [11:48:32]line ОКРУГЛЕНИЕ: -0.03 [11:48:32]line ИТОГО: 200.00 [11:48:32]line Внесено: 200.00 [11:48:32]line СДАЧА: 0.00 [11:48:32]line НСП 1% : 1.77 [11:48:32]line НДС 12% : 21.24 [11:48:32]line Наличными: 200.00 [11:48:32]line Безнал.: 0.00 [11:48:32]line Место: АЗС № 143 "Партнер Нефть" [11:48:32]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [11:48:32]line СНО: Общий режим [11:48:32]line Чек 97 27.10.2024 11:48 [11:48:32]line Смена: 537 ФФД: 1.0 [11:48:32]line ЗНМ: 0300000096 [11:48:32]line РНМ: 0000000000091693 [11:48:32]line Версия ККМ: 001 [11:48:32]line ФМ: 0000000000871792 [11:48:32]line ФД: 156546 [11:48:32]line ФПД: 236932497903768 [11:48:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T114836&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156546&fm=236932497903768&tin=02508201610067®Number=0000000000091693&sum=20000 [11:48:32]written 0, free lines is 4095 [11:48:33]Write to MH i2c: 01 00 00 AC 4C F8 [11:48:33]Write i2c OK [11:48:33]MH_I2C_Read... [11:48:33]Read from MH i2c: 01 [11:48:33]MH_I2C_Read... [11:48:33]Read from MH i2c: 01 07 00 [11:48:33]MH_I2C_Read... [11:48:33]Read from MH i2c: 01 07 00 AC 4C 00 00 00 00 00 DA 0C E5 [11:48:33]RasterBufferAndPrint [11:48:33]line [11:48:33]line [11:48:33]line [11:48:33]line [11:48:33]line [11:48:33]written 0, free lines is 3294 [11:48:33]process_action close_receipt done [11:48:33]requested_data is exist [11:48:33]produce_requested_data [11:48:33]requested_item fm.sn is exist - process it [11:48:33]wFMCommunicate request_size=4 [11:48:33]MH_SAM_APDU [11:48:33]CAPDU: 80 11 00 00 [11:48:33]Write to MH i2c: E2 08 00 B3 4C 80 11 00 00 00 00 00 00 79 [11:48:33]Write i2c OK [11:48:33]MH_I2C_Read... [11:48:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:33]Read from MH i2c: E2 [11:48:33]MH_I2C_Read... [11:48:33]Read from MH i2c: E2 17 00 [11:48:33]MH_I2C_Read... [11:48:33]Read from MH i2c: E2 17 00 B3 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 CE [11:48:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:48:33]wFMCommunicate OK [11:48:33]requested_item fd.num is exist - process it [11:48:33]SAM_PROTO_GetFieldsCounters [11:48:33]wFMCommunicate request_size=4 [11:48:33]MH_SAM_APDU [11:48:33]CAPDU: 80 13 00 00 [11:48:33]Write to MH i2c: E2 08 00 B4 4C 80 13 00 00 00 00 00 00 7C [11:48:33]Write i2c OK [11:48:33]MH_I2C_Read... [11:48:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:48:33]Read from MH i2c: E2 [11:48:33]MH_I2C_Read... [11:48:33]Read from MH i2c: E2 62 00 [11:48:33]MH_I2C_Read... [11:48:33]Read from MH i2c: E2 62 00 B4 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 82 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 C7 [11:48:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 82 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:48:33]wFMCommunicate OK [11:48:33]SAM_PROTO_GetFieldsCounters done [11:48:33]requested_item shift.num is exist - process it [11:48:33]requested_item shift.opened is exist - process it [11:48:33]req_shift_opened [11:48:33]FM_GetShiftState [11:48:33]SAM_PROTO_GetShiftState [11:48:33]wFMCommunicate request_size=4 [11:48:33]MH_SAM_APDU [11:48:33]CAPDU: 80 13 01 00 [11:48:33]Write to MH i2c: E2 08 00 B5 4C 80 13 01 00 00 00 00 00 7E [11:48:33]Write i2c OK [11:48:33]MH_I2C_Read... [11:48:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:33]Read from MH i2c: E2 [11:48:33]MH_I2C_Read... [11:48:33]Read from MH i2c: E2 0E 00 [11:48:33]MH_I2C_Read... [11:48:33]Read from MH i2c: E2 0E 00 B5 4C 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 4B [11:48:33]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [11:48:33]wFMCommunicate OK [11:48:33]SAM_PROTO_GetShiftState done [11:48:33]FM_GetShiftState done [11:48:33]req_shift_opened done [11:48:33]requested_item shift.open_date is exist - process it [11:48:33]req_shift_open_date [11:48:33]req_shift_open_date done [11:48:33]produce_requested_data done [11:48:33]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156546,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [11:48:33]process_action_free close_receipt [11:48:33]json_value_free [11:48:33]json_value_free done [11:48:33]process_json_proto returns [11:48:33]Send response to host [11:48:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156546,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [11:48:33]free response buf [11:48:33]execute_script done [11:48:33]execute_script returns [11:48:33]free content buf [11:48:33]Sock 9.Close socket [11:48:33]Sock 9.Thread stoped [11:48:41]ConnectInit Can't connect to host [11:48:41]CommunicateWithHost connect error [11:48:41]CommunicateWithHost err = -1 [11:48:41]OFD Sender: Server communicate error [11:48:41]OFD Sender: Processing packet 156545 [packets to send 32, broken 30] [11:48:41]ProducePacketName [11:48:41]name=ofd_packets/00156545 [11:48:41]OFD Sender: To server: pG, [11:48:41]CommunicateWithHost lk.salyk.kg:30040 [11:48:41]ConnectInit lk.salyk.kg [11:48:41]Connected sock=9 [11:48:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 56 BA 07 01 09 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 1B 28 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 81 63 02 00 35 04 06 00 6C 25 16 22 F4 D4 79 09 FC 63 72 8C 90 25 [11:48:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 94 4B 47 00 40 17 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 81 63 02 00 F4 03 04 00 0C CE 1D 67 B6 04 01 00 00 0C C9 B0 67 A5 21 7F F6 [11:48:41]CommunicateWithHost err = 0 [11:48:41]CheckOFDResponse [11:48:41]1017 (14) - 77093643461234 [11:48:41]1041 (16) - 0000000000871792 [11:48:41]1040 (4) - 156545 [11:48:41]1012 (4) - 27.10.2024 05:22 [11:48:41]1206 (1) - 0 [11:48:41]OFD Sender: Remove packet 156545 [11:48:41]ProducePacketName [11:48:41]name=ofd_packets/00156545 [11:48:41]NVStorageDeleteData [11:48:42]OFD Sender: Processing packet 156546 [packets to send 31, broken 30] [11:48:42]ProducePacketName [11:48:42]name=ofd_packets/00156546 [11:48:42]OFD Sender: To server: pG, [11:48:42]CommunicateWithHost lk.salyk.kg:30040 [11:48:42]ConnectInit lk.salyk.kg [11:48:42]Connected sock=9 [11:48:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 1F E8 07 01 8A 8B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 61 00 00 00 F4 03 04 00 94 28 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 82 63 02 00 35 04 06 00 D7 7D 25 5F 90 98 49 09 86 BD 50 43 ED DD [11:48:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 27 20 47 00 C8 4D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 82 63 02 00 F4 03 04 00 0D CE 1D 67 B6 04 01 00 00 01 ED 62 D2 B7 6F 8C BC [11:48:42]CommunicateWithHost err = 0 [11:48:42]CheckOFDResponse [11:48:42]1017 (14) - 77093643461234 [11:48:42]1041 (16) - 0000000000871792 [11:48:42]1040 (4) - 156546 [11:48:42]1012 (4) - 27.10.2024 05:22 [11:48:42]1206 (1) - 0 [11:48:42]OFD Sender: Remove packet 156546 [11:48:42]ProducePacketName [11:48:42]name=ofd_packets/00156546 [11:48:42]NVStorageDeleteData [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: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:48]OFD Sender: No OFD packet to send [11:49:53]OFD Sender: No OFD packet to send [11:49:58]OFD Sender: No OFD packet to send [11:50:03]OFD Sender: No OFD packet to send [11:50:08]OFD Sender: No OFD packet to send [11:50:13]OFD Sender: No OFD packet to send [11:50:18]OFD Sender: No OFD packet to send [11:50:23]OFD Sender: No OFD packet to send [11:50:28]OFD Sender: No OFD packet to send [11:50:33]OFD Sender: No OFD packet to send [11:50:38]OFD Sender: No OFD packet to send [11:50:43]OFD Sender: No OFD packet to send [11:50:48]OFD Sender: No OFD packet to send [11:50:53]OFD Sender: No OFD packet to send [11:50:58]OFD Sender: No OFD packet to send [11:51:03]OFD Sender: No OFD packet to send [11:51:08]OFD Sender: No OFD packet to send [11:51:13]OFD Sender: No OFD packet to send [11:51:18]OFD Sender: No OFD packet to send [11:51:23]OFD Sender: No OFD packet to send [11:51:28]OFD Sender: No OFD packet to send [11:51:33]OFD Sender: No OFD packet to send [11:51:38]OFD Sender: No OFD packet to send [11:51:43]OFD Sender: No OFD packet to send [11:51:45]ConnectInit Can't connect to host [11:51:48]OFD Sender: No OFD packet to send [11:51:53]OFD Sender: No OFD packet to send [11:51:55]accept exits with 8 [11:51:55]New connection [11:51:55]New thread 3066977636 created [11:51:55]Thread 3066834276 joined [11:51:55]Waiting for new connection... [11:51:55] Sock 8.Parse request [11:51:55]Sock 8.Check first char [11:51:55]Sock 8.First char is OK [11:51:55]request: POST /json_proto HTTP/1.0 [11:51:55]Method: POST [11:51:55]URL: /json_proto [11:51:55]Method is POST - this is cgi request [11:51:55]url: /json_proto [11:51:55]query_string will be loaded in cgi processing [11:51:55]execute_cgi json_proto POST (null) [11:51:55]execute_cgi path=json_proto method=POST [11:51:55]POST find Content-Length [11:51:55]Host: 172.17.63.3:8080 [11:51:55]Content-Length: 676 [11:51:55]Content-Type: application/json [11:51:55] [11:51:55]POST finish read [11:51:55]Found Content-Length = 676 [11:51:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99361", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:51:55]execute_script... [11:51: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)99361", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:51:55]POST & json_proto [11:51:55]process_json_proto [11:51:55]json parsed OK: [11:51:55]protocol is kg_v1.0 [11:51:55]action value=close_receipt [11:51:55]process_action close_receipt [11:51:55]cmd_close_receipt [11:51:55]MH_GetDate [11:51:55]Write to MH i2c: F0 00 00 B6 4C F1 [11:51:55]Write i2c OK [11:51:55]MH_I2C_Read... [11:51:55]Read from MH i2c: F0 [11:51:55]MH_I2C_Read... [11:51:55]Read from MH i2c: F0 09 00 [11:51:55]MH_I2C_Read... [11:51:55]Read from MH i2c: F0 09 00 B6 4C 00 61 29 1E 67 50 D1 6C 64 FA [11:51:55]GetLastDocTimeStamp 1730029716 [11:51:55]current date 1730029921 [11:51:55]FM_GetShiftState [11:51:55]SAM_PROTO_GetShiftState [11:51:55]wFMCommunicate request_size=4 [11:51:55]MH_SAM_APDU [11:51:55]CAPDU: 80 13 01 00 [11:51:55]Write to MH i2c: E2 08 00 B7 4C 80 13 01 00 00 00 00 00 80 [11:51:55]Write i2c OK [11:51:55]MH_I2C_Read... [11:51:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:51:55]Read from MH i2c: E2 [11:51:55]MH_I2C_Read... [11:51:55]Read from MH i2c: E2 0E 00 [11:51:55]MH_I2C_Read... [11:51:55]Read from MH i2c: E2 0E 00 B7 4C 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 4D [11:51:55]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [11:51:55]wFMCommunicate OK [11:51:55]SAM_PROTO_GetShiftState done [11:51:55]FM_GetShiftState done [11:51:55]opened in 1729989044 [11:51:55]opened+sec_in_day 1730075444 [11:51:55]quantity*price = 50041 [11:51:55]sum+1 = 50042 [11:51:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 98 27.10.2024 11:52 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156547 ФПД: 253210548173736 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T115201&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156547&fm=253210548173736&tin=02508201610067®Number=0000000000091693&sum=50000 [11:51:56]StoreToDocumentArchive [11:51:56]shift 537 fd 156547 [11:51:56]save to /storage/0537/doc_00156547 [11:51:56]save last doc name /storage/0537/doc_00156547 to /storage/kkm_last_doc_name [11:51:56]save OK [11:51:56]Clear old archive folders... [11:51:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:51:56]tlvbuf is 01680F10 [11:51:56]SAM_PROTO_ClearQueue [11:51:56]wFMCommunicate request_size=4 [11:51:56]MH_SAM_APDU [11:51:56]CAPDU: 80 09 00 00 [11:51:56]Write to MH i2c: E2 08 00 C4 4C 80 09 00 00 00 00 00 00 82 [11:51:56]Write i2c OK [11:51:56]MH_I2C_Read... [11:51:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:51:56]Read from MH i2c: E2 [11:51:56]MH_I2C_Read... [11:51:56]Read from MH i2c: E2 03 00 [11:51:56]MH_I2C_Read... [11:51:56]Read from MH i2c: E2 03 00 C4 4C 00 90 00 84 [11:51:56]RAPDU: 90 00 [11:51:56]wFMCommunicate OK [11:51:56]SAM_PROTO_ClearQueue done [11:51:56]KKMCreateOFDPacket [11:51:56]OFDProtocolAddRootSTLVToBuf [11:51:56]FM_MakeSignedData [11:51:56]FM_MakeSignedData [11:51:56]SAM_PROTO_SignData [11:51:56]wFMCommunicate request_size=4 [11:51:56]MH_SAM_APDU [11:51:56]CAPDU: 80 0D 01 02 [11:51:56]Write to MH i2c: E2 08 00 C5 4C 80 0D 01 02 00 00 00 00 8A [11:51:56]Write i2c OK [11:51:56]MH_I2C_Read... [11:51:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:51:56]Read from MH i2c: E2 [11:51:56]MH_I2C_Read... [11:51:56]Read from MH i2c: E2 03 00 [11:51:56]MH_I2C_Read... [11:51:56]Read from MH i2c: E2 03 00 C5 4C 00 90 00 85 [11:51:56]RAPDU: 90 00 [11:51:56]wFMCommunicate OK [11:51:56]wFMCommunicate request_size=255 [11:51:56]MH_SAM_APDU [11:51: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 61 29 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 83 63 02 00 35 04 06 00 E6 [11:51:56]Write to MH i2c: E2 02 01 C6 4C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 61 29 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 83 63 02 00 35 04 06 00 E6 00 00 78 [11:51:56]Write i2c OK [11:51:56]MH_I2C_Read... [11:51:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:51:57]Read from MH i2c: E2 [11:51:57]MH_I2C_Read... [11:51:57]Read from MH i2c: E2 03 00 [11:51:57]MH_I2C_Read... [11:51:57]Read from MH i2c: E2 03 00 C6 4C 00 90 00 86 [11:51:57]RAPDU: 90 00 [11:51:57]wFMCommunicate OK [11:51:57]wFMCommunicate request_size=10 [11:51:57]MH_SAM_APDU [11:51:57]CAPDU: 80 0D 02 02 05 4B 2C C6 FB A8 [11:51:57]Write to MH i2c: E2 0D 00 C7 4C 80 0D 02 02 05 00 4B 2C C6 FB A8 00 00 77 [11:51:57]Write i2c OK [11:51:57]MH_I2C_Read... [11:51:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:51:57]Read from MH i2c: E2 [11:51:57]MH_I2C_Read... [11:51:57]Read from MH i2c: E2 03 00 [11:51:57]MH_I2C_Read... [11:51:57]Read from MH i2c: E2 03 00 C7 4C 00 90 00 87 [11:51:57]RAPDU: 90 00 [11:51:57]wFMCommunicate OK [11:51:57]wFMCommunicate request_size=4 [11:51:57]MH_SAM_APDU [11:51:57]CAPDU: 80 0D 03 02 [11:51:57]Write to MH i2c: E2 08 00 C8 4C 80 0D 03 02 00 00 00 00 8F [11:51:57]Write i2c OK [11:51:57]MH_I2C_Read... [11:51:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:51:57]Read from MH i2c: E2 [11:51:57]MH_I2C_Read... [11:51:57]Read from MH i2c: E2 0B 00 [11:51:57]MH_I2C_Read... [11:51:57]Read from MH i2c: E2 0B 00 C8 4C 00 B6 BB C8 B3 E9 0D F0 16 90 00 78 [11:51:57]RAPDU: B6 BB C8 B3 E9 0D F0 16 90 00 [11:51:57]wFMCommunicate OK [11:51:57]SAM_PROTO_SignData done [11:51:57]FM_MakeSignedData done [11:51:57]CreateOFDProtocolMessage [11:51:57]wFMCommunicate request_size=4 [11:51:57]MH_SAM_APDU [11:51:57]CAPDU: 80 11 00 00 [11:51:57]Write to MH i2c: E2 08 00 C9 4C 80 11 00 00 00 00 00 00 8F [11:51:57]Write i2c OK [11:51:57]MH_I2C_Read... [11:51:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:51:57]Read from MH i2c: E2 [11:51:57]MH_I2C_Read... [11:51:57]Read from MH i2c: E2 17 00 [11:51:57]MH_I2C_Read... [11:51:57]Read from MH i2c: E2 17 00 C9 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 E4 [11:51:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:51:57]wFMCommunicate OK [11:51:57]CreateOFDProtocolMessage done [11:51:57]OFDSenderStorePacket 156547 [11:51:57]StoreOFDPacket docnum=156547 [11:51:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 28 23 07 01 54 AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 61 29 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 83 63 02 00 35 04 06 00 E6 4B 2C C6 FB A8 B6 BB C8 B3 E9 0D F0 16 [11:51:57]CheckFolder [11:51:57]dirname=/storage/ofd_packets [11:51:57]CheckFolder done [11:51:57]ProducePacketName [11:51:57]name=ofd_packets/00156547 [11:51:57]NVStorageSaveData ofd_packets/00156547 [11:51:57]File name is /storage/ofd_packets/00156547 [11:51:57]Write 301 bytes [11:51:57]NVStorageSaveData done [11:51:57]OFDSenderStorePacket done [11:51:57]KKMCreateOFDPacket done [11:51:57]NVStorageSaveData kkm_last_timestamp [11:51:57]File name is /storage/kkm_last_timestamp [11:51:57]Write 4 bytes [11:51:57]NVStorageSaveData done [11:51:57]ExternCall_PrintAddStr [11:51:57]wPrintStart [11:51:57]Write to MH i2c: 01 00 00 CA 4C 16 [11:51:57]Write i2c OK [11:51:57]MH_I2C_Read... [11:51:57]Read from MH i2c: 01 [11:51:57]MH_I2C_Read... [11:51:57]Read from MH i2c: 01 07 00 [11:51:57]MH_I2C_Read... [11:51:57]Read from MH i2c: 01 07 00 CA 4C 00 00 00 00 00 FF 0F 2B [11:51:57]RasterBufferAndPrint [11:51:57]line Счет N : (1)99361 [11:51:57]line ИНН: 02508201610067 [11:51:57]line Контрольно-Кассовый Чек [11:51:57]line ПРОДАЖА [11:51:57]line ТРК (МРК, ГНК) : 11 [11:51:57]line Товар: 2710124130 [11:51:57]line Аи-92-К-5 [11:51:57]line 7.480 * 66.90 [11:51:57]line = 500.41 [11:51:57]line НДС 12% НСП 1% [11:51:57]line > о реализуемом товаре [11:51:57]line ОКРУГЛЕНИЕ: -0.41 [11:51:57]line ИТОГО: 500.00 [11:51:57]line Внесено: 500.00 [11:51:57]line СДАЧА: 0.00 [11:51:57]line НСП 1% : 4.43 [11:51:57]line НДС 12% : 53.14 [11:51:57]line Наличными: 500.00 [11:51:57]line Безнал.: 0.00 [11:51:57]line Место: АЗС № 143 "Партнер Нефть" [11:51:57]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [11:51:57]line СНО: Общий режим [11:51:57]line Чек 98 27.10.2024 11:52 [11:51:57]line Смена: 537 ФФД: 1.0 [11:51:57]line ЗНМ: 0300000096 [11:51:57]line РНМ: 0000000000091693 [11:51:57]line Версия ККМ: 001 [11:51:57]line ФМ: 0000000000871792 [11:51:57]line ФД: 156547 [11:51:57]line ФПД: 253210548173736 [11:51:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T115201&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156547&fm=253210548173736&tin=02508201610067®Number=0000000000091693&sum=50000 [11:51:57]OFD Sender: Processing packet 156547 [packets to send 31, broken 30] [11:51:57]ProducePacketName [11:51:57]name=ofd_packets/00156547 [11:51:57]OFD Sender: To server: pG, [11:51:57]CommunicateWithHost lk.salyk.kg:30040 [11:51:57]ConnectInit lk.salyk.kg [11:51:57]written 0, free lines is 4095 [11:51:57]Connected sock=10 [11:51:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 28 23 07 01 54 AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 61 29 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 83 63 02 00 35 04 06 00 E6 4B 2C C6 FB A8 B6 BB C8 B3 E9 0D F0 16 [11:51:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 34 22 47 00 3C 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 31 37 39 32 10 04 04 00 83 63 02 00 F4 03 04 00 D0 CE 1D 67 B6 04 01 00 00 7D 77 5B EB AD 47 58 03 [11:51:57]CommunicateWithHost err = 0 [11:51:57]CheckOFDResponse [11:51:57]1017 (14) - 77093643461234 [11:51:57]1041 (16) - 0000000000871792 [11:51:57]1040 (4) - 156547 [11:51:57]1012 (4) - 27.10.2024 05:25 [11:51:57]1206 (1) - 0 [11:51:57]OFD Sender: Remove packet 156547 [11:51:57]ProducePacketName [11:51:57]name=ofd_packets/00156547 [11:51:57]NVStorageDeleteData [11:51:57]Write to MH i2c: 01 00 00 F5 4C 41 [11:51:57]Write i2c OK [11:51:57]MH_I2C_Read... [11:51:57]Read from MH i2c: 01 [11:51:57]MH_I2C_Read... [11:51:57]Read from MH i2c: 01 07 00 [11:51:57]MH_I2C_Read... [11:51:57]Read from MH i2c: 01 07 00 F5 4C 00 00 00 00 00 E0 0C 34 [11:51:57]RasterBufferAndPrint [11:51:57]line [11:51:57]line [11:51:57]line [11:51:57]line [11:51:57]line [11:51:57]written 0, free lines is 3302 [11:51:57]process_action close_receipt done [11:51:57]requested_data is exist [11:51:57]produce_requested_data [11:51:57]requested_item fm.sn is exist - process it [11:51:57]wFMCommunicate request_size=4 [11:51:57]MH_SAM_APDU [11:51:57]CAPDU: 80 11 00 00 [11:51:57]Write to MH i2c: E2 08 00 FC 4C 80 11 00 00 00 00 00 00 C2 [11:51:57]Write i2c OK [11:51:57]MH_I2C_Read... [11:51:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:51:58]Read from MH i2c: E2 [11:51:58]MH_I2C_Read... [11:51:58]Read from MH i2c: E2 17 00 [11:51:58]MH_I2C_Read... [11:51:58]Read from MH i2c: E2 17 00 FC 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 17 [11:51:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:51:58]wFMCommunicate OK [11:51:58]requested_item fd.num is exist - process it [11:51:58]SAM_PROTO_GetFieldsCounters [11:51:58]wFMCommunicate request_size=4 [11:51:58]MH_SAM_APDU [11:51:58]CAPDU: 80 13 00 00 [11:51:58]Write to MH i2c: E2 08 00 FD 4C 80 13 00 00 00 00 00 00 C5 [11:51:58]Write i2c OK [11:51:58]MH_I2C_Read... [11:51:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:51:58]Read from MH i2c: E2 [11:51:58]MH_I2C_Read... [11:51:58]Read from MH i2c: E2 62 00 [11:51:58]MH_I2C_Read... [11:51:58]Read from MH i2c: E2 62 00 FD 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 83 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 14 [11:51:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 83 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:51:58]wFMCommunicate OK [11:51:58]SAM_PROTO_GetFieldsCounters done [11:51:58]requested_item shift.num is exist - process it [11:51:58]requested_item shift.opened is exist - process it [11:51:58]req_shift_opened [11:51:58]FM_GetShiftState [11:51:58]SAM_PROTO_GetShiftState [11:51:58]wFMCommunicate request_size=4 [11:51:58]MH_SAM_APDU [11:51:58]CAPDU: 80 13 01 00 [11:51:58]Write to MH i2c: E2 08 00 FE 4C 80 13 01 00 00 00 00 00 C7 [11:51:58]Write i2c OK [11:51:58]MH_I2C_Read... [11:51:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:51:58]Read from MH i2c: E2 [11:51:58]MH_I2C_Read... [11:51:58]Read from MH i2c: E2 0E 00 [11:51:58]MH_I2C_Read... [11:51:58]Read from MH i2c: E2 0E 00 FE 4C 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 94 [11:51:58]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [11:51:58]wFMCommunicate OK [11:51:58]SAM_PROTO_GetShiftState done [11:51:58]FM_GetShiftState done [11:51:58]req_shift_opened done [11:51:58]requested_item shift.open_date is exist - process it [11:51:58]req_shift_open_date [11:51:58]req_shift_open_date done [11:51:58]produce_requested_data done [11:51:58]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156547,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [11:51:58]process_action_free close_receipt [11:51:58]json_value_free [11:51:58]json_value_free done [11:51:58]process_json_proto returns [11:51:58]Send response to host [11:51:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156547,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [11:51:58]free response buf [11:51:58]execute_script done [11:51:58]execute_script returns [11:51:58]free content buf [11:51:58]Sock 8.Close socket [11:51:58]Sock 8.Thread stoped [11:51:58]OFD Sender: No OFD packet to send [11:52:03]OFD Sender: No OFD packet to send [11:52:08]OFD Sender: No OFD packet to send [11:52:13]OFD Sender: No OFD packet to send [11:52:18]OFD Sender: No OFD packet to send [11:52:23]OFD Sender: No OFD packet to send [11:52:28]OFD Sender: No OFD packet to send [11:52:33]OFD Sender: No OFD packet to send [11:52:38]OFD Sender: No OFD packet to send [11:52:43]OFD Sender: No OFD packet to send [11:52:48]OFD Sender: No OFD packet to send [11:52:53]OFD Sender: No OFD packet to send [11:52:58]OFD Sender: No OFD packet to send [11:53:03]OFD Sender: No OFD packet to send [11:53:08]OFD Sender: No OFD packet to send [11:53:13]OFD Sender: No OFD packet to send [11:53:18]OFD Sender: No OFD packet to send [11:53:23]OFD Sender: No OFD packet to send [11:53:28]OFD Sender: No OFD packet to send [11:53:33]OFD Sender: No OFD packet to send [11:53:38]OFD Sender: No OFD packet to send [11:53:43]OFD Sender: No OFD packet to send [11:53:48]OFD Sender: No OFD packet to send [11:53:53]OFD Sender: No OFD packet to send [11:53:58]OFD Sender: No OFD packet to send [11:54:03]OFD Sender: No OFD packet to send [11:54:08]OFD Sender: No OFD packet to send [11:54:13]OFD Sender: No OFD packet to send [11:54:18]OFD Sender: No OFD packet to send [11:54:23]OFD Sender: No OFD packet to send [11:54:28]OFD Sender: No OFD packet to send [11:54:33]OFD Sender: No OFD packet to send [11:54:38]OFD Sender: No OFD packet to send [11:54:43]OFD Sender: No OFD packet to send [11:54:48]OFD Sender: No OFD packet to send [11:54:53]OFD Sender: No OFD packet to send [11:54:58]OFD Sender: No OFD packet to send [11:55:03]OFD Sender: No OFD packet to send [11:55:08]OFD Sender: No OFD packet to send [11:55:13]OFD Sender: No OFD packet to send [11:55:18]OFD Sender: No OFD packet to send [11:55:23]OFD Sender: No OFD packet to send [11:55:28]OFD Sender: No OFD packet to send [11:55:33]OFD Sender: No OFD packet to send [11:55:38]OFD Sender: No OFD packet to send [11:55:42]accept exits with 9 [11:55:42]New connection [11:55:42]New thread 3066834276 created [11:55:42]Thread 3066977636 joined [11:55:42]Waiting for new connection... [11:55:42] Sock 9.Parse request [11:55:42]Sock 9.Check first char [11:55:42]Sock 9.First char is OK [11:55:42]request: POST /json_proto HTTP/1.0 [11:55:42]Method: POST [11:55:42]URL: /json_proto [11:55:42]Method is POST - this is cgi request [11:55:42]url: /json_proto [11:55:42]query_string will be loaded in cgi processing [11:55:42]execute_cgi json_proto POST (null) [11:55:42]execute_cgi path=json_proto method=POST [11:55:42]POST find Content-Length [11:55:42]Host: 172.17.63.3:8080 [11:55:42]Content-Length: 641 [11:55:42]Content-Type: application/json [11:55:42] [11:55:42]POST finish read [11:55:42]Found Content-Length = 641 [11:55:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99362", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 20.000, "sum" : 1338.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1338.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:55:42]execute_script... [11:55:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99362", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 20.000, "sum" : 1338.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1338.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:55:42]POST & json_proto [11:55:42]process_json_proto [11:55:42]json parsed OK: [11:55:42]protocol is kg_v1.0 [11:55:42]action value=close_receipt [11:55:42]process_action close_receipt [11:55:42]cmd_close_receipt [11:55:42]MH_GetDate [11:55:42]Write to MH i2c: F0 00 00 FF 4C 3A [11:55:42]Write i2c OK [11:55:42]MH_I2C_Read... [11:55:42]Read from MH i2c: F0 [11:55:42]MH_I2C_Read... [11:55:42]Read from MH i2c: F0 09 00 [11:55:42]MH_I2C_Read... [11:55:42]Read from MH i2c: F0 09 00 FF 4C 00 44 2A 1E 67 50 D1 6C 64 27 [11:55:42]GetLastDocTimeStamp 1730029921 [11:55:42]current date 1730030148 [11:55:42]FM_GetShiftState [11:55:42]SAM_PROTO_GetShiftState [11:55:42]wFMCommunicate request_size=4 [11:55:42]MH_SAM_APDU [11:55:42]CAPDU: 80 13 01 00 [11:55:42]Write to MH i2c: E2 08 00 00 4D 80 13 01 00 00 00 00 00 CA [11:55:42]Write i2c OK [11:55:42]MH_I2C_Read... [11:55:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:55:42]Read from MH i2c: E2 [11:55:42]MH_I2C_Read... [11:55:42]Read from MH i2c: E2 0E 00 [11:55:42]MH_I2C_Read... [11:55:42]Read from MH i2c: E2 0E 00 00 4D 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 97 [11:55:42]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [11:55:42]wFMCommunicate OK [11:55:42]SAM_PROTO_GetShiftState done [11:55:42]FM_GetShiftState done [11:55:42]opened in 1729989044 [11:55:42]opened+sec_in_day 1730075444 [11:55:42]quantity*price = 133800 [11:55:42]sum+1 = 133801 [11:55:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1338.00 НСП 1% : 11.84 НДС 12% : 142.09 Наличными: 1338.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 99 27.10.2024 11:55 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156548 ФПД: 116559716422034 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T115548&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156548&fm=116559716422034&tin=02508201610067®Number=0000000000091693&sum=133800 [11:55:43]StoreToDocumentArchive [11:55:43]shift 537 fd 156548 [11:55:43]save to /storage/0537/doc_00156548 [11:55:43]save last doc name /storage/0537/doc_00156548 to /storage/kkm_last_doc_name [11:55:43]save OK [11:55:43]Clear old archive folders... [11:55:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:55:43]tlvbuf is 017C6D70 [11:55:43]SAM_PROTO_ClearQueue [11:55:43]wFMCommunicate request_size=4 [11:55:43]MH_SAM_APDU [11:55:43]CAPDU: 80 09 00 00 [11:55:43]Write to MH i2c: E2 08 00 0D 4D 80 09 00 00 00 00 00 00 CC [11:55:43]Write i2c OK [11:55:43]MH_I2C_Read... [11:55:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:55:43]Read from MH i2c: E2 [11:55:43]MH_I2C_Read... [11:55:43]Read from MH i2c: E2 03 00 [11:55:43]MH_I2C_Read... [11:55:43]Read from MH i2c: E2 03 00 0D 4D 00 90 00 CE [11:55:43]RAPDU: 90 00 [11:55:43]wFMCommunicate OK [11:55:43]SAM_PROTO_ClearQueue done [11:55:43]KKMCreateOFDPacket [11:55:43]OFDProtocolAddRootSTLVToBuf [11:55:43]FM_MakeSignedData [11:55:43]FM_MakeSignedData [11:55:43]SAM_PROTO_SignData [11:55:43]wFMCommunicate request_size=4 [11:55:43]MH_SAM_APDU [11:55:43]CAPDU: 80 0D 01 02 [11:55:43]Write to MH i2c: E2 08 00 0E 4D 80 0D 01 02 00 00 00 00 D4 [11:55:43]Write i2c OK [11:55:43]MH_I2C_Read... [11:55:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:55:43]Read from MH i2c: E2 [11:55:43]MH_I2C_Read... [11:55:43]Read from MH i2c: E2 03 00 [11:55:43]MH_I2C_Read... [11:55:43]Read from MH i2c: E2 03 00 0E 4D 00 90 00 CF [11:55:43]RAPDU: 90 00 [11:55:43]wFMCommunicate OK [11:55:43]wFMCommunicate request_size=255 [11:55:43]MH_SAM_APDU [11:55:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 0A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 0A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 37 00 00 00 00 07 04 06 00 A8 0A 02 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 44 2A 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 84 63 02 00 35 04 06 00 6A [11:55:43]Write to MH i2c: E2 02 01 0F 4D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 0A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 0A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 37 00 00 00 00 07 04 06 00 A8 0A 02 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 44 2A 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 84 63 02 00 35 04 06 00 6A 00 00 C9 [11:55:43]Write i2c OK [11:55:43]MH_I2C_Read... [11:55:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:44]Read from MH i2c: E2 [11:55:44]MH_I2C_Read... [11:55:44]Read from MH i2c: E2 03 00 [11:55:44]MH_I2C_Read... [11:55:44]Read from MH i2c: E2 03 00 0F 4D 00 90 00 D0 [11:55:44]RAPDU: 90 00 [11:55:44]wFMCommunicate OK [11:55:44]wFMCommunicate request_size=10 [11:55:44]MH_SAM_APDU [11:55:44]CAPDU: 80 0D 02 02 05 02 AC 7E 11 92 [11:55:44]Write to MH i2c: E2 0D 00 10 4D 80 0D 02 02 05 00 02 AC 7E 11 92 00 00 B0 [11:55:44]Write i2c OK [11:55:44]MH_I2C_Read... [11:55:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:44]Read from MH i2c: E2 [11:55:44]MH_I2C_Read... [11:55:44]Read from MH i2c: E2 03 00 [11:55:44]MH_I2C_Read... [11:55:44]Read from MH i2c: E2 03 00 10 4D 00 90 00 D1 [11:55:44]RAPDU: 90 00 [11:55:44]wFMCommunicate OK [11:55:44]wFMCommunicate request_size=4 [11:55:44]MH_SAM_APDU [11:55:44]CAPDU: 80 0D 03 02 [11:55:44]Write to MH i2c: E2 08 00 11 4D 80 0D 03 02 00 00 00 00 D9 [11:55:44]Write i2c OK [11:55:44]MH_I2C_Read... [11:55:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:55:44]Read from MH i2c: E2 [11:55:44]MH_I2C_Read... [11:55:44]Read from MH i2c: E2 0B 00 [11:55:44]MH_I2C_Read... [11:55:44]Read from MH i2c: E2 0B 00 11 4D 00 27 09 2E EB B1 F6 C7 7A 90 00 0B [11:55:44]RAPDU: 27 09 2E EB B1 F6 C7 7A 90 00 [11:55:44]wFMCommunicate OK [11:55:44]SAM_PROTO_SignData done [11:55:44]FM_MakeSignedData done [11:55:44]CreateOFDProtocolMessage [11:55:44]wFMCommunicate request_size=4 [11:55:44]MH_SAM_APDU [11:55:44]CAPDU: 80 11 00 00 [11:55:44]Write to MH i2c: E2 08 00 12 4D 80 11 00 00 00 00 00 00 D9 [11:55:44]Write i2c OK [11:55:44]MH_I2C_Read... [11:55:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:44]Read from MH i2c: E2 [11:55:44]MH_I2C_Read... [11:55:44]Read from MH i2c: E2 17 00 [11:55:44]MH_I2C_Read... [11:55:44]Read from MH i2c: E2 17 00 12 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 2E [11:55:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:55:44]wFMCommunicate OK [11:55:44]CreateOFDProtocolMessage done [11:55:44]OFDSenderStorePacket 156548 [11:55:44]StoreOFDPacket docnum=156548 [11:55:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 A9 86 07 01 39 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 0A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 0A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 37 00 00 00 00 07 04 06 00 A8 0A 02 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 44 2A 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 84 63 02 00 35 04 06 00 6A 02 AC 7E 11 92 27 09 2E EB B1 F6 C7 7A [11:55:44]CheckFolder [11:55:44]dirname=/storage/ofd_packets [11:55:44]CheckFolder done [11:55:44]ProducePacketName [11:55:44]name=ofd_packets/00156548 [11:55:44]NVStorageSaveData ofd_packets/00156548 [11:55:44]File name is /storage/ofd_packets/00156548 [11:55:44]Write 301 bytes [11:55:44]NVStorageSaveData done [11:55:44]OFDSenderStorePacket done [11:55:44]KKMCreateOFDPacket done [11:55:44]NVStorageSaveData kkm_last_timestamp [11:55:44]File name is /storage/kkm_last_timestamp [11:55:44]Write 4 bytes [11:55:44]NVStorageSaveData done [11:55:44]ExternCall_PrintAddStr [11:55:44]wPrintStart [11:55:44]Write to MH i2c: 01 00 00 13 4D 60 [11:55:44]Write i2c OK [11:55:44]MH_I2C_Read... [11:55:44]Read from MH i2c: 01 [11:55:44]MH_I2C_Read... [11:55:44]Read from MH i2c: 01 07 00 [11:55:44]MH_I2C_Read... [11:55:44]Read from MH i2c: 01 07 00 13 4D 00 00 00 00 00 FF 0F 75 [11:55:44]RasterBufferAndPrint [11:55:44]line Счет N : (1)99362 [11:55:44]line ИНН: 02508201610067 [11:55:44]line Контрольно-Кассовый Чек [11:55:44]line ПРОДАЖА [11:55:44]line ТРК (МРК, ГНК) : 31 [11:55:44]line Товар: 2710124130 [11:55:44]line Аи-92-К-5 [11:55:44]line 20.000 * 66.90 [11:55:44]line = 1338.00 [11:55:44]line НДС 12% НСП 1% [11:55:44]line > о реализуемом товаре [11:55:44]line ИТОГО: 1338.00 [11:55:44]line НСП 1% : 11.84 [11:55:44]line НДС 12% : 142.09 [11:55:44]line Наличными: 1338.00 [11:55:44]line Безнал.: 0.00 [11:55:44]line Место: АЗС № 143 "Партнер Нефть" [11:55:44]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [11:55:44]line СНО: Общий режим [11:55:44]line Чек 99 27.10.2024 11:55 [11:55:44]line Смена: 537 ФФД: 1.0 [11:55:44]line ЗНМ: 0300000096 [11:55:44]line РНМ: 0000000000091693 [11:55:44]line Версия ККМ: 001 [11:55:44]line ФМ: 0000000000871792 [11:55:44]line ФД: 156548 [11:55:44]line ФПД: 116559716422034 [11:55:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T115548&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156548&fm=116559716422034&tin=02508201610067®Number=0000000000091693&sum=133800 [11:55:44]OFD Sender: Processing packet 156548 [packets to send 31, broken 30] [11:55:44]ProducePacketName [11:55:44]name=ofd_packets/00156548 [11:55:44]OFD Sender: To server: pG, [11:55:44]CommunicateWithHost lk.salyk.kg:30040 [11:55:44]ConnectInit lk.salyk.kg [11:55:44]written 0, free lines is 4095 [11:55:44]Connected sock=10 [11:55:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 A9 86 07 01 39 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 0A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 0A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 37 00 00 00 00 07 04 06 00 A8 0A 02 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 44 2A 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 84 63 02 00 35 04 06 00 6A 02 AC 7E 11 92 27 09 2E EB B1 F6 C7 7A [11:55:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 FE 3A 47 00 8B 1F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 84 63 02 00 F4 03 04 00 B3 CF 1D 67 B6 04 01 00 00 2E 78 3E F5 26 A2 8C 83 [11:55:45]CommunicateWithHost err = 0 [11:55:45]CheckOFDResponse [11:55:45]1017 (14) - 77093643461234 [11:55:45]1041 (16) - 0000000000871792 [11:55:45]1040 (4) - 156548 [11:55:45]1012 (4) - 27.10.2024 05:29 [11:55:45]1206 (1) - 0 [11:55:45]OFD Sender: Remove packet 156548 [11:55:45]ProducePacketName [11:55:45]name=ofd_packets/00156548 [11:55:45]NVStorageDeleteData [11:55:45]Write to MH i2c: 01 00 00 3B 4D 88 [11:55:45]Write i2c OK [11:55:45]MH_I2C_Read... [11:55:45]Read from MH i2c: 01 [11:55:45]MH_I2C_Read... [11:55:45]Read from MH i2c: 01 07 00 [11:55:45]MH_I2C_Read... [11:55:45]Read from MH i2c: 01 07 00 3B 4D 00 00 00 00 00 19 0D B5 [11:55:45]RasterBufferAndPrint [11:55:45]line [11:55:45]line [11:55:45]line [11:55:45]line [11:55:45]line [11:55:45]written 0, free lines is 3359 [11:55:45]process_action close_receipt done [11:55:45]requested_data is exist [11:55:45]produce_requested_data [11:55:45]requested_item fm.sn is exist - process it [11:55:45]wFMCommunicate request_size=4 [11:55:45]MH_SAM_APDU [11:55:45]CAPDU: 80 11 00 00 [11:55:45]Write to MH i2c: E2 08 00 42 4D 80 11 00 00 00 00 00 00 09 [11:55:45]Write i2c OK [11:55:45]MH_I2C_Read... [11:55:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:45]Read from MH i2c: E2 [11:55:45]MH_I2C_Read... [11:55:45]Read from MH i2c: E2 17 00 [11:55:45]MH_I2C_Read... [11:55:45]Read from MH i2c: E2 17 00 42 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 5E [11:55:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:55:45]wFMCommunicate OK [11:55:45]requested_item fd.num is exist - process it [11:55:45]SAM_PROTO_GetFieldsCounters [11:55:45]wFMCommunicate request_size=4 [11:55:45]MH_SAM_APDU [11:55:45]CAPDU: 80 13 00 00 [11:55:45]Write to MH i2c: E2 08 00 43 4D 80 13 00 00 00 00 00 00 0C [11:55:45]Write i2c OK [11:55:45]MH_I2C_Read... [11:55:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:55:45]Read from MH i2c: E2 [11:55:45]MH_I2C_Read... [11:55:45]Read from MH i2c: E2 62 00 [11:55:45]MH_I2C_Read... [11:55:45]Read from MH i2c: E2 62 00 43 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 84 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 5F [11:55:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 84 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:55:45]wFMCommunicate OK [11:55:45]SAM_PROTO_GetFieldsCounters done [11:55:45]requested_item shift.num is exist - process it [11:55:45]requested_item shift.opened is exist - process it [11:55:45]req_shift_opened [11:55:45]FM_GetShiftState [11:55:45]SAM_PROTO_GetShiftState [11:55:45]wFMCommunicate request_size=4 [11:55:45]MH_SAM_APDU [11:55:45]CAPDU: 80 13 01 00 [11:55:45]Write to MH i2c: E2 08 00 44 4D 80 13 01 00 00 00 00 00 0E [11:55:45]Write i2c OK [11:55:45]MH_I2C_Read... [11:55:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:55:45]Read from MH i2c: E2 [11:55:45]MH_I2C_Read... [11:55:45]Read from MH i2c: E2 0E 00 [11:55:45]MH_I2C_Read... [11:55:45]Read from MH i2c: E2 0E 00 44 4D 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 DB [11:55:45]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [11:55:45]wFMCommunicate OK [11:55:45]SAM_PROTO_GetShiftState done [11:55:45]FM_GetShiftState done [11:55:45]req_shift_opened done [11:55:45]requested_item shift.open_date is exist - process it [11:55:45]req_shift_open_date [11:55:45]req_shift_open_date done [11:55:45]produce_requested_data done [11:55:45]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156548,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [11:55:45]process_action_free close_receipt [11:55:45]json_value_free [11:55:45]json_value_free done [11:55:45]process_json_proto returns [11:55:45]Send response to host [11:55:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156548,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [11:55:45]free response buf [11:55:45]execute_script done [11:55:45]execute_script returns [11:55:45]free content buf [11:55:45]Sock 9.Close socket [11:55:45]Sock 9.Thread stoped [11:55:45]OFD Sender: No OFD packet to send [11:55:46]int [11:55:46]Write to MH i2c: 01 00 00 45 4D 92 [11:55:46]*** FLAG_PRN_KEY set [11:55:46]Write i2c OK [11:55:46]MH_I2C_Read... [11:55:46]Read from MH i2c: 01 [11:55:46]MH_I2C_Read... [11:55:46]Read from MH i2c: 01 07 00 [11:55:46]MH_I2C_Read... [11:55:46]Read from MH i2c: 01 07 00 45 4D 00 08 00 00 00 FF 0F AF [11:55:46]state=0 [11:55:46]Key pressed [11:55:46]Feed [11:55:46]Write to MH i2c: D8 00 00 46 4D 6A [11:55:46]Write i2c OK [11:55:46]MH_I2C_Read... [11:55:46]Read from MH i2c: D8 [11:55:46]MH_I2C_Read... [11:55:46]Read from MH i2c: D8 01 00 [11:55:46]MH_I2C_Read... [11:55:46]Read from MH i2c: D8 01 00 46 4D 00 6B [11:55:46]int [11:55:46]Write to MH i2c: 01 00 00 47 4D 94 [11:55:46]Write i2c OK [11:55:46]MH_I2C_Read... [11:55:46]Read from MH i2c: 01 [11:55:46]MH_I2C_Read... [11:55:46]Read from MH i2c: 01 07 00 [11:55:46]MH_I2C_Read... [11:55:46]Read from MH i2c: 01 07 00 47 4D 00 48 00 00 00 3C 00 1F [11:55:46]state=2 [11:55:46]Key pressed [11:55:47]int [11:55:47]Write to MH i2c: 01 00 00 48 4D 95 [11:55:47]*** FLAG_PRN_KEY reset [11:55:47]Write i2c OK [11:55:47]MH_I2C_Read... [11:55:47]Read from MH i2c: 01 [11:55:47]MH_I2C_Read... [11:55:47]Read from MH i2c: 01 07 00 [11:55:47]MH_I2C_Read... [11:55:47]Read from MH i2c: 01 07 00 48 4D 00 00 00 00 00 F7 0F A2 [11:55:47]state=2 [11:55:47]Stop feed [11:55:50]OFD Sender: No OFD packet to send [11:55:55]OFD Sender: No OFD packet to send [11:56:00]OFD Sender: No OFD packet to send [11:56:05]OFD Sender: No OFD packet to send [11:56:10]OFD Sender: No OFD packet to send [11:56:15]OFD Sender: No OFD packet to send [11:56:20]OFD Sender: No OFD packet to send [11:56:25]OFD Sender: No OFD packet to send [11:56:30]OFD Sender: No OFD packet to send [11:56:35]OFD Sender: No OFD packet to send [11:56:40]OFD Sender: No OFD packet to send [11:56:45]OFD Sender: No OFD packet to send [11:56:50]OFD Sender: No OFD packet to send [11:56:55]OFD Sender: No OFD packet to send [11:57:00]OFD Sender: No OFD packet to send [11:57:05]OFD Sender: No OFD packet to send [11:57:10]OFD Sender: No OFD packet to send [11:57:15]OFD Sender: No OFD packet to send [11:57:20]OFD Sender: No OFD packet to send [11:57:25]OFD Sender: No OFD packet to send [11:57:30]OFD Sender: No OFD packet to send [11:57:35]OFD Sender: No OFD packet to send [11:57:40]OFD Sender: No OFD packet to send [11:57:45]OFD Sender: No OFD packet to send [11:57:50]OFD Sender: No OFD packet to send [11:57:55]OFD Sender: No OFD packet to send [11:58:00]OFD Sender: No OFD packet to send [11:58:05]OFD Sender: No OFD packet to send [11:58:10]OFD Sender: No OFD packet to send [11:58:15]OFD Sender: No OFD packet to send [11:58:20]OFD Sender: No OFD packet to send [11:58:25]OFD Sender: No OFD packet to send [11:58:30]OFD Sender: No OFD packet to send [11:58:35]OFD Sender: No OFD packet to send [11:58:40]OFD Sender: No OFD packet to send [11:58:45]OFD Sender: No OFD packet to send [11:58:46]accept exits with 8 [11:58:46]New connection [11:58:46]New thread 3066977636 created [11:58:46]Thread 3066834276 joined [11:58:46]Waiting for new connection... [11:58:46] Sock 8.Parse request [11:58:46]Sock 8.Check first char [11:58:46]Sock 8.First char is OK [11:58:46]request: POST /json_proto HTTP/1.0 [11:58:46]Method: POST [11:58:46]URL: /json_proto [11:58:46]Method is POST - this is cgi request [11:58:46]url: /json_proto [11:58:46]query_string will be loaded in cgi processing [11:58:46]execute_cgi json_proto POST (null) [11:58:46]execute_cgi path=json_proto method=POST [11:58:46]POST find Content-Length [11:58:46]Host: 172.17.63.3:8080 [11:58:46]Content-Length: 676 [11:58:46]Content-Type: application/json [11:58:46] [11:58:46]POST finish read [11:58:46]Found Content-Length = 676 [11:58:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99364", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:58:46]execute_script... [11:58: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)99364", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:58:46]POST & json_proto [11:58:46]process_json_proto [11:58:46]json parsed OK: [11:58:46]protocol is kg_v1.0 [11:58:46]action value=close_receipt [11:58:46]process_action close_receipt [11:58:46]cmd_close_receipt [11:58:46]MH_GetDate [11:58:46]Write to MH i2c: F0 00 00 49 4D 85 [11:58:46]Write i2c OK [11:58:46]MH_I2C_Read... [11:58:46]Read from MH i2c: F0 [11:58:46]MH_I2C_Read... [11:58:46]Read from MH i2c: F0 09 00 [11:58:46]MH_I2C_Read... [11:58:46]Read from MH i2c: F0 09 00 49 4D 00 FB 2A 1E 67 50 D1 6C 64 29 [11:58:46]GetLastDocTimeStamp 1730030148 [11:58:46]current date 1730030331 [11:58:46]FM_GetShiftState [11:58:46]SAM_PROTO_GetShiftState [11:58:46]wFMCommunicate request_size=4 [11:58:46]MH_SAM_APDU [11:58:46]CAPDU: 80 13 01 00 [11:58:46]Write to MH i2c: E2 08 00 4A 4D 80 13 01 00 00 00 00 00 14 [11:58:46]Write i2c OK [11:58:46]MH_I2C_Read... [11:58:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:58:46]Read from MH i2c: E2 [11:58:46]MH_I2C_Read... [11:58:46]Read from MH i2c: E2 0E 00 [11:58:46]MH_I2C_Read... [11:58:46]Read from MH i2c: E2 0E 00 4A 4D 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 E1 [11:58:46]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [11:58:46]wFMCommunicate OK [11:58:46]SAM_PROTO_GetShiftState done [11:58:46]FM_GetShiftState done [11:58:46]opened in 1729989044 [11:58:46]opened+sec_in_day 1730075444 [11:58:46]quantity*price = 50041 [11:58:46]sum+1 = 50042 [11:58:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 100 27.10.2024 11:58 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156549 ФПД: 198325023706234 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T115851&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156549&fm=198325023706234&tin=02508201610067®Number=0000000000091693&sum=50000 [11:58:47]StoreToDocumentArchive [11:58:47]shift 537 fd 156549 [11:58:47]save to /storage/0537/doc_00156549 [11:58:47]save last doc name /storage/0537/doc_00156549 to /storage/kkm_last_doc_name [11:58:47]save OK [11:58:47]Clear old archive folders... [11:58:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:58:47]tlvbuf is B6EE0410 [11:58:47]SAM_PROTO_ClearQueue [11:58:47]wFMCommunicate request_size=4 [11:58:47]MH_SAM_APDU [11:58:47]CAPDU: 80 09 00 00 [11:58:47]Write to MH i2c: E2 08 00 57 4D 80 09 00 00 00 00 00 00 16 [11:58:47]Write i2c OK [11:58:47]MH_I2C_Read... [11:58:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:58:47]Read from MH i2c: E2 [11:58:47]MH_I2C_Read... [11:58:47]Read from MH i2c: E2 03 00 [11:58:47]MH_I2C_Read... [11:58:47]Read from MH i2c: E2 03 00 57 4D 00 90 00 18 [11:58:47]RAPDU: 90 00 [11:58:47]wFMCommunicate OK [11:58:47]SAM_PROTO_ClearQueue done [11:58:47]KKMCreateOFDPacket [11:58:47]OFDProtocolAddRootSTLVToBuf [11:58:47]FM_MakeSignedData [11:58:47]FM_MakeSignedData [11:58:47]SAM_PROTO_SignData [11:58:47]wFMCommunicate request_size=4 [11:58:47]MH_SAM_APDU [11:58:47]CAPDU: 80 0D 01 02 [11:58:47]Write to MH i2c: E2 08 00 58 4D 80 0D 01 02 00 00 00 00 1E [11:58:47]Write i2c OK [11:58:47]MH_I2C_Read... [11:58:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:58:47]Read from MH i2c: E2 [11:58:47]MH_I2C_Read... [11:58:47]Read from MH i2c: E2 03 00 [11:58:47]MH_I2C_Read... [11:58:47]Read from MH i2c: E2 03 00 58 4D 00 90 00 19 [11:58:47]RAPDU: 90 00 [11:58:47]wFMCommunicate OK [11:58:47]wFMCommunicate request_size=255 [11:58:47]MH_SAM_APDU [11:58: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 FB 2A 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 85 63 02 00 35 04 06 00 B4 [11:58:47]Write to MH i2c: E2 02 01 59 4D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 FB 2A 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 85 63 02 00 35 04 06 00 B4 00 00 79 [11:58:47]Write i2c OK [11:58:47]MH_I2C_Read... [11:58:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:58:47]Read from MH i2c: E2 [11:58:47]MH_I2C_Read... [11:58:47]Read from MH i2c: E2 03 00 [11:58:47]MH_I2C_Read... [11:58:47]Read from MH i2c: E2 03 00 59 4D 00 90 00 1A [11:58:47]RAPDU: 90 00 [11:58:47]wFMCommunicate OK [11:58:47]wFMCommunicate request_size=10 [11:58:47]MH_SAM_APDU [11:58:47]CAPDU: 80 0D 02 02 05 60 24 96 8C 7A [11:58:47]Write to MH i2c: E2 0D 00 5A 4D 80 0D 02 02 05 00 60 24 96 8C 7A 00 00 4B [11:58:47]Write i2c OK [11:58:47]MH_I2C_Read... [11:58:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:58:47]Read from MH i2c: E2 [11:58:47]MH_I2C_Read... [11:58:47]Read from MH i2c: E2 03 00 [11:58:47]MH_I2C_Read... [11:58:47]Read from MH i2c: E2 03 00 5A 4D 00 90 00 1B [11:58:47]RAPDU: 90 00 [11:58:47]wFMCommunicate OK [11:58:47]wFMCommunicate request_size=4 [11:58:47]MH_SAM_APDU [11:58:47]CAPDU: 80 0D 03 02 [11:58:47]Write to MH i2c: E2 08 00 5B 4D 80 0D 03 02 00 00 00 00 23 [11:58:47]Write i2c OK [11:58:47]MH_I2C_Read... [11:58:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:58:47]Read from MH i2c: E2 [11:58:47]MH_I2C_Read... [11:58:47]Read from MH i2c: E2 0B 00 [11:58:47]MH_I2C_Read... [11:58:47]Read from MH i2c: E2 0B 00 5B 4D 00 43 86 6B EF 0D 21 EB E6 90 00 46 [11:58:47]RAPDU: 43 86 6B EF 0D 21 EB E6 90 00 [11:58:47]wFMCommunicate OK [11:58:47]SAM_PROTO_SignData done [11:58:47]FM_MakeSignedData done [11:58:47]CreateOFDProtocolMessage [11:58:47]wFMCommunicate request_size=4 [11:58:47]MH_SAM_APDU [11:58:47]CAPDU: 80 11 00 00 [11:58:47]Write to MH i2c: E2 08 00 5C 4D 80 11 00 00 00 00 00 00 23 [11:58:47]Write i2c OK [11:58:47]MH_I2C_Read... [11:58:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:58:47]Read from MH i2c: E2 [11:58:47]MH_I2C_Read... [11:58:47]Read from MH i2c: E2 17 00 [11:58:47]MH_I2C_Read... [11:58:47]Read from MH i2c: E2 17 00 5C 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 78 [11:58:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:58:47]wFMCommunicate OK [11:58:47]CreateOFDProtocolMessage done [11:58:47]OFDSenderStorePacket 156549 [11:58:47]StoreOFDPacket docnum=156549 [11:58:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 43 74 07 01 C7 B1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 FB 2A 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 85 63 02 00 35 04 06 00 B4 60 24 96 8C 7A 43 86 6B EF 0D 21 EB E6 [11:58:47]CheckFolder [11:58:47]dirname=/storage/ofd_packets [11:58:47]CheckFolder done [11:58:47]ProducePacketName [11:58:47]name=ofd_packets/00156549 [11:58:47]NVStorageSaveData ofd_packets/00156549 [11:58:47]File name is /storage/ofd_packets/00156549 [11:58:47]Write 301 bytes [11:58:47]NVStorageSaveData done [11:58:47]OFDSenderStorePacket done [11:58:47]KKMCreateOFDPacket done [11:58:47]NVStorageSaveData kkm_last_timestamp [11:58:47]File name is /storage/kkm_last_timestamp [11:58:47]Write 4 bytes [11:58:47]NVStorageSaveData done [11:58:47]ExternCall_PrintAddStr [11:58:47]wPrintStart [11:58:47]Write to MH i2c: 01 00 00 5D 4D AA [11:58:47]Write i2c OK [11:58:47]MH_I2C_Read... [11:58:47]Read from MH i2c: 01 [11:58:47]MH_I2C_Read... [11:58:47]Read from MH i2c: 01 07 00 [11:58:47]MH_I2C_Read... [11:58:47]Read from MH i2c: 01 07 00 5D 4D 00 00 00 00 00 FF 0F BF [11:58:47]RasterBufferAndPrint [11:58:47]line Счет N : (1)99364 [11:58:47]line ИНН: 02508201610067 [11:58:47]line Контрольно-Кассовый Чек [11:58:47]line ПРОДАЖА [11:58:47]line ТРК (МРК, ГНК) : 21 [11:58:47]line Товар: 2710124130 [11:58:47]line Аи-92-К-5 [11:58:47]line 7.480 * 66.90 [11:58:47]line = 500.41 [11:58:47]line НДС 12% НСП 1% [11:58:47]line > о реализуемом товаре [11:58:47]line ОКРУГЛЕНИЕ: -0.41 [11:58:47]line ИТОГО: 500.00 [11:58:47]line Внесено: 500.00 [11:58:47]line СДАЧА: 0.00 [11:58:47]line НСП 1% : 4.43 [11:58:47]line НДС 12% : 53.14 [11:58:47]line Наличными: 500.00 [11:58:47]line Безнал.: 0.00 [11:58:47]line Место: АЗС № 143 "Партнер Нефть" [11:58:47]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [11:58:47]line СНО: Общий режим [11:58:47]line Чек 100 27.10.2024 11:58 [11:58:47]line Смена: 537 ФФД: 1.0 [11:58:47]line ЗНМ: 0300000096 [11:58:47]line РНМ: 0000000000091693 [11:58:47]line Версия ККМ: 001 [11:58:47]line ФМ: 0000000000871792 [11:58:47]line ФД: 156549 [11:58:47]line ФПД: 198325023706234 [11:58:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T115851&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156549&fm=198325023706234&tin=02508201610067®Number=0000000000091693&sum=50000 [11:58:48]OFD Sender: Processing packet 156549 [packets to send 31, broken 30] [11:58:48]ProducePacketName [11:58:48]name=ofd_packets/00156549 [11:58:48]OFD Sender: To server: pG, [11:58:48]CommunicateWithHost lk.salyk.kg:30040 [11:58:48]ConnectInit lk.salyk.kg [11:58:48]written 0, free lines is 4095 [11:58:48]Connected sock=10 [11:58:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 43 74 07 01 C7 B1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 FB 2A 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 85 63 02 00 35 04 06 00 B4 60 24 96 8C 7A 43 86 6B EF 0D 21 EB E6 [11:58:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 61 82 47 00 5B 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 85 63 02 00 F4 03 04 00 6B D0 1D 67 B6 04 01 00 00 3A 8F 43 ED 39 68 B1 B2 [11:58:48]CommunicateWithHost err = 0 [11:58:48]CheckOFDResponse [11:58:48]1017 (14) - 77093643461234 [11:58:48]1041 (16) - 0000000000871792 [11:58:48]1040 (4) - 156549 [11:58:48]1012 (4) - 27.10.2024 05:32 [11:58:48]1206 (1) - 0 [11:58:48]OFD Sender: Remove packet 156549 [11:58:48]ProducePacketName [11:58:48]name=ofd_packets/00156549 [11:58:48]NVStorageDeleteData [11:58:48]Write to MH i2c: 01 00 00 88 4D D5 [11:58:48]Write i2c OK [11:58:48]MH_I2C_Read... [11:58:48]Read from MH i2c: 01 [11:58:48]MH_I2C_Read... [11:58:48]Read from MH i2c: 01 07 00 [11:58:48]MH_I2C_Read... [11:58:48]Read from MH i2c: 01 07 00 88 4D 00 00 00 00 00 FB 0C E3 [11:58:48]RasterBufferAndPrint [11:58:48]line [11:58:48]line [11:58:48]line [11:58:48]line [11:58:48]line [11:58:48]written 0, free lines is 3329 [11:58:48]process_action close_receipt done [11:58:48]requested_data is exist [11:58:48]produce_requested_data [11:58:48]requested_item fm.sn is exist - process it [11:58:48]wFMCommunicate request_size=4 [11:58:48]MH_SAM_APDU [11:58:48]CAPDU: 80 11 00 00 [11:58:48]Write to MH i2c: E2 08 00 8F 4D 80 11 00 00 00 00 00 00 56 [11:58:48]Write i2c OK [11:58:48]MH_I2C_Read... [11:58:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:58:48]Read from MH i2c: E2 [11:58:48]MH_I2C_Read... [11:58:48]Read from MH i2c: E2 17 00 [11:58:48]MH_I2C_Read... [11:58:48]Read from MH i2c: E2 17 00 8F 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 AB [11:58:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [11:58:48]wFMCommunicate OK [11:58:48]requested_item fd.num is exist - process it [11:58:48]SAM_PROTO_GetFieldsCounters [11:58:48]wFMCommunicate request_size=4 [11:58:48]MH_SAM_APDU [11:58:48]CAPDU: 80 13 00 00 [11:58:48]Write to MH i2c: E2 08 00 90 4D 80 13 00 00 00 00 00 00 59 [11:58:48]Write i2c OK [11:58:48]MH_I2C_Read... [11:58:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:58:48]Read from MH i2c: E2 [11:58:48]MH_I2C_Read... [11:58:48]Read from MH i2c: E2 62 00 [11:58:48]MH_I2C_Read... [11:58:48]Read from MH i2c: E2 62 00 90 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 85 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 B0 [11:58:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 85 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:58:48]wFMCommunicate OK [11:58:48]SAM_PROTO_GetFieldsCounters done [11:58:48]requested_item shift.num is exist - process it [11:58:48]requested_item shift.opened is exist - process it [11:58:48]req_shift_opened [11:58:48]FM_GetShiftState [11:58:48]SAM_PROTO_GetShiftState [11:58:48]wFMCommunicate request_size=4 [11:58:48]MH_SAM_APDU [11:58:48]CAPDU: 80 13 01 00 [11:58:48]Write to MH i2c: E2 08 00 91 4D 80 13 01 00 00 00 00 00 5B [11:58:48]Write i2c OK [11:58:48]MH_I2C_Read... [11:58:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:58:48]Read from MH i2c: E2 [11:58:48]MH_I2C_Read... [11:58:48]Read from MH i2c: E2 0E 00 [11:58:48]MH_I2C_Read... [11:58:48]Read from MH i2c: E2 0E 00 91 4D 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 28 [11:58:48]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [11:58:48]wFMCommunicate OK [11:58:48]SAM_PROTO_GetShiftState done [11:58:48]FM_GetShiftState done [11:58:48]req_shift_opened done [11:58:48]requested_item shift.open_date is exist - process it [11:58:48]req_shift_open_date [11:58:48]req_shift_open_date done [11:58:48]produce_requested_data done [11:58:48]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156549,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [11:58:48]process_action_free close_receipt [11:58:48]json_value_free [11:58:48]json_value_free done [11:58:48]process_json_proto returns [11:58:48]Send response to host [11:58:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156549,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [11:58:48]free response buf [11:58:48]execute_script done [11:58:48]execute_script returns [11:58:48]free content buf [11:58:48]Sock 8.Close socket [11:58:48]Sock 8.Thread stoped [11:58:48]OFD Sender: No OFD packet to send [11:58:53]OFD Sender: No OFD packet to send [11:58:58]OFD Sender: No OFD packet to send [11:59:03]OFD Sender: No OFD packet to send [11:59:08]OFD Sender: No OFD packet to send [11:59:13]OFD Sender: No OFD packet to send [11:59:18]OFD Sender: No OFD packet to send [11:59:23]OFD Sender: No OFD packet to send [11:59:28]OFD Sender: No OFD packet to send [11:59:33]OFD Sender: No OFD packet to send [11:59:38]OFD Sender: No OFD packet to send [11:59:43]OFD Sender: No OFD packet to send [11:59:48]OFD Sender: No OFD packet to send [11:59:53]OFD Sender: No OFD packet to send [11:59:58]OFD Sender: No OFD packet to send [12:00:03]OFD Sender: No OFD packet to send [12:00:08]OFD Sender: No OFD packet to send [12:00:13]OFD Sender: No OFD packet to send [12:00:18]OFD Sender: No OFD packet to send [12:00:23]OFD Sender: No OFD packet to send [12:00:28]OFD Sender: No OFD packet to send [12:00:33]OFD Sender: No OFD packet to send [12:00:38]OFD Sender: No OFD packet to send [12:00:43]OFD Sender: No OFD packet to send [12:00:48]OFD Sender: No OFD packet to send [12:00:53]OFD Sender: No OFD packet to send [12:00:58]OFD Sender: No OFD packet to send [12:01:04]OFD Sender: No OFD packet to send [12:01:09]OFD Sender: No OFD packet to send [12:01:14]OFD Sender: No OFD packet to send [12:01:19]OFD Sender: No OFD packet to send [12:01:24]OFD Sender: No OFD packet to send [12:01:29]OFD Sender: No OFD packet to send [12:01:34]OFD Sender: No OFD packet to send [12:01:39]OFD Sender: No OFD packet to send [12:01:44]OFD Sender: No OFD packet to send [12:01:44]accept exits with 9 [12:01:44]New connection [12:01:44]New thread 3066834276 created [12:01:44]Thread 3066977636 joined [12:01:44]Waiting for new connection... [12:01:44] Sock 9.Parse request [12:01:44]Sock 9.Check first char [12:01:44]Sock 9.First char is OK [12:01:44]request: POST /json_proto HTTP/1.0 [12:01:44]Method: POST [12:01:44]URL: /json_proto [12:01:44]Method is POST - this is cgi request [12:01:44]url: /json_proto [12:01:44]query_string will be loaded in cgi processing [12:01:44]execute_cgi json_proto POST (null) [12:01:44]execute_cgi path=json_proto method=POST [12:01:44]POST find Content-Length [12:01:44]Host: 172.17.63.3:8080 [12:01:44]Content-Length: 681 [12:01:44]Content-Type: application/json [12:01:44] [12:01:44]POST finish read [12:01:44]Found Content-Length = 681 [12:01:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99365", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:01:44]execute_script... [12:01: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)99365", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:01:44]POST & json_proto [12:01:44]process_json_proto [12:01:44]json parsed OK: [12:01:44]protocol is kg_v1.0 [12:01:44]action value=close_receipt [12:01:44]process_action close_receipt [12:01:44]cmd_close_receipt [12:01:44]MH_GetDate [12:01:44]Write to MH i2c: F0 00 00 92 4D CE [12:01:44]Write i2c OK [12:01:44]MH_I2C_Read... [12:01:44]Read from MH i2c: F0 [12:01:44]MH_I2C_Read... [12:01:44]Read from MH i2c: F0 09 00 [12:01:44]MH_I2C_Read... [12:01:44]Read from MH i2c: F0 09 00 92 4D 00 AD 2B 1E 67 50 D1 6C 64 25 [12:01:44]GetLastDocTimeStamp 1730030331 [12:01:44]current date 1730030509 [12:01:44]FM_GetShiftState [12:01:44]SAM_PROTO_GetShiftState [12:01:44]wFMCommunicate request_size=4 [12:01:44]MH_SAM_APDU [12:01:44]CAPDU: 80 13 01 00 [12:01:44]Write to MH i2c: E2 08 00 93 4D 80 13 01 00 00 00 00 00 5D [12:01:44]Write i2c OK [12:01:44]MH_I2C_Read... [12:01:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:01:44]Read from MH i2c: E2 [12:01:44]MH_I2C_Read... [12:01:44]Read from MH i2c: E2 0E 00 [12:01:44]MH_I2C_Read... [12:01:44]Read from MH i2c: E2 0E 00 93 4D 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 2A [12:01:44]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [12:01:44]wFMCommunicate OK [12:01:44]SAM_PROTO_GetShiftState done [12:01:44]FM_GetShiftState done [12:01:44]opened in 1729989044 [12:01:44]opened+sec_in_day 1730075444 [12:01:44]quantity*price = 100015 [12:01:44]sum+1 = 100017 [12:01:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 101 27.10.2024 12:01 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156550 ФПД: 2595735388165 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T120149&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156550&fm=2595735388165&tin=02508201610067®Number=0000000000091693&sum=100000 [12:01:45]StoreToDocumentArchive [12:01:45]shift 537 fd 156550 [12:01:45]save to /storage/0537/doc_00156550 [12:01:45]save last doc name /storage/0537/doc_00156550 to /storage/kkm_last_doc_name [12:01:45]save OK [12:01:45]Clear old archive folders... [12:01:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:01:45]tlvbuf is 0179A7E0 [12:01:45]SAM_PROTO_ClearQueue [12:01:45]wFMCommunicate request_size=4 [12:01:45]MH_SAM_APDU [12:01:45]CAPDU: 80 09 00 00 [12:01:45]Write to MH i2c: E2 08 00 A0 4D 80 09 00 00 00 00 00 00 5F [12:01:45]Write i2c OK [12:01:45]MH_I2C_Read... [12:01:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:01:45]Read from MH i2c: E2 [12:01:45]MH_I2C_Read... [12:01:45]Read from MH i2c: E2 03 00 [12:01:45]MH_I2C_Read... [12:01:45]Read from MH i2c: E2 03 00 A0 4D 00 90 00 61 [12:01:45]RAPDU: 90 00 [12:01:45]wFMCommunicate OK [12:01:45]SAM_PROTO_ClearQueue done [12:01:45]KKMCreateOFDPacket [12:01:45]OFDProtocolAddRootSTLVToBuf [12:01:45]FM_MakeSignedData [12:01:45]FM_MakeSignedData [12:01:45]SAM_PROTO_SignData [12:01:45]wFMCommunicate request_size=4 [12:01:45]MH_SAM_APDU [12:01:45]CAPDU: 80 0D 01 02 [12:01:45]Write to MH i2c: E2 08 00 A1 4D 80 0D 01 02 00 00 00 00 67 [12:01:45]Write i2c OK [12:01:45]MH_I2C_Read... [12:01:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:01:45]Read from MH i2c: E2 [12:01:45]MH_I2C_Read... [12:01:45]Read from MH i2c: E2 03 00 [12:01:45]MH_I2C_Read... [12:01:45]Read from MH i2c: E2 03 00 A1 4D 00 90 00 62 [12:01:45]RAPDU: 90 00 [12:01:45]wFMCommunicate OK [12:01:45]wFMCommunicate request_size=255 [12:01:45]MH_SAM_APDU [12:01: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 AD 2B 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 86 63 02 00 35 04 06 00 02 [12:01:45]Write to MH i2c: E2 02 01 A2 4D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 AD 2B 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 86 63 02 00 35 04 06 00 02 00 00 BF [12:01:45]Write i2c OK [12:01:45]MH_I2C_Read... [12:01:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:01:45]Read from MH i2c: E2 [12:01:45]MH_I2C_Read... [12:01:45]Read from MH i2c: E2 03 00 [12:01:45]MH_I2C_Read... [12:01:45]Read from MH i2c: E2 03 00 A2 4D 00 90 00 63 [12:01:45]RAPDU: 90 00 [12:01:45]wFMCommunicate OK [12:01:45]wFMCommunicate request_size=10 [12:01:45]MH_SAM_APDU [12:01:45]CAPDU: 80 0D 02 02 05 5C 5D E2 C0 05 [12:01:45]Write to MH i2c: E2 0D 00 A3 4D 80 0D 02 02 05 00 5C 5D E2 C0 05 00 00 D4 [12:01:45]Write i2c OK [12:01:45]MH_I2C_Read... [12:01:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:01:45]Read from MH i2c: E2 [12:01:45]MH_I2C_Read... [12:01:45]Read from MH i2c: E2 03 00 [12:01:45]MH_I2C_Read... [12:01:45]Read from MH i2c: E2 03 00 A3 4D 00 90 00 64 [12:01:45]RAPDU: 90 00 [12:01:45]wFMCommunicate OK [12:01:45]wFMCommunicate request_size=4 [12:01:45]MH_SAM_APDU [12:01:45]CAPDU: 80 0D 03 02 [12:01:45]Write to MH i2c: E2 08 00 A4 4D 80 0D 03 02 00 00 00 00 6C [12:01:45]Write i2c OK [12:01:45]MH_I2C_Read... [12:01:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:01:45]Read from MH i2c: E2 [12:01:45]MH_I2C_Read... [12:01:45]Read from MH i2c: E2 0B 00 [12:01:45]MH_I2C_Read... [12:01:45]Read from MH i2c: E2 0B 00 A4 4D 00 A8 9B 49 DF A0 96 8E 30 90 00 CC [12:01:45]RAPDU: A8 9B 49 DF A0 96 8E 30 90 00 [12:01:45]wFMCommunicate OK [12:01:45]SAM_PROTO_SignData done [12:01:45]FM_MakeSignedData done [12:01:45]CreateOFDProtocolMessage [12:01:45]wFMCommunicate request_size=4 [12:01:45]MH_SAM_APDU [12:01:45]CAPDU: 80 11 00 00 [12:01:45]Write to MH i2c: E2 08 00 A5 4D 80 11 00 00 00 00 00 00 6C [12:01:45]Write i2c OK [12:01:45]MH_I2C_Read... [12:01:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:01:45]Read from MH i2c: E2 [12:01:45]MH_I2C_Read... [12:01:45]Read from MH i2c: E2 17 00 [12:01:45]MH_I2C_Read... [12:01:45]Read from MH i2c: E2 17 00 A5 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 C1 [12:01:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:01:45]wFMCommunicate OK [12:01:45]CreateOFDProtocolMessage done [12:01:45]OFDSenderStorePacket 156550 [12:01:45]StoreOFDPacket docnum=156550 [12:01:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 07 44 07 01 56 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 AD 2B 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 86 63 02 00 35 04 06 00 02 5C 5D E2 C0 05 A8 9B 49 DF A0 96 8E 30 [12:01:45]CheckFolder [12:01:45]dirname=/storage/ofd_packets [12:01:45]CheckFolder done [12:01:45]ProducePacketName [12:01:45]name=ofd_packets/00156550 [12:01:45]NVStorageSaveData ofd_packets/00156550 [12:01:45]File name is /storage/ofd_packets/00156550 [12:01:45]Write 301 bytes [12:01:45]NVStorageSaveData done [12:01:45]OFDSenderStorePacket done [12:01:45]KKMCreateOFDPacket done [12:01:45]NVStorageSaveData kkm_last_timestamp [12:01:45]File name is /storage/kkm_last_timestamp [12:01:45]Write 4 bytes [12:01:45]NVStorageSaveData done [12:01:45]OFD Sender: Processing packet 156550 [packets to send 31, broken 30] [12:01:45]ProducePacketName [12:01:45]name=ofd_packets/00156550 [12:01:45]OFD Sender: To server: pG, [12:01:45]CommunicateWithHost lk.salyk.kg:30040 [12:01:45]ConnectInit lk.salyk.kg [12:01:45]ExternCall_PrintAddStr [12:01:45]wPrintStart [12:01:45]Write to MH i2c: 01 00 00 A6 4D F3 [12:01:45]Write i2c OK [12:01:45]MH_I2C_Read... [12:01:45]Read from MH i2c: 01 [12:01:45]MH_I2C_Read... [12:01:45]Read from MH i2c: 01 07 00 [12:01:45]MH_I2C_Read... [12:01:45]Read from MH i2c: 01 07 00 A6 4D 00 00 00 00 00 FF 0F 08 [12:01:45]RasterBufferAndPrint [12:01:45]line Счет N : (1)99365 [12:01:45]line ИНН: 02508201610067 [12:01:45]line Контрольно-Кассовый Чек [12:01:45]line ПРОДАЖА [12:01:45]line ТРК (МРК, ГНК) : 21 [12:01:45]line Товар: 2710124130 [12:01:45]line Аи-92-К-5 [12:01:45]line 14.950 * 66.90 [12:01:45]line = 1000.16 [12:01:45]line НДС 12% НСП 1% [12:01:45]line > о реализуемом товаре [12:01:45]line ОКРУГЛЕНИЕ: -0.16 [12:01:45]line ИТОГО: 1000.00 [12:01:45]line Внесено: 1000.00 [12:01:45]line СДАЧА: 0.00 [12:01:45]line НСП 1% : 8.85 [12:01:45]line НДС 12% : 106.21 [12:01:45]line Наличными: 1000.00 [12:01:45]line Безнал.: 0.00 [12:01:45]line Место: АЗС № 143 "Партнер Нефть" [12:01:45]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [12:01:45]line СНО: Общий режим [12:01:45]line Чек 101 27.10.2024 12:01 [12:01:45]line Смена: 537 ФФД: 1.0 [12:01:45]line ЗНМ: 0300000096 [12:01:45]line РНМ: 0000000000091693 [12:01:45]line Версия ККМ: 001 [12:01:45]line ФМ: 0000000000871792 [12:01:45]line ФД: 156550 [12:01:45]line ФПД: 2595735388165 [12:01:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T120149&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156550&fm=2595735388165&tin=02508201610067®Number=0000000000091693&sum=100000 [12:01:46]Connected sock=11 [12:01:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 07 44 07 01 56 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 AD 2B 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 86 63 02 00 35 04 06 00 02 5C 5D E2 C0 05 A8 9B 49 DF A0 96 8E 30 [12:01:46]written 0, free lines is 4095 [12:01:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 DC AA 47 00 C2 CE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 86 63 02 00 F4 03 04 00 1D D1 1D 67 B6 04 01 00 00 E2 33 04 DD 06 46 00 DD [12:01:46]CommunicateWithHost err = 0 [12:01:46]CheckOFDResponse [12:01:46]1017 (14) - 77093643461234 [12:01:46]1041 (16) - 0000000000871792 [12:01:46]1040 (4) - 156550 [12:01:46]1012 (4) - 27.10.2024 05:35 [12:01:46]1206 (1) - 0 [12:01:46]OFD Sender: Remove packet 156550 [12:01:46]ProducePacketName [12:01:46]name=ofd_packets/00156550 [12:01:46]NVStorageDeleteData [12:01:46]Write to MH i2c: 01 00 00 D1 4D 1E [12:01:46]Write i2c OK [12:01:46]MH_I2C_Read... [12:01:46]Read from MH i2c: 01 [12:01:46]MH_I2C_Read... [12:01:46]Read from MH i2c: 01 07 00 [12:01:46]MH_I2C_Read... [12:01:46]Read from MH i2c: 01 07 00 D1 4D 00 00 00 00 00 D3 0C 04 [12:01:46]RasterBufferAndPrint [12:01:46]line [12:01:46]line [12:01:46]line [12:01:46]line [12:01:46]line [12:01:46]written 0, free lines is 3290 [12:01:46]process_action close_receipt done [12:01:46]requested_data is exist [12:01:46]produce_requested_data [12:01:46]requested_item fm.sn is exist - process it [12:01:46]wFMCommunicate request_size=4 [12:01:46]MH_SAM_APDU [12:01:46]CAPDU: 80 11 00 00 [12:01:46]Write to MH i2c: E2 08 00 D8 4D 80 11 00 00 00 00 00 00 9F [12:01:46]Write i2c OK [12:01:46]MH_I2C_Read... [12:01:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:01:46]Read from MH i2c: E2 [12:01:46]MH_I2C_Read... [12:01:46]Read from MH i2c: E2 17 00 [12:01:46]MH_I2C_Read... [12:01:46]Read from MH i2c: E2 17 00 D8 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 F4 [12:01:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:01:46]wFMCommunicate OK [12:01:46]requested_item fd.num is exist - process it [12:01:46]SAM_PROTO_GetFieldsCounters [12:01:46]wFMCommunicate request_size=4 [12:01:46]MH_SAM_APDU [12:01:46]CAPDU: 80 13 00 00 [12:01:46]Write to MH i2c: E2 08 00 D9 4D 80 13 00 00 00 00 00 00 A2 [12:01:46]Write i2c OK [12:01:46]MH_I2C_Read... [12:01:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:01:46]Read from MH i2c: E2 [12:01:46]MH_I2C_Read... [12:01:46]Read from MH i2c: E2 62 00 [12:01:46]MH_I2C_Read... [12:01:46]Read from MH i2c: E2 62 00 D9 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 86 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 FD [12:01:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 86 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:01:46]wFMCommunicate OK [12:01:46]SAM_PROTO_GetFieldsCounters done [12:01:46]requested_item shift.num is exist - process it [12:01:46]requested_item shift.opened is exist - process it [12:01:46]req_shift_opened [12:01:46]FM_GetShiftState [12:01:46]SAM_PROTO_GetShiftState [12:01:46]wFMCommunicate request_size=4 [12:01:46]MH_SAM_APDU [12:01:46]CAPDU: 80 13 01 00 [12:01:46]Write to MH i2c: E2 08 00 DA 4D 80 13 01 00 00 00 00 00 A4 [12:01:47]Write i2c OK [12:01:47]MH_I2C_Read... [12:01:47]OFD Sender: No OFD packet to send [12:01:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:01:47]Read from MH i2c: E2 [12:01:47]MH_I2C_Read... [12:01:47]Read from MH i2c: E2 0E 00 [12:01:47]MH_I2C_Read... [12:01:47]Read from MH i2c: E2 0E 00 DA 4D 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 71 [12:01:47]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [12:01:47]wFMCommunicate OK [12:01:47]SAM_PROTO_GetShiftState done [12:01:47]FM_GetShiftState done [12:01:47]req_shift_opened done [12:01:47]requested_item shift.open_date is exist - process it [12:01:47]req_shift_open_date [12:01:47]req_shift_open_date done [12:01:47]produce_requested_data done [12:01:47]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156550,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [12:01:47]process_action_free close_receipt [12:01:47]json_value_free [12:01:47]json_value_free done [12:01:47]process_json_proto returns [12:01:47]Send response to host [12:01:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156550,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [12:01:47]free response buf [12:01:47]execute_script done [12:01:47]execute_script returns [12:01:47]free content buf [12:01:47]Sock 9.Close socket [12:01:47]Sock 9.Thread stoped [12:01:52]OFD Sender: No OFD packet to send [12:01:57]OFD Sender: No OFD packet to send [12:02:02]OFD Sender: No OFD packet to send [12:02:07]OFD Sender: No OFD packet to send [12:02:12]OFD Sender: No OFD packet to send [12:02:17]OFD Sender: No OFD packet to send [12:02:18]accept exits with 8 [12:02:18]New connection [12:02:18]New thread 3066977636 created [12:02:18]Thread 3066834276 joined [12:02:18]Waiting for new connection... [12:02:18] Sock 8.Parse request [12:02:18]Sock 8.Check first char [12:02:18]Sock 8.First char is OK [12:02:18]request: POST /json_proto HTTP/1.0 [12:02:18]Method: POST [12:02:18]URL: /json_proto [12:02:18]Method is POST - this is cgi request [12:02:18]url: /json_proto [12:02:18]query_string will be loaded in cgi processing [12:02:18]execute_cgi json_proto POST (null) [12:02:18]execute_cgi path=json_proto method=POST [12:02:18]POST find Content-Length [12:02:18]Host: 172.17.63.3:8080 [12:02:18]Content-Length: 809 [12:02:18]Content-Type: application/json [12:02:18] [12:02:18]POST finish read [12:02:18]Found Content-Length = 809 [12:02:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99363", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4348540.41.42.43.44", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:02:18]execute_script... [12:02:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99363", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4348540.41.42.43.44", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:02:18]POST & json_proto [12:02:18]process_json_proto [12:02:18]json parsed OK: [12:02:18]protocol is kg_v1.0 [12:02:18]action value=close_receipt [12:02:18]process_action close_receipt [12:02:18]cmd_close_receipt [12:02:18]MH_GetDate [12:02:18]Write to MH i2c: F0 00 00 DB 4D 17 [12:02:18]Write i2c OK [12:02:18]MH_I2C_Read... [12:02:18]Read from MH i2c: F0 [12:02:18]MH_I2C_Read... [12:02:18]Read from MH i2c: F0 09 00 [12:02:18]MH_I2C_Read... [12:02:18]Read from MH i2c: F0 09 00 DB 4D 00 D0 2B 1E 67 50 D1 6C 64 91 [12:02:18]GetLastDocTimeStamp 1730030509 [12:02:18]current date 1730030544 [12:02:18]FM_GetShiftState [12:02:18]SAM_PROTO_GetShiftState [12:02:18]wFMCommunicate request_size=4 [12:02:18]MH_SAM_APDU [12:02:18]CAPDU: 80 13 01 00 [12:02:18]Write to MH i2c: E2 08 00 DC 4D 80 13 01 00 00 00 00 00 A6 [12:02:18]Write i2c OK [12:02:18]MH_I2C_Read... [12:02:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:18]Read from MH i2c: E2 [12:02:18]MH_I2C_Read... [12:02:18]Read from MH i2c: E2 0E 00 [12:02:18]MH_I2C_Read... [12:02:18]Read from MH i2c: E2 0E 00 DC 4D 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 73 [12:02:18]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [12:02:18]wFMCommunicate OK [12:02:18]SAM_PROTO_GetShiftState done [12:02:18]FM_GetShiftState done [12:02:18]opened in 1729989044 [12:02:18]opened+sec_in_day 1730075444 [12:02:18]quantity*price = 0 [12:02:18]sum+1 = 1 [12:02:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 102 27.10.2024 12:02 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Талоны: Топливные Талоны 4348540.41.42.43.44 ФМ: 0000000000871792 ФД: 156551 ФПД: 80495866484762 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T120224&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156551&fm=80495866484762&tin=02508201610067®Number=0000000000091693&sum=0 [12:02:19]StoreToDocumentArchive [12:02:19]shift 537 fd 156551 [12:02:19]save to /storage/0537/doc_00156551 [12:02:19]save last doc name /storage/0537/doc_00156551 to /storage/kkm_last_doc_name [12:02:19]save OK [12:02:19]Clear old archive folders... [12:02:19]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:02:19]tlvbuf is 01795030 [12:02:19]SAM_PROTO_ClearQueue [12:02:19]wFMCommunicate request_size=4 [12:02:19]MH_SAM_APDU [12:02:19]CAPDU: 80 09 00 00 [12:02:19]Write to MH i2c: E2 08 00 E9 4D 80 09 00 00 00 00 00 00 A8 [12:02:19]Write i2c OK [12:02:19]MH_I2C_Read... [12:02:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:02:19]Read from MH i2c: E2 [12:02:19]MH_I2C_Read... [12:02:19]Read from MH i2c: E2 03 00 [12:02:19]MH_I2C_Read... [12:02:19]Read from MH i2c: E2 03 00 E9 4D 00 90 00 AA [12:02:19]RAPDU: 90 00 [12:02:19]wFMCommunicate OK [12:02:19]SAM_PROTO_ClearQueue done [12:02:19]KKMCreateOFDPacket [12:02:19]OFDProtocolAddRootSTLVToBuf [12:02:19]FM_MakeSignedData [12:02:19]FM_MakeSignedData [12:02:19]SAM_PROTO_SignData [12:02:19]wFMCommunicate request_size=4 [12:02:19]MH_SAM_APDU [12:02:19]CAPDU: 80 0D 01 02 [12:02:19]Write to MH i2c: E2 08 00 EA 4D 80 0D 01 02 00 00 00 00 B0 [12:02:19]Write i2c OK [12:02:19]MH_I2C_Read... [12:02:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:02:19]Read from MH i2c: E2 [12:02:19]MH_I2C_Read... [12:02:19]Read from MH i2c: E2 03 00 [12:02:19]MH_I2C_Read... [12:02:19]Read from MH i2c: E2 03 00 EA 4D 00 90 00 AB [12:02:19]RAPDU: 90 00 [12:02:19]wFMCommunicate OK [12:02:19]wFMCommunicate request_size=255 [12:02:19]MH_SAM_APDU [12:02:19]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 D0 2B 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 87 63 02 00 35 04 06 00 49 35 E7 87 [12:02:19]Write to MH i2c: E2 02 01 EB 4D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 D0 2B 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 87 63 02 00 35 04 06 00 49 35 E7 87 00 00 12 [12:02:19]Write i2c OK [12:02:19]MH_I2C_Read... [12:02:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:20]Read from MH i2c: E2 [12:02:20]MH_I2C_Read... [12:02:20]Read from MH i2c: E2 03 00 [12:02:20]MH_I2C_Read... [12:02:20]Read from MH i2c: E2 03 00 EB 4D 00 90 00 AC [12:02:20]RAPDU: 90 00 [12:02:20]wFMCommunicate OK [12:02:20]wFMCommunicate request_size=7 [12:02:20]MH_SAM_APDU [12:02:20]CAPDU: 80 0D 02 02 02 18 1A [12:02:20]Write to MH i2c: E2 0A 00 EC 4D 80 0D 02 02 02 00 18 1A 00 00 E9 [12:02:20]Write i2c OK [12:02:20]MH_I2C_Read... [12:02:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:20]Read from MH i2c: E2 [12:02:20]MH_I2C_Read... [12:02:20]Read from MH i2c: E2 03 00 [12:02:20]MH_I2C_Read... [12:02:20]Read from MH i2c: E2 03 00 EC 4D 00 90 00 AD [12:02:20]RAPDU: 90 00 [12:02:20]wFMCommunicate OK [12:02:20]wFMCommunicate request_size=4 [12:02:20]MH_SAM_APDU [12:02:20]CAPDU: 80 0D 03 02 [12:02:20]Write to MH i2c: E2 08 00 ED 4D 80 0D 03 02 00 00 00 00 B5 [12:02:20]Write i2c OK [12:02:20]MH_I2C_Read... [12:02:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:02:20]Read from MH i2c: E2 [12:02:20]MH_I2C_Read... [12:02:20]Read from MH i2c: E2 0B 00 [12:02:20]MH_I2C_Read... [12:02:20]Read from MH i2c: E2 0B 00 ED 4D 00 54 8C F7 65 60 D1 31 89 90 00 DD [12:02:20]RAPDU: 54 8C F7 65 60 D1 31 89 90 00 [12:02:20]wFMCommunicate OK [12:02:20]SAM_PROTO_SignData done [12:02:20]FM_MakeSignedData done [12:02:20]CreateOFDProtocolMessage [12:02:20]wFMCommunicate request_size=4 [12:02:20]MH_SAM_APDU [12:02:20]CAPDU: 80 11 00 00 [12:02:20]Write to MH i2c: E2 08 00 EE 4D 80 11 00 00 00 00 00 00 B5 [12:02:20]Write i2c OK [12:02:20]MH_I2C_Read... [12:02:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:20]Read from MH i2c: E2 [12:02:20]MH_I2C_Read... [12:02:20]Read from MH i2c: E2 17 00 [12:02:20]MH_I2C_Read... [12:02:20]Read from MH i2c: E2 17 00 EE 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 0A [12:02:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:02:20]wFMCommunicate OK [12:02:20]CreateOFDProtocolMessage done [12:02:20]OFDSenderStorePacket 156551 [12:02:20]StoreOFDPacket docnum=156551 [12:02:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 97 C0 04 01 A1 38 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 D0 2B 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 87 63 02 00 35 04 06 00 49 35 E7 87 18 1A 54 8C F7 65 60 D1 31 89 [12:02:20]CheckFolder [12:02:20]dirname=/storage/ofd_packets [12:02:20]CheckFolder done [12:02:20]ProducePacketName [12:02:20]name=ofd_packets/00156551 [12:02:20]NVStorageSaveData ofd_packets/00156551 [12:02:20]File name is /storage/ofd_packets/00156551 [12:02:20]Write 298 bytes [12:02:20]NVStorageSaveData done [12:02:20]OFDSenderStorePacket done [12:02:20]KKMCreateOFDPacket done [12:02:20]NVStorageSaveData kkm_last_timestamp [12:02:20]File name is /storage/kkm_last_timestamp [12:02:20]Write 4 bytes [12:02:20]NVStorageSaveData done [12:02:20]ExternCall_PrintAddStr [12:02:20]wPrintStart [12:02:20]Write to MH i2c: 01 00 00 EF 4D 3C [12:02:20]Write i2c OK [12:02:20]MH_I2C_Read... [12:02:20]Read from MH i2c: 01 [12:02:20]MH_I2C_Read... [12:02:20]Read from MH i2c: 01 07 00 [12:02:20]MH_I2C_Read... [12:02:20]Read from MH i2c: 01 07 00 EF 4D 00 00 00 00 00 FF 0F 51 [12:02:20]RasterBufferAndPrint [12:02:20]line Счет N : (1)99363 [12:02:20]line ИНН: 02508201610067 [12:02:20]line Контрольно-Кассовый Чек [12:02:20]line ПРОДАЖА [12:02:20]line ТРК (МРК, ГНК) : 32 [12:02:20]line Товар: 2710194210 [12:02:20]line ДТ-К-5 [12:02:20]line 100.000 * 0.00 [12:02:20]line = 0.00 [12:02:20]line НДС 12% НСП 1% [12:02:20]line > о реализуемом товаре [12:02:20]line ИТОГО: 0.00 [12:02:20]line НСП 1% : 0.00 [12:02:20]line НДС 12% : 0.00 [12:02:20]line Наличными: 0.00 [12:02:20]line Безнал.: 0.00 [12:02:20]line Место: АЗС № 143 "Партнер Нефть" [12:02:20]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [12:02:20]line СНО: Общий режим [12:02:20]line Чек 102 27.10.2024 12:02 [12:02:20]line Смена: 537 ФФД: 1.0 [12:02:20]line ЗНМ: 0300000096 [12:02:20]line РНМ: 0000000000091693 [12:02:20]line Версия ККМ: 001 [12:02:20]line Талоны: Топливные Талоны [12:02:20]line 4348540.41.42.43.44 [12:02:20]line ФМ: 0000000000871792 [12:02:20]line ФД: 156551 [12:02:20]line ФПД: 80495866484762 [12:02:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T120224&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156551&fm=80495866484762&tin=02508201610067®Number=0000000000091693&sum=0 [12:02:20]OFD Sender: Processing packet 156551 [packets to send 31, broken 30] [12:02:20]ProducePacketName [12:02:20]name=ofd_packets/00156551 [12:02:20]OFD Sender: To server: pG, [12:02:20]CommunicateWithHost lk.salyk.kg:30040 [12:02:20]ConnectInit lk.salyk.kg [12:02:20]written 0, free lines is 4095 [12:02:20]Connected sock=10 [12:02:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 97 C0 04 01 A1 38 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 D0 2B 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 87 63 02 00 35 04 06 00 49 35 E7 87 18 1A 54 8C F7 65 60 D1 31 89 [12:02:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 13 35 47 00 44 D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 87 63 02 00 F4 03 04 00 3F D1 1D 67 B6 04 01 00 00 F3 B5 07 49 A0 0F E1 CF [12:02:20]CommunicateWithHost err = 0 [12:02:20]CheckOFDResponse [12:02:20]1017 (14) - 77093643461234 [12:02:20]1041 (16) - 0000000000871792 [12:02:20]1040 (4) - 156551 [12:02:20]1012 (4) - 27.10.2024 05:35 [12:02:20]1206 (1) - 0 [12:02:20]OFD Sender: Remove packet 156551 [12:02:20]ProducePacketName [12:02:20]name=ofd_packets/00156551 [12:02:20]NVStorageDeleteData [12:02:20]Write to MH i2c: 01 00 00 19 4E 67 [12:02:20]Write i2c OK [12:02:20]MH_I2C_Read... [12:02:20]Read from MH i2c: 01 [12:02:20]MH_I2C_Read... [12:02:20]Read from MH i2c: 01 07 00 [12:02:20]MH_I2C_Read... [12:02:20]Read from MH i2c: 01 07 00 19 4E 00 00 00 00 00 EA 0C 64 [12:02:20]RasterBufferAndPrint [12:02:20]line [12:02:20]line [12:02:20]line [12:02:20]line [12:02:20]line [12:02:20]written 0, free lines is 3312 [12:02:20]process_action close_receipt done [12:02:20]requested_data is exist [12:02:20]produce_requested_data [12:02:20]requested_item fm.sn is exist - process it [12:02:20]wFMCommunicate request_size=4 [12:02:20]MH_SAM_APDU [12:02:20]CAPDU: 80 11 00 00 [12:02:20]Write to MH i2c: E2 08 00 20 4E 80 11 00 00 00 00 00 00 E8 [12:02:20]Write i2c OK [12:02:20]MH_I2C_Read... [12:02:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:21]Read from MH i2c: E2 [12:02:21]MH_I2C_Read... [12:02:21]Read from MH i2c: E2 17 00 [12:02:21]MH_I2C_Read... [12:02:21]Read from MH i2c: E2 17 00 20 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 3D [12:02:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:02:21]wFMCommunicate OK [12:02:21]requested_item fd.num is exist - process it [12:02:21]SAM_PROTO_GetFieldsCounters [12:02:21]wFMCommunicate request_size=4 [12:02:21]MH_SAM_APDU [12:02:21]CAPDU: 80 13 00 00 [12:02:21]Write to MH i2c: E2 08 00 21 4E 80 13 00 00 00 00 00 00 EB [12:02:21]Write i2c OK [12:02:21]MH_I2C_Read... [12:02:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:02:21]Read from MH i2c: E2 [12:02:21]MH_I2C_Read... [12:02:21]Read from MH i2c: E2 62 00 [12:02:21]MH_I2C_Read... [12:02:21]Read from MH i2c: E2 62 00 21 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 87 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 4A [12:02: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 87 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:02:21]wFMCommunicate OK [12:02:21]SAM_PROTO_GetFieldsCounters done [12:02:21]requested_item shift.num is exist - process it [12:02:21]requested_item shift.opened is exist - process it [12:02:21]req_shift_opened [12:02:21]FM_GetShiftState [12:02:21]SAM_PROTO_GetShiftState [12:02:21]wFMCommunicate request_size=4 [12:02:21]MH_SAM_APDU [12:02:21]CAPDU: 80 13 01 00 [12:02:21]Write to MH i2c: E2 08 00 22 4E 80 13 01 00 00 00 00 00 ED [12:02:21]Write i2c OK [12:02:21]MH_I2C_Read... [12:02:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:21]Read from MH i2c: E2 [12:02:21]MH_I2C_Read... [12:02:21]Read from MH i2c: E2 0E 00 [12:02:21]MH_I2C_Read... [12:02:21]Read from MH i2c: E2 0E 00 22 4E 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 BA [12:02:21]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [12:02:21]wFMCommunicate OK [12:02:21]SAM_PROTO_GetShiftState done [12:02:21]FM_GetShiftState done [12:02:21]req_shift_opened done [12:02:21]requested_item shift.open_date is exist - process it [12:02:21]req_shift_open_date [12:02:21]req_shift_open_date done [12:02:21]produce_requested_data done [12:02:21]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156551,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [12:02:21]process_action_free close_receipt [12:02:21]json_value_free [12:02:21]json_value_free done [12:02:21]process_json_proto returns [12:02:21]Send response to host [12:02:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156551,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [12:02:21]free response buf [12:02:21]execute_script done [12:02:21]execute_script returns [12:02:21]free content buf [12:02:21]Sock 8.Close socket [12:02:21]Sock 8.Thread stoped [12:02:21]OFD Sender: No OFD packet to send [12:02:23]int [12:02:23]Write to MH i2c: 01 00 00 23 4E 71 [12:02:23]*** FLAG_PRN_KEY set [12:02:23]Write i2c OK [12:02:23]MH_I2C_Read... [12:02:23]Read from MH i2c: 01 [12:02:23]MH_I2C_Read... [12:02:23]Read from MH i2c: 01 07 00 [12:02:23]MH_I2C_Read... [12:02:23]Read from MH i2c: 01 07 00 23 4E 00 08 00 00 00 FF 0F 8E [12:02:23]state=0 [12:02:23]Key pressed [12:02:23]Feed [12:02:23]Write to MH i2c: D8 00 00 24 4E 49 [12:02:23]Write i2c OK [12:02:23]MH_I2C_Read... [12:02:23]Read from MH i2c: D8 [12:02:23]MH_I2C_Read... [12:02:23]Read from MH i2c: D8 01 00 [12:02:23]MH_I2C_Read... [12:02:23]Read from MH i2c: D8 01 00 24 4E 00 4A [12:02:23]int [12:02:23]Write to MH i2c: 01 00 00 25 4E 73 [12:02:23]Write i2c OK [12:02:23]MH_I2C_Read... [12:02:23]Read from MH i2c: 01 [12:02:23]MH_I2C_Read... [12:02:23]Read from MH i2c: 01 07 00 [12:02:23]MH_I2C_Read... [12:02:23]Read from MH i2c: 01 07 00 25 4E 00 48 00 00 00 3C 00 FE [12:02:23]state=2 [12:02:23]Key pressed [12:02:23]int [12:02:23]Write to MH i2c: 01 00 00 26 4E 74 [12:02:23]*** FLAG_PRN_KEY reset [12:02:23]Write i2c OK [12:02:23]MH_I2C_Read... [12:02:23]Read from MH i2c: 01 [12:02:23]MH_I2C_Read... [12:02:23]Read from MH i2c: 01 07 00 [12:02:23]MH_I2C_Read... [12:02:23]Read from MH i2c: 01 07 00 26 4E 00 00 00 00 00 F7 0F 81 [12:02:23]state=2 [12:02:23]Stop feed [12:02:26]OFD Sender: No OFD packet to send [12:02:31]OFD Sender: No OFD packet to send [12:02:36]OFD Sender: No OFD packet to send [12:02:41]OFD Sender: No OFD packet to send [12:02:46]OFD Sender: No OFD packet to send [12:02:51]OFD Sender: No OFD packet to send [12:02:56]OFD Sender: No OFD packet to send [12:03:01]OFD Sender: No OFD packet to send [12:03:06]OFD Sender: No OFD packet to send [12:03:11]OFD Sender: No OFD packet to send [12:03:12]accept exits with 9 [12:03:12]New connection [12:03:12]New thread 3066834276 created [12:03:12]Thread 3066977636 joined [12:03:12]Waiting for new connection... [12:03:12] Sock 9.Parse request [12:03:12]Sock 9.Check first char [12:03:12]Sock 9.First char is OK [12:03:12]request: POST /json_proto HTTP/1.0 [12:03:12]Method: POST [12:03:12]URL: /json_proto [12:03:12]Method is POST - this is cgi request [12:03:12]url: /json_proto [12:03:12]query_string will be loaded in cgi processing [12:03:12]execute_cgi json_proto POST (null) [12:03:12]execute_cgi path=json_proto method=POST [12:03:12]POST find Content-Length [12:03:12]Host: 172.17.63.3:8080 [12:03:12]Content-Length: 676 [12:03:12]Content-Type: application/json [12:03:12] [12:03:12]POST finish read [12:03:12]Found Content-Length = 676 [12:03:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99366", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.190, "sum" : 280.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 280.00, "total" : 280.00, "payments": [ { "type": 0, "sum" : 280.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:03:12]execute_script... [12:03: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)99366", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.190, "sum" : 280.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 280.00, "total" : 280.00, "payments": [ { "type": 0, "sum" : 280.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:03:12]POST & json_proto [12:03:12]process_json_proto [12:03:12]json parsed OK: [12:03:12]protocol is kg_v1.0 [12:03:12]action value=close_receipt [12:03:12]process_action close_receipt [12:03:12]cmd_close_receipt [12:03:12]MH_GetDate [12:03:12]Write to MH i2c: F0 00 00 27 4E 64 [12:03:12]Write i2c OK [12:03:12]MH_I2C_Read... [12:03:12]Read from MH i2c: F0 [12:03:12]MH_I2C_Read... [12:03:12]Read from MH i2c: F0 09 00 [12:03:12]MH_I2C_Read... [12:03:12]Read from MH i2c: F0 09 00 27 4E 00 06 2C 1E 67 50 D1 6C 64 15 [12:03:12]GetLastDocTimeStamp 1730030544 [12:03:12]current date 1730030598 [12:03:12]FM_GetShiftState [12:03:12]SAM_PROTO_GetShiftState [12:03:12]wFMCommunicate request_size=4 [12:03:12]MH_SAM_APDU [12:03:12]CAPDU: 80 13 01 00 [12:03:12]Write to MH i2c: E2 08 00 28 4E 80 13 01 00 00 00 00 00 F3 [12:03:12]Write i2c OK [12:03:12]MH_I2C_Read... [12:03:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:03:12]Read from MH i2c: E2 [12:03:12]MH_I2C_Read... [12:03:12]Read from MH i2c: E2 0E 00 [12:03:12]MH_I2C_Read... [12:03:12]Read from MH i2c: E2 0E 00 28 4E 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 C0 [12:03:12]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [12:03:12]wFMCommunicate OK [12:03:12]SAM_PROTO_GetShiftState done [12:03:12]FM_GetShiftState done [12:03:12]opened in 1729989044 [12:03:12]opened+sec_in_day 1730075444 [12:03:12]quantity*price = 28031 [12:03:12]sum+1 = 28032 [12:03:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 280.00 Внесено: 280.00 СДАЧА: 0.00 НСП 1% : 2.48 НДС 12% : 29.77 Наличными: 280.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 103 27.10.2024 12:03 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156552 ФПД: 140931957852067 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T120318&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156552&fm=140931957852067&tin=02508201610067®Number=0000000000091693&sum=28000 [12:03:13]StoreToDocumentArchive [12:03:13]shift 537 fd 156552 [12:03:13]save to /storage/0537/doc_00156552 [12:03:13]save last doc name /storage/0537/doc_00156552 to /storage/kkm_last_doc_name [12:03:13]save OK [12:03:13]Clear old archive folders... [12:03:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:03:13]tlvbuf is 0183DED0 [12:03:13]SAM_PROTO_ClearQueue [12:03:13]wFMCommunicate request_size=4 [12:03:13]MH_SAM_APDU [12:03:13]CAPDU: 80 09 00 00 [12:03:13]Write to MH i2c: E2 08 00 35 4E 80 09 00 00 00 00 00 00 F5 [12:03:13]Write i2c OK [12:03:13]MH_I2C_Read... [12:03:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:03:13]Read from MH i2c: E2 [12:03:13]MH_I2C_Read... [12:03:13]Read from MH i2c: E2 03 00 [12:03:13]MH_I2C_Read... [12:03:13]Read from MH i2c: E2 03 00 35 4E 00 90 00 F7 [12:03:13]RAPDU: 90 00 [12:03:13]wFMCommunicate OK [12:03:13]SAM_PROTO_ClearQueue done [12:03:13]KKMCreateOFDPacket [12:03:13]OFDProtocolAddRootSTLVToBuf [12:03:13]FM_MakeSignedData [12:03:13]FM_MakeSignedData [12:03:13]SAM_PROTO_SignData [12:03:13]wFMCommunicate request_size=4 [12:03:13]MH_SAM_APDU [12:03:13]CAPDU: 80 0D 01 02 [12:03:13]Write to MH i2c: E2 08 00 36 4E 80 0D 01 02 00 00 00 00 FD [12:03:13]Write i2c OK [12:03:13]MH_I2C_Read... [12:03:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:03:13]Read from MH i2c: E2 [12:03:13]MH_I2C_Read... [12:03:13]Read from MH i2c: E2 03 00 [12:03:13]MH_I2C_Read... [12:03:13]Read from MH i2c: E2 03 00 36 4E 00 90 00 F8 [12:03:13]RAPDU: 90 00 [12:03:13]wFMCommunicate OK [12:03:13]wFMCommunicate request_size=255 [12:03:13]MH_SAM_APDU [12:03:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5E 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7F 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 06 2C 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 88 63 02 00 35 04 06 00 80 [12:03:13]Write to MH i2c: E2 02 01 37 4E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5E 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7F 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 06 2C 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 88 63 02 00 35 04 06 00 80 00 00 86 [12:03:13]Write i2c OK [12:03:13]MH_I2C_Read... [12:03:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:03:14]Read from MH i2c: E2 [12:03:14]MH_I2C_Read... [12:03:14]Read from MH i2c: E2 03 00 [12:03:14]MH_I2C_Read... [12:03:14]Read from MH i2c: E2 03 00 37 4E 00 90 00 F9 [12:03:14]RAPDU: 90 00 [12:03:14]wFMCommunicate OK [12:03:14]wFMCommunicate request_size=10 [12:03:14]MH_SAM_APDU [12:03:14]CAPDU: 80 0D 02 02 05 2D 47 49 07 A3 [12:03:14]Write to MH i2c: E2 0D 00 38 4E 80 0D 02 02 05 00 2D 47 49 07 A3 00 00 71 [12:03:14]Write i2c OK [12:03:14]MH_I2C_Read... [12:03:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:03:14]Read from MH i2c: E2 [12:03:14]MH_I2C_Read... [12:03:14]Read from MH i2c: E2 03 00 [12:03:14]MH_I2C_Read... [12:03:14]Read from MH i2c: E2 03 00 38 4E 00 90 00 FA [12:03:14]RAPDU: 90 00 [12:03:14]wFMCommunicate OK [12:03:14]wFMCommunicate request_size=4 [12:03:14]MH_SAM_APDU [12:03:14]CAPDU: 80 0D 03 02 [12:03:14]Write to MH i2c: E2 08 00 39 4E 80 0D 03 02 00 00 00 00 02 [12:03:14]Write i2c OK [12:03:14]MH_I2C_Read... [12:03:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:03:14]Read from MH i2c: E2 [12:03:14]MH_I2C_Read... [12:03:14]Read from MH i2c: E2 0B 00 [12:03:14]MH_I2C_Read... [12:03:14]Read from MH i2c: E2 0B 00 39 4E 00 1A 62 75 10 E4 63 E8 D6 90 00 09 [12:03:14]RAPDU: 1A 62 75 10 E4 63 E8 D6 90 00 [12:03:14]wFMCommunicate OK [12:03:14]SAM_PROTO_SignData done [12:03:14]FM_MakeSignedData done [12:03:14]CreateOFDProtocolMessage [12:03:14]wFMCommunicate request_size=4 [12:03:14]MH_SAM_APDU [12:03:14]CAPDU: 80 11 00 00 [12:03:14]Write to MH i2c: E2 08 00 3A 4E 80 11 00 00 00 00 00 00 02 [12:03:14]Write i2c OK [12:03:14]MH_I2C_Read... [12:03:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:03:14]Read from MH i2c: E2 [12:03:14]MH_I2C_Read... [12:03:14]Read from MH i2c: E2 17 00 [12:03:14]MH_I2C_Read... [12:03:14]Read from MH i2c: E2 17 00 3A 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 57 [12:03:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:03:14]wFMCommunicate OK [12:03:14]CreateOFDProtocolMessage done [12:03:14]OFDSenderStorePacket 156552 [12:03:14]StoreOFDPacket docnum=156552 [12:03:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 D3 E7 07 01 EB 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 5E 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7F 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 06 2C 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 88 63 02 00 35 04 06 00 80 2D 47 49 07 A3 1A 62 75 10 E4 63 E8 D6 [12:03:14]CheckFolder [12:03:14]dirname=/storage/ofd_packets [12:03:14]CheckFolder done [12:03:14]ProducePacketName [12:03:14]name=ofd_packets/00156552 [12:03:14]NVStorageSaveData ofd_packets/00156552 [12:03:14]File name is /storage/ofd_packets/00156552 [12:03:14]Write 301 bytes [12:03:14]NVStorageSaveData done [12:03:14]OFDSenderStorePacket done [12:03:14]KKMCreateOFDPacket done [12:03:14]NVStorageSaveData kkm_last_timestamp [12:03:14]File name is /storage/kkm_last_timestamp [12:03:14]Write 4 bytes [12:03:14]NVStorageSaveData done [12:03:14]ExternCall_PrintAddStr [12:03:14]wPrintStart [12:03:14]Write to MH i2c: 01 00 00 3B 4E 89 [12:03:14]Write i2c OK [12:03:14]MH_I2C_Read... [12:03:14]Read from MH i2c: 01 [12:03:14]MH_I2C_Read... [12:03:14]Read from MH i2c: 01 07 00 [12:03:14]MH_I2C_Read... [12:03:14]Read from MH i2c: 01 07 00 3B 4E 00 00 00 00 00 FF 0F 9E [12:03:14]RasterBufferAndPrint [12:03:14]line Счет N : (1)99366 [12:03:14]line ИНН: 02508201610067 [12:03:14]line Контрольно-Кассовый Чек [12:03:14]line ПРОДАЖА [12:03:14]line ТРК (МРК, ГНК) : 21 [12:03:14]line Товар: 2710124130 [12:03:14]line Аи-92-К-5 [12:03:14]line 4.190 * 66.90 [12:03:14]line = 280.31 [12:03:14]line НДС 12% НСП 1% [12:03:14]line > о реализуемом товаре [12:03:14]line ОКРУГЛЕНИЕ: -0.31 [12:03:14]line ИТОГО: 280.00 [12:03:14]line Внесено: 280.00 [12:03:14]line СДАЧА: 0.00 [12:03:14]line НСП 1% : 2.48 [12:03:14]line НДС 12% : 29.77 [12:03:14]line Наличными: 280.00 [12:03:14]line Безнал.: 0.00 [12:03:14]line Место: АЗС № 143 "Партнер Нефть" [12:03:14]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [12:03:14]line СНО: Общий режим [12:03:14]line Чек 103 27.10.2024 12:03 [12:03:14]line Смена: 537 ФФД: 1.0 [12:03:14]line ЗНМ: 0300000096 [12:03:14]line РНМ: 0000000000091693 [12:03:14]line Версия ККМ: 001 [12:03:14]line ФМ: 0000000000871792 [12:03:14]line ФД: 156552 [12:03:14]line ФПД: 140931957852067 [12:03:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T120318&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156552&fm=140931957852067&tin=02508201610067®Number=0000000000091693&sum=28000 [12:03:14]OFD Sender: Processing packet 156552 [packets to send 31, broken 30] [12:03:14]ProducePacketName [12:03:14]name=ofd_packets/00156552 [12:03:14]OFD Sender: To server: pG, [12:03:14]CommunicateWithHost lk.salyk.kg:30040 [12:03:14]ConnectInit lk.salyk.kg [12:03:14]written 0, free lines is 4095 [12:03:14]Connected sock=11 [12:03:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 D3 E7 07 01 EB 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 5E 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 7F 6D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 0B 00 00 00 00 07 04 06 00 60 6D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 06 2C 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 88 63 02 00 35 04 06 00 80 2D 47 49 07 A3 1A 62 75 10 E4 63 E8 D6 [12:03:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 C2 B8 47 00 85 C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 88 63 02 00 F4 03 04 00 75 D1 1D 67 B6 04 01 00 00 F5 84 38 FC D1 14 72 BC [12:03:14]CommunicateWithHost err = 0 [12:03:14]CheckOFDResponse [12:03:14]1017 (14) - 77093643461234 [12:03:14]1041 (16) - 0000000000871792 [12:03:14]1040 (4) - 156552 [12:03:14]1012 (4) - 27.10.2024 05:36 [12:03:14]1206 (1) - 0 [12:03:14]OFD Sender: Remove packet 156552 [12:03:14]ProducePacketName [12:03:14]name=ofd_packets/00156552 [12:03:14]NVStorageDeleteData [12:03:14]Write to MH i2c: 01 00 00 66 4E B4 [12:03:14]Write i2c OK [12:03:14]MH_I2C_Read... [12:03:14]Read from MH i2c: 01 [12:03:14]MH_I2C_Read... [12:03:14]Read from MH i2c: 01 07 00 [12:03:14]MH_I2C_Read... [12:03:14]Read from MH i2c: 01 07 00 66 4E 00 00 00 00 00 D9 0C A0 [12:03:14]RasterBufferAndPrint [12:03:14]line [12:03:14]line [12:03:14]line [12:03:14]line [12:03:14]line [12:03:14]written 0, free lines is 3297 [12:03:15]process_action close_receipt done [12:03:15]requested_data is exist [12:03:15]produce_requested_data [12:03:15]requested_item fm.sn is exist - process it [12:03:15]wFMCommunicate request_size=4 [12:03:15]MH_SAM_APDU [12:03:15]CAPDU: 80 11 00 00 [12:03:15]Write to MH i2c: E2 08 00 6D 4E 80 11 00 00 00 00 00 00 35 [12:03:15]Write i2c OK [12:03:15]MH_I2C_Read... [12:03:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:03:15]Read from MH i2c: E2 [12:03:15]MH_I2C_Read... [12:03:15]Read from MH i2c: E2 17 00 [12:03:15]MH_I2C_Read... [12:03:15]Read from MH i2c: E2 17 00 6D 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 8A [12:03:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:03:15]wFMCommunicate OK [12:03:15]requested_item fd.num is exist - process it [12:03:15]SAM_PROTO_GetFieldsCounters [12:03:15]wFMCommunicate request_size=4 [12:03:15]MH_SAM_APDU [12:03:15]CAPDU: 80 13 00 00 [12:03:15]Write to MH i2c: E2 08 00 6E 4E 80 13 00 00 00 00 00 00 38 [12:03:15]Write i2c OK [12:03:15]MH_I2C_Read... [12:03:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:03:15]Read from MH i2c: E2 [12:03:15]MH_I2C_Read... [12:03:15]Read from MH i2c: E2 62 00 [12:03:15]MH_I2C_Read... [12:03:15]Read from MH i2c: E2 62 00 6E 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 88 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 9B [12:03:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 88 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:03:15]wFMCommunicate OK [12:03:15]SAM_PROTO_GetFieldsCounters done [12:03:15]requested_item shift.num is exist - process it [12:03:15]requested_item shift.opened is exist - process it [12:03:15]req_shift_opened [12:03:15]FM_GetShiftState [12:03:15]SAM_PROTO_GetShiftState [12:03:15]wFMCommunicate request_size=4 [12:03:15]MH_SAM_APDU [12:03:15]CAPDU: 80 13 01 00 [12:03:15]Write to MH i2c: E2 08 00 6F 4E 80 13 01 00 00 00 00 00 3A [12:03:15]Write i2c OK [12:03:15]MH_I2C_Read... [12:03:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:03:15]Read from MH i2c: E2 [12:03:15]MH_I2C_Read... [12:03:15]Read from MH i2c: E2 0E 00 [12:03:15]MH_I2C_Read... [12:03:15]Read from MH i2c: E2 0E 00 6F 4E 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 07 [12:03:15]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [12:03:15]wFMCommunicate OK [12:03:15]SAM_PROTO_GetShiftState done [12:03:15]FM_GetShiftState done [12:03:15]req_shift_opened done [12:03:15]requested_item shift.open_date is exist - process it [12:03:15]req_shift_open_date [12:03:15]req_shift_open_date done [12:03:15]produce_requested_data done [12:03:15]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156552,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [12:03:15]process_action_free close_receipt [12:03:15]json_value_free [12:03:15]json_value_free done [12:03:15]process_json_proto returns [12:03:15]Send response to host [12:03:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156552,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [12:03:15]free response buf [12:03:15]execute_script done [12:03:15]execute_script returns [12:03:15]free content buf [12:03:15]Sock 9.Close socket [12:03:15]Sock 9.Thread stoped [12:03:15]OFD Sender: No OFD packet to send [12:03:20]OFD Sender: No OFD packet to send [12:03:25]OFD Sender: No OFD packet to send [12:03:30]OFD Sender: No OFD packet to send [12:03:35]OFD Sender: No OFD packet to send [12:03:40]OFD Sender: No OFD packet to send [12:03:45]OFD Sender: No OFD packet to send [12:03:50]OFD Sender: No OFD packet to send [12:03:55]OFD Sender: No OFD packet to send [12:04:00]OFD Sender: No OFD packet to send [12:04:05]OFD Sender: No OFD packet to send [12:04:10]OFD Sender: No OFD packet to send [12:04:15]OFD Sender: No OFD packet to send [12:04:20]OFD Sender: No OFD packet to send [12:04:25]OFD Sender: No OFD packet to send [12:04:30]OFD Sender: No OFD packet to send [12:04:35]OFD Sender: No OFD packet to send [12:04:40]OFD Sender: No OFD packet to send [12:04:45]OFD Sender: No OFD packet to send [12:04:50]OFD Sender: No OFD packet to send [12:04:55]OFD Sender: No OFD packet to send [12:05:00]OFD Sender: No OFD packet to send [12:05:05]OFD Sender: No OFD packet to send [12:05:10]OFD Sender: No OFD packet to send [12:05:15]OFD Sender: No OFD packet to send [12:05:20]OFD Sender: No OFD packet to send [12:05:25]OFD Sender: No OFD packet to send [12:05:30]OFD Sender: No OFD packet to send [12:05:35]OFD Sender: No OFD packet to send [12:05:40]OFD Sender: No OFD packet to send [12:05:45]OFD Sender: No OFD packet to send [12:05:50]OFD Sender: No OFD packet to send [12:05:55]OFD Sender: No OFD packet to send [12:06:00]OFD Sender: No OFD packet to send [12:06:05]OFD Sender: No OFD packet to send [12:06:10]OFD Sender: No OFD packet to send [12:06:15]OFD Sender: No OFD packet to send [12:06:20]OFD Sender: No OFD packet to send [12:06:25]OFD Sender: No OFD packet to send [12:06:30]OFD Sender: No OFD packet to send [12:06:35]OFD Sender: No OFD packet to send [12:06:40]OFD Sender: No OFD packet to send [12:06:45]OFD Sender: No OFD packet to send [12:06:50]OFD Sender: No OFD packet to send [12:06:55]OFD Sender: No OFD packet to send [12:07:00]OFD Sender: No OFD packet to send [12:07:05]OFD Sender: No OFD packet to send [12:07:10]OFD Sender: No OFD packet to send [12:07:11]accept exits with 8 [12:07:11]New connection [12:07:11]New thread 3066977636 created [12:07:11]Thread 3066834276 joined [12:07:11]Waiting for new connection... [12:07:11] Sock 8.Parse request [12:07:11]Sock 8.Check first char [12:07:11]Sock 8.First char is OK [12:07:11]request: POST /json_proto HTTP/1.0 [12:07:11]Method: POST [12:07:11]URL: /json_proto [12:07:11]Method is POST - this is cgi request [12:07:11]url: /json_proto [12:07:11]query_string will be loaded in cgi processing [12:07:11]execute_cgi json_proto POST (null) [12:07:11]execute_cgi path=json_proto method=POST [12:07:11]POST find Content-Length [12:07:11]Host: 172.17.63.3:8080 [12:07:11]Content-Length: 673 [12:07:11]Content-Type: application/json [12:07:11] [12:07:11]POST finish read [12:07:11]Found Content-Length = 673 [12:07:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99367", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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:07:11]execute_script... [12:07: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)99367", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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:07:11]POST & json_proto [12:07:11]process_json_proto [12:07:11]json parsed OK: [12:07:11]protocol is kg_v1.0 [12:07:11]action value=close_receipt [12:07:11]process_action close_receipt [12:07:11]cmd_close_receipt [12:07:11]MH_GetDate [12:07:11]Write to MH i2c: F0 00 00 70 4E AD [12:07:11]Write i2c OK [12:07:11]MH_I2C_Read... [12:07:11]Read from MH i2c: F0 [12:07:11]MH_I2C_Read... [12:07:11]Read from MH i2c: F0 09 00 [12:07:11]MH_I2C_Read... [12:07:11]Read from MH i2c: F0 09 00 70 4E 00 F5 2C 1E 67 50 D1 6C 64 4D [12:07:11]GetLastDocTimeStamp 1730030598 [12:07:11]current date 1730030837 [12:07:11]FM_GetShiftState [12:07:11]SAM_PROTO_GetShiftState [12:07:11]wFMCommunicate request_size=4 [12:07:11]MH_SAM_APDU [12:07:11]CAPDU: 80 13 01 00 [12:07:11]Write to MH i2c: E2 08 00 71 4E 80 13 01 00 00 00 00 00 3C [12:07:11]Write i2c OK [12:07:11]MH_I2C_Read... [12:07:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:07:11]Read from MH i2c: E2 [12:07:11]MH_I2C_Read... [12:07:11]Read from MH i2c: E2 0E 00 [12:07:11]MH_I2C_Read... [12:07:11]Read from MH i2c: E2 0E 00 71 4E 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 09 [12:07:11]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [12:07:11]wFMCommunicate OK [12:07:11]SAM_PROTO_GetShiftState done [12:07:11]FM_GetShiftState done [12:07:11]opened in 1729989044 [12:07:11]opened+sec_in_day 1730075444 [12:07:11]quantity*price = 50063 [12:07:11]sum+1 = 50064 [12:07:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 104 27.10.2024 12:07 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156553 ФПД: 112060495501811 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T120717&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156553&fm=112060495501811&tin=02508201610067®Number=0000000000091693&sum=50000 [12:07:13]StoreToDocumentArchive [12:07:13]shift 537 fd 156553 [12:07:13]save to /storage/0537/doc_00156553 [12:07:13]save last doc name /storage/0537/doc_00156553 to /storage/kkm_last_doc_name [12:07:13]save OK [12:07:13]Clear old archive folders... [12:07:13]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:07:13]tlvbuf is 01857FB0 [12:07:13]SAM_PROTO_ClearQueue [12:07:13]wFMCommunicate request_size=4 [12:07:13]MH_SAM_APDU [12:07:13]CAPDU: 80 09 00 00 [12:07:13]Write to MH i2c: E2 08 00 7E 4E 80 09 00 00 00 00 00 00 3E [12:07:13]Write i2c OK [12:07:13]MH_I2C_Read... [12:07:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:07:13]Read from MH i2c: E2 [12:07:13]MH_I2C_Read... [12:07:13]Read from MH i2c: E2 03 00 [12:07:13]MH_I2C_Read... [12:07:13]Read from MH i2c: E2 03 00 7E 4E 00 90 00 40 [12:07:13]RAPDU: 90 00 [12:07:13]wFMCommunicate OK [12:07:13]SAM_PROTO_ClearQueue done [12:07:13]KKMCreateOFDPacket [12:07:13]OFDProtocolAddRootSTLVToBuf [12:07:13]FM_MakeSignedData [12:07:13]FM_MakeSignedData [12:07:13]SAM_PROTO_SignData [12:07:13]wFMCommunicate request_size=4 [12:07:13]MH_SAM_APDU [12:07:13]CAPDU: 80 0D 01 02 [12:07:13]Write to MH i2c: E2 08 00 7F 4E 80 0D 01 02 00 00 00 00 46 [12:07:13]Write i2c OK [12:07:13]MH_I2C_Read... [12:07:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:07:13]Read from MH i2c: E2 [12:07:13]MH_I2C_Read... [12:07:13]Read from MH i2c: E2 03 00 [12:07:13]MH_I2C_Read... [12:07:13]Read from MH i2c: E2 03 00 7F 4E 00 90 00 41 [12:07:13]RAPDU: 90 00 [12:07:13]wFMCommunicate OK [12:07:13]wFMCommunicate request_size=255 [12:07:13]MH_SAM_APDU [12:07:13]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 68 00 00 00 F4 03 04 00 F5 2C 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 89 63 02 00 35 04 06 00 65 EB 1E 07 [12:07:13]Write to MH i2c: E2 02 01 80 4E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 68 00 00 00 F4 03 04 00 F5 2C 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 89 63 02 00 35 04 06 00 65 EB 1E 07 00 00 E4 [12:07:13]Write i2c OK [12:07:13]MH_I2C_Read... [12:07:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:07:13]Read from MH i2c: E2 [12:07:13]MH_I2C_Read... [12:07:13]Read from MH i2c: E2 03 00 [12:07:13]MH_I2C_Read... [12:07:13]Read from MH i2c: E2 03 00 80 4E 00 90 00 42 [12:07:13]RAPDU: 90 00 [12:07:13]wFMCommunicate OK [12:07:13]wFMCommunicate request_size=7 [12:07:13]MH_SAM_APDU [12:07:13]CAPDU: 80 0D 02 02 02 19 F3 [12:07:13]Write to MH i2c: E2 0A 00 81 4E 80 0D 02 02 02 00 19 F3 00 00 59 [12:07:13]Write i2c OK [12:07:13]MH_I2C_Read... [12:07:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:07:13]Read from MH i2c: E2 [12:07:13]MH_I2C_Read... [12:07:13]Read from MH i2c: E2 03 00 [12:07:13]MH_I2C_Read... [12:07:13]Read from MH i2c: E2 03 00 81 4E 00 90 00 43 [12:07:13]RAPDU: 90 00 [12:07:13]wFMCommunicate OK [12:07:13]wFMCommunicate request_size=4 [12:07:13]MH_SAM_APDU [12:07:13]CAPDU: 80 0D 03 02 [12:07:13]Write to MH i2c: E2 08 00 82 4E 80 0D 03 02 00 00 00 00 4B [12:07:13]Write i2c OK [12:07:13]MH_I2C_Read... [12:07:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:07:13]Read from MH i2c: E2 [12:07:13]MH_I2C_Read... [12:07:13]Read from MH i2c: E2 0B 00 [12:07:13]MH_I2C_Read... [12:07:13]Read from MH i2c: E2 0B 00 82 4E 00 4B AF AF C6 46 B3 7B 98 90 00 C7 [12:07:13]RAPDU: 4B AF AF C6 46 B3 7B 98 90 00 [12:07:13]wFMCommunicate OK [12:07:13]SAM_PROTO_SignData done [12:07:13]FM_MakeSignedData done [12:07:13]CreateOFDProtocolMessage [12:07:13]wFMCommunicate request_size=4 [12:07:13]MH_SAM_APDU [12:07:13]CAPDU: 80 11 00 00 [12:07:13]Write to MH i2c: E2 08 00 83 4E 80 11 00 00 00 00 00 00 4B [12:07:13]Write i2c OK [12:07:13]MH_I2C_Read... [12:07:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:07:13]Read from MH i2c: E2 [12:07:13]MH_I2C_Read... [12:07:13]Read from MH i2c: E2 17 00 [12:07:13]MH_I2C_Read... [12:07:13]Read from MH i2c: E2 17 00 83 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 A0 [12:07:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:07:13]wFMCommunicate OK [12:07:13]CreateOFDProtocolMessage done [12:07:13]OFDSenderStorePacket 156553 [12:07:13]StoreOFDPacket docnum=156553 [12:07:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 A2 41 04 01 53 AB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 68 00 00 00 F4 03 04 00 F5 2C 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 89 63 02 00 35 04 06 00 65 EB 1E 07 19 F3 4B AF AF C6 46 B3 7B 98 [12:07:13]CheckFolder [12:07:13]dirname=/storage/ofd_packets [12:07:13]CheckFolder done [12:07:13]ProducePacketName [12:07:13]name=ofd_packets/00156553 [12:07:13]NVStorageSaveData ofd_packets/00156553 [12:07:13]File name is /storage/ofd_packets/00156553 [12:07:13]Write 298 bytes [12:07:13]NVStorageSaveData done [12:07:13]OFDSenderStorePacket done [12:07:13]KKMCreateOFDPacket done [12:07:13]NVStorageSaveData kkm_last_timestamp [12:07:13]File name is /storage/kkm_last_timestamp [12:07:13]Write 4 bytes [12:07:13]NVStorageSaveData done [12:07:13]ExternCall_PrintAddStr [12:07:13]wPrintStart [12:07:13]Write to MH i2c: 01 00 00 84 4E D2 [12:07:13]Write i2c OK [12:07:13]MH_I2C_Read... [12:07:13]Read from MH i2c: 01 [12:07:13]MH_I2C_Read... [12:07:13]Read from MH i2c: 01 07 00 [12:07:13]MH_I2C_Read... [12:07:13]Read from MH i2c: 01 07 00 84 4E 00 00 00 00 00 FF 0F E7 [12:07:13]RasterBufferAndPrint [12:07:13]line Счет N : (1)99367 [12:07:13]line ИНН: 02508201610067 [12:07:13]line Контрольно-Кассовый Чек [12:07:13]line ПРОДАЖА [12:07:13]line ТРК (МРК, ГНК) : 32 [12:07:13]line Товар: 2710194210 [12:07:13]line ДТ-К-5 [12:07:13]line 6.570 * 76.20 [12:07:13]line = 500.63 [12:07:13]line НДС 12% НСП 1% [12:07:13]line > о реализуемом товаре [12:07:13]line ОКРУГЛЕНИЕ: -0.63 [12:07:13]line ИТОГО: 500.00 [12:07:13]line Внесено: 500.00 [12:07:13]line СДАЧА: 0.00 [12:07:13]line НСП 1% : 4.43 [12:07:13]line НДС 12% : 53.16 [12:07:13]line Наличными: 500.00 [12:07:13]line Безнал.: 0.00 [12:07:13]line Место: АЗС № 143 "Партнер Нефть" [12:07:13]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [12:07:13]line СНО: Общий режим [12:07:13]line Чек 104 27.10.2024 12:07 [12:07:13]line Смена: 537 ФФД: 1.0 [12:07:13]line ЗНМ: 0300000096 [12:07:13]line РНМ: 0000000000091693 [12:07:13]line Версия ККМ: 001 [12:07:13]line ФМ: 0000000000871792 [12:07:13]line ФД: 156553 [12:07:13]line ФПД: 112060495501811 [12:07:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T120717&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156553&fm=112060495501811&tin=02508201610067®Number=0000000000091693&sum=50000 [12:07:13]OFD Sender: Processing packet 156553 [packets to send 31, broken 30] [12:07:13]ProducePacketName [12:07:13]name=ofd_packets/00156553 [12:07:13]OFD Sender: To server: pG, [12:07:13]CommunicateWithHost lk.salyk.kg:30040 [12:07:13]ConnectInit lk.salyk.kg [12:07:13]written 0, free lines is 4095 [12:07:13]Connected sock=10 [12:07:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 A2 41 04 01 53 AB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 68 00 00 00 F4 03 04 00 F5 2C 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 89 63 02 00 35 04 06 00 65 EB 1E 07 19 F3 4B AF AF C6 46 B3 7B 98 [12:07:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 95 61 47 00 DE DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 89 63 02 00 F4 03 04 00 65 D2 1D 67 B6 04 01 00 00 68 CB 9E 80 6D 46 C3 14 [12:07:14]CommunicateWithHost err = 0 [12:07:14]CheckOFDResponse [12:07:14]1017 (14) - 77093643461234 [12:07:14]1041 (16) - 0000000000871792 [12:07:14]1040 (4) - 156553 [12:07:14]1012 (4) - 27.10.2024 05:40 [12:07:14]1206 (1) - 0 [12:07:14]OFD Sender: Remove packet 156553 [12:07:14]ProducePacketName [12:07:14]name=ofd_packets/00156553 [12:07:14]NVStorageDeleteData [12:07:14]Write to MH i2c: 01 00 00 AF 4E FD [12:07:14]Write i2c OK [12:07:14]MH_I2C_Read... [12:07:14]Read from MH i2c: 01 [12:07:14]MH_I2C_Read... [12:07:14]Read from MH i2c: 01 07 00 [12:07:14]MH_I2C_Read... [12:07:14]Read from MH i2c: 01 07 00 AF 4E 00 00 00 00 00 E3 0C F3 [12:07:14]RasterBufferAndPrint [12:07:14]line [12:07:14]line [12:07:14]line [12:07:14]line [12:07:14]line [12:07:14]written 0, free lines is 3305 [12:07:14]process_action close_receipt done [12:07:14]requested_data is exist [12:07:14]produce_requested_data [12:07:14]requested_item fm.sn is exist - process it [12:07:14]wFMCommunicate request_size=4 [12:07:14]MH_SAM_APDU [12:07:14]CAPDU: 80 11 00 00 [12:07:14]Write to MH i2c: E2 08 00 B6 4E 80 11 00 00 00 00 00 00 7E [12:07:14]Write i2c OK [12:07:14]MH_I2C_Read... [12:07:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:07:14]Read from MH i2c: E2 [12:07:14]MH_I2C_Read... [12:07:14]Read from MH i2c: E2 17 00 [12:07:14]MH_I2C_Read... [12:07:14]Read from MH i2c: E2 17 00 B6 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 D3 [12:07:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:07:14]wFMCommunicate OK [12:07:14]requested_item fd.num is exist - process it [12:07:14]SAM_PROTO_GetFieldsCounters [12:07:14]wFMCommunicate request_size=4 [12:07:14]MH_SAM_APDU [12:07:14]CAPDU: 80 13 00 00 [12:07:14]Write to MH i2c: E2 08 00 B7 4E 80 13 00 00 00 00 00 00 81 [12:07:14]Write i2c OK [12:07:14]MH_I2C_Read... [12:07:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:07:14]Read from MH i2c: E2 [12:07:14]MH_I2C_Read... [12:07:14]Read from MH i2c: E2 62 00 [12:07:14]MH_I2C_Read... [12:07:14]Read from MH i2c: E2 62 00 B7 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 89 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 E8 [12:07:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 89 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:07:14]wFMCommunicate OK [12:07:14]SAM_PROTO_GetFieldsCounters done [12:07:14]requested_item shift.num is exist - process it [12:07:14]requested_item shift.opened is exist - process it [12:07:14]req_shift_opened [12:07:14]FM_GetShiftState [12:07:14]SAM_PROTO_GetShiftState [12:07:14]wFMCommunicate request_size=4 [12:07:14]MH_SAM_APDU [12:07:14]CAPDU: 80 13 01 00 [12:07:14]Write to MH i2c: E2 08 00 B8 4E 80 13 01 00 00 00 00 00 83 [12:07:14]Write i2c OK [12:07:14]MH_I2C_Read... [12:07:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:07:14]Read from MH i2c: E2 [12:07:14]MH_I2C_Read... [12:07:14]Read from MH i2c: E2 0E 00 [12:07:14]MH_I2C_Read... [12:07:14]Read from MH i2c: E2 0E 00 B8 4E 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 50 [12:07:14]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [12:07:14]wFMCommunicate OK [12:07:14]SAM_PROTO_GetShiftState done [12:07:14]FM_GetShiftState done [12:07:14]req_shift_opened done [12:07:14]requested_item shift.open_date is exist - process it [12:07:14]req_shift_open_date [12:07:14]req_shift_open_date done [12:07:14]produce_requested_data done [12:07:14]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156553,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [12:07:14]process_action_free close_receipt [12:07:14]json_value_free [12:07:14]json_value_free done [12:07:14]process_json_proto returns [12:07:14]Send response to host [12:07:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156553,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [12:07:14]free response buf [12:07:14]execute_script done [12:07:14]execute_script returns [12:07:14]free content buf [12:07:14]Sock 8.Close socket [12:07:14]Sock 8.Thread stoped [12:07:14]OFD Sender: No OFD packet to send [12:07:19]OFD Sender: No OFD packet to send [12:07:24]OFD Sender: No OFD packet to send [12:07:29]OFD Sender: No OFD packet to send [12:07:34]OFD Sender: No OFD packet to send [12:07:38]accept exits with 9 [12:07:38]New connection [12:07:38]New thread 3066834276 created [12:07:38]Thread 3066977636 joined [12:07:38]Waiting for new connection... [12:07:38] Sock 9.Parse request [12:07:38]Sock 9.Check first char [12:07:38]Sock 9.First char is OK [12:07:38]request: POST /json_proto HTTP/1.0 [12:07:38]Method: POST [12:07:38]URL: /json_proto [12:07:38]Method is POST - this is cgi request [12:07:38]url: /json_proto [12:07:38]query_string will be loaded in cgi processing [12:07:38]execute_cgi json_proto POST (null) [12:07:38]execute_cgi path=json_proto method=POST [12:07:38]POST find Content-Length [12:07:38]Host: 172.17.63.3:8080 [12:07:38]Content-Length: 676 [12:07:38]Content-Type: application/json [12:07:38] [12:07:38]POST finish read [12:07:38]Found Content-Length = 676 [12:07:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99368", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "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" ] } } [12:07:38]execute_script... [12:07: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)99368", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "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" ] } } [12:07:38]POST & json_proto [12:07:38]process_json_proto [12:07:38]json parsed OK: [12:07:38]protocol is kg_v1.0 [12:07:38]action value=close_receipt [12:07:38]process_action close_receipt [12:07:38]cmd_close_receipt [12:07:38]MH_GetDate [12:07:38]Write to MH i2c: F0 00 00 B9 4E F6 [12:07:38]Write i2c OK [12:07:38]MH_I2C_Read... [12:07:38]Read from MH i2c: F0 [12:07:38]MH_I2C_Read... [12:07:38]Read from MH i2c: F0 09 00 [12:07:38]MH_I2C_Read... [12:07:38]Read from MH i2c: F0 09 00 B9 4E 00 10 2D 1E 67 50 D1 6C 64 B2 [12:07:38]GetLastDocTimeStamp 1730030837 [12:07:38]current date 1730030864 [12:07:38]FM_GetShiftState [12:07:38]SAM_PROTO_GetShiftState [12:07:38]wFMCommunicate request_size=4 [12:07:38]MH_SAM_APDU [12:07:38]CAPDU: 80 13 01 00 [12:07:38]Write to MH i2c: E2 08 00 BA 4E 80 13 01 00 00 00 00 00 85 [12:07:38]Write i2c OK [12:07:38]MH_I2C_Read... [12:07:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:07:38]Read from MH i2c: E2 [12:07:38]MH_I2C_Read... [12:07:38]Read from MH i2c: E2 0E 00 [12:07:38]MH_I2C_Read... [12:07:38]Read from MH i2c: E2 0E 00 BA 4E 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 52 [12:07:38]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [12:07:38]wFMCommunicate OK [12:07:38]SAM_PROTO_GetShiftState done [12:07:38]FM_GetShiftState done [12:07:38]opened in 1729989044 [12:07:38]opened+sec_in_day 1730075444 [12:07:38]quantity*price = 20003 [12:07:38]sum+1 = 20004 [12:07:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 105 27.10.2024 12:07 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156554 ФПД: 100256422658274 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T120744&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156554&fm=100256422658274&tin=02508201610067®Number=0000000000091693&sum=20000 [12:07:40]StoreToDocumentArchive [12:07:40]shift 537 fd 156554 [12:07:40]save to /storage/0537/doc_00156554 [12:07:40]save last doc name /storage/0537/doc_00156554 to /storage/kkm_last_doc_name [12:07:40]save OK [12:07:40]Clear old archive folders... [12:07:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:07:40]tlvbuf is 016E4020 [12:07:40]SAM_PROTO_ClearQueue [12:07:40]wFMCommunicate request_size=4 [12:07:40]MH_SAM_APDU [12:07:40]CAPDU: 80 09 00 00 [12:07:40]Write to MH i2c: E2 08 00 C7 4E 80 09 00 00 00 00 00 00 87 [12:07:40]Write i2c OK [12:07:40]MH_I2C_Read... [12:07:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:07:40]Read from MH i2c: E2 [12:07:40]MH_I2C_Read... [12:07:40]Read from MH i2c: E2 03 00 [12:07:40]MH_I2C_Read... [12:07:40]Read from MH i2c: E2 03 00 C7 4E 00 90 00 89 [12:07:40]RAPDU: 90 00 [12:07:40]wFMCommunicate OK [12:07:40]SAM_PROTO_ClearQueue done [12:07:40]KKMCreateOFDPacket [12:07:40]OFDProtocolAddRootSTLVToBuf [12:07:40]FM_MakeSignedData [12:07:40]FM_MakeSignedData [12:07:40]SAM_PROTO_SignData [12:07:40]wFMCommunicate request_size=4 [12:07:40]MH_SAM_APDU [12:07:40]CAPDU: 80 0D 01 02 [12:07:40]Write to MH i2c: E2 08 00 C8 4E 80 0D 01 02 00 00 00 00 8F [12:07:40]Write i2c OK [12:07:40]MH_I2C_Read... [12:07:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:07:40]Read from MH i2c: E2 [12:07:40]MH_I2C_Read... [12:07:40]Read from MH i2c: E2 03 00 [12:07:40]MH_I2C_Read... [12:07:40]Read from MH i2c: E2 03 00 C8 4E 00 90 00 8A [12:07:40]RAPDU: 90 00 [12:07:40]wFMCommunicate OK [12:07:40]wFMCommunicate request_size=255 [12:07:40]MH_SAM_APDU [12:07: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 69 00 00 00 F4 03 04 00 10 2D 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 8A 63 02 00 35 04 06 00 5B [12:07:40]Write to MH i2c: E2 02 01 C9 4E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 69 00 00 00 F4 03 04 00 10 2D 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 8A 63 02 00 35 04 06 00 5B 00 00 75 [12:07:40]Write i2c OK [12:07:40]MH_I2C_Read... [12:07:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:07:40]Read from MH i2c: E2 [12:07:40]MH_I2C_Read... [12:07:40]Read from MH i2c: E2 03 00 [12:07:40]MH_I2C_Read... [12:07:40]Read from MH i2c: E2 03 00 C9 4E 00 90 00 8B [12:07:40]RAPDU: 90 00 [12:07:40]wFMCommunicate OK [12:07:40]wFMCommunicate request_size=10 [12:07:40]MH_SAM_APDU [12:07:40]CAPDU: 80 0D 02 02 05 2E C4 75 80 E2 [12:07:40]Write to MH i2c: E2 0D 00 CA 4E 80 0D 02 02 05 00 2E C4 75 80 E2 00 00 65 [12:07:40]Write i2c OK [12:07:40]MH_I2C_Read... [12:07:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:07:40]Read from MH i2c: E2 [12:07:40]MH_I2C_Read... [12:07:40]Read from MH i2c: E2 03 00 [12:07:40]MH_I2C_Read... [12:07:40]Read from MH i2c: E2 03 00 CA 4E 00 90 00 8C [12:07:40]RAPDU: 90 00 [12:07:40]wFMCommunicate OK [12:07:40]wFMCommunicate request_size=4 [12:07:40]MH_SAM_APDU [12:07:40]CAPDU: 80 0D 03 02 [12:07:40]Write to MH i2c: E2 08 00 CB 4E 80 0D 03 02 00 00 00 00 94 [12:07:40]Write i2c OK [12:07:40]MH_I2C_Read... [12:07:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:07:40]Read from MH i2c: E2 [12:07:40]MH_I2C_Read... [12:07:40]Read from MH i2c: E2 0B 00 [12:07:40]MH_I2C_Read... [12:07:40]Read from MH i2c: E2 0B 00 CB 4E 00 47 92 49 48 28 87 F3 C5 90 00 66 [12:07:40]RAPDU: 47 92 49 48 28 87 F3 C5 90 00 [12:07:40]wFMCommunicate OK [12:07:40]SAM_PROTO_SignData done [12:07:40]FM_MakeSignedData done [12:07:40]CreateOFDProtocolMessage [12:07:40]wFMCommunicate request_size=4 [12:07:40]MH_SAM_APDU [12:07:40]CAPDU: 80 11 00 00 [12:07:40]Write to MH i2c: E2 08 00 CC 4E 80 11 00 00 00 00 00 00 94 [12:07:40]Write i2c OK [12:07:40]MH_I2C_Read... [12:07:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:07:40]Read from MH i2c: E2 [12:07:40]MH_I2C_Read... [12:07:40]Read from MH i2c: E2 17 00 [12:07:40]MH_I2C_Read... [12:07:40]Read from MH i2c: E2 17 00 CC 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 E9 [12:07:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:07:40]wFMCommunicate OK [12:07:40]CreateOFDProtocolMessage done [12:07:40]OFDSenderStorePacket 156554 [12:07:40]StoreOFDPacket docnum=156554 [12:07:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 83 C9 07 01 E2 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 69 00 00 00 F4 03 04 00 10 2D 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 8A 63 02 00 35 04 06 00 5B 2E C4 75 80 E2 47 92 49 48 28 87 F3 C5 [12:07:40]CheckFolder [12:07:40]dirname=/storage/ofd_packets [12:07:40]CheckFolder done [12:07:40]ProducePacketName [12:07:40]name=ofd_packets/00156554 [12:07:40]NVStorageSaveData ofd_packets/00156554 [12:07:40]File name is /storage/ofd_packets/00156554 [12:07:40]Write 301 bytes [12:07:40]NVStorageSaveData done [12:07:40]OFDSenderStorePacket done [12:07:40]KKMCreateOFDPacket done [12:07:40]NVStorageSaveData kkm_last_timestamp [12:07:40]File name is /storage/kkm_last_timestamp [12:07:40]Write 4 bytes [12:07:40]NVStorageSaveData done [12:07:40]ExternCall_PrintAddStr [12:07:40]wPrintStart [12:07:40]Write to MH i2c: 01 00 00 CD 4E 1B [12:07:40]Write i2c OK [12:07:40]MH_I2C_Read... [12:07:40]Read from MH i2c: 01 [12:07:40]MH_I2C_Read... [12:07:40]Read from MH i2c: 01 07 00 [12:07:40]MH_I2C_Read... [12:07:40]Read from MH i2c: 01 07 00 CD 4E 00 00 00 00 00 FF 0F 30 [12:07:40]RasterBufferAndPrint [12:07:40]line Счет N : (1)99368 [12:07:40]line ИНН: 02508201610067 [12:07:40]line Контрольно-Кассовый Чек [12:07:40]line ПРОДАЖА [12:07:40]line ТРК (МРК, ГНК) : 11 [12:07:40]line Товар: 2710124130 [12:07:40]line Аи-92-К-5 [12:07:40]line 2.990 * 66.90 [12:07:40]line = 200.03 [12:07:40]line НДС 12% НСП 1% [12:07:40]line > о реализуемом товаре [12:07:40]line ОКРУГЛЕНИЕ: -0.03 [12:07:40]line ИТОГО: 200.00 [12:07:40]line Внесено: 200.00 [12:07:40]line СДАЧА: 0.00 [12:07:40]line НСП 1% : 1.77 [12:07:40]line НДС 12% : 21.24 [12:07:40]line Наличными: 200.00 [12:07:40]line Безнал.: 0.00 [12:07:40]line Место: АЗС № 143 "Партнер Нефть" [12:07:40]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [12:07:40]line СНО: Общий режим [12:07:40]line Чек 105 27.10.2024 12:07 [12:07:40]line Смена: 537 ФФД: 1.0 [12:07:40]line ЗНМ: 0300000096 [12:07:40]line РНМ: 0000000000091693 [12:07:40]line Версия ККМ: 001 [12:07:40]line ФМ: 0000000000871792 [12:07:40]line ФД: 156554 [12:07:40]line ФПД: 100256422658274 [12:07:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T120744&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156554&fm=100256422658274&tin=02508201610067®Number=0000000000091693&sum=20000 [12:07:40]OFD Sender: Processing packet 156554 [packets to send 31, broken 30] [12:07:40]ProducePacketName [12:07:40]name=ofd_packets/00156554 [12:07:40]OFD Sender: To server: pG, [12:07:40]CommunicateWithHost lk.salyk.kg:30040 [12:07:40]ConnectInit lk.salyk.kg [12:07:40]written 0, free lines is 4095 [12:07:41]Connected sock=10 [12:07:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 83 C9 07 01 E2 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 69 00 00 00 F4 03 04 00 10 2D 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 8A 63 02 00 35 04 06 00 5B 2E C4 75 80 E2 47 92 49 48 28 87 F3 C5 [12:07:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 54 EE 47 00 2A 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 31 37 39 32 10 04 04 00 8A 63 02 00 F4 03 04 00 80 D2 1D 67 B6 04 01 00 00 C0 BC 79 65 B9 33 B8 EA [12:07:41]CommunicateWithHost err = 0 [12:07:41]CheckOFDResponse [12:07:41]1017 (14) - 77093643461234 [12:07:41]1041 (16) - 0000000000871792 [12:07:41]1040 (4) - 156554 [12:07:41]1012 (4) - 27.10.2024 05:41 [12:07:41]1206 (1) - 0 [12:07:41]OFD Sender: Remove packet 156554 [12:07:41]ProducePacketName [12:07:41]name=ofd_packets/00156554 [12:07:41]NVStorageDeleteData [12:07:41]Write to MH i2c: 01 00 00 F8 4E 46 [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 F8 4E 00 00 00 00 00 D4 0C 2D [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 3292 [12:07:41]process_action close_receipt done [12:07:41]requested_data is exist [12:07:41]produce_requested_data [12:07:41]requested_item fm.sn is exist - process it [12:07:41]wFMCommunicate request_size=4 [12:07:41]MH_SAM_APDU [12:07:41]CAPDU: 80 11 00 00 [12:07:41]Write to MH i2c: E2 08 00 FF 4E 80 11 00 00 00 00 00 00 C7 [12:07:41]Write i2c OK [12:07:41]MH_I2C_Read... [12:07:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:07:41]Read from MH i2c: E2 [12:07:41]MH_I2C_Read... [12:07:41]Read from MH i2c: E2 17 00 [12:07:41]MH_I2C_Read... [12:07:41]Read from MH i2c: E2 17 00 FF 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 1C [12:07:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:07:41]wFMCommunicate OK [12:07:41]requested_item fd.num is exist - process it [12:07:41]SAM_PROTO_GetFieldsCounters [12:07:41]wFMCommunicate request_size=4 [12:07:41]MH_SAM_APDU [12:07:41]CAPDU: 80 13 00 00 [12:07:41]Write to MH i2c: E2 08 00 00 4F 80 13 00 00 00 00 00 00 CB [12:07:41]Write i2c OK [12:07:41]MH_I2C_Read... [12:07:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:07:41]Read from MH i2c: E2 [12:07:41]MH_I2C_Read... [12:07:41]Read from MH i2c: E2 62 00 [12:07:41]MH_I2C_Read... [12:07:41]Read from MH i2c: E2 62 00 00 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 8A 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 36 [12:07:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 8A 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:07:41]wFMCommunicate OK [12:07:41]SAM_PROTO_GetFieldsCounters done [12:07:41]requested_item shift.num is exist - process it [12:07:41]requested_item shift.opened is exist - process it [12:07:41]req_shift_opened [12:07:41]FM_GetShiftState [12:07:41]SAM_PROTO_GetShiftState [12:07:41]wFMCommunicate request_size=4 [12:07:41]MH_SAM_APDU [12:07:41]CAPDU: 80 13 01 00 [12:07:41]Write to MH i2c: E2 08 00 01 4F 80 13 01 00 00 00 00 00 CD [12:07:41]Write i2c OK [12:07:41]MH_I2C_Read... [12:07:41]Read from MH i2c: E2 [12:07:41]MH_I2C_Read... [12:07:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:07:41]Read from MH i2c: E2 0E 00 [12:07:41]MH_I2C_Read... [12:07:41]Read from MH i2c: E2 0E 00 01 4F 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 9A [12:07:41]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [12:07:41]wFMCommunicate OK [12:07:41]SAM_PROTO_GetShiftState done [12:07:41]FM_GetShiftState done [12:07:41]req_shift_opened done [12:07:41]requested_item shift.open_date is exist - process it [12:07:41]req_shift_open_date [12:07:41]req_shift_open_date done [12:07:41]produce_requested_data done [12:07:41]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156554,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [12:07:41]process_action_free close_receipt [12:07:41]json_value_free [12:07:41]json_value_free done [12:07:41]process_json_proto returns [12:07:41]Send response to host [12:07:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156554,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [12:07:41]free response buf [12:07:41]execute_script done [12:07:41]execute_script returns [12:07:41]free content buf [12:07:41]Sock 9.Close socket [12:07:41]Sock 9.Thread stoped [12:07:41]OFD Sender: No OFD packet to send [12:07:46]OFD Sender: No OFD packet to send [12:07:51]OFD Sender: No OFD packet to send [12:07:56]OFD Sender: No OFD packet to send [12:08:01]OFD Sender: No OFD packet to send [12:08:06]OFD Sender: No OFD packet to send [12:08:11]OFD Sender: No OFD packet to send [12:08:16]OFD Sender: No OFD packet to send [12:08:21]OFD Sender: No OFD packet to send [12:08:26]OFD Sender: No OFD packet to send [12:08:31]OFD Sender: No OFD packet to send [12:08:36]OFD Sender: No OFD packet to send [12:08:41]OFD Sender: No OFD packet to send [12:08:46]OFD Sender: No OFD packet to send [12:08:51]OFD Sender: No OFD packet to send [12:08:56]OFD Sender: No OFD packet to send [12:09:01]OFD Sender: No OFD packet to send [12:09:06]OFD Sender: No OFD packet to send [12:09:11]OFD Sender: No OFD packet to send [12:09:16]OFD Sender: No OFD packet to send [12:09:21]OFD Sender: No OFD packet to send [12:09:26]OFD Sender: No OFD packet to send [12:09:31]OFD Sender: No OFD packet to send [12:09:36]OFD Sender: No OFD packet to send [12:09:41]OFD Sender: No OFD packet to send [12:09:46]OFD Sender: No OFD packet to send [12:09:51]OFD Sender: No OFD packet to send [12:09:56]OFD Sender: No OFD packet to send [12:10:01]OFD Sender: No OFD packet to send [12:10:06]OFD Sender: No OFD packet to send [12:10:11]OFD Sender: No OFD packet to send [12:10:16]OFD Sender: No OFD packet to send [12:10:21]OFD Sender: No OFD packet to send [12:10:26]OFD Sender: No OFD packet to send [12:10:31]OFD Sender: No OFD packet to send [12:10:36]OFD Sender: No OFD packet to send [12:10:41]OFD Sender: No OFD packet to send [12:10:46]OFD Sender: No OFD packet to send [12:10:51]OFD Sender: No OFD packet to send [12:10:56]OFD Sender: No OFD packet to send [12:11:01]OFD Sender: No OFD packet to send [12:11:06]OFD Sender: No OFD packet to send [12:11:11]OFD Sender: No OFD packet to send [12:11:16]OFD Sender: No OFD packet to send [12:11:21]OFD Sender: No OFD packet to send [12:11:27]OFD Sender: No OFD packet to send [12:11:32]OFD Sender: No OFD packet to send [12:11:37]OFD Sender: No OFD packet to send [12:11:42]OFD Sender: No OFD packet to send [12:11:47]OFD Sender: No OFD packet to send [12:11:52]OFD Sender: No OFD packet to send [12:11:57]OFD Sender: No OFD packet to send [12:12:02]OFD Sender: No OFD packet to send [12:12:07]OFD Sender: No OFD packet to send [12:12:12]OFD Sender: No OFD packet to send [12:12:17]OFD Sender: No OFD packet to send [12:12:22]OFD Sender: No OFD packet to send [12:12:27]OFD Sender: No OFD packet to send [12:12:32]OFD Sender: No OFD packet to send [12:12:37]OFD Sender: No OFD packet to send [12:12:42]OFD Sender: No OFD packet to send [12:12:47]OFD Sender: No OFD packet to send [12:12:52]OFD Sender: No OFD packet to send [12:12:57]OFD Sender: No OFD packet to send [12:13:02]OFD Sender: No OFD packet to send [12:13:07]OFD Sender: No OFD packet to send [12:13:12]OFD Sender: No OFD packet to send [12:13:17]OFD Sender: No OFD packet to send [12:13:22]OFD Sender: No OFD packet to send [12:13:27]OFD Sender: No OFD packet to send [12:13:32]OFD Sender: No OFD packet to send [12:13:37]OFD Sender: No OFD packet to send [12:13:42]OFD Sender: No OFD packet to send [12:13:47]accept exits with 8 [12:13:47]New connection [12:13:47]New thread 3066977636 created [12:13:47]Thread 3066834276 joined [12:13:47]Waiting for new connection... [12:13:47] Sock 8.Parse request [12:13:47]Sock 8.Check first char [12:13:47]Sock 8.First char is OK [12:13:47]request: POST /json_proto HTTP/1.0 [12:13:47]Method: POST [12:13:47]URL: /json_proto [12:13:47]Method is POST - this is cgi request [12:13:47]url: /json_proto [12:13:47]query_string will be loaded in cgi processing [12:13:47]execute_cgi json_proto POST (null) [12:13:47]execute_cgi path=json_proto method=POST [12:13:47]POST find Content-Length [12:13:47]Host: 172.17.63.3:8080 [12:13:47]Content-Length: 641 [12:13:47]Content-Type: application/json [12:13:47] [12:13:47]POST finish read [12:13:47]Found Content-Length = 641 [12:13:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99369", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 20.000, "sum" : 1338.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1338.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:13:47]execute_script... [12:13:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99369", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 20.000, "sum" : 1338.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1338.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:13:47]POST & json_proto [12:13:47]process_json_proto [12:13:47]json parsed OK: [12:13:47]protocol is kg_v1.0 [12:13:47]action value=close_receipt [12:13:47]process_action close_receipt [12:13:47]cmd_close_receipt [12:13:47]MH_GetDate [12:13:47]Write to MH i2c: F0 00 00 02 4F 40 [12:13:47]Write i2c OK [12:13:47]MH_I2C_Read... [12:13:47]Read from MH i2c: F0 [12:13:47]MH_I2C_Read... [12:13:47]Read from MH i2c: F0 09 00 [12:13:47]MH_I2C_Read... [12:13:47]Read from MH i2c: F0 09 00 02 4F 00 80 2E 1E 67 50 D1 6C 64 6D [12:13:47]GetLastDocTimeStamp 1730030864 [12:13:47]current date 1730031232 [12:13:47]FM_GetShiftState [12:13:47]SAM_PROTO_GetShiftState [12:13:47]wFMCommunicate request_size=4 [12:13:47]MH_SAM_APDU [12:13:47]CAPDU: 80 13 01 00 [12:13:47]Write to MH i2c: E2 08 00 03 4F 80 13 01 00 00 00 00 00 CF [12:13:47]Write i2c OK [12:13:47]MH_I2C_Read... [12:13:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:13:47]Read from MH i2c: E2 [12:13:47]MH_I2C_Read... [12:13:47]Read from MH i2c: E2 0E 00 [12:13:47]MH_I2C_Read... [12:13:47]Read from MH i2c: E2 0E 00 03 4F 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 9C [12:13:47]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [12:13:47]wFMCommunicate OK [12:13:47]SAM_PROTO_GetShiftState done [12:13:47]FM_GetShiftState done [12:13:47]opened in 1729989044 [12:13:47]opened+sec_in_day 1730075444 [12:13:47]quantity*price = 133800 [12:13:47]sum+1 = 133801 [12:13:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1338.00 НСП 1% : 11.84 НДС 12% : 142.09 Наличными: 1338.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 106 27.10.2024 12:13 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156555 ФПД: 185709443090746 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T121352&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156555&fm=185709443090746&tin=02508201610067®Number=0000000000091693&sum=133800 [12:13:48]StoreToDocumentArchive [12:13:48]shift 537 fd 156555 [12:13:48]save to /storage/0537/doc_00156555 [12:13:48]save last doc name /storage/0537/doc_00156555 to /storage/kkm_last_doc_name [12:13:48]save OK [12:13:48]Clear old archive folders... [12:13:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:13:48]tlvbuf is 01711C10 [12:13:48]SAM_PROTO_ClearQueue [12:13:48]wFMCommunicate request_size=4 [12:13:48]MH_SAM_APDU [12:13:48]CAPDU: 80 09 00 00 [12:13:48]Write to MH i2c: E2 08 00 10 4F 80 09 00 00 00 00 00 00 D1 [12:13:48]Write i2c OK [12:13:48]MH_I2C_Read... [12:13:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:13:48]Read from MH i2c: E2 [12:13:48]MH_I2C_Read... [12:13:48]Read from MH i2c: E2 03 00 [12:13:48]MH_I2C_Read... [12:13:48]Read from MH i2c: E2 03 00 10 4F 00 90 00 D3 [12:13:48]RAPDU: 90 00 [12:13:48]wFMCommunicate OK [12:13:48]SAM_PROTO_ClearQueue done [12:13:48]KKMCreateOFDPacket [12:13:48]OFDProtocolAddRootSTLVToBuf [12:13:48]FM_MakeSignedData [12:13:48]FM_MakeSignedData [12:13:48]SAM_PROTO_SignData [12:13:48]wFMCommunicate request_size=4 [12:13:48]MH_SAM_APDU [12:13:48]CAPDU: 80 0D 01 02 [12:13:48]Write to MH i2c: E2 08 00 11 4F 80 0D 01 02 00 00 00 00 D9 [12:13:48]Write i2c OK [12:13:48]MH_I2C_Read... [12:13:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:13:48]Read from MH i2c: E2 [12:13:48]MH_I2C_Read... [12:13:48]Read from MH i2c: E2 03 00 [12:13:48]MH_I2C_Read... [12:13:48]Read from MH i2c: E2 03 00 11 4F 00 90 00 D4 [12:13:48]RAPDU: 90 00 [12:13:48]wFMCommunicate OK [12:13:48]wFMCommunicate request_size=255 [12:13:48]MH_SAM_APDU [12:13: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 20 4E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 0A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 0A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 37 00 00 00 00 07 04 06 00 A8 0A 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 80 2E 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 8B 63 02 00 35 04 06 00 A8 [12:13:48]Write to MH i2c: E2 02 01 12 4F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 0A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 0A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 37 00 00 00 00 07 04 06 00 A8 0A 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 80 2E 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 8B 63 02 00 35 04 06 00 A8 00 00 5A [12:13:48]Write i2c OK [12:13:48]MH_I2C_Read... [12:13:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:13:48]Read from MH i2c: E2 [12:13:48]MH_I2C_Read... [12:13:48]Read from MH i2c: E2 03 00 [12:13:48]MH_I2C_Read... [12:13:48]Read from MH i2c: E2 03 00 12 4F 00 90 00 D5 [12:13:48]RAPDU: 90 00 [12:13:48]wFMCommunicate OK [12:13:48]wFMCommunicate request_size=10 [12:13:48]MH_SAM_APDU [12:13:48]CAPDU: 80 0D 02 02 05 E6 D9 63 09 3A [12:13:48]Write to MH i2c: E2 0D 00 13 4F 80 0D 02 02 05 00 E6 D9 63 09 3A 00 00 4B [12:13:48]Write i2c OK [12:13:48]MH_I2C_Read... [12:13:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:13:48]Read from MH i2c: E2 [12:13:48]MH_I2C_Read... [12:13:48]Read from MH i2c: E2 03 00 [12:13:48]MH_I2C_Read... [12:13:48]Read from MH i2c: E2 03 00 13 4F 00 90 00 D6 [12:13:48]RAPDU: 90 00 [12:13:48]wFMCommunicate OK [12:13:48]wFMCommunicate request_size=4 [12:13:48]MH_SAM_APDU [12:13:48]CAPDU: 80 0D 03 02 [12:13:48]Write to MH i2c: E2 08 00 14 4F 80 0D 03 02 00 00 00 00 DE [12:13:48]Write i2c OK [12:13:48]MH_I2C_Read... [12:13:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:13:48]Read from MH i2c: E2 [12:13:48]MH_I2C_Read... [12:13:48]Read from MH i2c: E2 0B 00 [12:13:48]MH_I2C_Read... [12:13:48]Read from MH i2c: E2 0B 00 14 4F 00 D3 82 38 E5 93 E0 FD FC 90 00 BD [12:13:48]RAPDU: D3 82 38 E5 93 E0 FD FC 90 00 [12:13:48]wFMCommunicate OK [12:13:48]SAM_PROTO_SignData done [12:13:48]FM_MakeSignedData done [12:13:48]CreateOFDProtocolMessage [12:13:48]wFMCommunicate request_size=4 [12:13:48]MH_SAM_APDU [12:13:48]CAPDU: 80 11 00 00 [12:13:48]Write to MH i2c: E2 08 00 15 4F 80 11 00 00 00 00 00 00 DE [12:13:48]Write i2c OK [12:13:48]MH_I2C_Read... [12:13:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:13:48]Read from MH i2c: E2 [12:13:48]MH_I2C_Read... [12:13:48]Read from MH i2c: E2 17 00 [12:13:48]MH_I2C_Read... [12:13:48]Read from MH i2c: E2 17 00 15 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 33 [12:13:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:13:48]wFMCommunicate OK [12:13:48]CreateOFDProtocolMessage done [12:13:48]OFDSenderStorePacket 156555 [12:13:48]StoreOFDPacket docnum=156555 [12:13:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 FC 5B 07 01 6A 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 20 4E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 0A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 0A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 37 00 00 00 00 07 04 06 00 A8 0A 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 80 2E 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 8B 63 02 00 35 04 06 00 A8 E6 D9 63 09 3A D3 82 38 E5 93 E0 FD FC [12:13:48]CheckFolder [12:13:48]dirname=/storage/ofd_packets [12:13:48]CheckFolder done [12:13:48]ProducePacketName [12:13:48]name=ofd_packets/00156555 [12:13:48]NVStorageSaveData ofd_packets/00156555 [12:13:48]File name is /storage/ofd_packets/00156555 [12:13:48]Write 301 bytes [12:13:48]NVStorageSaveData done [12:13:48]OFDSenderStorePacket done [12:13:48]KKMCreateOFDPacket done [12:13:48]NVStorageSaveData kkm_last_timestamp [12:13:48]File name is /storage/kkm_last_timestamp [12:13:48]Write 4 bytes [12:13:48]NVStorageSaveData done [12:13:48]OFD Sender: Processing packet 156555 [packets to send 31, broken 30] [12:13:48]ProducePacketName [12:13:48]name=ofd_packets/00156555 [12:13:48]OFD Sender: To server: pG, [12:13:48]CommunicateWithHost lk.salyk.kg:30040 [12:13:48]ConnectInit lk.salyk.kg [12:13:48]ExternCall_PrintAddStr [12:13:48]wPrintStart [12:13:48]Write to MH i2c: 01 00 00 16 4F 65 [12:13:48]Write i2c OK [12:13:48]MH_I2C_Read... [12:13:48]Read from MH i2c: 01 [12:13:48]MH_I2C_Read... [12:13:48]Read from MH i2c: 01 07 00 [12:13:48]MH_I2C_Read... [12:13:48]Read from MH i2c: 01 07 00 16 4F 00 00 00 00 00 FF 0F 7A [12:13:48]RasterBufferAndPrint [12:13:48]line Счет N : (1)99369 [12:13:48]line ИНН: 02508201610067 [12:13:48]line Контрольно-Кассовый Чек [12:13:48]line ПРОДАЖА [12:13:48]line ТРК (МРК, ГНК) : 11 [12:13:48]line Товар: 2710124130 [12:13:48]line Аи-92-К-5 [12:13:48]line 20.000 * 66.90 [12:13:48]line = 1338.00 [12:13:48]line НДС 12% НСП 1% [12:13:48]line > о реализуемом товаре [12:13:48]line ИТОГО: 1338.00 [12:13:48]line НСП 1% : 11.84 [12:13:48]line НДС 12% : 142.09 [12:13:48]line Наличными: 1338.00 [12:13:48]line Безнал.: 0.00 [12:13:48]line Место: АЗС № 143 "Партнер Нефть" [12:13:48]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [12:13:48]line СНО: Общий режим [12:13:48]line Чек 106 27.10.2024 12:13 [12:13:48]line Смена: 537 ФФД: 1.0 [12:13:48]line ЗНМ: 0300000096 [12:13:48]line РНМ: 0000000000091693 [12:13:48]line Версия ККМ: 001 [12:13:48]line ФМ: 0000000000871792 [12:13:48]line ФД: 156555 [12:13:48]line ФПД: 185709443090746 [12:13:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T121352&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156555&fm=185709443090746&tin=02508201610067®Number=0000000000091693&sum=133800 [12:13:49]Connected sock=11 [12:13:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 FC 5B 07 01 6A 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 20 4E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 0A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 0A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 37 00 00 00 00 07 04 06 00 A8 0A 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 80 2E 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 8B 63 02 00 35 04 06 00 A8 E6 D9 63 09 3A D3 82 38 E5 93 E0 FD FC [12:13:49]written 0, free lines is 4095 [12:13:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 5B 2D 47 00 5B 4B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 8B 63 02 00 F4 03 04 00 F0 D3 1D 67 B6 04 01 00 00 91 8C 5D D2 7F 90 CB 00 [12:13:49]CommunicateWithHost err = 0 [12:13:49]CheckOFDResponse [12:13:49]1017 (14) - 77093643461234 [12:13:49]1041 (16) - 0000000000871792 [12:13:49]1040 (4) - 156555 [12:13:49]1012 (4) - 27.10.2024 05:47 [12:13:49]1206 (1) - 0 [12:13:49]OFD Sender: Remove packet 156555 [12:13:49]ProducePacketName [12:13:49]name=ofd_packets/00156555 [12:13:49]NVStorageDeleteData [12:13:49]Write to MH i2c: 01 00 00 3E 4F 8D [12:13:49]Write i2c OK [12:13:49]MH_I2C_Read... [12:13:49]Read from MH i2c: 01 [12:13:49]MH_I2C_Read... [12:13:49]Read from MH i2c: 01 07 00 [12:13:49]MH_I2C_Read... [12:13:49]Read from MH i2c: 01 07 00 3E 4F 00 00 00 00 00 12 0D B3 [12:13:49]RasterBufferAndPrint [12:13:49]line [12:13:49]line [12:13:49]line [12:13:49]line [12:13:49]line [12:13:49]written 0, free lines is 3353 [12:13:49]process_action close_receipt done [12:13:49]requested_data is exist [12:13:49]produce_requested_data [12:13:49]requested_item fm.sn is exist - process it [12:13:49]wFMCommunicate request_size=4 [12:13:49]MH_SAM_APDU [12:13:49]CAPDU: 80 11 00 00 [12:13:49]Write to MH i2c: E2 08 00 45 4F 80 11 00 00 00 00 00 00 0E [12:13:49]Write i2c OK [12:13:49]MH_I2C_Read... [12:13:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:13:49]Read from MH i2c: E2 [12:13:49]MH_I2C_Read... [12:13:49]Read from MH i2c: E2 17 00 [12:13:49]MH_I2C_Read... [12:13:49]Read from MH i2c: E2 17 00 45 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 63 [12:13:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:13:49]wFMCommunicate OK [12:13:49]requested_item fd.num is exist - process it [12:13:49]SAM_PROTO_GetFieldsCounters [12:13:49]wFMCommunicate request_size=4 [12:13:49]MH_SAM_APDU [12:13:49]CAPDU: 80 13 00 00 [12:13:49]Write to MH i2c: E2 08 00 46 4F 80 13 00 00 00 00 00 00 11 [12:13:49]Write i2c OK [12:13:49]MH_I2C_Read... [12:13:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:13:49]Read from MH i2c: E2 [12:13:49]MH_I2C_Read... [12:13:49]Read from MH i2c: E2 62 00 [12:13:49]MH_I2C_Read... [12:13:49]Read from MH i2c: E2 62 00 46 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 8B 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 80 [12:13:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 8B 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:13:49]wFMCommunicate OK [12:13:49]SAM_PROTO_GetFieldsCounters done [12:13:49]requested_item shift.num is exist - process it [12:13:49]requested_item shift.opened is exist - process it [12:13:49]req_shift_opened [12:13:49]FM_GetShiftState [12:13:49]SAM_PROTO_GetShiftState [12:13:49]wFMCommunicate request_size=4 [12:13:49]MH_SAM_APDU [12:13:49]CAPDU: 80 13 01 00 [12:13:49]Write to MH i2c: E2 08 00 47 4F 80 13 01 00 00 00 00 00 13 [12:13:49]Write i2c OK [12:13:49]MH_I2C_Read... [12:13:49]OFD Sender: No OFD packet to send [12:13:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:13:49]Read from MH i2c: E2 [12:13:49]MH_I2C_Read... [12:13:49]Read from MH i2c: E2 0E 00 [12:13:49]MH_I2C_Read... [12:13:49]Read from MH i2c: E2 0E 00 47 4F 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 E0 [12:13:49]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [12:13:49]wFMCommunicate OK [12:13:49]SAM_PROTO_GetShiftState done [12:13:49]FM_GetShiftState done [12:13:49]req_shift_opened done [12:13:49]requested_item shift.open_date is exist - process it [12:13:49]req_shift_open_date [12:13:49]req_shift_open_date done [12:13:49]produce_requested_data done [12:13:49]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156555,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [12:13:49]process_action_free close_receipt [12:13:49]json_value_free [12:13:49]json_value_free done [12:13:49]process_json_proto returns [12:13:49]Send response to host [12:13:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156555,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [12:13:49]free response buf [12:13:49]execute_script done [12:13:49]execute_script returns [12:13:49]free content buf [12:13:49]Sock 8.Close socket [12:13:49]Sock 8.Thread stoped [12:13:51]accept exits with 9 [12:13:51]New connection [12:13:51]New thread 3066834276 created [12:13:51]Thread 3066977636 joined [12:13:51]Waiting for new connection... [12:13:51] Sock 9.Parse request [12:13:51]Sock 9.Check first char [12:13:51]Sock 9.First char is OK [12:13:51]request: POST /json_proto HTTP/1.0 [12:13:51]Method: POST [12:13:51]URL: /json_proto [12:13:51]Method is POST - this is cgi request [12:13:51]url: /json_proto [12:13:51]query_string will be loaded in cgi processing [12:13:51]execute_cgi json_proto POST (null) [12:13:51]execute_cgi path=json_proto method=POST [12:13:51]POST find Content-Length [12:13:51]Host: 172.17.63.3:8080 [12:13:51]Content-Length: 676 [12:13:51]Content-Type: application/json [12:13:51] [12:13:51]POST finish read [12:13:51]Found Content-Length = 676 [12:13:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99370", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:13:51]execute_script... [12:13:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99370", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:13:51]POST & json_proto [12:13:51]process_json_proto [12:13:51]json parsed OK: [12:13:51]protocol is kg_v1.0 [12:13:51]action value=close_receipt [12:13:51]process_action close_receipt [12:13:51]cmd_close_receipt [12:13:51]MH_GetDate [12:13:51]Write to MH i2c: F0 00 00 48 4F 86 [12:13:51]Write i2c OK [12:13:51]MH_I2C_Read... [12:13:51]Read from MH i2c: F0 [12:13:51]MH_I2C_Read... [12:13:51]Read from MH i2c: F0 09 00 [12:13:51]MH_I2C_Read... [12:13:51]Read from MH i2c: F0 09 00 48 4F 00 84 2E 1E 67 50 D1 6C 64 B7 [12:13:51]GetLastDocTimeStamp 1730031232 [12:13:51]current date 1730031236 [12:13:51]FM_GetShiftState [12:13:51]SAM_PROTO_GetShiftState [12:13:51]wFMCommunicate request_size=4 [12:13:51]MH_SAM_APDU [12:13:51]CAPDU: 80 13 01 00 [12:13:51]Write to MH i2c: E2 08 00 49 4F 80 13 01 00 00 00 00 00 15 [12:13:51]Write i2c OK [12:13:51]MH_I2C_Read... [12:13:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:13:51]Read from MH i2c: E2 [12:13:51]MH_I2C_Read... [12:13:51]Read from MH i2c: E2 0E 00 [12:13:51]MH_I2C_Read... [12:13:51]Read from MH i2c: E2 0E 00 49 4F 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 E2 [12:13:51]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [12:13:51]wFMCommunicate OK [12:13:51]SAM_PROTO_GetShiftState done [12:13:51]FM_GetShiftState done [12:13:51]opened in 1729989044 [12:13:51]opened+sec_in_day 1730075444 [12:13:51]quantity*price = 50041 [12:13:51]sum+1 = 50042 [12:13:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 107 27.10.2024 12:13 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156556 ФПД: 73908121238175 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T121356&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156556&fm=73908121238175&tin=02508201610067®Number=0000000000091693&sum=50000 [12:13:52]StoreToDocumentArchive [12:13:52]shift 537 fd 156556 [12:13:52]save to /storage/0537/doc_00156556 [12:13:52]save last doc name /storage/0537/doc_00156556 to /storage/kkm_last_doc_name [12:13:52]save OK [12:13:52]Clear old archive folders... [12:13:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:13:52]tlvbuf is B6F5B450 [12:13:52]SAM_PROTO_ClearQueue [12:13:52]wFMCommunicate request_size=4 [12:13:52]MH_SAM_APDU [12:13:52]CAPDU: 80 09 00 00 [12:13:52]Write to MH i2c: E2 08 00 56 4F 80 09 00 00 00 00 00 00 17 [12:13:52]Write i2c OK [12:13:52]MH_I2C_Read... [12:13:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:13:52]Read from MH i2c: E2 [12:13:52]MH_I2C_Read... [12:13:52]Read from MH i2c: E2 03 00 [12:13:52]MH_I2C_Read... [12:13:52]Read from MH i2c: E2 03 00 56 4F 00 90 00 19 [12:13:52]RAPDU: 90 00 [12:13:52]wFMCommunicate OK [12:13:52]SAM_PROTO_ClearQueue done [12:13:52]KKMCreateOFDPacket [12:13:52]OFDProtocolAddRootSTLVToBuf [12:13:52]FM_MakeSignedData [12:13:52]FM_MakeSignedData [12:13:52]SAM_PROTO_SignData [12:13:52]wFMCommunicate request_size=4 [12:13:52]MH_SAM_APDU [12:13:52]CAPDU: 80 0D 01 02 [12:13:52]Write to MH i2c: E2 08 00 57 4F 80 0D 01 02 00 00 00 00 1F [12:13:52]Write i2c OK [12:13:52]MH_I2C_Read... [12:13:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:13:52]Read from MH i2c: E2 [12:13:52]MH_I2C_Read... [12:13:52]Read from MH i2c: E2 03 00 [12:13:52]MH_I2C_Read... [12:13:52]Read from MH i2c: E2 03 00 57 4F 00 90 00 1A [12:13:52]RAPDU: 90 00 [12:13:52]wFMCommunicate OK [12:13:52]wFMCommunicate request_size=255 [12:13:52]MH_SAM_APDU [12:13: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 84 2E 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 8C 63 02 00 35 04 06 00 43 [12:13:52]Write to MH i2c: E2 02 01 58 4F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 84 2E 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 8C 63 02 00 35 04 06 00 43 00 00 A4 [12:13:52]Write i2c OK [12:13:52]MH_I2C_Read... [12:13:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:13:52]Read from MH i2c: E2 [12:13:52]MH_I2C_Read... [12:13:52]Read from MH i2c: E2 03 00 [12:13:52]MH_I2C_Read... [12:13:52]Read from MH i2c: E2 03 00 58 4F 00 90 00 1B [12:13:52]RAPDU: 90 00 [12:13:52]wFMCommunicate OK [12:13:52]wFMCommunicate request_size=10 [12:13:52]MH_SAM_APDU [12:13:52]CAPDU: 80 0D 02 02 05 38 13 4F FA 9F [12:13:52]Write to MH i2c: E2 0D 00 59 4F 80 0D 02 02 05 00 38 13 4F FA 9F 00 00 5F [12:13:52]Write i2c OK [12:13:52]MH_I2C_Read... [12:13:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:13:52]Read from MH i2c: E2 [12:13:52]MH_I2C_Read... [12:13:52]Read from MH i2c: E2 03 00 [12:13:52]MH_I2C_Read... [12:13:52]Read from MH i2c: E2 03 00 59 4F 00 90 00 1C [12:13:52]RAPDU: 90 00 [12:13:52]wFMCommunicate OK [12:13:52]wFMCommunicate request_size=4 [12:13:52]MH_SAM_APDU [12:13:52]CAPDU: 80 0D 03 02 [12:13:52]Write to MH i2c: E2 08 00 5A 4F 80 0D 03 02 00 00 00 00 24 [12:13:52]Write i2c OK [12:13:52]MH_I2C_Read... [12:13:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:13:53]Read from MH i2c: E2 [12:13:53]MH_I2C_Read... [12:13:53]Read from MH i2c: E2 0B 00 [12:13:53]MH_I2C_Read... [12:13:53]Read from MH i2c: E2 0B 00 5A 4F 00 D3 42 9A 3B 8C D1 8C 80 90 00 78 [12:13:53]RAPDU: D3 42 9A 3B 8C D1 8C 80 90 00 [12:13:53]wFMCommunicate OK [12:13:53]SAM_PROTO_SignData done [12:13:53]FM_MakeSignedData done [12:13:53]CreateOFDProtocolMessage [12:13:53]wFMCommunicate request_size=4 [12:13:53]MH_SAM_APDU [12:13:53]CAPDU: 80 11 00 00 [12:13:53]Write to MH i2c: E2 08 00 5B 4F 80 11 00 00 00 00 00 00 24 [12:13:53]Write i2c OK [12:13:53]MH_I2C_Read... [12:13:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:13:53]Read from MH i2c: E2 [12:13:53]MH_I2C_Read... [12:13:53]Read from MH i2c: E2 17 00 [12:13:53]MH_I2C_Read... [12:13:53]Read from MH i2c: E2 17 00 5B 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 79 [12:13:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:13:53]wFMCommunicate OK [12:13:53]CreateOFDProtocolMessage done [12:13:53]OFDSenderStorePacket 156556 [12:13:53]StoreOFDPacket docnum=156556 [12:13:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 B0 2E 07 01 FD 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 84 2E 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 8C 63 02 00 35 04 06 00 43 38 13 4F FA 9F D3 42 9A 3B 8C D1 8C 80 [12:13:53]CheckFolder [12:13:53]dirname=/storage/ofd_packets [12:13:53]CheckFolder done [12:13:53]ProducePacketName [12:13:53]name=ofd_packets/00156556 [12:13:53]NVStorageSaveData ofd_packets/00156556 [12:13:53]File name is /storage/ofd_packets/00156556 [12:13:53]Write 301 bytes [12:13:53]NVStorageSaveData done [12:13:53]OFDSenderStorePacket done [12:13:53]KKMCreateOFDPacket done [12:13:53]NVStorageSaveData kkm_last_timestamp [12:13:53]File name is /storage/kkm_last_timestamp [12:13:53]Write 4 bytes [12:13:53]NVStorageSaveData done [12:13:53]ExternCall_PrintAddStr [12:13:53]wPrintStart [12:13:53]Write to MH i2c: 01 00 00 5C 4F AB [12:13:53]Write i2c OK [12:13:53]MH_I2C_Read... [12:13:53]Read from MH i2c: 01 [12:13:53]MH_I2C_Read... [12:13:53]Read from MH i2c: 01 07 00 [12:13:53]MH_I2C_Read... [12:13:53]Read from MH i2c: 01 07 00 5C 4F 00 00 00 00 00 FF 0F C0 [12:13:53]RasterBufferAndPrint [12:13:53]line Счет N : (1)99370 [12:13:53]line ИНН: 02508201610067 [12:13:53]line Контрольно-Кассовый Чек [12:13:53]line ПРОДАЖА [12:13:53]line ТРК (МРК, ГНК) : 21 [12:13:53]line Товар: 2710124130 [12:13:53]line Аи-92-К-5 [12:13:53]line 7.480 * 66.90 [12:13:53]line = 500.41 [12:13:53]line НДС 12% НСП 1% [12:13:53]line > о реализуемом товаре [12:13:53]line ОКРУГЛЕНИЕ: -0.41 [12:13:53]line ИТОГО: 500.00 [12:13:53]line Внесено: 500.00 [12:13:53]line СДАЧА: 0.00 [12:13:53]line НСП 1% : 4.43 [12:13:53]line НДС 12% : 53.14 [12:13:53]line Наличными: 500.00 [12:13:53]line Безнал.: 0.00 [12:13:53]line Место: АЗС № 143 "Партнер Нефть" [12:13:53]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [12:13:53]line СНО: Общий режим [12:13:53]line Чек 107 27.10.2024 12:13 [12:13:53]line Смена: 537 ФФД: 1.0 [12:13:53]line ЗНМ: 0300000096 [12:13:53]line РНМ: 0000000000091693 [12:13:53]line Версия ККМ: 001 [12:13:53]line ФМ: 0000000000871792 [12:13:53]line ФД: 156556 [12:13:53]line ФПД: 73908121238175 [12:13:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T121356&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156556&fm=73908121238175&tin=02508201610067®Number=0000000000091693&sum=50000 [12:13:53]written 0, free lines is 4095 [12:13:53]OFD Sender: Processing packet 156556 [packets to send 31, broken 30] [12:13:53]ProducePacketName [12:13:53]name=ofd_packets/00156556 [12:13:53]OFD Sender: To server: pG, [12:13:53]CommunicateWithHost lk.salyk.kg:30040 [12:13:53]ConnectInit lk.salyk.kg [12:13:53]Connected sock=10 [12:13:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 B0 2E 07 01 FD 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 84 2E 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 8C 63 02 00 35 04 06 00 43 38 13 4F FA 9F D3 42 9A 3B 8C D1 8C 80 [12:13:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 37 C3 47 00 56 C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 8C 63 02 00 F4 03 04 00 F4 D3 1D 67 B6 04 01 00 00 9F 0E 48 12 41 DC 73 EB [12:13:53]CommunicateWithHost err = 0 [12:13:53]CheckOFDResponse [12:13:53]1017 (14) - 77093643461234 [12:13:53]1041 (16) - 0000000000871792 [12:13:53]1040 (4) - 156556 [12:13:53]1012 (4) - 27.10.2024 05:47 [12:13:53]1206 (1) - 0 [12:13:53]OFD Sender: Remove packet 156556 [12:13:53]ProducePacketName [12:13:53]name=ofd_packets/00156556 [12:13:53]NVStorageDeleteData [12:13:53]Write to MH i2c: 01 00 00 87 4F D6 [12:13:53]Write i2c OK [12:13:53]MH_I2C_Read... [12:13:53]Read from MH i2c: 01 [12:13:53]MH_I2C_Read... [12:13:53]Read from MH i2c: 01 07 00 [12:13:53]MH_I2C_Read... [12:13:53]Read from MH i2c: 01 07 00 87 4F 00 00 00 00 00 E4 0C CD [12:13:53]RasterBufferAndPrint [12:13:53]line [12:13:53]line [12:13:53]line [12:13:53]line [12:13:53]line [12:13:53]written 0, free lines is 3315 [12:13:53]process_action close_receipt done [12:13:53]requested_data is exist [12:13:53]produce_requested_data [12:13:53]requested_item fm.sn is exist - process it [12:13:53]wFMCommunicate request_size=4 [12:13:53]MH_SAM_APDU [12:13:53]CAPDU: 80 11 00 00 [12:13:53]Write to MH i2c: E2 08 00 8E 4F 80 11 00 00 00 00 00 00 57 [12:13:53]Write i2c OK [12:13:53]MH_I2C_Read... [12:13:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:13:53]Read from MH i2c: E2 [12:13:53]MH_I2C_Read... [12:13:53]Read from MH i2c: E2 17 00 [12:13:53]MH_I2C_Read... [12:13:53]Read from MH i2c: E2 17 00 8E 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 AC [12:13:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:13:53]wFMCommunicate OK [12:13:53]requested_item fd.num is exist - process it [12:13:53]SAM_PROTO_GetFieldsCounters [12:13:53]wFMCommunicate request_size=4 [12:13:53]MH_SAM_APDU [12:13:53]CAPDU: 80 13 00 00 [12:13:53]Write to MH i2c: E2 08 00 8F 4F 80 13 00 00 00 00 00 00 5A [12:13:53]Write i2c OK [12:13:53]MH_I2C_Read... [12:13:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:13:53]Read from MH i2c: E2 [12:13:53]MH_I2C_Read... [12:13:53]Read from MH i2c: E2 62 00 [12:13:53]MH_I2C_Read... [12:13:53]Read from MH i2c: E2 62 00 8F 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 8C 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 CD [12:13:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 8C 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:13:53]wFMCommunicate OK [12:13:53]SAM_PROTO_GetFieldsCounters done [12:13:53]requested_item shift.num is exist - process it [12:13:53]requested_item shift.opened is exist - process it [12:13:53]req_shift_opened [12:13:53]FM_GetShiftState [12:13:53]SAM_PROTO_GetShiftState [12:13:53]wFMCommunicate request_size=4 [12:13:53]MH_SAM_APDU [12:13:53]CAPDU: 80 13 01 00 [12:13:53]Write to MH i2c: E2 08 00 90 4F 80 13 01 00 00 00 00 00 5C [12:13:53]Write i2c OK [12:13:53]MH_I2C_Read... [12:13:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:13:53]Read from MH i2c: E2 [12:13:53]MH_I2C_Read... [12:13:53]Read from MH i2c: E2 0E 00 [12:13:53]MH_I2C_Read... [12:13:53]Read from MH i2c: E2 0E 00 90 4F 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 29 [12:13:53]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [12:13:53]wFMCommunicate OK [12:13:53]SAM_PROTO_GetShiftState done [12:13:53]FM_GetShiftState done [12:13:53]req_shift_opened done [12:13:53]requested_item shift.open_date is exist - process it [12:13:53]req_shift_open_date [12:13:53]req_shift_open_date done [12:13:53]produce_requested_data done [12:13:53]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156556,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [12:13:53]process_action_free close_receipt [12:13:53]json_value_free [12:13:53]json_value_free done [12:13:53]process_json_proto returns [12:13:53]Send response to host [12:13:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156556,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [12:13:53]free response buf [12:13:53]execute_script done [12:13:53]execute_script returns [12:13:53]free content buf [12:13:53]Sock 9.Close socket [12:13:53]Sock 9.Thread stoped [12:13:54]OFD Sender: No OFD packet to send [12:13:59]OFD Sender: No OFD packet to send [12:14:04]OFD Sender: No OFD packet to send [12:14:09]OFD Sender: No OFD packet to send [12:14:14]OFD Sender: No OFD packet to send [12:14:19]OFD Sender: No OFD packet to send [12:14:24]OFD Sender: No OFD packet to send [12:14:29]OFD Sender: No OFD packet to send [12:14:34]OFD Sender: No OFD packet to send [12:14:39]OFD Sender: No OFD packet to send [12:14:44]OFD Sender: No OFD packet to send [12:14:49]OFD Sender: No OFD packet to send [12:14:54]OFD Sender: No OFD packet to send [12:14:59]OFD Sender: No OFD packet to send [12:15:04]OFD Sender: No OFD packet to send [12:15:09]OFD Sender: No OFD packet to send [12:15:14]OFD Sender: No OFD packet to send [12:15:19]OFD Sender: No OFD packet to send [12:15:24]OFD Sender: No OFD packet to send [12:15:29]OFD Sender: No OFD packet to send [12:15:34]OFD Sender: No OFD packet to send [12:15:39]OFD Sender: No OFD packet to send [12:15:44]OFD Sender: No OFD packet to send [12:15:49]OFD Sender: No OFD packet to send [12:15:54]OFD Sender: No OFD packet to send [12:15:59]OFD Sender: No OFD packet to send [12:16:04]OFD Sender: No OFD packet to send [12:16:09]OFD Sender: No OFD packet to send [12:16:14]OFD Sender: No OFD packet to send [12:16:19]OFD Sender: No OFD packet to send [12:16:24]OFD Sender: No OFD packet to send [12:16:29]OFD Sender: No OFD packet to send [12:16:32]accept exits with 8 [12:16:32]New connection [12:16:32]New thread 3066977636 created [12:16:32]Thread 3066834276 joined [12:16:32]Waiting for new connection... [12:16:32] Sock 8.Parse request [12:16:32]Sock 8.Check first char [12:16:32]Sock 8.First char is OK [12:16:32]request: POST /json_proto HTTP/1.0 [12:16:32]Method: POST [12:16:32]URL: /json_proto [12:16:32]Method is POST - this is cgi request [12:16:32]url: /json_proto [12:16:32]query_string will be loaded in cgi processing [12:16:32]execute_cgi json_proto POST (null) [12:16:32]execute_cgi path=json_proto method=POST [12:16:32]POST find Content-Length [12:16:32]Host: 172.17.63.3:8080 [12:16:32]Content-Length: 676 [12:16:32]Content-Type: application/json [12:16:32] [12:16:32]POST finish read [12:16:32]Found Content-Length = 676 [12:16:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99371", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "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" ] } } [12:16:32]execute_script... [12:16: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)99371", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "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" ] } } [12:16:32]POST & json_proto [12:16:32]process_json_proto [12:16:32]json parsed OK: [12:16:32]protocol is kg_v1.0 [12:16:32]action value=close_receipt [12:16:32]process_action close_receipt [12:16:32]cmd_close_receipt [12:16:32]MH_GetDate [12:16:32]Write to MH i2c: F0 00 00 91 4F CF [12:16:32]Write i2c OK [12:16:32]MH_I2C_Read... [12:16:32]Read from MH i2c: F0 [12:16:32]MH_I2C_Read... [12:16:32]Read from MH i2c: F0 09 00 [12:16:32]MH_I2C_Read... [12:16:32]Read from MH i2c: F0 09 00 91 4F 00 25 2F 1E 67 50 D1 6C 64 A2 [12:16:32]GetLastDocTimeStamp 1730031236 [12:16:32]current date 1730031397 [12:16:32]FM_GetShiftState [12:16:32]SAM_PROTO_GetShiftState [12:16:32]wFMCommunicate request_size=4 [12:16:32]MH_SAM_APDU [12:16:32]CAPDU: 80 13 01 00 [12:16:32]Write to MH i2c: E2 08 00 92 4F 80 13 01 00 00 00 00 00 5E [12:16:32]Write i2c OK [12:16:32]MH_I2C_Read... [12:16:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:16:32]Read from MH i2c: E2 [12:16:32]MH_I2C_Read... [12:16:32]Read from MH i2c: E2 0E 00 [12:16:32]MH_I2C_Read... [12:16:32]Read from MH i2c: E2 0E 00 92 4F 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 2B [12:16:32]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [12:16:32]wFMCommunicate OK [12:16:32]SAM_PROTO_GetShiftState done [12:16:32]FM_GetShiftState done [12:16:32]opened in 1729989044 [12:16:32]opened+sec_in_day 1730075444 [12:16:32]quantity*price = 35055 [12:16:32]sum+1 = 35057 [12:16:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 108 27.10.2024 12:16 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156557 ФПД: 271973332249013 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T121637&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156557&fm=271973332249013&tin=02508201610067®Number=0000000000091693&sum=35000 [12:16:33]StoreToDocumentArchive [12:16:33]shift 537 fd 156557 [12:16:33]save to /storage/0537/doc_00156557 [12:16:33]save last doc name /storage/0537/doc_00156557 to /storage/kkm_last_doc_name [12:16:33]save OK [12:16:33]Clear old archive folders... [12:16:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:16:33]tlvbuf is 016A9540 [12:16:33]SAM_PROTO_ClearQueue [12:16:33]wFMCommunicate request_size=4 [12:16:33]MH_SAM_APDU [12:16:33]CAPDU: 80 09 00 00 [12:16:33]Write to MH i2c: E2 08 00 9F 4F 80 09 00 00 00 00 00 00 60 [12:16:33]Write i2c OK [12:16:33]MH_I2C_Read... [12:16:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:16:33]Read from MH i2c: E2 [12:16:33]MH_I2C_Read... [12:16:33]Read from MH i2c: E2 03 00 [12:16:33]MH_I2C_Read... [12:16:33]Read from MH i2c: E2 03 00 9F 4F 00 90 00 62 [12:16:33]RAPDU: 90 00 [12:16:33]wFMCommunicate OK [12:16:33]SAM_PROTO_ClearQueue done [12:16:33]KKMCreateOFDPacket [12:16:33]OFDProtocolAddRootSTLVToBuf [12:16:33]FM_MakeSignedData [12:16:33]FM_MakeSignedData [12:16:33]SAM_PROTO_SignData [12:16:33]wFMCommunicate request_size=4 [12:16:33]MH_SAM_APDU [12:16:33]CAPDU: 80 0D 01 02 [12:16:33]Write to MH i2c: E2 08 00 A0 4F 80 0D 01 02 00 00 00 00 68 [12:16:33]Write i2c OK [12:16:33]MH_I2C_Read... [12:16:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:16:33]Read from MH i2c: E2 [12:16:33]MH_I2C_Read... [12:16:33]Read from MH i2c: E2 03 00 [12:16:33]MH_I2C_Read... [12:16:33]Read from MH i2c: E2 03 00 A0 4F 00 90 00 63 [12:16:33]RAPDU: 90 00 [12:16:33]wFMCommunicate OK [12:16:33]wFMCommunicate request_size=255 [12:16:33]MH_SAM_APDU [12:16: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 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 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 6C 00 00 00 F4 03 04 00 25 2F 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 8D 63 02 00 35 04 06 00 F7 [12:16:33]Write to MH i2c: E2 02 01 A1 4F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 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 6C 00 00 00 F4 03 04 00 25 2F 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 8D 63 02 00 35 04 06 00 F7 00 00 50 [12:16:33]Write i2c OK [12:16:33]MH_I2C_Read... [12:16:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:16:33]Read from MH i2c: E2 [12:16:33]MH_I2C_Read... [12:16:33]Read from MH i2c: E2 03 00 [12:16:33]MH_I2C_Read... [12:16:33]Read from MH i2c: E2 03 00 A1 4F 00 90 00 64 [12:16:33]RAPDU: 90 00 [12:16:33]wFMCommunicate OK [12:16:33]wFMCommunicate request_size=10 [12:16:33]MH_SAM_APDU [12:16:33]CAPDU: 80 0D 02 02 05 5B B9 DB 69 B5 [12:16:33]Write to MH i2c: E2 0D 00 A2 4F 80 0D 02 02 05 00 5B B9 DB 69 B5 00 00 82 [12:16:33]Write i2c OK [12:16:33]MH_I2C_Read... [12:16:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:16:33]Read from MH i2c: E2 [12:16:33]MH_I2C_Read... [12:16:33]Read from MH i2c: E2 03 00 [12:16:33]MH_I2C_Read... [12:16:33]Read from MH i2c: E2 03 00 A2 4F 00 90 00 65 [12:16:33]RAPDU: 90 00 [12:16:33]wFMCommunicate OK [12:16:33]wFMCommunicate request_size=4 [12:16:33]MH_SAM_APDU [12:16:33]CAPDU: 80 0D 03 02 [12:16:33]Write to MH i2c: E2 08 00 A3 4F 80 0D 03 02 00 00 00 00 6D [12:16:33]Write i2c OK [12:16:33]MH_I2C_Read... [12:16:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:16:33]Read from MH i2c: E2 [12:16:33]MH_I2C_Read... [12:16:33]Read from MH i2c: E2 0B 00 [12:16:33]MH_I2C_Read... [12:16:33]Read from MH i2c: E2 0B 00 A3 4F 00 69 13 53 36 A8 A4 8E BE 90 00 0B [12:16:33]RAPDU: 69 13 53 36 A8 A4 8E BE 90 00 [12:16:33]wFMCommunicate OK [12:16:33]SAM_PROTO_SignData done [12:16:33]FM_MakeSignedData done [12:16:33]CreateOFDProtocolMessage [12:16:33]wFMCommunicate request_size=4 [12:16:33]MH_SAM_APDU [12:16:33]CAPDU: 80 11 00 00 [12:16:33]Write to MH i2c: E2 08 00 A4 4F 80 11 00 00 00 00 00 00 6D [12:16:33]Write i2c OK [12:16:33]MH_I2C_Read... [12:16:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:16:33]Read from MH i2c: E2 [12:16:33]MH_I2C_Read... [12:16:33]Read from MH i2c: E2 17 00 [12:16:33]MH_I2C_Read... [12:16:33]Read from MH i2c: E2 17 00 A4 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 C2 [12:16:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:16:33]wFMCommunicate OK [12:16:33]CreateOFDProtocolMessage done [12:16:33]OFDSenderStorePacket 156557 [12:16:33]StoreOFDPacket docnum=156557 [12:16:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 2D 79 07 01 85 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 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 6C 00 00 00 F4 03 04 00 25 2F 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 8D 63 02 00 35 04 06 00 F7 5B B9 DB 69 B5 69 13 53 36 A8 A4 8E BE [12:16:33]CheckFolder [12:16:33]dirname=/storage/ofd_packets [12:16:33]CheckFolder done [12:16:33]ProducePacketName [12:16:33]name=ofd_packets/00156557 [12:16:33]NVStorageSaveData ofd_packets/00156557 [12:16:33]File name is /storage/ofd_packets/00156557 [12:16:33]Write 301 bytes [12:16:33]NVStorageSaveData done [12:16:33]OFDSenderStorePacket done [12:16:33]KKMCreateOFDPacket done [12:16:33]NVStorageSaveData kkm_last_timestamp [12:16:33]File name is /storage/kkm_last_timestamp [12:16:33]Write 4 bytes [12:16:33]NVStorageSaveData done [12:16:33]ExternCall_PrintAddStr [12:16:33]wPrintStart [12:16:33]Write to MH i2c: 01 00 00 A5 4F F4 [12:16:33]Write i2c OK [12:16:33]MH_I2C_Read... [12:16:33]Read from MH i2c: 01 [12:16:33]MH_I2C_Read... [12:16:33]Read from MH i2c: 01 07 00 [12:16:33]MH_I2C_Read... [12:16:33]Read from MH i2c: 01 07 00 A5 4F 00 00 00 00 00 FF 0F 09 [12:16:33]RasterBufferAndPrint [12:16:33]line Счет N : (1)99371 [12:16:33]line ИНН: 02508201610067 [12:16:33]line Контрольно-Кассовый Чек [12:16:33]line ПРОДАЖА [12:16:33]line ТРК (МРК, ГНК) : 11 [12:16:33]line Товар: 2710124130 [12:16:33]line Аи-92-К-5 [12:16:33]line 5.240 * 66.90 [12:16:33]line = 350.56 [12:16:33]line НДС 12% НСП 1% [12:16:33]line > о реализуемом товаре [12:16:33]line ОКРУГЛЕНИЕ: -0.56 [12:16:33]line ИТОГО: 350.00 [12:16:33]line Внесено: 350.00 [12:16:33]line СДАЧА: 0.00 [12:16:33]line НСП 1% : 3.10 [12:16:33]line НДС 12% : 37.23 [12:16:33]line Наличными: 350.00 [12:16:33]line Безнал.: 0.00 [12:16:33]line Место: АЗС № 143 "Партнер Нефть" [12:16:33]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [12:16:33]line СНО: Общий режим [12:16:33]line Чек 108 27.10.2024 12:16 [12:16:33]line Смена: 537 ФФД: 1.0 [12:16:33]line ЗНМ: 0300000096 [12:16:33]line РНМ: 0000000000091693 [12:16:33]line Версия ККМ: 001 [12:16:33]line ФМ: 0000000000871792 [12:16:33]line ФД: 156557 [12:16:33]line ФПД: 271973332249013 [12:16:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T121637&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156557&fm=271973332249013&tin=02508201610067®Number=0000000000091693&sum=35000 [12:16:34]OFD Sender: Processing packet 156557 [packets to send 31, broken 30] [12:16:34]ProducePacketName [12:16:34]name=ofd_packets/00156557 [12:16:34]OFD Sender: To server: pG, [12:16:34]CommunicateWithHost lk.salyk.kg:30040 [12:16:34]ConnectInit lk.salyk.kg [12:16:34]written 0, free lines is 4095 [12:16:34]Connected sock=10 [12:16:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 2D 79 07 01 85 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 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 6C 00 00 00 F4 03 04 00 25 2F 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 8D 63 02 00 35 04 06 00 F7 5B B9 DB 69 B5 69 13 53 36 A8 A4 8E BE [12:16:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 3C 5B 47 00 9F 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 31 37 39 32 10 04 04 00 8D 63 02 00 F4 03 04 00 95 D4 1D 67 B6 04 01 00 00 AE 48 DC 3B 60 27 DD 66 [12:16:34]CommunicateWithHost err = 0 [12:16:34]CheckOFDResponse [12:16:34]1017 (14) - 77093643461234 [12:16:34]1041 (16) - 0000000000871792 [12:16:34]1040 (4) - 156557 [12:16:34]1012 (4) - 27.10.2024 05:50 [12:16:34]1206 (1) - 0 [12:16:34]OFD Sender: Remove packet 156557 [12:16:34]ProducePacketName [12:16:34]name=ofd_packets/00156557 [12:16:34]NVStorageDeleteData [12:16:34]Write to MH i2c: 01 00 00 D0 4F 1F [12:16:34]Write i2c OK [12:16:34]MH_I2C_Read... [12:16:34]Read from MH i2c: 01 [12:16:34]MH_I2C_Read... [12:16:34]Read from MH i2c: 01 07 00 [12:16:34]MH_I2C_Read... [12:16:34]Read from MH i2c: 01 07 00 D0 4F 00 00 00 00 00 E3 0C 15 [12:16:34]RasterBufferAndPrint [12:16:34]line [12:16:34]line [12:16:34]line [12:16:34]line [12:16:34]line [12:16:34]written 0, free lines is 3305 [12:16:34]process_action close_receipt done [12:16:34]requested_data is exist [12:16:34]produce_requested_data [12:16:34]requested_item fm.sn is exist - process it [12:16:34]wFMCommunicate request_size=4 [12:16:34]MH_SAM_APDU [12:16:34]CAPDU: 80 11 00 00 [12:16:34]Write to MH i2c: E2 08 00 D7 4F 80 11 00 00 00 00 00 00 A0 [12:16:34]Write i2c OK [12:16:34]MH_I2C_Read... [12:16:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:16:34]Read from MH i2c: E2 [12:16:34]MH_I2C_Read... [12:16:34]Read from MH i2c: E2 17 00 [12:16:34]MH_I2C_Read... [12:16:34]Read from MH i2c: E2 17 00 D7 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 F5 [12:16:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:16:34]wFMCommunicate OK [12:16:34]requested_item fd.num is exist - process it [12:16:34]SAM_PROTO_GetFieldsCounters [12:16:34]wFMCommunicate request_size=4 [12:16:34]MH_SAM_APDU [12:16:34]CAPDU: 80 13 00 00 [12:16:34]Write to MH i2c: E2 08 00 D8 4F 80 13 00 00 00 00 00 00 A3 [12:16:34]Write i2c OK [12:16:34]MH_I2C_Read... [12:16:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:16:34]Read from MH i2c: E2 [12:16:34]MH_I2C_Read... [12:16:34]Read from MH i2c: E2 62 00 [12:16:34]MH_I2C_Read... [12:16:34]Read from MH i2c: E2 62 00 D8 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 8D 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 1A [12:16:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 8D 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:16:34]wFMCommunicate OK [12:16:34]SAM_PROTO_GetFieldsCounters done [12:16:34]requested_item shift.num is exist - process it [12:16:34]requested_item shift.opened is exist - process it [12:16:34]req_shift_opened [12:16:34]FM_GetShiftState [12:16:34]SAM_PROTO_GetShiftState [12:16:34]wFMCommunicate request_size=4 [12:16:34]MH_SAM_APDU [12:16:34]CAPDU: 80 13 01 00 [12:16:34]Write to MH i2c: E2 08 00 D9 4F 80 13 01 00 00 00 00 00 A5 [12:16:34]Write i2c OK [12:16:34]MH_I2C_Read... [12:16:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:16:34]Read from MH i2c: E2 [12:16:34]MH_I2C_Read... [12:16:34]Read from MH i2c: E2 0E 00 [12:16:34]MH_I2C_Read... [12:16:34]Read from MH i2c: E2 0E 00 D9 4F 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 72 [12:16:34]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [12:16:34]wFMCommunicate OK [12:16:34]SAM_PROTO_GetShiftState done [12:16:34]FM_GetShiftState done [12:16:34]req_shift_opened done [12:16:34]requested_item shift.open_date is exist - process it [12:16:34]req_shift_open_date [12:16:34]req_shift_open_date done [12:16:34]produce_requested_data done [12:16:34]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156557,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [12:16:34]process_action_free close_receipt [12:16:34]json_value_free [12:16:34]json_value_free done [12:16:34]process_json_proto returns [12:16:34]Send response to host [12:16:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156557,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [12:16:34]free response buf [12:16:34]execute_script done [12:16:34]execute_script returns [12:16:34]free content buf [12:16:34]Sock 8.Close socket [12:16:34]Sock 8.Thread stoped [12:16:34]OFD Sender: No OFD packet to send [12:16:39]OFD Sender: No OFD packet to send [12:16:44]OFD Sender: No OFD packet to send [12:16:49]OFD Sender: No OFD packet to send [12:16:54]OFD Sender: No OFD packet to send [12:17:00]OFD Sender: No OFD packet to send [12:17:05]OFD Sender: No OFD packet to send [12:17:10]OFD Sender: No OFD packet to send [12:17:14]accept exits with 9 [12:17:14]New connection [12:17:14]New thread 3066834276 created [12:17:14]Thread 3066977636 joined [12:17:14]Waiting for new connection... [12:17:14] Sock 9.Parse request [12:17:14]Sock 9.Check first char [12:17:14]Sock 9.First char is OK [12:17:14]request: POST /json_proto HTTP/1.0 [12:17:14]Method: POST [12:17:14]URL: /json_proto [12:17:14]Method is POST - this is cgi request [12:17:14]url: /json_proto [12:17:14]query_string will be loaded in cgi processing [12:17:14]execute_cgi json_proto POST (null) [12:17:14]execute_cgi path=json_proto method=POST [12:17:14]POST find Content-Length [12:17:14]Host: 172.17.63.3:8080 [12:17:14]Content-Length: 677 [12:17:14]Content-Type: application/json [12:17:14] [12:17:14]POST finish read [12:17:14]Found Content-Length = 677 [12:17:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99372", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.170, "sum" : 680.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 680.00, "total" : 680.00, "payments": [ { "type": 0, "sum" : 680.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:14]execute_script... [12:17: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)99372", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.170, "sum" : 680.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 680.00, "total" : 680.00, "payments": [ { "type": 0, "sum" : 680.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:14]POST & json_proto [12:17:14]process_json_proto [12:17:14]json parsed OK: [12:17:14]protocol is kg_v1.0 [12:17:14]action value=close_receipt [12:17:14]process_action close_receipt [12:17:14]cmd_close_receipt [12:17:14]MH_GetDate [12:17:14]Write to MH i2c: F0 00 00 DA 4F 18 [12:17:14]Write i2c OK [12:17:14]MH_I2C_Read... [12:17:14]Read from MH i2c: F0 [12:17:14]MH_I2C_Read... [12:17:14]Read from MH i2c: F0 09 00 [12:17:14]MH_I2C_Read... [12:17:14]Read from MH i2c: F0 09 00 DA 4F 00 50 2F 1E 67 50 D1 6C 64 16 [12:17:14]GetLastDocTimeStamp 1730031397 [12:17:14]current date 1730031440 [12:17:14]FM_GetShiftState [12:17:14]SAM_PROTO_GetShiftState [12:17:14]wFMCommunicate request_size=4 [12:17:14]MH_SAM_APDU [12:17:14]CAPDU: 80 13 01 00 [12:17:14]Write to MH i2c: E2 08 00 DB 4F 80 13 01 00 00 00 00 00 A7 [12:17:14]Write i2c OK [12:17:14]MH_I2C_Read... [12:17:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:14]Read from MH i2c: E2 [12:17:14]MH_I2C_Read... [12:17:14]Read from MH i2c: E2 0E 00 [12:17:14]MH_I2C_Read... [12:17:14]Read from MH i2c: E2 0E 00 DB 4F 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 74 [12:17:14]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [12:17:14]wFMCommunicate OK [12:17:14]SAM_PROTO_GetShiftState done [12:17:14]FM_GetShiftState done [12:17:14]opened in 1729989044 [12:17:14]opened+sec_in_day 1730075444 [12:17:14]quantity*price = 68037 [12:17:14]sum+1 = 68038 [12:17:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 680.00 Внесено: 680.00 СДАЧА: 0.00 НСП 1% : 6.02 НДС 12% : 72.25 Наличными: 680.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 109 27.10.2024 12:17 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156558 ФПД: 27401441022719 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T121720&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156558&fm=27401441022719&tin=02508201610067®Number=0000000000091693&sum=68000 [12:17:15]StoreToDocumentArchive [12:17:15]shift 537 fd 156558 [12:17:15]save to /storage/0537/doc_00156558 [12:17:15]save last doc name /storage/0537/doc_00156558 to /storage/kkm_last_doc_name [12:17:15]save OK [12:17:15]Clear old archive folders... [12:17:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:17:15]tlvbuf is 0174F880 [12:17:15]SAM_PROTO_ClearQueue [12:17:15]wFMCommunicate request_size=4 [12:17:15]MH_SAM_APDU [12:17:15]CAPDU: 80 09 00 00 [12:17:15]Write to MH i2c: E2 08 00 E8 4F 80 09 00 00 00 00 00 00 A9 [12:17:15]Write i2c OK [12:17:15]MH_I2C_Read... [12:17:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:17:15]Read from MH i2c: E2 [12:17:15]MH_I2C_Read... [12:17:15]Read from MH i2c: E2 03 00 [12:17:15]MH_I2C_Read... [12:17:15]Read from MH i2c: E2 03 00 E8 4F 00 90 00 AB [12:17:15]RAPDU: 90 00 [12:17:15]wFMCommunicate OK [12:17:15]SAM_PROTO_ClearQueue done [12:17:15]KKMCreateOFDPacket [12:17:15]OFDProtocolAddRootSTLVToBuf [12:17:15]FM_MakeSignedData [12:17:15]FM_MakeSignedData [12:17:15]SAM_PROTO_SignData [12:17:15]wFMCommunicate request_size=4 [12:17:15]MH_SAM_APDU [12:17:15]CAPDU: 80 0D 01 02 [12:17:15]Write to MH i2c: E2 08 00 E9 4F 80 0D 01 02 00 00 00 00 B1 [12:17:15]Write i2c OK [12:17:15]MH_I2C_Read... [12:17:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:17:15]Read from MH i2c: E2 [12:17:15]MH_I2C_Read... [12:17:15]Read from MH i2c: E2 03 00 [12:17:15]MH_I2C_Read... [12:17:15]Read from MH i2c: E2 03 00 E9 4F 00 90 00 AC [12:17:15]RAPDU: 90 00 [12:17:15]wFMCommunicate OK [12:17:15]wFMCommunicate request_size=255 [12:17:15]MH_SAM_APDU [12:17: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 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C5 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 50 2F 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 8E 63 02 00 35 04 06 00 18 [12:17:15]Write to MH i2c: E2 02 01 EA 4F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C5 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 50 2F 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 8E 63 02 00 35 04 06 00 18 00 00 48 [12:17:16]Write i2c OK [12:17:16]MH_I2C_Read... [12:17:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:16]Read from MH i2c: E2 [12:17:16]MH_I2C_Read... [12:17:16]Read from MH i2c: E2 03 00 [12:17:16]MH_I2C_Read... [12:17:16]Read from MH i2c: E2 03 00 EA 4F 00 90 00 AD [12:17:16]RAPDU: 90 00 [12:17:16]wFMCommunicate OK [12:17:16]wFMCommunicate request_size=10 [12:17:16]MH_SAM_APDU [12:17:16]CAPDU: 80 0D 02 02 05 EB E5 28 92 FF [12:17:16]Write to MH i2c: E2 0D 00 EB 4F 80 0D 02 02 05 00 EB E5 28 92 FF 00 00 47 [12:17:16]Write i2c OK [12:17:16]MH_I2C_Read... [12:17:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:16]Read from MH i2c: E2 [12:17:16]MH_I2C_Read... [12:17:16]Read from MH i2c: E2 03 00 [12:17:16]MH_I2C_Read... [12:17:16]Read from MH i2c: E2 03 00 EB 4F 00 90 00 AE [12:17:16]RAPDU: 90 00 [12:17:16]wFMCommunicate OK [12:17:16]wFMCommunicate request_size=4 [12:17:16]MH_SAM_APDU [12:17:16]CAPDU: 80 0D 03 02 [12:17:16]Write to MH i2c: E2 08 00 EC 4F 80 0D 03 02 00 00 00 00 B6 [12:17:16]Write i2c OK [12:17:16]MH_I2C_Read... [12:17:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:17:16]Read from MH i2c: E2 [12:17:16]MH_I2C_Read... [12:17:16]Read from MH i2c: E2 0B 00 [12:17:16]MH_I2C_Read... [12:17:16]Read from MH i2c: E2 0B 00 EC 4F 00 DD 05 06 58 5B 4E 52 75 90 00 67 [12:17:16]RAPDU: DD 05 06 58 5B 4E 52 75 90 00 [12:17:16]wFMCommunicate OK [12:17:16]SAM_PROTO_SignData done [12:17:16]FM_MakeSignedData done [12:17:16]CreateOFDProtocolMessage [12:17:16]wFMCommunicate request_size=4 [12:17:16]MH_SAM_APDU [12:17:16]CAPDU: 80 11 00 00 [12:17:16]Write to MH i2c: E2 08 00 ED 4F 80 11 00 00 00 00 00 00 B6 [12:17:16]Write i2c OK [12:17:16]MH_I2C_Read... [12:17:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:16]Read from MH i2c: E2 [12:17:16]MH_I2C_Read... [12:17:16]Read from MH i2c: E2 17 00 [12:17:16]MH_I2C_Read... [12:17:16]Read from MH i2c: E2 17 00 ED 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 0B [12:17:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:17:16]wFMCommunicate OK [12:17:16]CreateOFDProtocolMessage done [12:17:16]OFDSenderStorePacket 156558 [12:17:16]StoreOFDPacket docnum=156558 [12:17:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 07 7D 07 01 52 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C5 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 50 2F 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 8E 63 02 00 35 04 06 00 18 EB E5 28 92 FF DD 05 06 58 5B 4E 52 75 [12:17:16]CheckFolder [12:17:16]dirname=/storage/ofd_packets [12:17:16]CheckFolder done [12:17:16]ProducePacketName [12:17:16]name=ofd_packets/00156558 [12:17:16]NVStorageSaveData ofd_packets/00156558 [12:17:16]File name is /storage/ofd_packets/00156558 [12:17:16]Write 301 bytes [12:17:16]NVStorageSaveData done [12:17:16]OFDSenderStorePacket done [12:17:16]KKMCreateOFDPacket done [12:17:16]NVStorageSaveData kkm_last_timestamp [12:17:16]File name is /storage/kkm_last_timestamp [12:17:16]Write 4 bytes [12:17:16]NVStorageSaveData done [12:17:16]ExternCall_PrintAddStr [12:17:16]wPrintStart [12:17:16]Write to MH i2c: 01 00 00 EE 4F 3D [12:17:16]Write i2c OK [12:17:16]MH_I2C_Read... [12:17:16]Read from MH i2c: 01 [12:17:16]MH_I2C_Read... [12:17:16]Read from MH i2c: 01 07 00 [12:17:16]MH_I2C_Read... [12:17:16]Read from MH i2c: 01 07 00 EE 4F 00 00 00 00 00 FF 0F 52 [12:17:16]RasterBufferAndPrint [12:17:16]line Счет N : (1)99372 [12:17:16]line ИНН: 02508201610067 [12:17:16]line Контрольно-Кассовый Чек [12:17:16]line ПРОДАЖА [12:17:16]line ТРК (МРК, ГНК) : 21 [12:17:16]line Товар: 2710124130 [12:17:16]line Аи-92-К-5 [12:17:16]line 10.170 * 66.90 [12:17:16]line = 680.37 [12:17:16]line НДС 12% НСП 1% [12:17:16]line > о реализуемом товаре [12:17:16]line ОКРУГЛЕНИЕ: -0.37 [12:17:16]line ИТОГО: 680.00 [12:17:16]line Внесено: 680.00 [12:17:16]line СДАЧА: 0.00 [12:17:16]line НСП 1% : 6.02 [12:17:16]line НДС 12% : 72.25 [12:17:16]line Наличными: 680.00 [12:17:16]line Безнал.: 0.00 [12:17:16]line Место: АЗС № 143 "Партнер Нефть" [12:17:16]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [12:17:16]line СНО: Общий режим [12:17:16]line Чек 109 27.10.2024 12:17 [12:17:16]line Смена: 537 ФФД: 1.0 [12:17:16]line ЗНМ: 0300000096 [12:17:16]line РНМ: 0000000000091693 [12:17:16]line Версия ККМ: 001 [12:17:16]line ФМ: 0000000000871792 [12:17:16]line ФД: 156558 [12:17:16]line ФПД: 27401441022719 [12:17:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T121720&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156558&fm=27401441022719&tin=02508201610067®Number=0000000000091693&sum=68000 [12:17:16]OFD Sender: Processing packet 156558 [packets to send 31, broken 30] [12:17:16]ProducePacketName [12:17:16]name=ofd_packets/00156558 [12:17:16]OFD Sender: To server: pG, [12:17:16]CommunicateWithHost lk.salyk.kg:30040 [12:17:16]ConnectInit lk.salyk.kg [12:17:16]written 0, free lines is 4095 [12:17:16]Connected sock=10 [12:17:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 07 7D 07 01 52 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C5 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 50 2F 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 8E 63 02 00 35 04 06 00 18 EB E5 28 92 FF DD 05 06 58 5B 4E 52 75 [12:17:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 30 B0 47 00 75 B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 8E 63 02 00 F4 03 04 00 C0 D4 1D 67 B6 04 01 00 00 41 4F 36 3B 8C A4 9A 9C [12:17:17]CommunicateWithHost err = 0 [12:17:17]CheckOFDResponse [12:17:17]1017 (14) - 77093643461234 [12:17:17]1041 (16) - 0000000000871792 [12:17:17]1040 (4) - 156558 [12:17:17]1012 (4) - 27.10.2024 05:50 [12:17:17]1206 (1) - 0 [12:17:17]OFD Sender: Remove packet 156558 [12:17:17]ProducePacketName [12:17:17]name=ofd_packets/00156558 [12:17:17]NVStorageDeleteData [12:17:17]Write to MH i2c: 01 00 00 19 50 69 [12:17:17]Write i2c OK [12:17:17]MH_I2C_Read... [12:17:17]Read from MH i2c: 01 [12:17:17]MH_I2C_Read... [12:17:17]Read from MH i2c: 01 07 00 [12:17:17]MH_I2C_Read... [12:17:17]Read from MH i2c: 01 07 00 19 50 00 00 00 00 00 DC 0C 58 [12:17:17]RasterBufferAndPrint [12:17:17]line [12:17:17]line [12:17:17]line [12:17:17]line [12:17:17]line [12:17:17]written 0, free lines is 3298 [12:17:17]process_action close_receipt done [12:17:17]requested_data is exist [12:17:17]produce_requested_data [12:17:17]requested_item fm.sn is exist - process it [12:17:17]wFMCommunicate request_size=4 [12:17:17]MH_SAM_APDU [12:17:17]CAPDU: 80 11 00 00 [12:17:17]Write to MH i2c: E2 08 00 20 50 80 11 00 00 00 00 00 00 EA [12:17:17]Write i2c OK [12:17:17]MH_I2C_Read... [12:17:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:17]Read from MH i2c: E2 [12:17:17]MH_I2C_Read... [12:17:17]Read from MH i2c: E2 17 00 [12:17:17]MH_I2C_Read... [12:17:17]Read from MH i2c: E2 17 00 20 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 3F [12:17:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:17:17]wFMCommunicate OK [12:17:17]requested_item fd.num is exist - process it [12:17:17]SAM_PROTO_GetFieldsCounters [12:17:17]wFMCommunicate request_size=4 [12:17:17]MH_SAM_APDU [12:17:17]CAPDU: 80 13 00 00 [12:17:17]Write to MH i2c: E2 08 00 21 50 80 13 00 00 00 00 00 00 ED [12:17:17]Write i2c OK [12:17:17]MH_I2C_Read... [12:17:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:17:17]Read from MH i2c: E2 [12:17:17]MH_I2C_Read... [12:17:17]Read from MH i2c: E2 62 00 [12:17:17]MH_I2C_Read... [12:17:17]Read from MH i2c: E2 62 00 21 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 8E 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 68 [12:17:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 8E 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:17:17]wFMCommunicate OK [12:17:17]SAM_PROTO_GetFieldsCounters done [12:17:17]requested_item shift.num is exist - process it [12:17:17]requested_item shift.opened is exist - process it [12:17:17]req_shift_opened [12:17:17]FM_GetShiftState [12:17:17]SAM_PROTO_GetShiftState [12:17:17]wFMCommunicate request_size=4 [12:17:17]MH_SAM_APDU [12:17:17]CAPDU: 80 13 01 00 [12:17:17]Write to MH i2c: E2 08 00 22 50 80 13 01 00 00 00 00 00 EF [12:17:17]Write i2c OK [12:17:17]MH_I2C_Read... [12:17:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:17]Read from MH i2c: E2 [12:17:17]MH_I2C_Read... [12:17:17]Read from MH i2c: E2 0E 00 [12:17:17]MH_I2C_Read... [12:17:17]Read from MH i2c: E2 0E 00 22 50 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 BC [12:17:17]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [12:17:17]wFMCommunicate OK [12:17:17]SAM_PROTO_GetShiftState done [12:17:17]FM_GetShiftState done [12:17:17]req_shift_opened done [12:17:17]requested_item shift.open_date is exist - process it [12:17:17]req_shift_open_date [12:17:17]req_shift_open_date done [12:17:17]produce_requested_data done [12:17:17]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156558,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [12:17:17]process_action_free close_receipt [12:17:17]json_value_free [12:17:17]json_value_free done [12:17:17]process_json_proto returns [12:17:17]Send response to host [12:17:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156558,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [12:17:17]free response buf [12:17:17]execute_script done [12:17:17]execute_script returns [12:17:17]free content buf [12:17:17]Sock 9.Close socket [12:17:17]Sock 9.Thread stoped [12:17:17]OFD Sender: No OFD packet to send [12:17:22]OFD Sender: No OFD packet to send [12:17:27]OFD Sender: No OFD packet to send [12:17:32]OFD Sender: No OFD packet to send [12:17:37]OFD Sender: No OFD packet to send [12:17:42]OFD Sender: No OFD packet to send [12:17:47]OFD Sender: No OFD packet to send [12:17:52]OFD Sender: No OFD packet to send [12:17:57]OFD Sender: No OFD packet to send [12:18:02]OFD Sender: No OFD packet to send [12:18:07]OFD Sender: No OFD packet to send [12:18:12]OFD Sender: No OFD packet to send [12:18:17]OFD Sender: No OFD packet to send [12:18:22]OFD Sender: No OFD packet to send [12:18:27]OFD Sender: No OFD packet to send [12:18:31]accept exits with 8 [12:18:31]New connection [12:18:31]New thread 3066977636 created [12:18:31]Thread 3066834276 joined [12:18:31]Waiting for new connection... [12:18:31] Sock 8.Parse request [12:18:31]Sock 8.Check first char [12:18:31]Sock 8.First char is OK [12:18:31]request: POST /json_proto HTTP/1.0 [12:18:31]Method: POST [12:18:31]URL: /json_proto [12:18:31]Method is POST - this is cgi request [12:18:31]url: /json_proto [12:18:31]query_string will be loaded in cgi processing [12:18:31]execute_cgi json_proto POST (null) [12:18:31]execute_cgi path=json_proto method=POST [12:18:31]POST find Content-Length [12:18:31]Host: 172.17.63.3:8080 [12:18:31]Content-Length: 765 [12:18:31]Content-Type: application/json [12:18:31] [12:18:31]POST finish read [12:18:31]Found Content-Length = 765 [12:18:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99373", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:18:31]execute_script... [12: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)99373", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:18:31]POST & json_proto [12:18:31]process_json_proto [12:18:31]json parsed OK: [12:18:31]protocol is kg_v1.0 [12:18:31]action value=close_receipt [12:18:31]process_action close_receipt [12:18:31]cmd_close_receipt [12:18:31]MH_GetDate [12:18:31]Write to MH i2c: F0 00 00 23 50 62 [12:18:31]Write i2c OK [12:18:31]MH_I2C_Read... [12:18:31]Read from MH i2c: F0 [12:18:31]MH_I2C_Read... [12:18:31]Read from MH i2c: F0 09 00 [12:18:31]MH_I2C_Read... [12:18:31]Read from MH i2c: F0 09 00 23 50 00 9C 2F 1E 67 50 D1 6C 64 AC [12:18:31]GetLastDocTimeStamp 1730031440 [12:18:31]current date 1730031516 [12:18:31]FM_GetShiftState [12:18:31]SAM_PROTO_GetShiftState [12:18:31]wFMCommunicate request_size=4 [12:18:31]MH_SAM_APDU [12:18:31]CAPDU: 80 13 01 00 [12:18:31]Write to MH i2c: E2 08 00 24 50 80 13 01 00 00 00 00 00 F1 [12:18:31]Write i2c OK [12:18:31]MH_I2C_Read... [12:18:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:31]Read from MH i2c: E2 [12:18:31]MH_I2C_Read... [12:18:31]Read from MH i2c: E2 0E 00 [12:18:31]MH_I2C_Read... [12:18:31]Read from MH i2c: E2 0E 00 24 50 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 BE [12:18:31]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [12:18:31]wFMCommunicate OK [12:18:31]SAM_PROTO_GetShiftState done [12:18:31]FM_GetShiftState done [12:18:31]opened in 1729989044 [12:18:31]opened+sec_in_day 1730075444 [12:18:31]quantity*price = 50041 [12:18:31]sum+1 = 50042 [12:18:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 110 27.10.2024 12:18 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 156559 ФПД: 23589285452973 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T121837&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156559&fm=23589285452973&tin=02508201610067®Number=0000000000091693&sum=50041 [12:18:32]StoreToDocumentArchive [12:18:32]shift 537 fd 156559 [12:18:32]save to /storage/0537/doc_00156559 [12:18:32]save last doc name /storage/0537/doc_00156559 to /storage/kkm_last_doc_name [12:18:32]save OK [12:18:32]Clear old archive folders... [12:18:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:18:32]tlvbuf is 016F8160 [12:18:32]SAM_PROTO_ClearQueue [12:18:32]wFMCommunicate request_size=4 [12:18:32]MH_SAM_APDU [12:18:32]CAPDU: 80 09 00 00 [12:18:32]Write to MH i2c: E2 08 00 31 50 80 09 00 00 00 00 00 00 F3 [12:18:32]Write i2c OK [12:18:32]MH_I2C_Read... [12:18:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:18:32]Read from MH i2c: E2 [12:18:32]MH_I2C_Read... [12:18:32]Read from MH i2c: E2 03 00 [12:18:32]MH_I2C_Read... [12:18:32]Read from MH i2c: E2 03 00 31 50 00 90 00 F5 [12:18:32]RAPDU: 90 00 [12:18:32]wFMCommunicate OK [12:18:32]SAM_PROTO_ClearQueue done [12:18:32]KKMCreateOFDPacket [12:18:32]OFDProtocolAddRootSTLVToBuf [12:18:32]FM_MakeSignedData [12:18:32]FM_MakeSignedData [12:18:32]SAM_PROTO_SignData [12:18:32]wFMCommunicate request_size=4 [12:18:32]MH_SAM_APDU [12:18:32]CAPDU: 80 0D 01 02 [12:18:32]Write to MH i2c: E2 08 00 32 50 80 0D 01 02 00 00 00 00 FB [12:18:32]Write i2c OK [12:18:32]MH_I2C_Read... [12:18:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:18:32]Read from MH i2c: E2 [12:18:32]MH_I2C_Read... [12:18:32]Read from MH i2c: E2 03 00 [12:18:32]MH_I2C_Read... [12:18:32]Read from MH i2c: E2 03 00 32 50 00 90 00 F6 [12:18:32]RAPDU: 90 00 [12:18:32]wFMCommunicate OK [12:18:32]wFMCommunicate request_size=255 [12:18:32]MH_SAM_APDU [12: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 9D 2F 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 8F 63 02 00 35 04 06 00 15 [12:18:32]Write to MH i2c: E2 02 01 33 50 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 9D 2F 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 8F 63 02 00 35 04 06 00 15 00 00 C4 [12:18:32]Write i2c OK [12:18:32]MH_I2C_Read... [12:18:32]OFD Sender: No OFD packet to send [12:18:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:32]Read from MH i2c: E2 [12:18:32]MH_I2C_Read... [12:18:32]Read from MH i2c: E2 03 00 [12:18:32]MH_I2C_Read... [12:18:32]Read from MH i2c: E2 03 00 33 50 00 90 00 F7 [12:18:32]RAPDU: 90 00 [12:18:32]wFMCommunicate OK [12:18:32]wFMCommunicate request_size=10 [12:18:32]MH_SAM_APDU [12:18:32]CAPDU: 80 0D 02 02 05 74 4E FA DC AD [12:18:32]Write to MH i2c: E2 0D 00 34 50 80 0D 02 02 05 00 74 4E FA DC AD 00 00 4D [12:18:32]Write i2c OK [12:18:32]MH_I2C_Read... [12:18:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:32]Read from MH i2c: E2 [12:18:32]MH_I2C_Read... [12:18:32]Read from MH i2c: E2 03 00 [12:18:32]MH_I2C_Read... [12:18:32]Read from MH i2c: E2 03 00 34 50 00 90 00 F8 [12:18:32]RAPDU: 90 00 [12:18:32]wFMCommunicate OK [12:18:32]wFMCommunicate request_size=4 [12:18:32]MH_SAM_APDU [12:18:32]CAPDU: 80 0D 03 02 [12:18:32]Write to MH i2c: E2 08 00 35 50 80 0D 03 02 00 00 00 00 00 [12:18:32]Write i2c OK [12:18:32]MH_I2C_Read... [12:18:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:18:32]Read from MH i2c: E2 [12:18:32]MH_I2C_Read... [12:18:32]Read from MH i2c: E2 0B 00 [12:18:32]MH_I2C_Read... [12:18:32]Read from MH i2c: E2 0B 00 35 50 00 7A 27 19 C8 75 07 BA 33 90 00 EC [12:18:32]RAPDU: 7A 27 19 C8 75 07 BA 33 90 00 [12:18:32]wFMCommunicate OK [12:18:32]SAM_PROTO_SignData done [12:18:32]FM_MakeSignedData done [12:18:32]CreateOFDProtocolMessage [12:18:32]wFMCommunicate request_size=4 [12:18:32]MH_SAM_APDU [12:18:32]CAPDU: 80 11 00 00 [12:18:32]Write to MH i2c: E2 08 00 36 50 80 11 00 00 00 00 00 00 00 [12:18:32]Write i2c OK [12:18:32]MH_I2C_Read... [12:18:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:33]Read from MH i2c: E2 [12:18:33]MH_I2C_Read... [12:18:33]Read from MH i2c: E2 17 00 [12:18:33]MH_I2C_Read... [12:18:33]Read from MH i2c: E2 17 00 36 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 55 [12:18:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:18:33]wFMCommunicate OK [12:18:33]CreateOFDProtocolMessage done [12:18:33]OFDSenderStorePacket 156559 [12:18:33]StoreOFDPacket docnum=156559 [12:18:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 A7 56 07 01 6A 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 9D 2F 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 8F 63 02 00 35 04 06 00 15 74 4E FA DC AD 7A 27 19 C8 75 07 BA 33 [12:18:33]CheckFolder [12:18:33]dirname=/storage/ofd_packets [12:18:33]CheckFolder done [12:18:33]ProducePacketName [12:18:33]name=ofd_packets/00156559 [12:18:33]NVStorageSaveData ofd_packets/00156559 [12:18:33]File name is /storage/ofd_packets/00156559 [12:18:33]Write 301 bytes [12:18:33]NVStorageSaveData done [12:18:33]OFDSenderStorePacket done [12:18:33]KKMCreateOFDPacket done [12:18:33]NVStorageSaveData kkm_last_timestamp [12:18:33]File name is /storage/kkm_last_timestamp [12:18:33]Write 4 bytes [12:18:33]NVStorageSaveData done [12:18:33]OFD Sender: Processing packet 156559 [packets to send 31, broken 30] [12:18:33]ProducePacketName [12:18:33]name=ofd_packets/00156559 [12:18:33]OFD Sender: To server: pG, [12:18:33]CommunicateWithHost lk.salyk.kg:30040 [12:18:33]ConnectInit lk.salyk.kg [12:18:33]ExternCall_PrintAddStr [12:18:33]wPrintStart [12:18:33]Write to MH i2c: 01 00 00 37 50 87 [12:18:33]Write i2c OK [12:18:33]MH_I2C_Read... [12:18:33]Read from MH i2c: 01 [12:18:33]MH_I2C_Read... [12:18:33]Read from MH i2c: 01 07 00 [12:18:33]MH_I2C_Read... [12:18:33]Read from MH i2c: 01 07 00 37 50 00 00 00 00 00 FF 0F 9C [12:18:33]RasterBufferAndPrint [12:18:33]line Счет N : (1)99373 [12:18:33]line ИНН: 02508201610067 [12:18:33]line Контрольно-Кассовый Чек [12:18:33]line ПРОДАЖА [12:18:33]line ТРК (МРК, ГНК) : 31 [12:18:33]line Товар: 2710124130 [12:18:33]line Аи-92-К-5 [12:18:33]line 7.480 * 66.90 [12:18:33]line = 500.41 [12:18:33]line НДС 12% НСП 1% [12:18:33]line > о реализуемом товаре [12:18:33]line ИТОГО: 500.41 [12:18:33]line НСП 1% : 4.43 [12:18:33]line НДС 12% : 53.14 [12:18:33]line Наличными: 0.00 [12:18:33]line Безнал.: 500.41 [12:18:33]line Место: АЗС № 143 "Партнер Нефть" [12:18:33]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [12:18:33]line СНО: Общий режим [12:18:33]line Чек 110 27.10.2024 12:18 [12:18:33]line Смена: 537 ФФД: 1.0 [12:18:33]line ЗНМ: 0300000096 [12:18:33]line РНМ: 0000000000091693 [12:18:33]line Версия ККМ: 001 [12:18:33]line Платежная система: Mbank [12:18:33]line ФМ: 0000000000871792 [12:18:33]line ФД: 156559 [12:18:33]line ФПД: 23589285452973 [12:18:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T121837&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156559&fm=23589285452973&tin=02508201610067®Number=0000000000091693&sum=50041 [12:18:33]Connected sock=11 [12: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 31 37 39 32 0F 01 00 00 A7 56 07 01 6A 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 9D 2F 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 8F 63 02 00 35 04 06 00 15 74 4E FA DC AD 7A 27 19 C8 75 07 BA 33 [12:18:33]written 0, free lines is 4095 [12:18:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 73 E1 47 00 47 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 31 37 39 32 10 04 04 00 8F 63 02 00 F4 03 04 00 0C D5 1D 67 B6 04 01 00 00 F5 3D 18 1F FC B5 C3 81 [12:18:33]CommunicateWithHost err = 0 [12:18:33]CheckOFDResponse [12:18:33]1017 (14) - 77093643461234 [12:18:33]1041 (16) - 0000000000871792 [12:18:33]1040 (4) - 156559 [12:18:33]1012 (4) - 27.10.2024 05:52 [12:18:33]1206 (1) - 0 [12:18:33]OFD Sender: Remove packet 156559 [12:18:33]ProducePacketName [12:18:33]name=ofd_packets/00156559 [12:18:33]NVStorageDeleteData [12:18:33]Write to MH i2c: 01 00 00 60 50 B0 [12:18:33]Write i2c OK [12:18:33]MH_I2C_Read... [12:18:33]Read from MH i2c: 01 [12:18:33]MH_I2C_Read... [12:18:33]Read from MH i2c: 01 07 00 [12:18:33]MH_I2C_Read... [12:18:33]Read from MH i2c: 01 07 00 60 50 00 00 00 00 00 FD 0C C0 [12:18:33]RasterBufferAndPrint [12:18:33]line [12:18:33]line [12:18:33]line [12:18:33]line [12:18:33]line [12:18:33]written 0, free lines is 3333 [12:18:33]process_action close_receipt done [12:18:33]requested_data is exist [12:18:33]produce_requested_data [12:18:33]requested_item fm.sn is exist - process it [12:18:33]wFMCommunicate request_size=4 [12:18:33]MH_SAM_APDU [12:18:33]CAPDU: 80 11 00 00 [12:18:33]Write to MH i2c: E2 08 00 67 50 80 11 00 00 00 00 00 00 31 [12:18:33]Write i2c OK [12:18:33]MH_I2C_Read... [12:18:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:33]Read from MH i2c: E2 [12:18:33]MH_I2C_Read... [12:18:33]Read from MH i2c: E2 17 00 [12:18:33]MH_I2C_Read... [12:18:33]Read from MH i2c: E2 17 00 67 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 86 [12:18:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:18:33]wFMCommunicate OK [12:18:33]requested_item fd.num is exist - process it [12:18:33]SAM_PROTO_GetFieldsCounters [12:18:33]wFMCommunicate request_size=4 [12:18:33]MH_SAM_APDU [12:18:33]CAPDU: 80 13 00 00 [12:18:33]Write to MH i2c: E2 08 00 68 50 80 13 00 00 00 00 00 00 34 [12:18:33]Write i2c OK [12:18:33]MH_I2C_Read... [12:18:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:18:34]Read from MH i2c: E2 [12:18:34]MH_I2C_Read... [12:18:34]Read from MH i2c: E2 62 00 [12:18:34]MH_I2C_Read... [12:18:34]Read from MH i2c: E2 62 00 68 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 8F 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 B3 [12:18:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 8F 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:18:34]wFMCommunicate OK [12:18:34]SAM_PROTO_GetFieldsCounters done [12:18:34]requested_item shift.num is exist - process it [12:18:34]requested_item shift.opened is exist - process it [12:18:34]req_shift_opened [12:18:34]FM_GetShiftState [12:18:34]SAM_PROTO_GetShiftState [12:18:34]wFMCommunicate request_size=4 [12:18:34]MH_SAM_APDU [12:18:34]CAPDU: 80 13 01 00 [12:18:34]Write to MH i2c: E2 08 00 69 50 80 13 01 00 00 00 00 00 36 [12:18:34]Write i2c OK [12:18:34]MH_I2C_Read... [12:18:34]OFD Sender: No OFD packet to send [12:18:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:34]Read from MH i2c: E2 [12:18:34]MH_I2C_Read... [12:18:34]Read from MH i2c: E2 0E 00 [12:18:34]MH_I2C_Read... [12:18:34]Read from MH i2c: E2 0E 00 69 50 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 03 [12:18:34]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [12:18:34]wFMCommunicate OK [12:18:34]SAM_PROTO_GetShiftState done [12:18:34]FM_GetShiftState done [12:18:34]req_shift_opened done [12:18:34]requested_item shift.open_date is exist - process it [12:18:34]req_shift_open_date [12:18:34]req_shift_open_date done [12:18:34]produce_requested_data done [12:18:34]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156559,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [12:18:34]process_action_free close_receipt [12:18:34]json_value_free [12:18:34]json_value_free done [12:18:34]process_json_proto returns [12:18:34]Send response to host [12:18:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156559,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [12:18:34]free response buf [12:18:34]execute_script done [12:18:34]execute_script returns [12:18:34]free content buf [12:18:34]Sock 8.Close socket [12:18:34]Sock 8.Thread stoped [12:18:39]OFD Sender: No OFD packet to send [12:18:44]OFD Sender: No OFD packet to send [12:18:49]OFD Sender: No OFD packet to send [12:18:54]OFD Sender: No OFD packet to send [12:18:59]OFD Sender: No OFD packet to send [12:19:04]OFD Sender: No OFD packet to send [12:19:09]OFD Sender: No OFD packet to send [12:19:14]OFD Sender: No OFD packet to send [12:19:19]OFD Sender: No OFD packet to send [12:19:24]OFD Sender: No OFD packet to send [12:19:26]accept exits with 10 [12:19:26]New connection [12:19:26]New thread 3066834276 created [12:19:26]Thread 3066977636 joined [12:19:26]Waiting for new connection... [12:19:26] Sock 10.Parse request [12:19:26]Sock 10.Check first char [12:19:26]Sock 10.First char is OK [12:19:26]request: POST /json_proto HTTP/1.0 [12:19:26]Method: POST [12:19:26]URL: /json_proto [12:19:26]Method is POST - this is cgi request [12:19:26]url: /json_proto [12:19:26]query_string will be loaded in cgi processing [12:19:26]execute_cgi json_proto POST (null) [12:19:26]execute_cgi path=json_proto method=POST [12:19:26]POST find Content-Length [12:19:26]Host: 172.17.63.3:8080 [12:19:26]Content-Length: 681 [12:19:26]Content-Type: application/json [12:19:26] [12:19:26]POST finish read [12:19:26]Found Content-Length = 681 [12:19:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99374", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:19:26]execute_script... [12:19: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)99374", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:19:26]POST & json_proto [12:19:26]process_json_proto [12:19:26]json parsed OK: [12:19:26]protocol is kg_v1.0 [12:19:26]action value=close_receipt [12:19:26]process_action close_receipt [12:19:26]cmd_close_receipt [12:19:26]MH_GetDate [12:19:26]Write to MH i2c: F0 00 00 6A 50 A9 [12:19:26]Write i2c OK [12:19:26]MH_I2C_Read... [12:19:26]Read from MH i2c: F0 [12:19:26]MH_I2C_Read... [12:19:26]Read from MH i2c: F0 09 00 [12:19:26]MH_I2C_Read... [12:19:26]Read from MH i2c: F0 09 00 6A 50 00 D4 2F 1E 67 50 D1 6C 64 2B [12:19:26]GetLastDocTimeStamp 1730031517 [12:19:26]current date 1730031572 [12:19:26]FM_GetShiftState [12:19:26]SAM_PROTO_GetShiftState [12:19:26]wFMCommunicate request_size=4 [12:19:26]MH_SAM_APDU [12:19:26]CAPDU: 80 13 01 00 [12:19:26]Write to MH i2c: E2 08 00 6B 50 80 13 01 00 00 00 00 00 38 [12:19:26]Write i2c OK [12:19:26]MH_I2C_Read... [12:19:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:26]Read from MH i2c: E2 [12:19:26]MH_I2C_Read... [12:19:26]Read from MH i2c: E2 0E 00 [12:19:26]MH_I2C_Read... [12:19:26]Read from MH i2c: E2 0E 00 6B 50 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 05 [12:19:26]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [12:19:26]wFMCommunicate OK [12:19:26]SAM_PROTO_GetShiftState done [12:19:26]FM_GetShiftState done [12:19:26]opened in 1729989044 [12:19:26]opened+sec_in_day 1730075444 [12:19:26]quantity*price = 100015 [12:19:26]sum+1 = 100017 [12:19:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 111 27.10.2024 12:19 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156560 ФПД: 101651397386185 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T121932&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156560&fm=101651397386185&tin=02508201610067®Number=0000000000091693&sum=100000 [12:19:27]StoreToDocumentArchive [12:19:27]shift 537 fd 156560 [12:19:27]save to /storage/0537/doc_00156560 [12:19:27]save last doc name /storage/0537/doc_00156560 to /storage/kkm_last_doc_name [12:19:27]save OK [12:19:27]Clear old archive folders... [12:19:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:19:27]tlvbuf is 01782CA0 [12:19:27]SAM_PROTO_ClearQueue [12:19:27]wFMCommunicate request_size=4 [12:19:27]MH_SAM_APDU [12:19:27]CAPDU: 80 09 00 00 [12:19:27]Write to MH i2c: E2 08 00 78 50 80 09 00 00 00 00 00 00 3A [12:19:27]Write i2c OK [12:19:27]MH_I2C_Read... [12:19:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:19:28]Read from MH i2c: E2 [12:19:28]MH_I2C_Read... [12:19:28]Read from MH i2c: E2 03 00 [12:19:28]MH_I2C_Read... [12:19:28]Read from MH i2c: E2 03 00 78 50 00 90 00 3C [12:19:28]RAPDU: 90 00 [12:19:28]wFMCommunicate OK [12:19:28]SAM_PROTO_ClearQueue done [12:19:28]KKMCreateOFDPacket [12:19:28]OFDProtocolAddRootSTLVToBuf [12:19:28]FM_MakeSignedData [12:19:28]FM_MakeSignedData [12:19:28]SAM_PROTO_SignData [12:19:28]wFMCommunicate request_size=4 [12:19:28]MH_SAM_APDU [12:19:28]CAPDU: 80 0D 01 02 [12:19:28]Write to MH i2c: E2 08 00 79 50 80 0D 01 02 00 00 00 00 42 [12:19:28]Write i2c OK [12:19:28]MH_I2C_Read... [12:19:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:19:28]Read from MH i2c: E2 [12:19:28]MH_I2C_Read... [12:19:28]Read from MH i2c: E2 03 00 [12:19:28]MH_I2C_Read... [12:19:28]Read from MH i2c: E2 03 00 79 50 00 90 00 3D [12:19:28]RAPDU: 90 00 [12:19:28]wFMCommunicate OK [12:19:28]wFMCommunicate request_size=255 [12:19:28]MH_SAM_APDU [12:19: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 D4 2F 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 90 63 02 00 35 04 06 00 5C [12:19:28]Write to MH i2c: E2 02 01 7A 50 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 D4 2F 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 90 63 02 00 35 04 06 00 5C 00 00 33 [12:19:28]Write i2c OK [12:19:28]MH_I2C_Read... [12:19:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:28]Read from MH i2c: E2 [12:19:28]MH_I2C_Read... [12:19:28]Read from MH i2c: E2 03 00 [12:19:28]MH_I2C_Read... [12:19:28]Read from MH i2c: E2 03 00 7A 50 00 90 00 3E [12:19:28]RAPDU: 90 00 [12:19:28]wFMCommunicate OK [12:19:28]wFMCommunicate request_size=10 [12:19:28]MH_SAM_APDU [12:19:28]CAPDU: 80 0D 02 02 05 73 8F 6E 9F C9 [12:19:28]Write to MH i2c: E2 0D 00 7B 50 80 0D 02 02 05 00 73 8F 6E 9F C9 00 00 27 [12:19:28]Write i2c OK [12:19:28]MH_I2C_Read... [12:19:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:28]Read from MH i2c: E2 [12:19:28]MH_I2C_Read... [12:19:28]Read from MH i2c: E2 03 00 [12:19:28]MH_I2C_Read... [12:19:28]Read from MH i2c: E2 03 00 7B 50 00 90 00 3F [12:19:28]RAPDU: 90 00 [12:19:28]wFMCommunicate OK [12:19:28]wFMCommunicate request_size=4 [12:19:28]MH_SAM_APDU [12:19:28]CAPDU: 80 0D 03 02 [12:19:28]Write to MH i2c: E2 08 00 7C 50 80 0D 03 02 00 00 00 00 47 [12:19:28]Write i2c OK [12:19:28]MH_I2C_Read... [12:19:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:19:28]Read from MH i2c: E2 [12:19:28]MH_I2C_Read... [12:19:28]Read from MH i2c: E2 0B 00 [12:19:28]MH_I2C_Read... [12:19:28]Read from MH i2c: E2 0B 00 7C 50 00 49 E1 64 0D 05 D4 E0 3E 90 00 DA [12:19:28]RAPDU: 49 E1 64 0D 05 D4 E0 3E 90 00 [12:19:28]wFMCommunicate OK [12:19:28]SAM_PROTO_SignData done [12:19:28]FM_MakeSignedData done [12:19:28]CreateOFDProtocolMessage [12:19:28]wFMCommunicate request_size=4 [12:19:28]MH_SAM_APDU [12:19:28]CAPDU: 80 11 00 00 [12:19:28]Write to MH i2c: E2 08 00 7D 50 80 11 00 00 00 00 00 00 47 [12:19:28]Write i2c OK [12:19:28]MH_I2C_Read... [12:19:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:28]Read from MH i2c: E2 [12:19:28]MH_I2C_Read... [12:19:28]Read from MH i2c: E2 17 00 [12:19:28]MH_I2C_Read... [12:19:28]Read from MH i2c: E2 17 00 7D 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 9C [12:19:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:19:28]wFMCommunicate OK [12:19:28]CreateOFDProtocolMessage done [12:19:28]OFDSenderStorePacket 156560 [12:19:28]StoreOFDPacket docnum=156560 [12:19:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 86 CC 07 01 C3 DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 D4 2F 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 90 63 02 00 35 04 06 00 5C 73 8F 6E 9F C9 49 E1 64 0D 05 D4 E0 3E [12:19:28]CheckFolder [12:19:28]dirname=/storage/ofd_packets [12:19:28]CheckFolder done [12:19:28]ProducePacketName [12:19:28]name=ofd_packets/00156560 [12:19:28]NVStorageSaveData ofd_packets/00156560 [12:19:28]File name is /storage/ofd_packets/00156560 [12:19:28]Write 301 bytes [12:19:28]NVStorageSaveData done [12:19:28]OFDSenderStorePacket done [12:19:28]KKMCreateOFDPacket done [12:19:28]NVStorageSaveData kkm_last_timestamp [12:19:28]File name is /storage/kkm_last_timestamp [12:19:28]Write 4 bytes [12:19:28]NVStorageSaveData done [12:19:28]ExternCall_PrintAddStr [12:19:28]wPrintStart [12:19:28]Write to MH i2c: 01 00 00 7E 50 CE [12:19:28]Write i2c OK [12:19:28]MH_I2C_Read... [12:19:28]Read from MH i2c: 01 [12:19:28]MH_I2C_Read... [12:19:28]Read from MH i2c: 01 07 00 [12:19:28]MH_I2C_Read... [12:19:28]Read from MH i2c: 01 07 00 7E 50 00 00 00 00 00 FF 0F E3 [12:19:28]RasterBufferAndPrint [12:19:28]line Счет N : (1)99374 [12:19:28]line ИНН: 02508201610067 [12:19:28]line Контрольно-Кассовый Чек [12:19:28]line ПРОДАЖА [12:19:28]line ТРК (МРК, ГНК) : 21 [12:19:28]line Товар: 2710124130 [12:19:28]line Аи-92-К-5 [12:19:28]line 14.950 * 66.90 [12:19:28]line = 1000.16 [12:19:28]line НДС 12% НСП 1% [12:19:28]line > о реализуемом товаре [12:19:28]line ОКРУГЛЕНИЕ: -0.16 [12:19:28]line ИТОГО: 1000.00 [12:19:28]line Внесено: 1000.00 [12:19:28]line СДАЧА: 0.00 [12:19:28]line НСП 1% : 8.85 [12:19:28]line НДС 12% : 106.21 [12:19:28]line Наличными: 1000.00 [12:19:28]line Безнал.: 0.00 [12:19:28]line Место: АЗС № 143 "Партнер Нефть" [12:19:28]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [12:19:28]line СНО: Общий режим [12:19:28]line Чек 111 27.10.2024 12:19 [12:19:28]line Смена: 537 ФФД: 1.0 [12:19:28]line ЗНМ: 0300000096 [12:19:28]line РНМ: 0000000000091693 [12:19:28]line Версия ККМ: 001 [12:19:28]line ФМ: 0000000000871792 [12:19:28]line ФД: 156560 [12:19:28]line ФПД: 101651397386185 [12:19:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T121932&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156560&fm=101651397386185&tin=02508201610067®Number=0000000000091693&sum=100000 [12:19:28]OFD Sender: Processing packet 156560 [packets to send 31, broken 30] [12:19:28]ProducePacketName [12:19:28]name=ofd_packets/00156560 [12:19:28]OFD Sender: To server: pG, [12:19:28]CommunicateWithHost lk.salyk.kg:30040 [12:19:28]ConnectInit lk.salyk.kg [12:19:28]written 0, free lines is 4095 [12:19:28]Connected sock=9 [12:19:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 86 CC 07 01 C3 DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 D4 2F 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 90 63 02 00 35 04 06 00 5C 73 8F 6E 9F C9 49 E1 64 0D 05 D4 E0 3E [12:19:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 C7 44 47 00 CB DB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 90 63 02 00 F4 03 04 00 44 D5 1D 67 B6 04 01 00 00 35 00 13 C9 BD 13 75 53 [12:19:29]CommunicateWithHost err = 0 [12:19:29]CheckOFDResponse [12:19:29]1017 (14) - 77093643461234 [12:19:29]1041 (16) - 0000000000871792 [12:19:29]1040 (4) - 156560 [12:19:29]1012 (4) - 27.10.2024 05:53 [12:19:29]1206 (1) - 0 [12:19:29]OFD Sender: Remove packet 156560 [12:19:29]ProducePacketName [12:19:29]name=ofd_packets/00156560 [12:19:29]NVStorageDeleteData [12:19:29]Write to MH i2c: 01 00 00 A9 50 F9 [12:19:29]Write i2c OK [12:19:29]MH_I2C_Read... [12:19:29]Read from MH i2c: 01 [12:19:29]MH_I2C_Read... [12:19:29]Read from MH i2c: 01 07 00 [12:19:29]MH_I2C_Read... [12:19:29]Read from MH i2c: 01 07 00 A9 50 00 00 00 00 00 D6 0C E2 [12:19:29]RasterBufferAndPrint [12:19:29]line [12:19:29]line [12:19:29]line [12:19:29]line [12:19:29]line [12:19:29]written 0, free lines is 3294 [12:19:29]process_action close_receipt done [12:19:29]requested_data is exist [12:19:29]produce_requested_data [12:19:29]requested_item fm.sn is exist - process it [12:19:29]wFMCommunicate request_size=4 [12:19:29]MH_SAM_APDU [12:19:29]CAPDU: 80 11 00 00 [12:19:29]Write to MH i2c: E2 08 00 B0 50 80 11 00 00 00 00 00 00 7A [12:19:29]Write i2c OK [12:19:29]MH_I2C_Read... [12:19:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:29]Read from MH i2c: E2 [12:19:29]MH_I2C_Read... [12:19:29]Read from MH i2c: E2 17 00 [12:19:29]MH_I2C_Read... [12:19:29]Read from MH i2c: E2 17 00 B0 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 CF [12:19:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:19:29]wFMCommunicate OK [12:19:29]requested_item fd.num is exist - process it [12:19:29]SAM_PROTO_GetFieldsCounters [12:19:29]wFMCommunicate request_size=4 [12:19:29]MH_SAM_APDU [12:19:29]CAPDU: 80 13 00 00 [12:19:29]Write to MH i2c: E2 08 00 B1 50 80 13 00 00 00 00 00 00 7D [12:19:29]Write i2c OK [12:19:29]MH_I2C_Read... [12:19:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:19:29]Read from MH i2c: E2 [12:19:29]MH_I2C_Read... [12:19:29]Read from MH i2c: E2 62 00 [12:19:29]MH_I2C_Read... [12:19:29]Read from MH i2c: E2 62 00 B1 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 90 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 00 [12:19:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 90 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:19:29]wFMCommunicate OK [12:19:29]SAM_PROTO_GetFieldsCounters done [12:19:29]requested_item shift.num is exist - process it [12:19:29]requested_item shift.opened is exist - process it [12:19:29]req_shift_opened [12:19:29]FM_GetShiftState [12:19:29]SAM_PROTO_GetShiftState [12:19:29]wFMCommunicate request_size=4 [12:19:29]MH_SAM_APDU [12:19:29]CAPDU: 80 13 01 00 [12:19:29]Write to MH i2c: E2 08 00 B2 50 80 13 01 00 00 00 00 00 7F [12:19:29]Write i2c OK [12:19:29]MH_I2C_Read... [12:19:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:29]Read from MH i2c: E2 [12:19:29]MH_I2C_Read... [12:19:29]Read from MH i2c: E2 0E 00 [12:19:29]MH_I2C_Read... [12:19:29]Read from MH i2c: E2 0E 00 B2 50 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 4C [12:19:29]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [12:19:29]wFMCommunicate OK [12:19:29]SAM_PROTO_GetShiftState done [12:19:29]FM_GetShiftState done [12:19:29]req_shift_opened done [12:19:29]requested_item shift.open_date is exist - process it [12:19:29]req_shift_open_date [12:19:29]req_shift_open_date done [12:19:29]produce_requested_data done [12:19:29]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156560,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [12:19:29]process_action_free close_receipt [12:19:29]json_value_free [12:19:29]json_value_free done [12:19:29]process_json_proto returns [12:19:29]Send response to host [12:19:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156560,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [12:19:29]free response buf [12:19:29]execute_script done [12:19:29]execute_script returns [12:19:29]free content buf [12:19:29]Sock 10.Close socket [12:19:29]Sock 10.Thread stoped [12:19:29]OFD Sender: No OFD packet to send [12:19:34]OFD Sender: No OFD packet to send [12:19:39]OFD Sender: No OFD packet to send [12:19:44]OFD Sender: No OFD packet to send [12:19:49]OFD Sender: No OFD packet to send [12:19:54]OFD Sender: No OFD packet to send [12:19:59]OFD Sender: No OFD packet to send [12:20:04]OFD Sender: No OFD packet to send [12:20:09]OFD Sender: No OFD packet to send [12:20:14]OFD Sender: No OFD packet to send [12:20:19]OFD Sender: No OFD packet to send [12:20:24]OFD Sender: No OFD packet to send [12:20:29]OFD Sender: No OFD packet to send [12:20:32]accept exits with 8 [12:20:32]New connection [12:20:32]New thread 3066977636 created [12:20:32]Thread 3066834276 joined [12:20:32]Waiting for new connection... [12:20:32] Sock 8.Parse request [12:20:32]Sock 8.Check first char [12:20:32]Sock 8.First char is OK [12:20:32]request: POST /json_proto HTTP/1.0 [12:20:32]Method: POST [12:20:32]URL: /json_proto [12:20:32]Method is POST - this is cgi request [12:20:32]url: /json_proto [12:20:32]query_string will be loaded in cgi processing [12:20:32]execute_cgi json_proto POST (null) [12:20:32]execute_cgi path=json_proto method=POST [12:20:32]POST find Content-Length [12:20:32]Host: 172.17.63.3:8080 [12:20:32]Content-Length: 681 [12:20:32]Content-Type: application/json [12:20:32] [12:20:32]POST finish read [12:20:32]Found Content-Length = 681 [12:20:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99375", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:20:32]execute_script... [12:20: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)99375", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:20:32]POST & json_proto [12:20:32]process_json_proto [12:20:32]json parsed OK: [12:20:32]protocol is kg_v1.0 [12:20:32]action value=close_receipt [12:20:32]process_action close_receipt [12:20:32]cmd_close_receipt [12:20:32]MH_GetDate [12:20:32]Write to MH i2c: F0 00 00 B3 50 F2 [12:20:32]Write i2c OK [12:20:32]MH_I2C_Read... [12:20:32]Read from MH i2c: F0 [12:20:32]MH_I2C_Read... [12:20:32]Read from MH i2c: F0 09 00 [12:20:32]MH_I2C_Read... [12:20:32]Read from MH i2c: F0 09 00 B3 50 00 15 30 1E 67 50 D1 6C 64 B6 [12:20:32]GetLastDocTimeStamp 1730031572 [12:20:32]current date 1730031637 [12:20:32]FM_GetShiftState [12:20:32]SAM_PROTO_GetShiftState [12:20:32]wFMCommunicate request_size=4 [12:20:32]MH_SAM_APDU [12:20:32]CAPDU: 80 13 01 00 [12:20:32]Write to MH i2c: E2 08 00 B4 50 80 13 01 00 00 00 00 00 81 [12:20:32]Write i2c OK [12:20:32]MH_I2C_Read... [12:20:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:32]Read from MH i2c: E2 [12:20:32]MH_I2C_Read... [12:20:32]Read from MH i2c: E2 0E 00 [12:20:32]MH_I2C_Read... [12:20:32]Read from MH i2c: E2 0E 00 B4 50 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 4E [12:20:32]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [12:20:32]wFMCommunicate OK [12:20:32]SAM_PROTO_GetShiftState done [12:20:32]FM_GetShiftState done [12:20:32]opened in 1729989044 [12:20:32]opened+sec_in_day 1730075444 [12:20:32]quantity*price = 100015 [12:20:32]sum+1 = 100017 [12:20:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 112 27.10.2024 12:20 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156561 ФПД: 26888955215876 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T122037&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156561&fm=26888955215876&tin=02508201610067®Number=0000000000091693&sum=100000 [12:20:33]StoreToDocumentArchive [12:20:33]shift 537 fd 156561 [12:20:33]save to /storage/0537/doc_00156561 [12:20:33]save last doc name /storage/0537/doc_00156561 to /storage/kkm_last_doc_name [12:20:33]save OK [12:20:33]Clear old archive folders... [12:20:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:20:33]tlvbuf is 0168BFE0 [12:20:33]SAM_PROTO_ClearQueue [12:20:33]wFMCommunicate request_size=4 [12:20:33]MH_SAM_APDU [12:20:33]CAPDU: 80 09 00 00 [12:20:33]Write to MH i2c: E2 08 00 C1 50 80 09 00 00 00 00 00 00 83 [12:20:33]Write i2c OK [12:20:33]MH_I2C_Read... [12:20:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:20:33]Read from MH i2c: E2 [12:20:33]MH_I2C_Read... [12:20:33]Read from MH i2c: E2 03 00 [12:20:33]MH_I2C_Read... [12:20:33]Read from MH i2c: E2 03 00 C1 50 00 90 00 85 [12:20:33]RAPDU: 90 00 [12:20:33]wFMCommunicate OK [12:20:33]SAM_PROTO_ClearQueue done [12:20:33]KKMCreateOFDPacket [12:20:33]OFDProtocolAddRootSTLVToBuf [12:20:33]FM_MakeSignedData [12:20:33]FM_MakeSignedData [12:20:33]SAM_PROTO_SignData [12:20:33]wFMCommunicate request_size=4 [12:20:33]MH_SAM_APDU [12:20:33]CAPDU: 80 0D 01 02 [12:20:33]Write to MH i2c: E2 08 00 C2 50 80 0D 01 02 00 00 00 00 8B [12:20:33]Write i2c OK [12:20:33]MH_I2C_Read... [12:20:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:20:33]Read from MH i2c: E2 [12:20:33]MH_I2C_Read... [12:20:33]Read from MH i2c: E2 03 00 [12:20:33]MH_I2C_Read... [12:20:33]Read from MH i2c: E2 03 00 C2 50 00 90 00 86 [12:20:33]RAPDU: 90 00 [12:20:33]wFMCommunicate OK [12:20:33]wFMCommunicate request_size=255 [12:20:33]MH_SAM_APDU [12:20: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 15 30 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 91 63 02 00 35 04 06 00 18 [12:20:33]Write to MH i2c: E2 02 01 C3 50 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 15 30 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 91 63 02 00 35 04 06 00 18 00 00 7C [12:20:33]Write i2c OK [12:20:33]MH_I2C_Read... [12:20:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:33]Read from MH i2c: E2 [12:20:33]MH_I2C_Read... [12:20:33]Read from MH i2c: E2 03 00 [12:20:33]MH_I2C_Read... [12:20:33]Read from MH i2c: E2 03 00 C3 50 00 90 00 87 [12:20:33]RAPDU: 90 00 [12:20:33]wFMCommunicate OK [12:20:33]wFMCommunicate request_size=10 [12:20:33]MH_SAM_APDU [12:20:33]CAPDU: 80 0D 02 02 05 74 92 9F C0 04 [12:20:33]Write to MH i2c: E2 0D 00 C4 50 80 0D 02 02 05 00 74 92 9F C0 04 00 00 01 [12:20:33]Write i2c OK [12:20:33]MH_I2C_Read... [12:20:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:33]Read from MH i2c: E2 [12:20:33]MH_I2C_Read... [12:20:33]Read from MH i2c: E2 03 00 [12:20:33]MH_I2C_Read... [12:20:33]Read from MH i2c: E2 03 00 C4 50 00 90 00 88 [12:20:33]RAPDU: 90 00 [12:20:33]wFMCommunicate OK [12:20:33]wFMCommunicate request_size=4 [12:20:33]MH_SAM_APDU [12:20:33]CAPDU: 80 0D 03 02 [12:20:33]Write to MH i2c: E2 08 00 C5 50 80 0D 03 02 00 00 00 00 90 [12:20:33]Write i2c OK [12:20:33]MH_I2C_Read... [12:20:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:20:33]Read from MH i2c: E2 [12:20:33]MH_I2C_Read... [12:20:33]Read from MH i2c: E2 0B 00 [12:20:33]MH_I2C_Read... [12:20:33]Read from MH i2c: E2 0B 00 C5 50 00 B4 3F 8C 85 48 E1 A0 35 90 00 93 [12:20:33]RAPDU: B4 3F 8C 85 48 E1 A0 35 90 00 [12:20:33]wFMCommunicate OK [12:20:33]SAM_PROTO_SignData done [12:20:33]FM_MakeSignedData done [12:20:33]CreateOFDProtocolMessage [12:20:33]wFMCommunicate request_size=4 [12:20:33]MH_SAM_APDU [12:20:33]CAPDU: 80 11 00 00 [12:20:33]Write to MH i2c: E2 08 00 C6 50 80 11 00 00 00 00 00 00 90 [12:20:33]Write i2c OK [12:20:33]MH_I2C_Read... [12:20:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:33]Read from MH i2c: E2 [12:20:33]MH_I2C_Read... [12:20:33]Read from MH i2c: E2 17 00 [12:20:33]MH_I2C_Read... [12:20:33]Read from MH i2c: E2 17 00 C6 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 E5 [12:20:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:20:33]wFMCommunicate OK [12:20:33]CreateOFDProtocolMessage done [12:20:33]OFDSenderStorePacket 156561 [12:20:33]StoreOFDPacket docnum=156561 [12:20:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 E1 B6 07 01 D1 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 15 30 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 91 63 02 00 35 04 06 00 18 74 92 9F C0 04 B4 3F 8C 85 48 E1 A0 35 [12:20:33]CheckFolder [12:20:33]dirname=/storage/ofd_packets [12:20:33]CheckFolder done [12:20:33]ProducePacketName [12:20:33]name=ofd_packets/00156561 [12:20:33]NVStorageSaveData ofd_packets/00156561 [12:20:33]File name is /storage/ofd_packets/00156561 [12:20:33]Write 301 bytes [12:20:33]NVStorageSaveData done [12:20:33]OFDSenderStorePacket done [12:20:33]KKMCreateOFDPacket done [12:20:33]NVStorageSaveData kkm_last_timestamp [12:20:33]File name is /storage/kkm_last_timestamp [12:20:33]Write 4 bytes [12:20:33]NVStorageSaveData done [12:20:33]ExternCall_PrintAddStr [12:20:33]wPrintStart [12:20:33]Write to MH i2c: 01 00 00 C7 50 17 [12:20:33]Write i2c OK [12:20:33]MH_I2C_Read... [12:20:33]Read from MH i2c: 01 [12:20:33]MH_I2C_Read... [12:20:33]Read from MH i2c: 01 07 00 [12:20:33]MH_I2C_Read... [12:20:33]Read from MH i2c: 01 07 00 C7 50 00 00 00 00 00 FF 0F 2C [12:20:33]RasterBufferAndPrint [12:20:33]line Счет N : (1)99375 [12:20:33]line ИНН: 02508201610067 [12:20:33]line Контрольно-Кассовый Чек [12:20:33]line ПРОДАЖА [12:20:33]line ТРК (МРК, ГНК) : 11 [12:20:33]line Товар: 2710124130 [12:20:33]line Аи-92-К-5 [12:20:33]line 14.950 * 66.90 [12:20:33]line = 1000.16 [12:20:33]line НДС 12% НСП 1% [12:20:33]line > о реализуемом товаре [12:20:33]line ОКРУГЛЕНИЕ: -0.16 [12:20:33]line ИТОГО: 1000.00 [12:20:33]line Внесено: 1000.00 [12:20:33]line СДАЧА: 0.00 [12:20:33]line НСП 1% : 8.85 [12:20:33]line НДС 12% : 106.21 [12:20:33]line Наличными: 1000.00 [12:20:33]line Безнал.: 0.00 [12:20:33]line Место: АЗС № 143 "Партнер Нефть" [12:20:33]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [12:20:33]line СНО: Общий режим [12:20:33]line Чек 112 27.10.2024 12:20 [12:20:33]line Смена: 537 ФФД: 1.0 [12:20:33]line ЗНМ: 0300000096 [12:20:33]line РНМ: 0000000000091693 [12:20:33]line Версия ККМ: 001 [12:20:33]line ФМ: 0000000000871792 [12:20:33]line ФД: 156561 [12:20:33]line ФПД: 26888955215876 [12:20:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T122037&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156561&fm=26888955215876&tin=02508201610067®Number=0000000000091693&sum=100000 [12:20:34]OFD Sender: Processing packet 156561 [packets to send 31, broken 30] [12:20:34]ProducePacketName [12:20:34]name=ofd_packets/00156561 [12:20:34]OFD Sender: To server: pG, [12:20:34]CommunicateWithHost lk.salyk.kg:30040 [12:20:34]ConnectInit lk.salyk.kg [12:20:34]written 0, free lines is 4095 [12:20:34]Connected sock=10 [12:20:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 E1 B6 07 01 D1 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 15 30 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 91 63 02 00 35 04 06 00 18 74 92 9F C0 04 B4 3F 8C 85 48 E1 A0 35 [12:20:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 94 FA 47 00 7C C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 91 63 02 00 F4 03 04 00 85 D5 1D 67 B6 04 01 00 00 CA BF BB 57 C7 FA 1D 95 [12:20:34]CommunicateWithHost err = 0 [12:20:34]CheckOFDResponse [12:20:34]1017 (14) - 77093643461234 [12:20:34]1041 (16) - 0000000000871792 [12:20:34]1040 (4) - 156561 [12:20:34]1012 (4) - 27.10.2024 05:54 [12:20:34]1206 (1) - 0 [12:20:34]OFD Sender: Remove packet 156561 [12:20:34]ProducePacketName [12:20:34]name=ofd_packets/00156561 [12:20:34]NVStorageDeleteData [12:20:34]Write to MH i2c: 01 00 00 F2 50 42 [12:20:34]Write i2c OK [12:20:34]MH_I2C_Read... [12:20:34]Read from MH i2c: 01 [12:20:34]MH_I2C_Read... [12:20:34]Read from MH i2c: 01 07 00 [12:20:34]MH_I2C_Read... [12:20:34]Read from MH i2c: 01 07 00 F2 50 00 00 00 00 00 E8 0C 3D [12:20:34]RasterBufferAndPrint [12:20:34]line [12:20:34]line [12:20:34]line [12:20:34]line [12:20:34]line [12:20:34]written 0, free lines is 3310 [12:20:34]process_action close_receipt done [12:20:34]requested_data is exist [12:20:34]produce_requested_data [12:20:34]requested_item fm.sn is exist - process it [12:20:34]wFMCommunicate request_size=4 [12:20:34]MH_SAM_APDU [12:20:34]CAPDU: 80 11 00 00 [12:20:34]Write to MH i2c: E2 08 00 F9 50 80 11 00 00 00 00 00 00 C3 [12:20:34]Write i2c OK [12:20:34]MH_I2C_Read... [12:20:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:34]Read from MH i2c: E2 [12:20:34]MH_I2C_Read... [12:20:34]Read from MH i2c: E2 17 00 [12:20:34]MH_I2C_Read... [12:20:34]Read from MH i2c: E2 17 00 F9 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 18 [12:20:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:20:34]wFMCommunicate OK [12:20:34]requested_item fd.num is exist - process it [12:20:34]SAM_PROTO_GetFieldsCounters [12:20:34]wFMCommunicate request_size=4 [12:20:34]MH_SAM_APDU [12:20:34]CAPDU: 80 13 00 00 [12:20:34]Write to MH i2c: E2 08 00 FA 50 80 13 00 00 00 00 00 00 C6 [12:20:34]Write i2c OK [12:20:34]MH_I2C_Read... [12:20:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:20:34]Read from MH i2c: E2 [12:20:34]MH_I2C_Read... [12:20:34]Read from MH i2c: E2 62 00 [12:20:34]MH_I2C_Read... [12:20:34]Read from MH i2c: E2 62 00 FA 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 91 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 4D [12:20:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 91 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:20:34]wFMCommunicate OK [12:20:34]SAM_PROTO_GetFieldsCounters done [12:20:34]requested_item shift.num is exist - process it [12:20:34]requested_item shift.opened is exist - process it [12:20:34]req_shift_opened [12:20:34]FM_GetShiftState [12:20:34]SAM_PROTO_GetShiftState [12:20:34]wFMCommunicate request_size=4 [12:20:34]MH_SAM_APDU [12:20:34]CAPDU: 80 13 01 00 [12:20:34]Write to MH i2c: E2 08 00 FB 50 80 13 01 00 00 00 00 00 C8 [12:20:34]Write i2c OK [12:20:34]MH_I2C_Read... [12:20:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:34]Read from MH i2c: E2 [12:20:34]MH_I2C_Read... [12:20:34]Read from MH i2c: E2 0E 00 [12:20:34]MH_I2C_Read... [12:20:34]Read from MH i2c: E2 0E 00 FB 50 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 95 [12:20:34]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [12:20:34]wFMCommunicate OK [12:20:34]SAM_PROTO_GetShiftState done [12:20:34]FM_GetShiftState done [12:20:34]req_shift_opened done [12:20:34]requested_item shift.open_date is exist - process it [12:20:34]req_shift_open_date [12:20:34]req_shift_open_date done [12:20:34]produce_requested_data done [12:20:34]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156561,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [12:20:34]process_action_free close_receipt [12:20:34]json_value_free [12:20:34]json_value_free done [12:20:34]process_json_proto returns [12:20:34]Send response to host [12:20:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156561,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [12:20:34]free response buf [12:20:34]execute_script done [12:20:34]execute_script returns [12:20:34]free content buf [12:20:34]Sock 8.Close socket [12:20:34]Sock 8.Thread stoped [12:20:34]OFD Sender: No OFD packet to send [12:20:39]OFD Sender: No OFD packet to send [12:20:44]OFD Sender: No OFD packet to send [12:20:49]OFD Sender: No OFD packet to send [12:20:54]OFD Sender: No OFD packet to send [12:20:59]OFD Sender: No OFD packet to send [12:21:04]OFD Sender: No OFD packet to send [12:21:09]OFD Sender: No OFD packet to send [12:21:14]accept exits with 9 [12:21:14]New connection [12:21:14]New thread 3066834276 created [12:21:14]Thread 3066977636 joined [12:21:14]Waiting for new connection... [12:21:14] Sock 9.Parse request [12:21:14]Sock 9.Check first char [12:21:14]Sock 9.First char is OK [12:21:14]request: POST /json_proto HTTP/1.0 [12:21:14]Method: POST [12:21:14]URL: /json_proto [12:21:14]Method is POST - this is cgi request [12:21:14]url: /json_proto [12:21:14]query_string will be loaded in cgi processing [12:21:14]execute_cgi json_proto POST (null) [12:21:14]execute_cgi path=json_proto method=POST [12:21:14]POST find Content-Length [12:21:14]Host: 172.17.63.3:8080 [12:21:14]Content-Length: 681 [12:21:14]Content-Type: application/json [12:21:14] [12:21:14]POST finish read [12:21:14]Found Content-Length = 681 [12:21:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99376", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:21:14]execute_script... [12:21: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)99376", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:21:14]POST & json_proto [12:21:14]process_json_proto [12:21:14]json parsed OK: [12:21:14]protocol is kg_v1.0 [12:21:14]action value=close_receipt [12:21:14]process_action close_receipt [12:21:14]cmd_close_receipt [12:21:14]MH_GetDate [12:21:14]Write to MH i2c: F0 00 00 FC 50 3B [12:21:14]Write i2c OK [12:21:14]MH_I2C_Read... [12:21:14]Read from MH i2c: F0 [12:21:14]MH_I2C_Read... [12:21:14]Read from MH i2c: F0 09 00 [12:21:14]MH_I2C_Read... [12:21:14]Read from MH i2c: F0 09 00 FC 50 00 3F 30 1E 67 50 D1 6C 64 29 [12:21:14]GetLastDocTimeStamp 1730031637 [12:21:14]current date 1730031679 [12:21:14]FM_GetShiftState [12:21:14]SAM_PROTO_GetShiftState [12:21:14]wFMCommunicate request_size=4 [12:21:14]MH_SAM_APDU [12:21:14]CAPDU: 80 13 01 00 [12:21:14]Write to MH i2c: E2 08 00 FD 50 80 13 01 00 00 00 00 00 CA [12:21:14]Write i2c OK [12:21:14]MH_I2C_Read... [12:21:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:21:14]Read from MH i2c: E2 [12:21:14]MH_I2C_Read... [12:21:14]Read from MH i2c: E2 0E 00 [12:21:14]MH_I2C_Read... [12:21:14]Read from MH i2c: E2 0E 00 FD 50 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 97 [12:21:14]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [12:21:14]wFMCommunicate OK [12:21:14]SAM_PROTO_GetShiftState done [12:21:14]FM_GetShiftState done [12:21:14]opened in 1729989044 [12:21:14]opened+sec_in_day 1730075444 [12:21:14]quantity*price = 100015 [12:21:14]sum+1 = 100017 [12:21:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 113 27.10.2024 12:21 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156562 ФПД: 175761661440701 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T122119&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156562&fm=175761661440701&tin=02508201610067®Number=0000000000091693&sum=100000 [12:21:15]StoreToDocumentArchive [12:21:15]shift 537 fd 156562 [12:21:15]save to /storage/0537/doc_00156562 [12:21:15]save last doc name /storage/0537/doc_00156562 to /storage/kkm_last_doc_name [12:21:15]save OK [12:21:15]Clear old archive folders... [12:21:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:21:15]tlvbuf is 016E42F0 [12:21:15]SAM_PROTO_ClearQueue [12:21:15]wFMCommunicate request_size=4 [12:21:15]MH_SAM_APDU [12:21:15]CAPDU: 80 09 00 00 [12:21:15]Write to MH i2c: E2 08 00 0A 51 80 09 00 00 00 00 00 00 CD [12:21:15]Write i2c OK [12:21:15]MH_I2C_Read... [12:21:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:21:15]Read from MH i2c: E2 [12:21:15]MH_I2C_Read... [12:21:15]Read from MH i2c: E2 03 00 [12:21:15]MH_I2C_Read... [12:21:15]Read from MH i2c: E2 03 00 0A 51 00 90 00 CF [12:21:15]RAPDU: 90 00 [12:21:15]wFMCommunicate OK [12:21:15]SAM_PROTO_ClearQueue done [12:21:15]KKMCreateOFDPacket [12:21:15]OFDProtocolAddRootSTLVToBuf [12:21:15]FM_MakeSignedData [12:21:15]FM_MakeSignedData [12:21:15]SAM_PROTO_SignData [12:21:15]wFMCommunicate request_size=4 [12:21:15]MH_SAM_APDU [12:21:15]CAPDU: 80 0D 01 02 [12:21:15]Write to MH i2c: E2 08 00 0B 51 80 0D 01 02 00 00 00 00 D5 [12:21:15]Write i2c OK [12:21:15]MH_I2C_Read... [12:21:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:21:15]Read from MH i2c: E2 [12:21:15]MH_I2C_Read... [12:21:15]Read from MH i2c: E2 03 00 [12:21:15]MH_I2C_Read... [12:21:15]Read from MH i2c: E2 03 00 0B 51 00 90 00 D0 [12:21:15]RAPDU: 90 00 [12:21:15]wFMCommunicate OK [12:21:15]wFMCommunicate request_size=255 [12:21:15]MH_SAM_APDU [12:21: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 3F 30 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 92 63 02 00 35 04 06 00 9F [12:21:15]Write to MH i2c: E2 02 01 0C 51 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 3F 30 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 92 63 02 00 35 04 06 00 9F 00 00 79 [12:21:15]Write i2c OK [12:21:15]MH_I2C_Read... [12:21:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:21:15]Read from MH i2c: E2 [12:21:15]MH_I2C_Read... [12:21:15]Read from MH i2c: E2 03 00 [12:21:15]MH_I2C_Read... [12:21:15]Read from MH i2c: E2 03 00 0C 51 00 90 00 D1 [12:21:15]RAPDU: 90 00 [12:21:15]wFMCommunicate OK [12:21:15]wFMCommunicate request_size=10 [12:21:15]MH_SAM_APDU [12:21:15]CAPDU: 80 0D 02 02 05 DA B3 65 32 BD [12:21:15]Write to MH i2c: E2 0D 00 0D 51 80 0D 02 02 05 00 DA B3 65 32 BD 00 00 C3 [12:21:15]Write i2c OK [12:21:15]MH_I2C_Read... [12:21:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:21:15]Read from MH i2c: E2 [12:21:15]MH_I2C_Read... [12:21:15]Read from MH i2c: E2 03 00 [12:21:15]MH_I2C_Read... [12:21:15]Read from MH i2c: E2 03 00 0D 51 00 90 00 D2 [12:21:15]RAPDU: 90 00 [12:21:15]wFMCommunicate OK [12:21:15]wFMCommunicate request_size=4 [12:21:15]MH_SAM_APDU [12:21:15]CAPDU: 80 0D 03 02 [12:21:15]Write to MH i2c: E2 08 00 0E 51 80 0D 03 02 00 00 00 00 DA [12:21:15]Write i2c OK [12:21:15]MH_I2C_Read... [12:21:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:21:15]Read from MH i2c: E2 [12:21:15]MH_I2C_Read... [12:21:15]Read from MH i2c: E2 0B 00 [12:21:15]MH_I2C_Read... [12:21:15]Read from MH i2c: E2 0B 00 0E 51 00 02 55 9D D3 BF 9C A5 F4 90 00 96 [12:21:15]RAPDU: 02 55 9D D3 BF 9C A5 F4 90 00 [12:21:15]wFMCommunicate OK [12:21:15]SAM_PROTO_SignData done [12:21:15]FM_MakeSignedData done [12:21:15]CreateOFDProtocolMessage [12:21:15]wFMCommunicate request_size=4 [12:21:15]MH_SAM_APDU [12:21:15]CAPDU: 80 11 00 00 [12:21:15]Write to MH i2c: E2 08 00 0F 51 80 11 00 00 00 00 00 00 DA [12:21:15]Write i2c OK [12:21:15]MH_I2C_Read... [12:21:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:21:15]Read from MH i2c: E2 [12:21:15]MH_I2C_Read... [12:21:15]Read from MH i2c: E2 17 00 [12:21:15]MH_I2C_Read... [12:21:15]Read from MH i2c: E2 17 00 0F 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 2F [12:21:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:21:15]wFMCommunicate OK [12:21:15]CreateOFDProtocolMessage done [12:21:15]OFDSenderStorePacket 156562 [12:21:15]StoreOFDPacket docnum=156562 [12:21:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 43 87 07 01 19 B1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 3F 30 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 92 63 02 00 35 04 06 00 9F DA B3 65 32 BD 02 55 9D D3 BF 9C A5 F4 [12:21:15]CheckFolder [12:21:15]dirname=/storage/ofd_packets [12:21:15]CheckFolder done [12:21:15]ProducePacketName [12:21:15]name=ofd_packets/00156562 [12:21:15]NVStorageSaveData ofd_packets/00156562 [12:21:15]File name is /storage/ofd_packets/00156562 [12:21:15]Write 301 bytes [12:21:15]NVStorageSaveData done [12:21:15]OFDSenderStorePacket done [12:21:15]KKMCreateOFDPacket done [12:21:15]NVStorageSaveData kkm_last_timestamp [12:21:15]File name is /storage/kkm_last_timestamp [12:21:15]Write 4 bytes [12:21:15]NVStorageSaveData done [12:21:15]ExternCall_PrintAddStr [12:21:15]wPrintStart [12:21:15]Write to MH i2c: 01 00 00 10 51 61 [12:21:15]Write i2c OK [12:21:15]MH_I2C_Read... [12:21:15]Read from MH i2c: 01 [12:21:15]MH_I2C_Read... [12:21:15]Read from MH i2c: 01 07 00 [12:21:15]MH_I2C_Read... [12:21:15]Read from MH i2c: 01 07 00 10 51 00 00 00 00 00 FF 0F 76 [12:21:15]RasterBufferAndPrint [12:21:15]line Счет N : (1)99376 [12:21:15]line ИНН: 02508201610067 [12:21:15]line Контрольно-Кассовый Чек [12:21:15]line ПРОДАЖА [12:21:15]line ТРК (МРК, ГНК) : 21 [12:21:15]line Товар: 2710124130 [12:21:15]line Аи-92-К-5 [12:21:15]line 14.950 * 66.90 [12:21:15]line = 1000.16 [12:21:15]line НДС 12% НСП 1% [12:21:15]line > о реализуемом товаре [12:21:15]line ОКРУГЛЕНИЕ: -0.16 [12:21:15]line ИТОГО: 1000.00 [12:21:15]line Внесено: 1000.00 [12:21:15]line СДАЧА: 0.00 [12:21:15]line НСП 1% : 8.85 [12:21:15]line НДС 12% : 106.21 [12:21:15]line Наличными: 1000.00 [12:21:15]line Безнал.: 0.00 [12:21:15]line Место: АЗС № 143 "Партнер Нефть" [12:21:15]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [12:21:15]line СНО: Общий режим [12:21:15]line Чек 113 27.10.2024 12:21 [12:21:15]line Смена: 537 ФФД: 1.0 [12:21:15]line ЗНМ: 0300000096 [12:21:15]line РНМ: 0000000000091693 [12:21:15]line Версия ККМ: 001 [12:21:15]line ФМ: 0000000000871792 [12:21:15]line ФД: 156562 [12:21:15]line ФПД: 175761661440701 [12:21:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T122119&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156562&fm=175761661440701&tin=02508201610067®Number=0000000000091693&sum=100000 [12:21:16]OFD Sender: Processing packet 156562 [packets to send 31, broken 30] [12:21:16]ProducePacketName [12:21:16]name=ofd_packets/00156562 [12:21:16]OFD Sender: To server: pG, [12:21:16]CommunicateWithHost lk.salyk.kg:30040 [12:21:16]ConnectInit lk.salyk.kg [12:21:16]written 0, free lines is 4095 [12:21:16]Connected sock=10 [12:21:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 43 87 07 01 19 B1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 3F 30 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 92 63 02 00 35 04 06 00 9F DA B3 65 32 BD 02 55 9D D3 BF 9C A5 F4 [12:21:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 9E F5 47 00 69 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 92 63 02 00 F4 03 04 00 AF D5 1D 67 B6 04 01 00 00 D6 6C C0 8C 38 C6 D9 3B [12:21:16]CommunicateWithHost err = 0 [12:21:16]CheckOFDResponse [12:21:16]1017 (14) - 77093643461234 [12:21:16]1041 (16) - 0000000000871792 [12:21:16]1040 (4) - 156562 [12:21:16]1012 (4) - 27.10.2024 05:54 [12:21:16]1206 (1) - 0 [12:21:16]OFD Sender: Remove packet 156562 [12:21:16]ProducePacketName [12:21:16]name=ofd_packets/00156562 [12:21:16]NVStorageDeleteData [12:21:16]Write to MH i2c: 01 00 00 3B 51 8C [12:21:16]Write i2c OK [12:21:16]MH_I2C_Read... [12:21:16]Read from MH i2c: 01 [12:21:16]MH_I2C_Read... [12:21:16]Read from MH i2c: 01 07 00 [12:21:16]MH_I2C_Read... [12:21:16]Read from MH i2c: 01 07 00 3B 51 00 00 00 00 00 EF 0C 8E [12:21:16]RasterBufferAndPrint [12:21:16]line [12:21:16]line [12:21:16]line [12:21:16]line [12:21:16]line [12:21:16]written 0, free lines is 3317 [12:21:16]process_action close_receipt done [12:21:16]requested_data is exist [12:21:16]produce_requested_data [12:21:16]requested_item fm.sn is exist - process it [12:21:16]wFMCommunicate request_size=4 [12:21:16]MH_SAM_APDU [12:21:16]CAPDU: 80 11 00 00 [12:21:16]Write to MH i2c: E2 08 00 42 51 80 11 00 00 00 00 00 00 0D [12:21:16]Write i2c OK [12:21:16]MH_I2C_Read... [12:21:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:21:16]Read from MH i2c: E2 [12:21:16]MH_I2C_Read... [12:21:16]Read from MH i2c: E2 17 00 [12:21:16]MH_I2C_Read... [12:21:16]Read from MH i2c: E2 17 00 42 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 62 [12:21:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:21:16]wFMCommunicate OK [12:21:16]requested_item fd.num is exist - process it [12:21:16]SAM_PROTO_GetFieldsCounters [12:21:16]wFMCommunicate request_size=4 [12:21:16]MH_SAM_APDU [12:21:16]CAPDU: 80 13 00 00 [12:21:16]Write to MH i2c: E2 08 00 43 51 80 13 00 00 00 00 00 00 10 [12:21:16]Write i2c OK [12:21:16]MH_I2C_Read... [12:21:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:21:16]Read from MH i2c: E2 [12:21:16]MH_I2C_Read... [12:21:16]Read from MH i2c: E2 62 00 [12:21:16]MH_I2C_Read... [12:21:16]Read from MH i2c: E2 62 00 43 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 92 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 9B [12:21:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 92 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:21:16]wFMCommunicate OK [12:21:16]SAM_PROTO_GetFieldsCounters done [12:21:16]requested_item shift.num is exist - process it [12:21:16]requested_item shift.opened is exist - process it [12:21:16]req_shift_opened [12:21:16]FM_GetShiftState [12:21:16]SAM_PROTO_GetShiftState [12:21:16]wFMCommunicate request_size=4 [12:21:16]MH_SAM_APDU [12:21:16]CAPDU: 80 13 01 00 [12:21:16]Write to MH i2c: E2 08 00 44 51 80 13 01 00 00 00 00 00 12 [12:21:16]Write i2c OK [12:21:16]MH_I2C_Read... [12:21:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:21:16]Read from MH i2c: E2 [12:21:16]MH_I2C_Read... [12:21:16]Read from MH i2c: E2 0E 00 [12:21:16]MH_I2C_Read... [12:21:16]Read from MH i2c: E2 0E 00 44 51 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 DF [12:21:16]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [12:21:16]wFMCommunicate OK [12:21:16]SAM_PROTO_GetShiftState done [12:21:16]FM_GetShiftState done [12:21:16]req_shift_opened done [12:21:16]requested_item shift.open_date is exist - process it [12:21:16]req_shift_open_date [12:21:16]req_shift_open_date done [12:21:16]produce_requested_data done [12:21:16]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156562,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [12:21:16]process_action_free close_receipt [12:21:16]json_value_free [12:21:16]json_value_free done [12:21:16]process_json_proto returns [12:21:16]Send response to host [12:21:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156562,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [12:21:16]free response buf [12:21:16]execute_script done [12:21:16]execute_script returns [12:21:16]free content buf [12:21:16]Sock 9.Close socket [12:21:16]Sock 9.Thread stoped [12:21:17]OFD Sender: No OFD packet to send [12:21:22]OFD Sender: No OFD packet to send [12:21:27]OFD Sender: No OFD packet to send [12:21:32]OFD Sender: No OFD packet to send [12:21:37]OFD Sender: No OFD packet to send [12:21:42]OFD Sender: No OFD packet to send [12:21:47]OFD Sender: No OFD packet to send [12:21:52]OFD Sender: No OFD packet to send [12:21:57]OFD Sender: No OFD packet to send [12:22:02]OFD Sender: No OFD packet to send [12:22:07]OFD Sender: No OFD packet to send [12:22:12]OFD Sender: No OFD packet to send [12:22:17]OFD Sender: No OFD packet to send [12:22:22]OFD Sender: No OFD packet to send [12:22:27]OFD Sender: No OFD packet to send [12:22:30]accept exits with 8 [12:22:30]New connection [12:22:30]New thread 3066977636 created [12:22:30]Thread 3066834276 joined [12:22:30]Waiting for new connection... [12:22:30] Sock 8.Parse request [12:22:30]Sock 8.Check first char [12:22:30]Sock 8.First char is OK [12:22:30]request: POST /json_proto HTTP/1.0 [12:22:30]Method: POST [12:22:30]URL: /json_proto [12:22:30]Method is POST - this is cgi request [12:22:30]url: /json_proto [12:22:30]query_string will be loaded in cgi processing [12:22:30]execute_cgi json_proto POST (null) [12:22:30]execute_cgi path=json_proto method=POST [12:22:30]POST find Content-Length [12:22:30]Host: 172.17.63.3:8080 [12:22:30]Content-Length: 676 [12:22:30]Content-Type: application/json [12:22:30] [12:22:30]POST finish read [12:22:30]Found Content-Length = 676 [12:22:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99377", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.250, "sum" : 150.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:22:30]execute_script... [12:22: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)99377", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.250, "sum" : 150.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:22:30]POST & json_proto [12:22:30]process_json_proto [12:22:30]json parsed OK: [12:22:30]protocol is kg_v1.0 [12:22:30]action value=close_receipt [12:22:30]process_action close_receipt [12:22:30]cmd_close_receipt [12:22:30]MH_GetDate [12:22:30]Write to MH i2c: F0 00 00 45 51 85 [12:22:30]Write i2c OK [12:22:30]MH_I2C_Read... [12:22:30]Read from MH i2c: F0 [12:22:30]MH_I2C_Read... [12:22:30]Read from MH i2c: F0 09 00 [12:22:30]MH_I2C_Read... [12:22:30]Read from MH i2c: F0 09 00 45 51 00 8B 30 1E 67 50 D1 6C 64 BF [12:22:30]GetLastDocTimeStamp 1730031679 [12:22:30]current date 1730031755 [12:22:30]FM_GetShiftState [12:22:30]SAM_PROTO_GetShiftState [12:22:30]wFMCommunicate request_size=4 [12:22:30]MH_SAM_APDU [12:22:30]CAPDU: 80 13 01 00 [12:22:30]Write to MH i2c: E2 08 00 46 51 80 13 01 00 00 00 00 00 14 [12:22:30]Write i2c OK [12:22:30]MH_I2C_Read... [12:22:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:22:30]Read from MH i2c: E2 [12:22:30]MH_I2C_Read... [12:22:30]Read from MH i2c: E2 0E 00 [12:22:30]MH_I2C_Read... [12:22:30]Read from MH i2c: E2 0E 00 46 51 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 E1 [12:22:30]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [12:22:30]wFMCommunicate OK [12:22:30]SAM_PROTO_GetShiftState done [12:22:30]FM_GetShiftState done [12:22:30]opened in 1729989044 [12:22:30]opened+sec_in_day 1730075444 [12:22:30]quantity*price = 15052 [12:22:30]sum+1 = 15054 [12:22:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 150.00 Внесено: 150.00 СДАЧА: 0.00 НСП 1% : 1.33 НДС 12% : 15.98 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 114 27.10.2024 12:22 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156563 ФПД: 8726988101435 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T122236&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156563&fm=8726988101435&tin=02508201610067®Number=0000000000091693&sum=15000 [12:22:31]StoreToDocumentArchive [12:22:31]shift 537 fd 156563 [12:22:31]save to /storage/0537/doc_00156563 [12:22:31]save last doc name /storage/0537/doc_00156563 to /storage/kkm_last_doc_name [12:22:31]save OK [12:22:31]Clear old archive folders... [12:22:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:22:31]tlvbuf is B6F5E7B0 [12:22:31]SAM_PROTO_ClearQueue [12:22:31]wFMCommunicate request_size=4 [12:22:31]MH_SAM_APDU [12:22:31]CAPDU: 80 09 00 00 [12:22:31]Write to MH i2c: E2 08 00 53 51 80 09 00 00 00 00 00 00 16 [12:22:31]Write i2c OK [12:22:31]MH_I2C_Read... [12:22:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:22:31]Read from MH i2c: E2 [12:22:31]MH_I2C_Read... [12:22:31]Read from MH i2c: E2 03 00 [12:22:31]MH_I2C_Read... [12:22:31]Read from MH i2c: E2 03 00 53 51 00 90 00 18 [12:22:31]RAPDU: 90 00 [12:22:31]wFMCommunicate OK [12:22:31]SAM_PROTO_ClearQueue done [12:22:31]KKMCreateOFDPacket [12:22:31]OFDProtocolAddRootSTLVToBuf [12:22:31]FM_MakeSignedData [12:22:31]FM_MakeSignedData [12:22:31]SAM_PROTO_SignData [12:22:31]wFMCommunicate request_size=4 [12:22:31]MH_SAM_APDU [12:22:31]CAPDU: 80 0D 01 02 [12:22:31]Write to MH i2c: E2 08 00 54 51 80 0D 01 02 00 00 00 00 1E [12:22:31]Write i2c OK [12:22:31]MH_I2C_Read... [12:22:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:22:31]Read from MH i2c: E2 [12:22:31]MH_I2C_Read... [12:22:31]Read from MH i2c: E2 03 00 [12:22:31]MH_I2C_Read... [12:22:31]Read from MH i2c: E2 03 00 54 51 00 90 00 19 [12:22:31]RAPDU: 90 00 [12:22:31]wFMCommunicate OK [12:22:31]wFMCommunicate request_size=255 [12:22:31]MH_SAM_APDU [12:22: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 8C 30 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 93 63 02 00 35 04 06 00 07 [12:22:31]Write to MH i2c: E2 02 01 55 51 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 8C 30 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 93 63 02 00 35 04 06 00 07 00 00 7C [12:22:31]Write i2c OK [12:22:31]MH_I2C_Read... [12:22:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:22:31]Read from MH i2c: E2 [12:22:31]MH_I2C_Read... [12:22:31]Read from MH i2c: E2 03 00 [12:22:31]MH_I2C_Read... [12:22:31]Read from MH i2c: E2 03 00 55 51 00 90 00 1A [12:22:31]RAPDU: 90 00 [12:22:31]wFMCommunicate OK [12:22:31]wFMCommunicate request_size=10 [12:22:31]MH_SAM_APDU [12:22:31]CAPDU: 80 0D 02 02 05 EF E9 06 97 3B [12:22:31]Write to MH i2c: E2 0D 00 56 51 80 0D 02 02 05 00 EF E9 06 97 3B 00 00 DB [12:22:31]Write i2c OK [12:22:31]MH_I2C_Read... [12:22:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:22:31]Read from MH i2c: E2 [12:22:31]MH_I2C_Read... [12:22:31]Read from MH i2c: E2 03 00 [12:22:31]MH_I2C_Read... [12:22:31]Read from MH i2c: E2 03 00 56 51 00 90 00 1B [12:22:31]RAPDU: 90 00 [12:22:31]wFMCommunicate OK [12:22:31]wFMCommunicate request_size=4 [12:22:31]MH_SAM_APDU [12:22:31]CAPDU: 80 0D 03 02 [12:22:31]Write to MH i2c: E2 08 00 57 51 80 0D 03 02 00 00 00 00 23 [12:22:31]Write i2c OK [12:22:31]MH_I2C_Read... [12:22:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:22:31]Read from MH i2c: E2 [12:22:31]MH_I2C_Read... [12:22:31]Read from MH i2c: E2 0B 00 [12:22:31]MH_I2C_Read... [12:22:31]Read from MH i2c: E2 0B 00 57 51 00 12 F3 49 78 27 C6 25 4D 90 00 49 [12:22:31]RAPDU: 12 F3 49 78 27 C6 25 4D 90 00 [12:22:31]wFMCommunicate OK [12:22:31]SAM_PROTO_SignData done [12:22:31]FM_MakeSignedData done [12:22:31]CreateOFDProtocolMessage [12:22:31]wFMCommunicate request_size=4 [12:22:31]MH_SAM_APDU [12:22:31]CAPDU: 80 11 00 00 [12:22:31]Write to MH i2c: E2 08 00 58 51 80 11 00 00 00 00 00 00 23 [12:22:31]Write i2c OK [12:22:31]MH_I2C_Read... [12:22:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:22:32]Read from MH i2c: E2 [12:22:32]MH_I2C_Read... [12:22:32]Read from MH i2c: E2 17 00 [12:22:32]MH_I2C_Read... [12:22:32]Read from MH i2c: E2 17 00 58 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 78 [12:22:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:22:32]wFMCommunicate OK [12:22:32]CreateOFDProtocolMessage done [12:22:32]OFDSenderStorePacket 156563 [12:22:32]StoreOFDPacket docnum=156563 [12:22:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 B0 59 07 01 D7 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 8C 30 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 93 63 02 00 35 04 06 00 07 EF E9 06 97 3B 12 F3 49 78 27 C6 25 4D [12:22:32]CheckFolder [12:22:32]dirname=/storage/ofd_packets [12:22:32]CheckFolder done [12:22:32]ProducePacketName [12:22:32]name=ofd_packets/00156563 [12:22:32]NVStorageSaveData ofd_packets/00156563 [12:22:32]File name is /storage/ofd_packets/00156563 [12:22:32]Write 301 bytes [12:22:32]NVStorageSaveData done [12:22:32]OFDSenderStorePacket done [12:22:32]KKMCreateOFDPacket done [12:22:32]NVStorageSaveData kkm_last_timestamp [12:22:32]File name is /storage/kkm_last_timestamp [12:22:32]Write 4 bytes [12:22:32]NVStorageSaveData done [12:22:32]ExternCall_PrintAddStr [12:22:32]wPrintStart [12:22:32]Write to MH i2c: 01 00 00 59 51 AA [12:22:32]Write i2c OK [12:22:32]MH_I2C_Read... [12:22:32]Read from MH i2c: 01 [12:22:32]MH_I2C_Read... [12:22:32]Read from MH i2c: 01 07 00 [12:22:32]MH_I2C_Read... [12:22:32]Read from MH i2c: 01 07 00 59 51 00 00 00 00 00 FF 0F BF [12:22:32]RasterBufferAndPrint [12:22:32]line Счет N : (1)99377 [12:22:32]line ИНН: 02508201610067 [12:22:32]line Контрольно-Кассовый Чек [12:22:32]line ПРОДАЖА [12:22:32]line ТРК (МРК, ГНК) : 31 [12:22:32]line Товар: 2710124130 [12:22:32]line Аи-92-К-5 [12:22:32]line 2.250 * 66.90 [12:22:32]line = 150.53 [12:22:32]line НДС 12% НСП 1% [12:22:32]line > о реализуемом товаре [12:22:32]line ОКРУГЛЕНИЕ: -0.53 [12:22:32]line ИТОГО: 150.00 [12:22:32]line Внесено: 150.00 [12:22:32]line СДАЧА: 0.00 [12:22:32]line НСП 1% : 1.33 [12:22:32]line НДС 12% : 15.98 [12:22:32]line Наличными: 150.00 [12:22:32]line Безнал.: 0.00 [12:22:32]line Место: АЗС № 143 "Партнер Нефть" [12:22:32]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [12:22:32]line СНО: Общий режим [12:22:32]line Чек 114 27.10.2024 12:22 [12:22:32]line Смена: 537 ФФД: 1.0 [12:22:32]line ЗНМ: 0300000096 [12:22:32]line РНМ: 0000000000091693 [12:22:32]line Версия ККМ: 001 [12:22:32]line ФМ: 0000000000871792 [12:22:32]line ФД: 156563 [12:22:32]line ФПД: 8726988101435 [12:22:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T122236&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156563&fm=8726988101435&tin=02508201610067®Number=0000000000091693&sum=15000 [12:22:32]written 0, free lines is 4095 [12:22:32]OFD Sender: Processing packet 156563 [packets to send 31, broken 30] [12:22:32]ProducePacketName [12:22:32]name=ofd_packets/00156563 [12:22:32]OFD Sender: To server: pG, [12:22:32]CommunicateWithHost lk.salyk.kg:30040 [12:22:32]ConnectInit lk.salyk.kg [12:22:32]Connected sock=10 [12:22:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 B0 59 07 01 D7 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 8C 30 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 93 63 02 00 35 04 06 00 07 EF E9 06 97 3B 12 F3 49 78 27 C6 25 4D [12:22:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 CD 82 47 00 0C 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 93 63 02 00 F4 03 04 00 FB D5 1D 67 B6 04 01 00 00 6D 6A 12 1F 2C 77 04 58 [12:22:32]CommunicateWithHost err = 0 [12:22:32]CheckOFDResponse [12:22:32]1017 (14) - 77093643461234 [12:22:32]1041 (16) - 0000000000871792 [12:22:32]1040 (4) - 156563 [12:22:32]1012 (4) - 27.10.2024 05:56 [12:22:32]1206 (1) - 0 [12:22:32]OFD Sender: Remove packet 156563 [12:22:32]ProducePacketName [12:22:32]name=ofd_packets/00156563 [12:22:32]NVStorageDeleteData [12:22:32]Write to MH i2c: 01 00 00 84 51 D5 [12:22:32]Write i2c OK [12:22:32]MH_I2C_Read... [12:22:32]Read from MH i2c: 01 [12:22:32]MH_I2C_Read... [12:22:32]Read from MH i2c: 01 07 00 [12:22:32]MH_I2C_Read... [12:22:32]Read from MH i2c: 01 07 00 84 51 00 00 00 00 00 E4 0C CC [12:22:32]RasterBufferAndPrint [12:22:32]line [12:22:32]line [12:22:32]line [12:22:32]line [12:22:32]line [12:22:32]written 0, free lines is 3306 [12:22:32]process_action close_receipt done [12:22:32]requested_data is exist [12:22:32]produce_requested_data [12:22:32]requested_item fm.sn is exist - process it [12:22:32]wFMCommunicate request_size=4 [12:22:32]MH_SAM_APDU [12:22:32]CAPDU: 80 11 00 00 [12:22:32]Write to MH i2c: E2 08 00 8B 51 80 11 00 00 00 00 00 00 56 [12:22:32]Write i2c OK [12:22:32]MH_I2C_Read... [12:22:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:22:32]Read from MH i2c: E2 [12:22:32]MH_I2C_Read... [12:22:32]Read from MH i2c: E2 17 00 [12:22:32]MH_I2C_Read... [12:22:32]Read from MH i2c: E2 17 00 8B 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 AB [12:22:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:22:32]wFMCommunicate OK [12:22:32]requested_item fd.num is exist - process it [12:22:32]SAM_PROTO_GetFieldsCounters [12:22:32]wFMCommunicate request_size=4 [12:22:32]MH_SAM_APDU [12:22:32]CAPDU: 80 13 00 00 [12:22:32]Write to MH i2c: E2 08 00 8C 51 80 13 00 00 00 00 00 00 59 [12:22:32]Write i2c OK [12:22:32]MH_I2C_Read... [12:22:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:22:32]Read from MH i2c: E2 [12:22:32]MH_I2C_Read... [12:22:32]Read from MH i2c: E2 62 00 [12:22:32]MH_I2C_Read... [12:22:32]Read from MH i2c: E2 62 00 8C 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 93 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 E8 [12:22:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 93 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:22:32]wFMCommunicate OK [12:22:32]SAM_PROTO_GetFieldsCounters done [12:22:32]requested_item shift.num is exist - process it [12:22:32]requested_item shift.opened is exist - process it [12:22:32]req_shift_opened [12:22:32]FM_GetShiftState [12:22:32]SAM_PROTO_GetShiftState [12:22:32]wFMCommunicate request_size=4 [12:22:32]MH_SAM_APDU [12:22:32]CAPDU: 80 13 01 00 [12:22:32]Write to MH i2c: E2 08 00 8D 51 80 13 01 00 00 00 00 00 5B [12:22:32]Write i2c OK [12:22:32]MH_I2C_Read... [12:22:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:22:32]Read from MH i2c: E2 [12:22:32]MH_I2C_Read... [12:22:32]Read from MH i2c: E2 0E 00 [12:22:32]MH_I2C_Read... [12:22:32]Read from MH i2c: E2 0E 00 8D 51 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 28 [12:22:32]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [12:22:32]wFMCommunicate OK [12:22:32]SAM_PROTO_GetShiftState done [12:22:32]FM_GetShiftState done [12:22:32]req_shift_opened done [12:22:32]requested_item shift.open_date is exist - process it [12:22:32]req_shift_open_date [12:22:32]req_shift_open_date done [12:22:32]produce_requested_data done [12:22:32]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156563,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [12:22:32]process_action_free close_receipt [12:22:32]json_value_free [12:22:32]json_value_free done [12:22:32]process_json_proto returns [12:22:32]Send response to host [12:22:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156563,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [12:22:32]free response buf [12:22:32]execute_script done [12:22:32]execute_script returns [12:22:32]free content buf [12:22:32]Sock 8.Close socket [12:22:32]Sock 8.Thread stoped [12:22:32]OFD Sender: No OFD packet to send [12:22:37]OFD Sender: No OFD packet to send [12:22:42]OFD Sender: No OFD packet to send [12:22:47]OFD Sender: No OFD packet to send [12:22:52]OFD Sender: No OFD packet to send [12:22:57]OFD Sender: No OFD packet to send [12:23:02]OFD Sender: No OFD packet to send [12:23:07]OFD Sender: No OFD packet to send [12:23:11]accept exits with 9 [12:23:11]New connection [12:23:11]New thread 3066834276 created [12:23:11]Thread 3066977636 joined [12:23:11]Waiting for new connection... [12:23:11] Sock 9.Parse request [12:23:11]Sock 9.Check first char [12:23:11]Sock 9.First char is OK [12:23:11]request: POST /json_proto HTTP/1.0 [12:23:11]Method: POST [12:23:11]URL: /json_proto [12:23:11]Method is POST - this is cgi request [12:23:11]url: /json_proto [12:23:11]query_string will be loaded in cgi processing [12:23:11]execute_cgi json_proto POST (null) [12:23:11]execute_cgi path=json_proto method=POST [12:23:11]POST find Content-Length [12:23:11]Host: 172.17.63.3:8080 [12:23:11]Content-Length: 674 [12:23:11]Content-Type: application/json [12:23:11] [12:23:11]POST finish read [12:23:11]Found Content-Length = 674 [12:23:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99378", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 11.160, "sum" : 850.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 850.00, "total" : 850.00, "payments": [ { "type": 0, "sum" : 850.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:23:11]execute_script... [12:23: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)99378", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 11.160, "sum" : 850.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 850.00, "total" : 850.00, "payments": [ { "type": 0, "sum" : 850.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:23:11]POST & json_proto [12:23:11]process_json_proto [12:23:11]json parsed OK: [12:23:11]protocol is kg_v1.0 [12:23:11]action value=close_receipt [12:23:11]process_action close_receipt [12:23:11]cmd_close_receipt [12:23:11]MH_GetDate [12:23:11]Write to MH i2c: F0 00 00 8E 51 CE [12:23:11]Write i2c OK [12:23:11]MH_I2C_Read... [12:23:11]Read from MH i2c: F0 [12:23:11]MH_I2C_Read... [12:23:11]Read from MH i2c: F0 09 00 [12:23:11]MH_I2C_Read... [12:23:11]Read from MH i2c: F0 09 00 8E 51 00 B5 30 1E 67 50 D1 6C 64 32 [12:23:11]GetLastDocTimeStamp 1730031756 [12:23:11]current date 1730031797 [12:23:11]FM_GetShiftState [12:23:11]SAM_PROTO_GetShiftState [12:23:11]wFMCommunicate request_size=4 [12:23:11]MH_SAM_APDU [12:23:11]CAPDU: 80 13 01 00 [12:23:11]Write to MH i2c: E2 08 00 8F 51 80 13 01 00 00 00 00 00 5D [12:23:11]Write i2c OK [12:23:11]MH_I2C_Read... [12:23:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:23:11]Read from MH i2c: E2 [12:23:11]MH_I2C_Read... [12:23:11]Read from MH i2c: E2 0E 00 [12:23:11]MH_I2C_Read... [12:23:11]Read from MH i2c: E2 0E 00 8F 51 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 2A [12:23:11]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [12:23:11]wFMCommunicate OK [12:23:11]SAM_PROTO_GetShiftState done [12:23:11]FM_GetShiftState done [12:23:11]opened in 1729989044 [12:23:11]opened+sec_in_day 1730075444 [12:23:11]quantity*price = 85039 [12:23:11]sum+1 = 85040 [12:23:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 850.00 Внесено: 850.00 СДАЧА: 0.00 НСП 1% : 7.53 НДС 12% : 90.31 Наличными: 850.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 115 27.10.2024 12:23 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156564 ФПД: 49160750012792 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T122317&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156564&fm=49160750012792&tin=02508201610067®Number=0000000000091693&sum=85000 [12:23:12]StoreToDocumentArchive [12:23:12]shift 537 fd 156564 [12:23:12]save to /storage/0537/doc_00156564 [12:23:12]save last doc name /storage/0537/doc_00156564 to /storage/kkm_last_doc_name [12:23:12]save OK [12:23:12]Clear old archive folders... [12:23:12]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:23:12]tlvbuf is 017AB3A0 [12:23:12]SAM_PROTO_ClearQueue [12:23:12]wFMCommunicate request_size=4 [12:23:12]MH_SAM_APDU [12:23:12]CAPDU: 80 09 00 00 [12:23:12]Write to MH i2c: E2 08 00 9C 51 80 09 00 00 00 00 00 00 5F [12:23:12]Write i2c OK [12:23:12]MH_I2C_Read... [12:23:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:23:12]Read from MH i2c: E2 [12:23:12]MH_I2C_Read... [12:23:12]Read from MH i2c: E2 03 00 [12:23:12]MH_I2C_Read... [12:23:12]Read from MH i2c: E2 03 00 9C 51 00 90 00 61 [12:23:12]RAPDU: 90 00 [12:23:12]wFMCommunicate OK [12:23:12]SAM_PROTO_ClearQueue done [12:23:12]KKMCreateOFDPacket [12:23:12]OFDProtocolAddRootSTLVToBuf [12:23:12]FM_MakeSignedData [12:23:12]FM_MakeSignedData [12:23:12]SAM_PROTO_SignData [12:23:12]wFMCommunicate request_size=4 [12:23:12]MH_SAM_APDU [12:23:12]CAPDU: 80 0D 01 02 [12:23:12]Write to MH i2c: E2 08 00 9D 51 80 0D 01 02 00 00 00 00 67 [12:23:12]Write i2c OK [12:23:12]MH_I2C_Read... [12:23:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:23:12]Read from MH i2c: E2 [12:23:12]MH_I2C_Read... [12:23:12]Read from MH i2c: E2 03 00 [12:23:12]MH_I2C_Read... [12:23:12]Read from MH i2c: E2 03 00 9D 51 00 90 00 62 [12:23:12]RAPDU: 90 00 [12:23:12]wFMCommunicate OK [12:23:12]wFMCommunicate request_size=255 [12:23:12]MH_SAM_APDU [12:23:12]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 2B 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2F 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F1 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 23 00 00 00 00 07 04 06 00 08 4C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 B5 30 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 94 63 02 00 35 04 06 00 2C B6 21 0A [12:23:12]Write to MH i2c: E2 02 01 9E 51 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 2B 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2F 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F1 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 23 00 00 00 00 07 04 06 00 08 4C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 B5 30 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 94 63 02 00 35 04 06 00 2C B6 21 0A 00 00 EE [12:23:12]Write i2c OK [12:23:12]MH_I2C_Read... [12:23:13]OFD Sender: No OFD packet to send [12:23:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:23:13]Read from MH i2c: E2 [12:23:13]MH_I2C_Read... [12:23:13]Read from MH i2c: E2 03 00 [12:23:13]MH_I2C_Read... [12:23:13]Read from MH i2c: E2 03 00 9E 51 00 90 00 63 [12:23:13]RAPDU: 90 00 [12:23:13]wFMCommunicate OK [12:23:13]wFMCommunicate request_size=7 [12:23:13]MH_SAM_APDU [12:23:13]CAPDU: 80 0D 02 02 02 99 78 [12:23:13]Write to MH i2c: E2 0A 00 9F 51 80 0D 02 02 02 00 99 78 00 00 7F [12:23:13]Write i2c OK [12:23:13]MH_I2C_Read... [12:23:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:23:13]Read from MH i2c: E2 [12:23:13]MH_I2C_Read... [12:23:13]Read from MH i2c: E2 03 00 [12:23:13]MH_I2C_Read... [12:23:13]Read from MH i2c: E2 03 00 9F 51 00 90 00 64 [12:23:13]RAPDU: 90 00 [12:23:13]wFMCommunicate OK [12:23:13]wFMCommunicate request_size=4 [12:23:13]MH_SAM_APDU [12:23:13]CAPDU: 80 0D 03 02 [12:23:13]Write to MH i2c: E2 08 00 A0 51 80 0D 03 02 00 00 00 00 6C [12:23:13]Write i2c OK [12:23:13]MH_I2C_Read... [12:23:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:23:13]Read from MH i2c: E2 [12:23:13]MH_I2C_Read... [12:23:13]Read from MH i2c: E2 0B 00 [12:23:13]MH_I2C_Read... [12:23:13]Read from MH i2c: E2 0B 00 A0 51 00 9D E7 29 85 7D A4 E4 96 90 00 3A [12:23:13]RAPDU: 9D E7 29 85 7D A4 E4 96 90 00 [12:23:13]wFMCommunicate OK [12:23:13]SAM_PROTO_SignData done [12:23:13]FM_MakeSignedData done [12:23:13]CreateOFDProtocolMessage [12:23:13]wFMCommunicate request_size=4 [12:23:13]MH_SAM_APDU [12:23:13]CAPDU: 80 11 00 00 [12:23:13]Write to MH i2c: E2 08 00 A1 51 80 11 00 00 00 00 00 00 6C [12:23:13]Write i2c OK [12:23:13]MH_I2C_Read... [12:23:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:23:13]Read from MH i2c: E2 [12:23:13]MH_I2C_Read... [12:23:13]Read from MH i2c: E2 17 00 [12:23:13]MH_I2C_Read... [12:23:13]Read from MH i2c: E2 17 00 A1 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 C1 [12:23:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:23:13]wFMCommunicate OK [12:23:13]CreateOFDProtocolMessage done [12:23:13]OFDSenderStorePacket 156564 [12:23:13]StoreOFDPacket docnum=156564 [12:23:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 5C D5 04 01 4F 8E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 2B 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2F 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F1 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 23 00 00 00 00 07 04 06 00 08 4C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 B5 30 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 94 63 02 00 35 04 06 00 2C B6 21 0A 99 78 9D E7 29 85 7D A4 E4 96 [12:23:13]CheckFolder [12:23:13]dirname=/storage/ofd_packets [12:23:13]CheckFolder done [12:23:13]ProducePacketName [12:23:13]name=ofd_packets/00156564 [12:23:13]NVStorageSaveData ofd_packets/00156564 [12:23:13]File name is /storage/ofd_packets/00156564 [12:23:13]Write 298 bytes [12:23:13]NVStorageSaveData done [12:23:13]OFDSenderStorePacket done [12:23:13]KKMCreateOFDPacket done [12:23:13]NVStorageSaveData kkm_last_timestamp [12:23:13]File name is /storage/kkm_last_timestamp [12:23:13]Write 4 bytes [12:23:13]NVStorageSaveData done [12:23:13]ExternCall_PrintAddStr [12:23:13]wPrintStart [12:23:13]Write to MH i2c: 01 00 00 A2 51 F3 [12:23:13]Write i2c OK [12:23:13]MH_I2C_Read... [12:23:13]Read from MH i2c: 01 [12:23:13]MH_I2C_Read... [12:23:13]Read from MH i2c: 01 07 00 [12:23:13]MH_I2C_Read... [12:23:13]Read from MH i2c: 01 07 00 A2 51 00 00 00 00 00 FF 0F 08 [12:23:13]RasterBufferAndPrint [12:23:13]line Счет N : (1)99378 [12:23:13]line ИНН: 02508201610067 [12:23:13]line Контрольно-Кассовый Чек [12:23:13]line ПРОДАЖА [12:23:13]line ТРК (МРК, ГНК) : 32 [12:23:13]line Товар: 2710194210 [12:23:13]line ДТ-К-5 [12:23:13]line 11.160 * 76.20 [12:23:13]line = 850.39 [12:23:13]line НДС 12% НСП 1% [12:23:13]line > о реализуемом товаре [12:23:13]line ОКРУГЛЕНИЕ: -0.39 [12:23:13]line ИТОГО: 850.00 [12:23:13]line Внесено: 850.00 [12:23:13]line СДАЧА: 0.00 [12:23:13]line НСП 1% : 7.53 [12:23:13]line НДС 12% : 90.31 [12:23:13]line Наличными: 850.00 [12:23:13]line Безнал.: 0.00 [12:23:13]line Место: АЗС № 143 "Партнер Нефть" [12:23:13]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [12:23:13]line СНО: Общий режим [12:23:13]line Чек 115 27.10.2024 12:23 [12:23:13]line Смена: 537 ФФД: 1.0 [12:23:13]line ЗНМ: 0300000096 [12:23:13]line РНМ: 0000000000091693 [12:23:13]line Версия ККМ: 001 [12:23:13]line ФМ: 0000000000871792 [12:23:13]line ФД: 156564 [12:23:13]line ФПД: 49160750012792 [12:23:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T122317&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156564&fm=49160750012792&tin=02508201610067®Number=0000000000091693&sum=85000 [12:23:13]OFD Sender: Processing packet 156564 [packets to send 31, broken 30] [12:23:13]ProducePacketName [12:23:13]name=ofd_packets/00156564 [12:23:13]OFD Sender: To server: pG, [12:23:13]CommunicateWithHost lk.salyk.kg:30040 [12:23:13]ConnectInit lk.salyk.kg [12:23:13]written 0, free lines is 4095 [12:23:13]Connected sock=10 [12:23:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 5C D5 04 01 4F 8E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 2B 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2F 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F1 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 23 00 00 00 00 07 04 06 00 08 4C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 B5 30 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 94 63 02 00 35 04 06 00 2C B6 21 0A 99 78 9D E7 29 85 7D A4 E4 96 [12:23:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 5E 96 47 00 1D 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 31 37 39 32 10 04 04 00 94 63 02 00 F4 03 04 00 24 D6 1D 67 B6 04 01 00 00 BD 84 77 1E 36 32 EB AE [12:23:14]CommunicateWithHost err = 0 [12:23:14]CheckOFDResponse [12:23:14]1017 (14) - 77093643461234 [12:23:14]1041 (16) - 0000000000871792 [12:23:14]1040 (4) - 156564 [12:23:14]1012 (4) - 27.10.2024 05:56 [12:23:14]1206 (1) - 0 [12:23:14]OFD Sender: Remove packet 156564 [12:23:14]ProducePacketName [12:23:14]name=ofd_packets/00156564 [12:23:14]NVStorageDeleteData [12:23:14]Write to MH i2c: 01 00 00 CD 51 1E [12:23:14]Write i2c OK [12:23:14]MH_I2C_Read... [12:23:14]Read from MH i2c: 01 [12:23:14]MH_I2C_Read... [12:23:14]Read from MH i2c: 01 07 00 [12:23:14]MH_I2C_Read... [12:23:14]Read from MH i2c: 01 07 00 CD 51 00 00 00 00 00 E4 0C 15 [12:23:14]RasterBufferAndPrint [12:23:14]line [12:23:14]line [12:23:14]line [12:23:14]line [12:23:14]line [12:23:14]written 0, free lines is 3306 [12:23:14]process_action close_receipt done [12:23:14]requested_data is exist [12:23:14]produce_requested_data [12:23:14]requested_item fm.sn is exist - process it [12:23:14]wFMCommunicate request_size=4 [12:23:14]MH_SAM_APDU [12:23:14]CAPDU: 80 11 00 00 [12:23:14]Write to MH i2c: E2 08 00 D4 51 80 11 00 00 00 00 00 00 9F [12:23:14]Write i2c OK [12:23:14]MH_I2C_Read... [12:23:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:23:14]Read from MH i2c: E2 [12:23:14]MH_I2C_Read... [12:23:14]Read from MH i2c: E2 17 00 [12:23:14]MH_I2C_Read... [12:23:14]Read from MH i2c: E2 17 00 D4 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 F4 [12:23:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:23:14]wFMCommunicate OK [12:23:14]requested_item fd.num is exist - process it [12:23:14]SAM_PROTO_GetFieldsCounters [12:23:14]wFMCommunicate request_size=4 [12:23:14]MH_SAM_APDU [12:23:14]CAPDU: 80 13 00 00 [12:23:14]Write to MH i2c: E2 08 00 D5 51 80 13 00 00 00 00 00 00 A2 [12:23:14]Write i2c OK [12:23:14]MH_I2C_Read... [12:23:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:23:14]Read from MH i2c: E2 [12:23:14]MH_I2C_Read... [12:23:14]Read from MH i2c: E2 62 00 [12:23:14]MH_I2C_Read... [12:23:14]Read from MH i2c: E2 62 00 D5 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 94 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 35 [12:23:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 94 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:23:14]wFMCommunicate OK [12:23:14]SAM_PROTO_GetFieldsCounters done [12:23:14]requested_item shift.num is exist - process it [12:23:14]requested_item shift.opened is exist - process it [12:23:14]req_shift_opened [12:23:14]FM_GetShiftState [12:23:14]SAM_PROTO_GetShiftState [12:23:14]wFMCommunicate request_size=4 [12:23:14]MH_SAM_APDU [12:23:14]CAPDU: 80 13 01 00 [12:23:14]Write to MH i2c: E2 08 00 D6 51 80 13 01 00 00 00 00 00 A4 [12:23:14]Write i2c OK [12:23:14]MH_I2C_Read... [12:23:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:23:14]Read from MH i2c: E2 [12:23:14]MH_I2C_Read... [12:23:14]Read from MH i2c: E2 0E 00 [12:23:14]MH_I2C_Read... [12:23:14]Read from MH i2c: E2 0E 00 D6 51 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 71 [12:23:14]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [12:23:14]wFMCommunicate OK [12:23:14]SAM_PROTO_GetShiftState done [12:23:14]FM_GetShiftState done [12:23:14]req_shift_opened done [12:23:14]requested_item shift.open_date is exist - process it [12:23:14]req_shift_open_date [12:23:14]req_shift_open_date done [12:23:14]produce_requested_data done [12:23:14]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156564,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [12:23:14]process_action_free close_receipt [12:23:14]json_value_free [12:23:14]json_value_free done [12:23:14]process_json_proto returns [12:23:14]Send response to host [12:23:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156564,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [12:23:14]free response buf [12:23:14]execute_script done [12:23:14]execute_script returns [12:23:14]free content buf [12:23:14]Sock 9.Close socket [12:23:14]Sock 9.Thread stoped [12:23:14]OFD Sender: No OFD packet to send [12:23:19]OFD Sender: No OFD packet to send [12:23:24]OFD Sender: No OFD packet to send [12:23:29]OFD Sender: No OFD packet to send [12:23:34]OFD Sender: No OFD packet to send [12:23:39]OFD Sender: No OFD packet to send [12:23:44]OFD Sender: No OFD packet to send [12:23:49]OFD Sender: No OFD packet to send [12:23:54]OFD Sender: No OFD packet to send [12:23:59]OFD Sender: No OFD packet to send [12:24:04]OFD Sender: No OFD packet to send [12:24:09]OFD Sender: No OFD packet to send [12:24:14]OFD Sender: No OFD packet to send [12:24:19]OFD Sender: No OFD packet to send [12:24:24]OFD Sender: No OFD packet to send [12:24:29]OFD Sender: No OFD packet to send [12:24:34]OFD Sender: No OFD packet to send [12:24:39]OFD Sender: No OFD packet to send [12:24:44]OFD Sender: No OFD packet to send [12:24:47]accept exits with 8 [12:24:47]New connection [12:24:47]New thread 3066977636 created [12:24:47]Thread 3066834276 joined [12:24:47]Waiting for new connection... [12:24:47] Sock 8.Parse request [12:24:47]Sock 8.Check first char [12:24:47]Sock 8.First char is OK [12:24:47]request: POST /json_proto HTTP/1.0 [12:24:47]Method: POST [12:24:47]URL: /json_proto [12:24:47]Method is POST - this is cgi request [12:24:47]url: /json_proto [12:24:47]query_string will be loaded in cgi processing [12:24:47]execute_cgi json_proto POST (null) [12:24:47]execute_cgi path=json_proto method=POST [12:24:47]POST find Content-Length [12:24:47]Host: 172.17.63.3:8080 [12:24:47]Content-Length: 765 [12:24:47]Content-Type: application/json [12:24:47] [12:24:47]POST finish read [12:24:47]Found Content-Length = 765 [12:24:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99379", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.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: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:24:47]execute_script... [12:24:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99379", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.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: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:24:47]POST & json_proto [12:24:47]process_json_proto [12:24:47]json parsed OK: [12:24:47]protocol is kg_v1.0 [12:24:47]action value=close_receipt [12:24:47]process_action close_receipt [12:24:47]cmd_close_receipt [12:24:47]MH_GetDate [12:24:47]Write to MH i2c: F0 00 00 D7 51 17 [12:24:47]Write i2c OK [12:24:47]MH_I2C_Read... [12:24:47]Read from MH i2c: F0 [12:24:47]MH_I2C_Read... [12:24:47]Read from MH i2c: F0 09 00 [12:24:47]MH_I2C_Read... [12:24:47]Read from MH i2c: F0 09 00 D7 51 00 15 31 1E 67 50 D1 6C 64 DC [12:24:47]GetLastDocTimeStamp 1730031797 [12:24:47]current date 1730031893 [12:24:47]FM_GetShiftState [12:24:47]SAM_PROTO_GetShiftState [12:24:47]wFMCommunicate request_size=4 [12:24:47]MH_SAM_APDU [12:24:47]CAPDU: 80 13 01 00 [12:24:47]Write to MH i2c: E2 08 00 D8 51 80 13 01 00 00 00 00 00 A6 [12:24:47]Write i2c OK [12:24:47]MH_I2C_Read... [12:24:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:47]Read from MH i2c: E2 [12:24:47]MH_I2C_Read... [12:24:47]Read from MH i2c: E2 0E 00 [12:24:47]MH_I2C_Read... [12:24:47]Read from MH i2c: E2 0E 00 D8 51 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 73 [12:24:47]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [12:24:47]wFMCommunicate OK [12:24:47]SAM_PROTO_GetShiftState done [12:24:47]FM_GetShiftState done [12:24:47]opened in 1729989044 [12:24:47]opened+sec_in_day 1730075444 [12:24:47]quantity*price = 100050 [12:24:47]sum+1 = 100052 [12:24:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 116 27.10.2024 12:24 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 156565 ФПД: 202752070020362 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T122453&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156565&fm=202752070020362&tin=02508201610067®Number=0000000000091693&sum=100051 [12:24:49]StoreToDocumentArchive [12:24:49]shift 537 fd 156565 [12:24:49]save to /storage/0537/doc_00156565 [12:24:49]save last doc name /storage/0537/doc_00156565 to /storage/kkm_last_doc_name [12:24:49]save OK [12:24:49]Clear old archive folders... [12:24:49]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:24:49]tlvbuf is 017DCBD0 [12:24:49]SAM_PROTO_ClearQueue [12:24:49]wFMCommunicate request_size=4 [12:24:49]MH_SAM_APDU [12:24:49]CAPDU: 80 09 00 00 [12:24:49]Write to MH i2c: E2 08 00 E5 51 80 09 00 00 00 00 00 00 A8 [12:24:49]Write i2c OK [12:24:49]MH_I2C_Read... [12:24:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:24:49]Read from MH i2c: E2 [12:24:49]MH_I2C_Read... [12:24:49]Read from MH i2c: E2 03 00 [12:24:49]MH_I2C_Read... [12:24:49]Read from MH i2c: E2 03 00 E5 51 00 90 00 AA [12:24:49]RAPDU: 90 00 [12:24:49]wFMCommunicate OK [12:24:49]SAM_PROTO_ClearQueue done [12:24:49]KKMCreateOFDPacket [12:24:49]OFDProtocolAddRootSTLVToBuf [12:24:49]FM_MakeSignedData [12:24:49]FM_MakeSignedData [12:24:49]SAM_PROTO_SignData [12:24:49]wFMCommunicate request_size=4 [12:24:49]MH_SAM_APDU [12:24:49]CAPDU: 80 0D 01 02 [12:24:49]Write to MH i2c: E2 08 00 E6 51 80 0D 01 02 00 00 00 00 B0 [12:24:49]Write i2c OK [12:24:49]MH_I2C_Read... [12:24:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:24:49]Read from MH i2c: E2 [12:24:49]MH_I2C_Read... [12:24:49]Read from MH i2c: E2 03 00 [12:24:49]MH_I2C_Read... [12:24:49]Read from MH i2c: E2 03 00 E6 51 00 90 00 AB [12:24:49]RAPDU: 90 00 [12:24:49]wFMCommunicate OK [12:24:49]wFMCommunicate request_size=255 [12:24:49]MH_SAM_APDU [12:24:49]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 15 31 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 95 63 02 00 35 04 06 00 B8 66 E5 1C [12:24:49]Write to MH i2c: E2 02 01 E7 51 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 15 31 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 95 63 02 00 35 04 06 00 B8 66 E5 1C 00 00 13 [12:24:49]Write i2c OK [12:24:49]MH_I2C_Read... [12:24:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:49]Read from MH i2c: E2 [12:24:49]MH_I2C_Read... [12:24:49]Read from MH i2c: E2 03 00 [12:24:49]MH_I2C_Read... [12:24:49]Read from MH i2c: E2 03 00 E7 51 00 90 00 AC [12:24:49]RAPDU: 90 00 [12:24:49]wFMCommunicate OK [12:24:49]wFMCommunicate request_size=7 [12:24:49]MH_SAM_APDU [12:24:49]CAPDU: 80 0D 02 02 02 6D 0A [12:24:49]Write to MH i2c: E2 0A 00 E8 51 80 0D 02 02 02 00 6D 0A 00 00 2E [12:24:49]Write i2c OK [12:24:49]MH_I2C_Read... [12:24:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:49]Read from MH i2c: E2 [12:24:49]MH_I2C_Read... [12:24:49]Read from MH i2c: E2 03 00 [12:24:49]MH_I2C_Read... [12:24:49]Read from MH i2c: E2 03 00 E8 51 00 90 00 AD [12:24:49]RAPDU: 90 00 [12:24:49]wFMCommunicate OK [12:24:49]wFMCommunicate request_size=4 [12:24:49]MH_SAM_APDU [12:24:49]CAPDU: 80 0D 03 02 [12:24:49]Write to MH i2c: E2 08 00 E9 51 80 0D 03 02 00 00 00 00 B5 [12:24:49]Write i2c OK [12:24:49]MH_I2C_Read... [12:24:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:24:49]Read from MH i2c: E2 [12:24:49]MH_I2C_Read... [12:24:49]Read from MH i2c: E2 0B 00 [12:24:49]MH_I2C_Read... [12:24:49]Read from MH i2c: E2 0B 00 E9 51 00 9D 65 B2 F3 71 B4 C4 F1 90 00 37 [12:24:49]RAPDU: 9D 65 B2 F3 71 B4 C4 F1 90 00 [12:24:49]wFMCommunicate OK [12:24:49]SAM_PROTO_SignData done [12:24:49]FM_MakeSignedData done [12:24:49]CreateOFDProtocolMessage [12:24:49]wFMCommunicate request_size=4 [12:24:49]MH_SAM_APDU [12:24:49]CAPDU: 80 11 00 00 [12:24:49]Write to MH i2c: E2 08 00 EA 51 80 11 00 00 00 00 00 00 B5 [12:24:49]Write i2c OK [12:24:49]MH_I2C_Read... [12:24:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:49]Read from MH i2c: E2 [12:24:49]MH_I2C_Read... [12:24:49]Read from MH i2c: E2 17 00 [12:24:49]MH_I2C_Read... [12:24:49]Read from MH i2c: E2 17 00 EA 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 0A [12:24:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:24:49]wFMCommunicate OK [12:24:49]CreateOFDProtocolMessage done [12:24:49]OFDSenderStorePacket 156565 [12:24:49]StoreOFDPacket docnum=156565 [12:24:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 4E B0 04 01 AF A4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 15 31 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 95 63 02 00 35 04 06 00 B8 66 E5 1C 6D 0A 9D 65 B2 F3 71 B4 C4 F1 [12:24:49]CheckFolder [12:24:49]dirname=/storage/ofd_packets [12:24:49]CheckFolder done [12:24:49]ProducePacketName [12:24:49]name=ofd_packets/00156565 [12:24:49]NVStorageSaveData ofd_packets/00156565 [12:24:49]File name is /storage/ofd_packets/00156565 [12:24:49]Write 298 bytes [12:24:49]NVStorageSaveData done [12:24:49]OFDSenderStorePacket done [12:24:49]KKMCreateOFDPacket done [12:24:49]NVStorageSaveData kkm_last_timestamp [12:24:49]File name is /storage/kkm_last_timestamp [12:24:49]Write 4 bytes [12:24:49]NVStorageSaveData done [12:24:49]ExternCall_PrintAddStr [12:24:49]wPrintStart [12:24:49]Write to MH i2c: 01 00 00 EB 51 3C [12:24:49]Write i2c OK [12:24:49]MH_I2C_Read... [12:24:49]Read from MH i2c: 01 [12:24:49]MH_I2C_Read... [12:24:49]Read from MH i2c: 01 07 00 [12:24:49]MH_I2C_Read... [12:24:49]Read from MH i2c: 01 07 00 EB 51 00 00 00 00 00 FF 0F 51 [12:24:49]RasterBufferAndPrint [12:24:49]line Счет N : (1)99379 [12:24:49]line ИНН: 02508201610067 [12:24:49]line Контрольно-Кассовый Чек [12:24:49]line ПРОДАЖА [12:24:49]line ТРК (МРК, ГНК) : 32 [12:24:49]line Товар: 2710194210 [12:24:49]line ДТ-К-5 [12:24:49]line 13.130 * 76.20 [12:24:49]line = 1000.51 [12:24:49]line НДС 12% НСП 1% [12:24:49]line > о реализуемом товаре [12:24:49]line ИТОГО: 1000.51 [12:24:49]line НСП 1% : 8.85 [12:24:49]line НДС 12% : 106.25 [12:24:49]line Наличными: 0.00 [12:24:49]line Безнал.: 1000.51 [12:24:49]line Место: АЗС № 143 "Партнер Нефть" [12:24:49]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [12:24:49]line СНО: Общий режим [12:24:49]line Чек 116 27.10.2024 12:24 [12:24:49]line Смена: 537 ФФД: 1.0 [12:24:49]line ЗНМ: 0300000096 [12:24:49]line РНМ: 0000000000091693 [12:24:49]line Версия ККМ: 001 [12:24:49]line Платежная система: Mbank [12:24:49]line ФМ: 0000000000871792 [12:24:49]line ФД: 156565 [12:24:49]line ФПД: 202752070020362 [12:24:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T122453&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156565&fm=202752070020362&tin=02508201610067®Number=0000000000091693&sum=100051 [12:24:49]OFD Sender: Processing packet 156565 [packets to send 31, broken 30] [12:24:49]ProducePacketName [12:24:49]name=ofd_packets/00156565 [12:24:49]OFD Sender: To server: pG, [12:24:49]CommunicateWithHost lk.salyk.kg:30040 [12:24:49]ConnectInit lk.salyk.kg [12:24:49]written 0, free lines is 4095 [12:24:49]Connected sock=10 [12:24:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 4E B0 04 01 AF A4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 15 31 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 95 63 02 00 35 04 06 00 B8 66 E5 1C 6D 0A 9D 65 B2 F3 71 B4 C4 F1 [12:24:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 8C 18 47 00 CA 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 31 37 39 32 10 04 04 00 95 63 02 00 F4 03 04 00 85 D6 1D 67 B6 04 01 00 00 78 F7 49 B6 9E AD D1 E8 [12:24:50]CommunicateWithHost err = 0 [12:24:50]CheckOFDResponse [12:24:50]1017 (14) - 77093643461234 [12:24:50]1041 (16) - 0000000000871792 [12:24:50]1040 (4) - 156565 [12:24:50]1012 (4) - 27.10.2024 05:58 [12:24:50]1206 (1) - 0 [12:24:50]OFD Sender: Remove packet 156565 [12:24:50]ProducePacketName [12:24:50]name=ofd_packets/00156565 [12:24:50]NVStorageDeleteData [12:24:50]Write to MH i2c: 01 00 00 14 52 66 [12:24:50]Write i2c OK [12:24:50]MH_I2C_Read... [12:24:50]Read from MH i2c: 01 [12:24:50]MH_I2C_Read... [12:24:50]Read from MH i2c: 01 07 00 [12:24:50]MH_I2C_Read... [12:24:50]Read from MH i2c: 01 07 00 14 52 00 00 00 00 00 FE 0C 77 [12:24:50]RasterBufferAndPrint [12:24:50]line [12:24:50]line [12:24:50]line [12:24:50]line [12:24:50]line [12:24:50]written 0, free lines is 3332 [12:24:50]process_action close_receipt done [12:24:50]requested_data is exist [12:24:50]produce_requested_data [12:24:50]requested_item fm.sn is exist - process it [12:24:50]wFMCommunicate request_size=4 [12:24:50]MH_SAM_APDU [12:24:50]CAPDU: 80 11 00 00 [12:24:50]Write to MH i2c: E2 08 00 1B 52 80 11 00 00 00 00 00 00 E7 [12:24:50]Write i2c OK [12:24:50]MH_I2C_Read... [12:24:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:50]Read from MH i2c: E2 [12:24:50]MH_I2C_Read... [12:24:50]Read from MH i2c: E2 17 00 [12:24:50]MH_I2C_Read... [12:24:50]Read from MH i2c: E2 17 00 1B 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 3C [12:24:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:24:50]wFMCommunicate OK [12:24:50]requested_item fd.num is exist - process it [12:24:50]SAM_PROTO_GetFieldsCounters [12:24:50]wFMCommunicate request_size=4 [12:24:50]MH_SAM_APDU [12:24:50]CAPDU: 80 13 00 00 [12:24:50]Write to MH i2c: E2 08 00 1C 52 80 13 00 00 00 00 00 00 EA [12:24:50]Write i2c OK [12:24:50]MH_I2C_Read... [12:24:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:24:50]Read from MH i2c: E2 [12:24:50]MH_I2C_Read... [12:24:50]Read from MH i2c: E2 62 00 [12:24:50]MH_I2C_Read... [12:24:50]Read from MH i2c: E2 62 00 1C 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 95 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 81 [12:24:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 95 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:24:50]wFMCommunicate OK [12:24:50]SAM_PROTO_GetFieldsCounters done [12:24:50]requested_item shift.num is exist - process it [12:24:50]requested_item shift.opened is exist - process it [12:24:50]req_shift_opened [12:24:50]FM_GetShiftState [12:24:50]SAM_PROTO_GetShiftState [12:24:50]wFMCommunicate request_size=4 [12:24:50]MH_SAM_APDU [12:24:50]CAPDU: 80 13 01 00 [12:24:50]Write to MH i2c: E2 08 00 1D 52 80 13 01 00 00 00 00 00 EC [12:24:50]Write i2c OK [12:24:50]MH_I2C_Read... [12:24:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:50]Read from MH i2c: E2 [12:24:50]MH_I2C_Read... [12:24:50]Read from MH i2c: E2 0E 00 [12:24:50]MH_I2C_Read... [12:24:50]Read from MH i2c: E2 0E 00 1D 52 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 B9 [12:24:50]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [12:24:50]wFMCommunicate OK [12:24:50]SAM_PROTO_GetShiftState done [12:24:50]FM_GetShiftState done [12:24:50]req_shift_opened done [12:24:50]requested_item shift.open_date is exist - process it [12:24:50]req_shift_open_date [12:24:50]req_shift_open_date done [12:24:50]produce_requested_data done [12:24:50]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156565,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [12:24:50]process_action_free close_receipt [12:24:50]json_value_free [12:24:50]json_value_free done [12:24:50]process_json_proto returns [12:24:50]Send response to host [12:24:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156565,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [12:24:50]free response buf [12:24:50]execute_script done [12:24:50]execute_script returns [12:24:50]free content buf [12:24:50]Sock 8.Close socket [12:24:50]Sock 8.Thread stoped [12:24:50]OFD Sender: No OFD packet to send [12:24:55]OFD Sender: No OFD packet to send [12:25:00]OFD Sender: No OFD packet to send [12:25:05]OFD Sender: No OFD packet to send [12:25:10]OFD Sender: No OFD packet to send [12:25:12]accept exits with 9 [12:25:12]New connection [12:25:12]New thread 3066834276 created [12:25:12]Thread 3066977636 joined [12:25:12]Waiting for new connection... [12:25:12] Sock 9.Parse request [12:25:12]Sock 9.Check first char [12:25:12]Sock 9.First char is OK [12:25:12]request: POST /json_proto HTTP/1.0 [12:25:12]Method: POST [12:25:12]URL: /json_proto [12:25:12]Method is POST - this is cgi request [12:25:12]url: /json_proto [12:25:12]query_string will be loaded in cgi processing [12:25:12]execute_cgi json_proto POST (null) [12:25:12]execute_cgi path=json_proto method=POST [12:25:12]POST find Content-Length [12:25:12]Host: 172.17.63.3:8080 [12:25:12]Content-Length: 676 [12:25:12]Content-Type: application/json [12:25:12] [12:25:12]POST finish read [12:25:12]Found Content-Length = 676 [12:25:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99380", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "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" ] } } [12:25:12]execute_script... [12:25:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99380", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "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" ] } } [12:25:12]POST & json_proto [12:25:12]process_json_proto [12:25:12]json parsed OK: [12:25:12]protocol is kg_v1.0 [12:25:12]action value=close_receipt [12:25:12]process_action close_receipt [12:25:12]cmd_close_receipt [12:25:12]MH_GetDate [12:25:12]Write to MH i2c: F0 00 00 1E 52 5F [12:25:12]Write i2c OK [12:25:12]MH_I2C_Read... [12:25:12]Read from MH i2c: F0 [12:25:12]MH_I2C_Read... [12:25:12]Read from MH i2c: F0 09 00 [12:25:12]MH_I2C_Read... [12:25:12]Read from MH i2c: F0 09 00 1E 52 00 2E 31 1E 67 50 D1 6C 64 3D [12:25:12]GetLastDocTimeStamp 1730031893 [12:25:12]current date 1730031918 [12:25:12]FM_GetShiftState [12:25:12]SAM_PROTO_GetShiftState [12:25:12]wFMCommunicate request_size=4 [12:25:12]MH_SAM_APDU [12:25:12]CAPDU: 80 13 01 00 [12:25:12]Write to MH i2c: E2 08 00 1F 52 80 13 01 00 00 00 00 00 EE [12:25:12]Write i2c OK [12:25:12]MH_I2C_Read... [12:25:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:25:12]Read from MH i2c: E2 [12:25:12]MH_I2C_Read... [12:25:12]Read from MH i2c: E2 0E 00 [12:25:12]MH_I2C_Read... [12:25:12]Read from MH i2c: E2 0E 00 1F 52 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 BB [12:25:12]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [12:25:12]wFMCommunicate OK [12:25:12]SAM_PROTO_GetShiftState done [12:25:12]FM_GetShiftState done [12:25:12]opened in 1729989044 [12:25:12]opened+sec_in_day 1730075444 [12:25:12]quantity*price = 35055 [12:25:12]sum+1 = 35057 [12:25:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 117 27.10.2024 12:25 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156566 ФПД: 167020155454292 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T122518&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156566&fm=167020155454292&tin=02508201610067®Number=0000000000091693&sum=35000 [12:25:13]StoreToDocumentArchive [12:25:13]shift 537 fd 156566 [12:25:13]save to /storage/0537/doc_00156566 [12:25:13]save last doc name /storage/0537/doc_00156566 to /storage/kkm_last_doc_name [12:25:13]save OK [12:25:13]Clear old archive folders... [12:25:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:25:13]tlvbuf is 016BD290 [12:25:13]SAM_PROTO_ClearQueue [12:25:13]wFMCommunicate request_size=4 [12:25:13]MH_SAM_APDU [12:25:13]CAPDU: 80 09 00 00 [12:25:13]Write to MH i2c: E2 08 00 2C 52 80 09 00 00 00 00 00 00 F0 [12:25:14]Write i2c OK [12:25:14]MH_I2C_Read... [12:25:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:25:14]Read from MH i2c: E2 [12:25:14]MH_I2C_Read... [12:25:14]Read from MH i2c: E2 03 00 [12:25:14]MH_I2C_Read... [12:25:14]Read from MH i2c: E2 03 00 2C 52 00 90 00 F2 [12:25:14]RAPDU: 90 00 [12:25:14]wFMCommunicate OK [12:25:14]SAM_PROTO_ClearQueue done [12:25:14]KKMCreateOFDPacket [12:25:14]OFDProtocolAddRootSTLVToBuf [12:25:14]FM_MakeSignedData [12:25:14]FM_MakeSignedData [12:25:14]SAM_PROTO_SignData [12:25:14]wFMCommunicate request_size=4 [12:25:14]MH_SAM_APDU [12:25:14]CAPDU: 80 0D 01 02 [12:25:14]Write to MH i2c: E2 08 00 2D 52 80 0D 01 02 00 00 00 00 F8 [12:25:14]Write i2c OK [12:25:14]MH_I2C_Read... [12:25:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:25:14]Read from MH i2c: E2 [12:25:14]MH_I2C_Read... [12:25:14]Read from MH i2c: E2 03 00 [12:25:14]MH_I2C_Read... [12:25:14]Read from MH i2c: E2 03 00 2D 52 00 90 00 F3 [12:25:14]RAPDU: 90 00 [12:25:14]wFMCommunicate OK [12:25:14]wFMCommunicate request_size=255 [12:25:14]MH_SAM_APDU [12:25: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 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 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 75 00 00 00 F4 03 04 00 2E 31 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 96 63 02 00 35 04 06 00 97 [12:25:14]Write to MH i2c: E2 02 01 2E 52 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 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 75 00 00 00 F4 03 04 00 2E 31 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 96 63 02 00 35 04 06 00 97 00 00 9D [12:25:14]Write i2c OK [12:25:14]MH_I2C_Read... [12:25:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:25:14]Read from MH i2c: E2 [12:25:14]MH_I2C_Read... [12:25:14]Read from MH i2c: E2 03 00 [12:25:14]MH_I2C_Read... [12:25:14]Read from MH i2c: E2 03 00 2E 52 00 90 00 F4 [12:25:14]RAPDU: 90 00 [12:25:14]wFMCommunicate OK [12:25:14]wFMCommunicate request_size=10 [12:25:14]MH_SAM_APDU [12:25:14]CAPDU: 80 0D 02 02 05 E7 69 09 43 54 [12:25:14]Write to MH i2c: E2 0D 00 2F 52 80 0D 02 02 05 00 E7 69 09 43 54 00 00 F5 [12:25:14]Write i2c OK [12:25:14]MH_I2C_Read... [12:25:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:25:14]Read from MH i2c: E2 [12:25:14]MH_I2C_Read... [12:25:14]Read from MH i2c: E2 03 00 [12:25:14]MH_I2C_Read... [12:25:14]Read from MH i2c: E2 03 00 2F 52 00 90 00 F5 [12:25:14]RAPDU: 90 00 [12:25:14]wFMCommunicate OK [12:25:14]wFMCommunicate request_size=4 [12:25:14]MH_SAM_APDU [12:25:14]CAPDU: 80 0D 03 02 [12:25:14]Write to MH i2c: E2 08 00 30 52 80 0D 03 02 00 00 00 00 FD [12:25:14]Write i2c OK [12:25:14]MH_I2C_Read... [12:25:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:25:14]Read from MH i2c: E2 [12:25:14]MH_I2C_Read... [12:25:14]Read from MH i2c: E2 0B 00 [12:25:14]MH_I2C_Read... [12:25:14]Read from MH i2c: E2 0B 00 30 52 00 E2 42 79 02 DC 79 9B 0E 90 00 9B [12:25:14]RAPDU: E2 42 79 02 DC 79 9B 0E 90 00 [12:25:14]wFMCommunicate OK [12:25:14]SAM_PROTO_SignData done [12:25:14]FM_MakeSignedData done [12:25:14]CreateOFDProtocolMessage [12:25:14]wFMCommunicate request_size=4 [12:25:14]MH_SAM_APDU [12:25:14]CAPDU: 80 11 00 00 [12:25:14]Write to MH i2c: E2 08 00 31 52 80 11 00 00 00 00 00 00 FD [12:25:14]Write i2c OK [12:25:14]MH_I2C_Read... [12:25:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:25:14]Read from MH i2c: E2 [12:25:14]MH_I2C_Read... [12:25:14]Read from MH i2c: E2 17 00 [12:25:14]MH_I2C_Read... [12:25:14]Read from MH i2c: E2 17 00 31 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 52 [12:25:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:25:14]wFMCommunicate OK [12:25:14]CreateOFDProtocolMessage done [12:25:14]OFDSenderStorePacket 156566 [12:25:14]StoreOFDPacket docnum=156566 [12:25:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 5E E8 07 01 ED E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 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 75 00 00 00 F4 03 04 00 2E 31 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 96 63 02 00 35 04 06 00 97 E7 69 09 43 54 E2 42 79 02 DC 79 9B 0E [12:25:14]CheckFolder [12:25:14]dirname=/storage/ofd_packets [12:25:14]CheckFolder done [12:25:14]ProducePacketName [12:25:14]name=ofd_packets/00156566 [12:25:14]NVStorageSaveData ofd_packets/00156566 [12:25:14]File name is /storage/ofd_packets/00156566 [12:25:14]Write 301 bytes [12:25:14]NVStorageSaveData done [12:25:14]OFDSenderStorePacket done [12:25:14]KKMCreateOFDPacket done [12:25:14]NVStorageSaveData kkm_last_timestamp [12:25:14]File name is /storage/kkm_last_timestamp [12:25:14]Write 4 bytes [12:25:14]NVStorageSaveData done [12:25:14]ExternCall_PrintAddStr [12:25:14]wPrintStart [12:25:14]Write to MH i2c: 01 00 00 32 52 84 [12:25:14]Write i2c OK [12:25:14]MH_I2C_Read... [12:25:14]Read from MH i2c: 01 [12:25:14]MH_I2C_Read... [12:25:14]Read from MH i2c: 01 07 00 [12:25:14]MH_I2C_Read... [12:25:14]Read from MH i2c: 01 07 00 32 52 00 00 00 00 00 FF 0F 99 [12:25:14]RasterBufferAndPrint [12:25:14]line Счет N : (1)99380 [12:25:14]line ИНН: 02508201610067 [12:25:14]line Контрольно-Кассовый Чек [12:25:14]line ПРОДАЖА [12:25:14]line ТРК (МРК, ГНК) : 11 [12:25:14]line Товар: 2710124130 [12:25:14]line Аи-92-К-5 [12:25:14]line 5.240 * 66.90 [12:25:14]line = 350.56 [12:25:14]line НДС 12% НСП 1% [12:25:14]line > о реализуемом товаре [12:25:14]line ОКРУГЛЕНИЕ: -0.56 [12:25:14]line ИТОГО: 350.00 [12:25:14]line Внесено: 350.00 [12:25:14]line СДАЧА: 0.00 [12:25:14]line НСП 1% : 3.10 [12:25:14]line НДС 12% : 37.23 [12:25:14]line Наличными: 350.00 [12:25:14]line Безнал.: 0.00 [12:25:14]line Место: АЗС № 143 "Партнер Нефть" [12:25:14]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [12:25:14]line СНО: Общий режим [12:25:14]line Чек 117 27.10.2024 12:25 [12:25:14]line Смена: 537 ФФД: 1.0 [12:25:14]line ЗНМ: 0300000096 [12:25:14]line РНМ: 0000000000091693 [12:25:14]line Версия ККМ: 001 [12:25:14]line ФМ: 0000000000871792 [12:25:14]line ФД: 156566 [12:25:14]line ФПД: 167020155454292 [12:25:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T122518&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156566&fm=167020155454292&tin=02508201610067®Number=0000000000091693&sum=35000 [12:25:14]OFD Sender: Processing packet 156566 [packets to send 31, broken 30] [12:25:14]ProducePacketName [12:25:14]name=ofd_packets/00156566 [12:25:14]OFD Sender: To server: pG, [12:25:14]CommunicateWithHost lk.salyk.kg:30040 [12:25:14]ConnectInit lk.salyk.kg [12:25:14]written 0, free lines is 4095 [12:25:14]Connected sock=10 [12:25:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 5E E8 07 01 ED E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 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 75 00 00 00 F4 03 04 00 2E 31 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 96 63 02 00 35 04 06 00 97 E7 69 09 43 54 E2 42 79 02 DC 79 9B 0E [12:25:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 36 C1 47 00 B1 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 96 63 02 00 F4 03 04 00 9E D6 1D 67 B6 04 01 00 00 CE 47 07 F8 59 F3 E2 43 [12:25:15]CommunicateWithHost err = 0 [12:25:15]CheckOFDResponse [12:25:15]1017 (14) - 77093643461234 [12:25:15]1041 (16) - 0000000000871792 [12:25:15]1040 (4) - 156566 [12:25:15]1012 (4) - 27.10.2024 05:58 [12:25:15]1206 (1) - 0 [12:25:15]OFD Sender: Remove packet 156566 [12:25:15]ProducePacketName [12:25:15]name=ofd_packets/00156566 [12:25:15]NVStorageDeleteData [12:25:15]Write to MH i2c: 01 00 00 5D 52 AF [12:25:15]Write i2c OK [12:25:15]MH_I2C_Read... [12:25:15]Read from MH i2c: 01 [12:25:15]MH_I2C_Read... [12:25:15]Read from MH i2c: 01 07 00 [12:25:15]MH_I2C_Read... [12:25:15]Read from MH i2c: 01 07 00 5D 52 00 00 00 00 00 E1 0C A3 [12:25:15]RasterBufferAndPrint [12:25:15]line [12:25:15]line [12:25:15]line [12:25:15]line [12:25:15]line [12:25:15]written 0, free lines is 3303 [12:25:15]process_action close_receipt done [12:25:15]requested_data is exist [12:25:15]produce_requested_data [12:25:15]requested_item fm.sn is exist - process it [12:25:15]wFMCommunicate request_size=4 [12:25:15]MH_SAM_APDU [12:25:15]CAPDU: 80 11 00 00 [12:25:15]Write to MH i2c: E2 08 00 64 52 80 11 00 00 00 00 00 00 30 [12:25:15]Write i2c OK [12:25:15]MH_I2C_Read... [12:25:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:25:15]Read from MH i2c: E2 [12:25:15]MH_I2C_Read... [12:25:15]Read from MH i2c: E2 17 00 [12:25:15]MH_I2C_Read... [12:25:15]Read from MH i2c: E2 17 00 64 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 85 [12:25:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:25:15]wFMCommunicate OK [12:25:15]requested_item fd.num is exist - process it [12:25:15]SAM_PROTO_GetFieldsCounters [12:25:15]wFMCommunicate request_size=4 [12:25:15]MH_SAM_APDU [12:25:15]CAPDU: 80 13 00 00 [12:25:15]Write to MH i2c: E2 08 00 65 52 80 13 00 00 00 00 00 00 33 [12:25:15]Write i2c OK [12:25:15]MH_I2C_Read... [12:25:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:25:15]Read from MH i2c: E2 [12:25:15]MH_I2C_Read... [12:25:15]Read from MH i2c: E2 62 00 [12:25:15]MH_I2C_Read... [12:25:15]Read from MH i2c: E2 62 00 65 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 96 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 CE [12:25:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 96 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:25:15]wFMCommunicate OK [12:25:15]SAM_PROTO_GetFieldsCounters done [12:25:15]requested_item shift.num is exist - process it [12:25:15]requested_item shift.opened is exist - process it [12:25:15]req_shift_opened [12:25:15]FM_GetShiftState [12:25:15]SAM_PROTO_GetShiftState [12:25:15]wFMCommunicate request_size=4 [12:25:15]MH_SAM_APDU [12:25:15]CAPDU: 80 13 01 00 [12:25:15]Write to MH i2c: E2 08 00 66 52 80 13 01 00 00 00 00 00 35 [12:25:15]Write i2c OK [12:25:15]MH_I2C_Read... [12:25:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:25:15]Read from MH i2c: E2 [12:25:15]MH_I2C_Read... [12:25:15]Read from MH i2c: E2 0E 00 [12:25:15]MH_I2C_Read... [12:25:15]Read from MH i2c: E2 0E 00 66 52 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 02 [12:25:15]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [12:25:15]wFMCommunicate OK [12:25:15]SAM_PROTO_GetShiftState done [12:25:15]FM_GetShiftState done [12:25:15]req_shift_opened done [12:25:15]requested_item shift.open_date is exist - process it [12:25:15]req_shift_open_date [12:25:15]req_shift_open_date done [12:25:15]produce_requested_data done [12:25:15]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156566,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [12:25:15]process_action_free close_receipt [12:25:15]json_value_free [12:25:15]json_value_free done [12:25:15]process_json_proto returns [12:25:15]Send response to host [12:25:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156566,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [12:25:15]free response buf [12:25:15]execute_script done [12:25:15]execute_script returns [12:25:15]free content buf [12:25:15]Sock 9.Close socket [12:25:15]Sock 9.Thread stoped [12:25:15]OFD Sender: No OFD packet to send [12:25:20]OFD Sender: No OFD packet to send [12:25:25]OFD Sender: No OFD packet to send [12:25:26]accept exits with 8 [12:25:26]New connection [12:25:26]New thread 3066977636 created [12:25:26]Thread 3066834276 joined [12:25:26]Waiting for new connection... [12:25:26] Sock 8.Parse request [12:25:26]Sock 8.Check first char [12:25:26]Sock 8.First char is OK [12:25:26]request: POST /json_proto HTTP/1.0 [12:25:26]Method: POST [12:25:26]URL: /json_proto [12:25:26]Method is POST - this is cgi request [12:25:26]url: /json_proto [12:25:26]query_string will be loaded in cgi processing [12:25:26]execute_cgi json_proto POST (null) [12:25:26]execute_cgi path=json_proto method=POST [12:25:26]POST find Content-Length [12:25:26]Host: 172.17.63.3:8080 [12:25:26]Content-Length: 765 [12:25:26]Content-Type: application/json [12:25:26] [12:25:26]POST finish read [12:25:26]Found Content-Length = 765 [12:25:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99382", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.650, "sum" : 110.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: Mbank", "payments": [ { "type": 1, "sum" : 110.39 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:25:26]execute_script... [12:25: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)99382", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.650, "sum" : 110.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: Mbank", "payments": [ { "type": 1, "sum" : 110.39 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:25:26]POST & json_proto [12:25:26]process_json_proto [12:25:26]json parsed OK: [12:25:26]protocol is kg_v1.0 [12:25:26]action value=close_receipt [12:25:26]process_action close_receipt [12:25:26]cmd_close_receipt [12:25:26]MH_GetDate [12:25:26]Write to MH i2c: F0 00 00 67 52 A8 [12:25:26]Write i2c OK [12:25:26]MH_I2C_Read... [12:25:26]Read from MH i2c: F0 [12:25:26]MH_I2C_Read... [12:25:26]Read from MH i2c: F0 09 00 [12:25:26]MH_I2C_Read... [12:25:26]Read from MH i2c: F0 09 00 67 52 00 3C 31 1E 67 50 D1 6C 64 94 [12:25:26]GetLastDocTimeStamp 1730031918 [12:25:26]current date 1730031932 [12:25:26]FM_GetShiftState [12:25:26]SAM_PROTO_GetShiftState [12:25:26]wFMCommunicate request_size=4 [12:25:26]MH_SAM_APDU [12:25:26]CAPDU: 80 13 01 00 [12:25:26]Write to MH i2c: E2 08 00 68 52 80 13 01 00 00 00 00 00 37 [12:25:26]Write i2c OK [12:25:26]MH_I2C_Read... [12:25:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:25:26]Read from MH i2c: E2 [12:25:26]MH_I2C_Read... [12:25:26]Read from MH i2c: E2 0E 00 [12:25:26]MH_I2C_Read... [12:25:26]Read from MH i2c: E2 0E 00 68 52 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 04 [12:25:26]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [12:25:26]wFMCommunicate OK [12:25:26]SAM_PROTO_GetShiftState done [12:25:26]FM_GetShiftState done [12:25:26]opened in 1729989044 [12:25:26]opened+sec_in_day 1730075444 [12:25:26]quantity*price = 11038 [12:25:26]sum+1 = 11040 [12:25:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 110.39 НСП 1% : 0.98 НДС 12% : 11.72 Наличными: 0.00 Безнал.: 110.39 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 118 27.10.2024 12:25 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 156567 ФПД: 247724787980334 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T122532&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156567&fm=247724787980334&tin=02508201610067®Number=0000000000091693&sum=11039 [12:25:28]StoreToDocumentArchive [12:25:28]shift 537 fd 156567 [12:25:28]save to /storage/0537/doc_00156567 [12:25:28]save last doc name /storage/0537/doc_00156567 to /storage/kkm_last_doc_name [12:25:28]save OK [12:25:28]Clear old archive folders... [12:25:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:25:28]tlvbuf is B6F5E9A0 [12:25:28]SAM_PROTO_ClearQueue [12:25:28]wFMCommunicate request_size=4 [12:25:28]MH_SAM_APDU [12:25:28]CAPDU: 80 09 00 00 [12:25:28]Write to MH i2c: E2 08 00 75 52 80 09 00 00 00 00 00 00 39 [12:25:28]Write i2c OK [12:25:28]MH_I2C_Read... [12:25:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:25:28]Read from MH i2c: E2 [12:25:28]MH_I2C_Read... [12:25:28]Read from MH i2c: E2 03 00 [12:25:28]MH_I2C_Read... [12:25:28]Read from MH i2c: E2 03 00 75 52 00 90 00 3B [12:25:28]RAPDU: 90 00 [12:25:28]wFMCommunicate OK [12:25:28]SAM_PROTO_ClearQueue done [12:25:28]KKMCreateOFDPacket [12:25:28]OFDProtocolAddRootSTLVToBuf [12:25:28]FM_MakeSignedData [12:25:28]FM_MakeSignedData [12:25:28]SAM_PROTO_SignData [12:25:28]wFMCommunicate request_size=4 [12:25:28]MH_SAM_APDU [12:25:28]CAPDU: 80 0D 01 02 [12:25:28]Write to MH i2c: E2 08 00 76 52 80 0D 01 02 00 00 00 00 41 [12:25:28]Write i2c OK [12:25:28]MH_I2C_Read... [12:25:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:25:28]Read from MH i2c: E2 [12:25:28]MH_I2C_Read... [12:25:28]Read from MH i2c: E2 03 00 [12:25:28]MH_I2C_Read... [12:25:28]Read from MH i2c: E2 03 00 76 52 00 90 00 3C [12:25:28]RAPDU: 90 00 [12:25:28]wFMCommunicate OK [12:25:28]wFMCommunicate request_size=255 [12:25:28]MH_SAM_APDU [12:25: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 72 06 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 1F 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1F 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1F 2B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 3C 31 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 97 63 02 00 35 04 06 00 E1 [12:25:28]Write to MH i2c: E2 02 01 77 52 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 06 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 1F 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1F 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1F 2B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 3C 31 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 97 63 02 00 35 04 06 00 E1 00 00 3C [12:25:28]Write i2c OK [12:25:28]MH_I2C_Read... [12:25:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:25:28]Read from MH i2c: E2 [12:25:28]MH_I2C_Read... [12:25:28]Read from MH i2c: E2 03 00 [12:25:28]MH_I2C_Read... [12:25:28]Read from MH i2c: E2 03 00 77 52 00 90 00 3D [12:25:28]RAPDU: 90 00 [12:25:28]wFMCommunicate OK [12:25:28]wFMCommunicate request_size=10 [12:25:28]MH_SAM_APDU [12:25:28]CAPDU: 80 0D 02 02 05 4D EB FD 58 2E [12:25:28]Write to MH i2c: E2 0D 00 78 52 80 0D 02 02 05 00 4D EB FD 58 2E 00 00 09 [12:25:28]Write i2c OK [12:25:28]MH_I2C_Read... [12:25:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:25:28]Read from MH i2c: E2 [12:25:28]MH_I2C_Read... [12:25:28]Read from MH i2c: E2 03 00 [12:25:28]MH_I2C_Read... [12:25:28]Read from MH i2c: E2 03 00 78 52 00 90 00 3E [12:25:28]RAPDU: 90 00 [12:25:28]wFMCommunicate OK [12:25:28]wFMCommunicate request_size=4 [12:25:28]MH_SAM_APDU [12:25:28]CAPDU: 80 0D 03 02 [12:25:28]Write to MH i2c: E2 08 00 79 52 80 0D 03 02 00 00 00 00 46 [12:25:28]Write i2c OK [12:25:28]MH_I2C_Read... [12:25:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:25:28]Read from MH i2c: E2 [12:25:28]MH_I2C_Read... [12:25:28]Read from MH i2c: E2 0B 00 [12:25:28]MH_I2C_Read... [12:25:28]Read from MH i2c: E2 0B 00 79 52 00 F3 A2 E6 2B 67 B5 47 27 90 00 77 [12:25:28]RAPDU: F3 A2 E6 2B 67 B5 47 27 90 00 [12:25:28]wFMCommunicate OK [12:25:28]SAM_PROTO_SignData done [12:25:28]FM_MakeSignedData done [12:25:28]CreateOFDProtocolMessage [12:25:28]wFMCommunicate request_size=4 [12:25:28]MH_SAM_APDU [12:25:28]CAPDU: 80 11 00 00 [12:25:28]Write to MH i2c: E2 08 00 7A 52 80 11 00 00 00 00 00 00 46 [12:25:28]Write i2c OK [12:25:28]MH_I2C_Read... [12:25:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:25:28]Read from MH i2c: E2 [12:25:28]MH_I2C_Read... [12:25:28]Read from MH i2c: E2 17 00 [12:25:28]MH_I2C_Read... [12:25:28]Read from MH i2c: E2 17 00 7A 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 9B [12:25:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:25:28]wFMCommunicate OK [12:25:28]CreateOFDProtocolMessage done [12:25:28]OFDSenderStorePacket 156567 [12:25:28]StoreOFDPacket docnum=156567 [12:25:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 AE 21 07 01 BD 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 72 06 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 1F 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1F 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1F 2B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 3C 31 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 97 63 02 00 35 04 06 00 E1 4D EB FD 58 2E F3 A2 E6 2B 67 B5 47 27 [12:25:28]CheckFolder [12:25:28]dirname=/storage/ofd_packets [12:25:28]CheckFolder done [12:25:28]ProducePacketName [12:25:28]name=ofd_packets/00156567 [12:25:28]NVStorageSaveData ofd_packets/00156567 [12:25:28]File name is /storage/ofd_packets/00156567 [12:25:28]Write 301 bytes [12:25:28]NVStorageSaveData done [12:25:28]OFDSenderStorePacket done [12:25:28]KKMCreateOFDPacket done [12:25:28]NVStorageSaveData kkm_last_timestamp [12:25:28]File name is /storage/kkm_last_timestamp [12:25:28]Write 4 bytes [12:25:28]NVStorageSaveData done [12:25:28]ExternCall_PrintAddStr [12:25:28]wPrintStart [12:25:28]Write to MH i2c: 01 00 00 7B 52 CD [12:25:28]Write i2c OK [12:25:28]MH_I2C_Read... [12:25:28]Read from MH i2c: 01 [12:25:28]MH_I2C_Read... [12:25:28]Read from MH i2c: 01 07 00 [12:25:28]MH_I2C_Read... [12:25:28]Read from MH i2c: 01 07 00 7B 52 00 00 00 00 00 FF 0F E2 [12:25:28]RasterBufferAndPrint [12:25:28]line Счет N : (1)99382 [12:25:28]line ИНН: 02508201610067 [12:25:28]line Контрольно-Кассовый Чек [12:25:28]line ПРОДАЖА [12:25:28]line ТРК (МРК, ГНК) : 21 [12:25:28]line Товар: 2710124130 [12:25:28]line Аи-92-К-5 [12:25:28]line 1.650 * 66.90 [12:25:28]line = 110.39 [12:25:28]line НДС 12% НСП 1% [12:25:28]line > о реализуемом товаре [12:25:28]line ИТОГО: 110.39 [12:25:28]line НСП 1% : 0.98 [12:25:28]line НДС 12% : 11.72 [12:25:28]line Наличными: 0.00 [12:25:28]line Безнал.: 110.39 [12:25:28]line Место: АЗС № 143 "Партнер Нефть" [12:25:28]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [12:25:28]line СНО: Общий режим [12:25:28]line Чек 118 27.10.2024 12:25 [12:25:28]line Смена: 537 ФФД: 1.0 [12:25:28]line ЗНМ: 0300000096 [12:25:28]line РНМ: 0000000000091693 [12:25:28]line Версия ККМ: 001 [12:25:28]line Платежная система: Mbank [12:25:28]line ФМ: 0000000000871792 [12:25:28]line ФД: 156567 [12:25:28]line ФПД: 247724787980334 [12:25:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T122532&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156567&fm=247724787980334&tin=02508201610067®Number=0000000000091693&sum=11039 [12:25:28]written 0, free lines is 4095 [12:25:28]OFD Sender: Processing packet 156567 [packets to send 31, broken 30] [12:25:28]ProducePacketName [12:25:28]name=ofd_packets/00156567 [12:25:28]OFD Sender: To server: pG, [12:25:28]CommunicateWithHost lk.salyk.kg:30040 [12:25:28]ConnectInit lk.salyk.kg [12:25:29]Connected sock=10 [12:25:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 AE 21 07 01 BD 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 72 06 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 1F 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1F 2B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1F 2B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 3C 31 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 97 63 02 00 35 04 06 00 E1 4D EB FD 58 2E F3 A2 E6 2B 67 B5 47 27 [12:25:29]Write to MH i2c: 01 00 00 A4 52 F6 [12:25:29]Write i2c OK [12:25:29]MH_I2C_Read... [12:25:29]Read from MH i2c: 01 [12:25:29]MH_I2C_Read... [12:25:29]Read from MH i2c: 01 07 00 [12:25:29]MH_I2C_Read... [12:25:29]Read from MH i2c: 01 07 00 A4 52 00 00 00 00 00 1E 0D 28 [12:25:29]RasterBufferAndPrint [12:25:29]line [12:25:29]line [12:25:29]line [12:25:29]line [12:25:29]line [12:25:29]written 0, free lines is 3363 [12:25:29]process_action close_receipt done [12:25:29]requested_data is exist [12:25:29]produce_requested_data [12:25:29]requested_item fm.sn is exist - process it [12:25:29]wFMCommunicate request_size=4 [12:25:29]MH_SAM_APDU [12:25:29]CAPDU: 80 11 00 00 [12:25:29]Write to MH i2c: E2 08 00 AB 52 80 11 00 00 00 00 00 00 77 [12:25:29]Write i2c OK [12:25:29]MH_I2C_Read... [12:25:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:25:29]Read from MH i2c: E2 [12:25:29]MH_I2C_Read... [12:25:29]Read from MH i2c: E2 17 00 [12:25:29]MH_I2C_Read... [12:25:29]Read from MH i2c: E2 17 00 AB 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 CC [12:25:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:25:29]wFMCommunicate OK [12:25:29]requested_item fd.num is exist - process it [12:25:29]SAM_PROTO_GetFieldsCounters [12:25:29]wFMCommunicate request_size=4 [12:25:29]MH_SAM_APDU [12:25:29]CAPDU: 80 13 00 00 [12:25:29]Write to MH i2c: E2 08 00 AC 52 80 13 00 00 00 00 00 00 7A [12:25:29]Write i2c OK [12:25:29]MH_I2C_Read... [12:25:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:25:29]Read from MH i2c: E2 [12:25:29]MH_I2C_Read... [12:25:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 1E E3 47 00 E9 B4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 97 63 02 00 F4 03 04 00 AC D6 1D 67 B6 04 01 00 00 D1 90 50 84 5B 10 BD 22 [12:25:29]CommunicateWithHost err = 0 [12:25:29]CheckOFDResponse [12:25:29]1017 (14) - 77093643461234 [12:25:29]1041 (16) - 0000000000871792 [12:25:29]1040 (4) - 156567 [12:25:29]1012 (4) - 27.10.2024 05:59 [12:25:29]1206 (1) - 0 [12:25:29]OFD Sender: Remove packet 156567 [12:25:29]ProducePacketName [12:25:29]name=ofd_packets/00156567 [12:25:29]NVStorageDeleteData [12:25:29]Read from MH i2c: E2 62 00 [12:25:29]MH_I2C_Read... [12:25:29]Read from MH i2c: E2 62 00 AC 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 97 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 19 [12:25:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 97 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:25:29]wFMCommunicate OK [12:25:29]SAM_PROTO_GetFieldsCounters done [12:25:29]requested_item shift.num is exist - process it [12:25:29]requested_item shift.opened is exist - process it [12:25:29]req_shift_opened [12:25:29]FM_GetShiftState [12:25:29]SAM_PROTO_GetShiftState [12:25:29]wFMCommunicate request_size=4 [12:25:29]MH_SAM_APDU [12:25:29]CAPDU: 80 13 01 00 [12:25:29]Write to MH i2c: E2 08 00 AD 52 80 13 01 00 00 00 00 00 7C [12:25:29]Write i2c OK [12:25:29]MH_I2C_Read... [12:25:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:25:29]Read from MH i2c: E2 [12:25:29]MH_I2C_Read... [12:25:29]Read from MH i2c: E2 0E 00 [12:25:29]MH_I2C_Read... [12:25:29]Read from MH i2c: E2 0E 00 AD 52 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 49 [12:25:29]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [12:25:29]wFMCommunicate OK [12:25:29]SAM_PROTO_GetShiftState done [12:25:29]FM_GetShiftState done [12:25:29]req_shift_opened done [12:25:29]requested_item shift.open_date is exist - process it [12:25:29]req_shift_open_date [12:25:29]req_shift_open_date done [12:25:29]produce_requested_data done [12:25:29]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156567,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [12:25:29]process_action_free close_receipt [12:25:29]json_value_free [12:25:29]json_value_free done [12:25:29]process_json_proto returns [12:25:29]Send response to host [12:25:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156567,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [12:25:29]free response buf [12:25:29]execute_script done [12:25:29]execute_script returns [12:25:29]free content buf [12:25:29]Sock 8.Close socket [12:25:29]Sock 8.Thread stoped [12:25:29]OFD Sender: No OFD packet to send [12:25:34]accept exits with 9 [12:25:34]New connection [12:25:34]New thread 3066834276 created [12:25:34]Thread 3066977636 joined [12:25:34]Waiting for new connection... [12:25:34] Sock 9.Parse request [12:25:34]Sock 9.Check first char [12:25:34]Sock 9.First char is OK [12:25:34]request: POST /json_proto HTTP/1.0 [12:25:34]Method: POST [12:25:34]URL: /json_proto [12:25:34]Method is POST - this is cgi request [12:25:34]url: /json_proto [12:25:34]query_string will be loaded in cgi processing [12:25:34]execute_cgi json_proto POST (null) [12:25:34]execute_cgi path=json_proto method=POST [12:25:34]POST find Content-Length [12:25:34]Host: 172.17.63.3:8080 [12:25:34]Content-Length: 765 [12:25:34]Content-Type: application/json [12:25:34] [12:25:34]POST finish read [12:25:34]Found Content-Length = 765 [12:25:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99381", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.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: Mbank", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:25:34]execute_script... [12:25: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)99381", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.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: Mbank", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:25:34]POST & json_proto [12:25:34]process_json_proto [12:25:34]json parsed OK: [12:25:34]protocol is kg_v1.0 [12:25:34]action value=close_receipt [12:25:34]process_action close_receipt [12:25:34]cmd_close_receipt [12:25:34]MH_GetDate [12:25:34]Write to MH i2c: F0 00 00 AE 52 EF [12:25:34]Write i2c OK [12:25:34]MH_I2C_Read... [12:25:34]Read from MH i2c: F0 [12:25:34]MH_I2C_Read... [12:25:34]Read from MH i2c: F0 09 00 [12:25:34]MH_I2C_Read... [12:25:34]Read from MH i2c: F0 09 00 AE 52 00 44 31 1E 67 50 D1 6C 64 E3 [12:25:34]GetLastDocTimeStamp 1730031932 [12:25:34]current date 1730031940 [12:25:34]FM_GetShiftState [12:25:34]SAM_PROTO_GetShiftState [12:25:34]wFMCommunicate request_size=4 [12:25:34]MH_SAM_APDU [12:25:34]CAPDU: 80 13 01 00 [12:25:34]Write to MH i2c: E2 08 00 AF 52 80 13 01 00 00 00 00 00 7E [12:25:34]Write i2c OK [12:25:34]MH_I2C_Read... [12:25:34]Read from MH i2c: E2 [12:25:34]MH_I2C_Read... [12:25:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:25:34]Read from MH i2c: E2 0E 00 [12:25:34]MH_I2C_Read... [12:25:34]Read from MH i2c: E2 0E 00 AF 52 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 4B [12:25:34]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [12:25:34]wFMCommunicate OK [12:25:34]SAM_PROTO_GetShiftState done [12:25:34]FM_GetShiftState done [12:25:34]opened in 1729989044 [12:25:34]opened+sec_in_day 1730075444 [12:25:34]quantity*price = 20003 [12:25:34]sum+1 = 20004 [12:25:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.03 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 0.00 Безнал.: 200.03 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 119 27.10.2024 12:25 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 156568 ФПД: 78893574758040 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T122540&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156568&fm=78893574758040&tin=02508201610067®Number=0000000000091693&sum=20003 [12:25:35]StoreToDocumentArchive [12:25:35]shift 537 fd 156568 [12:25:35]save to /storage/0537/doc_00156568 [12:25:35]save last doc name /storage/0537/doc_00156568 to /storage/kkm_last_doc_name [12:25:35]save OK [12:25:35]Clear old archive folders... [12:25:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:25:35]tlvbuf is 01754310 [12:25:35]SAM_PROTO_ClearQueue [12:25:35]wFMCommunicate request_size=4 [12:25:35]MH_SAM_APDU [12:25:35]CAPDU: 80 09 00 00 [12:25:35]Write to MH i2c: E2 08 00 BC 52 80 09 00 00 00 00 00 00 80 [12:25:35]Write i2c OK [12:25:35]MH_I2C_Read... [12:25:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:25:35]Read from MH i2c: E2 [12:25:35]MH_I2C_Read... [12:25:35]Read from MH i2c: E2 03 00 [12:25:35]MH_I2C_Read... [12:25:35]Read from MH i2c: E2 03 00 BC 52 00 90 00 82 [12:25:35]RAPDU: 90 00 [12:25:35]wFMCommunicate OK [12:25:35]SAM_PROTO_ClearQueue done [12:25:35]KKMCreateOFDPacket [12:25:35]OFDProtocolAddRootSTLVToBuf [12:25:35]FM_MakeSignedData [12:25:35]FM_MakeSignedData [12:25:35]SAM_PROTO_SignData [12:25:35]wFMCommunicate request_size=4 [12:25:35]MH_SAM_APDU [12:25:35]CAPDU: 80 0D 01 02 [12:25:35]Write to MH i2c: E2 08 00 BD 52 80 0D 01 02 00 00 00 00 88 [12:25:35]Write i2c OK [12:25:35]MH_I2C_Read... [12:25:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:25:35]Read from MH i2c: E2 [12:25:35]MH_I2C_Read... [12:25:35]Read from MH i2c: E2 03 00 [12:25:35]MH_I2C_Read... [12:25:35]Read from MH i2c: E2 03 00 BD 52 00 90 00 83 [12:25:35]RAPDU: 90 00 [12:25:35]wFMCommunicate OK [12:25:35]wFMCommunicate request_size=255 [12:25:35]MH_SAM_APDU [12:25: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 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 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 44 31 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 98 63 02 00 35 04 06 00 47 [12:25:35]Write to MH i2c: E2 02 01 BE 52 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 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 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 44 31 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 98 63 02 00 35 04 06 00 47 00 00 B4 [12:25:35]Write i2c OK [12:25:35]MH_I2C_Read... [12:25:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:25:36]Read from MH i2c: E2 [12:25:36]MH_I2C_Read... [12:25:36]Read from MH i2c: E2 03 00 [12:25:36]MH_I2C_Read... [12:25:36]Read from MH i2c: E2 03 00 BE 52 00 90 00 84 [12:25:36]RAPDU: 90 00 [12:25:36]wFMCommunicate OK [12:25:36]wFMCommunicate request_size=10 [12:25:36]MH_SAM_APDU [12:25:36]CAPDU: 80 0D 02 02 05 C0 D7 7F 9E 98 [12:25:36]Write to MH i2c: E2 0D 00 BF 52 80 0D 02 02 05 00 C0 D7 7F 9E 98 00 00 E1 [12:25:36]Write i2c OK [12:25:36]MH_I2C_Read... [12:25:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:25:36]Read from MH i2c: E2 [12:25:36]MH_I2C_Read... [12:25:36]Read from MH i2c: E2 03 00 [12:25:36]MH_I2C_Read... [12:25:36]Read from MH i2c: E2 03 00 BF 52 00 90 00 85 [12:25:36]RAPDU: 90 00 [12:25:36]wFMCommunicate OK [12:25:36]wFMCommunicate request_size=4 [12:25:36]MH_SAM_APDU [12:25:36]CAPDU: 80 0D 03 02 [12:25:36]Write to MH i2c: E2 08 00 C0 52 80 0D 03 02 00 00 00 00 8D [12:25:36]Write i2c OK [12:25:36]MH_I2C_Read... [12:25:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:25:36]Read from MH i2c: E2 [12:25:36]MH_I2C_Read... [12:25:36]Read from MH i2c: E2 0B 00 [12:25:36]MH_I2C_Read... [12:25:36]Read from MH i2c: E2 0B 00 C0 52 00 25 6A 1E 07 7D 61 6D 8D 90 00 1A [12:25:36]RAPDU: 25 6A 1E 07 7D 61 6D 8D 90 00 [12:25:36]wFMCommunicate OK [12:25:36]SAM_PROTO_SignData done [12:25:36]FM_MakeSignedData done [12:25:36]CreateOFDProtocolMessage [12:25:36]wFMCommunicate request_size=4 [12:25:36]MH_SAM_APDU [12:25:36]CAPDU: 80 11 00 00 [12:25:36]Write to MH i2c: E2 08 00 C1 52 80 11 00 00 00 00 00 00 8D [12:25:36]Write i2c OK [12:25:36]MH_I2C_Read... [12:25:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:25:36]Read from MH i2c: E2 [12:25:36]MH_I2C_Read... [12:25:36]Read from MH i2c: E2 17 00 [12:25:36]MH_I2C_Read... [12:25:36]Read from MH i2c: E2 17 00 C1 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 E2 [12:25:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:25:36]wFMCommunicate OK [12:25:36]CreateOFDProtocolMessage done [12:25:36]OFDSenderStorePacket 156568 [12:25:36]StoreOFDPacket docnum=156568 [12:25:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 E0 DE 07 01 D2 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 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 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 44 31 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 98 63 02 00 35 04 06 00 47 C0 D7 7F 9E 98 25 6A 1E 07 7D 61 6D 8D [12:25:36]CheckFolder [12:25:36]dirname=/storage/ofd_packets [12:25:36]CheckFolder done [12:25:36]ProducePacketName [12:25:36]name=ofd_packets/00156568 [12:25:36]NVStorageSaveData ofd_packets/00156568 [12:25:36]File name is /storage/ofd_packets/00156568 [12:25:36]Write 301 bytes [12:25:36]NVStorageSaveData done [12:25:36]OFDSenderStorePacket done [12:25:36]KKMCreateOFDPacket done [12:25:36]NVStorageSaveData kkm_last_timestamp [12:25:36]File name is /storage/kkm_last_timestamp [12:25:36]Write 4 bytes [12:25:36]NVStorageSaveData done [12:25:36]ExternCall_PrintAddStr [12:25:36]wPrintStart [12:25:36]Write to MH i2c: 01 00 00 C2 52 14 [12:25:36]Write i2c OK [12:25:36]MH_I2C_Read... [12:25:36]Read from MH i2c: 01 [12:25:36]MH_I2C_Read... [12:25:36]Read from MH i2c: 01 07 00 [12:25:36]MH_I2C_Read... [12:25:36]Read from MH i2c: 01 07 00 C2 52 00 00 00 00 00 FF 0F 29 [12:25:36]RasterBufferAndPrint [12:25:36]line Счет N : (1)99381 [12:25:36]line ИНН: 02508201610067 [12:25:36]line Контрольно-Кассовый Чек [12:25:36]line ПРОДАЖА [12:25:36]line ТРК (МРК, ГНК) : 31 [12:25:36]line Товар: 2710124130 [12:25:36]line Аи-92-К-5 [12:25:36]line 2.990 * 66.90 [12:25:36]line = 200.03 [12:25:36]line НДС 12% НСП 1% [12:25:36]line > о реализуемом товаре [12:25:36]line ИТОГО: 200.03 [12:25:36]line НСП 1% : 1.77 [12:25:36]line НДС 12% : 21.24 [12:25:36]line Наличными: 0.00 [12:25:36]line Безнал.: 200.03 [12:25:36]line Место: АЗС № 143 "Партнер Нефть" [12:25:36]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [12:25:36]line СНО: Общий режим [12:25:36]line Чек 119 27.10.2024 12:25 [12:25:36]line Смена: 537 ФФД: 1.0 [12:25:36]line ЗНМ: 0300000096 [12:25:36]line РНМ: 0000000000091693 [12:25:36]line Версия ККМ: 001 [12:25:36]line Платежная система: Mbank [12:25:36]line ФМ: 0000000000871792 [12:25:36]line ФД: 156568 [12:25:36]line ФПД: 78893574758040 [12:25:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T122540&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156568&fm=78893574758040&tin=02508201610067®Number=0000000000091693&sum=20003 [12:25:36]written 0, free lines is 4095 [12:25:36]OFD Sender: Processing packet 156568 [packets to send 31, broken 30] [12:25:36]ProducePacketName [12:25:36]name=ofd_packets/00156568 [12:25:36]OFD Sender: To server: pG, [12:25:36]CommunicateWithHost lk.salyk.kg:30040 [12:25:36]ConnectInit lk.salyk.kg [12:25:36]Connected sock=10 [12:25:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 E0 DE 07 01 D2 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 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 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 44 31 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 98 63 02 00 35 04 06 00 47 C0 D7 7F 9E 98 25 6A 1E 07 7D 61 6D 8D [12:25:36]Write to MH i2c: 01 00 00 EB 52 3D [12:25:36]Write i2c OK [12:25:36]MH_I2C_Read... [12:25:36]Read from MH i2c: 01 [12:25:36]MH_I2C_Read... [12:25:36]Read from MH i2c: 01 07 00 [12:25:36]MH_I2C_Read... [12:25:36]Read from MH i2c: 01 07 00 EB 52 00 00 00 00 00 23 0D 74 [12:25:36]RasterBufferAndPrint [12:25:36]line [12:25:36]line [12:25:36]line [12:25:36]line [12:25:36]line [12:25:36]written 0, free lines is 3372 [12:25:36]process_action close_receipt done [12:25:36]requested_data is exist [12:25:36]produce_requested_data [12:25:36]requested_item fm.sn is exist - process it [12:25:36]wFMCommunicate request_size=4 [12:25:36]MH_SAM_APDU [12:25:36]CAPDU: 80 11 00 00 [12:25:36]Write to MH i2c: E2 08 00 F2 52 80 11 00 00 00 00 00 00 BE [12:25:36]Write i2c OK [12:25:36]MH_I2C_Read... [12:25:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:25:36]Read from MH i2c: E2 [12:25:36]MH_I2C_Read... [12:25:36]Read from MH i2c: E2 17 00 [12:25:36]MH_I2C_Read... [12:25:36]Read from MH i2c: E2 17 00 F2 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 13 [12:25:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:25:36]wFMCommunicate OK [12:25:36]requested_item fd.num is exist - process it [12:25:36]SAM_PROTO_GetFieldsCounters [12:25:36]wFMCommunicate request_size=4 [12:25:36]MH_SAM_APDU [12:25:36]CAPDU: 80 13 00 00 [12:25:36]Write to MH i2c: E2 08 00 F3 52 80 13 00 00 00 00 00 00 C1 [12:25:36]Write i2c OK [12:25:36]MH_I2C_Read... [12:25:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:25:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 0E 96 47 00 DD 41 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 98 63 02 00 F4 03 04 00 B3 D6 1D 67 B6 04 01 00 00 88 40 C9 D1 DF E8 66 CF [12:25:36]CommunicateWithHost err = 0 [12:25:36]CheckOFDResponse [12:25:36]1017 (14) - 77093643461234 [12:25:36]1041 (16) - 0000000000871792 [12:25:36]1040 (4) - 156568 [12:25:36]1012 (4) - 27.10.2024 05:59 [12:25:36]1206 (1) - 0 [12:25:36]OFD Sender: Remove packet 156568 [12:25:36]ProducePacketName [12:25:36]name=ofd_packets/00156568 [12:25:36]NVStorageDeleteData [12:25:36]Read from MH i2c: E2 [12:25:36]MH_I2C_Read... [12:25:36]Read from MH i2c: E2 62 00 [12:25:36]MH_I2C_Read... [12:25:36]Read from MH i2c: E2 62 00 F3 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 98 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 64 [12:25:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 98 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:25:36]wFMCommunicate OK [12:25:36]SAM_PROTO_GetFieldsCounters done [12:25:36]requested_item shift.num is exist - process it [12:25:36]requested_item shift.opened is exist - process it [12:25:36]req_shift_opened [12:25:36]FM_GetShiftState [12:25:36]SAM_PROTO_GetShiftState [12:25:36]wFMCommunicate request_size=4 [12:25:36]MH_SAM_APDU [12:25:36]CAPDU: 80 13 01 00 [12:25:36]Write to MH i2c: E2 08 00 F4 52 80 13 01 00 00 00 00 00 C3 [12:25:36]Write i2c OK [12:25:36]MH_I2C_Read... [12:25:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:25:36]Read from MH i2c: E2 [12:25:36]MH_I2C_Read... [12:25:36]Read from MH i2c: E2 0E 00 [12:25:36]MH_I2C_Read... [12:25:36]Read from MH i2c: E2 0E 00 F4 52 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 90 [12:25:36]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [12:25:36]wFMCommunicate OK [12:25:36]SAM_PROTO_GetShiftState done [12:25:36]FM_GetShiftState done [12:25:36]req_shift_opened done [12:25:36]requested_item shift.open_date is exist - process it [12:25:36]req_shift_open_date [12:25:36]req_shift_open_date done [12:25:36]produce_requested_data done [12:25:36]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156568,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [12:25:36]process_action_free close_receipt [12:25:36]json_value_free [12:25:36]json_value_free done [12:25:36]process_json_proto returns [12:25:36]Send response to host [12:25:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156568,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [12:25:36]free response buf [12:25:36]execute_script done [12:25:36]execute_script returns [12:25:36]free content buf [12:25:36]Sock 9.Close socket [12:25:36]Sock 9.Thread stoped [12:25:37]OFD Sender: No OFD packet to send [12:25:42]OFD Sender: No OFD packet to send [12:25:47]OFD Sender: No OFD packet to send [12:25:52]OFD Sender: No OFD packet to send [12:25:57]OFD Sender: No OFD packet to send [12:26:02]OFD Sender: No OFD packet to send [12:26:07]OFD Sender: No OFD packet to send [12:26:12]OFD Sender: No OFD packet to send [12:26:17]OFD Sender: No OFD packet to send [12:26:22]OFD Sender: No OFD packet to send [12:26:27]OFD Sender: No OFD packet to send [12:26:32]OFD Sender: No OFD packet to send [12:26:37]OFD Sender: No OFD packet to send [12:26:42]OFD Sender: No OFD packet to send [12:26:47]OFD Sender: No OFD packet to send [12:26:52]OFD Sender: No OFD packet to send [12:26:57]OFD Sender: No OFD packet to send [12:27:02]OFD Sender: No OFD packet to send [12:27:07]OFD Sender: No OFD packet to send [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:45]accept exits with 8 [12:27:45]New connection [12:27:45]New thread 3066977636 created [12:27:45]Thread 3066834276 joined [12:27:45]Waiting for new connection... [12:27:45] Sock 8.Parse request [12:27:45]Sock 8.Check first char [12:27:45]Sock 8.First char is OK [12:27:45]request: POST /json_proto HTTP/1.0 [12:27:45]Method: POST [12:27:45]URL: /json_proto [12:27:45]Method is POST - this is cgi request [12:27:45]url: /json_proto [12:27:45]query_string will be loaded in cgi processing [12:27:45]execute_cgi json_proto POST (null) [12:27:45]execute_cgi path=json_proto method=POST [12:27:45]POST find Content-Length [12:27:45]Host: 172.17.63.3:8080 [12:27:45]Content-Length: 676 [12:27:45]Content-Type: application/json [12:27:45] [12:27:45]POST finish read [12:27:45]Found Content-Length = 676 [12:27:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99383", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:27:45]execute_script... [12:27: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)99383", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:27:45]POST & json_proto [12:27:45]process_json_proto [12:27:45]json parsed OK: [12:27:45]protocol is kg_v1.0 [12:27:45]action value=close_receipt [12:27:45]process_action close_receipt [12:27:45]cmd_close_receipt [12:27:45]MH_GetDate [12:27:45]Write to MH i2c: F0 00 00 F5 52 36 [12:27:45]Write i2c OK [12:27:45]MH_I2C_Read... [12:27:45]Read from MH i2c: F0 [12:27:45]MH_I2C_Read... [12:27:45]Read from MH i2c: F0 09 00 [12:27:45]MH_I2C_Read... [12:27:45]Read from MH i2c: F0 09 00 F5 52 00 C7 31 1E 67 50 D1 6C 64 AD [12:27:45]GetLastDocTimeStamp 1730031940 [12:27:45]current date 1730032071 [12:27:45]FM_GetShiftState [12:27:45]SAM_PROTO_GetShiftState [12:27:45]wFMCommunicate request_size=4 [12:27:45]MH_SAM_APDU [12:27:45]CAPDU: 80 13 01 00 [12:27:45]Write to MH i2c: E2 08 00 F6 52 80 13 01 00 00 00 00 00 C5 [12:27:45]Write i2c OK [12:27:45]MH_I2C_Read... [12:27:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:27:45]Read from MH i2c: E2 [12:27:45]MH_I2C_Read... [12:27:45]Read from MH i2c: E2 0E 00 [12:27:45]MH_I2C_Read... [12:27:45]Read from MH i2c: E2 0E 00 F6 52 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 92 [12:27:45]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [12:27:45]wFMCommunicate OK [12:27:45]SAM_PROTO_GetShiftState done [12:27:45]FM_GetShiftState done [12:27:45]opened in 1729989044 [12:27:45]opened+sec_in_day 1730075444 [12:27:45]quantity*price = 50041 [12:27:45]sum+1 = 50042 [12:27:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 120 27.10.2024 12:27 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156569 ФПД: 259121168626111 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T122751&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156569&fm=259121168626111&tin=02508201610067®Number=0000000000091693&sum=50000 [12:27:46]StoreToDocumentArchive [12:27:46]shift 537 fd 156569 [12:27:46]save to /storage/0537/doc_00156569 [12:27:46]save last doc name /storage/0537/doc_00156569 to /storage/kkm_last_doc_name [12:27:46]save OK [12:27:46]Clear old archive folders... [12:27:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:27:46]tlvbuf is 016B3D40 [12:27:46]SAM_PROTO_ClearQueue [12:27:46]wFMCommunicate request_size=4 [12:27:46]MH_SAM_APDU [12:27:46]CAPDU: 80 09 00 00 [12:27:46]Write to MH i2c: E2 08 00 03 53 80 09 00 00 00 00 00 00 C8 [12:27:46]Write i2c OK [12:27:46]MH_I2C_Read... [12:27:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:27:46]Read from MH i2c: E2 [12:27:46]MH_I2C_Read... [12:27:46]Read from MH i2c: E2 03 00 [12:27:46]MH_I2C_Read... [12:27:46]Read from MH i2c: E2 03 00 03 53 00 90 00 CA [12:27:46]RAPDU: 90 00 [12:27:46]wFMCommunicate OK [12:27:46]SAM_PROTO_ClearQueue done [12:27:46]KKMCreateOFDPacket [12:27:46]OFDProtocolAddRootSTLVToBuf [12:27:46]FM_MakeSignedData [12:27:46]FM_MakeSignedData [12:27:46]SAM_PROTO_SignData [12:27:46]wFMCommunicate request_size=4 [12:27:46]MH_SAM_APDU [12:27:46]CAPDU: 80 0D 01 02 [12:27:46]Write to MH i2c: E2 08 00 04 53 80 0D 01 02 00 00 00 00 D0 [12:27:46]Write i2c OK [12:27:46]MH_I2C_Read... [12:27:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:27:46]Read from MH i2c: E2 [12:27:46]MH_I2C_Read... [12:27:46]Read from MH i2c: E2 03 00 [12:27:46]MH_I2C_Read... [12:27:46]Read from MH i2c: E2 03 00 04 53 00 90 00 CB [12:27:46]RAPDU: 90 00 [12:27:46]wFMCommunicate OK [12:27:46]wFMCommunicate request_size=255 [12:27:46]MH_SAM_APDU [12:27: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 C7 31 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 99 63 02 00 35 04 06 00 EB [12:27:46]Write to MH i2c: E2 02 01 05 53 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 C7 31 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 99 63 02 00 35 04 06 00 EB 00 00 5D [12:27:46]Write i2c OK [12:27:46]MH_I2C_Read... [12:27:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:27:47]Read from MH i2c: E2 [12:27:47]MH_I2C_Read... [12:27:47]Read from MH i2c: E2 03 00 [12:27:47]MH_I2C_Read... [12:27:47]Read from MH i2c: E2 03 00 05 53 00 90 00 CC [12:27:47]RAPDU: 90 00 [12:27:47]wFMCommunicate OK [12:27:47]wFMCommunicate request_size=10 [12:27:47]MH_SAM_APDU [12:27:47]CAPDU: 80 0D 02 02 05 AB 59 35 B1 BF [12:27:47]Write to MH i2c: E2 0D 00 06 53 80 0D 02 02 05 00 AB 59 35 B1 BF 00 00 86 [12:27:47]Write i2c OK [12:27:47]MH_I2C_Read... [12:27:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:27:47]Read from MH i2c: E2 [12:27:47]MH_I2C_Read... [12:27:47]Read from MH i2c: E2 03 00 [12:27:47]MH_I2C_Read... [12:27:47]Read from MH i2c: E2 03 00 06 53 00 90 00 CD [12:27:47]RAPDU: 90 00 [12:27:47]wFMCommunicate OK [12:27:47]wFMCommunicate request_size=4 [12:27:47]MH_SAM_APDU [12:27:47]CAPDU: 80 0D 03 02 [12:27:47]Write to MH i2c: E2 08 00 07 53 80 0D 03 02 00 00 00 00 D5 [12:27:47]Write i2c OK [12:27:47]MH_I2C_Read... [12:27:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:27:47]Read from MH i2c: E2 [12:27:47]MH_I2C_Read... [12:27:47]Read from MH i2c: E2 0B 00 [12:27:47]MH_I2C_Read... [12:27:47]Read from MH i2c: E2 0B 00 07 53 00 F4 07 C2 7E 74 2B 89 7E 90 00 B7 [12:27:47]RAPDU: F4 07 C2 7E 74 2B 89 7E 90 00 [12:27:47]wFMCommunicate OK [12:27:47]SAM_PROTO_SignData done [12:27:47]FM_MakeSignedData done [12:27:47]CreateOFDProtocolMessage [12:27:47]wFMCommunicate request_size=4 [12:27:47]MH_SAM_APDU [12:27:47]CAPDU: 80 11 00 00 [12:27:47]Write to MH i2c: E2 08 00 08 53 80 11 00 00 00 00 00 00 D5 [12:27:47]Write i2c OK [12:27:47]MH_I2C_Read... [12:27:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:27:47]Read from MH i2c: E2 [12:27:47]MH_I2C_Read... [12:27:47]Read from MH i2c: E2 17 00 [12:27:47]MH_I2C_Read... [12:27:47]Read from MH i2c: E2 17 00 08 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 2A [12:27:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:27:47]wFMCommunicate OK [12:27:47]CreateOFDProtocolMessage done [12:27:47]OFDSenderStorePacket 156569 [12:27:47]StoreOFDPacket docnum=156569 [12:27:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 57 B8 07 01 AA BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 C7 31 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 99 63 02 00 35 04 06 00 EB AB 59 35 B1 BF F4 07 C2 7E 74 2B 89 7E [12:27:47]CheckFolder [12:27:47]dirname=/storage/ofd_packets [12:27:47]CheckFolder done [12:27:47]ProducePacketName [12:27:47]name=ofd_packets/00156569 [12:27:47]NVStorageSaveData ofd_packets/00156569 [12:27:47]File name is /storage/ofd_packets/00156569 [12:27:47]Write 301 bytes [12:27:47]NVStorageSaveData done [12:27:47]OFDSenderStorePacket done [12:27:47]KKMCreateOFDPacket done [12:27:47]NVStorageSaveData kkm_last_timestamp [12:27:47]File name is /storage/kkm_last_timestamp [12:27:47]Write 4 bytes [12:27:47]NVStorageSaveData done [12:27:47]ExternCall_PrintAddStr [12:27:47]wPrintStart [12:27:47]Write to MH i2c: 01 00 00 09 53 5C [12:27:47]Write i2c OK [12:27:47]MH_I2C_Read... [12:27:47]Read from MH i2c: 01 [12:27:47]MH_I2C_Read... [12:27:47]Read from MH i2c: 01 07 00 [12:27:47]MH_I2C_Read... [12:27:47]Read from MH i2c: 01 07 00 09 53 00 00 00 00 00 FF 0F 71 [12:27:47]RasterBufferAndPrint [12:27:47]line Счет N : (1)99383 [12:27:47]line ИНН: 02508201610067 [12:27:47]line Контрольно-Кассовый Чек [12:27:47]line ПРОДАЖА [12:27:47]line ТРК (МРК, ГНК) : 21 [12:27:47]line Товар: 2710124130 [12:27:47]line Аи-92-К-5 [12:27:47]line 7.480 * 66.90 [12:27:47]line = 500.41 [12:27:47]line НДС 12% НСП 1% [12:27:47]line > о реализуемом товаре [12:27:47]line ОКРУГЛЕНИЕ: -0.41 [12:27:47]line ИТОГО: 500.00 [12:27:47]line Внесено: 500.00 [12:27:47]line СДАЧА: 0.00 [12:27:47]line НСП 1% : 4.43 [12:27:47]line НДС 12% : 53.14 [12:27:47]line Наличными: 500.00 [12:27:47]line Безнал.: 0.00 [12:27:47]line Место: АЗС № 143 "Партнер Нефть" [12:27:47]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [12:27:47]line СНО: Общий режим [12:27:47]line Чек 120 27.10.2024 12:27 [12:27:47]line Смена: 537 ФФД: 1.0 [12:27:47]line ЗНМ: 0300000096 [12:27:47]line РНМ: 0000000000091693 [12:27:47]line Версия ККМ: 001 [12:27:47]line ФМ: 0000000000871792 [12:27:47]line ФД: 156569 [12:27:47]line ФПД: 259121168626111 [12:27:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T122751&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156569&fm=259121168626111&tin=02508201610067®Number=0000000000091693&sum=50000 [12:27:47]OFD Sender: Processing packet 156569 [packets to send 31, broken 30] [12:27:47]ProducePacketName [12:27:47]name=ofd_packets/00156569 [12:27:47]OFD Sender: To server: pG, [12:27:47]CommunicateWithHost lk.salyk.kg:30040 [12:27:47]ConnectInit lk.salyk.kg [12:27:47]written 0, free lines is 4095 [12:27:47]Connected sock=11 [12:27:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 57 B8 07 01 AA BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 C7 31 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 99 63 02 00 35 04 06 00 EB AB 59 35 B1 BF F4 07 C2 7E 74 2B 89 7E [12:27:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 E1 46 47 00 E8 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 31 37 39 32 10 04 04 00 99 63 02 00 F4 03 04 00 36 D7 1D 67 B6 04 01 00 00 D3 FC 00 E8 DC 6D 3C B9 [12:27:47]CommunicateWithHost err = 0 [12:27:47]CheckOFDResponse [12:27:47]1017 (14) - 77093643461234 [12:27:47]1041 (16) - 0000000000871792 [12:27:47]1040 (4) - 156569 [12:27:47]1012 (4) - 27.10.2024 06:01 [12:27:47]1206 (1) - 0 [12:27:47]OFD Sender: Remove packet 156569 [12:27:47]ProducePacketName [12:27:47]name=ofd_packets/00156569 [12:27:47]NVStorageDeleteData [12:27:48]Write to MH i2c: 01 00 00 34 53 87 [12:27:48]Write i2c OK [12:27:48]MH_I2C_Read... [12:27:48]Read from MH i2c: 01 [12:27:48]MH_I2C_Read... [12:27:48]Read from MH i2c: 01 07 00 [12:27:48]MH_I2C_Read... [12:27:48]Read from MH i2c: 01 07 00 34 53 00 00 00 00 00 DC 0C 76 [12:27:48]RasterBufferAndPrint [12:27:48]line [12:27:48]line [12:27:48]line [12:27:48]line [12:27:48]line [12:27:48]written 0, free lines is 3298 [12:27:48]process_action close_receipt done [12:27:48]requested_data is exist [12:27:48]produce_requested_data [12:27:48]requested_item fm.sn is exist - process it [12:27:48]wFMCommunicate request_size=4 [12:27:48]MH_SAM_APDU [12:27:48]CAPDU: 80 11 00 00 [12:27:48]Write to MH i2c: E2 08 00 3B 53 80 11 00 00 00 00 00 00 08 [12:27:48]Write i2c OK [12:27:48]MH_I2C_Read... [12:27:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:27:48]Read from MH i2c: E2 [12:27:48]MH_I2C_Read... [12:27:48]Read from MH i2c: E2 17 00 [12:27:48]MH_I2C_Read... [12:27:48]Read from MH i2c: E2 17 00 3B 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 5D [12:27:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:27:48]wFMCommunicate OK [12:27:48]requested_item fd.num is exist - process it [12:27:48]SAM_PROTO_GetFieldsCounters [12:27:48]wFMCommunicate request_size=4 [12:27:48]MH_SAM_APDU [12:27:48]CAPDU: 80 13 00 00 [12:27:48]Write to MH i2c: E2 08 00 3C 53 80 13 00 00 00 00 00 00 0B [12:27:48]Write i2c OK [12:27:48]MH_I2C_Read... [12:27:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:27:48]Read from MH i2c: E2 [12:27:48]MH_I2C_Read... [12:27:48]Read from MH i2c: E2 62 00 [12:27:48]MH_I2C_Read... [12:27:48]Read from MH i2c: E2 62 00 3C 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 99 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 B2 [12:27:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 99 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:27:48]wFMCommunicate OK [12:27:48]SAM_PROTO_GetFieldsCounters done [12:27:48]requested_item shift.num is exist - process it [12:27:48]requested_item shift.opened is exist - process it [12:27:48]req_shift_opened [12:27:48]FM_GetShiftState [12:27:48]SAM_PROTO_GetShiftState [12:27:48]wFMCommunicate request_size=4 [12:27:48]MH_SAM_APDU [12:27:48]CAPDU: 80 13 01 00 [12:27:48]Write to MH i2c: E2 08 00 3D 53 80 13 01 00 00 00 00 00 0D [12:27:48]Write i2c OK [12:27:48]MH_I2C_Read... [12:27:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:27:48]Read from MH i2c: E2 [12:27:48]MH_I2C_Read... [12:27:48]Read from MH i2c: E2 0E 00 [12:27:48]MH_I2C_Read... [12:27:48]Read from MH i2c: E2 0E 00 3D 53 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 DA [12:27:48]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [12:27:48]wFMCommunicate OK [12:27:48]SAM_PROTO_GetShiftState done [12:27:48]FM_GetShiftState done [12:27:48]req_shift_opened done [12:27:48]requested_item shift.open_date is exist - process it [12:27:48]req_shift_open_date [12:27:48]req_shift_open_date done [12:27:48]produce_requested_data done [12:27:48]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156569,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [12:27:48]process_action_free close_receipt [12:27:48]json_value_free [12:27:48]json_value_free done [12:27:48]process_json_proto returns [12:27:48]Send response to host [12:27:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156569,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [12:27:48]free response buf [12:27:48]execute_script done [12:27:48]execute_script returns [12:27:48]free content buf [12:27:48]Sock 8.Close socket [12:27:48]Sock 8.Thread stoped [12:27:48]OFD Sender: No OFD packet to send [12:27:53]OFD Sender: No OFD packet to send [12:27:58]OFD Sender: No OFD packet to send [12:28:03]OFD Sender: No OFD packet to send [12:28:08]OFD Sender: No OFD packet to send [12:28:13]OFD Sender: No OFD packet to send [12:28:18]OFD Sender: No OFD packet to send [12:28:23]OFD Sender: No OFD packet to send [12:28:28]OFD Sender: No OFD packet to send [12:28:33]OFD Sender: No OFD packet to send [12:28:38]OFD Sender: No OFD packet to send [12:28:43]OFD Sender: No OFD packet to send [12:28:48]OFD Sender: No OFD packet to send [12:28:53]OFD Sender: No OFD packet to send [12:28:58]OFD Sender: No OFD packet to send [12:29:03]OFD Sender: No OFD packet to send [12:29:08]OFD Sender: No OFD packet to send [12:29:13]OFD Sender: No OFD packet to send [12:29:18]OFD Sender: No OFD packet to send [12:29:23]OFD Sender: No OFD packet to send [12:29:28]OFD Sender: No OFD packet to send [12:29:33]OFD Sender: No OFD packet to send [12:29:38]OFD Sender: No OFD packet to send [12:29:43]OFD Sender: No OFD packet to send [12:29:48]OFD Sender: No OFD packet to send [12:29:53]OFD Sender: No OFD packet to send [12:29:58]OFD Sender: No OFD packet to send [12:30:03]OFD Sender: No OFD packet to send [12:30:08]OFD Sender: No OFD packet to send [12:30:13]OFD Sender: No OFD packet to send [12:30:18]OFD Sender: No OFD packet to send [12:30:23]OFD Sender: No OFD packet to send [12:30:28]OFD Sender: No OFD packet to send [12:30:33]OFD Sender: No OFD packet to send [12:30:38]accept exits with 9 [12:30:38]New connection [12:30:38]New thread 3066834276 created [12:30:38]Thread 3066977636 joined [12:30:38]Waiting for new connection... [12:30:38] Sock 9.Parse request [12:30:38]Sock 9.Check first char [12:30:38]Sock 9.First char is OK [12:30:38]request: POST /json_proto HTTP/1.0 [12:30:38]Method: POST [12:30:38]URL: /json_proto [12:30:38]Method is POST - this is cgi request [12:30:38]url: /json_proto [12:30:38]query_string will be loaded in cgi processing [12:30:38]execute_cgi json_proto POST (null) [12:30:38]execute_cgi path=json_proto method=POST [12:30:38]POST find Content-Length [12:30:38]Host: 172.17.63.3:8080 [12:30:38]Content-Length: 681 [12:30:38]Content-Type: application/json [12:30:38] [12:30:38]POST finish read [12:30:38]Found Content-Length = 681 [12:30:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99384", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:30:38]execute_script... [12:30: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)99384", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:30:38]POST & json_proto [12:30:38]process_json_proto [12:30:38]json parsed OK: [12:30:38]protocol is kg_v1.0 [12:30:38]action value=close_receipt [12:30:38]process_action close_receipt [12:30:38]cmd_close_receipt [12:30:38]MH_GetDate [12:30:38]Write to MH i2c: F0 00 00 3E 53 80 [12:30:38]Write i2c OK [12:30:38]MH_I2C_Read... [12:30:38]Read from MH i2c: F0 [12:30:38]MH_I2C_Read... [12:30:38]Read from MH i2c: F0 09 00 [12:30:38]MH_I2C_Read... [12:30:38]Read from MH i2c: F0 09 00 3E 53 00 73 32 1E 67 50 D1 6C 64 A4 [12:30:38]GetLastDocTimeStamp 1730032071 [12:30:38]current date 1730032243 [12:30:38]FM_GetShiftState [12:30:38]SAM_PROTO_GetShiftState [12:30:38]wFMCommunicate request_size=4 [12:30:38]MH_SAM_APDU [12:30:38]CAPDU: 80 13 01 00 [12:30:38]Write to MH i2c: E2 08 00 3F 53 80 13 01 00 00 00 00 00 0F [12:30:38]Write i2c OK [12:30:38]MH_I2C_Read... [12:30:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:30:38]Read from MH i2c: E2 [12:30:38]MH_I2C_Read... [12:30:38]Read from MH i2c: E2 0E 00 [12:30:38]MH_I2C_Read... [12:30:38]Read from MH i2c: E2 0E 00 3F 53 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 DC [12:30:38]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [12:30:38]wFMCommunicate OK [12:30:38]SAM_PROTO_GetShiftState done [12:30:38]FM_GetShiftState done [12:30:38]opened in 1729989044 [12:30:38]opened+sec_in_day 1730075444 [12:30:38]quantity*price = 100015 [12:30:38]sum+1 = 100017 [12:30:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 121 27.10.2024 12:30 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156570 ФПД: 180558421023563 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T123043&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156570&fm=180558421023563&tin=02508201610067®Number=0000000000091693&sum=100000 [12:30:39]StoreToDocumentArchive [12:30:39]shift 537 fd 156570 [12:30:39]save to /storage/0537/doc_00156570 [12:30:39]save last doc name /storage/0537/doc_00156570 to /storage/kkm_last_doc_name [12:30:39]save OK [12:30:39]Clear old archive folders... [12:30:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:30:39]tlvbuf is 017DCC30 [12:30:39]SAM_PROTO_ClearQueue [12:30:39]wFMCommunicate request_size=4 [12:30:39]MH_SAM_APDU [12:30:39]CAPDU: 80 09 00 00 [12:30:39]Write to MH i2c: E2 08 00 4C 53 80 09 00 00 00 00 00 00 11 [12:30:39]Write i2c OK [12:30:39]MH_I2C_Read... [12:30:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:30:39]Read from MH i2c: E2 [12:30:39]MH_I2C_Read... [12:30:39]Read from MH i2c: E2 03 00 [12:30:39]MH_I2C_Read... [12:30:39]Read from MH i2c: E2 03 00 4C 53 00 90 00 13 [12:30:39]RAPDU: 90 00 [12:30:39]wFMCommunicate OK [12:30:39]SAM_PROTO_ClearQueue done [12:30:39]KKMCreateOFDPacket [12:30:39]OFDProtocolAddRootSTLVToBuf [12:30:39]FM_MakeSignedData [12:30:39]FM_MakeSignedData [12:30:39]SAM_PROTO_SignData [12:30:39]wFMCommunicate request_size=4 [12:30:39]MH_SAM_APDU [12:30:39]CAPDU: 80 0D 01 02 [12:30:39]Write to MH i2c: E2 08 00 4D 53 80 0D 01 02 00 00 00 00 19 [12:30:39]Write i2c OK [12:30:39]MH_I2C_Read... [12:30:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:30:39]Read from MH i2c: E2 [12:30:39]MH_I2C_Read... [12:30:39]Read from MH i2c: E2 03 00 [12:30:39]MH_I2C_Read... [12:30:39]Read from MH i2c: E2 03 00 4D 53 00 90 00 14 [12:30:39]RAPDU: 90 00 [12:30:39]wFMCommunicate OK [12:30:39]wFMCommunicate request_size=255 [12:30:39]MH_SAM_APDU [12:30: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 73 32 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9A 63 02 00 35 04 06 00 A4 [12:30:39]Write to MH i2c: E2 02 01 4E 53 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 73 32 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9A 63 02 00 35 04 06 00 A4 00 00 08 [12:30:39]Write i2c OK [12:30:39]MH_I2C_Read... [12:30:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:30:39]Read from MH i2c: E2 [12:30:39]MH_I2C_Read... [12:30:39]Read from MH i2c: E2 03 00 [12:30:39]MH_I2C_Read... [12:30:39]Read from MH i2c: E2 03 00 4E 53 00 90 00 15 [12:30:39]RAPDU: 90 00 [12:30:39]wFMCommunicate OK [12:30:39]wFMCommunicate request_size=10 [12:30:39]MH_SAM_APDU [12:30:39]CAPDU: 80 0D 02 02 05 37 88 8B DB 4B [12:30:39]Write to MH i2c: E2 0D 00 4F 53 80 0D 02 02 05 00 37 88 8B DB 4B 00 00 96 [12:30:39]Write i2c OK [12:30:39]MH_I2C_Read... [12:30:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:30:39]Read from MH i2c: E2 [12:30:39]MH_I2C_Read... [12:30:39]Read from MH i2c: E2 03 00 [12:30:39]MH_I2C_Read... [12:30:39]Read from MH i2c: E2 03 00 4F 53 00 90 00 16 [12:30:39]RAPDU: 90 00 [12:30:39]wFMCommunicate OK [12:30:39]wFMCommunicate request_size=4 [12:30:39]MH_SAM_APDU [12:30:39]CAPDU: 80 0D 03 02 [12:30:39]Write to MH i2c: E2 08 00 50 53 80 0D 03 02 00 00 00 00 1E [12:30:39]Write i2c OK [12:30:39]MH_I2C_Read... [12:30:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:30:39]Read from MH i2c: E2 [12:30:39]MH_I2C_Read... [12:30:39]Read from MH i2c: E2 0B 00 [12:30:39]MH_I2C_Read... [12:30:39]Read from MH i2c: E2 0B 00 50 53 00 28 34 40 4F 29 8D 48 7F 90 00 87 [12:30:39]RAPDU: 28 34 40 4F 29 8D 48 7F 90 00 [12:30:39]wFMCommunicate OK [12:30:39]SAM_PROTO_SignData done [12:30:39]FM_MakeSignedData done [12:30:39]CreateOFDProtocolMessage [12:30:39]wFMCommunicate request_size=4 [12:30:39]MH_SAM_APDU [12:30:39]CAPDU: 80 11 00 00 [12:30:39]Write to MH i2c: E2 08 00 51 53 80 11 00 00 00 00 00 00 1E [12:30:39]Write i2c OK [12:30:39]MH_I2C_Read... [12:30:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:30:39]Read from MH i2c: E2 [12:30:39]MH_I2C_Read... [12:30:39]Read from MH i2c: E2 17 00 [12:30:39]MH_I2C_Read... [12:30:39]Read from MH i2c: E2 17 00 51 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 73 [12:30:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:30:39]wFMCommunicate OK [12:30:39]CreateOFDProtocolMessage done [12:30:39]OFDSenderStorePacket 156570 [12:30:39]StoreOFDPacket docnum=156570 [12:30:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 B9 D4 07 01 A8 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 73 32 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9A 63 02 00 35 04 06 00 A4 37 88 8B DB 4B 28 34 40 4F 29 8D 48 7F [12:30:39]CheckFolder [12:30:39]dirname=/storage/ofd_packets [12:30:39]CheckFolder done [12:30:39]ProducePacketName [12:30:39]name=ofd_packets/00156570 [12:30:39]NVStorageSaveData ofd_packets/00156570 [12:30:39]File name is /storage/ofd_packets/00156570 [12:30:39]Write 301 bytes [12:30:39]NVStorageSaveData done [12:30:39]OFDSenderStorePacket done [12:30:39]KKMCreateOFDPacket done [12:30:39]NVStorageSaveData kkm_last_timestamp [12:30:39]File name is /storage/kkm_last_timestamp [12:30:39]Write 4 bytes [12:30:39]NVStorageSaveData done [12:30:39]ExternCall_PrintAddStr [12:30:39]wPrintStart [12:30:39]Write to MH i2c: 01 00 00 52 53 A5 [12:30:39]Write i2c OK [12:30:39]MH_I2C_Read... [12:30:39]Read from MH i2c: 01 [12:30:39]MH_I2C_Read... [12:30:39]Read from MH i2c: 01 07 00 [12:30:39]MH_I2C_Read... [12:30:39]Read from MH i2c: 01 07 00 52 53 00 00 00 00 00 FF 0F BA [12:30:39]RasterBufferAndPrint [12:30:39]line Счет N : (1)99384 [12:30:39]line ИНН: 02508201610067 [12:30:39]line Контрольно-Кассовый Чек [12:30:39]line ПРОДАЖА [12:30:39]line ТРК (МРК, ГНК) : 21 [12:30:39]line Товар: 2710124130 [12:30:39]line Аи-92-К-5 [12:30:39]line 14.950 * 66.90 [12:30:39]line = 1000.16 [12:30:39]line НДС 12% НСП 1% [12:30:39]line > о реализуемом товаре [12:30:39]line ОКРУГЛЕНИЕ: -0.16 [12:30:39]line ИТОГО: 1000.00 [12:30:39]line Внесено: 1000.00 [12:30:39]line СДАЧА: 0.00 [12:30:39]line НСП 1% : 8.85 [12:30:39]line НДС 12% : 106.21 [12:30:39]line Наличными: 1000.00 [12:30:39]line Безнал.: 0.00 [12:30:39]line Место: АЗС № 143 "Партнер Нефть" [12:30:39]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [12:30:39]line СНО: Общий режим [12:30:39]line Чек 121 27.10.2024 12:30 [12:30:39]line Смена: 537 ФФД: 1.0 [12:30:39]line ЗНМ: 0300000096 [12:30:39]line РНМ: 0000000000091693 [12:30:39]line Версия ККМ: 001 [12:30:39]line ФМ: 0000000000871792 [12:30:39]line ФД: 156570 [12:30:39]line ФПД: 180558421023563 [12:30:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T123043&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156570&fm=180558421023563&tin=02508201610067®Number=0000000000091693&sum=100000 [12:30:40]OFD Sender: Processing packet 156570 [packets to send 31, broken 30] [12:30:40]ProducePacketName [12:30:40]name=ofd_packets/00156570 [12:30:40]OFD Sender: To server: pG, [12:30:40]CommunicateWithHost lk.salyk.kg:30040 [12:30:40]ConnectInit lk.salyk.kg [12:30:40]written 0, free lines is 4095 [12:30:40]Connected sock=10 [12:30:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 B9 D4 07 01 A8 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 73 32 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9A 63 02 00 35 04 06 00 A4 37 88 8B DB 4B 28 34 40 4F 29 8D 48 7F [12:30:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 76 87 47 00 B8 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9A 63 02 00 F4 03 04 00 E3 D7 1D 67 B6 04 01 00 00 CA 89 AE F8 0D 1A 6F 77 [12:30:40]CommunicateWithHost err = 0 [12:30:40]CheckOFDResponse [12:30:40]1017 (14) - 77093643461234 [12:30:40]1041 (16) - 0000000000871792 [12:30:40]1040 (4) - 156570 [12:30:40]1012 (4) - 27.10.2024 06:04 [12:30:40]1206 (1) - 0 [12:30:40]OFD Sender: Remove packet 156570 [12:30:40]ProducePacketName [12:30:40]name=ofd_packets/00156570 [12:30:40]NVStorageDeleteData [12:30:40]Write to MH i2c: 01 00 00 7D 53 D0 [12:30:40]Write i2c OK [12:30:40]MH_I2C_Read... [12:30:40]Read from MH i2c: 01 [12:30:40]MH_I2C_Read... [12:30:40]Read from MH i2c: 01 07 00 [12:30:40]MH_I2C_Read... [12:30:40]Read from MH i2c: 01 07 00 7D 53 00 00 00 00 00 E4 0C C7 [12:30:40]RasterBufferAndPrint [12:30:40]line [12:30:40]line [12:30:40]line [12:30:40]line [12:30:40]line [12:30:40]written 0, free lines is 3306 [12:30:40]process_action close_receipt done [12:30:40]requested_data is exist [12:30:40]produce_requested_data [12:30:40]requested_item fm.sn is exist - process it [12:30:40]wFMCommunicate request_size=4 [12:30:40]MH_SAM_APDU [12:30:40]CAPDU: 80 11 00 00 [12:30:40]Write to MH i2c: E2 08 00 84 53 80 11 00 00 00 00 00 00 51 [12:30:40]Write i2c OK [12:30:40]MH_I2C_Read... [12:30:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:30:40]Read from MH i2c: E2 [12:30:40]MH_I2C_Read... [12:30:40]Read from MH i2c: E2 17 00 [12:30:40]MH_I2C_Read... [12:30:40]Read from MH i2c: E2 17 00 84 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 A6 [12:30:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:30:40]wFMCommunicate OK [12:30:40]requested_item fd.num is exist - process it [12:30:40]SAM_PROTO_GetFieldsCounters [12:30:40]wFMCommunicate request_size=4 [12:30:40]MH_SAM_APDU [12:30:40]CAPDU: 80 13 00 00 [12:30:40]Write to MH i2c: E2 08 00 85 53 80 13 00 00 00 00 00 00 54 [12:30:40]Write i2c OK [12:30:40]MH_I2C_Read... [12:30:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:30:40]Read from MH i2c: E2 [12:30:40]MH_I2C_Read... [12:30:40]Read from MH i2c: E2 62 00 [12:30:40]MH_I2C_Read... [12:30:40]Read from MH i2c: E2 62 00 85 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 9A 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 FF [12:30:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 9A 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:30:40]wFMCommunicate OK [12:30:40]SAM_PROTO_GetFieldsCounters done [12:30:40]requested_item shift.num is exist - process it [12:30:40]requested_item shift.opened is exist - process it [12:30:40]req_shift_opened [12:30:40]FM_GetShiftState [12:30:40]SAM_PROTO_GetShiftState [12:30:40]wFMCommunicate request_size=4 [12:30:40]MH_SAM_APDU [12:30:40]CAPDU: 80 13 01 00 [12:30:40]Write to MH i2c: E2 08 00 86 53 80 13 01 00 00 00 00 00 56 [12:30:40]Write i2c OK [12:30:40]MH_I2C_Read... [12:30:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:30:40]Read from MH i2c: E2 [12:30:40]MH_I2C_Read... [12:30:40]Read from MH i2c: E2 0E 00 [12:30:40]MH_I2C_Read... [12:30:40]Read from MH i2c: E2 0E 00 86 53 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 23 [12:30:40]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [12:30:40]wFMCommunicate OK [12:30:40]SAM_PROTO_GetShiftState done [12:30:40]FM_GetShiftState done [12:30:40]req_shift_opened done [12:30:40]requested_item shift.open_date is exist - process it [12:30:40]req_shift_open_date [12:30:40]req_shift_open_date done [12:30:40]produce_requested_data done [12:30:40]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156570,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [12:30:40]process_action_free close_receipt [12:30:40]json_value_free [12:30:40]json_value_free done [12:30:40]process_json_proto returns [12:30:40]Send response to host [12:30:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156570,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [12:30:40]free response buf [12:30:40]execute_script done [12:30:40]execute_script returns [12:30:40]free content buf [12:30:40]Sock 9.Close socket [12:30:40]Sock 9.Thread stoped [12:30:41]OFD Sender: No OFD packet to send [12:30:46]OFD Sender: No OFD packet to send [12:30:51]OFD Sender: No OFD packet to send [12:30:56]OFD Sender: No OFD packet to send [12:31:01]OFD Sender: No OFD packet to send [12:31:05]accept exits with 8 [12:31:05]New connection [12:31:05]New thread 3066977636 created [12:31:05]Thread 3066834276 joined [12:31:05]Waiting for new connection... [12:31:05] Sock 8.Parse request [12:31:05]Sock 8.Check first char [12:31:05]Sock 8.First char is OK [12:31:05]request: POST /json_proto HTTP/1.0 [12:31:05]Method: POST [12:31:05]URL: /json_proto [12:31:05]Method is POST - this is cgi request [12:31:05]url: /json_proto [12:31:05]query_string will be loaded in cgi processing [12:31:05]execute_cgi json_proto POST (null) [12:31:05]execute_cgi path=json_proto method=POST [12:31:05]POST find Content-Length [12:31:05]Host: 172.17.63.3:8080 [12:31:05]Content-Length: 676 [12:31:05]Content-Type: application/json [12:31:05] [12:31:05]POST finish read [12:31:05]Found Content-Length = 676 [12:31:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99385", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.930, "sum" : 196.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 196.00, "payments": [ { "type": 0, "sum" : 196.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:31:05]execute_script... [12:31: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)99385", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.930, "sum" : 196.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 196.00, "payments": [ { "type": 0, "sum" : 196.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:31:05]POST & json_proto [12:31:05]process_json_proto [12:31:05]json parsed OK: [12:31:05]protocol is kg_v1.0 [12:31:05]action value=close_receipt [12:31:05]process_action close_receipt [12:31:05]cmd_close_receipt [12:31:05]MH_GetDate [12:31:05]Write to MH i2c: F0 00 00 87 53 C9 [12:31:05]Write i2c OK [12:31:05]MH_I2C_Read... [12:31:05]Read from MH i2c: F0 [12:31:05]MH_I2C_Read... [12:31:05]Read from MH i2c: F0 09 00 [12:31:05]MH_I2C_Read... [12:31:05]Read from MH i2c: F0 09 00 87 53 00 8F 32 1E 67 50 D1 6C 64 09 [12:31:05]GetLastDocTimeStamp 1730032243 [12:31:05]current date 1730032271 [12:31:05]FM_GetShiftState [12:31:05]SAM_PROTO_GetShiftState [12:31:05]wFMCommunicate request_size=4 [12:31:05]MH_SAM_APDU [12:31:05]CAPDU: 80 13 01 00 [12:31:05]Write to MH i2c: E2 08 00 88 53 80 13 01 00 00 00 00 00 58 [12:31:05]Write i2c OK [12:31:05]MH_I2C_Read... [12:31:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:31:05]Read from MH i2c: E2 [12:31:05]MH_I2C_Read... [12:31:05]Read from MH i2c: E2 0E 00 [12:31:05]MH_I2C_Read... [12:31:05]Read from MH i2c: E2 0E 00 88 53 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 25 [12:31:05]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [12:31:05]wFMCommunicate OK [12:31:05]SAM_PROTO_GetShiftState done [12:31:05]FM_GetShiftState done [12:31:05]opened in 1729989044 [12:31:05]opened+sec_in_day 1730075444 [12:31:05]quantity*price = 19601 [12:31:05]sum+1 = 19603 [12:31:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 196.00 Внесено: 200.00 СДАЧА: 4.00 НСП 1% : 1.73 НДС 12% : 20.82 Наличными: 196.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 122 27.10.2024 12:31 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156571 ФПД: 278527611368111 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T123111&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156571&fm=278527611368111&tin=02508201610067®Number=0000000000091693&sum=19600 [12:31:06]StoreToDocumentArchive [12:31:06]shift 537 fd 156571 [12:31:06]save to /storage/0537/doc_00156571 [12:31:06]save last doc name /storage/0537/doc_00156571 to /storage/kkm_last_doc_name [12:31:06]save OK [12:31:06]Clear old archive folders... [12:31:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:31:06]tlvbuf is 017C6E30 [12:31:06]SAM_PROTO_ClearQueue [12:31:06]wFMCommunicate request_size=4 [12:31:06]MH_SAM_APDU [12:31:06]CAPDU: 80 09 00 00 [12:31:06]Write to MH i2c: E2 08 00 95 53 80 09 00 00 00 00 00 00 5A [12:31:06]Write i2c OK [12:31:06]MH_I2C_Read... [12:31:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:31:07]Read from MH i2c: E2 [12:31:07]MH_I2C_Read... [12:31:07]Read from MH i2c: E2 03 00 [12:31:07]MH_I2C_Read... [12:31:07]Read from MH i2c: E2 03 00 95 53 00 90 00 5C [12:31:07]RAPDU: 90 00 [12:31:07]wFMCommunicate OK [12:31:07]SAM_PROTO_ClearQueue done [12:31:07]KKMCreateOFDPacket [12:31:07]OFDProtocolAddRootSTLVToBuf [12:31:07]FM_MakeSignedData [12:31:07]FM_MakeSignedData [12:31:07]SAM_PROTO_SignData [12:31:07]wFMCommunicate request_size=4 [12:31:07]MH_SAM_APDU [12:31:07]CAPDU: 80 0D 01 02 [12:31:07]Write to MH i2c: E2 08 00 96 53 80 0D 01 02 00 00 00 00 62 [12:31:07]Write i2c OK [12:31:07]MH_I2C_Read... [12:31:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:31:07]Read from MH i2c: E2 [12:31:07]MH_I2C_Read... [12:31:07]Read from MH i2c: E2 03 00 [12:31:07]MH_I2C_Read... [12:31:07]Read from MH i2c: E2 03 00 96 53 00 90 00 5D [12:31:07]RAPDU: 90 00 [12:31:07]wFMCommunicate OK [12:31:07]wFMCommunicate request_size=255 [12:31:07]MH_SAM_APDU [12:31: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 72 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 92 4C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 08 00 00 00 00 07 04 06 00 90 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 8F 32 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9B 63 02 00 35 04 06 00 FD [12:31:07]Write to MH i2c: E2 02 01 97 53 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 92 4C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 08 00 00 00 00 07 04 06 00 90 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 8F 32 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9B 63 02 00 35 04 06 00 FD 00 00 6F [12:31:07]Write i2c OK [12:31:07]MH_I2C_Read... [12:31:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:31:07]Read from MH i2c: E2 [12:31:07]MH_I2C_Read... [12:31:07]Read from MH i2c: E2 03 00 [12:31:07]MH_I2C_Read... [12:31:07]Read from MH i2c: E2 03 00 97 53 00 90 00 5E [12:31:07]RAPDU: 90 00 [12:31:07]wFMCommunicate OK [12:31:07]wFMCommunicate request_size=10 [12:31:07]MH_SAM_APDU [12:31:07]CAPDU: 80 0D 02 02 05 51 C3 55 F2 AF [12:31:07]Write to MH i2c: E2 0D 00 98 53 80 0D 02 02 05 00 51 C3 55 F2 AF 00 00 79 [12:31:07]Write i2c OK [12:31:07]MH_I2C_Read... [12:31:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:31:07]Read from MH i2c: E2 [12:31:07]MH_I2C_Read... [12:31:07]Read from MH i2c: E2 03 00 [12:31:07]MH_I2C_Read... [12:31:07]Read from MH i2c: E2 03 00 98 53 00 90 00 5F [12:31:07]RAPDU: 90 00 [12:31:07]wFMCommunicate OK [12:31:07]wFMCommunicate request_size=4 [12:31:07]MH_SAM_APDU [12:31:07]CAPDU: 80 0D 03 02 [12:31:07]Write to MH i2c: E2 08 00 99 53 80 0D 03 02 00 00 00 00 67 [12:31:07]Write i2c OK [12:31:07]MH_I2C_Read... [12:31:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:31:07]Read from MH i2c: E2 [12:31:07]MH_I2C_Read... [12:31:07]Read from MH i2c: E2 0B 00 [12:31:07]MH_I2C_Read... [12:31:07]Read from MH i2c: E2 0B 00 99 53 00 8F 70 B2 5E 82 8C DC AD 90 00 0E [12:31:07]RAPDU: 8F 70 B2 5E 82 8C DC AD 90 00 [12:31:07]wFMCommunicate OK [12:31:07]SAM_PROTO_SignData done [12:31:07]FM_MakeSignedData done [12:31:07]CreateOFDProtocolMessage [12:31:07]wFMCommunicate request_size=4 [12:31:07]MH_SAM_APDU [12:31:07]CAPDU: 80 11 00 00 [12:31:07]Write to MH i2c: E2 08 00 9A 53 80 11 00 00 00 00 00 00 67 [12:31:07]Write i2c OK [12:31:07]MH_I2C_Read... [12:31:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:31:07]Read from MH i2c: E2 [12:31:07]MH_I2C_Read... [12:31:07]Read from MH i2c: E2 17 00 [12:31:07]MH_I2C_Read... [12:31:07]Read from MH i2c: E2 17 00 9A 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 BC [12:31:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:31:07]wFMCommunicate OK [12:31:07]CreateOFDProtocolMessage done [12:31:07]OFDSenderStorePacket 156571 [12:31:07]StoreOFDPacket docnum=156571 [12:31:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 A8 59 07 01 A2 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 72 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 92 4C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 08 00 00 00 00 07 04 06 00 90 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 8F 32 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9B 63 02 00 35 04 06 00 FD 51 C3 55 F2 AF 8F 70 B2 5E 82 8C DC AD [12:31:07]CheckFolder [12:31:07]dirname=/storage/ofd_packets [12:31:07]CheckFolder done [12:31:07]ProducePacketName [12:31:07]name=ofd_packets/00156571 [12:31:07]NVStorageSaveData ofd_packets/00156571 [12:31:07]File name is /storage/ofd_packets/00156571 [12:31:07]Write 301 bytes [12:31:07]NVStorageSaveData done [12:31:07]OFDSenderStorePacket done [12:31:07]KKMCreateOFDPacket done [12:31:07]NVStorageSaveData kkm_last_timestamp [12:31:07]File name is /storage/kkm_last_timestamp [12:31:07]Write 4 bytes [12:31:07]NVStorageSaveData done [12:31:07]ExternCall_PrintAddStr [12:31:07]wPrintStart [12:31:07]Write to MH i2c: 01 00 00 9B 53 EE [12:31:07]Write i2c OK [12:31:07]MH_I2C_Read... [12:31:07]Read from MH i2c: 01 [12:31:07]MH_I2C_Read... [12:31:07]Read from MH i2c: 01 07 00 [12:31:07]MH_I2C_Read... [12:31:07]Read from MH i2c: 01 07 00 9B 53 00 00 00 00 00 FF 0F 03 [12:31:07]RasterBufferAndPrint [12:31:07]line Счет N : (1)99385 [12:31:07]line ИНН: 02508201610067 [12:31:07]line Контрольно-Кассовый Чек [12:31:07]line ПРОДАЖА [12:31:07]line ТРК (МРК, ГНК) : 11 [12:31:07]line Товар: 2710124130 [12:31:07]line Аи-92-К-5 [12:31:07]line 2.930 * 66.90 [12:31:07]line = 196.02 [12:31:07]line НДС 12% НСП 1% [12:31:07]line > о реализуемом товаре [12:31:07]line ОКРУГЛЕНИЕ: -0.02 [12:31:07]line ИТОГО: 196.00 [12:31:07]line Внесено: 200.00 [12:31:07]line СДАЧА: 4.00 [12:31:07]line НСП 1% : 1.73 [12:31:07]line НДС 12% : 20.82 [12:31:07]line Наличными: 196.00 [12:31:07]line Безнал.: 0.00 [12:31:07]line Место: АЗС № 143 "Партнер Нефть" [12:31:07]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [12:31:07]line СНО: Общий режим [12:31:07]line Чек 122 27.10.2024 12:31 [12:31:07]line Смена: 537 ФФД: 1.0 [12:31:07]line ЗНМ: 0300000096 [12:31:07]line РНМ: 0000000000091693 [12:31:07]line Версия ККМ: 001 [12:31:07]line ФМ: 0000000000871792 [12:31:07]line ФД: 156571 [12:31:07]line ФПД: 278527611368111 [12:31:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T123111&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156571&fm=278527611368111&tin=02508201610067®Number=0000000000091693&sum=19600 [12:31:07]OFD Sender: Processing packet 156571 [packets to send 31, broken 30] [12:31:07]ProducePacketName [12:31:07]name=ofd_packets/00156571 [12:31:07]OFD Sender: To server: pG, [12:31:07]CommunicateWithHost lk.salyk.kg:30040 [12:31:07]ConnectInit lk.salyk.kg [12:31:07]written 0, free lines is 4095 [12:31:07]Connected sock=10 [12:31:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 A8 59 07 01 A2 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 72 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 92 4C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 08 00 00 00 00 07 04 06 00 90 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 8F 32 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9B 63 02 00 35 04 06 00 FD 51 C3 55 F2 AF 8F 70 B2 5E 82 8C DC AD [12:31:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 FB F6 47 00 EF 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 31 37 39 32 10 04 04 00 9B 63 02 00 F4 03 04 00 FF D7 1D 67 B6 04 01 00 00 E3 42 4B 9A 62 A4 1D 0E [12:31:08]CommunicateWithHost err = 0 [12:31:08]CheckOFDResponse [12:31:08]1017 (14) - 77093643461234 [12:31:08]1041 (16) - 0000000000871792 [12:31:08]1040 (4) - 156571 [12:31:08]1012 (4) - 27.10.2024 06:04 [12:31:08]1206 (1) - 0 [12:31:08]OFD Sender: Remove packet 156571 [12:31:08]ProducePacketName [12:31:08]name=ofd_packets/00156571 [12:31:08]NVStorageDeleteData [12:31:08]Write to MH i2c: 01 00 00 C6 53 19 [12:31:08]Write i2c OK [12:31:08]MH_I2C_Read... [12:31:08]Read from MH i2c: 01 [12:31:08]MH_I2C_Read... [12:31:08]Read from MH i2c: 01 07 00 [12:31:08]MH_I2C_Read... [12:31:08]Read from MH i2c: 01 07 00 C6 53 00 00 00 00 00 DE 0C 0A [12:31:08]RasterBufferAndPrint [12:31:08]line [12:31:08]line [12:31:08]line [12:31:08]line [12:31:08]line [12:31:08]written 0, free lines is 3301 [12:31:08]process_action close_receipt done [12:31:08]requested_data is exist [12:31:08]produce_requested_data [12:31:08]requested_item fm.sn is exist - process it [12:31:08]wFMCommunicate request_size=4 [12:31:08]MH_SAM_APDU [12:31:08]CAPDU: 80 11 00 00 [12:31:08]Write to MH i2c: E2 08 00 CD 53 80 11 00 00 00 00 00 00 9A [12:31:08]Write i2c OK [12:31:08]MH_I2C_Read... [12:31:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:31:08]Read from MH i2c: E2 [12:31:08]MH_I2C_Read... [12:31:08]Read from MH i2c: E2 17 00 [12:31:08]MH_I2C_Read... [12:31:08]Read from MH i2c: E2 17 00 CD 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 EF [12:31:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:31:08]wFMCommunicate OK [12:31:08]requested_item fd.num is exist - process it [12:31:08]SAM_PROTO_GetFieldsCounters [12:31:08]wFMCommunicate request_size=4 [12:31:08]MH_SAM_APDU [12:31:08]CAPDU: 80 13 00 00 [12:31:08]Write to MH i2c: E2 08 00 CE 53 80 13 00 00 00 00 00 00 9D [12:31:08]Write i2c OK [12:31:08]MH_I2C_Read... [12:31:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:31:08]Read from MH i2c: E2 [12:31:08]MH_I2C_Read... [12:31:08]Read from MH i2c: E2 62 00 [12:31:08]MH_I2C_Read... [12:31:08]Read from MH i2c: E2 62 00 CE 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 9B 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 4C [12:31: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 9B 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:31:08]wFMCommunicate OK [12:31:08]SAM_PROTO_GetFieldsCounters done [12:31:08]requested_item shift.num is exist - process it [12:31:08]requested_item shift.opened is exist - process it [12:31:08]req_shift_opened [12:31:08]FM_GetShiftState [12:31:08]SAM_PROTO_GetShiftState [12:31:08]wFMCommunicate request_size=4 [12:31:08]MH_SAM_APDU [12:31:08]CAPDU: 80 13 01 00 [12:31:08]Write to MH i2c: E2 08 00 CF 53 80 13 01 00 00 00 00 00 9F [12:31:08]Write i2c OK [12:31:08]MH_I2C_Read... [12:31:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:31:08]Read from MH i2c: E2 [12:31:08]MH_I2C_Read... [12:31:08]Read from MH i2c: E2 0E 00 [12:31:08]MH_I2C_Read... [12:31:08]Read from MH i2c: E2 0E 00 CF 53 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 6C [12:31:08]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [12:31:08]wFMCommunicate OK [12:31:08]SAM_PROTO_GetShiftState done [12:31:08]FM_GetShiftState done [12:31:08]req_shift_opened done [12:31:08]requested_item shift.open_date is exist - process it [12:31:08]req_shift_open_date [12:31:08]req_shift_open_date done [12:31:08]produce_requested_data done [12:31:08]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156571,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [12:31:08]process_action_free close_receipt [12:31:08]json_value_free [12:31:08]json_value_free done [12:31:08]process_json_proto returns [12:31:08]Send response to host [12:31:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156571,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [12:31:08]free response buf [12:31:08]execute_script done [12:31:08]execute_script returns [12:31:08]free content buf [12:31:08]Sock 8.Close socket [12:31:08]Sock 8.Thread stoped [12:31:08]OFD Sender: No OFD packet to send [12:31:13]OFD Sender: No OFD packet to send [12:31:18]OFD Sender: No OFD packet to send [12:31:23]OFD Sender: No OFD packet to send [12:31:28]OFD Sender: No OFD packet to send [12:31:33]OFD Sender: No OFD packet to send [12:31:38]OFD Sender: No OFD packet to send [12:31:43]OFD Sender: No OFD packet to send [12:31:48]OFD Sender: No OFD packet to send [12:31:53]OFD Sender: No OFD packet to send [12:31:58]OFD Sender: No OFD packet to send [12:32:03]OFD Sender: No OFD packet to send [12:32:08]OFD Sender: No OFD packet to send [12:32:13]OFD Sender: No OFD packet to send [12:32:18]OFD Sender: No OFD packet to send [12:32:19]accept exits with 9 [12:32:19]New connection [12:32:19]New thread 3066834276 created [12:32:19]Thread 3066977636 joined [12:32:19]Waiting for new connection... [12:32:19] Sock 9.Parse request [12:32:19]Sock 9.Check first char [12:32:19]Sock 9.First char is OK [12:32:19]request: POST /json_proto HTTP/1.0 [12:32:19]Method: POST [12:32:19]URL: /json_proto [12:32:19]Method is POST - this is cgi request [12:32:19]url: /json_proto [12:32:19]query_string will be loaded in cgi processing [12:32:19]execute_cgi json_proto POST (null) [12:32:19]execute_cgi path=json_proto method=POST [12:32:19]POST find Content-Length [12:32:19]Host: 172.17.63.3:8080 [12:32:19]Content-Length: 676 [12:32:19]Content-Type: application/json [12:32:19] [12:32:19]POST finish read [12:32:19]Found Content-Length = 676 [12:32:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99386", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:32:19]execute_script... [12:32:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99386", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:32:19]POST & json_proto [12:32:19]process_json_proto [12:32:19]json parsed OK: [12:32:19]protocol is kg_v1.0 [12:32:19]action value=close_receipt [12:32:19]process_action close_receipt [12:32:19]cmd_close_receipt [12:32:19]MH_GetDate [12:32:19]Write to MH i2c: F0 00 00 D0 53 12 [12:32:19]Write i2c OK [12:32:19]MH_I2C_Read... [12:32:19]Read from MH i2c: F0 [12:32:19]MH_I2C_Read... [12:32:19]Read from MH i2c: F0 09 00 [12:32:19]MH_I2C_Read... [12:32:19]Read from MH i2c: F0 09 00 D0 53 00 D9 32 1E 67 50 D1 6C 64 9C [12:32:19]GetLastDocTimeStamp 1730032271 [12:32:19]current date 1730032345 [12:32:19]FM_GetShiftState [12:32:19]SAM_PROTO_GetShiftState [12:32:19]wFMCommunicate request_size=4 [12:32:19]MH_SAM_APDU [12:32:19]CAPDU: 80 13 01 00 [12:32:19]Write to MH i2c: E2 08 00 D1 53 80 13 01 00 00 00 00 00 A1 [12:32:19]Write i2c OK [12:32:19]MH_I2C_Read... [12:32:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:19]Read from MH i2c: E2 [12:32:19]MH_I2C_Read... [12:32:19]Read from MH i2c: E2 0E 00 [12:32:19]MH_I2C_Read... [12:32:19]Read from MH i2c: E2 0E 00 D1 53 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 6E [12:32:19]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [12:32:19]wFMCommunicate OK [12:32:19]SAM_PROTO_GetShiftState done [12:32:19]FM_GetShiftState done [12:32:19]opened in 1729989044 [12:32:19]opened+sec_in_day 1730075444 [12:32:19]quantity*price = 50041 [12:32:19]sum+1 = 50042 [12:32:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 123 27.10.2024 12:32 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156572 ФПД: 136540749956270 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T123225&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156572&fm=136540749956270&tin=02508201610067®Number=0000000000091693&sum=50000 [12:32:20]StoreToDocumentArchive [12:32:20]shift 537 fd 156572 [12:32:20]save to /storage/0537/doc_00156572 [12:32:20]save last doc name /storage/0537/doc_00156572 to /storage/kkm_last_doc_name [12:32:20]save OK [12:32:20]Clear old archive folders... [12:32:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:32:20]tlvbuf is B6DAE4C0 [12:32:20]SAM_PROTO_ClearQueue [12:32:20]wFMCommunicate request_size=4 [12:32:20]MH_SAM_APDU [12:32:20]CAPDU: 80 09 00 00 [12:32:20]Write to MH i2c: E2 08 00 DE 53 80 09 00 00 00 00 00 00 A3 [12:32:20]Write i2c OK [12:32:20]MH_I2C_Read... [12:32:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:32:20]Read from MH i2c: E2 [12:32:20]MH_I2C_Read... [12:32:20]Read from MH i2c: E2 03 00 [12:32:20]MH_I2C_Read... [12:32:20]Read from MH i2c: E2 03 00 DE 53 00 90 00 A5 [12:32:20]RAPDU: 90 00 [12:32:20]wFMCommunicate OK [12:32:20]SAM_PROTO_ClearQueue done [12:32:20]KKMCreateOFDPacket [12:32:20]OFDProtocolAddRootSTLVToBuf [12:32:20]FM_MakeSignedData [12:32:20]FM_MakeSignedData [12:32:20]SAM_PROTO_SignData [12:32:20]wFMCommunicate request_size=4 [12:32:20]MH_SAM_APDU [12:32:20]CAPDU: 80 0D 01 02 [12:32:20]Write to MH i2c: E2 08 00 DF 53 80 0D 01 02 00 00 00 00 AB [12:32:20]Write i2c OK [12:32:20]MH_I2C_Read... [12:32:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:32:21]Read from MH i2c: E2 [12:32:21]MH_I2C_Read... [12:32:21]Read from MH i2c: E2 03 00 [12:32:21]MH_I2C_Read... [12:32:21]Read from MH i2c: E2 03 00 DF 53 00 90 00 A6 [12:32:21]RAPDU: 90 00 [12:32:21]wFMCommunicate OK [12:32:21]wFMCommunicate request_size=255 [12:32:21]MH_SAM_APDU [12:32: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 D9 32 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9C 63 02 00 35 04 06 00 7C [12:32:21]Write to MH i2c: E2 02 01 E0 53 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 D9 32 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9C 63 02 00 35 04 06 00 7C 00 00 E2 [12:32:21]Write i2c OK [12:32:21]MH_I2C_Read... [12:32:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:21]Read from MH i2c: E2 [12:32:21]MH_I2C_Read... [12:32:21]Read from MH i2c: E2 03 00 [12:32:21]MH_I2C_Read... [12:32:21]Read from MH i2c: E2 03 00 E0 53 00 90 00 A7 [12:32:21]RAPDU: 90 00 [12:32:21]wFMCommunicate OK [12:32:21]wFMCommunicate request_size=10 [12:32:21]MH_SAM_APDU [12:32:21]CAPDU: 80 0D 02 02 05 2E DE E6 04 AE [12:32:21]Write to MH i2c: E2 0D 00 E1 53 80 0D 02 02 05 00 2E DE E6 04 AE 00 00 5C [12:32:21]Write i2c OK [12:32:21]MH_I2C_Read... [12:32:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:32:21]Read from MH i2c: E2 [12:32:21]MH_I2C_Read... [12:32:21]Read from MH i2c: E2 03 00 [12:32:21]MH_I2C_Read... [12:32:21]Read from MH i2c: E2 03 00 E1 53 00 90 00 A8 [12:32:21]RAPDU: 90 00 [12:32:21]wFMCommunicate OK [12:32:21]wFMCommunicate request_size=4 [12:32:21]MH_SAM_APDU [12:32:21]CAPDU: 80 0D 03 02 [12:32:21]Write to MH i2c: E2 08 00 E2 53 80 0D 03 02 00 00 00 00 B0 [12:32:21]Write i2c OK [12:32:21]MH_I2C_Read... [12:32:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:32:21]Read from MH i2c: E2 [12:32:21]MH_I2C_Read... [12:32:21]Read from MH i2c: E2 0B 00 [12:32:21]MH_I2C_Read... [12:32:21]Read from MH i2c: E2 0B 00 E2 53 00 37 BC F4 CA 0D D7 8B BF 90 00 90 [12:32:21]RAPDU: 37 BC F4 CA 0D D7 8B BF 90 00 [12:32:21]wFMCommunicate OK [12:32:21]SAM_PROTO_SignData done [12:32:21]FM_MakeSignedData done [12:32:21]CreateOFDProtocolMessage [12:32:21]wFMCommunicate request_size=4 [12:32:21]MH_SAM_APDU [12:32:21]CAPDU: 80 11 00 00 [12:32:21]Write to MH i2c: E2 08 00 E3 53 80 11 00 00 00 00 00 00 B0 [12:32:21]Write i2c OK [12:32:21]MH_I2C_Read... [12:32:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:21]Read from MH i2c: E2 [12:32:21]MH_I2C_Read... [12:32:21]Read from MH i2c: E2 17 00 [12:32:21]MH_I2C_Read... [12:32:21]Read from MH i2c: E2 17 00 E3 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 05 [12:32:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:32:21]wFMCommunicate OK [12:32:21]CreateOFDProtocolMessage done [12:32:21]OFDSenderStorePacket 156572 [12:32:21]StoreOFDPacket docnum=156572 [12:32:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 64 B7 07 01 5A 3C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 D9 32 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9C 63 02 00 35 04 06 00 7C 2E DE E6 04 AE 37 BC F4 CA 0D D7 8B BF [12:32:21]CheckFolder [12:32:21]dirname=/storage/ofd_packets [12:32:21]CheckFolder done [12:32:21]ProducePacketName [12:32:21]name=ofd_packets/00156572 [12:32:21]NVStorageSaveData ofd_packets/00156572 [12:32:21]File name is /storage/ofd_packets/00156572 [12:32:21]Write 301 bytes [12:32:21]NVStorageSaveData done [12:32:21]OFDSenderStorePacket done [12:32:21]KKMCreateOFDPacket done [12:32:21]NVStorageSaveData kkm_last_timestamp [12:32:21]File name is /storage/kkm_last_timestamp [12:32:21]Write 4 bytes [12:32:21]NVStorageSaveData done [12:32:21]ExternCall_PrintAddStr [12:32:21]wPrintStart [12:32:21]Write to MH i2c: 01 00 00 E4 53 37 [12:32:21]Write i2c OK [12:32:21]MH_I2C_Read... [12:32:21]Read from MH i2c: 01 [12:32:21]MH_I2C_Read... [12:32:21]Read from MH i2c: 01 07 00 [12:32:21]MH_I2C_Read... [12:32:21]Read from MH i2c: 01 07 00 E4 53 00 00 00 00 00 FF 0F 4C [12:32:21]RasterBufferAndPrint [12:32:21]line Счет N : (1)99386 [12:32:21]line ИНН: 02508201610067 [12:32:21]line Контрольно-Кассовый Чек [12:32:21]line ПРОДАЖА [12:32:21]line ТРК (МРК, ГНК) : 31 [12:32:21]line Товар: 2710124130 [12:32:21]line Аи-92-К-5 [12:32:21]line 7.480 * 66.90 [12:32:21]line = 500.41 [12:32:21]line НДС 12% НСП 1% [12:32:21]line > о реализуемом товаре [12:32:21]line ОКРУГЛЕНИЕ: -0.41 [12:32:21]line ИТОГО: 500.00 [12:32:21]line Внесено: 500.00 [12:32:21]line СДАЧА: 0.00 [12:32:21]line НСП 1% : 4.43 [12:32:21]line НДС 12% : 53.14 [12:32:21]line Наличными: 500.00 [12:32:21]line Безнал.: 0.00 [12:32:21]line Место: АЗС № 143 "Партнер Нефть" [12:32:21]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [12:32:21]line СНО: Общий режим [12:32:21]line Чек 123 27.10.2024 12:32 [12:32:21]line Смена: 537 ФФД: 1.0 [12:32:21]line ЗНМ: 0300000096 [12:32:21]line РНМ: 0000000000091693 [12:32:21]line Версия ККМ: 001 [12:32:21]line ФМ: 0000000000871792 [12:32:21]line ФД: 156572 [12:32:21]line ФПД: 136540749956270 [12:32:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T123225&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156572&fm=136540749956270&tin=02508201610067®Number=0000000000091693&sum=50000 [12:32:21]OFD Sender: Processing packet 156572 [packets to send 31, broken 30] [12:32:21]ProducePacketName [12:32:21]name=ofd_packets/00156572 [12:32:21]OFD Sender: To server: pG, [12:32:21]CommunicateWithHost lk.salyk.kg:30040 [12:32:21]ConnectInit lk.salyk.kg [12:32:21]written 0, free lines is 4095 [12:32:21]Connected sock=10 [12:32:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 64 B7 07 01 5A 3C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 D9 32 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9C 63 02 00 35 04 06 00 7C 2E DE E6 04 AE 37 BC F4 CA 0D D7 8B BF [12:32:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 01 84 47 00 6B 02 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9C 63 02 00 F4 03 04 00 49 D8 1D 67 B6 04 01 00 00 C8 0A 1C 87 86 F3 92 E4 [12:32:22]CommunicateWithHost err = 0 [12:32:22]CheckOFDResponse [12:32:22]1017 (14) - 77093643461234 [12:32:22]1041 (16) - 0000000000871792 [12:32:22]1040 (4) - 156572 [12:32:22]1012 (4) - 27.10.2024 06:06 [12:32:22]1206 (1) - 0 [12:32:22]OFD Sender: Remove packet 156572 [12:32:22]ProducePacketName [12:32:22]name=ofd_packets/00156572 [12:32:22]NVStorageDeleteData [12:32:22]Write to MH i2c: 01 00 00 0F 54 63 [12:32:22]Write i2c OK [12:32:22]MH_I2C_Read... [12:32:22]Read from MH i2c: 01 [12:32:22]MH_I2C_Read... [12:32:22]Read from MH i2c: 01 07 00 [12:32:22]MH_I2C_Read... [12:32:22]Read from MH i2c: 01 07 00 0F 54 00 00 00 00 00 DA 0C 50 [12:32:22]RasterBufferAndPrint [12:32:22]line [12:32:22]line [12:32:22]line [12:32:22]line [12:32:22]line [12:32:22]written 0, free lines is 3297 [12:32:22]process_action close_receipt done [12:32:22]requested_data is exist [12:32:22]produce_requested_data [12:32:22]requested_item fm.sn is exist - process it [12:32:22]wFMCommunicate request_size=4 [12:32:22]MH_SAM_APDU [12:32:22]CAPDU: 80 11 00 00 [12:32:22]Write to MH i2c: E2 08 00 16 54 80 11 00 00 00 00 00 00 E4 [12:32:22]Write i2c OK [12:32:22]MH_I2C_Read... [12:32:22]Read from MH i2c: E2 [12:32:22]MH_I2C_Read... [12:32:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:32:22]Read from MH i2c: E2 17 00 [12:32:22]MH_I2C_Read... [12:32:22]Read from MH i2c: E2 17 00 16 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 39 [12:32:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:32:22]wFMCommunicate OK [12:32:22]requested_item fd.num is exist - process it [12:32:22]SAM_PROTO_GetFieldsCounters [12:32:22]wFMCommunicate request_size=4 [12:32:22]MH_SAM_APDU [12:32:22]CAPDU: 80 13 00 00 [12:32:22]Write to MH i2c: E2 08 00 17 54 80 13 00 00 00 00 00 00 E7 [12:32:22]Write i2c OK [12:32:22]MH_I2C_Read... [12:32:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:32:22]Read from MH i2c: E2 [12:32:22]MH_I2C_Read... [12:32:22]Read from MH i2c: E2 62 00 [12:32:22]MH_I2C_Read... [12:32:22]Read from MH i2c: E2 62 00 17 54 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 9C 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 9A [12:32:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 9C 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:32:22]wFMCommunicate OK [12:32:22]SAM_PROTO_GetFieldsCounters done [12:32:22]requested_item shift.num is exist - process it [12:32:22]requested_item shift.opened is exist - process it [12:32:22]req_shift_opened [12:32:22]FM_GetShiftState [12:32:22]SAM_PROTO_GetShiftState [12:32:22]wFMCommunicate request_size=4 [12:32:22]MH_SAM_APDU [12:32:22]CAPDU: 80 13 01 00 [12:32:22]Write to MH i2c: E2 08 00 18 54 80 13 01 00 00 00 00 00 E9 [12:32:22]Write i2c OK [12:32:22]MH_I2C_Read... [12:32:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:32:22]Read from MH i2c: E2 [12:32:22]MH_I2C_Read... [12:32:22]Read from MH i2c: E2 0E 00 [12:32:22]MH_I2C_Read... [12:32:22]Read from MH i2c: E2 0E 00 18 54 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 B6 [12:32:22]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [12:32:22]wFMCommunicate OK [12:32:22]SAM_PROTO_GetShiftState done [12:32:22]FM_GetShiftState done [12:32:22]req_shift_opened done [12:32:22]requested_item shift.open_date is exist - process it [12:32:22]req_shift_open_date [12:32:22]req_shift_open_date done [12:32:22]produce_requested_data done [12:32:22]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156572,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [12:32:22]process_action_free close_receipt [12:32:22]json_value_free [12:32:22]json_value_free done [12:32:22]process_json_proto returns [12:32:22]Send response to host [12:32:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156572,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [12:32:22]free response buf [12:32:22]execute_script done [12:32:22]execute_script returns [12:32:22]free content buf [12:32:22]Sock 9.Close socket [12:32:22]Sock 9.Thread stoped [12:32:22]OFD Sender: No OFD packet to send [12:32:27]OFD Sender: No OFD packet to send [12:32:32]OFD Sender: No OFD packet to send [12:32:37]OFD Sender: No OFD packet to send [12:32:42]OFD Sender: No OFD packet to send [12:32:47]OFD Sender: No OFD packet to send [12:32:52]OFD Sender: No OFD packet to send [12:32:57]OFD Sender: No OFD packet to send [12:33:02]OFD Sender: No OFD packet to send [12:33:07]OFD Sender: No OFD packet to send [12:33:12]OFD Sender: No OFD packet to send [12:33:17]OFD Sender: No OFD packet to send [12:33:22]OFD Sender: No OFD packet to send [12:33:27]OFD Sender: No OFD packet to send [12:33:32]OFD Sender: No OFD packet to send [12:33:37]OFD Sender: No OFD packet to send [12:33:42]OFD Sender: No OFD packet to send [12:33:47]OFD Sender: No OFD packet to send [12:33:52]OFD Sender: No OFD packet to send [12:33:57]OFD Sender: No OFD packet to send [12:34:02]OFD Sender: No OFD packet to send [12:34:07]OFD Sender: No OFD packet to send [12:34:12]OFD Sender: No OFD packet to send [12:34:17]OFD Sender: No OFD packet to send [12:34:22]OFD Sender: No OFD packet to send [12:34:27]OFD Sender: No OFD packet to send [12:34:32]OFD Sender: No OFD packet to send [12:34:37]OFD Sender: No OFD packet to send [12:34:42]OFD Sender: No OFD packet to send [12:34:47]OFD Sender: No OFD packet to send [12:34:52]OFD Sender: No OFD packet to send [12:34:57]OFD Sender: No OFD packet to send [12:35:02]OFD Sender: No OFD packet to send [12:35:07]OFD Sender: No OFD packet to send [12:35:08]accept exits with 8 [12:35:08]New connection [12:35:08]New thread 3066977636 created [12:35:08]Thread 3066834276 joined [12:35:08]Waiting for new connection... [12:35:08] Sock 8.Parse request [12:35:08]Sock 8.Check first char [12:35:08]Sock 8.First char is OK [12:35:08]request: POST /json_proto HTTP/1.0 [12:35:08]Method: POST [12:35:08]URL: /json_proto [12:35:08]Method is POST - this is cgi request [12:35:08]url: /json_proto [12:35:08]query_string will be loaded in cgi processing [12:35:08]execute_cgi json_proto POST (null) [12:35:08]execute_cgi path=json_proto method=POST [12:35:08]POST find Content-Length [12:35:08]Host: 172.17.63.3:8080 [12:35:08]Content-Length: 765 [12:35:08]Content-Type: application/json [12:35:08] [12:35:08]POST finish read [12:35:08]Found Content-Length = 765 [12:35:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99387", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.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: Mbank", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:35:08]execute_script... [12:35: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)99387", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.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: Mbank", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:35:08]POST & json_proto [12:35:08]process_json_proto [12:35:08]json parsed OK: [12:35:08]protocol is kg_v1.0 [12:35:08]action value=close_receipt [12:35:08]process_action close_receipt [12:35:08]cmd_close_receipt [12:35:08]MH_GetDate [12:35:08]Write to MH i2c: F0 00 00 19 54 5C [12:35:08]Write i2c OK [12:35:08]MH_I2C_Read... [12:35:08]Read from MH i2c: F0 [12:35:08]MH_I2C_Read... [12:35:08]Read from MH i2c: F0 09 00 [12:35:08]MH_I2C_Read... [12:35:08]Read from MH i2c: F0 09 00 19 54 00 82 33 1E 67 50 D1 6C 64 90 [12:35:08]GetLastDocTimeStamp 1730032345 [12:35:08]current date 1730032514 [12:35:08]FM_GetShiftState [12:35:08]SAM_PROTO_GetShiftState [12:35:08]wFMCommunicate request_size=4 [12:35:08]MH_SAM_APDU [12:35:08]CAPDU: 80 13 01 00 [12:35:08]Write to MH i2c: E2 08 00 1A 54 80 13 01 00 00 00 00 00 EB [12:35:08]Write i2c OK [12:35:08]MH_I2C_Read... [12:35:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:35:08]Read from MH i2c: E2 [12:35:08]MH_I2C_Read... [12:35:08]Read from MH i2c: E2 0E 00 [12:35:08]MH_I2C_Read... [12:35:08]Read from MH i2c: E2 0E 00 1A 54 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 B8 [12:35:08]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [12:35:08]wFMCommunicate OK [12:35:08]SAM_PROTO_GetShiftState done [12:35:08]FM_GetShiftState done [12:35:08]opened in 1729989044 [12:35:08]opened+sec_in_day 1730075444 [12:35:08]quantity*price = 20003 [12:35:08]sum+1 = 20004 [12:35:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.03 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 0.00 Безнал.: 200.03 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 124 27.10.2024 12:35 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 156573 ФПД: 257106218801802 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T123514&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156573&fm=257106218801802&tin=02508201610067®Number=0000000000091693&sum=20003 [12:35:09]StoreToDocumentArchive [12:35:09]shift 537 fd 156573 [12:35:09]save to /storage/0537/doc_00156573 [12:35:09]save last doc name /storage/0537/doc_00156573 to /storage/kkm_last_doc_name [12:35:09]save OK [12:35:09]Clear old archive folders... [12:35:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:35:09]tlvbuf is 017540F0 [12:35:09]SAM_PROTO_ClearQueue [12:35:09]wFMCommunicate request_size=4 [12:35:09]MH_SAM_APDU [12:35:09]CAPDU: 80 09 00 00 [12:35:09]Write to MH i2c: E2 08 00 27 54 80 09 00 00 00 00 00 00 ED [12:35:09]Write i2c OK [12:35:09]MH_I2C_Read... [12:35:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:35:09]Read from MH i2c: E2 [12:35:09]MH_I2C_Read... [12:35:09]Read from MH i2c: E2 03 00 [12:35:09]MH_I2C_Read... [12:35:09]Read from MH i2c: E2 03 00 27 54 00 90 00 EF [12:35:09]RAPDU: 90 00 [12:35:09]wFMCommunicate OK [12:35:09]SAM_PROTO_ClearQueue done [12:35:09]KKMCreateOFDPacket [12:35:09]OFDProtocolAddRootSTLVToBuf [12:35:09]FM_MakeSignedData [12:35:09]FM_MakeSignedData [12:35:09]SAM_PROTO_SignData [12:35:09]wFMCommunicate request_size=4 [12:35:09]MH_SAM_APDU [12:35:09]CAPDU: 80 0D 01 02 [12:35:09]Write to MH i2c: E2 08 00 28 54 80 0D 01 02 00 00 00 00 F5 [12:35:09]Write i2c OK [12:35:09]MH_I2C_Read... [12:35:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:35:09]Read from MH i2c: E2 [12:35:09]MH_I2C_Read... [12:35:09]Read from MH i2c: E2 03 00 [12:35:09]MH_I2C_Read... [12:35:09]Read from MH i2c: E2 03 00 28 54 00 90 00 F0 [12:35:09]RAPDU: 90 00 [12:35:09]wFMCommunicate OK [12:35:09]wFMCommunicate request_size=255 [12:35:09]MH_SAM_APDU [12:35: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 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 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 82 33 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9D 63 02 00 35 04 06 00 E9 [12:35:09]Write to MH i2c: E2 02 01 29 54 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 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 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 82 33 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9D 63 02 00 35 04 06 00 E9 00 00 0D [12:35:09]Write i2c OK [12:35:09]MH_I2C_Read... [12:35:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:35:09]Read from MH i2c: E2 [12:35:09]MH_I2C_Read... [12:35:09]Read from MH i2c: E2 03 00 [12:35:09]MH_I2C_Read... [12:35:09]Read from MH i2c: E2 03 00 29 54 00 90 00 F1 [12:35:09]RAPDU: 90 00 [12:35:09]wFMCommunicate OK [12:35:09]wFMCommunicate request_size=10 [12:35:09]MH_SAM_APDU [12:35:09]CAPDU: 80 0D 02 02 05 D6 34 D7 5A 8A [12:35:09]Write to MH i2c: E2 0D 00 2A 54 80 0D 02 02 05 00 D6 34 D7 5A 8A 00 00 C7 [12:35:09]Write i2c OK [12:35:09]MH_I2C_Read... [12:35:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:35:09]Read from MH i2c: E2 [12:35:09]MH_I2C_Read... [12:35:09]Read from MH i2c: E2 03 00 [12:35:09]MH_I2C_Read... [12:35:09]Read from MH i2c: E2 03 00 2A 54 00 90 00 F2 [12:35:09]RAPDU: 90 00 [12:35:09]wFMCommunicate OK [12:35:09]wFMCommunicate request_size=4 [12:35:09]MH_SAM_APDU [12:35:09]CAPDU: 80 0D 03 02 [12:35:09]Write to MH i2c: E2 08 00 2B 54 80 0D 03 02 00 00 00 00 FA [12:35:09]Write i2c OK [12:35:09]MH_I2C_Read... [12:35:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:35:10]Read from MH i2c: E2 [12:35:10]MH_I2C_Read... [12:35:10]Read from MH i2c: E2 0B 00 [12:35:10]MH_I2C_Read... [12:35:10]Read from MH i2c: E2 0B 00 2B 54 00 FB 2A 2A 72 37 2D 0B 0D 90 00 38 [12:35:10]RAPDU: FB 2A 2A 72 37 2D 0B 0D 90 00 [12:35:10]wFMCommunicate OK [12:35:10]SAM_PROTO_SignData done [12:35:10]FM_MakeSignedData done [12:35:10]CreateOFDProtocolMessage [12:35:10]wFMCommunicate request_size=4 [12:35:10]MH_SAM_APDU [12:35:10]CAPDU: 80 11 00 00 [12:35:10]Write to MH i2c: E2 08 00 2C 54 80 11 00 00 00 00 00 00 FA [12:35:10]Write i2c OK [12:35:10]MH_I2C_Read... [12:35:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:35:10]Read from MH i2c: E2 [12:35:10]MH_I2C_Read... [12:35:10]Read from MH i2c: E2 17 00 [12:35:10]MH_I2C_Read... [12:35:10]Read from MH i2c: E2 17 00 2C 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 4F [12:35:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:35:10]wFMCommunicate OK [12:35:10]CreateOFDProtocolMessage done [12:35:10]OFDSenderStorePacket 156573 [12:35:10]StoreOFDPacket docnum=156573 [12:35:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 23 14 07 01 A1 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 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 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 82 33 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9D 63 02 00 35 04 06 00 E9 D6 34 D7 5A 8A FB 2A 2A 72 37 2D 0B 0D [12:35:10]CheckFolder [12:35:10]dirname=/storage/ofd_packets [12:35:10]CheckFolder done [12:35:10]ProducePacketName [12:35:10]name=ofd_packets/00156573 [12:35:10]NVStorageSaveData ofd_packets/00156573 [12:35:10]File name is /storage/ofd_packets/00156573 [12:35:10]Write 301 bytes [12:35:10]NVStorageSaveData done [12:35:10]OFDSenderStorePacket done [12:35:10]KKMCreateOFDPacket done [12:35:10]NVStorageSaveData kkm_last_timestamp [12:35:10]File name is /storage/kkm_last_timestamp [12:35:10]Write 4 bytes [12:35:10]NVStorageSaveData done [12:35:10]ExternCall_PrintAddStr [12:35:10]wPrintStart [12:35:10]Write to MH i2c: 01 00 00 2D 54 81 [12:35:10]Write i2c OK [12:35:10]MH_I2C_Read... [12:35:10]Read from MH i2c: 01 [12:35:10]MH_I2C_Read... [12:35:10]Read from MH i2c: 01 07 00 [12:35:10]MH_I2C_Read... [12:35:10]Read from MH i2c: 01 07 00 2D 54 00 00 00 00 00 FF 0F 96 [12:35:10]RasterBufferAndPrint [12:35:10]line Счет N : (1)99387 [12:35:10]line ИНН: 02508201610067 [12:35:10]line Контрольно-Кассовый Чек [12:35:10]line ПРОДАЖА [12:35:10]line ТРК (МРК, ГНК) : 21 [12:35:10]line Товар: 2710124130 [12:35:10]line Аи-92-К-5 [12:35:10]line 2.990 * 66.90 [12:35:10]line = 200.03 [12:35:10]line НДС 12% НСП 1% [12:35:10]line > о реализуемом товаре [12:35:10]line ИТОГО: 200.03 [12:35:10]line НСП 1% : 1.77 [12:35:10]line НДС 12% : 21.24 [12:35:10]line Наличными: 0.00 [12:35:10]line Безнал.: 200.03 [12:35:10]line Место: АЗС № 143 "Партнер Нефть" [12:35:10]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [12:35:10]line СНО: Общий режим [12:35:10]line Чек 124 27.10.2024 12:35 [12:35:10]line Смена: 537 ФФД: 1.0 [12:35:10]line ЗНМ: 0300000096 [12:35:10]line РНМ: 0000000000091693 [12:35:10]line Версия ККМ: 001 [12:35:10]line Платежная система: Mbank [12:35:10]line ФМ: 0000000000871792 [12:35:10]line ФД: 156573 [12:35:10]line ФПД: 257106218801802 [12:35:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T123514&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156573&fm=257106218801802&tin=02508201610067®Number=0000000000091693&sum=20003 [12:35:10]written 0, free lines is 4095 [12:35:10]OFD Sender: Processing packet 156573 [packets to send 31, broken 30] [12:35:10]ProducePacketName [12:35:10]name=ofd_packets/00156573 [12:35:10]OFD Sender: To server: pG, [12:35:10]CommunicateWithHost lk.salyk.kg:30040 [12:35:10]ConnectInit lk.salyk.kg [12:35:10]Write to MH i2c: 01 00 00 56 54 AA [12:35:10]Write i2c OK [12:35:10]MH_I2C_Read... [12:35:10]Read from MH i2c: 01 [12:35:10]MH_I2C_Read... [12:35:10]Read from MH i2c: 01 07 00 [12:35:10]MH_I2C_Read... [12:35:10]Read from MH i2c: 01 07 00 56 54 00 00 00 00 00 FA 0C B7 [12:35:10]RasterBufferAndPrint [12:35:10]line [12:35:10]line [12:35:10]line [12:35:10]line [12:35:10]line [12:35:10]Connected sock=10 [12:35:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 23 14 07 01 A1 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 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 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 82 33 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9D 63 02 00 35 04 06 00 E9 D6 34 D7 5A 8A FB 2A 2A 72 37 2D 0B 0D [12:35:10]written 0, free lines is 3328 [12:35:10]process_action close_receipt done [12:35:10]requested_data is exist [12:35:10]produce_requested_data [12:35:10]requested_item fm.sn is exist - process it [12:35:10]wFMCommunicate request_size=4 [12:35:10]MH_SAM_APDU [12:35:10]CAPDU: 80 11 00 00 [12:35:10]Write to MH i2c: E2 08 00 5D 54 80 11 00 00 00 00 00 00 2B [12:35:10]Write i2c OK [12:35:10]MH_I2C_Read... [12:35:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:35:10]Read from MH i2c: E2 [12:35:10]MH_I2C_Read... [12:35:10]Read from MH i2c: E2 17 00 [12:35:10]MH_I2C_Read... [12:35:10]Read from MH i2c: E2 17 00 5D 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 80 [12:35:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:35:10]wFMCommunicate OK [12:35:10]requested_item fd.num is exist - process it [12:35:10]SAM_PROTO_GetFieldsCounters [12:35:10]wFMCommunicate request_size=4 [12:35:10]MH_SAM_APDU [12:35:10]CAPDU: 80 13 00 00 [12:35:10]Write to MH i2c: E2 08 00 5E 54 80 13 00 00 00 00 00 00 2E [12:35:10]Write i2c OK [12:35:10]MH_I2C_Read... [12:35:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:35:10]Read from MH i2c: E2 [12:35:10]MH_I2C_Read... [12:35:10]Read from MH i2c: E2 62 00 [12:35:10]MH_I2C_Read... [12:35:10]Read from MH i2c: E2 62 00 5E 54 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 9D 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 E5 [12:35:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 9D 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:35:10]wFMCommunicate OK [12:35:10]SAM_PROTO_GetFieldsCounters done [12:35:10]requested_item shift.num is exist - process it [12:35:10]requested_item shift.opened is exist - process it [12:35:10]req_shift_opened [12:35:10]FM_GetShiftState [12:35:10]SAM_PROTO_GetShiftState [12:35:10]wFMCommunicate request_size=4 [12:35:10]MH_SAM_APDU [12:35:10]CAPDU: 80 13 01 00 [12:35:10]Write to MH i2c: E2 08 00 5F 54 80 13 01 00 00 00 00 00 30 [12:35:10]Write i2c OK [12:35:10]MH_I2C_Read... [12:35:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 E6 39 47 00 D0 31 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9D 63 02 00 F4 03 04 00 F1 D8 1D 67 B6 04 01 00 00 3C EB 5D 68 71 7F 8E 59 [12:35:10]CommunicateWithHost err = 0 [12:35:10]CheckOFDResponse [12:35:10]1017 (14) - 77093643461234 [12:35:10]1041 (16) - 0000000000871792 [12:35:10]1040 (4) - 156573 [12:35:10]1012 (4) - 27.10.2024 06:08 [12:35:10]1206 (1) - 0 [12:35:10]OFD Sender: Remove packet 156573 [12:35:10]ProducePacketName [12:35:10]name=ofd_packets/00156573 [12:35:10]NVStorageDeleteData [12:35:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:35:10]Read from MH i2c: E2 [12:35:10]MH_I2C_Read... [12:35:10]Read from MH i2c: E2 0E 00 [12:35:10]MH_I2C_Read... [12:35:10]Read from MH i2c: E2 0E 00 5F 54 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 FD [12:35:10]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [12:35:10]wFMCommunicate OK [12:35:10]SAM_PROTO_GetShiftState done [12:35:10]FM_GetShiftState done [12:35:10]req_shift_opened done [12:35:10]requested_item shift.open_date is exist - process it [12:35:10]req_shift_open_date [12:35:10]req_shift_open_date done [12:35:10]produce_requested_data done [12:35:10]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156573,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [12:35:10]process_action_free close_receipt [12:35:10]json_value_free [12:35:10]json_value_free done [12:35:10]process_json_proto returns [12:35:10]Send response to host [12:35:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156573,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [12:35:10]free response buf [12:35:10]execute_script done [12:35:10]execute_script returns [12:35:10]free content buf [12:35:10]Sock 8.Close socket [12:35:10]Sock 8.Thread stoped [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:41]OFD Sender: No OFD packet to send [12:35:46]OFD Sender: No OFD packet to send [12:35:51]OFD Sender: No OFD packet to send [12:35:56]OFD Sender: No OFD packet to send [12:36:01]OFD Sender: No OFD packet to send [12:36:06]OFD Sender: No OFD packet to send [12:36:06]accept exits with 9 [12:36:06]New connection [12:36:06]New thread 3066834276 created [12:36:06]Thread 3066977636 joined [12:36:06]Waiting for new connection... [12:36:06] Sock 9.Parse request [12:36:06]Sock 9.Check first char [12:36:06]Sock 9.First char is OK [12:36:06]request: POST /json_proto HTTP/1.0 [12:36:06]Method: POST [12:36:06]URL: /json_proto [12:36:06]Method is POST - this is cgi request [12:36:06]url: /json_proto [12:36:06]query_string will be loaded in cgi processing [12:36:06]execute_cgi json_proto POST (null) [12:36:06]execute_cgi path=json_proto method=POST [12:36:06]POST find Content-Length [12:36:06]Host: 172.17.63.3:8080 [12:36:06]Content-Length: 639 [12:36:06]Content-Type: application/json [12:36:06] [12:36:06]POST finish read [12:36:06]Found Content-Length = 639 [12:36:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99388", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.000, "sum" : 669.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 669.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:36:06]execute_script... [12:36: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)99388", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.000, "sum" : 669.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 669.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:36:06]POST & json_proto [12:36:06]process_json_proto [12:36:06]json parsed OK: [12:36:06]protocol is kg_v1.0 [12:36:06]action value=close_receipt [12:36:06]process_action close_receipt [12:36:06]cmd_close_receipt [12:36:06]MH_GetDate [12:36:06]Write to MH i2c: F0 00 00 60 54 A3 [12:36:06]Write i2c OK [12:36:06]MH_I2C_Read... [12:36:06]Read from MH i2c: F0 [12:36:06]MH_I2C_Read... [12:36:06]Read from MH i2c: F0 09 00 [12:36:06]MH_I2C_Read... [12:36:06]Read from MH i2c: F0 09 00 60 54 00 BC 33 1E 67 50 D1 6C 64 11 [12:36:06]GetLastDocTimeStamp 1730032514 [12:36:06]current date 1730032572 [12:36:06]FM_GetShiftState [12:36:06]SAM_PROTO_GetShiftState [12:36:06]wFMCommunicate request_size=4 [12:36:06]MH_SAM_APDU [12:36:06]CAPDU: 80 13 01 00 [12:36:06]Write to MH i2c: E2 08 00 61 54 80 13 01 00 00 00 00 00 32 [12:36:06]Write i2c OK [12:36:06]MH_I2C_Read... [12:36:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:36:06]Read from MH i2c: E2 [12:36:06]MH_I2C_Read... [12:36:06]Read from MH i2c: E2 0E 00 [12:36:06]MH_I2C_Read... [12:36:06]Read from MH i2c: E2 0E 00 61 54 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 FF [12:36:06]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [12:36:06]wFMCommunicate OK [12:36:06]SAM_PROTO_GetShiftState done [12:36:06]FM_GetShiftState done [12:36:06]opened in 1729989044 [12:36:06]opened+sec_in_day 1730075444 [12:36:06]quantity*price = 66900 [12:36:06]sum+1 = 66901 [12:36:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 669.00 НСП 1% : 5.92 НДС 12% : 71.04 Наличными: 669.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 125 27.10.2024 12:36 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156574 ФПД: 145258733347798 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T123612&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156574&fm=145258733347798&tin=02508201610067®Number=0000000000091693&sum=66900 [12:36:07]StoreToDocumentArchive [12:36:07]shift 537 fd 156574 [12:36:07]save to /storage/0537/doc_00156574 [12:36:07]save last doc name /storage/0537/doc_00156574 to /storage/kkm_last_doc_name [12:36:07]save OK [12:36:07]Clear old archive folders... [12:36:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:36:07]tlvbuf is 017DC580 [12:36:07]SAM_PROTO_ClearQueue [12:36:07]wFMCommunicate request_size=4 [12:36:07]MH_SAM_APDU [12:36:07]CAPDU: 80 09 00 00 [12:36:07]Write to MH i2c: E2 08 00 6E 54 80 09 00 00 00 00 00 00 34 [12:36:07]Write i2c OK [12:36:07]MH_I2C_Read... [12:36:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:36:07]Read from MH i2c: E2 [12:36:07]MH_I2C_Read... [12:36:07]Read from MH i2c: E2 03 00 [12:36:07]MH_I2C_Read... [12:36:07]Read from MH i2c: E2 03 00 6E 54 00 90 00 36 [12:36:07]RAPDU: 90 00 [12:36:07]wFMCommunicate OK [12:36:07]SAM_PROTO_ClearQueue done [12:36:07]KKMCreateOFDPacket [12:36:07]OFDProtocolAddRootSTLVToBuf [12:36:07]FM_MakeSignedData [12:36:07]FM_MakeSignedData [12:36:07]SAM_PROTO_SignData [12:36:07]wFMCommunicate request_size=4 [12:36:07]MH_SAM_APDU [12:36:07]CAPDU: 80 0D 01 02 [12:36:07]Write to MH i2c: E2 08 00 6F 54 80 0D 01 02 00 00 00 00 3C [12:36:07]Write i2c OK [12:36:07]MH_I2C_Read... [12:36:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:36:07]Read from MH i2c: E2 [12:36:07]MH_I2C_Read... [12:36:07]Read from MH i2c: E2 03 00 [12:36:07]MH_I2C_Read... [12:36:07]Read from MH i2c: E2 03 00 6F 54 00 90 00 37 [12:36:07]RAPDU: 90 00 [12:36:07]wFMCommunicate OK [12:36:07]wFMCommunicate request_size=255 [12:36:07]MH_SAM_APDU [12:36: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 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 54 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 BC 33 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9E 63 02 00 35 04 06 00 84 [12:36:07]Write to MH i2c: E2 02 01 70 54 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 54 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 BC 33 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9E 63 02 00 35 04 06 00 84 00 00 8C [12:36:07]Write i2c OK [12:36:07]MH_I2C_Read... [12:36:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:36:07]Read from MH i2c: E2 [12:36:07]MH_I2C_Read... [12:36:07]Read from MH i2c: E2 03 00 [12:36:07]MH_I2C_Read... [12:36:07]Read from MH i2c: E2 03 00 70 54 00 90 00 38 [12:36:07]RAPDU: 90 00 [12:36:07]wFMCommunicate OK [12:36:07]wFMCommunicate request_size=10 [12:36:07]MH_SAM_APDU [12:36:07]CAPDU: 80 0D 02 02 05 1C AF 33 A3 D6 [12:36:07]Write to MH i2c: E2 0D 00 71 54 80 0D 02 02 05 00 1C AF 33 A3 D6 00 00 C0 [12:36:07]Write i2c OK [12:36:07]MH_I2C_Read... [12:36:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:36:07]Read from MH i2c: E2 [12:36:07]MH_I2C_Read... [12:36:07]Read from MH i2c: E2 03 00 [12:36:07]MH_I2C_Read... [12:36:07]Read from MH i2c: E2 03 00 71 54 00 90 00 39 [12:36:07]RAPDU: 90 00 [12:36:07]wFMCommunicate OK [12:36:07]wFMCommunicate request_size=4 [12:36:07]MH_SAM_APDU [12:36:07]CAPDU: 80 0D 03 02 [12:36:07]Write to MH i2c: E2 08 00 72 54 80 0D 03 02 00 00 00 00 41 [12:36:07]Write i2c OK [12:36:07]MH_I2C_Read... [12:36:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:36:07]Read from MH i2c: E2 [12:36:07]MH_I2C_Read... [12:36:07]Read from MH i2c: E2 0B 00 [12:36:07]MH_I2C_Read... [12:36:07]Read from MH i2c: E2 0B 00 72 54 00 5E DA 3B C0 5D 02 A8 68 90 00 E4 [12:36:07]RAPDU: 5E DA 3B C0 5D 02 A8 68 90 00 [12:36:07]wFMCommunicate OK [12:36:07]SAM_PROTO_SignData done [12:36:07]FM_MakeSignedData done [12:36:07]CreateOFDProtocolMessage [12:36:07]wFMCommunicate request_size=4 [12:36:07]MH_SAM_APDU [12:36:07]CAPDU: 80 11 00 00 [12:36:07]Write to MH i2c: E2 08 00 73 54 80 11 00 00 00 00 00 00 41 [12:36:07]Write i2c OK [12:36:07]MH_I2C_Read... [12:36:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:36:08]Read from MH i2c: E2 [12:36:08]MH_I2C_Read... [12:36:08]Read from MH i2c: E2 17 00 [12:36:08]MH_I2C_Read... [12:36:08]Read from MH i2c: E2 17 00 73 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 96 [12:36:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:36:08]wFMCommunicate OK [12:36:08]CreateOFDProtocolMessage done [12:36:08]OFDSenderStorePacket 156574 [12:36:08]StoreOFDPacket docnum=156574 [12:36:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 0D 77 07 01 3C 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 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 54 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 BC 33 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9E 63 02 00 35 04 06 00 84 1C AF 33 A3 D6 5E DA 3B C0 5D 02 A8 68 [12:36:08]CheckFolder [12:36:08]dirname=/storage/ofd_packets [12:36:08]CheckFolder done [12:36:08]ProducePacketName [12:36:08]name=ofd_packets/00156574 [12:36:08]NVStorageSaveData ofd_packets/00156574 [12:36:08]File name is /storage/ofd_packets/00156574 [12:36:08]Write 301 bytes [12:36:08]NVStorageSaveData done [12:36:08]OFDSenderStorePacket done [12:36:08]KKMCreateOFDPacket done [12:36:08]NVStorageSaveData kkm_last_timestamp [12:36:08]File name is /storage/kkm_last_timestamp [12:36:08]Write 4 bytes [12:36:08]NVStorageSaveData done [12:36:08]ExternCall_PrintAddStr [12:36:08]wPrintStart [12:36:08]Write to MH i2c: 01 00 00 74 54 C8 [12:36:08]Write i2c OK [12:36:08]MH_I2C_Read... [12:36:08]Read from MH i2c: 01 [12:36:08]MH_I2C_Read... [12:36:08]Read from MH i2c: 01 07 00 [12:36:08]MH_I2C_Read... [12:36:08]Read from MH i2c: 01 07 00 74 54 00 00 00 00 00 FF 0F DD [12:36:08]RasterBufferAndPrint [12:36:08]line Счет N : (1)99388 [12:36:08]line ИНН: 02508201610067 [12:36:08]line Контрольно-Кассовый Чек [12:36:08]line ПРОДАЖА [12:36:08]line ТРК (МРК, ГНК) : 21 [12:36:08]line Товар: 2710124130 [12:36:08]line Аи-92-К-5 [12:36:08]line 10.000 * 66.90 [12:36:08]line = 669.00 [12:36:08]line НДС 12% НСП 1% [12:36:08]line > о реализуемом товаре [12:36:08]line ИТОГО: 669.00 [12:36:08]line НСП 1% : 5.92 [12:36:08]line НДС 12% : 71.04 [12:36:08]line Наличными: 669.00 [12:36:08]line Безнал.: 0.00 [12:36:08]line Место: АЗС № 143 "Партнер Нефть" [12:36:08]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [12:36:08]line СНО: Общий режим [12:36:08]line Чек 125 27.10.2024 12:36 [12:36:08]line Смена: 537 ФФД: 1.0 [12:36:08]line ЗНМ: 0300000096 [12:36:08]line РНМ: 0000000000091693 [12:36:08]line Версия ККМ: 001 [12:36:08]line ФМ: 0000000000871792 [12:36:08]line ФД: 156574 [12:36:08]line ФПД: 145258733347798 [12:36:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T123612&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156574&fm=145258733347798&tin=02508201610067®Number=0000000000091693&sum=66900 [12:36:08]OFD Sender: Processing packet 156574 [packets to send 31, broken 30] [12:36:08]ProducePacketName [12:36:08]name=ofd_packets/00156574 [12:36:08]OFD Sender: To server: pG, [12:36:08]CommunicateWithHost lk.salyk.kg:30040 [12:36:08]ConnectInit lk.salyk.kg [12:36:08]written 0, free lines is 4095 [12:36:08]Connected sock=10 [12:36:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 0D 77 07 01 3C 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 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 54 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 BC 33 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9E 63 02 00 35 04 06 00 84 1C AF 33 A3 D6 5E DA 3B C0 5D 02 A8 68 [12:36:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 E2 32 47 00 FF A5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9E 63 02 00 F4 03 04 00 2B D9 1D 67 B6 04 01 00 00 14 20 24 15 DB E2 BC D7 [12:36:08]CommunicateWithHost err = 0 [12:36:08]CheckOFDResponse [12:36:08]1017 (14) - 77093643461234 [12:36:08]1041 (16) - 0000000000871792 [12:36:08]1040 (4) - 156574 [12:36:08]1012 (4) - 27.10.2024 06:09 [12:36:08]1206 (1) - 0 [12:36:08]OFD Sender: Remove packet 156574 [12:36:08]ProducePacketName [12:36:08]name=ofd_packets/00156574 [12:36:08]NVStorageDeleteData [12:36:08]Write to MH i2c: 01 00 00 9C 54 F0 [12:36:08]Write i2c OK [12:36:08]MH_I2C_Read... [12:36:08]Read from MH i2c: 01 [12:36:08]MH_I2C_Read... [12:36:08]Read from MH i2c: 01 07 00 [12:36:08]MH_I2C_Read... [12:36:08]Read from MH i2c: 01 07 00 9C 54 00 00 00 00 00 10 0D 14 [12:36:08]RasterBufferAndPrint [12:36:08]line [12:36:08]line [12:36:08]line [12:36:08]line [12:36:08]line [12:36:08]written 0, free lines is 3350 [12:36:08]process_action close_receipt done [12:36:08]requested_data is exist [12:36:08]produce_requested_data [12:36:08]requested_item fm.sn is exist - process it [12:36:08]wFMCommunicate request_size=4 [12:36:08]MH_SAM_APDU [12:36:08]CAPDU: 80 11 00 00 [12:36:08]Write to MH i2c: E2 08 00 A3 54 80 11 00 00 00 00 00 00 71 [12:36:08]Write i2c OK [12:36:08]MH_I2C_Read... [12:36:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:36:08]Read from MH i2c: E2 [12:36:08]MH_I2C_Read... [12:36:08]Read from MH i2c: E2 17 00 [12:36:08]MH_I2C_Read... [12:36:08]Read from MH i2c: E2 17 00 A3 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 C6 [12:36:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:36:08]wFMCommunicate OK [12:36:08]requested_item fd.num is exist - process it [12:36:08]SAM_PROTO_GetFieldsCounters [12:36:08]wFMCommunicate request_size=4 [12:36:08]MH_SAM_APDU [12:36:08]CAPDU: 80 13 00 00 [12:36:08]Write to MH i2c: E2 08 00 A4 54 80 13 00 00 00 00 00 00 74 [12:36:08]Write i2c OK [12:36:08]MH_I2C_Read... [12:36:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:36:08]Read from MH i2c: E2 [12:36:08]MH_I2C_Read... [12:36:08]Read from MH i2c: E2 62 00 [12:36:08]MH_I2C_Read... [12:36:09]Read from MH i2c: E2 62 00 A4 54 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 9E 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 2F [12:36:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 9E 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:36:09]wFMCommunicate OK [12:36:09]SAM_PROTO_GetFieldsCounters done [12:36:09]requested_item shift.num is exist - process it [12:36:09]requested_item shift.opened is exist - process it [12:36:09]req_shift_opened [12:36:09]FM_GetShiftState [12:36:09]SAM_PROTO_GetShiftState [12:36:09]wFMCommunicate request_size=4 [12:36:09]MH_SAM_APDU [12:36:09]CAPDU: 80 13 01 00 [12:36:09]Write to MH i2c: E2 08 00 A5 54 80 13 01 00 00 00 00 00 76 [12:36:09]Write i2c OK [12:36:09]MH_I2C_Read... [12:36:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:36:09]Read from MH i2c: E2 [12:36:09]MH_I2C_Read... [12:36:09]Read from MH i2c: E2 0E 00 [12:36:09]MH_I2C_Read... [12:36:09]Read from MH i2c: E2 0E 00 A5 54 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 43 [12:36:09]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [12:36:09]wFMCommunicate OK [12:36:09]SAM_PROTO_GetShiftState done [12:36:09]FM_GetShiftState done [12:36:09]req_shift_opened done [12:36:09]requested_item shift.open_date is exist - process it [12:36:09]req_shift_open_date [12:36:09]req_shift_open_date done [12:36:09]produce_requested_data done [12:36:09]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156574,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [12:36:09]process_action_free close_receipt [12:36:09]json_value_free [12:36:09]json_value_free done [12:36:09]process_json_proto returns [12:36:09]Send response to host [12:36:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156574,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [12:36:09]free response buf [12:36:09]execute_script done [12:36:09]execute_script returns [12:36:09]free content buf [12:36:09]Sock 9.Close socket [12:36:09]Sock 9.Thread stoped [12:36:09]OFD Sender: No OFD packet to send [12:36:14]OFD Sender: No OFD packet to send [12:36:19]OFD Sender: No OFD packet to send [12:36:24]OFD Sender: No OFD packet to send [12:36:29]OFD Sender: No OFD packet to send [12:36:34]OFD Sender: No OFD packet to send [12:36:39]OFD Sender: No OFD packet to send [12:36:44]OFD Sender: No OFD packet to send [12:36:49]OFD Sender: No OFD packet to send [12:36:54]OFD Sender: No OFD packet to send [12:36:59]OFD Sender: No OFD packet to send [12:37:04]OFD Sender: No OFD packet to send [12:37:09]OFD Sender: No OFD packet to send [12:37:14]OFD Sender: No OFD packet to send [12:37:19]OFD Sender: No OFD packet to send [12:37:24]OFD Sender: No OFD packet to send [12:37:29]OFD Sender: No OFD packet to send [12:37:34]OFD Sender: No OFD packet to send [12:37:39]OFD Sender: No OFD packet to send [12:37:44]OFD Sender: No OFD packet to send [12:37:49]OFD Sender: No OFD packet to send [12:37:54]OFD Sender: No OFD packet to send [12:37:59]OFD Sender: No OFD packet to send [12:38:04]OFD Sender: No OFD packet to send [12:38:09]OFD Sender: No OFD packet to send [12:38:14]OFD Sender: No OFD packet to send [12:38:19]OFD Sender: No OFD packet to send [12:38:24]OFD Sender: No OFD packet to send [12:38:29]OFD Sender: No OFD packet to send [12:38:34]OFD Sender: No OFD packet to send [12:38:39]OFD Sender: No OFD packet to send [12:38:44]OFD Sender: No OFD packet to send [12:38:49]OFD Sender: No OFD packet to send [12:38:54]OFD Sender: No OFD packet to send [12:38:59]OFD Sender: No OFD packet to send [12:39:04]OFD Sender: No OFD packet to send [12:39:09]OFD Sender: No OFD packet to send [12:39:14]OFD Sender: No OFD packet to send [12:39:19]OFD Sender: No OFD packet to send [12:39:24]OFD Sender: No OFD packet to send [12:39:29]OFD Sender: No OFD packet to send [12:39:34]OFD Sender: No OFD packet to send [12:39:39]OFD Sender: No OFD packet to send [12:39:44]OFD Sender: No OFD packet to send [12:39:49]OFD Sender: No OFD packet to send [12:39:54]OFD Sender: No OFD packet to send [12:39:59]OFD Sender: No OFD packet to send [12:40:04]OFD Sender: No OFD packet to send [12:40:09]OFD Sender: No OFD packet to send [12:40:14]OFD Sender: No OFD packet to send [12:40:19]OFD Sender: No OFD packet to send [12:40:24]OFD Sender: No OFD packet to send [12:40:29]OFD Sender: No OFD packet to send [12:40:34]OFD Sender: No OFD packet to send [12:40:39]OFD Sender: No OFD packet to send [12:40:44]OFD Sender: No OFD packet to send [12:40:49]OFD Sender: No OFD packet to send [12:40:54]OFD Sender: No OFD packet to send [12:40:59]OFD Sender: No OFD packet to send [12:41:04]OFD Sender: No OFD packet to send [12:41:09]OFD Sender: No OFD packet to send [12:41:14]OFD Sender: No OFD packet to send [12:41:19]OFD Sender: No OFD packet to send [12:41:24]OFD Sender: No OFD packet to send [12:41:29]OFD Sender: No OFD packet to send [12:41:34]OFD Sender: No OFD packet to send [12:41:39]OFD Sender: No OFD packet to send [12:41:44]OFD Sender: No OFD packet to send [12:41:49]OFD Sender: No OFD packet to send [12:41:54]OFD Sender: No OFD packet to send [12:41:59]OFD Sender: No OFD packet to send [12:42:04]OFD Sender: No OFD packet to send [12:42:09]OFD Sender: No OFD packet to send [12:42:14]OFD Sender: No OFD packet to send [12:42:19]OFD Sender: No OFD packet to send [12:42:24]OFD Sender: No OFD packet to send [12:42:29]OFD Sender: No OFD packet to send [12:42:34]OFD Sender: No OFD packet to send [12:42:35]accept exits with 8 [12:42:35]New connection [12:42:35]New thread 3066977636 created [12:42:35]Thread 3066834276 joined [12:42:35]Waiting for new connection... [12:42:35] Sock 8.Parse request [12:42:35]Sock 8.Check first char [12:42:35]Sock 8.First char is OK [12:42:35]request: POST /json_proto HTTP/1.0 [12:42:35]Method: POST [12:42:35]URL: /json_proto [12:42:35]Method is POST - this is cgi request [12:42:35]url: /json_proto [12:42:35]query_string will be loaded in cgi processing [12:42:35]execute_cgi json_proto POST (null) [12:42:35]execute_cgi path=json_proto method=POST [12:42:35]POST find Content-Length [12:42:35]Host: 172.17.63.3:8080 [12:42:35]Content-Length: 677 [12:42:35]Content-Type: application/json [12:42:35] [12:42:35]POST finish read [12:42:35]Found Content-Length = 677 [12:42:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99389", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "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" ] } } [12:42:35]execute_script... [12:42:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99389", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "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" ] } } [12:42:35]POST & json_proto [12:42:35]process_json_proto [12:42:35]json parsed OK: [12:42:35]protocol is kg_v1.0 [12:42:35]action value=close_receipt [12:42:35]process_action close_receipt [12:42:35]cmd_close_receipt [12:42:35]MH_GetDate [12:42:35]Write to MH i2c: F0 00 00 A6 54 E9 [12:42:35]Write i2c OK [12:42:35]MH_I2C_Read... [12:42:35]Read from MH i2c: F0 [12:42:35]MH_I2C_Read... [12:42:35]Read from MH i2c: F0 09 00 [12:42:35]MH_I2C_Read... [12:42:35]Read from MH i2c: F0 09 00 A6 54 00 41 35 1E 67 50 D1 6C 64 DE [12:42:35]GetLastDocTimeStamp 1730032572 [12:42:35]current date 1730032961 [12:42:35]FM_GetShiftState [12:42:35]SAM_PROTO_GetShiftState [12:42:35]wFMCommunicate request_size=4 [12:42:35]MH_SAM_APDU [12:42:35]CAPDU: 80 13 01 00 [12:42:35]Write to MH i2c: E2 08 00 A7 54 80 13 01 00 00 00 00 00 78 [12:42:35]Write i2c OK [12:42:35]MH_I2C_Read... [12:42:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:42:35]Read from MH i2c: E2 [12:42:35]MH_I2C_Read... [12:42:35]Read from MH i2c: E2 0E 00 [12:42:35]MH_I2C_Read... [12:42:35]Read from MH i2c: E2 0E 00 A7 54 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 45 [12:42:35]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [12:42:35]wFMCommunicate OK [12:42:35]SAM_PROTO_GetShiftState done [12:42:35]FM_GetShiftState done [12:42:35]opened in 1729989044 [12:42:35]opened+sec_in_day 1730075444 [12:42:35]quantity*price = 80012 [12:42:35]sum+1 = 80013 [12:42:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 126 27.10.2024 12:42 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156575 ФПД: 169341545185557 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T124241&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156575&fm=169341545185557&tin=02508201610067®Number=0000000000091693&sum=80000 [12:42:36]StoreToDocumentArchive [12:42:36]shift 537 fd 156575 [12:42:36]save to /storage/0537/doc_00156575 [12:42:36]save last doc name /storage/0537/doc_00156575 to /storage/kkm_last_doc_name [12:42:36]save OK [12:42:36]Clear old archive folders... [12:42:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:42:36]tlvbuf is 017DCCA0 [12:42:36]SAM_PROTO_ClearQueue [12:42:36]wFMCommunicate request_size=4 [12:42:36]MH_SAM_APDU [12:42:36]CAPDU: 80 09 00 00 [12:42:36]Write to MH i2c: E2 08 00 B4 54 80 09 00 00 00 00 00 00 7A [12:42:36]Write i2c OK [12:42:36]MH_I2C_Read... [12:42:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:42:36]Read from MH i2c: E2 [12:42:36]MH_I2C_Read... [12:42:36]Read from MH i2c: E2 03 00 [12:42:36]MH_I2C_Read... [12:42:36]Read from MH i2c: E2 03 00 B4 54 00 90 00 7C [12:42:36]RAPDU: 90 00 [12:42:36]wFMCommunicate OK [12:42:36]SAM_PROTO_ClearQueue done [12:42:36]KKMCreateOFDPacket [12:42:36]OFDProtocolAddRootSTLVToBuf [12:42:36]FM_MakeSignedData [12:42:36]FM_MakeSignedData [12:42:36]SAM_PROTO_SignData [12:42:36]wFMCommunicate request_size=4 [12:42:36]MH_SAM_APDU [12:42:36]CAPDU: 80 0D 01 02 [12:42:36]Write to MH i2c: E2 08 00 B5 54 80 0D 01 02 00 00 00 00 82 [12:42:36]Write i2c OK [12:42:36]MH_I2C_Read... [12:42:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:42:36]Read from MH i2c: E2 [12:42:36]MH_I2C_Read... [12:42:36]Read from MH i2c: E2 03 00 [12:42:36]MH_I2C_Read... [12:42:36]Read from MH i2c: E2 03 00 B5 54 00 90 00 7D [12:42:36]RAPDU: 90 00 [12:42:36]wFMCommunicate OK [12:42:36]wFMCommunicate request_size=255 [12:42:36]MH_SAM_APDU [12:42: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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 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 7E 00 00 00 F4 03 04 00 41 35 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9F 63 02 00 35 04 06 00 9A [12:42:36]Write to MH i2c: E2 02 01 B6 54 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 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 7E 00 00 00 F4 03 04 00 41 35 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9F 63 02 00 35 04 06 00 9A 00 00 34 [12:42:36]Write i2c OK [12:42:36]MH_I2C_Read... [12:42:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:42:37]Read from MH i2c: E2 [12:42:37]MH_I2C_Read... [12:42:37]Read from MH i2c: E2 03 00 [12:42:37]MH_I2C_Read... [12:42:37]Read from MH i2c: E2 03 00 B6 54 00 90 00 7E [12:42:37]RAPDU: 90 00 [12:42:37]wFMCommunicate OK [12:42:37]wFMCommunicate request_size=10 [12:42:37]MH_SAM_APDU [12:42:37]CAPDU: 80 0D 02 02 05 03 E6 A5 81 15 [12:42:37]Write to MH i2c: E2 0D 00 B7 54 80 0D 02 02 05 00 03 E6 A5 81 15 00 00 B3 [12:42:37]Write i2c OK [12:42:37]MH_I2C_Read... [12:42:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:42:37]Read from MH i2c: E2 [12:42:37]MH_I2C_Read... [12:42:37]Read from MH i2c: E2 03 00 [12:42:37]MH_I2C_Read... [12:42:37]Read from MH i2c: E2 03 00 B7 54 00 90 00 7F [12:42:37]RAPDU: 90 00 [12:42:37]wFMCommunicate OK [12:42:37]wFMCommunicate request_size=4 [12:42:37]MH_SAM_APDU [12:42:37]CAPDU: 80 0D 03 02 [12:42:37]Write to MH i2c: E2 08 00 B8 54 80 0D 03 02 00 00 00 00 87 [12:42:37]Write i2c OK [12:42:37]MH_I2C_Read... [12:42:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:42:37]Read from MH i2c: E2 [12:42:37]MH_I2C_Read... [12:42:37]Read from MH i2c: E2 0B 00 [12:42:37]MH_I2C_Read... [12:42:37]Read from MH i2c: E2 0B 00 B8 54 00 97 93 5B FA C8 C8 F7 30 90 00 BE [12:42:37]RAPDU: 97 93 5B FA C8 C8 F7 30 90 00 [12:42:37]wFMCommunicate OK [12:42:37]SAM_PROTO_SignData done [12:42:37]FM_MakeSignedData done [12:42:37]CreateOFDProtocolMessage [12:42:37]wFMCommunicate request_size=4 [12:42:37]MH_SAM_APDU [12:42:37]CAPDU: 80 11 00 00 [12:42:37]Write to MH i2c: E2 08 00 B9 54 80 11 00 00 00 00 00 00 87 [12:42:37]Write i2c OK [12:42:37]MH_I2C_Read... [12:42:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:42:37]Read from MH i2c: E2 [12:42:37]MH_I2C_Read... [12:42:37]Read from MH i2c: E2 17 00 [12:42:37]MH_I2C_Read... [12:42:37]Read from MH i2c: E2 17 00 B9 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 DC [12:42:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:42:37]wFMCommunicate OK [12:42:37]CreateOFDProtocolMessage done [12:42:37]OFDSenderStorePacket 156575 [12:42:37]StoreOFDPacket docnum=156575 [12:42:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 5A 75 07 01 0F D7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 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 7E 00 00 00 F4 03 04 00 41 35 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9F 63 02 00 35 04 06 00 9A 03 E6 A5 81 15 97 93 5B FA C8 C8 F7 30 [12:42:37]CheckFolder [12:42:37]dirname=/storage/ofd_packets [12:42:37]CheckFolder done [12:42:37]ProducePacketName [12:42:37]name=ofd_packets/00156575 [12:42:37]NVStorageSaveData ofd_packets/00156575 [12:42:37]File name is /storage/ofd_packets/00156575 [12:42:37]Write 301 bytes [12:42:37]NVStorageSaveData done [12:42:37]OFDSenderStorePacket done [12:42:37]KKMCreateOFDPacket done [12:42:37]NVStorageSaveData kkm_last_timestamp [12:42:37]File name is /storage/kkm_last_timestamp [12:42:37]Write 4 bytes [12:42:37]NVStorageSaveData done [12:42:37]ExternCall_PrintAddStr [12:42:37]wPrintStart [12:42:37]Write to MH i2c: 01 00 00 BA 54 0E [12:42:37]Write i2c OK [12:42:37]MH_I2C_Read... [12:42:37]Read from MH i2c: 01 [12:42:37]MH_I2C_Read... [12:42:37]Read from MH i2c: 01 07 00 [12:42:37]MH_I2C_Read... [12:42:37]Read from MH i2c: 01 07 00 BA 54 00 00 00 00 00 FF 0F 23 [12:42:37]RasterBufferAndPrint [12:42:37]line Счет N : (1)99389 [12:42:37]line ИНН: 02508201610067 [12:42:37]line Контрольно-Кассовый Чек [12:42:37]line ПРОДАЖА [12:42:37]line ТРК (МРК, ГНК) : 11 [12:42:37]line Товар: 2710124130 [12:42:37]line Аи-92-К-5 [12:42:37]line 11.960 * 66.90 [12:42:37]line = 800.12 [12:42:37]line НДС 12% НСП 1% [12:42:37]line > о реализуемом товаре [12:42:37]line ОКРУГЛЕНИЕ: -0.12 [12:42:37]line ИТОГО: 800.00 [12:42:37]line Внесено: 800.00 [12:42:37]line СДАЧА: 0.00 [12:42:37]line НСП 1% : 7.08 [12:42:37]line НДС 12% : 84.97 [12:42:37]line Наличными: 800.00 [12:42:37]line Безнал.: 0.00 [12:42:37]line Место: АЗС № 143 "Партнер Нефть" [12:42:37]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [12:42:37]line СНО: Общий режим [12:42:37]line Чек 126 27.10.2024 12:42 [12:42:37]line Смена: 537 ФФД: 1.0 [12:42:37]line ЗНМ: 0300000096 [12:42:37]line РНМ: 0000000000091693 [12:42:37]line Версия ККМ: 001 [12:42:37]line ФМ: 0000000000871792 [12:42:37]line ФД: 156575 [12:42:37]line ФПД: 169341545185557 [12:42:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T124241&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156575&fm=169341545185557&tin=02508201610067®Number=0000000000091693&sum=80000 [12:42:37]OFD Sender: Processing packet 156575 [packets to send 31, broken 30] [12:42:37]ProducePacketName [12:42:37]name=ofd_packets/00156575 [12:42:37]OFD Sender: To server: pG, [12:42:37]CommunicateWithHost lk.salyk.kg:30040 [12:42:37]ConnectInit lk.salyk.kg [12:42:37]written 0, free lines is 4095 [12:42:37]Connected sock=11 [12:42:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 5A 75 07 01 0F D7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 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 7E 00 00 00 F4 03 04 00 41 35 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9F 63 02 00 35 04 06 00 9A 03 E6 A5 81 15 97 93 5B FA C8 C8 F7 30 [12:42:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 DF 82 47 00 59 92 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 9F 63 02 00 F4 03 04 00 B1 DA 1D 67 B6 04 01 00 00 28 49 3F D7 72 E8 C2 E0 [12:42:38]CommunicateWithHost err = 0 [12:42:38]CheckOFDResponse [12:42:38]1017 (14) - 77093643461234 [12:42:38]1041 (16) - 0000000000871792 [12:42:38]1040 (4) - 156575 [12:42:38]1012 (4) - 27.10.2024 06:16 [12:42:38]1206 (1) - 0 [12:42:38]OFD Sender: Remove packet 156575 [12:42:38]ProducePacketName [12:42:38]name=ofd_packets/00156575 [12:42:38]NVStorageDeleteData [12:42:38]Write to MH i2c: 01 00 00 E5 54 39 [12:42:38]Write i2c OK [12:42:38]MH_I2C_Read... [12:42:38]Read from MH i2c: 01 [12:42:38]MH_I2C_Read... [12:42:38]Read from MH i2c: 01 07 00 [12:42:38]MH_I2C_Read... [12:42:38]Read from MH i2c: 01 07 00 E5 54 00 00 00 00 00 D8 0C 24 [12:42:38]RasterBufferAndPrint [12:42:38]line [12:42:38]line [12:42:38]line [12:42:38]line [12:42:38]line [12:42:38]written 0, free lines is 3295 [12:42:38]process_action close_receipt done [12:42:38]requested_data is exist [12:42:38]produce_requested_data [12:42:38]requested_item fm.sn is exist - process it [12:42:38]wFMCommunicate request_size=4 [12:42:38]MH_SAM_APDU [12:42:38]CAPDU: 80 11 00 00 [12:42:38]Write to MH i2c: E2 08 00 EC 54 80 11 00 00 00 00 00 00 BA [12:42:38]Write i2c OK [12:42:38]MH_I2C_Read... [12:42:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:42:38]Read from MH i2c: E2 [12:42:38]MH_I2C_Read... [12:42:38]Read from MH i2c: E2 17 00 [12:42:38]MH_I2C_Read... [12:42:38]Read from MH i2c: E2 17 00 EC 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 0F [12:42:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:42:38]wFMCommunicate OK [12:42:38]requested_item fd.num is exist - process it [12:42:38]SAM_PROTO_GetFieldsCounters [12:42:38]wFMCommunicate request_size=4 [12:42:38]MH_SAM_APDU [12:42:38]CAPDU: 80 13 00 00 [12:42:38]Write to MH i2c: E2 08 00 ED 54 80 13 00 00 00 00 00 00 BD [12:42:38]Write i2c OK [12:42:38]MH_I2C_Read... [12:42:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:42:38]Read from MH i2c: E2 [12:42:38]MH_I2C_Read... [12:42:38]Read from MH i2c: E2 62 00 [12:42:38]MH_I2C_Read... [12:42:38]Read from MH i2c: E2 62 00 ED 54 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 9F 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 7C [12:42:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 9F 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:42:38]wFMCommunicate OK [12:42:38]SAM_PROTO_GetFieldsCounters done [12:42:38]requested_item shift.num is exist - process it [12:42:38]requested_item shift.opened is exist - process it [12:42:38]req_shift_opened [12:42:38]FM_GetShiftState [12:42:38]SAM_PROTO_GetShiftState [12:42:38]wFMCommunicate request_size=4 [12:42:38]MH_SAM_APDU [12:42:38]CAPDU: 80 13 01 00 [12:42:38]Write to MH i2c: E2 08 00 EE 54 80 13 01 00 00 00 00 00 BF [12:42:38]Write i2c OK [12:42:38]MH_I2C_Read... [12:42:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:42:38]Read from MH i2c: E2 [12:42:38]MH_I2C_Read... [12:42:38]Read from MH i2c: E2 0E 00 [12:42:38]MH_I2C_Read... [12:42:38]Read from MH i2c: E2 0E 00 EE 54 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 8C [12:42:38]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [12:42:38]wFMCommunicate OK [12:42:38]SAM_PROTO_GetShiftState done [12:42:38]FM_GetShiftState done [12:42:38]req_shift_opened done [12:42:38]requested_item shift.open_date is exist - process it [12:42:38]req_shift_open_date [12:42:38]req_shift_open_date done [12:42:38]produce_requested_data done [12:42:38]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156575,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [12:42:38]process_action_free close_receipt [12:42:38]json_value_free [12:42:38]json_value_free done [12:42:38]process_json_proto returns [12:42:38]Send response to host [12:42:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156575,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [12:42:38]free response buf [12:42:38]execute_script done [12:42:38]execute_script returns [12:42:38]free content buf [12:42:38]Sock 8.Close socket [12:42:38]Sock 8.Thread stoped [12:42:38]OFD Sender: No OFD packet to send [12:42:43]OFD Sender: No OFD packet to send [12:42:48]OFD Sender: No OFD packet to send [12:42:53]OFD Sender: No OFD packet to send [12:42:58]OFD Sender: No OFD packet to send [12:43:03]OFD Sender: No OFD packet to send [12:43:08]OFD Sender: No OFD packet to send [12:43:13]OFD Sender: No OFD packet to send [12:43:18]OFD Sender: No OFD packet to send [12:43:23]OFD Sender: No OFD packet to send [12:43:28]OFD Sender: No OFD packet to send [12:43:33]OFD Sender: No OFD packet to send [12:43:38]OFD Sender: No OFD packet to send [12:43:43]OFD Sender: No OFD packet to send [12:43:48]OFD Sender: No OFD packet to send [12:43:53]OFD Sender: No OFD packet to send [12:43:58]OFD Sender: No OFD packet to send [12:44:03]OFD Sender: No OFD packet to send [12:44:08]OFD Sender: No OFD packet to send [12:44:13]OFD Sender: No OFD packet to send [12:44:18]OFD Sender: No OFD packet to send [12:44:23]OFD Sender: No OFD packet to send [12:44:28]OFD Sender: No OFD packet to send [12:44:33]OFD Sender: No OFD packet to send [12:44:38]OFD Sender: No OFD packet to send [12:44:43]OFD Sender: No OFD packet to send [12:44:48]OFD Sender: No OFD packet to send [12:44:50]accept exits with 9 [12:44:50]New connection [12:44:50]New thread 3066834276 created [12:44:50]Thread 3066977636 joined [12:44:50]Waiting for new connection... [12:44:50] Sock 9.Parse request [12:44:50]Sock 9.Check first char [12:44:50]Sock 9.First char is OK [12:44:50]request: POST /json_proto HTTP/1.0 [12:44:50]Method: POST [12:44:50]URL: /json_proto [12:44:50]Method is POST - this is cgi request [12:44:50]url: /json_proto [12:44:50]query_string will be loaded in cgi processing [12:44:50]execute_cgi json_proto POST (null) [12:44:50]execute_cgi path=json_proto method=POST [12:44:50]POST find Content-Length [12:44:50]Host: 172.17.63.3:8080 [12:44:50]Content-Length: 673 [12:44:50]Content-Type: application/json [12:44:50] [12:44:50]POST finish read [12:44:50]Found Content-Length = 673 [12:44:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99390", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "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:44:50]execute_script... [12:44: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)99390", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "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:44:50]POST & json_proto [12:44:50]process_json_proto [12:44:50]json parsed OK: [12:44:50]protocol is kg_v1.0 [12:44:50]action value=close_receipt [12:44:50]process_action close_receipt [12:44:50]cmd_close_receipt [12:44:50]MH_GetDate [12:44:50]Write to MH i2c: F0 00 00 EF 54 32 [12:44:50]Write i2c OK [12:44:50]MH_I2C_Read... [12:44:50]Read from MH i2c: F0 [12:44:50]MH_I2C_Read... [12:44:50]Read from MH i2c: F0 09 00 [12:44:50]MH_I2C_Read... [12:44:50]Read from MH i2c: F0 09 00 EF 54 00 C8 35 1E 67 50 D1 6C 64 AE [12:44:50]GetLastDocTimeStamp 1730032961 [12:44:50]current date 1730033096 [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 F0 54 80 13 01 00 00 00 00 00 C1 [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 F0 54 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 8E [12:44:50]RAPDU: 09 00 01 B4 89 1D 67 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]opened in 1729989044 [12:44:50]opened+sec_in_day 1730075444 [12:44:50]quantity*price = 70027 [12:44:50]sum+1 = 70029 [12:44:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 127 27.10.2024 12:44 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156576 ФПД: 193492497849779 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T124456&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156576&fm=193492497849779&tin=02508201610067®Number=0000000000091693&sum=70000 [12:44:52]StoreToDocumentArchive [12:44:52]shift 537 fd 156576 [12:44:52]save to /storage/0537/doc_00156576 [12:44:52]save last doc name /storage/0537/doc_00156576 to /storage/kkm_last_doc_name [12:44:52]save OK [12:44:52]Clear old archive folders... [12:44:52]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:44:52]tlvbuf is 01795510 [12:44:52]SAM_PROTO_ClearQueue [12:44:52]wFMCommunicate request_size=4 [12:44:52]MH_SAM_APDU [12:44:52]CAPDU: 80 09 00 00 [12:44:52]Write to MH i2c: E2 08 00 FD 54 80 09 00 00 00 00 00 00 C3 [12:44:52]Write i2c OK [12:44:52]MH_I2C_Read... [12:44:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:44:52]Read from MH i2c: E2 [12:44:52]MH_I2C_Read... [12:44:52]Read from MH i2c: E2 03 00 [12:44:52]MH_I2C_Read... [12:44:52]Read from MH i2c: E2 03 00 FD 54 00 90 00 C5 [12:44:52]RAPDU: 90 00 [12:44:52]wFMCommunicate OK [12:44:52]SAM_PROTO_ClearQueue done [12:44:52]KKMCreateOFDPacket [12:44:52]OFDProtocolAddRootSTLVToBuf [12:44:52]FM_MakeSignedData [12:44:52]FM_MakeSignedData [12:44:52]SAM_PROTO_SignData [12:44:52]wFMCommunicate request_size=4 [12:44:52]MH_SAM_APDU [12:44:52]CAPDU: 80 0D 01 02 [12:44:52]Write to MH i2c: E2 08 00 FE 54 80 0D 01 02 00 00 00 00 CB [12:44:52]Write i2c OK [12:44:52]MH_I2C_Read... [12:44:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:44:52]Read from MH i2c: E2 [12:44:52]MH_I2C_Read... [12:44:52]Read from MH i2c: E2 03 00 [12:44:52]MH_I2C_Read... [12:44:52]Read from MH i2c: E2 03 00 FE 54 00 90 00 C6 [12:44:52]RAPDU: 90 00 [12:44:52]wFMCommunicate OK [12:44:52]wFMCommunicate request_size=255 [12:44:52]MH_SAM_APDU [12:44:52]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 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 0D 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 C8 35 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A0 63 02 00 35 04 06 00 AF FA FB 99 [12:44:52]Write to MH i2c: E2 02 01 FF 54 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 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 0D 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 C8 35 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A0 63 02 00 35 04 06 00 AF FA FB 99 00 00 AF [12:44:52]Write i2c OK [12:44:52]MH_I2C_Read... [12:44:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:44:52]Read from MH i2c: E2 [12:44:52]MH_I2C_Read... [12:44:52]Read from MH i2c: E2 03 00 [12:44:52]MH_I2C_Read... [12:44:52]Read from MH i2c: E2 03 00 FF 54 00 90 00 C7 [12:44:52]RAPDU: 90 00 [12:44:52]wFMCommunicate OK [12:44:52]wFMCommunicate request_size=7 [12:44:52]MH_SAM_APDU [12:44:52]CAPDU: 80 0D 02 02 02 DD B3 [12:44:52]Write to MH i2c: E2 0A 00 00 55 80 0D 02 02 02 00 DD B3 00 00 63 [12:44:52]Write i2c OK [12:44:52]MH_I2C_Read... [12:44:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:44:52]Read from MH i2c: E2 [12:44:52]MH_I2C_Read... [12:44:52]Read from MH i2c: E2 03 00 [12:44:52]MH_I2C_Read... [12:44:52]Read from MH i2c: E2 03 00 00 55 00 90 00 C9 [12:44:52]RAPDU: 90 00 [12:44:52]wFMCommunicate OK [12:44:52]wFMCommunicate request_size=4 [12:44:52]MH_SAM_APDU [12:44:52]CAPDU: 80 0D 03 02 [12:44:52]Write to MH i2c: E2 08 00 01 55 80 0D 03 02 00 00 00 00 D1 [12:44:52]Write i2c OK [12:44:52]MH_I2C_Read... [12:44:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:44:52]Read from MH i2c: E2 [12:44:52]MH_I2C_Read... [12:44:52]Read from MH i2c: E2 0B 00 [12:44:52]MH_I2C_Read... [12:44:52]Read from MH i2c: E2 0B 00 01 55 00 7D 51 B2 A7 07 33 D2 A6 90 00 AB [12:44:52]RAPDU: 7D 51 B2 A7 07 33 D2 A6 90 00 [12:44:52]wFMCommunicate OK [12:44:52]SAM_PROTO_SignData done [12:44:52]FM_MakeSignedData done [12:44:52]CreateOFDProtocolMessage [12:44:52]wFMCommunicate request_size=4 [12:44:52]MH_SAM_APDU [12:44:52]CAPDU: 80 11 00 00 [12:44:52]Write to MH i2c: E2 08 00 02 55 80 11 00 00 00 00 00 00 D1 [12:44:52]Write i2c OK [12:44:52]MH_I2C_Read... [12:44:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:44:52]Read from MH i2c: E2 [12:44:52]MH_I2C_Read... [12:44:52]Read from MH i2c: E2 17 00 [12:44:52]MH_I2C_Read... [12:44:52]Read from MH i2c: E2 17 00 02 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 26 [12:44:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:44:52]wFMCommunicate OK [12:44:52]CreateOFDProtocolMessage done [12:44:52]OFDSenderStorePacket 156576 [12:44:52]StoreOFDPacket docnum=156576 [12:44:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 D9 E2 04 01 82 66 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 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 0D 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 C8 35 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A0 63 02 00 35 04 06 00 AF FA FB 99 DD B3 7D 51 B2 A7 07 33 D2 A6 [12:44:52]CheckFolder [12:44:52]dirname=/storage/ofd_packets [12:44:52]CheckFolder done [12:44:52]ProducePacketName [12:44:52]name=ofd_packets/00156576 [12:44:52]NVStorageSaveData ofd_packets/00156576 [12:44:52]File name is /storage/ofd_packets/00156576 [12:44:52]Write 298 bytes [12:44:52]NVStorageSaveData done [12:44:52]OFDSenderStorePacket done [12:44:52]KKMCreateOFDPacket done [12:44:52]NVStorageSaveData kkm_last_timestamp [12:44:52]File name is /storage/kkm_last_timestamp [12:44:52]Write 4 bytes [12:44:52]NVStorageSaveData done [12:44:52]ExternCall_PrintAddStr [12:44:52]wPrintStart [12:44:52]Write to MH i2c: 01 00 00 03 55 58 [12:44:52]Write i2c OK [12:44:52]MH_I2C_Read... [12:44:52]Read from MH i2c: 01 [12:44:52]MH_I2C_Read... [12:44:52]Read from MH i2c: 01 07 00 [12:44:52]MH_I2C_Read... [12:44:52]Read from MH i2c: 01 07 00 03 55 00 00 00 00 00 FF 0F 6D [12:44:52]RasterBufferAndPrint [12:44:52]line Счет N : (1)99390 [12:44:52]line ИНН: 02508201610067 [12:44:52]line Контрольно-Кассовый Чек [12:44:52]line ПРОДАЖА [12:44:52]line ТРК (МРК, ГНК) : 32 [12:44:52]line Товар: 2710194210 [12:44:52]line ДТ-К-5 [12:44:52]line 9.190 * 76.20 [12:44:52]line = 700.28 [12:44:52]line НДС 12% НСП 1% [12:44:52]line > о реализуемом товаре [12:44:52]line ОКРУГЛЕНИЕ: -0.28 [12:44:52]line ИТОГО: 700.00 [12:44:52]line Внесено: 700.00 [12:44:52]line СДАЧА: 0.00 [12:44:52]line НСП 1% : 6.20 [12:44:52]line НДС 12% : 74.37 [12:44:52]line Наличными: 700.00 [12:44:52]line Безнал.: 0.00 [12:44:52]line Место: АЗС № 143 "Партнер Нефть" [12:44:52]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [12:44:52]line СНО: Общий режим [12:44:52]line Чек 127 27.10.2024 12:44 [12:44:52]line Смена: 537 ФФД: 1.0 [12:44:52]line ЗНМ: 0300000096 [12:44:52]line РНМ: 0000000000091693 [12:44:52]line Версия ККМ: 001 [12:44:52]line ФМ: 0000000000871792 [12:44:52]line ФД: 156576 [12:44:52]line ФПД: 193492497849779 [12:44:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T124456&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156576&fm=193492497849779&tin=02508201610067®Number=0000000000091693&sum=70000 [12:44:52]OFD Sender: Processing packet 156576 [packets to send 31, broken 30] [12:44:52]ProducePacketName [12:44:52]name=ofd_packets/00156576 [12:44:52]OFD Sender: To server: pG, [12:44:52]CommunicateWithHost lk.salyk.kg:30040 [12:44:52]ConnectInit lk.salyk.kg [12:44:52]written 0, free lines is 4095 [12:44:52]Connected sock=10 [12:44:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 D9 E2 04 01 82 66 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 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 0D 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 C8 35 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A0 63 02 00 35 04 06 00 AF FA FB 99 DD B3 7D 51 B2 A7 07 33 D2 A6 [12:44:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 42 E9 47 00 4B 51 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A0 63 02 00 F4 03 04 00 38 DB 1D 67 B6 04 01 00 00 7F DB BC 70 B2 27 58 86 [12:44:53]CommunicateWithHost err = 0 [12:44:53]CheckOFDResponse [12:44:53]1017 (14) - 77093643461234 [12:44:53]1041 (16) - 0000000000871792 [12:44:53]1040 (4) - 156576 [12:44:53]1012 (4) - 27.10.2024 06:18 [12:44:53]1206 (1) - 0 [12:44:53]OFD Sender: Remove packet 156576 [12:44:53]ProducePacketName [12:44:53]name=ofd_packets/00156576 [12:44:53]NVStorageDeleteData [12:44:53]Write to MH i2c: 01 00 00 2E 55 83 [12:44:53]Write i2c OK [12:44:53]MH_I2C_Read... [12:44:53]Read from MH i2c: 01 [12:44:53]MH_I2C_Read... [12:44:53]Read from MH i2c: 01 07 00 [12:44:53]MH_I2C_Read... [12:44:53]Read from MH i2c: 01 07 00 2E 55 00 00 00 00 00 E0 0C 76 [12:44:53]RasterBufferAndPrint [12:44:53]line [12:44:53]line [12:44:53]line [12:44:53]line [12:44:53]line [12:44:53]written 0, free lines is 3305 [12:44:53]process_action close_receipt done [12:44:53]requested_data is exist [12:44:53]produce_requested_data [12:44:53]requested_item fm.sn is exist - process it [12:44:53]wFMCommunicate request_size=4 [12:44:53]MH_SAM_APDU [12:44:53]CAPDU: 80 11 00 00 [12:44:53]Write to MH i2c: E2 08 00 35 55 80 11 00 00 00 00 00 00 04 [12:44:53]Write i2c OK [12:44:53]MH_I2C_Read... [12:44:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:44:53]Read from MH i2c: E2 [12:44:53]MH_I2C_Read... [12:44:53]Read from MH i2c: E2 17 00 [12:44:53]MH_I2C_Read... [12:44:53]Read from MH i2c: E2 17 00 35 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 59 [12:44:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:44:53]wFMCommunicate OK [12:44:53]requested_item fd.num is exist - process it [12:44:53]SAM_PROTO_GetFieldsCounters [12:44:53]wFMCommunicate request_size=4 [12:44:53]MH_SAM_APDU [12:44:53]CAPDU: 80 13 00 00 [12:44:53]Write to MH i2c: E2 08 00 36 55 80 13 00 00 00 00 00 00 07 [12:44:53]Write i2c OK [12:44:53]MH_I2C_Read... [12:44:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:44:53]Read from MH i2c: E2 [12:44:53]MH_I2C_Read... [12:44:53]Read from MH i2c: E2 62 00 [12:44:53]MH_I2C_Read... [12:44:53]Read from MH i2c: E2 62 00 36 55 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 A0 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 CA [12:44:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 A0 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:44:53]wFMCommunicate OK [12:44:53]SAM_PROTO_GetFieldsCounters done [12:44:53]requested_item shift.num is exist - process it [12:44:53]requested_item shift.opened is exist - process it [12:44:53]req_shift_opened [12:44:53]FM_GetShiftState [12:44:53]SAM_PROTO_GetShiftState [12:44:53]wFMCommunicate request_size=4 [12:44:53]MH_SAM_APDU [12:44:53]CAPDU: 80 13 01 00 [12:44:53]Write to MH i2c: E2 08 00 37 55 80 13 01 00 00 00 00 00 09 [12:44:53]Write i2c OK [12:44:53]MH_I2C_Read... [12:44:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:44:53]Read from MH i2c: E2 [12:44:53]MH_I2C_Read... [12:44:53]Read from MH i2c: E2 0E 00 [12:44:53]MH_I2C_Read... [12:44:53]Read from MH i2c: E2 0E 00 37 55 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 D6 [12:44:53]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [12:44:53]wFMCommunicate OK [12:44:53]SAM_PROTO_GetShiftState done [12:44:53]FM_GetShiftState done [12:44:53]req_shift_opened done [12:44:53]requested_item shift.open_date is exist - process it [12:44:53]req_shift_open_date [12:44:53]req_shift_open_date done [12:44:53]produce_requested_data done [12:44:53]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156576,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [12:44:53]process_action_free close_receipt [12:44:53]json_value_free [12:44:53]json_value_free done [12:44:53]process_json_proto returns [12:44:53]Send response to host [12:44:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156576,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [12:44:53]free response buf [12:44:53]execute_script done [12:44:53]execute_script returns [12:44:53]free content buf [12:44:53]Sock 9.Close socket [12:44:53]Sock 9.Thread stoped [12:44:53]OFD Sender: No OFD packet to send [12:44:58]OFD Sender: No OFD packet to send [12:45:03]OFD Sender: No OFD packet to send [12:45:08]OFD Sender: No OFD packet to send [12:45:13]OFD Sender: No OFD packet to send [12:45:18]OFD Sender: No OFD packet to send [12:45:23]OFD Sender: No OFD packet to send [12:45:28]OFD Sender: No OFD packet to send [12:45:33]OFD Sender: No OFD packet to send [12:45:38]OFD Sender: No OFD packet to send [12:45:43]OFD Sender: No OFD packet to send [12:45:48]OFD Sender: No OFD packet to send [12:45:53]OFD Sender: No OFD packet to send [12:45:58]OFD Sender: No OFD packet to send [12:46:03]OFD Sender: No OFD packet to send [12:46:08]OFD Sender: No OFD packet to send [12:46:13]OFD Sender: No OFD packet to send [12:46:18]OFD Sender: No OFD packet to send [12:46:23]OFD Sender: No OFD packet to send [12:46:25]accept exits with 8 [12:46:25]New connection [12:46:25]New thread 3066977636 created [12:46:25]Thread 3066834276 joined [12:46:25]Waiting for new connection... [12:46:25] Sock 8.Parse request [12:46:25]Sock 8.Check first char [12:46:25]Sock 8.First char is OK [12:46:25]request: POST /json_proto HTTP/1.0 [12:46:25]Method: POST [12:46:25]URL: /json_proto [12:46:25]Method is POST - this is cgi request [12:46:25]url: /json_proto [12:46:25]query_string will be loaded in cgi processing [12:46:25]execute_cgi json_proto POST (null) [12:46:25]execute_cgi path=json_proto method=POST [12:46:25]POST find Content-Length [12:46:25]Host: 172.17.63.3:8080 [12:46:25]Content-Length: 678 [12:46:25]Content-Type: application/json [12:46:25] [12:46:25]POST finish read [12:46:25]Found Content-Length = 678 [12:46:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99391", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "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" ] } } [12:46:25]execute_script... [12:46: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)99391", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "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" ] } } [12:46:25]POST & json_proto [12:46:25]process_json_proto [12:46:25]json parsed OK: [12:46:25]protocol is kg_v1.0 [12:46:25]action value=close_receipt [12:46:25]process_action close_receipt [12:46:25]cmd_close_receipt [12:46:25]MH_GetDate [12:46:25]Write to MH i2c: F0 00 00 38 55 7C [12:46:25]Write i2c OK [12:46:25]MH_I2C_Read... [12:46:25]Read from MH i2c: F0 [12:46:25]MH_I2C_Read... [12:46:25]Read from MH i2c: F0 09 00 [12:46:25]MH_I2C_Read... [12:46:25]Read from MH i2c: F0 09 00 38 55 00 27 36 1E 67 50 D1 6C 64 58 [12:46:25]GetLastDocTimeStamp 1730033096 [12:46:25]current date 1730033191 [12:46:25]FM_GetShiftState [12:46:25]SAM_PROTO_GetShiftState [12:46:25]wFMCommunicate request_size=4 [12:46:25]MH_SAM_APDU [12:46:25]CAPDU: 80 13 01 00 [12:46:25]Write to MH i2c: E2 08 00 39 55 80 13 01 00 00 00 00 00 0B [12:46:25]Write i2c OK [12:46:25]MH_I2C_Read... [12:46:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:25]Read from MH i2c: E2 [12:46:25]MH_I2C_Read... [12:46:25]Read from MH i2c: E2 0E 00 [12:46:25]MH_I2C_Read... [12:46:25]Read from MH i2c: E2 0E 00 39 55 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 D8 [12:46:25]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [12:46:25]wFMCommunicate OK [12:46:25]SAM_PROTO_GetShiftState done [12:46:25]FM_GetShiftState done [12:46:25]opened in 1729989044 [12:46:25]opened+sec_in_day 1730075444 [12:46:25]quantity*price = 150037 [12:46:25]sum+1 = 150039 [12:46:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 128 27.10.2024 12:46 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156577 ФПД: 24917681642120 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T124631&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156577&fm=24917681642120&tin=02508201610067®Number=0000000000091693&sum=150000 [12:46:26]StoreToDocumentArchive [12:46:26]shift 537 fd 156577 [12:46:26]save to /storage/0537/doc_00156577 [12:46:26]save last doc name /storage/0537/doc_00156577 to /storage/kkm_last_doc_name [12:46:26]save OK [12:46:26]Clear old archive folders... [12:46:26]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:46:26]tlvbuf is B6F5EB50 [12:46:26]SAM_PROTO_ClearQueue [12:46:26]wFMCommunicate request_size=4 [12:46:26]MH_SAM_APDU [12:46:26]CAPDU: 80 09 00 00 [12:46:26]Write to MH i2c: E2 08 00 46 55 80 09 00 00 00 00 00 00 0D [12:46:26]Write i2c OK [12:46:26]MH_I2C_Read... [12:46:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:46:26]Read from MH i2c: E2 [12:46:26]MH_I2C_Read... [12:46:26]Read from MH i2c: E2 03 00 [12:46:26]MH_I2C_Read... [12:46:26]Read from MH i2c: E2 03 00 46 55 00 90 00 0F [12:46:26]RAPDU: 90 00 [12:46:26]wFMCommunicate OK [12:46:26]SAM_PROTO_ClearQueue done [12:46:26]KKMCreateOFDPacket [12:46:26]OFDProtocolAddRootSTLVToBuf [12:46:26]FM_MakeSignedData [12:46:26]FM_MakeSignedData [12:46:26]SAM_PROTO_SignData [12:46:26]wFMCommunicate request_size=4 [12:46:26]MH_SAM_APDU [12:46:26]CAPDU: 80 0D 01 02 [12:46:26]Write to MH i2c: E2 08 00 47 55 80 0D 01 02 00 00 00 00 15 [12:46:26]Write i2c OK [12:46:26]MH_I2C_Read... [12:46:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:46:26]Read from MH i2c: E2 [12:46:26]MH_I2C_Read... [12:46:26]Read from MH i2c: E2 03 00 [12:46:26]MH_I2C_Read... [12:46:26]Read from MH i2c: E2 03 00 47 55 00 90 00 10 [12:46:26]RAPDU: 90 00 [12:46:26]wFMCommunicate OK [12:46:26]wFMCommunicate request_size=255 [12:46:26]MH_SAM_APDU [12:46:26]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 27 36 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A1 63 02 00 35 04 06 00 16 A9 99 90 [12:46:26]Write to MH i2c: E2 02 01 48 55 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 27 36 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A1 63 02 00 35 04 06 00 16 A9 99 90 00 00 81 [12:46:26]Write i2c OK [12:46:26]MH_I2C_Read... [12:46:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:27]Read from MH i2c: E2 [12:46:27]MH_I2C_Read... [12:46:27]Read from MH i2c: E2 03 00 [12:46:27]MH_I2C_Read... [12:46:27]Read from MH i2c: E2 03 00 48 55 00 90 00 11 [12:46:27]RAPDU: 90 00 [12:46:27]wFMCommunicate OK [12:46:27]wFMCommunicate request_size=7 [12:46:27]MH_SAM_APDU [12:46:27]CAPDU: 80 0D 02 02 02 1A 88 [12:46:27]Write to MH i2c: E2 0A 00 49 55 80 0D 02 02 02 00 1A 88 00 00 BE [12:46:27]Write i2c OK [12:46:27]MH_I2C_Read... [12:46:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:27]Read from MH i2c: E2 [12:46:27]MH_I2C_Read... [12:46:27]Read from MH i2c: E2 03 00 [12:46:27]MH_I2C_Read... [12:46:27]Read from MH i2c: E2 03 00 49 55 00 90 00 12 [12:46:27]RAPDU: 90 00 [12:46:27]wFMCommunicate OK [12:46:27]wFMCommunicate request_size=4 [12:46:27]MH_SAM_APDU [12:46:27]CAPDU: 80 0D 03 02 [12:46:27]Write to MH i2c: E2 08 00 4A 55 80 0D 03 02 00 00 00 00 1A [12:46:27]Write i2c OK [12:46:27]MH_I2C_Read... [12:46:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:46:27]Read from MH i2c: E2 [12:46:27]MH_I2C_Read... [12:46:27]Read from MH i2c: E2 0B 00 [12:46:27]MH_I2C_Read... [12:46:27]Read from MH i2c: E2 0B 00 4A 55 00 58 AC 7E E5 93 25 3C 0A 90 00 80 [12:46:27]RAPDU: 58 AC 7E E5 93 25 3C 0A 90 00 [12:46:27]wFMCommunicate OK [12:46:27]SAM_PROTO_SignData done [12:46:27]FM_MakeSignedData done [12:46:27]CreateOFDProtocolMessage [12:46:27]wFMCommunicate request_size=4 [12:46:27]MH_SAM_APDU [12:46:27]CAPDU: 80 11 00 00 [12:46:27]Write to MH i2c: E2 08 00 4B 55 80 11 00 00 00 00 00 00 1A [12:46:27]Write i2c OK [12:46:27]MH_I2C_Read... [12:46:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:27]Read from MH i2c: E2 [12:46:27]MH_I2C_Read... [12:46:27]Read from MH i2c: E2 17 00 [12:46:27]MH_I2C_Read... [12:46:27]Read from MH i2c: E2 17 00 4B 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 6F [12:46:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:46:27]wFMCommunicate OK [12:46:27]CreateOFDProtocolMessage done [12:46:27]OFDSenderStorePacket 156577 [12:46:27]StoreOFDPacket docnum=156577 [12:46:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 77 4C 04 01 AC 40 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 27 36 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A1 63 02 00 35 04 06 00 16 A9 99 90 1A 88 58 AC 7E E5 93 25 3C 0A [12:46:27]CheckFolder [12:46:27]dirname=/storage/ofd_packets [12:46:27]CheckFolder done [12:46:27]ProducePacketName [12:46:27]name=ofd_packets/00156577 [12:46:27]NVStorageSaveData ofd_packets/00156577 [12:46:27]File name is /storage/ofd_packets/00156577 [12:46:27]Write 298 bytes [12:46:27]NVStorageSaveData done [12:46:27]OFDSenderStorePacket done [12:46:27]KKMCreateOFDPacket done [12:46:27]NVStorageSaveData kkm_last_timestamp [12:46:27]File name is /storage/kkm_last_timestamp [12:46:27]Write 4 bytes [12:46:27]NVStorageSaveData done [12:46:27]ExternCall_PrintAddStr [12:46:27]wPrintStart [12:46:27]Write to MH i2c: 01 00 00 4C 55 A1 [12:46:27]Write i2c OK [12:46:27]MH_I2C_Read... [12:46:27]Read from MH i2c: 01 [12:46:27]MH_I2C_Read... [12:46:27]Read from MH i2c: 01 07 00 [12:46:27]MH_I2C_Read... [12:46:27]Read from MH i2c: 01 07 00 4C 55 00 00 00 00 00 FF 0F B6 [12:46:27]RasterBufferAndPrint [12:46:27]line Счет N : (1)99391 [12:46:27]line ИНН: 02508201610067 [12:46:27]line Контрольно-Кассовый Чек [12:46:27]line ПРОДАЖА [12:46:27]line ТРК (МРК, ГНК) : 32 [12:46:27]line Товар: 2710194210 [12:46:27]line ДТ-К-5 [12:46:27]line 19.690 * 76.20 [12:46:27]line = 1500.38 [12:46:27]line НДС 12% НСП 1% [12:46:27]line > о реализуемом товаре [12:46:27]line ОКРУГЛЕНИЕ: -0.38 [12:46:27]line ИТОГО: 1500.00 [12:46:27]line Внесено: 1500.00 [12:46:27]line СДАЧА: 0.00 [12:46:27]line НСП 1% : 13.28 [12:46:27]line НДС 12% : 159.33 [12:46:27]line Наличными: 1500.00 [12:46:27]line Безнал.: 0.00 [12:46:27]line Место: АЗС № 143 "Партнер Нефть" [12:46:27]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [12:46:27]line СНО: Общий режим [12:46:27]line Чек 128 27.10.2024 12:46 [12:46:27]line Смена: 537 ФФД: 1.0 [12:46:27]line ЗНМ: 0300000096 [12:46:27]line РНМ: 0000000000091693 [12:46:27]line Версия ККМ: 001 [12:46:27]line ФМ: 0000000000871792 [12:46:27]line ФД: 156577 [12:46:27]line ФПД: 24917681642120 [12:46:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T124631&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156577&fm=24917681642120&tin=02508201610067®Number=0000000000091693&sum=150000 [12:46:27]OFD Sender: Processing packet 156577 [packets to send 31, broken 30] [12:46:27]ProducePacketName [12:46:27]name=ofd_packets/00156577 [12:46:27]OFD Sender: To server: pG, [12:46:27]CommunicateWithHost lk.salyk.kg:30040 [12:46:27]ConnectInit lk.salyk.kg [12:46:27]written 0, free lines is 4095 [12:46:27]Connected sock=9 [12:46:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 77 4C 04 01 AC 40 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 27 36 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A1 63 02 00 35 04 06 00 16 A9 99 90 1A 88 58 AC 7E E5 93 25 3C 0A [12:46:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 D1 E5 47 00 6C 92 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A1 63 02 00 F4 03 04 00 96 DB 1D 67 B6 04 01 00 00 58 12 1F 94 4C 36 9B CF [12:46:27]CommunicateWithHost err = 0 [12:46:27]CheckOFDResponse [12:46:27]1017 (14) - 77093643461234 [12:46:27]1041 (16) - 0000000000871792 [12:46:27]1040 (4) - 156577 [12:46:27]1012 (4) - 27.10.2024 06:20 [12:46:27]1206 (1) - 0 [12:46:27]OFD Sender: Remove packet 156577 [12:46:27]ProducePacketName [12:46:27]name=ofd_packets/00156577 [12:46:27]NVStorageDeleteData [12:46:28]Write to MH i2c: 01 00 00 77 55 CC [12:46:28]Write i2c OK [12:46:28]MH_I2C_Read... [12:46:28]Read from MH i2c: 01 [12:46:28]MH_I2C_Read... [12:46:28]Read from MH i2c: 01 07 00 [12:46:28]MH_I2C_Read... [12:46:28]Read from MH i2c: 01 07 00 77 55 00 00 00 00 00 E4 0C C3 [12:46:28]RasterBufferAndPrint [12:46:28]line [12:46:28]line [12:46:28]line [12:46:28]line [12:46:28]line [12:46:28]written 0, free lines is 3306 [12:46:28]process_action close_receipt done [12:46:28]requested_data is exist [12:46:28]produce_requested_data [12:46:28]requested_item fm.sn is exist - process it [12:46:28]wFMCommunicate request_size=4 [12:46:28]MH_SAM_APDU [12:46:28]CAPDU: 80 11 00 00 [12:46:28]Write to MH i2c: E2 08 00 7E 55 80 11 00 00 00 00 00 00 4D [12:46:28]Write i2c OK [12:46:28]MH_I2C_Read... [12:46:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:28]Read from MH i2c: E2 [12:46:28]MH_I2C_Read... [12:46:28]Read from MH i2c: E2 17 00 [12:46:28]MH_I2C_Read... [12:46:28]Read from MH i2c: E2 17 00 7E 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 A2 [12:46:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:46:28]wFMCommunicate OK [12:46:28]requested_item fd.num is exist - process it [12:46:28]SAM_PROTO_GetFieldsCounters [12:46:28]wFMCommunicate request_size=4 [12:46:28]MH_SAM_APDU [12:46:28]CAPDU: 80 13 00 00 [12:46:28]Write to MH i2c: E2 08 00 7F 55 80 13 00 00 00 00 00 00 50 [12:46:28]Write i2c OK [12:46:28]MH_I2C_Read... [12:46:28]Read from MH i2c: E2 [12:46:28]MH_I2C_Read... [12:46:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:46:28]Read from MH i2c: E2 62 00 [12:46:28]MH_I2C_Read... [12:46:28]Read from MH i2c: E2 62 00 7F 55 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 A1 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 17 [12:46:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 A1 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:46:28]wFMCommunicate OK [12:46:28]SAM_PROTO_GetFieldsCounters done [12:46:28]requested_item shift.num is exist - process it [12:46:28]requested_item shift.opened is exist - process it [12:46:28]req_shift_opened [12:46:28]FM_GetShiftState [12:46:28]SAM_PROTO_GetShiftState [12:46:28]wFMCommunicate request_size=4 [12:46:28]MH_SAM_APDU [12:46:28]CAPDU: 80 13 01 00 [12:46:28]Write to MH i2c: E2 08 00 80 55 80 13 01 00 00 00 00 00 52 [12:46:28]Write i2c OK [12:46:28]MH_I2C_Read... [12:46:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:28]Read from MH i2c: E2 [12:46:28]MH_I2C_Read... [12:46:28]Read from MH i2c: E2 0E 00 [12:46:28]MH_I2C_Read... [12:46:28]Read from MH i2c: E2 0E 00 80 55 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 1F [12:46:28]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [12:46:28]wFMCommunicate OK [12:46:28]SAM_PROTO_GetShiftState done [12:46:28]FM_GetShiftState done [12:46:28]req_shift_opened done [12:46:28]requested_item shift.open_date is exist - process it [12:46:28]req_shift_open_date [12:46:28]req_shift_open_date done [12:46:28]produce_requested_data done [12:46:28]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156577,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [12:46:28]process_action_free close_receipt [12:46:28]json_value_free [12:46:28]json_value_free done [12:46:28]process_json_proto returns [12:46:28]Send response to host [12:46:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156577,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [12:46:28]free response buf [12:46:28]execute_script done [12:46:28]execute_script returns [12:46:28]free content buf [12:46:28]Sock 8.Close socket [12:46:28]Sock 8.Thread stoped [12:46:28]OFD Sender: No OFD packet to send [12:46:33]OFD Sender: No OFD packet to send [12:46:38]OFD Sender: No OFD packet to send [12:46:43]OFD Sender: No OFD packet to send [12:46:48]OFD Sender: No OFD packet to send [12:46:53]OFD Sender: No OFD packet to send [12:46:58]OFD Sender: No OFD packet to send [12:47:03]OFD Sender: No OFD packet to send [12:47:08]OFD Sender: No OFD packet to send [12:47:13]OFD Sender: No OFD packet to send [12:47:18]OFD Sender: No OFD packet to send [12:47:23]OFD Sender: No OFD packet to send [12:47:28]OFD Sender: No OFD packet to send [12:47:33]OFD Sender: No OFD packet to send [12:47:38]OFD Sender: No OFD packet to send [12:47:43]OFD Sender: No OFD packet to send [12:47:48]OFD Sender: No OFD packet to send [12:47:53]OFD Sender: No OFD packet to send [12:47:58]OFD Sender: No OFD packet to send [12:48:03]OFD Sender: No OFD packet to send [12:48:08]OFD Sender: No OFD packet to send [12:48:13]OFD Sender: No OFD packet to send [12:48:18]OFD Sender: No OFD packet to send [12:48:23]OFD Sender: No OFD packet to send [12:48:28]OFD Sender: No OFD packet to send [12:48:33]OFD Sender: No OFD packet to send [12:48:38]OFD Sender: No OFD packet to send [12:48:43]OFD Sender: No OFD packet to send [12:48:48]OFD Sender: No OFD packet to send [12:48:50]accept exits with 10 [12:48:50]New connection [12:48:50]New thread 3066834276 created [12:48:50]Thread 3066977636 joined [12:48:50]Waiting for new connection... [12:48:50] Sock 10.Parse request [12:48:50]Sock 10.Check first char [12:48:50]Sock 10.First char is OK [12:48:50]request: POST /json_proto HTTP/1.0 [12:48:50]Method: POST [12:48:50]URL: /json_proto [12:48:50]Method is POST - this is cgi request [12:48:50]url: /json_proto [12:48:50]query_string will be loaded in cgi processing [12:48:50]execute_cgi json_proto POST (null) [12:48:50]execute_cgi path=json_proto method=POST [12:48:50]POST find Content-Length [12:48:50]Host: 172.17.63.3:8080 [12:48:50]Content-Length: 676 [12:48:50]Content-Type: application/json [12:48:50] [12:48:50]POST finish read [12:48:50]Found Content-Length = 676 [12:48:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99392", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.090, "sum" : 340.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 340.00, "total" : 340.00, "payments": [ { "type": 0, "sum" : 340.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:48:50]execute_script... [12:48: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)99392", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.090, "sum" : 340.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 340.00, "total" : 340.00, "payments": [ { "type": 0, "sum" : 340.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:48:50]POST & json_proto [12:48:50]process_json_proto [12:48:50]json parsed OK: [12:48:50]protocol is kg_v1.0 [12:48:50]action value=close_receipt [12:48:50]process_action close_receipt [12:48:50]cmd_close_receipt [12:48:50]MH_GetDate [12:48:50]Write to MH i2c: F0 00 00 81 55 C5 [12:48:50]Write i2c OK [12:48:50]MH_I2C_Read... [12:48:50]Read from MH i2c: F0 [12:48:50]MH_I2C_Read... [12:48:50]Read from MH i2c: F0 09 00 [12:48:50]MH_I2C_Read... [12:48:50]Read from MH i2c: F0 09 00 81 55 00 B8 36 1E 67 50 D1 6C 64 32 [12:48:50]GetLastDocTimeStamp 1730033191 [12:48:50]current date 1730033336 [12:48:50]FM_GetShiftState [12:48:50]SAM_PROTO_GetShiftState [12:48:50]wFMCommunicate request_size=4 [12:48:50]MH_SAM_APDU [12:48:50]CAPDU: 80 13 01 00 [12:48:50]Write to MH i2c: E2 08 00 82 55 80 13 01 00 00 00 00 00 54 [12:48:50]Write i2c OK [12:48:50]MH_I2C_Read... [12:48:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:48:50]Read from MH i2c: E2 [12:48:50]MH_I2C_Read... [12:48:50]Read from MH i2c: E2 0E 00 [12:48:50]MH_I2C_Read... [12:48:50]Read from MH i2c: E2 0E 00 82 55 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 21 [12:48:50]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [12:48:50]wFMCommunicate OK [12:48:50]SAM_PROTO_GetShiftState done [12:48:50]FM_GetShiftState done [12:48:50]opened in 1729989044 [12:48:50]opened+sec_in_day 1730075444 [12:48:50]quantity*price = 34052 [12:48:50]sum+1 = 34053 [12:48:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 340.00 Внесено: 340.00 СДАЧА: 0.00 НСП 1% : 3.01 НДС 12% : 36.16 Наличными: 340.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 129 27.10.2024 12:48 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156578 ФПД: 103348559578346 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T124856&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156578&fm=103348559578346&tin=02508201610067®Number=0000000000091693&sum=34000 [12:48:52]StoreToDocumentArchive [12:48:52]shift 537 fd 156578 [12:48:52]save to /storage/0537/doc_00156578 [12:48:52]save last doc name /storage/0537/doc_00156578 to /storage/kkm_last_doc_name [12:48:52]save OK [12:48:52]Clear old archive folders... [12:48:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:48:52]tlvbuf is 016A9B60 [12:48:52]SAM_PROTO_ClearQueue [12:48:52]wFMCommunicate request_size=4 [12:48:52]MH_SAM_APDU [12:48:52]CAPDU: 80 09 00 00 [12:48:52]Write to MH i2c: E2 08 00 8F 55 80 09 00 00 00 00 00 00 56 [12:48:52]Write i2c OK [12:48:52]MH_I2C_Read... [12:48:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:48:52]Read from MH i2c: E2 [12:48:52]MH_I2C_Read... [12:48:52]Read from MH i2c: E2 03 00 [12:48:52]MH_I2C_Read... [12:48:52]Read from MH i2c: E2 03 00 8F 55 00 90 00 58 [12:48:52]RAPDU: 90 00 [12:48:52]wFMCommunicate OK [12:48:52]SAM_PROTO_ClearQueue done [12:48:52]KKMCreateOFDPacket [12:48:52]OFDProtocolAddRootSTLVToBuf [12:48:52]FM_MakeSignedData [12:48:52]FM_MakeSignedData [12:48:52]SAM_PROTO_SignData [12:48:52]wFMCommunicate request_size=4 [12:48:52]MH_SAM_APDU [12:48:52]CAPDU: 80 0D 01 02 [12:48:52]Write to MH i2c: E2 08 00 90 55 80 0D 01 02 00 00 00 00 5E [12:48:52]Write i2c OK [12:48:52]MH_I2C_Read... [12:48:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:48:52]Read from MH i2c: E2 [12:48:52]MH_I2C_Read... [12:48:52]Read from MH i2c: E2 03 00 [12:48:52]MH_I2C_Read... [12:48:52]Read from MH i2c: E2 03 00 90 55 00 90 00 59 [12:48:52]RAPDU: 90 00 [12:48:52]wFMCommunicate OK [12:48:52]wFMCommunicate request_size=255 [12:48:52]MH_SAM_APDU [12:48: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 E2 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 B8 36 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A2 63 02 00 35 04 06 00 5D [12:48:52]Write to MH i2c: E2 02 01 91 55 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 B8 36 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A2 63 02 00 35 04 06 00 5D 00 00 9E [12:48:52]Write i2c OK [12:48:52]MH_I2C_Read... [12:48:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:48:52]Read from MH i2c: E2 [12:48:52]MH_I2C_Read... [12:48:52]Read from MH i2c: E2 03 00 [12:48:52]MH_I2C_Read... [12:48:52]Read from MH i2c: E2 03 00 91 55 00 90 00 5A [12:48:52]RAPDU: 90 00 [12:48:52]wFMCommunicate OK [12:48:52]wFMCommunicate request_size=10 [12:48:52]MH_SAM_APDU [12:48:52]CAPDU: 80 0D 02 02 05 FE B6 2E 84 EA [12:48:52]Write to MH i2c: E2 0D 00 92 55 80 0D 02 02 05 00 FE B6 2E 84 EA 00 00 BB [12:48:52]Write i2c OK [12:48:52]MH_I2C_Read... [12:48:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:48:52]Read from MH i2c: E2 [12:48:52]MH_I2C_Read... [12:48:52]Read from MH i2c: E2 03 00 [12:48:52]MH_I2C_Read... [12:48:52]Read from MH i2c: E2 03 00 92 55 00 90 00 5B [12:48:52]RAPDU: 90 00 [12:48:52]wFMCommunicate OK [12:48:52]wFMCommunicate request_size=4 [12:48:52]MH_SAM_APDU [12:48:52]CAPDU: 80 0D 03 02 [12:48:52]Write to MH i2c: E2 08 00 93 55 80 0D 03 02 00 00 00 00 63 [12:48:52]Write i2c OK [12:48:52]MH_I2C_Read... [12:48:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:48:52]Read from MH i2c: E2 [12:48:52]MH_I2C_Read... [12:48:52]Read from MH i2c: E2 0B 00 [12:48:52]MH_I2C_Read... [12:48:52]Read from MH i2c: E2 0B 00 93 55 00 12 92 D4 27 E2 DC DC 11 90 00 AE [12:48:52]RAPDU: 12 92 D4 27 E2 DC DC 11 90 00 [12:48:52]wFMCommunicate OK [12:48:52]SAM_PROTO_SignData done [12:48:52]FM_MakeSignedData done [12:48:52]CreateOFDProtocolMessage [12:48:52]wFMCommunicate request_size=4 [12:48:52]MH_SAM_APDU [12:48:52]CAPDU: 80 11 00 00 [12:48:52]Write to MH i2c: E2 08 00 94 55 80 11 00 00 00 00 00 00 63 [12:48:52]Write i2c OK [12:48:52]MH_I2C_Read... [12:48:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:48:52]Read from MH i2c: E2 [12:48:52]MH_I2C_Read... [12:48:52]Read from MH i2c: E2 17 00 [12:48:52]MH_I2C_Read... [12:48:52]Read from MH i2c: E2 17 00 94 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 B8 [12:48:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:48:52]wFMCommunicate OK [12:48:52]CreateOFDProtocolMessage done [12:48:52]OFDSenderStorePacket 156578 [12:48:52]StoreOFDPacket docnum=156578 [12:48:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 C3 EF 07 01 A8 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 B8 36 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A2 63 02 00 35 04 06 00 5D FE B6 2E 84 EA 12 92 D4 27 E2 DC DC 11 [12:48:52]CheckFolder [12:48:52]dirname=/storage/ofd_packets [12:48:52]CheckFolder done [12:48:52]ProducePacketName [12:48:52]name=ofd_packets/00156578 [12:48:52]NVStorageSaveData ofd_packets/00156578 [12:48:52]File name is /storage/ofd_packets/00156578 [12:48:52]Write 301 bytes [12:48:52]NVStorageSaveData done [12:48:52]OFDSenderStorePacket done [12:48:52]KKMCreateOFDPacket done [12:48:52]NVStorageSaveData kkm_last_timestamp [12:48:52]File name is /storage/kkm_last_timestamp [12:48:52]Write 4 bytes [12:48:52]NVStorageSaveData done [12:48:52]ExternCall_PrintAddStr [12:48:52]wPrintStart [12:48:52]Write to MH i2c: 01 00 00 95 55 EA [12:48:52]Write i2c OK [12:48:52]MH_I2C_Read... [12:48:52]Read from MH i2c: 01 [12:48:52]MH_I2C_Read... [12:48:52]Read from MH i2c: 01 07 00 [12:48:52]MH_I2C_Read... [12:48:52]Read from MH i2c: 01 07 00 95 55 00 00 00 00 00 FF 0F FF [12:48:52]RasterBufferAndPrint [12:48:52]line Счет N : (1)99392 [12:48:52]line ИНН: 02508201610067 [12:48:52]line Контрольно-Кассовый Чек [12:48:52]line ПРОДАЖА [12:48:52]line ТРК (МРК, ГНК) : 31 [12:48:52]line Товар: 2710124130 [12:48:52]line Аи-92-К-5 [12:48:52]line 5.090 * 66.90 [12:48:52]line = 340.52 [12:48:52]line НДС 12% НСП 1% [12:48:52]line > о реализуемом товаре [12:48:52]line ОКРУГЛЕНИЕ: -0.52 [12:48:52]line ИТОГО: 340.00 [12:48:52]line Внесено: 340.00 [12:48:52]line СДАЧА: 0.00 [12:48:52]line НСП 1% : 3.01 [12:48:52]line НДС 12% : 36.16 [12:48:52]line Наличными: 340.00 [12:48:52]line Безнал.: 0.00 [12:48:52]line Место: АЗС № 143 "Партнер Нефть" [12:48:52]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [12:48:52]line СНО: Общий режим [12:48:52]line Чек 129 27.10.2024 12:48 [12:48:52]line Смена: 537 ФФД: 1.0 [12:48:52]line ЗНМ: 0300000096 [12:48:52]line РНМ: 0000000000091693 [12:48:52]line Версия ККМ: 001 [12:48:52]line ФМ: 0000000000871792 [12:48:52]line ФД: 156578 [12:48:52]line ФПД: 103348559578346 [12:48:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T124856&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156578&fm=103348559578346&tin=02508201610067®Number=0000000000091693&sum=34000 [12:48:52]OFD Sender: Processing packet 156578 [packets to send 31, broken 30] [12:48:52]ProducePacketName [12:48:52]name=ofd_packets/00156578 [12:48:52]OFD Sender: To server: pG, [12:48:52]CommunicateWithHost lk.salyk.kg:30040 [12:48:52]ConnectInit lk.salyk.kg [12:48:52]written 0, free lines is 4095 [12:48:53]Connected sock=9 [12:48:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 C3 EF 07 01 A8 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 B8 36 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A2 63 02 00 35 04 06 00 5D FE B6 2E 84 EA 12 92 D4 27 E2 DC DC 11 [12:48:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 8E 46 47 00 26 C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A2 63 02 00 F4 03 04 00 28 DC 1D 67 B6 04 01 00 00 C1 A3 EF 7F 08 9B E3 A1 [12:48:53]CommunicateWithHost err = 0 [12:48:53]CheckOFDResponse [12:48:53]1017 (14) - 77093643461234 [12:48:53]1041 (16) - 0000000000871792 [12:48:53]1040 (4) - 156578 [12:48:53]1012 (4) - 27.10.2024 06:22 [12:48:53]1206 (1) - 0 [12:48:53]OFD Sender: Remove packet 156578 [12:48:53]ProducePacketName [12:48:53]name=ofd_packets/00156578 [12:48:53]NVStorageDeleteData [12:48:53]Write to MH i2c: 01 00 00 C0 55 15 [12:48:53]Write i2c OK [12:48:53]MH_I2C_Read... [12:48:53]Read from MH i2c: 01 [12:48:53]MH_I2C_Read... [12:48:53]Read from MH i2c: 01 07 00 [12:48:53]MH_I2C_Read... [12:48:53]Read from MH i2c: 01 07 00 C0 55 00 00 00 00 00 E1 0C 09 [12:48:53]RasterBufferAndPrint [12:48:53]line [12:48:53]line [12:48:53]line [12:48:53]line [12:48:53]line [12:48:53]written 0, free lines is 3306 [12:48:53]process_action close_receipt done [12:48:53]requested_data is exist [12:48:53]produce_requested_data [12:48:53]requested_item fm.sn is exist - process it [12:48:53]wFMCommunicate request_size=4 [12:48:53]MH_SAM_APDU [12:48:53]CAPDU: 80 11 00 00 [12:48:53]Write to MH i2c: E2 08 00 C7 55 80 11 00 00 00 00 00 00 96 [12:48:53]Write i2c OK [12:48:53]MH_I2C_Read... [12:48:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:48:53]Read from MH i2c: E2 [12:48:53]MH_I2C_Read... [12:48:53]Read from MH i2c: E2 17 00 [12:48:53]MH_I2C_Read... [12:48:53]Read from MH i2c: E2 17 00 C7 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 EB [12:48:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:48:53]wFMCommunicate OK [12:48:53]requested_item fd.num is exist - process it [12:48:53]SAM_PROTO_GetFieldsCounters [12:48:53]wFMCommunicate request_size=4 [12:48:53]MH_SAM_APDU [12:48:53]CAPDU: 80 13 00 00 [12:48:53]Write to MH i2c: E2 08 00 C8 55 80 13 00 00 00 00 00 00 99 [12:48:53]Write i2c OK [12:48:53]MH_I2C_Read... [12:48:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:48:53]Read from MH i2c: E2 [12:48:53]MH_I2C_Read... [12:48:53]Read from MH i2c: E2 62 00 [12:48:53]MH_I2C_Read... [12:48:53]Read from MH i2c: E2 62 00 C8 55 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 A2 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 64 [12:48:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 A2 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:48:53]wFMCommunicate OK [12:48:53]SAM_PROTO_GetFieldsCounters done [12:48:53]requested_item shift.num is exist - process it [12:48:53]requested_item shift.opened is exist - process it [12:48:53]req_shift_opened [12:48:53]FM_GetShiftState [12:48:53]SAM_PROTO_GetShiftState [12:48:53]wFMCommunicate request_size=4 [12:48:53]MH_SAM_APDU [12:48:53]CAPDU: 80 13 01 00 [12:48:53]Write to MH i2c: E2 08 00 C9 55 80 13 01 00 00 00 00 00 9B [12:48:53]Write i2c OK [12:48:53]MH_I2C_Read... [12:48:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:48:53]Read from MH i2c: E2 [12:48:53]MH_I2C_Read... [12:48:53]Read from MH i2c: E2 0E 00 [12:48:53]MH_I2C_Read... [12:48:53]Read from MH i2c: E2 0E 00 C9 55 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 68 [12:48:53]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [12:48:53]wFMCommunicate OK [12:48:53]SAM_PROTO_GetShiftState done [12:48:53]FM_GetShiftState done [12:48:53]req_shift_opened done [12:48:53]requested_item shift.open_date is exist - process it [12:48:53]req_shift_open_date [12:48:53]req_shift_open_date done [12:48:53]produce_requested_data done [12:48:53]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156578,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [12:48:53]process_action_free close_receipt [12:48:53]json_value_free [12:48:53]json_value_free done [12:48:53]process_json_proto returns [12:48:53]Send response to host [12:48:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156578,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [12:48:53]free response buf [12:48:53]execute_script done [12:48:53]execute_script returns [12:48:53]free content buf [12:48:53]Sock 10.Close socket [12:48:53]Sock 10.Thread stoped [12:48:53]OFD Sender: No OFD packet to send [12:48:58]OFD Sender: No OFD packet to send [12:49:03]OFD Sender: No OFD packet to send [12:49:08]OFD Sender: No OFD packet to send [12:49:13]OFD Sender: No OFD packet to send [12:49:18]OFD Sender: No OFD packet to send [12:49:23]OFD Sender: No OFD packet to send [12:49:28]OFD Sender: No OFD packet to send [12:49:33]OFD Sender: No OFD packet to send [12:49:38]OFD Sender: No OFD packet to send [12:49:43]OFD Sender: No OFD packet to send [12:49:48]OFD Sender: No OFD packet to send [12:49:53]OFD Sender: No OFD packet to send [12:49:58]OFD Sender: No OFD packet to send [12:50:03]OFD Sender: No OFD packet to send [12:50:08]OFD Sender: No OFD packet to send [12:50:13]OFD Sender: No OFD packet to send [12:50:18]OFD Sender: No OFD packet to send [12:50:23]OFD Sender: No OFD packet to send [12:50:28]OFD Sender: No OFD packet to send [12:50:33]OFD Sender: No OFD packet to send [12:50:38]OFD Sender: No OFD packet to send [12:50:43]OFD Sender: No OFD packet to send [12:50:48]OFD Sender: No OFD packet to send [12:50:53]OFD Sender: No OFD packet to send [12:50:58]OFD Sender: No OFD packet to send [12:51:03]OFD Sender: No OFD packet to send [12:51:08]OFD Sender: No OFD packet to send [12:51:13]OFD Sender: No OFD packet to send [12:51:18]OFD Sender: No OFD packet to send [12:51:23]OFD Sender: No OFD packet to send [12:51:28]OFD Sender: No OFD packet to send [12:51:33]OFD Sender: No OFD packet to send [12:51:38]OFD Sender: No OFD packet to send [12:51:43]OFD Sender: No OFD packet to send [12:51:48]OFD Sender: No OFD packet to send [12:51:53]OFD Sender: No OFD packet to send [12:51:58]OFD Sender: No OFD packet to send [12:52:03]OFD Sender: No OFD packet to send [12:52:08]OFD Sender: No OFD packet to send [12:52:13]OFD Sender: No OFD packet to send [12:52:18]OFD Sender: No OFD packet to send [12:52:23]OFD Sender: No OFD packet to send [12:52:24]accept exits with 8 [12:52:24]New connection [12:52:24]New thread 3066977636 created [12:52:24]Thread 3066834276 joined [12:52:24]Waiting for new connection... [12:52:24] Sock 8.Parse request [12:52:24]Sock 8.Check first char [12:52:24]Sock 8.First char is OK [12:52:24]request: POST /json_proto HTTP/1.0 [12:52:24]Method: POST [12:52:24]URL: /json_proto [12:52:24]Method is POST - this is cgi request [12:52:24]url: /json_proto [12:52:24]query_string will be loaded in cgi processing [12:52:24]execute_cgi json_proto POST (null) [12:52:24]execute_cgi path=json_proto method=POST [12:52:24]POST find Content-Length [12:52:24]Host: 172.17.63.3:8080 [12:52:24]Content-Length: 676 [12:52:24]Content-Type: application/json [12:52:24] [12:52:24]POST finish read [12:52:24]Found Content-Length = 676 [12:52:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99393", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.290, "sum" : 220.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:52:24]execute_script... [12:52: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)99393", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.290, "sum" : 220.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:52:24]POST & json_proto [12:52:24]process_json_proto [12:52:24]json parsed OK: [12:52:24]protocol is kg_v1.0 [12:52:24]action value=close_receipt [12:52:24]process_action close_receipt [12:52:24]cmd_close_receipt [12:52:24]MH_GetDate [12:52:24]Write to MH i2c: F0 00 00 CA 55 0E [12:52:24]Write i2c OK [12:52:24]MH_I2C_Read... [12:52:24]Read from MH i2c: F0 [12:52:24]MH_I2C_Read... [12:52:24]Read from MH i2c: F0 09 00 [12:52:24]MH_I2C_Read... [12:52:24]Read from MH i2c: F0 09 00 CA 55 00 8D 37 1E 67 50 D1 6C 64 51 [12:52:24]GetLastDocTimeStamp 1730033336 [12:52:24]current date 1730033549 [12:52:24]FM_GetShiftState [12:52:24]SAM_PROTO_GetShiftState [12:52:24]wFMCommunicate request_size=4 [12:52:24]MH_SAM_APDU [12:52:24]CAPDU: 80 13 01 00 [12:52:24]Write to MH i2c: E2 08 00 CB 55 80 13 01 00 00 00 00 00 9D [12:52:24]Write i2c OK [12:52:24]MH_I2C_Read... [12:52:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:52:24]Read from MH i2c: E2 [12:52:24]MH_I2C_Read... [12:52:24]Read from MH i2c: E2 0E 00 [12:52:24]MH_I2C_Read... [12:52:24]Read from MH i2c: E2 0E 00 CB 55 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 6A [12:52:24]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [12:52:24]wFMCommunicate OK [12:52:24]SAM_PROTO_GetShiftState done [12:52:24]FM_GetShiftState done [12:52:24]opened in 1729989044 [12:52:24]opened+sec_in_day 1730075444 [12:52:24]quantity*price = 22010 [12:52:24]sum+1 = 22011 [12:52:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 220.00 Внесено: 220.00 СДАЧА: 0.00 НСП 1% : 1.95 НДС 12% : 23.37 Наличными: 220.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 130 27.10.2024 12:52 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156579 ФПД: 148317664759137 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T125230&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156579&fm=148317664759137&tin=02508201610067®Number=0000000000091693&sum=22000 [12:52:25]StoreToDocumentArchive [12:52:25]shift 537 fd 156579 [12:52:25]save to /storage/0537/doc_00156579 [12:52:25]save last doc name /storage/0537/doc_00156579 to /storage/kkm_last_doc_name [12:52:25]save OK [12:52:25]Clear old archive folders... [12:52:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:52:25]tlvbuf is 0174F9C0 [12:52:25]SAM_PROTO_ClearQueue [12:52:25]wFMCommunicate request_size=4 [12:52:25]MH_SAM_APDU [12:52:25]CAPDU: 80 09 00 00 [12:52:25]Write to MH i2c: E2 08 00 D8 55 80 09 00 00 00 00 00 00 9F [12:52:25]Write i2c OK [12:52:25]MH_I2C_Read... [12:52:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:52:25]Read from MH i2c: E2 [12:52:25]MH_I2C_Read... [12:52:25]Read from MH i2c: E2 03 00 [12:52:25]MH_I2C_Read... [12:52:25]Read from MH i2c: E2 03 00 D8 55 00 90 00 A1 [12:52:25]RAPDU: 90 00 [12:52:25]wFMCommunicate OK [12:52:25]SAM_PROTO_ClearQueue done [12:52:25]KKMCreateOFDPacket [12:52:25]OFDProtocolAddRootSTLVToBuf [12:52:25]FM_MakeSignedData [12:52:25]FM_MakeSignedData [12:52:25]SAM_PROTO_SignData [12:52:25]wFMCommunicate request_size=4 [12:52:25]MH_SAM_APDU [12:52:25]CAPDU: 80 0D 01 02 [12:52:25]Write to MH i2c: E2 08 00 D9 55 80 0D 01 02 00 00 00 00 A7 [12:52:25]Write i2c OK [12:52:25]MH_I2C_Read... [12:52:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:52:25]Read from MH i2c: E2 [12:52:25]MH_I2C_Read... [12:52:25]Read from MH i2c: E2 03 00 [12:52:25]MH_I2C_Read... [12:52:25]Read from MH i2c: E2 03 00 D9 55 00 90 00 A2 [12:52:25]RAPDU: 90 00 [12:52:25]wFMCommunicate OK [12:52:25]wFMCommunicate request_size=255 [12:52:25]MH_SAM_APDU [12:52: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 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 8E 37 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A3 63 02 00 35 04 06 00 86 [12:52:25]Write to MH i2c: E2 02 01 DA 55 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 8E 37 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A3 63 02 00 35 04 06 00 86 00 00 13 [12:52:25]Write i2c OK [12:52:25]MH_I2C_Read... [12:52:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:52:25]Read from MH i2c: E2 [12:52:25]MH_I2C_Read... [12:52:25]Read from MH i2c: E2 03 00 [12:52:25]MH_I2C_Read... [12:52:25]Read from MH i2c: E2 03 00 DA 55 00 90 00 A3 [12:52:25]RAPDU: 90 00 [12:52:25]wFMCommunicate OK [12:52:25]wFMCommunicate request_size=10 [12:52:25]MH_SAM_APDU [12:52:25]CAPDU: 80 0D 02 02 05 E4 E5 B8 CD 61 [12:52:25]Write to MH i2c: E2 0D 00 DB 55 80 0D 02 02 05 00 E4 E5 B8 CD 61 00 00 63 [12:52:25]Write i2c OK [12:52:25]MH_I2C_Read... [12:52:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:52:25]Read from MH i2c: E2 [12:52:25]MH_I2C_Read... [12:52:25]Read from MH i2c: E2 03 00 [12:52:25]MH_I2C_Read... [12:52:25]Read from MH i2c: E2 03 00 DB 55 00 90 00 A4 [12:52:25]RAPDU: 90 00 [12:52:25]wFMCommunicate OK [12:52:25]wFMCommunicate request_size=4 [12:52:25]MH_SAM_APDU [12:52:25]CAPDU: 80 0D 03 02 [12:52:25]Write to MH i2c: E2 08 00 DC 55 80 0D 03 02 00 00 00 00 AC [12:52:25]Write i2c OK [12:52:25]MH_I2C_Read... [12:52:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:52:25]Read from MH i2c: E2 [12:52:25]MH_I2C_Read... [12:52:25]Read from MH i2c: E2 0B 00 [12:52:25]MH_I2C_Read... [12:52:25]Read from MH i2c: E2 0B 00 DC 55 00 84 FD 04 54 8E 50 D1 C5 90 00 FA [12:52:25]RAPDU: 84 FD 04 54 8E 50 D1 C5 90 00 [12:52:25]wFMCommunicate OK [12:52:25]SAM_PROTO_SignData done [12:52:25]FM_MakeSignedData done [12:52:25]CreateOFDProtocolMessage [12:52:25]wFMCommunicate request_size=4 [12:52:25]MH_SAM_APDU [12:52:25]CAPDU: 80 11 00 00 [12:52:25]Write to MH i2c: E2 08 00 DD 55 80 11 00 00 00 00 00 00 AC [12:52:25]Write i2c OK [12:52:25]MH_I2C_Read... [12:52:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:52:25]Read from MH i2c: E2 [12:52:25]MH_I2C_Read... [12:52:25]Read from MH i2c: E2 17 00 [12:52:25]MH_I2C_Read... [12:52:25]Read from MH i2c: E2 17 00 DD 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 01 [12:52:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:52:25]wFMCommunicate OK [12:52:25]CreateOFDProtocolMessage done [12:52:25]OFDSenderStorePacket 156579 [12:52:25]StoreOFDPacket docnum=156579 [12:52:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 7D 64 07 01 67 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 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 8E 37 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A3 63 02 00 35 04 06 00 86 E4 E5 B8 CD 61 84 FD 04 54 8E 50 D1 C5 [12:52:25]CheckFolder [12:52:25]dirname=/storage/ofd_packets [12:52:25]CheckFolder done [12:52:25]ProducePacketName [12:52:25]name=ofd_packets/00156579 [12:52:25]NVStorageSaveData ofd_packets/00156579 [12:52:25]File name is /storage/ofd_packets/00156579 [12:52:25]Write 301 bytes [12:52:25]NVStorageSaveData done [12:52:25]OFDSenderStorePacket done [12:52:25]KKMCreateOFDPacket done [12:52:25]NVStorageSaveData kkm_last_timestamp [12:52:25]File name is /storage/kkm_last_timestamp [12:52:25]Write 4 bytes [12:52:25]NVStorageSaveData done [12:52:25]ExternCall_PrintAddStr [12:52:25]wPrintStart [12:52:25]Write to MH i2c: 01 00 00 DE 55 33 [12:52:25]Write i2c OK [12:52:25]MH_I2C_Read... [12:52:25]Read from MH i2c: 01 [12:52:25]MH_I2C_Read... [12:52:25]Read from MH i2c: 01 07 00 [12:52:25]MH_I2C_Read... [12:52:25]Read from MH i2c: 01 07 00 DE 55 00 00 00 00 00 FF 0F 48 [12:52:25]RasterBufferAndPrint [12:52:25]line Счет N : (1)99393 [12:52:25]line ИНН: 02508201610067 [12:52:25]line Контрольно-Кассовый Чек [12:52:25]line ПРОДАЖА [12:52:25]line ТРК (МРК, ГНК) : 31 [12:52:25]line Товар: 2710124130 [12:52:25]line Аи-92-К-5 [12:52:25]line 3.290 * 66.90 [12:52:25]line = 220.10 [12:52:25]line НДС 12% НСП 1% [12:52:25]line > о реализуемом товаре [12:52:25]line ОКРУГЛЕНИЕ: -0.10 [12:52:25]line ИТОГО: 220.00 [12:52:25]line Внесено: 220.00 [12:52:25]line СДАЧА: 0.00 [12:52:25]line НСП 1% : 1.95 [12:52:25]line НДС 12% : 23.37 [12:52:25]line Наличными: 220.00 [12:52:25]line Безнал.: 0.00 [12:52:25]line Место: АЗС № 143 "Партнер Нефть" [12:52:25]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [12:52:25]line СНО: Общий режим [12:52:25]line Чек 130 27.10.2024 12:52 [12:52:25]line Смена: 537 ФФД: 1.0 [12:52:25]line ЗНМ: 0300000096 [12:52:25]line РНМ: 0000000000091693 [12:52:25]line Версия ККМ: 001 [12:52:25]line ФМ: 0000000000871792 [12:52:25]line ФД: 156579 [12:52:25]line ФПД: 148317664759137 [12:52:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T125230&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156579&fm=148317664759137&tin=02508201610067®Number=0000000000091693&sum=22000 [12:52:26]OFD Sender: Processing packet 156579 [packets to send 31, broken 30] [12:52:26]ProducePacketName [12:52:26]name=ofd_packets/00156579 [12:52:26]OFD Sender: To server: pG, [12:52:26]CommunicateWithHost lk.salyk.kg:30040 [12:52:26]ConnectInit lk.salyk.kg [12:52:26]written 0, free lines is 4095 [12:52:26]Connected sock=10 [12:52:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 7D 64 07 01 67 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 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 8E 37 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A3 63 02 00 35 04 06 00 86 E4 E5 B8 CD 61 84 FD 04 54 8E 50 D1 C5 [12:52:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 D4 5D 47 00 98 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A3 63 02 00 F4 03 04 00 FD DC 1D 67 B6 04 01 00 00 14 0A 65 D3 C1 46 62 6A [12:52:26]CommunicateWithHost err = 0 [12:52:26]CheckOFDResponse [12:52:26]1017 (14) - 77093643461234 [12:52:26]1041 (16) - 0000000000871792 [12:52:26]1040 (4) - 156579 [12:52:26]1012 (4) - 27.10.2024 06:26 [12:52:26]1206 (1) - 0 [12:52:26]OFD Sender: Remove packet 156579 [12:52:26]ProducePacketName [12:52:26]name=ofd_packets/00156579 [12:52:26]NVStorageDeleteData [12:52:26]Write to MH i2c: 01 00 00 09 56 5F [12:52:26]Write i2c OK [12:52:26]MH_I2C_Read... [12:52:26]Read from MH i2c: 01 [12:52:26]MH_I2C_Read... [12:52:26]Read from MH i2c: 01 07 00 [12:52:26]MH_I2C_Read... [12:52:26]Read from MH i2c: 01 07 00 09 56 00 00 00 00 00 D2 0C 44 [12:52:26]RasterBufferAndPrint [12:52:26]line [12:52:26]line [12:52:26]line [12:52:26]line [12:52:26]line [12:52:26]written 0, free lines is 3287 [12:52:26]process_action close_receipt done [12:52:26]requested_data is exist [12:52:26]produce_requested_data [12:52:26]requested_item fm.sn is exist - process it [12:52:26]wFMCommunicate request_size=4 [12:52:26]MH_SAM_APDU [12:52:26]CAPDU: 80 11 00 00 [12:52:26]Write to MH i2c: E2 08 00 10 56 80 11 00 00 00 00 00 00 E0 [12:52:26]Write i2c OK [12:52:26]MH_I2C_Read... [12:52:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:52:26]Read from MH i2c: E2 [12:52:26]MH_I2C_Read... [12:52:26]Read from MH i2c: E2 17 00 [12:52:26]MH_I2C_Read... [12:52:26]Read from MH i2c: E2 17 00 10 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 35 [12:52:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:52:26]wFMCommunicate OK [12:52:26]requested_item fd.num is exist - process it [12:52:26]SAM_PROTO_GetFieldsCounters [12:52:26]wFMCommunicate request_size=4 [12:52:26]MH_SAM_APDU [12:52:26]CAPDU: 80 13 00 00 [12:52:26]Write to MH i2c: E2 08 00 11 56 80 13 00 00 00 00 00 00 E3 [12:52:26]Write i2c OK [12:52:26]MH_I2C_Read... [12:52:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:52:26]Read from MH i2c: E2 [12:52:26]MH_I2C_Read... [12:52:26]Read from MH i2c: E2 62 00 [12:52:26]MH_I2C_Read... [12:52:26]Read from MH i2c: E2 62 00 11 56 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 A3 63 02 00 0E 04 04 00 19 02 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 B2 [12:52:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 A3 63 02 00 0E 04 04 00 19 02 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 [12:52:26]wFMCommunicate OK [12:52:26]SAM_PROTO_GetFieldsCounters done [12:52:26]requested_item shift.num is exist - process it [12:52:26]requested_item shift.opened is exist - process it [12:52:26]req_shift_opened [12:52:26]FM_GetShiftState [12:52:26]SAM_PROTO_GetShiftState [12:52:26]wFMCommunicate request_size=4 [12:52:26]MH_SAM_APDU [12:52:26]CAPDU: 80 13 01 00 [12:52:26]Write to MH i2c: E2 08 00 12 56 80 13 01 00 00 00 00 00 E5 [12:52:26]Write i2c OK [12:52:26]MH_I2C_Read... [12:52:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:52:26]Read from MH i2c: E2 [12:52:26]MH_I2C_Read... [12:52:26]Read from MH i2c: E2 0E 00 [12:52:26]MH_I2C_Read... [12:52:26]Read from MH i2c: E2 0E 00 12 56 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 B2 [12:52:26]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [12:52:26]wFMCommunicate OK [12:52:26]SAM_PROTO_GetShiftState done [12:52:26]FM_GetShiftState done [12:52:26]req_shift_opened done [12:52:26]requested_item shift.open_date is exist - process it [12:52:26]req_shift_open_date [12:52:26]req_shift_open_date done [12:52:26]produce_requested_data done [12:52:26]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156579,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [12:52:26]process_action_free close_receipt [12:52:26]json_value_free [12:52:26]json_value_free done [12:52:26]process_json_proto returns [12:52:26]Send response to host [12:52:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156579,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [12:52:26]free response buf [12:52:26]execute_script done [12:52:26]execute_script returns [12:52:26]free content buf [12:52:26]Sock 8.Close socket [12:52:26]Sock 8.Thread stoped [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:28]accept exits with 9 [12:53:28]New connection [12:53:28]New thread 3066834276 created [12:53:28]Thread 3066977636 joined [12:53:28]Waiting for new connection... [12:53:28] Sock 9.Parse request [12:53:28]Sock 9.Check first char [12:53:28]Sock 9.First char is OK [12:53:28]request: POST /json_proto HTTP/1.0 [12:53:28]Method: POST [12:53:28]URL: /json_proto [12:53:28]Method is POST - this is cgi request [12:53:28]url: /json_proto [12:53:28]query_string will be loaded in cgi processing [12:53:28]execute_cgi json_proto POST (null) [12:53:28]execute_cgi path=json_proto method=POST [12:53:28]POST find Content-Length [12:53:28]Host: 172.17.63.3:8080 [12:53:28]Content-Length: 676 [12:53:28]Content-Type: application/json [12:53:28] [12:53:28]POST finish read [12:53:28]Found Content-Length = 676 [12:53:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99394", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:53:28]execute_script... [12:53: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)99394", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:53:28]POST & json_proto [12:53:28]process_json_proto [12:53:28]json parsed OK: [12:53:28]protocol is kg_v1.0 [12:53:28]action value=close_receipt [12:53:28]process_action close_receipt [12:53:28]cmd_close_receipt [12:53:28]MH_GetDate [12:53:28]Write to MH i2c: F0 00 00 13 56 58 [12:53:28]Write i2c OK [12:53:28]MH_I2C_Read... [12:53:28]Read from MH i2c: F0 [12:53:28]MH_I2C_Read... [12:53:28]Read from MH i2c: F0 09 00 [12:53:28]MH_I2C_Read... [12:53:28]Read from MH i2c: F0 09 00 13 56 00 CE 37 1E 67 50 D1 6C 64 DC [12:53:28]GetLastDocTimeStamp 1730033550 [12:53:28]current date 1730033614 [12:53:28]FM_GetShiftState [12:53:28]SAM_PROTO_GetShiftState [12:53:28]wFMCommunicate request_size=4 [12:53:28]MH_SAM_APDU [12:53:28]CAPDU: 80 13 01 00 [12:53:28]Write to MH i2c: E2 08 00 14 56 80 13 01 00 00 00 00 00 E7 [12:53:28]Write i2c OK [12:53:28]MH_I2C_Read... [12:53:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:28]Read from MH i2c: E2 [12:53:28]MH_I2C_Read... [12:53:28]Read from MH i2c: E2 0E 00 [12:53:28]MH_I2C_Read... [12:53:28]Read from MH i2c: E2 0E 00 14 56 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 B4 [12:53:28]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [12:53:28]wFMCommunicate OK [12:53:28]SAM_PROTO_GetShiftState done [12:53:28]FM_GetShiftState done [12:53:28]opened in 1729989044 [12:53:28]opened+sec_in_day 1730075444 [12:53:28]quantity*price = 50041 [12:53:28]sum+1 = 50042 [12:53:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 131 27.10.2024 12:53 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156580 ФПД: 157922732763707 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T125334&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156580&fm=157922732763707&tin=02508201610067®Number=0000000000091693&sum=50000 [12:53:29]StoreToDocumentArchive [12:53:29]shift 537 fd 156580 [12:53:29]save to /storage/0537/doc_00156580 [12:53:29]save last doc name /storage/0537/doc_00156580 to /storage/kkm_last_doc_name [12:53:29]save OK [12:53:29]Clear old archive folders... [12:53:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:53:29]tlvbuf is 016A0060 [12:53:29]SAM_PROTO_ClearQueue [12:53:29]wFMCommunicate request_size=4 [12:53:29]MH_SAM_APDU [12:53:29]CAPDU: 80 09 00 00 [12:53:29]Write to MH i2c: E2 08 00 21 56 80 09 00 00 00 00 00 00 E9 [12:53:29]Write i2c OK [12:53:29]MH_I2C_Read... [12:53:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:53:29]Read from MH i2c: E2 [12:53:29]MH_I2C_Read... [12:53:29]Read from MH i2c: E2 03 00 [12:53:29]MH_I2C_Read... [12:53:29]Read from MH i2c: E2 03 00 21 56 00 90 00 EB [12:53:29]RAPDU: 90 00 [12:53:29]wFMCommunicate OK [12:53:29]SAM_PROTO_ClearQueue done [12:53:29]KKMCreateOFDPacket [12:53:29]OFDProtocolAddRootSTLVToBuf [12:53:29]FM_MakeSignedData [12:53:29]FM_MakeSignedData [12:53:29]SAM_PROTO_SignData [12:53:29]wFMCommunicate request_size=4 [12:53:29]MH_SAM_APDU [12:53:29]CAPDU: 80 0D 01 02 [12:53:29]Write to MH i2c: E2 08 00 22 56 80 0D 01 02 00 00 00 00 F1 [12:53:29]Write i2c OK [12:53:29]MH_I2C_Read... [12:53:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:53:29]Read from MH i2c: E2 [12:53:29]MH_I2C_Read... [12:53:29]Read from MH i2c: E2 03 00 [12:53:29]MH_I2C_Read... [12:53:29]Read from MH i2c: E2 03 00 22 56 00 90 00 EC [12:53:29]RAPDU: 90 00 [12:53:29]wFMCommunicate OK [12:53:29]wFMCommunicate request_size=255 [12:53:29]MH_SAM_APDU [12:53: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 CE 37 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A4 63 02 00 35 04 06 00 8F [12:53:29]Write to MH i2c: E2 02 01 23 56 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 CE 37 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A4 63 02 00 35 04 06 00 8F 00 00 45 [12:53:29]Write i2c OK [12:53:29]MH_I2C_Read... [12:53:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:29]Read from MH i2c: E2 [12:53:29]MH_I2C_Read... [12:53:29]Read from MH i2c: E2 03 00 [12:53:29]MH_I2C_Read... [12:53:29]Read from MH i2c: E2 03 00 23 56 00 90 00 ED [12:53:29]RAPDU: 90 00 [12:53:29]wFMCommunicate OK [12:53:29]wFMCommunicate request_size=10 [12:53:29]MH_SAM_APDU [12:53:29]CAPDU: 80 0D 02 02 05 A1 40 63 6A 3B [12:53:29]Write to MH i2c: E2 0D 00 24 56 80 0D 02 02 05 00 A1 40 63 6A 3B 00 00 E7 [12:53:29]Write i2c OK [12:53:29]MH_I2C_Read... [12:53:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:29]Read from MH i2c: E2 [12:53:29]MH_I2C_Read... [12:53:29]Read from MH i2c: E2 03 00 [12:53:29]MH_I2C_Read... [12:53:29]Read from MH i2c: E2 03 00 24 56 00 90 00 EE [12:53:29]RAPDU: 90 00 [12:53:29]wFMCommunicate OK [12:53:29]wFMCommunicate request_size=4 [12:53:29]MH_SAM_APDU [12:53:29]CAPDU: 80 0D 03 02 [12:53:29]Write to MH i2c: E2 08 00 25 56 80 0D 03 02 00 00 00 00 F6 [12:53:29]Write i2c OK [12:53:29]MH_I2C_Read... [12:53:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:53:29]Read from MH i2c: E2 [12:53:29]MH_I2C_Read... [12:53:29]Read from MH i2c: E2 0B 00 [12:53:29]MH_I2C_Read... [12:53:29]Read from MH i2c: E2 0B 00 25 56 00 0B C8 47 C4 5E 3A E6 D5 90 00 28 [12:53:29]RAPDU: 0B C8 47 C4 5E 3A E6 D5 90 00 [12:53:29]wFMCommunicate OK [12:53:29]SAM_PROTO_SignData done [12:53:29]FM_MakeSignedData done [12:53:29]CreateOFDProtocolMessage [12:53:29]wFMCommunicate request_size=4 [12:53:29]MH_SAM_APDU [12:53:29]CAPDU: 80 11 00 00 [12:53:29]Write to MH i2c: E2 08 00 26 56 80 11 00 00 00 00 00 00 F6 [12:53:29]Write i2c OK [12:53:29]MH_I2C_Read... [12:53:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:29]Read from MH i2c: E2 [12:53:29]MH_I2C_Read... [12:53:29]Read from MH i2c: E2 17 00 [12:53:29]MH_I2C_Read... [12:53:29]Read from MH i2c: E2 17 00 26 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 4B [12:53:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:53:29]wFMCommunicate OK [12:53:29]CreateOFDProtocolMessage done [12:53:29]OFDSenderStorePacket 156580 [12:53:29]StoreOFDPacket docnum=156580 [12:53:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 17 EC 07 01 E8 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 CE 37 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A4 63 02 00 35 04 06 00 8F A1 40 63 6A 3B 0B C8 47 C4 5E 3A E6 D5 [12:53:29]CheckFolder [12:53:29]dirname=/storage/ofd_packets [12:53:29]CheckFolder done [12:53:29]ProducePacketName [12:53:29]name=ofd_packets/00156580 [12:53:29]NVStorageSaveData ofd_packets/00156580 [12:53:29]File name is /storage/ofd_packets/00156580 [12:53:29]Write 301 bytes [12:53:29]NVStorageSaveData done [12:53:29]OFDSenderStorePacket done [12:53:29]KKMCreateOFDPacket done [12:53:29]NVStorageSaveData kkm_last_timestamp [12:53:29]File name is /storage/kkm_last_timestamp [12:53:29]Write 4 bytes [12:53:29]NVStorageSaveData done [12:53:29]ExternCall_PrintAddStr [12:53:29]wPrintStart [12:53:29]Write to MH i2c: 01 00 00 27 56 7D [12:53:29]Write i2c OK [12:53:29]MH_I2C_Read... [12:53:29]Read from MH i2c: 01 [12:53:29]MH_I2C_Read... [12:53:29]Read from MH i2c: 01 07 00 [12:53:29]MH_I2C_Read... [12:53:29]Read from MH i2c: 01 07 00 27 56 00 00 00 00 00 FF 0F 92 [12:53:29]RasterBufferAndPrint [12:53:29]line Счет N : (1)99394 [12:53:29]line ИНН: 02508201610067 [12:53:29]line Контрольно-Кассовый Чек [12:53:29]line ПРОДАЖА [12:53:29]line ТРК (МРК, ГНК) : 11 [12:53:29]line Товар: 2710124130 [12:53:29]line Аи-92-К-5 [12:53:29]line 7.480 * 66.90 [12:53:29]line = 500.41 [12:53:29]line НДС 12% НСП 1% [12:53:29]line > о реализуемом товаре [12:53:29]line ОКРУГЛЕНИЕ: -0.41 [12:53:29]line ИТОГО: 500.00 [12:53:29]line Внесено: 500.00 [12:53:29]line СДАЧА: 0.00 [12:53:29]line НСП 1% : 4.43 [12:53:29]line НДС 12% : 53.14 [12:53:29]line Наличными: 500.00 [12:53:29]line Безнал.: 0.00 [12:53:29]line Место: АЗС № 143 "Партнер Нефть" [12:53:29]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [12:53:29]line СНО: Общий режим [12:53:29]line Чек 131 27.10.2024 12:53 [12:53:29]line Смена: 537 ФФД: 1.0 [12:53:29]line ЗНМ: 0300000096 [12:53:29]line РНМ: 0000000000091693 [12:53:29]line Версия ККМ: 001 [12:53:29]line ФМ: 0000000000871792 [12:53:29]line ФД: 156580 [12:53:29]line ФПД: 157922732763707 [12:53:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T125334&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156580&fm=157922732763707&tin=02508201610067®Number=0000000000091693&sum=50000 [12:53:30]OFD Sender: Processing packet 156580 [packets to send 31, broken 30] [12:53:30]ProducePacketName [12:53:30]name=ofd_packets/00156580 [12:53:30]OFD Sender: To server: pG, [12:53:30]CommunicateWithHost lk.salyk.kg:30040 [12:53:30]ConnectInit lk.salyk.kg [12:53:30]written 0, free lines is 4095 [12:53:30]Connected sock=10 [12:53:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 17 EC 07 01 E8 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 CE 37 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A4 63 02 00 35 04 06 00 8F A1 40 63 6A 3B 0B C8 47 C4 5E 3A E6 D5 [12:53:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 38 47 47 00 0C 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 31 37 39 32 10 04 04 00 A4 63 02 00 F4 03 04 00 3D DD 1D 67 B6 04 01 00 00 71 C2 1C E5 A0 4A D0 79 [12:53:30]CommunicateWithHost err = 0 [12:53:30]CheckOFDResponse [12:53:30]1017 (14) - 77093643461234 [12:53:30]1041 (16) - 0000000000871792 [12:53:30]1040 (4) - 156580 [12:53:30]1012 (4) - 27.10.2024 06:27 [12:53:30]1206 (1) - 0 [12:53:30]OFD Sender: Remove packet 156580 [12:53:30]ProducePacketName [12:53:30]name=ofd_packets/00156580 [12:53:30]NVStorageDeleteData [12:53:30]Write to MH i2c: 01 00 00 52 56 A8 [12:53:30]Write i2c OK [12:53:30]MH_I2C_Read... [12:53:30]Read from MH i2c: 01 [12:53:30]MH_I2C_Read... [12:53:30]Read from MH i2c: 01 07 00 [12:53:30]MH_I2C_Read... [12:53:30]Read from MH i2c: 01 07 00 52 56 00 00 00 00 00 DC 0C 97 [12:53:30]RasterBufferAndPrint [12:53:30]line [12:53:30]line [12:53:30]line [12:53:30]line [12:53:30]line [12:53:30]written 0, free lines is 3298 [12:53:30]process_action close_receipt done [12:53:30]requested_data is exist [12:53:30]produce_requested_data [12:53:30]requested_item fm.sn is exist - process it [12:53:30]wFMCommunicate request_size=4 [12:53:30]MH_SAM_APDU [12:53:30]CAPDU: 80 11 00 00 [12:53:30]Write to MH i2c: E2 08 00 59 56 80 11 00 00 00 00 00 00 29 [12:53:30]Write i2c OK [12:53:30]MH_I2C_Read... [12:53:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:30]Read from MH i2c: E2 [12:53:30]MH_I2C_Read... [12:53:30]Read from MH i2c: E2 17 00 [12:53:30]MH_I2C_Read... [12:53:30]Read from MH i2c: E2 17 00 59 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 7E [12:53:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:53:30]wFMCommunicate OK [12:53:30]requested_item fd.num is exist - process it [12:53:30]SAM_PROTO_GetFieldsCounters [12:53:30]wFMCommunicate request_size=4 [12:53:30]MH_SAM_APDU [12:53:30]CAPDU: 80 13 00 00 [12:53:30]Write to MH i2c: E2 08 00 5A 56 80 13 00 00 00 00 00 00 2C [12:53:30]Write i2c OK [12:53:30]MH_I2C_Read... [12:53:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:53:30]Read from MH i2c: E2 [12:53:30]MH_I2C_Read... [12:53:30]Read from MH i2c: E2 62 00 [12:53:30]MH_I2C_Read... [12:53:30]Read from MH i2c: E2 62 00 5A 56 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 A4 63 02 00 0E 04 04 00 19 02 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 FF [12:53:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 A4 63 02 00 0E 04 04 00 19 02 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 [12:53:30]wFMCommunicate OK [12:53:30]SAM_PROTO_GetFieldsCounters done [12:53:30]requested_item shift.num is exist - process it [12:53:30]requested_item shift.opened is exist - process it [12:53:30]req_shift_opened [12:53:30]FM_GetShiftState [12:53:30]SAM_PROTO_GetShiftState [12:53:30]wFMCommunicate request_size=4 [12:53:30]MH_SAM_APDU [12:53:30]CAPDU: 80 13 01 00 [12:53:30]Write to MH i2c: E2 08 00 5B 56 80 13 01 00 00 00 00 00 2E [12:53:30]Write i2c OK [12:53:30]MH_I2C_Read... [12:53:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:30]Read from MH i2c: E2 [12:53:30]MH_I2C_Read... [12:53:30]Read from MH i2c: E2 0E 00 [12:53:30]MH_I2C_Read... [12:53:30]Read from MH i2c: E2 0E 00 5B 56 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 FB [12:53:30]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [12:53:30]wFMCommunicate OK [12:53:30]SAM_PROTO_GetShiftState done [12:53:30]FM_GetShiftState done [12:53:30]req_shift_opened done [12:53:30]requested_item shift.open_date is exist - process it [12:53:30]req_shift_open_date [12:53:30]req_shift_open_date done [12:53:30]produce_requested_data done [12:53:30]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156580,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [12:53:30]process_action_free close_receipt [12:53:30]json_value_free [12:53:30]json_value_free done [12:53:30]process_json_proto returns [12:53:30]Send response to host [12:53:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156580,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [12:53:30]free response buf [12:53:30]execute_script done [12:53:30]execute_script returns [12:53:30]free content buf [12:53:30]Sock 9.Close socket [12:53:30]Sock 9.Thread stoped [12:53:31]OFD Sender: No OFD packet to send [12:53:36]OFD Sender: No OFD packet to send [12:53:41]OFD Sender: No OFD packet to send [12:53:46]OFD Sender: No OFD packet to send [12:53:51]OFD Sender: No OFD packet to send [12:53:56]OFD Sender: No OFD packet to send [12:54:01]OFD Sender: No OFD packet to send [12:54:06]OFD Sender: No OFD packet to send [12:54:11]OFD Sender: No OFD packet to send [12:54:16]OFD Sender: No OFD packet to send [12:54:21]OFD Sender: No OFD packet to send [12:54:26]OFD Sender: No OFD packet to send [12:54:31]OFD Sender: No OFD packet to send [12:54:36]OFD Sender: No OFD packet to send [12:54:41]OFD Sender: No OFD packet to send [12:54:46]OFD Sender: No OFD packet to send [12:54:51]OFD Sender: No OFD packet to send [12:54:56]OFD Sender: No OFD packet to send [12:55:01]OFD Sender: No OFD packet to send [12:55:06]OFD Sender: No OFD packet to send [12:55:11]OFD Sender: No OFD packet to send [12:55:16]accept exits with 8 [12:55:16]New connection [12:55:16]New thread 3066977636 created [12:55:16]Thread 3066834276 joined [12:55:16]Waiting for new connection... [12:55:16] Sock 8.Parse request [12:55:16]Sock 8.Check first char [12:55:16]Sock 8.First char is OK [12:55:16]request: POST /json_proto HTTP/1.0 [12:55:16]Method: POST [12:55:16]URL: /json_proto [12:55:16]Method is POST - this is cgi request [12:55:16]url: /json_proto [12:55:16]query_string will be loaded in cgi processing [12:55:16]execute_cgi json_proto POST (null) [12:55:16]execute_cgi path=json_proto method=POST [12:55:16]POST find Content-Length [12:55:16]Host: 172.17.63.3:8080 [12:55:16]Content-Length: 678 [12:55:16]Content-Type: application/json [12:55:16] [12:55:16]POST finish read [12:55:16]Found Content-Length = 678 [12:55:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99395", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:55:16]execute_script... [12:55: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)99395", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:55:16]POST & json_proto [12:55:16]process_json_proto [12:55:16]json parsed OK: [12:55:16]protocol is kg_v1.0 [12:55:16]action value=close_receipt [12:55:16]process_action close_receipt [12:55:16]cmd_close_receipt [12:55:16]MH_GetDate [12:55:16]Write to MH i2c: F0 00 00 5C 56 A1 [12:55:16]Write i2c OK [12:55:16]MH_I2C_Read... [12:55:16]Read from MH i2c: F0 [12:55:16]MH_I2C_Read... [12:55:16]Read from MH i2c: F0 09 00 [12:55:16]MH_I2C_Read... [12:55:16]Read from MH i2c: F0 09 00 5C 56 00 39 38 1E 67 50 D1 6C 64 91 [12:55:16]GetLastDocTimeStamp 1730033614 [12:55:16]current date 1730033721 [12:55:16]FM_GetShiftState [12:55:16]SAM_PROTO_GetShiftState [12:55:16]wFMCommunicate request_size=4 [12:55:16]MH_SAM_APDU [12:55:16]CAPDU: 80 13 01 00 [12:55:16]Write to MH i2c: E2 08 00 5D 56 80 13 01 00 00 00 00 00 30 [12:55:16]Write i2c OK [12:55:16]MH_I2C_Read... [12:55:16]OFD Sender: No OFD packet to send [12:55:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:55:16]Read from MH i2c: E2 [12:55:16]MH_I2C_Read... [12:55:16]Read from MH i2c: E2 0E 00 [12:55:16]MH_I2C_Read... [12:55:16]Read from MH i2c: E2 0E 00 5D 56 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 FD [12:55:16]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [12:55:16]wFMCommunicate OK [12:55:16]SAM_PROTO_GetShiftState done [12:55:16]FM_GetShiftState done [12:55:16]opened in 1729989044 [12:55:16]opened+sec_in_day 1730075444 [12:55:16]quantity*price = 100050 [12:55:16]sum+1 = 100052 [12:55:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 132 27.10.2024 12:55 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156581 ФПД: 265315226710565 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T125521&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156581&fm=265315226710565&tin=02508201610067®Number=0000000000091693&sum=100000 [12:55:17]StoreToDocumentArchive [12:55:17]shift 537 fd 156581 [12:55:17]save to /storage/0537/doc_00156581 [12:55:17]save last doc name /storage/0537/doc_00156581 to /storage/kkm_last_doc_name [12:55:17]save OK [12:55:17]Clear old archive folders... [12:55:17]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:55:17]tlvbuf is B6EE0A90 [12:55:17]SAM_PROTO_ClearQueue [12:55:17]wFMCommunicate request_size=4 [12:55:17]MH_SAM_APDU [12:55:17]CAPDU: 80 09 00 00 [12:55:17]Write to MH i2c: E2 08 00 6A 56 80 09 00 00 00 00 00 00 32 [12:55:17]Write i2c OK [12:55:17]MH_I2C_Read... [12:55:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:55:17]Read from MH i2c: E2 [12:55:17]MH_I2C_Read... [12:55:17]Read from MH i2c: E2 03 00 [12:55:17]MH_I2C_Read... [12:55:17]Read from MH i2c: E2 03 00 6A 56 00 90 00 34 [12:55:17]RAPDU: 90 00 [12:55:17]wFMCommunicate OK [12:55:17]SAM_PROTO_ClearQueue done [12:55:17]KKMCreateOFDPacket [12:55:17]OFDProtocolAddRootSTLVToBuf [12:55:17]FM_MakeSignedData [12:55:17]FM_MakeSignedData [12:55:17]SAM_PROTO_SignData [12:55:17]wFMCommunicate request_size=4 [12:55:17]MH_SAM_APDU [12:55:17]CAPDU: 80 0D 01 02 [12:55:17]Write to MH i2c: E2 08 00 6B 56 80 0D 01 02 00 00 00 00 3A [12:55:17]Write i2c OK [12:55:17]MH_I2C_Read... [12:55:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:55:17]Read from MH i2c: E2 [12:55:17]MH_I2C_Read... [12:55:17]Read from MH i2c: E2 03 00 [12:55:17]MH_I2C_Read... [12:55:17]Read from MH i2c: E2 03 00 6B 56 00 90 00 35 [12:55:17]RAPDU: 90 00 [12:55:17]wFMCommunicate OK [12:55:17]wFMCommunicate request_size=255 [12:55:17]MH_SAM_APDU [12:55:17]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 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 39 38 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A5 63 02 00 35 04 06 00 F1 4D 83 D7 [12:55:17]Write to MH i2c: E2 02 01 6C 56 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 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 39 38 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A5 63 02 00 35 04 06 00 F1 4D 83 D7 00 00 FB [12:55:17]Write i2c OK [12:55:17]MH_I2C_Read... [12:55:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:55:17]Read from MH i2c: E2 [12:55:17]MH_I2C_Read... [12:55:17]Read from MH i2c: E2 03 00 [12:55:17]MH_I2C_Read... [12:55:17]Read from MH i2c: E2 03 00 6C 56 00 90 00 36 [12:55:17]RAPDU: 90 00 [12:55:17]wFMCommunicate OK [12:55:17]wFMCommunicate request_size=7 [12:55:17]MH_SAM_APDU [12:55:17]CAPDU: 80 0D 02 02 02 72 25 [12:55:17]Write to MH i2c: E2 0A 00 6D 56 80 0D 02 02 02 00 72 25 00 00 D8 [12:55:17]Write i2c OK [12:55:17]MH_I2C_Read... [12:55:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:55:17]Read from MH i2c: E2 [12:55:17]MH_I2C_Read... [12:55:17]Read from MH i2c: E2 03 00 [12:55:17]MH_I2C_Read... [12:55:17]Read from MH i2c: E2 03 00 6D 56 00 90 00 37 [12:55:17]RAPDU: 90 00 [12:55:17]wFMCommunicate OK [12:55:17]wFMCommunicate request_size=4 [12:55:17]MH_SAM_APDU [12:55:17]CAPDU: 80 0D 03 02 [12:55:17]Write to MH i2c: E2 08 00 6E 56 80 0D 03 02 00 00 00 00 3F [12:55:17]Write i2c OK [12:55:17]MH_I2C_Read... [12:55:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:55:17]Read from MH i2c: E2 [12:55:17]MH_I2C_Read... [12:55:17]Read from MH i2c: E2 0B 00 [12:55:17]MH_I2C_Read... [12:55:17]Read from MH i2c: E2 0B 00 6E 56 00 79 E2 18 D6 AF 88 78 8B 90 00 C3 [12:55:17]RAPDU: 79 E2 18 D6 AF 88 78 8B 90 00 [12:55:17]wFMCommunicate OK [12:55:17]SAM_PROTO_SignData done [12:55:17]FM_MakeSignedData done [12:55:17]CreateOFDProtocolMessage [12:55:17]wFMCommunicate request_size=4 [12:55:17]MH_SAM_APDU [12:55:17]CAPDU: 80 11 00 00 [12:55:17]Write to MH i2c: E2 08 00 6F 56 80 11 00 00 00 00 00 00 3F [12:55:17]Write i2c OK [12:55:17]MH_I2C_Read... [12:55:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:55:17]Read from MH i2c: E2 [12:55:17]MH_I2C_Read... [12:55:17]Read from MH i2c: E2 17 00 [12:55:17]MH_I2C_Read... [12:55:17]Read from MH i2c: E2 17 00 6F 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 94 [12:55:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:55:17]wFMCommunicate OK [12:55:17]CreateOFDProtocolMessage done [12:55:17]OFDSenderStorePacket 156581 [12:55:17]StoreOFDPacket docnum=156581 [12:55:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 5A 07 04 01 62 C0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 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 39 38 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A5 63 02 00 35 04 06 00 F1 4D 83 D7 72 25 79 E2 18 D6 AF 88 78 8B [12:55:17]CheckFolder [12:55:17]dirname=/storage/ofd_packets [12:55:17]CheckFolder done [12:55:17]ProducePacketName [12:55:17]name=ofd_packets/00156581 [12:55:17]NVStorageSaveData ofd_packets/00156581 [12:55:17]File name is /storage/ofd_packets/00156581 [12:55:17]Write 298 bytes [12:55:17]NVStorageSaveData done [12:55:17]OFDSenderStorePacket done [12:55:17]KKMCreateOFDPacket done [12:55:17]NVStorageSaveData kkm_last_timestamp [12:55:17]File name is /storage/kkm_last_timestamp [12:55:17]Write 4 bytes [12:55:17]NVStorageSaveData done [12:55:17]ExternCall_PrintAddStr [12:55:17]wPrintStart [12:55:17]Write to MH i2c: 01 00 00 70 56 C6 [12:55:17]Write i2c OK [12:55:17]MH_I2C_Read... [12:55:17]Read from MH i2c: 01 [12:55:17]MH_I2C_Read... [12:55:17]Read from MH i2c: 01 07 00 [12:55:17]MH_I2C_Read... [12:55:17]Read from MH i2c: 01 07 00 70 56 00 00 00 00 00 FF 0F DB [12:55:17]RasterBufferAndPrint [12:55:17]line Счет N : (1)99395 [12:55:17]line ИНН: 02508201610067 [12:55:17]line Контрольно-Кассовый Чек [12:55:17]line ПРОДАЖА [12:55:17]line ТРК (МРК, ГНК) : 32 [12:55:17]line Товар: 2710194210 [12:55:17]line ДТ-К-5 [12:55:17]line 13.130 * 76.20 [12:55:17]line = 1000.51 [12:55:17]line НДС 12% НСП 1% [12:55:17]line > о реализуемом товаре [12:55:17]line ОКРУГЛЕНИЕ: -0.51 [12:55:17]line ИТОГО: 1000.00 [12:55:17]line Внесено: 1000.00 [12:55:17]line СДАЧА: 0.00 [12:55:17]line НСП 1% : 8.85 [12:55:17]line НДС 12% : 106.25 [12:55:17]line Наличными: 1000.00 [12:55:17]line Безнал.: 0.00 [12:55:17]line Место: АЗС № 143 "Партнер Нефть" [12:55:17]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [12:55:17]line СНО: Общий режим [12:55:17]line Чек 132 27.10.2024 12:55 [12:55:17]line Смена: 537 ФФД: 1.0 [12:55:17]line ЗНМ: 0300000096 [12:55:17]line РНМ: 0000000000091693 [12:55:17]line Версия ККМ: 001 [12:55:17]line ФМ: 0000000000871792 [12:55:17]line ФД: 156581 [12:55:17]line ФПД: 265315226710565 [12:55:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T125521&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156581&fm=265315226710565&tin=02508201610067®Number=0000000000091693&sum=100000 [12:55:18]OFD Sender: Processing packet 156581 [packets to send 31, broken 30] [12:55:18]ProducePacketName [12:55:18]name=ofd_packets/00156581 [12:55:18]OFD Sender: To server: pG, [12:55:18]CommunicateWithHost lk.salyk.kg:30040 [12:55:18]ConnectInit lk.salyk.kg [12:55:18]written 0, free lines is 4095 [12:55:18]Connected sock=10 [12:55:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 5A 07 04 01 62 C0 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 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 39 38 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A5 63 02 00 35 04 06 00 F1 4D 83 D7 72 25 79 E2 18 D6 AF 88 78 8B [12:55:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 87 98 47 00 35 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A5 63 02 00 F4 03 04 00 A9 DD 1D 67 B6 04 01 00 00 7C D3 4B CE B0 44 68 55 [12:55:18]CommunicateWithHost err = 0 [12:55:18]CheckOFDResponse [12:55:18]1017 (14) - 77093643461234 [12:55:18]1041 (16) - 0000000000871792 [12:55:18]1040 (4) - 156581 [12:55:18]1012 (4) - 27.10.2024 06:28 [12:55:18]1206 (1) - 0 [12:55:18]OFD Sender: Remove packet 156581 [12:55:18]ProducePacketName [12:55:18]name=ofd_packets/00156581 [12:55:18]NVStorageDeleteData [12:55:18]Write to MH i2c: 01 00 00 9B 56 F1 [12:55:18]Write i2c OK [12:55:18]MH_I2C_Read... [12:55:18]Read from MH i2c: 01 [12:55:18]MH_I2C_Read... [12:55:18]Read from MH i2c: 01 07 00 [12:55:18]MH_I2C_Read... [12:55:18]Read from MH i2c: 01 07 00 9B 56 00 00 00 00 00 EC 0C F0 [12:55:18]RasterBufferAndPrint [12:55:18]line [12:55:18]line [12:55:18]line [12:55:18]line [12:55:18]line [12:55:18]written 0, free lines is 3314 [12:55:18]process_action close_receipt done [12:55:18]requested_data is exist [12:55:18]produce_requested_data [12:55:18]requested_item fm.sn is exist - process it [12:55:18]wFMCommunicate request_size=4 [12:55:18]MH_SAM_APDU [12:55:18]CAPDU: 80 11 00 00 [12:55:18]Write to MH i2c: E2 08 00 A2 56 80 11 00 00 00 00 00 00 72 [12:55:18]Write i2c OK [12:55:18]MH_I2C_Read... [12:55:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:55:18]Read from MH i2c: E2 [12:55:18]MH_I2C_Read... [12:55:18]Read from MH i2c: E2 17 00 [12:55:18]MH_I2C_Read... [12:55:18]Read from MH i2c: E2 17 00 A2 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 C7 [12:55:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:55:18]wFMCommunicate OK [12:55:18]requested_item fd.num is exist - process it [12:55:18]SAM_PROTO_GetFieldsCounters [12:55:18]wFMCommunicate request_size=4 [12:55:18]MH_SAM_APDU [12:55:18]CAPDU: 80 13 00 00 [12:55:18]Write to MH i2c: E2 08 00 A3 56 80 13 00 00 00 00 00 00 75 [12:55:18]Write i2c OK [12:55:18]MH_I2C_Read... [12:55:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:55:18]Read from MH i2c: E2 [12:55:18]MH_I2C_Read... [12:55:18]Read from MH i2c: E2 62 00 [12:55:18]MH_I2C_Read... [12:55:18]Read from MH i2c: E2 62 00 A3 56 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 A5 63 02 00 0E 04 04 00 19 02 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 4C [12:55: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 A5 63 02 00 0E 04 04 00 19 02 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 [12:55:18]wFMCommunicate OK [12:55:18]SAM_PROTO_GetFieldsCounters done [12:55:18]requested_item shift.num is exist - process it [12:55:18]requested_item shift.opened is exist - process it [12:55:18]req_shift_opened [12:55:18]FM_GetShiftState [12:55:18]SAM_PROTO_GetShiftState [12:55:18]wFMCommunicate request_size=4 [12:55:18]MH_SAM_APDU [12:55:18]CAPDU: 80 13 01 00 [12:55:18]Write to MH i2c: E2 08 00 A4 56 80 13 01 00 00 00 00 00 77 [12:55:18]Write i2c OK [12:55:18]MH_I2C_Read... [12:55:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:55:18]Read from MH i2c: E2 [12:55:18]MH_I2C_Read... [12:55:18]Read from MH i2c: E2 0E 00 [12:55:18]MH_I2C_Read... [12:55:18]Read from MH i2c: E2 0E 00 A4 56 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 44 [12:55:18]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [12:55:18]wFMCommunicate OK [12:55:18]SAM_PROTO_GetShiftState done [12:55:18]FM_GetShiftState done [12:55:18]req_shift_opened done [12:55:18]requested_item shift.open_date is exist - process it [12:55:18]req_shift_open_date [12:55:18]req_shift_open_date done [12:55:18]produce_requested_data done [12:55:18]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156581,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [12:55:18]process_action_free close_receipt [12:55:18]json_value_free [12:55:18]json_value_free done [12:55:18]process_json_proto returns [12:55:18]Send response to host [12:55:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156581,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [12:55:18]free response buf [12:55:18]execute_script done [12:55:18]execute_script returns [12:55:18]free content buf [12:55:18]Sock 8.Close socket [12:55:18]Sock 8.Thread stoped [12:55:19]OFD Sender: No OFD packet to send [12:55:24]OFD Sender: No OFD packet to send [12:55:29]OFD Sender: No OFD packet to send [12:55:33]int [12:55:33]Write to MH i2c: 01 00 00 A5 56 FB [12:55:33]*** FLAG_PRN_KEY set [12:55:33]Write i2c OK [12:55:33]MH_I2C_Read... [12:55:33]Read from MH i2c: 01 [12:55:33]MH_I2C_Read... [12:55:33]Read from MH i2c: 01 07 00 [12:55:33]MH_I2C_Read... [12:55:33]Read from MH i2c: 01 07 00 A5 56 00 08 00 00 00 FF 0F 18 [12:55:33]state=0 [12:55:33]Key pressed [12:55:33]Feed [12:55:33]Write to MH i2c: D8 00 00 A6 56 D3 [12:55:33]Write i2c OK [12:55:33]MH_I2C_Read... [12:55:33]Read from MH i2c: D8 [12:55:33]MH_I2C_Read... [12:55:33]Read from MH i2c: D8 01 00 [12:55:33]MH_I2C_Read... [12:55:33]Read from MH i2c: D8 01 00 A6 56 00 D4 [12:55:33]int [12:55:33]Write to MH i2c: 01 00 00 A7 56 FD [12:55:33]Write i2c OK [12:55:33]MH_I2C_Read... [12:55:33]Read from MH i2c: 01 [12:55:33]MH_I2C_Read... [12:55:33]Read from MH i2c: 01 07 00 [12:55:33]MH_I2C_Read... [12:55:33]Read from MH i2c: 01 07 00 A7 56 00 48 00 00 00 3D 00 89 [12:55:33]state=2 [12:55:33]Key pressed [12:55:34]int [12:55:34]Write to MH i2c: 01 00 00 A8 56 FE [12:55:34]*** FLAG_PRN_KEY reset [12:55:34]Write i2c OK [12:55:34]MH_I2C_Read... [12:55:34]Read from MH i2c: 01 [12:55:34]MH_I2C_Read... [12:55:34]Read from MH i2c: 01 07 00 [12:55:34]MH_I2C_Read... [12:55:34]Read from MH i2c: 01 07 00 A8 56 00 00 00 00 00 F6 0F 0A [12:55:34]state=2 [12:55:34]Stop feed [12:55:34]OFD Sender: No OFD packet to send [12:55:34]int [12:55:34]Write to MH i2c: 01 00 00 A9 56 FF [12:55:34]*** FLAG_PRN_PAP1 set [12:55:34]Write i2c OK [12:55:34]MH_I2C_Read... [12:55:34]Read from MH i2c: 01 [12:55:34]MH_I2C_Read... [12:55:34]Read from MH i2c: 01 07 00 [12:55:34]MH_I2C_Read... [12:55:34]Read from MH i2c: 01 07 00 A9 56 00 01 00 00 00 FF 0F 15 [12:55:34]state=0 [12:55:34]No paper [12:55:34]int [12:55:34]Write to MH i2c: 01 00 00 AA 56 00 [12:55:34]*** FLAG_PRN_PAP2 set [12:55:34]Write i2c OK [12:55:34]MH_I2C_Read... [12:55:34]Read from MH i2c: 01 [12:55:34]MH_I2C_Read... [12:55:34]Read from MH i2c: 01 07 00 [12:55:34]MH_I2C_Read... [12:55:34]Read from MH i2c: 01 07 00 AA 56 00 03 00 00 00 FF 0F 18 [12:55:34]state=0 [12:55:34]No paper [12:55:34]Cover opened [12:55:34]int [12:55:34]Write to MH i2c: 01 00 00 AB 56 01 [12:55:34]*** FLAG_PRN_PAP2 reset [12:55:34]Write i2c OK [12:55:34]MH_I2C_Read... [12:55:34]Read from MH i2c: 01 [12:55:34]MH_I2C_Read... [12:55:34]Read from MH i2c: 01 07 00 [12:55:34]MH_I2C_Read... [12:55:34]Read from MH i2c: 01 07 00 AB 56 00 01 00 00 00 FF 0F 17 [12:55:34]state=3 [12:55:34]No paper [12:55:34]Cover closed [12:55:34]int [12:55:34]Write to MH i2c: 01 00 00 AC 56 02 [12:55:34]*** FLAG_PRN_PAP2 set [12:55:34]Write i2c OK [12:55:34]MH_I2C_Read... [12:55:34]Read from MH i2c: 01 [12:55:34]MH_I2C_Read... [12:55:34]Read from MH i2c: 01 07 00 [12:55:34]MH_I2C_Read... [12:55:34]Read from MH i2c: 01 07 00 AC 56 00 03 00 00 00 FF 0F 1A [12:55:34]state=0 [12:55:34]No paper [12:55:34]Cover opened [12:55:39]OFD Sender: No OFD packet to send [12:55:39]Write to MH i2c: 01 00 00 AD 56 03 [12:55:39]Write i2c OK [12:55:39]MH_I2C_Read... [12:55:39]Read from MH i2c: 01 [12:55:39]MH_I2C_Read... [12:55:39]Read from MH i2c: 01 07 00 [12:55:39]MH_I2C_Read... [12:55:39]Read from MH i2c: 01 07 00 AD 56 00 03 00 00 00 FF 0F 1B [12:55:39]state=3 [12:55:39]No paper [12:55:39]Cover opened [12:55:44]OFD Sender: No OFD packet to send [12:55:44]Write to MH i2c: 01 00 00 AE 56 04 [12:55:44]Write i2c OK [12:55:44]MH_I2C_Read... [12:55:44]Read from MH i2c: 01 [12:55:44]MH_I2C_Read... [12:55:44]Read from MH i2c: 01 07 00 [12:55:44]MH_I2C_Read... [12:55:44]Read from MH i2c: 01 07 00 AE 56 00 03 00 00 00 FF 0F 1C [12:55:44]state=3 [12:55:44]No paper [12:55:44]Cover opened [12:55:49]OFD Sender: No OFD packet to send [12:55:49]Write to MH i2c: 01 00 00 AF 56 05 [12:55:49]Write i2c OK [12:55:49]MH_I2C_Read... [12:55:49]Read from MH i2c: 01 [12:55:49]MH_I2C_Read... [12:55:49]Read from MH i2c: 01 07 00 [12:55:49]MH_I2C_Read... [12:55:49]Read from MH i2c: 01 07 00 AF 56 00 03 00 00 00 FF 0F 1D [12:55:49]state=3 [12:55:49]No paper [12:55:49]Cover opened [12:55:52]int [12:55:52]Write to MH i2c: 01 00 00 B0 56 06 [12:55:52]*** FLAG_PRN_PAP2 reset [12:55:52]Write i2c OK [12:55:52]MH_I2C_Read... [12:55:52]Read from MH i2c: 01 [12:55:52]MH_I2C_Read... [12:55:52]Read from MH i2c: 01 07 00 [12:55:52]MH_I2C_Read... [12:55:52]Read from MH i2c: 01 07 00 B0 56 00 01 00 00 00 FF 0F 1C [12:55:52]state=3 [12:55:52]No paper [12:55:52]Cover closed [12:55:52]int [12:55:52]Write to MH i2c: 01 00 00 B1 56 07 [12:55:52]*** FLAG_PRN_PAP2 set [12:55:52]Write i2c OK [12:55:52]MH_I2C_Read... [12:55:52]Read from MH i2c: 01 [12:55:52]MH_I2C_Read... [12:55:52]Read from MH i2c: 01 07 00 [12:55:52]MH_I2C_Read... [12:55:52]Read from MH i2c: 01 07 00 B1 56 00 03 00 00 00 FF 0F 1F [12:55:52]state=0 [12:55:52]No paper [12:55:52]Cover opened [12:55:54]OFD Sender: No OFD packet to send [12:55:54]int [12:55:54]Write to MH i2c: 01 00 00 B2 56 08 [12:55:54]*** FLAG_PRN_PAP2 reset [12:55:54]Write i2c OK [12:55:54]MH_I2C_Read... [12:55:54]Read from MH i2c: 01 [12:55:54]MH_I2C_Read... [12:55:54]Read from MH i2c: 01 07 00 [12:55:54]MH_I2C_Read... [12:55:54]Read from MH i2c: 01 07 00 B2 56 00 01 00 00 00 FF 0F 1E [12:55:54]state=3 [12:55:54]No paper [12:55:54]Cover closed [12:55:54]int [12:55:54]Write to MH i2c: 01 00 00 B3 56 09 [12:55:54]*** FLAG_PRN_PAP1 reset [12:55:54]Write i2c OK [12:55:54]MH_I2C_Read... [12:55:54]Read from MH i2c: 01 [12:55:54]MH_I2C_Read... [12:55:54]Read from MH i2c: 01 07 00 [12:55:54]MH_I2C_Read... [12:55:54]Read from MH i2c: 01 07 00 B3 56 00 00 00 00 00 FF 0F 1E [12:55:54]state=0 [12:55:56]int [12:55:56]Write to MH i2c: 01 00 00 B4 56 0A [12:55:56]*** FLAG_PRN_PAP1 set [12:55:56]Write i2c OK [12:55:56]MH_I2C_Read... [12:55:56]Read from MH i2c: 01 [12:55:56]MH_I2C_Read... [12:55:56]Read from MH i2c: 01 07 00 [12:55:56]MH_I2C_Read... [12:55:56]Read from MH i2c: 01 07 00 B4 56 00 01 00 00 00 FF 0F 20 [12:55:56]state=0 [12:55:56]No paper [12:55:56]int [12:55:56]Write to MH i2c: 01 00 00 B5 56 0B [12:55:56]*** FLAG_PRN_PAP2 set [12:55:56]Write i2c OK [12:55:56]MH_I2C_Read... [12:55:56]Read from MH i2c: 01 [12:55:56]MH_I2C_Read... [12:55:56]Read from MH i2c: 01 07 00 [12:55:56]MH_I2C_Read... [12:55:56]Read from MH i2c: 01 07 00 B5 56 00 03 00 00 00 FF 0F 23 [12:55:56]state=0 [12:55:56]No paper [12:55:56]Cover opened [12:55:57]int [12:55:57]Write to MH i2c: 01 00 00 B6 56 0C [12:55:57]*** FLAG_PRN_PAP2 reset [12:55:57]Write i2c OK [12:55:57]MH_I2C_Read... [12:55:57]Read from MH i2c: 01 [12:55:57]MH_I2C_Read... [12:55:57]Read from MH i2c: 01 07 00 [12:55:57]MH_I2C_Read... [12:55:57]Read from MH i2c: 01 07 00 B6 56 00 01 00 00 00 FF 0F 22 [12:55:57]state=3 [12:55:57]No paper [12:55:57]Cover closed [12:55:57]int [12:55:57]Write to MH i2c: 01 00 00 B7 56 0D [12:55:57]*** FLAG_PRN_PAP1 reset [12:55:57]Write i2c OK [12:55:57]MH_I2C_Read... [12:55:57]Read from MH i2c: 01 [12:55:57]MH_I2C_Read... [12:55:57]Read from MH i2c: 01 07 00 [12:55:57]MH_I2C_Read... [12:55:57]Read from MH i2c: 01 07 00 B7 56 00 00 00 00 00 FF 0F 22 [12:55:57]state=0 [12:55:59]OFD Sender: No OFD packet to send [12:56:04]OFD Sender: No OFD packet to send [12:56:09]OFD Sender: No OFD packet to send [12:56:14]OFD Sender: No OFD packet to send [12:56:19]OFD Sender: No OFD packet to send [12:56:24]OFD Sender: No OFD packet to send [12:56:29]OFD Sender: No OFD packet to send [12:56:31]accept exits with 9 [12:56:31]New connection [12:56:31]New thread 3066834276 created [12:56:31]Thread 3066977636 joined [12:56:31]Waiting for new connection... [12:56:31] Sock 9.Parse request [12:56:31]Sock 9.Check first char [12:56:31]Sock 9.First char is OK [12:56:31]request: POST /json_proto HTTP/1.0 [12:56:31]Method: POST [12:56:31]URL: /json_proto [12:56:31]Method is POST - this is cgi request [12:56:31]url: /json_proto [12:56:31]query_string will be loaded in cgi processing [12:56:31]execute_cgi json_proto POST (null) [12:56:31]execute_cgi path=json_proto method=POST [12:56:31]POST find Content-Length [12:56:31]Host: 172.17.63.3:8080 [12:56:31]Content-Length: 676 [12:56:31]Content-Type: application/json [12:56:31] [12:56:31]POST finish read [12:56:31]Found Content-Length = 676 [12:56:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99396", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "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" ] } } [12:56:31]execute_script... [12:56: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)99396", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "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" ] } } [12:56:31]POST & json_proto [12:56:31]process_json_proto [12:56:31]json parsed OK: [12:56:31]protocol is kg_v1.0 [12:56:31]action value=close_receipt [12:56:31]process_action close_receipt [12:56:31]cmd_close_receipt [12:56:31]MH_GetDate [12:56:31]Write to MH i2c: F0 00 00 B8 56 FD [12:56:31]Write i2c OK [12:56:31]MH_I2C_Read... [12:56:31]Read from MH i2c: F0 [12:56:31]MH_I2C_Read... [12:56:31]Read from MH i2c: F0 09 00 [12:56:31]MH_I2C_Read... [12:56:31]Read from MH i2c: F0 09 00 B8 56 00 85 38 1E 67 50 D1 6C 64 39 [12:56:31]GetLastDocTimeStamp 1730033721 [12:56:31]current date 1730033797 [12:56:31]FM_GetShiftState [12:56:31]SAM_PROTO_GetShiftState [12:56:31]wFMCommunicate request_size=4 [12:56:31]MH_SAM_APDU [12:56:31]CAPDU: 80 13 01 00 [12:56:31]Write to MH i2c: E2 08 00 B9 56 80 13 01 00 00 00 00 00 8C [12:56:31]Write i2c OK [12:56:31]MH_I2C_Read... [12:56:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:56:31]Read from MH i2c: E2 [12:56:31]MH_I2C_Read... [12:56:31]Read from MH i2c: E2 0E 00 [12:56:31]MH_I2C_Read... [12:56:31]Read from MH i2c: E2 0E 00 B9 56 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 59 [12:56:31]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [12:56:31]wFMCommunicate OK [12:56:31]SAM_PROTO_GetShiftState done [12:56:31]FM_GetShiftState done [12:56:31]opened in 1729989044 [12:56:31]opened+sec_in_day 1730075444 [12:56:31]quantity*price = 20003 [12:56:31]sum+1 = 20004 [12:56:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 133 27.10.2024 12:56 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156582 ФПД: 87857357199580 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T125637&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156582&fm=87857357199580&tin=02508201610067®Number=0000000000091693&sum=20000 [12:56:32]StoreToDocumentArchive [12:56:32]shift 537 fd 156582 [12:56:32]save to /storage/0537/doc_00156582 [12:56:32]save last doc name /storage/0537/doc_00156582 to /storage/kkm_last_doc_name [12:56:32]save OK [12:56:32]Clear old archive folders... [12:56:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:56:32]tlvbuf is 01754160 [12:56:32]SAM_PROTO_ClearQueue [12:56:32]wFMCommunicate request_size=4 [12:56:32]MH_SAM_APDU [12:56:32]CAPDU: 80 09 00 00 [12:56:32]Write to MH i2c: E2 08 00 C6 56 80 09 00 00 00 00 00 00 8E [12:56:32]Write i2c OK [12:56:32]MH_I2C_Read... [12:56:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:56:32]Read from MH i2c: E2 [12:56:32]MH_I2C_Read... [12:56:32]Read from MH i2c: E2 03 00 [12:56:32]MH_I2C_Read... [12:56:32]Read from MH i2c: E2 03 00 C6 56 00 90 00 90 [12:56:32]RAPDU: 90 00 [12:56:32]wFMCommunicate OK [12:56:32]SAM_PROTO_ClearQueue done [12:56:32]KKMCreateOFDPacket [12:56:32]OFDProtocolAddRootSTLVToBuf [12:56:32]FM_MakeSignedData [12:56:32]FM_MakeSignedData [12:56:32]SAM_PROTO_SignData [12:56:32]wFMCommunicate request_size=4 [12:56:32]MH_SAM_APDU [12:56:32]CAPDU: 80 0D 01 02 [12:56:32]Write to MH i2c: E2 08 00 C7 56 80 0D 01 02 00 00 00 00 96 [12:56:32]Write i2c OK [12:56:32]MH_I2C_Read... [12:56:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:56:32]Read from MH i2c: E2 [12:56:32]MH_I2C_Read... [12:56:32]Read from MH i2c: E2 03 00 [12:56:32]MH_I2C_Read... [12:56:32]Read from MH i2c: E2 03 00 C7 56 00 90 00 91 [12:56:32]RAPDU: 90 00 [12:56:32]wFMCommunicate OK [12:56:32]wFMCommunicate request_size=255 [12:56:32]MH_SAM_APDU [12:56: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 85 00 00 00 F4 03 04 00 85 38 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A6 63 02 00 35 04 06 00 4F [12:56:32]Write to MH i2c: E2 02 01 C8 56 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 85 00 00 00 F4 03 04 00 85 38 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A6 63 02 00 35 04 06 00 4F 00 00 28 [12:56:32]Write i2c OK [12:56:32]MH_I2C_Read... [12:56:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:56:32]Read from MH i2c: E2 [12:56:32]MH_I2C_Read... [12:56:32]Read from MH i2c: E2 03 00 [12:56:32]MH_I2C_Read... [12:56:32]Read from MH i2c: E2 03 00 C8 56 00 90 00 92 [12:56:32]RAPDU: 90 00 [12:56:32]wFMCommunicate OK [12:56:32]wFMCommunicate request_size=10 [12:56:32]MH_SAM_APDU [12:56:32]CAPDU: 80 0D 02 02 05 E7 E2 91 18 DC [12:56:32]Write to MH i2c: E2 0D 00 C9 56 80 0D 02 02 05 00 E7 E2 91 18 DC 00 00 F1 [12:56:32]Write i2c OK [12:56:32]MH_I2C_Read... [12:56:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:56:32]Read from MH i2c: E2 [12:56:32]MH_I2C_Read... [12:56:32]Read from MH i2c: E2 03 00 [12:56:32]MH_I2C_Read... [12:56:32]Read from MH i2c: E2 03 00 C9 56 00 90 00 93 [12:56:32]RAPDU: 90 00 [12:56:32]wFMCommunicate OK [12:56:32]wFMCommunicate request_size=4 [12:56:32]MH_SAM_APDU [12:56:32]CAPDU: 80 0D 03 02 [12:56:32]Write to MH i2c: E2 08 00 CA 56 80 0D 03 02 00 00 00 00 9B [12:56:32]Write i2c OK [12:56:32]MH_I2C_Read... [12:56:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:56:32]Read from MH i2c: E2 [12:56:32]MH_I2C_Read... [12:56:32]Read from MH i2c: E2 0B 00 [12:56:32]MH_I2C_Read... [12:56:32]Read from MH i2c: E2 0B 00 CA 56 00 70 E1 11 D7 44 FD 2C 61 90 00 A3 [12:56:32]RAPDU: 70 E1 11 D7 44 FD 2C 61 90 00 [12:56:32]wFMCommunicate OK [12:56:32]SAM_PROTO_SignData done [12:56:32]FM_MakeSignedData done [12:56:32]CreateOFDProtocolMessage [12:56:32]wFMCommunicate request_size=4 [12:56:32]MH_SAM_APDU [12:56:32]CAPDU: 80 11 00 00 [12:56:32]Write to MH i2c: E2 08 00 CB 56 80 11 00 00 00 00 00 00 9B [12:56:32]Write i2c OK [12:56:32]MH_I2C_Read... [12:56:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:56:32]Read from MH i2c: E2 [12:56:32]MH_I2C_Read... [12:56:32]Read from MH i2c: E2 17 00 [12:56:32]MH_I2C_Read... [12:56:32]Read from MH i2c: E2 17 00 CB 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 F0 [12:56:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:56:32]wFMCommunicate OK [12:56:32]CreateOFDProtocolMessage done [12:56:32]OFDSenderStorePacket 156582 [12:56:32]StoreOFDPacket docnum=156582 [12:56:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 77 C1 07 01 39 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 85 00 00 00 F4 03 04 00 85 38 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A6 63 02 00 35 04 06 00 4F E7 E2 91 18 DC 70 E1 11 D7 44 FD 2C 61 [12:56:32]CheckFolder [12:56:32]dirname=/storage/ofd_packets [12:56:32]CheckFolder done [12:56:32]ProducePacketName [12:56:32]name=ofd_packets/00156582 [12:56:32]NVStorageSaveData ofd_packets/00156582 [12:56:32]File name is /storage/ofd_packets/00156582 [12:56:32]Write 301 bytes [12:56:32]NVStorageSaveData done [12:56:32]OFDSenderStorePacket done [12:56:32]KKMCreateOFDPacket done [12:56:32]NVStorageSaveData kkm_last_timestamp [12:56:33]File name is /storage/kkm_last_timestamp [12:56:33]Write 4 bytes [12:56:33]NVStorageSaveData done [12:56:33]ExternCall_PrintAddStr [12:56:33]wPrintStart [12:56:33]Write to MH i2c: 01 00 00 CC 56 22 [12:56:33]Write i2c OK [12:56:33]MH_I2C_Read... [12:56:33]Read from MH i2c: 01 [12:56:33]MH_I2C_Read... [12:56:33]Read from MH i2c: 01 07 00 [12:56:33]MH_I2C_Read... [12:56:33]Read from MH i2c: 01 07 00 CC 56 00 00 00 00 00 FF 0F 37 [12:56:33]RasterBufferAndPrint [12:56:33]line Счет N : (1)99396 [12:56:33]line ИНН: 02508201610067 [12:56:33]line Контрольно-Кассовый Чек [12:56:33]line ПРОДАЖА [12:56:33]line ТРК (МРК, ГНК) : 21 [12:56:33]line Товар: 2710124130 [12:56:33]line Аи-92-К-5 [12:56:33]line 2.990 * 66.90 [12:56:33]line = 200.03 [12:56:33]line НДС 12% НСП 1% [12:56:33]line > о реализуемом товаре [12:56:33]line ОКРУГЛЕНИЕ: -0.03 [12:56:33]line ИТОГО: 200.00 [12:56:33]line Внесено: 200.00 [12:56:33]line СДАЧА: 0.00 [12:56:33]line НСП 1% : 1.77 [12:56:33]line НДС 12% : 21.24 [12:56:33]line Наличными: 200.00 [12:56:33]line Безнал.: 0.00 [12:56:33]line Место: АЗС № 143 "Партнер Нефть" [12:56:33]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [12:56:33]line СНО: Общий режим [12:56:33]line Чек 133 27.10.2024 12:56 [12:56:33]line Смена: 537 ФФД: 1.0 [12:56:33]line ЗНМ: 0300000096 [12:56:33]line РНМ: 0000000000091693 [12:56:33]line Версия ККМ: 001 [12:56:33]line ФМ: 0000000000871792 [12:56:33]line ФД: 156582 [12:56:33]line ФПД: 87857357199580 [12:56:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T125637&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156582&fm=87857357199580&tin=02508201610067®Number=0000000000091693&sum=20000 [12:56:33]OFD Sender: Processing packet 156582 [packets to send 31, broken 30] [12:56:33]ProducePacketName [12:56:33]name=ofd_packets/00156582 [12:56:33]OFD Sender: To server: pG, [12:56:33]CommunicateWithHost lk.salyk.kg:30040 [12:56:33]ConnectInit lk.salyk.kg [12:56:33]written 0, free lines is 4095 [12:56:33]Connected sock=10 [12:56:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 77 C1 07 01 39 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 85 00 00 00 F4 03 04 00 85 38 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A6 63 02 00 35 04 06 00 4F E7 E2 91 18 DC 70 E1 11 D7 44 FD 2C 61 [12:56:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 E7 1F 47 00 30 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 31 37 39 32 10 04 04 00 A6 63 02 00 F4 03 04 00 F4 DD 1D 67 B6 04 01 00 00 08 F1 53 49 AE 59 E1 69 [12:56:33]CommunicateWithHost err = 0 [12:56:33]CheckOFDResponse [12:56:33]1017 (14) - 77093643461234 [12:56:33]1041 (16) - 0000000000871792 [12:56:33]1040 (4) - 156582 [12:56:33]1012 (4) - 27.10.2024 06:30 [12:56:33]1206 (1) - 0 [12:56:33]OFD Sender: Remove packet 156582 [12:56:33]ProducePacketName [12:56:33]name=ofd_packets/00156582 [12:56:33]NVStorageDeleteData [12:56:33]Write to MH i2c: 01 00 00 F7 56 4D [12:56:33]Write i2c OK [12:56:33]MH_I2C_Read... [12:56:33]Read from MH i2c: 01 [12:56:33]MH_I2C_Read... [12:56:33]Read from MH i2c: 01 07 00 [12:56:33]MH_I2C_Read... [12:56:33]Read from MH i2c: 01 07 00 F7 56 00 00 00 00 00 E0 0C 40 [12:56:33]RasterBufferAndPrint [12:56:33]line [12:56:33]line [12:56:33]line [12:56:33]line [12:56:33]line [12:56:33]written 0, free lines is 3304 [12:56:33]process_action close_receipt done [12:56:33]requested_data is exist [12:56:33]produce_requested_data [12:56:33]requested_item fm.sn is exist - process it [12:56:33]wFMCommunicate request_size=4 [12:56:33]MH_SAM_APDU [12:56:33]CAPDU: 80 11 00 00 [12:56:33]Write to MH i2c: E2 08 00 FE 56 80 11 00 00 00 00 00 00 CE [12:56:33]Write i2c OK [12:56:33]MH_I2C_Read... [12:56:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:56:33]Read from MH i2c: E2 [12:56:33]MH_I2C_Read... [12:56:33]Read from MH i2c: E2 17 00 [12:56:33]MH_I2C_Read... [12:56:33]Read from MH i2c: E2 17 00 FE 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 23 [12:56:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:56:33]wFMCommunicate OK [12:56:33]requested_item fd.num is exist - process it [12:56:33]SAM_PROTO_GetFieldsCounters [12:56:33]wFMCommunicate request_size=4 [12:56:33]MH_SAM_APDU [12:56:33]CAPDU: 80 13 00 00 [12:56:33]Write to MH i2c: E2 08 00 FF 56 80 13 00 00 00 00 00 00 D1 [12:56:33]Write i2c OK [12:56:33]MH_I2C_Read... [12:56:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:56:34]Read from MH i2c: E2 [12:56:34]MH_I2C_Read... [12:56:34]Read from MH i2c: E2 62 00 [12:56:34]MH_I2C_Read... [12:56:34]Read from MH i2c: E2 62 00 FF 56 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 A6 63 02 00 0E 04 04 00 19 02 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 AC [12:56:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 A6 63 02 00 0E 04 04 00 19 02 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 [12:56:34]wFMCommunicate OK [12:56:34]SAM_PROTO_GetFieldsCounters done [12:56:34]requested_item shift.num is exist - process it [12:56:34]requested_item shift.opened is exist - process it [12:56:34]req_shift_opened [12:56:34]FM_GetShiftState [12:56:34]SAM_PROTO_GetShiftState [12:56:34]wFMCommunicate request_size=4 [12:56:34]MH_SAM_APDU [12:56:34]CAPDU: 80 13 01 00 [12:56:34]Write to MH i2c: E2 08 00 00 57 80 13 01 00 00 00 00 00 D4 [12:56:34]Write i2c OK [12:56:34]MH_I2C_Read... [12:56:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:56:34]Read from MH i2c: E2 [12:56:34]MH_I2C_Read... [12:56:34]Read from MH i2c: E2 0E 00 [12:56:34]MH_I2C_Read... [12:56:34]Read from MH i2c: E2 0E 00 00 57 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 A1 [12:56:34]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [12:56:34]wFMCommunicate OK [12:56:34]SAM_PROTO_GetShiftState done [12:56:34]FM_GetShiftState done [12:56:34]req_shift_opened done [12:56:34]requested_item shift.open_date is exist - process it [12:56:34]req_shift_open_date [12:56:34]req_shift_open_date done [12:56:34]produce_requested_data done [12:56:34]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156582,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [12:56:34]process_action_free close_receipt [12:56:34]json_value_free [12:56:34]json_value_free done [12:56:34]process_json_proto returns [12:56:34]Send response to host [12:56:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156582,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [12:56:34]free response buf [12:56:34]execute_script done [12:56:34]execute_script returns [12:56:34]free content buf [12:56:34]Sock 9.Close socket [12:56:34]Sock 9.Thread stoped [12:56:34]OFD Sender: No OFD packet to send [12:56:39]OFD Sender: No OFD packet to send [12:56:44]OFD Sender: No OFD packet to send [12:56:49]OFD Sender: No OFD packet to send [12:56:54]OFD Sender: No OFD packet to send [12:56:59]OFD Sender: No OFD packet to send [12:57:04]OFD Sender: No OFD packet to send [12:57:09]OFD Sender: No OFD packet to send [12:57:14]OFD Sender: No OFD packet to send [12:57:19]OFD Sender: No OFD packet to send [12:57:24]OFD Sender: No OFD packet to send [12:57:29]OFD Sender: No OFD packet to send [12:57:34]OFD Sender: No OFD packet to send [12:57:39]OFD Sender: No OFD packet to send [12:57:44]OFD Sender: No OFD packet to send [12:57:49]OFD Sender: No OFD packet to send [12:57:54]OFD Sender: No OFD packet to send [12:57:59]OFD Sender: No OFD packet to send [12:58:04]OFD Sender: No OFD packet to send [12:58:09]OFD Sender: No OFD packet to send [12:58:14]OFD Sender: No OFD packet to send [12:58:19]OFD Sender: No OFD packet to send [12:58:24]OFD Sender: No OFD packet to send [12:58:29]OFD Sender: No OFD packet to send [12:58:34]OFD Sender: No OFD packet to send [12:58:39]OFD Sender: No OFD packet to send [12:58:44]OFD Sender: No OFD packet to send [12:58:49]OFD Sender: No OFD packet to send [12:58:54]OFD Sender: No OFD packet to send [12:58:59]OFD Sender: No OFD packet to send [12:59:02]accept exits with 8 [12:59:02]New connection [12:59:02]New thread 3066977636 created [12:59:02]Thread 3066834276 joined [12:59:02]Waiting for new connection... [12:59:02] Sock 8.Parse request [12:59:02]Sock 8.Check first char [12:59:02]Sock 8.First char is OK [12:59:02]request: POST /json_proto HTTP/1.0 [12:59:02]Method: POST [12:59:02]URL: /json_proto [12:59:02]Method is POST - this is cgi request [12:59:02]url: /json_proto [12:59:02]query_string will be loaded in cgi processing [12:59:02]execute_cgi json_proto POST (null) [12:59:02]execute_cgi path=json_proto method=POST [12:59:02]POST find Content-Length [12:59:02]Host: 172.17.63.3:8080 [12:59:02]Content-Length: 677 [12:59:02]Content-Type: application/json [12:59:02] [12:59:02]POST finish read [12:59:02]Found Content-Length = 677 [12:59:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99397", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "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" ] } } [12:59:02]execute_script... [12:59: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)99397", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "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" ] } } [12:59:02]POST & json_proto [12:59:02]process_json_proto [12:59:02]json parsed OK: [12:59:02]protocol is kg_v1.0 [12:59:02]action value=close_receipt [12:59:02]process_action close_receipt [12:59:02]cmd_close_receipt [12:59:02]MH_GetDate [12:59:02]Write to MH i2c: F0 00 00 01 57 47 [12:59:02]Write i2c OK [12:59:02]MH_I2C_Read... [12:59:02]Read from MH i2c: F0 [12:59:02]MH_I2C_Read... [12:59:02]Read from MH i2c: F0 09 00 [12:59:02]MH_I2C_Read... [12:59:02]Read from MH i2c: F0 09 00 01 57 00 1C 39 1E 67 50 D1 6C 64 1B [12:59:02]GetLastDocTimeStamp 1730033797 [12:59:02]current date 1730033948 [12:59:02]FM_GetShiftState [12:59:02]SAM_PROTO_GetShiftState [12:59:02]wFMCommunicate request_size=4 [12:59:02]MH_SAM_APDU [12:59:02]CAPDU: 80 13 01 00 [12:59:02]Write to MH i2c: E2 08 00 02 57 80 13 01 00 00 00 00 00 D6 [12:59:02]Write i2c OK [12:59:02]MH_I2C_Read... [12:59:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:59:02]Read from MH i2c: E2 [12:59:02]MH_I2C_Read... [12:59:02]Read from MH i2c: E2 0E 00 [12:59:02]MH_I2C_Read... [12:59:02]Read from MH i2c: E2 0E 00 02 57 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 A3 [12:59:02]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [12:59:02]wFMCommunicate OK [12:59:02]SAM_PROTO_GetShiftState done [12:59:02]FM_GetShiftState done [12:59:02]opened in 1729989044 [12:59:02]opened+sec_in_day 1730075444 [12:59:02]quantity*price = 80012 [12:59:02]sum+1 = 80013 [12:59:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 134 27.10.2024 12:59 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156583 ФПД: 269999646675544 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T125908&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156583&fm=269999646675544&tin=02508201610067®Number=0000000000091693&sum=80000 [12:59:03]StoreToDocumentArchive [12:59:03]shift 537 fd 156583 [12:59:03]save to /storage/0537/doc_00156583 [12:59:03]save last doc name /storage/0537/doc_00156583 to /storage/kkm_last_doc_name [12:59:03]save OK [12:59:03]Clear old archive folders... [12:59:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:59:03]tlvbuf is 01857D00 [12:59:03]SAM_PROTO_ClearQueue [12:59:03]wFMCommunicate request_size=4 [12:59:03]MH_SAM_APDU [12:59:03]CAPDU: 80 09 00 00 [12:59:03]Write to MH i2c: E2 08 00 0F 57 80 09 00 00 00 00 00 00 D8 [12:59:03]Write i2c OK [12:59:03]MH_I2C_Read... [12:59:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:59:03]Read from MH i2c: E2 [12:59:03]MH_I2C_Read... [12:59:03]Read from MH i2c: E2 03 00 [12:59:03]MH_I2C_Read... [12:59:03]Read from MH i2c: E2 03 00 0F 57 00 90 00 DA [12:59:03]RAPDU: 90 00 [12:59:03]wFMCommunicate OK [12:59:03]SAM_PROTO_ClearQueue done [12:59:03]KKMCreateOFDPacket [12:59:03]OFDProtocolAddRootSTLVToBuf [12:59:03]FM_MakeSignedData [12:59:03]FM_MakeSignedData [12:59:03]SAM_PROTO_SignData [12:59:03]wFMCommunicate request_size=4 [12:59:03]MH_SAM_APDU [12:59:03]CAPDU: 80 0D 01 02 [12:59:03]Write to MH i2c: E2 08 00 10 57 80 0D 01 02 00 00 00 00 E0 [12:59:03]Write i2c OK [12:59:03]MH_I2C_Read... [12:59:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:59:04]Read from MH i2c: E2 [12:59:04]MH_I2C_Read... [12:59:04]Read from MH i2c: E2 03 00 [12:59:04]MH_I2C_Read... [12:59:04]Read from MH i2c: E2 03 00 10 57 00 90 00 DB [12:59:04]RAPDU: 90 00 [12:59:04]wFMCommunicate OK [12:59:04]wFMCommunicate request_size=255 [12:59:04]MH_SAM_APDU [12:59: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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 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 86 00 00 00 F4 03 04 00 1C 39 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A7 63 02 00 35 04 06 00 F5 [12:59:04]Write to MH i2c: E2 02 01 11 57 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 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 86 00 00 00 F4 03 04 00 1C 39 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A7 63 02 00 35 04 06 00 F5 00 00 DC [12:59:04]Write i2c OK [12:59:04]MH_I2C_Read... [12:59:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:59:04]Read from MH i2c: E2 [12:59:04]MH_I2C_Read... [12:59:04]Read from MH i2c: E2 03 00 [12:59:04]MH_I2C_Read... [12:59:04]Read from MH i2c: E2 03 00 11 57 00 90 00 DC [12:59:04]RAPDU: 90 00 [12:59:04]wFMCommunicate OK [12:59:04]wFMCommunicate request_size=10 [12:59:04]MH_SAM_APDU [12:59:04]CAPDU: 80 0D 02 02 05 90 31 07 92 58 [12:59:04]Write to MH i2c: E2 0D 00 12 57 80 0D 02 02 05 00 90 31 07 92 58 00 00 9F [12:59:04]Write i2c OK [12:59:04]MH_I2C_Read... [12:59:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:59:04]Read from MH i2c: E2 [12:59:04]MH_I2C_Read... [12:59:04]Read from MH i2c: E2 03 00 [12:59:04]MH_I2C_Read... [12:59:04]Read from MH i2c: E2 03 00 12 57 00 90 00 DD [12:59:04]RAPDU: 90 00 [12:59:04]wFMCommunicate OK [12:59:04]wFMCommunicate request_size=4 [12:59:04]MH_SAM_APDU [12:59:04]CAPDU: 80 0D 03 02 [12:59:04]Write to MH i2c: E2 08 00 13 57 80 0D 03 02 00 00 00 00 E5 [12:59:04]Write i2c OK [12:59:04]MH_I2C_Read... [12:59:04]OFD Sender: No OFD packet to send [12:59:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:59:04]Read from MH i2c: E2 [12:59:04]MH_I2C_Read... [12:59:04]Read from MH i2c: E2 0B 00 [12:59:04]MH_I2C_Read... [12:59:04]Read from MH i2c: E2 0B 00 13 57 00 88 C8 10 68 C7 65 F4 E3 90 00 B1 [12:59:04]RAPDU: 88 C8 10 68 C7 65 F4 E3 90 00 [12:59:04]wFMCommunicate OK [12:59:04]SAM_PROTO_SignData done [12:59:04]FM_MakeSignedData done [12:59:04]CreateOFDProtocolMessage [12:59:04]wFMCommunicate request_size=4 [12:59:04]MH_SAM_APDU [12:59:04]CAPDU: 80 11 00 00 [12:59:04]Write to MH i2c: E2 08 00 14 57 80 11 00 00 00 00 00 00 E5 [12:59:04]Write i2c OK [12:59:04]MH_I2C_Read... [12:59:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:59:04]Read from MH i2c: E2 [12:59:04]MH_I2C_Read... [12:59:04]Read from MH i2c: E2 17 00 [12:59:04]MH_I2C_Read... [12:59:04]Read from MH i2c: E2 17 00 14 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 3A [12:59:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:59:04]wFMCommunicate OK [12:59:04]CreateOFDProtocolMessage done [12:59:04]OFDSenderStorePacket 156583 [12:59:04]StoreOFDPacket docnum=156583 [12:59:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 4E F2 07 01 6E 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 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 86 00 00 00 F4 03 04 00 1C 39 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A7 63 02 00 35 04 06 00 F5 90 31 07 92 58 88 C8 10 68 C7 65 F4 E3 [12:59:04]CheckFolder [12:59:04]dirname=/storage/ofd_packets [12:59:04]CheckFolder done [12:59:04]ProducePacketName [12:59:04]name=ofd_packets/00156583 [12:59:04]NVStorageSaveData ofd_packets/00156583 [12:59:04]File name is /storage/ofd_packets/00156583 [12:59:04]Write 301 bytes [12:59:04]NVStorageSaveData done [12:59:04]OFDSenderStorePacket done [12:59:04]KKMCreateOFDPacket done [12:59:04]NVStorageSaveData kkm_last_timestamp [12:59:04]File name is /storage/kkm_last_timestamp [12:59:04]Write 4 bytes [12:59:04]NVStorageSaveData done [12:59:04]ExternCall_PrintAddStr [12:59:04]wPrintStart [12:59:04]Write to MH i2c: 01 00 00 15 57 6C [12:59:04]Write i2c OK [12:59:04]MH_I2C_Read... [12:59:04]Read from MH i2c: 01 [12:59:04]MH_I2C_Read... [12:59:04]Read from MH i2c: 01 07 00 [12:59:04]MH_I2C_Read... [12:59:04]Read from MH i2c: 01 07 00 15 57 00 00 00 00 00 FF 0F 81 [12:59:04]RasterBufferAndPrint [12:59:04]line Счет N : (1)99397 [12:59:04]line ИНН: 02508201610067 [12:59:04]line Контрольно-Кассовый Чек [12:59:04]line ПРОДАЖА [12:59:04]line ТРК (МРК, ГНК) : 21 [12:59:04]line Товар: 2710124130 [12:59:04]line Аи-92-К-5 [12:59:04]line 11.960 * 66.90 [12:59:04]line = 800.12 [12:59:04]line НДС 12% НСП 1% [12:59:04]line > о реализуемом товаре [12:59:04]line ОКРУГЛЕНИЕ: -0.12 [12:59:04]line ИТОГО: 800.00 [12:59:04]line Внесено: 800.00 [12:59:04]line СДАЧА: 0.00 [12:59:04]line НСП 1% : 7.08 [12:59:04]line НДС 12% : 84.97 [12:59:04]line Наличными: 800.00 [12:59:04]line Безнал.: 0.00 [12:59:04]line Место: АЗС № 143 "Партнер Нефть" [12:59:04]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [12:59:04]line СНО: Общий режим [12:59:04]line Чек 134 27.10.2024 12:59 [12:59:04]line Смена: 537 ФФД: 1.0 [12:59:04]line ЗНМ: 0300000096 [12:59:04]line РНМ: 0000000000091693 [12:59:04]line Версия ККМ: 001 [12:59:04]line ФМ: 0000000000871792 [12:59:04]line ФД: 156583 [12:59:04]line ФПД: 269999646675544 [12:59:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T125908&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156583&fm=269999646675544&tin=02508201610067®Number=0000000000091693&sum=80000 [12:59:04]OFD Sender: Processing packet 156583 [packets to send 31, broken 30] [12:59:04]ProducePacketName [12:59:04]name=ofd_packets/00156583 [12:59:04]OFD Sender: To server: pG, [12:59:04]CommunicateWithHost lk.salyk.kg:30040 [12:59:04]ConnectInit lk.salyk.kg [12:59:04]written 0, free lines is 4095 [12:59:04]Connected sock=10 [12:59:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 4E F2 07 01 6E 1F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 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 86 00 00 00 F4 03 04 00 1C 39 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A7 63 02 00 35 04 06 00 F5 90 31 07 92 58 88 C8 10 68 C7 65 F4 E3 [12:59:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 E3 00 47 00 32 CB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A7 63 02 00 F4 03 04 00 8B DE 1D 67 B6 04 01 00 00 8E 9B C7 DE 01 AE C6 CF [12:59:04]CommunicateWithHost err = 0 [12:59:04]CheckOFDResponse [12:59:04]1017 (14) - 77093643461234 [12:59:04]1041 (16) - 0000000000871792 [12:59:04]1040 (4) - 156583 [12:59:04]1012 (4) - 27.10.2024 06:32 [12:59:04]1206 (1) - 0 [12:59:04]OFD Sender: Remove packet 156583 [12:59:04]ProducePacketName [12:59:04]name=ofd_packets/00156583 [12:59:04]NVStorageDeleteData [12:59:04]Write to MH i2c: 01 00 00 40 57 97 [12:59:04]Write i2c OK [12:59:04]MH_I2C_Read... [12:59:04]Read from MH i2c: 01 [12:59:04]MH_I2C_Read... [12:59:04]Read from MH i2c: 01 07 00 [12:59:04]MH_I2C_Read... [12:59:04]Read from MH i2c: 01 07 00 40 57 00 00 00 00 00 E4 0C 8E [12:59:04]RasterBufferAndPrint [12:59:04]line [12:59:04]line [12:59:04]line [12:59:04]line [12:59:04]line [12:59:04]written 0, free lines is 3306 [12:59:04]process_action close_receipt done [12:59:04]requested_data is exist [12:59:04]produce_requested_data [12:59:04]requested_item fm.sn is exist - process it [12:59:04]wFMCommunicate request_size=4 [12:59:04]MH_SAM_APDU [12:59:04]CAPDU: 80 11 00 00 [12:59:04]Write to MH i2c: E2 08 00 47 57 80 11 00 00 00 00 00 00 18 [12:59:04]Write i2c OK [12:59:04]MH_I2C_Read... [12:59:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:59:05]Read from MH i2c: E2 [12:59:05]MH_I2C_Read... [12:59:05]Read from MH i2c: E2 17 00 [12:59:05]MH_I2C_Read... [12:59:05]Read from MH i2c: E2 17 00 47 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 6D [12:59:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [12:59:05]wFMCommunicate OK [12:59:05]requested_item fd.num is exist - process it [12:59:05]SAM_PROTO_GetFieldsCounters [12:59:05]wFMCommunicate request_size=4 [12:59:05]MH_SAM_APDU [12:59:05]CAPDU: 80 13 00 00 [12:59:05]Write to MH i2c: E2 08 00 48 57 80 13 00 00 00 00 00 00 1B [12:59:05]Write i2c OK [12:59:05]MH_I2C_Read... [12:59:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:59:05]Read from MH i2c: E2 [12:59:05]MH_I2C_Read... [12:59:05]Read from MH i2c: E2 62 00 [12:59:05]MH_I2C_Read... [12:59:05]Read from MH i2c: E2 62 00 48 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 A7 63 02 00 0E 04 04 00 19 02 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 FA [12:59:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 A7 63 02 00 0E 04 04 00 19 02 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 [12:59:05]wFMCommunicate OK [12:59:05]SAM_PROTO_GetFieldsCounters done [12:59:05]requested_item shift.num is exist - process it [12:59:05]requested_item shift.opened is exist - process it [12:59:05]req_shift_opened [12:59:05]FM_GetShiftState [12:59:05]SAM_PROTO_GetShiftState [12:59:05]wFMCommunicate request_size=4 [12:59:05]MH_SAM_APDU [12:59:05]CAPDU: 80 13 01 00 [12:59:05]Write to MH i2c: E2 08 00 49 57 80 13 01 00 00 00 00 00 1D [12:59:05]Write i2c OK [12:59:05]MH_I2C_Read... [12:59:05]Read from MH i2c: E2 [12:59:05]MH_I2C_Read... [12:59:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:59:05]Read from MH i2c: E2 0E 00 [12:59:05]MH_I2C_Read... [12:59:05]Read from MH i2c: E2 0E 00 49 57 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 EA [12:59:05]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [12:59:05]wFMCommunicate OK [12:59:05]SAM_PROTO_GetShiftState done [12:59:05]FM_GetShiftState done [12:59:05]req_shift_opened done [12:59:05]requested_item shift.open_date is exist - process it [12:59:05]req_shift_open_date [12:59:05]req_shift_open_date done [12:59:05]produce_requested_data done [12:59:05]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156583,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [12:59:05]process_action_free close_receipt [12:59:05]json_value_free [12:59:05]json_value_free done [12:59:05]process_json_proto returns [12:59:05]Send response to host [12:59:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156583,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [12:59:05]free response buf [12:59:05]execute_script done [12:59:05]execute_script returns [12:59:05]free content buf [12:59:05]Sock 8.Close socket [12:59:05]Sock 8.Thread stoped [12:59:05]OFD Sender: No OFD packet to send [12:59:10]OFD Sender: No OFD packet to send [12:59:15]OFD Sender: No OFD packet to send [12:59:20]OFD Sender: No OFD packet to send [12:59:25]OFD Sender: No OFD packet to send [12:59:30]OFD Sender: No OFD packet to send [12:59:35]OFD Sender: No OFD packet to send [12:59:40]OFD Sender: No OFD packet to send [12:59:45]OFD Sender: No OFD packet to send [12:59:50]OFD Sender: No OFD packet to send [12:59:55]OFD Sender: No OFD packet to send [13:00:00]OFD Sender: No OFD packet to send [13:00:05]OFD Sender: No OFD packet to send [13:00:10]OFD Sender: No OFD packet to send [13:00:15]OFD Sender: No OFD packet to send [13:00:20]OFD Sender: No OFD packet to send [13:00:25]OFD Sender: No OFD packet to send [13:00:30]OFD Sender: No OFD packet to send [13:00:35]OFD Sender: No OFD packet to send [13:00:40]OFD Sender: No OFD packet to send [13:00:45]OFD Sender: No OFD packet to send [13:00:50]OFD Sender: No OFD packet to send [13:00:55]OFD Sender: No OFD packet to send [13:01:00]OFD Sender: No OFD packet to send [13:01:05]OFD Sender: No OFD packet to send [13:01:10]OFD Sender: No OFD packet to send [13:01:15]OFD Sender: No OFD packet to send [13:01:20]OFD Sender: No OFD packet to send [13:01:25]OFD Sender: No OFD packet to send [13:01:30]OFD Sender: No OFD packet to send [13:01:35]OFD Sender: No OFD packet to send [13:01:40]OFD Sender: No OFD packet to send [13:01:45]OFD Sender: No OFD packet to send [13:01:50]OFD Sender: No OFD packet to send [13:01:55]OFD Sender: No OFD packet to send [13:02:00]OFD Sender: No OFD packet to send [13:02:05]OFD Sender: No OFD packet to send [13:02:10]OFD Sender: No OFD packet to send [13:02:15]OFD Sender: No OFD packet to send [13:02:20]OFD Sender: No OFD packet to send [13:02:25]OFD Sender: No OFD packet to send [13:02:30]OFD Sender: No OFD packet to send [13:02:35]OFD Sender: No OFD packet to send [13:02:40]OFD Sender: No OFD packet to send [13:02:45]OFD Sender: No OFD packet to send [13:02:50]OFD Sender: No OFD packet to send [13:02:55]OFD Sender: No OFD packet to send [13:03:00]OFD Sender: No OFD packet to send [13:03:05]OFD Sender: No OFD packet to send [13:03:10]OFD Sender: No OFD packet to send [13:03:15]OFD Sender: No OFD packet to send [13:03:20]OFD Sender: No OFD packet to send [13:03:25]OFD Sender: No OFD packet to send [13:03:30]OFD Sender: No OFD packet to send [13:03:35]OFD Sender: No OFD packet to send [13:03:40]OFD Sender: No OFD packet to send [13:03:45]OFD Sender: No OFD packet to send [13:03:50]OFD Sender: No OFD packet to send [13:03:55]OFD Sender: No OFD packet to send [13:04:00]OFD Sender: No OFD packet to send [13:04:05]OFD Sender: No OFD packet to send [13:04:10]OFD Sender: No OFD packet to send [13:04:15]OFD Sender: No OFD packet to send [13:04:20]OFD Sender: No OFD packet to send [13:04:25]OFD Sender: No OFD packet to send [13:04:30]OFD Sender: No OFD packet to send [13:04:35]OFD Sender: No OFD packet to send [13:04:40]OFD Sender: No OFD packet to send [13:04:45]OFD Sender: No OFD packet to send [13:04:50]OFD Sender: No OFD packet to send [13:04:55]OFD Sender: No OFD packet to send [13:05:00]OFD Sender: No OFD packet to send [13:05:05]OFD Sender: No OFD packet to send [13:05:10]OFD Sender: No OFD packet to send [13:05:15]OFD Sender: No OFD packet to send [13:05:20]OFD Sender: No OFD packet to send [13:05:25]OFD Sender: No OFD packet to send [13:05:30]OFD Sender: No OFD packet to send [13:05:35]OFD Sender: No OFD packet to send [13:05:40]OFD Sender: No OFD packet to send [13:05:45]OFD Sender: No OFD packet to send [13:05:50]OFD Sender: No OFD packet to send [13:05:55]OFD Sender: No OFD packet to send [13:06:00]OFD Sender: No OFD packet to send [13:06:05]OFD Sender: No OFD packet to send [13:06:10]OFD Sender: No OFD packet to send [13:06:15]OFD Sender: No OFD packet to send [13:06:20]OFD Sender: No OFD packet to send [13:06:25]OFD Sender: No OFD packet to send [13:06:30]OFD Sender: No OFD packet to send [13:06:35]OFD Sender: No OFD packet to send [13:06:40]OFD Sender: No OFD packet to send [13:06:45]OFD Sender: No OFD packet to send [13:06:50]OFD Sender: No OFD packet to send [13:06:55]OFD Sender: No OFD packet to send [13:07:00]OFD Sender: No OFD packet to send [13:07:05]OFD Sender: No OFD packet to send [13:07:10]OFD Sender: No OFD packet to send [13:07:15]OFD Sender: No OFD packet to send [13:07:20]OFD Sender: No OFD packet to send [13:07:25]OFD Sender: No OFD packet to send [13:07:30]OFD Sender: No OFD packet to send [13:07:35]OFD Sender: No OFD packet to send [13:07:40]OFD Sender: No OFD packet to send [13:07:45]OFD Sender: No OFD packet to send [13:07:50]OFD Sender: No OFD packet to send [13:07:55]OFD Sender: No OFD packet to send [13:08:00]OFD Sender: No OFD packet to send [13:08:05]OFD Sender: No OFD packet to send [13:08:10]OFD Sender: No OFD packet to send [13:08:15]OFD Sender: No OFD packet to send [13:08:20]OFD Sender: No OFD packet to send [13:08:24]accept exits with 9 [13:08:24]New connection [13:08:24]New thread 3066834276 created [13:08:24]Thread 3066977636 joined [13:08:24]Waiting for new connection... [13:08:24] Sock 9.Parse request [13:08:24]Sock 9.Check first char [13:08:24]Sock 9.First char is OK [13:08:24]request: POST /json_proto HTTP/1.0 [13:08:24]Method: POST [13:08:24]URL: /json_proto [13:08:24]Method is POST - this is cgi request [13:08:24]url: /json_proto [13:08:24]query_string will be loaded in cgi processing [13:08:24]execute_cgi json_proto POST (null) [13:08:24]execute_cgi path=json_proto method=POST [13:08:24]POST find Content-Length [13:08:24]Host: 172.17.63.3:8080 [13:08:24]Content-Length: 676 [13:08:24]Content-Type: application/json [13:08:24] [13:08:24]POST finish read [13:08:24]Found Content-Length = 676 [13:08:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99398", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:08:24]execute_script... [13:08: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)99398", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:08:24]POST & json_proto [13:08:24]process_json_proto [13:08:24]json parsed OK: [13:08:24]protocol is kg_v1.0 [13:08:24]action value=close_receipt [13:08:24]process_action close_receipt [13:08:24]cmd_close_receipt [13:08:24]MH_GetDate [13:08:24]Write to MH i2c: F0 00 00 4A 57 90 [13:08:24]Write i2c OK [13:08:24]MH_I2C_Read... [13:08:24]Read from MH i2c: F0 [13:08:24]MH_I2C_Read... [13:08:24]Read from MH i2c: F0 09 00 [13:08:24]MH_I2C_Read... [13:08:24]Read from MH i2c: F0 09 00 4A 57 00 4E 3B 1E 67 50 D1 6C 64 98 [13:08:24]GetLastDocTimeStamp 1730033948 [13:08:24]current date 1730034510 [13:08:24]FM_GetShiftState [13:08:24]SAM_PROTO_GetShiftState [13:08:24]wFMCommunicate request_size=4 [13:08:24]MH_SAM_APDU [13:08:24]CAPDU: 80 13 01 00 [13:08:24]Write to MH i2c: E2 08 00 4B 57 80 13 01 00 00 00 00 00 1F [13:08:24]Write i2c OK [13:08:24]MH_I2C_Read... [13:08:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:08:24]Read from MH i2c: E2 [13:08:24]MH_I2C_Read... [13:08:24]Read from MH i2c: E2 0E 00 [13:08:24]MH_I2C_Read... [13:08:24]Read from MH i2c: E2 0E 00 4B 57 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 EC [13:08:24]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [13:08:24]wFMCommunicate OK [13:08:24]SAM_PROTO_GetShiftState done [13:08:24]FM_GetShiftState done [13:08:24]opened in 1729989044 [13:08:24]opened+sec_in_day 1730075444 [13:08:24]quantity*price = 50041 [13:08:24]sum+1 = 50042 [13:08:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 135 27.10.2024 13:08 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156584 ФПД: 100775131446268 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T130830&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156584&fm=100775131446268&tin=02508201610067®Number=0000000000091693&sum=50000 [13:08:26]StoreToDocumentArchive [13:08:26]shift 537 fd 156584 [13:08:26]save to /storage/0537/doc_00156584 [13:08:26]save last doc name /storage/0537/doc_00156584 to /storage/kkm_last_doc_name [13:08:26]save OK [13:08:26]Clear old archive folders... [13:08:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:08:26]tlvbuf is 016F8240 [13:08:26]SAM_PROTO_ClearQueue [13:08:26]wFMCommunicate request_size=4 [13:08:26]MH_SAM_APDU [13:08:26]CAPDU: 80 09 00 00 [13:08:26]Write to MH i2c: E2 08 00 58 57 80 09 00 00 00 00 00 00 21 [13:08:26]Write i2c OK [13:08:26]MH_I2C_Read... [13:08:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:08:26]Read from MH i2c: E2 [13:08:26]MH_I2C_Read... [13:08:26]Read from MH i2c: E2 03 00 [13:08:26]MH_I2C_Read... [13:08:26]Read from MH i2c: E2 03 00 58 57 00 90 00 23 [13:08:26]RAPDU: 90 00 [13:08:26]wFMCommunicate OK [13:08:26]SAM_PROTO_ClearQueue done [13:08:26]KKMCreateOFDPacket [13:08:26]OFDProtocolAddRootSTLVToBuf [13:08:26]FM_MakeSignedData [13:08:26]FM_MakeSignedData [13:08:26]SAM_PROTO_SignData [13:08:26]wFMCommunicate request_size=4 [13:08:26]MH_SAM_APDU [13:08:26]CAPDU: 80 0D 01 02 [13:08:26]Write to MH i2c: E2 08 00 59 57 80 0D 01 02 00 00 00 00 29 [13:08:26]Write i2c OK [13:08:26]MH_I2C_Read... [13:08:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:08:26]Read from MH i2c: E2 [13:08:26]MH_I2C_Read... [13:08:26]Read from MH i2c: E2 03 00 [13:08:26]MH_I2C_Read... [13:08:26]Read from MH i2c: E2 03 00 59 57 00 90 00 24 [13:08:26]RAPDU: 90 00 [13:08:26]wFMCommunicate OK [13:08:26]wFMCommunicate request_size=255 [13:08:26]MH_SAM_APDU [13:08: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 4E 3B 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A8 63 02 00 35 04 06 00 5B [13:08:26]Write to MH i2c: E2 02 01 5A 57 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 4E 3B 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A8 63 02 00 35 04 06 00 5B 00 00 D5 [13:08:26]Write i2c OK [13:08:26]MH_I2C_Read... [13:08:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:08:26]Read from MH i2c: E2 [13:08:26]MH_I2C_Read... [13:08:26]Read from MH i2c: E2 03 00 [13:08:26]MH_I2C_Read... [13:08:26]Read from MH i2c: E2 03 00 5A 57 00 90 00 25 [13:08:26]RAPDU: 90 00 [13:08:26]wFMCommunicate OK [13:08:26]wFMCommunicate request_size=10 [13:08:26]MH_SAM_APDU [13:08:26]CAPDU: 80 0D 02 02 05 A7 89 E9 7B FC [13:08:26]Write to MH i2c: E2 0D 00 5B 57 80 0D 02 02 05 00 A7 89 E9 7B FC 00 00 C6 [13:08:26]Write i2c OK [13:08:26]MH_I2C_Read... [13:08:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:08:26]Read from MH i2c: E2 [13:08:26]MH_I2C_Read... [13:08:26]Read from MH i2c: E2 03 00 [13:08:26]MH_I2C_Read... [13:08:26]Read from MH i2c: E2 03 00 5B 57 00 90 00 26 [13:08:26]RAPDU: 90 00 [13:08:26]wFMCommunicate OK [13:08:26]wFMCommunicate request_size=4 [13:08:26]MH_SAM_APDU [13:08:26]CAPDU: 80 0D 03 02 [13:08:26]Write to MH i2c: E2 08 00 5C 57 80 0D 03 02 00 00 00 00 2E [13:08:26]Write i2c OK [13:08:26]MH_I2C_Read... [13:08:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:08:26]Read from MH i2c: E2 [13:08:26]MH_I2C_Read... [13:08:26]Read from MH i2c: E2 0B 00 [13:08:26]MH_I2C_Read... [13:08:26]Read from MH i2c: E2 0B 00 5C 57 00 F7 12 FE 10 B8 9D B9 C4 90 00 18 [13:08:26]RAPDU: F7 12 FE 10 B8 9D B9 C4 90 00 [13:08:26]wFMCommunicate OK [13:08:26]SAM_PROTO_SignData done [13:08:26]FM_MakeSignedData done [13:08:26]CreateOFDProtocolMessage [13:08:26]wFMCommunicate request_size=4 [13:08:26]MH_SAM_APDU [13:08:26]CAPDU: 80 11 00 00 [13:08:26]Write to MH i2c: E2 08 00 5D 57 80 11 00 00 00 00 00 00 2E [13:08:26]Write i2c OK [13:08:26]MH_I2C_Read... [13:08:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:08:26]Read from MH i2c: E2 [13:08:26]MH_I2C_Read... [13:08:26]Read from MH i2c: E2 17 00 [13:08:26]MH_I2C_Read... [13:08:26]Read from MH i2c: E2 17 00 5D 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 83 [13:08:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:08:26]wFMCommunicate OK [13:08:26]CreateOFDProtocolMessage done [13:08:26]OFDSenderStorePacket 156584 [13:08:26]StoreOFDPacket docnum=156584 [13:08:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 F2 FC 07 01 13 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 4E 3B 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A8 63 02 00 35 04 06 00 5B A7 89 E9 7B FC F7 12 FE 10 B8 9D B9 C4 [13:08:26]CheckFolder [13:08:26]dirname=/storage/ofd_packets [13:08:26]CheckFolder done [13:08:26]ProducePacketName [13:08:26]name=ofd_packets/00156584 [13:08:26]NVStorageSaveData ofd_packets/00156584 [13:08:26]File name is /storage/ofd_packets/00156584 [13:08:26]Write 301 bytes [13:08:26]NVStorageSaveData done [13:08:26]OFDSenderStorePacket done [13:08:26]KKMCreateOFDPacket done [13:08:26]NVStorageSaveData kkm_last_timestamp [13:08:26]File name is /storage/kkm_last_timestamp [13:08:26]Write 4 bytes [13:08:26]NVStorageSaveData done [13:08:26]ExternCall_PrintAddStr [13:08:26]wPrintStart [13:08:26]Write to MH i2c: 01 00 00 5E 57 B5 [13:08:26]Write i2c OK [13:08:26]MH_I2C_Read... [13:08:26]Read from MH i2c: 01 [13:08:26]MH_I2C_Read... [13:08:26]Read from MH i2c: 01 07 00 [13:08:26]MH_I2C_Read... [13:08:26]Read from MH i2c: 01 07 00 5E 57 00 00 00 00 00 FF 0F CA [13:08:26]RasterBufferAndPrint [13:08:26]line Счет N : (1)99398 [13:08:26]line ИНН: 02508201610067 [13:08:26]line Контрольно-Кассовый Чек [13:08:26]line ПРОДАЖА [13:08:26]line ТРК (МРК, ГНК) : 21 [13:08:26]line Товар: 2710124130 [13:08:26]line Аи-92-К-5 [13:08:26]line 7.480 * 66.90 [13:08:26]line = 500.41 [13:08:26]line НДС 12% НСП 1% [13:08:26]line > о реализуемом товаре [13:08:26]line ОКРУГЛЕНИЕ: -0.41 [13:08:26]line ИТОГО: 500.00 [13:08:26]line Внесено: 500.00 [13:08:26]line СДАЧА: 0.00 [13:08:26]line НСП 1% : 4.43 [13:08:26]line НДС 12% : 53.14 [13:08:26]line Наличными: 500.00 [13:08:26]line Безнал.: 0.00 [13:08:26]line Место: АЗС № 143 "Партнер Нефть" [13:08:26]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [13:08:26]line СНО: Общий режим [13:08:26]line Чек 135 27.10.2024 13:08 [13:08:26]line Смена: 537 ФФД: 1.0 [13:08:26]line ЗНМ: 0300000096 [13:08:26]line РНМ: 0000000000091693 [13:08:26]line Версия ККМ: 001 [13:08:26]line ФМ: 0000000000871792 [13:08:26]line ФД: 156584 [13:08:26]line ФПД: 100775131446268 [13:08:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T130830&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156584&fm=100775131446268&tin=02508201610067®Number=0000000000091693&sum=50000 [13:08:26]OFD Sender: Processing packet 156584 [packets to send 31, broken 30] [13:08:26]ProducePacketName [13:08:26]name=ofd_packets/00156584 [13:08:26]OFD Sender: To server: pG, [13:08:26]CommunicateWithHost lk.salyk.kg:30040 [13:08:26]ConnectInit lk.salyk.kg [13:08:26]written 0, free lines is 4095 [13:08:26]Connected sock=10 [13:08:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 F2 FC 07 01 13 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 4E 3B 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A8 63 02 00 35 04 06 00 5B A7 89 E9 7B FC F7 12 FE 10 B8 9D B9 C4 [13:08:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 41 0B 47 00 B0 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 31 37 39 32 10 04 04 00 A8 63 02 00 F4 03 04 00 BE E0 1D 67 B6 04 01 00 00 44 FE EA 23 9B 05 4E 3B [13:08:27]CommunicateWithHost err = 0 [13:08:27]CheckOFDResponse [13:08:27]1017 (14) - 77093643461234 [13:08:27]1041 (16) - 0000000000871792 [13:08:27]1040 (4) - 156584 [13:08:27]1012 (4) - 27.10.2024 06:42 [13:08:27]1206 (1) - 0 [13:08:27]OFD Sender: Remove packet 156584 [13:08:27]ProducePacketName [13:08:27]name=ofd_packets/00156584 [13:08:27]NVStorageDeleteData [13:08:27]Write to MH i2c: 01 00 00 89 57 E0 [13:08:27]Write i2c OK [13:08:27]MH_I2C_Read... [13:08:27]Read from MH i2c: 01 [13:08:27]MH_I2C_Read... [13:08:27]Read from MH i2c: 01 07 00 [13:08:27]MH_I2C_Read... [13:08:27]Read from MH i2c: 01 07 00 89 57 00 00 00 00 00 D7 0C CA [13:08:27]RasterBufferAndPrint [13:08:27]line [13:08:27]line [13:08:27]line [13:08:27]line [13:08:27]line [13:08:27]written 0, free lines is 3290 [13:08:27]process_action close_receipt done [13:08:27]requested_data is exist [13:08:27]produce_requested_data [13:08:27]requested_item fm.sn is exist - process it [13:08:27]wFMCommunicate request_size=4 [13:08:27]MH_SAM_APDU [13:08:27]CAPDU: 80 11 00 00 [13:08:27]Write to MH i2c: E2 08 00 90 57 80 11 00 00 00 00 00 00 61 [13:08:27]Write i2c OK [13:08:27]MH_I2C_Read... [13:08:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:08:27]Read from MH i2c: E2 [13:08:27]MH_I2C_Read... [13:08:27]Read from MH i2c: E2 17 00 [13:08:27]MH_I2C_Read... [13:08:27]Read from MH i2c: E2 17 00 90 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 B6 [13:08:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:08:27]wFMCommunicate OK [13:08:27]requested_item fd.num is exist - process it [13:08:27]SAM_PROTO_GetFieldsCounters [13:08:27]wFMCommunicate request_size=4 [13:08:27]MH_SAM_APDU [13:08:27]CAPDU: 80 13 00 00 [13:08:27]Write to MH i2c: E2 08 00 91 57 80 13 00 00 00 00 00 00 64 [13:08:27]Write i2c OK [13:08:27]MH_I2C_Read... [13:08:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:08:27]Read from MH i2c: E2 [13:08:27]MH_I2C_Read... [13:08:27]Read from MH i2c: E2 62 00 [13:08:27]MH_I2C_Read... [13:08:27]Read from MH i2c: E2 62 00 91 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 A8 63 02 00 0E 04 04 00 19 02 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 47 [13:08:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 A8 63 02 00 0E 04 04 00 19 02 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 [13:08:27]wFMCommunicate OK [13:08:27]SAM_PROTO_GetFieldsCounters done [13:08:27]requested_item shift.num is exist - process it [13:08:27]requested_item shift.opened is exist - process it [13:08:27]req_shift_opened [13:08:27]FM_GetShiftState [13:08:27]SAM_PROTO_GetShiftState [13:08:27]wFMCommunicate request_size=4 [13:08:27]MH_SAM_APDU [13:08:27]CAPDU: 80 13 01 00 [13:08:27]Write to MH i2c: E2 08 00 92 57 80 13 01 00 00 00 00 00 66 [13:08:27]Write i2c OK [13:08:27]MH_I2C_Read... [13:08:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:08:27]Read from MH i2c: E2 [13:08:27]MH_I2C_Read... [13:08:27]Read from MH i2c: E2 0E 00 [13:08:27]MH_I2C_Read... [13:08:27]Read from MH i2c: E2 0E 00 92 57 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 33 [13:08:27]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [13:08:27]wFMCommunicate OK [13:08:27]SAM_PROTO_GetShiftState done [13:08:27]FM_GetShiftState done [13:08:27]req_shift_opened done [13:08:27]requested_item shift.open_date is exist - process it [13:08:27]req_shift_open_date [13:08:27]req_shift_open_date done [13:08:27]produce_requested_data done [13:08:27]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156584,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [13:08:27]process_action_free close_receipt [13:08:27]json_value_free [13:08:27]json_value_free done [13:08:27]process_json_proto returns [13:08:27]Send response to host [13:08:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156584,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [13:08:27]free response buf [13:08:27]execute_script done [13:08:27]execute_script returns [13:08:27]free content buf [13:08:27]Sock 9.Close socket [13:08:27]Sock 9.Thread stoped [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:11:02]OFD Sender: No OFD packet to send [13:11:07]OFD Sender: No OFD packet to send [13:11:12]OFD Sender: No OFD packet to send [13:11:17]OFD Sender: No OFD packet to send [13:11:22]OFD Sender: No OFD packet to send [13:11:27]OFD Sender: No OFD packet to send [13:11:32]OFD Sender: No OFD packet to send [13:11:37]OFD Sender: No OFD packet to send [13:11:42]OFD Sender: No OFD packet to send [13:11:47]OFD Sender: No OFD packet to send [13:11:52]OFD Sender: No OFD packet to send [13:11:57]OFD Sender: No OFD packet to send [13:12:02]OFD Sender: No OFD packet to send [13:12:07]OFD Sender: No OFD packet to send [13:12:12]OFD Sender: No OFD packet to send [13:12:17]OFD Sender: No OFD packet to send [13:12:22]OFD Sender: No OFD packet to send [13:12:27]OFD Sender: No OFD packet to send [13:12:32]OFD Sender: No OFD packet to send [13:12:37]OFD Sender: No OFD packet to send [13:12:42]OFD Sender: No OFD packet to send [13:12:47]OFD Sender: No OFD packet to send [13:12:52]OFD Sender: No OFD packet to send [13:12:57]OFD Sender: No OFD packet to send [13:13:02]OFD Sender: No OFD packet to send [13:13:07]OFD Sender: No OFD packet to send [13:13:12]OFD Sender: No OFD packet to send [13:13:17]OFD Sender: No OFD packet to send [13:13:22]OFD Sender: No OFD packet to send [13:13:27]OFD Sender: No OFD packet to send [13:13:32]OFD Sender: No OFD packet to send [13:13:37]OFD Sender: No OFD packet to send [13:13:42]OFD Sender: No OFD packet to send [13:13:47]OFD Sender: No OFD packet to send [13:13:52]OFD Sender: No OFD packet to send [13:13:57]OFD Sender: No OFD packet to send [13:14:03]OFD Sender: No OFD packet to send [13:14:08]OFD Sender: No OFD packet to send [13:14:13]OFD Sender: No OFD packet to send [13:14:18]OFD Sender: No OFD packet to send [13:14:23]OFD Sender: No OFD packet to send [13:14:28]OFD Sender: No OFD packet to send [13:14:33]OFD Sender: No OFD packet to send [13:14:38]OFD Sender: No OFD packet to send [13:14:43]OFD Sender: No OFD packet to send [13:14:48]OFD Sender: No OFD packet to send [13:14:53]OFD Sender: No OFD packet to send [13:14:58]OFD Sender: No OFD packet to send [13:15:03]OFD Sender: No OFD packet to send [13:15:08]OFD Sender: No OFD packet to send [13:15:13]OFD Sender: No OFD packet to send [13:15:18]OFD Sender: No OFD packet to send [13:15:23]OFD Sender: No OFD packet to send [13:15:28]OFD Sender: No OFD packet to send [13:15:33]OFD Sender: No OFD packet to send [13:15:38]OFD Sender: No OFD packet to send [13:15:43]OFD Sender: No OFD packet to send [13:15:48]OFD Sender: No OFD packet to send [13:15:53]OFD Sender: No OFD packet to send [13:15:58]OFD Sender: No OFD packet to send [13:16:03]OFD Sender: No OFD packet to send [13:16:08]OFD Sender: No OFD packet to send [13:16:13]OFD Sender: No OFD packet to send [13:16:18]OFD Sender: No OFD packet to send [13:16:23]OFD Sender: No OFD packet to send [13:16:28]OFD Sender: No OFD packet to send [13:16:33]OFD Sender: No OFD packet to send [13:16:38]OFD Sender: No OFD packet to send [13:16:43]OFD Sender: No OFD packet to send [13:16:48]OFD Sender: No OFD packet to send [13:16:53]OFD Sender: No OFD packet to send [13:16:58]OFD Sender: No OFD packet to send [13:17:03]OFD Sender: No OFD packet to send [13:17:08]OFD Sender: No OFD packet to send [13:17:13]OFD Sender: No OFD packet to send [13:17:18]OFD Sender: No OFD packet to send [13:17:23]OFD Sender: No OFD packet to send [13:17:28]OFD Sender: No OFD packet to send [13:17:33]OFD Sender: No OFD packet to send [13:17:38]OFD Sender: No OFD packet to send [13:17:43]OFD Sender: No OFD packet to send [13:17:48]OFD Sender: No OFD packet to send [13:17:53]OFD Sender: No OFD packet to send [13:17:58]OFD Sender: No OFD packet to send [13:18:03]OFD Sender: No OFD packet to send [13:18:08]OFD Sender: No OFD packet to send [13:18:13]OFD Sender: No OFD packet to send [13:18:18]OFD Sender: No OFD packet to send [13:18:23]OFD Sender: No OFD packet to send [13:18:28]OFD Sender: No OFD packet to send [13:18:33]OFD Sender: No OFD packet to send [13:18:38]OFD Sender: No OFD packet to send [13:18:43]OFD Sender: No OFD packet to send [13:18:48]OFD Sender: No OFD packet to send [13:18:53]OFD Sender: No OFD packet to send [13:18:58]OFD Sender: No OFD packet to send [13:19:03]OFD Sender: No OFD packet to send [13:19:08]OFD Sender: No OFD packet to send [13:19:13]OFD Sender: No OFD packet to send [13:19:18]OFD Sender: No OFD packet to send [13:19:23]OFD Sender: No OFD packet to send [13:19:28]OFD Sender: No OFD packet to send [13:19:33]OFD Sender: No OFD packet to send [13:19:38]OFD Sender: No OFD packet to send [13:19:43]OFD Sender: No OFD packet to send [13:19:48]OFD Sender: No OFD packet to send [13:19:53]OFD Sender: No OFD packet to send [13:19:58]OFD Sender: No OFD packet to send [13:20:01]accept exits with 8 [13:20:01]New connection [13:20:01]New thread 3066977636 created [13:20:01]Thread 3066834276 joined [13:20:01]Waiting for new connection... [13:20:01] Sock 8.Parse request [13:20:01]Sock 8.Check first char [13:20:01]Sock 8.First char is OK [13:20:01]request: POST /json_proto HTTP/1.0 [13:20:01]Method: POST [13:20:01]URL: /json_proto [13:20:01]Method is POST - this is cgi request [13:20:01]url: /json_proto [13:20:01]query_string will be loaded in cgi processing [13:20:01]execute_cgi json_proto POST (null) [13:20:01]execute_cgi path=json_proto method=POST [13:20:01]POST find Content-Length [13:20:01]Host: 172.17.63.3:8080 [13:20:01]Content-Length: 681 [13:20:01]Content-Type: application/json [13:20:01] [13:20:01]POST finish read [13:20:01]Found Content-Length = 681 [13:20:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99399", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:20:01]execute_script... [13:20:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99399", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:20:01]POST & json_proto [13:20:01]process_json_proto [13:20:01]json parsed OK: [13:20:01]protocol is kg_v1.0 [13:20:01]action value=close_receipt [13:20:01]process_action close_receipt [13:20:01]cmd_close_receipt [13:20:01]MH_GetDate [13:20:01]Write to MH i2c: F0 00 00 93 57 D9 [13:20:01]Write i2c OK [13:20:01]MH_I2C_Read... [13:20:01]Read from MH i2c: F0 [13:20:01]MH_I2C_Read... [13:20:01]Read from MH i2c: F0 09 00 [13:20:01]MH_I2C_Read... [13:20:01]Read from MH i2c: F0 09 00 93 57 00 07 3E 1E 67 50 D1 6C 64 9D [13:20:01]GetLastDocTimeStamp 1730034510 [13:20:01]current date 1730035207 [13:20:01]FM_GetShiftState [13:20:01]SAM_PROTO_GetShiftState [13:20:01]wFMCommunicate request_size=4 [13:20:01]MH_SAM_APDU [13:20:01]CAPDU: 80 13 01 00 [13:20:01]Write to MH i2c: E2 08 00 94 57 80 13 01 00 00 00 00 00 68 [13:20:01]Write i2c OK [13:20:01]MH_I2C_Read... [13:20:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:20:01]Read from MH i2c: E2 [13:20:01]MH_I2C_Read... [13:20:01]Read from MH i2c: E2 0E 00 [13:20:01]MH_I2C_Read... [13:20:01]Read from MH i2c: E2 0E 00 94 57 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 35 [13:20:01]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [13:20:01]wFMCommunicate OK [13:20:01]SAM_PROTO_GetShiftState done [13:20:01]FM_GetShiftState done [13:20:01]opened in 1729989044 [13:20:01]opened+sec_in_day 1730075444 [13:20:01]quantity*price = 100015 [13:20:01]sum+1 = 100017 [13:20:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 136 27.10.2024 13:20 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156585 ФПД: 135556634465080 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T132007&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156585&fm=135556634465080&tin=02508201610067®Number=0000000000091693&sum=100000 [13:20:02]StoreToDocumentArchive [13:20:02]shift 537 fd 156585 [13:20:02]save to /storage/0537/doc_00156585 [13:20:02]save last doc name /storage/0537/doc_00156585 to /storage/kkm_last_doc_name [13:20:02]save OK [13:20:02]Clear old archive folders... [13:20:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:20:02]tlvbuf is 016E2100 [13:20:02]SAM_PROTO_ClearQueue [13:20:02]wFMCommunicate request_size=4 [13:20:02]MH_SAM_APDU [13:20:02]CAPDU: 80 09 00 00 [13:20:02]Write to MH i2c: E2 08 00 A1 57 80 09 00 00 00 00 00 00 6A [13:20:02]Write i2c OK [13:20:02]MH_I2C_Read... [13:20:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:20:02]Read from MH i2c: E2 [13:20:02]MH_I2C_Read... [13:20:02]Read from MH i2c: E2 03 00 [13:20:02]MH_I2C_Read... [13:20:02]Read from MH i2c: E2 03 00 A1 57 00 90 00 6C [13:20:02]RAPDU: 90 00 [13:20:02]wFMCommunicate OK [13:20:02]SAM_PROTO_ClearQueue done [13:20:02]KKMCreateOFDPacket [13:20:02]OFDProtocolAddRootSTLVToBuf [13:20:02]FM_MakeSignedData [13:20:02]FM_MakeSignedData [13:20:02]SAM_PROTO_SignData [13:20:02]wFMCommunicate request_size=4 [13:20:02]MH_SAM_APDU [13:20:02]CAPDU: 80 0D 01 02 [13:20:02]Write to MH i2c: E2 08 00 A2 57 80 0D 01 02 00 00 00 00 72 [13:20:02]Write i2c OK [13:20:02]MH_I2C_Read... [13:20:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:20:02]Read from MH i2c: E2 [13:20:02]MH_I2C_Read... [13:20:02]Read from MH i2c: E2 03 00 [13:20:02]MH_I2C_Read... [13:20:02]Read from MH i2c: E2 03 00 A2 57 00 90 00 6D [13:20:02]RAPDU: 90 00 [13:20:02]wFMCommunicate OK [13:20:02]wFMCommunicate request_size=255 [13:20:02]MH_SAM_APDU [13:20: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 07 3E 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A9 63 02 00 35 04 06 00 7B [13:20:02]Write to MH i2c: E2 02 01 A3 57 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 07 3E 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A9 63 02 00 35 04 06 00 7B 00 00 F6 [13:20:02]Write i2c OK [13:20:02]MH_I2C_Read... [13:20:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:20:03]Read from MH i2c: E2 [13:20:03]MH_I2C_Read... [13:20:03]Read from MH i2c: E2 03 00 [13:20:03]MH_I2C_Read... [13:20:03]Read from MH i2c: E2 03 00 A3 57 00 90 00 6E [13:20:03]RAPDU: 90 00 [13:20:03]wFMCommunicate OK [13:20:03]wFMCommunicate request_size=10 [13:20:03]MH_SAM_APDU [13:20:03]CAPDU: 80 0D 02 02 05 49 BD 0B 53 38 [13:20:03]Write to MH i2c: E2 0D 00 A4 57 80 0D 02 02 05 00 49 BD 0B 53 38 00 00 1B [13:20:03]Write i2c OK [13:20:03]MH_I2C_Read... [13:20:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:20:03]Read from MH i2c: E2 [13:20:03]MH_I2C_Read... [13:20:03]Read from MH i2c: E2 03 00 [13:20:03]MH_I2C_Read... [13:20:03]Read from MH i2c: E2 03 00 A4 57 00 90 00 6F [13:20:03]RAPDU: 90 00 [13:20:03]wFMCommunicate OK [13:20:03]wFMCommunicate request_size=4 [13:20:03]MH_SAM_APDU [13:20:03]CAPDU: 80 0D 03 02 [13:20:03]Write to MH i2c: E2 08 00 A5 57 80 0D 03 02 00 00 00 00 77 [13:20:03]Write i2c OK [13:20:03]MH_I2C_Read... [13:20:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:20:03]Read from MH i2c: E2 [13:20:03]MH_I2C_Read... [13:20:03]Read from MH i2c: E2 0B 00 [13:20:03]MH_I2C_Read... [13:20:03]Read from MH i2c: E2 0B 00 A5 57 00 BD 9A CF 06 2A 64 07 92 90 00 CB [13:20:03]RAPDU: BD 9A CF 06 2A 64 07 92 90 00 [13:20:03]wFMCommunicate OK [13:20:03]SAM_PROTO_SignData done [13:20:03]FM_MakeSignedData done [13:20:03]CreateOFDProtocolMessage [13:20:03]wFMCommunicate request_size=4 [13:20:03]MH_SAM_APDU [13:20:03]CAPDU: 80 11 00 00 [13:20:03]Write to MH i2c: E2 08 00 A6 57 80 11 00 00 00 00 00 00 77 [13:20:03]Write i2c OK [13:20:03]MH_I2C_Read... [13:20:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:20:03]Read from MH i2c: E2 [13:20:03]MH_I2C_Read... [13:20:03]Read from MH i2c: E2 17 00 [13:20:03]MH_I2C_Read... [13:20:03]Read from MH i2c: E2 17 00 A6 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 CC [13:20:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:20:03]wFMCommunicate OK [13:20:03]CreateOFDProtocolMessage done [13:20:03]OFDSenderStorePacket 156585 [13:20:03]StoreOFDPacket docnum=156585 [13:20:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 EB 02 07 01 51 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 07 3E 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A9 63 02 00 35 04 06 00 7B 49 BD 0B 53 38 BD 9A CF 06 2A 64 07 92 [13:20:03]CheckFolder [13:20:03]dirname=/storage/ofd_packets [13:20:03]CheckFolder done [13:20:03]ProducePacketName [13:20:03]name=ofd_packets/00156585 [13:20:03]NVStorageSaveData ofd_packets/00156585 [13:20:03]File name is /storage/ofd_packets/00156585 [13:20:03]Write 301 bytes [13:20:03]NVStorageSaveData done [13:20:03]OFDSenderStorePacket done [13:20:03]KKMCreateOFDPacket done [13:20:03]NVStorageSaveData kkm_last_timestamp [13:20:03]File name is /storage/kkm_last_timestamp [13:20:03]Write 4 bytes [13:20:03]NVStorageSaveData done [13:20:03]ExternCall_PrintAddStr [13:20:03]wPrintStart [13:20:03]Write to MH i2c: 01 00 00 A7 57 FE [13:20:03]Write i2c OK [13:20:03]MH_I2C_Read... [13:20:03]Read from MH i2c: 01 [13:20:03]MH_I2C_Read... [13:20:03]Read from MH i2c: 01 07 00 [13:20:03]MH_I2C_Read... [13:20:03]Read from MH i2c: 01 07 00 A7 57 00 00 00 00 00 FF 0F 13 [13:20:03]RasterBufferAndPrint [13:20:03]line Счет N : (1)99399 [13:20:03]line ИНН: 02508201610067 [13:20:03]line Контрольно-Кассовый Чек [13:20:03]line ПРОДАЖА [13:20:03]line ТРК (МРК, ГНК) : 21 [13:20:03]line Товар: 2710124130 [13:20:03]line Аи-92-К-5 [13:20:03]line 14.950 * 66.90 [13:20:03]line = 1000.16 [13:20:03]line НДС 12% НСП 1% [13:20:03]line > о реализуемом товаре [13:20:03]line ОКРУГЛЕНИЕ: -0.16 [13:20:03]line ИТОГО: 1000.00 [13:20:03]line Внесено: 1000.00 [13:20:03]line СДАЧА: 0.00 [13:20:03]line НСП 1% : 8.85 [13:20:03]line НДС 12% : 106.21 [13:20:03]line Наличными: 1000.00 [13:20:03]line Безнал.: 0.00 [13:20:03]line Место: АЗС № 143 "Партнер Нефть" [13:20:03]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [13:20:03]line СНО: Общий режим [13:20:03]line Чек 136 27.10.2024 13:20 [13:20:03]line Смена: 537 ФФД: 1.0 [13:20:03]line ЗНМ: 0300000096 [13:20:03]line РНМ: 0000000000091693 [13:20:03]line Версия ККМ: 001 [13:20:03]line ФМ: 0000000000871792 [13:20:03]line ФД: 156585 [13:20:03]line ФПД: 135556634465080 [13:20:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T132007&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156585&fm=135556634465080&tin=02508201610067®Number=0000000000091693&sum=100000 [13:20:03]OFD Sender: Processing packet 156585 [packets to send 31, broken 30] [13:20:03]ProducePacketName [13:20:03]name=ofd_packets/00156585 [13:20:03]OFD Sender: To server: pG, [13:20:03]CommunicateWithHost lk.salyk.kg:30040 [13:20:03]ConnectInit lk.salyk.kg [13:20:03]written 0, free lines is 4095 [13:20:03]Connected sock=10 [13:20:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 EB 02 07 01 51 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 07 3E 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A9 63 02 00 35 04 06 00 7B 49 BD 0B 53 38 BD 9A CF 06 2A 64 07 92 [13:20:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 29 B2 47 00 3D ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 A9 63 02 00 F4 03 04 00 76 E3 1D 67 B6 04 01 00 00 24 F8 0D 1A A1 4C C9 BC [13:20:03]CommunicateWithHost err = 0 [13:20:03]CheckOFDResponse [13:20:03]1017 (14) - 77093643461234 [13:20:03]1041 (16) - 0000000000871792 [13:20:03]1040 (4) - 156585 [13:20:03]1012 (4) - 27.10.2024 06:53 [13:20:03]1206 (1) - 0 [13:20:03]OFD Sender: Remove packet 156585 [13:20:03]ProducePacketName [13:20:03]name=ofd_packets/00156585 [13:20:03]NVStorageDeleteData [13:20:04]Write to MH i2c: 01 00 00 D2 57 29 [13:20:04]Write i2c OK [13:20:04]MH_I2C_Read... [13:20:04]Read from MH i2c: 01 [13:20:04]MH_I2C_Read... [13:20:04]Read from MH i2c: 01 07 00 [13:20:04]MH_I2C_Read... [13:20:04]Read from MH i2c: 01 07 00 D2 57 00 00 00 00 00 D9 0C 15 [13:20:04]RasterBufferAndPrint [13:20:04]line [13:20:04]line [13:20:04]line [13:20:04]line [13:20:04]line [13:20:04]written 0, free lines is 3296 [13:20:04]process_action close_receipt done [13:20:04]requested_data is exist [13:20:04]produce_requested_data [13:20:04]requested_item fm.sn is exist - process it [13:20:04]wFMCommunicate request_size=4 [13:20:04]MH_SAM_APDU [13:20:04]CAPDU: 80 11 00 00 [13:20:04]Write to MH i2c: E2 08 00 D9 57 80 11 00 00 00 00 00 00 AA [13:20:04]Write i2c OK [13:20:04]MH_I2C_Read... [13:20:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:20:04]Read from MH i2c: E2 [13:20:04]MH_I2C_Read... [13:20:04]Read from MH i2c: E2 17 00 [13:20:04]MH_I2C_Read... [13:20:04]Read from MH i2c: E2 17 00 D9 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 FF [13:20:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:20:04]wFMCommunicate OK [13:20:04]requested_item fd.num is exist - process it [13:20:04]SAM_PROTO_GetFieldsCounters [13:20:04]wFMCommunicate request_size=4 [13:20:04]MH_SAM_APDU [13:20:04]CAPDU: 80 13 00 00 [13:20:04]Write to MH i2c: E2 08 00 DA 57 80 13 00 00 00 00 00 00 AD [13:20:04]Write i2c OK [13:20:04]MH_I2C_Read... [13:20:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:20:04]Read from MH i2c: E2 [13:20:04]MH_I2C_Read... [13:20:04]Read from MH i2c: E2 62 00 [13:20:04]MH_I2C_Read... [13:20:04]Read from MH i2c: E2 62 00 DA 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 A9 63 02 00 0E 04 04 00 19 02 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 94 [13:20:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 A9 63 02 00 0E 04 04 00 19 02 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 [13:20:04]wFMCommunicate OK [13:20:04]SAM_PROTO_GetFieldsCounters done [13:20:04]requested_item shift.num is exist - process it [13:20:04]requested_item shift.opened is exist - process it [13:20:04]req_shift_opened [13:20:04]FM_GetShiftState [13:20:04]SAM_PROTO_GetShiftState [13:20:04]wFMCommunicate request_size=4 [13:20:04]MH_SAM_APDU [13:20:04]CAPDU: 80 13 01 00 [13:20:04]Write to MH i2c: E2 08 00 DB 57 80 13 01 00 00 00 00 00 AF [13:20:04]Write i2c OK [13:20:04]MH_I2C_Read... [13:20:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:20:04]Read from MH i2c: E2 [13:20:04]MH_I2C_Read... [13:20:04]Read from MH i2c: E2 0E 00 [13:20:04]MH_I2C_Read... [13:20:04]Read from MH i2c: E2 0E 00 DB 57 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 7C [13:20:04]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [13:20:04]wFMCommunicate OK [13:20:04]SAM_PROTO_GetShiftState done [13:20:04]FM_GetShiftState done [13:20:04]req_shift_opened done [13:20:04]requested_item shift.open_date is exist - process it [13:20:04]req_shift_open_date [13:20:04]req_shift_open_date done [13:20:04]produce_requested_data done [13:20:04]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156585,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [13:20:04]process_action_free close_receipt [13:20:04]json_value_free [13:20:04]json_value_free done [13:20:04]process_json_proto returns [13:20:04]Send response to host [13:20:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156585,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [13:20:04]free response buf [13:20:04]execute_script done [13:20:04]execute_script returns [13:20:04]free content buf [13:20:04]Sock 8.Close socket [13:20:04]Sock 8.Thread stoped [13:20:04]OFD Sender: No OFD packet to send [13:20:09]OFD Sender: No OFD packet to send [13:20:14]OFD Sender: No OFD packet to send [13:20:19]OFD Sender: No OFD packet to send [13:20:24]OFD Sender: No OFD packet to send [13:20:29]OFD Sender: No OFD packet to send [13:20:34]OFD Sender: No OFD packet to send [13:20:39]OFD Sender: No OFD packet to send [13:20:44]OFD Sender: No OFD packet to send [13:20:49]OFD Sender: No OFD packet to send [13:20:54]OFD Sender: No OFD packet to send [13:20:59]OFD Sender: No OFD packet to send [13:21:04]OFD Sender: No OFD packet to send [13:21:09]OFD Sender: No OFD packet to send [13:21:14]OFD Sender: No OFD packet to send [13:21:19]OFD Sender: No OFD packet to send [13:21:24]OFD Sender: No OFD packet to send [13:21:29]OFD Sender: No OFD packet to send [13:21:34]OFD Sender: No OFD packet to send [13:21:39]OFD Sender: No OFD packet to send [13:21:44]OFD Sender: No OFD packet to send [13:21:49]OFD Sender: No OFD packet to send [13:21:54]OFD Sender: No OFD packet to send [13:21:59]OFD Sender: No OFD packet to send [13:22:04]OFD Sender: No OFD packet to send [13:22:09]OFD Sender: No OFD packet to send [13:22:14]OFD Sender: No OFD packet to send [13:22:19]OFD Sender: No OFD packet to send [13:22:24]OFD Sender: No OFD packet to send [13:22:29]OFD Sender: No OFD packet to send [13:22:34]OFD Sender: No OFD packet to send [13:22:39]OFD Sender: No OFD packet to send [13:22:44]OFD Sender: No OFD packet to send [13:22:49]OFD Sender: No OFD packet to send [13:22:54]OFD Sender: No OFD packet to send [13:22:59]OFD Sender: No OFD packet to send [13:23:04]OFD Sender: No OFD packet to send [13:23:09]OFD Sender: No OFD packet to send [13:23:14]OFD Sender: No OFD packet to send [13:23:19]OFD Sender: No OFD packet to send [13:23:24]OFD Sender: No OFD packet to send [13:23:29]OFD Sender: No OFD packet to send [13:23:34]OFD Sender: No OFD packet to send [13:23:39]OFD Sender: No OFD packet to send [13:23:44]OFD Sender: No OFD packet to send [13:23:49]OFD Sender: No OFD packet to send [13:23:54]OFD Sender: No OFD packet to send [13:23:59]OFD Sender: No OFD packet to send [13:24:04]OFD Sender: No OFD packet to send [13:24:09]OFD Sender: No OFD packet to send [13:24:11]accept exits with 9 [13:24:11]New connection [13:24:11]New thread 3066834276 created [13:24:11]Thread 3066977636 joined [13:24:11]Waiting for new connection... [13:24:11] Sock 9.Parse request [13:24:11]Sock 9.Check first char [13:24:11]Sock 9.First char is OK [13:24:11]request: POST /json_proto HTTP/1.0 [13:24:11]Method: POST [13:24:11]URL: /json_proto [13:24:11]Method is POST - this is cgi request [13:24:11]url: /json_proto [13:24:11]query_string will be loaded in cgi processing [13:24:11]execute_cgi json_proto POST (null) [13:24:11]execute_cgi path=json_proto method=POST [13:24:11]POST find Content-Length [13:24:11]Host: 172.17.63.3:8080 [13:24:11]Content-Length: 676 [13:24:11]Content-Type: application/json [13:24:11] [13:24:11]POST finish read [13:24:11]Found Content-Length = 676 [13:24:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99400", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:24:11]execute_script... [13:24: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)99400", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:24:11]POST & json_proto [13:24:11]process_json_proto [13:24:11]json parsed OK: [13:24:11]protocol is kg_v1.0 [13:24:11]action value=close_receipt [13:24:11]process_action close_receipt [13:24:11]cmd_close_receipt [13:24:11]MH_GetDate [13:24:11]Write to MH i2c: F0 00 00 DC 57 22 [13:24:11]Write i2c OK [13:24:11]MH_I2C_Read... [13:24:11]Read from MH i2c: F0 [13:24:11]MH_I2C_Read... [13:24:11]Read from MH i2c: F0 09 00 [13:24:11]MH_I2C_Read... [13:24:11]Read from MH i2c: F0 09 00 DC 57 00 01 3F 1E 67 50 D1 6C 64 E1 [13:24:11]GetLastDocTimeStamp 1730035207 [13:24:11]current date 1730035457 [13:24:11]FM_GetShiftState [13:24:11]SAM_PROTO_GetShiftState [13:24:11]wFMCommunicate request_size=4 [13:24:11]MH_SAM_APDU [13:24:11]CAPDU: 80 13 01 00 [13:24:11]Write to MH i2c: E2 08 00 DD 57 80 13 01 00 00 00 00 00 B1 [13:24:11]Write i2c OK [13:24:11]MH_I2C_Read... [13:24:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:24:11]Read from MH i2c: E2 [13:24:11]MH_I2C_Read... [13:24:11]Read from MH i2c: E2 0E 00 [13:24:11]MH_I2C_Read... [13:24:11]Read from MH i2c: E2 0E 00 DD 57 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 7E [13:24:11]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [13:24:11]wFMCommunicate OK [13:24:11]SAM_PROTO_GetShiftState done [13:24:11]FM_GetShiftState done [13:24:11]opened in 1729989044 [13:24:11]opened+sec_in_day 1730075444 [13:24:11]quantity*price = 50041 [13:24:11]sum+1 = 50042 [13:24:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 137 27.10.2024 13:24 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156586 ФПД: 216136992718419 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T132417&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156586&fm=216136992718419&tin=02508201610067®Number=0000000000091693&sum=50000 [13:24:12]StoreToDocumentArchive [13:24:12]shift 537 fd 156586 [13:24:12]save to /storage/0537/doc_00156586 [13:24:12]save last doc name /storage/0537/doc_00156586 to /storage/kkm_last_doc_name [13:24:12]save OK [13:24:12]Clear old archive folders... [13:24:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:24:12]tlvbuf is 0179AB60 [13:24:12]SAM_PROTO_ClearQueue [13:24:12]wFMCommunicate request_size=4 [13:24:12]MH_SAM_APDU [13:24:12]CAPDU: 80 09 00 00 [13:24:12]Write to MH i2c: E2 08 00 EA 57 80 09 00 00 00 00 00 00 B3 [13:24:12]Write i2c OK [13:24:12]MH_I2C_Read... [13:24:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:24:12]Read from MH i2c: E2 [13:24:12]MH_I2C_Read... [13:24:12]Read from MH i2c: E2 03 00 [13:24:12]MH_I2C_Read... [13:24:12]Read from MH i2c: E2 03 00 EA 57 00 90 00 B5 [13:24:12]RAPDU: 90 00 [13:24:12]wFMCommunicate OK [13:24:12]SAM_PROTO_ClearQueue done [13:24:12]KKMCreateOFDPacket [13:24:12]OFDProtocolAddRootSTLVToBuf [13:24:12]FM_MakeSignedData [13:24:12]FM_MakeSignedData [13:24:12]SAM_PROTO_SignData [13:24:12]wFMCommunicate request_size=4 [13:24:12]MH_SAM_APDU [13:24:12]CAPDU: 80 0D 01 02 [13:24:12]Write to MH i2c: E2 08 00 EB 57 80 0D 01 02 00 00 00 00 BB [13:24:12]Write i2c OK [13:24:12]MH_I2C_Read... [13:24:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:24:12]Read from MH i2c: E2 [13:24:12]MH_I2C_Read... [13:24:12]Read from MH i2c: E2 03 00 [13:24:12]MH_I2C_Read... [13:24:12]Read from MH i2c: E2 03 00 EB 57 00 90 00 B6 [13:24:12]RAPDU: 90 00 [13:24:12]wFMCommunicate OK [13:24:12]wFMCommunicate request_size=255 [13:24:12]MH_SAM_APDU [13:24: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 01 3F 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AA 63 02 00 35 04 06 00 C4 [13:24:12]Write to MH i2c: E2 02 01 EC 57 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 01 3F 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AA 63 02 00 35 04 06 00 C4 00 00 8B [13:24:12]Write i2c OK [13:24:12]MH_I2C_Read... [13:24:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:24:13]Read from MH i2c: E2 [13:24:13]MH_I2C_Read... [13:24:13]Read from MH i2c: E2 03 00 [13:24:13]MH_I2C_Read... [13:24:13]Read from MH i2c: E2 03 00 EC 57 00 90 00 B7 [13:24:13]RAPDU: 90 00 [13:24:13]wFMCommunicate OK [13:24:13]wFMCommunicate request_size=10 [13:24:13]MH_SAM_APDU [13:24:13]CAPDU: 80 0D 02 02 05 93 50 AC 7E 53 [13:24:13]Write to MH i2c: E2 0D 00 ED 57 80 0D 02 02 05 00 93 50 AC 7E 53 00 00 28 [13:24:13]Write i2c OK [13:24:13]MH_I2C_Read... [13:24:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:24:13]Read from MH i2c: E2 [13:24:13]MH_I2C_Read... [13:24:13]Read from MH i2c: E2 03 00 [13:24:13]MH_I2C_Read... [13:24:13]Read from MH i2c: E2 03 00 ED 57 00 90 00 B8 [13:24:13]RAPDU: 90 00 [13:24:13]wFMCommunicate OK [13:24:13]wFMCommunicate request_size=4 [13:24:13]MH_SAM_APDU [13:24:13]CAPDU: 80 0D 03 02 [13:24:13]Write to MH i2c: E2 08 00 EE 57 80 0D 03 02 00 00 00 00 C0 [13:24:13]Write i2c OK [13:24:13]MH_I2C_Read... [13:24:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:24:13]Read from MH i2c: E2 [13:24:13]MH_I2C_Read... [13:24:13]Read from MH i2c: E2 0B 00 [13:24:13]MH_I2C_Read... [13:24:13]Read from MH i2c: E2 0B 00 EE 57 00 3F 78 C6 45 E2 1E 92 AF 90 00 C4 [13:24:13]RAPDU: 3F 78 C6 45 E2 1E 92 AF 90 00 [13:24:13]wFMCommunicate OK [13:24:13]SAM_PROTO_SignData done [13:24:13]FM_MakeSignedData done [13:24:13]CreateOFDProtocolMessage [13:24:13]wFMCommunicate request_size=4 [13:24:13]MH_SAM_APDU [13:24:13]CAPDU: 80 11 00 00 [13:24:13]Write to MH i2c: E2 08 00 EF 57 80 11 00 00 00 00 00 00 C0 [13:24:13]Write i2c OK [13:24:13]MH_I2C_Read... [13:24:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:24:13]Read from MH i2c: E2 [13:24:13]MH_I2C_Read... [13:24:13]Read from MH i2c: E2 17 00 [13:24:13]MH_I2C_Read... [13:24:13]Read from MH i2c: E2 17 00 EF 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 15 [13:24:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:24:13]wFMCommunicate OK [13:24:13]CreateOFDProtocolMessage done [13:24:13]OFDSenderStorePacket 156586 [13:24:13]StoreOFDPacket docnum=156586 [13:24:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 21 92 07 01 8A F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 01 3F 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AA 63 02 00 35 04 06 00 C4 93 50 AC 7E 53 3F 78 C6 45 E2 1E 92 AF [13:24:13]CheckFolder [13:24:13]dirname=/storage/ofd_packets [13:24:13]CheckFolder done [13:24:13]ProducePacketName [13:24:13]name=ofd_packets/00156586 [13:24:13]NVStorageSaveData ofd_packets/00156586 [13:24:13]File name is /storage/ofd_packets/00156586 [13:24:13]Write 301 bytes [13:24:13]NVStorageSaveData done [13:24:13]OFDSenderStorePacket done [13:24:13]KKMCreateOFDPacket done [13:24:13]NVStorageSaveData kkm_last_timestamp [13:24:13]File name is /storage/kkm_last_timestamp [13:24:13]Write 4 bytes [13:24:13]NVStorageSaveData done [13:24:13]ExternCall_PrintAddStr [13:24:13]wPrintStart [13:24:13]Write to MH i2c: 01 00 00 F0 57 47 [13:24:13]Write i2c OK [13:24:13]MH_I2C_Read... [13:24:13]Read from MH i2c: 01 [13:24:13]MH_I2C_Read... [13:24:13]Read from MH i2c: 01 07 00 [13:24:13]MH_I2C_Read... [13:24:13]Read from MH i2c: 01 07 00 F0 57 00 00 00 00 00 FF 0F 5C [13:24:13]RasterBufferAndPrint [13:24:13]line Счет N : (1)99400 [13:24:13]line ИНН: 02508201610067 [13:24:13]line Контрольно-Кассовый Чек [13:24:13]line ПРОДАЖА [13:24:13]line ТРК (МРК, ГНК) : 31 [13:24:13]line Товар: 2710124130 [13:24:13]line Аи-92-К-5 [13:24:13]line 7.480 * 66.90 [13:24:13]line = 500.41 [13:24:13]line НДС 12% НСП 1% [13:24:13]line > о реализуемом товаре [13:24:13]line ОКРУГЛЕНИЕ: -0.41 [13:24:13]line ИТОГО: 500.00 [13:24:13]line Внесено: 500.00 [13:24:13]line СДАЧА: 0.00 [13:24:13]line НСП 1% : 4.43 [13:24:13]line НДС 12% : 53.14 [13:24:13]line Наличными: 500.00 [13:24:13]line Безнал.: 0.00 [13:24:13]line Место: АЗС № 143 "Партнер Нефть" [13:24:13]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [13:24:13]line СНО: Общий режим [13:24:13]line Чек 137 27.10.2024 13:24 [13:24:13]line Смена: 537 ФФД: 1.0 [13:24:13]line ЗНМ: 0300000096 [13:24:13]line РНМ: 0000000000091693 [13:24:13]line Версия ККМ: 001 [13:24:13]line ФМ: 0000000000871792 [13:24:13]line ФД: 156586 [13:24:13]line ФПД: 216136992718419 [13:24:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T132417&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156586&fm=216136992718419&tin=02508201610067®Number=0000000000091693&sum=50000 [13:24:13]OFD Sender: Processing packet 156586 [packets to send 31, broken 30] [13:24:13]ProducePacketName [13:24:13]name=ofd_packets/00156586 [13:24:13]OFD Sender: To server: pG, [13:24:13]CommunicateWithHost lk.salyk.kg:30040 [13:24:13]ConnectInit lk.salyk.kg [13:24:13]written 0, free lines is 4095 [13:24:13]Connected sock=10 [13:24:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 21 92 07 01 8A F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 01 3F 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AA 63 02 00 35 04 06 00 C4 93 50 AC 7E 53 3F 78 C6 45 E2 1E 92 AF [13:24:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 77 C1 47 00 80 9D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AA 63 02 00 F4 03 04 00 71 E4 1D 67 B6 04 01 00 00 F1 66 ED 65 2B A6 77 77 [13:24:14]CommunicateWithHost err = 0 [13:24:14]CheckOFDResponse [13:24:14]1017 (14) - 77093643461234 [13:24:14]1041 (16) - 0000000000871792 [13:24:14]1040 (4) - 156586 [13:24:14]1012 (4) - 27.10.2024 06:57 [13:24:14]1206 (1) - 0 [13:24:14]OFD Sender: Remove packet 156586 [13:24:14]ProducePacketName [13:24:14]name=ofd_packets/00156586 [13:24:14]NVStorageDeleteData [13:24:14]Write to MH i2c: 01 00 00 1B 58 73 [13:24:14]Write i2c OK [13:24:14]MH_I2C_Read... [13:24:14]Read from MH i2c: 01 [13:24:14]MH_I2C_Read... [13:24:14]Read from MH i2c: 01 07 00 [13:24:14]MH_I2C_Read... [13:24:14]Read from MH i2c: 01 07 00 1B 58 00 00 00 00 00 DC 0C 62 [13:24:14]RasterBufferAndPrint [13:24:14]line [13:24:14]line [13:24:14]line [13:24:14]line [13:24:14]line [13:24:14]written 0, free lines is 3298 [13:24:14]process_action close_receipt done [13:24:14]requested_data is exist [13:24:14]produce_requested_data [13:24:14]requested_item fm.sn is exist - process it [13:24:14]wFMCommunicate request_size=4 [13:24:14]MH_SAM_APDU [13:24:14]CAPDU: 80 11 00 00 [13:24:14]Write to MH i2c: E2 08 00 22 58 80 11 00 00 00 00 00 00 F4 [13:24:14]Write i2c OK [13:24:14]MH_I2C_Read... [13:24:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:24:14]Read from MH i2c: E2 [13:24:14]MH_I2C_Read... [13:24:14]Read from MH i2c: E2 17 00 [13:24:14]MH_I2C_Read... [13:24:14]Read from MH i2c: E2 17 00 22 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 49 [13:24:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:24:14]wFMCommunicate OK [13:24:14]requested_item fd.num is exist - process it [13:24:14]SAM_PROTO_GetFieldsCounters [13:24:14]wFMCommunicate request_size=4 [13:24:14]MH_SAM_APDU [13:24:14]CAPDU: 80 13 00 00 [13:24:14]Write to MH i2c: E2 08 00 23 58 80 13 00 00 00 00 00 00 F7 [13:24:14]Write i2c OK [13:24:14]MH_I2C_Read... [13:24:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:24:14]Read from MH i2c: E2 [13:24:14]MH_I2C_Read... [13:24:14]Read from MH i2c: E2 62 00 [13:24:14]MH_I2C_Read... [13:24:14]Read from MH i2c: E2 62 00 23 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 AA 63 02 00 0E 04 04 00 19 02 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 E2 [13: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 AA 63 02 00 0E 04 04 00 19 02 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 [13:24:14]wFMCommunicate OK [13:24:14]SAM_PROTO_GetFieldsCounters done [13:24:14]requested_item shift.num is exist - process it [13:24:14]requested_item shift.opened is exist - process it [13:24:14]req_shift_opened [13:24:14]FM_GetShiftState [13:24:14]SAM_PROTO_GetShiftState [13:24:14]wFMCommunicate request_size=4 [13:24:14]MH_SAM_APDU [13:24:14]CAPDU: 80 13 01 00 [13:24:14]Write to MH i2c: E2 08 00 24 58 80 13 01 00 00 00 00 00 F9 [13:24:14]Write i2c OK [13:24:14]MH_I2C_Read... [13:24:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:24:14]Read from MH i2c: E2 [13:24:14]MH_I2C_Read... [13:24:14]Read from MH i2c: E2 0E 00 [13:24:14]MH_I2C_Read... [13:24:14]Read from MH i2c: E2 0E 00 24 58 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 C6 [13:24:14]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [13:24:14]wFMCommunicate OK [13:24:14]SAM_PROTO_GetShiftState done [13:24:14]FM_GetShiftState done [13:24:14]req_shift_opened done [13:24:14]requested_item shift.open_date is exist - process it [13:24:14]req_shift_open_date [13:24:14]req_shift_open_date done [13:24:14]produce_requested_data done [13:24:14]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156586,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [13:24:14]process_action_free close_receipt [13:24:14]json_value_free [13:24:14]json_value_free done [13:24:14]process_json_proto returns [13:24:14]Send response to host [13:24:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156586,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [13:24:14]free response buf [13:24:14]execute_script done [13:24:14]execute_script returns [13:24:14]free content buf [13:24:14]Sock 9.Close socket [13:24:14]Sock 9.Thread stoped [13:24:14]OFD Sender: No OFD packet to send [13:24:19]OFD Sender: No OFD packet to send [13:24:24]OFD Sender: No OFD packet to send [13:24:29]OFD Sender: No OFD packet to send [13:24:34]OFD Sender: No OFD packet to send [13:24:39]OFD Sender: No OFD packet to send [13:24:44]OFD Sender: No OFD packet to send [13:24:49]OFD Sender: No OFD packet to send [13:24:54]OFD Sender: No OFD packet to send [13:24:59]OFD Sender: No OFD packet to send [13:25:04]OFD Sender: No OFD packet to send [13:25:09]OFD Sender: No OFD packet to send [13:25:14]OFD Sender: No OFD packet to send [13:25:19]OFD Sender: No OFD packet to send [13:25:24]OFD Sender: No OFD packet to send [13:25:29]OFD Sender: No OFD packet to send [13:25:34]OFD Sender: No OFD packet to send [13:25:39]OFD Sender: No OFD packet to send [13:25:44]OFD Sender: No OFD packet to send [13:25:49]OFD Sender: No OFD packet to send [13:25:54]OFD Sender: No OFD packet to send [13:25:59]OFD Sender: No OFD packet to send [13:26:04]OFD Sender: No OFD packet to send [13:26:09]OFD Sender: No OFD packet to send [13:26:14]OFD Sender: No OFD packet to send [13:26:19]OFD Sender: No OFD packet to send [13:26:24]OFD Sender: No OFD packet to send [13:26:29]OFD Sender: No OFD packet to send [13:26:34]OFD Sender: No OFD packet to send [13:26:39]OFD Sender: No OFD packet to send [13:26:44]OFD Sender: No OFD packet to send [13:26:49]OFD Sender: No OFD packet to send [13:26:54]OFD Sender: No OFD packet to send [13:26:59]OFD Sender: No OFD packet to send [13:27:04]OFD Sender: No OFD packet to send [13:27:09]OFD Sender: No OFD packet to send [13:27:14]OFD Sender: No OFD packet to send [13:27:19]OFD Sender: No OFD packet to send [13:27:24]OFD Sender: No OFD packet to send [13:27:29]OFD Sender: No OFD packet to send [13:27:34]OFD Sender: No OFD packet to send [13:27:39]OFD Sender: No OFD packet to send [13:27:44]OFD Sender: No OFD packet to send [13:27:49]OFD Sender: No OFD packet to send [13:27:54]OFD Sender: No OFD packet to send [13:27:59]OFD Sender: No OFD packet to send [13:28:04]OFD Sender: No OFD packet to send [13:28:09]OFD Sender: No OFD packet to send [13:28:14]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:44]OFD Sender: No OFD packet to send [13:29:49]OFD Sender: No OFD packet to send [13:29:54]OFD Sender: No OFD packet to send [13:29:59]OFD Sender: No OFD packet to send [13:30:04]OFD Sender: No OFD packet to send [13:37:57]ConnectInit Can't connect to host [13:37:57]OFD Sender: Processing packet 156587 [packets to send 31, broken 30] [13:37:57]ProducePacketName [13:37:57]name=ofd_packets/00156587 [13:37:57]OFD Sender: To server: pG, [13:37:57]CommunicateWithHost lk.salyk.kg:30040 [13:37:57]ConnectInit lk.salyk.kg [13:38:00]Connected sock=8 [13:38:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 59 F8 07 01 76 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 8A 00 00 00 F4 03 04 00 77 40 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AB 63 02 00 35 04 06 00 5D 8D ED A9 30 5B 33 A2 F0 ED DB 8D D6 FD [13:38:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 3B C9 47 00 17 9D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AB 63 02 00 F4 03 04 00 AB E7 1D 67 B6 04 01 00 00 98 AF 8F 62 86 11 71 5F [13:38:00]CommunicateWithHost err = 0 [13:38:00]CheckOFDResponse [13:38:00]1017 (14) - 77093643461234 [13:38:00]1041 (16) - 0000000000871792 [13:38:00]1040 (4) - 156587 [13:38:00]1012 (4) - 27.10.2024 07:11 [13:38:00]1206 (1) - 0 [13:38:00]OFD Sender: Remove packet 156587 [13:38:00]ProducePacketName [13:38:00]name=ofd_packets/00156587 [13:38:00]NVStorageDeleteData [13:38:01]OFD Sender: No OFD packet to send [13:38:06]OFD Sender: No OFD packet to send [13:38:11]OFD Sender: No OFD packet to send [13:38:16]OFD Sender: No OFD packet to send [13:38:21]OFD Sender: No OFD packet to send [13:38:26]OFD Sender: No OFD packet to send [13:38:31]OFD Sender: No OFD packet to send [13:38:36]OFD Sender: No OFD packet to send [13:38:41]OFD Sender: No OFD packet to send [13:38:46]OFD Sender: No OFD packet to send [13:38:51]OFD Sender: No OFD packet to send [13:38:56]OFD Sender: No OFD packet to send [13:39:01]OFD Sender: No OFD packet to send [13:39:06]OFD Sender: No OFD packet to send [13:39:11]OFD Sender: No OFD packet to send [13:39:16]OFD Sender: No OFD packet to send [13:39:21]OFD Sender: No OFD packet to send [13:39:26]OFD Sender: No OFD packet to send [13:39:31]OFD Sender: No OFD packet to send [13:39:36]OFD Sender: No OFD packet to send [13:39:41]OFD Sender: No OFD packet to send [13:39:46]OFD Sender: No OFD packet to send [13:39:51]OFD Sender: No OFD packet to send [13:39:56]OFD Sender: No OFD packet to send [13:40:01]OFD Sender: No OFD packet to send [13:40:03]accept exits with 10 [13:40:03]New connection [13:40:03]New thread 3066834276 created [13:40:03]Thread 3066977636 joined [13:40:03]Waiting for new connection... [13:40:03] Sock 10.Parse request [13:40:03]Sock 10.Check first char [13:40:03]Sock 10.First char is OK [13:40:03]request: POST /json_proto HTTP/1.0 [13:40:03]Method: POST [13:40:03]URL: /json_proto [13:40:03]Method is POST - this is cgi request [13:40:03]url: /json_proto [13:40:03]query_string will be loaded in cgi processing [13:40:03]execute_cgi json_proto POST (null) [13:40:03]execute_cgi path=json_proto method=POST [13:40:03]POST find Content-Length [13:40:03]Host: 172.17.63.3:8080 [13:40:03]Content-Length: 681 [13:40:03]Content-Type: application/json [13:40:03] [13:40:03]POST finish read [13:40:03]Found Content-Length = 681 [13:40:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99402", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "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" ] } } [13:40:03]execute_script... [13:40: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)99402", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "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" ] } } [13:40:03]POST & json_proto [13:40:03]process_json_proto [13:40:03]json parsed OK: [13:40:03]protocol is kg_v1.0 [13:40:03]action value=close_receipt [13:40:03]process_action close_receipt [13:40:03]cmd_close_receipt [13:40:03]MH_GetDate [13:40:03]Write to MH i2c: F0 00 00 6E 58 B5 [13:40:03]Write i2c OK [13:40:03]MH_I2C_Read... [13:40:03]Read from MH i2c: F0 [13:40:03]MH_I2C_Read... [13:40:03]Read from MH i2c: F0 09 00 [13:40:03]MH_I2C_Read... [13:40:03]Read from MH i2c: F0 09 00 6E 58 00 B9 42 1E 67 50 D1 6C 64 2F [13:40:03]GetLastDocTimeStamp 1730035831 [13:40:03]current date 1730036409 [13:40:03]FM_GetShiftState [13:40:03]SAM_PROTO_GetShiftState [13:40:03]wFMCommunicate request_size=4 [13:40:03]MH_SAM_APDU [13:40:03]CAPDU: 80 13 01 00 [13:40:03]Write to MH i2c: E2 08 00 6F 58 80 13 01 00 00 00 00 00 44 [13:40:03]Write i2c OK [13:40:03]MH_I2C_Read... [13:40:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:40:03]Read from MH i2c: E2 [13:40:03]MH_I2C_Read... [13:40:03]Read from MH i2c: E2 0E 00 [13:40:03]MH_I2C_Read... [13:40:03]Read from MH i2c: E2 0E 00 6F 58 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 11 [13:40:03]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [13:40:03]wFMCommunicate OK [13:40:03]SAM_PROTO_GetShiftState done [13:40:03]FM_GetShiftState done [13:40:03]opened in 1729989044 [13:40:03]opened+sec_in_day 1730075444 [13:40:03]quantity*price = 150056 [13:40:03]sum+1 = 150058 [13:40:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 139 27.10.2024 13:40 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156588 ФПД: 135445674627734 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T134009&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156588&fm=135445674627734&tin=02508201610067®Number=0000000000091693&sum=150000 [13:40:04]StoreToDocumentArchive [13:40:04]shift 537 fd 156588 [13:40:04]save to /storage/0537/doc_00156588 [13:40:04]save last doc name /storage/0537/doc_00156588 to /storage/kkm_last_doc_name [13:40:04]save OK [13:40:04]Clear old archive folders... [13:40:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:40:04]tlvbuf is 016B4010 [13:40:04]SAM_PROTO_ClearQueue [13:40:04]wFMCommunicate request_size=4 [13:40:04]MH_SAM_APDU [13:40:04]CAPDU: 80 09 00 00 [13:40:04]Write to MH i2c: E2 08 00 7C 58 80 09 00 00 00 00 00 00 46 [13:40:04]Write i2c OK [13:40:04]MH_I2C_Read... [13:40:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:40:04]Read from MH i2c: E2 [13:40:04]MH_I2C_Read... [13:40:04]Read from MH i2c: E2 03 00 [13:40:04]MH_I2C_Read... [13:40:04]Read from MH i2c: E2 03 00 7C 58 00 90 00 48 [13:40:04]RAPDU: 90 00 [13:40:04]wFMCommunicate OK [13:40:04]SAM_PROTO_ClearQueue done [13:40:04]KKMCreateOFDPacket [13:40:04]OFDProtocolAddRootSTLVToBuf [13:40:04]FM_MakeSignedData [13:40:04]FM_MakeSignedData [13:40:04]SAM_PROTO_SignData [13:40:04]wFMCommunicate request_size=4 [13:40:04]MH_SAM_APDU [13:40:04]CAPDU: 80 0D 01 02 [13:40:04]Write to MH i2c: E2 08 00 7D 58 80 0D 01 02 00 00 00 00 4E [13:40:04]Write i2c OK [13:40:04]MH_I2C_Read... [13:40:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:40:04]Read from MH i2c: E2 [13:40:04]MH_I2C_Read... [13:40:04]Read from MH i2c: E2 03 00 [13:40:04]MH_I2C_Read... [13:40:04]Read from MH i2c: E2 03 00 7D 58 00 90 00 49 [13:40:04]RAPDU: 90 00 [13:40:04]wFMCommunicate OK [13:40:04]wFMCommunicate request_size=255 [13:40:04]MH_SAM_APDU [13:40: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 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 B9 42 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AC 63 02 00 35 04 06 00 7B [13:40:04]Write to MH i2c: E2 02 01 7E 58 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 B9 42 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AC 63 02 00 35 04 06 00 7B 00 00 DD [13:40:04]Write i2c OK [13:40:04]MH_I2C_Read... [13:40:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:40:05]Read from MH i2c: E2 [13:40:05]MH_I2C_Read... [13:40:05]Read from MH i2c: E2 03 00 [13:40:05]MH_I2C_Read... [13:40:05]Read from MH i2c: E2 03 00 7E 58 00 90 00 4A [13:40:05]RAPDU: 90 00 [13:40:05]wFMCommunicate OK [13:40:05]wFMCommunicate request_size=10 [13:40:05]MH_SAM_APDU [13:40:05]CAPDU: 80 0D 02 02 05 2F E7 52 92 96 [13:40:05]Write to MH i2c: E2 0D 00 7F 58 80 0D 02 02 05 00 2F E7 52 92 96 00 00 EB [13:40:05]Write i2c OK [13:40:05]MH_I2C_Read... [13:40:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:40:05]Read from MH i2c: E2 [13:40:05]MH_I2C_Read... [13:40:05]Read from MH i2c: E2 03 00 [13:40:05]MH_I2C_Read... [13:40:05]Read from MH i2c: E2 03 00 7F 58 00 90 00 4B [13:40:05]RAPDU: 90 00 [13:40:05]wFMCommunicate OK [13:40:05]wFMCommunicate request_size=4 [13:40:05]MH_SAM_APDU [13:40:05]CAPDU: 80 0D 03 02 [13:40:05]Write to MH i2c: E2 08 00 80 58 80 0D 03 02 00 00 00 00 53 [13:40:05]Write i2c OK [13:40:05]MH_I2C_Read... [13:40:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:40:05]Read from MH i2c: E2 [13:40:05]MH_I2C_Read... [13:40:05]Read from MH i2c: E2 0B 00 [13:40:05]MH_I2C_Read... [13:40:05]Read from MH i2c: E2 0B 00 80 58 00 E0 2F 91 2E 40 25 72 87 90 00 80 [13:40:05]RAPDU: E0 2F 91 2E 40 25 72 87 90 00 [13:40:05]wFMCommunicate OK [13:40:05]SAM_PROTO_SignData done [13:40:05]FM_MakeSignedData done [13:40:05]CreateOFDProtocolMessage [13:40:05]wFMCommunicate request_size=4 [13:40:05]MH_SAM_APDU [13:40:05]CAPDU: 80 11 00 00 [13:40:05]Write to MH i2c: E2 08 00 81 58 80 11 00 00 00 00 00 00 53 [13:40:05]Write i2c OK [13:40:05]MH_I2C_Read... [13:40:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:40:05]Read from MH i2c: E2 [13:40:05]MH_I2C_Read... [13:40:05]Read from MH i2c: E2 17 00 [13:40:05]MH_I2C_Read... [13:40:05]Read from MH i2c: E2 17 00 81 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 A8 [13:40:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:40:05]wFMCommunicate OK [13:40:05]CreateOFDProtocolMessage done [13:40:05]OFDSenderStorePacket 156588 [13:40:05]StoreOFDPacket docnum=156588 [13:40:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 18 04 07 01 02 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 B9 42 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AC 63 02 00 35 04 06 00 7B 2F E7 52 92 96 E0 2F 91 2E 40 25 72 87 [13:40:05]CheckFolder [13:40:05]dirname=/storage/ofd_packets [13:40:05]CheckFolder done [13:40:05]ProducePacketName [13:40:05]name=ofd_packets/00156588 [13:40:05]NVStorageSaveData ofd_packets/00156588 [13:40:05]File name is /storage/ofd_packets/00156588 [13:40:05]Write 301 bytes [13:40:05]NVStorageSaveData done [13:40:05]OFDSenderStorePacket done [13:40:05]KKMCreateOFDPacket done [13:40:05]NVStorageSaveData kkm_last_timestamp [13:40:05]File name is /storage/kkm_last_timestamp [13:40:05]Write 4 bytes [13:40:05]NVStorageSaveData done [13:40:05]ExternCall_PrintAddStr [13:40:05]wPrintStart [13:40:05]Write to MH i2c: 01 00 00 82 58 DA [13:40:05]Write i2c OK [13:40:05]MH_I2C_Read... [13:40:05]Read from MH i2c: 01 [13:40:05]MH_I2C_Read... [13:40:05]Read from MH i2c: 01 07 00 [13:40:05]MH_I2C_Read... [13:40:05]Read from MH i2c: 01 07 00 82 58 00 00 00 00 00 FF 0F EF [13:40:05]RasterBufferAndPrint [13:40:05]line Счет N : (1)99402 [13:40:05]line ИНН: 02508201610067 [13:40:05]line Контрольно-Кассовый Чек [13:40:05]line ПРОДАЖА [13:40:05]line ТРК (МРК, ГНК) : 21 [13:40:05]line Товар: 2710124130 [13:40:05]line Аи-92-К-5 [13:40:05]line 22.430 * 66.90 [13:40:05]line = 1500.57 [13:40:05]line НДС 12% НСП 1% [13:40:05]line > о реализуемом товаре [13:40:05]line ОКРУГЛЕНИЕ: -0.57 [13:40:05]line ИТОГО: 1500.00 [13:40:05]line Внесено: 1500.00 [13:40:05]line СДАЧА: 0.00 [13:40:05]line НСП 1% : 13.28 [13:40:05]line НДС 12% : 159.35 [13:40:05]line Наличными: 1500.00 [13:40:05]line Безнал.: 0.00 [13:40:05]line Место: АЗС № 143 "Партнер Нефть" [13:40:05]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [13:40:05]line СНО: Общий режим [13:40:05]line Чек 139 27.10.2024 13:40 [13:40:05]line Смена: 537 ФФД: 1.0 [13:40:05]line ЗНМ: 0300000096 [13:40:05]line РНМ: 0000000000091693 [13:40:05]line Версия ККМ: 001 [13:40:05]line ФМ: 0000000000871792 [13:40:05]line ФД: 156588 [13:40:05]line ФПД: 135445674627734 [13:40:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T134009&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156588&fm=135445674627734&tin=02508201610067®Number=0000000000091693&sum=150000 [13:40:05]OFD Sender: Processing packet 156588 [packets to send 31, broken 30] [13:40:05]ProducePacketName [13:40:05]name=ofd_packets/00156588 [13:40:05]OFD Sender: To server: pG, [13:40:05]CommunicateWithHost lk.salyk.kg:30040 [13:40:05]ConnectInit lk.salyk.kg [13:40:05]written 0, free lines is 4095 [13:40:05]Connected sock=9 [13:40:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 18 04 07 01 02 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 B9 42 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AC 63 02 00 35 04 06 00 7B 2F E7 52 92 96 E0 2F 91 2E 40 25 72 87 [13:40:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 B6 90 47 00 39 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 31 37 39 32 10 04 04 00 AC 63 02 00 F4 03 04 00 28 E8 1D 67 B6 04 01 00 00 C1 66 16 3F 0A F6 BA DF [13:40:05]CommunicateWithHost err = 0 [13:40:05]CheckOFDResponse [13:40:05]1017 (14) - 77093643461234 [13:40:05]1041 (16) - 0000000000871792 [13:40:05]1040 (4) - 156588 [13:40:05]1012 (4) - 27.10.2024 07:13 [13:40:05]1206 (1) - 0 [13:40:05]OFD Sender: Remove packet 156588 [13:40:05]ProducePacketName [13:40:05]name=ofd_packets/00156588 [13:40:05]NVStorageDeleteData [13:40:05]Write to MH i2c: 01 00 00 AD 58 05 [13:40:05]Write i2c OK [13:40:05]MH_I2C_Read... [13:40:05]Read from MH i2c: 01 [13:40:05]MH_I2C_Read... [13:40:05]Read from MH i2c: 01 07 00 [13:40:05]MH_I2C_Read... [13:40:05]Read from MH i2c: 01 07 00 AD 58 00 00 00 00 00 DE 0C F6 [13:40:05]RasterBufferAndPrint [13:40:05]line [13:40:05]line [13:40:06]line [13:40:06]line [13:40:06]line [13:40:06]written 0, free lines is 3300 [13:40:06]process_action close_receipt done [13:40:06]requested_data is exist [13:40:06]produce_requested_data [13:40:06]requested_item fm.sn is exist - process it [13:40:06]wFMCommunicate request_size=4 [13:40:06]MH_SAM_APDU [13:40:06]CAPDU: 80 11 00 00 [13:40:06]Write to MH i2c: E2 08 00 B4 58 80 11 00 00 00 00 00 00 86 [13:40:06]Write i2c OK [13:40:06]MH_I2C_Read... [13:40:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:40:06]Read from MH i2c: E2 [13:40:06]MH_I2C_Read... [13:40:06]Read from MH i2c: E2 17 00 [13:40:06]MH_I2C_Read... [13:40:06]Read from MH i2c: E2 17 00 B4 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 DB [13:40:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:40:06]wFMCommunicate OK [13:40:06]requested_item fd.num is exist - process it [13:40:06]SAM_PROTO_GetFieldsCounters [13:40:06]wFMCommunicate request_size=4 [13:40:06]MH_SAM_APDU [13:40:06]CAPDU: 80 13 00 00 [13:40:06]Write to MH i2c: E2 08 00 B5 58 80 13 00 00 00 00 00 00 89 [13:40:06]Write i2c OK [13:40:06]MH_I2C_Read... [13:40:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:40:06]Read from MH i2c: E2 [13:40:06]MH_I2C_Read... [13:40:06]Read from MH i2c: E2 62 00 [13:40:06]MH_I2C_Read... [13:40:06]Read from MH i2c: E2 62 00 B5 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 AC 63 02 00 0E 04 04 00 19 02 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 7C [13:40:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 AC 63 02 00 0E 04 04 00 19 02 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 [13:40:06]wFMCommunicate OK [13:40:06]SAM_PROTO_GetFieldsCounters done [13:40:06]requested_item shift.num is exist - process it [13:40:06]requested_item shift.opened is exist - process it [13:40:06]req_shift_opened [13:40:06]FM_GetShiftState [13:40:06]SAM_PROTO_GetShiftState [13:40:06]wFMCommunicate request_size=4 [13:40:06]MH_SAM_APDU [13:40:06]CAPDU: 80 13 01 00 [13:40:06]Write to MH i2c: E2 08 00 B6 58 80 13 01 00 00 00 00 00 8B [13:40:06]Write i2c OK [13:40:06]MH_I2C_Read... [13:40:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:40:06]Read from MH i2c: E2 [13:40:06]MH_I2C_Read... [13:40:06]Read from MH i2c: E2 0E 00 [13:40:06]MH_I2C_Read... [13:40:06]Read from MH i2c: E2 0E 00 B6 58 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 58 [13:40:06]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [13:40:06]wFMCommunicate OK [13:40:06]SAM_PROTO_GetShiftState done [13:40:06]FM_GetShiftState done [13:40:06]req_shift_opened done [13:40:06]requested_item shift.open_date is exist - process it [13:40:06]req_shift_open_date [13:40:06]req_shift_open_date done [13:40:06]produce_requested_data done [13:40:06]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156588,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [13:40:06]process_action_free close_receipt [13:40:06]json_value_free [13:40:06]json_value_free done [13:40:06]process_json_proto returns [13:40:06]Send response to host [13:40:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156588,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [13:40:06]free response buf [13:40:06]execute_script done [13:40:06]execute_script returns [13:40:06]free content buf [13:40:06]Sock 10.Close socket [13:40:06]Sock 10.Thread stoped [13:40:06]OFD Sender: No OFD packet to send [13:40:11]OFD Sender: No OFD packet to send [13:40:16]OFD Sender: No OFD packet to send [13:40:21]OFD Sender: No OFD packet to send [13:40:26]OFD Sender: No OFD packet to send [13:40:31]OFD Sender: No OFD packet to send [13:40:36]OFD Sender: No OFD packet to send [13:40:41]OFD Sender: No OFD packet to send [13:40:46]OFD Sender: No OFD packet to send [13:40:51]OFD Sender: No OFD packet to send [13:40:56]OFD Sender: No OFD packet to send [13:41:01]OFD Sender: No OFD packet to send [13:41:06]OFD Sender: No OFD packet to send [13:41:11]OFD Sender: No OFD packet to send [13:41:16]OFD Sender: No OFD packet to send [13:41:21]OFD Sender: No OFD packet to send [13:41:26]OFD Sender: No OFD packet to send [13:41:30]accept exits with 8 [13:41:30]New connection [13:41:30]New thread 3066977636 created [13:41:30]Thread 3066834276 joined [13:41:30]Waiting for new connection... [13:41:30] Sock 8.Parse request [13:41:30]Sock 8.Check first char [13:41:30]Sock 8.First char is OK [13:41:30]request: POST /json_proto HTTP/1.0 [13:41:30]Method: POST [13:41:30]URL: /json_proto [13:41:30]Method is POST - this is cgi request [13:41:30]url: /json_proto [13:41:30]query_string will be loaded in cgi processing [13:41:30]execute_cgi json_proto POST (null) [13:41:30]execute_cgi path=json_proto method=POST [13:41:30]POST find Content-Length [13:41:30]Host: 172.17.63.3:8080 [13:41:30]Content-Length: 681 [13:41:30]Content-Type: application/json [13:41:30] [13:41:30]POST finish read [13:41:30]Found Content-Length = 681 [13:41:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99403", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:41:30]execute_script... [13: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)99403", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:41:30]POST & json_proto [13:41:30]process_json_proto [13:41:30]json parsed OK: [13:41:30]protocol is kg_v1.0 [13:41:30]action value=close_receipt [13:41:30]process_action close_receipt [13:41:30]cmd_close_receipt [13:41:30]MH_GetDate [13:41:30]Write to MH i2c: F0 00 00 B7 58 FE [13:41:30]Write i2c OK [13:41:30]MH_I2C_Read... [13:41:30]Read from MH i2c: F0 [13:41:30]MH_I2C_Read... [13:41:30]Read from MH i2c: F0 09 00 [13:41:30]MH_I2C_Read... [13:41:30]Read from MH i2c: F0 09 00 B7 58 00 10 43 1E 67 50 D1 6C 64 D0 [13:41:30]GetLastDocTimeStamp 1730036409 [13:41:30]current date 1730036496 [13:41:30]FM_GetShiftState [13:41:30]SAM_PROTO_GetShiftState [13:41:30]wFMCommunicate request_size=4 [13:41:30]MH_SAM_APDU [13:41:30]CAPDU: 80 13 01 00 [13:41:30]Write to MH i2c: E2 08 00 B8 58 80 13 01 00 00 00 00 00 8D [13:41:30]Write i2c OK [13:41:30]MH_I2C_Read... [13:41:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:41:30]Read from MH i2c: E2 [13:41:30]MH_I2C_Read... [13:41:30]Read from MH i2c: E2 0E 00 [13:41:30]MH_I2C_Read... [13:41:30]Read from MH i2c: E2 0E 00 B8 58 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 5A [13:41:30]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [13:41:30]wFMCommunicate OK [13:41:30]SAM_PROTO_GetShiftState done [13:41:30]FM_GetShiftState done [13:41:30]opened in 1729989044 [13:41:30]opened+sec_in_day 1730075444 [13:41:30]quantity*price = 100015 [13:41:30]sum+1 = 100017 [13:41:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 140 27.10.2024 13:41 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156589 ФПД: 273335659945709 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T134136&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156589&fm=273335659945709&tin=02508201610067®Number=0000000000091693&sum=100000 [13:41:31]StoreToDocumentArchive [13:41:31]shift 537 fd 156589 [13:41:31]save to /storage/0537/doc_00156589 [13:41:31]save last doc name /storage/0537/doc_00156589 to /storage/kkm_last_doc_name [13:41:31]save OK [13:41:31]Clear old archive folders... [13:41:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:41:31]tlvbuf is 0189DB20 [13:41:31]SAM_PROTO_ClearQueue [13:41:31]wFMCommunicate request_size=4 [13:41:31]MH_SAM_APDU [13:41:31]CAPDU: 80 09 00 00 [13:41:31]Write to MH i2c: E2 08 00 C5 58 80 09 00 00 00 00 00 00 8F [13:41:31]Write i2c OK [13:41:31]MH_I2C_Read... [13:41:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:41:31]Read from MH i2c: E2 [13:41:31]MH_I2C_Read... [13:41:31]Read from MH i2c: E2 03 00 [13:41:31]MH_I2C_Read... [13:41:31]Read from MH i2c: E2 03 00 C5 58 00 90 00 91 [13:41:31]RAPDU: 90 00 [13:41:31]wFMCommunicate OK [13:41:31]SAM_PROTO_ClearQueue done [13:41:31]KKMCreateOFDPacket [13:41:31]OFDProtocolAddRootSTLVToBuf [13:41:31]FM_MakeSignedData [13:41:31]FM_MakeSignedData [13:41:31]SAM_PROTO_SignData [13:41:31]wFMCommunicate request_size=4 [13:41:31]MH_SAM_APDU [13:41:31]CAPDU: 80 0D 01 02 [13:41:31]Write to MH i2c: E2 08 00 C6 58 80 0D 01 02 00 00 00 00 97 [13:41:31]Write i2c OK [13:41:31]MH_I2C_Read... [13:41:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:41:31]Read from MH i2c: E2 [13:41:31]MH_I2C_Read... [13:41:31]Read from MH i2c: E2 03 00 [13:41:31]MH_I2C_Read... [13:41:31]Read from MH i2c: E2 03 00 C6 58 00 90 00 92 [13:41:31]RAPDU: 90 00 [13:41:31]wFMCommunicate OK [13:41:31]wFMCommunicate request_size=255 [13:41:31]MH_SAM_APDU [13: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 10 43 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AD 63 02 00 35 04 06 00 F8 [13:41:31]Write to MH i2c: E2 02 01 C7 58 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 10 43 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AD 63 02 00 35 04 06 00 F8 00 00 AE [13:41:31]Write i2c OK [13:41:31]MH_I2C_Read... [13:41:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:41:32]Read from MH i2c: E2 [13:41:32]MH_I2C_Read... [13:41:32]Read from MH i2c: E2 03 00 [13:41:32]MH_I2C_Read... [13:41:32]Read from MH i2c: E2 03 00 C7 58 00 90 00 93 [13:41:32]RAPDU: 90 00 [13:41:32]wFMCommunicate OK [13:41:32]wFMCommunicate request_size=10 [13:41:32]MH_SAM_APDU [13:41:32]CAPDU: 80 0D 02 02 05 98 EA EA 5E ED [13:41:32]Write to MH i2c: E2 0D 00 C8 58 80 0D 02 02 05 00 98 EA EA 5E ED 00 00 5B [13:41:32]Write i2c OK [13:41:32]MH_I2C_Read... [13:41:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:41:32]Read from MH i2c: E2 [13:41:32]MH_I2C_Read... [13:41:32]Read from MH i2c: E2 03 00 [13:41:32]MH_I2C_Read... [13:41:32]Read from MH i2c: E2 03 00 C8 58 00 90 00 94 [13:41:32]RAPDU: 90 00 [13:41:32]wFMCommunicate OK [13:41:32]wFMCommunicate request_size=4 [13:41:32]MH_SAM_APDU [13:41:32]CAPDU: 80 0D 03 02 [13:41:32]Write to MH i2c: E2 08 00 C9 58 80 0D 03 02 00 00 00 00 9C [13:41:32]Write i2c OK [13:41:32]MH_I2C_Read... [13:41:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:41:32]Read from MH i2c: E2 [13:41:32]MH_I2C_Read... [13:41:32]Read from MH i2c: E2 0B 00 [13:41:32]MH_I2C_Read... [13:41:32]Read from MH i2c: E2 0B 00 C9 58 00 B0 69 FB C4 15 59 95 9F 90 00 17 [13:41:32]RAPDU: B0 69 FB C4 15 59 95 9F 90 00 [13:41:32]wFMCommunicate OK [13:41:32]SAM_PROTO_SignData done [13:41:32]FM_MakeSignedData done [13:41:32]CreateOFDProtocolMessage [13:41:32]wFMCommunicate request_size=4 [13:41:32]MH_SAM_APDU [13:41:32]CAPDU: 80 11 00 00 [13:41:32]Write to MH i2c: E2 08 00 CA 58 80 11 00 00 00 00 00 00 9C [13:41:32]Write i2c OK [13:41:32]MH_I2C_Read... [13:41:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:41:32]Read from MH i2c: E2 [13:41:32]MH_I2C_Read... [13:41:32]Read from MH i2c: E2 17 00 [13:41:32]MH_I2C_Read... [13:41:32]Read from MH i2c: E2 17 00 CA 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 F1 [13:41:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:41:32]wFMCommunicate OK [13:41:32]CreateOFDProtocolMessage done [13:41:32]OFDSenderStorePacket 156589 [13:41:32]StoreOFDPacket docnum=156589 [13:41:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 43 AF 07 01 44 92 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 10 43 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AD 63 02 00 35 04 06 00 F8 98 EA EA 5E ED B0 69 FB C4 15 59 95 9F [13:41:32]CheckFolder [13:41:32]dirname=/storage/ofd_packets [13:41:32]CheckFolder done [13:41:32]ProducePacketName [13:41:32]name=ofd_packets/00156589 [13:41:32]NVStorageSaveData ofd_packets/00156589 [13:41:32]File name is /storage/ofd_packets/00156589 [13:41:32]Write 301 bytes [13:41:32]NVStorageSaveData done [13:41:32]OFDSenderStorePacket done [13:41:32]KKMCreateOFDPacket done [13:41:32]NVStorageSaveData kkm_last_timestamp [13:41:32]File name is /storage/kkm_last_timestamp [13:41:32]Write 4 bytes [13:41:32]NVStorageSaveData done [13:41:32]ExternCall_PrintAddStr [13:41:32]wPrintStart [13:41:32]Write to MH i2c: 01 00 00 CB 58 23 [13:41:32]Write i2c OK [13:41:32]MH_I2C_Read... [13:41:32]Read from MH i2c: 01 [13:41:32]MH_I2C_Read... [13:41:32]Read from MH i2c: 01 07 00 [13:41:32]MH_I2C_Read... [13:41:32]Read from MH i2c: 01 07 00 CB 58 00 00 00 00 00 FF 0F 38 [13:41:32]RasterBufferAndPrint [13:41:32]line Счет N : (1)99403 [13:41:32]line ИНН: 02508201610067 [13:41:32]line Контрольно-Кассовый Чек [13:41:32]line ПРОДАЖА [13:41:32]line ТРК (МРК, ГНК) : 21 [13:41:32]line Товар: 2710124130 [13:41:32]line Аи-92-К-5 [13:41:32]line 14.950 * 66.90 [13:41:32]line = 1000.16 [13:41:32]line НДС 12% НСП 1% [13:41:32]line > о реализуемом товаре [13:41:32]line ОКРУГЛЕНИЕ: -0.16 [13:41:32]line ИТОГО: 1000.00 [13:41:32]line Внесено: 1000.00 [13:41:32]line СДАЧА: 0.00 [13:41:32]line НСП 1% : 8.85 [13:41:32]line НДС 12% : 106.21 [13:41:32]line Наличными: 1000.00 [13:41:32]line Безнал.: 0.00 [13:41:32]line Место: АЗС № 143 "Партнер Нефть" [13:41:32]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [13:41:32]line СНО: Общий режим [13:41:32]line Чек 140 27.10.2024 13:41 [13:41:32]line Смена: 537 ФФД: 1.0 [13:41:32]line ЗНМ: 0300000096 [13:41:32]line РНМ: 0000000000091693 [13:41:32]line Версия ККМ: 001 [13:41:32]line ФМ: 0000000000871792 [13:41:32]line ФД: 156589 [13:41:32]line ФПД: 273335659945709 [13:41:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T134136&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156589&fm=273335659945709&tin=02508201610067®Number=0000000000091693&sum=100000 [13:41:32]written 0, free lines is 4095 [13:41:32]OFD Sender: Processing packet 156589 [packets to send 31, broken 30] [13:41:32]ProducePacketName [13:41:32]name=ofd_packets/00156589 [13:41:32]OFD Sender: To server: pG, [13:41:32]CommunicateWithHost lk.salyk.kg:30040 [13:41:32]ConnectInit lk.salyk.kg [13:41:32]Connected sock=10 [13: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 31 37 39 32 0F 01 00 00 43 AF 07 01 44 92 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 10 43 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AD 63 02 00 35 04 06 00 F8 98 EA EA 5E ED B0 69 FB C4 15 59 95 9F [13:41:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 ED 7F 47 00 12 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 31 37 39 32 10 04 04 00 AD 63 02 00 F4 03 04 00 7F E8 1D 67 B6 04 01 00 00 42 D7 9F 81 8E 7B 31 DE [13:41:32]CommunicateWithHost err = 0 [13:41:32]CheckOFDResponse [13:41:32]1017 (14) - 77093643461234 [13:41:32]1041 (16) - 0000000000871792 [13:41:32]1040 (4) - 156589 [13:41:32]1012 (4) - 27.10.2024 07:15 [13:41:32]1206 (1) - 0 [13:41:32]OFD Sender: Remove packet 156589 [13:41:32]ProducePacketName [13:41:32]name=ofd_packets/00156589 [13:41:32]NVStorageDeleteData [13:41:32]Write to MH i2c: 01 00 00 F6 58 4E [13:41:32]Write i2c OK [13:41:32]MH_I2C_Read... [13:41:32]Read from MH i2c: 01 [13:41:32]MH_I2C_Read... [13:41:32]Read from MH i2c: 01 07 00 [13:41:32]MH_I2C_Read... [13:41:32]Read from MH i2c: 01 07 00 F6 58 00 00 00 00 00 D8 0C 39 [13:41:32]RasterBufferAndPrint [13:41:32]line [13:41:32]line [13:41:32]line [13:41:32]line [13:41:32]line [13:41:32]written 0, free lines is 3296 [13:41:32]process_action close_receipt done [13:41:32]requested_data is exist [13:41:32]produce_requested_data [13:41:32]requested_item fm.sn is exist - process it [13:41:32]wFMCommunicate request_size=4 [13:41:32]MH_SAM_APDU [13:41:32]CAPDU: 80 11 00 00 [13:41:32]Write to MH i2c: E2 08 00 FD 58 80 11 00 00 00 00 00 00 CF [13:41:32]Write i2c OK [13:41:32]MH_I2C_Read... [13:41:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:41:32]Read from MH i2c: E2 [13:41:32]MH_I2C_Read... [13:41:32]Read from MH i2c: E2 17 00 [13:41:32]MH_I2C_Read... [13:41:32]Read from MH i2c: E2 17 00 FD 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 24 [13:41:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:41:32]wFMCommunicate OK [13:41:32]requested_item fd.num is exist - process it [13:41:32]SAM_PROTO_GetFieldsCounters [13:41:32]wFMCommunicate request_size=4 [13:41:32]MH_SAM_APDU [13:41:32]CAPDU: 80 13 00 00 [13:41:32]Write to MH i2c: E2 08 00 FE 58 80 13 00 00 00 00 00 00 D2 [13:41:32]Write i2c OK [13:41:32]MH_I2C_Read... [13:41:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:41:32]Read from MH i2c: E2 [13:41:32]MH_I2C_Read... [13:41:32]Read from MH i2c: E2 62 00 [13:41:32]MH_I2C_Read... [13:41:32]Read from MH i2c: E2 62 00 FE 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 AD 63 02 00 0E 04 04 00 19 02 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 C9 [13:41:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 AD 63 02 00 0E 04 04 00 19 02 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 [13:41:32]wFMCommunicate OK [13:41:32]SAM_PROTO_GetFieldsCounters done [13:41:32]requested_item shift.num is exist - process it [13:41:32]requested_item shift.opened is exist - process it [13:41:32]req_shift_opened [13:41:32]FM_GetShiftState [13:41:32]SAM_PROTO_GetShiftState [13:41:32]wFMCommunicate request_size=4 [13:41:32]MH_SAM_APDU [13:41:32]CAPDU: 80 13 01 00 [13:41:32]Write to MH i2c: E2 08 00 FF 58 80 13 01 00 00 00 00 00 D4 [13:41:32]Write i2c OK [13:41:32]MH_I2C_Read... [13:41:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:41:32]Read from MH i2c: E2 [13:41:32]MH_I2C_Read... [13:41:32]Read from MH i2c: E2 0E 00 [13:41:32]MH_I2C_Read... [13:41:32]Read from MH i2c: E2 0E 00 FF 58 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 A1 [13:41:32]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [13:41:32]wFMCommunicate OK [13:41:32]SAM_PROTO_GetShiftState done [13:41:32]FM_GetShiftState done [13:41:32]req_shift_opened done [13:41:32]requested_item shift.open_date is exist - process it [13:41:32]req_shift_open_date [13:41:32]req_shift_open_date done [13:41:32]produce_requested_data done [13:41:32]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156589,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [13:41:32]process_action_free close_receipt [13:41:32]json_value_free [13:41:32]json_value_free done [13:41:32]process_json_proto returns [13:41:32]Send response to host [13:41:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156589,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [13:41:32]free response buf [13:41:32]execute_script done [13:41:32]execute_script returns [13:41:32]free content buf [13:41:32]Sock 8.Close socket [13:41:32]Sock 8.Thread stoped [13:41:33]OFD Sender: No OFD packet to send [13:41:38]OFD Sender: No OFD packet to send [13:41:43]OFD Sender: No OFD packet to send [13:41:48]OFD Sender: No OFD packet to send [13:41:53]OFD Sender: No OFD packet to send [13:41:58]OFD Sender: No OFD packet to send [13:42:03]OFD Sender: No OFD packet to send [13:42:08]OFD Sender: No OFD packet to send [13:42:13]OFD Sender: No OFD packet to send [13:42:18]OFD Sender: No OFD packet to send [13:42:23]OFD Sender: No OFD packet to send [13:42:28]OFD Sender: No OFD packet to send [13:42:33]OFD Sender: No OFD packet to send [13:42:38]OFD Sender: No OFD packet to send [13:42:43]OFD Sender: No OFD packet to send [13:42:48]OFD Sender: No OFD packet to send [13:42:53]OFD Sender: No OFD packet to send [13:42:58]OFD Sender: No OFD packet to send [13:43:03]OFD Sender: No OFD packet to send [13:43:08]OFD Sender: No OFD packet to send [13:43:13]OFD Sender: No OFD packet to send [13:43:18]OFD Sender: No OFD packet to send [13:43:23]OFD Sender: No OFD packet to send [13:43:28]OFD Sender: No OFD packet to send [13:43:33]OFD Sender: No OFD packet to send [13:43:33]accept exits with 9 [13:43:33]New connection [13:43:33]New thread 3066834276 created [13:43:33]Thread 3066977636 joined [13:43:33]Waiting for new connection... [13:43:33] Sock 9.Parse request [13:43:33]Sock 9.Check first char [13:43:33]Sock 9.First char is OK [13:43:33]request: POST /json_proto HTTP/1.0 [13:43:33]Method: POST [13:43:33]URL: /json_proto [13:43:33]Method is POST - this is cgi request [13:43:33]url: /json_proto [13:43:33]query_string will be loaded in cgi processing [13:43:33]execute_cgi json_proto POST (null) [13:43:33]execute_cgi path=json_proto method=POST [13:43:33]POST find Content-Length [13:43:33]Host: 172.17.63.3:8080 [13:43:33]Content-Length: 676 [13:43:33]Content-Type: application/json [13:43:33] [13:43:33]POST finish read [13:43:33]Found Content-Length = 676 [13:43:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99404", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:43:33]execute_script... [13:43: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)99404", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:43:33]POST & json_proto [13:43:33]process_json_proto [13:43:33]json parsed OK: [13:43:33]protocol is kg_v1.0 [13:43:33]action value=close_receipt [13:43:33]process_action close_receipt [13:43:33]cmd_close_receipt [13:43:33]MH_GetDate [13:43:33]Write to MH i2c: F0 00 00 00 59 48 [13:43:33]Write i2c OK [13:43:33]MH_I2C_Read... [13:43:33]Read from MH i2c: F0 [13:43:33]MH_I2C_Read... [13:43:33]Read from MH i2c: F0 09 00 [13:43:33]MH_I2C_Read... [13:43:33]Read from MH i2c: F0 09 00 00 59 00 8B 43 1E 67 50 D1 6C 64 95 [13:43:33]GetLastDocTimeStamp 1730036496 [13:43:33]current date 1730036619 [13:43:33]FM_GetShiftState [13:43:33]SAM_PROTO_GetShiftState [13:43:33]wFMCommunicate request_size=4 [13:43:33]MH_SAM_APDU [13:43:33]CAPDU: 80 13 01 00 [13:43:33]Write to MH i2c: E2 08 00 01 59 80 13 01 00 00 00 00 00 D7 [13:43:33]Write i2c OK [13:43:33]MH_I2C_Read... [13:43:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:43:33]Read from MH i2c: E2 [13:43:33]MH_I2C_Read... [13:43:33]Read from MH i2c: E2 0E 00 [13:43:33]MH_I2C_Read... [13:43:33]Read from MH i2c: E2 0E 00 01 59 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 A4 [13:43:33]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [13:43:33]wFMCommunicate OK [13:43:33]SAM_PROTO_GetShiftState done [13:43:33]FM_GetShiftState done [13:43:33]opened in 1729989044 [13:43:33]opened+sec_in_day 1730075444 [13:43:33]quantity*price = 30038 [13:43:33]sum+1 = 30039 [13:43:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 141 27.10.2024 13:43 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156590 ФПД: 36603687407389 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T134339&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156590&fm=36603687407389&tin=02508201610067®Number=0000000000091693&sum=30000 [13:43:35]StoreToDocumentArchive [13:43:35]shift 537 fd 156590 [13:43:35]save to /storage/0537/doc_00156590 [13:43:35]save last doc name /storage/0537/doc_00156590 to /storage/kkm_last_doc_name [13:43:35]save OK [13:43:35]Clear old archive folders... [13:43:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:43:35]tlvbuf is 0183E4A0 [13:43:35]SAM_PROTO_ClearQueue [13:43:35]wFMCommunicate request_size=4 [13:43:35]MH_SAM_APDU [13:43:35]CAPDU: 80 09 00 00 [13:43:35]Write to MH i2c: E2 08 00 0E 59 80 09 00 00 00 00 00 00 D9 [13:43:35]Write i2c OK [13:43:35]MH_I2C_Read... [13:43:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:43:35]Read from MH i2c: E2 [13:43:35]MH_I2C_Read... [13:43:35]Read from MH i2c: E2 03 00 [13:43:35]MH_I2C_Read... [13:43:35]Read from MH i2c: E2 03 00 0E 59 00 90 00 DB [13:43:35]RAPDU: 90 00 [13:43:35]wFMCommunicate OK [13:43:35]SAM_PROTO_ClearQueue done [13:43:35]KKMCreateOFDPacket [13:43:35]OFDProtocolAddRootSTLVToBuf [13:43:35]FM_MakeSignedData [13:43:35]FM_MakeSignedData [13:43:35]SAM_PROTO_SignData [13:43:35]wFMCommunicate request_size=4 [13:43:35]MH_SAM_APDU [13:43:35]CAPDU: 80 0D 01 02 [13:43:35]Write to MH i2c: E2 08 00 0F 59 80 0D 01 02 00 00 00 00 E1 [13:43:35]Write i2c OK [13:43:35]MH_I2C_Read... [13:43:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:43:35]Read from MH i2c: E2 [13:43:35]MH_I2C_Read... [13:43:35]Read from MH i2c: E2 03 00 [13:43:35]MH_I2C_Read... [13:43:35]Read from MH i2c: E2 03 00 0F 59 00 90 00 DC [13:43:35]RAPDU: 90 00 [13:43:35]wFMCommunicate OK [13:43:35]wFMCommunicate request_size=255 [13:43:35]MH_SAM_APDU [13:43: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 8B 43 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AE 63 02 00 35 04 06 00 21 [13:43:35]Write to MH i2c: E2 02 01 10 59 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 8B 43 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AE 63 02 00 35 04 06 00 21 00 00 98 [13:43:35]Write i2c OK [13:43:35]MH_I2C_Read... [13:43:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:43:35]Read from MH i2c: E2 [13:43:35]MH_I2C_Read... [13:43:35]Read from MH i2c: E2 03 00 [13:43:35]MH_I2C_Read... [13:43:35]Read from MH i2c: E2 03 00 10 59 00 90 00 DD [13:43:35]RAPDU: 90 00 [13:43:35]wFMCommunicate OK [13:43:35]wFMCommunicate request_size=10 [13:43:35]MH_SAM_APDU [13:43:35]CAPDU: 80 0D 02 02 05 4A 75 C9 0F 1D [13:43:35]Write to MH i2c: E2 0D 00 11 59 80 0D 02 02 05 00 4A 75 C9 0F 1D 00 00 A2 [13:43:35]Write i2c OK [13:43:35]MH_I2C_Read... [13:43:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:43:35]Read from MH i2c: E2 [13:43:35]MH_I2C_Read... [13:43:35]Read from MH i2c: E2 03 00 [13:43:35]MH_I2C_Read... [13:43:35]Read from MH i2c: E2 03 00 11 59 00 90 00 DE [13:43:35]RAPDU: 90 00 [13:43:35]wFMCommunicate OK [13:43:35]wFMCommunicate request_size=4 [13:43:35]MH_SAM_APDU [13:43:35]CAPDU: 80 0D 03 02 [13:43:35]Write to MH i2c: E2 08 00 12 59 80 0D 03 02 00 00 00 00 E6 [13:43:35]Write i2c OK [13:43:35]MH_I2C_Read... [13:43:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:43:35]Read from MH i2c: E2 [13:43:35]MH_I2C_Read... [13:43:35]Read from MH i2c: E2 0B 00 [13:43:35]MH_I2C_Read... [13:43:35]Read from MH i2c: E2 0B 00 12 59 00 B1 BC 05 06 55 FF 74 04 90 00 2B [13:43:35]RAPDU: B1 BC 05 06 55 FF 74 04 90 00 [13:43:35]wFMCommunicate OK [13:43:35]SAM_PROTO_SignData done [13:43:35]FM_MakeSignedData done [13:43:35]CreateOFDProtocolMessage [13:43:35]wFMCommunicate request_size=4 [13:43:35]MH_SAM_APDU [13:43:35]CAPDU: 80 11 00 00 [13:43:35]Write to MH i2c: E2 08 00 13 59 80 11 00 00 00 00 00 00 E6 [13:43:35]Write i2c OK [13:43:35]MH_I2C_Read... [13:43:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:43:35]Read from MH i2c: E2 [13:43:35]MH_I2C_Read... [13:43:35]Read from MH i2c: E2 17 00 [13:43:35]MH_I2C_Read... [13:43:35]Read from MH i2c: E2 17 00 13 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 3B [13:43:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:43:35]wFMCommunicate OK [13:43:35]CreateOFDProtocolMessage done [13:43:35]OFDSenderStorePacket 156590 [13:43:35]StoreOFDPacket docnum=156590 [13:43:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 61 84 07 01 B2 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 8B 43 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AE 63 02 00 35 04 06 00 21 4A 75 C9 0F 1D B1 BC 05 06 55 FF 74 04 [13:43:35]CheckFolder [13:43:35]dirname=/storage/ofd_packets [13:43:35]CheckFolder done [13:43:35]ProducePacketName [13:43:35]name=ofd_packets/00156590 [13:43:35]NVStorageSaveData ofd_packets/00156590 [13:43:35]File name is /storage/ofd_packets/00156590 [13:43:35]Write 301 bytes [13:43:35]NVStorageSaveData done [13:43:35]OFDSenderStorePacket done [13:43:35]KKMCreateOFDPacket done [13:43:35]NVStorageSaveData kkm_last_timestamp [13:43:35]File name is /storage/kkm_last_timestamp [13:43:35]Write 4 bytes [13:43:35]NVStorageSaveData done [13:43:35]ExternCall_PrintAddStr [13:43:35]wPrintStart [13:43:35]Write to MH i2c: 01 00 00 14 59 6D [13:43:35]Write i2c OK [13:43:35]MH_I2C_Read... [13:43:35]Read from MH i2c: 01 [13:43:35]MH_I2C_Read... [13:43:35]Read from MH i2c: 01 07 00 [13:43:35]MH_I2C_Read... [13:43:35]Read from MH i2c: 01 07 00 14 59 00 00 00 00 00 FF 0F 82 [13:43:35]RasterBufferAndPrint [13:43:35]line Счет N : (1)99404 [13:43:35]line ИНН: 02508201610067 [13:43:35]line Контрольно-Кассовый Чек [13:43:35]line ПРОДАЖА [13:43:35]line ТРК (МРК, ГНК) : 11 [13:43:35]line Товар: 2710124130 [13:43:35]line Аи-92-К-5 [13:43:35]line 4.490 * 66.90 [13:43:35]line = 300.38 [13:43:35]line НДС 12% НСП 1% [13:43:35]line > о реализуемом товаре [13:43:35]line ОКРУГЛЕНИЕ: -0.38 [13:43:35]line ИТОГО: 300.00 [13:43:35]line Внесено: 300.00 [13:43:35]line СДАЧА: 0.00 [13:43:35]line НСП 1% : 2.66 [13:43:35]line НДС 12% : 31.90 [13:43:35]line Наличными: 300.00 [13:43:35]line Безнал.: 0.00 [13:43:35]line Место: АЗС № 143 "Партнер Нефть" [13:43:35]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [13:43:35]line СНО: Общий режим [13:43:35]line Чек 141 27.10.2024 13:43 [13:43:35]line Смена: 537 ФФД: 1.0 [13:43:35]line ЗНМ: 0300000096 [13:43:35]line РНМ: 0000000000091693 [13:43:35]line Версия ККМ: 001 [13:43:35]line ФМ: 0000000000871792 [13:43:35]line ФД: 156590 [13:43:35]line ФПД: 36603687407389 [13:43:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T134339&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156590&fm=36603687407389&tin=02508201610067®Number=0000000000091693&sum=30000 [13:43:35]OFD Sender: Processing packet 156590 [packets to send 31, broken 30] [13:43:35]ProducePacketName [13:43:35]name=ofd_packets/00156590 [13:43:35]OFD Sender: To server: pG, [13:43:35]CommunicateWithHost lk.salyk.kg:30040 [13:43:35]ConnectInit lk.salyk.kg [13:43:35]written 0, free lines is 4095 [13:43:36]Connected sock=10 [13:43:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 61 84 07 01 B2 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 8B 43 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AE 63 02 00 35 04 06 00 21 4A 75 C9 0F 1D B1 BC 05 06 55 FF 74 04 [13:43:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 0D 5C 47 00 3A AA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AE 63 02 00 F4 03 04 00 FB E8 1D 67 B6 04 01 00 00 AC 44 DD 81 0A C3 70 72 [13:43:36]CommunicateWithHost err = 0 [13:43:36]CheckOFDResponse [13:43:36]1017 (14) - 77093643461234 [13:43:36]1041 (16) - 0000000000871792 [13:43:36]1040 (4) - 156590 [13:43:36]1012 (4) - 27.10.2024 07:17 [13:43:36]1206 (1) - 0 [13:43:36]OFD Sender: Remove packet 156590 [13:43:36]ProducePacketName [13:43:36]name=ofd_packets/00156590 [13:43:36]NVStorageDeleteData [13:43:36]Write to MH i2c: 01 00 00 3F 59 98 [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 59 00 00 00 00 00 D8 0C 83 [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 3295 [13:43:36]process_action close_receipt done [13:43:36]requested_data is exist [13:43:36]produce_requested_data [13:43:36]requested_item fm.sn is exist - process it [13:43:36]wFMCommunicate request_size=4 [13:43:36]MH_SAM_APDU [13:43:36]CAPDU: 80 11 00 00 [13:43:36]Write to MH i2c: E2 08 00 46 59 80 11 00 00 00 00 00 00 19 [13:43:36]Write i2c OK [13:43:36]MH_I2C_Read... [13:43:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:43:36]Read from MH i2c: E2 [13:43:36]MH_I2C_Read... [13:43:36]Read from MH i2c: E2 17 00 [13:43:36]MH_I2C_Read... [13:43:36]Read from MH i2c: E2 17 00 46 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 6E [13:43:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:43:36]wFMCommunicate OK [13:43:36]requested_item fd.num is exist - process it [13:43:36]SAM_PROTO_GetFieldsCounters [13:43:36]wFMCommunicate request_size=4 [13:43:36]MH_SAM_APDU [13:43:36]CAPDU: 80 13 00 00 [13:43:36]Write to MH i2c: E2 08 00 47 59 80 13 00 00 00 00 00 00 1C [13:43:36]Write i2c OK [13:43:36]MH_I2C_Read... [13:43:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:43:36]Read from MH i2c: E2 [13:43:36]MH_I2C_Read... [13:43:36]Read from MH i2c: E2 62 00 [13:43:36]MH_I2C_Read... [13:43:36]Read from MH i2c: E2 62 00 47 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 AE 63 02 00 0E 04 04 00 19 02 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 17 [13:43:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 AE 63 02 00 0E 04 04 00 19 02 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 [13:43:36]wFMCommunicate OK [13:43:36]SAM_PROTO_GetFieldsCounters done [13:43:36]requested_item shift.num is exist - process it [13:43:36]requested_item shift.opened is exist - process it [13:43:36]req_shift_opened [13:43:36]FM_GetShiftState [13:43:36]SAM_PROTO_GetShiftState [13:43:36]wFMCommunicate request_size=4 [13:43:36]MH_SAM_APDU [13:43:36]CAPDU: 80 13 01 00 [13:43:36]Write to MH i2c: E2 08 00 48 59 80 13 01 00 00 00 00 00 1E [13:43:36]Write i2c OK [13:43:36]MH_I2C_Read... [13:43:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:43:36]Read from MH i2c: E2 [13:43:36]MH_I2C_Read... [13:43:36]Read from MH i2c: E2 0E 00 [13:43:36]MH_I2C_Read... [13:43:36]Read from MH i2c: E2 0E 00 48 59 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 EB [13:43:36]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [13:43:36]wFMCommunicate OK [13:43:36]SAM_PROTO_GetShiftState done [13:43:36]FM_GetShiftState done [13:43:36]req_shift_opened done [13:43:36]requested_item shift.open_date is exist - process it [13:43:36]req_shift_open_date [13:43:36]req_shift_open_date done [13:43:36]produce_requested_data done [13:43:36]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156590,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [13:43:36]process_action_free close_receipt [13:43:36]json_value_free [13:43:36]json_value_free done [13:43:36]process_json_proto returns [13:43:36]Send response to host [13:43:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156590,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [13:43:36]free response buf [13:43:36]execute_script done [13:43:36]execute_script returns [13:43:36]free content buf [13:43:36]Sock 9.Close socket [13:43:36]Sock 9.Thread stoped [13:43:36]OFD Sender: No OFD packet to send [13:43:41]OFD Sender: No OFD packet to send [13:43:46]OFD Sender: No OFD packet to send [13:43:51]OFD Sender: No OFD packet to send [13:43:56]OFD Sender: No OFD packet to send [13:44:01]OFD Sender: No OFD packet to send [13:44:06]OFD Sender: No OFD packet to send [13:44:11]OFD Sender: No OFD packet to send [13:44:16]OFD Sender: No OFD packet to send [13:44:21]OFD Sender: No OFD packet to send [13:44:26]OFD Sender: No OFD packet to send [13:44:31]OFD Sender: No OFD packet to send [13:44:36]OFD Sender: No OFD packet to send [13:44:41]OFD Sender: No OFD packet to send [13:44:46]OFD Sender: No OFD packet to send [13:44:51]OFD Sender: No OFD packet to send [13:44:56]OFD Sender: No OFD packet to send [13:45:01]OFD Sender: No OFD packet to send [13:45:06]OFD Sender: No OFD packet to send [13:45:11]OFD Sender: No OFD packet to send [13:45:16]OFD Sender: No OFD packet to send [13:45:21]OFD Sender: No OFD packet to send [13:45:26]OFD Sender: No OFD packet to send [13:45:31]OFD Sender: No OFD packet to send [13:45:33]accept exits with 8 [13:45:33]New connection [13:45:33]New thread 3066977636 created [13:45:33]Thread 3066834276 joined [13:45:33]Waiting for new connection... [13:45:33] Sock 8.Parse request [13:45:33]Sock 8.Check first char [13:45:33]Sock 8.First char is OK [13:45:33]request: POST /json_proto HTTP/1.0 [13:45:33]Method: POST [13:45:33]URL: /json_proto [13:45:33]Method is POST - this is cgi request [13:45:33]url: /json_proto [13:45:33]query_string will be loaded in cgi processing [13:45:33]execute_cgi json_proto POST (null) [13:45:33]execute_cgi path=json_proto method=POST [13:45:33]POST find Content-Length [13:45:33]Host: 172.17.63.3:8080 [13:45:33]Content-Length: 676 [13:45:33]Content-Type: application/json [13:45:33] [13:45:33]POST finish read [13:45:33]Found Content-Length = 676 [13:45:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99405", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:45:33]execute_script... [13:45: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)99405", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:45:33]POST & json_proto [13:45:33]process_json_proto [13:45:33]json parsed OK: [13:45:33]protocol is kg_v1.0 [13:45:33]action value=close_receipt [13:45:33]process_action close_receipt [13:45:33]cmd_close_receipt [13:45:33]MH_GetDate [13:45:33]Write to MH i2c: F0 00 00 49 59 91 [13:45:33]Write i2c OK [13:45:33]MH_I2C_Read... [13:45:33]Read from MH i2c: F0 [13:45:33]MH_I2C_Read... [13:45:33]Read from MH i2c: F0 09 00 [13:45:33]MH_I2C_Read... [13:45:33]Read from MH i2c: F0 09 00 49 59 00 03 44 1E 67 50 D1 6C 64 57 [13:45:33]GetLastDocTimeStamp 1730036619 [13:45:33]current date 1730036739 [13:45:33]FM_GetShiftState [13:45:33]SAM_PROTO_GetShiftState [13:45:33]wFMCommunicate request_size=4 [13:45:33]MH_SAM_APDU [13:45:33]CAPDU: 80 13 01 00 [13:45:33]Write to MH i2c: E2 08 00 4A 59 80 13 01 00 00 00 00 00 20 [13:45:33]Write i2c OK [13:45:33]MH_I2C_Read... [13:45:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:45:33]Read from MH i2c: E2 [13:45:33]MH_I2C_Read... [13:45:33]Read from MH i2c: E2 0E 00 [13:45:33]MH_I2C_Read... [13:45:33]Read from MH i2c: E2 0E 00 4A 59 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 ED [13:45:33]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [13:45:33]wFMCommunicate OK [13:45:33]SAM_PROTO_GetShiftState done [13:45:33]FM_GetShiftState done [13:45:33]opened in 1729989044 [13:45:33]opened+sec_in_day 1730075444 [13:45:33]quantity*price = 50041 [13:45:33]sum+1 = 50042 [13:45:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 142 27.10.2024 13:45 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156591 ФПД: 76488898125231 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T134539&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156591&fm=76488898125231&tin=02508201610067®Number=0000000000091693&sum=50000 [13:45:34]StoreToDocumentArchive [13:45:34]shift 537 fd 156591 [13:45:34]save to /storage/0537/doc_00156591 [13:45:34]save last doc name /storage/0537/doc_00156591 to /storage/kkm_last_doc_name [13:45:34]save OK [13:45:34]Clear old archive folders... [13:45:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:45:34]tlvbuf is 0189D8C0 [13:45:34]SAM_PROTO_ClearQueue [13:45:34]wFMCommunicate request_size=4 [13:45:34]MH_SAM_APDU [13:45:34]CAPDU: 80 09 00 00 [13:45:34]Write to MH i2c: E2 08 00 57 59 80 09 00 00 00 00 00 00 22 [13:45:34]Write i2c OK [13:45:34]MH_I2C_Read... [13:45:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:45:34]Read from MH i2c: E2 [13:45:34]MH_I2C_Read... [13:45:34]Read from MH i2c: E2 03 00 [13:45:34]MH_I2C_Read... [13:45:34]Read from MH i2c: E2 03 00 57 59 00 90 00 24 [13:45:34]RAPDU: 90 00 [13:45:34]wFMCommunicate OK [13:45:34]SAM_PROTO_ClearQueue done [13:45:34]KKMCreateOFDPacket [13:45:34]OFDProtocolAddRootSTLVToBuf [13:45:34]FM_MakeSignedData [13:45:34]FM_MakeSignedData [13:45:34]SAM_PROTO_SignData [13:45:34]wFMCommunicate request_size=4 [13:45:34]MH_SAM_APDU [13:45:34]CAPDU: 80 0D 01 02 [13:45:34]Write to MH i2c: E2 08 00 58 59 80 0D 01 02 00 00 00 00 2A [13:45:34]Write i2c OK [13:45:34]MH_I2C_Read... [13:45:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:45:34]Read from MH i2c: E2 [13:45:34]MH_I2C_Read... [13:45:34]Read from MH i2c: E2 03 00 [13:45:34]MH_I2C_Read... [13:45:34]Read from MH i2c: E2 03 00 58 59 00 90 00 25 [13:45:34]RAPDU: 90 00 [13:45:34]wFMCommunicate OK [13:45:34]wFMCommunicate request_size=255 [13:45:34]MH_SAM_APDU [13:45: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 03 44 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AF 63 02 00 35 04 06 00 45 [13:45:34]Write to MH i2c: E2 02 01 59 59 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 03 44 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AF 63 02 00 35 04 06 00 45 00 00 8C [13:45:34]Write i2c OK [13:45:34]MH_I2C_Read... [13:45:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:45:35]Read from MH i2c: E2 [13:45:35]MH_I2C_Read... [13:45:35]Read from MH i2c: E2 03 00 [13:45:35]MH_I2C_Read... [13:45:35]Read from MH i2c: E2 03 00 59 59 00 90 00 26 [13:45:35]RAPDU: 90 00 [13:45:35]wFMCommunicate OK [13:45:35]wFMCommunicate request_size=10 [13:45:35]MH_SAM_APDU [13:45:35]CAPDU: 80 0D 02 02 05 90 F5 9A 1D AF [13:45:35]Write to MH i2c: E2 0D 00 5A 59 80 0D 02 02 05 00 90 F5 9A 1D AF 00 00 22 [13:45:35]Write i2c OK [13:45:35]MH_I2C_Read... [13:45:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:45:35]Read from MH i2c: E2 [13:45:35]MH_I2C_Read... [13:45:35]Read from MH i2c: E2 03 00 [13:45:35]MH_I2C_Read... [13:45:35]Read from MH i2c: E2 03 00 5A 59 00 90 00 27 [13:45:35]RAPDU: 90 00 [13:45:35]wFMCommunicate OK [13:45:35]wFMCommunicate request_size=4 [13:45:35]MH_SAM_APDU [13:45:35]CAPDU: 80 0D 03 02 [13:45:35]Write to MH i2c: E2 08 00 5B 59 80 0D 03 02 00 00 00 00 2F [13:45:35]Write i2c OK [13:45:35]MH_I2C_Read... [13:45:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:45:35]Read from MH i2c: E2 [13:45:35]MH_I2C_Read... [13:45:35]Read from MH i2c: E2 0B 00 [13:45:35]MH_I2C_Read... [13:45:35]Read from MH i2c: E2 0B 00 5B 59 00 F9 8D 19 F3 2E 2A D9 CA 90 00 BD [13:45:35]RAPDU: F9 8D 19 F3 2E 2A D9 CA 90 00 [13:45:35]wFMCommunicate OK [13:45:35]SAM_PROTO_SignData done [13:45:35]FM_MakeSignedData done [13:45:35]CreateOFDProtocolMessage [13:45:35]wFMCommunicate request_size=4 [13:45:35]MH_SAM_APDU [13:45:35]CAPDU: 80 11 00 00 [13:45:35]Write to MH i2c: E2 08 00 5C 59 80 11 00 00 00 00 00 00 2F [13:45:35]Write i2c OK [13:45:35]MH_I2C_Read... [13:45:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:45:35]Read from MH i2c: E2 [13:45:35]MH_I2C_Read... [13:45:35]Read from MH i2c: E2 17 00 [13:45:35]MH_I2C_Read... [13:45:35]Read from MH i2c: E2 17 00 5C 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 84 [13:45:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:45:35]wFMCommunicate OK [13:45:35]CreateOFDProtocolMessage done [13:45:35]OFDSenderStorePacket 156591 [13:45:35]StoreOFDPacket docnum=156591 [13:45:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 99 6B 07 01 B5 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 03 44 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AF 63 02 00 35 04 06 00 45 90 F5 9A 1D AF F9 8D 19 F3 2E 2A D9 CA [13:45:35]CheckFolder [13:45:35]dirname=/storage/ofd_packets [13:45:35]CheckFolder done [13:45:35]ProducePacketName [13:45:35]name=ofd_packets/00156591 [13:45:35]NVStorageSaveData ofd_packets/00156591 [13:45:35]File name is /storage/ofd_packets/00156591 [13:45:35]Write 301 bytes [13:45:35]NVStorageSaveData done [13:45:35]OFDSenderStorePacket done [13:45:35]KKMCreateOFDPacket done [13:45:35]NVStorageSaveData kkm_last_timestamp [13:45:35]File name is /storage/kkm_last_timestamp [13:45:35]Write 4 bytes [13:45:35]NVStorageSaveData done [13:45:35]ExternCall_PrintAddStr [13:45:35]wPrintStart [13:45:35]Write to MH i2c: 01 00 00 5D 59 B6 [13:45:35]Write i2c OK [13:45:35]MH_I2C_Read... [13:45:35]Read from MH i2c: 01 [13:45:35]MH_I2C_Read... [13:45:35]Read from MH i2c: 01 07 00 [13:45:35]MH_I2C_Read... [13:45:35]Read from MH i2c: 01 07 00 5D 59 00 00 00 00 00 FF 0F CB [13:45:35]RasterBufferAndPrint [13:45:35]line Счет N : (1)99405 [13:45:35]line ИНН: 02508201610067 [13:45:35]line Контрольно-Кассовый Чек [13:45:35]line ПРОДАЖА [13:45:35]line ТРК (МРК, ГНК) : 11 [13:45:35]line Товар: 2710124130 [13:45:35]line Аи-92-К-5 [13:45:35]line 7.480 * 66.90 [13:45:35]line = 500.41 [13:45:35]line НДС 12% НСП 1% [13:45:35]line > о реализуемом товаре [13:45:35]line ОКРУГЛЕНИЕ: -0.41 [13:45:35]line ИТОГО: 500.00 [13:45:35]line Внесено: 500.00 [13:45:35]line СДАЧА: 0.00 [13:45:35]line НСП 1% : 4.43 [13:45:35]line НДС 12% : 53.14 [13:45:35]line Наличными: 500.00 [13:45:35]line Безнал.: 0.00 [13:45:35]line Место: АЗС № 143 "Партнер Нефть" [13:45:35]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [13:45:35]line СНО: Общий режим [13:45:35]line Чек 142 27.10.2024 13:45 [13:45:35]line Смена: 537 ФФД: 1.0 [13:45:35]line ЗНМ: 0300000096 [13:45:35]line РНМ: 0000000000091693 [13:45:35]line Версия ККМ: 001 [13:45:35]line ФМ: 0000000000871792 [13:45:35]line ФД: 156591 [13:45:35]line ФПД: 76488898125231 [13:45:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T134539&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156591&fm=76488898125231&tin=02508201610067®Number=0000000000091693&sum=50000 [13:45:35]written 0, free lines is 4095 [13:45:35]OFD Sender: Processing packet 156591 [packets to send 31, broken 30] [13:45:35]ProducePacketName [13:45:35]name=ofd_packets/00156591 [13:45:35]OFD Sender: To server: pG, [13:45:35]CommunicateWithHost lk.salyk.kg:30040 [13:45:35]ConnectInit lk.salyk.kg [13:45:35]Connected sock=10 [13:45:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 99 6B 07 01 B5 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 03 44 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AF 63 02 00 35 04 06 00 45 90 F5 9A 1D AF F9 8D 19 F3 2E 2A D9 CA [13:45:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 4B 7C 47 00 68 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 AF 63 02 00 F4 03 04 00 72 E9 1D 67 B6 04 01 00 00 04 A0 C0 58 6B CA A2 11 [13:45:35]CommunicateWithHost err = 0 [13:45:35]CheckOFDResponse [13:45:35]1017 (14) - 77093643461234 [13:45:35]1041 (16) - 0000000000871792 [13:45:35]1040 (4) - 156591 [13:45:35]1012 (4) - 27.10.2024 07:19 [13:45:35]1206 (1) - 0 [13:45:35]OFD Sender: Remove packet 156591 [13:45:35]ProducePacketName [13:45:35]name=ofd_packets/00156591 [13:45:35]NVStorageDeleteData [13:45:35]Write to MH i2c: 01 00 00 88 59 E1 [13:45:35]Write i2c OK [13:45:35]MH_I2C_Read... [13:45:35]Read from MH i2c: 01 [13:45:35]MH_I2C_Read... [13:45:35]Read from MH i2c: 01 07 00 [13:45:35]MH_I2C_Read... [13:45:35]Read from MH i2c: 01 07 00 88 59 00 00 00 00 00 EA 0C DE [13:45:35]RasterBufferAndPrint [13:45:35]line [13:45:35]line [13:45:35]line [13:45:35]line [13:45:35]line [13:45:35]written 0, free lines is 3312 [13:45:35]process_action close_receipt done [13:45:35]requested_data is exist [13:45:35]produce_requested_data [13:45:35]requested_item fm.sn is exist - process it [13:45:35]wFMCommunicate request_size=4 [13:45:35]MH_SAM_APDU [13:45:35]CAPDU: 80 11 00 00 [13:45:35]Write to MH i2c: E2 08 00 8F 59 80 11 00 00 00 00 00 00 62 [13:45:35]Write i2c OK [13:45:35]MH_I2C_Read... [13:45:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:45:35]Read from MH i2c: E2 [13:45:35]MH_I2C_Read... [13:45:35]Read from MH i2c: E2 17 00 [13:45:35]MH_I2C_Read... [13:45:35]Read from MH i2c: E2 17 00 8F 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 B7 [13:45:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:45:35]wFMCommunicate OK [13:45:35]requested_item fd.num is exist - process it [13:45:35]SAM_PROTO_GetFieldsCounters [13:45:35]wFMCommunicate request_size=4 [13:45:35]MH_SAM_APDU [13:45:35]CAPDU: 80 13 00 00 [13:45:35]Write to MH i2c: E2 08 00 90 59 80 13 00 00 00 00 00 00 65 [13:45:35]Write i2c OK [13:45:35]MH_I2C_Read... [13:45:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:45:36]Read from MH i2c: E2 [13:45:36]MH_I2C_Read... [13:45:36]Read from MH i2c: E2 62 00 [13:45:36]MH_I2C_Read... [13:45:36]Read from MH i2c: E2 62 00 90 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 AF 63 02 00 0E 04 04 00 19 02 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 64 [13:45:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 AF 63 02 00 0E 04 04 00 19 02 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 [13:45:36]wFMCommunicate OK [13:45:36]SAM_PROTO_GetFieldsCounters done [13:45:36]requested_item shift.num is exist - process it [13:45:36]requested_item shift.opened is exist - process it [13:45:36]req_shift_opened [13:45:36]FM_GetShiftState [13:45:36]SAM_PROTO_GetShiftState [13:45:36]wFMCommunicate request_size=4 [13:45:36]MH_SAM_APDU [13:45:36]CAPDU: 80 13 01 00 [13:45:36]Write to MH i2c: E2 08 00 91 59 80 13 01 00 00 00 00 00 67 [13:45:36]Write i2c OK [13:45:36]MH_I2C_Read... [13:45:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:45:36]Read from MH i2c: E2 [13:45:36]MH_I2C_Read... [13:45:36]Read from MH i2c: E2 0E 00 [13:45:36]MH_I2C_Read... [13:45:36]Read from MH i2c: E2 0E 00 91 59 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 34 [13:45:36]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [13:45:36]wFMCommunicate OK [13:45:36]SAM_PROTO_GetShiftState done [13:45:36]FM_GetShiftState done [13:45:36]req_shift_opened done [13:45:36]requested_item shift.open_date is exist - process it [13:45:36]req_shift_open_date [13:45:36]req_shift_open_date done [13:45:36]produce_requested_data done [13:45:36]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156591,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [13:45:36]process_action_free close_receipt [13:45:36]json_value_free [13:45:36]json_value_free done [13:45:36]process_json_proto returns [13:45:36]Send response to host [13:45:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156591,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [13:45:36]free response buf [13:45:36]execute_script done [13:45:36]execute_script returns [13:45:36]free content buf [13:45:36]Sock 8.Close socket [13:45:36]Sock 8.Thread stoped [13:45:36]OFD Sender: No OFD packet to send [13:45:41]OFD Sender: No OFD packet to send [13:45:46]OFD Sender: No OFD packet to send [13:45:51]OFD Sender: No OFD packet to send [13:45:56]OFD Sender: No OFD packet to send [13:46:01]OFD Sender: No OFD packet to send [13:46:06]OFD Sender: No OFD packet to send [13:46:11]OFD Sender: No OFD packet to send [13:46:16]OFD Sender: No OFD packet to send [13:46:21]OFD Sender: No OFD packet to send [13:46:26]OFD Sender: No OFD packet to send [13:46:31]OFD Sender: No OFD packet to send [13:46:36]OFD Sender: No OFD packet to send [13:46:41]OFD Sender: No OFD packet to send [13:46:46]OFD Sender: No OFD packet to send [13:46:51]OFD Sender: No OFD packet to send [13:46:56]OFD Sender: No OFD packet to send [13:47:01]OFD Sender: No OFD packet to send [13:47:06]OFD Sender: No OFD packet to send [13:47:11]OFD Sender: No OFD packet to send [13:47:16]OFD Sender: No OFD packet to send [13:47:21]OFD Sender: No OFD packet to send [13:47:22]accept exits with 9 [13:47:22]New connection [13:47:22]New thread 3066834276 created [13:47:22]Thread 3066977636 joined [13:47:22]Waiting for new connection... [13:47:22] Sock 9.Parse request [13:47:22]Sock 9.Check first char [13:47:22]Sock 9.First char is OK [13:47:22]request: POST /json_proto HTTP/1.0 [13:47:22]Method: POST [13:47:22]URL: /json_proto [13:47:22]Method is POST - this is cgi request [13:47:22]url: /json_proto [13:47:22]query_string will be loaded in cgi processing [13:47:22]execute_cgi json_proto POST (null) [13:47:22]execute_cgi path=json_proto method=POST [13:47:22]POST find Content-Length [13:47:22]Host: 172.17.63.3:8080 [13:47:22]Content-Length: 681 [13:47:22]Content-Type: application/json [13:47:22] [13:47:22]POST finish read [13:47:22]Found Content-Length = 681 [13:47:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99406", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:47:22]execute_script... [13:47: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)99406", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:47:22]POST & json_proto [13:47:22]process_json_proto [13:47:22]json parsed OK: [13:47:22]protocol is kg_v1.0 [13:47:22]action value=close_receipt [13:47:22]process_action close_receipt [13:47:22]cmd_close_receipt [13:47:22]MH_GetDate [13:47:22]Write to MH i2c: F0 00 00 92 59 DA [13:47:22]Write i2c OK [13:47:22]MH_I2C_Read... [13:47:22]Read from MH i2c: F0 [13:47:22]MH_I2C_Read... [13:47:22]Read from MH i2c: F0 09 00 [13:47:22]MH_I2C_Read... [13:47:22]Read from MH i2c: F0 09 00 92 59 00 70 44 1E 67 50 D1 6C 64 0D [13:47:22]GetLastDocTimeStamp 1730036739 [13:47:22]current date 1730036848 [13:47:22]FM_GetShiftState [13:47:22]SAM_PROTO_GetShiftState [13:47:22]wFMCommunicate request_size=4 [13:47:22]MH_SAM_APDU [13:47:22]CAPDU: 80 13 01 00 [13:47:22]Write to MH i2c: E2 08 00 93 59 80 13 01 00 00 00 00 00 69 [13:47:22]Write i2c OK [13:47:22]MH_I2C_Read... [13:47:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:47:22]Read from MH i2c: E2 [13:47:22]MH_I2C_Read... [13:47:22]Read from MH i2c: E2 0E 00 [13:47:22]MH_I2C_Read... [13:47:22]Read from MH i2c: E2 0E 00 93 59 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 36 [13:47:22]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [13:47:22]wFMCommunicate OK [13:47:22]SAM_PROTO_GetShiftState done [13:47:22]FM_GetShiftState done [13:47:22]opened in 1729989044 [13:47:22]opened+sec_in_day 1730075444 [13:47:22]quantity*price = 100015 [13:47:22]sum+1 = 100017 [13:47:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 143 27.10.2024 13:47 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156592 ФПД: 10506580245629 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T134728&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156592&fm=10506580245629&tin=02508201610067®Number=0000000000091693&sum=100000 [13:47:23]StoreToDocumentArchive [13:47:23]shift 537 fd 156592 [13:47:23]save to /storage/0537/doc_00156592 [13:47:23]save last doc name /storage/0537/doc_00156592 to /storage/kkm_last_doc_name [13:47:23]save OK [13:47:23]Clear old archive folders... [13:47:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:47:23]tlvbuf is 016B3F30 [13:47:23]SAM_PROTO_ClearQueue [13:47:23]wFMCommunicate request_size=4 [13:47:23]MH_SAM_APDU [13:47:23]CAPDU: 80 09 00 00 [13:47:23]Write to MH i2c: E2 08 00 A0 59 80 09 00 00 00 00 00 00 6B [13:47:23]Write i2c OK [13:47:23]MH_I2C_Read... [13:47:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:47:23]Read from MH i2c: E2 [13:47:23]MH_I2C_Read... [13:47:23]Read from MH i2c: E2 03 00 [13:47:23]MH_I2C_Read... [13:47:23]Read from MH i2c: E2 03 00 A0 59 00 90 00 6D [13:47:23]RAPDU: 90 00 [13:47:23]wFMCommunicate OK [13:47:23]SAM_PROTO_ClearQueue done [13:47:23]KKMCreateOFDPacket [13:47:23]OFDProtocolAddRootSTLVToBuf [13:47:23]FM_MakeSignedData [13:47:23]FM_MakeSignedData [13:47:23]SAM_PROTO_SignData [13:47:23]wFMCommunicate request_size=4 [13:47:23]MH_SAM_APDU [13:47:23]CAPDU: 80 0D 01 02 [13:47:23]Write to MH i2c: E2 08 00 A1 59 80 0D 01 02 00 00 00 00 73 [13:47:23]Write i2c OK [13:47:23]MH_I2C_Read... [13:47:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:47:23]Read from MH i2c: E2 [13:47:23]MH_I2C_Read... [13:47:23]Read from MH i2c: E2 03 00 [13:47:23]MH_I2C_Read... [13:47:23]Read from MH i2c: E2 03 00 A1 59 00 90 00 6E [13:47:23]RAPDU: 90 00 [13:47:23]wFMCommunicate OK [13:47:23]wFMCommunicate request_size=255 [13:47:23]MH_SAM_APDU [13:47: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 70 44 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B0 63 02 00 35 04 06 00 09 [13:47:23]Write to MH i2c: E2 02 01 A2 59 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 70 44 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B0 63 02 00 35 04 06 00 09 00 00 02 [13:47:23]Write i2c OK [13:47:23]MH_I2C_Read... [13:47:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:47:23]Read from MH i2c: E2 [13:47:23]MH_I2C_Read... [13:47:23]Read from MH i2c: E2 03 00 [13:47:23]MH_I2C_Read... [13:47:23]Read from MH i2c: E2 03 00 A2 59 00 90 00 6F [13:47:23]RAPDU: 90 00 [13:47:23]wFMCommunicate OK [13:47:23]wFMCommunicate request_size=10 [13:47:23]MH_SAM_APDU [13:47:23]CAPDU: 80 0D 02 02 05 8E 40 FB BC 7D [13:47:23]Write to MH i2c: E2 0D 00 A3 59 80 0D 02 02 05 00 8E 40 FB BC 7D 00 00 82 [13:47:23]Write i2c OK [13:47:23]MH_I2C_Read... [13:47:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:47:23]Read from MH i2c: E2 [13:47:23]MH_I2C_Read... [13:47:23]Read from MH i2c: E2 03 00 [13:47:23]MH_I2C_Read... [13:47:23]Read from MH i2c: E2 03 00 A3 59 00 90 00 70 [13:47:23]RAPDU: 90 00 [13:47:23]wFMCommunicate OK [13:47:23]wFMCommunicate request_size=4 [13:47:23]MH_SAM_APDU [13:47:23]CAPDU: 80 0D 03 02 [13:47:23]Write to MH i2c: E2 08 00 A4 59 80 0D 03 02 00 00 00 00 78 [13:47:23]Write i2c OK [13:47:23]MH_I2C_Read... [13:47:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:47:23]Read from MH i2c: E2 [13:47:23]MH_I2C_Read... [13:47:23]Read from MH i2c: E2 0B 00 [13:47:23]MH_I2C_Read... [13:47:23]Read from MH i2c: E2 0B 00 A4 59 00 DD 4A 64 45 35 CE 62 5C 90 00 0A [13:47:23]RAPDU: DD 4A 64 45 35 CE 62 5C 90 00 [13:47:23]wFMCommunicate OK [13:47:23]SAM_PROTO_SignData done [13:47:23]FM_MakeSignedData done [13:47:23]CreateOFDProtocolMessage [13:47:23]wFMCommunicate request_size=4 [13:47:23]MH_SAM_APDU [13:47:23]CAPDU: 80 11 00 00 [13:47:23]Write to MH i2c: E2 08 00 A5 59 80 11 00 00 00 00 00 00 78 [13:47:23]Write i2c OK [13:47:23]MH_I2C_Read... [13:47:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:47:23]Read from MH i2c: E2 [13:47:23]MH_I2C_Read... [13:47:23]Read from MH i2c: E2 17 00 [13:47:23]MH_I2C_Read... [13:47:23]Read from MH i2c: E2 17 00 A5 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 CD [13:47:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:47:23]wFMCommunicate OK [13:47:23]CreateOFDProtocolMessage done [13:47:23]OFDSenderStorePacket 156592 [13:47:23]StoreOFDPacket docnum=156592 [13:47:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 5D 41 07 01 9D 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 70 44 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B0 63 02 00 35 04 06 00 09 8E 40 FB BC 7D DD 4A 64 45 35 CE 62 5C [13:47:23]CheckFolder [13:47:23]dirname=/storage/ofd_packets [13:47:23]CheckFolder done [13:47:23]ProducePacketName [13:47:23]name=ofd_packets/00156592 [13:47:23]NVStorageSaveData ofd_packets/00156592 [13:47:23]File name is /storage/ofd_packets/00156592 [13:47:23]Write 301 bytes [13:47:23]NVStorageSaveData done [13:47:23]OFDSenderStorePacket done [13:47:23]KKMCreateOFDPacket done [13:47:23]NVStorageSaveData kkm_last_timestamp [13:47:23]File name is /storage/kkm_last_timestamp [13:47:23]Write 4 bytes [13:47:23]NVStorageSaveData done [13:47:23]ExternCall_PrintAddStr [13:47:23]wPrintStart [13:47:23]Write to MH i2c: 01 00 00 A6 59 FF [13:47:23]Write i2c OK [13:47:23]MH_I2C_Read... [13:47:23]Read from MH i2c: 01 [13:47:23]MH_I2C_Read... [13:47:23]Read from MH i2c: 01 07 00 [13:47:23]MH_I2C_Read... [13:47:23]Read from MH i2c: 01 07 00 A6 59 00 00 00 00 00 FF 0F 14 [13:47:23]RasterBufferAndPrint [13:47:23]line Счет N : (1)99406 [13:47:23]line ИНН: 02508201610067 [13:47:23]line Контрольно-Кассовый Чек [13:47:23]line ПРОДАЖА [13:47:23]line ТРК (МРК, ГНК) : 11 [13:47:23]line Товар: 2710124130 [13:47:23]line Аи-92-К-5 [13:47:23]line 14.950 * 66.90 [13:47:23]line = 1000.16 [13:47:23]line НДС 12% НСП 1% [13:47:23]line > о реализуемом товаре [13:47:23]line ОКРУГЛЕНИЕ: -0.16 [13:47:23]line ИТОГО: 1000.00 [13:47:23]line Внесено: 1000.00 [13:47:23]line СДАЧА: 0.00 [13:47:23]line НСП 1% : 8.85 [13:47:23]line НДС 12% : 106.21 [13:47:23]line Наличными: 1000.00 [13:47:23]line Безнал.: 0.00 [13:47:23]line Место: АЗС № 143 "Партнер Нефть" [13:47:23]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [13:47:23]line СНО: Общий режим [13:47:23]line Чек 143 27.10.2024 13:47 [13:47:23]line Смена: 537 ФФД: 1.0 [13:47:23]line ЗНМ: 0300000096 [13:47:23]line РНМ: 0000000000091693 [13:47:23]line Версия ККМ: 001 [13:47:23]line ФМ: 0000000000871792 [13:47:23]line ФД: 156592 [13:47:23]line ФПД: 10506580245629 [13:47:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T134728&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156592&fm=10506580245629&tin=02508201610067®Number=0000000000091693&sum=100000 [13:47:24]OFD Sender: Processing packet 156592 [packets to send 31, broken 30] [13:47:24]ProducePacketName [13:47:24]name=ofd_packets/00156592 [13:47:24]OFD Sender: To server: pG, [13:47:24]CommunicateWithHost lk.salyk.kg:30040 [13:47:24]ConnectInit lk.salyk.kg [13:47:24]written 0, free lines is 4095 [13:47:24]Connected sock=10 [13:47:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 5D 41 07 01 9D 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 70 44 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B0 63 02 00 35 04 06 00 09 8E 40 FB BC 7D DD 4A 64 45 35 CE 62 5C [13:47:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 9F D3 47 00 89 57 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B0 63 02 00 F4 03 04 00 DF E9 1D 67 B6 04 01 00 00 27 D3 91 4F FD 56 4C 85 [13:47:24]CommunicateWithHost err = 0 [13:47:24]CheckOFDResponse [13:47:24]1017 (14) - 77093643461234 [13:47:24]1041 (16) - 0000000000871792 [13:47:24]1040 (4) - 156592 [13:47:24]1012 (4) - 27.10.2024 07:21 [13:47:24]1206 (1) - 0 [13:47:24]OFD Sender: Remove packet 156592 [13:47:24]ProducePacketName [13:47:24]name=ofd_packets/00156592 [13:47:24]NVStorageDeleteData [13:47:24]Write to MH i2c: 01 00 00 D1 59 2A [13:47:24]Write i2c OK [13:47:24]MH_I2C_Read... [13:47:24]Read from MH i2c: 01 [13:47:24]MH_I2C_Read... [13:47:24]Read from MH i2c: 01 07 00 [13:47:24]MH_I2C_Read... [13:47:24]Read from MH i2c: 01 07 00 D1 59 00 00 00 00 00 E4 0C 21 [13:47:24]RasterBufferAndPrint [13:47:24]line [13:47:24]line [13:47:24]line [13:47:24]line [13:47:24]line [13:47:24]written 0, free lines is 3306 [13:47:24]process_action close_receipt done [13:47:24]requested_data is exist [13:47:24]produce_requested_data [13:47:24]requested_item fm.sn is exist - process it [13:47:24]wFMCommunicate request_size=4 [13:47:24]MH_SAM_APDU [13:47:24]CAPDU: 80 11 00 00 [13:47:24]Write to MH i2c: E2 08 00 D8 59 80 11 00 00 00 00 00 00 AB [13:47:24]Write i2c OK [13:47:24]MH_I2C_Read... [13:47:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:47:24]Read from MH i2c: E2 [13:47:24]MH_I2C_Read... [13:47:24]Read from MH i2c: E2 17 00 [13:47:24]MH_I2C_Read... [13:47:24]Read from MH i2c: E2 17 00 D8 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 00 [13:47:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:47:24]wFMCommunicate OK [13:47:24]requested_item fd.num is exist - process it [13:47:24]SAM_PROTO_GetFieldsCounters [13:47:24]wFMCommunicate request_size=4 [13:47:24]MH_SAM_APDU [13:47:24]CAPDU: 80 13 00 00 [13:47:24]Write to MH i2c: E2 08 00 D9 59 80 13 00 00 00 00 00 00 AE [13:47:24]Write i2c OK [13:47:24]MH_I2C_Read... [13:47:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:47:24]Read from MH i2c: E2 [13:47:24]MH_I2C_Read... [13:47:24]Read from MH i2c: E2 62 00 [13:47:24]MH_I2C_Read... [13:47:24]Read from MH i2c: E2 62 00 D9 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 B0 63 02 00 0E 04 04 00 19 02 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 B1 [13:47:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 B0 63 02 00 0E 04 04 00 19 02 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 [13:47:24]wFMCommunicate OK [13:47:24]SAM_PROTO_GetFieldsCounters done [13:47:24]requested_item shift.num is exist - process it [13:47:24]requested_item shift.opened is exist - process it [13:47:24]req_shift_opened [13:47:24]FM_GetShiftState [13:47:24]SAM_PROTO_GetShiftState [13:47:24]wFMCommunicate request_size=4 [13:47:24]MH_SAM_APDU [13:47:24]CAPDU: 80 13 01 00 [13:47:24]Write to MH i2c: E2 08 00 DA 59 80 13 01 00 00 00 00 00 B0 [13:47:24]Write i2c OK [13:47:24]MH_I2C_Read... [13:47:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:47:24]Read from MH i2c: E2 [13:47:24]MH_I2C_Read... [13:47:24]Read from MH i2c: E2 0E 00 [13:47:24]MH_I2C_Read... [13:47:24]Read from MH i2c: E2 0E 00 DA 59 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 7D [13:47:24]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [13:47:24]wFMCommunicate OK [13:47:24]SAM_PROTO_GetShiftState done [13:47:24]FM_GetShiftState done [13:47:24]req_shift_opened done [13:47:24]requested_item shift.open_date is exist - process it [13:47:24]req_shift_open_date [13:47:24]req_shift_open_date done [13:47:24]produce_requested_data done [13:47:24]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156592,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [13:47:24]process_action_free close_receipt [13:47:24]json_value_free [13:47:24]json_value_free done [13:47:24]process_json_proto returns [13:47:24]Send response to host [13:47:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156592,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [13:47:24]free response buf [13:47:24]execute_script done [13:47:24]execute_script returns [13:47:24]free content buf [13:47:24]Sock 9.Close socket [13:47:24]Sock 9.Thread stoped [13:47:25]OFD Sender: No OFD packet to send [13:47:30]OFD Sender: No OFD packet to send [13:47:35]OFD Sender: No OFD packet to send [13:47:40]OFD Sender: No OFD packet to send [13:47:45]OFD Sender: No OFD packet to send [13:47:50]OFD Sender: No OFD packet to send [13:47:55]OFD Sender: No OFD packet to send [13:48:00]OFD Sender: No OFD packet to send [13:48:05]OFD Sender: No OFD packet to send [13:48:10]OFD Sender: No OFD packet to send [13:48:15]OFD Sender: No OFD packet to send [13:48:20]OFD Sender: No OFD packet to send [13:48:25]OFD Sender: No OFD packet to send [13:48:30]OFD Sender: No OFD packet to send [13:48:35]OFD Sender: No OFD packet to send [13:48:40]OFD Sender: No OFD packet to send [13:48:45]OFD Sender: No OFD packet to send [13:48:50]OFD Sender: No OFD packet to send [13:48:55]OFD Sender: No OFD packet to send [13:49:00]OFD Sender: No OFD packet to send [13:49:05]OFD Sender: No OFD packet to send [13:49:10]OFD Sender: No OFD packet to send [13:49:15]OFD Sender: No OFD packet to send [13:49:20]OFD Sender: No OFD packet to send [13:49:25]OFD Sender: No OFD packet to send [13:49:30]OFD Sender: No OFD packet to send [13:49:35]OFD Sender: No OFD packet to send [13:49:40]OFD Sender: No OFD packet to send [13:49:45]OFD Sender: No OFD packet to send [13:49:50]OFD Sender: No OFD packet to send [13:49:55]OFD Sender: No OFD packet to send [13:50:00]OFD Sender: No OFD packet to send [13:50:01]accept exits with 8 [13:50:01]New connection [13:50:01]New thread 3066977636 created [13:50:01]Thread 3066834276 joined [13:50:01]Waiting for new connection... [13:50:01] Sock 8.Parse request [13:50:01]Sock 8.Check first char [13:50:01]Sock 8.First char is OK [13:50:01]request: POST /json_proto HTTP/1.0 [13:50:01]Method: POST [13:50:01]URL: /json_proto [13:50:01]Method is POST - this is cgi request [13:50:01]url: /json_proto [13:50:01]query_string will be loaded in cgi processing [13:50:01]execute_cgi json_proto POST (null) [13:50:01]execute_cgi path=json_proto method=POST [13:50:01]POST find Content-Length [13:50:01]Host: 172.17.63.3:8080 [13:50:01]Content-Length: 676 [13:50:01]Content-Type: application/json [13:50:01] [13:50:01]POST finish read [13:50:01]Found Content-Length = 676 [13:50:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99407", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:50:01]execute_script... [13:50: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)99407", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:50:01]POST & json_proto [13:50:01]process_json_proto [13:50:01]json parsed OK: [13:50:01]protocol is kg_v1.0 [13:50:01]action value=close_receipt [13:50:01]process_action close_receipt [13:50:01]cmd_close_receipt [13:50:01]MH_GetDate [13:50:01]Write to MH i2c: F0 00 00 DB 59 23 [13:50:01]Write i2c OK [13:50:01]MH_I2C_Read... [13:50:01]Read from MH i2c: F0 [13:50:01]MH_I2C_Read... [13:50:01]Read from MH i2c: F0 09 00 [13:50:01]MH_I2C_Read... [13:50:01]Read from MH i2c: F0 09 00 DB 59 00 0F 45 1E 67 50 D1 6C 64 F6 [13:50:01]GetLastDocTimeStamp 1730036848 [13:50:01]current date 1730037007 [13:50:01]FM_GetShiftState [13:50:01]SAM_PROTO_GetShiftState [13:50:01]wFMCommunicate request_size=4 [13:50:01]MH_SAM_APDU [13:50:01]CAPDU: 80 13 01 00 [13:50:01]Write to MH i2c: E2 08 00 DC 59 80 13 01 00 00 00 00 00 B2 [13:50:01]Write i2c OK [13:50:01]MH_I2C_Read... [13:50:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:50:01]Read from MH i2c: E2 [13:50:01]MH_I2C_Read... [13:50:01]Read from MH i2c: E2 0E 00 [13:50:01]MH_I2C_Read... [13:50:01]Read from MH i2c: E2 0E 00 DC 59 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 7F [13:50:01]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [13:50:01]wFMCommunicate OK [13:50:01]SAM_PROTO_GetShiftState done [13:50:01]FM_GetShiftState done [13:50:01]opened in 1729989044 [13:50:01]opened+sec_in_day 1730075444 [13:50:01]quantity*price = 50041 [13:50:01]sum+1 = 50042 [13:50:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 144 27.10.2024 13:50 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156593 ФПД: 33310931288167 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T135007&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156593&fm=33310931288167&tin=02508201610067®Number=0000000000091693&sum=50000 [13:50:02]StoreToDocumentArchive [13:50:02]shift 537 fd 156593 [13:50:02]save to /storage/0537/doc_00156593 [13:50:02]save last doc name /storage/0537/doc_00156593 to /storage/kkm_last_doc_name [13:50:02]save OK [13:50:02]Clear old archive folders... [13:50:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:50:02]tlvbuf is B6F5B8A0 [13:50:02]SAM_PROTO_ClearQueue [13:50:02]wFMCommunicate request_size=4 [13:50:02]MH_SAM_APDU [13:50:02]CAPDU: 80 09 00 00 [13:50:02]Write to MH i2c: E2 08 00 E9 59 80 09 00 00 00 00 00 00 B4 [13:50:02]Write i2c OK [13:50:02]MH_I2C_Read... [13:50:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:50:02]Read from MH i2c: E2 [13:50:02]MH_I2C_Read... [13:50:02]Read from MH i2c: E2 03 00 [13:50:02]MH_I2C_Read... [13:50:02]Read from MH i2c: E2 03 00 E9 59 00 90 00 B6 [13:50:02]RAPDU: 90 00 [13:50:02]wFMCommunicate OK [13:50:02]SAM_PROTO_ClearQueue done [13:50:02]KKMCreateOFDPacket [13:50:02]OFDProtocolAddRootSTLVToBuf [13:50:02]FM_MakeSignedData [13:50:02]FM_MakeSignedData [13:50:02]SAM_PROTO_SignData [13:50:02]wFMCommunicate request_size=4 [13:50:02]MH_SAM_APDU [13:50:02]CAPDU: 80 0D 01 02 [13:50:02]Write to MH i2c: E2 08 00 EA 59 80 0D 01 02 00 00 00 00 BC [13:50:02]Write i2c OK [13:50:02]MH_I2C_Read... [13:50:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:50:02]Read from MH i2c: E2 [13:50:02]MH_I2C_Read... [13:50:02]Read from MH i2c: E2 03 00 [13:50:02]MH_I2C_Read... [13:50:02]Read from MH i2c: E2 03 00 EA 59 00 90 00 B7 [13:50:02]RAPDU: 90 00 [13:50:02]wFMCommunicate OK [13:50:02]wFMCommunicate request_size=255 [13:50:02]MH_SAM_APDU [13:50: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 0F 45 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B1 63 02 00 35 04 06 00 1E [13:50:02]Write to MH i2c: E2 02 01 EB 59 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 0F 45 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B1 63 02 00 35 04 06 00 1E 00 00 08 [13:50:02]Write i2c OK [13:50:02]MH_I2C_Read... [13:50:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:50:02]Read from MH i2c: E2 [13:50:02]MH_I2C_Read... [13:50:02]Read from MH i2c: E2 03 00 [13:50:02]MH_I2C_Read... [13:50:02]Read from MH i2c: E2 03 00 EB 59 00 90 00 B8 [13:50:02]RAPDU: 90 00 [13:50:02]wFMCommunicate OK [13:50:02]wFMCommunicate request_size=10 [13:50:02]MH_SAM_APDU [13:50:02]CAPDU: 80 0D 02 02 05 4B CE 3A 00 67 [13:50:02]Write to MH i2c: E2 0D 00 EC 59 80 0D 02 02 05 00 4B CE 3A 00 67 00 00 83 [13:50:02]Write i2c OK [13:50:02]MH_I2C_Read... [13:50:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:50:02]Read from MH i2c: E2 [13:50:02]MH_I2C_Read... [13:50:02]Read from MH i2c: E2 03 00 [13:50:02]MH_I2C_Read... [13:50:02]Read from MH i2c: E2 03 00 EC 59 00 90 00 B9 [13:50:02]RAPDU: 90 00 [13:50:02]wFMCommunicate OK [13:50:02]wFMCommunicate request_size=4 [13:50:02]MH_SAM_APDU [13:50:02]CAPDU: 80 0D 03 02 [13:50:02]Write to MH i2c: E2 08 00 ED 59 80 0D 03 02 00 00 00 00 C1 [13:50:02]Write i2c OK [13:50:02]MH_I2C_Read... [13:50:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:50:02]Read from MH i2c: E2 [13:50:02]MH_I2C_Read... [13:50:02]Read from MH i2c: E2 0B 00 [13:50:02]MH_I2C_Read... [13:50:02]Read from MH i2c: E2 0B 00 ED 59 00 F8 3C 93 AA C3 C9 5F 99 90 00 B7 [13:50:02]RAPDU: F8 3C 93 AA C3 C9 5F 99 90 00 [13:50:02]wFMCommunicate OK [13:50:02]SAM_PROTO_SignData done [13:50:02]FM_MakeSignedData done [13:50:02]CreateOFDProtocolMessage [13:50:02]wFMCommunicate request_size=4 [13:50:02]MH_SAM_APDU [13:50:02]CAPDU: 80 11 00 00 [13:50:02]Write to MH i2c: E2 08 00 EE 59 80 11 00 00 00 00 00 00 C1 [13:50:02]Write i2c OK [13:50:02]MH_I2C_Read... [13:50:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:50:02]Read from MH i2c: E2 [13:50:02]MH_I2C_Read... [13:50:02]Read from MH i2c: E2 17 00 [13:50:02]MH_I2C_Read... [13:50:02]Read from MH i2c: E2 17 00 EE 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 16 [13:50:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:50:02]wFMCommunicate OK [13:50:02]CreateOFDProtocolMessage done [13:50:02]OFDSenderStorePacket 156593 [13:50:02]StoreOFDPacket docnum=156593 [13:50:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 DB 26 07 01 19 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 0F 45 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B1 63 02 00 35 04 06 00 1E 4B CE 3A 00 67 F8 3C 93 AA C3 C9 5F 99 [13:50:02]CheckFolder [13:50:02]dirname=/storage/ofd_packets [13:50:02]CheckFolder done [13:50:02]ProducePacketName [13:50:02]name=ofd_packets/00156593 [13:50:02]NVStorageSaveData ofd_packets/00156593 [13:50:02]File name is /storage/ofd_packets/00156593 [13:50:02]Write 301 bytes [13:50:02]NVStorageSaveData done [13:50:02]OFDSenderStorePacket done [13:50:02]KKMCreateOFDPacket done [13:50:02]NVStorageSaveData kkm_last_timestamp [13:50:02]File name is /storage/kkm_last_timestamp [13:50:02]Write 4 bytes [13:50:02]NVStorageSaveData done [13:50:02]ExternCall_PrintAddStr [13:50:02]wPrintStart [13:50:02]Write to MH i2c: 01 00 00 EF 59 48 [13:50:02]Write i2c OK [13:50:02]MH_I2C_Read... [13:50:02]Read from MH i2c: 01 [13:50:02]MH_I2C_Read... [13:50:02]Read from MH i2c: 01 07 00 [13:50:02]MH_I2C_Read... [13:50:02]Read from MH i2c: 01 07 00 EF 59 00 00 00 00 00 FF 0F 5D [13:50:02]RasterBufferAndPrint [13:50:02]line Счет N : (1)99407 [13:50:02]line ИНН: 02508201610067 [13:50:02]line Контрольно-Кассовый Чек [13:50:02]line ПРОДАЖА [13:50:02]line ТРК (МРК, ГНК) : 21 [13:50:02]line Товар: 2710124130 [13:50:02]line Аи-92-К-5 [13:50:02]line 7.480 * 66.90 [13:50:02]line = 500.41 [13:50:02]line НДС 12% НСП 1% [13:50:02]line > о реализуемом товаре [13:50:02]line ОКРУГЛЕНИЕ: -0.41 [13:50:02]line ИТОГО: 500.00 [13:50:02]line Внесено: 500.00 [13:50:02]line СДАЧА: 0.00 [13:50:02]line НСП 1% : 4.43 [13:50:02]line НДС 12% : 53.14 [13:50:02]line Наличными: 500.00 [13:50:02]line Безнал.: 0.00 [13:50:02]line Место: АЗС № 143 "Партнер Нефть" [13:50:02]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [13:50:02]line СНО: Общий режим [13:50:02]line Чек 144 27.10.2024 13:50 [13:50:02]line Смена: 537 ФФД: 1.0 [13:50:02]line ЗНМ: 0300000096 [13:50:02]line РНМ: 0000000000091693 [13:50:02]line Версия ККМ: 001 [13:50:02]line ФМ: 0000000000871792 [13:50:02]line ФД: 156593 [13:50:02]line ФПД: 33310931288167 [13:50:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T135007&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156593&fm=33310931288167&tin=02508201610067®Number=0000000000091693&sum=50000 [13:50:03]OFD Sender: Processing packet 156593 [packets to send 31, broken 30] [13:50:03]ProducePacketName [13:50:03]name=ofd_packets/00156593 [13:50:03]OFD Sender: To server: pG, [13:50:03]CommunicateWithHost lk.salyk.kg:30040 [13:50:03]ConnectInit lk.salyk.kg [13:50:03]written 0, free lines is 4095 [13:50:03]Connected sock=10 [13:50:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 DB 26 07 01 19 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 0F 45 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B1 63 02 00 35 04 06 00 1E 4B CE 3A 00 67 F8 3C 93 AA C3 C9 5F 99 [13:50:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 93 3B 47 00 B4 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 31 37 39 32 10 04 04 00 B1 63 02 00 F4 03 04 00 7E EA 1D 67 B6 04 01 00 00 03 8E FA 92 8B 33 75 EF [13:50:03]CommunicateWithHost err = 0 [13:50:03]CheckOFDResponse [13:50:03]1017 (14) - 77093643461234 [13:50:03]1041 (16) - 0000000000871792 [13:50:03]1040 (4) - 156593 [13:50:03]1012 (4) - 27.10.2024 07:23 [13:50:03]1206 (1) - 0 [13:50:03]OFD Sender: Remove packet 156593 [13:50:03]ProducePacketName [13:50:03]name=ofd_packets/00156593 [13:50:03]NVStorageDeleteData [13:50:03]Write to MH i2c: 01 00 00 1A 5A 74 [13:50:03]Write i2c OK [13:50:03]MH_I2C_Read... [13:50:03]Read from MH i2c: 01 [13:50:03]MH_I2C_Read... [13:50:03]Read from MH i2c: 01 07 00 [13:50:03]MH_I2C_Read... [13:50:03]Read from MH i2c: 01 07 00 1A 5A 00 00 00 00 00 D0 0C 57 [13:50:03]RasterBufferAndPrint [13:50:03]line [13:50:03]line [13:50:03]line [13:50:03]line [13:50:03]line [13:50:03]written 0, free lines is 3288 [13:50:03]process_action close_receipt done [13:50:03]requested_data is exist [13:50:03]produce_requested_data [13:50:03]requested_item fm.sn is exist - process it [13:50:03]wFMCommunicate request_size=4 [13:50:03]MH_SAM_APDU [13:50:03]CAPDU: 80 11 00 00 [13:50:03]Write to MH i2c: E2 08 00 21 5A 80 11 00 00 00 00 00 00 F5 [13:50:03]Write i2c OK [13:50:03]MH_I2C_Read... [13:50:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:50:03]Read from MH i2c: E2 [13:50:03]MH_I2C_Read... [13:50:03]Read from MH i2c: E2 17 00 [13:50:03]MH_I2C_Read... [13:50:03]Read from MH i2c: E2 17 00 21 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 4A [13:50:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:50:03]wFMCommunicate OK [13:50:03]requested_item fd.num is exist - process it [13:50:03]SAM_PROTO_GetFieldsCounters [13:50:03]wFMCommunicate request_size=4 [13:50:03]MH_SAM_APDU [13:50:03]CAPDU: 80 13 00 00 [13:50:03]Write to MH i2c: E2 08 00 22 5A 80 13 00 00 00 00 00 00 F8 [13:50:03]Write i2c OK [13:50:03]MH_I2C_Read... [13:50:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:50:03]Read from MH i2c: E2 [13:50:03]MH_I2C_Read... [13:50:03]Read from MH i2c: E2 62 00 [13:50:03]MH_I2C_Read... [13:50:03]Read from MH i2c: E2 62 00 22 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 B1 63 02 00 0E 04 04 00 19 02 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 FF [13:50:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 B1 63 02 00 0E 04 04 00 19 02 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 [13:50:03]wFMCommunicate OK [13:50:03]SAM_PROTO_GetFieldsCounters done [13:50:03]requested_item shift.num is exist - process it [13:50:03]requested_item shift.opened is exist - process it [13:50:03]req_shift_opened [13:50:03]FM_GetShiftState [13:50:03]SAM_PROTO_GetShiftState [13:50:03]wFMCommunicate request_size=4 [13:50:03]MH_SAM_APDU [13:50:03]CAPDU: 80 13 01 00 [13:50:03]Write to MH i2c: E2 08 00 23 5A 80 13 01 00 00 00 00 00 FA [13:50:03]Write i2c OK [13:50:03]MH_I2C_Read... [13:50:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:50:03]Read from MH i2c: E2 [13:50:03]MH_I2C_Read... [13:50:03]Read from MH i2c: E2 0E 00 [13:50:03]MH_I2C_Read... [13:50:03]Read from MH i2c: E2 0E 00 23 5A 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 C7 [13:50:03]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [13:50:03]wFMCommunicate OK [13:50:03]SAM_PROTO_GetShiftState done [13:50:03]FM_GetShiftState done [13:50:03]req_shift_opened done [13:50:03]requested_item shift.open_date is exist - process it [13:50:03]req_shift_open_date [13:50:03]req_shift_open_date done [13:50:03]produce_requested_data done [13:50:03]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156593,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [13:50:03]process_action_free close_receipt [13:50:03]json_value_free [13:50:03]json_value_free done [13:50:03]process_json_proto returns [13:50:03]Send response to host [13:50:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156593,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [13:50:03]free response buf [13:50:03]execute_script done [13:50:03]execute_script returns [13:50:03]free content buf [13:50:03]Sock 8.Close socket [13:50:03]Sock 8.Thread stoped [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:47]Read from MH i2c: E2 [13:51:47]MH_I2C_Read... [13:51:47]Read from MH i2c: E2 03 00 [13:51:47]MH_I2C_Read... [13:51:47]Read from MH i2c: E2 03 00 2D 5A 00 90 00 FB [13:51:47]RAPDU: 90 00 [13:51:47]wFMCommunicate OK [13:51:47]wFMCommunicate request_size=13 [13:51:47]MH_SAM_APDU [13:51:47]CAPDU: 80 15 02 00 08 F4 03 04 00 79 45 1E 67 [13:51:47]Write to MH i2c: E2 10 00 2E 5A 80 15 02 00 08 00 F4 03 04 00 79 45 1E 67 00 00 56 [13:51:47]Write i2c OK [13:51:47]MH_I2C_Read... [13:51:47]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [13:51:47]Read from MH i2c: E2 [13:51:47]MH_I2C_Read... [13:51:47]Read from MH i2c: E2 03 00 [13:51:47]MH_I2C_Read... [13:51:47]Read from MH i2c: E2 03 00 2E 5A 00 90 00 FC [13:51:47]RAPDU: 90 00 [13:51:47]wFMCommunicate OK [13:51:47]wFMCommunicate request_size=25 [13:51:47]MH_SAM_APDU [13:51:47]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 [13:51:47]Write to MH i2c: E2 1C 00 2F 5A 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 00 00 6E [13:51:47]Write i2c OK [13:51:47]MH_I2C_Read... [13:51:48]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [13:51:48]Read from MH i2c: E2 [13:51:48]MH_I2C_Read... [13:51:48]Read from MH i2c: E2 03 00 [13:51:48]MH_I2C_Read... [13:51:48]Read from MH i2c: E2 03 00 2F 5A 00 90 00 FD [13:51:48]RAPDU: 90 00 [13:51:48]wFMCommunicate OK [13:51:48]wFMCommunicate request_size=4 [13:51:48]MH_SAM_APDU [13:51:48]CAPDU: 80 15 03 00 [13:51:48]Write to MH i2c: E2 08 00 30 5A 80 15 03 00 00 00 00 00 0B [13:51:48]Write i2c OK [13:51:48]MH_I2C_Read... [13:51:48]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [13:51:48]Read from MH i2c: E2 [13:51:48]MH_I2C_Read... [13:51:48]Read from MH i2c: E2 40 00 [13:51:48]MH_I2C_Read... [13:51:48]Read from MH i2c: E2 40 00 30 5A 00 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B2 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 91 00 00 00 35 04 06 00 54 43 85 E5 E8 0E 90 00 BD [13:51:48]RAPDU: 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B2 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 91 00 00 00 35 04 06 00 54 43 85 E5 E8 0E 90 00 [13:51:48]wFMCommunicate OK [13:51:48]SAM_PROTO_ProcessDocument answer len = 59 [13:51:48]SAM_PROTO_ProcessDocument done [13:51:48]SetTLVBufToDocument [13:51:48]Processing tag 1209 (04B9) [13:51:48]Malloc new data [13:51:48]Processing tag 1041 (0411) [13:51:48]Processing tag 1040 (0410) [13:51:48]Malloc new data [13:51:48]Processing tag 1038 (040E) [13:51:48]Malloc new data [13:51:48]Processing tag 1042 (0412) [13:51:48]Malloc new data [13:51:48]Processing tag 1077 (0435) [13:51:48]Malloc new data [13:51:48]SetTLVBufToDocument err=0 [13:51:48]KKMLoadAndSignReceiptData store KKM data [13:51:48]KKMLoadAndSignReceiptData err=0 [13:51:48]wFMCommunicate request_size=4 [13:51:48]MH_SAM_APDU [13:51:48]CAPDU: 80 11 00 00 [13:51:48]Write to MH i2c: E2 08 00 31 5A 80 11 00 00 00 00 00 00 05 [13:51:48]Write i2c OK [13:51:48]MH_I2C_Read... [13:51:48]Read from MH i2c: E2 [13:51:48]MH_I2C_Read... [13:51:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:51:48]Read from MH i2c: E2 17 00 [13:51:48]MH_I2C_Read... [13:51:48]Read from MH i2c: E2 17 00 31 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 5A [13:51:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:51:48]wFMCommunicate OK [13:51:48]Счет N : (1)99408 ИНН: 02508201610067 Контрольно-Кассовый Чек ПРОДАЖА ТРК (МРК, ГНК) : 32 Товар: 2710194210 ДТ-К-5 13.130 * 76.20 = 1000.51 НДС 12% НСП 1% > о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 145 27.10.2024 13:51 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156594 ФПД: 92648985978894 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T135153&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156594&fm=92648985978894&tin=02508201610067®Number=0000000000091693&sum=100000 [13:51:48]StoreToDocumentArchive [13:51:48]shift 537 fd 156594 [13:51:48]save to /storage/0537/doc_00156594 [13:51:48]save last doc name /storage/0537/doc_00156594 to /storage/kkm_last_doc_name [13:51:48]save OK [13:51:48]Clear old archive folders... [13:51:48]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:51:48]tlvbuf is 016E9780 [13:51:48]SAM_PROTO_ClearQueue [13:51:48]wFMCommunicate request_size=4 [13:51:48]MH_SAM_APDU [13:51:48]CAPDU: 80 09 00 00 [13:51:48]Write to MH i2c: E2 08 00 32 5A 80 09 00 00 00 00 00 00 FE [13:51:48]Write i2c OK [13:51:48]MH_I2C_Read... [13:51:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:51:48]Read from MH i2c: E2 [13:51:48]MH_I2C_Read... [13:51:48]Read from MH i2c: E2 03 00 [13:51:48]MH_I2C_Read... [13:51:48]Read from MH i2c: E2 03 00 32 5A 00 90 00 00 [13:51:48]RAPDU: 90 00 [13:51:48]wFMCommunicate OK [13:51:48]SAM_PROTO_ClearQueue done [13:51:48]KKMCreateOFDPacket [13:51:48]OFDProtocolAddRootSTLVToBuf [13:51:48]FM_MakeSignedData [13:51:48]FM_MakeSignedData [13:51:48]SAM_PROTO_SignData [13:51:48]wFMCommunicate request_size=4 [13:51:48]MH_SAM_APDU [13:51:48]CAPDU: 80 0D 01 02 [13:51:48]Write to MH i2c: E2 08 00 33 5A 80 0D 01 02 00 00 00 00 06 [13:51:48]Write i2c OK [13:51:48]MH_I2C_Read... [13:51:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:51:48]Read from MH i2c: E2 [13:51:48]MH_I2C_Read... [13:51:48]Read from MH i2c: E2 03 00 [13:51:48]MH_I2C_Read... [13:51:48]Read from MH i2c: E2 03 00 33 5A 00 90 00 01 [13:51:48]RAPDU: 90 00 [13:51:48]wFMCommunicate OK [13:51:48]wFMCommunicate request_size=255 [13:51:48]MH_SAM_APDU [13:51:48]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 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 79 45 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B2 63 02 00 35 04 06 00 54 43 85 E5 [13:51:48]Write to MH i2c: E2 02 01 34 5A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 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 79 45 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B2 63 02 00 35 04 06 00 54 43 85 E5 00 00 97 [13:51:48]Write i2c OK [13:51:48]MH_I2C_Read... [13:51:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:51:48]Read from MH i2c: E2 [13:51:48]MH_I2C_Read... [13:51:48]Read from MH i2c: E2 03 00 [13:51:48]MH_I2C_Read... [13:51:48]Read from MH i2c: E2 03 00 34 5A 00 90 00 02 [13:51:48]RAPDU: 90 00 [13:51:48]wFMCommunicate OK [13:51:48]wFMCommunicate request_size=7 [13:51:48]MH_SAM_APDU [13:51:48]CAPDU: 80 0D 02 02 02 E8 0E [13:51:48]Write to MH i2c: E2 0A 00 35 5A 80 0D 02 02 02 00 E8 0E 00 00 03 [13:51:48]Write i2c OK [13:51:48]MH_I2C_Read... [13:51:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:51:48]Read from MH i2c: E2 [13:51:48]MH_I2C_Read... [13:51:48]Read from MH i2c: E2 03 00 [13:51:48]MH_I2C_Read... [13:51:48]Read from MH i2c: E2 03 00 35 5A 00 90 00 03 [13:51:48]RAPDU: 90 00 [13:51:48]wFMCommunicate OK [13:51:48]wFMCommunicate request_size=4 [13:51:48]MH_SAM_APDU [13:51:48]CAPDU: 80 0D 03 02 [13:51:48]Write to MH i2c: E2 08 00 36 5A 80 0D 03 02 00 00 00 00 0B [13:51:48]Write i2c OK [13:51:48]MH_I2C_Read... [13:51:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:51:48]Read from MH i2c: E2 [13:51:48]MH_I2C_Read... [13:51:48]Read from MH i2c: E2 0B 00 [13:51:48]MH_I2C_Read... [13:51:48]Read from MH i2c: E2 0B 00 36 5A 00 B1 33 6A 22 98 1A 4C 16 90 00 90 [13:51:48]RAPDU: B1 33 6A 22 98 1A 4C 16 90 00 [13:51:48]wFMCommunicate OK [13:51:48]SAM_PROTO_SignData done [13:51:48]FM_MakeSignedData done [13:51:48]CreateOFDProtocolMessage [13:51:48]wFMCommunicate request_size=4 [13:51:48]MH_SAM_APDU [13:51:48]CAPDU: 80 11 00 00 [13:51:48]Write to MH i2c: E2 08 00 37 5A 80 11 00 00 00 00 00 00 0B [13:51:48]Write i2c OK [13:51:48]MH_I2C_Read... [13:51:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:51:48]Read from MH i2c: E2 [13:51:48]MH_I2C_Read... [13:51:48]Read from MH i2c: E2 17 00 [13:51:48]MH_I2C_Read... [13:51:48]Read from MH i2c: E2 17 00 37 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 60 [13:51:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:51:48]wFMCommunicate OK [13:51:48]CreateOFDProtocolMessage done [13:51:48]OFDSenderStorePacket 156594 [13:51:48]StoreOFDPacket docnum=156594 [13:51:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 49 9F 04 01 1C 27 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 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 79 45 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B2 63 02 00 35 04 06 00 54 43 85 E5 E8 0E B1 33 6A 22 98 1A 4C 16 [13:51:48]CheckFolder [13:51:48]dirname=/storage/ofd_packets [13:51:48]CheckFolder done [13:51:48]ProducePacketName [13:51:48]name=ofd_packets/00156594 [13:51:48]NVStorageSaveData ofd_packets/00156594 [13:51:48]File name is /storage/ofd_packets/00156594 [13:51:48]Write 298 bytes [13:51:48]NVStorageSaveData done [13:51:48]OFDSenderStorePacket done [13:51:48]KKMCreateOFDPacket done [13:51:48]NVStorageSaveData kkm_last_timestamp [13:51:48]File name is /storage/kkm_last_timestamp [13:51:48]Write 4 bytes [13:51:48]NVStorageSaveData done [13:51:48]ExternCall_PrintAddStr [13:51:48]wPrintStart [13:51:48]Write to MH i2c: 01 00 00 38 5A 92 [13:51:48]Write i2c OK [13:51:48]MH_I2C_Read... [13:51:48]Read from MH i2c: 01 [13:51:48]MH_I2C_Read... [13:51:48]Read from MH i2c: 01 07 00 [13:51:48]MH_I2C_Read... [13:51:48]Read from MH i2c: 01 07 00 38 5A 00 00 00 00 00 FF 0F A7 [13:51:48]RasterBufferAndPrint [13:51:48]line Счет N : (1)99408 [13:51:48]line ИНН: 02508201610067 [13:51:48]line Контрольно-Кассовый Чек [13:51:48]line ПРОДАЖА [13:51:48]line ТРК (МРК, ГНК) : 32 [13:51:48]line Товар: 2710194210 [13:51:48]line ДТ-К-5 [13:51:48]line 13.130 * 76.20 [13:51:48]line = 1000.51 [13:51:48]line НДС 12% НСП 1% [13:51:48]line > о реализуемом товаре [13:51:48]line ОКРУГЛЕНИЕ: -0.51 [13:51:48]line ИТОГО: 1000.00 [13:51:48]line Внесено: 1000.00 [13:51:48]line СДАЧА: 0.00 [13:51:48]line НСП 1% : 8.85 [13:51:48]line НДС 12% : 106.25 [13:51:48]line Наличными: 1000.00 [13:51:48]line Безнал.: 0.00 [13:51:48]line Место: АЗС № 143 "Партнер Нефть" [13:51:48]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [13:51:48]line СНО: Общий режим [13:51:48]line Чек 145 27.10.2024 13:51 [13:51:48]line Смена: 537 ФФД: 1.0 [13:51:48]line ЗНМ: 0300000096 [13:51:48]line РНМ: 0000000000091693 [13:51:48]line Версия ККМ: 001 [13:51:48]line ФМ: 0000000000871792 [13:51:48]line ФД: 156594 [13:51:48]line ФПД: 92648985978894 [13:51:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T135153&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156594&fm=92648985978894&tin=02508201610067®Number=0000000000091693&sum=100000 [13:51:49]OFD Sender: Processing packet 156594 [packets to send 31, broken 30] [13:51:49]ProducePacketName [13:51:49]name=ofd_packets/00156594 [13:51:49]OFD Sender: To server: pG, [13:51:49]CommunicateWithHost lk.salyk.kg:30040 [13:51:49]ConnectInit lk.salyk.kg [13:51:49]written 0, free lines is 4095 [13:51:49]Connected sock=11 [13:51:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 49 9F 04 01 1C 27 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 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 79 45 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B2 63 02 00 35 04 06 00 54 43 85 E5 E8 0E B1 33 6A 22 98 1A 4C 16 [13:51:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 B8 83 47 00 9C 4B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B2 63 02 00 F4 03 04 00 E8 EA 1D 67 B6 04 01 00 00 1C 87 D3 38 C1 DD 75 49 [13:51:49]CommunicateWithHost err = 0 [13:51:49]CheckOFDResponse [13:51:49]1017 (14) - 77093643461234 [13:51:49]1041 (16) - 0000000000871792 [13:51:49]1040 (4) - 156594 [13:51:49]1012 (4) - 27.10.2024 07:25 [13:51:49]1206 (1) - 0 [13:51:49]OFD Sender: Remove packet 156594 [13:51:49]ProducePacketName [13:51:49]name=ofd_packets/00156594 [13:51:49]NVStorageDeleteData [13:51:49]Write to MH i2c: 01 00 00 63 5A BD [13:51:49]Write i2c OK [13:51:49]MH_I2C_Read... [13:51:49]Read from MH i2c: 01 [13:51:49]MH_I2C_Read... [13:51:49]Read from MH i2c: 01 07 00 [13:51:49]MH_I2C_Read... [13:51:49]Read from MH i2c: 01 07 00 63 5A 00 00 00 00 00 CE 0C 9E [13:51:49]RasterBufferAndPrint [13:51:49]line [13:51:49]line [13:51:49]line [13:51:49]line [13:51:49]line [13:51:49]written 0, free lines is 3287 [13:51:49]process_action close_receipt done [13:51:49]requested_data is exist [13:51:49]produce_requested_data [13:51:49]requested_item fm.sn is exist - process it [13:51:49]wFMCommunicate request_size=4 [13:51:49]MH_SAM_APDU [13:51:49]CAPDU: 80 11 00 00 [13:51:49]Write to MH i2c: E2 08 00 6A 5A 80 11 00 00 00 00 00 00 3E [13:51:49]Write i2c OK [13:51:49]MH_I2C_Read... [13:51:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:51:49]Read from MH i2c: E2 [13:51:49]MH_I2C_Read... [13:51:49]Read from MH i2c: E2 17 00 [13:51:49]MH_I2C_Read... [13:51:49]Read from MH i2c: E2 17 00 6A 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 93 [13:51:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:51:49]wFMCommunicate OK [13:51:49]requested_item fd.num is exist - process it [13:51:49]SAM_PROTO_GetFieldsCounters [13:51:49]wFMCommunicate request_size=4 [13:51:49]MH_SAM_APDU [13:51:49]CAPDU: 80 13 00 00 [13:51:49]Write to MH i2c: E2 08 00 6B 5A 80 13 00 00 00 00 00 00 41 [13:51:49]Write i2c OK [13:51:49]MH_I2C_Read... [13:51:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:51:49]Read from MH i2c: E2 [13:51:49]MH_I2C_Read... [13:51:49]Read from MH i2c: E2 62 00 [13:51:49]MH_I2C_Read... [13:51:49]Read from MH i2c: E2 62 00 6B 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 B2 63 02 00 0E 04 04 00 19 02 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 4C [13:51:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 B2 63 02 00 0E 04 04 00 19 02 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 [13:51:49]wFMCommunicate OK [13:51:49]SAM_PROTO_GetFieldsCounters done [13:51:49]requested_item shift.num is exist - process it [13:51:49]requested_item shift.opened is exist - process it [13:51:49]req_shift_opened [13:51:49]FM_GetShiftState [13:51:49]SAM_PROTO_GetShiftState [13:51:49]wFMCommunicate request_size=4 [13:51:49]MH_SAM_APDU [13:51:49]CAPDU: 80 13 01 00 [13:51:49]Write to MH i2c: E2 08 00 6C 5A 80 13 01 00 00 00 00 00 43 [13:51:49]Write i2c OK [13:51:49]MH_I2C_Read... [13:51:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:51:49]Read from MH i2c: E2 [13:51:49]MH_I2C_Read... [13:51:49]Read from MH i2c: E2 0E 00 [13:51:49]MH_I2C_Read... [13:51:49]Read from MH i2c: E2 0E 00 6C 5A 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 10 [13:51:49]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [13:51:49]wFMCommunicate OK [13:51:49]SAM_PROTO_GetShiftState done [13:51:49]FM_GetShiftState done [13:51:49]req_shift_opened done [13:51:49]requested_item shift.open_date is exist - process it [13:51:49]req_shift_open_date [13:51:49]req_shift_open_date done [13:51:49]produce_requested_data done [13:51:49]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156594,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [13:51:49]process_action_free close_receipt [13:51:49]json_value_free [13:51:49]json_value_free done [13:51:49]process_json_proto returns [13:51:49]Send response to host [13:51:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156594,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [13:51:49]free response buf [13:51:49]execute_script done [13:51:49]execute_script returns [13:51:49]free content buf [13:51:49]Sock 9.Close socket [13:51:49]Sock 9.Thread stoped [13:51:50]OFD Sender: No OFD packet to send [13:51:55]OFD Sender: No OFD packet to send [13:52:00]OFD Sender: No OFD packet to send [13:52:05]OFD Sender: No OFD packet to send [13:52:10]OFD Sender: No OFD packet to send [13:52:15]OFD Sender: No OFD packet to send [13:52:20]OFD Sender: No OFD packet to send [13:52:25]OFD Sender: No OFD packet to send [13:52:30]OFD Sender: No OFD packet to send [13:52:35]OFD Sender: No OFD packet to send [13:52:40]OFD Sender: No OFD packet to send [13:52:45]OFD Sender: No OFD packet to send [13:52:50]OFD Sender: No OFD packet to send [13:52:55]OFD Sender: No OFD packet to send [13:53:00]OFD Sender: No OFD packet to send [13:53:05]OFD Sender: No OFD packet to send [13:53:10]OFD Sender: No OFD packet to send [13:53:15]OFD Sender: No OFD packet to send [13:53:20]OFD Sender: No OFD packet to send [13:53:25]OFD Sender: No OFD packet to send [13:53:30]OFD Sender: No OFD packet to send [13:53:35]OFD Sender: No OFD packet to send [13:53:40]OFD Sender: No OFD packet to send [13:53:45]OFD Sender: No OFD packet to send [13:53:50]OFD Sender: No OFD packet to send [13:53:55]OFD Sender: No OFD packet to send [13:54:00]OFD Sender: No OFD packet to send [13:54:05]OFD Sender: No OFD packet to send [13:54:10]OFD Sender: No OFD packet to send [13:54:15]OFD Sender: No OFD packet to send [13:54:20]OFD Sender: No OFD packet to send [13:54:25]OFD Sender: No OFD packet to send [13:54:30]OFD Sender: No OFD packet to send [13:54:33]ConnectInit Can't connect to host [13:54:35]OFD Sender: No OFD packet to send [13:54:40]OFD Sender: No OFD packet to send [13:54:45]OFD Sender: No OFD packet to send [13:54:50]OFD Sender: No OFD packet to send [13:54:55]OFD Sender: No OFD packet to send [13:55:00]OFD Sender: No OFD packet to send [13:55:05]OFD Sender: No OFD packet to send [13:55:10]OFD Sender: No OFD packet to send [13:55:15]OFD Sender: No OFD packet to send [13:55:20]OFD Sender: No OFD packet to send [13:55:25]OFD Sender: No OFD packet to send [13:55:30]OFD Sender: No OFD packet to send [13:55:35]OFD Sender: No OFD packet to send [13:55:36]accept exits with 10 [13:55:36]New connection [13:55:36]New thread 3066977636 created [13:55:36]Thread 3066834276 joined [13:55:36]Waiting for new connection... [13:55:36] Sock 10.Parse request [13:55:36]Sock 10.Check first char [13:55:36]Sock 10.First char is OK [13:55:36]request: POST /json_proto HTTP/1.0 [13:55:36]Method: POST [13:55:36]URL: /json_proto [13:55:36]Method is POST - this is cgi request [13:55:36]url: /json_proto [13:55:36]query_string will be loaded in cgi processing [13:55:36]execute_cgi json_proto POST (null) [13:55:36]execute_cgi path=json_proto method=POST [13:55:36]POST find Content-Length [13:55:36]Host: 172.17.63.3:8080 [13:55:36]Content-Length: 676 [13:55:36]Content-Type: application/json [13:55:36] [13:55:36]POST finish read [13:55:36]Found Content-Length = 676 [13:55:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99409", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:55:36]execute_script... [13: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)99409", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:55:36]POST & json_proto [13:55:36]process_json_proto [13:55:36]json parsed OK: [13:55:36]protocol is kg_v1.0 [13:55:36]action value=close_receipt [13:55:36]process_action close_receipt [13:55:36]cmd_close_receipt [13:55:36]MH_GetDate [13:55:36]Write to MH i2c: F0 00 00 6D 5A B6 [13:55:36]Write i2c OK [13:55:36]MH_I2C_Read... [13:55:36]Read from MH i2c: F0 [13:55:36]MH_I2C_Read... [13:55:36]Read from MH i2c: F0 09 00 [13:55:36]MH_I2C_Read... [13:55:36]Read from MH i2c: F0 09 00 6D 5A 00 5E 46 1E 67 50 D1 6C 64 D9 [13:55:36]GetLastDocTimeStamp 1730037113 [13:55:36]current date 1730037342 [13:55:36]FM_GetShiftState [13:55:36]SAM_PROTO_GetShiftState [13:55:36]wFMCommunicate request_size=4 [13:55:36]MH_SAM_APDU [13:55:36]CAPDU: 80 13 01 00 [13:55:36]Write to MH i2c: E2 08 00 6E 5A 80 13 01 00 00 00 00 00 45 [13:55:36]Write i2c OK [13:55:36]MH_I2C_Read... [13:55:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:36]Read from MH i2c: E2 [13:55:36]MH_I2C_Read... [13:55:36]Read from MH i2c: E2 0E 00 [13:55:36]MH_I2C_Read... [13:55:36]Read from MH i2c: E2 0E 00 6E 5A 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 12 [13:55:36]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [13:55:36]wFMCommunicate OK [13:55:36]SAM_PROTO_GetShiftState done [13:55:36]FM_GetShiftState done [13:55:36]opened in 1729989044 [13:55:36]opened+sec_in_day 1730075444 [13:55:36]quantity*price = 50041 [13:55:36]sum+1 = 50042 [13:55:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 146 27.10.2024 13:55 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156595 ФПД: 274046599645215 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T135542&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156595&fm=274046599645215&tin=02508201610067®Number=0000000000091693&sum=50000 [13:55:37]StoreToDocumentArchive [13:55:37]shift 537 fd 156595 [13:55:37]save to /storage/0537/doc_00156595 [13:55:37]save last doc name /storage/0537/doc_00156595 to /storage/kkm_last_doc_name [13:55:37]save OK [13:55:37]Clear old archive folders... [13:55:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:55:37]tlvbuf is 01807860 [13:55:37]SAM_PROTO_ClearQueue [13:55:37]wFMCommunicate request_size=4 [13:55:37]MH_SAM_APDU [13:55:37]CAPDU: 80 09 00 00 [13:55:37]Write to MH i2c: E2 08 00 7B 5A 80 09 00 00 00 00 00 00 47 [13:55:37]Write i2c OK [13:55:37]MH_I2C_Read... [13:55:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:55:37]Read from MH i2c: E2 [13:55:37]MH_I2C_Read... [13:55:37]Read from MH i2c: E2 03 00 [13:55:37]MH_I2C_Read... [13:55:37]Read from MH i2c: E2 03 00 7B 5A 00 90 00 49 [13:55:37]RAPDU: 90 00 [13:55:37]wFMCommunicate OK [13:55:37]SAM_PROTO_ClearQueue done [13:55:37]KKMCreateOFDPacket [13:55:37]OFDProtocolAddRootSTLVToBuf [13:55:37]FM_MakeSignedData [13:55:37]FM_MakeSignedData [13:55:37]SAM_PROTO_SignData [13:55:37]wFMCommunicate request_size=4 [13:55:37]MH_SAM_APDU [13:55:37]CAPDU: 80 0D 01 02 [13:55:37]Write to MH i2c: E2 08 00 7C 5A 80 0D 01 02 00 00 00 00 4F [13:55:37]Write i2c OK [13:55:37]MH_I2C_Read... [13:55:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:55:37]Read from MH i2c: E2 [13:55:37]MH_I2C_Read... [13:55:37]Read from MH i2c: E2 03 00 [13:55:37]MH_I2C_Read... [13:55:37]Read from MH i2c: E2 03 00 7C 5A 00 90 00 4A [13:55:37]RAPDU: 90 00 [13:55:37]wFMCommunicate OK [13:55:37]wFMCommunicate request_size=255 [13:55:37]MH_SAM_APDU [13: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 5E 46 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B3 63 02 00 35 04 06 00 F9 [13:55:37]Write to MH i2c: E2 02 01 7D 5A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 5E 46 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B3 63 02 00 35 04 06 00 F9 00 00 CA [13:55:37]Write i2c OK [13:55:37]MH_I2C_Read... [13:55:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:37]Read from MH i2c: E2 [13:55:37]MH_I2C_Read... [13:55:37]Read from MH i2c: E2 03 00 [13:55:37]MH_I2C_Read... [13:55:37]Read from MH i2c: E2 03 00 7D 5A 00 90 00 4B [13:55:37]RAPDU: 90 00 [13:55:37]wFMCommunicate OK [13:55:37]wFMCommunicate request_size=10 [13:55:37]MH_SAM_APDU [13:55:37]CAPDU: 80 0D 02 02 05 3E 72 39 48 1F [13:55:37]Write to MH i2c: E2 0D 00 7E 5A 80 0D 02 02 05 00 3E 72 39 48 1F 00 00 AC [13:55:37]Write i2c OK [13:55:37]MH_I2C_Read... [13:55:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:37]Read from MH i2c: E2 [13:55:37]MH_I2C_Read... [13:55:37]Read from MH i2c: E2 03 00 [13:55:37]MH_I2C_Read... [13:55:37]Read from MH i2c: E2 03 00 7E 5A 00 90 00 4C [13:55:37]RAPDU: 90 00 [13:55:37]wFMCommunicate OK [13:55:37]wFMCommunicate request_size=4 [13:55:37]MH_SAM_APDU [13:55:37]CAPDU: 80 0D 03 02 [13:55:37]Write to MH i2c: E2 08 00 7F 5A 80 0D 03 02 00 00 00 00 54 [13:55:37]Write i2c OK [13:55:37]MH_I2C_Read... [13:55:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:55:37]Read from MH i2c: E2 [13:55:37]MH_I2C_Read... [13:55:37]Read from MH i2c: E2 0B 00 [13:55:37]MH_I2C_Read... [13:55:37]Read from MH i2c: E2 0B 00 7F 5A 00 34 D8 AE 02 7A E4 4F D4 90 00 92 [13:55:37]RAPDU: 34 D8 AE 02 7A E4 4F D4 90 00 [13:55:37]wFMCommunicate OK [13:55:37]SAM_PROTO_SignData done [13:55:37]FM_MakeSignedData done [13:55:37]CreateOFDProtocolMessage [13:55:37]wFMCommunicate request_size=4 [13:55:37]MH_SAM_APDU [13:55:37]CAPDU: 80 11 00 00 [13:55:37]Write to MH i2c: E2 08 00 80 5A 80 11 00 00 00 00 00 00 54 [13:55:37]Write i2c OK [13:55:37]MH_I2C_Read... [13:55:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:37]Read from MH i2c: E2 [13:55:37]MH_I2C_Read... [13:55:37]Read from MH i2c: E2 17 00 [13:55:37]MH_I2C_Read... [13:55:37]Read from MH i2c: E2 17 00 80 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 A9 [13:55:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:55:37]wFMCommunicate OK [13:55:37]CreateOFDProtocolMessage done [13:55:37]OFDSenderStorePacket 156595 [13:55:37]StoreOFDPacket docnum=156595 [13:55:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 D7 0B 07 01 1F FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 5E 46 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B3 63 02 00 35 04 06 00 F9 3E 72 39 48 1F 34 D8 AE 02 7A E4 4F D4 [13:55:37]CheckFolder [13:55:37]dirname=/storage/ofd_packets [13:55:37]CheckFolder done [13:55:37]ProducePacketName [13:55:37]name=ofd_packets/00156595 [13:55:37]NVStorageSaveData ofd_packets/00156595 [13:55:37]File name is /storage/ofd_packets/00156595 [13:55:37]Write 301 bytes [13:55:37]NVStorageSaveData done [13:55:37]OFDSenderStorePacket done [13:55:37]KKMCreateOFDPacket done [13:55:37]NVStorageSaveData kkm_last_timestamp [13:55:37]File name is /storage/kkm_last_timestamp [13:55:37]Write 4 bytes [13:55:37]NVStorageSaveData done [13:55:37]ExternCall_PrintAddStr [13:55:37]wPrintStart [13:55:37]Write to MH i2c: 01 00 00 81 5A DB [13:55:37]Write i2c OK [13:55:37]MH_I2C_Read... [13:55:37]Read from MH i2c: 01 [13:55:37]MH_I2C_Read... [13:55:37]Read from MH i2c: 01 07 00 [13:55:37]MH_I2C_Read... [13:55:37]Read from MH i2c: 01 07 00 81 5A 00 00 00 00 00 FF 0F F0 [13:55:37]RasterBufferAndPrint [13:55:37]line Счет N : (1)99409 [13:55:37]line ИНН: 02508201610067 [13:55:37]line Контрольно-Кассовый Чек [13:55:37]line ПРОДАЖА [13:55:37]line ТРК (МРК, ГНК) : 21 [13:55:37]line Товар: 2710124130 [13:55:37]line Аи-92-К-5 [13:55:37]line 7.480 * 66.90 [13:55:37]line = 500.41 [13:55:37]line НДС 12% НСП 1% [13:55:37]line > о реализуемом товаре [13:55:37]line ОКРУГЛЕНИЕ: -0.41 [13:55:37]line ИТОГО: 500.00 [13:55:37]line Внесено: 500.00 [13:55:37]line СДАЧА: 0.00 [13:55:37]line НСП 1% : 4.43 [13:55:37]line НДС 12% : 53.14 [13:55:37]line Наличными: 500.00 [13:55:37]line Безнал.: 0.00 [13:55:37]line Место: АЗС № 143 "Партнер Нефть" [13:55:37]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [13:55:37]line СНО: Общий режим [13:55:37]line Чек 146 27.10.2024 13:55 [13:55:37]line Смена: 537 ФФД: 1.0 [13:55:37]line ЗНМ: 0300000096 [13:55:37]line РНМ: 0000000000091693 [13:55:37]line Версия ККМ: 001 [13:55:37]line ФМ: 0000000000871792 [13:55:37]line ФД: 156595 [13:55:37]line ФПД: 274046599645215 [13:55:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T135542&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156595&fm=274046599645215&tin=02508201610067®Number=0000000000091693&sum=50000 [13:55:38]OFD Sender: Processing packet 156595 [packets to send 31, broken 30] [13:55:38]ProducePacketName [13:55:38]name=ofd_packets/00156595 [13:55:38]OFD Sender: To server: pG, [13:55:38]CommunicateWithHost lk.salyk.kg:30040 [13:55:38]ConnectInit lk.salyk.kg [13:55:38]written 0, free lines is 4095 [13:55:38]Connected sock=9 [13: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 31 37 39 32 0F 01 00 00 D7 0B 07 01 1F FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 5E 46 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B3 63 02 00 35 04 06 00 F9 3E 72 39 48 1F 34 D8 AE 02 7A E4 4F D4 [13:55:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 F4 12 47 00 4E 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B3 63 02 00 F4 03 04 00 CD EB 1D 67 B6 04 01 00 00 15 10 83 8F AA 74 C0 86 [13:55:38]CommunicateWithHost err = 0 [13:55:38]CheckOFDResponse [13:55:38]1017 (14) - 77093643461234 [13:55:38]1041 (16) - 0000000000871792 [13:55:38]1040 (4) - 156595 [13:55:38]1012 (4) - 27.10.2024 07:29 [13:55:38]1206 (1) - 0 [13:55:38]OFD Sender: Remove packet 156595 [13:55:38]ProducePacketName [13:55:38]name=ofd_packets/00156595 [13:55:38]NVStorageDeleteData [13:55:38]Write to MH i2c: 01 00 00 AC 5A 06 [13:55:38]Write i2c OK [13:55:38]MH_I2C_Read... [13:55:38]Read from MH i2c: 01 [13:55:38]MH_I2C_Read... [13:55:38]Read from MH i2c: 01 07 00 [13:55:38]MH_I2C_Read... [13:55:38]Read from MH i2c: 01 07 00 AC 5A 00 00 00 00 00 DA 0C F3 [13:55:38]RasterBufferAndPrint [13:55:38]line [13:55:38]line [13:55:38]line [13:55:38]line [13:55:38]line [13:55:38]written 0, free lines is 3297 [13:55:38]process_action close_receipt done [13:55:38]requested_data is exist [13:55:38]produce_requested_data [13:55:38]requested_item fm.sn is exist - process it [13:55:38]wFMCommunicate request_size=4 [13:55:38]MH_SAM_APDU [13:55:38]CAPDU: 80 11 00 00 [13:55:38]Write to MH i2c: E2 08 00 B3 5A 80 11 00 00 00 00 00 00 87 [13:55:38]Write i2c OK [13:55:38]MH_I2C_Read... [13:55:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:38]Read from MH i2c: E2 [13:55:38]MH_I2C_Read... [13:55:38]Read from MH i2c: E2 17 00 [13:55:38]MH_I2C_Read... [13:55:38]Read from MH i2c: E2 17 00 B3 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 DC [13:55:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:55:38]wFMCommunicate OK [13:55:38]requested_item fd.num is exist - process it [13:55:38]SAM_PROTO_GetFieldsCounters [13:55:38]wFMCommunicate request_size=4 [13:55:38]MH_SAM_APDU [13:55:38]CAPDU: 80 13 00 00 [13:55:38]Write to MH i2c: E2 08 00 B4 5A 80 13 00 00 00 00 00 00 8A [13:55:38]Write i2c OK [13:55:38]MH_I2C_Read... [13:55:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:55:38]Read from MH i2c: E2 [13:55:38]MH_I2C_Read... [13:55:38]Read from MH i2c: E2 62 00 [13:55:38]MH_I2C_Read... [13:55:38]Read from MH i2c: E2 62 00 B4 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 B3 63 02 00 0E 04 04 00 19 02 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 99 [13:55:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 B3 63 02 00 0E 04 04 00 19 02 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 [13:55:38]wFMCommunicate OK [13:55:38]SAM_PROTO_GetFieldsCounters done [13:55:38]requested_item shift.num is exist - process it [13:55:38]requested_item shift.opened is exist - process it [13:55:38]req_shift_opened [13:55:38]FM_GetShiftState [13:55:38]SAM_PROTO_GetShiftState [13:55:38]wFMCommunicate request_size=4 [13:55:38]MH_SAM_APDU [13:55:38]CAPDU: 80 13 01 00 [13:55:38]Write to MH i2c: E2 08 00 B5 5A 80 13 01 00 00 00 00 00 8C [13:55:38]Write i2c OK [13:55:38]MH_I2C_Read... [13:55:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:38]Read from MH i2c: E2 [13:55:38]MH_I2C_Read... [13:55:38]Read from MH i2c: E2 0E 00 [13:55:38]MH_I2C_Read... [13:55:38]Read from MH i2c: E2 0E 00 B5 5A 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 59 [13:55:38]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [13:55:38]wFMCommunicate OK [13:55:38]SAM_PROTO_GetShiftState done [13:55:38]FM_GetShiftState done [13:55:38]req_shift_opened done [13:55:38]requested_item shift.open_date is exist - process it [13:55:38]req_shift_open_date [13:55:38]req_shift_open_date done [13:55:38]produce_requested_data done [13:55:38]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156595,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [13:55:38]process_action_free close_receipt [13:55:38]json_value_free [13:55:38]json_value_free done [13:55:38]process_json_proto returns [13:55:38]Send response to host [13:55:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156595,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [13:55:38]free response buf [13:55:38]execute_script done [13:55:38]execute_script returns [13:55:38]free content buf [13:55:38]Sock 10.Close socket [13:55:38]Sock 10.Thread stoped [13:55:38]OFD Sender: No OFD packet to send [13:55:43]OFD Sender: No OFD packet to send [13:55:48]OFD Sender: No OFD packet to send [13:55:53]OFD Sender: No OFD packet to send [13:55:58]OFD Sender: No OFD packet to send [13:56:03]OFD Sender: No OFD packet to send [13:56:08]OFD Sender: No OFD packet to send [13:56:13]OFD Sender: No OFD packet to send [13:56:18]OFD Sender: No OFD packet to send [13:56:23]OFD Sender: No OFD packet to send [13:56:28]OFD Sender: No OFD packet to send [13:56:33]OFD Sender: No OFD packet to send [13:56:38]OFD Sender: No OFD packet to send [13:56:43]OFD Sender: No OFD packet to send [13:56:48]OFD Sender: No OFD packet to send [13:56:53]OFD Sender: No OFD packet to send [13:56:58]OFD Sender: No OFD packet to send [13:57:03]OFD Sender: No OFD packet to send [13:57:08]OFD Sender: No OFD packet to send [13:57:13]OFD Sender: No OFD packet to send [13:57:19]OFD Sender: No OFD packet to send [13:57:24]OFD Sender: No OFD packet to send [13:57:29]OFD Sender: No OFD packet to send [13:57:34]OFD Sender: No OFD packet to send [13:57:39]OFD Sender: No OFD packet to send [13:57:44]OFD Sender: No OFD packet to send [13:57:49]OFD Sender: No OFD packet to send [13:57:54]OFD Sender: No OFD packet to send [13:57:59]OFD Sender: No OFD packet to send [13:58:04]OFD Sender: No OFD packet to send [13:58:09]OFD Sender: No OFD packet to send [13:58:14]OFD Sender: No OFD packet to send [13:58:19]OFD Sender: No OFD packet to send [13:58:24]OFD Sender: No OFD packet to send [13:58:29]OFD Sender: No OFD packet to send [13:58:34]OFD Sender: No OFD packet to send [13:58:39]OFD Sender: No OFD packet to send [13:58:44]OFD Sender: No OFD packet to send [13:58:49]OFD Sender: No OFD packet to send [13:58:54]OFD Sender: No OFD packet to send [13:58:59]OFD Sender: No OFD packet to send [13:59:04]OFD Sender: No OFD packet to send [13:59:09]OFD Sender: No OFD packet to send [13:59:14]OFD Sender: No OFD packet to send [13:59:19]OFD Sender: No OFD packet to send [13:59:24]OFD Sender: No OFD packet to send [13:59:29]OFD Sender: No OFD packet to send [13:59:34]OFD Sender: No OFD packet to send [13:59:39]OFD Sender: No OFD packet to send [13:59:44]OFD Sender: No OFD packet to send [13:59:49]OFD Sender: No OFD packet to send [13:59:54]OFD Sender: No OFD packet to send [13:59:56]accept exits with 8 [13:59:56]New connection [13:59:56]New thread 3066834276 created [13:59:56]Thread 3066977636 joined [13:59:56]Waiting for new connection... [13:59:56] Sock 8.Parse request [13:59:56]Sock 8.Check first char [13:59:56]Sock 8.First char is OK [13:59:56]request: POST /json_proto HTTP/1.0 [13:59:56]Method: POST [13:59:56]URL: /json_proto [13:59:56]Method is POST - this is cgi request [13:59:56]url: /json_proto [13:59:56]query_string will be loaded in cgi processing [13:59:56]execute_cgi json_proto POST (null) [13:59:56]execute_cgi path=json_proto method=POST [13:59:56]POST find Content-Length [13:59:56]Host: 172.17.63.3:8080 [13:59:56]Content-Length: 765 [13:59:56]Content-Type: application/json [13:59:56] [13:59:56]POST finish read [13:59:56]Found Content-Length = 765 [13:59:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99410", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:59:56]execute_script... [13:59: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)99410", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:59:56]POST & json_proto [13:59:56]process_json_proto [13:59:56]json parsed OK: [13:59:56]protocol is kg_v1.0 [13:59:56]action value=close_receipt [13:59:56]process_action close_receipt [13:59:56]cmd_close_receipt [13:59:56]MH_GetDate [13:59:56]Write to MH i2c: F0 00 00 B6 5A FF [13:59:56]Write i2c OK [13:59:56]MH_I2C_Read... [13:59:56]Read from MH i2c: F0 [13:59:56]MH_I2C_Read... [13:59:56]Read from MH i2c: F0 09 00 [13:59:56]MH_I2C_Read... [13:59:56]Read from MH i2c: F0 09 00 B6 5A 00 62 47 1E 67 50 D1 6C 64 27 [13:59:56]GetLastDocTimeStamp 1730037342 [13:59:56]current date 1730037602 [13:59:56]FM_GetShiftState [13:59:56]SAM_PROTO_GetShiftState [13:59:56]wFMCommunicate request_size=4 [13:59:56]MH_SAM_APDU [13:59:56]CAPDU: 80 13 01 00 [13:59:56]Write to MH i2c: E2 08 00 B7 5A 80 13 01 00 00 00 00 00 8E [13:59:56]Write i2c OK [13:59:56]MH_I2C_Read... [13:59:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:59:56]Read from MH i2c: E2 [13:59:56]MH_I2C_Read... [13:59:56]Read from MH i2c: E2 0E 00 [13:59:56]MH_I2C_Read... [13:59:56]Read from MH i2c: E2 0E 00 B7 5A 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 5B [13:59:56]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [13:59:56]wFMCommunicate OK [13:59:56]SAM_PROTO_GetShiftState done [13:59:56]FM_GetShiftState done [13:59:56]opened in 1729989044 [13:59:56]opened+sec_in_day 1730075444 [13:59:56]quantity*price = 40006 [13:59:56]sum+1 = 40007 [13:59:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.06 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 0.00 Безнал.: 400.06 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 147 27.10.2024 14:00 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 156596 ФПД: 253497279815832 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T140002&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156596&fm=253497279815832&tin=02508201610067®Number=0000000000091693&sum=40006 [13:59:57]StoreToDocumentArchive [13:59:57]shift 537 fd 156596 [13:59:57]save to /storage/0537/doc_00156596 [13:59:57]save last doc name /storage/0537/doc_00156596 to /storage/kkm_last_doc_name [13:59:57]save OK [13:59:57]Clear old archive folders... [13:59:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:59:57]tlvbuf is 01807420 [13:59:57]SAM_PROTO_ClearQueue [13:59:57]wFMCommunicate request_size=4 [13:59:57]MH_SAM_APDU [13:59:57]CAPDU: 80 09 00 00 [13:59:57]Write to MH i2c: E2 08 00 C4 5A 80 09 00 00 00 00 00 00 90 [13:59:57]Write i2c OK [13:59:57]MH_I2C_Read... [13:59:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:59:57]Read from MH i2c: E2 [13:59:57]MH_I2C_Read... [13:59:57]Read from MH i2c: E2 03 00 [13:59:57]MH_I2C_Read... [13:59:57]Read from MH i2c: E2 03 00 C4 5A 00 90 00 92 [13:59:57]RAPDU: 90 00 [13:59:57]wFMCommunicate OK [13:59:57]SAM_PROTO_ClearQueue done [13:59:57]KKMCreateOFDPacket [13:59:57]OFDProtocolAddRootSTLVToBuf [13:59:57]FM_MakeSignedData [13:59:57]FM_MakeSignedData [13:59:57]SAM_PROTO_SignData [13:59:57]wFMCommunicate request_size=4 [13:59:57]MH_SAM_APDU [13:59:57]CAPDU: 80 0D 01 02 [13:59:57]Write to MH i2c: E2 08 00 C5 5A 80 0D 01 02 00 00 00 00 98 [13:59:57]Write i2c OK [13:59:57]MH_I2C_Read... [13:59:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:59:57]Read from MH i2c: E2 [13:59:57]MH_I2C_Read... [13:59:57]Read from MH i2c: E2 03 00 [13:59:57]MH_I2C_Read... [13:59:57]Read from MH i2c: E2 03 00 C5 5A 00 90 00 93 [13:59:57]RAPDU: 90 00 [13:59:57]wFMCommunicate OK [13:59:57]wFMCommunicate request_size=255 [13:59:57]MH_SAM_APDU [13:59: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 62 47 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B4 63 02 00 35 04 06 00 E6 [13:59:57]Write to MH i2c: E2 02 01 C6 5A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 62 47 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B4 63 02 00 35 04 06 00 E6 00 00 E2 [13:59:57]Write i2c OK [13:59:57]MH_I2C_Read... [13:59:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:59:58]Read from MH i2c: E2 [13:59:58]MH_I2C_Read... [13:59:58]Read from MH i2c: E2 03 00 [13:59:58]MH_I2C_Read... [13:59:58]Read from MH i2c: E2 03 00 C6 5A 00 90 00 94 [13:59:58]RAPDU: 90 00 [13:59:58]wFMCommunicate OK [13:59:58]wFMCommunicate request_size=10 [13:59:58]MH_SAM_APDU [13:59:58]CAPDU: 80 0D 02 02 05 8D EF 50 A0 98 [13:59:58]Write to MH i2c: E2 0D 00 C7 5A 80 0D 02 02 05 00 8D EF 50 A0 98 00 00 A9 [13:59:58]Write i2c OK [13:59:58]MH_I2C_Read... [13:59:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:59:58]Read from MH i2c: E2 [13:59:58]MH_I2C_Read... [13:59:58]Read from MH i2c: E2 03 00 [13:59:58]MH_I2C_Read... [13:59:58]Read from MH i2c: E2 03 00 C7 5A 00 90 00 95 [13:59:58]RAPDU: 90 00 [13:59:58]wFMCommunicate OK [13:59:58]wFMCommunicate request_size=4 [13:59:58]MH_SAM_APDU [13:59:58]CAPDU: 80 0D 03 02 [13:59:58]Write to MH i2c: E2 08 00 C8 5A 80 0D 03 02 00 00 00 00 9D [13:59:58]Write i2c OK [13:59:58]MH_I2C_Read... [13:59:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:59:58]Read from MH i2c: E2 [13:59:58]MH_I2C_Read... [13:59:58]Read from MH i2c: E2 0B 00 [13:59:58]MH_I2C_Read... [13:59:58]Read from MH i2c: E2 0B 00 C8 5A 00 27 CA 1E ED AF 79 FA 4F 90 00 0B [13:59:58]RAPDU: 27 CA 1E ED AF 79 FA 4F 90 00 [13:59:58]wFMCommunicate OK [13:59:58]SAM_PROTO_SignData done [13:59:58]FM_MakeSignedData done [13:59:58]CreateOFDProtocolMessage [13:59:58]wFMCommunicate request_size=4 [13:59:58]MH_SAM_APDU [13:59:58]CAPDU: 80 11 00 00 [13:59:58]Write to MH i2c: E2 08 00 C9 5A 80 11 00 00 00 00 00 00 9D [13:59:58]Write i2c OK [13:59:58]MH_I2C_Read... [13:59:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:59:58]Read from MH i2c: E2 [13:59:58]MH_I2C_Read... [13:59:58]Read from MH i2c: E2 17 00 [13:59:58]MH_I2C_Read... [13:59:58]Read from MH i2c: E2 17 00 C9 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 F2 [13:59:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:59:58]wFMCommunicate OK [13:59:58]CreateOFDProtocolMessage done [13:59:58]OFDSenderStorePacket 156596 [13:59:58]StoreOFDPacket docnum=156596 [13:59:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 D0 3A 07 01 28 E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 62 47 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B4 63 02 00 35 04 06 00 E6 8D EF 50 A0 98 27 CA 1E ED AF 79 FA 4F [13:59:58]CheckFolder [13:59:58]dirname=/storage/ofd_packets [13:59:58]CheckFolder done [13:59:58]ProducePacketName [13:59:58]name=ofd_packets/00156596 [13:59:58]NVStorageSaveData ofd_packets/00156596 [13:59:58]File name is /storage/ofd_packets/00156596 [13:59:58]Write 301 bytes [13:59:58]NVStorageSaveData done [13:59:58]OFDSenderStorePacket done [13:59:58]KKMCreateOFDPacket done [13:59:58]NVStorageSaveData kkm_last_timestamp [13:59:58]File name is /storage/kkm_last_timestamp [13:59:58]Write 4 bytes [13:59:58]NVStorageSaveData done [13:59:58]ExternCall_PrintAddStr [13:59:58]wPrintStart [13:59:58]Write to MH i2c: 01 00 00 CA 5A 24 [13:59:58]Write i2c OK [13:59:58]MH_I2C_Read... [13:59:58]Read from MH i2c: 01 [13:59:58]MH_I2C_Read... [13:59:58]Read from MH i2c: 01 07 00 [13:59:58]MH_I2C_Read... [13:59:58]Read from MH i2c: 01 07 00 CA 5A 00 00 00 00 00 FF 0F 39 [13:59:58]RasterBufferAndPrint [13:59:58]line Счет N : (1)99410 [13:59:58]line ИНН: 02508201610067 [13:59:58]line Контрольно-Кассовый Чек [13:59:58]line ПРОДАЖА [13:59:58]line ТРК (МРК, ГНК) : 31 [13:59:58]line Товар: 2710124130 [13:59:58]line Аи-92-К-5 [13:59:58]line 5.980 * 66.90 [13:59:58]line = 400.06 [13:59:58]line НДС 12% НСП 1% [13:59:58]line > о реализуемом товаре [13:59:58]line ИТОГО: 400.06 [13:59:58]line НСП 1% : 3.54 [13:59:58]line НДС 12% : 42.48 [13:59:58]line Наличными: 0.00 [13:59:58]line Безнал.: 400.06 [13:59:58]line Место: АЗС № 143 "Партнер Нефть" [13:59:58]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [13:59:58]line СНО: Общий режим [13:59:58]line Чек 147 27.10.2024 14:00 [13:59:58]line Смена: 537 ФФД: 1.0 [13:59:58]line ЗНМ: 0300000096 [13:59:58]line РНМ: 0000000000091693 [13:59:58]line Версия ККМ: 001 [13:59:58]line Платежная система: Mbank [13:59:58]line ФМ: 0000000000871792 [13:59:58]line ФД: 156596 [13:59:58]line ФПД: 253497279815832 [13:59:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T140002&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156596&fm=253497279815832&tin=02508201610067®Number=0000000000091693&sum=40006 [13:59:58]OFD Sender: Processing packet 156596 [packets to send 31, broken 30] [13:59:58]ProducePacketName [13:59:58]name=ofd_packets/00156596 [13:59:58]OFD Sender: To server: pG, [13:59:58]CommunicateWithHost lk.salyk.kg:30040 [13:59:58]ConnectInit lk.salyk.kg [13:59:58]written 0, free lines is 4095 [13:59:58]Connected sock=10 [13:59:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 D0 3A 07 01 28 E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 62 47 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B4 63 02 00 35 04 06 00 E6 8D EF 50 A0 98 27 CA 1E ED AF 79 FA 4F [13:59:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 37 B8 47 00 6F 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 31 37 39 32 10 04 04 00 B4 63 02 00 F4 03 04 00 D2 EC 1D 67 B6 04 01 00 00 EC 2C B8 CB FA 7C 48 83 [13:59:59]CommunicateWithHost err = 0 [13:59:59]CheckOFDResponse [13:59:59]1017 (14) - 77093643461234 [13:59:59]1041 (16) - 0000000000871792 [13:59:59]1040 (4) - 156596 [13:59:59]1012 (4) - 27.10.2024 07:33 [13:59:59]1206 (1) - 0 [13:59:59]OFD Sender: Remove packet 156596 [13:59:59]ProducePacketName [13:59:59]name=ofd_packets/00156596 [13:59:59]NVStorageDeleteData [13:59:59]Write to MH i2c: 01 00 00 F3 5A 4D [13:59:59]Write i2c OK [13:59:59]MH_I2C_Read... [13:59:59]Read from MH i2c: 01 [13:59:59]MH_I2C_Read... [13:59:59]Read from MH i2c: 01 07 00 [13:59:59]MH_I2C_Read... [13:59:59]Read from MH i2c: 01 07 00 F3 5A 00 00 00 00 00 0A 0D 6B [13:59:59]RasterBufferAndPrint [13:59:59]line [13:59:59]line [13:59:59]line [13:59:59]line [13:59:59]line [13:59:59]written 0, free lines is 3344 [13:59:59]process_action close_receipt done [13:59:59]requested_data is exist [13:59:59]produce_requested_data [13:59:59]requested_item fm.sn is exist - process it [13:59:59]wFMCommunicate request_size=4 [13:59:59]MH_SAM_APDU [13:59:59]CAPDU: 80 11 00 00 [13:59:59]Write to MH i2c: E2 08 00 FA 5A 80 11 00 00 00 00 00 00 CE [13:59:59]Write i2c OK [13:59:59]MH_I2C_Read... [13:59:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:59:59]Read from MH i2c: E2 [13:59:59]MH_I2C_Read... [13:59:59]Read from MH i2c: E2 17 00 [13:59:59]MH_I2C_Read... [13:59:59]Read from MH i2c: E2 17 00 FA 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 23 [13:59:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [13:59:59]wFMCommunicate OK [13:59:59]requested_item fd.num is exist - process it [13:59:59]SAM_PROTO_GetFieldsCounters [13:59:59]wFMCommunicate request_size=4 [13:59:59]MH_SAM_APDU [13:59:59]CAPDU: 80 13 00 00 [13:59:59]Write to MH i2c: E2 08 00 FB 5A 80 13 00 00 00 00 00 00 D1 [13:59:59]Write i2c OK [13:59:59]MH_I2C_Read... [13:59:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:59:59]Read from MH i2c: E2 [13:59:59]MH_I2C_Read... [13:59:59]Read from MH i2c: E2 62 00 [13:59:59]MH_I2C_Read... [13:59:59]Read from MH i2c: E2 62 00 FB 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 B4 63 02 00 0E 04 04 00 19 02 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 E4 [13:59:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 B4 63 02 00 0E 04 04 00 19 02 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 [13:59:59]wFMCommunicate OK [13:59:59]SAM_PROTO_GetFieldsCounters done [13:59:59]requested_item shift.num is exist - process it [13:59:59]requested_item shift.opened is exist - process it [13:59:59]req_shift_opened [13:59:59]FM_GetShiftState [13:59:59]SAM_PROTO_GetShiftState [13:59:59]wFMCommunicate request_size=4 [13:59:59]MH_SAM_APDU [13:59:59]CAPDU: 80 13 01 00 [13:59:59]Write to MH i2c: E2 08 00 FC 5A 80 13 01 00 00 00 00 00 D3 [13:59:59]Write i2c OK [13:59:59]MH_I2C_Read... [13:59:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:59:59]Read from MH i2c: E2 [13:59:59]MH_I2C_Read... [13:59:59]Read from MH i2c: E2 0E 00 [13:59:59]MH_I2C_Read... [13:59:59]Read from MH i2c: E2 0E 00 FC 5A 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 A0 [13:59:59]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [13:59:59]wFMCommunicate OK [13:59:59]SAM_PROTO_GetShiftState done [13:59:59]FM_GetShiftState done [13:59:59]req_shift_opened done [13:59:59]requested_item shift.open_date is exist - process it [13:59:59]req_shift_open_date [13:59:59]req_shift_open_date done [13:59:59]produce_requested_data done [13:59:59]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156596,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [13:59:59]process_action_free close_receipt [13:59:59]json_value_free [13:59:59]json_value_free done [13:59:59]process_json_proto returns [13:59:59]Send response to host [13:59:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156596,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [13:59:59]free response buf [13:59:59]execute_script done [13:59:59]execute_script returns [13:59:59]free content buf [13:59:59]Sock 8.Close socket [13:59:59]Sock 8.Thread stoped [13:59:59]OFD Sender: No OFD packet to send [14:00:04]OFD Sender: No OFD packet to send [14:00:09]OFD Sender: No OFD packet to send [14:00:14]OFD Sender: No OFD packet to send [14:00:19]OFD Sender: No OFD packet to send [14:00:24]OFD Sender: No OFD packet to send [14:00:29]accept exits with 9 [14:00:29]New connection [14:00:29]New thread 3066977636 created [14:00:29]Thread 3066834276 joined [14:00:29]Waiting for new connection... [14:00:29] Sock 9.Parse request [14:00:29]Sock 9.Check first char [14:00:29]Sock 9.First char is OK [14:00:29]request: POST /json_proto HTTP/1.0 [14:00:29]Method: POST [14:00:29]URL: /json_proto [14:00:29]Method is POST - this is cgi request [14:00:29]url: /json_proto [14:00:29]query_string will be loaded in cgi processing [14:00:29]execute_cgi json_proto POST (null) [14:00:29]execute_cgi path=json_proto method=POST [14:00:29]POST find Content-Length [14:00:29]Host: 172.17.63.3:8080 [14:00:29]Content-Length: 676 [14:00:29]Content-Type: application/json [14:00:29] [14:00:29]POST finish read [14:00:29]Found Content-Length = 676 [14:00:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99411", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:00:29]execute_script... [14:00: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)99411", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:00:29]POST & json_proto [14:00:29]process_json_proto [14:00:29]json parsed OK: [14:00:29]protocol is kg_v1.0 [14:00:29]action value=close_receipt [14:00:29]process_action close_receipt [14:00:29]cmd_close_receipt [14:00:29]MH_GetDate [14:00:29]Write to MH i2c: F0 00 00 FD 5A 46 [14:00:29]Write i2c OK [14:00:29]MH_I2C_Read... [14:00:29]Read from MH i2c: F0 [14:00:29]MH_I2C_Read... [14:00:29]Read from MH i2c: F0 09 00 [14:00:29]MH_I2C_Read... [14:00:29]Read from MH i2c: F0 09 00 FD 5A 00 83 47 1E 67 50 D1 6C 64 8F [14:00:29]GetLastDocTimeStamp 1730037602 [14:00:29]current date 1730037635 [14:00:29]FM_GetShiftState [14:00:29]SAM_PROTO_GetShiftState [14:00:29]wFMCommunicate request_size=4 [14:00:29]MH_SAM_APDU [14:00:29]CAPDU: 80 13 01 00 [14:00:29]Write to MH i2c: E2 08 00 FE 5A 80 13 01 00 00 00 00 00 D5 [14:00:29]Write i2c OK [14:00:29]MH_I2C_Read... [14:00:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:00:29]Read from MH i2c: E2 [14:00:29]MH_I2C_Read... [14:00:29]Read from MH i2c: E2 0E 00 [14:00:29]MH_I2C_Read... [14:00:29]Read from MH i2c: E2 0E 00 FE 5A 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 A2 [14:00:29]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [14:00:29]wFMCommunicate OK [14:00:29]SAM_PROTO_GetShiftState done [14:00:29]FM_GetShiftState done [14:00:29]opened in 1729989044 [14:00:29]opened+sec_in_day 1730075444 [14:00:29]quantity*price = 20003 [14:00:29]sum+1 = 20004 [14:00:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 148 27.10.2024 14:00 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156597 ФПД: 121022863414683 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T140035&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156597&fm=121022863414683&tin=02508201610067®Number=0000000000091693&sum=20000 [14:00:30]StoreToDocumentArchive [14:00:30]shift 537 fd 156597 [14:00:30]save to /storage/0537/doc_00156597 [14:00:30]save last doc name /storage/0537/doc_00156597 to /storage/kkm_last_doc_name [14:00:30]save OK [14:00:30]Clear old archive folders... [14:00:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:00:30]tlvbuf is 017A9300 [14:00:30]SAM_PROTO_ClearQueue [14:00:30]wFMCommunicate request_size=4 [14:00:30]MH_SAM_APDU [14:00:30]CAPDU: 80 09 00 00 [14:00:30]Write to MH i2c: E2 08 00 0B 5B 80 09 00 00 00 00 00 00 D8 [14:00:30]Write i2c OK [14:00:30]MH_I2C_Read... [14:00:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:00:30]Read from MH i2c: E2 [14:00:30]MH_I2C_Read... [14:00:30]Read from MH i2c: E2 03 00 [14:00:30]MH_I2C_Read... [14:00:30]Read from MH i2c: E2 03 00 0B 5B 00 90 00 DA [14:00:30]RAPDU: 90 00 [14:00:30]wFMCommunicate OK [14:00:30]SAM_PROTO_ClearQueue done [14:00:30]KKMCreateOFDPacket [14:00:30]OFDProtocolAddRootSTLVToBuf [14:00:30]FM_MakeSignedData [14:00:30]FM_MakeSignedData [14:00:30]SAM_PROTO_SignData [14:00:30]wFMCommunicate request_size=4 [14:00:30]MH_SAM_APDU [14:00:30]CAPDU: 80 0D 01 02 [14:00:30]Write to MH i2c: E2 08 00 0C 5B 80 0D 01 02 00 00 00 00 E0 [14:00:30]Write i2c OK [14:00:30]MH_I2C_Read... [14:00:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:00:30]Read from MH i2c: E2 [14:00:30]MH_I2C_Read... [14:00:30]Read from MH i2c: E2 03 00 [14:00:30]MH_I2C_Read... [14:00:30]Read from MH i2c: E2 03 00 0C 5B 00 90 00 DB [14:00:30]RAPDU: 90 00 [14:00:30]wFMCommunicate OK [14:00:30]wFMCommunicate request_size=255 [14:00:30]MH_SAM_APDU [14:00: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 94 00 00 00 F4 03 04 00 83 47 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B5 63 02 00 35 04 06 00 6E [14:00:30]Write to MH i2c: E2 02 01 0D 5B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 94 00 00 00 F4 03 04 00 83 47 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B5 63 02 00 35 04 06 00 6E 00 00 BC [14:00:30]Write i2c OK [14:00:30]MH_I2C_Read... [14:00:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:00:30]Read from MH i2c: E2 [14:00:30]MH_I2C_Read... [14:00:30]Read from MH i2c: E2 03 00 [14:00:30]MH_I2C_Read... [14:00:30]Read from MH i2c: E2 03 00 0D 5B 00 90 00 DC [14:00:30]RAPDU: 90 00 [14:00:30]wFMCommunicate OK [14:00:30]wFMCommunicate request_size=10 [14:00:30]MH_SAM_APDU [14:00:30]CAPDU: 80 0D 02 02 05 11 D4 C8 95 9B [14:00:30]Write to MH i2c: E2 0D 00 0E 5B 80 0D 02 02 05 00 11 D4 C8 95 9B 00 00 CA [14:00:30]Write i2c OK [14:00:30]MH_I2C_Read... [14:00:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:00:31]Read from MH i2c: E2 [14:00:31]MH_I2C_Read... [14:00:31]Read from MH i2c: E2 03 00 [14:00:31]MH_I2C_Read... [14:00:31]Read from MH i2c: E2 03 00 0E 5B 00 90 00 DD [14:00:31]RAPDU: 90 00 [14:00:31]wFMCommunicate OK [14:00:31]wFMCommunicate request_size=4 [14:00:31]MH_SAM_APDU [14:00:31]CAPDU: 80 0D 03 02 [14:00:31]Write to MH i2c: E2 08 00 0F 5B 80 0D 03 02 00 00 00 00 E5 [14:00:31]Write i2c OK [14:00:31]MH_I2C_Read... [14:00:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:00:31]Read from MH i2c: E2 [14:00:31]MH_I2C_Read... [14:00:31]Read from MH i2c: E2 0B 00 [14:00:31]MH_I2C_Read... [14:00:31]Read from MH i2c: E2 0B 00 0F 5B 00 A9 A1 B1 04 DE 1C 59 0F 90 00 47 [14:00:31]RAPDU: A9 A1 B1 04 DE 1C 59 0F 90 00 [14:00:31]wFMCommunicate OK [14:00:31]SAM_PROTO_SignData done [14:00:31]FM_MakeSignedData done [14:00:31]CreateOFDProtocolMessage [14:00:31]wFMCommunicate request_size=4 [14:00:31]MH_SAM_APDU [14:00:31]CAPDU: 80 11 00 00 [14:00:31]Write to MH i2c: E2 08 00 10 5B 80 11 00 00 00 00 00 00 E5 [14:00:31]Write i2c OK [14:00:31]MH_I2C_Read... [14:00:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:00:31]Read from MH i2c: E2 [14:00:31]MH_I2C_Read... [14:00:31]Read from MH i2c: E2 17 00 [14:00:31]MH_I2C_Read... [14:00:31]Read from MH i2c: E2 17 00 10 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 3A [14:00:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:00:31]wFMCommunicate OK [14:00:31]CreateOFDProtocolMessage done [14:00:31]OFDSenderStorePacket 156597 [14:00:31]StoreOFDPacket docnum=156597 [14:00:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 EF 6A 07 01 D6 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 94 00 00 00 F4 03 04 00 83 47 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B5 63 02 00 35 04 06 00 6E 11 D4 C8 95 9B A9 A1 B1 04 DE 1C 59 0F [14:00:31]CheckFolder [14:00:31]dirname=/storage/ofd_packets [14:00:31]CheckFolder done [14:00:31]ProducePacketName [14:00:31]name=ofd_packets/00156597 [14:00:31]NVStorageSaveData ofd_packets/00156597 [14:00:31]File name is /storage/ofd_packets/00156597 [14:00:31]Write 301 bytes [14:00:31]NVStorageSaveData done [14:00:31]OFDSenderStorePacket done [14:00:31]KKMCreateOFDPacket done [14:00:31]NVStorageSaveData kkm_last_timestamp [14:00:31]File name is /storage/kkm_last_timestamp [14:00:31]Write 4 bytes [14:00:31]NVStorageSaveData done [14:00:31]ExternCall_PrintAddStr [14:00:31]wPrintStart [14:00:31]Write to MH i2c: 01 00 00 11 5B 6C [14:00:31]Write i2c OK [14:00:31]MH_I2C_Read... [14:00:31]Read from MH i2c: 01 [14:00:31]MH_I2C_Read... [14:00:31]Read from MH i2c: 01 07 00 [14:00:31]MH_I2C_Read... [14:00:31]Read from MH i2c: 01 07 00 11 5B 00 00 00 00 00 FF 0F 81 [14:00:31]RasterBufferAndPrint [14:00:31]line Счет N : (1)99411 [14:00:31]line ИНН: 02508201610067 [14:00:31]line Контрольно-Кассовый Чек [14:00:31]line ПРОДАЖА [14:00:31]line ТРК (МРК, ГНК) : 21 [14:00:31]line Товар: 2710124130 [14:00:31]line Аи-92-К-5 [14:00:31]line 2.990 * 66.90 [14:00:31]line = 200.03 [14:00:31]line НДС 12% НСП 1% [14:00:31]line > о реализуемом товаре [14:00:31]line ОКРУГЛЕНИЕ: -0.03 [14:00:31]line ИТОГО: 200.00 [14:00:31]line Внесено: 200.00 [14:00:31]line СДАЧА: 0.00 [14:00:31]line НСП 1% : 1.77 [14:00:31]line НДС 12% : 21.24 [14:00:31]line Наличными: 200.00 [14:00:31]line Безнал.: 0.00 [14:00:31]line Место: АЗС № 143 "Партнер Нефть" [14:00:31]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [14:00:31]line СНО: Общий режим [14:00:31]line Чек 148 27.10.2024 14:00 [14:00:31]line Смена: 537 ФФД: 1.0 [14:00:31]line ЗНМ: 0300000096 [14:00:31]line РНМ: 0000000000091693 [14:00:31]line Версия ККМ: 001 [14:00:31]line ФМ: 0000000000871792 [14:00:31]line ФД: 156597 [14:00:31]line ФПД: 121022863414683 [14:00:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T140035&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156597&fm=121022863414683&tin=02508201610067®Number=0000000000091693&sum=20000 [14:00:31]OFD Sender: Processing packet 156597 [packets to send 31, broken 30] [14:00:31]ProducePacketName [14:00:31]name=ofd_packets/00156597 [14:00:31]OFD Sender: To server: pG, [14:00:31]CommunicateWithHost lk.salyk.kg:30040 [14:00:31]ConnectInit lk.salyk.kg [14:00:31]written 0, free lines is 4095 [14:00:31]Connected sock=10 [14:00:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 EF 6A 07 01 D6 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 94 00 00 00 F4 03 04 00 83 47 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B5 63 02 00 35 04 06 00 6E 11 D4 C8 95 9B A9 A1 B1 04 DE 1C 59 0F [14:00:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 65 92 47 00 F0 8D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B5 63 02 00 F4 03 04 00 F2 EC 1D 67 B6 04 01 00 00 0A 35 12 F7 FD 9C 27 66 [14:00:31]CommunicateWithHost err = 0 [14:00:31]CheckOFDResponse [14:00:31]1017 (14) - 77093643461234 [14:00:31]1041 (16) - 0000000000871792 [14:00:31]1040 (4) - 156597 [14:00:31]1012 (4) - 27.10.2024 07:34 [14:00:31]1206 (1) - 0 [14:00:31]OFD Sender: Remove packet 156597 [14:00:31]ProducePacketName [14:00:31]name=ofd_packets/00156597 [14:00:31]NVStorageDeleteData [14:00:31]Write to MH i2c: 01 00 00 3C 5B 97 [14:00:31]Write i2c OK [14:00:31]MH_I2C_Read... [14:00:31]Read from MH i2c: 01 [14:00:31]MH_I2C_Read... [14:00:31]Read from MH i2c: 01 07 00 [14:00:31]MH_I2C_Read... [14:00:31]Read from MH i2c: 01 07 00 3C 5B 00 00 00 00 00 D0 0C 7A [14:00:31]RasterBufferAndPrint [14:00:31]line [14:00:31]line [14:00:31]line [14:00:31]line [14:00:31]line [14:00:31]written 0, free lines is 3288 [14:00:31]process_action close_receipt done [14:00:31]requested_data is exist [14:00:31]produce_requested_data [14:00:31]requested_item fm.sn is exist - process it [14:00:31]wFMCommunicate request_size=4 [14:00:31]MH_SAM_APDU [14:00:31]CAPDU: 80 11 00 00 [14:00:31]Write to MH i2c: E2 08 00 43 5B 80 11 00 00 00 00 00 00 18 [14:00:31]Write i2c OK [14:00:31]MH_I2C_Read... [14:00:31]Read from MH i2c: E2 [14:00:31]MH_I2C_Read... [14:00:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:00:31]Read from MH i2c: E2 17 00 [14:00:31]MH_I2C_Read... [14:00:31]Read from MH i2c: E2 17 00 43 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 6D [14:00:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:00:31]wFMCommunicate OK [14:00:31]requested_item fd.num is exist - process it [14:00:31]SAM_PROTO_GetFieldsCounters [14:00:31]wFMCommunicate request_size=4 [14:00:31]MH_SAM_APDU [14:00:31]CAPDU: 80 13 00 00 [14:00:31]Write to MH i2c: E2 08 00 44 5B 80 13 00 00 00 00 00 00 1B [14:00:31]Write i2c OK [14:00:31]MH_I2C_Read... [14:00:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:00:32]Read from MH i2c: E2 [14:00:32]MH_I2C_Read... [14:00:32]Read from MH i2c: E2 62 00 [14:00:32]MH_I2C_Read... [14:00:32]Read from MH i2c: E2 62 00 44 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 B5 63 02 00 0E 04 04 00 19 02 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 32 [14:00:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 B5 63 02 00 0E 04 04 00 19 02 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 [14:00:32]wFMCommunicate OK [14:00:32]SAM_PROTO_GetFieldsCounters done [14:00:32]requested_item shift.num is exist - process it [14:00:32]requested_item shift.opened is exist - process it [14:00:32]req_shift_opened [14:00:32]FM_GetShiftState [14:00:32]SAM_PROTO_GetShiftState [14:00:32]wFMCommunicate request_size=4 [14:00:32]MH_SAM_APDU [14:00:32]CAPDU: 80 13 01 00 [14:00:32]Write to MH i2c: E2 08 00 45 5B 80 13 01 00 00 00 00 00 1D [14:00:32]Write i2c OK [14:00:32]MH_I2C_Read... [14:00:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:00:32]Read from MH i2c: E2 [14:00:32]MH_I2C_Read... [14:00:32]Read from MH i2c: E2 0E 00 [14:00:32]MH_I2C_Read... [14:00:32]Read from MH i2c: E2 0E 00 45 5B 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 EA [14:00:32]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [14:00:32]wFMCommunicate OK [14:00:32]SAM_PROTO_GetShiftState done [14:00:32]FM_GetShiftState done [14:00:32]req_shift_opened done [14:00:32]requested_item shift.open_date is exist - process it [14:00:32]req_shift_open_date [14:00:32]req_shift_open_date done [14:00:32]produce_requested_data done [14:00:32]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156597,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [14:00:32]process_action_free close_receipt [14:00:32]json_value_free [14:00:32]json_value_free done [14:00:32]process_json_proto returns [14:00:32]Send response to host [14:00:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156597,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [14:00:32]free response buf [14:00:32]execute_script done [14:00:32]execute_script returns [14:00:32]free content buf [14:00:32]Sock 9.Close socket [14:00:32]Sock 9.Thread stoped [14:00:32]OFD Sender: No OFD packet to send [14:00:37]OFD Sender: No OFD packet to send [14:00:42]OFD Sender: No OFD packet to send [14:00:47]OFD Sender: No OFD packet to send [14:00:52]OFD Sender: No OFD packet to send [14:00:57]OFD Sender: No OFD packet to send [14:01:02]OFD Sender: No OFD packet to send [14:01:07]OFD Sender: No OFD packet to send [14:01:12]OFD Sender: No OFD packet to send [14:01:17]OFD Sender: No OFD packet to send [14:01:20]accept exits with 8 [14:01:20]New connection [14:01:20]New thread 3066834276 created [14:01:20]Thread 3066977636 joined [14:01:20]Waiting for new connection... [14:01:20] Sock 8.Parse request [14:01:20]Sock 8.Check first char [14:01:20]Sock 8.First char is OK [14:01:20]request: POST /json_proto HTTP/1.0 [14:01:20]Method: POST [14:01:20]URL: /json_proto [14:01:20]Method is POST - this is cgi request [14:01:20]url: /json_proto [14:01:20]query_string will be loaded in cgi processing [14:01:20]execute_cgi json_proto POST (null) [14:01:20]execute_cgi path=json_proto method=POST [14:01:20]POST find Content-Length [14:01:20]Host: 172.17.63.3:8080 [14:01:20]Content-Length: 676 [14:01:20]Content-Type: application/json [14:01:20] [14:01:20]POST finish read [14:01:20]Found Content-Length = 676 [14:01:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99412", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:01:20]execute_script... [14:01: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)99412", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:01:20]POST & json_proto [14:01:20]process_json_proto [14:01:20]json parsed OK: [14:01:20]protocol is kg_v1.0 [14:01:20]action value=close_receipt [14:01:20]process_action close_receipt [14:01:20]cmd_close_receipt [14:01:20]MH_GetDate [14:01:20]Write to MH i2c: F0 00 00 46 5B 90 [14:01:20]Write i2c OK [14:01:20]MH_I2C_Read... [14:01:20]Read from MH i2c: F0 [14:01:20]MH_I2C_Read... [14:01:20]Read from MH i2c: F0 09 00 [14:01:20]MH_I2C_Read... [14:01:20]Read from MH i2c: F0 09 00 46 5B 00 B6 47 1E 67 50 D1 6C 64 0C [14:01:20]GetLastDocTimeStamp 1730037635 [14:01:20]current date 1730037686 [14:01:20]FM_GetShiftState [14:01:20]SAM_PROTO_GetShiftState [14:01:20]wFMCommunicate request_size=4 [14:01:20]MH_SAM_APDU [14:01:20]CAPDU: 80 13 01 00 [14:01:20]Write to MH i2c: E2 08 00 47 5B 80 13 01 00 00 00 00 00 1F [14:01:20]Write i2c OK [14:01:20]MH_I2C_Read... [14:01:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:01:20]Read from MH i2c: E2 [14:01:20]MH_I2C_Read... [14:01:20]Read from MH i2c: E2 0E 00 [14:01:20]MH_I2C_Read... [14:01:20]Read from MH i2c: E2 0E 00 47 5B 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 EC [14:01:20]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [14:01:20]wFMCommunicate OK [14:01:20]SAM_PROTO_GetShiftState done [14:01:20]FM_GetShiftState done [14:01:20]opened in 1729989044 [14:01:20]opened+sec_in_day 1730075444 [14:01:20]quantity*price = 50041 [14:01:20]sum+1 = 50042 [14:01:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 149 27.10.2024 14:01 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156598 ФПД: 32778436000390 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T140126&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156598&fm=32778436000390&tin=02508201610067®Number=0000000000091693&sum=50000 [14:01:21]StoreToDocumentArchive [14:01:21]shift 537 fd 156598 [14:01:21]save to /storage/0537/doc_00156598 [14:01:21]save last doc name /storage/0537/doc_00156598 to /storage/kkm_last_doc_name [14:01:21]save OK [14:01:21]Clear old archive folders... [14:01:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:01:21]tlvbuf is 01742170 [14:01:21]SAM_PROTO_ClearQueue [14:01:21]wFMCommunicate request_size=4 [14:01:21]MH_SAM_APDU [14:01:21]CAPDU: 80 09 00 00 [14:01:21]Write to MH i2c: E2 08 00 54 5B 80 09 00 00 00 00 00 00 21 [14:01:21]Write i2c OK [14:01:21]MH_I2C_Read... [14:01:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:01:22]Read from MH i2c: E2 [14:01:22]MH_I2C_Read... [14:01:22]Read from MH i2c: E2 03 00 [14:01:22]MH_I2C_Read... [14:01:22]Read from MH i2c: E2 03 00 54 5B 00 90 00 23 [14:01:22]RAPDU: 90 00 [14:01:22]wFMCommunicate OK [14:01:22]SAM_PROTO_ClearQueue done [14:01:22]KKMCreateOFDPacket [14:01:22]OFDProtocolAddRootSTLVToBuf [14:01:22]FM_MakeSignedData [14:01:22]FM_MakeSignedData [14:01:22]SAM_PROTO_SignData [14:01:22]wFMCommunicate request_size=4 [14:01:22]MH_SAM_APDU [14:01:22]CAPDU: 80 0D 01 02 [14:01:22]Write to MH i2c: E2 08 00 55 5B 80 0D 01 02 00 00 00 00 29 [14:01:22]Write i2c OK [14:01:22]MH_I2C_Read... [14:01:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:01:22]Read from MH i2c: E2 [14:01:22]MH_I2C_Read... [14:01:22]Read from MH i2c: E2 03 00 [14:01:22]MH_I2C_Read... [14:01:22]Read from MH i2c: E2 03 00 55 5B 00 90 00 24 [14:01:22]RAPDU: 90 00 [14:01:22]wFMCommunicate OK [14:01:22]wFMCommunicate request_size=255 [14:01:22]MH_SAM_APDU [14:01: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 B6 47 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B6 63 02 00 35 04 06 00 1D [14:01:22]Write to MH i2c: E2 02 01 56 5B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 B6 47 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B6 63 02 00 35 04 06 00 1D 00 00 27 [14:01:22]Write i2c OK [14:01:22]MH_I2C_Read... [14:01:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:01:22]Read from MH i2c: E2 [14:01:22]MH_I2C_Read... [14:01:22]Read from MH i2c: E2 03 00 [14:01:22]MH_I2C_Read... [14:01:22]Read from MH i2c: E2 03 00 56 5B 00 90 00 25 [14:01:22]RAPDU: 90 00 [14:01:22]wFMCommunicate OK [14:01:22]wFMCommunicate request_size=10 [14:01:22]MH_SAM_APDU [14:01:22]CAPDU: 80 0D 02 02 05 CF D3 08 BA 86 [14:01:22]Write to MH i2c: E2 0D 00 57 5B 80 0D 02 02 05 00 CF D3 08 BA 86 00 00 20 [14:01:22]Write i2c OK [14:01:22]MH_I2C_Read... [14:01:22]OFD Sender: No OFD packet to send [14:01:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:01:22]Read from MH i2c: E2 [14:01:22]MH_I2C_Read... [14:01:22]Read from MH i2c: E2 03 00 [14:01:22]MH_I2C_Read... [14:01:22]Read from MH i2c: E2 03 00 57 5B 00 90 00 26 [14:01:22]RAPDU: 90 00 [14:01:22]wFMCommunicate OK [14:01:22]wFMCommunicate request_size=4 [14:01:22]MH_SAM_APDU [14:01:22]CAPDU: 80 0D 03 02 [14:01:22]Write to MH i2c: E2 08 00 58 5B 80 0D 03 02 00 00 00 00 2E [14:01:22]Write i2c OK [14:01:22]MH_I2C_Read... [14:01:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:01:22]Read from MH i2c: E2 [14:01:22]MH_I2C_Read... [14:01:22]Read from MH i2c: E2 0B 00 [14:01:22]MH_I2C_Read... [14:01:22]Read from MH i2c: E2 0B 00 58 5B 00 CC B2 99 A9 C5 C7 D1 A1 90 00 ED [14:01:22]RAPDU: CC B2 99 A9 C5 C7 D1 A1 90 00 [14:01:22]wFMCommunicate OK [14:01:22]SAM_PROTO_SignData done [14:01:22]FM_MakeSignedData done [14:01:22]CreateOFDProtocolMessage [14:01:22]wFMCommunicate request_size=4 [14:01:22]MH_SAM_APDU [14:01:22]CAPDU: 80 11 00 00 [14:01:22]Write to MH i2c: E2 08 00 59 5B 80 11 00 00 00 00 00 00 2E [14:01:22]Write i2c OK [14:01:22]MH_I2C_Read... [14:01:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:01:22]Read from MH i2c: E2 [14:01:22]MH_I2C_Read... [14:01:22]Read from MH i2c: E2 17 00 [14:01:22]MH_I2C_Read... [14:01:22]Read from MH i2c: E2 17 00 59 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 83 [14:01:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:01:22]wFMCommunicate OK [14:01:22]CreateOFDProtocolMessage done [14:01:22]OFDSenderStorePacket 156598 [14:01:22]StoreOFDPacket docnum=156598 [14:01:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 DB E5 07 01 B5 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 B6 47 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B6 63 02 00 35 04 06 00 1D CF D3 08 BA 86 CC B2 99 A9 C5 C7 D1 A1 [14:01:22]CheckFolder [14:01:22]dirname=/storage/ofd_packets [14:01:22]CheckFolder done [14:01:22]ProducePacketName [14:01:22]name=ofd_packets/00156598 [14:01:22]NVStorageSaveData ofd_packets/00156598 [14:01:22]File name is /storage/ofd_packets/00156598 [14:01:22]Write 301 bytes [14:01:22]NVStorageSaveData done [14:01:22]OFDSenderStorePacket done [14:01:22]KKMCreateOFDPacket done [14:01:22]NVStorageSaveData kkm_last_timestamp [14:01:22]File name is /storage/kkm_last_timestamp [14:01:22]Write 4 bytes [14:01:22]NVStorageSaveData done [14:01:22]ExternCall_PrintAddStr [14:01:22]wPrintStart [14:01:22]Write to MH i2c: 01 00 00 5A 5B B5 [14:01:22]Write i2c OK [14:01:22]MH_I2C_Read... [14:01:22]Read from MH i2c: 01 [14:01:22]MH_I2C_Read... [14:01:22]Read from MH i2c: 01 07 00 [14:01:22]MH_I2C_Read... [14:01:22]Read from MH i2c: 01 07 00 5A 5B 00 00 00 00 00 FF 0F CA [14:01:22]RasterBufferAndPrint [14:01:22]line Счет N : (1)99412 [14:01:22]line ИНН: 02508201610067 [14:01:22]line Контрольно-Кассовый Чек [14:01:22]line ПРОДАЖА [14:01:22]line ТРК (МРК, ГНК) : 11 [14:01:22]line Товар: 2710124130 [14:01:22]line Аи-92-К-5 [14:01:22]line 7.480 * 66.90 [14:01:22]line = 500.41 [14:01:22]line НДС 12% НСП 1% [14:01:22]line > о реализуемом товаре [14:01:22]line ОКРУГЛЕНИЕ: -0.41 [14:01:22]line ИТОГО: 500.00 [14:01:22]line Внесено: 500.00 [14:01:22]line СДАЧА: 0.00 [14:01:22]line НСП 1% : 4.43 [14:01:22]line НДС 12% : 53.14 [14:01:22]line Наличными: 500.00 [14:01:22]line Безнал.: 0.00 [14:01:22]line Место: АЗС № 143 "Партнер Нефть" [14:01:22]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [14:01:22]line СНО: Общий режим [14:01:22]line Чек 149 27.10.2024 14:01 [14:01:22]line Смена: 537 ФФД: 1.0 [14:01:22]line ЗНМ: 0300000096 [14:01:22]line РНМ: 0000000000091693 [14:01:22]line Версия ККМ: 001 [14:01:22]line ФМ: 0000000000871792 [14:01:22]line ФД: 156598 [14:01:22]line ФПД: 32778436000390 [14:01:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T140126&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156598&fm=32778436000390&tin=02508201610067®Number=0000000000091693&sum=50000 [14:01:22]OFD Sender: Processing packet 156598 [packets to send 31, broken 30] [14:01:22]ProducePacketName [14:01:22]name=ofd_packets/00156598 [14:01:22]OFD Sender: To server: pG, [14:01:22]CommunicateWithHost lk.salyk.kg:30040 [14:01:22]ConnectInit lk.salyk.kg [14:01:22]written 0, free lines is 4095 [14:01:22]Connected sock=10 [14:01:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 DB E5 07 01 B5 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 B6 47 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B6 63 02 00 35 04 06 00 1D CF D3 08 BA 86 CC B2 99 A9 C5 C7 D1 A1 [14:01:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 84 94 47 00 8A B5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B6 63 02 00 F4 03 04 00 26 ED 1D 67 B6 04 01 00 00 80 D6 0D 32 81 8E DA 0A [14:01:23]CommunicateWithHost err = 0 [14:01:23]CheckOFDResponse [14:01:23]1017 (14) - 77093643461234 [14:01:23]1041 (16) - 0000000000871792 [14:01:23]1040 (4) - 156598 [14:01:23]1012 (4) - 27.10.2024 07:35 [14:01:23]1206 (1) - 0 [14:01:23]OFD Sender: Remove packet 156598 [14:01:23]ProducePacketName [14:01:23]name=ofd_packets/00156598 [14:01:23]NVStorageDeleteData [14:01:23]Write to MH i2c: 01 00 00 85 5B E0 [14:01:23]Write i2c OK [14:01:23]MH_I2C_Read... [14:01:23]Read from MH i2c: 01 [14:01:23]MH_I2C_Read... [14:01:23]Read from MH i2c: 01 07 00 [14:01:23]MH_I2C_Read... [14:01:23]Read from MH i2c: 01 07 00 85 5B 00 00 00 00 00 E2 0C D5 [14:01:23]RasterBufferAndPrint [14:01:23]line [14:01:23]line [14:01:23]line [14:01:23]line [14:01:23]line [14:01:23]written 0, free lines is 3303 [14:01:23]process_action close_receipt done [14:01:23]requested_data is exist [14:01:23]produce_requested_data [14:01:23]requested_item fm.sn is exist - process it [14:01:23]wFMCommunicate request_size=4 [14:01:23]MH_SAM_APDU [14:01:23]CAPDU: 80 11 00 00 [14:01:23]Write to MH i2c: E2 08 00 8C 5B 80 11 00 00 00 00 00 00 61 [14:01:23]Write i2c OK [14:01:23]MH_I2C_Read... [14:01:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:01:23]Read from MH i2c: E2 [14:01:23]MH_I2C_Read... [14:01:23]Read from MH i2c: E2 17 00 [14:01:23]MH_I2C_Read... [14:01:23]Read from MH i2c: E2 17 00 8C 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 B6 [14:01:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:01:23]wFMCommunicate OK [14:01:23]requested_item fd.num is exist - process it [14:01:23]SAM_PROTO_GetFieldsCounters [14:01:23]wFMCommunicate request_size=4 [14:01:23]MH_SAM_APDU [14:01:23]CAPDU: 80 13 00 00 [14:01:23]Write to MH i2c: E2 08 00 8D 5B 80 13 00 00 00 00 00 00 64 [14:01:23]Write i2c OK [14:01:23]MH_I2C_Read... [14:01:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:01:23]Read from MH i2c: E2 [14:01:23]MH_I2C_Read... [14:01:23]Read from MH i2c: E2 62 00 [14:01:23]MH_I2C_Read... [14:01:23]Read from MH i2c: E2 62 00 8D 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 B6 63 02 00 0E 04 04 00 19 02 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 7F [14:01:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 B6 63 02 00 0E 04 04 00 19 02 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 [14:01:23]wFMCommunicate OK [14:01:23]SAM_PROTO_GetFieldsCounters done [14:01:23]requested_item shift.num is exist - process it [14:01:23]requested_item shift.opened is exist - process it [14:01:23]req_shift_opened [14:01:23]FM_GetShiftState [14:01:23]SAM_PROTO_GetShiftState [14:01:23]wFMCommunicate request_size=4 [14:01:23]MH_SAM_APDU [14:01:23]CAPDU: 80 13 01 00 [14:01:23]Write to MH i2c: E2 08 00 8E 5B 80 13 01 00 00 00 00 00 66 [14:01:23]Write i2c OK [14:01:23]MH_I2C_Read... [14:01:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:01:23]Read from MH i2c: E2 [14:01:23]MH_I2C_Read... [14:01:23]Read from MH i2c: E2 0E 00 [14:01:23]MH_I2C_Read... [14:01:23]Read from MH i2c: E2 0E 00 8E 5B 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 33 [14:01:23]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [14:01:23]wFMCommunicate OK [14:01:23]SAM_PROTO_GetShiftState done [14:01:23]FM_GetShiftState done [14:01:23]req_shift_opened done [14:01:23]requested_item shift.open_date is exist - process it [14:01:23]req_shift_open_date [14:01:23]req_shift_open_date done [14:01:23]produce_requested_data done [14:01:23]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156598,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [14:01:23]process_action_free close_receipt [14:01:23]json_value_free [14:01:23]json_value_free done [14:01:23]process_json_proto returns [14:01:23]Send response to host [14:01:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156598,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [14:01:23]free response buf [14:01:23]execute_script done [14:01:23]execute_script returns [14:01:23]free content buf [14:01:23]Sock 8.Close socket [14:01:23]Sock 8.Thread stoped [14:01:23]OFD Sender: No OFD packet to send [14:01:28]OFD Sender: No OFD packet to send [14:01:33]OFD Sender: No OFD packet to send [14:01:38]OFD Sender: No OFD packet to send [14:01:43]OFD Sender: No OFD packet to send [14:01:48]OFD Sender: No OFD packet to send [14:01:52]accept exits with 9 [14:01:52]New connection [14:01:52]New thread 3066977636 created [14:01:52]Thread 3066834276 joined [14:01:52]Waiting for new connection... [14:01:52] Sock 9.Parse request [14:01:52]Sock 9.Check first char [14:01:52]Sock 9.First char is OK [14:01:52]request: POST /json_proto HTTP/1.0 [14:01:52]Method: POST [14:01:52]URL: /json_proto [14:01:52]Method is POST - this is cgi request [14:01:52]url: /json_proto [14:01:52]query_string will be loaded in cgi processing [14:01:52]execute_cgi json_proto POST (null) [14:01:52]execute_cgi path=json_proto method=POST [14:01:52]POST find Content-Length [14:01:52]Host: 172.17.63.3:8080 [14:01:52]Content-Length: 676 [14:01:52]Content-Type: application/json [14:01:52] [14:01:52]POST finish read [14:01:52]Found Content-Length = 676 [14:01:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99413", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:01:52]execute_script... [14:01: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)99413", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:01:52]POST & json_proto [14:01:52]process_json_proto [14:01:52]json parsed OK: [14:01:52]protocol is kg_v1.0 [14:01:52]action value=close_receipt [14:01:52]process_action close_receipt [14:01:52]cmd_close_receipt [14:01:52]MH_GetDate [14:01:52]Write to MH i2c: F0 00 00 8F 5B D9 [14:01:52]Write i2c OK [14:01:52]MH_I2C_Read... [14:01:52]Read from MH i2c: F0 [14:01:52]MH_I2C_Read... [14:01:52]Read from MH i2c: F0 09 00 [14:01:52]MH_I2C_Read... [14:01:52]Read from MH i2c: F0 09 00 8F 5B 00 D6 47 1E 67 50 D1 6C 64 75 [14:01:52]GetLastDocTimeStamp 1730037686 [14:01:52]current date 1730037718 [14:01:52]FM_GetShiftState [14:01:52]SAM_PROTO_GetShiftState [14:01:52]wFMCommunicate request_size=4 [14:01:52]MH_SAM_APDU [14:01:52]CAPDU: 80 13 01 00 [14:01:52]Write to MH i2c: E2 08 00 90 5B 80 13 01 00 00 00 00 00 68 [14:01:52]Write i2c OK [14:01:52]MH_I2C_Read... [14:01:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:01:52]Read from MH i2c: E2 [14:01:52]MH_I2C_Read... [14:01:52]Read from MH i2c: E2 0E 00 [14:01:52]MH_I2C_Read... [14:01:52]Read from MH i2c: E2 0E 00 90 5B 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 35 [14:01:52]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [14:01:52]wFMCommunicate OK [14:01:52]SAM_PROTO_GetShiftState done [14:01:52]FM_GetShiftState done [14:01:52]opened in 1729989044 [14:01:52]opened+sec_in_day 1730075444 [14:01:52]quantity*price = 50041 [14:01:52]sum+1 = 50042 [14:01:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 150 27.10.2024 14:01 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156599 ФПД: 192535753911008 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T140158&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156599&fm=192535753911008&tin=02508201610067®Number=0000000000091693&sum=50000 [14:01:53]StoreToDocumentArchive [14:01:53]shift 537 fd 156599 [14:01:53]save to /storage/0537/doc_00156599 [14:01:53]save last doc name /storage/0537/doc_00156599 to /storage/kkm_last_doc_name [14:01:53]save OK [14:01:53]Clear old archive folders... [14:01:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:01:53]tlvbuf is 01878A70 [14:01:53]SAM_PROTO_ClearQueue [14:01:53]wFMCommunicate request_size=4 [14:01:53]MH_SAM_APDU [14:01:53]CAPDU: 80 09 00 00 [14:01:53]Write to MH i2c: E2 08 00 9D 5B 80 09 00 00 00 00 00 00 6A [14:01:53]Write i2c OK [14:01:53]MH_I2C_Read... [14:01:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:01:53]Read from MH i2c: E2 [14:01:53]MH_I2C_Read... [14:01:53]Read from MH i2c: E2 03 00 [14:01:53]MH_I2C_Read... [14:01:53]Read from MH i2c: E2 03 00 9D 5B 00 90 00 6C [14:01:53]RAPDU: 90 00 [14:01:53]wFMCommunicate OK [14:01:53]SAM_PROTO_ClearQueue done [14:01:53]KKMCreateOFDPacket [14:01:53]OFDProtocolAddRootSTLVToBuf [14:01:53]FM_MakeSignedData [14:01:53]FM_MakeSignedData [14:01:53]SAM_PROTO_SignData [14:01:53]wFMCommunicate request_size=4 [14:01:53]MH_SAM_APDU [14:01:53]CAPDU: 80 0D 01 02 [14:01:53]Write to MH i2c: E2 08 00 9E 5B 80 0D 01 02 00 00 00 00 72 [14:01:53]Write i2c OK [14:01:53]MH_I2C_Read... [14:01:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:01:54]Read from MH i2c: E2 [14:01:54]MH_I2C_Read... [14:01:54]Read from MH i2c: E2 03 00 [14:01:54]MH_I2C_Read... [14:01:54]Read from MH i2c: E2 03 00 9E 5B 00 90 00 6D [14:01:54]RAPDU: 90 00 [14:01:54]wFMCommunicate OK [14:01:54]wFMCommunicate request_size=255 [14:01:54]MH_SAM_APDU [14:01: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 D6 47 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B7 63 02 00 35 04 06 00 AF [14:01:54]Write to MH i2c: E2 02 01 9F 5B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 D6 47 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B7 63 02 00 35 04 06 00 AF 00 00 24 [14:01:54]Write i2c OK [14:01:54]MH_I2C_Read... [14:01:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:01:54]Read from MH i2c: E2 [14:01:54]MH_I2C_Read... [14:01:54]Read from MH i2c: E2 03 00 [14:01:54]MH_I2C_Read... [14:01:54]Read from MH i2c: E2 03 00 9F 5B 00 90 00 6E [14:01:54]RAPDU: 90 00 [14:01:54]wFMCommunicate OK [14:01:54]wFMCommunicate request_size=10 [14:01:54]MH_SAM_APDU [14:01:54]CAPDU: 80 0D 02 02 05 1C 39 37 EA E0 [14:01:54]Write to MH i2c: E2 0D 00 A0 5B 80 0D 02 02 05 00 1C 39 37 EA E0 00 00 D5 [14:01:54]Write i2c OK [14:01:54]MH_I2C_Read... [14:01:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:01:54]Read from MH i2c: E2 [14:01:54]MH_I2C_Read... [14:01:54]Read from MH i2c: E2 03 00 [14:01:54]MH_I2C_Read... [14:01:54]Read from MH i2c: E2 03 00 A0 5B 00 90 00 6F [14:01:54]RAPDU: 90 00 [14:01:54]wFMCommunicate OK [14:01:54]wFMCommunicate request_size=4 [14:01:54]MH_SAM_APDU [14:01:54]CAPDU: 80 0D 03 02 [14:01:54]Write to MH i2c: E2 08 00 A1 5B 80 0D 03 02 00 00 00 00 77 [14:01:54]Write i2c OK [14:01:54]MH_I2C_Read... [14:01:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:01:54]Read from MH i2c: E2 [14:01:54]MH_I2C_Read... [14:01:54]Read from MH i2c: E2 0B 00 [14:01:54]MH_I2C_Read... [14:01:54]Read from MH i2c: E2 0B 00 A1 5B 00 8D 4A 67 5C 67 DB E4 F0 90 00 28 [14:01:54]RAPDU: 8D 4A 67 5C 67 DB E4 F0 90 00 [14:01:54]wFMCommunicate OK [14:01:54]SAM_PROTO_SignData done [14:01:54]FM_MakeSignedData done [14:01:54]CreateOFDProtocolMessage [14:01:54]wFMCommunicate request_size=4 [14:01:54]MH_SAM_APDU [14:01:54]CAPDU: 80 11 00 00 [14:01:54]Write to MH i2c: E2 08 00 A2 5B 80 11 00 00 00 00 00 00 77 [14:01:54]Write i2c OK [14:01:54]MH_I2C_Read... [14:01:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:01:54]Read from MH i2c: E2 [14:01:54]MH_I2C_Read... [14:01:54]Read from MH i2c: E2 17 00 [14:01:54]MH_I2C_Read... [14:01:54]Read from MH i2c: E2 17 00 A2 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 CC [14:01:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:01:54]wFMCommunicate OK [14:01:54]CreateOFDProtocolMessage done [14:01:54]OFDSenderStorePacket 156599 [14:01:54]StoreOFDPacket docnum=156599 [14:01:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 57 21 07 01 D4 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 D6 47 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B7 63 02 00 35 04 06 00 AF 1C 39 37 EA E0 8D 4A 67 5C 67 DB E4 F0 [14:01:54]CheckFolder [14:01:54]dirname=/storage/ofd_packets [14:01:54]CheckFolder done [14:01:54]ProducePacketName [14:01:54]name=ofd_packets/00156599 [14:01:54]NVStorageSaveData ofd_packets/00156599 [14:01:54]File name is /storage/ofd_packets/00156599 [14:01:54]Write 301 bytes [14:01:54]NVStorageSaveData done [14:01:54]OFDSenderStorePacket done [14:01:54]KKMCreateOFDPacket done [14:01:54]NVStorageSaveData kkm_last_timestamp [14:01:54]File name is /storage/kkm_last_timestamp [14:01:54]Write 4 bytes [14:01:54]NVStorageSaveData done [14:01:54]ExternCall_PrintAddStr [14:01:54]wPrintStart [14:01:54]Write to MH i2c: 01 00 00 A3 5B FE [14:01:54]Write i2c OK [14:01:54]MH_I2C_Read... [14:01:54]Read from MH i2c: 01 [14:01:54]MH_I2C_Read... [14:01:54]Read from MH i2c: 01 07 00 [14:01:54]MH_I2C_Read... [14:01:54]Read from MH i2c: 01 07 00 A3 5B 00 00 00 00 00 FF 0F 13 [14:01:54]RasterBufferAndPrint [14:01:54]line Счет N : (1)99413 [14:01:54]line ИНН: 02508201610067 [14:01:54]line Контрольно-Кассовый Чек [14:01:54]line ПРОДАЖА [14:01:54]line ТРК (МРК, ГНК) : 21 [14:01:54]line Товар: 2710124130 [14:01:54]line Аи-92-К-5 [14:01:54]line 7.480 * 66.90 [14:01:54]line = 500.41 [14:01:54]line НДС 12% НСП 1% [14:01:54]line > о реализуемом товаре [14:01:54]line ОКРУГЛЕНИЕ: -0.41 [14:01:54]line ИТОГО: 500.00 [14:01:54]line Внесено: 500.00 [14:01:54]line СДАЧА: 0.00 [14:01:54]line НСП 1% : 4.43 [14:01:54]line НДС 12% : 53.14 [14:01:54]line Наличными: 500.00 [14:01:54]line Безнал.: 0.00 [14:01:54]line Место: АЗС № 143 "Партнер Нефть" [14:01:54]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [14:01:54]line СНО: Общий режим [14:01:54]line Чек 150 27.10.2024 14:01 [14:01:54]line Смена: 537 ФФД: 1.0 [14:01:54]line ЗНМ: 0300000096 [14:01:54]line РНМ: 0000000000091693 [14:01:54]line Версия ККМ: 001 [14:01:54]line ФМ: 0000000000871792 [14:01:54]line ФД: 156599 [14:01:54]line ФПД: 192535753911008 [14:01:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T140158&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156599&fm=192535753911008&tin=02508201610067®Number=0000000000091693&sum=50000 [14:01:54]OFD Sender: Processing packet 156599 [packets to send 31, broken 30] [14:01:54]ProducePacketName [14:01:54]name=ofd_packets/00156599 [14:01:54]OFD Sender: To server: pG, [14:01:54]CommunicateWithHost lk.salyk.kg:30040 [14:01:54]ConnectInit lk.salyk.kg [14:01:54]written 0, free lines is 4095 [14:01:54]Connected sock=10 [14:01:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 57 21 07 01 D4 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 D6 47 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B7 63 02 00 35 04 06 00 AF 1C 39 37 EA E0 8D 4A 67 5C 67 DB E4 F0 [14:01:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 AC 13 47 00 85 0A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B7 63 02 00 F4 03 04 00 46 ED 1D 67 B6 04 01 00 00 C1 0B AB 49 A3 76 C9 72 [14:01:55]CommunicateWithHost err = 0 [14:01:55]CheckOFDResponse [14:01:55]1017 (14) - 77093643461234 [14:01:55]1041 (16) - 0000000000871792 [14:01:55]1040 (4) - 156599 [14:01:55]1012 (4) - 27.10.2024 07:35 [14:01:55]1206 (1) - 0 [14:01:55]OFD Sender: Remove packet 156599 [14:01:55]ProducePacketName [14:01:55]name=ofd_packets/00156599 [14:01:55]NVStorageDeleteData [14:01:55]Write to MH i2c: 01 00 00 CE 5B 29 [14:01:55]Write i2c OK [14:01:55]MH_I2C_Read... [14:01:55]Read from MH i2c: 01 [14:01:55]MH_I2C_Read... [14:01:55]Read from MH i2c: 01 07 00 [14:01:55]MH_I2C_Read... [14:01:55]Read from MH i2c: 01 07 00 CE 5B 00 00 00 00 00 D8 0C 14 [14:01:55]RasterBufferAndPrint [14:01:55]line [14:01:55]line [14:01:55]line [14:01:55]line [14:01:55]line [14:01:55]written 0, free lines is 3295 [14:01:55]process_action close_receipt done [14:01:55]requested_data is exist [14:01:55]produce_requested_data [14:01:55]requested_item fm.sn is exist - process it [14:01:55]wFMCommunicate request_size=4 [14:01:55]MH_SAM_APDU [14:01:55]CAPDU: 80 11 00 00 [14:01:55]Write to MH i2c: E2 08 00 D5 5B 80 11 00 00 00 00 00 00 AA [14:01:55]Write i2c OK [14:01:55]MH_I2C_Read... [14:01:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:01:55]Read from MH i2c: E2 [14:01:55]MH_I2C_Read... [14:01:55]Read from MH i2c: E2 17 00 [14:01:55]MH_I2C_Read... [14:01:55]Read from MH i2c: E2 17 00 D5 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 FF [14:01:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:01:55]wFMCommunicate OK [14:01:55]requested_item fd.num is exist - process it [14:01:55]SAM_PROTO_GetFieldsCounters [14:01:55]wFMCommunicate request_size=4 [14:01:55]MH_SAM_APDU [14:01:55]CAPDU: 80 13 00 00 [14:01:55]Write to MH i2c: E2 08 00 D6 5B 80 13 00 00 00 00 00 00 AD [14:01:55]Write i2c OK [14:01:55]MH_I2C_Read... [14:01:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:01:55]Read from MH i2c: E2 [14:01:55]MH_I2C_Read... [14:01:55]Read from MH i2c: E2 62 00 [14:01:55]MH_I2C_Read... [14:01:55]Read from MH i2c: E2 62 00 D6 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 B7 63 02 00 0E 04 04 00 19 02 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 CC [14:01:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 B7 63 02 00 0E 04 04 00 19 02 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 [14:01:55]wFMCommunicate OK [14:01:55]SAM_PROTO_GetFieldsCounters done [14:01:55]requested_item shift.num is exist - process it [14:01:55]requested_item shift.opened is exist - process it [14:01:55]req_shift_opened [14:01:55]FM_GetShiftState [14:01:55]SAM_PROTO_GetShiftState [14:01:55]wFMCommunicate request_size=4 [14:01:55]MH_SAM_APDU [14:01:55]CAPDU: 80 13 01 00 [14:01:55]Write to MH i2c: E2 08 00 D7 5B 80 13 01 00 00 00 00 00 AF [14:01:55]Write i2c OK [14:01:55]MH_I2C_Read... [14:01:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:01:55]Read from MH i2c: E2 [14:01:55]MH_I2C_Read... [14:01:55]Read from MH i2c: E2 0E 00 [14:01:55]MH_I2C_Read... [14:01:55]Read from MH i2c: E2 0E 00 D7 5B 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 7C [14:01:55]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [14:01:55]wFMCommunicate OK [14:01:55]SAM_PROTO_GetShiftState done [14:01:55]FM_GetShiftState done [14:01:55]req_shift_opened done [14:01:55]requested_item shift.open_date is exist - process it [14:01:55]req_shift_open_date [14:01:55]req_shift_open_date done [14:01:55]produce_requested_data done [14:01:55]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156599,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [14:01:55]process_action_free close_receipt [14:01:55]json_value_free [14:01:55]json_value_free done [14:01:55]process_json_proto returns [14:01:55]Send response to host [14:01:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156599,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [14:01:55]free response buf [14:01:55]execute_script done [14:01:55]execute_script returns [14:01:55]free content buf [14:01:55]Sock 9.Close socket [14:01:55]Sock 9.Thread stoped [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:55]OFD Sender: No OFD packet to send [14:04:00]OFD Sender: No OFD packet to send [14:04:05]OFD Sender: No OFD packet to send [14:04:10]OFD Sender: No OFD packet to send [14:04:15]OFD Sender: No OFD packet to send [14:04:20]OFD Sender: No OFD packet to send [14:04:25]OFD Sender: No OFD packet to send [14:04:30]OFD Sender: No OFD packet to send [14:04:32]accept exits with 8 [14:04:32]New connection [14:04:32]New thread 3066834276 created [14:04:32]Thread 3066977636 joined [14:04:32]Waiting for new connection... [14:04:32] Sock 8.Parse request [14:04:32]Sock 8.Check first char [14:04:32]Sock 8.First char is OK [14:04:32]request: POST /json_proto HTTP/1.0 [14:04:32]Method: POST [14:04:32]URL: /json_proto [14:04:32]Method is POST - this is cgi request [14:04:32]url: /json_proto [14:04:32]query_string will be loaded in cgi processing [14:04:32]execute_cgi json_proto POST (null) [14:04:32]execute_cgi path=json_proto method=POST [14:04:32]POST find Content-Length [14:04:32]Host: 172.17.63.3:8080 [14:04:32]Content-Length: 676 [14:04:32]Content-Type: application/json [14:04:32] [14:04:32]POST finish read [14:04:32]Found Content-Length = 676 [14:04:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99414", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:04:32]execute_script... [14:04: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)99414", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:04:32]POST & json_proto [14:04:32]process_json_proto [14:04:32]json parsed OK: [14:04:32]protocol is kg_v1.0 [14:04:32]action value=close_receipt [14:04:32]process_action close_receipt [14:04:32]cmd_close_receipt [14:04:32]MH_GetDate [14:04:32]Write to MH i2c: F0 00 00 D8 5B 22 [14:04:32]Write i2c OK [14:04:32]MH_I2C_Read... [14:04:32]Read from MH i2c: F0 [14:04:32]MH_I2C_Read... [14:04:32]Read from MH i2c: F0 09 00 [14:04:32]MH_I2C_Read... [14:04:32]Read from MH i2c: F0 09 00 D8 5B 00 76 48 1E 67 50 D1 6C 64 5F [14:04:32]GetLastDocTimeStamp 1730037718 [14:04:32]current date 1730037878 [14:04:32]FM_GetShiftState [14:04:32]SAM_PROTO_GetShiftState [14:04:32]wFMCommunicate request_size=4 [14:04:32]MH_SAM_APDU [14:04:32]CAPDU: 80 13 01 00 [14:04:32]Write to MH i2c: E2 08 00 D9 5B 80 13 01 00 00 00 00 00 B1 [14:04:32]Write i2c OK [14:04:32]MH_I2C_Read... [14:04:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:04:32]Read from MH i2c: E2 [14:04:32]MH_I2C_Read... [14:04:32]Read from MH i2c: E2 0E 00 [14:04:32]MH_I2C_Read... [14:04:32]Read from MH i2c: E2 0E 00 D9 5B 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 7E [14:04:32]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [14:04:32]wFMCommunicate OK [14:04:32]SAM_PROTO_GetShiftState done [14:04:32]FM_GetShiftState done [14:04:32]opened in 1729989044 [14:04:32]opened+sec_in_day 1730075444 [14:04:32]quantity*price = 50041 [14:04:32]sum+1 = 50042 [14:04:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 151 27.10.2024 14:04 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156600 ФПД: 38154507005339 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T140438&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156600&fm=38154507005339&tin=02508201610067®Number=0000000000091693&sum=50000 [14:04:33]StoreToDocumentArchive [14:04:33]shift 537 fd 156600 [14:04:33]save to /storage/0537/doc_00156600 [14:04:33]save last doc name /storage/0537/doc_00156600 to /storage/kkm_last_doc_name [14:04:33]save OK [14:04:33]Clear old archive folders... [14:04:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:04:33]tlvbuf is 017A92B0 [14:04:33]SAM_PROTO_ClearQueue [14:04:33]wFMCommunicate request_size=4 [14:04:33]MH_SAM_APDU [14:04:33]CAPDU: 80 09 00 00 [14:04:33]Write to MH i2c: E2 08 00 E6 5B 80 09 00 00 00 00 00 00 B3 [14:04:33]Write i2c OK [14:04:33]MH_I2C_Read... [14:04:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:04:33]Read from MH i2c: E2 [14:04:33]MH_I2C_Read... [14:04:33]Read from MH i2c: E2 03 00 [14:04:33]MH_I2C_Read... [14:04:33]Read from MH i2c: E2 03 00 E6 5B 00 90 00 B5 [14:04:33]RAPDU: 90 00 [14:04:33]wFMCommunicate OK [14:04:34]SAM_PROTO_ClearQueue done [14:04:34]KKMCreateOFDPacket [14:04:34]OFDProtocolAddRootSTLVToBuf [14:04:34]FM_MakeSignedData [14:04:34]FM_MakeSignedData [14:04:34]SAM_PROTO_SignData [14:04:34]wFMCommunicate request_size=4 [14:04:34]MH_SAM_APDU [14:04:34]CAPDU: 80 0D 01 02 [14:04:34]Write to MH i2c: E2 08 00 E7 5B 80 0D 01 02 00 00 00 00 BB [14:04:34]Write i2c OK [14:04:34]MH_I2C_Read... [14:04:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:04:34]Read from MH i2c: E2 [14:04:34]MH_I2C_Read... [14:04:34]Read from MH i2c: E2 03 00 [14:04:34]MH_I2C_Read... [14:04:34]Read from MH i2c: E2 03 00 E7 5B 00 90 00 B6 [14:04:34]RAPDU: 90 00 [14:04:34]wFMCommunicate OK [14:04:34]wFMCommunicate request_size=255 [14:04:34]MH_SAM_APDU [14:04: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 76 48 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B8 63 02 00 35 04 06 00 22 [14:04:34]Write to MH i2c: E2 02 01 E8 5B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 76 48 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B8 63 02 00 35 04 06 00 22 00 00 83 [14:04:34]Write i2c OK [14:04:34]MH_I2C_Read... [14:04:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:04:34]Read from MH i2c: E2 [14:04:34]MH_I2C_Read... [14:04:34]Read from MH i2c: E2 03 00 [14:04:34]MH_I2C_Read... [14:04:34]Read from MH i2c: E2 03 00 E8 5B 00 90 00 B7 [14:04:34]RAPDU: 90 00 [14:04:34]wFMCommunicate OK [14:04:34]wFMCommunicate request_size=10 [14:04:34]MH_SAM_APDU [14:04:34]CAPDU: 80 0D 02 02 05 B3 89 D6 2D 9B [14:04:34]Write to MH i2c: E2 0D 00 E9 5B 80 0D 02 02 05 00 B3 89 D6 2D 9B 00 00 A2 [14:04:34]Write i2c OK [14:04:34]MH_I2C_Read... [14:04:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:04:34]Read from MH i2c: E2 [14:04:34]MH_I2C_Read... [14:04:34]Read from MH i2c: E2 03 00 [14:04:34]MH_I2C_Read... [14:04:34]Read from MH i2c: E2 03 00 E9 5B 00 90 00 B8 [14:04:34]RAPDU: 90 00 [14:04:34]wFMCommunicate OK [14:04:34]wFMCommunicate request_size=4 [14:04:34]MH_SAM_APDU [14:04:34]CAPDU: 80 0D 03 02 [14:04:34]Write to MH i2c: E2 08 00 EA 5B 80 0D 03 02 00 00 00 00 C0 [14:04:34]Write i2c OK [14:04:34]MH_I2C_Read... [14:04:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:04:34]Read from MH i2c: E2 [14:04:34]MH_I2C_Read... [14:04:34]Read from MH i2c: E2 0B 00 [14:04:34]MH_I2C_Read... [14:04:34]Read from MH i2c: E2 0B 00 EA 5B 00 CF 27 C5 33 69 B6 39 94 90 00 9B [14:04:34]RAPDU: CF 27 C5 33 69 B6 39 94 90 00 [14:04:34]wFMCommunicate OK [14:04:34]SAM_PROTO_SignData done [14:04:34]FM_MakeSignedData done [14:04:34]CreateOFDProtocolMessage [14:04:34]wFMCommunicate request_size=4 [14:04:34]MH_SAM_APDU [14:04:34]CAPDU: 80 11 00 00 [14:04:34]Write to MH i2c: E2 08 00 EB 5B 80 11 00 00 00 00 00 00 C0 [14:04:34]Write i2c OK [14:04:34]MH_I2C_Read... [14:04:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:04:34]Read from MH i2c: E2 [14:04:34]MH_I2C_Read... [14:04:34]Read from MH i2c: E2 17 00 [14:04:34]MH_I2C_Read... [14:04:34]Read from MH i2c: E2 17 00 EB 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 15 [14:04:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:04:34]wFMCommunicate OK [14:04:34]CreateOFDProtocolMessage done [14:04:34]OFDSenderStorePacket 156600 [14:04:34]StoreOFDPacket docnum=156600 [14:04:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 DC EE 07 01 98 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 76 48 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B8 63 02 00 35 04 06 00 22 B3 89 D6 2D 9B CF 27 C5 33 69 B6 39 94 [14:04:34]CheckFolder [14:04:34]dirname=/storage/ofd_packets [14:04:34]CheckFolder done [14:04:34]ProducePacketName [14:04:34]name=ofd_packets/00156600 [14:04:34]NVStorageSaveData ofd_packets/00156600 [14:04:34]File name is /storage/ofd_packets/00156600 [14:04:34]Write 301 bytes [14:04:34]NVStorageSaveData done [14:04:34]OFDSenderStorePacket done [14:04:34]KKMCreateOFDPacket done [14:04:34]NVStorageSaveData kkm_last_timestamp [14:04:34]File name is /storage/kkm_last_timestamp [14:04:34]Write 4 bytes [14:04:34]NVStorageSaveData done [14:04:34]OFD Sender: Processing packet 156600 [packets to send 31, broken 30] [14:04:34]ProducePacketName [14:04:34]name=ofd_packets/00156600 [14:04:34]OFD Sender: To server: pG, [14:04:34]CommunicateWithHost lk.salyk.kg:30040 [14:04:34]ConnectInit lk.salyk.kg [14:04:34]ExternCall_PrintAddStr [14:04:34]wPrintStart [14:04:34]Write to MH i2c: 01 00 00 EC 5B 47 [14:04:34]Write i2c OK [14:04:34]MH_I2C_Read... [14:04:34]Read from MH i2c: 01 [14:04:34]MH_I2C_Read... [14:04:34]Read from MH i2c: 01 07 00 [14:04:34]MH_I2C_Read... [14:04:34]Read from MH i2c: 01 07 00 EC 5B 00 00 00 00 00 FF 0F 5C [14:04:34]RasterBufferAndPrint [14:04:34]line Счет N : (1)99414 [14:04:34]line ИНН: 02508201610067 [14:04:34]line Контрольно-Кассовый Чек [14:04:34]line ПРОДАЖА [14:04:34]line ТРК (МРК, ГНК) : 21 [14:04:34]line Товар: 2710124130 [14:04:34]line Аи-92-К-5 [14:04:34]line 7.480 * 66.90 [14:04:34]line = 500.41 [14:04:34]line НДС 12% НСП 1% [14:04:34]line > о реализуемом товаре [14:04:34]line ОКРУГЛЕНИЕ: -0.41 [14:04:34]line ИТОГО: 500.00 [14:04:34]line Внесено: 500.00 [14:04:34]line СДАЧА: 0.00 [14:04:34]line НСП 1% : 4.43 [14:04:34]line НДС 12% : 53.14 [14:04:34]line Наличными: 500.00 [14:04:34]line Безнал.: 0.00 [14:04:34]line Место: АЗС № 143 "Партнер Нефть" [14:04:34]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [14:04:34]line СНО: Общий режим [14:04:34]line Чек 151 27.10.2024 14:04 [14:04:34]line Смена: 537 ФФД: 1.0 [14:04:34]line ЗНМ: 0300000096 [14:04:34]line РНМ: 0000000000091693 [14:04:34]line Версия ККМ: 001 [14:04:34]line ФМ: 0000000000871792 [14:04:34]line ФД: 156600 [14:04:34]line ФПД: 38154507005339 [14:04:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T140438&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156600&fm=38154507005339&tin=02508201610067®Number=0000000000091693&sum=50000 [14:04:34]Connected sock=11 [14:04:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 DC EE 07 01 98 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 76 48 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B8 63 02 00 35 04 06 00 22 B3 89 D6 2D 9B CF 27 C5 33 69 B6 39 94 [14:04:34]written 0, free lines is 4095 [14:04:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 10 7E 47 00 96 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B8 63 02 00 F4 03 04 00 E6 ED 1D 67 B6 04 01 00 00 3F 2D 5B 59 D6 B5 DD C6 [14:04:35]CommunicateWithHost err = 0 [14:04:35]CheckOFDResponse [14:04:35]1017 (14) - 77093643461234 [14:04:35]1041 (16) - 0000000000871792 [14:04:35]1040 (4) - 156600 [14:04:35]1012 (4) - 27.10.2024 07:38 [14:04:35]1206 (1) - 0 [14:04:35]OFD Sender: Remove packet 156600 [14:04:35]ProducePacketName [14:04:35]name=ofd_packets/00156600 [14:04:35]NVStorageDeleteData [14:04:35]Write to MH i2c: 01 00 00 17 5C 73 [14:04:35]Write i2c OK [14:04:35]MH_I2C_Read... [14:04:35]Read from MH i2c: 01 [14:04:35]MH_I2C_Read... [14:04:35]Read from MH i2c: 01 07 00 [14:04:35]MH_I2C_Read... [14:04:35]Read from MH i2c: 01 07 00 17 5C 00 00 00 00 00 D3 0C 59 [14:04:35]RasterBufferAndPrint [14:04:35]line [14:04:35]line [14:04:35]line [14:04:35]line [14:04:35]line [14:04:35]written 0, free lines is 3290 [14:04:35]process_action close_receipt done [14:04:35]requested_data is exist [14:04:35]produce_requested_data [14:04:35]requested_item fm.sn is exist - process it [14:04:35]wFMCommunicate request_size=4 [14:04:35]MH_SAM_APDU [14:04:35]CAPDU: 80 11 00 00 [14:04:35]Write to MH i2c: E2 08 00 1E 5C 80 11 00 00 00 00 00 00 F4 [14:04:35]Write i2c OK [14:04:35]MH_I2C_Read... [14:04:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:04:35]Read from MH i2c: E2 [14:04:35]MH_I2C_Read... [14:04:35]Read from MH i2c: E2 17 00 [14:04:35]MH_I2C_Read... [14:04:35]Read from MH i2c: E2 17 00 1E 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 49 [14:04:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:04:35]wFMCommunicate OK [14:04:35]requested_item fd.num is exist - process it [14:04:35]SAM_PROTO_GetFieldsCounters [14:04:35]wFMCommunicate request_size=4 [14:04:35]MH_SAM_APDU [14:04:35]CAPDU: 80 13 00 00 [14:04:35]Write to MH i2c: E2 08 00 1F 5C 80 13 00 00 00 00 00 00 F7 [14:04:35]Write i2c OK [14:04:35]MH_I2C_Read... [14:04:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:04:35]Read from MH i2c: E2 [14:04:35]MH_I2C_Read... [14:04:35]Read from MH i2c: E2 62 00 [14:04:35]MH_I2C_Read... [14:04:35]Read from MH i2c: E2 62 00 1F 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 B8 63 02 00 0E 04 04 00 19 02 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 1A [14:04:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 B8 63 02 00 0E 04 04 00 19 02 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 [14:04:35]wFMCommunicate OK [14:04:35]SAM_PROTO_GetFieldsCounters done [14:04:35]requested_item shift.num is exist - process it [14:04:35]requested_item shift.opened is exist - process it [14:04:35]req_shift_opened [14:04:35]FM_GetShiftState [14:04:35]SAM_PROTO_GetShiftState [14:04:35]wFMCommunicate request_size=4 [14:04:35]MH_SAM_APDU [14:04:35]CAPDU: 80 13 01 00 [14:04:35]Write to MH i2c: E2 08 00 20 5C 80 13 01 00 00 00 00 00 F9 [14:04:35]Write i2c OK [14:04:35]MH_I2C_Read... [14:04:35]OFD Sender: No OFD packet to send [14:04:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:04:35]Read from MH i2c: E2 [14:04:35]MH_I2C_Read... [14:04:35]Read from MH i2c: E2 0E 00 [14:04:35]MH_I2C_Read... [14:04:35]Read from MH i2c: E2 0E 00 20 5C 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 C6 [14:04:35]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [14:04:35]wFMCommunicate OK [14:04:35]SAM_PROTO_GetShiftState done [14:04:35]FM_GetShiftState done [14:04:35]req_shift_opened done [14:04:35]requested_item shift.open_date is exist - process it [14:04:35]req_shift_open_date [14:04:35]req_shift_open_date done [14:04:35]produce_requested_data done [14:04:35]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156600,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [14:04:35]process_action_free close_receipt [14:04:35]json_value_free [14:04:35]json_value_free done [14:04:35]process_json_proto returns [14:04:35]Send response to host [14:04:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156600,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [14:04:35]free response buf [14:04:35]execute_script done [14:04:35]execute_script returns [14:04:35]free content buf [14:04:35]Sock 8.Close socket [14:04:35]Sock 8.Thread stoped [14:04:40]OFD Sender: No OFD packet to send [14:04:45]OFD Sender: No OFD packet to send [14:04:50]OFD Sender: No OFD packet to send [14:04:55]OFD Sender: No OFD packet to send [14:05:00]OFD Sender: No OFD packet to send [14:05:05]OFD Sender: No OFD packet to send [14:05:10]OFD Sender: No OFD packet to send [14:05:15]OFD Sender: No OFD packet to send [14:05:20]OFD Sender: No OFD packet to send [14:05:25]OFD Sender: No OFD packet to send [14:05:30]OFD Sender: No OFD packet to send [14:05:35]OFD Sender: No OFD packet to send [14:05:40]OFD Sender: No OFD packet to send [14:05:45]OFD Sender: No OFD packet to send [14:05:50]OFD Sender: No OFD packet to send [14:05:55]OFD Sender: No OFD packet to send [14:06:00]OFD Sender: No OFD packet to send [14:06:05]OFD Sender: No OFD packet to send [14:06:10]OFD Sender: No OFD packet to send [14:06:15]OFD Sender: No OFD packet to send [14:06:20]OFD Sender: No OFD packet to send [14:06:25]OFD Sender: No OFD packet to send [14:06:30]OFD Sender: No OFD packet to send [14:06:35]OFD Sender: No OFD packet to send [14:06:40]OFD Sender: No OFD packet to send [14:06:45]OFD Sender: No OFD packet to send [14:06:50]OFD Sender: No OFD packet to send [14:06:55]OFD Sender: No OFD packet to send [14:07:00]OFD Sender: No OFD packet to send [14:07:05]OFD Sender: No OFD packet to send [14:07:10]OFD Sender: No OFD packet to send [14:07:15]OFD Sender: No OFD packet to send [14:07:20]OFD Sender: No OFD packet to send [14:07:25]OFD Sender: No OFD packet to send [14:07:30]OFD Sender: No OFD packet to send [14:07:35]OFD Sender: No OFD packet to send [14:07:40]OFD Sender: No OFD packet to send [14:07:45]OFD Sender: No OFD packet to send [14:07:50]OFD Sender: No OFD packet to send [14:07:55]OFD Sender: No OFD packet to send [14:08:00]OFD Sender: No OFD packet to send [14:08:05]OFD Sender: No OFD packet to send [14:08:10]OFD Sender: No OFD packet to send [14:08:15]OFD Sender: No OFD packet to send [14:08:20]OFD Sender: No OFD packet to send [14:08:25]accept exits with 9 [14:08:25]New connection [14:08:25]New thread 3066977636 created [14:08:25]Thread 3066834276 joined [14:08:25]Waiting for new connection... [14:08:25] Sock 9.Parse request [14:08:25]Sock 9.Check first char [14:08:25]Sock 9.First char is OK [14:08:25]request: POST /json_proto HTTP/1.0 [14:08:25]Method: POST [14:08:25]URL: /json_proto [14:08:25]Method is POST - this is cgi request [14:08:25]url: /json_proto [14:08:25]query_string will be loaded in cgi processing [14:08:25]execute_cgi json_proto POST (null) [14:08:25]execute_cgi path=json_proto method=POST [14:08:25]POST find Content-Length [14:08:25]Host: 172.17.63.3:8080 [14:08:25]Content-Length: 676 [14:08:25]Content-Type: application/json [14:08:25] [14:08:25]POST finish read [14:08:25]Found Content-Length = 676 [14:08:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99415", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:08:25]execute_script... [14:08: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)99415", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:08:25]POST & json_proto [14:08:25]process_json_proto [14:08:25]json parsed OK: [14:08:25]protocol is kg_v1.0 [14:08:25]action value=close_receipt [14:08:25]process_action close_receipt [14:08:25]cmd_close_receipt [14:08:25]MH_GetDate [14:08:25]Write to MH i2c: F0 00 00 21 5C 6C [14:08:25]Write i2c OK [14:08:25]MH_I2C_Read... [14:08:25]Read from MH i2c: F0 [14:08:25]MH_I2C_Read... [14:08:25]Read from MH i2c: F0 09 00 [14:08:25]MH_I2C_Read... [14:08:25]Read from MH i2c: F0 09 00 21 5C 00 5F 49 1E 67 50 D1 6C 64 93 [14:08:25]GetLastDocTimeStamp 1730037878 [14:08:25]current date 1730038111 [14:08:25]FM_GetShiftState [14:08:25]SAM_PROTO_GetShiftState [14:08:25]wFMCommunicate request_size=4 [14:08:25]MH_SAM_APDU [14:08:25]CAPDU: 80 13 01 00 [14:08:25]Write to MH i2c: E2 08 00 22 5C 80 13 01 00 00 00 00 00 FB [14:08:25]Write i2c OK [14:08:25]MH_I2C_Read... [14:08:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:08:25]Read from MH i2c: E2 [14:08:25]MH_I2C_Read... [14:08:25]Read from MH i2c: E2 0E 00 [14:08:25]MH_I2C_Read... [14:08:25]Read from MH i2c: E2 0E 00 22 5C 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 C8 [14:08:25]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [14:08:25]wFMCommunicate OK [14:08:25]SAM_PROTO_GetShiftState done [14:08:25]FM_GetShiftState done [14:08:25]opened in 1729989044 [14:08:25]opened+sec_in_day 1730075444 [14:08:25]quantity*price = 50041 [14:08:25]sum+1 = 50042 [14:08:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 152 27.10.2024 14:08 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156601 ФПД: 150712192174377 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T140831&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156601&fm=150712192174377&tin=02508201610067®Number=0000000000091693&sum=50000 [14:08:26]StoreToDocumentArchive [14:08:26]shift 537 fd 156601 [14:08:26]save to /storage/0537/doc_00156601 [14:08:26]save last doc name /storage/0537/doc_00156601 to /storage/kkm_last_doc_name [14:08:26]save OK [14:08:26]Clear old archive folders... [14:08:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:08:26]tlvbuf is 017DCDC0 [14:08:26]SAM_PROTO_ClearQueue [14:08:26]wFMCommunicate request_size=4 [14:08:26]MH_SAM_APDU [14:08:26]CAPDU: 80 09 00 00 [14:08:26]Write to MH i2c: E2 08 00 2F 5C 80 09 00 00 00 00 00 00 FD [14:08:26]Write i2c OK [14:08:26]MH_I2C_Read... [14:08:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:08:26]Read from MH i2c: E2 [14:08:26]MH_I2C_Read... [14:08:26]Read from MH i2c: E2 03 00 [14:08:26]MH_I2C_Read... [14:08:26]Read from MH i2c: E2 03 00 2F 5C 00 90 00 FF [14:08:26]RAPDU: 90 00 [14:08:26]wFMCommunicate OK [14:08:26]SAM_PROTO_ClearQueue done [14:08:26]KKMCreateOFDPacket [14:08:26]OFDProtocolAddRootSTLVToBuf [14:08:26]FM_MakeSignedData [14:08:26]FM_MakeSignedData [14:08:26]SAM_PROTO_SignData [14:08:26]wFMCommunicate request_size=4 [14:08:26]MH_SAM_APDU [14:08:26]CAPDU: 80 0D 01 02 [14:08:26]Write to MH i2c: E2 08 00 30 5C 80 0D 01 02 00 00 00 00 05 [14:08:26]Write i2c OK [14:08:26]MH_I2C_Read... [14:08:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:08:26]Read from MH i2c: E2 [14:08:26]MH_I2C_Read... [14:08:26]Read from MH i2c: E2 03 00 [14:08:26]MH_I2C_Read... [14:08:26]Read from MH i2c: E2 03 00 30 5C 00 90 00 00 [14:08:26]RAPDU: 90 00 [14:08:26]wFMCommunicate OK [14:08:26]wFMCommunicate request_size=255 [14:08:26]MH_SAM_APDU [14:08: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 5F 49 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B9 63 02 00 35 04 06 00 89 [14:08:26]Write to MH i2c: E2 02 01 31 5C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 5F 49 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B9 63 02 00 35 04 06 00 89 00 00 20 [14:08:26]Write i2c OK [14:08:26]MH_I2C_Read... [14:08:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:08:27]Read from MH i2c: E2 [14:08:27]MH_I2C_Read... [14:08:27]Read from MH i2c: E2 03 00 [14:08:27]MH_I2C_Read... [14:08:27]Read from MH i2c: E2 03 00 31 5C 00 90 00 01 [14:08:27]RAPDU: 90 00 [14:08:27]wFMCommunicate OK [14:08:27]wFMCommunicate request_size=10 [14:08:27]MH_SAM_APDU [14:08:27]CAPDU: 80 0D 02 02 05 12 6A AD 89 29 [14:08:27]Write to MH i2c: E2 0D 00 32 5C 80 0D 02 02 05 00 12 6A AD 89 29 00 00 ED [14:08:27]Write i2c OK [14:08:27]MH_I2C_Read... [14:08:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:08:27]Read from MH i2c: E2 [14:08:27]MH_I2C_Read... [14:08:27]Read from MH i2c: E2 03 00 [14:08:27]MH_I2C_Read... [14:08:27]Read from MH i2c: E2 03 00 32 5C 00 90 00 02 [14:08:27]RAPDU: 90 00 [14:08:27]wFMCommunicate OK [14:08:27]wFMCommunicate request_size=4 [14:08:27]MH_SAM_APDU [14:08:27]CAPDU: 80 0D 03 02 [14:08:27]Write to MH i2c: E2 08 00 33 5C 80 0D 03 02 00 00 00 00 0A [14:08:27]Write i2c OK [14:08:27]MH_I2C_Read... [14:08:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:08:27]Read from MH i2c: E2 [14:08:27]MH_I2C_Read... [14:08:27]Read from MH i2c: E2 0B 00 [14:08:27]MH_I2C_Read... [14:08:27]Read from MH i2c: E2 0B 00 33 5C 00 97 90 6D F5 07 77 EA 7A 90 00 76 [14:08:27]RAPDU: 97 90 6D F5 07 77 EA 7A 90 00 [14:08:27]wFMCommunicate OK [14:08:27]SAM_PROTO_SignData done [14:08:27]FM_MakeSignedData done [14:08:27]CreateOFDProtocolMessage [14:08:27]wFMCommunicate request_size=4 [14:08:27]MH_SAM_APDU [14:08:27]CAPDU: 80 11 00 00 [14:08:27]Write to MH i2c: E2 08 00 34 5C 80 11 00 00 00 00 00 00 0A [14:08:27]Write i2c OK [14:08:27]MH_I2C_Read... [14:08:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:08:27]Read from MH i2c: E2 [14:08:27]MH_I2C_Read... [14:08:27]Read from MH i2c: E2 17 00 [14:08:27]MH_I2C_Read... [14:08:27]Read from MH i2c: E2 17 00 34 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 5F [14:08:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:08:27]wFMCommunicate OK [14:08:27]CreateOFDProtocolMessage done [14:08:27]OFDSenderStorePacket 156601 [14:08:27]StoreOFDPacket docnum=156601 [14:08:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 6F DF 07 01 5F 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 5F 49 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B9 63 02 00 35 04 06 00 89 12 6A AD 89 29 97 90 6D F5 07 77 EA 7A [14:08:27]CheckFolder [14:08:27]dirname=/storage/ofd_packets [14:08:27]CheckFolder done [14:08:27]ProducePacketName [14:08:27]name=ofd_packets/00156601 [14:08:27]NVStorageSaveData ofd_packets/00156601 [14:08:27]File name is /storage/ofd_packets/00156601 [14:08:27]Write 301 bytes [14:08:27]NVStorageSaveData done [14:08:27]OFDSenderStorePacket done [14:08:27]KKMCreateOFDPacket done [14:08:27]NVStorageSaveData kkm_last_timestamp [14:08:27]File name is /storage/kkm_last_timestamp [14:08:27]Write 4 bytes [14:08:27]NVStorageSaveData done [14:08:27]ExternCall_PrintAddStr [14:08:27]wPrintStart [14:08:27]Write to MH i2c: 01 00 00 35 5C 91 [14:08:27]Write i2c OK [14:08:27]MH_I2C_Read... [14:08:27]Read from MH i2c: 01 [14:08:27]MH_I2C_Read... [14:08:27]Read from MH i2c: 01 07 00 [14:08:27]MH_I2C_Read... [14:08:27]Read from MH i2c: 01 07 00 35 5C 00 00 00 00 00 FF 0F A6 [14:08:27]RasterBufferAndPrint [14:08:27]line Счет N : (1)99415 [14:08:27]line ИНН: 02508201610067 [14:08:27]line Контрольно-Кассовый Чек [14:08:27]line ПРОДАЖА [14:08:27]line ТРК (МРК, ГНК) : 31 [14:08:27]line Товар: 2710124130 [14:08:27]line Аи-92-К-5 [14:08:27]line 7.480 * 66.90 [14:08:27]line = 500.41 [14:08:27]line НДС 12% НСП 1% [14:08:27]line > о реализуемом товаре [14:08:27]line ОКРУГЛЕНИЕ: -0.41 [14:08:27]line ИТОГО: 500.00 [14:08:27]line Внесено: 500.00 [14:08:27]line СДАЧА: 0.00 [14:08:27]line НСП 1% : 4.43 [14:08:27]line НДС 12% : 53.14 [14:08:27]line Наличными: 500.00 [14:08:27]line Безнал.: 0.00 [14:08:27]line Место: АЗС № 143 "Партнер Нефть" [14:08:27]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [14:08:27]line СНО: Общий режим [14:08:27]line Чек 152 27.10.2024 14:08 [14:08:27]line Смена: 537 ФФД: 1.0 [14:08:27]line ЗНМ: 0300000096 [14:08:27]line РНМ: 0000000000091693 [14:08:27]line Версия ККМ: 001 [14:08:27]line ФМ: 0000000000871792 [14:08:27]line ФД: 156601 [14:08:27]line ФПД: 150712192174377 [14:08:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T140831&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156601&fm=150712192174377&tin=02508201610067®Number=0000000000091693&sum=50000 [14:08:27]OFD Sender: Processing packet 156601 [packets to send 31, broken 30] [14:08:27]ProducePacketName [14:08:27]name=ofd_packets/00156601 [14:08:27]OFD Sender: To server: pG, [14:08:27]CommunicateWithHost lk.salyk.kg:30040 [14:08:27]ConnectInit lk.salyk.kg [14:08:27]written 0, free lines is 4095 [14:08:27]Connected sock=8 [14:08:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 6F DF 07 01 5F 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 5F 49 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 B9 63 02 00 35 04 06 00 89 12 6A AD 89 29 97 90 6D F5 07 77 EA 7A [14:08:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 84 76 47 00 93 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 31 37 39 32 10 04 04 00 B9 63 02 00 F4 03 04 00 CF EE 1D 67 B6 04 01 00 00 16 52 2F 5C 5F C5 30 2E [14:08:28]CommunicateWithHost err = 0 [14:08:28]CheckOFDResponse [14:08:28]1017 (14) - 77093643461234 [14:08:28]1041 (16) - 0000000000871792 [14:08:28]1040 (4) - 156601 [14:08:28]1012 (4) - 27.10.2024 07:42 [14:08:28]1206 (1) - 0 [14:08:28]OFD Sender: Remove packet 156601 [14:08:28]ProducePacketName [14:08:28]name=ofd_packets/00156601 [14:08:28]NVStorageDeleteData [14:08:28]Write to MH i2c: 01 00 00 60 5C BC [14:08:28]Write i2c OK [14:08:28]MH_I2C_Read... [14:08:28]Read from MH i2c: 01 [14:08:28]MH_I2C_Read... [14:08:28]Read from MH i2c: 01 07 00 [14:08:28]MH_I2C_Read... [14:08:28]Read from MH i2c: 01 07 00 60 5C 00 00 00 00 00 DC 0C AB [14:08:28]RasterBufferAndPrint [14:08:28]line [14:08:28]line [14:08:28]line [14:08:28]line [14:08:28]line [14:08:28]written 0, free lines is 3298 [14:08:28]process_action close_receipt done [14:08:28]requested_data is exist [14:08:28]produce_requested_data [14:08:28]requested_item fm.sn is exist - process it [14:08:28]wFMCommunicate request_size=4 [14:08:28]MH_SAM_APDU [14:08:28]CAPDU: 80 11 00 00 [14:08:28]Write to MH i2c: E2 08 00 67 5C 80 11 00 00 00 00 00 00 3D [14:08:28]Write i2c OK [14:08:28]MH_I2C_Read... [14:08:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:08:28]Read from MH i2c: E2 [14:08:28]MH_I2C_Read... [14:08:28]Read from MH i2c: E2 17 00 [14:08:28]MH_I2C_Read... [14:08:28]Read from MH i2c: E2 17 00 67 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 92 [14:08:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:08:28]wFMCommunicate OK [14:08:28]requested_item fd.num is exist - process it [14:08:28]SAM_PROTO_GetFieldsCounters [14:08:28]wFMCommunicate request_size=4 [14:08:28]MH_SAM_APDU [14:08:28]CAPDU: 80 13 00 00 [14:08:28]Write to MH i2c: E2 08 00 68 5C 80 13 00 00 00 00 00 00 40 [14:08:28]Write i2c OK [14:08:28]MH_I2C_Read... [14:08:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:08:28]Read from MH i2c: E2 [14:08:28]MH_I2C_Read... [14:08:28]Read from MH i2c: E2 62 00 [14:08:28]MH_I2C_Read... [14:08:28]Read from MH i2c: E2 62 00 68 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 B9 63 02 00 0E 04 04 00 19 02 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 67 [14:08:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 B9 63 02 00 0E 04 04 00 19 02 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 [14:08:28]wFMCommunicate OK [14:08:28]SAM_PROTO_GetFieldsCounters done [14:08:28]requested_item shift.num is exist - process it [14:08:28]requested_item shift.opened is exist - process it [14:08:28]req_shift_opened [14:08:28]FM_GetShiftState [14:08:28]SAM_PROTO_GetShiftState [14:08:28]wFMCommunicate request_size=4 [14:08:28]MH_SAM_APDU [14:08:28]CAPDU: 80 13 01 00 [14:08:28]Write to MH i2c: E2 08 00 69 5C 80 13 01 00 00 00 00 00 42 [14:08:28]Write i2c OK [14:08:28]MH_I2C_Read... [14:08:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:08:28]Read from MH i2c: E2 [14:08:28]MH_I2C_Read... [14:08:28]Read from MH i2c: E2 0E 00 [14:08:28]MH_I2C_Read... [14:08:28]Read from MH i2c: E2 0E 00 69 5C 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 0F [14:08:28]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [14:08:28]wFMCommunicate OK [14:08:28]SAM_PROTO_GetShiftState done [14:08:28]FM_GetShiftState done [14:08:28]req_shift_opened done [14:08:28]requested_item shift.open_date is exist - process it [14:08:28]req_shift_open_date [14:08:28]req_shift_open_date done [14:08:28]produce_requested_data done [14:08:28]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156601,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [14:08:28]process_action_free close_receipt [14:08:28]json_value_free [14:08:28]json_value_free done [14:08:28]process_json_proto returns [14:08:28]Send response to host [14:08:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156601,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [14:08:28]free response buf [14:08:28]execute_script done [14:08:28]execute_script returns [14:08:28]free content buf [14:08:28]Sock 9.Close socket [14:08:28]Sock 9.Thread stoped [14:08:28]OFD Sender: No OFD packet to send [14:08:33]OFD Sender: No OFD packet to send [14:08:38]OFD Sender: No OFD packet to send [14:08:43]OFD Sender: No OFD packet to send [14:08:48]OFD Sender: No OFD packet to send [14:08:53]OFD Sender: No OFD packet to send [14:08:58]OFD Sender: No OFD packet to send [14:09:03]OFD Sender: No OFD packet to send [14:09:08]OFD Sender: No OFD packet to send [14:09:13]OFD Sender: No OFD packet to send [14:09:18]OFD Sender: No OFD packet to send [14:09:23]OFD Sender: No OFD packet to send [14:09:28]OFD Sender: No OFD packet to send [14:09:33]OFD Sender: No OFD packet to send [14:09:38]OFD Sender: No OFD packet to send [14:09:43]OFD Sender: No OFD packet to send [14:09:48]OFD Sender: No OFD packet to send [14:09:53]OFD Sender: No OFD packet to send [14:09:58]OFD Sender: No OFD packet to send [14:10:03]OFD Sender: No OFD packet to send [14:10:08]OFD Sender: No OFD packet to send [14:10:13]OFD Sender: No OFD packet to send [14:10:18]OFD Sender: No OFD packet to send [14:10:23]OFD Sender: No OFD packet to send [14:10:28]OFD Sender: No OFD packet to send [14:10:33]OFD Sender: No OFD packet to send [14:10:38]OFD Sender: No OFD packet to send [14:10:43]OFD Sender: No OFD packet to send [14:10:48]OFD Sender: No OFD packet to send [14:10:53]OFD Sender: No OFD packet to send [14:10:58]OFD Sender: No OFD packet to send [14:11:03]OFD Sender: No OFD packet to send [14:11:08]OFD Sender: No OFD packet to send [14:11:13]OFD Sender: No OFD packet to send [14:11:18]OFD Sender: No OFD packet to send [14:11:23]OFD Sender: No OFD packet to send [14:11:28]OFD Sender: No OFD packet to send [14:11:33]OFD Sender: No OFD packet to send [14:11:38]OFD Sender: No OFD packet to send [14:11:43]OFD Sender: No OFD packet to send [14:11:48]OFD Sender: No OFD packet to send [14:11:53]OFD Sender: No OFD packet to send [14:11:58]OFD Sender: No OFD packet to send [14:12:03]OFD Sender: No OFD packet to send [14:12:08]OFD Sender: No OFD packet to send [14:12:13]OFD Sender: No OFD packet to send [14:12:18]OFD Sender: No OFD packet to send [14:12:23]OFD Sender: No OFD packet to send [14:12:28]OFD Sender: No OFD packet to send [14:12:33]OFD Sender: No OFD packet to send [14:12:38]OFD Sender: No OFD packet to send [14:12:43]OFD Sender: No OFD packet to send [14:12:48]OFD Sender: No OFD packet to send [14:12:53]OFD Sender: No OFD packet to send [14:12:58]OFD Sender: No OFD packet to send [14:13:03]OFD Sender: No OFD packet to send [14:13:08]OFD Sender: No OFD packet to send [14:13:13]OFD Sender: No OFD packet to send [14:13:18]OFD Sender: No OFD packet to send [14:13:23]OFD Sender: No OFD packet to send [14:13:28]OFD Sender: No OFD packet to send [14:13:33]OFD Sender: No OFD packet to send [14:13:38]OFD Sender: No OFD packet to send [14:13:43]OFD Sender: No OFD packet to send [14:13:48]OFD Sender: No OFD packet to send [14:13:53]OFD Sender: No OFD packet to send [14:13:58]OFD Sender: No OFD packet to send [14:14:03]OFD Sender: No OFD packet to send [14:14:08]OFD Sender: No OFD packet to send [14:14:13]OFD Sender: No OFD packet to send [14:14:18]OFD Sender: No OFD packet to send [14:14:23]OFD Sender: No OFD packet to send [14:14:28]OFD Sender: No OFD packet to send [14:14:33]OFD Sender: No OFD packet to send [14:14:38]OFD Sender: No OFD packet to send [14:14:43]OFD Sender: No OFD packet to send [14:14:48]OFD Sender: No OFD packet to send [14:14:53]OFD Sender: No OFD packet to send [14:14:58]OFD Sender: No OFD packet to send [14:15:03]OFD Sender: No OFD packet to send [14:15:08]OFD Sender: No OFD packet to send [14:15:13]OFD Sender: No OFD packet to send [14:15:18]OFD Sender: No OFD packet to send [14:15:23]OFD Sender: No OFD packet to send [14:15:28]OFD Sender: No OFD packet to send [14:15:33]OFD Sender: No OFD packet to send [14:15:38]OFD Sender: No OFD packet to send [14:15:43]OFD Sender: No OFD packet to send [14:15:48]OFD Sender: No OFD packet to send [14:15:53]OFD Sender: No OFD packet to send [14:15:58]OFD Sender: No OFD packet to send [14:16:03]OFD Sender: No OFD packet to send [14:16:09]OFD Sender: No OFD packet to send [14:16:14]OFD Sender: No OFD packet to send [14:16:19]OFD Sender: No OFD packet to send [14:16:24]OFD Sender: No OFD packet to send [14:16:29]OFD Sender: No OFD packet to send [14:16:34]OFD Sender: No OFD packet to send [14:16:39]OFD Sender: No OFD packet to send [14:16:44]OFD Sender: No OFD packet to send [14:16:49]OFD Sender: No OFD packet to send [14:16:54]OFD Sender: No OFD packet to send [14:16:59]OFD Sender: No OFD packet to send [14:17:04]OFD Sender: No OFD packet to send [14:17:09]OFD Sender: No OFD packet to send [14:17:14]OFD Sender: No OFD packet to send [14:17:19]OFD Sender: No OFD packet to send [14:17:24]OFD Sender: No OFD packet to send [14:17:29]OFD Sender: No OFD packet to send [14:17:34]OFD Sender: No OFD packet to send [14:17:39]OFD Sender: No OFD packet to send [14:17:44]OFD Sender: No OFD packet to send [14:17:49]OFD Sender: No OFD packet to send [14:17:54]OFD Sender: No OFD packet to send [14:17:59]OFD Sender: No OFD packet to send [14:18:04]OFD Sender: No OFD packet to send [14:18:09]OFD Sender: No OFD packet to send [14:18:14]OFD Sender: No OFD packet to send [14:18:19]OFD Sender: No OFD packet to send [14:18:24]OFD Sender: No OFD packet to send [14:18:29]OFD Sender: No OFD packet to send [14:18:34]OFD Sender: No OFD packet to send [14:18:39]OFD Sender: No OFD packet to send [14:18:44]OFD Sender: No OFD packet to send [14:18:49]OFD Sender: No OFD packet to send [14:18:54]OFD Sender: No OFD packet to send [14:18:59]OFD Sender: No OFD packet to send [14:19:04]OFD Sender: No OFD packet to send [14:19:09]OFD Sender: No OFD packet to send [14:19:14]OFD Sender: No OFD packet to send [14:19:19]OFD Sender: No OFD packet to send [14:19:24]OFD Sender: No OFD packet to send [14:19:29]OFD Sender: No OFD packet to send [14:19:34]OFD Sender: No OFD packet to send [14:19:39]OFD Sender: No OFD packet to send [14:19:44]OFD Sender: No OFD packet to send [14:19:49]OFD Sender: No OFD packet to send [14:19:54]OFD Sender: No OFD packet to send [14:19:59]OFD Sender: No OFD packet to send [14:20:04]OFD Sender: No OFD packet to send [14:20:09]OFD Sender: No OFD packet to send [14:20:14]OFD Sender: No OFD packet to send [14:20:19]OFD Sender: No OFD packet to send [14:20:24]OFD Sender: No OFD packet to send [14:20:29]OFD Sender: No OFD packet to send [14:20:34]OFD Sender: No OFD packet to send [14:20:39]OFD Sender: No OFD packet to send [14:20:44]OFD Sender: No OFD packet to send [14:20:49]OFD Sender: No OFD packet to send [14:20:54]OFD Sender: No OFD packet to send [14:20:59]OFD Sender: No OFD packet to send [14:21:04]OFD Sender: No OFD packet to send [14:21:08]accept exits with 10 [14:21:08]New connection [14:21:08]New thread 3066834276 created [14:21:08]Thread 3066977636 joined [14:21:08]Waiting for new connection... [14:21:08] Sock 10.Parse request [14:21:08]Sock 10.Check first char [14:21:08]Sock 10.First char is OK [14:21:08]request: POST /json_proto HTTP/1.0 [14:21:08]Method: POST [14:21:08]URL: /json_proto [14:21:08]Method is POST - this is cgi request [14:21:08]url: /json_proto [14:21:08]query_string will be loaded in cgi processing [14:21:08]execute_cgi json_proto POST (null) [14:21:08]execute_cgi path=json_proto method=POST [14:21:08]POST find Content-Length [14:21:08]Host: 172.17.63.3:8080 [14:21:08]Content-Length: 681 [14:21:08]Content-Type: application/json [14:21:08] [14:21:08]POST finish read [14:21:08]Found Content-Length = 681 [14:21:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99416", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:21:08]execute_script... [14:21: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)99416", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:21:08]POST & json_proto [14:21:08]process_json_proto [14:21:08]json parsed OK: [14:21:08]protocol is kg_v1.0 [14:21:08]action value=close_receipt [14:21:08]process_action close_receipt [14:21:08]cmd_close_receipt [14:21:08]MH_GetDate [14:21:08]Write to MH i2c: F0 00 00 6A 5C B5 [14:21:08]Write i2c OK [14:21:08]MH_I2C_Read... [14:21:08]Read from MH i2c: F0 [14:21:08]MH_I2C_Read... [14:21:08]Read from MH i2c: F0 09 00 [14:21:08]MH_I2C_Read... [14:21:08]Read from MH i2c: F0 09 00 6A 5C 00 5B 4C 1E 67 50 D1 6C 64 DB [14:21:08]GetLastDocTimeStamp 1730038111 [14:21:08]current date 1730038875 [14:21:08]FM_GetShiftState [14:21:08]SAM_PROTO_GetShiftState [14:21:08]wFMCommunicate request_size=4 [14:21:08]MH_SAM_APDU [14:21:08]CAPDU: 80 13 01 00 [14:21:08]Write to MH i2c: E2 08 00 6B 5C 80 13 01 00 00 00 00 00 44 [14:21:08]Write i2c OK [14:21:08]MH_I2C_Read... [14:21:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:21:08]Read from MH i2c: E2 [14:21:08]MH_I2C_Read... [14:21:08]Read from MH i2c: E2 0E 00 [14:21:08]MH_I2C_Read... [14:21:08]Read from MH i2c: E2 0E 00 6B 5C 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 11 [14:21:08]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [14:21:08]wFMCommunicate OK [14:21:08]SAM_PROTO_GetShiftState done [14:21:08]FM_GetShiftState done [14:21:08]opened in 1729989044 [14:21:08]opened+sec_in_day 1730075444 [14:21:08]quantity*price = 100015 [14:21:08]sum+1 = 100017 [14:21:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 153 27.10.2024 14:21 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156602 ФПД: 129339133724821 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T142115&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156602&fm=129339133724821&tin=02508201610067®Number=0000000000091693&sum=100000 [14:21:10]StoreToDocumentArchive [14:21:10]shift 537 fd 156602 [14:21:10]save to /storage/0537/doc_00156602 [14:21:10]save last doc name /storage/0537/doc_00156602 to /storage/kkm_last_doc_name [14:21:10]save OK [14:21:10]Clear old archive folders... [14:21:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:21:10]tlvbuf is 01842C30 [14:21:10]SAM_PROTO_ClearQueue [14:21:10]wFMCommunicate request_size=4 [14:21:10]MH_SAM_APDU [14:21:10]CAPDU: 80 09 00 00 [14:21:10]Write to MH i2c: E2 08 00 78 5C 80 09 00 00 00 00 00 00 46 [14:21:10]Write i2c OK [14:21:10]MH_I2C_Read... [14:21:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:21:10]Read from MH i2c: E2 [14:21:10]MH_I2C_Read... [14:21:10]Read from MH i2c: E2 03 00 [14:21:10]MH_I2C_Read... [14:21:10]Read from MH i2c: E2 03 00 78 5C 00 90 00 48 [14:21:10]RAPDU: 90 00 [14:21:10]wFMCommunicate OK [14:21:10]SAM_PROTO_ClearQueue done [14:21:10]KKMCreateOFDPacket [14:21:10]OFDProtocolAddRootSTLVToBuf [14:21:10]FM_MakeSignedData [14:21:10]FM_MakeSignedData [14:21:10]SAM_PROTO_SignData [14:21:10]wFMCommunicate request_size=4 [14:21:10]MH_SAM_APDU [14:21:10]CAPDU: 80 0D 01 02 [14:21:10]Write to MH i2c: E2 08 00 79 5C 80 0D 01 02 00 00 00 00 4E [14:21:10]Write i2c OK [14:21:10]MH_I2C_Read... [14:21:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:21:10]Read from MH i2c: E2 [14:21:10]MH_I2C_Read... [14:21:10]Read from MH i2c: E2 03 00 [14:21:10]MH_I2C_Read... [14:21:10]Read from MH i2c: E2 03 00 79 5C 00 90 00 49 [14:21:10]RAPDU: 90 00 [14:21:10]wFMCommunicate OK [14:21:10]wFMCommunicate request_size=255 [14:21:10]MH_SAM_APDU [14:21: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 5B 4C 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BA 63 02 00 35 04 06 00 75 [14:21:10]Write to MH i2c: E2 02 01 7A 5C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 5B 4C 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BA 63 02 00 35 04 06 00 75 00 00 50 [14:21:10]Write i2c OK [14:21:10]MH_I2C_Read... [14:21:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:21:10]Read from MH i2c: E2 [14:21:10]MH_I2C_Read... [14:21:10]Read from MH i2c: E2 03 00 [14:21:10]MH_I2C_Read... [14:21:10]Read from MH i2c: E2 03 00 7A 5C 00 90 00 4A [14:21:10]RAPDU: 90 00 [14:21:10]wFMCommunicate OK [14:21:10]wFMCommunicate request_size=10 [14:21:10]MH_SAM_APDU [14:21:10]CAPDU: 80 0D 02 02 05 A2 1D 1F 08 95 [14:21:10]Write to MH i2c: E2 0D 00 7B 5C 80 0D 02 02 05 00 A2 1D 1F 08 95 00 00 D6 [14:21:10]Write i2c OK [14:21:10]MH_I2C_Read... [14:21:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:21:10]Read from MH i2c: E2 [14:21:10]MH_I2C_Read... [14:21:10]Read from MH i2c: E2 03 00 [14:21:10]MH_I2C_Read... [14:21:10]Read from MH i2c: E2 03 00 7B 5C 00 90 00 4B [14:21:10]RAPDU: 90 00 [14:21:10]wFMCommunicate OK [14:21:10]wFMCommunicate request_size=4 [14:21:10]MH_SAM_APDU [14:21:10]CAPDU: 80 0D 03 02 [14:21:10]Write to MH i2c: E2 08 00 7C 5C 80 0D 03 02 00 00 00 00 53 [14:21:10]Write i2c OK [14:21:10]MH_I2C_Read... [14:21:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:21:10]Read from MH i2c: E2 [14:21:10]MH_I2C_Read... [14:21:10]Read from MH i2c: E2 0B 00 [14:21:10]MH_I2C_Read... [14:21:10]Read from MH i2c: E2 0B 00 7C 5C 00 4F CF 03 DB 77 1C 67 31 90 00 7B [14:21:10]RAPDU: 4F CF 03 DB 77 1C 67 31 90 00 [14:21:10]wFMCommunicate OK [14:21:10]SAM_PROTO_SignData done [14:21:10]FM_MakeSignedData done [14:21:10]CreateOFDProtocolMessage [14:21:10]wFMCommunicate request_size=4 [14:21:10]MH_SAM_APDU [14:21:10]CAPDU: 80 11 00 00 [14:21:10]Write to MH i2c: E2 08 00 7D 5C 80 11 00 00 00 00 00 00 53 [14:21:10]Write i2c OK [14:21:10]MH_I2C_Read... [14:21:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:21:10]Read from MH i2c: E2 [14:21:10]MH_I2C_Read... [14:21:10]Read from MH i2c: E2 17 00 [14:21:10]MH_I2C_Read... [14:21:10]Read from MH i2c: E2 17 00 7D 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 A8 [14:21:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:21:10]wFMCommunicate OK [14:21:10]CreateOFDProtocolMessage done [14:21:10]OFDSenderStorePacket 156602 [14:21:10]StoreOFDPacket docnum=156602 [14:21:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 6E F6 07 01 38 21 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 5B 4C 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BA 63 02 00 35 04 06 00 75 A2 1D 1F 08 95 4F CF 03 DB 77 1C 67 31 [14:21:10]CheckFolder [14:21:10]dirname=/storage/ofd_packets [14:21:10]CheckFolder done [14:21:10]ProducePacketName [14:21:10]name=ofd_packets/00156602 [14:21:10]NVStorageSaveData ofd_packets/00156602 [14:21:10]File name is /storage/ofd_packets/00156602 [14:21:10]Write 301 bytes [14:21:10]NVStorageSaveData done [14:21:10]OFDSenderStorePacket done [14:21:10]KKMCreateOFDPacket done [14:21:10]NVStorageSaveData kkm_last_timestamp [14:21:10]File name is /storage/kkm_last_timestamp [14:21:10]Write 4 bytes [14:21:10]NVStorageSaveData done [14:21:10]ExternCall_PrintAddStr [14:21:10]wPrintStart [14:21:10]Write to MH i2c: 01 00 00 7E 5C DA [14:21:10]Write i2c OK [14:21:10]MH_I2C_Read... [14:21:10]Read from MH i2c: 01 [14:21:10]MH_I2C_Read... [14:21:10]Read from MH i2c: 01 07 00 [14:21:10]MH_I2C_Read... [14:21:10]Read from MH i2c: 01 07 00 7E 5C 00 00 00 00 00 FF 0F EF [14:21:10]RasterBufferAndPrint [14:21:10]line Счет N : (1)99416 [14:21:10]line ИНН: 02508201610067 [14:21:10]line Контрольно-Кассовый Чек [14:21:10]line ПРОДАЖА [14:21:10]line ТРК (МРК, ГНК) : 21 [14:21:10]line Товар: 2710124130 [14:21:10]line Аи-92-К-5 [14:21:10]line 14.950 * 66.90 [14:21:10]line = 1000.16 [14:21:10]line НДС 12% НСП 1% [14:21:10]line > о реализуемом товаре [14:21:10]line ОКРУГЛЕНИЕ: -0.16 [14:21:10]line ИТОГО: 1000.00 [14:21:10]line Внесено: 1000.00 [14:21:10]line СДАЧА: 0.00 [14:21:10]line НСП 1% : 8.85 [14:21:10]line НДС 12% : 106.21 [14:21:10]line Наличными: 1000.00 [14:21:10]line Безнал.: 0.00 [14:21:10]line Место: АЗС № 143 "Партнер Нефть" [14:21:10]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [14:21:10]line СНО: Общий режим [14:21:10]line Чек 153 27.10.2024 14:21 [14:21:10]line Смена: 537 ФФД: 1.0 [14:21:10]line ЗНМ: 0300000096 [14:21:10]line РНМ: 0000000000091693 [14:21:10]line Версия ККМ: 001 [14:21:10]line ФМ: 0000000000871792 [14:21:10]line ФД: 156602 [14:21:10]line ФПД: 129339133724821 [14:21:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T142115&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156602&fm=129339133724821&tin=02508201610067®Number=0000000000091693&sum=100000 [14:21:10]OFD Sender: Processing packet 156602 [packets to send 31, broken 30] [14:21:10]ProducePacketName [14:21:10]name=ofd_packets/00156602 [14:21:10]OFD Sender: To server: pG, [14:21:10]CommunicateWithHost lk.salyk.kg:30040 [14:21:10]ConnectInit lk.salyk.kg [14:21:10]written 0, free lines is 4095 [14:21:11]Connected sock=9 [14:21:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 6E F6 07 01 38 21 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 5B 4C 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BA 63 02 00 35 04 06 00 75 A2 1D 1F 08 95 4F CF 03 DB 77 1C 67 31 [14:21:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 30 02 47 00 D8 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BA 63 02 00 F4 03 04 00 CA F1 1D 67 B6 04 01 00 00 FC A0 BA 93 2E 02 FD 9C [14:21:11]CommunicateWithHost err = 0 [14:21:11]CheckOFDResponse [14:21:11]1017 (14) - 77093643461234 [14:21:11]1041 (16) - 0000000000871792 [14:21:11]1040 (4) - 156602 [14:21:11]1012 (4) - 27.10.2024 07:54 [14:21:11]1206 (1) - 0 [14:21:11]OFD Sender: Remove packet 156602 [14:21:11]ProducePacketName [14:21:11]name=ofd_packets/00156602 [14:21:11]NVStorageDeleteData [14:21:11]Write to MH i2c: 01 00 00 A9 5C 05 [14:21:11]Write i2c OK [14:21:11]MH_I2C_Read... [14:21:11]Read from MH i2c: 01 [14:21:11]MH_I2C_Read... [14:21:11]Read from MH i2c: 01 07 00 [14:21:11]MH_I2C_Read... [14:21:11]Read from MH i2c: 01 07 00 A9 5C 00 00 00 00 00 E2 0C FA [14:21:11]RasterBufferAndPrint [14:21:11]line [14:21:11]line [14:21:11]line [14:21:11]line [14:21:11]line [14:21:11]written 0, free lines is 3304 [14:21:11]process_action close_receipt done [14:21:11]requested_data is exist [14:21:11]produce_requested_data [14:21:11]requested_item fm.sn is exist - process it [14:21:11]wFMCommunicate request_size=4 [14:21:11]MH_SAM_APDU [14:21:11]CAPDU: 80 11 00 00 [14:21:11]Write to MH i2c: E2 08 00 B0 5C 80 11 00 00 00 00 00 00 86 [14:21:11]Write i2c OK [14:21:11]MH_I2C_Read... [14:21:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:21:11]Read from MH i2c: E2 [14:21:11]MH_I2C_Read... [14:21:11]Read from MH i2c: E2 17 00 [14:21:11]MH_I2C_Read... [14:21:11]Read from MH i2c: E2 17 00 B0 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 DB [14:21:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:21:11]wFMCommunicate OK [14:21:11]requested_item fd.num is exist - process it [14:21:11]SAM_PROTO_GetFieldsCounters [14:21:11]wFMCommunicate request_size=4 [14:21:11]MH_SAM_APDU [14:21:11]CAPDU: 80 13 00 00 [14:21:11]Write to MH i2c: E2 08 00 B1 5C 80 13 00 00 00 00 00 00 89 [14:21:11]Write i2c OK [14:21:11]MH_I2C_Read... [14:21:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:21:11]Read from MH i2c: E2 [14:21:11]MH_I2C_Read... [14:21:11]Read from MH i2c: E2 62 00 [14:21:11]MH_I2C_Read... [14:21:11]Read from MH i2c: E2 62 00 B1 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 BA 63 02 00 0E 04 04 00 19 02 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 B4 [14:21:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 BA 63 02 00 0E 04 04 00 19 02 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 [14:21:11]wFMCommunicate OK [14:21:11]SAM_PROTO_GetFieldsCounters done [14:21:11]requested_item shift.num is exist - process it [14:21:11]requested_item shift.opened is exist - process it [14:21:11]req_shift_opened [14:21:11]FM_GetShiftState [14:21:11]SAM_PROTO_GetShiftState [14:21:11]wFMCommunicate request_size=4 [14:21:11]MH_SAM_APDU [14:21:11]CAPDU: 80 13 01 00 [14:21:11]Write to MH i2c: E2 08 00 B2 5C 80 13 01 00 00 00 00 00 8B [14:21:11]Write i2c OK [14:21:11]MH_I2C_Read... [14:21:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:21:11]Read from MH i2c: E2 [14:21:11]MH_I2C_Read... [14:21:11]Read from MH i2c: E2 0E 00 [14:21:11]MH_I2C_Read... [14:21:11]Read from MH i2c: E2 0E 00 B2 5C 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 58 [14:21:11]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [14:21:11]wFMCommunicate OK [14:21:11]SAM_PROTO_GetShiftState done [14:21:11]FM_GetShiftState done [14:21:11]req_shift_opened done [14:21:11]requested_item shift.open_date is exist - process it [14:21:11]req_shift_open_date [14:21:11]req_shift_open_date done [14:21:11]produce_requested_data done [14:21:11]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156602,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [14:21:11]process_action_free close_receipt [14:21:11]json_value_free [14:21:11]json_value_free done [14:21:11]process_json_proto returns [14:21:11]Send response to host [14:21:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156602,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [14:21:11]free response buf [14:21:11]execute_script done [14:21:11]execute_script returns [14:21:11]free content buf [14:21:11]Sock 10.Close socket [14:21:11]Sock 10.Thread stoped [14:21:11]OFD Sender: No OFD packet to send [14:21:16]OFD Sender: No OFD packet to send [14:21:21]OFD Sender: No OFD packet to send [14:21:26]OFD Sender: No OFD packet to send [14:21:31]OFD Sender: No OFD packet to send [14:21:36]OFD Sender: No OFD packet to send [14:21:41]OFD Sender: No OFD packet to send [14:21:46]OFD Sender: No OFD packet to send [14:21:51]OFD Sender: No OFD packet to send [14:21:53]accept exits with 8 [14:21:53]New connection [14:21:53]New thread 3066977636 created [14:21:53]Thread 3066834276 joined [14:21:53]Waiting for new connection... [14:21:53] Sock 8.Parse request [14:21:53]Sock 8.Check first char [14:21:53]Sock 8.First char is OK [14:21:53]request: POST /json_proto HTTP/1.0 [14:21:53]Method: POST [14:21:53]URL: /json_proto [14:21:53]Method is POST - this is cgi request [14:21:53]url: /json_proto [14:21:53]query_string will be loaded in cgi processing [14:21:53]execute_cgi json_proto POST (null) [14:21:53]execute_cgi path=json_proto method=POST [14:21:53]POST find Content-Length [14:21:53]Host: 172.17.63.3:8080 [14:21:53]Content-Length: 673 [14:21:53]Content-Type: application/json [14:21:53] [14:21:53]POST finish read [14:21:53]Found Content-Length = 673 [14:21:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99417", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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:21:53]execute_script... [14:21: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)99417", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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:21:53]POST & json_proto [14:21:53]process_json_proto [14:21:53]json parsed OK: [14:21:53]protocol is kg_v1.0 [14:21:53]action value=close_receipt [14:21:53]process_action close_receipt [14:21:53]cmd_close_receipt [14:21:53]MH_GetDate [14:21:53]Write to MH i2c: F0 00 00 B3 5C FE [14:21:53]Write i2c OK [14:21:53]MH_I2C_Read... [14:21:53]Read from MH i2c: F0 [14:21:53]MH_I2C_Read... [14:21:53]Read from MH i2c: F0 09 00 [14:21:53]MH_I2C_Read... [14:21:53]Read from MH i2c: F0 09 00 B3 5C 00 87 4C 1E 67 50 D1 6C 64 50 [14:21:53]GetLastDocTimeStamp 1730038875 [14:21:53]current date 1730038919 [14:21:53]FM_GetShiftState [14:21:53]SAM_PROTO_GetShiftState [14:21:53]wFMCommunicate request_size=4 [14:21:53]MH_SAM_APDU [14:21:53]CAPDU: 80 13 01 00 [14:21:53]Write to MH i2c: E2 08 00 B4 5C 80 13 01 00 00 00 00 00 8D [14:21:53]Write i2c OK [14:21:53]MH_I2C_Read... [14:21:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:21:53]Read from MH i2c: E2 [14:21:53]MH_I2C_Read... [14:21:53]Read from MH i2c: E2 0E 00 [14:21:53]MH_I2C_Read... [14:21:53]Read from MH i2c: E2 0E 00 B4 5C 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 5A [14:21:53]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [14:21:53]wFMCommunicate OK [14:21:53]SAM_PROTO_GetShiftState done [14:21:53]FM_GetShiftState done [14:21:53]opened in 1729989044 [14:21:53]opened+sec_in_day 1730075444 [14:21:53]quantity*price = 50063 [14:21:53]sum+1 = 50064 [14:21:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 154 27.10.2024 14:21 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156603 ФПД: 152076736666456 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T142159&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156603&fm=152076736666456&tin=02508201610067®Number=0000000000091693&sum=50000 [14:21:54]StoreToDocumentArchive [14:21:54]shift 537 fd 156603 [14:21:54]save to /storage/0537/doc_00156603 [14:21:54]save last doc name /storage/0537/doc_00156603 to /storage/kkm_last_doc_name [14:21:54]save OK [14:21:54]Clear old archive folders... [14:21:54]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:21:54]tlvbuf is 016B3D00 [14:21:54]SAM_PROTO_ClearQueue [14:21:54]wFMCommunicate request_size=4 [14:21:54]MH_SAM_APDU [14:21:54]CAPDU: 80 09 00 00 [14:21:54]Write to MH i2c: E2 08 00 C1 5C 80 09 00 00 00 00 00 00 8F [14:21:54]Write i2c OK [14:21:54]MH_I2C_Read... [14:21:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:21:54]Read from MH i2c: E2 [14:21:54]MH_I2C_Read... [14:21:54]Read from MH i2c: E2 03 00 [14:21:54]MH_I2C_Read... [14:21:54]Read from MH i2c: E2 03 00 C1 5C 00 90 00 91 [14:21:54]RAPDU: 90 00 [14:21:54]wFMCommunicate OK [14:21:54]SAM_PROTO_ClearQueue done [14:21:54]KKMCreateOFDPacket [14:21:54]OFDProtocolAddRootSTLVToBuf [14:21:54]FM_MakeSignedData [14:21:54]FM_MakeSignedData [14:21:54]SAM_PROTO_SignData [14:21:54]wFMCommunicate request_size=4 [14:21:54]MH_SAM_APDU [14:21:54]CAPDU: 80 0D 01 02 [14:21:54]Write to MH i2c: E2 08 00 C2 5C 80 0D 01 02 00 00 00 00 97 [14:21:54]Write i2c OK [14:21:54]MH_I2C_Read... [14:21:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:21:54]Read from MH i2c: E2 [14:21:54]MH_I2C_Read... [14:21:54]Read from MH i2c: E2 03 00 [14:21:54]MH_I2C_Read... [14:21:54]Read from MH i2c: E2 03 00 C2 5C 00 90 00 92 [14:21:54]RAPDU: 90 00 [14:21:54]wFMCommunicate OK [14:21:54]wFMCommunicate request_size=255 [14:21:54]MH_SAM_APDU [14:21:54]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 87 4C 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BB 63 02 00 35 04 06 00 8A 50 1F DE [14:21:54]Write to MH i2c: E2 02 01 C3 5C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 87 4C 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BB 63 02 00 35 04 06 00 8A 50 1F DE 00 00 AD [14:21:54]Write i2c OK [14:21:54]MH_I2C_Read... [14:21:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:21:55]Read from MH i2c: E2 [14:21:55]MH_I2C_Read... [14:21:55]Read from MH i2c: E2 03 00 [14:21:55]MH_I2C_Read... [14:21:55]Read from MH i2c: E2 03 00 C3 5C 00 90 00 93 [14:21:55]RAPDU: 90 00 [14:21:55]wFMCommunicate OK [14:21:55]wFMCommunicate request_size=7 [14:21:55]MH_SAM_APDU [14:21:55]CAPDU: 80 0D 02 02 02 1B 58 [14:21:55]Write to MH i2c: E2 0A 00 C4 5C 80 0D 02 02 02 00 1B 58 00 00 11 [14:21:55]Write i2c OK [14:21:55]MH_I2C_Read... [14:21:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:21:55]Read from MH i2c: E2 [14:21:55]MH_I2C_Read... [14:21:55]Read from MH i2c: E2 03 00 [14:21:55]MH_I2C_Read... [14:21:55]Read from MH i2c: E2 03 00 C4 5C 00 90 00 94 [14:21:55]RAPDU: 90 00 [14:21:55]wFMCommunicate OK [14:21:55]wFMCommunicate request_size=4 [14:21:55]MH_SAM_APDU [14:21:55]CAPDU: 80 0D 03 02 [14:21:55]Write to MH i2c: E2 08 00 C5 5C 80 0D 03 02 00 00 00 00 9C [14:21:55]Write i2c OK [14:21:55]MH_I2C_Read... [14:21:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:21:55]Read from MH i2c: E2 [14:21:55]MH_I2C_Read... [14:21:55]Read from MH i2c: E2 0B 00 [14:21:55]MH_I2C_Read... [14:21:55]Read from MH i2c: E2 0B 00 C5 5C 00 AB FE 59 CA 3F 04 1B E9 90 00 B0 [14:21:55]RAPDU: AB FE 59 CA 3F 04 1B E9 90 00 [14:21:55]wFMCommunicate OK [14:21:55]SAM_PROTO_SignData done [14:21:55]FM_MakeSignedData done [14:21:55]CreateOFDProtocolMessage [14:21:55]wFMCommunicate request_size=4 [14:21:55]MH_SAM_APDU [14:21:55]CAPDU: 80 11 00 00 [14:21:55]Write to MH i2c: E2 08 00 C6 5C 80 11 00 00 00 00 00 00 9C [14:21:55]Write i2c OK [14:21:55]MH_I2C_Read... [14:21:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:21:55]Read from MH i2c: E2 [14:21:55]MH_I2C_Read... [14:21:55]Read from MH i2c: E2 17 00 [14:21:55]MH_I2C_Read... [14:21:55]Read from MH i2c: E2 17 00 C6 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 F1 [14:21:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:21:55]wFMCommunicate OK [14:21:55]CreateOFDProtocolMessage done [14:21:55]OFDSenderStorePacket 156603 [14:21:55]StoreOFDPacket docnum=156603 [14:21:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 8E F1 04 01 FF BA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 87 4C 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BB 63 02 00 35 04 06 00 8A 50 1F DE 1B 58 AB FE 59 CA 3F 04 1B E9 [14:21:55]CheckFolder [14:21:55]dirname=/storage/ofd_packets [14:21:55]CheckFolder done [14:21:55]ProducePacketName [14:21:55]name=ofd_packets/00156603 [14:21:55]NVStorageSaveData ofd_packets/00156603 [14:21:55]File name is /storage/ofd_packets/00156603 [14:21:55]Write 298 bytes [14:21:55]NVStorageSaveData done [14:21:55]OFDSenderStorePacket done [14:21:55]KKMCreateOFDPacket done [14:21:55]NVStorageSaveData kkm_last_timestamp [14:21:55]File name is /storage/kkm_last_timestamp [14:21:55]Write 4 bytes [14:21:55]NVStorageSaveData done [14:21:55]ExternCall_PrintAddStr [14:21:55]wPrintStart [14:21:55]Write to MH i2c: 01 00 00 C7 5C 23 [14:21:55]Write i2c OK [14:21:55]MH_I2C_Read... [14:21:55]Read from MH i2c: 01 [14:21:55]MH_I2C_Read... [14:21:55]Read from MH i2c: 01 07 00 [14:21:55]MH_I2C_Read... [14:21:55]Read from MH i2c: 01 07 00 C7 5C 00 00 00 00 00 FF 0F 38 [14:21:55]RasterBufferAndPrint [14:21:55]line Счет N : (1)99417 [14:21:55]line ИНН: 02508201610067 [14:21:55]line Контрольно-Кассовый Чек [14:21:55]line ПРОДАЖА [14:21:55]line ТРК (МРК, ГНК) : 32 [14:21:55]line Товар: 2710194210 [14:21:55]line ДТ-К-5 [14:21:55]line 6.570 * 76.20 [14:21:55]line = 500.63 [14:21:55]line НДС 12% НСП 1% [14:21:55]line > о реализуемом товаре [14:21:55]line ОКРУГЛЕНИЕ: -0.63 [14:21:55]line ИТОГО: 500.00 [14:21:55]line Внесено: 500.00 [14:21:55]line СДАЧА: 0.00 [14:21:55]line НСП 1% : 4.43 [14:21:55]line НДС 12% : 53.16 [14:21:55]line Наличными: 500.00 [14:21:55]line Безнал.: 0.00 [14:21:55]line Место: АЗС № 143 "Партнер Нефть" [14:21:55]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [14:21:55]line СНО: Общий режим [14:21:55]line Чек 154 27.10.2024 14:21 [14:21:55]line Смена: 537 ФФД: 1.0 [14:21:55]line ЗНМ: 0300000096 [14:21:55]line РНМ: 0000000000091693 [14:21:55]line Версия ККМ: 001 [14:21:55]line ФМ: 0000000000871792 [14:21:55]line ФД: 156603 [14:21:55]line ФПД: 152076736666456 [14:21:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T142159&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156603&fm=152076736666456&tin=02508201610067®Number=0000000000091693&sum=50000 [14:21:55]OFD Sender: Processing packet 156603 [packets to send 31, broken 30] [14:21:55]ProducePacketName [14:21:55]name=ofd_packets/00156603 [14:21:55]OFD Sender: To server: pG, [14:21:55]CommunicateWithHost lk.salyk.kg:30040 [14:21:55]ConnectInit lk.salyk.kg [14:21:55]written 0, free lines is 4095 [14:21:55]Connected sock=10 [14:21:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 8E F1 04 01 FF BA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 87 4C 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BB 63 02 00 35 04 06 00 8A 50 1F DE 1B 58 AB FE 59 CA 3F 04 1B E9 [14:21:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 F6 07 47 00 D4 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 31 37 39 32 10 04 04 00 BB 63 02 00 F4 03 04 00 F7 F1 1D 67 B6 04 01 00 00 EB 3B 8F 4A D5 12 11 08 [14:21:56]CommunicateWithHost err = 0 [14:21:56]CheckOFDResponse [14:21:56]1017 (14) - 77093643461234 [14:21:56]1041 (16) - 0000000000871792 [14:21:56]1040 (4) - 156603 [14:21:56]1012 (4) - 27.10.2024 07:55 [14:21:56]1206 (1) - 0 [14:21:56]OFD Sender: Remove packet 156603 [14:21:56]ProducePacketName [14:21:56]name=ofd_packets/00156603 [14:21:56]NVStorageDeleteData [14:21:56]Write to MH i2c: 01 00 00 F2 5C 4E [14:21:56]Write i2c OK [14:21:56]MH_I2C_Read... [14:21:56]Read from MH i2c: 01 [14:21:56]MH_I2C_Read... [14:21:56]Read from MH i2c: 01 07 00 [14:21:56]MH_I2C_Read... [14:21:56]Read from MH i2c: 01 07 00 F2 5C 00 00 00 00 00 E6 0C 47 [14:21:56]RasterBufferAndPrint [14:21:56]line [14:21:56]line [14:21:56]line [14:21:56]line [14:21:56]line [14:21:56]written 0, free lines is 3308 [14:21:56]process_action close_receipt done [14:21:56]requested_data is exist [14:21:56]produce_requested_data [14:21:56]requested_item fm.sn is exist - process it [14:21:56]wFMCommunicate request_size=4 [14:21:56]MH_SAM_APDU [14:21:56]CAPDU: 80 11 00 00 [14:21:56]Write to MH i2c: E2 08 00 F9 5C 80 11 00 00 00 00 00 00 CF [14:21:56]Write i2c OK [14:21:56]MH_I2C_Read... [14:21:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:21:56]Read from MH i2c: E2 [14:21:56]MH_I2C_Read... [14:21:56]Read from MH i2c: E2 17 00 [14:21:56]MH_I2C_Read... [14:21:56]Read from MH i2c: E2 17 00 F9 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 24 [14:21:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:21:56]wFMCommunicate OK [14:21:56]requested_item fd.num is exist - process it [14:21:56]SAM_PROTO_GetFieldsCounters [14:21:56]wFMCommunicate request_size=4 [14:21:56]MH_SAM_APDU [14:21:56]CAPDU: 80 13 00 00 [14:21:56]Write to MH i2c: E2 08 00 FA 5C 80 13 00 00 00 00 00 00 D2 [14:21:56]Write i2c OK [14:21:56]MH_I2C_Read... [14:21:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:21:56]Read from MH i2c: E2 [14:21:56]MH_I2C_Read... [14:21:56]Read from MH i2c: E2 62 00 [14:21:56]MH_I2C_Read... [14:21:56]Read from MH i2c: E2 62 00 FA 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 BB 63 02 00 0E 04 04 00 19 02 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 01 [14:21:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 BB 63 02 00 0E 04 04 00 19 02 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 [14:21:56]wFMCommunicate OK [14:21:56]SAM_PROTO_GetFieldsCounters done [14:21:56]requested_item shift.num is exist - process it [14:21:56]requested_item shift.opened is exist - process it [14:21:56]req_shift_opened [14:21:56]FM_GetShiftState [14:21:56]SAM_PROTO_GetShiftState [14:21:56]wFMCommunicate request_size=4 [14:21:56]MH_SAM_APDU [14:21:56]CAPDU: 80 13 01 00 [14:21:56]Write to MH i2c: E2 08 00 FB 5C 80 13 01 00 00 00 00 00 D4 [14:21:56]Write i2c OK [14:21:56]MH_I2C_Read... [14:21:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:21:56]Read from MH i2c: E2 [14:21:56]MH_I2C_Read... [14:21:56]Read from MH i2c: E2 0E 00 [14:21:56]MH_I2C_Read... [14:21:56]Read from MH i2c: E2 0E 00 FB 5C 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 A1 [14:21:56]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [14:21:56]wFMCommunicate OK [14:21:56]SAM_PROTO_GetShiftState done [14:21:56]FM_GetShiftState done [14:21:56]req_shift_opened done [14:21:56]requested_item shift.open_date is exist - process it [14:21:56]req_shift_open_date [14:21:56]req_shift_open_date done [14:21:56]produce_requested_data done [14:21:56]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156603,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [14:21:56]process_action_free close_receipt [14:21:56]json_value_free [14:21:56]json_value_free done [14:21:56]process_json_proto returns [14:21:56]Send response to host [14:21:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156603,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [14:21:56]free response buf [14:21:56]execute_script done [14:21:56]execute_script returns [14:21:56]free content buf [14:21:56]Sock 8.Close socket [14:21:56]Sock 8.Thread stoped [14:21:56]OFD Sender: No OFD packet to send [14:22:01]OFD Sender: No OFD packet to send [14:22:06]OFD Sender: No OFD packet to send [14:22:11]OFD Sender: No OFD packet to send [14:22:16]OFD Sender: No OFD packet to send [14:22:21]OFD Sender: No OFD packet to send [14:22:26]OFD Sender: No OFD packet to send [14:22:31]OFD Sender: No OFD packet to send [14:22:36]OFD Sender: No OFD packet to send [14:22:41]OFD Sender: No OFD packet to send [14:22:46]OFD Sender: No OFD packet to send [14:22:51]OFD Sender: No OFD packet to send [14:22:56]OFD Sender: No OFD packet to send [14:23:01]OFD Sender: No OFD packet to send [14:23:06]OFD Sender: No OFD packet to send [14:23:11]OFD Sender: No OFD packet to send [14:23:16]OFD Sender: No OFD packet to send [14:23:21]OFD Sender: No OFD packet to send [14:23:26]OFD Sender: No OFD packet to send [14:23:31]OFD Sender: No OFD packet to send [14:23:36]OFD Sender: No OFD packet to send [14:23:41]OFD Sender: No OFD packet to send [14:23:46]OFD Sender: No OFD packet to send [14:23:51]OFD Sender: No OFD packet to send [14:23:56]OFD Sender: No OFD packet to send [14:24:01]OFD Sender: No OFD packet to send [14:24:06]OFD Sender: No OFD packet to send [14:24:11]OFD Sender: No OFD packet to send [14:24:16]OFD Sender: No OFD packet to send [14:24:21]OFD Sender: No OFD packet to send [14:24:26]OFD Sender: No OFD packet to send [14:24:31]OFD Sender: No OFD packet to send [14:24:36]OFD Sender: No OFD packet to send [14:24:41]OFD Sender: No OFD packet to send [14:24:46]OFD Sender: No OFD packet to send [14:24:51]OFD Sender: No OFD packet to send [14:24:56]OFD Sender: No OFD packet to send [14:25:01]OFD Sender: No OFD packet to send [14:25:06]OFD Sender: No OFD packet to send [14:25:11]OFD Sender: No OFD packet to send [14:25:16]OFD Sender: No OFD packet to send [14:25:21]OFD Sender: No OFD packet to send [14:25:26]OFD Sender: No OFD packet to send [14:25:31]OFD Sender: No OFD packet to send [14:25:36]OFD Sender: No OFD packet to send [14:25:41]OFD Sender: No OFD packet to send [14:25:46]OFD Sender: No OFD packet to send [14:25:51]OFD Sender: No OFD packet to send [14:25:56]OFD Sender: No OFD packet to send [14:26:01]OFD Sender: No OFD packet to send [14:26:06]OFD Sender: No OFD packet to send [14:26:11]OFD Sender: No OFD packet to send [14:26:16]OFD Sender: No OFD packet to send [14:26:21]OFD Sender: No OFD packet to send [14:26:26]OFD Sender: No OFD packet to send [14:26:31]OFD Sender: No OFD packet to send [14:26:36]OFD Sender: No OFD packet to send [14:26:41]OFD Sender: No OFD packet to send [14:26:46]OFD Sender: No OFD packet to send [14:26:50]accept exits with 9 [14:26:50]New connection [14:26:50]New thread 3066834276 created [14:26:50]Thread 3066977636 joined [14:26:50]Waiting for new connection... [14:26:50] Sock 9.Parse request [14:26:50]Sock 9.Check first char [14:26:50]Sock 9.First char is OK [14:26:50]request: POST /json_proto HTTP/1.0 [14:26:50]Method: POST [14:26:50]URL: /json_proto [14:26:50]Method is POST - this is cgi request [14:26:50]url: /json_proto [14:26:50]query_string will be loaded in cgi processing [14:26:50]execute_cgi json_proto POST (null) [14:26:50]execute_cgi path=json_proto method=POST [14:26:50]POST find Content-Length [14:26:50]Host: 172.17.63.3:8080 [14:26:50]Content-Length: 681 [14:26:50]Content-Type: application/json [14:26:50] [14:26:50]POST finish read [14:26:50]Found Content-Length = 681 [14:26:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99418", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:26:50]execute_script... [14:26: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)99418", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:26:50]POST & json_proto [14:26:50]process_json_proto [14:26:50]json parsed OK: [14:26:50]protocol is kg_v1.0 [14:26:50]action value=close_receipt [14:26:50]process_action close_receipt [14:26:50]cmd_close_receipt [14:26:50]MH_GetDate [14:26:50]Write to MH i2c: F0 00 00 FC 5C 47 [14:26:50]Write i2c OK [14:26:50]MH_I2C_Read... [14:26:50]Read from MH i2c: F0 [14:26:50]MH_I2C_Read... [14:26:50]Read from MH i2c: F0 09 00 [14:26:50]MH_I2C_Read... [14:26:50]Read from MH i2c: F0 09 00 FC 5C 00 B0 4D 1E 67 50 D1 6C 64 C3 [14:26:50]GetLastDocTimeStamp 1730038919 [14:26:50]current date 1730039216 [14:26:50]FM_GetShiftState [14:26:50]SAM_PROTO_GetShiftState [14:26:50]wFMCommunicate request_size=4 [14:26:50]MH_SAM_APDU [14:26:50]CAPDU: 80 13 01 00 [14:26:50]Write to MH i2c: E2 08 00 FD 5C 80 13 01 00 00 00 00 00 D6 [14:26:50]Write i2c OK [14:26:50]MH_I2C_Read... [14:26:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:26:50]Read from MH i2c: E2 [14:26:50]MH_I2C_Read... [14:26:50]Read from MH i2c: E2 0E 00 [14:26:50]MH_I2C_Read... [14:26:50]Read from MH i2c: E2 0E 00 FD 5C 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 A3 [14:26:50]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [14:26:50]wFMCommunicate OK [14:26:50]SAM_PROTO_GetShiftState done [14:26:50]FM_GetShiftState done [14:26:50]opened in 1729989044 [14:26:50]opened+sec_in_day 1730075444 [14:26:50]quantity*price = 100015 [14:26:50]sum+1 = 100017 [14:26:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 155 27.10.2024 14:26 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156604 ФПД: 57253426527500 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T142656&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156604&fm=57253426527500&tin=02508201610067®Number=0000000000091693&sum=100000 [14:26:51]StoreToDocumentArchive [14:26:51]shift 537 fd 156604 [14:26:51]save to /storage/0537/doc_00156604 [14:26:51]save last doc name /storage/0537/doc_00156604 to /storage/kkm_last_doc_name [14:26:51]save OK [14:26:51]Clear old archive folders... [14:26:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:26:51]tlvbuf is 017ADD10 [14:26:51]SAM_PROTO_ClearQueue [14:26:51]wFMCommunicate request_size=4 [14:26:51]MH_SAM_APDU [14:26:51]CAPDU: 80 09 00 00 [14:26:51]Write to MH i2c: E2 08 00 0A 5D 80 09 00 00 00 00 00 00 D9 [14:26:51]Write i2c OK [14:26:51]MH_I2C_Read... [14:26:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:26:51]Read from MH i2c: E2 [14:26:51]MH_I2C_Read... [14:26:51]Read from MH i2c: E2 03 00 [14:26:51]MH_I2C_Read... [14:26:51]Read from MH i2c: E2 03 00 0A 5D 00 90 00 DB [14:26:51]RAPDU: 90 00 [14:26:51]wFMCommunicate OK [14:26:51]SAM_PROTO_ClearQueue done [14:26:51]KKMCreateOFDPacket [14:26:51]OFDProtocolAddRootSTLVToBuf [14:26:51]FM_MakeSignedData [14:26:51]FM_MakeSignedData [14:26:51]SAM_PROTO_SignData [14:26:51]wFMCommunicate request_size=4 [14:26:51]MH_SAM_APDU [14:26:51]CAPDU: 80 0D 01 02 [14:26:51]Write to MH i2c: E2 08 00 0B 5D 80 0D 01 02 00 00 00 00 E1 [14:26:51]Write i2c OK [14:26:51]MH_I2C_Read... [14:26:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:26:52]Read from MH i2c: E2 [14:26:52]MH_I2C_Read... [14:26:52]Read from MH i2c: E2 03 00 [14:26:52]MH_I2C_Read... [14:26:52]Read from MH i2c: E2 03 00 0B 5D 00 90 00 DC [14:26:52]RAPDU: 90 00 [14:26:52]wFMCommunicate OK [14:26:52]wFMCommunicate request_size=255 [14:26:52]MH_SAM_APDU [14:26: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 B0 4D 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BC 63 02 00 35 04 06 00 34 [14:26:52]Write to MH i2c: E2 02 01 0C 5D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 B0 4D 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BC 63 02 00 35 04 06 00 34 00 00 FC [14:26:52]Write i2c OK [14:26:52]MH_I2C_Read... [14:26:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:26:52]Read from MH i2c: E2 [14:26:52]MH_I2C_Read... [14:26:52]Read from MH i2c: E2 03 00 [14:26:52]MH_I2C_Read... [14:26:52]Read from MH i2c: E2 03 00 0C 5D 00 90 00 DD [14:26:52]RAPDU: 90 00 [14:26:52]wFMCommunicate OK [14:26:52]wFMCommunicate request_size=10 [14:26:52]MH_SAM_APDU [14:26:52]CAPDU: 80 0D 02 02 05 12 5A 26 7D 0C [14:26:52]Write to MH i2c: E2 0D 00 0D 5D 80 0D 02 02 05 00 12 5A 26 7D 0C 00 00 09 [14:26:52]Write i2c OK [14:26:52]MH_I2C_Read... [14:26:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:26:52]Read from MH i2c: E2 [14:26:52]MH_I2C_Read... [14:26:52]Read from MH i2c: E2 03 00 [14:26:52]MH_I2C_Read... [14:26:52]Read from MH i2c: E2 03 00 0D 5D 00 90 00 DE [14:26:52]RAPDU: 90 00 [14:26:52]wFMCommunicate OK [14:26:52]wFMCommunicate request_size=4 [14:26:52]MH_SAM_APDU [14:26:52]CAPDU: 80 0D 03 02 [14:26:52]Write to MH i2c: E2 08 00 0E 5D 80 0D 03 02 00 00 00 00 E6 [14:26:52]Write i2c OK [14:26:52]MH_I2C_Read... [14:26:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:26:52]Read from MH i2c: E2 [14:26:52]MH_I2C_Read... [14:26:52]Read from MH i2c: E2 0B 00 [14:26:52]MH_I2C_Read... [14:26:52]Read from MH i2c: E2 0B 00 0E 5D 00 3C 19 2F 75 B0 8C 92 C8 90 00 76 [14:26:52]RAPDU: 3C 19 2F 75 B0 8C 92 C8 90 00 [14:26:52]wFMCommunicate OK [14:26:52]SAM_PROTO_SignData done [14:26:52]FM_MakeSignedData done [14:26:52]CreateOFDProtocolMessage [14:26:52]wFMCommunicate request_size=4 [14:26:52]MH_SAM_APDU [14:26:52]CAPDU: 80 11 00 00 [14:26:52]Write to MH i2c: E2 08 00 0F 5D 80 11 00 00 00 00 00 00 E6 [14:26:52]Write i2c OK [14:26:52]MH_I2C_Read... [14:26:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:26:52]Read from MH i2c: E2 [14:26:52]MH_I2C_Read... [14:26:52]Read from MH i2c: E2 17 00 [14:26:52]MH_I2C_Read... [14:26:52]Read from MH i2c: E2 17 00 0F 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 3B [14:26:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:26:52]wFMCommunicate OK [14:26:52]CreateOFDProtocolMessage done [14:26:52]OFDSenderStorePacket 156604 [14:26:52]StoreOFDPacket docnum=156604 [14:26:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 8F E7 07 01 FA D4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 B0 4D 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BC 63 02 00 35 04 06 00 34 12 5A 26 7D 0C 3C 19 2F 75 B0 8C 92 C8 [14:26:52]CheckFolder [14:26:52]dirname=/storage/ofd_packets [14:26:52]CheckFolder done [14:26:52]ProducePacketName [14:26:52]name=ofd_packets/00156604 [14:26:52]NVStorageSaveData ofd_packets/00156604 [14:26:52]File name is /storage/ofd_packets/00156604 [14:26:52]Write 301 bytes [14:26:52]NVStorageSaveData done [14:26:52]OFDSenderStorePacket done [14:26:52]KKMCreateOFDPacket done [14:26:52]NVStorageSaveData kkm_last_timestamp [14:26:52]File name is /storage/kkm_last_timestamp [14:26:52]Write 4 bytes [14:26:52]NVStorageSaveData done [14:26:52]ExternCall_PrintAddStr [14:26:52]wPrintStart [14:26:52]Write to MH i2c: 01 00 00 10 5D 6D [14:26:52]Write i2c OK [14:26:52]MH_I2C_Read... [14:26:52]Read from MH i2c: 01 [14:26:52]MH_I2C_Read... [14:26:52]Read from MH i2c: 01 07 00 [14:26:52]MH_I2C_Read... [14:26:52]Read from MH i2c: 01 07 00 10 5D 00 00 00 00 00 FF 0F 82 [14:26:52]RasterBufferAndPrint [14:26:52]line Счет N : (1)99418 [14:26:52]line ИНН: 02508201610067 [14:26:52]line Контрольно-Кассовый Чек [14:26:52]line ПРОДАЖА [14:26:52]line ТРК (МРК, ГНК) : 21 [14:26:52]line Товар: 2710124130 [14:26:52]line Аи-92-К-5 [14:26:52]line 14.950 * 66.90 [14:26:52]line = 1000.16 [14:26:52]line НДС 12% НСП 1% [14:26:52]line > о реализуемом товаре [14:26:52]line ОКРУГЛЕНИЕ: -0.16 [14:26:52]line ИТОГО: 1000.00 [14:26:52]line Внесено: 1000.00 [14:26:52]line СДАЧА: 0.00 [14:26:52]line НСП 1% : 8.85 [14:26:52]line НДС 12% : 106.21 [14:26:52]line Наличными: 1000.00 [14:26:52]line Безнал.: 0.00 [14:26:52]line Место: АЗС № 143 "Партнер Нефть" [14:26:52]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [14:26:52]line СНО: Общий режим [14:26:52]line Чек 155 27.10.2024 14:26 [14:26:52]line Смена: 537 ФФД: 1.0 [14:26:52]line ЗНМ: 0300000096 [14:26:52]line РНМ: 0000000000091693 [14:26:52]line Версия ККМ: 001 [14:26:52]line ФМ: 0000000000871792 [14:26:52]line ФД: 156604 [14:26:52]line ФПД: 57253426527500 [14:26:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T142656&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156604&fm=57253426527500&tin=02508201610067®Number=0000000000091693&sum=100000 [14:26:52]OFD Sender: Processing packet 156604 [packets to send 31, broken 30] [14:26:52]ProducePacketName [14:26:52]name=ofd_packets/00156604 [14:26:52]OFD Sender: To server: pG, [14:26:52]CommunicateWithHost lk.salyk.kg:30040 [14:26:52]ConnectInit lk.salyk.kg [14:26:52]written 0, free lines is 4095 [14:26:52]Connected sock=10 [14:26:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 8F E7 07 01 FA D4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 B0 4D 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BC 63 02 00 35 04 06 00 34 12 5A 26 7D 0C 3C 19 2F 75 B0 8C 92 C8 [14:26:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 DF 6C 47 00 3E 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 31 37 39 32 10 04 04 00 BC 63 02 00 F4 03 04 00 20 F3 1D 67 B6 04 01 00 00 46 D1 ED 13 1F 7E 4B 02 [14:26:53]CommunicateWithHost err = 0 [14:26:53]CheckOFDResponse [14:26:53]1017 (14) - 77093643461234 [14:26:53]1041 (16) - 0000000000871792 [14:26:53]1040 (4) - 156604 [14:26:53]1012 (4) - 27.10.2024 08:00 [14:26:53]1206 (1) - 0 [14:26:53]OFD Sender: Remove packet 156604 [14:26:53]ProducePacketName [14:26:53]name=ofd_packets/00156604 [14:26:53]NVStorageDeleteData [14:26:53]Write to MH i2c: 01 00 00 3B 5D 98 [14:26:53]Write i2c OK [14:26:53]MH_I2C_Read... [14:26:53]Read from MH i2c: 01 [14:26:53]MH_I2C_Read... [14:26:53]Read from MH i2c: 01 07 00 [14:26:53]MH_I2C_Read... [14:26:53]Read from MH i2c: 01 07 00 3B 5D 00 00 00 00 00 DA 0C 85 [14:26:53]RasterBufferAndPrint [14:26:53]line [14:26:53]line [14:26:53]line [14:26:53]line [14:26:53]line [14:26:53]written 0, free lines is 3297 [14:26:53]process_action close_receipt done [14:26:53]requested_data is exist [14:26:53]produce_requested_data [14:26:53]requested_item fm.sn is exist - process it [14:26:53]wFMCommunicate request_size=4 [14:26:53]MH_SAM_APDU [14:26:53]CAPDU: 80 11 00 00 [14:26:53]Write to MH i2c: E2 08 00 42 5D 80 11 00 00 00 00 00 00 19 [14:26:53]Write i2c OK [14:26:53]MH_I2C_Read... [14:26:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:26:53]Read from MH i2c: E2 [14:26:53]MH_I2C_Read... [14:26:53]Read from MH i2c: E2 17 00 [14:26:53]MH_I2C_Read... [14:26:53]Read from MH i2c: E2 17 00 42 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 6E [14:26:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:26:53]wFMCommunicate OK [14:26:53]requested_item fd.num is exist - process it [14:26:53]SAM_PROTO_GetFieldsCounters [14:26:53]wFMCommunicate request_size=4 [14:26:53]MH_SAM_APDU [14:26:53]CAPDU: 80 13 00 00 [14:26:53]Write to MH i2c: E2 08 00 43 5D 80 13 00 00 00 00 00 00 1C [14:26:53]Write i2c OK [14:26:53]MH_I2C_Read... [14:26:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:26:53]Read from MH i2c: E2 [14:26:53]MH_I2C_Read... [14:26:53]Read from MH i2c: E2 62 00 [14:26:53]MH_I2C_Read... [14:26:53]Read from MH i2c: E2 62 00 43 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 BC 63 02 00 0E 04 04 00 19 02 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 4F [14:26:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 BC 63 02 00 0E 04 04 00 19 02 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 [14:26:53]wFMCommunicate OK [14:26:53]SAM_PROTO_GetFieldsCounters done [14:26:53]requested_item shift.num is exist - process it [14:26:53]requested_item shift.opened is exist - process it [14:26:53]req_shift_opened [14:26:53]FM_GetShiftState [14:26:53]SAM_PROTO_GetShiftState [14:26:53]wFMCommunicate request_size=4 [14:26:53]MH_SAM_APDU [14:26:53]CAPDU: 80 13 01 00 [14:26:53]Write to MH i2c: E2 08 00 44 5D 80 13 01 00 00 00 00 00 1E [14:26:53]Write i2c OK [14:26:53]MH_I2C_Read... [14:26:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:26:53]Read from MH i2c: E2 [14:26:53]MH_I2C_Read... [14:26:53]Read from MH i2c: E2 0E 00 [14:26:53]MH_I2C_Read... [14:26:53]Read from MH i2c: E2 0E 00 44 5D 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 EB [14:26:53]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [14:26:53]wFMCommunicate OK [14:26:53]SAM_PROTO_GetShiftState done [14:26:53]FM_GetShiftState done [14:26:53]req_shift_opened done [14:26:53]requested_item shift.open_date is exist - process it [14:26:53]req_shift_open_date [14:26:53]req_shift_open_date done [14:26:53]produce_requested_data done [14:26:53]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156604,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [14:26:53]process_action_free close_receipt [14:26:53]json_value_free [14:26:53]json_value_free done [14:26:53]process_json_proto returns [14:26:53]Send response to host [14:26:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156604,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [14:26:53]free response buf [14:26:53]execute_script done [14:26:53]execute_script returns [14:26:53]free content buf [14:26:53]Sock 9.Close socket [14:26:53]Sock 9.Thread stoped [14:26:53]OFD Sender: No OFD packet to send [14:26:58]OFD Sender: No OFD packet to send [14:27:03]OFD Sender: No OFD packet to send [14:27:08]OFD Sender: No OFD packet to send [14:27:13]OFD Sender: No OFD packet to send [14:27:18]OFD Sender: No OFD packet to send [14:27:23]OFD Sender: No OFD packet to send [14:27:28]OFD Sender: No OFD packet to send [14:27:33]OFD Sender: No OFD packet to send [14:27:38]accept exits with 8 [14:27:38]New connection [14:27:38]New thread 3066977636 created [14:27:38]Thread 3066834276 joined [14:27:38]Waiting for new connection... [14:27:38] Sock 8.Parse request [14:27:38]Sock 8.Check first char [14:27:38]Sock 8.First char is OK [14:27:38]request: POST /json_proto HTTP/1.0 [14:27:38]Method: POST [14:27:38]URL: /json_proto [14:27:38]Method is POST - this is cgi request [14:27:38]url: /json_proto [14:27:38]query_string will be loaded in cgi processing [14:27:38]execute_cgi json_proto POST (null) [14:27:38]execute_cgi path=json_proto method=POST [14:27:38]POST find Content-Length [14:27:38]Host: 172.17.63.3:8080 [14:27:38]Content-Length: 766 [14:27:38]Content-Type: application/json [14:27:38] [14:27:38]POST finish read [14:27:38]Found Content-Length = 766 [14:27:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99419", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "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: Mbank", "payments": [ { "type": 1, "sum" : 800.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:27:38]execute_script... [14:27: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)99419", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "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: Mbank", "payments": [ { "type": 1, "sum" : 800.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:27:38]POST & json_proto [14:27:38]process_json_proto [14:27:38]json parsed OK: [14:27:38]protocol is kg_v1.0 [14:27:38]action value=close_receipt [14:27:38]process_action close_receipt [14:27:38]cmd_close_receipt [14:27:38]MH_GetDate [14:27:38]Write to MH i2c: F0 00 00 45 5D 91 [14:27:38]Write i2c OK [14:27:38]MH_I2C_Read... [14:27:38]Read from MH i2c: F0 [14:27:38]MH_I2C_Read... [14:27:38]Read from MH i2c: F0 09 00 [14:27:38]MH_I2C_Read... [14:27:38]Read from MH i2c: F0 09 00 45 5D 00 E0 4D 1E 67 50 D1 6C 64 3D [14:27:38]GetLastDocTimeStamp 1730039216 [14:27:38]current date 1730039264 [14:27:38]FM_GetShiftState [14:27:38]SAM_PROTO_GetShiftState [14:27:38]wFMCommunicate request_size=4 [14:27:38]MH_SAM_APDU [14:27:38]CAPDU: 80 13 01 00 [14:27:38]Write to MH i2c: E2 08 00 46 5D 80 13 01 00 00 00 00 00 20 [14:27:38]Write i2c OK [14:27:38]MH_I2C_Read... [14:27:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:27:38]Read from MH i2c: E2 [14:27:38]MH_I2C_Read... [14:27:38]Read from MH i2c: E2 0E 00 [14:27:38]MH_I2C_Read... [14:27:38]Read from MH i2c: E2 0E 00 46 5D 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 ED [14:27:38]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [14:27:38]wFMCommunicate OK [14:27:38]SAM_PROTO_GetShiftState done [14:27:38]FM_GetShiftState done [14:27:38]opened in 1729989044 [14:27:38]opened+sec_in_day 1730075444 [14:27:38]quantity*price = 80012 [14:27:38]sum+1 = 80013 [14:27:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 800.12 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 0.00 Безнал.: 800.12 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 156 27.10.2024 14:27 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 156605 ФПД: 144304724266871 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T142744&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156605&fm=144304724266871&tin=02508201610067®Number=0000000000091693&sum=80012 [14:27:39]StoreToDocumentArchive [14:27:39]shift 537 fd 156605 [14:27:39]save to /storage/0537/doc_00156605 [14:27:39]save last doc name /storage/0537/doc_00156605 to /storage/kkm_last_doc_name [14:27:39]save OK [14:27:39]Clear old archive folders... [14:27:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:27:39]tlvbuf is 01857C40 [14:27:39]SAM_PROTO_ClearQueue [14:27:39]wFMCommunicate request_size=4 [14:27:39]MH_SAM_APDU [14:27:39]CAPDU: 80 09 00 00 [14:27:39]Write to MH i2c: E2 08 00 53 5D 80 09 00 00 00 00 00 00 22 [14:27:39]Write i2c OK [14:27:39]MH_I2C_Read... [14:27:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:27:39]Read from MH i2c: E2 [14:27:39]MH_I2C_Read... [14:27:39]Read from MH i2c: E2 03 00 [14:27:39]MH_I2C_Read... [14:27:39]Read from MH i2c: E2 03 00 53 5D 00 90 00 24 [14:27:39]RAPDU: 90 00 [14:27:39]wFMCommunicate OK [14:27:39]SAM_PROTO_ClearQueue done [14:27:39]KKMCreateOFDPacket [14:27:39]OFDProtocolAddRootSTLVToBuf [14:27:39]FM_MakeSignedData [14:27:39]FM_MakeSignedData [14:27:39]SAM_PROTO_SignData [14:27:39]wFMCommunicate request_size=4 [14:27:39]MH_SAM_APDU [14:27:39]CAPDU: 80 0D 01 02 [14:27:39]Write to MH i2c: E2 08 00 54 5D 80 0D 01 02 00 00 00 00 2A [14:27:39]Write i2c OK [14:27:39]MH_I2C_Read... [14:27:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:27:39]Read from MH i2c: E2 [14:27:39]MH_I2C_Read... [14:27:39]Read from MH i2c: E2 03 00 [14:27:39]MH_I2C_Read... [14:27:39]Read from MH i2c: E2 03 00 54 5D 00 90 00 25 [14:27:39]RAPDU: 90 00 [14:27:39]wFMCommunicate OK [14:27:39]wFMCommunicate request_size=255 [14:27:39]MH_SAM_APDU [14:27: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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 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 9C 00 00 00 F4 03 04 00 E0 4D 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BD 63 02 00 35 04 06 00 83 [14:27:39]Write to MH i2c: E2 02 01 55 5D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 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 9C 00 00 00 F4 03 04 00 E0 4D 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BD 63 02 00 35 04 06 00 83 00 00 D0 [14:27:39]Write i2c OK [14:27:39]MH_I2C_Read... [14:27:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:27:39]Read from MH i2c: E2 [14:27:39]MH_I2C_Read... [14:27:39]Read from MH i2c: E2 03 00 [14:27:39]MH_I2C_Read... [14:27:39]Read from MH i2c: E2 03 00 55 5D 00 90 00 26 [14:27:39]RAPDU: 90 00 [14:27:39]wFMCommunicate OK [14:27:39]wFMCommunicate request_size=10 [14:27:39]MH_SAM_APDU [14:27:39]CAPDU: 80 0D 02 02 05 3E 8F D4 4F 77 [14:27:39]Write to MH i2c: E2 0D 00 56 5D 80 0D 02 02 05 00 3E 8F D4 4F 77 00 00 9E [14:27:39]Write i2c OK [14:27:39]MH_I2C_Read... [14:27:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:27:40]Read from MH i2c: E2 [14:27:40]MH_I2C_Read... [14:27:40]Read from MH i2c: E2 03 00 [14:27:40]MH_I2C_Read... [14:27:40]Read from MH i2c: E2 03 00 56 5D 00 90 00 27 [14:27:40]RAPDU: 90 00 [14:27:40]wFMCommunicate OK [14:27:40]wFMCommunicate request_size=4 [14:27:40]MH_SAM_APDU [14:27:40]CAPDU: 80 0D 03 02 [14:27:40]Write to MH i2c: E2 08 00 57 5D 80 0D 03 02 00 00 00 00 2F [14:27:40]Write i2c OK [14:27:40]MH_I2C_Read... [14:27:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:27:40]Read from MH i2c: E2 [14:27:40]MH_I2C_Read... [14:27:40]Read from MH i2c: E2 0B 00 [14:27:40]MH_I2C_Read... [14:27:40]Read from MH i2c: E2 0B 00 57 5D 00 30 E5 5C 99 50 4B F5 4D 90 00 17 [14:27:40]RAPDU: 30 E5 5C 99 50 4B F5 4D 90 00 [14:27:40]wFMCommunicate OK [14:27:40]SAM_PROTO_SignData done [14:27:40]FM_MakeSignedData done [14:27:40]CreateOFDProtocolMessage [14:27:40]wFMCommunicate request_size=4 [14:27:40]MH_SAM_APDU [14:27:40]CAPDU: 80 11 00 00 [14:27:40]Write to MH i2c: E2 08 00 58 5D 80 11 00 00 00 00 00 00 2F [14:27:40]Write i2c OK [14:27:40]MH_I2C_Read... [14:27:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:27:40]Read from MH i2c: E2 [14:27:40]MH_I2C_Read... [14:27:40]Read from MH i2c: E2 17 00 [14:27:40]MH_I2C_Read... [14:27:40]Read from MH i2c: E2 17 00 58 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 84 [14:27:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:27:40]wFMCommunicate OK [14:27:40]CreateOFDProtocolMessage done [14:27:40]OFDSenderStorePacket 156605 [14:27:40]StoreOFDPacket docnum=156605 [14:27:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 9D 74 07 01 9F CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 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 9C 00 00 00 F4 03 04 00 E0 4D 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BD 63 02 00 35 04 06 00 83 3E 8F D4 4F 77 30 E5 5C 99 50 4B F5 4D [14:27:40]CheckFolder [14:27:40]dirname=/storage/ofd_packets [14:27:40]CheckFolder done [14:27:40]ProducePacketName [14:27:40]name=ofd_packets/00156605 [14:27:40]NVStorageSaveData ofd_packets/00156605 [14:27:40]File name is /storage/ofd_packets/00156605 [14:27:40]Write 301 bytes [14:27:40]NVStorageSaveData done [14:27:40]OFDSenderStorePacket done [14:27:40]KKMCreateOFDPacket done [14:27:40]NVStorageSaveData kkm_last_timestamp [14:27:40]File name is /storage/kkm_last_timestamp [14:27:40]Write 4 bytes [14:27:40]NVStorageSaveData done [14:27:40]ExternCall_PrintAddStr [14:27:40]wPrintStart [14:27:40]Write to MH i2c: 01 00 00 59 5D B6 [14:27:40]Write i2c OK [14:27:40]MH_I2C_Read... [14:27:40]Read from MH i2c: 01 [14:27:40]MH_I2C_Read... [14:27:40]Read from MH i2c: 01 07 00 [14:27:40]MH_I2C_Read... [14:27:40]Read from MH i2c: 01 07 00 59 5D 00 00 00 00 00 FF 0F CB [14:27:40]RasterBufferAndPrint [14:27:40]line Счет N : (1)99419 [14:27:40]line ИНН: 02508201610067 [14:27:40]line Контрольно-Кассовый Чек [14:27:40]line ПРОДАЖА [14:27:40]line ТРК (МРК, ГНК) : 11 [14:27:40]line Товар: 2710124130 [14:27:40]line Аи-92-К-5 [14:27:40]line 11.960 * 66.90 [14:27:40]line = 800.12 [14:27:40]line НДС 12% НСП 1% [14:27:40]line > о реализуемом товаре [14:27:40]line ИТОГО: 800.12 [14:27:40]line НСП 1% : 7.08 [14:27:40]line НДС 12% : 84.97 [14:27:40]line Наличными: 0.00 [14:27:40]line Безнал.: 800.12 [14:27:40]line Место: АЗС № 143 "Партнер Нефть" [14:27:40]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [14:27:40]line СНО: Общий режим [14:27:40]line Чек 156 27.10.2024 14:27 [14:27:40]line Смена: 537 ФФД: 1.0 [14:27:40]line ЗНМ: 0300000096 [14:27:40]line РНМ: 0000000000091693 [14:27:40]line Версия ККМ: 001 [14:27:40]line Платежная система: Mbank [14:27:40]line ФМ: 0000000000871792 [14:27:40]line ФД: 156605 [14:27:40]line ФПД: 144304724266871 [14:27:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T142744&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156605&fm=144304724266871&tin=02508201610067®Number=0000000000091693&sum=80012 [14:27:40]written 0, free lines is 4095 [14:27:40]OFD Sender: Processing packet 156605 [packets to send 31, broken 30] [14:27:40]ProducePacketName [14:27:40]name=ofd_packets/00156605 [14:27:40]OFD Sender: To server: pG, [14:27:40]CommunicateWithHost lk.salyk.kg:30040 [14:27:40]ConnectInit lk.salyk.kg [14:27:40]Write to MH i2c: 01 00 00 82 5D DF [14:27:40]Connected sock=10 [14:27:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 9D 74 07 01 9F CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 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 9C 00 00 00 F4 03 04 00 E0 4D 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BD 63 02 00 35 04 06 00 83 3E 8F D4 4F 77 30 E5 5C 99 50 4B F5 4D [14:27:40]Write i2c OK [14:27:40]MH_I2C_Read... [14:27:40]Read from MH i2c: 01 [14:27:40]MH_I2C_Read... [14:27:40]Read from MH i2c: 01 07 00 [14:27:40]MH_I2C_Read... [14:27:40]Read from MH i2c: 01 07 00 82 5D 00 00 00 00 00 02 0D F5 [14:27:40]RasterBufferAndPrint [14:27:40]line [14:27:40]line [14:27:40]line [14:27:40]line [14:27:40]line [14:27:40]written 0, free lines is 3354 [14:27:40]process_action close_receipt done [14:27:40]requested_data is exist [14:27:40]produce_requested_data [14:27:40]requested_item fm.sn is exist - process it [14:27:40]wFMCommunicate request_size=4 [14:27:40]MH_SAM_APDU [14:27:40]CAPDU: 80 11 00 00 [14:27:40]Write to MH i2c: E2 08 00 89 5D 80 11 00 00 00 00 00 00 60 [14:27:40]Write i2c OK [14:27:40]MH_I2C_Read... [14:27:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:27:40]Read from MH i2c: E2 [14:27:40]MH_I2C_Read... [14:27:40]Read from MH i2c: E2 17 00 [14:27:40]MH_I2C_Read... [14:27:40]Read from MH i2c: E2 17 00 89 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 B5 [14:27:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:27:40]wFMCommunicate OK [14:27:40]requested_item fd.num is exist - process it [14:27:40]SAM_PROTO_GetFieldsCounters [14:27:40]wFMCommunicate request_size=4 [14:27:40]MH_SAM_APDU [14:27:40]CAPDU: 80 13 00 00 [14:27:40]Write to MH i2c: E2 08 00 8A 5D 80 13 00 00 00 00 00 00 63 [14:27:40]Write i2c OK [14:27:40]MH_I2C_Read... [14:27:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:27:40]Read from MH i2c: E2 [14:27:40]MH_I2C_Read... [14:27:40]Read from MH i2c: E2 62 00 [14:27:40]MH_I2C_Read... [14:27:40]Read from MH i2c: E2 62 00 8A 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 BD 63 02 00 0E 04 04 00 19 02 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 9A [14: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 BD 63 02 00 0E 04 04 00 19 02 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 [14:27:40]wFMCommunicate OK [14:27:40]SAM_PROTO_GetFieldsCounters done [14:27:40]requested_item shift.num is exist - process it [14:27:40]requested_item shift.opened is exist - process it [14:27:40]req_shift_opened [14:27:40]FM_GetShiftState [14:27:40]SAM_PROTO_GetShiftState [14:27:40]wFMCommunicate request_size=4 [14:27:40]MH_SAM_APDU [14:27:40]CAPDU: 80 13 01 00 [14:27:40]Write to MH i2c: E2 08 00 8B 5D 80 13 01 00 00 00 00 00 65 [14:27:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 22 5D 47 00 F5 BD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BD 63 02 00 F4 03 04 00 4F F3 1D 67 B6 04 01 00 00 07 DF 21 E2 ED E4 DC 1A [14:27:40]CommunicateWithHost err = 0 [14:27:40]CheckOFDResponse [14:27:40]1017 (14) - 77093643461234 [14:27:40]1041 (16) - 0000000000871792 [14:27:40]1040 (4) - 156605 [14:27:40]1012 (4) - 27.10.2024 08:01 [14:27:40]1206 (1) - 0 [14:27:40]OFD Sender: Remove packet 156605 [14:27:40]ProducePacketName [14:27:40]name=ofd_packets/00156605 [14:27:40]NVStorageDeleteData [14:27:40]Write i2c OK [14:27:40]MH_I2C_Read... [14:27:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:27:40]Read from MH i2c: E2 [14:27:40]MH_I2C_Read... [14:27:40]Read from MH i2c: E2 0E 00 [14:27:40]MH_I2C_Read... [14:27:40]Read from MH i2c: E2 0E 00 8B 5D 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 32 [14:27:40]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [14:27:40]wFMCommunicate OK [14:27:40]SAM_PROTO_GetShiftState done [14:27:40]FM_GetShiftState done [14:27:40]req_shift_opened done [14:27:40]requested_item shift.open_date is exist - process it [14:27:40]req_shift_open_date [14:27:40]req_shift_open_date done [14:27:40]produce_requested_data done [14:27:40]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156605,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [14:27:40]process_action_free close_receipt [14:27:40]json_value_free [14:27:40]json_value_free done [14:27:40]process_json_proto returns [14:27:40]Send response to host [14:27:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156605,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [14:27:40]free response buf [14:27:40]execute_script done [14:27:40]execute_script returns [14:27:40]free content buf [14:27:40]Sock 8.Close socket [14:27:40]Sock 8.Thread stoped [14:27:41]OFD Sender: No OFD packet to send [14:27:46]OFD Sender: No OFD packet to send [14:27:51]OFD Sender: No OFD packet to send [14:27:56]OFD Sender: No OFD packet to send [14:28:01]OFD Sender: No OFD packet to send [14:28:06]OFD Sender: No OFD packet to send [14:28:11]OFD Sender: No OFD packet to send [14:28:16]OFD Sender: No OFD packet to send [14:28:21]OFD Sender: No OFD packet to send [14:28:26]OFD Sender: No OFD packet to send [14:28:31]OFD Sender: No OFD packet to send [14:28:36]OFD Sender: No OFD packet to send [14:28:41]OFD Sender: No OFD packet to send [14:28:46]OFD Sender: No OFD packet to send [14:28:51]OFD Sender: No OFD packet to send [14:28:56]OFD Sender: No OFD packet to send [14:29:01]OFD Sender: No OFD packet to send [14:29:06]OFD Sender: No OFD packet to send [14:29:11]OFD Sender: No OFD packet to send [14:29:16]OFD Sender: No OFD packet to send [14:29:21]OFD Sender: No OFD packet to send [14:29:26]OFD Sender: No OFD packet to send [14:29:31]OFD Sender: No OFD packet to send [14:29:36]OFD Sender: No OFD packet to send [14:29:41]OFD Sender: No OFD packet to send [14:29:46]OFD Sender: No OFD packet to send [14:29:51]OFD Sender: No OFD packet to send [14:29:56]OFD Sender: No OFD packet to send [14:30:01]OFD Sender: No OFD packet to send [14:30:06]OFD Sender: No OFD packet to send [14:30:11]OFD Sender: No OFD packet to send [14:30:16]accept exits with 9 [14:30:16]New connection [14:30:16]New thread 3066834276 created [14:30:16]Thread 3066977636 joined [14:30:16]Waiting for new connection... [14:30:16] Sock 9.Parse request [14:30:16]Sock 9.Check first char [14:30:16]Sock 9.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.63.3:8080 [14:30:16]Content-Length: 796 [14:30:16]Content-Type: application/json [14:30:16] [14:30:16]POST finish read [14:30:16]Found Content-Length = 796 [14:30:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99421", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4295904", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "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" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99421", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4295904", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "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=close_receipt [14:30:16]process_action close_receipt [14:30:16]cmd_close_receipt [14:30:16]MH_GetDate [14:30:16]Write to MH i2c: F0 00 00 8C 5D D8 [14:30:16]Write i2c OK [14:30:16]MH_I2C_Read... [14:30:16]Read from MH i2c: F0 [14:30:16]MH_I2C_Read... [14:30:16]Read from MH i2c: F0 09 00 [14:30:16]MH_I2C_Read... [14:30:16]Read from MH i2c: F0 09 00 8C 5D 00 7E 4E 1E 67 50 D1 6C 64 23 [14:30:16]GetLastDocTimeStamp 1730039264 [14:30:16]current date 1730039422 [14:30:16]FM_GetShiftState [14:30:16]SAM_PROTO_GetShiftState [14:30:16]wFMCommunicate request_size=4 [14:30:16]MH_SAM_APDU [14:30:16]CAPDU: 80 13 01 00 [14:30:16]Write to MH i2c: E2 08 00 8D 5D 80 13 01 00 00 00 00 00 67 [14:30:16]Write i2c OK [14:30:16]MH_I2C_Read... [14:30:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:16]Read from MH i2c: E2 [14:30:16]MH_I2C_Read... [14:30:16]Read from MH i2c: E2 0E 00 [14:30:16]MH_I2C_Read... [14:30:16]Read from MH i2c: E2 0E 00 8D 5D 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 34 [14:30:16]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [14:30:16]wFMCommunicate OK [14:30:16]SAM_PROTO_GetShiftState done [14:30:16]FM_GetShiftState done [14:30:16]opened in 1729989044 [14:30:16]opened+sec_in_day 1730075444 [14:30:16]quantity*price = 0 [14:30:16]sum+1 = 1 [14:30:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 157 27.10.2024 14:30 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Талоны: Топливные Талоны 4295904 ФМ: 0000000000871792 ФД: 156606 ФПД: 204578374255425 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T143022&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156606&fm=204578374255425&tin=02508201610067®Number=0000000000091693&sum=0 [14:30:17]StoreToDocumentArchive [14:30:17]shift 537 fd 156606 [14:30:17]save to /storage/0537/doc_00156606 [14:30:17]save last doc name /storage/0537/doc_00156606 to /storage/kkm_last_doc_name [14:30:17]save OK [14:30:17]Clear old archive folders... [14:30:17]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:30:17]tlvbuf is 01858240 [14:30:17]SAM_PROTO_ClearQueue [14:30:17]wFMCommunicate request_size=4 [14:30:17]MH_SAM_APDU [14:30:17]CAPDU: 80 09 00 00 [14:30:17]Write to MH i2c: E2 08 00 9A 5D 80 09 00 00 00 00 00 00 69 [14:30:17]Write i2c OK [14:30:17]MH_I2C_Read... [14:30:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:30:17]Read from MH i2c: E2 [14:30:17]MH_I2C_Read... [14:30:17]Read from MH i2c: E2 03 00 [14:30:17]MH_I2C_Read... [14:30:17]Read from MH i2c: E2 03 00 9A 5D 00 90 00 6B [14:30:17]RAPDU: 90 00 [14:30:17]wFMCommunicate OK [14:30:17]SAM_PROTO_ClearQueue done [14:30:17]KKMCreateOFDPacket [14:30:17]OFDProtocolAddRootSTLVToBuf [14:30:17]FM_MakeSignedData [14:30:17]FM_MakeSignedData [14:30:17]SAM_PROTO_SignData [14:30:17]wFMCommunicate request_size=4 [14:30:17]MH_SAM_APDU [14:30:17]CAPDU: 80 0D 01 02 [14:30:17]Write to MH i2c: E2 08 00 9B 5D 80 0D 01 02 00 00 00 00 71 [14:30:17]Write i2c OK [14:30:17]MH_I2C_Read... [14:30:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:30:17]Read from MH i2c: E2 [14:30:17]MH_I2C_Read... [14:30:17]Read from MH i2c: E2 03 00 [14:30:17]MH_I2C_Read... [14:30:17]Read from MH i2c: E2 03 00 9B 5D 00 90 00 6C [14:30:17]RAPDU: 90 00 [14:30:17]wFMCommunicate OK [14:30:17]wFMCommunicate request_size=255 [14:30:17]MH_SAM_APDU [14:30:17]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 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 7E 4E 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BE 63 02 00 35 04 06 00 BA 10 1D 53 [14:30:17]Write to MH i2c: E2 02 01 9C 5D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 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 7E 4E 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BE 63 02 00 35 04 06 00 BA 10 1D 53 00 00 70 [14:30:17]Write i2c OK [14:30:17]MH_I2C_Read... [14:30:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:17]Read from MH i2c: E2 [14:30:17]MH_I2C_Read... [14:30:17]Read from MH i2c: E2 03 00 [14:30:17]MH_I2C_Read... [14:30:17]Read from MH i2c: E2 03 00 9C 5D 00 90 00 6D [14:30:17]RAPDU: 90 00 [14:30:17]wFMCommunicate OK [14:30:17]wFMCommunicate request_size=7 [14:30:17]MH_SAM_APDU [14:30:17]CAPDU: 80 0D 02 02 02 83 41 [14:30:17]Write to MH i2c: E2 0A 00 9D 5D 80 0D 02 02 02 00 83 41 00 00 3C [14:30:17]Write i2c OK [14:30:17]MH_I2C_Read... [14:30:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:17]Read from MH i2c: E2 [14:30:17]MH_I2C_Read... [14:30:17]Read from MH i2c: E2 03 00 [14:30:17]MH_I2C_Read... [14:30:17]Read from MH i2c: E2 03 00 9D 5D 00 90 00 6E [14:30:17]RAPDU: 90 00 [14:30:17]wFMCommunicate OK [14:30:17]wFMCommunicate request_size=4 [14:30:17]MH_SAM_APDU [14:30:17]CAPDU: 80 0D 03 02 [14:30:17]Write to MH i2c: E2 08 00 9E 5D 80 0D 03 02 00 00 00 00 76 [14:30:17]Write i2c OK [14:30:17]MH_I2C_Read... [14:30:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:30:17]Read from MH i2c: E2 [14:30:17]MH_I2C_Read... [14:30:17]Read from MH i2c: E2 0B 00 [14:30:17]MH_I2C_Read... [14:30:17]Read from MH i2c: E2 0B 00 9E 5D 00 9C 37 2F F5 F4 07 C8 FC 90 00 2D [14:30:17]RAPDU: 9C 37 2F F5 F4 07 C8 FC 90 00 [14:30:17]wFMCommunicate OK [14:30:17]SAM_PROTO_SignData done [14:30:17]FM_MakeSignedData done [14:30:17]CreateOFDProtocolMessage [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 9F 5D 80 11 00 00 00 00 00 00 76 [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 9F 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 CB [14:30:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:30:17]wFMCommunicate OK [14:30:17]CreateOFDProtocolMessage done [14:30:17]OFDSenderStorePacket 156606 [14:30:17]StoreOFDPacket docnum=156606 [14:30:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 7F 14 04 01 47 2E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 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 7E 4E 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BE 63 02 00 35 04 06 00 BA 10 1D 53 83 41 9C 37 2F F5 F4 07 C8 FC [14:30:17]CheckFolder [14:30:17]dirname=/storage/ofd_packets [14:30:17]CheckFolder done [14:30:17]ProducePacketName [14:30:17]name=ofd_packets/00156606 [14:30:17]NVStorageSaveData ofd_packets/00156606 [14:30:17]File name is /storage/ofd_packets/00156606 [14:30:17]Write 298 bytes [14:30:17]NVStorageSaveData done [14:30:17]OFDSenderStorePacket done [14:30:17]KKMCreateOFDPacket done [14:30:17]NVStorageSaveData kkm_last_timestamp [14:30:17]File name is /storage/kkm_last_timestamp [14:30:17]Write 4 bytes [14:30:17]NVStorageSaveData done [14:30:17]ExternCall_PrintAddStr [14:30:17]wPrintStart [14:30:17]Write to MH i2c: 01 00 00 A0 5D FD [14:30:17]Write i2c OK [14:30:17]MH_I2C_Read... [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]Read from MH i2c: 01 07 00 A0 5D 00 00 00 00 00 FF 0F 12 [14:30:17]RasterBufferAndPrint [14:30:17]line Счет N : (1)99421 [14:30:17]line ИНН: 02508201610067 [14:30:17]line Контрольно-Кассовый Чек [14:30:17]line ПРОДАЖА [14:30:17]line ТРК (МРК, ГНК) : 32 [14:30:17]line Товар: 2710194210 [14:30:17]line ДТ-К-5 [14:30:17]line 10.000 * 0.00 [14:30:17]line = 0.00 [14:30:17]line НДС 12% НСП 1% [14:30:17]line > о реализуемом товаре [14:30:17]line ИТОГО: 0.00 [14:30:17]line НСП 1% : 0.00 [14:30:17]line НДС 12% : 0.00 [14:30:17]line Наличными: 0.00 [14:30:17]line Безнал.: 0.00 [14:30:17]line Место: АЗС № 143 "Партнер Нефть" [14:30:17]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [14:30:17]line СНО: Общий режим [14:30:17]line Чек 157 27.10.2024 14:30 [14:30:17]line Смена: 537 ФФД: 1.0 [14:30:17]line ЗНМ: 0300000096 [14:30:17]line РНМ: 0000000000091693 [14:30:17]line Версия ККМ: 001 [14:30:17]line Талоны: Топливные Талоны [14:30:17]line 4295904 [14:30:17]line ФМ: 0000000000871792 [14:30:17]line ФД: 156606 [14:30:17]line ФПД: 204578374255425 [14:30:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T143022&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156606&fm=204578374255425&tin=02508201610067®Number=0000000000091693&sum=0 [14:30:18]OFD Sender: Processing packet 156606 [packets to send 31, broken 30] [14:30:18]ProducePacketName [14:30:18]name=ofd_packets/00156606 [14:30:18]OFD Sender: To server: pG, [14:30:18]CommunicateWithHost lk.salyk.kg:30040 [14:30:18]ConnectInit lk.salyk.kg [14:30:18]written 0, free lines is 4095 [14:30:18]Connected sock=10 [14: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 31 37 39 32 0C 01 00 00 7F 14 04 01 47 2E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 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 7E 4E 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BE 63 02 00 35 04 06 00 BA 10 1D 53 83 41 9C 37 2F F5 F4 07 C8 FC [14:30:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 99 37 47 00 30 51 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BE 63 02 00 F4 03 04 00 ED F3 1D 67 B6 04 01 00 00 8E 65 7B E2 19 94 04 FD [14:30:18]CommunicateWithHost err = 0 [14:30:18]CheckOFDResponse [14:30:18]1017 (14) - 77093643461234 [14:30:18]1041 (16) - 0000000000871792 [14:30:18]1040 (4) - 156606 [14:30:18]1012 (4) - 27.10.2024 08:03 [14:30:18]1206 (1) - 0 [14:30:18]OFD Sender: Remove packet 156606 [14:30:18]ProducePacketName [14:30:18]name=ofd_packets/00156606 [14:30:18]NVStorageDeleteData [14:30:18]Write to MH i2c: 01 00 00 CA 5D 27 [14:30:18]Write i2c OK [14:30:18]MH_I2C_Read... [14:30:18]Read from MH i2c: 01 [14:30:18]MH_I2C_Read... [14:30:18]Read from MH i2c: 01 07 00 [14:30:18]MH_I2C_Read... [14:30:18]Read from MH i2c: 01 07 00 CA 5D 00 00 00 00 00 E9 0C 23 [14:30:18]RasterBufferAndPrint [14:30:18]line [14:30:18]line [14:30:18]line [14:30:18]line [14:30:18]line [14:30:18]written 0, free lines is 3312 [14:30:18]process_action close_receipt done [14:30:18]requested_data is exist [14:30:18]produce_requested_data [14:30:18]requested_item fm.sn is exist - process it [14:30:18]wFMCommunicate request_size=4 [14:30:18]MH_SAM_APDU [14:30:18]CAPDU: 80 11 00 00 [14:30:18]Write to MH i2c: E2 08 00 D1 5D 80 11 00 00 00 00 00 00 A8 [14:30:18]Write i2c OK [14:30:18]MH_I2C_Read... [14:30:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:18]Read from MH i2c: E2 [14:30:18]MH_I2C_Read... [14:30:18]Read from MH i2c: E2 17 00 [14:30:18]MH_I2C_Read... [14:30:18]Read from MH i2c: E2 17 00 D1 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 FD [14:30:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:30:18]wFMCommunicate OK [14:30:18]requested_item fd.num is exist - process it [14:30:18]SAM_PROTO_GetFieldsCounters [14:30:18]wFMCommunicate request_size=4 [14:30:18]MH_SAM_APDU [14:30:18]CAPDU: 80 13 00 00 [14:30:18]Write to MH i2c: E2 08 00 D2 5D 80 13 00 00 00 00 00 00 AB [14:30:18]Write i2c OK [14:30:18]MH_I2C_Read... [14:30:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:30:18]Read from MH i2c: E2 [14:30:18]MH_I2C_Read... [14:30:18]Read from MH i2c: E2 62 00 [14:30:18]MH_I2C_Read... [14:30:18]Read from MH i2c: E2 62 00 D2 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 BE 63 02 00 0E 04 04 00 19 02 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 E6 [14:30: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 BE 63 02 00 0E 04 04 00 19 02 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 [14:30:18]wFMCommunicate OK [14:30:18]SAM_PROTO_GetFieldsCounters done [14:30:18]requested_item shift.num is exist - process it [14:30:18]requested_item shift.opened is exist - process it [14:30:18]req_shift_opened [14:30:18]FM_GetShiftState [14:30:18]SAM_PROTO_GetShiftState [14:30:18]wFMCommunicate request_size=4 [14:30:18]MH_SAM_APDU [14:30:18]CAPDU: 80 13 01 00 [14:30:18]Write to MH i2c: E2 08 00 D3 5D 80 13 01 00 00 00 00 00 AD [14:30:18]Write i2c OK [14:30:18]MH_I2C_Read... [14:30:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:18]Read from MH i2c: E2 [14:30:18]MH_I2C_Read... [14:30:18]Read from MH i2c: E2 0E 00 [14:30:18]MH_I2C_Read... [14:30:18]Read from MH i2c: E2 0E 00 D3 5D 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 7A [14:30:18]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [14:30:18]wFMCommunicate OK [14:30:18]SAM_PROTO_GetShiftState done [14:30:18]FM_GetShiftState done [14:30:18]req_shift_opened done [14:30:18]requested_item shift.open_date is exist - process it [14:30:18]req_shift_open_date [14:30:18]req_shift_open_date done [14:30:18]produce_requested_data done [14:30:18]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156606,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [14:30:18]process_action_free close_receipt [14:30:18]json_value_free [14:30:18]json_value_free done [14:30:18]process_json_proto returns [14:30:18]Send response to host [14:30:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156606,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [14:30:18]free response buf [14:30:18]execute_script done [14:30:18]execute_script returns [14:30:18]free content buf [14:30:18]Sock 9.Close socket [14:30:18]Sock 9.Thread stoped [14:30:18]OFD Sender: No OFD packet to send [14:30:23]OFD Sender: No OFD packet to send [14:30:28]OFD Sender: No OFD packet to send [14:30:33]OFD Sender: No OFD packet to send [14:30:34]accept exits with 8 [14:30:34]New connection [14:30:34]New thread 3066977636 created [14:30:34]Thread 3066834276 joined [14:30:34]Waiting for new connection... [14:30:34] Sock 8.Parse request [14:30:34]Sock 8.Check first char [14:30:34]Sock 8.First char is OK [14:30:34]request: POST /json_proto HTTP/1.0 [14:30:34]Method: POST [14:30:34]URL: /json_proto [14:30:34]Method is POST - this is cgi request [14:30:34]url: /json_proto [14:30:34]query_string will be loaded in cgi processing [14:30:34]execute_cgi json_proto POST (null) [14:30:34]execute_cgi path=json_proto method=POST [14:30:34]POST find Content-Length [14:30:34]Host: 172.17.63.3:8080 [14:30:34]Content-Length: 681 [14:30:34]Content-Type: application/json [14:30:34] [14:30:34]POST finish read [14:30:34]Found Content-Length = 681 [14:30:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99420", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.570, "sum" : 1978.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 1978.00, "payments": [ { "type": 0, "sum" : 1978.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:30:34]execute_script... [14:30: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)99420", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.570, "sum" : 1978.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 1978.00, "payments": [ { "type": 0, "sum" : 1978.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:30:34]POST & json_proto [14:30:34]process_json_proto [14:30:34]json parsed OK: [14:30:34]protocol is kg_v1.0 [14:30:34]action value=close_receipt [14:30:34]process_action close_receipt [14:30:34]cmd_close_receipt [14:30:34]MH_GetDate [14:30:34]Write to MH i2c: F0 00 00 D4 5D 20 [14:30:34]Write i2c OK [14:30:34]MH_I2C_Read... [14:30:34]Read from MH i2c: F0 [14:30:34]MH_I2C_Read... [14:30:34]Read from MH i2c: F0 09 00 [14:30:34]MH_I2C_Read... [14:30:34]Read from MH i2c: F0 09 00 D4 5D 00 90 4E 1E 67 50 D1 6C 64 7D [14:30:34]GetLastDocTimeStamp 1730039422 [14:30:34]current date 1730039440 [14:30:34]FM_GetShiftState [14:30:34]SAM_PROTO_GetShiftState [14:30:34]wFMCommunicate request_size=4 [14:30:34]MH_SAM_APDU [14:30:34]CAPDU: 80 13 01 00 [14:30:34]Write to MH i2c: E2 08 00 D5 5D 80 13 01 00 00 00 00 00 AF [14:30:34]Write i2c OK [14:30:34]MH_I2C_Read... [14:30:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:34]Read from MH i2c: E2 [14:30:34]MH_I2C_Read... [14:30:34]Read from MH i2c: E2 0E 00 [14:30:34]MH_I2C_Read... [14:30:34]Read from MH i2c: E2 0E 00 D5 5D 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 7C [14:30:34]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [14:30:34]wFMCommunicate OK [14:30:34]SAM_PROTO_GetShiftState done [14:30:34]FM_GetShiftState done [14:30:34]opened in 1729989044 [14:30:34]opened+sec_in_day 1730075444 [14:30:34]quantity*price = 197823 [14:30:34]sum+1 = 197824 [14:30:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 1978.00 Внесено: 2500.00 СДАЧА: 522.00 НСП 1% : 17.51 НДС 12% : 210.08 Наличными: 1978.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 158 27.10.2024 14:30 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156607 ФПД: 274415261071843 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T143040&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156607&fm=274415261071843&tin=02508201610067®Number=0000000000091693&sum=197800 [14:30:35]StoreToDocumentArchive [14:30:35]shift 537 fd 156607 [14:30:35]save to /storage/0537/doc_00156607 [14:30:35]save last doc name /storage/0537/doc_00156607 to /storage/kkm_last_doc_name [14:30:35]save OK [14:30:35]Clear old archive folders... [14:30:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:30:35]tlvbuf is 01857D60 [14:30:35]SAM_PROTO_ClearQueue [14:30:35]wFMCommunicate request_size=4 [14:30:35]MH_SAM_APDU [14:30:35]CAPDU: 80 09 00 00 [14:30:35]Write to MH i2c: E2 08 00 E2 5D 80 09 00 00 00 00 00 00 B1 [14:30:35]Write i2c OK [14:30:35]MH_I2C_Read... [14:30:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:30:35]Read from MH i2c: E2 [14:30:35]MH_I2C_Read... [14:30:35]Read from MH i2c: E2 03 00 [14:30:35]MH_I2C_Read... [14:30:35]Read from MH i2c: E2 03 00 E2 5D 00 90 00 B3 [14:30:35]RAPDU: 90 00 [14:30:35]wFMCommunicate OK [14:30:35]SAM_PROTO_ClearQueue done [14:30:35]KKMCreateOFDPacket [14:30:35]OFDProtocolAddRootSTLVToBuf [14:30:35]FM_MakeSignedData [14:30:35]FM_MakeSignedData [14:30:35]SAM_PROTO_SignData [14:30:35]wFMCommunicate request_size=4 [14:30:35]MH_SAM_APDU [14:30:35]CAPDU: 80 0D 01 02 [14:30:35]Write to MH i2c: E2 08 00 E3 5D 80 0D 01 02 00 00 00 00 B9 [14:30:35]Write i2c OK [14:30:35]MH_I2C_Read... [14:30:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:30:35]Read from MH i2c: E2 [14:30:35]MH_I2C_Read... [14:30:35]Read from MH i2c: E2 03 00 [14:30:35]MH_I2C_Read... [14:30:35]Read from MH i2c: E2 03 00 E3 5D 00 90 00 B4 [14:30:35]RAPDU: 90 00 [14:30:35]wFMCommunicate OK [14:30:35]wFMCommunicate request_size=255 [14:30:35]MH_SAM_APDU [14:30: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 82 73 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 04 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 04 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 52 00 00 00 00 07 04 06 00 A8 04 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 90 4E 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BF 63 02 00 35 04 06 00 F9 [14:30:35]Write to MH i2c: E2 02 01 E4 5D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 82 73 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 04 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 04 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 52 00 00 00 00 07 04 06 00 A8 04 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 90 4E 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BF 63 02 00 35 04 06 00 F9 00 00 95 [14:30:35]Write i2c OK [14:30:35]MH_I2C_Read... [14:30:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:36]Read from MH i2c: E2 [14:30:36]MH_I2C_Read... [14:30:36]Read from MH i2c: E2 03 00 [14:30:36]MH_I2C_Read... [14:30:36]Read from MH i2c: E2 03 00 E4 5D 00 90 00 B5 [14:30:36]RAPDU: 90 00 [14:30:36]wFMCommunicate OK [14:30:36]wFMCommunicate request_size=10 [14:30:36]MH_SAM_APDU [14:30:36]CAPDU: 80 0D 02 02 05 94 48 28 39 E3 [14:30:36]Write to MH i2c: E2 0D 00 E5 5D 80 0D 02 02 05 00 94 48 28 39 E3 00 00 E6 [14:30:36]Write i2c OK [14:30:36]MH_I2C_Read... [14:30:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:36]Read from MH i2c: E2 [14:30:36]MH_I2C_Read... [14:30:36]Read from MH i2c: E2 03 00 [14:30:36]MH_I2C_Read... [14:30:36]Read from MH i2c: E2 03 00 E5 5D 00 90 00 B6 [14:30:36]RAPDU: 90 00 [14:30:36]wFMCommunicate OK [14:30:36]wFMCommunicate request_size=4 [14:30:36]MH_SAM_APDU [14:30:36]CAPDU: 80 0D 03 02 [14:30:36]Write to MH i2c: E2 08 00 E6 5D 80 0D 03 02 00 00 00 00 BE [14:30:36]Write i2c OK [14:30:36]MH_I2C_Read... [14:30:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:30:36]Read from MH i2c: E2 [14:30:36]MH_I2C_Read... [14:30:36]Read from MH i2c: E2 0B 00 [14:30:36]MH_I2C_Read... [14:30:36]Read from MH i2c: E2 0B 00 E6 5D 00 5F 2A C0 6C 6D E6 87 0E 90 00 5C [14:30:36]RAPDU: 5F 2A C0 6C 6D E6 87 0E 90 00 [14:30:36]wFMCommunicate OK [14:30:36]SAM_PROTO_SignData done [14:30:36]FM_MakeSignedData done [14:30:36]CreateOFDProtocolMessage [14:30:36]wFMCommunicate request_size=4 [14:30:36]MH_SAM_APDU [14:30:36]CAPDU: 80 11 00 00 [14:30:36]Write to MH i2c: E2 08 00 E7 5D 80 11 00 00 00 00 00 00 BE [14:30:36]Write i2c OK [14:30:36]MH_I2C_Read... [14:30:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:36]Read from MH i2c: E2 [14:30:36]MH_I2C_Read... [14:30:36]Read from MH i2c: E2 17 00 [14:30:36]MH_I2C_Read... [14:30:36]Read from MH i2c: E2 17 00 E7 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 13 [14:30:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:30:36]wFMCommunicate OK [14:30:36]CreateOFDProtocolMessage done [14:30:36]OFDSenderStorePacket 156607 [14:30:36]StoreOFDPacket docnum=156607 [14:30:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 47 61 07 01 02 83 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 82 73 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 04 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 04 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 52 00 00 00 00 07 04 06 00 A8 04 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 90 4E 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BF 63 02 00 35 04 06 00 F9 94 48 28 39 E3 5F 2A C0 6C 6D E6 87 0E [14:30:36]CheckFolder [14:30:36]dirname=/storage/ofd_packets [14:30:36]CheckFolder done [14:30:36]ProducePacketName [14:30:36]name=ofd_packets/00156607 [14:30:36]NVStorageSaveData ofd_packets/00156607 [14:30:36]File name is /storage/ofd_packets/00156607 [14:30:36]Write 301 bytes [14:30:36]NVStorageSaveData done [14:30:36]OFDSenderStorePacket done [14:30:36]KKMCreateOFDPacket done [14:30:36]NVStorageSaveData kkm_last_timestamp [14:30:36]File name is /storage/kkm_last_timestamp [14:30:36]Write 4 bytes [14:30:36]NVStorageSaveData done [14:30:36]ExternCall_PrintAddStr [14:30:36]wPrintStart [14:30:36]Write to MH i2c: 01 00 00 E8 5D 45 [14:30:36]Write i2c OK [14:30:36]MH_I2C_Read... [14:30:36]Read from MH i2c: 01 [14:30:36]MH_I2C_Read... [14:30:36]Read from MH i2c: 01 07 00 [14:30:36]MH_I2C_Read... [14:30:36]Read from MH i2c: 01 07 00 E8 5D 00 00 00 00 00 FF 0F 5A [14:30:36]RasterBufferAndPrint [14:30:36]line Счет N : (1)99420 [14:30:36]line ИНН: 02508201610067 [14:30:36]line Контрольно-Кассовый Чек [14:30:36]line ПРОДАЖА [14:30:36]line ТРК (МРК, ГНК) : 21 [14:30:36]line Товар: 2710124130 [14:30:36]line Аи-92-К-5 [14:30:36]line 29.570 * 66.90 [14:30:36]line = 1978.23 [14:30:36]line НДС 12% НСП 1% [14:30:36]line > о реализуемом товаре [14:30:36]line ОКРУГЛЕНИЕ: -0.23 [14:30:36]line ИТОГО: 1978.00 [14:30:36]line Внесено: 2500.00 [14:30:36]line СДАЧА: 522.00 [14:30:36]line НСП 1% : 17.51 [14:30:36]line НДС 12% : 210.08 [14:30:36]line Наличными: 1978.00 [14:30:36]line Безнал.: 0.00 [14:30:36]line Место: АЗС № 143 "Партнер Нефть" [14:30:36]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [14:30:36]line СНО: Общий режим [14:30:36]line Чек 158 27.10.2024 14:30 [14:30:36]line Смена: 537 ФФД: 1.0 [14:30:36]line ЗНМ: 0300000096 [14:30:36]line РНМ: 0000000000091693 [14:30:36]line Версия ККМ: 001 [14:30:36]line ФМ: 0000000000871792 [14:30:36]line ФД: 156607 [14:30:36]line ФПД: 274415261071843 [14:30:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T143040&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156607&fm=274415261071843&tin=02508201610067®Number=0000000000091693&sum=197800 [14:30:36]OFD Sender: Processing packet 156607 [packets to send 31, broken 30] [14:30:36]ProducePacketName [14:30:36]name=ofd_packets/00156607 [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]written 0, free lines is 4095 [14:30:36]Connected sock=10 [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 31 37 39 32 0F 01 00 00 47 61 07 01 02 83 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 82 73 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 04 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 04 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 52 00 00 00 00 07 04 06 00 A8 04 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 90 4E 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BF 63 02 00 35 04 06 00 F9 94 48 28 39 E3 5F 2A C0 6C 6D E6 87 0E [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 31 37 39 32 4F 00 00 00 9F 2A 47 00 71 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 BF 63 02 00 F4 03 04 00 00 F4 1D 67 B6 04 01 00 00 3E 0F 86 07 52 89 8F 9B [14:30:36]CommunicateWithHost err = 0 [14:30:36]CheckOFDResponse [14:30:36]1017 (14) - 77093643461234 [14:30:36]1041 (16) - 0000000000871792 [14:30:36]1040 (4) - 156607 [14:30:36]1012 (4) - 27.10.2024 08:04 [14:30:36]1206 (1) - 0 [14:30:36]OFD Sender: Remove packet 156607 [14:30:36]ProducePacketName [14:30:36]name=ofd_packets/00156607 [14:30:36]NVStorageDeleteData [14:30:37]Write to MH i2c: 01 00 00 13 5E 71 [14:30:37]Write i2c OK [14:30:37]MH_I2C_Read... [14:30:37]Read from MH i2c: 01 [14:30:37]MH_I2C_Read... [14:30:37]Read from MH i2c: 01 07 00 [14:30:37]MH_I2C_Read... [14:30:37]Read from MH i2c: 01 07 00 13 5E 00 00 00 00 00 E9 0C 6D [14:30:37]RasterBufferAndPrint [14:30:37]line [14:30:37]line [14:30:37]line [14:30:37]line [14:30:37]line [14:30:37]written 0, free lines is 3311 [14:30:37]process_action close_receipt done [14:30:37]requested_data is exist [14:30:37]produce_requested_data [14:30:37]requested_item fm.sn is exist - process it [14:30:37]wFMCommunicate request_size=4 [14:30:37]MH_SAM_APDU [14:30:37]CAPDU: 80 11 00 00 [14:30:37]Write to MH i2c: E2 08 00 1A 5E 80 11 00 00 00 00 00 00 F2 [14:30:37]Write i2c OK [14:30:37]MH_I2C_Read... [14:30:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:37]Read from MH i2c: E2 [14:30:37]MH_I2C_Read... [14:30:37]Read from MH i2c: E2 17 00 [14:30:37]MH_I2C_Read... [14:30:37]Read from MH i2c: E2 17 00 1A 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 47 [14:30:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:30:37]wFMCommunicate OK [14:30:37]requested_item fd.num is exist - process it [14:30:37]SAM_PROTO_GetFieldsCounters [14:30:37]wFMCommunicate request_size=4 [14:30:37]MH_SAM_APDU [14:30:37]CAPDU: 80 13 00 00 [14:30:37]Write to MH i2c: E2 08 00 1B 5E 80 13 00 00 00 00 00 00 F5 [14:30:37]Write i2c OK [14:30:37]MH_I2C_Read... [14:30:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:30:37]Read from MH i2c: E2 [14:30:37]MH_I2C_Read... [14:30:37]Read from MH i2c: E2 62 00 [14:30:37]MH_I2C_Read... [14:30:37]Read from MH i2c: E2 62 00 1B 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 BF 63 02 00 0E 04 04 00 19 02 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 34 [14:30:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 BF 63 02 00 0E 04 04 00 19 02 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 [14:30:37]wFMCommunicate OK [14:30:37]SAM_PROTO_GetFieldsCounters done [14:30:37]requested_item shift.num is exist - process it [14:30:37]requested_item shift.opened is exist - process it [14:30:37]req_shift_opened [14:30:37]FM_GetShiftState [14:30:37]SAM_PROTO_GetShiftState [14:30:37]wFMCommunicate request_size=4 [14:30:37]MH_SAM_APDU [14:30:37]CAPDU: 80 13 01 00 [14:30:37]Write to MH i2c: E2 08 00 1C 5E 80 13 01 00 00 00 00 00 F7 [14:30:37]Write i2c OK [14:30:37]MH_I2C_Read... [14:30:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:37]Read from MH i2c: E2 [14:30:37]MH_I2C_Read... [14:30:37]Read from MH i2c: E2 0E 00 [14:30:37]MH_I2C_Read... [14:30:37]Read from MH i2c: E2 0E 00 1C 5E 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 C4 [14:30:37]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [14:30:37]wFMCommunicate OK [14:30:37]SAM_PROTO_GetShiftState done [14:30:37]FM_GetShiftState done [14:30:37]req_shift_opened done [14:30:37]requested_item shift.open_date is exist - process it [14:30:37]req_shift_open_date [14:30:37]req_shift_open_date done [14:30:37]produce_requested_data done [14:30:37]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156607,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [14:30:37]process_action_free close_receipt [14:30:37]json_value_free [14:30:37]json_value_free done [14:30:37]process_json_proto returns [14:30:37]Send response to host [14:30:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156607,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [14:30:37]free response buf [14:30:37]execute_script done [14:30:37]execute_script returns [14:30:37]free content buf [14:30:37]Sock 8.Close socket [14:30:37]Sock 8.Thread stoped [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:52]int [14:30:52]Write to MH i2c: 01 00 00 1D 5E 7B [14:30:52]*** FLAG_PRN_KEY set [14:30:52]Write i2c OK [14:30:52]MH_I2C_Read... [14:30:52]Read from MH i2c: 01 [14:30:52]MH_I2C_Read... [14:30:52]Read from MH i2c: 01 07 00 [14:30:52]MH_I2C_Read... [14:30:52]Read from MH i2c: 01 07 00 1D 5E 00 08 00 00 00 FF 0F 98 [14:30:52]state=0 [14:30:52]Key pressed [14:30:52]Feed [14:30:52]Write to MH i2c: D8 00 00 1E 5E 53 [14:30:52]Write i2c OK [14:30:52]MH_I2C_Read... [14:30:52]Read from MH i2c: D8 [14:30:52]MH_I2C_Read... [14:30:52]Read from MH i2c: D8 01 00 [14:30:52]MH_I2C_Read... [14:30:52]Read from MH i2c: D8 01 00 1E 5E 00 54 [14:30:52]int [14:30:52]Write to MH i2c: 01 00 00 1F 5E 7D [14:30:52]Write i2c OK [14:30:52]MH_I2C_Read... [14:30:52]Read from MH i2c: 01 [14:30:52]MH_I2C_Read... [14:30:52]Read from MH i2c: 01 07 00 [14:30:52]MH_I2C_Read... [14:30:52]Read from MH i2c: 01 07 00 1F 5E 00 48 00 00 00 3D 00 09 [14:30:52]state=2 [14:30:52]Key pressed [14:30:53]int [14:30:53]Write to MH i2c: 01 00 00 20 5E 7E [14:30:53]*** FLAG_PRN_KEY reset [14:30:53]Write i2c OK [14:30:53]MH_I2C_Read... [14:30:53]Read from MH i2c: 01 [14:30:53]MH_I2C_Read... [14:30:53]Read from MH i2c: 01 07 00 [14:30:53]MH_I2C_Read... [14:30:53]Read from MH i2c: 01 07 00 20 5E 00 00 00 00 00 F6 0F 8A [14:30:53]state=2 [14:30:53]Stop feed [14:30:57]OFD Sender: No OFD packet to send [14:31:02]OFD Sender: No OFD packet to send [14:31:07]OFD Sender: No OFD packet to send [14:31:12]OFD Sender: No OFD packet to send [14:31:17]OFD Sender: No OFD packet to send [14:31:22]OFD Sender: No OFD packet to send [14:31:27]OFD Sender: No OFD packet to send [14:31:32]OFD Sender: No OFD packet to send [14:31:37]OFD Sender: No OFD packet to send [14:31:42]OFD Sender: No OFD packet to send [14:31:47]OFD Sender: No OFD packet to send [14:31:52]OFD Sender: No OFD packet to send [14:31:57]OFD Sender: No OFD packet to send [14:32:02]OFD Sender: No OFD packet to send [14:32:07]OFD Sender: No OFD packet to send [14:32:12]OFD Sender: No OFD packet to send [14:32:17]OFD Sender: No OFD packet to send [14:32:22]OFD Sender: No OFD packet to send [14:32:27]OFD Sender: No OFD packet to send [14:32:32]OFD Sender: No OFD packet to send [14:32:37]OFD Sender: No OFD packet to send [14:32:42]OFD Sender: No OFD packet to send [14:32:47]accept exits with 9 [14:32:47]New connection [14:32:47]New thread 3066834276 created [14:32:47]Thread 3066977636 joined [14:32:47]Waiting for new connection... [14:32:47] Sock 9.Parse request [14:32:47]Sock 9.Check first char [14:32:47]Sock 9.First char is OK [14:32:47]request: POST /json_proto HTTP/1.0 [14:32:47]Method: POST [14:32:47]URL: /json_proto [14:32:47]Method is POST - this is cgi request [14:32:47]url: /json_proto [14:32:47]query_string will be loaded in cgi processing [14:32:47]execute_cgi json_proto POST (null) [14:32:47]execute_cgi path=json_proto method=POST [14:32:47]POST find Content-Length [14:32:47]Host: 172.17.63.3:8080 [14:32:47]Content-Length: 676 [14:32:47]Content-Type: application/json [14:32:47] [14:32:47]POST finish read [14:32:47]Found Content-Length = 676 [14:32:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99422", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:32:47]execute_script... [14:32:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99422", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:32:47]POST & json_proto [14:32:47]process_json_proto [14:32:47]json parsed OK: [14:32:47]protocol is kg_v1.0 [14:32:47]action value=close_receipt [14:32:47]process_action close_receipt [14:32:47]cmd_close_receipt [14:32:47]MH_GetDate [14:32:47]Write to MH i2c: F0 00 00 21 5E 6E [14:32:47]Write i2c OK [14:32:47]MH_I2C_Read... [14:32:47]Read from MH i2c: F0 [14:32:47]MH_I2C_Read... [14:32:47]Read from MH i2c: F0 09 00 [14:32:47]MH_I2C_Read... [14:32:47]Read from MH i2c: F0 09 00 21 5E 00 15 4F 1E 67 50 D1 6C 64 51 [14:32:47]GetLastDocTimeStamp 1730039440 [14:32:47]current date 1730039573 [14:32:47]FM_GetShiftState [14:32:47]SAM_PROTO_GetShiftState [14:32:47]wFMCommunicate request_size=4 [14:32:47]MH_SAM_APDU [14:32:47]CAPDU: 80 13 01 00 [14:32:47]Write to MH i2c: E2 08 00 22 5E 80 13 01 00 00 00 00 00 FD [14:32:47]Write i2c OK [14:32:47]MH_I2C_Read... [14:32:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:32:47]Read from MH i2c: E2 [14:32:47]MH_I2C_Read... [14:32:47]Read from MH i2c: E2 0E 00 [14:32:47]MH_I2C_Read... [14:32:47]Read from MH i2c: E2 0E 00 22 5E 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 CA [14:32:47]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [14:32:47]wFMCommunicate OK [14:32:47]SAM_PROTO_GetShiftState done [14:32:47]FM_GetShiftState done [14:32:47]opened in 1729989044 [14:32:47]opened+sec_in_day 1730075444 [14:32:47]quantity*price = 30038 [14:32:47]sum+1 = 30039 [14:32:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 159 27.10.2024 14:32 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156608 ФПД: 206770644282745 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T143253&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156608&fm=206770644282745&tin=02508201610067®Number=0000000000091693&sum=30000 [14:32:48]StoreToDocumentArchive [14:32:48]shift 537 fd 156608 [14:32:48]save to /storage/0537/doc_00156608 [14:32:48]save last doc name /storage/0537/doc_00156608 to /storage/kkm_last_doc_name [14:32:48]save OK [14:32:48]Clear old archive folders... [14:32:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:32:48]tlvbuf is 01712060 [14:32:48]SAM_PROTO_ClearQueue [14:32:48]wFMCommunicate request_size=4 [14:32:48]MH_SAM_APDU [14:32:48]CAPDU: 80 09 00 00 [14:32:48]Write to MH i2c: E2 08 00 2F 5E 80 09 00 00 00 00 00 00 FF [14:32:48]Write i2c OK [14:32:48]MH_I2C_Read... [14:32:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:32:48]Read from MH i2c: E2 [14:32:48]MH_I2C_Read... [14:32:48]Read from MH i2c: E2 03 00 [14:32:48]MH_I2C_Read... [14:32:48]Read from MH i2c: E2 03 00 2F 5E 00 90 00 01 [14:32:48]RAPDU: 90 00 [14:32:48]wFMCommunicate OK [14:32:48]SAM_PROTO_ClearQueue done [14:32:48]KKMCreateOFDPacket [14:32:48]OFDProtocolAddRootSTLVToBuf [14:32:48]FM_MakeSignedData [14:32:48]FM_MakeSignedData [14:32:48]SAM_PROTO_SignData [14:32:48]wFMCommunicate request_size=4 [14:32:48]MH_SAM_APDU [14:32:48]CAPDU: 80 0D 01 02 [14:32:48]Write to MH i2c: E2 08 00 30 5E 80 0D 01 02 00 00 00 00 07 [14:32:48]Write i2c OK [14:32:48]MH_I2C_Read... [14:32:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:32:48]Read from MH i2c: E2 [14:32:48]MH_I2C_Read... [14:32:48]Read from MH i2c: E2 03 00 [14:32:48]MH_I2C_Read... [14:32:48]Read from MH i2c: E2 03 00 30 5E 00 90 00 02 [14:32:48]RAPDU: 90 00 [14:32:48]wFMCommunicate OK [14:32:48]wFMCommunicate request_size=255 [14:32:48]MH_SAM_APDU [14:32: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 15 4F 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C0 63 02 00 35 04 06 00 BC [14:32:48]Write to MH i2c: E2 02 01 31 5E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 15 4F 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C0 63 02 00 35 04 06 00 BC 00 00 13 [14:32:48]Write i2c OK [14:32:48]MH_I2C_Read... [14:32:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:32:48]Read from MH i2c: E2 [14:32:48]MH_I2C_Read... [14:32:48]Read from MH i2c: E2 03 00 [14:32:48]MH_I2C_Read... [14:32:48]Read from MH i2c: E2 03 00 31 5E 00 90 00 03 [14:32:48]RAPDU: 90 00 [14:32:48]wFMCommunicate OK [14:32:48]wFMCommunicate request_size=10 [14:32:48]MH_SAM_APDU [14:32:48]CAPDU: 80 0D 02 02 05 0E 8A CD 6D 79 [14:32:48]Write to MH i2c: E2 0D 00 32 5E 80 0D 02 02 05 00 0E 8A CD 6D 79 00 00 5F [14:32:48]Write i2c OK [14:32:48]MH_I2C_Read... [14:32:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:32:48]Read from MH i2c: E2 [14:32:48]MH_I2C_Read... [14:32:48]Read from MH i2c: E2 03 00 [14:32:48]MH_I2C_Read... [14:32:48]Read from MH i2c: E2 03 00 32 5E 00 90 00 04 [14:32:48]RAPDU: 90 00 [14:32:48]wFMCommunicate OK [14:32:48]wFMCommunicate request_size=4 [14:32:48]MH_SAM_APDU [14:32:48]CAPDU: 80 0D 03 02 [14:32:48]Write to MH i2c: E2 08 00 33 5E 80 0D 03 02 00 00 00 00 0C [14:32:48]Write i2c OK [14:32:48]MH_I2C_Read... [14:32:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:32:48]Read from MH i2c: E2 [14:32:48]MH_I2C_Read... [14:32:48]Read from MH i2c: E2 0B 00 [14:32:48]MH_I2C_Read... [14:32:48]Read from MH i2c: E2 0B 00 33 5E 00 B1 EB B7 53 F6 17 74 2D 90 00 61 [14:32:48]RAPDU: B1 EB B7 53 F6 17 74 2D 90 00 [14:32:48]wFMCommunicate OK [14:32:48]SAM_PROTO_SignData done [14:32:48]FM_MakeSignedData done [14:32:48]CreateOFDProtocolMessage [14:32:48]wFMCommunicate request_size=4 [14:32:48]MH_SAM_APDU [14:32:48]CAPDU: 80 11 00 00 [14:32:48]Write to MH i2c: E2 08 00 34 5E 80 11 00 00 00 00 00 00 0C [14:32:48]Write i2c OK [14:32:48]MH_I2C_Read... [14:32:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:32:48]Read from MH i2c: E2 [14:32:48]MH_I2C_Read... [14:32:48]Read from MH i2c: E2 17 00 [14:32:48]MH_I2C_Read... [14:32:48]Read from MH i2c: E2 17 00 34 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 61 [14:32:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:32:48]wFMCommunicate OK [14:32:48]CreateOFDProtocolMessage done [14:32:48]OFDSenderStorePacket 156608 [14:32:48]StoreOFDPacket docnum=156608 [14:32:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 BF DD 07 01 A1 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 15 4F 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C0 63 02 00 35 04 06 00 BC 0E 8A CD 6D 79 B1 EB B7 53 F6 17 74 2D [14:32:48]CheckFolder [14:32:48]dirname=/storage/ofd_packets [14:32:48]CheckFolder done [14:32:48]ProducePacketName [14:32:48]name=ofd_packets/00156608 [14:32:48]NVStorageSaveData ofd_packets/00156608 [14:32:48]File name is /storage/ofd_packets/00156608 [14:32:48]Write 301 bytes [14:32:48]NVStorageSaveData done [14:32:48]OFDSenderStorePacket done [14:32:48]KKMCreateOFDPacket done [14:32:48]NVStorageSaveData kkm_last_timestamp [14:32:48]File name is /storage/kkm_last_timestamp [14:32:48]Write 4 bytes [14:32:48]NVStorageSaveData done [14:32:48]ExternCall_PrintAddStr [14:32:48]wPrintStart [14:32:48]Write to MH i2c: 01 00 00 35 5E 93 [14:32:48]Write i2c OK [14:32:48]MH_I2C_Read... [14:32:48]Read from MH i2c: 01 [14:32:48]MH_I2C_Read... [14:32:48]Read from MH i2c: 01 07 00 [14:32:48]MH_I2C_Read... [14:32:48]Read from MH i2c: 01 07 00 35 5E 00 00 00 00 00 FF 0F A8 [14:32:48]RasterBufferAndPrint [14:32:48]line Счет N : (1)99422 [14:32:48]line ИНН: 02508201610067 [14:32:48]line Контрольно-Кассовый Чек [14:32:48]line ПРОДАЖА [14:32:48]line ТРК (МРК, ГНК) : 21 [14:32:48]line Товар: 2710124130 [14:32:48]line Аи-92-К-5 [14:32:48]line 4.490 * 66.90 [14:32:48]line = 300.38 [14:32:48]line НДС 12% НСП 1% [14:32:48]line > о реализуемом товаре [14:32:48]line ОКРУГЛЕНИЕ: -0.38 [14:32:48]line ИТОГО: 300.00 [14:32:48]line Внесено: 300.00 [14:32:48]line СДАЧА: 0.00 [14:32:48]line НСП 1% : 2.66 [14:32:48]line НДС 12% : 31.90 [14:32:48]line Наличными: 300.00 [14:32:48]line Безнал.: 0.00 [14:32:48]line Место: АЗС № 143 "Партнер Нефть" [14:32:48]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [14:32:48]line СНО: Общий режим [14:32:48]line Чек 159 27.10.2024 14:32 [14:32:48]line Смена: 537 ФФД: 1.0 [14:32:48]line ЗНМ: 0300000096 [14:32:48]line РНМ: 0000000000091693 [14:32:48]line Версия ККМ: 001 [14:32:48]line ФМ: 0000000000871792 [14:32:48]line ФД: 156608 [14:32:48]line ФПД: 206770644282745 [14:32:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T143253&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156608&fm=206770644282745&tin=02508201610067®Number=0000000000091693&sum=30000 [14:32:49]OFD Sender: Processing packet 156608 [packets to send 31, broken 30] [14:32:49]ProducePacketName [14:32:49]name=ofd_packets/00156608 [14:32:49]OFD Sender: To server: pG, [14:32:49]CommunicateWithHost lk.salyk.kg:30040 [14:32:49]ConnectInit lk.salyk.kg [14:32:49]written 0, free lines is 4095 [14:32:49]Connected sock=10 [14:32:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 BF DD 07 01 A1 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 15 4F 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C0 63 02 00 35 04 06 00 BC 0E 8A CD 6D 79 B1 EB B7 53 F6 17 74 2D [14:32:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 9F 97 47 00 75 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 31 37 39 32 10 04 04 00 C0 63 02 00 F4 03 04 00 84 F4 1D 67 B6 04 01 00 00 99 D1 F6 6F 9B 08 CE 92 [14:32:49]CommunicateWithHost err = 0 [14:32:49]CheckOFDResponse [14:32:49]1017 (14) - 77093643461234 [14:32:49]1041 (16) - 0000000000871792 [14:32:49]1040 (4) - 156608 [14:32:49]1012 (4) - 27.10.2024 08:06 [14:32:49]1206 (1) - 0 [14:32:49]OFD Sender: Remove packet 156608 [14:32:49]ProducePacketName [14:32:49]name=ofd_packets/00156608 [14:32:49]NVStorageDeleteData [14:32:49]Write to MH i2c: 01 00 00 60 5E BE [14:32:49]Write i2c OK [14:32:49]MH_I2C_Read... [14:32:49]Read from MH i2c: 01 [14:32:49]MH_I2C_Read... [14:32:49]Read from MH i2c: 01 07 00 [14:32:49]MH_I2C_Read... [14:32:49]Read from MH i2c: 01 07 00 60 5E 00 00 00 00 00 E1 0C B2 [14:32:49]RasterBufferAndPrint [14:32:49]line [14:32:49]line [14:32:49]line [14:32:49]line [14:32:49]line [14:32:49]written 0, free lines is 3303 [14:32:49]process_action close_receipt done [14:32:49]requested_data is exist [14:32:49]produce_requested_data [14:32:49]requested_item fm.sn is exist - process it [14:32:49]wFMCommunicate request_size=4 [14:32:49]MH_SAM_APDU [14:32:49]CAPDU: 80 11 00 00 [14:32:49]Write to MH i2c: E2 08 00 67 5E 80 11 00 00 00 00 00 00 3F [14:32:49]Write i2c OK [14:32:49]MH_I2C_Read... [14:32:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:32:49]Read from MH i2c: E2 [14:32:49]MH_I2C_Read... [14:32:49]Read from MH i2c: E2 17 00 [14:32:49]MH_I2C_Read... [14:32:49]Read from MH i2c: E2 17 00 67 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 94 [14:32:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:32:49]wFMCommunicate OK [14:32:49]requested_item fd.num is exist - process it [14:32:49]SAM_PROTO_GetFieldsCounters [14:32:49]wFMCommunicate request_size=4 [14:32:49]MH_SAM_APDU [14:32:49]CAPDU: 80 13 00 00 [14:32:49]Write to MH i2c: E2 08 00 68 5E 80 13 00 00 00 00 00 00 42 [14:32:49]Write i2c OK [14:32:49]MH_I2C_Read... [14:32:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:32:49]Read from MH i2c: E2 [14:32:49]MH_I2C_Read... [14:32:49]Read from MH i2c: E2 62 00 [14:32:49]MH_I2C_Read... [14:32:49]Read from MH i2c: E2 62 00 68 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 C0 63 02 00 0E 04 04 00 19 02 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 85 [14:32:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 C0 63 02 00 0E 04 04 00 19 02 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 [14:32:49]wFMCommunicate OK [14:32:49]SAM_PROTO_GetFieldsCounters done [14:32:49]requested_item shift.num is exist - process it [14:32:49]requested_item shift.opened is exist - process it [14:32:49]req_shift_opened [14:32:49]FM_GetShiftState [14:32:49]SAM_PROTO_GetShiftState [14:32:49]wFMCommunicate request_size=4 [14:32:49]MH_SAM_APDU [14:32:49]CAPDU: 80 13 01 00 [14:32:49]Write to MH i2c: E2 08 00 69 5E 80 13 01 00 00 00 00 00 44 [14:32:49]Write i2c OK [14:32:49]MH_I2C_Read... [14:32:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:32:49]Read from MH i2c: E2 [14:32:49]MH_I2C_Read... [14:32:49]Read from MH i2c: E2 0E 00 [14:32:49]MH_I2C_Read... [14:32:49]Read from MH i2c: E2 0E 00 69 5E 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 11 [14:32:49]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [14:32:49]wFMCommunicate OK [14:32:49]SAM_PROTO_GetShiftState done [14:32:49]FM_GetShiftState done [14:32:49]req_shift_opened done [14:32:49]requested_item shift.open_date is exist - process it [14:32:49]req_shift_open_date [14:32:49]req_shift_open_date done [14:32:49]produce_requested_data done [14:32:49]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156608,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [14:32:49]process_action_free close_receipt [14:32:49]json_value_free [14:32:49]json_value_free done [14:32:49]process_json_proto returns [14:32:49]Send response to host [14:32:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156608,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [14:32:49]free response buf [14:32:49]execute_script done [14:32:49]execute_script returns [14:32:49]free content buf [14:32:49]Sock 9.Close socket [14:32:49]Sock 9.Thread stoped [14:32:49]OFD Sender: No OFD packet to send [14:32:54]OFD Sender: No OFD packet to send [14:32:59]OFD Sender: No OFD packet to send [14:33:04]OFD Sender: No OFD packet to send [14:33:09]OFD Sender: No OFD packet to send [14:33:14]OFD Sender: No OFD packet to send [14:33:20]OFD Sender: No OFD packet to send [14:33:25]OFD Sender: No OFD packet to send [14:33:30]OFD Sender: No OFD packet to send [14:33:35]OFD Sender: No OFD packet to send [14:33:40]OFD Sender: No OFD packet to send [14:33:45]OFD Sender: No OFD packet to send [14:33:50]OFD Sender: No OFD packet to send [14:33:52]accept exits with 8 [14:33:52]New connection [14:33:52]New thread 3066977636 created [14:33:52]Thread 3066834276 joined [14:33:52]Waiting for new connection... [14:33:52] Sock 8.Parse request [14:33:52]Sock 8.Check first char [14:33:52]Sock 8.First char is OK [14:33:52]request: POST /json_proto HTTP/1.0 [14:33:52]Method: POST [14:33:52]URL: /json_proto [14:33:52]Method is POST - this is cgi request [14:33:52]url: /json_proto [14:33:52]query_string will be loaded in cgi processing [14:33:52]execute_cgi json_proto POST (null) [14:33:52]execute_cgi path=json_proto method=POST [14:33:52]POST find Content-Length [14:33:52]Host: 172.17.63.3:8080 [14:33:52]Content-Length: 676 [14:33:52]Content-Type: application/json [14:33:52] [14:33:52]POST finish read [14:33:52]Found Content-Length = 676 [14:33:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99423", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.100, "sum" : 140.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 140.00, "total" : 140.00, "payments": [ { "type": 0, "sum" : 140.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:33:52]execute_script... [14:33: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)99423", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.100, "sum" : 140.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 140.00, "total" : 140.00, "payments": [ { "type": 0, "sum" : 140.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:33:52]POST & json_proto [14:33:52]process_json_proto [14:33:52]json parsed OK: [14:33:52]protocol is kg_v1.0 [14:33:52]action value=close_receipt [14:33:52]process_action close_receipt [14:33:52]cmd_close_receipt [14:33:52]MH_GetDate [14:33:52]Write to MH i2c: F0 00 00 6A 5E B7 [14:33:52]Write i2c OK [14:33:52]MH_I2C_Read... [14:33:52]Read from MH i2c: F0 [14:33:52]MH_I2C_Read... [14:33:52]Read from MH i2c: F0 09 00 [14:33:52]MH_I2C_Read... [14:33:52]Read from MH i2c: F0 09 00 6A 5E 00 56 4F 1E 67 50 D1 6C 64 DB [14:33:52]GetLastDocTimeStamp 1730039573 [14:33:52]current date 1730039638 [14:33:52]FM_GetShiftState [14:33:52]SAM_PROTO_GetShiftState [14:33:52]wFMCommunicate request_size=4 [14:33:52]MH_SAM_APDU [14:33:52]CAPDU: 80 13 01 00 [14:33:52]Write to MH i2c: E2 08 00 6B 5E 80 13 01 00 00 00 00 00 46 [14:33:52]Write i2c OK [14:33:52]MH_I2C_Read... [14:33:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:52]Read from MH i2c: E2 [14:33:52]MH_I2C_Read... [14:33:52]Read from MH i2c: E2 0E 00 [14:33:52]MH_I2C_Read... [14:33:52]Read from MH i2c: E2 0E 00 6B 5E 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 13 [14:33:52]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [14:33:52]wFMCommunicate OK [14:33:52]SAM_PROTO_GetShiftState done [14:33:52]FM_GetShiftState done [14:33:52]opened in 1729989044 [14:33:52]opened+sec_in_day 1730075444 [14:33:52]quantity*price = 14049 [14:33:52]sum+1 = 14050 [14:33:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 140.00 Внесено: 140.00 СДАЧА: 0.00 НСП 1% : 1.24 НДС 12% : 14.92 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 160 27.10.2024 14:33 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156609 ФПД: 216719805156722 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T143358&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156609&fm=216719805156722&tin=02508201610067®Number=0000000000091693&sum=14000 [14:33:53]StoreToDocumentArchive [14:33:53]shift 537 fd 156609 [14:33:53]save to /storage/0537/doc_00156609 [14:33:53]save last doc name /storage/0537/doc_00156609 to /storage/kkm_last_doc_name [14:33:53]save OK [14:33:53]Clear old archive folders... [14:33:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:33:53]tlvbuf is 0183E0D0 [14:33:53]SAM_PROTO_ClearQueue [14:33:53]wFMCommunicate request_size=4 [14:33:53]MH_SAM_APDU [14:33:53]CAPDU: 80 09 00 00 [14:33:53]Write to MH i2c: E2 08 00 78 5E 80 09 00 00 00 00 00 00 48 [14:33:53]Write i2c OK [14:33:53]MH_I2C_Read... [14:33:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:33:53]Read from MH i2c: E2 [14:33:53]MH_I2C_Read... [14:33:53]Read from MH i2c: E2 03 00 [14:33:53]MH_I2C_Read... [14:33:53]Read from MH i2c: E2 03 00 78 5E 00 90 00 4A [14:33:53]RAPDU: 90 00 [14:33:53]wFMCommunicate OK [14:33:53]SAM_PROTO_ClearQueue done [14:33:53]KKMCreateOFDPacket [14:33:53]OFDProtocolAddRootSTLVToBuf [14:33:53]FM_MakeSignedData [14:33:53]FM_MakeSignedData [14:33:53]SAM_PROTO_SignData [14:33:53]wFMCommunicate request_size=4 [14:33:53]MH_SAM_APDU [14:33:53]CAPDU: 80 0D 01 02 [14:33:53]Write to MH i2c: E2 08 00 79 5E 80 0D 01 02 00 00 00 00 50 [14:33:53]Write i2c OK [14:33:53]MH_I2C_Read... [14:33:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:33:53]Read from MH i2c: E2 [14:33:53]MH_I2C_Read... [14:33:53]Read from MH i2c: E2 03 00 [14:33:53]MH_I2C_Read... [14:33:53]Read from MH i2c: E2 03 00 79 5E 00 90 00 4B [14:33:53]RAPDU: 90 00 [14:33:53]wFMCommunicate OK [14:33:53]wFMCommunicate request_size=255 [14:33:53]MH_SAM_APDU [14:33: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 34 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E1 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 56 4F 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C1 63 02 00 35 04 06 00 C5 [14:33:53]Write to MH i2c: E2 02 01 7A 5E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 34 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E1 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 56 4F 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C1 63 02 00 35 04 06 00 C5 00 00 DF [14:33:53]Write i2c OK [14:33:53]MH_I2C_Read... [14:33:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:53]Read from MH i2c: E2 [14:33:53]MH_I2C_Read... [14:33:53]Read from MH i2c: E2 03 00 [14:33:53]MH_I2C_Read... [14:33:53]Read from MH i2c: E2 03 00 7A 5E 00 90 00 4C [14:33:53]RAPDU: 90 00 [14:33:53]wFMCommunicate OK [14:33:53]wFMCommunicate request_size=10 [14:33:53]MH_SAM_APDU [14:33:53]CAPDU: 80 0D 02 02 05 1B 03 00 8D 72 [14:33:53]Write to MH i2c: E2 0D 00 7B 5E 80 0D 02 02 05 00 1B 03 00 8D 72 00 00 7A [14:33:53]Write i2c OK [14:33:53]MH_I2C_Read... [14:33:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:54]Read from MH i2c: E2 [14:33:54]MH_I2C_Read... [14:33:54]Read from MH i2c: E2 03 00 [14:33:54]MH_I2C_Read... [14:33:54]Read from MH i2c: E2 03 00 7B 5E 00 90 00 4D [14:33:54]RAPDU: 90 00 [14:33:54]wFMCommunicate OK [14:33:54]wFMCommunicate request_size=4 [14:33:54]MH_SAM_APDU [14:33:54]CAPDU: 80 0D 03 02 [14:33:54]Write to MH i2c: E2 08 00 7C 5E 80 0D 03 02 00 00 00 00 55 [14:33:54]Write i2c OK [14:33:54]MH_I2C_Read... [14:33:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:33:54]Read from MH i2c: E2 [14:33:54]MH_I2C_Read... [14:33:54]Read from MH i2c: E2 0B 00 [14:33:54]MH_I2C_Read... [14:33:54]Read from MH i2c: E2 0B 00 7C 5E 00 7D 6B 44 8F 36 41 90 83 90 00 9B [14:33:54]RAPDU: 7D 6B 44 8F 36 41 90 83 90 00 [14:33:54]wFMCommunicate OK [14:33:54]SAM_PROTO_SignData done [14:33:54]FM_MakeSignedData done [14:33:54]CreateOFDProtocolMessage [14:33:54]wFMCommunicate request_size=4 [14:33:54]MH_SAM_APDU [14:33:54]CAPDU: 80 11 00 00 [14:33:54]Write to MH i2c: E2 08 00 7D 5E 80 11 00 00 00 00 00 00 55 [14:33:54]Write i2c OK [14:33:54]MH_I2C_Read... [14:33:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:54]Read from MH i2c: E2 [14:33:54]MH_I2C_Read... [14:33:54]Read from MH i2c: E2 17 00 [14:33:54]MH_I2C_Read... [14:33:54]Read from MH i2c: E2 17 00 7D 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 AA [14:33:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:33:54]wFMCommunicate OK [14:33:54]CreateOFDProtocolMessage done [14:33:54]OFDSenderStorePacket 156609 [14:33:54]StoreOFDPacket docnum=156609 [14:33:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 57 B7 07 01 E0 AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 34 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E1 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 56 4F 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C1 63 02 00 35 04 06 00 C5 1B 03 00 8D 72 7D 6B 44 8F 36 41 90 83 [14:33:54]CheckFolder [14:33:54]dirname=/storage/ofd_packets [14:33:54]CheckFolder done [14:33:54]ProducePacketName [14:33:54]name=ofd_packets/00156609 [14:33:54]NVStorageSaveData ofd_packets/00156609 [14:33:54]File name is /storage/ofd_packets/00156609 [14:33:54]Write 301 bytes [14:33:54]NVStorageSaveData done [14:33:54]OFDSenderStorePacket done [14:33:54]KKMCreateOFDPacket done [14:33:54]NVStorageSaveData kkm_last_timestamp [14:33:54]File name is /storage/kkm_last_timestamp [14:33:54]Write 4 bytes [14:33:54]NVStorageSaveData done [14:33:54]ExternCall_PrintAddStr [14:33:54]wPrintStart [14:33:54]Write to MH i2c: 01 00 00 7E 5E DC [14:33:54]Write i2c OK [14:33:54]MH_I2C_Read... [14:33:54]Read from MH i2c: 01 [14:33:54]MH_I2C_Read... [14:33:54]Read from MH i2c: 01 07 00 [14:33:54]MH_I2C_Read... [14:33:54]Read from MH i2c: 01 07 00 7E 5E 00 00 00 00 00 FF 0F F1 [14:33:54]RasterBufferAndPrint [14:33:54]line Счет N : (1)99423 [14:33:54]line ИНН: 02508201610067 [14:33:54]line Контрольно-Кассовый Чек [14:33:54]line ПРОДАЖА [14:33:54]line ТРК (МРК, ГНК) : 11 [14:33:54]line Товар: 2710124130 [14:33:54]line Аи-92-К-5 [14:33:54]line 2.100 * 66.90 [14:33:54]line = 140.49 [14:33:54]line НДС 12% НСП 1% [14:33:54]line > о реализуемом товаре [14:33:54]line ОКРУГЛЕНИЕ: -0.49 [14:33:54]line ИТОГО: 140.00 [14:33:54]line Внесено: 140.00 [14:33:54]line СДАЧА: 0.00 [14:33:54]line НСП 1% : 1.24 [14:33:54]line НДС 12% : 14.92 [14:33:54]line Наличными: 140.00 [14:33:54]line Безнал.: 0.00 [14:33:54]line Место: АЗС № 143 "Партнер Нефть" [14:33:54]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [14:33:54]line СНО: Общий режим [14:33:54]line Чек 160 27.10.2024 14:33 [14:33:54]line Смена: 537 ФФД: 1.0 [14:33:54]line ЗНМ: 0300000096 [14:33:54]line РНМ: 0000000000091693 [14:33:54]line Версия ККМ: 001 [14:33:54]line ФМ: 0000000000871792 [14:33:54]line ФД: 156609 [14:33:54]line ФПД: 216719805156722 [14:33:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T143358&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156609&fm=216719805156722&tin=02508201610067®Number=0000000000091693&sum=14000 [14:33:54]OFD Sender: Processing packet 156609 [packets to send 31, broken 30] [14:33:54]ProducePacketName [14:33:54]name=ofd_packets/00156609 [14:33:54]OFD Sender: To server: pG, [14:33:54]CommunicateWithHost lk.salyk.kg:30040 [14:33:54]ConnectInit lk.salyk.kg [14:33:54]written 0, free lines is 4095 [14:33:54]Connected sock=9 [14:33:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 57 B7 07 01 E0 AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 34 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E1 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 56 4F 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C1 63 02 00 35 04 06 00 C5 1B 03 00 8D 72 7D 6B 44 8F 36 41 90 83 [14:33:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 46 47 47 00 10 A5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C1 63 02 00 F4 03 04 00 C5 F4 1D 67 B6 04 01 00 00 20 C5 1E 9C 32 43 9F 08 [14:33:54]CommunicateWithHost err = 0 [14:33:54]CheckOFDResponse [14:33:54]1017 (14) - 77093643461234 [14:33:54]1041 (16) - 0000000000871792 [14:33:54]1040 (4) - 156609 [14:33:54]1012 (4) - 27.10.2024 08:07 [14:33:54]1206 (1) - 0 [14:33:54]OFD Sender: Remove packet 156609 [14:33:54]ProducePacketName [14:33:54]name=ofd_packets/00156609 [14:33:54]NVStorageDeleteData [14:33:54]Write to MH i2c: 01 00 00 A9 5E 07 [14:33:54]Write i2c OK [14:33:54]MH_I2C_Read... [14:33:54]Read from MH i2c: 01 [14:33:54]MH_I2C_Read... [14:33:54]Read from MH i2c: 01 07 00 [14:33:54]MH_I2C_Read... [14:33:54]Read from MH i2c: 01 07 00 A9 5E 00 00 00 00 00 E6 0C 00 [14:33:54]RasterBufferAndPrint [14:33:54]line [14:33:54]line [14:33:54]line [14:33:54]line [14:33:54]line [14:33:54]written 0, free lines is 3308 [14:33:54]process_action close_receipt done [14:33:54]requested_data is exist [14:33:54]produce_requested_data [14:33:54]requested_item fm.sn is exist - process it [14:33:54]wFMCommunicate request_size=4 [14:33:54]MH_SAM_APDU [14:33:54]CAPDU: 80 11 00 00 [14:33:54]Write to MH i2c: E2 08 00 B0 5E 80 11 00 00 00 00 00 00 88 [14:33:54]Write i2c OK [14:33:54]MH_I2C_Read... [14:33:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:55]Read from MH i2c: E2 [14:33:55]MH_I2C_Read... [14:33:55]Read from MH i2c: E2 17 00 [14:33:55]MH_I2C_Read... [14:33:55]Read from MH i2c: E2 17 00 B0 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 DD [14:33:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:33:55]wFMCommunicate OK [14:33:55]requested_item fd.num is exist - process it [14:33:55]SAM_PROTO_GetFieldsCounters [14:33:55]wFMCommunicate request_size=4 [14:33:55]MH_SAM_APDU [14:33:55]CAPDU: 80 13 00 00 [14:33:55]Write to MH i2c: E2 08 00 B1 5E 80 13 00 00 00 00 00 00 8B [14:33:55]Write i2c OK [14:33:55]MH_I2C_Read... [14:33:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:33:55]Read from MH i2c: E2 [14:33:55]MH_I2C_Read... [14:33:55]Read from MH i2c: E2 62 00 [14:33:55]MH_I2C_Read... [14:33:55]Read from MH i2c: E2 62 00 B1 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 C1 63 02 00 0E 04 04 00 19 02 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 D2 [14:33:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 C1 63 02 00 0E 04 04 00 19 02 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 [14:33:55]wFMCommunicate OK [14:33:55]SAM_PROTO_GetFieldsCounters done [14:33:55]requested_item shift.num is exist - process it [14:33:55]requested_item shift.opened is exist - process it [14:33:55]req_shift_opened [14:33:55]FM_GetShiftState [14:33:55]SAM_PROTO_GetShiftState [14:33:55]wFMCommunicate request_size=4 [14:33:55]MH_SAM_APDU [14:33:55]CAPDU: 80 13 01 00 [14:33:55]Write to MH i2c: E2 08 00 B2 5E 80 13 01 00 00 00 00 00 8D [14:33:55]Write i2c OK [14:33:55]MH_I2C_Read... [14:33:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:55]Read from MH i2c: E2 [14:33:55]MH_I2C_Read... [14:33:55]Read from MH i2c: E2 0E 00 [14:33:55]MH_I2C_Read... [14:33:55]Read from MH i2c: E2 0E 00 B2 5E 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 5A [14:33:55]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [14:33:55]wFMCommunicate OK [14:33:55]SAM_PROTO_GetShiftState done [14:33:55]FM_GetShiftState done [14:33:55]req_shift_opened done [14:33:55]requested_item shift.open_date is exist - process it [14:33:55]req_shift_open_date [14:33:55]req_shift_open_date done [14:33:55]produce_requested_data done [14:33:55]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156609,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [14:33:55]process_action_free close_receipt [14:33:55]json_value_free [14:33:55]json_value_free done [14:33:55]process_json_proto returns [14:33:55]Send response to host [14:33:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156609,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [14:33:55]free response buf [14:33:55]execute_script done [14:33:55]execute_script returns [14:33:55]free content buf [14:33:55]Sock 8.Close socket [14:33:55]Sock 8.Thread stoped [14:33:55]OFD Sender: No OFD packet to send [14:34:00]OFD Sender: No OFD packet to send [14:34:05]OFD Sender: No OFD packet to send [14:34:10]OFD Sender: No OFD packet to send [14:34:11]accept exits with 10 [14:34:11]New connection [14:34:11]New thread 3066834276 created [14:34:11]Thread 3066977636 joined [14:34:11]Waiting for new connection... [14:34:11] Sock 10.Parse request [14:34:11]Sock 10.Check first char [14:34:11]Sock 10.First char is OK [14:34:11]request: POST /json_proto HTTP/1.0 [14:34:11]Method: POST [14:34:11]URL: /json_proto [14:34:11]Method is POST - this is cgi request [14:34:11]url: /json_proto [14:34:11]query_string will be loaded in cgi processing [14:34:11]execute_cgi json_proto POST (null) [14:34:11]execute_cgi path=json_proto method=POST [14:34:11]POST find Content-Length [14:34:11]Host: 172.17.63.3:8080 [14:34:11]Content-Length: 676 [14:34:11]Content-Type: application/json [14:34:11] [14:34:11]POST finish read [14:34:11]Found Content-Length = 676 [14:34:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99424", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:34:11]execute_script... [14:34: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)99424", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:34:11]POST & json_proto [14:34:11]process_json_proto [14:34:11]json parsed OK: [14:34:11]protocol is kg_v1.0 [14:34:11]action value=close_receipt [14:34:11]process_action close_receipt [14:34:11]cmd_close_receipt [14:34:11]MH_GetDate [14:34:11]Write to MH i2c: F0 00 00 B3 5E 00 [14:34:11]Write i2c OK [14:34:11]MH_I2C_Read... [14:34:11]Read from MH i2c: F0 [14:34:11]MH_I2C_Read... [14:34:11]Read from MH i2c: F0 09 00 [14:34:11]MH_I2C_Read... [14:34:11]Read from MH i2c: F0 09 00 B3 5E 00 69 4F 1E 67 50 D1 6C 64 37 [14:34:11]GetLastDocTimeStamp 1730039638 [14:34:11]current date 1730039657 [14:34:11]FM_GetShiftState [14:34:11]SAM_PROTO_GetShiftState [14:34:11]wFMCommunicate request_size=4 [14:34:11]MH_SAM_APDU [14:34:11]CAPDU: 80 13 01 00 [14:34:11]Write to MH i2c: E2 08 00 B4 5E 80 13 01 00 00 00 00 00 8F [14:34:11]Write i2c OK [14:34:11]MH_I2C_Read... [14:34:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:34:11]Read from MH i2c: E2 [14:34:11]MH_I2C_Read... [14:34:11]Read from MH i2c: E2 0E 00 [14:34:11]MH_I2C_Read... [14:34:11]Read from MH i2c: E2 0E 00 B4 5E 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 5C [14:34:11]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [14:34:11]wFMCommunicate OK [14:34:11]SAM_PROTO_GetShiftState done [14:34:11]FM_GetShiftState done [14:34:11]opened in 1729989044 [14:34:11]opened+sec_in_day 1730075444 [14:34:11]quantity*price = 40006 [14:34:11]sum+1 = 40007 [14:34:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 161 27.10.2024 14:34 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156610 ФПД: 62440054064741 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T143417&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156610&fm=62440054064741&tin=02508201610067®Number=0000000000091693&sum=40000 [14:34:12]StoreToDocumentArchive [14:34:12]shift 537 fd 156610 [14:34:12]save to /storage/0537/doc_00156610 [14:34:12]save last doc name /storage/0537/doc_00156610 to /storage/kkm_last_doc_name [14:34:12]save OK [14:34:12]Clear old archive folders... [14:34:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:34:12]tlvbuf is 016A9920 [14:34:12]SAM_PROTO_ClearQueue [14:34:12]wFMCommunicate request_size=4 [14:34:12]MH_SAM_APDU [14:34:12]CAPDU: 80 09 00 00 [14:34:12]Write to MH i2c: E2 08 00 C1 5E 80 09 00 00 00 00 00 00 91 [14:34:12]Write i2c OK [14:34:12]MH_I2C_Read... [14:34:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:34:12]Read from MH i2c: E2 [14:34:12]MH_I2C_Read... [14:34:12]Read from MH i2c: E2 03 00 [14:34:12]MH_I2C_Read... [14:34:12]Read from MH i2c: E2 03 00 C1 5E 00 90 00 93 [14:34:12]RAPDU: 90 00 [14:34:12]wFMCommunicate OK [14:34:12]SAM_PROTO_ClearQueue done [14:34:12]KKMCreateOFDPacket [14:34:12]OFDProtocolAddRootSTLVToBuf [14:34:12]FM_MakeSignedData [14:34:12]FM_MakeSignedData [14:34:12]SAM_PROTO_SignData [14:34:12]wFMCommunicate request_size=4 [14:34:12]MH_SAM_APDU [14:34:12]CAPDU: 80 0D 01 02 [14:34:12]Write to MH i2c: E2 08 00 C2 5E 80 0D 01 02 00 00 00 00 99 [14:34:12]Write i2c OK [14:34:12]MH_I2C_Read... [14:34:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:34:12]Read from MH i2c: E2 [14:34:12]MH_I2C_Read... [14:34:13]Read from MH i2c: E2 03 00 [14:34:13]MH_I2C_Read... [14:34:13]Read from MH i2c: E2 03 00 C2 5E 00 90 00 94 [14:34:13]RAPDU: 90 00 [14:34:13]wFMCommunicate OK [14:34:13]wFMCommunicate request_size=255 [14:34:13]MH_SAM_APDU [14:34:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 69 4F 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C2 63 02 00 35 04 06 00 38 [14:34:13]Write to MH i2c: E2 02 01 C3 5E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 69 4F 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C2 63 02 00 35 04 06 00 38 00 00 54 [14:34:13]Write i2c OK [14:34:13]MH_I2C_Read... [14:34:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:34:13]Read from MH i2c: E2 [14:34:13]MH_I2C_Read... [14:34:13]Read from MH i2c: E2 03 00 [14:34:13]MH_I2C_Read... [14:34:13]Read from MH i2c: E2 03 00 C3 5E 00 90 00 95 [14:34:13]RAPDU: 90 00 [14:34:13]wFMCommunicate OK [14:34:13]wFMCommunicate request_size=10 [14:34:13]MH_SAM_APDU [14:34:13]CAPDU: 80 0D 02 02 05 C9 F5 3E 06 65 [14:34:13]Write to MH i2c: E2 0D 00 C4 5E 80 0D 02 02 05 00 C9 F5 3E 06 65 00 00 0D [14:34:13]Write i2c OK [14:34:13]MH_I2C_Read... [14:34:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:34:13]Read from MH i2c: E2 [14:34:13]MH_I2C_Read... [14:34:13]Read from MH i2c: E2 03 00 [14:34:13]MH_I2C_Read... [14:34:13]Read from MH i2c: E2 03 00 C4 5E 00 90 00 96 [14:34:13]RAPDU: 90 00 [14:34:13]wFMCommunicate OK [14:34:13]wFMCommunicate request_size=4 [14:34:13]MH_SAM_APDU [14:34:13]CAPDU: 80 0D 03 02 [14:34:13]Write to MH i2c: E2 08 00 C5 5E 80 0D 03 02 00 00 00 00 9E [14:34:13]Write i2c OK [14:34:13]MH_I2C_Read... [14:34:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:34:13]Read from MH i2c: E2 [14:34:13]MH_I2C_Read... [14:34:13]Read from MH i2c: E2 0B 00 [14:34:13]MH_I2C_Read... [14:34:13]Read from MH i2c: E2 0B 00 C5 5E 00 04 97 8D 43 CA 89 D7 30 90 00 64 [14:34:13]RAPDU: 04 97 8D 43 CA 89 D7 30 90 00 [14:34:13]wFMCommunicate OK [14:34:13]SAM_PROTO_SignData done [14:34:13]FM_MakeSignedData done [14:34:13]CreateOFDProtocolMessage [14:34:13]wFMCommunicate request_size=4 [14:34:13]MH_SAM_APDU [14:34:13]CAPDU: 80 11 00 00 [14:34:13]Write to MH i2c: E2 08 00 C6 5E 80 11 00 00 00 00 00 00 9E [14:34:13]Write i2c OK [14:34:13]MH_I2C_Read... [14:34:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:34:13]Read from MH i2c: E2 [14:34:13]MH_I2C_Read... [14:34:13]Read from MH i2c: E2 17 00 [14:34:13]MH_I2C_Read... [14:34:13]Read from MH i2c: E2 17 00 C6 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 F3 [14:34:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:34:13]wFMCommunicate OK [14:34:13]CreateOFDProtocolMessage done [14:34:13]OFDSenderStorePacket 156610 [14:34:13]StoreOFDPacket docnum=156610 [14:34:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 8A E7 07 01 F9 E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 69 4F 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C2 63 02 00 35 04 06 00 38 C9 F5 3E 06 65 04 97 8D 43 CA 89 D7 30 [14:34:13]CheckFolder [14:34:13]dirname=/storage/ofd_packets [14:34:13]CheckFolder done [14:34:13]ProducePacketName [14:34:13]name=ofd_packets/00156610 [14:34:13]NVStorageSaveData ofd_packets/00156610 [14:34:13]File name is /storage/ofd_packets/00156610 [14:34:13]Write 301 bytes [14:34:13]NVStorageSaveData done [14:34:13]OFDSenderStorePacket done [14:34:13]KKMCreateOFDPacket done [14:34:13]NVStorageSaveData kkm_last_timestamp [14:34:13]File name is /storage/kkm_last_timestamp [14:34:13]Write 4 bytes [14:34:13]NVStorageSaveData done [14:34:13]ExternCall_PrintAddStr [14:34:13]wPrintStart [14:34:13]Write to MH i2c: 01 00 00 C7 5E 25 [14:34:13]Write i2c OK [14:34:13]MH_I2C_Read... [14:34:13]Read from MH i2c: 01 [14:34:13]MH_I2C_Read... [14:34:13]Read from MH i2c: 01 07 00 [14:34:13]MH_I2C_Read... [14:34:13]Read from MH i2c: 01 07 00 C7 5E 00 00 00 00 00 FF 0F 3A [14:34:13]RasterBufferAndPrint [14:34:13]line Счет N : (1)99424 [14:34:13]line ИНН: 02508201610067 [14:34:13]line Контрольно-Кассовый Чек [14:34:13]line ПРОДАЖА [14:34:13]line ТРК (МРК, ГНК) : 21 [14:34:13]line Товар: 2710124130 [14:34:13]line Аи-92-К-5 [14:34:13]line 5.980 * 66.90 [14:34:13]line = 400.06 [14:34:13]line НДС 12% НСП 1% [14:34:13]line > о реализуемом товаре [14:34:13]line ОКРУГЛЕНИЕ: -0.06 [14:34:13]line ИТОГО: 400.00 [14:34:13]line Внесено: 400.00 [14:34:13]line СДАЧА: 0.00 [14:34:13]line НСП 1% : 3.54 [14:34:13]line НДС 12% : 42.48 [14:34:13]line Наличными: 400.00 [14:34:13]line Безнал.: 0.00 [14:34:13]line Место: АЗС № 143 "Партнер Нефть" [14:34:13]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [14:34:13]line СНО: Общий режим [14:34:13]line Чек 161 27.10.2024 14:34 [14:34:13]line Смена: 537 ФФД: 1.0 [14:34:13]line ЗНМ: 0300000096 [14:34:13]line РНМ: 0000000000091693 [14:34:13]line Версия ККМ: 001 [14:34:13]line ФМ: 0000000000871792 [14:34:13]line ФД: 156610 [14:34:13]line ФПД: 62440054064741 [14:34:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T143417&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156610&fm=62440054064741&tin=02508201610067®Number=0000000000091693&sum=40000 [14:34:13]OFD Sender: Processing packet 156610 [packets to send 31, broken 30] [14:34:13]ProducePacketName [14:34:13]name=ofd_packets/00156610 [14:34:13]OFD Sender: To server: pG, [14:34:13]CommunicateWithHost lk.salyk.kg:30040 [14:34:13]ConnectInit lk.salyk.kg [14:34:13]Connected sock=11 [14:34:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 8A E7 07 01 F9 E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 69 4F 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C2 63 02 00 35 04 06 00 38 C9 F5 3E 06 65 04 97 8D 43 CA 89 D7 30 [14:34:13]written 0, free lines is 4095 [14:34:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 79 50 47 00 E4 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C2 63 02 00 F4 03 04 00 D9 F4 1D 67 B6 04 01 00 00 0E AB 20 86 23 E0 C2 14 [14:34:13]CommunicateWithHost err = 0 [14:34:13]CheckOFDResponse [14:34:13]1017 (14) - 77093643461234 [14:34:13]1041 (16) - 0000000000871792 [14:34:13]1040 (4) - 156610 [14:34:13]1012 (4) - 27.10.2024 08:07 [14:34:13]1206 (1) - 0 [14:34:13]OFD Sender: Remove packet 156610 [14:34:13]ProducePacketName [14:34:13]name=ofd_packets/00156610 [14:34:13]NVStorageDeleteData [14:34:14]Write to MH i2c: 01 00 00 F2 5E 50 [14:34:14]Write i2c OK [14:34:14]MH_I2C_Read... [14:34:14]Read from MH i2c: 01 [14:34:14]MH_I2C_Read... [14:34:14]Read from MH i2c: 01 07 00 [14:34:14]MH_I2C_Read... [14:34:14]Read from MH i2c: 01 07 00 F2 5E 00 00 00 00 00 E1 0C 44 [14:34:14]RasterBufferAndPrint [14:34:14]line [14:34:14]line [14:34:14]line [14:34:14]line [14:34:14]line [14:34:14]written 0, free lines is 3303 [14:34:14]process_action close_receipt done [14:34:14]requested_data is exist [14:34:14]produce_requested_data [14:34:14]requested_item fm.sn is exist - process it [14:34:14]wFMCommunicate request_size=4 [14:34:14]MH_SAM_APDU [14:34:14]CAPDU: 80 11 00 00 [14:34:14]Write to MH i2c: E2 08 00 F9 5E 80 11 00 00 00 00 00 00 D1 [14:34:14]Write i2c OK [14:34:14]MH_I2C_Read... [14:34:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:34:14]Read from MH i2c: E2 [14:34:14]MH_I2C_Read... [14:34:14]Read from MH i2c: E2 17 00 [14:34:14]MH_I2C_Read... [14:34:14]Read from MH i2c: E2 17 00 F9 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 26 [14:34:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:34:14]wFMCommunicate OK [14:34:14]requested_item fd.num is exist - process it [14:34:14]SAM_PROTO_GetFieldsCounters [14:34:14]wFMCommunicate request_size=4 [14:34:14]MH_SAM_APDU [14:34:14]CAPDU: 80 13 00 00 [14:34:14]Write to MH i2c: E2 08 00 FA 5E 80 13 00 00 00 00 00 00 D4 [14:34:14]Write i2c OK [14:34:14]MH_I2C_Read... [14:34:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:34:14]Read from MH i2c: E2 [14:34:14]MH_I2C_Read... [14:34:14]Read from MH i2c: E2 62 00 [14:34:14]MH_I2C_Read... [14:34:14]Read from MH i2c: E2 62 00 FA 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 C2 63 02 00 0E 04 04 00 19 02 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 1F [14: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 C2 63 02 00 0E 04 04 00 19 02 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 [14:34:14]wFMCommunicate OK [14:34:14]SAM_PROTO_GetFieldsCounters done [14:34:14]requested_item shift.num is exist - process it [14:34:14]requested_item shift.opened is exist - process it [14:34:14]req_shift_opened [14:34:14]FM_GetShiftState [14:34:14]SAM_PROTO_GetShiftState [14:34:14]wFMCommunicate request_size=4 [14:34:14]MH_SAM_APDU [14:34:14]CAPDU: 80 13 01 00 [14:34:14]Write to MH i2c: E2 08 00 FB 5E 80 13 01 00 00 00 00 00 D6 [14:34:14]Write i2c OK [14:34:14]MH_I2C_Read... [14:34:14]OFD Sender: No OFD packet to send [14:34:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:34:14]Read from MH i2c: E2 [14:34:14]MH_I2C_Read... [14:34:14]Read from MH i2c: E2 0E 00 [14:34:14]MH_I2C_Read... [14:34:14]Read from MH i2c: E2 0E 00 FB 5E 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 A3 [14:34:14]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [14:34:14]wFMCommunicate OK [14:34:14]SAM_PROTO_GetShiftState done [14:34:14]FM_GetShiftState done [14:34:14]req_shift_opened done [14:34:14]requested_item shift.open_date is exist - process it [14:34:14]req_shift_open_date [14:34:14]req_shift_open_date done [14:34:14]produce_requested_data done [14:34:14]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156610,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [14:34:14]process_action_free close_receipt [14:34:14]json_value_free [14:34:14]json_value_free done [14:34:14]process_json_proto returns [14:34:14]Send response to host [14:34:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156610,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [14:34:14]free response buf [14:34:14]execute_script done [14:34:14]execute_script returns [14:34:14]free content buf [14:34:14]Sock 10.Close socket [14:34:14]Sock 10.Thread stoped [14:34:19]OFD Sender: No OFD packet to send [14:34:24]OFD Sender: No OFD packet to send [14:34:29]OFD Sender: No OFD packet to send [14:34:34]OFD Sender: No OFD packet to send [14:34:39]OFD Sender: No OFD packet to send [14:34:44]OFD Sender: No OFD packet to send [14:34:49]OFD Sender: No OFD packet to send [14:34:54]OFD Sender: No OFD packet to send [14:34:59]OFD Sender: No OFD packet to send [14:35:04]OFD Sender: No OFD packet to send [14:35:09]OFD Sender: No OFD packet to send [14:35:14]OFD Sender: No OFD packet to send [14:35:19]OFD Sender: No OFD packet to send [14:35:24]OFD Sender: No OFD packet to send [14:35:29]OFD Sender: No OFD packet to send [14:35:34]OFD Sender: No OFD packet to send [14:35:37]accept exits with 8 [14:35:37]New connection [14:35:37]New thread 3066977636 created [14:35:37]Thread 3066834276 joined [14:35:37]Waiting for new connection... [14:35:37] Sock 8.Parse request [14:35:37]Sock 8.Check first char [14:35:37]Sock 8.First char is OK [14:35:37]request: POST /json_proto HTTP/1.0 [14:35:37]Method: POST [14:35:37]URL: /json_proto [14:35:37]Method is POST - this is cgi request [14:35:37]url: /json_proto [14:35:37]query_string will be loaded in cgi processing [14:35:37]execute_cgi json_proto POST (null) [14:35:37]execute_cgi path=json_proto method=POST [14:35:37]POST find Content-Length [14:35:37]Host: 172.17.63.3:8080 [14:35:37]Content-Length: 676 [14:35:37]Content-Type: application/json [14:35:37] [14:35:37]POST finish read [14:35:37]Found Content-Length = 676 [14:35:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99425", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:35:37]execute_script... [14: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)99425", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:35:37]POST & json_proto [14:35:37]process_json_proto [14:35:37]json parsed OK: [14:35:37]protocol is kg_v1.0 [14:35:37]action value=close_receipt [14:35:37]process_action close_receipt [14:35:37]cmd_close_receipt [14:35:37]MH_GetDate [14:35:37]Write to MH i2c: F0 00 00 FC 5E 49 [14:35:37]Write i2c OK [14:35:37]MH_I2C_Read... [14:35:37]Read from MH i2c: F0 [14:35:37]MH_I2C_Read... [14:35:37]Read from MH i2c: F0 09 00 [14:35:37]MH_I2C_Read... [14:35:37]Read from MH i2c: F0 09 00 FC 5E 00 BF 4F 1E 67 50 D1 6C 64 D6 [14:35:37]GetLastDocTimeStamp 1730039657 [14:35:37]current date 1730039743 [14:35:37]FM_GetShiftState [14:35:37]SAM_PROTO_GetShiftState [14:35:37]wFMCommunicate request_size=4 [14:35:37]MH_SAM_APDU [14:35:37]CAPDU: 80 13 01 00 [14:35:37]Write to MH i2c: E2 08 00 FD 5E 80 13 01 00 00 00 00 00 D8 [14:35:37]Write i2c OK [14:35:37]MH_I2C_Read... [14:35:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:35:37]Read from MH i2c: E2 [14:35:37]MH_I2C_Read... [14:35:37]Read from MH i2c: E2 0E 00 [14:35:37]MH_I2C_Read... [14:35:37]Read from MH i2c: E2 0E 00 FD 5E 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 A5 [14:35:37]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [14:35:37]wFMCommunicate OK [14:35:37]SAM_PROTO_GetShiftState done [14:35:37]FM_GetShiftState done [14:35:37]opened in 1729989044 [14:35:37]opened+sec_in_day 1730075444 [14:35:37]quantity*price = 20003 [14:35:37]sum+1 = 20004 [14:35:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 162 27.10.2024 14:35 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156611 ФПД: 98860670302234 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T143543&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156611&fm=98860670302234&tin=02508201610067®Number=0000000000091693&sum=20000 [14:35:38]StoreToDocumentArchive [14:35:38]shift 537 fd 156611 [14:35:38]save to /storage/0537/doc_00156611 [14:35:38]save last doc name /storage/0537/doc_00156611 to /storage/kkm_last_doc_name [14:35:38]save OK [14:35:38]Clear old archive folders... [14:35:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:35:38]tlvbuf is 01726A20 [14:35:38]SAM_PROTO_ClearQueue [14:35:38]wFMCommunicate request_size=4 [14:35:38]MH_SAM_APDU [14:35:38]CAPDU: 80 09 00 00 [14:35:38]Write to MH i2c: E2 08 00 0A 5F 80 09 00 00 00 00 00 00 DB [14:35:38]Write i2c OK [14:35:38]MH_I2C_Read... [14:35:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:35:38]Read from MH i2c: E2 [14:35:38]MH_I2C_Read... [14:35:38]Read from MH i2c: E2 03 00 [14:35:38]MH_I2C_Read... [14:35:38]Read from MH i2c: E2 03 00 0A 5F 00 90 00 DD [14:35:38]RAPDU: 90 00 [14:35:38]wFMCommunicate OK [14:35:38]SAM_PROTO_ClearQueue done [14:35:38]KKMCreateOFDPacket [14:35:38]OFDProtocolAddRootSTLVToBuf [14:35:38]FM_MakeSignedData [14:35:38]FM_MakeSignedData [14:35:38]SAM_PROTO_SignData [14:35:38]wFMCommunicate request_size=4 [14:35:38]MH_SAM_APDU [14:35:38]CAPDU: 80 0D 01 02 [14:35:38]Write to MH i2c: E2 08 00 0B 5F 80 0D 01 02 00 00 00 00 E3 [14:35:38]Write i2c OK [14:35:38]MH_I2C_Read... [14:35:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:35:38]Read from MH i2c: E2 [14:35:38]MH_I2C_Read... [14:35:38]Read from MH i2c: E2 03 00 [14:35:38]MH_I2C_Read... [14:35:38]Read from MH i2c: E2 03 00 0B 5F 00 90 00 DE [14:35:38]RAPDU: 90 00 [14:35:38]wFMCommunicate OK [14:35:38]wFMCommunicate request_size=255 [14:35:38]MH_SAM_APDU [14:35:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 A2 00 00 00 F4 03 04 00 BF 4F 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C3 63 02 00 35 04 06 00 59 [14:35:38]Write to MH i2c: E2 02 01 0C 5F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 A2 00 00 00 F4 03 04 00 BF 4F 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C3 63 02 00 35 04 06 00 59 00 00 0A [14:35:38]Write i2c OK [14:35:38]MH_I2C_Read... [14:35:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:35:38]Read from MH i2c: E2 [14:35:38]MH_I2C_Read... [14:35:38]Read from MH i2c: E2 03 00 [14:35:38]MH_I2C_Read... [14:35:38]Read from MH i2c: E2 03 00 0C 5F 00 90 00 DF [14:35:38]RAPDU: 90 00 [14:35:38]wFMCommunicate OK [14:35:38]wFMCommunicate request_size=10 [14:35:38]MH_SAM_APDU [14:35:38]CAPDU: 80 0D 02 02 05 E9 CB 22 B8 1A [14:35:38]Write to MH i2c: E2 0D 00 0D 5F 80 0D 02 02 05 00 E9 CB 22 B8 1A 00 00 98 [14:35:38]Write i2c OK [14:35:38]MH_I2C_Read... [14:35:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:35:38]Read from MH i2c: E2 [14:35:38]MH_I2C_Read... [14:35:38]Read from MH i2c: E2 03 00 [14:35:38]MH_I2C_Read... [14:35:38]Read from MH i2c: E2 03 00 0D 5F 00 90 00 E0 [14:35:38]RAPDU: 90 00 [14:35:38]wFMCommunicate OK [14:35:38]wFMCommunicate request_size=4 [14:35:38]MH_SAM_APDU [14:35:38]CAPDU: 80 0D 03 02 [14:35:38]Write to MH i2c: E2 08 00 0E 5F 80 0D 03 02 00 00 00 00 E8 [14:35:38]Write i2c OK [14:35:38]MH_I2C_Read... [14:35:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:35:39]Read from MH i2c: E2 [14:35:39]MH_I2C_Read... [14:35:39]Read from MH i2c: E2 0B 00 [14:35:39]MH_I2C_Read... [14:35:39]Read from MH i2c: E2 0B 00 0E 5F 00 23 D5 40 73 42 ED 38 70 90 00 6B [14:35:39]RAPDU: 23 D5 40 73 42 ED 38 70 90 00 [14:35:39]wFMCommunicate OK [14:35:39]SAM_PROTO_SignData done [14:35:39]FM_MakeSignedData done [14:35:39]CreateOFDProtocolMessage [14:35:39]wFMCommunicate request_size=4 [14:35:39]MH_SAM_APDU [14:35:39]CAPDU: 80 11 00 00 [14:35:39]Write to MH i2c: E2 08 00 0F 5F 80 11 00 00 00 00 00 00 E8 [14:35:39]Write i2c OK [14:35:39]MH_I2C_Read... [14:35:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:35:39]Read from MH i2c: E2 [14:35:39]MH_I2C_Read... [14:35:39]Read from MH i2c: E2 17 00 [14:35:39]MH_I2C_Read... [14:35:39]Read from MH i2c: E2 17 00 0F 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 3D [14:35:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:35:39]wFMCommunicate OK [14:35:39]CreateOFDProtocolMessage done [14:35:39]OFDSenderStorePacket 156611 [14:35:39]StoreOFDPacket docnum=156611 [14:35:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 7A D4 07 01 01 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 A2 00 00 00 F4 03 04 00 BF 4F 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C3 63 02 00 35 04 06 00 59 E9 CB 22 B8 1A 23 D5 40 73 42 ED 38 70 [14:35:39]CheckFolder [14:35:39]dirname=/storage/ofd_packets [14:35:39]CheckFolder done [14:35:39]ProducePacketName [14:35:39]name=ofd_packets/00156611 [14:35:39]NVStorageSaveData ofd_packets/00156611 [14:35:39]File name is /storage/ofd_packets/00156611 [14:35:39]Write 301 bytes [14:35:39]NVStorageSaveData done [14:35:39]OFDSenderStorePacket done [14:35:39]KKMCreateOFDPacket done [14:35:39]NVStorageSaveData kkm_last_timestamp [14:35:39]File name is /storage/kkm_last_timestamp [14:35:39]Write 4 bytes [14:35:39]NVStorageSaveData done [14:35:39]ExternCall_PrintAddStr [14:35:39]wPrintStart [14:35:39]Write to MH i2c: 01 00 00 10 5F 6F [14:35:39]Write i2c OK [14:35:39]MH_I2C_Read... [14:35:39]Read from MH i2c: 01 [14:35:39]MH_I2C_Read... [14:35:39]Read from MH i2c: 01 07 00 [14:35:39]MH_I2C_Read... [14:35:39]Read from MH i2c: 01 07 00 10 5F 00 00 00 00 00 FF 0F 84 [14:35:39]RasterBufferAndPrint [14:35:39]line Счет N : (1)99425 [14:35:39]line ИНН: 02508201610067 [14:35:39]line Контрольно-Кассовый Чек [14:35:39]line ПРОДАЖА [14:35:39]line ТРК (МРК, ГНК) : 21 [14:35:39]line Товар: 2710124130 [14:35:39]line Аи-92-К-5 [14:35:39]line 2.990 * 66.90 [14:35:39]line = 200.03 [14:35:39]line НДС 12% НСП 1% [14:35:39]line > о реализуемом товаре [14:35:39]line ОКРУГЛЕНИЕ: -0.03 [14:35:39]line ИТОГО: 200.00 [14:35:39]line Внесено: 200.00 [14:35:39]line СДАЧА: 0.00 [14:35:39]line НСП 1% : 1.77 [14:35:39]line НДС 12% : 21.24 [14:35:39]line Наличными: 200.00 [14:35:39]line Безнал.: 0.00 [14:35:39]line Место: АЗС № 143 "Партнер Нефть" [14:35:39]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [14:35:39]line СНО: Общий режим [14:35:39]line Чек 162 27.10.2024 14:35 [14:35:39]line Смена: 537 ФФД: 1.0 [14:35:39]line ЗНМ: 0300000096 [14:35:39]line РНМ: 0000000000091693 [14:35:39]line Версия ККМ: 001 [14:35:39]line ФМ: 0000000000871792 [14:35:39]line ФД: 156611 [14:35:39]line ФПД: 98860670302234 [14:35:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T143543&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156611&fm=98860670302234&tin=02508201610067®Number=0000000000091693&sum=20000 [14:35:39]OFD Sender: Processing packet 156611 [packets to send 31, broken 30] [14:35:39]ProducePacketName [14:35:39]name=ofd_packets/00156611 [14:35:39]OFD Sender: To server: pG, [14:35:39]CommunicateWithHost lk.salyk.kg:30040 [14:35:39]ConnectInit lk.salyk.kg [14:35:39]written 0, free lines is 4095 [14:35:39]Connected sock=10 [14: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 31 37 39 32 0F 01 00 00 7A D4 07 01 01 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 A2 00 00 00 F4 03 04 00 BF 4F 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C3 63 02 00 35 04 06 00 59 E9 CB 22 B8 1A 23 D5 40 73 42 ED 38 70 [14:35:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 DD 7A 47 00 16 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 31 37 39 32 10 04 04 00 C3 63 02 00 F4 03 04 00 2E F5 1D 67 B6 04 01 00 00 7E 39 72 E1 2A 31 F6 EB [14:35:39]CommunicateWithHost err = 0 [14:35:39]CheckOFDResponse [14:35:39]1017 (14) - 77093643461234 [14:35:39]1041 (16) - 0000000000871792 [14:35:39]1040 (4) - 156611 [14:35:39]1012 (4) - 27.10.2024 08:09 [14:35:39]1206 (1) - 0 [14:35:39]OFD Sender: Remove packet 156611 [14:35:39]ProducePacketName [14:35:39]name=ofd_packets/00156611 [14:35:39]NVStorageDeleteData [14:35:39]Write to MH i2c: 01 00 00 3B 5F 9A [14:35:39]Write i2c OK [14:35:39]MH_I2C_Read... [14:35:39]Read from MH i2c: 01 [14:35:39]MH_I2C_Read... [14:35:39]Read from MH i2c: 01 07 00 [14:35:39]MH_I2C_Read... [14:35:39]Read from MH i2c: 01 07 00 3B 5F 00 00 00 00 00 EB 0C 98 [14:35:39]RasterBufferAndPrint [14:35:39]line [14:35:39]line [14:35:39]line [14:35:39]line [14:35:39]line [14:35:39]written 0, free lines is 3313 [14:35:39]process_action close_receipt done [14:35:39]requested_data is exist [14:35:39]produce_requested_data [14:35:39]requested_item fm.sn is exist - process it [14:35:39]wFMCommunicate request_size=4 [14:35:39]MH_SAM_APDU [14:35:39]CAPDU: 80 11 00 00 [14:35:39]Write to MH i2c: E2 08 00 42 5F 80 11 00 00 00 00 00 00 1B [14:35:39]Write i2c OK [14:35:39]MH_I2C_Read... [14:35:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:35:39]Read from MH i2c: E2 [14:35:39]MH_I2C_Read... [14:35:39]Read from MH i2c: E2 17 00 [14:35:39]MH_I2C_Read... [14:35:39]Read from MH i2c: E2 17 00 42 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 70 [14:35:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:35:39]wFMCommunicate OK [14:35:39]requested_item fd.num is exist - process it [14:35:39]SAM_PROTO_GetFieldsCounters [14:35:39]wFMCommunicate request_size=4 [14:35:39]MH_SAM_APDU [14:35:39]CAPDU: 80 13 00 00 [14:35:39]Write to MH i2c: E2 08 00 43 5F 80 13 00 00 00 00 00 00 1E [14:35:39]Write i2c OK [14:35:39]MH_I2C_Read... [14:35:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:35:40]Read from MH i2c: E2 [14:35:40]MH_I2C_Read... [14:35:40]Read from MH i2c: E2 62 00 [14:35:40]MH_I2C_Read... [14:35:40]Read from MH i2c: E2 62 00 43 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 C3 63 02 00 0E 04 04 00 19 02 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 6D [14:35:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 C3 63 02 00 0E 04 04 00 19 02 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 [14:35:40]wFMCommunicate OK [14:35:40]SAM_PROTO_GetFieldsCounters done [14:35:40]requested_item shift.num is exist - process it [14:35:40]requested_item shift.opened is exist - process it [14:35:40]req_shift_opened [14:35:40]FM_GetShiftState [14:35:40]SAM_PROTO_GetShiftState [14:35:40]wFMCommunicate request_size=4 [14:35:40]MH_SAM_APDU [14:35:40]CAPDU: 80 13 01 00 [14:35:40]Write to MH i2c: E2 08 00 44 5F 80 13 01 00 00 00 00 00 20 [14:35:40]Write i2c OK [14:35:40]MH_I2C_Read... [14:35:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:35:40]Read from MH i2c: E2 [14:35:40]MH_I2C_Read... [14:35:40]Read from MH i2c: E2 0E 00 [14:35:40]MH_I2C_Read... [14:35:40]Read from MH i2c: E2 0E 00 44 5F 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 ED [14:35:40]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [14:35:40]wFMCommunicate OK [14:35:40]SAM_PROTO_GetShiftState done [14:35:40]FM_GetShiftState done [14:35:40]req_shift_opened done [14:35:40]requested_item shift.open_date is exist - process it [14:35:40]req_shift_open_date [14:35:40]req_shift_open_date done [14:35:40]produce_requested_data done [14:35:40]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156611,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [14:35:40]process_action_free close_receipt [14:35:40]json_value_free [14:35:40]json_value_free done [14:35:40]process_json_proto returns [14:35:40]Send response to host [14:35:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156611,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [14:35:40]free response buf [14:35:40]execute_script done [14:35:40]execute_script returns [14:35:40]free content buf [14:35:40]Sock 8.Close socket [14:35:40]Sock 8.Thread stoped [14:35:40]OFD Sender: No OFD packet to send [14:35:45]OFD Sender: No OFD packet to send [14:35:50]OFD Sender: No OFD packet to send [14:35:55]OFD Sender: No OFD packet to send [14:36:00]OFD Sender: No OFD packet to send [14:36:05]OFD Sender: No OFD packet to send [14:36:10]OFD Sender: No OFD packet to send [14:36:15]OFD Sender: No OFD packet to send [14:36:20]OFD Sender: No OFD packet to send [14:36:25]OFD Sender: No OFD packet to send [14:36:30]OFD Sender: No OFD packet to send [14:36:35]OFD Sender: No OFD packet to send [14:36:40]OFD Sender: No OFD packet to send [14:36:45]OFD Sender: No OFD packet to send [14:36:50]OFD Sender: No OFD packet to send [14:36:55]OFD Sender: No OFD packet to send [14:37:00]OFD Sender: No OFD packet to send [14:37:05]OFD Sender: No OFD packet to send [14:37:10]OFD Sender: No OFD packet to send [14:37:15]OFD Sender: No OFD packet to send [14:37:20]OFD Sender: No OFD packet to send [14:37:25]OFD Sender: No OFD packet to send [14:37:30]OFD Sender: No OFD packet to send [14:37:35]OFD Sender: No OFD packet to send [14:37:40]OFD Sender: No OFD packet to send [14:37:45]OFD Sender: No OFD packet to send [14:37:50]OFD Sender: No OFD packet to send [14:37:55]OFD Sender: No OFD packet to send [14:38:00]OFD Sender: No OFD packet to send [14:38:05]OFD Sender: No OFD packet to send [14:38:10]OFD Sender: No OFD packet to send [14:38:15]OFD Sender: No OFD packet to send [14:38:20]OFD Sender: No OFD packet to send [14:38:25]OFD Sender: No OFD packet to send [14:38:30]OFD Sender: No OFD packet to send [14:38:35]OFD Sender: No OFD packet to send [14:38:40]OFD Sender: No OFD packet to send [14:38:45]OFD Sender: No OFD packet to send [14:38:50]OFD Sender: No OFD packet to send [14:38:55]OFD Sender: No OFD packet to send [14:39:00]OFD Sender: No OFD packet to send [14:39:05]OFD Sender: No OFD packet to send [14:39:10]OFD Sender: No OFD packet to send [14:39:15]OFD Sender: No OFD packet to send [14:39:20]OFD Sender: No OFD packet to send [14:39:25]OFD Sender: No OFD packet to send [14:39:30]OFD Sender: No OFD packet to send [14:39:35]OFD Sender: No OFD packet to send [14:39:40]OFD Sender: No OFD packet to send [14:39:45]OFD Sender: No OFD packet to send [14:39:50]OFD Sender: No OFD packet to send [14:39:55]OFD Sender: No OFD packet to send [14:40:00]OFD Sender: No OFD packet to send [14:40:05]OFD Sender: No OFD packet to send [14:40:10]OFD Sender: No OFD packet to send [14:40:15]OFD Sender: No OFD packet to send [14:40:20]OFD Sender: No OFD packet to send [14:40:25]OFD Sender: No OFD packet to send [14:40:30]OFD Sender: No OFD packet to send [14:40:35]OFD Sender: No OFD packet to send [14:40:40]OFD Sender: No OFD packet to send [14:40:45]OFD Sender: No OFD packet to send [14:40:50]OFD Sender: No OFD packet to send [14:40:55]OFD Sender: No OFD packet to send [14:40:56]accept exits with 9 [14:40:56]New connection [14:40:56]New thread 3066834276 created [14:40:56]Thread 3066977636 joined [14:40:56]Waiting for new connection... [14:40:56] Sock 9.Parse request [14:40:56]Sock 9.Check first char [14:40:56]Sock 9.First char is OK [14:40:56]request: POST /json_proto HTTP/1.0 [14:40:56]Method: POST [14:40:56]URL: /json_proto [14:40:56]Method is POST - this is cgi request [14:40:56]url: /json_proto [14:40:56]query_string will be loaded in cgi processing [14:40:56]execute_cgi json_proto POST (null) [14:40:56]execute_cgi path=json_proto method=POST [14:40:56]POST find Content-Length [14:40:56]Host: 172.17.63.3:8080 [14:40:56]Content-Length: 676 [14:40:56]Content-Type: application/json [14:40:56] [14:40:56]POST finish read [14:40:56]Found Content-Length = 676 [14:40:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99426", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:40:56]execute_script... [14:40: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)99426", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:40:56]POST & json_proto [14:40:56]process_json_proto [14:40:56]json parsed OK: [14:40:56]protocol is kg_v1.0 [14:40:56]action value=close_receipt [14:40:56]process_action close_receipt [14:40:56]cmd_close_receipt [14:40:56]MH_GetDate [14:40:56]Write to MH i2c: F0 00 00 45 5F 93 [14:40:56]Write i2c OK [14:40:56]MH_I2C_Read... [14:40:56]Read from MH i2c: F0 [14:40:56]MH_I2C_Read... [14:40:56]Read from MH i2c: F0 09 00 [14:40:56]MH_I2C_Read... [14:40:56]Read from MH i2c: F0 09 00 45 5F 00 FE 50 1E 67 50 D1 6C 64 60 [14:40:56]GetLastDocTimeStamp 1730039743 [14:40:56]current date 1730040062 [14:40:56]FM_GetShiftState [14:40:56]SAM_PROTO_GetShiftState [14:40:56]wFMCommunicate request_size=4 [14:40:56]MH_SAM_APDU [14:40:56]CAPDU: 80 13 01 00 [14:40:56]Write to MH i2c: E2 08 00 46 5F 80 13 01 00 00 00 00 00 22 [14:40:56]Write i2c OK [14:40:56]MH_I2C_Read... [14:40:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:40:56]Read from MH i2c: E2 [14:40:56]MH_I2C_Read... [14:40:56]Read from MH i2c: E2 0E 00 [14:40:56]MH_I2C_Read... [14:40:56]Read from MH i2c: E2 0E 00 46 5F 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 EF [14:40:56]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [14:40:56]wFMCommunicate OK [14:40:56]SAM_PROTO_GetShiftState done [14:40:56]FM_GetShiftState done [14:40:56]opened in 1729989044 [14:40:56]opened+sec_in_day 1730075444 [14:40:56]quantity*price = 50041 [14:40:56]sum+1 = 50042 [14:40:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 163 27.10.2024 14:41 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156612 ФПД: 110633532494270 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T144102&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156612&fm=110633532494270&tin=02508201610067®Number=0000000000091693&sum=50000 [14:40:57]StoreToDocumentArchive [14:40:57]shift 537 fd 156612 [14:40:57]save to /storage/0537/doc_00156612 [14:40:57]save last doc name /storage/0537/doc_00156612 to /storage/kkm_last_doc_name [14:40:57]save OK [14:40:57]Clear old archive folders... [14:40:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:40:57]tlvbuf is 01741AA0 [14:40:57]SAM_PROTO_ClearQueue [14:40:57]wFMCommunicate request_size=4 [14:40:57]MH_SAM_APDU [14:40:57]CAPDU: 80 09 00 00 [14:40:57]Write to MH i2c: E2 08 00 53 5F 80 09 00 00 00 00 00 00 24 [14:40:57]Write i2c OK [14:40:57]MH_I2C_Read... [14:40:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:40:57]Read from MH i2c: E2 [14:40:57]MH_I2C_Read... [14:40:57]Read from MH i2c: E2 03 00 [14:40:57]MH_I2C_Read... [14:40:57]Read from MH i2c: E2 03 00 53 5F 00 90 00 26 [14:40:57]RAPDU: 90 00 [14:40:57]wFMCommunicate OK [14:40:57]SAM_PROTO_ClearQueue done [14:40:57]KKMCreateOFDPacket [14:40:57]OFDProtocolAddRootSTLVToBuf [14:40:57]FM_MakeSignedData [14:40:57]FM_MakeSignedData [14:40:57]SAM_PROTO_SignData [14:40:57]wFMCommunicate request_size=4 [14:40:57]MH_SAM_APDU [14:40:57]CAPDU: 80 0D 01 02 [14:40:57]Write to MH i2c: E2 08 00 54 5F 80 0D 01 02 00 00 00 00 2C [14:40:57]Write i2c OK [14:40:57]MH_I2C_Read... [14:40:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:40:57]Read from MH i2c: E2 [14:40:57]MH_I2C_Read... [14:40:57]Read from MH i2c: E2 03 00 [14:40:57]MH_I2C_Read... [14:40:57]Read from MH i2c: E2 03 00 54 5F 00 90 00 27 [14:40:57]RAPDU: 90 00 [14:40:57]wFMCommunicate OK [14:40:57]wFMCommunicate request_size=255 [14:40:57]MH_SAM_APDU [14:40: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 FE 50 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C4 63 02 00 35 04 06 00 64 [14:40:57]Write to MH i2c: E2 02 01 55 5F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 FE 50 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C4 63 02 00 35 04 06 00 64 00 00 DE [14:40:57]Write i2c OK [14:40:57]MH_I2C_Read... [14:40:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:40:57]Read from MH i2c: E2 [14:40:57]MH_I2C_Read... [14:40:57]Read from MH i2c: E2 03 00 [14:40:57]MH_I2C_Read... [14:40:57]Read from MH i2c: E2 03 00 55 5F 00 90 00 28 [14:40:57]RAPDU: 90 00 [14:40:57]wFMCommunicate OK [14:40:57]wFMCommunicate request_size=10 [14:40:57]MH_SAM_APDU [14:40:57]CAPDU: 80 0D 02 02 05 9E E0 67 91 BE [14:40:57]Write to MH i2c: E2 0D 00 56 5F 80 0D 02 02 05 00 9E E0 67 91 BE 00 00 6D [14:40:57]Write i2c OK [14:40:57]MH_I2C_Read... [14:40:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:40:57]Read from MH i2c: E2 [14:40:57]MH_I2C_Read... [14:40:57]Read from MH i2c: E2 03 00 [14:40:57]MH_I2C_Read... [14:40:57]Read from MH i2c: E2 03 00 56 5F 00 90 00 29 [14:40:57]RAPDU: 90 00 [14:40:57]wFMCommunicate OK [14:40:57]wFMCommunicate request_size=4 [14:40:57]MH_SAM_APDU [14:40:57]CAPDU: 80 0D 03 02 [14:40:57]Write to MH i2c: E2 08 00 57 5F 80 0D 03 02 00 00 00 00 31 [14:40:57]Write i2c OK [14:40:57]MH_I2C_Read... [14:40:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:40:57]Read from MH i2c: E2 [14:40:57]MH_I2C_Read... [14:40:57]Read from MH i2c: E2 0B 00 [14:40:57]MH_I2C_Read... [14:40:57]Read from MH i2c: E2 0B 00 57 5F 00 75 0E F6 08 E9 49 C1 5E 90 00 04 [14:40:57]RAPDU: 75 0E F6 08 E9 49 C1 5E 90 00 [14:40:57]wFMCommunicate OK [14:40:57]SAM_PROTO_SignData done [14:40:57]FM_MakeSignedData done [14:40:57]CreateOFDProtocolMessage [14:40:57]wFMCommunicate request_size=4 [14:40:57]MH_SAM_APDU [14:40:57]CAPDU: 80 11 00 00 [14:40:57]Write to MH i2c: E2 08 00 58 5F 80 11 00 00 00 00 00 00 31 [14:40:57]Write i2c OK [14:40:57]MH_I2C_Read... [14:40:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:40:57]Read from MH i2c: E2 [14:40:57]MH_I2C_Read... [14:40:57]Read from MH i2c: E2 17 00 [14:40:57]MH_I2C_Read... [14:40:57]Read from MH i2c: E2 17 00 58 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 86 [14:40:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:40:57]wFMCommunicate OK [14:40:57]CreateOFDProtocolMessage done [14:40:57]OFDSenderStorePacket 156612 [14:40:57]StoreOFDPacket docnum=156612 [14:40:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 82 D6 07 01 CB AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 FE 50 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C4 63 02 00 35 04 06 00 64 9E E0 67 91 BE 75 0E F6 08 E9 49 C1 5E [14:40:57]CheckFolder [14:40:57]dirname=/storage/ofd_packets [14:40:57]CheckFolder done [14:40:57]ProducePacketName [14:40:57]name=ofd_packets/00156612 [14:40:57]NVStorageSaveData ofd_packets/00156612 [14:40:57]File name is /storage/ofd_packets/00156612 [14:40:57]Write 301 bytes [14:40:57]NVStorageSaveData done [14:40:57]OFDSenderStorePacket done [14:40:57]KKMCreateOFDPacket done [14:40:57]NVStorageSaveData kkm_last_timestamp [14:40:57]File name is /storage/kkm_last_timestamp [14:40:57]Write 4 bytes [14:40:57]NVStorageSaveData done [14:40:57]OFD Sender: Processing packet 156612 [packets to send 31, broken 30] [14:40:57]ProducePacketName [14:40:57]name=ofd_packets/00156612 [14:40:57]OFD Sender: To server: pG, [14:40:57]CommunicateWithHost lk.salyk.kg:30040 [14:40:57]ConnectInit lk.salyk.kg [14:40:57]ExternCall_PrintAddStr [14:40:57]wPrintStart [14:40:57]Write to MH i2c: 01 00 00 59 5F B8 [14:40:57]Write i2c OK [14:40:57]MH_I2C_Read... [14:40:57]Read from MH i2c: 01 [14:40:57]MH_I2C_Read... [14:40:57]Read from MH i2c: 01 07 00 [14:40:57]MH_I2C_Read... [14:40:57]Read from MH i2c: 01 07 00 59 5F 00 00 00 00 00 FF 0F CD [14:40:57]RasterBufferAndPrint [14:40:57]line Счет N : (1)99426 [14:40:57]line ИНН: 02508201610067 [14:40:57]line Контрольно-Кассовый Чек [14:40:57]line ПРОДАЖА [14:40:57]line ТРК (МРК, ГНК) : 21 [14:40:57]line Товар: 2710124130 [14:40:57]line Аи-92-К-5 [14:40:57]line 7.480 * 66.90 [14:40:57]line = 500.41 [14:40:57]line НДС 12% НСП 1% [14:40:57]line > о реализуемом товаре [14:40:57]line ОКРУГЛЕНИЕ: -0.41 [14:40:57]line ИТОГО: 500.00 [14:40:57]line Внесено: 500.00 [14:40:57]line СДАЧА: 0.00 [14:40:57]line НСП 1% : 4.43 [14:40:57]line НДС 12% : 53.14 [14:40:57]line Наличными: 500.00 [14:40:57]line Безнал.: 0.00 [14:40:57]line Место: АЗС № 143 "Партнер Нефть" [14:40:57]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [14:40:57]line СНО: Общий режим [14:40:57]line Чек 163 27.10.2024 14:41 [14:40:57]line Смена: 537 ФФД: 1.0 [14:40:57]line ЗНМ: 0300000096 [14:40:57]line РНМ: 0000000000091693 [14:40:57]line Версия ККМ: 001 [14:40:57]line ФМ: 0000000000871792 [14:40:57]line ФД: 156612 [14:40:57]line ФПД: 110633532494270 [14:40:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T144102&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156612&fm=110633532494270&tin=02508201610067®Number=0000000000091693&sum=50000 [14:40:58]Connected sock=11 [14:40:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 82 D6 07 01 CB AF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 FE 50 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C4 63 02 00 35 04 06 00 64 9E E0 67 91 BE 75 0E F6 08 E9 49 C1 5E [14:40:58]written 0, free lines is 4095 [14:40:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 5B 69 47 00 C2 BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C4 63 02 00 F4 03 04 00 6D F6 1D 67 B6 04 01 00 00 EB DE 66 5B 68 99 BA 64 [14:40:58]CommunicateWithHost err = 0 [14:40:58]CheckOFDResponse [14:40:58]1017 (14) - 77093643461234 [14:40:58]1041 (16) - 0000000000871792 [14:40:58]1040 (4) - 156612 [14:40:58]1012 (4) - 27.10.2024 08:14 [14:40:58]1206 (1) - 0 [14:40:58]OFD Sender: Remove packet 156612 [14:40:58]ProducePacketName [14:40:58]name=ofd_packets/00156612 [14:40:58]NVStorageDeleteData [14:40:58]Write to MH i2c: 01 00 00 84 5F E3 [14:40:58]Write i2c OK [14:40:58]MH_I2C_Read... [14:40:58]Read from MH i2c: 01 [14:40:58]MH_I2C_Read... [14:40:58]Read from MH i2c: 01 07 00 [14:40:58]MH_I2C_Read... [14:40:58]Read from MH i2c: 01 07 00 84 5F 00 00 00 00 00 E5 0C DB [14:40:58]RasterBufferAndPrint [14:40:58]line [14:40:58]line [14:40:58]line [14:40:58]line [14:40:58]line [14:40:58]written 0, free lines is 3307 [14:40:58]process_action close_receipt done [14:40:58]requested_data is exist [14:40:58]produce_requested_data [14:40:58]requested_item fm.sn is exist - process it [14:40:58]wFMCommunicate request_size=4 [14:40:58]MH_SAM_APDU [14:40:58]CAPDU: 80 11 00 00 [14:40:58]Write to MH i2c: E2 08 00 8B 5F 80 11 00 00 00 00 00 00 64 [14:40:58]Write i2c OK [14:40:58]MH_I2C_Read... [14:40:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:40:58]Read from MH i2c: E2 [14:40:58]MH_I2C_Read... [14:40:58]Read from MH i2c: E2 17 00 [14:40:58]MH_I2C_Read... [14:40:58]Read from MH i2c: E2 17 00 8B 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 B9 [14:40:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:40:58]wFMCommunicate OK [14:40:58]requested_item fd.num is exist - process it [14:40:58]SAM_PROTO_GetFieldsCounters [14:40:58]wFMCommunicate request_size=4 [14:40:58]MH_SAM_APDU [14:40:58]CAPDU: 80 13 00 00 [14:40:58]Write to MH i2c: E2 08 00 8C 5F 80 13 00 00 00 00 00 00 67 [14:40:58]Write i2c OK [14:40:58]MH_I2C_Read... [14:40:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:40:58]Read from MH i2c: E2 [14:40:58]MH_I2C_Read... [14:40:58]Read from MH i2c: E2 62 00 [14:40:58]MH_I2C_Read... [14:40:58]Read from MH i2c: E2 62 00 8C 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 C4 63 02 00 0E 04 04 00 19 02 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 BA [14:40:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 C4 63 02 00 0E 04 04 00 19 02 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 [14:40:58]wFMCommunicate OK [14:40:58]SAM_PROTO_GetFieldsCounters done [14:40:58]requested_item shift.num is exist - process it [14:40:58]requested_item shift.opened is exist - process it [14:40:58]req_shift_opened [14:40:58]FM_GetShiftState [14:40:58]SAM_PROTO_GetShiftState [14:40:58]wFMCommunicate request_size=4 [14:40:58]MH_SAM_APDU [14:40:58]CAPDU: 80 13 01 00 [14:40:58]Write to MH i2c: E2 08 00 8D 5F 80 13 01 00 00 00 00 00 69 [14:40:58]Write i2c OK [14:40:58]MH_I2C_Read... [14:40:58]OFD Sender: No OFD packet to send [14:40:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:40:58]Read from MH i2c: E2 [14:40:58]MH_I2C_Read... [14:40:58]Read from MH i2c: E2 0E 00 [14:40:58]MH_I2C_Read... [14:40:58]Read from MH i2c: E2 0E 00 8D 5F 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 36 [14:40:58]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [14:40:58]wFMCommunicate OK [14:40:58]SAM_PROTO_GetShiftState done [14:40:58]FM_GetShiftState done [14:40:58]req_shift_opened done [14:40:58]requested_item shift.open_date is exist - process it [14:40:58]req_shift_open_date [14:40:58]req_shift_open_date done [14:40:58]produce_requested_data done [14:40:58]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156612,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [14:40:58]process_action_free close_receipt [14:40:58]json_value_free [14:40:58]json_value_free done [14:40:58]process_json_proto returns [14:40:58]Send response to host [14:40:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156612,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [14:40:58]free response buf [14:40:58]execute_script done [14:40:58]execute_script returns [14:40:58]free content buf [14:40:58]Sock 9.Close socket [14:40:58]Sock 9.Thread stoped [14:41:03]OFD Sender: No OFD packet to send [14:41:08]OFD Sender: No OFD packet to send [14:41:13]OFD Sender: No OFD packet to send [14:41:18]OFD Sender: No OFD packet to send [14:41:23]OFD Sender: No OFD packet to send [14:41:28]OFD Sender: No OFD packet to send [14:41:33]OFD Sender: No OFD packet to send [14:41:38]OFD Sender: No OFD packet to send [14:41:43]OFD Sender: No OFD packet to send [14:41:48]OFD Sender: No OFD packet to send [14:41:53]OFD Sender: No OFD packet to send [14:41:58]OFD Sender: No OFD packet to send [14:42:03]OFD Sender: No OFD packet to send [14:42:08]OFD Sender: No OFD packet to send [14:42:13]OFD Sender: No OFD packet to send [14:42:18]OFD Sender: No OFD packet to send [14:42:23]OFD Sender: No OFD packet to send [14:42:28]OFD Sender: No OFD packet to send [14:42:33]OFD Sender: No OFD packet to send [14:42:38]OFD Sender: No OFD packet to send [14:42:43]OFD Sender: No OFD packet to send [14:42:47]accept exits with 8 [14:42:47]New connection [14:42:47]New thread 3066977636 created [14:42:47]Thread 3066834276 joined [14:42:47]Waiting for new connection... [14:42:47] Sock 8.Parse request [14:42:47]Sock 8.Check first char [14:42:47]Sock 8.First char is OK [14:42:47]request: POST /json_proto HTTP/1.0 [14:42:47]Method: POST [14:42:47]URL: /json_proto [14:42:47]Method is POST - this is cgi request [14:42:47]url: /json_proto [14:42:47]query_string will be loaded in cgi processing [14:42:47]execute_cgi json_proto POST (null) [14:42:47]execute_cgi path=json_proto method=POST [14:42:47]POST find Content-Length [14:42:47]Host: 172.17.63.3:8080 [14:42:47]Content-Length: 673 [14:42:47]Content-Type: application/json [14:42:47] [14:42:47]POST finish read [14:42:47]Found Content-Length = 673 [14:42:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99427", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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:42:47]execute_script... [14:42:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99427", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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:42:47]POST & json_proto [14:42:47]process_json_proto [14:42:47]json parsed OK: [14:42:47]protocol is kg_v1.0 [14:42:47]action value=close_receipt [14:42:47]process_action close_receipt [14:42:47]cmd_close_receipt [14:42:47]MH_GetDate [14:42:47]Write to MH i2c: F0 00 00 8E 5F DC [14:42:47]Write i2c OK [14:42:47]MH_I2C_Read... [14:42:47]Read from MH i2c: F0 [14:42:47]MH_I2C_Read... [14:42:47]Read from MH i2c: F0 09 00 [14:42:47]MH_I2C_Read... [14:42:47]Read from MH i2c: F0 09 00 8E 5F 00 6E 51 1E 67 50 D1 6C 64 1A [14:42:47]GetLastDocTimeStamp 1730040062 [14:42:47]current date 1730040174 [14:42:47]FM_GetShiftState [14:42:47]SAM_PROTO_GetShiftState [14:42:47]wFMCommunicate request_size=4 [14:42:47]MH_SAM_APDU [14:42:47]CAPDU: 80 13 01 00 [14:42:47]Write to MH i2c: E2 08 00 8F 5F 80 13 01 00 00 00 00 00 6B [14:42:47]Write i2c OK [14:42:47]MH_I2C_Read... [14:42:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:47]Read from MH i2c: E2 [14:42:47]MH_I2C_Read... [14:42:47]Read from MH i2c: E2 0E 00 [14:42:47]MH_I2C_Read... [14:42:47]Read from MH i2c: E2 0E 00 8F 5F 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 38 [14:42:47]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [14:42:47]wFMCommunicate OK [14:42:47]SAM_PROTO_GetShiftState done [14:42:47]FM_GetShiftState done [14:42:47]opened in 1729989044 [14:42:47]opened+sec_in_day 1730075444 [14:42:47]quantity*price = 50063 [14:42:47]sum+1 = 50064 [14:42:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 164 27.10.2024 14:42 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156613 ФПД: 140622719629920 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T144254&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156613&fm=140622719629920&tin=02508201610067®Number=0000000000091693&sum=50000 [14:42:49]StoreToDocumentArchive [14:42:49]shift 537 fd 156613 [14:42:49]save to /storage/0537/doc_00156613 [14:42:49]save last doc name /storage/0537/doc_00156613 to /storage/kkm_last_doc_name [14:42:49]save OK [14:42:49]Clear old archive folders... [14:42:49]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:42:49]tlvbuf is 01711F90 [14:42:49]SAM_PROTO_ClearQueue [14:42:49]wFMCommunicate request_size=4 [14:42:49]MH_SAM_APDU [14:42:49]CAPDU: 80 09 00 00 [14:42:49]Write to MH i2c: E2 08 00 9C 5F 80 09 00 00 00 00 00 00 6D [14:42:49]Write i2c OK [14:42:49]MH_I2C_Read... [14:42:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:42:49]Read from MH i2c: E2 [14:42:49]MH_I2C_Read... [14:42:49]Read from MH i2c: E2 03 00 [14:42:49]MH_I2C_Read... [14:42:49]Read from MH i2c: E2 03 00 9C 5F 00 90 00 6F [14:42:49]RAPDU: 90 00 [14:42:49]wFMCommunicate OK [14:42:49]SAM_PROTO_ClearQueue done [14:42:49]KKMCreateOFDPacket [14:42:49]OFDProtocolAddRootSTLVToBuf [14:42:49]FM_MakeSignedData [14:42:49]FM_MakeSignedData [14:42:49]SAM_PROTO_SignData [14:42:49]wFMCommunicate request_size=4 [14:42:49]MH_SAM_APDU [14:42:49]CAPDU: 80 0D 01 02 [14:42:49]Write to MH i2c: E2 08 00 9D 5F 80 0D 01 02 00 00 00 00 75 [14:42:49]Write i2c OK [14:42:49]MH_I2C_Read... [14:42:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:42:49]Read from MH i2c: E2 [14:42:49]MH_I2C_Read... [14:42:49]Read from MH i2c: E2 03 00 [14:42:49]MH_I2C_Read... [14:42:49]Read from MH i2c: E2 03 00 9D 5F 00 90 00 70 [14:42:49]RAPDU: 90 00 [14:42:49]wFMCommunicate OK [14:42:49]wFMCommunicate request_size=255 [14:42:49]MH_SAM_APDU [14:42:49]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 A4 00 00 00 F4 03 04 00 6E 51 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C5 63 02 00 35 04 06 00 7F E5 47 40 [14:42:49]Write to MH i2c: E2 02 01 9E 5F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 A4 00 00 00 F4 03 04 00 6E 51 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C5 63 02 00 35 04 06 00 7F E5 47 40 00 00 9F [14:42:49]Write i2c OK [14:42:49]MH_I2C_Read... [14:42:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:49]Read from MH i2c: E2 [14:42:49]MH_I2C_Read... [14:42:49]Read from MH i2c: E2 03 00 [14:42:49]MH_I2C_Read... [14:42:49]Read from MH i2c: E2 03 00 9E 5F 00 90 00 71 [14:42:49]RAPDU: 90 00 [14:42:49]wFMCommunicate OK [14:42:49]wFMCommunicate request_size=7 [14:42:49]MH_SAM_APDU [14:42:49]CAPDU: 80 0D 02 02 02 3A 60 [14:42:49]Write to MH i2c: E2 0A 00 9F 5F 80 0D 02 02 02 00 3A 60 00 00 16 [14:42:49]Write i2c OK [14:42:49]MH_I2C_Read... [14:42:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:49]Read from MH i2c: E2 [14:42:49]MH_I2C_Read... [14:42:49]Read from MH i2c: E2 03 00 [14:42:49]MH_I2C_Read... [14:42:49]Read from MH i2c: E2 03 00 9F 5F 00 90 00 72 [14:42:49]RAPDU: 90 00 [14:42:49]wFMCommunicate OK [14:42:49]wFMCommunicate request_size=4 [14:42:49]MH_SAM_APDU [14:42:49]CAPDU: 80 0D 03 02 [14:42:49]Write to MH i2c: E2 08 00 A0 5F 80 0D 03 02 00 00 00 00 7A [14:42:49]Write i2c OK [14:42:49]MH_I2C_Read... [14:42:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:42:49]Read from MH i2c: E2 [14:42:49]MH_I2C_Read... [14:42:49]Read from MH i2c: E2 0B 00 [14:42:49]MH_I2C_Read... [14:42:49]Read from MH i2c: E2 0B 00 A0 5F 00 AC 34 29 BD CB 7D 2A CD 90 00 80 [14:42:49]RAPDU: AC 34 29 BD CB 7D 2A CD 90 00 [14:42:49]wFMCommunicate OK [14:42:49]SAM_PROTO_SignData done [14:42:49]FM_MakeSignedData done [14:42:49]CreateOFDProtocolMessage [14:42:49]wFMCommunicate request_size=4 [14:42:49]MH_SAM_APDU [14:42:49]CAPDU: 80 11 00 00 [14:42:49]Write to MH i2c: E2 08 00 A1 5F 80 11 00 00 00 00 00 00 7A [14:42:49]Write i2c OK [14:42:49]MH_I2C_Read... [14:42:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:49]Read from MH i2c: E2 [14:42:49]MH_I2C_Read... [14:42:49]Read from MH i2c: E2 17 00 [14:42:49]MH_I2C_Read... [14:42:49]Read from MH i2c: E2 17 00 A1 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 CF [14:42:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:42:49]wFMCommunicate OK [14:42:49]CreateOFDProtocolMessage done [14:42:49]OFDSenderStorePacket 156613 [14:42:49]StoreOFDPacket docnum=156613 [14:42:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 F9 79 04 01 6A 93 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 A4 00 00 00 F4 03 04 00 6E 51 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C5 63 02 00 35 04 06 00 7F E5 47 40 3A 60 AC 34 29 BD CB 7D 2A CD [14:42:49]CheckFolder [14:42:49]dirname=/storage/ofd_packets [14:42:49]CheckFolder done [14:42:49]ProducePacketName [14:42:49]name=ofd_packets/00156613 [14:42:49]NVStorageSaveData ofd_packets/00156613 [14:42:49]File name is /storage/ofd_packets/00156613 [14:42:49]Write 298 bytes [14:42:49]NVStorageSaveData done [14:42:49]OFDSenderStorePacket done [14:42:49]KKMCreateOFDPacket done [14:42:49]NVStorageSaveData kkm_last_timestamp [14:42:49]File name is /storage/kkm_last_timestamp [14:42:49]Write 4 bytes [14:42:49]NVStorageSaveData done [14:42:49]ExternCall_PrintAddStr [14:42:49]wPrintStart [14:42:49]Write to MH i2c: 01 00 00 A2 5F 01 [14:42:49]Write i2c OK [14:42:49]MH_I2C_Read... [14:42:49]Read from MH i2c: 01 [14:42:49]MH_I2C_Read... [14:42:49]Read from MH i2c: 01 07 00 [14:42:49]MH_I2C_Read... [14:42:49]Read from MH i2c: 01 07 00 A2 5F 00 00 00 00 00 FF 0F 16 [14:42:49]RasterBufferAndPrint [14:42:49]line Счет N : (1)99427 [14:42:49]line ИНН: 02508201610067 [14:42:49]line Контрольно-Кассовый Чек [14:42:49]line ПРОДАЖА [14:42:49]line ТРК (МРК, ГНК) : 32 [14:42:49]line Товар: 2710194210 [14:42:49]line ДТ-К-5 [14:42:49]line 6.570 * 76.20 [14:42:49]line = 500.63 [14:42:49]line НДС 12% НСП 1% [14:42:49]line > о реализуемом товаре [14:42:49]line ОКРУГЛЕНИЕ: -0.63 [14:42:49]line ИТОГО: 500.00 [14:42:49]line Внесено: 500.00 [14:42:49]line СДАЧА: 0.00 [14:42:49]line НСП 1% : 4.43 [14:42:49]line НДС 12% : 53.16 [14:42:49]line Наличными: 500.00 [14:42:49]line Безнал.: 0.00 [14:42:49]line Место: АЗС № 143 "Партнер Нефть" [14:42:49]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [14:42:49]line СНО: Общий режим [14:42:49]line Чек 164 27.10.2024 14:42 [14:42:49]line Смена: 537 ФФД: 1.0 [14:42:49]line ЗНМ: 0300000096 [14:42:49]line РНМ: 0000000000091693 [14:42:49]line Версия ККМ: 001 [14:42:49]line ФМ: 0000000000871792 [14:42:49]line ФД: 156613 [14:42:49]line ФПД: 140622719629920 [14:42:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T144254&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156613&fm=140622719629920&tin=02508201610067®Number=0000000000091693&sum=50000 [14:42:49]OFD Sender: Processing packet 156613 [packets to send 31, broken 30] [14:42:49]ProducePacketName [14:42:49]name=ofd_packets/00156613 [14:42:49]OFD Sender: To server: pG, [14:42:49]CommunicateWithHost lk.salyk.kg:30040 [14:42:49]ConnectInit lk.salyk.kg [14:42:49]written 0, free lines is 4095 [14:42:49]Connected sock=9 [14:42:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 F9 79 04 01 6A 93 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 A4 00 00 00 F4 03 04 00 6E 51 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C5 63 02 00 35 04 06 00 7F E5 47 40 3A 60 AC 34 29 BD CB 7D 2A CD [14:42:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 1B D6 47 00 10 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C5 63 02 00 F4 03 04 00 DD F6 1D 67 B6 04 01 00 00 C2 36 28 24 2A F4 C6 9F [14:42:50]CommunicateWithHost err = 0 [14:42:50]CheckOFDResponse [14:42:50]1017 (14) - 77093643461234 [14:42:50]1041 (16) - 0000000000871792 [14:42:50]1040 (4) - 156613 [14:42:50]1012 (4) - 27.10.2024 08:16 [14:42:50]1206 (1) - 0 [14:42:50]OFD Sender: Remove packet 156613 [14:42:50]ProducePacketName [14:42:50]name=ofd_packets/00156613 [14:42:50]NVStorageDeleteData [14:42:50]Write to MH i2c: 01 00 00 CD 5F 2C [14:42:50]Write i2c OK [14:42:50]MH_I2C_Read... [14:42:50]Read from MH i2c: 01 [14:42:50]MH_I2C_Read... [14:42:50]Read from MH i2c: 01 07 00 [14:42:50]MH_I2C_Read... [14:42:50]Read from MH i2c: 01 07 00 CD 5F 00 00 00 00 00 E9 0C 28 [14:42:50]RasterBufferAndPrint [14:42:50]line [14:42:50]line [14:42:50]line [14:42:50]line [14:42:50]line [14:42:50]written 0, free lines is 3311 [14:42:50]process_action close_receipt done [14:42:50]requested_data is exist [14:42:50]produce_requested_data [14:42:50]requested_item fm.sn is exist - process it [14:42:50]wFMCommunicate request_size=4 [14:42:50]MH_SAM_APDU [14:42:50]CAPDU: 80 11 00 00 [14:42:50]Write to MH i2c: E2 08 00 D4 5F 80 11 00 00 00 00 00 00 AD [14:42:50]Write i2c OK [14:42:50]MH_I2C_Read... [14:42:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:50]Read from MH i2c: E2 [14:42:50]MH_I2C_Read... [14:42:50]Read from MH i2c: E2 17 00 [14:42:50]MH_I2C_Read... [14:42:50]Read from MH i2c: E2 17 00 D4 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 02 [14:42:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:42:50]wFMCommunicate OK [14:42:50]requested_item fd.num is exist - process it [14:42:50]SAM_PROTO_GetFieldsCounters [14:42:50]wFMCommunicate request_size=4 [14:42:50]MH_SAM_APDU [14:42:50]CAPDU: 80 13 00 00 [14:42:50]Write to MH i2c: E2 08 00 D5 5F 80 13 00 00 00 00 00 00 B0 [14:42:50]Write i2c OK [14:42:50]MH_I2C_Read... [14:42:50]Read from MH i2c: E2 [14:42:50]MH_I2C_Read... [14:42:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:42:50]Read from MH i2c: E2 62 00 [14:42:50]MH_I2C_Read... [14:42:50]Read from MH i2c: E2 62 00 D5 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 C5 63 02 00 0E 04 04 00 19 02 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 07 [14:42:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 C5 63 02 00 0E 04 04 00 19 02 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 [14:42:50]wFMCommunicate OK [14:42:50]SAM_PROTO_GetFieldsCounters done [14:42:50]requested_item shift.num is exist - process it [14:42:50]requested_item shift.opened is exist - process it [14:42:50]req_shift_opened [14:42:50]FM_GetShiftState [14:42:50]SAM_PROTO_GetShiftState [14:42:50]wFMCommunicate request_size=4 [14:42:50]MH_SAM_APDU [14:42:50]CAPDU: 80 13 01 00 [14:42:50]Write to MH i2c: E2 08 00 D6 5F 80 13 01 00 00 00 00 00 B2 [14:42:50]Write i2c OK [14:42:50]MH_I2C_Read... [14:42:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:50]Read from MH i2c: E2 [14:42:50]MH_I2C_Read... [14:42:50]Read from MH i2c: E2 0E 00 [14:42:50]MH_I2C_Read... [14:42:50]Read from MH i2c: E2 0E 00 D6 5F 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 7F [14:42:50]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [14:42:50]wFMCommunicate OK [14:42:50]SAM_PROTO_GetShiftState done [14:42:50]FM_GetShiftState done [14:42:50]req_shift_opened done [14:42:50]requested_item shift.open_date is exist - process it [14:42:50]req_shift_open_date [14:42:50]req_shift_open_date done [14:42:50]produce_requested_data done [14:42:50]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156613,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [14:42:50]process_action_free close_receipt [14:42:50]json_value_free [14:42:50]json_value_free done [14:42:50]process_json_proto returns [14:42:50]Send response to host [14:42:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156613,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [14:42:50]free response buf [14:42:50]execute_script done [14:42:50]execute_script returns [14:42:50]free content buf [14:42:50]Sock 8.Close socket [14:42:50]Sock 8.Thread stoped [14:42:50]OFD Sender: No OFD packet to send [14:42:55]OFD Sender: No OFD packet to send [14:43:00]OFD Sender: No OFD packet to send [14:43:05]OFD Sender: No OFD packet to send [14:43:10]OFD Sender: No OFD packet to send [14:43:15]OFD Sender: No OFD packet to send [14:43:20]OFD Sender: No OFD packet to send [14:43:25]OFD Sender: No OFD packet to send [14:43:30]OFD Sender: No OFD packet to send [14:43:40]OFD Sender: No OFD packet to send [14:43:45]OFD Sender: No OFD packet to send [14:43:50]OFD Sender: No OFD packet to send [14:43:52]recv_with_timeout no data received [14:43:55]OFD Sender: No OFD packet to send [14:44:00]OFD Sender: No OFD packet to send [14:44:05]OFD Sender: No OFD packet to send [14:44:10]OFD Sender: No OFD packet to send [14:44:15]OFD Sender: No OFD packet to send [14:44:20]OFD Sender: No OFD packet to send [14:44:25]OFD Sender: No OFD packet to send [14:44:30]OFD Sender: No OFD packet to send [14:44:35]OFD Sender: No OFD packet to send [14:44:40]OFD Sender: No OFD packet to send [14:44:45]OFD Sender: No OFD packet to send [14:44:50]OFD Sender: No OFD packet to send [14:44:55]OFD Sender: No OFD packet to send [14:45:00]OFD Sender: No OFD packet to send [14:45:05]OFD Sender: No OFD packet to send [14:45:10]OFD Sender: No OFD packet to send [14:45:15]OFD Sender: No OFD packet to send [14:45:20]OFD Sender: No OFD packet to send [14:45:25]OFD Sender: No OFD packet to send [14:45:30]OFD Sender: No OFD packet to send [14:45:35]OFD Sender: No OFD packet to send [14:45:40]OFD Sender: No OFD packet to send [14:45:45]OFD Sender: No OFD packet to send [14:45:50]OFD Sender: No OFD packet to send [14:45:55]OFD Sender: No OFD packet to send [14:46:00]OFD Sender: No OFD packet to send [14:46:05]OFD Sender: No OFD packet to send [14:46:10]OFD Sender: No OFD packet to send [14:46:15]OFD Sender: No OFD packet to send [14:46:17]accept exits with 10 [14:46:17]New connection [14:46:17]New thread 3066834276 created [14:46:17]Thread 3066977636 joined [14:46:17]Waiting for new connection... [14:46:17] Sock 10.Parse request [14:46:17]Sock 10.Check first char [14:46:17]Sock 10.First char is OK [14:46:17]request: POST /json_proto HTTP/1.0 [14:46:17]Method: POST [14:46:17]URL: /json_proto [14:46:17]Method is POST - this is cgi request [14:46:17]url: /json_proto [14:46:17]query_string will be loaded in cgi processing [14:46:17]execute_cgi json_proto POST (null) [14:46:17]execute_cgi path=json_proto method=POST [14:46:17]POST find Content-Length [14:46:17]Host: 172.17.63.3:8080 [14:46:17]Content-Length: 676 [14:46:17]Content-Type: application/json [14:46:17] [14:46:17]POST finish read [14:46:17]Found Content-Length = 676 [14:46:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99428", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:46:17]execute_script... [14:46: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)99428", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:46:17]POST & json_proto [14:46:17]process_json_proto [14:46:17]json parsed OK: [14:46:17]protocol is kg_v1.0 [14:46:17]action value=close_receipt [14:46:17]process_action close_receipt [14:46:17]cmd_close_receipt [14:46:17]MH_GetDate [14:46:17]Write to MH i2c: F0 00 00 D7 5F 25 [14:46:17]Write i2c OK [14:46:17]MH_I2C_Read... [14:46:17]Read from MH i2c: F0 [14:46:17]MH_I2C_Read... [14:46:17]Read from MH i2c: F0 09 00 [14:46:17]MH_I2C_Read... [14:46:17]Read from MH i2c: F0 09 00 D7 5F 00 3F 52 1E 67 50 D1 6C 64 35 [14:46:17]GetLastDocTimeStamp 1730040174 [14:46:17]current date 1730040383 [14:46:17]FM_GetShiftState [14:46:17]SAM_PROTO_GetShiftState [14:46:17]wFMCommunicate request_size=4 [14:46:17]MH_SAM_APDU [14:46:17]CAPDU: 80 13 01 00 [14:46:17]Write to MH i2c: E2 08 00 D8 5F 80 13 01 00 00 00 00 00 B4 [14:46:17]Write i2c OK [14:46:17]MH_I2C_Read... [14:46:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:17]Read from MH i2c: E2 [14:46:17]MH_I2C_Read... [14:46:17]Read from MH i2c: E2 0E 00 [14:46:17]MH_I2C_Read... [14:46:17]Read from MH i2c: E2 0E 00 D8 5F 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 81 [14:46:17]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [14:46:17]wFMCommunicate OK [14:46:17]SAM_PROTO_GetShiftState done [14:46:17]FM_GetShiftState done [14:46:17]opened in 1729989044 [14:46:17]opened+sec_in_day 1730075444 [14:46:17]quantity*price = 50041 [14:46:17]sum+1 = 50042 [14:46:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 165 27.10.2024 14:46 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156614 ФПД: 187118912855128 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T144623&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156614&fm=187118912855128&tin=02508201610067®Number=0000000000091693&sum=50000 [14:46:18]StoreToDocumentArchive [14:46:18]shift 537 fd 156614 [14:46:18]save to /storage/0537/doc_00156614 [14:46:18]save last doc name /storage/0537/doc_00156614 to /storage/kkm_last_doc_name [14:46:18]save OK [14:46:18]Clear old archive folders... [14:46:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:46:18]tlvbuf is B6EE0750 [14:46:18]SAM_PROTO_ClearQueue [14:46:18]wFMCommunicate request_size=4 [14:46:18]MH_SAM_APDU [14:46:18]CAPDU: 80 09 00 00 [14:46:18]Write to MH i2c: E2 08 00 E5 5F 80 09 00 00 00 00 00 00 B6 [14:46:18]Write i2c OK [14:46:18]MH_I2C_Read... [14:46:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:46:18]Read from MH i2c: E2 [14:46:18]MH_I2C_Read... [14:46:18]Read from MH i2c: E2 03 00 [14:46:18]MH_I2C_Read... [14:46:18]Read from MH i2c: E2 03 00 E5 5F 00 90 00 B8 [14:46:18]RAPDU: 90 00 [14:46:18]wFMCommunicate OK [14:46:18]SAM_PROTO_ClearQueue done [14:46:18]KKMCreateOFDPacket [14:46:18]OFDProtocolAddRootSTLVToBuf [14:46:18]FM_MakeSignedData [14:46:18]FM_MakeSignedData [14:46:18]SAM_PROTO_SignData [14:46:18]wFMCommunicate request_size=4 [14:46:18]MH_SAM_APDU [14:46:18]CAPDU: 80 0D 01 02 [14:46:18]Write to MH i2c: E2 08 00 E6 5F 80 0D 01 02 00 00 00 00 BE [14:46:18]Write i2c OK [14:46:18]MH_I2C_Read... [14:46:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:46:18]Read from MH i2c: E2 [14:46:18]MH_I2C_Read... [14:46:18]Read from MH i2c: E2 03 00 [14:46:18]MH_I2C_Read... [14:46:18]Read from MH i2c: E2 03 00 E6 5F 00 90 00 B9 [14:46:18]RAPDU: 90 00 [14:46:18]wFMCommunicate OK [14:46:18]wFMCommunicate request_size=255 [14:46:18]MH_SAM_APDU [14:46:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 3F 52 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C6 63 02 00 35 04 06 00 AA [14:46:18]Write to MH i2c: E2 02 01 E7 5F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 3F 52 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C6 63 02 00 35 04 06 00 AA 00 00 FD [14:46:18]Write i2c OK [14:46:18]MH_I2C_Read... [14:46:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:46:19]Read from MH i2c: E2 [14:46:19]MH_I2C_Read... [14:46:19]Read from MH i2c: E2 03 00 [14:46:19]MH_I2C_Read... [14:46:19]Read from MH i2c: E2 03 00 E7 5F 00 90 00 BA [14:46:19]RAPDU: 90 00 [14:46:19]wFMCommunicate OK [14:46:19]wFMCommunicate request_size=10 [14:46:19]MH_SAM_APDU [14:46:19]CAPDU: 80 0D 02 02 05 2F 04 54 DC 58 [14:46:19]Write to MH i2c: E2 0D 00 E8 5F 80 0D 02 02 05 00 2F 04 54 DC 58 00 00 86 [14:46:19]Write i2c OK [14:46:19]MH_I2C_Read... [14:46:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:46:19]Read from MH i2c: E2 [14:46:19]MH_I2C_Read... [14:46:19]Read from MH i2c: E2 03 00 [14:46:19]MH_I2C_Read... [14:46:19]Read from MH i2c: E2 03 00 E8 5F 00 90 00 BB [14:46:19]RAPDU: 90 00 [14:46:19]wFMCommunicate OK [14:46:19]wFMCommunicate request_size=4 [14:46:19]MH_SAM_APDU [14:46:19]CAPDU: 80 0D 03 02 [14:46:19]Write to MH i2c: E2 08 00 E9 5F 80 0D 03 02 00 00 00 00 C3 [14:46:19]Write i2c OK [14:46:19]MH_I2C_Read... [14:46:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:46:19]Read from MH i2c: E2 [14:46:19]MH_I2C_Read... [14:46:19]Read from MH i2c: E2 0B 00 [14:46:19]MH_I2C_Read... [14:46:19]Read from MH i2c: E2 0B 00 E9 5F 00 A9 6E 5F C6 4E 73 94 9C 90 00 F1 [14:46:19]RAPDU: A9 6E 5F C6 4E 73 94 9C 90 00 [14:46:19]wFMCommunicate OK [14:46:19]SAM_PROTO_SignData done [14:46:19]FM_MakeSignedData done [14:46:19]CreateOFDProtocolMessage [14:46:19]wFMCommunicate request_size=4 [14:46:19]MH_SAM_APDU [14:46:19]CAPDU: 80 11 00 00 [14:46:19]Write to MH i2c: E2 08 00 EA 5F 80 11 00 00 00 00 00 00 C3 [14:46:19]Write i2c OK [14:46:19]MH_I2C_Read... [14:46:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:19]Read from MH i2c: E2 [14:46:19]MH_I2C_Read... [14:46:19]Read from MH i2c: E2 17 00 [14:46:19]MH_I2C_Read... [14:46:19]Read from MH i2c: E2 17 00 EA 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 18 [14:46:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:46:19]wFMCommunicate OK [14:46:19]CreateOFDProtocolMessage done [14:46:19]OFDSenderStorePacket 156614 [14:46:19]StoreOFDPacket docnum=156614 [14:46:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 2B 61 07 01 D5 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 3F 52 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C6 63 02 00 35 04 06 00 AA 2F 04 54 DC 58 A9 6E 5F C6 4E 73 94 9C [14:46:19]CheckFolder [14:46:19]dirname=/storage/ofd_packets [14:46:19]CheckFolder done [14:46:19]ProducePacketName [14:46:19]name=ofd_packets/00156614 [14:46:19]NVStorageSaveData ofd_packets/00156614 [14:46:19]File name is /storage/ofd_packets/00156614 [14:46:19]Write 301 bytes [14:46:19]NVStorageSaveData done [14:46:19]OFDSenderStorePacket done [14:46:19]KKMCreateOFDPacket done [14:46:19]NVStorageSaveData kkm_last_timestamp [14:46:19]File name is /storage/kkm_last_timestamp [14:46:19]Write 4 bytes [14:46:19]NVStorageSaveData done [14:46:19]ExternCall_PrintAddStr [14:46:19]wPrintStart [14:46:19]Write to MH i2c: 01 00 00 EB 5F 4A [14:46:19]OFD Sender: Processing packet 156614 [packets to send 31, broken 30] [14:46:19]ProducePacketName [14:46:19]name=ofd_packets/00156614 [14:46:19]OFD Sender: To server: pG, [14:46:19]CommunicateWithHost lk.salyk.kg:30040 [14:46:19]ConnectInit lk.salyk.kg [14:46:19]Write i2c OK [14:46:19]MH_I2C_Read... [14:46:19]Read from MH i2c: 01 [14:46:19]MH_I2C_Read... [14:46:19]Read from MH i2c: 01 07 00 [14:46:19]MH_I2C_Read... [14:46:19]Read from MH i2c: 01 07 00 EB 5F 00 00 00 00 00 FF 0F 5F [14:46:19]RasterBufferAndPrint [14:46:19]line Счет N : (1)99428 [14:46:19]line ИНН: 02508201610067 [14:46:19]line Контрольно-Кассовый Чек [14:46:19]line ПРОДАЖА [14:46:19]line ТРК (МРК, ГНК) : 31 [14:46:19]line Товар: 2710124130 [14:46:19]line Аи-92-К-5 [14:46:19]line 7.480 * 66.90 [14:46:19]line = 500.41 [14:46:19]line НДС 12% НСП 1% [14:46:19]line > о реализуемом товаре [14:46:19]line ОКРУГЛЕНИЕ: -0.41 [14:46:19]line ИТОГО: 500.00 [14:46:19]line Внесено: 500.00 [14:46:19]line СДАЧА: 0.00 [14:46:19]line НСП 1% : 4.43 [14:46:19]line НДС 12% : 53.14 [14:46:19]line Наличными: 500.00 [14:46:19]line Безнал.: 0.00 [14:46:19]line Место: АЗС № 143 "Партнер Нефть" [14:46:19]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [14:46:19]line СНО: Общий режим [14:46:19]line Чек 165 27.10.2024 14:46 [14:46:19]line Смена: 537 ФФД: 1.0 [14:46:19]line ЗНМ: 0300000096 [14:46:19]line РНМ: 0000000000091693 [14:46:19]line Версия ККМ: 001 [14:46:19]line ФМ: 0000000000871792 [14:46:19]line ФД: 156614 [14:46:19]line ФПД: 187118912855128 [14:46:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T144623&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156614&fm=187118912855128&tin=02508201610067®Number=0000000000091693&sum=50000 [14:46:19]written 0, free lines is 4095 [14:46:19]Connected sock=9 [14:46:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 2B 61 07 01 D5 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 3F 52 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C6 63 02 00 35 04 06 00 AA 2F 04 54 DC 58 A9 6E 5F C6 4E 73 94 9C [14:46:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 A2 E1 47 00 8B 57 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C6 63 02 00 F4 03 04 00 AE F7 1D 67 B6 04 01 00 00 10 3E FB 08 B0 17 BF 05 [14:46:19]CommunicateWithHost err = 0 [14:46:19]CheckOFDResponse [14:46:19]1017 (14) - 77093643461234 [14:46:19]1041 (16) - 0000000000871792 [14:46:19]1040 (4) - 156614 [14:46:19]1012 (4) - 27.10.2024 08:19 [14:46:19]1206 (1) - 0 [14:46:19]OFD Sender: Remove packet 156614 [14:46:19]ProducePacketName [14:46:19]name=ofd_packets/00156614 [14:46:19]NVStorageDeleteData [14:46:19]Write to MH i2c: 01 00 00 16 60 76 [14:46:19]Write i2c OK [14:46:19]MH_I2C_Read... [14:46:19]Read from MH i2c: 01 [14:46:19]MH_I2C_Read... [14:46:19]Read from MH i2c: 01 07 00 [14:46:19]MH_I2C_Read... [14:46:19]Read from MH i2c: 01 07 00 16 60 00 00 00 00 00 EB 0C 74 [14:46:19]RasterBufferAndPrint [14:46:19]line [14:46:19]line [14:46:19]line [14:46:19]line [14:46:19]line [14:46:19]written 0, free lines is 3313 [14:46:19]process_action close_receipt done [14:46:19]requested_data is exist [14:46:19]produce_requested_data [14:46:19]requested_item fm.sn is exist - process it [14:46:19]wFMCommunicate request_size=4 [14:46:19]MH_SAM_APDU [14:46:19]CAPDU: 80 11 00 00 [14:46:19]Write to MH i2c: E2 08 00 1D 60 80 11 00 00 00 00 00 00 F7 [14:46:19]Write i2c OK [14:46:19]MH_I2C_Read... [14:46:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:46:19]Read from MH i2c: E2 [14:46:19]MH_I2C_Read... [14:46:19]Read from MH i2c: E2 17 00 [14:46:19]MH_I2C_Read... [14:46:19]Read from MH i2c: E2 17 00 1D 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 4C [14:46:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:46:19]wFMCommunicate OK [14:46:19]requested_item fd.num is exist - process it [14:46:19]SAM_PROTO_GetFieldsCounters [14:46:19]wFMCommunicate request_size=4 [14:46:19]MH_SAM_APDU [14:46:19]CAPDU: 80 13 00 00 [14:46:19]Write to MH i2c: E2 08 00 1E 60 80 13 00 00 00 00 00 00 FA [14:46:19]Write i2c OK [14:46:19]MH_I2C_Read... [14:46:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:46:20]Read from MH i2c: E2 [14:46:20]MH_I2C_Read... [14:46:20]Read from MH i2c: E2 62 00 [14:46:20]MH_I2C_Read... [14:46:20]Read from MH i2c: E2 62 00 1E 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 C6 63 02 00 0E 04 04 00 19 02 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 55 [14:46:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 C6 63 02 00 0E 04 04 00 19 02 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 [14:46:20]wFMCommunicate OK [14:46:20]SAM_PROTO_GetFieldsCounters done [14:46:20]requested_item shift.num is exist - process it [14:46:20]requested_item shift.opened is exist - process it [14:46:20]req_shift_opened [14:46:20]FM_GetShiftState [14:46:20]SAM_PROTO_GetShiftState [14:46:20]wFMCommunicate request_size=4 [14:46:20]MH_SAM_APDU [14:46:20]CAPDU: 80 13 01 00 [14:46:20]Write to MH i2c: E2 08 00 1F 60 80 13 01 00 00 00 00 00 FC [14:46:20]Write i2c OK [14:46:20]MH_I2C_Read... [14:46:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:46:20]Read from MH i2c: E2 [14:46:20]MH_I2C_Read... [14:46:20]Read from MH i2c: E2 0E 00 [14:46:20]MH_I2C_Read... [14:46:20]Read from MH i2c: E2 0E 00 1F 60 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 C9 [14:46:20]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [14:46:20]wFMCommunicate OK [14:46:20]SAM_PROTO_GetShiftState done [14:46:20]FM_GetShiftState done [14:46:20]req_shift_opened done [14:46:20]requested_item shift.open_date is exist - process it [14:46:20]req_shift_open_date [14:46:20]req_shift_open_date done [14:46:20]produce_requested_data done [14:46:20]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156614,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [14:46:20]process_action_free close_receipt [14:46:20]json_value_free [14:46:20]json_value_free done [14:46:20]process_json_proto returns [14:46:20]Send response to host [14:46:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156614,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [14:46:20]free response buf [14:46:20]execute_script done [14:46:20]execute_script returns [14:46:20]free content buf [14:46:20]Sock 10.Close socket [14:46:20]Sock 10.Thread stoped [14:46:20]OFD Sender: No OFD packet to send [14:46:25]OFD Sender: No OFD packet to send [14:46:30]OFD Sender: No OFD packet to send [14:46:35]OFD Sender: No OFD packet to send [14:46:40]OFD Sender: No OFD packet to send [14:46:45]OFD Sender: No OFD packet to send [14:46:50]OFD Sender: No OFD packet to send [14:46:55]OFD Sender: No OFD packet to send [14:47:00]OFD Sender: No OFD packet to send [14:47:00]accept exits with 8 [14:47:00]New connection [14:47:00]New thread 3066977636 created [14:47:00]Thread 3066834276 joined [14:47:00]Waiting for new connection... [14:47:00] Sock 8.Parse request [14:47:00]Sock 8.Check first char [14:47:00]Sock 8.First char is OK [14:47:00]request: POST /json_proto HTTP/1.0 [14:47:00]Method: POST [14:47:00]URL: /json_proto [14:47:00]Method is POST - this is cgi request [14:47:00]url: /json_proto [14:47:00]query_string will be loaded in cgi processing [14:47:00]execute_cgi json_proto POST (null) [14:47:00]execute_cgi path=json_proto method=POST [14:47:00]POST find Content-Length [14:47:00]Host: 172.17.63.3:8080 [14:47:00]Content-Length: 676 [14:47:00]Content-Type: application/json [14:47:00] [14:47:00]POST finish read [14:47:00]Found Content-Length = 676 [14:47:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99429", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.330, "sum" : 490.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 490.00, "total" : 490.00, "payments": [ { "type": 0, "sum" : 490.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:47:00]execute_script... [14:47: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)99429", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.330, "sum" : 490.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 490.00, "total" : 490.00, "payments": [ { "type": 0, "sum" : 490.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:47:00]POST & json_proto [14:47:00]process_json_proto [14:47:00]json parsed OK: [14:47:00]protocol is kg_v1.0 [14:47:00]action value=close_receipt [14:47:00]process_action close_receipt [14:47:00]cmd_close_receipt [14:47:00]MH_GetDate [14:47:00]Write to MH i2c: F0 00 00 20 60 6F [14:47:00]Write i2c OK [14:47:00]MH_I2C_Read... [14:47:00]Read from MH i2c: F0 [14:47:00]MH_I2C_Read... [14:47:00]Read from MH i2c: F0 09 00 [14:47:00]MH_I2C_Read... [14:47:00]Read from MH i2c: F0 09 00 20 60 00 6A 52 1E 67 50 D1 6C 64 AA [14:47:00]GetLastDocTimeStamp 1730040383 [14:47:00]current date 1730040426 [14:47:00]FM_GetShiftState [14:47:00]SAM_PROTO_GetShiftState [14:47:00]wFMCommunicate request_size=4 [14:47:00]MH_SAM_APDU [14:47:00]CAPDU: 80 13 01 00 [14:47:00]Write to MH i2c: E2 08 00 21 60 80 13 01 00 00 00 00 00 FE [14:47:00]Write i2c OK [14:47:00]MH_I2C_Read... [14:47:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:47:00]Read from MH i2c: E2 [14:47:00]MH_I2C_Read... [14:47:00]Read from MH i2c: E2 0E 00 [14:47:00]MH_I2C_Read... [14:47:00]Read from MH i2c: E2 0E 00 21 60 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 CB [14:47:00]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [14:47:00]wFMCommunicate OK [14:47:00]SAM_PROTO_GetShiftState done [14:47:00]FM_GetShiftState done [14:47:00]opened in 1729989044 [14:47:00]opened+sec_in_day 1730075444 [14:47:00]quantity*price = 49037 [14:47:00]sum+1 = 49039 [14:47:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 490.00 Внесено: 490.00 СДАЧА: 0.00 НСП 1% : 4.34 НДС 12% : 52.08 Наличными: 490.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 166 27.10.2024 14:47 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156615 ФПД: 147830349514980 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T144706&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156615&fm=147830349514980&tin=02508201610067®Number=0000000000091693&sum=49000 [14:47:01]StoreToDocumentArchive [14:47:01]shift 537 fd 156615 [14:47:01]save to /storage/0537/doc_00156615 [14:47:01]save last doc name /storage/0537/doc_00156615 to /storage/kkm_last_doc_name [14:47:01]save OK [14:47:01]Clear old archive folders... [14:47:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:47:01]tlvbuf is 018408D0 [14:47:01]SAM_PROTO_ClearQueue [14:47:01]wFMCommunicate request_size=4 [14:47:01]MH_SAM_APDU [14:47:01]CAPDU: 80 09 00 00 [14:47:01]Write to MH i2c: E2 08 00 2E 60 80 09 00 00 00 00 00 00 00 [14:47:01]Write i2c OK [14:47:01]MH_I2C_Read... [14:47:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:47:01]Read from MH i2c: E2 [14:47:01]MH_I2C_Read... [14:47:01]Read from MH i2c: E2 03 00 [14:47:01]MH_I2C_Read... [14:47:01]Read from MH i2c: E2 03 00 2E 60 00 90 00 02 [14:47:01]RAPDU: 90 00 [14:47:01]wFMCommunicate OK [14:47:01]SAM_PROTO_ClearQueue done [14:47:01]KKMCreateOFDPacket [14:47:01]OFDProtocolAddRootSTLVToBuf [14:47:01]FM_MakeSignedData [14:47:01]FM_MakeSignedData [14:47:01]SAM_PROTO_SignData [14:47:01]wFMCommunicate request_size=4 [14:47:01]MH_SAM_APDU [14:47:01]CAPDU: 80 0D 01 02 [14:47:01]Write to MH i2c: E2 08 00 2F 60 80 0D 01 02 00 00 00 00 08 [14:47:01]Write i2c OK [14:47:01]MH_I2C_Read... [14:47:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:47:01]Read from MH i2c: E2 [14:47:01]MH_I2C_Read... [14:47:01]Read from MH i2c: E2 03 00 [14:47:01]MH_I2C_Read... [14:47:01]Read from MH i2c: E2 03 00 2F 60 00 90 00 03 [14:47:01]RAPDU: 90 00 [14:47:01]wFMCommunicate OK [14:47:01]wFMCommunicate request_size=255 [14:47:01]MH_SAM_APDU [14:47: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 A2 1C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8E BF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 14 00 00 00 00 07 04 06 00 68 BF 00 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 6A 52 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C7 63 02 00 35 04 06 00 86 [14:47:01]Write to MH i2c: E2 02 01 30 60 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 1C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8E BF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 14 00 00 00 00 07 04 06 00 68 BF 00 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 6A 52 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C7 63 02 00 35 04 06 00 86 00 00 7F [14:47:01]Write i2c OK [14:47:01]MH_I2C_Read... [14:47:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:47:02]Read from MH i2c: E2 [14:47:02]MH_I2C_Read... [14:47:02]Read from MH i2c: E2 03 00 [14:47:02]MH_I2C_Read... [14:47:02]Read from MH i2c: E2 03 00 30 60 00 90 00 04 [14:47:02]RAPDU: 90 00 [14:47:02]wFMCommunicate OK [14:47:02]wFMCommunicate request_size=10 [14:47:02]MH_SAM_APDU [14:47:02]CAPDU: 80 0D 02 02 05 73 6F 78 48 E4 [14:47:02]Write to MH i2c: E2 0D 00 31 60 80 0D 02 02 05 00 73 6F 78 48 E4 00 00 9B [14:47:02]Write i2c OK [14:47:02]MH_I2C_Read... [14:47:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:47:02]Read from MH i2c: E2 [14:47:02]MH_I2C_Read... [14:47:02]Read from MH i2c: E2 03 00 [14:47:02]MH_I2C_Read... [14:47:02]Read from MH i2c: E2 03 00 31 60 00 90 00 05 [14:47:02]RAPDU: 90 00 [14:47:02]wFMCommunicate OK [14:47:02]wFMCommunicate request_size=4 [14:47:02]MH_SAM_APDU [14:47:02]CAPDU: 80 0D 03 02 [14:47:02]Write to MH i2c: E2 08 00 32 60 80 0D 03 02 00 00 00 00 0D [14:47:02]Write i2c OK [14:47:02]MH_I2C_Read... [14:47:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:47:02]Read from MH i2c: E2 [14:47:02]MH_I2C_Read... [14:47:02]Read from MH i2c: E2 0B 00 [14:47:02]MH_I2C_Read... [14:47:02]Read from MH i2c: E2 0B 00 32 60 00 FE 0B B1 AC 15 55 D7 12 90 00 C7 [14:47:02]RAPDU: FE 0B B1 AC 15 55 D7 12 90 00 [14:47:02]wFMCommunicate OK [14:47:02]SAM_PROTO_SignData done [14:47:02]FM_MakeSignedData done [14:47:02]CreateOFDProtocolMessage [14:47:02]wFMCommunicate request_size=4 [14:47:02]MH_SAM_APDU [14:47:02]CAPDU: 80 11 00 00 [14:47:02]Write to MH i2c: E2 08 00 33 60 80 11 00 00 00 00 00 00 0D [14:47:02]Write i2c OK [14:47:02]MH_I2C_Read... [14:47:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:47:02]Read from MH i2c: E2 [14:47:02]MH_I2C_Read... [14:47:02]Read from MH i2c: E2 17 00 [14:47:02]MH_I2C_Read... [14:47:02]Read from MH i2c: E2 17 00 33 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 62 [14:47:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:47:02]wFMCommunicate OK [14:47:02]CreateOFDProtocolMessage done [14:47:02]OFDSenderStorePacket 156615 [14:47:02]StoreOFDPacket docnum=156615 [14:47:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 87 AB 07 01 8A 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 A2 1C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8E BF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 14 00 00 00 00 07 04 06 00 68 BF 00 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 6A 52 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C7 63 02 00 35 04 06 00 86 73 6F 78 48 E4 FE 0B B1 AC 15 55 D7 12 [14:47:02]CheckFolder [14:47:02]dirname=/storage/ofd_packets [14:47:02]CheckFolder done [14:47:02]ProducePacketName [14:47:02]name=ofd_packets/00156615 [14:47:02]NVStorageSaveData ofd_packets/00156615 [14:47:02]File name is /storage/ofd_packets/00156615 [14:47:02]Write 301 bytes [14:47:02]NVStorageSaveData done [14:47:02]OFDSenderStorePacket done [14:47:02]KKMCreateOFDPacket done [14:47:02]NVStorageSaveData kkm_last_timestamp [14:47:02]File name is /storage/kkm_last_timestamp [14:47:02]Write 4 bytes [14:47:02]NVStorageSaveData done [14:47:02]ExternCall_PrintAddStr [14:47:02]wPrintStart [14:47:02]Write to MH i2c: 01 00 00 34 60 94 [14:47:02]Write i2c OK [14:47:02]MH_I2C_Read... [14:47:02]Read from MH i2c: 01 [14:47:02]MH_I2C_Read... [14:47:02]Read from MH i2c: 01 07 00 [14:47:02]MH_I2C_Read... [14:47:02]Read from MH i2c: 01 07 00 34 60 00 00 00 00 00 FF 0F A9 [14:47:02]RasterBufferAndPrint [14:47:02]line Счет N : (1)99429 [14:47:02]line ИНН: 02508201610067 [14:47:02]line Контрольно-Кассовый Чек [14:47:02]line ПРОДАЖА [14:47:02]line ТРК (МРК, ГНК) : 21 [14:47:02]line Товар: 2710124130 [14:47:02]line Аи-92-К-5 [14:47:02]line 7.330 * 66.90 [14:47:02]line = 490.38 [14:47:02]line НДС 12% НСП 1% [14:47:02]line > о реализуемом товаре [14:47:02]line ОКРУГЛЕНИЕ: -0.38 [14:47:02]line ИТОГО: 490.00 [14:47:02]line Внесено: 490.00 [14:47:02]line СДАЧА: 0.00 [14:47:02]line НСП 1% : 4.34 [14:47:02]line НДС 12% : 52.08 [14:47:02]line Наличными: 490.00 [14:47:02]line Безнал.: 0.00 [14:47:02]line Место: АЗС № 143 "Партнер Нефть" [14:47:02]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [14:47:02]line СНО: Общий режим [14:47:02]line Чек 166 27.10.2024 14:47 [14:47:02]line Смена: 537 ФФД: 1.0 [14:47:02]line ЗНМ: 0300000096 [14:47:02]line РНМ: 0000000000091693 [14:47:02]line Версия ККМ: 001 [14:47:02]line ФМ: 0000000000871792 [14:47:02]line ФД: 156615 [14:47:02]line ФПД: 147830349514980 [14:47:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T144706&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156615&fm=147830349514980&tin=02508201610067®Number=0000000000091693&sum=49000 [14:47:02]OFD Sender: Processing packet 156615 [packets to send 31, broken 30] [14:47:02]ProducePacketName [14:47:02]name=ofd_packets/00156615 [14:47:02]OFD Sender: To server: pG, [14:47:02]CommunicateWithHost lk.salyk.kg:30040 [14:47:02]ConnectInit lk.salyk.kg [14:47:02]written 0, free lines is 4095 [14:47:02]Connected sock=10 [14:47:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 87 AB 07 01 8A 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 A2 1C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8E BF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B2 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 14 00 00 00 00 07 04 06 00 68 BF 00 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 6A 52 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C7 63 02 00 35 04 06 00 86 73 6F 78 48 E4 FE 0B B1 AC 15 55 D7 12 [14:47:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 FD 39 47 00 9D 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 31 37 39 32 10 04 04 00 C7 63 02 00 F4 03 04 00 DA F7 1D 67 B6 04 01 00 00 E0 DC 75 D3 D4 68 4C 74 [14:47:02]CommunicateWithHost err = 0 [14:47:02]CheckOFDResponse [14:47:02]1017 (14) - 77093643461234 [14:47:02]1041 (16) - 0000000000871792 [14:47:02]1040 (4) - 156615 [14:47:02]1012 (4) - 27.10.2024 08:20 [14:47:02]1206 (1) - 0 [14:47:02]OFD Sender: Remove packet 156615 [14:47:02]ProducePacketName [14:47:02]name=ofd_packets/00156615 [14:47:02]NVStorageDeleteData [14:47:02]Write to MH i2c: 01 00 00 5F 60 BF [14:47:02]Write i2c OK [14:47:02]MH_I2C_Read... [14:47:02]Read from MH i2c: 01 [14:47:02]MH_I2C_Read... [14:47:02]Read from MH i2c: 01 07 00 [14:47:02]MH_I2C_Read... [14:47:02]Read from MH i2c: 01 07 00 5F 60 00 00 00 00 00 DD 0C AF [14:47:02]RasterBufferAndPrint [14:47:02]line [14:47:02]line [14:47:02]line [14:47:02]line [14:47:02]line [14:47:02]written 0, free lines is 3302 [14:47:02]process_action close_receipt done [14:47:02]requested_data is exist [14:47:02]produce_requested_data [14:47:02]requested_item fm.sn is exist - process it [14:47:02]wFMCommunicate request_size=4 [14:47:02]MH_SAM_APDU [14:47:02]CAPDU: 80 11 00 00 [14:47:02]Write to MH i2c: E2 08 00 66 60 80 11 00 00 00 00 00 00 40 [14:47:02]Write i2c OK [14:47:02]MH_I2C_Read... [14:47:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:47:03]Read from MH i2c: E2 [14:47:03]MH_I2C_Read... [14:47:03]Read from MH i2c: E2 17 00 [14:47:03]MH_I2C_Read... [14:47:03]Read from MH i2c: E2 17 00 66 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 95 [14:47:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:47:03]wFMCommunicate OK [14:47:03]requested_item fd.num is exist - process it [14:47:03]SAM_PROTO_GetFieldsCounters [14:47:03]wFMCommunicate request_size=4 [14:47:03]MH_SAM_APDU [14:47:03]CAPDU: 80 13 00 00 [14:47:03]Write to MH i2c: E2 08 00 67 60 80 13 00 00 00 00 00 00 43 [14:47:03]Write i2c OK [14:47:03]MH_I2C_Read... [14:47:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:47:03]Read from MH i2c: E2 [14:47:03]MH_I2C_Read... [14:47:03]Read from MH i2c: E2 62 00 [14:47:03]MH_I2C_Read... [14:47:03]Read from MH i2c: E2 62 00 67 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 C7 63 02 00 0E 04 04 00 19 02 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 A2 [14:47:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 C7 63 02 00 0E 04 04 00 19 02 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 [14:47:03]wFMCommunicate OK [14:47:03]SAM_PROTO_GetFieldsCounters done [14:47:03]requested_item shift.num is exist - process it [14:47:03]requested_item shift.opened is exist - process it [14:47:03]req_shift_opened [14:47:03]FM_GetShiftState [14:47:03]SAM_PROTO_GetShiftState [14:47:03]wFMCommunicate request_size=4 [14:47:03]MH_SAM_APDU [14:47:03]CAPDU: 80 13 01 00 [14:47:03]Write to MH i2c: E2 08 00 68 60 80 13 01 00 00 00 00 00 45 [14:47:03]Write i2c OK [14:47:03]MH_I2C_Read... [14:47:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:47:03]Read from MH i2c: E2 [14:47:03]MH_I2C_Read... [14:47:03]Read from MH i2c: E2 0E 00 [14:47:03]MH_I2C_Read... [14:47:03]Read from MH i2c: E2 0E 00 68 60 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 12 [14:47:03]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [14:47:03]wFMCommunicate OK [14:47:03]SAM_PROTO_GetShiftState done [14:47:03]FM_GetShiftState done [14:47:03]req_shift_opened done [14:47:03]requested_item shift.open_date is exist - process it [14:47:03]req_shift_open_date [14:47:03]req_shift_open_date done [14:47:03]produce_requested_data done [14:47:03]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156615,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [14:47:03]process_action_free close_receipt [14:47:03]json_value_free [14:47:03]json_value_free done [14:47:03]process_json_proto returns [14:47:03]Send response to host [14:47:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156615,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [14:47:03]free response buf [14:47:03]execute_script done [14:47:03]execute_script returns [14:47:03]free content buf [14:47:03]Sock 8.Close socket [14:47:03]Sock 8.Thread stoped [14:47:03]OFD Sender: No OFD packet to send [14:47:08]OFD Sender: No OFD packet to send [14:47:13]OFD Sender: No OFD packet to send [14:47:18]OFD Sender: No OFD packet to send [14:47:23]OFD Sender: No OFD packet to send [14:47:28]OFD Sender: No OFD packet to send [14:47:33]OFD Sender: No OFD packet to send [14:47:38]OFD Sender: No OFD packet to send [14:47:43]OFD Sender: No OFD packet to send [14:47:48]OFD Sender: No OFD packet to send [14:47:53]OFD Sender: No OFD packet to send [14:47:58]OFD Sender: No OFD packet to send [14:48:03]OFD Sender: No OFD packet to send [14:48:08]OFD Sender: No OFD packet to send [14:48:13]OFD Sender: No OFD packet to send [14:48:18]OFD Sender: No OFD packet to send [14:48:23]OFD Sender: No OFD packet to send [14:48:28]OFD Sender: No OFD packet to send [14:48:33]OFD Sender: No OFD packet to send [14:48:38]OFD Sender: No OFD packet to send [14:48:43]OFD Sender: No OFD packet to send [14:48:48]OFD Sender: No OFD packet to send [14:48:53]OFD Sender: No OFD packet to send [14:48:58]OFD Sender: No OFD packet to send [14:49:03]OFD Sender: No OFD packet to send [14:49:08]OFD Sender: No OFD packet to send [14:49:13]OFD Sender: No OFD packet to send [14:49:18]OFD Sender: No OFD packet to send [14:49:23]OFD Sender: No OFD packet to send [14:49:28]OFD Sender: No OFD packet to send [14:49:33]OFD Sender: No OFD packet to send [14:49:38]OFD Sender: No OFD packet to send [14:49:43]OFD Sender: No OFD packet to send [14:49:48]OFD Sender: No OFD packet to send [14:49:53]OFD Sender: No OFD packet to send [14:49:58]OFD Sender: No OFD packet to send [14:50:03]OFD Sender: No OFD packet to send [14:50:08]OFD Sender: No OFD packet to send [14:50:13]OFD Sender: No OFD packet to send [14:50:18]OFD Sender: No OFD packet to send [14:50:23]OFD Sender: No OFD packet to send [14:50:28]OFD Sender: No OFD packet to send [14:50:33]OFD Sender: No OFD packet to send [14:50:38]OFD Sender: No OFD packet to send [14:50:43]OFD Sender: No OFD packet to send [14:50:48]OFD Sender: No OFD packet to send [14:50:53]OFD Sender: No OFD packet to send [14:50:58]OFD Sender: No OFD packet to send [14:51:03]OFD Sender: No OFD packet to send [14:51:08]OFD Sender: No OFD packet to send [14:51:13]OFD Sender: No OFD packet to send [14:51:18]OFD Sender: No OFD packet to send [14:51:23]OFD Sender: No OFD packet to send [14:51:28]OFD Sender: No OFD packet to send [14:51:33]OFD Sender: No OFD packet to send [14:51:38]OFD Sender: No OFD packet to send [14:51:43]OFD Sender: No OFD packet to send [14:51:48]OFD Sender: No OFD packet to send [14:51:53]OFD Sender: No OFD packet to send [14:51:58]OFD Sender: No OFD packet to send [14:52:03]OFD Sender: No OFD packet to send [14:52:08]OFD Sender: No OFD packet to send [14:52:13]OFD Sender: No OFD packet to send [14:52:18]OFD Sender: No OFD packet to send [14:52:23]OFD Sender: No OFD packet to send [14:52:28]OFD Sender: No OFD packet to send [14:52:33]OFD Sender: No OFD packet to send [14:52:38]OFD Sender: No OFD packet to send [14:52:43]OFD Sender: No OFD packet to send [14:52:48]OFD Sender: No OFD packet to send [14:52:53]OFD Sender: No OFD packet to send [14:52:58]OFD Sender: No OFD packet to send [14:53:03]OFD Sender: No OFD packet to send [14:53:08]OFD Sender: No OFD packet to send [14:53:13]OFD Sender: No OFD packet to send [14:53:18]OFD Sender: No OFD packet to send [14:53:23]OFD Sender: No OFD packet to send [14:53:28]OFD Sender: No OFD packet to send [14:53:33]OFD Sender: No OFD packet to send [14:53:38]OFD Sender: No OFD packet to send [14:53:43]OFD Sender: No OFD packet to send [14:53:48]OFD Sender: No OFD packet to send [14:53:53]OFD Sender: No OFD packet to send [14:53:58]OFD Sender: No OFD packet to send [14:54:03]OFD Sender: No OFD packet to send [14:54:08]OFD Sender: No OFD packet to send [14:54:13]OFD Sender: No OFD packet to send [14:54:18]OFD Sender: No OFD packet to send [14:54:23]OFD Sender: No OFD packet to send [14:54:28]OFD Sender: No OFD packet to send [14:54:33]OFD Sender: No OFD packet to send [14:54:38]OFD Sender: No OFD packet to send [14:54:43]OFD Sender: No OFD packet to send [14:54:48]OFD Sender: No OFD packet to send [14:54:53]OFD Sender: No OFD packet to send [14:54:58]OFD Sender: No OFD packet to send [14:55:03]OFD Sender: No OFD packet to send [14:55:08]OFD Sender: No OFD packet to send [14:55:13]OFD Sender: No OFD packet to send [14:55:15]accept exits with 9 [14:55:15]New connection [14:55:15]New thread 3066834276 created [14:55:15]Thread 3066977636 joined [14:55:15]Waiting for new connection... [14:55:15] Sock 9.Parse request [14:55:15]Sock 9.Check first char [14:55:15]Sock 9.First char is OK [14:55:15]request: POST /json_proto HTTP/1.0 [14:55:15]Method: POST [14:55:15]URL: /json_proto [14:55:15]Method is POST - this is cgi request [14:55:15]url: /json_proto [14:55:15]query_string will be loaded in cgi processing [14:55:15]execute_cgi json_proto POST (null) [14:55:15]execute_cgi path=json_proto method=POST [14:55:15]POST find Content-Length [14:55:15]Host: 172.17.63.3:8080 [14:55:15]Content-Length: 676 [14:55:15]Content-Type: application/json [14:55:15] [14:55:15]POST finish read [14:55:15]Found Content-Length = 676 [14:55:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99430", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.140, "sum" : 210.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 210.00, "total" : 210.00, "payments": [ { "type": 0, "sum" : 210.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:55:15]execute_script... [14:55: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)99430", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.140, "sum" : 210.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 210.00, "total" : 210.00, "payments": [ { "type": 0, "sum" : 210.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:55:15]POST & json_proto [14:55:15]process_json_proto [14:55:15]json parsed OK: [14:55:15]protocol is kg_v1.0 [14:55:15]action value=close_receipt [14:55:15]process_action close_receipt [14:55:15]cmd_close_receipt [14:55:15]MH_GetDate [14:55:15]Write to MH i2c: F0 00 00 69 60 B8 [14:55:15]Write i2c OK [14:55:15]MH_I2C_Read... [14:55:15]Read from MH i2c: F0 [14:55:15]MH_I2C_Read... [14:55:15]Read from MH i2c: F0 09 00 [14:55:15]MH_I2C_Read... [14:55:15]Read from MH i2c: F0 09 00 69 60 00 59 54 1E 67 50 D1 6C 64 E4 [14:55:15]GetLastDocTimeStamp 1730040426 [14:55:15]current date 1730040921 [14:55:15]FM_GetShiftState [14:55:15]SAM_PROTO_GetShiftState [14:55:15]wFMCommunicate request_size=4 [14:55:15]MH_SAM_APDU [14:55:15]CAPDU: 80 13 01 00 [14:55:15]Write to MH i2c: E2 08 00 6A 60 80 13 01 00 00 00 00 00 47 [14:55:15]Write i2c OK [14:55:15]MH_I2C_Read... [14:55:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:55:15]Read from MH i2c: E2 [14:55:15]MH_I2C_Read... [14:55:15]Read from MH i2c: E2 0E 00 [14:55:15]MH_I2C_Read... [14:55:15]Read from MH i2c: E2 0E 00 6A 60 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 14 [14:55:15]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [14:55:15]wFMCommunicate OK [14:55:15]SAM_PROTO_GetShiftState done [14:55:15]FM_GetShiftState done [14:55:15]opened in 1729989044 [14:55:15]opened+sec_in_day 1730075444 [14:55:15]quantity*price = 21006 [14:55:15]sum+1 = 21008 [14:55:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 210.00 Внесено: 210.00 СДАЧА: 0.00 НСП 1% : 1.86 НДС 12% : 22.31 Наличными: 210.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 167 27.10.2024 14:55 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156616 ФПД: 125418850337602 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T145521&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156616&fm=125418850337602&tin=02508201610067®Number=0000000000091693&sum=21000 [14:55:16]StoreToDocumentArchive [14:55:16]shift 537 fd 156616 [14:55:16]save to /storage/0537/doc_00156616 [14:55:16]save last doc name /storage/0537/doc_00156616 to /storage/kkm_last_doc_name [14:55:16]save OK [14:55:16]Clear old archive folders... [14:55:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:55:16]tlvbuf is B6DAE840 [14:55:16]SAM_PROTO_ClearQueue [14:55:16]wFMCommunicate request_size=4 [14:55:16]MH_SAM_APDU [14:55:16]CAPDU: 80 09 00 00 [14:55:16]Write to MH i2c: E2 08 00 77 60 80 09 00 00 00 00 00 00 49 [14:55:16]Write i2c OK [14:55:16]MH_I2C_Read... [14:55:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:55:16]Read from MH i2c: E2 [14:55:16]MH_I2C_Read... [14:55:16]Read from MH i2c: E2 03 00 [14:55:16]MH_I2C_Read... [14:55:16]Read from MH i2c: E2 03 00 77 60 00 90 00 4B [14:55:16]RAPDU: 90 00 [14:55:16]wFMCommunicate OK [14:55:16]SAM_PROTO_ClearQueue done [14:55:16]KKMCreateOFDPacket [14:55:16]OFDProtocolAddRootSTLVToBuf [14:55:16]FM_MakeSignedData [14:55:16]FM_MakeSignedData [14:55:16]SAM_PROTO_SignData [14:55:16]wFMCommunicate request_size=4 [14:55:16]MH_SAM_APDU [14:55:16]CAPDU: 80 0D 01 02 [14:55:16]Write to MH i2c: E2 08 00 78 60 80 0D 01 02 00 00 00 00 51 [14:55:16]Write i2c OK [14:55:16]MH_I2C_Read... [14:55:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:55:16]Read from MH i2c: E2 [14:55:16]MH_I2C_Read... [14:55:16]Read from MH i2c: E2 03 00 [14:55:16]MH_I2C_Read... [14:55:16]Read from MH i2c: E2 03 00 78 60 00 90 00 4C [14:55:16]RAPDU: 90 00 [14:55:16]wFMCommunicate OK [14:55:16]wFMCommunicate request_size=255 [14:55:16]MH_SAM_APDU [14:55:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 59 54 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C8 63 02 00 35 04 06 00 72 [14:55:16]Write to MH i2c: E2 02 01 79 60 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 59 54 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C8 63 02 00 35 04 06 00 72 00 00 0D [14:55:16]Write i2c OK [14:55:16]MH_I2C_Read... [14:55:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:55:16]Read from MH i2c: E2 [14:55:16]MH_I2C_Read... [14:55:16]Read from MH i2c: E2 03 00 [14:55:16]MH_I2C_Read... [14:55:16]Read from MH i2c: E2 03 00 79 60 00 90 00 4D [14:55:16]RAPDU: 90 00 [14:55:16]wFMCommunicate OK [14:55:16]wFMCommunicate request_size=10 [14:55:16]MH_SAM_APDU [14:55:16]CAPDU: 80 0D 02 02 05 11 5A 05 C3 42 [14:55:16]Write to MH i2c: E2 0D 00 7A 60 80 0D 02 02 05 00 11 5A 05 C3 42 00 00 D3 [14:55:16]Write i2c OK [14:55:16]MH_I2C_Read... [14:55:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:55:17]Read from MH i2c: E2 [14:55:17]MH_I2C_Read... [14:55:17]Read from MH i2c: E2 03 00 [14:55:17]MH_I2C_Read... [14:55:17]Read from MH i2c: E2 03 00 7A 60 00 90 00 4E [14:55:17]RAPDU: 90 00 [14:55:17]wFMCommunicate OK [14:55:17]wFMCommunicate request_size=4 [14:55:17]MH_SAM_APDU [14:55:17]CAPDU: 80 0D 03 02 [14:55:17]Write to MH i2c: E2 08 00 7B 60 80 0D 03 02 00 00 00 00 56 [14:55:17]Write i2c OK [14:55:17]MH_I2C_Read... [14:55:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:55:17]Read from MH i2c: E2 [14:55:17]MH_I2C_Read... [14:55:17]Read from MH i2c: E2 0B 00 [14:55:17]MH_I2C_Read... [14:55:17]Read from MH i2c: E2 0B 00 7B 60 00 4E 67 AF 3D 49 8F E5 58 90 00 0D [14:55:17]RAPDU: 4E 67 AF 3D 49 8F E5 58 90 00 [14:55:17]wFMCommunicate OK [14:55:17]SAM_PROTO_SignData done [14:55:17]FM_MakeSignedData done [14:55:17]CreateOFDProtocolMessage [14:55:17]wFMCommunicate request_size=4 [14:55:17]MH_SAM_APDU [14:55:17]CAPDU: 80 11 00 00 [14:55:17]Write to MH i2c: E2 08 00 7C 60 80 11 00 00 00 00 00 00 56 [14:55:17]Write i2c OK [14:55:17]MH_I2C_Read... [14:55:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:55:17]Read from MH i2c: E2 [14:55:17]MH_I2C_Read... [14:55:17]Read from MH i2c: E2 17 00 [14:55:17]MH_I2C_Read... [14:55:17]Read from MH i2c: E2 17 00 7C 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 AB [14:55:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:55:17]wFMCommunicate OK [14:55:17]CreateOFDProtocolMessage done [14:55:17]OFDSenderStorePacket 156616 [14:55:17]StoreOFDPacket docnum=156616 [14:55:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 C0 0E 07 01 CA F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 59 54 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C8 63 02 00 35 04 06 00 72 11 5A 05 C3 42 4E 67 AF 3D 49 8F E5 58 [14:55:17]CheckFolder [14:55:17]dirname=/storage/ofd_packets [14:55:17]CheckFolder done [14:55:17]ProducePacketName [14:55:17]name=ofd_packets/00156616 [14:55:17]NVStorageSaveData ofd_packets/00156616 [14:55:17]File name is /storage/ofd_packets/00156616 [14:55:17]Write 301 bytes [14:55:17]NVStorageSaveData done [14:55:17]OFDSenderStorePacket done [14:55:17]KKMCreateOFDPacket done [14:55:17]NVStorageSaveData kkm_last_timestamp [14:55:17]File name is /storage/kkm_last_timestamp [14:55:17]Write 4 bytes [14:55:17]NVStorageSaveData done [14:55:17]ExternCall_PrintAddStr [14:55:17]wPrintStart [14:55:17]Write to MH i2c: 01 00 00 7D 60 DD [14:55:17]Write i2c OK [14:55:17]MH_I2C_Read... [14:55:17]Read from MH i2c: 01 [14:55:17]MH_I2C_Read... [14:55:17]Read from MH i2c: 01 07 00 [14:55:17]MH_I2C_Read... [14:55:17]Read from MH i2c: 01 07 00 7D 60 00 00 00 00 00 FF 0F F2 [14:55:17]RasterBufferAndPrint [14:55:17]line Счет N : (1)99430 [14:55:17]line ИНН: 02508201610067 [14:55:17]line Контрольно-Кассовый Чек [14:55:17]line ПРОДАЖА [14:55:17]line ТРК (МРК, ГНК) : 11 [14:55:17]line Товар: 2710124130 [14:55:17]line Аи-92-К-5 [14:55:17]line 3.140 * 66.90 [14:55:17]line = 210.07 [14:55:17]line НДС 12% НСП 1% [14:55:17]line > о реализуемом товаре [14:55:17]line ОКРУГЛЕНИЕ: -0.07 [14:55:17]line ИТОГО: 210.00 [14:55:17]line Внесено: 210.00 [14:55:17]line СДАЧА: 0.00 [14:55:17]line НСП 1% : 1.86 [14:55:17]line НДС 12% : 22.31 [14:55:17]line Наличными: 210.00 [14:55:17]line Безнал.: 0.00 [14:55:17]line Место: АЗС № 143 "Партнер Нефть" [14:55:17]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [14:55:17]line СНО: Общий режим [14:55:17]line Чек 167 27.10.2024 14:55 [14:55:17]line Смена: 537 ФФД: 1.0 [14:55:17]line ЗНМ: 0300000096 [14:55:17]line РНМ: 0000000000091693 [14:55:17]line Версия ККМ: 001 [14:55:17]line ФМ: 0000000000871792 [14:55:17]line ФД: 156616 [14:55:17]line ФПД: 125418850337602 [14:55:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T145521&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156616&fm=125418850337602&tin=02508201610067®Number=0000000000091693&sum=21000 [14:55:17]OFD Sender: Processing packet 156616 [packets to send 31, broken 30] [14:55:17]ProducePacketName [14:55:17]name=ofd_packets/00156616 [14:55:17]OFD Sender: To server: pG, [14:55:17]CommunicateWithHost lk.salyk.kg:30040 [14:55:17]ConnectInit lk.salyk.kg [14:55:17]written 0, free lines is 4095 [14:55:17]Connected sock=10 [14:55:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 C0 0E 07 01 CA F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 44 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 59 54 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C8 63 02 00 35 04 06 00 72 11 5A 05 C3 42 4E 67 AF 3D 49 8F E5 58 [14:55:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 9E 14 47 00 C2 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C8 63 02 00 F4 03 04 00 C8 F9 1D 67 B6 04 01 00 00 9A 29 39 29 DB FA CC 74 [14:55:17]CommunicateWithHost err = 0 [14:55:17]CheckOFDResponse [14:55:17]1017 (14) - 77093643461234 [14:55:17]1041 (16) - 0000000000871792 [14:55:17]1040 (4) - 156616 [14:55:17]1012 (4) - 27.10.2024 08:28 [14:55:17]1206 (1) - 0 [14:55:17]OFD Sender: Remove packet 156616 [14:55:17]ProducePacketName [14:55:17]name=ofd_packets/00156616 [14:55:17]NVStorageDeleteData [14:55:17]Write to MH i2c: 01 00 00 A8 60 08 [14:55:17]Write i2c OK [14:55:17]MH_I2C_Read... [14:55:17]Read from MH i2c: 01 [14:55:17]MH_I2C_Read... [14:55:17]Read from MH i2c: 01 07 00 [14:55:17]MH_I2C_Read... [14:55:17]Read from MH i2c: 01 07 00 A8 60 00 00 00 00 00 CF 0C EA [14:55:17]RasterBufferAndPrint [14:55:17]line [14:55:17]line [14:55:17]line [14:55:17]line [14:55:17]line [14:55:17]written 0, free lines is 3287 [14:55:17]process_action close_receipt done [14:55:17]requested_data is exist [14:55:17]produce_requested_data [14:55:17]requested_item fm.sn is exist - process it [14:55:17]wFMCommunicate request_size=4 [14:55:17]MH_SAM_APDU [14:55:17]CAPDU: 80 11 00 00 [14:55:17]Write to MH i2c: E2 08 00 AF 60 80 11 00 00 00 00 00 00 89 [14:55:17]Write i2c OK [14:55:17]MH_I2C_Read... [14:55:17]Read from MH i2c: E2 [14:55:17]MH_I2C_Read... [14:55:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:55:17]Read from MH i2c: E2 17 00 [14:55:17]MH_I2C_Read... [14:55:17]Read from MH i2c: E2 17 00 AF 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 DE [14:55:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:55:17]wFMCommunicate OK [14:55:17]requested_item fd.num is exist - process it [14:55:17]SAM_PROTO_GetFieldsCounters [14:55:17]wFMCommunicate request_size=4 [14:55:17]MH_SAM_APDU [14:55:17]CAPDU: 80 13 00 00 [14:55:17]Write to MH i2c: E2 08 00 B0 60 80 13 00 00 00 00 00 00 8C [14:55:17]Write i2c OK [14:55:17]MH_I2C_Read... [14:55:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:55:18]Read from MH i2c: E2 [14:55:18]MH_I2C_Read... [14:55:18]Read from MH i2c: E2 62 00 [14:55:18]MH_I2C_Read... [14:55:18]Read from MH i2c: E2 62 00 B0 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 C8 63 02 00 0E 04 04 00 19 02 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 EF [14:55: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 C8 63 02 00 0E 04 04 00 19 02 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 [14:55:18]wFMCommunicate OK [14:55:18]SAM_PROTO_GetFieldsCounters done [14:55:18]requested_item shift.num is exist - process it [14:55:18]requested_item shift.opened is exist - process it [14:55:18]req_shift_opened [14:55:18]FM_GetShiftState [14:55:18]SAM_PROTO_GetShiftState [14:55:18]wFMCommunicate request_size=4 [14:55:18]MH_SAM_APDU [14:55:18]CAPDU: 80 13 01 00 [14:55:18]Write to MH i2c: E2 08 00 B1 60 80 13 01 00 00 00 00 00 8E [14:55:18]Write i2c OK [14:55:18]MH_I2C_Read... [14:55:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:55:18]Read from MH i2c: E2 [14:55:18]MH_I2C_Read... [14:55:18]Read from MH i2c: E2 0E 00 [14:55:18]MH_I2C_Read... [14:55:18]Read from MH i2c: E2 0E 00 B1 60 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 5B [14:55:18]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [14:55:18]wFMCommunicate OK [14:55:18]SAM_PROTO_GetShiftState done [14:55:18]FM_GetShiftState done [14:55:18]req_shift_opened done [14:55:18]requested_item shift.open_date is exist - process it [14:55:18]req_shift_open_date [14:55:18]req_shift_open_date done [14:55:18]produce_requested_data done [14:55:18]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156616,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [14:55:18]process_action_free close_receipt [14:55:18]json_value_free [14:55:18]json_value_free done [14:55:18]process_json_proto returns [14:55:18]Send response to host [14:55:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156616,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [14:55:18]free response buf [14:55:18]execute_script done [14:55:18]execute_script returns [14:55:18]free content buf [14:55:18]Sock 9.Close socket [14:55:18]Sock 9.Thread stoped [14:55:18]OFD Sender: No OFD packet to send [14:55:23]OFD Sender: No OFD packet to send [14:55:28]OFD Sender: No OFD packet to send [14:55:33]OFD Sender: No OFD packet to send [14:55:38]OFD Sender: No OFD packet to send [14:55:43]OFD Sender: No OFD packet to send [14:55:48]OFD Sender: No OFD packet to send [14:55:53]OFD Sender: No OFD packet to send [14:55:55]accept exits with 8 [14:55:55]New connection [14:55:55]New thread 3066977636 created [14:55:55]Thread 3066834276 joined [14:55:55]Waiting for new connection... [14:55:55] Sock 8.Parse request [14:55:55]Sock 8.Check first char [14:55:55]Sock 8.First char is OK [14:55:55]request: POST /json_proto HTTP/1.0 [14:55:55]Method: POST [14:55:55]URL: /json_proto [14:55:55]Method is POST - this is cgi request [14:55:55]url: /json_proto [14:55:55]query_string will be loaded in cgi processing [14:55:55]execute_cgi json_proto POST (null) [14:55:55]execute_cgi path=json_proto method=POST [14:55:55]POST find Content-Length [14:55:55]Host: 172.17.63.3:8080 [14:55:55]Content-Length: 676 [14:55:55]Content-Type: application/json [14:55:55] [14:55:55]POST finish read [14:55:55]Found Content-Length = 676 [14:55:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99431", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:55:55]execute_script... [14:55: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)99431", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:55:55]POST & json_proto [14:55:55]process_json_proto [14:55:55]json parsed OK: [14:55:55]protocol is kg_v1.0 [14:55:55]action value=close_receipt [14:55:55]process_action close_receipt [14:55:55]cmd_close_receipt [14:55:55]MH_GetDate [14:55:55]Write to MH i2c: F0 00 00 B2 60 01 [14:55:55]Write i2c OK [14:55:55]MH_I2C_Read... [14:55:55]Read from MH i2c: F0 [14:55:55]MH_I2C_Read... [14:55:55]Read from MH i2c: F0 09 00 [14:55:55]MH_I2C_Read... [14:55:55]Read from MH i2c: F0 09 00 B2 60 00 81 54 1E 67 50 D1 6C 64 55 [14:55:55]GetLastDocTimeStamp 1730040921 [14:55:55]current date 1730040961 [14:55:55]FM_GetShiftState [14:55:55]SAM_PROTO_GetShiftState [14:55:55]wFMCommunicate request_size=4 [14:55:55]MH_SAM_APDU [14:55:55]CAPDU: 80 13 01 00 [14:55:55]Write to MH i2c: E2 08 00 B3 60 80 13 01 00 00 00 00 00 90 [14:55:55]Write i2c OK [14:55:55]MH_I2C_Read... [14:55:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:55:55]Read from MH i2c: E2 [14:55:55]MH_I2C_Read... [14:55:55]Read from MH i2c: E2 0E 00 [14:55:55]MH_I2C_Read... [14:55:55]Read from MH i2c: E2 0E 00 B3 60 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 5D [14:55:55]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [14:55:55]wFMCommunicate OK [14:55:55]SAM_PROTO_GetShiftState done [14:55:55]FM_GetShiftState done [14:55:55]opened in 1729989044 [14:55:55]opened+sec_in_day 1730075444 [14:55:55]quantity*price = 25020 [14:55:55]sum+1 = 25022 [14:55:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 168 27.10.2024 14:56 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156617 ФПД: 75475225617352 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T145601&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156617&fm=75475225617352&tin=02508201610067®Number=0000000000091693&sum=25000 [14:55:56]StoreToDocumentArchive [14:55:56]shift 537 fd 156617 [14:55:56]save to /storage/0537/doc_00156617 [14:55:56]save last doc name /storage/0537/doc_00156617 to /storage/kkm_last_doc_name [14:55:56]save OK [14:55:56]Clear old archive folders... [14:55:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:55:56]tlvbuf is 01878AA0 [14:55:56]SAM_PROTO_ClearQueue [14:55:56]wFMCommunicate request_size=4 [14:55:56]MH_SAM_APDU [14:55:56]CAPDU: 80 09 00 00 [14:55:56]Write to MH i2c: E2 08 00 C0 60 80 09 00 00 00 00 00 00 92 [14:55:56]Write i2c OK [14:55:56]MH_I2C_Read... [14:55:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:55:56]Read from MH i2c: E2 [14:55:56]MH_I2C_Read... [14:55:56]Read from MH i2c: E2 03 00 [14:55:56]MH_I2C_Read... [14:55:56]Read from MH i2c: E2 03 00 C0 60 00 90 00 94 [14:55:56]RAPDU: 90 00 [14:55:56]wFMCommunicate OK [14:55:56]SAM_PROTO_ClearQueue done [14:55:56]KKMCreateOFDPacket [14:55:56]OFDProtocolAddRootSTLVToBuf [14:55:56]FM_MakeSignedData [14:55:56]FM_MakeSignedData [14:55:56]SAM_PROTO_SignData [14:55:56]wFMCommunicate request_size=4 [14:55:56]MH_SAM_APDU [14:55:56]CAPDU: 80 0D 01 02 [14:55:56]Write to MH i2c: E2 08 00 C1 60 80 0D 01 02 00 00 00 00 9A [14:55:56]Write i2c OK [14:55:56]MH_I2C_Read... [14:55:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:55:56]Read from MH i2c: E2 [14:55:56]MH_I2C_Read... [14:55:56]Read from MH i2c: E2 03 00 [14:55:56]MH_I2C_Read... [14:55:56]Read from MH i2c: E2 03 00 C1 60 00 90 00 95 [14:55:56]RAPDU: 90 00 [14:55:56]wFMCommunicate OK [14:55:56]wFMCommunicate request_size=255 [14:55:56]MH_SAM_APDU [14:55: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 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 81 54 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C9 63 02 00 35 04 06 00 44 [14:55:56]Write to MH i2c: E2 02 01 C2 60 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 81 54 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C9 63 02 00 35 04 06 00 44 00 00 96 [14:55:56]Write i2c OK [14:55:56]MH_I2C_Read... [14:55:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:55:57]Read from MH i2c: E2 [14:55:57]MH_I2C_Read... [14:55:57]Read from MH i2c: E2 03 00 [14:55:57]MH_I2C_Read... [14:55:57]Read from MH i2c: E2 03 00 C2 60 00 90 00 96 [14:55:57]RAPDU: 90 00 [14:55:57]wFMCommunicate OK [14:55:57]wFMCommunicate request_size=10 [14:55:57]MH_SAM_APDU [14:55:57]CAPDU: 80 0D 02 02 05 A4 F2 03 23 C8 [14:55:57]Write to MH i2c: E2 0D 00 C3 60 80 0D 02 02 05 00 A4 F2 03 23 C8 00 00 2B [14:55:57]Write i2c OK [14:55:57]MH_I2C_Read... [14:55:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:55:57]Read from MH i2c: E2 [14:55:57]MH_I2C_Read... [14:55:57]Read from MH i2c: E2 03 00 [14:55:57]MH_I2C_Read... [14:55:57]Read from MH i2c: E2 03 00 C3 60 00 90 00 97 [14:55:57]RAPDU: 90 00 [14:55:57]wFMCommunicate OK [14:55:57]wFMCommunicate request_size=4 [14:55:57]MH_SAM_APDU [14:55:57]CAPDU: 80 0D 03 02 [14:55:57]Write to MH i2c: E2 08 00 C4 60 80 0D 03 02 00 00 00 00 9F [14:55:57]Write i2c OK [14:55:57]MH_I2C_Read... [14:55:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:55:57]Read from MH i2c: E2 [14:55:57]MH_I2C_Read... [14:55:57]Read from MH i2c: E2 0B 00 [14:55:57]MH_I2C_Read... [14:55:57]Read from MH i2c: E2 0B 00 C4 60 00 9B D0 E1 B5 03 33 52 CB 90 00 F4 [14:55:57]RAPDU: 9B D0 E1 B5 03 33 52 CB 90 00 [14:55:57]wFMCommunicate OK [14:55:57]SAM_PROTO_SignData done [14:55:57]FM_MakeSignedData done [14:55:57]CreateOFDProtocolMessage [14:55:57]wFMCommunicate request_size=4 [14:55:57]MH_SAM_APDU [14:55:57]CAPDU: 80 11 00 00 [14:55:57]Write to MH i2c: E2 08 00 C5 60 80 11 00 00 00 00 00 00 9F [14:55:57]Write i2c OK [14:55:57]MH_I2C_Read... [14:55:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:55:57]Read from MH i2c: E2 [14:55:57]MH_I2C_Read... [14:55:57]Read from MH i2c: E2 17 00 [14:55:57]MH_I2C_Read... [14:55:57]Read from MH i2c: E2 17 00 C5 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 F4 [14:55:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:55:57]wFMCommunicate OK [14:55:57]CreateOFDProtocolMessage done [14:55:57]OFDSenderStorePacket 156617 [14:55:57]StoreOFDPacket docnum=156617 [14:55:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 77 13 07 01 CC 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 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 81 54 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C9 63 02 00 35 04 06 00 44 A4 F2 03 23 C8 9B D0 E1 B5 03 33 52 CB [14:55:57]CheckFolder [14:55:57]dirname=/storage/ofd_packets [14:55:57]CheckFolder done [14:55:57]ProducePacketName [14:55:57]name=ofd_packets/00156617 [14:55:57]NVStorageSaveData ofd_packets/00156617 [14:55:57]File name is /storage/ofd_packets/00156617 [14:55:57]Write 301 bytes [14:55:57]NVStorageSaveData done [14:55:57]OFDSenderStorePacket done [14:55:57]KKMCreateOFDPacket done [14:55:57]NVStorageSaveData kkm_last_timestamp [14:55:57]File name is /storage/kkm_last_timestamp [14:55:57]Write 4 bytes [14:55:57]NVStorageSaveData done [14:55:57]ExternCall_PrintAddStr [14:55:57]wPrintStart [14:55:57]Write to MH i2c: 01 00 00 C6 60 26 [14:55:57]Write i2c OK [14:55:57]MH_I2C_Read... [14:55:57]Read from MH i2c: 01 [14:55:57]MH_I2C_Read... [14:55:57]Read from MH i2c: 01 07 00 [14:55:57]MH_I2C_Read... [14:55:57]Read from MH i2c: 01 07 00 C6 60 00 00 00 00 00 FF 0F 3B [14:55:57]RasterBufferAndPrint [14:55:57]line Счет N : (1)99431 [14:55:57]line ИНН: 02508201610067 [14:55:57]line Контрольно-Кассовый Чек [14:55:57]line ПРОДАЖА [14:55:57]line ТРК (МРК, ГНК) : 11 [14:55:57]line Товар: 2710124130 [14:55:57]line Аи-92-К-5 [14:55:57]line 3.740 * 66.90 [14:55:57]line = 250.21 [14:55:57]line НДС 12% НСП 1% [14:55:57]line > о реализуемом товаре [14:55:57]line ОКРУГЛЕНИЕ: -0.21 [14:55:57]line ИТОГО: 250.00 [14:55:57]line Внесено: 250.00 [14:55:57]line СДАЧА: 0.00 [14:55:57]line НСП 1% : 2.21 [14:55:57]line НДС 12% : 26.57 [14:55:57]line Наличными: 250.00 [14:55:57]line Безнал.: 0.00 [14:55:57]line Место: АЗС № 143 "Партнер Нефть" [14:55:57]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [14:55:57]line СНО: Общий режим [14:55:57]line Чек 168 27.10.2024 14:56 [14:55:57]line Смена: 537 ФФД: 1.0 [14:55:57]line ЗНМ: 0300000096 [14:55:57]line РНМ: 0000000000091693 [14:55:57]line Версия ККМ: 001 [14:55:57]line ФМ: 0000000000871792 [14:55:57]line ФД: 156617 [14:55:57]line ФПД: 75475225617352 [14:55:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T145601&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156617&fm=75475225617352&tin=02508201610067®Number=0000000000091693&sum=25000 [14:55:57]OFD Sender: Processing packet 156617 [packets to send 31, broken 30] [14:55:57]ProducePacketName [14:55:57]name=ofd_packets/00156617 [14:55:57]OFD Sender: To server: pG, [14:55:57]CommunicateWithHost lk.salyk.kg:30040 [14:55:57]ConnectInit lk.salyk.kg [14:55:57]written 0, free lines is 4095 [14:55:57]Connected sock=10 [14:55:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 77 13 07 01 CC 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 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 81 54 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C9 63 02 00 35 04 06 00 44 A4 F2 03 23 C8 9B D0 E1 B5 03 33 52 CB [14:55:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 38 D1 47 00 E0 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 C9 63 02 00 F4 03 04 00 F1 F9 1D 67 B6 04 01 00 00 3D 82 70 CD 17 17 8C 8F [14:55:57]CommunicateWithHost err = 0 [14:55:57]CheckOFDResponse [14:55:57]1017 (14) - 77093643461234 [14:55:57]1041 (16) - 0000000000871792 [14:55:57]1040 (4) - 156617 [14:55:57]1012 (4) - 27.10.2024 08:29 [14:55:57]1206 (1) - 0 [14:55:57]OFD Sender: Remove packet 156617 [14:55:57]ProducePacketName [14:55:57]name=ofd_packets/00156617 [14:55:57]NVStorageDeleteData [14:55:57]Write to MH i2c: 01 00 00 F1 60 51 [14:55:58]Write i2c OK [14:55:58]MH_I2C_Read... [14:55:58]Read from MH i2c: 01 [14:55:58]MH_I2C_Read... [14:55:58]Read from MH i2c: 01 07 00 [14:55:58]MH_I2C_Read... [14:55:58]Read from MH i2c: 01 07 00 F1 60 00 00 00 00 00 DD 0C 41 [14:55:58]RasterBufferAndPrint [14:55:58]line [14:55:58]line [14:55:58]line [14:55:58]line [14:55:58]line [14:55:58]written 0, free lines is 3299 [14:55:58]process_action close_receipt done [14:55:58]requested_data is exist [14:55:58]produce_requested_data [14:55:58]requested_item fm.sn is exist - process it [14:55:58]wFMCommunicate request_size=4 [14:55:58]MH_SAM_APDU [14:55:58]CAPDU: 80 11 00 00 [14:55:58]Write to MH i2c: E2 08 00 F8 60 80 11 00 00 00 00 00 00 D2 [14:55:58]Write i2c OK [14:55:58]MH_I2C_Read... [14:55:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:55:58]Read from MH i2c: E2 [14:55:58]MH_I2C_Read... [14:55:58]Read from MH i2c: E2 17 00 [14:55:58]MH_I2C_Read... [14:55:58]Read from MH i2c: E2 17 00 F8 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 27 [14:55:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:55:58]wFMCommunicate OK [14:55:58]requested_item fd.num is exist - process it [14:55:58]SAM_PROTO_GetFieldsCounters [14:55:58]wFMCommunicate request_size=4 [14:55:58]MH_SAM_APDU [14:55:58]CAPDU: 80 13 00 00 [14:55:58]Write to MH i2c: E2 08 00 F9 60 80 13 00 00 00 00 00 00 D5 [14:55:58]Write i2c OK [14:55:58]MH_I2C_Read... [14:55:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:55:58]Read from MH i2c: E2 [14:55:58]MH_I2C_Read... [14:55:58]Read from MH i2c: E2 62 00 [14:55:58]MH_I2C_Read... [14:55:58]Read from MH i2c: E2 62 00 F9 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 C9 63 02 00 0E 04 04 00 19 02 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 3C [14:55:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 C9 63 02 00 0E 04 04 00 19 02 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 [14:55:58]wFMCommunicate OK [14:55:58]SAM_PROTO_GetFieldsCounters done [14:55:58]requested_item shift.num is exist - process it [14:55:58]requested_item shift.opened is exist - process it [14:55:58]req_shift_opened [14:55:58]FM_GetShiftState [14:55:58]SAM_PROTO_GetShiftState [14:55:58]wFMCommunicate request_size=4 [14:55:58]MH_SAM_APDU [14:55:58]CAPDU: 80 13 01 00 [14:55:58]Write to MH i2c: E2 08 00 FA 60 80 13 01 00 00 00 00 00 D7 [14:55:58]Write i2c OK [14:55:58]MH_I2C_Read... [14:55:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:55:58]Read from MH i2c: E2 [14:55:58]MH_I2C_Read... [14:55:58]Read from MH i2c: E2 0E 00 [14:55:58]MH_I2C_Read... [14:55:58]Read from MH i2c: E2 0E 00 FA 60 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 A4 [14:55:58]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [14:55:58]wFMCommunicate OK [14:55:58]SAM_PROTO_GetShiftState done [14:55:58]FM_GetShiftState done [14:55:58]req_shift_opened done [14:55:58]requested_item shift.open_date is exist - process it [14:55:58]req_shift_open_date [14:55:58]req_shift_open_date done [14:55:58]produce_requested_data done [14:55:58]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156617,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [14:55:58]process_action_free close_receipt [14:55:58]json_value_free [14:55:58]json_value_free done [14:55:58]process_json_proto returns [14:55:58]Send response to host [14:55:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156617,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [14:55:58]free response buf [14:55:58]execute_script done [14:55:58]execute_script returns [14:55:58]free content buf [14:55:58]Sock 8.Close socket [14:55:58]Sock 8.Thread stoped [14:55:58]OFD Sender: No OFD packet to send [14:56:03]OFD Sender: No OFD packet to send [14:56:08]OFD Sender: No OFD packet to send [14:56:13]OFD Sender: No OFD packet to send [14:56:18]OFD Sender: No OFD packet to send [14:56:23]OFD Sender: No OFD packet to send [14:56:28]OFD Sender: No OFD packet to send [14:56:33]OFD Sender: No OFD packet to send [14:56:37]accept exits with 9 [14:56:37]New connection [14:56:37]New thread 3066834276 created [14:56:37]Thread 3066977636 joined [14:56:37]Waiting for new connection... [14:56:37] Sock 9.Parse request [14:56:37]Sock 9.Check first char [14:56:37]Sock 9.First char is OK [14:56:37]request: POST /json_proto HTTP/1.0 [14:56:37]Method: POST [14:56:37]URL: /json_proto [14:56:37]Method is POST - this is cgi request [14:56:37]url: /json_proto [14:56:37]query_string will be loaded in cgi processing [14:56:37]execute_cgi json_proto POST (null) [14:56:37]execute_cgi path=json_proto method=POST [14:56:37]POST find Content-Length [14:56:37]Host: 172.17.63.3:8080 [14:56:37]Content-Length: 765 [14:56:37]Content-Type: application/json [14:56:37] [14:56:37]POST finish read [14:56:37]Found Content-Length = 765 [14:56:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99433", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:56:37]execute_script... [14:56:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99433", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:56:37]POST & json_proto [14:56:37]process_json_proto [14:56:37]json parsed OK: [14:56:37]protocol is kg_v1.0 [14:56:37]action value=close_receipt [14:56:37]process_action close_receipt [14:56:37]cmd_close_receipt [14:56:37]MH_GetDate [14:56:37]Write to MH i2c: F0 00 00 FB 60 4A [14:56:37]Write i2c OK [14:56:37]MH_I2C_Read... [14:56:37]Read from MH i2c: F0 [14:56:37]MH_I2C_Read... [14:56:37]Read from MH i2c: F0 09 00 [14:56:37]MH_I2C_Read... [14:56:37]Read from MH i2c: F0 09 00 FB 60 00 AB 54 1E 67 50 D1 6C 64 C8 [14:56:37]GetLastDocTimeStamp 1730040961 [14:56:37]current date 1730041003 [14:56:37]FM_GetShiftState [14:56:37]SAM_PROTO_GetShiftState [14:56:37]wFMCommunicate request_size=4 [14:56:37]MH_SAM_APDU [14:56:37]CAPDU: 80 13 01 00 [14:56:37]Write to MH i2c: E2 08 00 FC 60 80 13 01 00 00 00 00 00 D9 [14:56:37]Write i2c OK [14:56:37]MH_I2C_Read... [14:56:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:56:37]Read from MH i2c: E2 [14:56:37]MH_I2C_Read... [14:56:37]Read from MH i2c: E2 0E 00 [14:56:37]MH_I2C_Read... [14:56:37]Read from MH i2c: E2 0E 00 FC 60 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 A6 [14:56:37]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [14:56:37]wFMCommunicate OK [14:56:37]SAM_PROTO_GetShiftState done [14:56:37]FM_GetShiftState done [14:56:37]opened in 1729989044 [14:56:37]opened+sec_in_day 1730075444 [14:56:37]quantity*price = 30038 [14:56:37]sum+1 = 30039 [14:56:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.38 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 0.00 Безнал.: 300.38 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 169 27.10.2024 14:56 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 156618 ФПД: 268489184294634 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T145643&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156618&fm=268489184294634&tin=02508201610067®Number=0000000000091693&sum=30038 [14:56:38]StoreToDocumentArchive [14:56:38]shift 537 fd 156618 [14:56:38]save to /storage/0537/doc_00156618 [14:56:38]save last doc name /storage/0537/doc_00156618 to /storage/kkm_last_doc_name [14:56:38]save OK [14:56:38]Clear old archive folders... [14:56:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:56:38]tlvbuf is 018277B0 [14:56:38]SAM_PROTO_ClearQueue [14:56:38]wFMCommunicate request_size=4 [14:56:38]MH_SAM_APDU [14:56:38]CAPDU: 80 09 00 00 [14:56:38]Write to MH i2c: E2 08 00 09 61 80 09 00 00 00 00 00 00 DC [14:56:38]Write i2c OK [14:56:38]MH_I2C_Read... [14:56:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:56:38]Read from MH i2c: E2 [14:56:38]MH_I2C_Read... [14:56:38]Read from MH i2c: E2 03 00 [14:56:38]MH_I2C_Read... [14:56:38]Read from MH i2c: E2 03 00 09 61 00 90 00 DE [14:56:38]RAPDU: 90 00 [14:56:38]wFMCommunicate OK [14:56:38]SAM_PROTO_ClearQueue done [14:56:38]KKMCreateOFDPacket [14:56:38]OFDProtocolAddRootSTLVToBuf [14:56:38]FM_MakeSignedData [14:56:38]FM_MakeSignedData [14:56:38]SAM_PROTO_SignData [14:56:38]wFMCommunicate request_size=4 [14:56:38]MH_SAM_APDU [14:56:38]CAPDU: 80 0D 01 02 [14:56:38]Write to MH i2c: E2 08 00 0A 61 80 0D 01 02 00 00 00 00 E4 [14:56:38]Write i2c OK [14:56:38]MH_I2C_Read... [14:56:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:56:38]Read from MH i2c: E2 [14:56:38]MH_I2C_Read... [14:56:38]Read from MH i2c: E2 03 00 [14:56:38]MH_I2C_Read... [14:56:38]Read from MH i2c: E2 03 00 0A 61 00 90 00 DF [14:56:38]RAPDU: 90 00 [14:56:38]wFMCommunicate OK [14:56:38]wFMCommunicate request_size=255 [14:56:38]MH_SAM_APDU [14:56:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 AB 54 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CA 63 02 00 35 04 06 00 F4 [14:56:38]Write to MH i2c: E2 02 01 0B 61 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 AB 54 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CA 63 02 00 35 04 06 00 F4 00 00 23 [14:56:38]Write i2c OK [14:56:38]MH_I2C_Read... [14:56:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:56:39]Read from MH i2c: E2 [14:56:39]MH_I2C_Read... [14:56:39]Read from MH i2c: E2 03 00 [14:56:39]MH_I2C_Read... [14:56:39]Read from MH i2c: E2 03 00 0B 61 00 90 00 E0 [14:56:39]RAPDU: 90 00 [14:56:39]wFMCommunicate OK [14:56:39]wFMCommunicate request_size=10 [14:56:39]MH_SAM_APDU [14:56:39]CAPDU: 80 0D 02 02 05 30 82 74 B6 EA [14:56:39]Write to MH i2c: E2 0D 00 0C 61 80 0D 02 02 05 00 30 82 74 B6 EA 00 00 B7 [14:56:39]Write i2c OK [14:56:39]MH_I2C_Read... [14:56:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:56:39]Read from MH i2c: E2 [14:56:39]MH_I2C_Read... [14:56:39]Read from MH i2c: E2 03 00 [14:56:39]MH_I2C_Read... [14:56:39]Read from MH i2c: E2 03 00 0C 61 00 90 00 E1 [14:56:39]RAPDU: 90 00 [14:56:39]wFMCommunicate OK [14:56:39]wFMCommunicate request_size=4 [14:56:39]MH_SAM_APDU [14:56:39]CAPDU: 80 0D 03 02 [14:56:39]Write to MH i2c: E2 08 00 0D 61 80 0D 03 02 00 00 00 00 E9 [14:56:39]Write i2c OK [14:56:39]MH_I2C_Read... [14:56:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:56:39]Read from MH i2c: E2 [14:56:39]MH_I2C_Read... [14:56:39]Read from MH i2c: E2 0B 00 [14:56:39]MH_I2C_Read... [14:56:39]Read from MH i2c: E2 0B 00 0D 61 00 10 30 4A 6A 36 20 EE E2 90 00 04 [14:56:39]RAPDU: 10 30 4A 6A 36 20 EE E2 90 00 [14:56:39]wFMCommunicate OK [14:56:39]SAM_PROTO_SignData done [14:56:39]FM_MakeSignedData done [14:56:39]CreateOFDProtocolMessage [14:56:39]wFMCommunicate request_size=4 [14:56:39]MH_SAM_APDU [14:56:39]CAPDU: 80 11 00 00 [14:56:39]Write to MH i2c: E2 08 00 0E 61 80 11 00 00 00 00 00 00 E9 [14:56:39]Write i2c OK [14:56:39]MH_I2C_Read... [14:56:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:56:39]Read from MH i2c: E2 [14:56:39]MH_I2C_Read... [14:56:39]Read from MH i2c: E2 17 00 [14:56:39]MH_I2C_Read... [14:56:39]Read from MH i2c: E2 17 00 0E 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 3E [14:56:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:56:39]wFMCommunicate OK [14:56:39]CreateOFDProtocolMessage done [14:56:39]OFDSenderStorePacket 156618 [14:56:39]StoreOFDPacket docnum=156618 [14:56:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 38 A9 07 01 58 B4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 AB 54 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CA 63 02 00 35 04 06 00 F4 30 82 74 B6 EA 10 30 4A 6A 36 20 EE E2 [14:56:39]CheckFolder [14:56:39]dirname=/storage/ofd_packets [14:56:39]CheckFolder done [14:56:39]ProducePacketName [14:56:39]name=ofd_packets/00156618 [14:56:39]NVStorageSaveData ofd_packets/00156618 [14:56:39]File name is /storage/ofd_packets/00156618 [14:56:39]Write 301 bytes [14:56:39]NVStorageSaveData done [14:56:39]OFDSenderStorePacket done [14:56:39]KKMCreateOFDPacket done [14:56:39]NVStorageSaveData kkm_last_timestamp [14:56:39]File name is /storage/kkm_last_timestamp [14:56:39]Write 4 bytes [14:56:39]NVStorageSaveData done [14:56:39]ExternCall_PrintAddStr [14:56:39]wPrintStart [14:56:39]Write to MH i2c: 01 00 00 0F 61 70 [14:56:39]Write i2c OK [14:56:39]MH_I2C_Read... [14:56:39]Read from MH i2c: 01 [14:56:39]MH_I2C_Read... [14:56:39]Read from MH i2c: 01 07 00 [14:56:39]MH_I2C_Read... [14:56:39]Read from MH i2c: 01 07 00 0F 61 00 00 00 00 00 FF 0F 85 [14:56:39]RasterBufferAndPrint [14:56:39]line Счет N : (1)99433 [14:56:39]line ИНН: 02508201610067 [14:56:39]line Контрольно-Кассовый Чек [14:56:39]line ПРОДАЖА [14:56:39]line ТРК (МРК, ГНК) : 31 [14:56:39]line Товар: 2710124130 [14:56:39]line Аи-92-К-5 [14:56:39]line 4.490 * 66.90 [14:56:39]line = 300.38 [14:56:39]line НДС 12% НСП 1% [14:56:39]line > о реализуемом товаре [14:56:39]line ИТОГО: 300.38 [14:56:39]line НСП 1% : 2.66 [14:56:39]line НДС 12% : 31.90 [14:56:39]line Наличными: 0.00 [14:56:39]line Безнал.: 300.38 [14:56:39]line Место: АЗС № 143 "Партнер Нефть" [14:56:39]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [14:56:39]line СНО: Общий режим [14:56:39]line Чек 169 27.10.2024 14:56 [14:56:39]line Смена: 537 ФФД: 1.0 [14:56:39]line ЗНМ: 0300000096 [14:56:39]line РНМ: 0000000000091693 [14:56:39]line Версия ККМ: 001 [14:56:39]line Платежная система: Mbank [14:56:39]line ФМ: 0000000000871792 [14:56:39]line ФД: 156618 [14:56:39]line ФПД: 268489184294634 [14:56:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T145643&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156618&fm=268489184294634&tin=02508201610067®Number=0000000000091693&sum=30038 [14:56:39]OFD Sender: Processing packet 156618 [packets to send 31, broken 30] [14:56:39]ProducePacketName [14:56:39]name=ofd_packets/00156618 [14:56:39]OFD Sender: To server: pG, [14:56:39]CommunicateWithHost lk.salyk.kg:30040 [14:56:39]ConnectInit lk.salyk.kg [14:56:39]written 0, free lines is 4095 [14:56:39]Connected sock=10 [14:56:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 38 A9 07 01 58 B4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 AB 54 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CA 63 02 00 35 04 06 00 F4 30 82 74 B6 EA 10 30 4A 6A 36 20 EE E2 [14:56:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 7D 89 47 00 DB 79 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CA 63 02 00 F4 03 04 00 1B FA 1D 67 B6 04 01 00 00 FC 2B DA 2A DB 62 A5 37 [14:56:39]CommunicateWithHost err = 0 [14:56:39]CheckOFDResponse [14:56:39]1017 (14) - 77093643461234 [14:56:39]1041 (16) - 0000000000871792 [14:56:39]1040 (4) - 156618 [14:56:39]1012 (4) - 27.10.2024 08:30 [14:56:39]1206 (1) - 0 [14:56:39]OFD Sender: Remove packet 156618 [14:56:39]ProducePacketName [14:56:39]name=ofd_packets/00156618 [14:56:39]NVStorageDeleteData [14:56:39]Write to MH i2c: 01 00 00 38 61 99 [14:56:39]Write i2c OK [14:56:39]MH_I2C_Read... [14:56:39]Read from MH i2c: 01 [14:56:39]MH_I2C_Read... [14:56:39]Read from MH i2c: 01 07 00 [14:56:39]MH_I2C_Read... [14:56:39]Read from MH i2c: 01 07 00 38 61 00 00 00 00 00 0C 0D B9 [14:56:39]RasterBufferAndPrint [14:56:39]line [14:56:40]line [14:56:40]line [14:56:40]line [14:56:40]line [14:56:40]written 0, free lines is 3346 [14:56:40]process_action close_receipt done [14:56:40]requested_data is exist [14:56:40]produce_requested_data [14:56:40]requested_item fm.sn is exist - process it [14:56:40]wFMCommunicate request_size=4 [14:56:40]MH_SAM_APDU [14:56:40]CAPDU: 80 11 00 00 [14:56:40]Write to MH i2c: E2 08 00 3F 61 80 11 00 00 00 00 00 00 1A [14:56:40]Write i2c OK [14:56:40]MH_I2C_Read... [14:56:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:56:40]Read from MH i2c: E2 [14:56:40]MH_I2C_Read... [14:56:40]Read from MH i2c: E2 17 00 [14:56:40]MH_I2C_Read... [14:56:40]Read from MH i2c: E2 17 00 3F 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 6F [14:56:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:56:40]wFMCommunicate OK [14:56:40]requested_item fd.num is exist - process it [14:56:40]SAM_PROTO_GetFieldsCounters [14:56:40]wFMCommunicate request_size=4 [14:56:40]MH_SAM_APDU [14:56:40]CAPDU: 80 13 00 00 [14:56:40]Write to MH i2c: E2 08 00 40 61 80 13 00 00 00 00 00 00 1D [14:56:40]Write i2c OK [14:56:40]MH_I2C_Read... [14:56:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:56:40]Read from MH i2c: E2 [14:56:40]MH_I2C_Read... [14:56:40]Read from MH i2c: E2 62 00 [14:56:40]MH_I2C_Read... [14:56:40]Read from MH i2c: E2 62 00 40 61 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 CA 63 02 00 0E 04 04 00 19 02 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 88 [14:56:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 CA 63 02 00 0E 04 04 00 19 02 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 [14:56:40]wFMCommunicate OK [14:56:40]SAM_PROTO_GetFieldsCounters done [14:56:40]requested_item shift.num is exist - process it [14:56:40]requested_item shift.opened is exist - process it [14:56:40]req_shift_opened [14:56:40]FM_GetShiftState [14:56:40]SAM_PROTO_GetShiftState [14:56:40]wFMCommunicate request_size=4 [14:56:40]MH_SAM_APDU [14:56:40]CAPDU: 80 13 01 00 [14:56:40]Write to MH i2c: E2 08 00 41 61 80 13 01 00 00 00 00 00 1F [14:56:40]Write i2c OK [14:56:40]MH_I2C_Read... [14:56:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:56:40]Read from MH i2c: E2 [14:56:40]MH_I2C_Read... [14:56:40]Read from MH i2c: E2 0E 00 [14:56:40]MH_I2C_Read... [14:56:40]Read from MH i2c: E2 0E 00 41 61 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 EC [14:56:40]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [14:56:40]wFMCommunicate OK [14:56:40]SAM_PROTO_GetShiftState done [14:56:40]FM_GetShiftState done [14:56:40]req_shift_opened done [14:56:40]requested_item shift.open_date is exist - process it [14:56:40]req_shift_open_date [14:56:40]req_shift_open_date done [14:56:40]produce_requested_data done [14:56:40]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156618,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [14:56:40]process_action_free close_receipt [14:56:40]json_value_free [14:56:40]json_value_free done [14:56:40]process_json_proto returns [14:56:40]Send response to host [14:56:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156618,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [14:56:40]free response buf [14:56:40]execute_script done [14:56:40]execute_script returns [14:56:40]free content buf [14:56:40]Sock 9.Close socket [14:56:40]Sock 9.Thread stoped [14:56:40]OFD Sender: No OFD packet to send [14:56:45]OFD Sender: No OFD packet to send [14:56:50]OFD Sender: No OFD packet to send [14:56:55]OFD Sender: No OFD packet to send [14:57:00]OFD Sender: No OFD packet to send [14:57:05]OFD Sender: No OFD packet to send [14:57:10]OFD Sender: No OFD packet to send [14:57:15]OFD Sender: No OFD packet to send [14:57:20]OFD Sender: No OFD packet to send [14:57:25]OFD Sender: No OFD packet to send [14:57:30]OFD Sender: No OFD packet to send [14:57:35]OFD Sender: No OFD packet to send [14:57:40]accept exits with 8 [14:57:40]New connection [14:57:40]New thread 3066977636 created [14:57:40]Thread 3066834276 joined [14:57:40]Waiting for new connection... [14:57:40] Sock 8.Parse request [14:57:40]Sock 8.Check first char [14:57:40]Sock 8.First char is OK [14:57:40]request: POST /json_proto HTTP/1.0 [14:57:40]Method: POST [14:57:40]URL: /json_proto [14:57:40]Method is POST - this is cgi request [14:57:40]url: /json_proto [14:57:40]query_string will be loaded in cgi processing [14:57:40]execute_cgi json_proto POST (null) [14:57:40]execute_cgi path=json_proto method=POST [14:57:40]POST find Content-Length [14:57:40]Host: 172.17.63.3:8080 [14:57:40]Content-Length: 681 [14:57:40]Content-Type: application/json [14:57:40] [14:57:40]POST finish read [14:57:40]Found Content-Length = 681 [14:57:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99432", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:57:40]execute_script... [14:57:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99432", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:57:40]POST & json_proto [14:57:40]process_json_proto [14:57:40]json parsed OK: [14:57:40]protocol is kg_v1.0 [14:57:40]action value=close_receipt [14:57:40]process_action close_receipt [14:57:40]cmd_close_receipt [14:57:40]MH_GetDate [14:57:40]Write to MH i2c: F0 00 00 42 61 92 [14:57:40]Write i2c OK [14:57:40]MH_I2C_Read... [14:57:40]Read from MH i2c: F0 [14:57:40]MH_I2C_Read... [14:57:40]Read from MH i2c: F0 09 00 [14:57:40]MH_I2C_Read... [14:57:40]Read from MH i2c: F0 09 00 42 61 00 EA 54 1E 67 50 D1 6C 64 4F [14:57:40]GetLastDocTimeStamp 1730041003 [14:57:40]current date 1730041066 [14:57:40]FM_GetShiftState [14:57:40]SAM_PROTO_GetShiftState [14:57:40]wFMCommunicate request_size=4 [14:57:40]MH_SAM_APDU [14:57:40]CAPDU: 80 13 01 00 [14:57:40]Write to MH i2c: E2 08 00 43 61 80 13 01 00 00 00 00 00 21 [14:57:40]Write i2c OK [14:57:40]MH_I2C_Read... [14:57:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:40]Read from MH i2c: E2 [14:57:40]MH_I2C_Read... [14:57:40]Read from MH i2c: E2 0E 00 [14:57:40]MH_I2C_Read... [14:57:40]Read from MH i2c: E2 0E 00 43 61 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 EE [14:57:40]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [14:57:40]wFMCommunicate OK [14:57:40]SAM_PROTO_GetShiftState done [14:57:40]FM_GetShiftState done [14:57:40]opened in 1729989044 [14:57:40]opened+sec_in_day 1730075444 [14:57:40]quantity*price = 100015 [14:57:40]sum+1 = 100017 [14:57:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 170 27.10.2024 14:57 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156619 ФПД: 174269305096201 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T145746&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156619&fm=174269305096201&tin=02508201610067®Number=0000000000091693&sum=100000 [14:57:41]StoreToDocumentArchive [14:57:41]shift 537 fd 156619 [14:57:41]save to /storage/0537/doc_00156619 [14:57:41]save last doc name /storage/0537/doc_00156619 to /storage/kkm_last_doc_name [14:57:41]save OK [14:57:41]Clear old archive folders... [14:57:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:57:41]tlvbuf is 01866540 [14:57:41]SAM_PROTO_ClearQueue [14:57:41]wFMCommunicate request_size=4 [14:57:41]MH_SAM_APDU [14:57:41]CAPDU: 80 09 00 00 [14:57:41]Write to MH i2c: E2 08 00 50 61 80 09 00 00 00 00 00 00 23 [14:57:41]Write i2c OK [14:57:41]MH_I2C_Read... [14:57:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:57:41]Read from MH i2c: E2 [14:57:41]MH_I2C_Read... [14:57:41]Read from MH i2c: E2 03 00 [14:57:41]MH_I2C_Read... [14:57:41]Read from MH i2c: E2 03 00 50 61 00 90 00 25 [14:57:41]RAPDU: 90 00 [14:57:41]wFMCommunicate OK [14:57:41]SAM_PROTO_ClearQueue done [14:57:41]KKMCreateOFDPacket [14:57:41]OFDProtocolAddRootSTLVToBuf [14:57:41]FM_MakeSignedData [14:57:41]FM_MakeSignedData [14:57:41]SAM_PROTO_SignData [14:57:41]wFMCommunicate request_size=4 [14:57:41]MH_SAM_APDU [14:57:41]CAPDU: 80 0D 01 02 [14:57:41]Write to MH i2c: E2 08 00 51 61 80 0D 01 02 00 00 00 00 2B [14:57:41]Write i2c OK [14:57:41]MH_I2C_Read... [14:57:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:57:41]Read from MH i2c: E2 [14:57:41]MH_I2C_Read... [14:57:41]Read from MH i2c: E2 03 00 [14:57:41]MH_I2C_Read... [14:57:41]Read from MH i2c: E2 03 00 51 61 00 90 00 26 [14:57:41]RAPDU: 90 00 [14:57:41]wFMCommunicate OK [14:57:41]wFMCommunicate request_size=255 [14:57:41]MH_SAM_APDU [14:57:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 EA 54 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CB 63 02 00 35 04 06 00 9E [14:57:41]Write to MH i2c: E2 02 01 52 61 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 EA 54 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CB 63 02 00 35 04 06 00 9E 00 00 0F [14:57:41]Write i2c OK [14:57:41]MH_I2C_Read... [14:57:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:41]Read from MH i2c: E2 [14:57:41]MH_I2C_Read... [14:57:41]Read from MH i2c: E2 03 00 [14:57:41]MH_I2C_Read... [14:57:41]Read from MH i2c: E2 03 00 52 61 00 90 00 27 [14:57:41]RAPDU: 90 00 [14:57:41]wFMCommunicate OK [14:57:41]wFMCommunicate request_size=10 [14:57:41]MH_SAM_APDU [14:57:41]CAPDU: 80 0D 02 02 05 7F 3C 06 88 09 [14:57:41]Write to MH i2c: E2 0D 00 53 61 80 0D 02 02 05 00 7F 3C 06 88 09 00 00 8A [14:57:41]Write i2c OK [14:57:41]MH_I2C_Read... [14:57:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:41]Read from MH i2c: E2 [14:57:41]MH_I2C_Read... [14:57:41]Read from MH i2c: E2 03 00 [14:57:41]MH_I2C_Read... [14:57:41]Read from MH i2c: E2 03 00 53 61 00 90 00 28 [14:57:41]RAPDU: 90 00 [14:57:41]wFMCommunicate OK [14:57:41]wFMCommunicate request_size=4 [14:57:41]MH_SAM_APDU [14:57:41]CAPDU: 80 0D 03 02 [14:57:41]Write to MH i2c: E2 08 00 54 61 80 0D 03 02 00 00 00 00 30 [14:57:41]Write i2c OK [14:57:41]MH_I2C_Read... [14:57:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:57:41]Read from MH i2c: E2 [14:57:41]MH_I2C_Read... [14:57:41]Read from MH i2c: E2 0B 00 [14:57:41]MH_I2C_Read... [14:57:41]Read from MH i2c: E2 0B 00 54 61 00 03 8B 7A 62 E2 55 50 0A 90 00 2C [14:57:41]RAPDU: 03 8B 7A 62 E2 55 50 0A 90 00 [14:57:41]wFMCommunicate OK [14:57:41]SAM_PROTO_SignData done [14:57:41]FM_MakeSignedData done [14:57:41]CreateOFDProtocolMessage [14:57:41]wFMCommunicate request_size=4 [14:57:41]MH_SAM_APDU [14:57:41]CAPDU: 80 11 00 00 [14:57:41]Write to MH i2c: E2 08 00 55 61 80 11 00 00 00 00 00 00 30 [14:57:41]Write i2c OK [14:57:41]MH_I2C_Read... [14:57:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:41]Read from MH i2c: E2 [14:57:41]MH_I2C_Read... [14:57:41]Read from MH i2c: E2 17 00 [14:57:41]MH_I2C_Read... [14:57:41]Read from MH i2c: E2 17 00 55 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 85 [14:57:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:57:41]wFMCommunicate OK [14:57:41]CreateOFDProtocolMessage done [14:57:41]OFDSenderStorePacket 156619 [14:57:41]StoreOFDPacket docnum=156619 [14:57:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 CF 80 07 01 D4 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 EA 54 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CB 63 02 00 35 04 06 00 9E 7F 3C 06 88 09 03 8B 7A 62 E2 55 50 0A [14:57:41]CheckFolder [14:57:41]dirname=/storage/ofd_packets [14:57:41]CheckFolder done [14:57:41]ProducePacketName [14:57:41]name=ofd_packets/00156619 [14:57:41]NVStorageSaveData ofd_packets/00156619 [14:57:41]File name is /storage/ofd_packets/00156619 [14:57:41]Write 301 bytes [14:57:41]NVStorageSaveData done [14:57:41]OFDSenderStorePacket done [14:57:41]KKMCreateOFDPacket done [14:57:41]NVStorageSaveData kkm_last_timestamp [14:57:41]File name is /storage/kkm_last_timestamp [14:57:41]Write 4 bytes [14:57:41]NVStorageSaveData done [14:57:41]ExternCall_PrintAddStr [14:57:41]wPrintStart [14:57:41]Write to MH i2c: 01 00 00 56 61 B7 [14:57:42]Write i2c OK [14:57:42]MH_I2C_Read... [14:57:42]Read from MH i2c: 01 [14:57:42]MH_I2C_Read... [14:57:42]Read from MH i2c: 01 07 00 [14:57:42]MH_I2C_Read... [14:57:42]Read from MH i2c: 01 07 00 56 61 00 00 00 00 00 FF 0F CC [14:57:42]RasterBufferAndPrint [14:57:42]line Счет N : (1)99432 [14:57:42]line ИНН: 02508201610067 [14:57:42]line Контрольно-Кассовый Чек [14:57:42]line ПРОДАЖА [14:57:42]line ТРК (МРК, ГНК) : 21 [14:57:42]line Товар: 2710124130 [14:57:42]line Аи-92-К-5 [14:57:42]line 14.950 * 66.90 [14:57:42]line = 1000.16 [14:57:42]line НДС 12% НСП 1% [14:57:42]line > о реализуемом товаре [14:57:42]line ОКРУГЛЕНИЕ: -0.16 [14:57:42]line ИТОГО: 1000.00 [14:57:42]line Внесено: 1000.00 [14:57:42]line СДАЧА: 0.00 [14:57:42]line НСП 1% : 8.85 [14:57:42]line НДС 12% : 106.21 [14:57:42]line Наличными: 1000.00 [14:57:42]line Безнал.: 0.00 [14:57:42]line Место: АЗС № 143 "Партнер Нефть" [14:57:42]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [14:57:42]line СНО: Общий режим [14:57:42]line Чек 170 27.10.2024 14:57 [14:57:42]line Смена: 537 ФФД: 1.0 [14:57:42]line ЗНМ: 0300000096 [14:57:42]line РНМ: 0000000000091693 [14:57:42]line Версия ККМ: 001 [14:57:42]line ФМ: 0000000000871792 [14:57:42]line ФД: 156619 [14:57:42]line ФПД: 174269305096201 [14:57:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T145746&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156619&fm=174269305096201&tin=02508201610067®Number=0000000000091693&sum=100000 [14:57:42]OFD Sender: Processing packet 156619 [packets to send 31, broken 30] [14:57:42]ProducePacketName [14:57:42]name=ofd_packets/00156619 [14:57:42]OFD Sender: To server: pG, [14:57:42]CommunicateWithHost lk.salyk.kg:30040 [14:57:42]ConnectInit lk.salyk.kg [14:57:42]written 0, free lines is 4095 [14:57:42]Connected sock=10 [14:57:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 CF 80 07 01 D4 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 EA 54 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CB 63 02 00 35 04 06 00 9E 7F 3C 06 88 09 03 8B 7A 62 E2 55 50 0A [14:57:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 F6 F2 47 00 14 DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CB 63 02 00 F4 03 04 00 59 FA 1D 67 B6 04 01 00 00 5B 93 46 67 E8 07 0B 0D [14:57:42]CommunicateWithHost err = 0 [14:57:42]CheckOFDResponse [14:57:42]1017 (14) - 77093643461234 [14:57:42]1041 (16) - 0000000000871792 [14:57:42]1040 (4) - 156619 [14:57:42]1012 (4) - 27.10.2024 08:31 [14:57:42]1206 (1) - 0 [14:57:42]OFD Sender: Remove packet 156619 [14:57:42]ProducePacketName [14:57:42]name=ofd_packets/00156619 [14:57:42]NVStorageDeleteData [14:57:42]Write to MH i2c: 01 00 00 81 61 E2 [14:57:42]Write i2c OK [14:57:42]MH_I2C_Read... [14:57:42]Read from MH i2c: 01 [14:57:42]MH_I2C_Read... [14:57:42]Read from MH i2c: 01 07 00 [14:57:42]MH_I2C_Read... [14:57:42]Read from MH i2c: 01 07 00 81 61 00 00 00 00 00 E4 0C D9 [14:57:42]RasterBufferAndPrint [14:57:42]line [14:57:42]line [14:57:42]line [14:57:42]line [14:57:42]line [14:57:42]written 0, free lines is 3306 [14:57:42]process_action close_receipt done [14:57:42]requested_data is exist [14:57:42]produce_requested_data [14:57:42]requested_item fm.sn is exist - process it [14:57:42]wFMCommunicate request_size=4 [14:57:42]MH_SAM_APDU [14:57:42]CAPDU: 80 11 00 00 [14:57:42]Write to MH i2c: E2 08 00 88 61 80 11 00 00 00 00 00 00 63 [14:57:42]Write i2c OK [14:57:42]MH_I2C_Read... [14:57:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:42]Read from MH i2c: E2 [14:57:42]MH_I2C_Read... [14:57:42]Read from MH i2c: E2 17 00 [14:57:42]MH_I2C_Read... [14:57:42]Read from MH i2c: E2 17 00 88 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 B8 [14:57:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:57:42]wFMCommunicate OK [14:57:42]requested_item fd.num is exist - process it [14:57:42]SAM_PROTO_GetFieldsCounters [14:57:42]wFMCommunicate request_size=4 [14:57:42]MH_SAM_APDU [14:57:42]CAPDU: 80 13 00 00 [14:57:42]Write to MH i2c: E2 08 00 89 61 80 13 00 00 00 00 00 00 66 [14:57:42]Write i2c OK [14:57:42]MH_I2C_Read... [14:57:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:57:42]Read from MH i2c: E2 [14:57:42]MH_I2C_Read... [14:57:42]Read from MH i2c: E2 62 00 [14:57:42]MH_I2C_Read... [14:57:42]Read from MH i2c: E2 62 00 89 61 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 CB 63 02 00 0E 04 04 00 19 02 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 D5 [14:57:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 CB 63 02 00 0E 04 04 00 19 02 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 [14:57:43]wFMCommunicate OK [14:57:43]SAM_PROTO_GetFieldsCounters done [14:57:43]requested_item shift.num is exist - process it [14:57:43]requested_item shift.opened is exist - process it [14:57:43]req_shift_opened [14:57:43]FM_GetShiftState [14:57:43]SAM_PROTO_GetShiftState [14:57:43]wFMCommunicate request_size=4 [14:57:43]MH_SAM_APDU [14:57:43]CAPDU: 80 13 01 00 [14:57:43]Write to MH i2c: E2 08 00 8A 61 80 13 01 00 00 00 00 00 68 [14:57:43]Write i2c OK [14:57:43]MH_I2C_Read... [14:57:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:43]Read from MH i2c: E2 [14:57:43]MH_I2C_Read... [14:57:43]Read from MH i2c: E2 0E 00 [14:57:43]MH_I2C_Read... [14:57:43]Read from MH i2c: E2 0E 00 8A 61 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 35 [14:57:43]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [14:57:43]wFMCommunicate OK [14:57:43]SAM_PROTO_GetShiftState done [14:57:43]FM_GetShiftState done [14:57:43]req_shift_opened done [14:57:43]requested_item shift.open_date is exist - process it [14:57:43]req_shift_open_date [14:57:43]req_shift_open_date done [14:57:43]produce_requested_data done [14:57:43]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156619,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [14:57:43]process_action_free close_receipt [14:57:43]json_value_free [14:57:43]json_value_free done [14:57:43]process_json_proto returns [14:57:43]Send response to host [14:57:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156619,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [14:57:43]free response buf [14:57:43]execute_script done [14:57:43]execute_script returns [14:57:43]free content buf [14:57:43]Sock 8.Close socket [14:57:43]Sock 8.Thread stoped [14:57:43]OFD Sender: No OFD packet to send [14:57:48]OFD Sender: No OFD packet to send [14:57:53]OFD Sender: No OFD packet to send [14:57:58]OFD Sender: No OFD packet to send [14:58:03]OFD Sender: No OFD packet to send [14:58:08]OFD Sender: No OFD packet to send [14:58:13]OFD Sender: No OFD packet to send [14:58:18]OFD Sender: No OFD packet to send [14:58:23]OFD Sender: No OFD packet to send [14:58:28]OFD Sender: No OFD packet to send [14:58:33]OFD Sender: No OFD packet to send [14:58:38]OFD Sender: No OFD packet to send [14:58:43]OFD Sender: No OFD packet to send [14:58:45]accept exits with 9 [14:58:45]New connection [14:58:45]New thread 3066834276 created [14:58:45]Thread 3066977636 joined [14:58:45]Waiting for new connection... [14:58:45] Sock 9.Parse request [14:58:45]Sock 9.Check first char [14:58:45]Sock 9.First char is OK [14:58:45]request: POST /json_proto HTTP/1.0 [14:58:45]Method: POST [14:58:45]URL: /json_proto [14:58:45]Method is POST - this is cgi request [14:58:45]url: /json_proto [14:58:45]query_string will be loaded in cgi processing [14:58:45]execute_cgi json_proto POST (null) [14:58:45]execute_cgi path=json_proto method=POST [14:58:45]POST find Content-Length [14:58:45]Host: 172.17.63.3:8080 [14:58:45]Content-Length: 676 [14:58:45]Content-Type: application/json [14:58:45] [14:58:45]POST finish read [14:58:45]Found Content-Length = 676 [14:58:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99434", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "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:58:45]execute_script... [14:58: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)99434", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "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:58:45]POST & json_proto [14:58:45]process_json_proto [14:58:45]json parsed OK: [14:58:45]protocol is kg_v1.0 [14:58:45]action value=close_receipt [14:58:45]process_action close_receipt [14:58:45]cmd_close_receipt [14:58:45]MH_GetDate [14:58:45]Write to MH i2c: F0 00 00 8B 61 DB [14:58:45]Write i2c OK [14:58:45]MH_I2C_Read... [14:58:45]Read from MH i2c: F0 [14:58:45]MH_I2C_Read... [14:58:45]Read from MH i2c: F0 09 00 [14:58:45]MH_I2C_Read... [14:58:45]Read from MH i2c: F0 09 00 8B 61 00 2C 55 1E 67 50 D1 6C 64 DB [14:58:45]GetLastDocTimeStamp 1730041066 [14:58:45]current date 1730041132 [14:58:45]FM_GetShiftState [14:58:45]SAM_PROTO_GetShiftState [14:58:45]wFMCommunicate request_size=4 [14:58:45]MH_SAM_APDU [14:58:45]CAPDU: 80 13 01 00 [14:58:45]Write to MH i2c: E2 08 00 8C 61 80 13 01 00 00 00 00 00 6A [14:58:45]Write i2c OK [14:58:45]MH_I2C_Read... [14:58:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:58:45]Read from MH i2c: E2 [14:58:45]MH_I2C_Read... [14:58:45]Read from MH i2c: E2 0E 00 [14:58:45]MH_I2C_Read... [14:58:45]Read from MH i2c: E2 0E 00 8C 61 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 37 [14:58:45]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [14:58:45]wFMCommunicate OK [14:58:45]SAM_PROTO_GetShiftState done [14:58:45]FM_GetShiftState done [14:58:45]opened in 1729989044 [14:58:45]opened+sec_in_day 1730075444 [14:58:45]quantity*price = 35055 [14:58:45]sum+1 = 35057 [14:58:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 171 27.10.2024 14:58 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156620 ФПД: 15137696324107 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T145852&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156620&fm=15137696324107&tin=02508201610067®Number=0000000000091693&sum=35000 [14:58:46]StoreToDocumentArchive [14:58:46]shift 537 fd 156620 [14:58:46]save to /storage/0537/doc_00156620 [14:58:46]save last doc name /storage/0537/doc_00156620 to /storage/kkm_last_doc_name [14:58:46]save OK [14:58:46]Clear old archive folders... [14:58:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:58:46]tlvbuf is 0179AF90 [14:58:46]SAM_PROTO_ClearQueue [14:58:46]wFMCommunicate request_size=4 [14:58:46]MH_SAM_APDU [14:58:46]CAPDU: 80 09 00 00 [14:58:46]Write to MH i2c: E2 08 00 99 61 80 09 00 00 00 00 00 00 6C [14:58:46]Write i2c OK [14:58:46]MH_I2C_Read... [14:58:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:58:47]Read from MH i2c: E2 [14:58:47]MH_I2C_Read... [14:58:47]Read from MH i2c: E2 03 00 [14:58:47]MH_I2C_Read... [14:58:47]Read from MH i2c: E2 03 00 99 61 00 90 00 6E [14:58:47]RAPDU: 90 00 [14:58:47]wFMCommunicate OK [14:58:47]SAM_PROTO_ClearQueue done [14:58:47]KKMCreateOFDPacket [14:58:47]OFDProtocolAddRootSTLVToBuf [14:58:47]FM_MakeSignedData [14:58:47]FM_MakeSignedData [14:58:47]SAM_PROTO_SignData [14:58:47]wFMCommunicate request_size=4 [14:58:47]MH_SAM_APDU [14:58:47]CAPDU: 80 0D 01 02 [14:58:47]Write to MH i2c: E2 08 00 9A 61 80 0D 01 02 00 00 00 00 74 [14:58:47]Write i2c OK [14:58:47]MH_I2C_Read... [14:58:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:58:47]Read from MH i2c: E2 [14:58:47]MH_I2C_Read... [14:58:47]Read from MH i2c: E2 03 00 [14:58:47]MH_I2C_Read... [14:58:47]Read from MH i2c: E2 03 00 9A 61 00 90 00 6F [14:58:47]RAPDU: 90 00 [14:58:47]wFMCommunicate OK [14:58:47]wFMCommunicate request_size=255 [14:58:47]MH_SAM_APDU [14:58: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 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 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 AB 00 00 00 F4 03 04 00 2C 55 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CC 63 02 00 35 04 06 00 0D [14:58:47]Write to MH i2c: E2 02 01 9B 61 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 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 AB 00 00 00 F4 03 04 00 2C 55 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CC 63 02 00 35 04 06 00 0D 00 00 1D [14:58:47]Write i2c OK [14:58:47]MH_I2C_Read... [14:58:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:58:47]Read from MH i2c: E2 [14:58:47]MH_I2C_Read... [14:58:47]Read from MH i2c: E2 03 00 [14:58:47]MH_I2C_Read... [14:58:47]Read from MH i2c: E2 03 00 9B 61 00 90 00 70 [14:58:47]RAPDU: 90 00 [14:58:47]wFMCommunicate OK [14:58:47]wFMCommunicate request_size=10 [14:58:47]MH_SAM_APDU [14:58:47]CAPDU: 80 0D 02 02 05 C4 85 03 1A 0B [14:58:47]Write to MH i2c: E2 0D 00 9C 61 80 0D 02 02 05 00 C4 85 03 1A 0B 00 00 F2 [14:58:47]Write i2c OK [14:58:47]MH_I2C_Read... [14:58:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:58:47]Read from MH i2c: E2 [14:58:47]MH_I2C_Read... [14:58:47]Read from MH i2c: E2 03 00 [14:58:47]MH_I2C_Read... [14:58:47]Read from MH i2c: E2 03 00 9C 61 00 90 00 71 [14:58:47]RAPDU: 90 00 [14:58:47]wFMCommunicate OK [14:58:47]wFMCommunicate request_size=4 [14:58:47]MH_SAM_APDU [14:58:47]CAPDU: 80 0D 03 02 [14:58:47]Write to MH i2c: E2 08 00 9D 61 80 0D 03 02 00 00 00 00 79 [14:58:47]Write i2c OK [14:58:47]MH_I2C_Read... [14:58:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:58:47]Read from MH i2c: E2 [14:58:47]MH_I2C_Read... [14:58:47]Read from MH i2c: E2 0B 00 [14:58:47]MH_I2C_Read... [14:58:47]Read from MH i2c: E2 0B 00 9D 61 00 36 09 62 16 19 E3 28 52 90 00 A7 [14:58:47]RAPDU: 36 09 62 16 19 E3 28 52 90 00 [14:58:47]wFMCommunicate OK [14:58:47]SAM_PROTO_SignData done [14:58:47]FM_MakeSignedData done [14:58:47]CreateOFDProtocolMessage [14:58:47]wFMCommunicate request_size=4 [14:58:47]MH_SAM_APDU [14:58:47]CAPDU: 80 11 00 00 [14:58:47]Write to MH i2c: E2 08 00 9E 61 80 11 00 00 00 00 00 00 79 [14:58:47]Write i2c OK [14:58:47]MH_I2C_Read... [14:58:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:58:47]Read from MH i2c: E2 [14:58:47]MH_I2C_Read... [14:58:47]Read from MH i2c: E2 17 00 [14:58:47]MH_I2C_Read... [14:58:47]Read from MH i2c: E2 17 00 9E 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 CE [14:58:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:58:47]wFMCommunicate OK [14:58:47]CreateOFDProtocolMessage done [14:58:47]OFDSenderStorePacket 156620 [14:58:47]StoreOFDPacket docnum=156620 [14:58:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 2A 5A 07 01 72 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 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 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 AB 00 00 00 F4 03 04 00 2C 55 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CC 63 02 00 35 04 06 00 0D C4 85 03 1A 0B 36 09 62 16 19 E3 28 52 [14:58:47]CheckFolder [14:58:47]dirname=/storage/ofd_packets [14:58:47]CheckFolder done [14:58:47]ProducePacketName [14:58:47]name=ofd_packets/00156620 [14:58:47]NVStorageSaveData ofd_packets/00156620 [14:58:47]File name is /storage/ofd_packets/00156620 [14:58:47]Write 301 bytes [14:58:47]NVStorageSaveData done [14:58:47]OFDSenderStorePacket done [14:58:47]KKMCreateOFDPacket done [14:58:47]NVStorageSaveData kkm_last_timestamp [14:58:47]File name is /storage/kkm_last_timestamp [14:58:47]Write 4 bytes [14:58:47]NVStorageSaveData done [14:58:47]ExternCall_PrintAddStr [14:58:47]wPrintStart [14:58:47]Write to MH i2c: 01 00 00 9F 61 00 [14:58:47]Write i2c OK [14:58:47]MH_I2C_Read... [14:58:47]Read from MH i2c: 01 [14:58:47]MH_I2C_Read... [14:58:47]Read from MH i2c: 01 07 00 [14:58:47]MH_I2C_Read... [14:58:47]Read from MH i2c: 01 07 00 9F 61 00 00 00 00 00 FF 0F 15 [14:58:47]RasterBufferAndPrint [14:58:47]line Счет N : (1)99434 [14:58:47]line ИНН: 02508201610067 [14:58:47]line Контрольно-Кассовый Чек [14:58:47]line ПРОДАЖА [14:58:47]line ТРК (МРК, ГНК) : 11 [14:58:47]line Товар: 2710124130 [14:58:47]line Аи-92-К-5 [14:58:47]line 5.240 * 66.90 [14:58:47]line = 350.56 [14:58:47]line НДС 12% НСП 1% [14:58:47]line > о реализуемом товаре [14:58:47]line ОКРУГЛЕНИЕ: -0.56 [14:58:47]line ИТОГО: 350.00 [14:58:47]line Внесено: 350.00 [14:58:47]line СДАЧА: 0.00 [14:58:47]line НСП 1% : 3.10 [14:58:47]line НДС 12% : 37.23 [14:58:47]line Наличными: 350.00 [14:58:47]line Безнал.: 0.00 [14:58:47]line Место: АЗС № 143 "Партнер Нефть" [14:58:47]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [14:58:47]line СНО: Общий режим [14:58:47]line Чек 171 27.10.2024 14:58 [14:58:47]line Смена: 537 ФФД: 1.0 [14:58:47]line ЗНМ: 0300000096 [14:58:47]line РНМ: 0000000000091693 [14:58:47]line Версия ККМ: 001 [14:58:47]line ФМ: 0000000000871792 [14:58:47]line ФД: 156620 [14:58:47]line ФПД: 15137696324107 [14:58:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T145852&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156620&fm=15137696324107&tin=02508201610067®Number=0000000000091693&sum=35000 [14:58:47]OFD Sender: Processing packet 156620 [packets to send 31, broken 30] [14:58:47]ProducePacketName [14:58:47]name=ofd_packets/00156620 [14:58:47]OFD Sender: To server: pG, [14:58:47]CommunicateWithHost lk.salyk.kg:30040 [14:58:47]ConnectInit lk.salyk.kg [14:58:47]written 0, free lines is 4095 [14:58:47]Connected sock=8 [14:58:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 2A 5A 07 01 72 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 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 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 AB 00 00 00 F4 03 04 00 2C 55 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CC 63 02 00 35 04 06 00 0D C4 85 03 1A 0B 36 09 62 16 19 E3 28 52 [14:58:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 7D B9 47 00 B7 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 31 37 39 32 10 04 04 00 CC 63 02 00 F4 03 04 00 9B FA 1D 67 B6 04 01 00 00 93 A5 28 51 A9 06 EE AD [14:58:48]CommunicateWithHost err = 0 [14:58:48]CheckOFDResponse [14:58:48]1017 (14) - 77093643461234 [14:58:48]1041 (16) - 0000000000871792 [14:58:48]1040 (4) - 156620 [14:58:48]1012 (4) - 27.10.2024 08:32 [14:58:48]1206 (1) - 0 [14:58:48]OFD Sender: Remove packet 156620 [14:58:48]ProducePacketName [14:58:48]name=ofd_packets/00156620 [14:58:48]NVStorageDeleteData [14:58:48]Write to MH i2c: 01 00 00 CA 61 2B [14:58:48]Write i2c OK [14:58:48]MH_I2C_Read... [14:58:48]Read from MH i2c: 01 [14:58:48]MH_I2C_Read... [14:58:48]Read from MH i2c: 01 07 00 [14:58:48]MH_I2C_Read... [14:58:48]Read from MH i2c: 01 07 00 CA 61 00 00 00 00 00 EB 0C 29 [14:58:48]RasterBufferAndPrint [14:58:48]line [14:58:48]line [14:58:48]line [14:58:48]line [14:58:48]line [14:58:48]written 0, free lines is 3313 [14:58:48]process_action close_receipt done [14:58:48]requested_data is exist [14:58:48]produce_requested_data [14:58:48]requested_item fm.sn is exist - process it [14:58:48]wFMCommunicate request_size=4 [14:58:48]MH_SAM_APDU [14:58:48]CAPDU: 80 11 00 00 [14:58:48]Write to MH i2c: E2 08 00 D1 61 80 11 00 00 00 00 00 00 AC [14:58:48]Write i2c OK [14:58:48]MH_I2C_Read... [14:58:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:58:48]Read from MH i2c: E2 [14:58:48]MH_I2C_Read... [14:58:48]Read from MH i2c: E2 17 00 [14:58:48]MH_I2C_Read... [14:58:48]Read from MH i2c: E2 17 00 D1 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 01 [14:58:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [14:58:48]wFMCommunicate OK [14:58:48]requested_item fd.num is exist - process it [14:58:48]SAM_PROTO_GetFieldsCounters [14:58:48]wFMCommunicate request_size=4 [14:58:48]MH_SAM_APDU [14:58:48]CAPDU: 80 13 00 00 [14:58:48]Write to MH i2c: E2 08 00 D2 61 80 13 00 00 00 00 00 00 AF [14:58:48]Write i2c OK [14:58:48]MH_I2C_Read... [14:58:48]Read from MH i2c: E2 [14:58:48]MH_I2C_Read... [14:58:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:58:48]Read from MH i2c: E2 62 00 [14:58:48]MH_I2C_Read... [14:58:48]Read from MH i2c: E2 62 00 D2 61 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 CC 63 02 00 0E 04 04 00 19 02 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 22 [14:58:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 CC 63 02 00 0E 04 04 00 19 02 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 [14:58:48]wFMCommunicate OK [14:58:48]SAM_PROTO_GetFieldsCounters done [14:58:48]requested_item shift.num is exist - process it [14:58:48]requested_item shift.opened is exist - process it [14:58:48]req_shift_opened [14:58:48]FM_GetShiftState [14:58:48]SAM_PROTO_GetShiftState [14:58:48]wFMCommunicate request_size=4 [14:58:48]MH_SAM_APDU [14:58:48]CAPDU: 80 13 01 00 [14:58:48]Write to MH i2c: E2 08 00 D3 61 80 13 01 00 00 00 00 00 B1 [14:58:48]Write i2c OK [14:58:48]MH_I2C_Read... [14:58:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:58:48]Read from MH i2c: E2 [14:58:48]MH_I2C_Read... [14:58:48]Read from MH i2c: E2 0E 00 [14:58:48]MH_I2C_Read... [14:58:48]Read from MH i2c: E2 0E 00 D3 61 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 7E [14:58:48]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [14:58:48]wFMCommunicate OK [14:58:48]SAM_PROTO_GetShiftState done [14:58:48]FM_GetShiftState done [14:58:48]req_shift_opened done [14:58:48]requested_item shift.open_date is exist - process it [14:58:48]req_shift_open_date [14:58:48]req_shift_open_date done [14:58:48]produce_requested_data done [14:58:48]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156620,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [14:58:48]process_action_free close_receipt [14:58:48]json_value_free [14:58:48]json_value_free done [14:58:48]process_json_proto returns [14:58:48]Send response to host [14:58:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156620,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [14:58:48]free response buf [14:58:48]execute_script done [14:58:48]execute_script returns [14:58:48]free content buf [14:58:48]Sock 9.Close socket [14:58:48]Sock 9.Thread stoped [14:58:48]OFD Sender: No OFD packet to send [14:58:53]OFD Sender: No OFD packet to send [14:58:58]OFD Sender: No OFD packet to send [14:59:03]OFD Sender: No OFD packet to send [14:59:08]OFD Sender: No OFD packet to send [14:59:13]OFD Sender: No OFD packet to send [14:59:18]OFD Sender: No OFD packet to send [14:59:23]OFD Sender: No OFD packet to send [14:59:28]OFD Sender: No OFD packet to send [14:59:33]OFD Sender: No OFD packet to send [14:59:38]OFD Sender: No OFD packet to send [14:59:43]OFD Sender: No OFD packet to send [14:59:48]OFD Sender: No OFD packet to send [14:59:53]OFD Sender: No OFD packet to send [14:59:58]OFD Sender: No OFD packet to send [15:00:01]accept exits with 10 [15:00:01]New connection [15:00:01]New thread 3066977636 created [15:00:01]Thread 3066834276 joined [15:00:01]Waiting for new connection... [15:00:01] Sock 10.Parse request [15:00:01]Sock 10.Check first char [15:00:01]Sock 10.First char is OK [15:00:01]request: POST /json_proto HTTP/1.0 [15:00:01]Method: POST [15:00:01]URL: /json_proto [15:00:01]Method is POST - this is cgi request [15:00:01]url: /json_proto [15:00:01]query_string will be loaded in cgi processing [15:00:01]execute_cgi json_proto POST (null) [15:00:01]execute_cgi path=json_proto method=POST [15:00:01]POST find Content-Length [15:00:01]Host: 172.17.63.3:8080 [15:00:01]Content-Length: 681 [15:00:01]Content-Type: application/json [15:00:01] [15:00:01]POST finish read [15:00:01]Found Content-Length = 681 [15:00:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99435", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:00:01]execute_script... [15: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)99435", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:00:01]POST & json_proto [15:00:01]process_json_proto [15:00:01]json parsed OK: [15:00:01]protocol is kg_v1.0 [15:00:01]action value=close_receipt [15:00:01]process_action close_receipt [15:00:01]cmd_close_receipt [15:00:01]MH_GetDate [15:00:01]Write to MH i2c: F0 00 00 D4 61 24 [15:00:01]Write i2c OK [15:00:01]MH_I2C_Read... [15:00:01]Read from MH i2c: F0 [15:00:01]MH_I2C_Read... [15:00:01]Read from MH i2c: F0 09 00 [15:00:01]MH_I2C_Read... [15:00:01]Read from MH i2c: F0 09 00 D4 61 00 78 55 1E 67 50 D1 6C 64 70 [15:00:01]GetLastDocTimeStamp 1730041132 [15:00:01]current date 1730041208 [15:00:01]FM_GetShiftState [15:00:01]SAM_PROTO_GetShiftState [15:00:01]wFMCommunicate request_size=4 [15:00:01]MH_SAM_APDU [15:00:01]CAPDU: 80 13 01 00 [15:00:01]Write to MH i2c: E2 08 00 D5 61 80 13 01 00 00 00 00 00 B3 [15:00:01]Write i2c OK [15:00:01]MH_I2C_Read... [15:00:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:00:01]Read from MH i2c: E2 [15:00:01]MH_I2C_Read... [15:00:01]Read from MH i2c: E2 0E 00 [15:00:01]MH_I2C_Read... [15:00:01]Read from MH i2c: E2 0E 00 D5 61 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 80 [15:00:01]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [15:00:01]wFMCommunicate OK [15:00:01]SAM_PROTO_GetShiftState done [15:00:01]FM_GetShiftState done [15:00:01]opened in 1729989044 [15:00:01]opened+sec_in_day 1730075444 [15:00:01]quantity*price = 100015 [15:00:01]sum+1 = 100017 [15:00:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 172 27.10.2024 15:00 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156621 ФПД: 222791908701695 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T150008&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156621&fm=222791908701695&tin=02508201610067®Number=0000000000091693&sum=100000 [15:00:02]StoreToDocumentArchive [15:00:02]shift 537 fd 156621 [15:00:02]save to /storage/0537/doc_00156621 [15:00:02]save last doc name /storage/0537/doc_00156621 to /storage/kkm_last_doc_name [15:00:02]save OK [15:00:02]Clear old archive folders... [15:00:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:00:02]tlvbuf is 0174F9C0 [15:00:02]SAM_PROTO_ClearQueue [15:00:02]wFMCommunicate request_size=4 [15:00:02]MH_SAM_APDU [15:00:02]CAPDU: 80 09 00 00 [15:00:02]Write to MH i2c: E2 08 00 E2 61 80 09 00 00 00 00 00 00 B5 [15:00:02]Write i2c OK [15:00:02]MH_I2C_Read... [15:00:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:00:03]Read from MH i2c: E2 [15:00:03]MH_I2C_Read... [15:00:03]Read from MH i2c: E2 03 00 [15:00:03]MH_I2C_Read... [15:00:03]Read from MH i2c: E2 03 00 E2 61 00 90 00 B7 [15:00:03]RAPDU: 90 00 [15:00:03]wFMCommunicate OK [15:00:03]SAM_PROTO_ClearQueue done [15:00:03]KKMCreateOFDPacket [15:00:03]OFDProtocolAddRootSTLVToBuf [15:00:03]FM_MakeSignedData [15:00:03]FM_MakeSignedData [15:00:03]SAM_PROTO_SignData [15:00:03]wFMCommunicate request_size=4 [15:00:03]MH_SAM_APDU [15:00:03]CAPDU: 80 0D 01 02 [15:00:03]Write to MH i2c: E2 08 00 E3 61 80 0D 01 02 00 00 00 00 BD [15:00:03]Write i2c OK [15:00:03]MH_I2C_Read... [15:00:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:00:03]Read from MH i2c: E2 [15:00:03]MH_I2C_Read... [15:00:03]Read from MH i2c: E2 03 00 [15:00:03]MH_I2C_Read... [15:00:03]Read from MH i2c: E2 03 00 E3 61 00 90 00 B8 [15:00:03]RAPDU: 90 00 [15:00:03]wFMCommunicate OK [15:00:03]wFMCommunicate request_size=255 [15:00:03]MH_SAM_APDU [15:00:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 78 55 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CD 63 02 00 35 04 06 00 CA [15:00:03]Write to MH i2c: E2 02 01 E4 61 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 78 55 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CD 63 02 00 35 04 06 00 CA 00 00 60 [15:00:03]Write i2c OK [15:00:03]MH_I2C_Read... [15:00:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:00:03]Read from MH i2c: E2 [15:00:03]MH_I2C_Read... [15:00:03]Read from MH i2c: E2 03 00 [15:00:03]MH_I2C_Read... [15:00:03]Read from MH i2c: E2 03 00 E4 61 00 90 00 B9 [15:00:03]RAPDU: 90 00 [15:00:03]wFMCommunicate OK [15:00:03]wFMCommunicate request_size=10 [15:00:03]MH_SAM_APDU [15:00:03]CAPDU: 80 0D 02 02 05 A0 C8 93 B5 FF [15:00:03]Write to MH i2c: E2 0D 00 E5 61 80 0D 02 02 05 00 A0 C8 93 B5 FF 00 00 79 [15:00:03]Write i2c OK [15:00:03]MH_I2C_Read... [15:00:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:00:03]Read from MH i2c: E2 [15:00:03]MH_I2C_Read... [15:00:03]Read from MH i2c: E2 03 00 [15:00:03]MH_I2C_Read... [15:00:03]Read from MH i2c: E2 03 00 E5 61 00 90 00 BA [15:00:03]RAPDU: 90 00 [15:00:03]wFMCommunicate OK [15:00:03]wFMCommunicate request_size=4 [15:00:03]MH_SAM_APDU [15:00:03]CAPDU: 80 0D 03 02 [15:00:03]Write to MH i2c: E2 08 00 E6 61 80 0D 03 02 00 00 00 00 C2 [15:00:03]Write i2c OK [15:00:03]MH_I2C_Read... [15:00:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:00:03]Read from MH i2c: E2 [15:00:03]MH_I2C_Read... [15:00:03]Read from MH i2c: E2 0B 00 [15:00:03]MH_I2C_Read... [15:00:03]Read from MH i2c: E2 0B 00 E6 61 00 40 0E F6 5E 44 69 ED D3 90 00 D2 [15:00:03]RAPDU: 40 0E F6 5E 44 69 ED D3 90 00 [15:00:03]wFMCommunicate OK [15:00:03]SAM_PROTO_SignData done [15:00:03]FM_MakeSignedData done [15:00:03]CreateOFDProtocolMessage [15:00:03]wFMCommunicate request_size=4 [15:00:03]MH_SAM_APDU [15:00:03]CAPDU: 80 11 00 00 [15:00:03]Write to MH i2c: E2 08 00 E7 61 80 11 00 00 00 00 00 00 C2 [15:00:03]Write i2c OK [15:00:03]MH_I2C_Read... [15:00:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:00:03]Read from MH i2c: E2 [15:00:03]MH_I2C_Read... [15:00:03]Read from MH i2c: E2 17 00 [15:00:03]MH_I2C_Read... [15:00:03]Read from MH i2c: E2 17 00 E7 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 17 [15:00:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:00:03]wFMCommunicate OK [15:00:03]CreateOFDProtocolMessage done [15:00:03]OFDSenderStorePacket 156621 [15:00:03]StoreOFDPacket docnum=156621 [15:00:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 B2 80 07 01 0C 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 78 55 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CD 63 02 00 35 04 06 00 CA A0 C8 93 B5 FF 40 0E F6 5E 44 69 ED D3 [15:00:03]CheckFolder [15:00:03]dirname=/storage/ofd_packets [15:00:03]CheckFolder done [15:00:03]ProducePacketName [15:00:03]name=ofd_packets/00156621 [15:00:03]NVStorageSaveData ofd_packets/00156621 [15:00:03]File name is /storage/ofd_packets/00156621 [15:00:03]Write 301 bytes [15:00:03]NVStorageSaveData done [15:00:03]OFDSenderStorePacket done [15:00:03]KKMCreateOFDPacket done [15:00:03]NVStorageSaveData kkm_last_timestamp [15:00:03]File name is /storage/kkm_last_timestamp [15:00:03]Write 4 bytes [15:00:03]NVStorageSaveData done [15:00:03]ExternCall_PrintAddStr [15:00:03]wPrintStart [15:00:03]Write to MH i2c: 01 00 00 E8 61 49 [15:00:03]OFD Sender: Processing packet 156621 [packets to send 31, broken 30] [15:00:03]ProducePacketName [15:00:03]name=ofd_packets/00156621 [15:00:03]OFD Sender: To server: pG, [15:00:03]CommunicateWithHost lk.salyk.kg:30040 [15:00:03]ConnectInit lk.salyk.kg [15:00:03]Write i2c OK [15:00:03]MH_I2C_Read... [15:00:03]Read from MH i2c: 01 [15:00:03]MH_I2C_Read... [15:00:03]Read from MH i2c: 01 07 00 [15:00:03]MH_I2C_Read... [15:00:03]Read from MH i2c: 01 07 00 E8 61 00 00 00 00 00 FF 0F 5E [15:00:03]RasterBufferAndPrint [15:00:03]line Счет N : (1)99435 [15:00:03]line ИНН: 02508201610067 [15:00:03]line Контрольно-Кассовый Чек [15:00:03]line ПРОДАЖА [15:00:03]line ТРК (МРК, ГНК) : 21 [15:00:03]line Товар: 2710124130 [15:00:03]line Аи-92-К-5 [15:00:03]line 14.950 * 66.90 [15:00:03]line = 1000.16 [15:00:03]line НДС 12% НСП 1% [15:00:03]line > о реализуемом товаре [15:00:03]line ОКРУГЛЕНИЕ: -0.16 [15:00:03]line ИТОГО: 1000.00 [15:00:03]line Внесено: 1000.00 [15:00:03]line СДАЧА: 0.00 [15:00:03]line НСП 1% : 8.85 [15:00:03]line НДС 12% : 106.21 [15:00:03]line Наличными: 1000.00 [15:00:03]line Безнал.: 0.00 [15:00:03]line Место: АЗС № 143 "Партнер Нефть" [15:00:03]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [15:00:03]line СНО: Общий режим [15:00:03]line Чек 172 27.10.2024 15:00 [15:00:03]line Смена: 537 ФФД: 1.0 [15:00:03]line ЗНМ: 0300000096 [15:00:03]line РНМ: 0000000000091693 [15:00:03]line Версия ККМ: 001 [15:00:03]line ФМ: 0000000000871792 [15:00:03]line ФД: 156621 [15:00:03]line ФПД: 222791908701695 [15:00:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T150008&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156621&fm=222791908701695&tin=02508201610067®Number=0000000000091693&sum=100000 [15:00:03]Connected sock=9 [15: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 31 37 39 32 0F 01 00 00 B2 80 07 01 0C 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 78 55 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CD 63 02 00 35 04 06 00 CA A0 C8 93 B5 FF 40 0E F6 5E 44 69 ED D3 [15:00:03]written 0, free lines is 4095 [15:00:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 68 A5 47 00 93 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CD 63 02 00 F4 03 04 00 E7 FA 1D 67 B6 04 01 00 00 33 82 44 F5 6C 57 D1 F1 [15:00:04]CommunicateWithHost err = 0 [15:00:04]CheckOFDResponse [15:00:04]1017 (14) - 77093643461234 [15:00:04]1041 (16) - 0000000000871792 [15:00:04]1040 (4) - 156621 [15:00:04]1012 (4) - 27.10.2024 08:33 [15:00:04]1206 (1) - 0 [15:00:04]OFD Sender: Remove packet 156621 [15:00:04]ProducePacketName [15:00:04]name=ofd_packets/00156621 [15:00:04]NVStorageDeleteData [15:00:04]Write to MH i2c: 01 00 00 13 62 75 [15:00:04]Write i2c OK [15:00:04]MH_I2C_Read... [15:00:04]Read from MH i2c: 01 [15:00:04]MH_I2C_Read... [15:00:04]Read from MH i2c: 01 07 00 [15:00:04]MH_I2C_Read... [15:00:04]Read from MH i2c: 01 07 00 13 62 00 00 00 00 00 E8 0C 70 [15:00:04]RasterBufferAndPrint [15:00:04]line [15:00:04]line [15:00:04]line [15:00:04]line [15:00:04]line [15:00:04]written 0, free lines is 3310 [15:00:04]process_action close_receipt done [15:00:04]requested_data is exist [15:00:04]produce_requested_data [15:00:04]requested_item fm.sn is exist - process it [15:00:04]wFMCommunicate request_size=4 [15:00:04]MH_SAM_APDU [15:00:04]CAPDU: 80 11 00 00 [15:00:04]Write to MH i2c: E2 08 00 1A 62 80 11 00 00 00 00 00 00 F6 [15:00:04]Write i2c OK [15:00:04]MH_I2C_Read... [15:00:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:00:04]Read from MH i2c: E2 [15:00:04]MH_I2C_Read... [15:00:04]Read from MH i2c: E2 17 00 [15:00:04]MH_I2C_Read... [15:00:04]Read from MH i2c: E2 17 00 1A 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 4B [15:00:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:00:04]wFMCommunicate OK [15:00:04]requested_item fd.num is exist - process it [15:00:04]SAM_PROTO_GetFieldsCounters [15:00:04]wFMCommunicate request_size=4 [15:00:04]MH_SAM_APDU [15:00:04]CAPDU: 80 13 00 00 [15:00:04]Write to MH i2c: E2 08 00 1B 62 80 13 00 00 00 00 00 00 F9 [15:00:04]Write i2c OK [15:00:04]MH_I2C_Read... [15:00:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:00:04]Read from MH i2c: E2 [15:00:04]MH_I2C_Read... [15:00:04]Read from MH i2c: E2 62 00 [15:00:04]MH_I2C_Read... [15:00:04]Read from MH i2c: E2 62 00 1B 62 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 CD 63 02 00 0E 04 04 00 19 02 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 70 [15: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 CD 63 02 00 0E 04 04 00 19 02 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 [15:00:04]wFMCommunicate OK [15:00:04]SAM_PROTO_GetFieldsCounters done [15:00:04]requested_item shift.num is exist - process it [15:00:04]requested_item shift.opened is exist - process it [15:00:04]req_shift_opened [15:00:04]FM_GetShiftState [15:00:04]SAM_PROTO_GetShiftState [15:00:04]wFMCommunicate request_size=4 [15:00:04]MH_SAM_APDU [15:00:04]CAPDU: 80 13 01 00 [15:00:04]Write to MH i2c: E2 08 00 1C 62 80 13 01 00 00 00 00 00 FB [15:00:04]OFD Sender: No OFD packet to send [15:00:04]Write i2c OK [15:00:04]MH_I2C_Read... [15:00:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:00:04]Read from MH i2c: E2 [15:00:04]MH_I2C_Read... [15:00:04]Read from MH i2c: E2 0E 00 [15:00:04]MH_I2C_Read... [15:00:04]Read from MH i2c: E2 0E 00 1C 62 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 C8 [15:00:04]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [15:00:04]wFMCommunicate OK [15:00:04]SAM_PROTO_GetShiftState done [15:00:04]FM_GetShiftState done [15:00:04]req_shift_opened done [15:00:04]requested_item shift.open_date is exist - process it [15:00:04]req_shift_open_date [15:00:04]req_shift_open_date done [15:00:04]produce_requested_data done [15:00:04]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156621,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [15:00:04]process_action_free close_receipt [15:00:04]json_value_free [15:00:04]json_value_free done [15:00:04]process_json_proto returns [15:00:04]Send response to host [15:00:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156621,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [15:00:04]free response buf [15:00:04]execute_script done [15:00:04]execute_script returns [15:00:04]free content buf [15:00:04]Sock 10.Close socket [15:00:04]Sock 10.Thread stoped [15:00:09]OFD Sender: No OFD packet to send [15:00:14]OFD Sender: No OFD packet to send [15:00:19]OFD Sender: No OFD packet to send [15:00:24]OFD Sender: No OFD packet to send [15:00:29]OFD Sender: No OFD packet to send [15:00:34]OFD Sender: No OFD packet to send [15:00:39]OFD Sender: No OFD packet to send [15:00:44]OFD Sender: No OFD packet to send [15:00:49]OFD Sender: No OFD packet to send [15:00:54]accept exits with 8 [15:00:54]New connection [15:00:54]New thread 3066834276 created [15:00:54]Thread 3066977636 joined [15:00:54]Waiting for new connection... [15:00:54] Sock 8.Parse request [15:00:54]Sock 8.Check first char [15:00:54]Sock 8.First char is OK [15:00:54]request: POST /json_proto HTTP/1.0 [15:00:54]Method: POST [15:00:54]URL: /json_proto [15:00:54]Method is POST - this is cgi request [15:00:54]url: /json_proto [15:00:54]query_string will be loaded in cgi processing [15:00:54]execute_cgi json_proto POST (null) [15:00:54]execute_cgi path=json_proto method=POST [15:00:54]POST find Content-Length [15:00:54]Host: 172.17.63.3:8080 [15:00:54]Content-Length: 677 [15:00:54]Content-Type: application/json [15:00:54] [15:00:54]POST finish read [15:00:54]Found Content-Length = 677 [15:00:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99436", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:00:54]execute_script... [15:00:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99436", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:00:54]POST & json_proto [15:00:54]process_json_proto [15:00:54]json parsed OK: [15:00:54]protocol is kg_v1.0 [15:00:54]action value=close_receipt [15:00:54]process_action close_receipt [15:00:54]cmd_close_receipt [15:00:54]MH_GetDate [15:00:54]Write to MH i2c: F0 00 00 1D 62 6E [15:00:54]Write i2c OK [15:00:54]MH_I2C_Read... [15:00:54]Read from MH i2c: F0 [15:00:54]MH_I2C_Read... [15:00:54]Read from MH i2c: F0 09 00 [15:00:54]MH_I2C_Read... [15:00:54]Read from MH i2c: F0 09 00 1D 62 00 AC 55 1E 67 50 D1 6C 64 EE [15:00:54]GetLastDocTimeStamp 1730041208 [15:00:54]current date 1730041260 [15:00:54]FM_GetShiftState [15:00:54]SAM_PROTO_GetShiftState [15:00:54]wFMCommunicate request_size=4 [15:00:54]MH_SAM_APDU [15:00:54]CAPDU: 80 13 01 00 [15:00:54]Write to MH i2c: E2 08 00 1E 62 80 13 01 00 00 00 00 00 FD [15:00:54]Write i2c OK [15:00:54]MH_I2C_Read... [15:00:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:00:54]Read from MH i2c: E2 [15:00:54]MH_I2C_Read... [15:00:54]Read from MH i2c: E2 0E 00 [15:00:54]MH_I2C_Read... [15:00:54]Read from MH i2c: E2 0E 00 1E 62 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 CA [15:00:54]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [15:00:54]wFMCommunicate OK [15:00:54]SAM_PROTO_GetShiftState done [15:00:54]FM_GetShiftState done [15:00:54]opened in 1729989044 [15:00:54]opened+sec_in_day 1730075444 [15:00:54]quantity*price = 70044 [15:00:54]sum+1 = 70045 [15:00:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 173 27.10.2024 15:01 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156622 ФПД: 25630105424881 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T150100&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156622&fm=25630105424881&tin=02508201610067®Number=0000000000091693&sum=70000 [15:00:55]StoreToDocumentArchive [15:00:55]shift 537 fd 156622 [15:00:55]save to /storage/0537/doc_00156622 [15:00:55]save last doc name /storage/0537/doc_00156622 to /storage/kkm_last_doc_name [15:00:55]save OK [15:00:55]Clear old archive folders... [15:00:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:00:55]tlvbuf is 017AE300 [15:00:55]SAM_PROTO_ClearQueue [15:00:55]wFMCommunicate request_size=4 [15:00:55]MH_SAM_APDU [15:00:55]CAPDU: 80 09 00 00 [15:00:55]Write to MH i2c: E2 08 00 2B 62 80 09 00 00 00 00 00 00 FF [15:00:55]Write i2c OK [15:00:55]MH_I2C_Read... [15:00:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:00:55]Read from MH i2c: E2 [15:00:55]MH_I2C_Read... [15:00:55]Read from MH i2c: E2 03 00 [15:00:55]MH_I2C_Read... [15:00:55]Read from MH i2c: E2 03 00 2B 62 00 90 00 01 [15:00:55]RAPDU: 90 00 [15:00:55]wFMCommunicate OK [15:00:55]SAM_PROTO_ClearQueue done [15:00:55]KKMCreateOFDPacket [15:00:55]OFDProtocolAddRootSTLVToBuf [15:00:55]FM_MakeSignedData [15:00:55]FM_MakeSignedData [15:00:55]SAM_PROTO_SignData [15:00:55]wFMCommunicate request_size=4 [15:00:55]MH_SAM_APDU [15:00:55]CAPDU: 80 0D 01 02 [15:00:55]Write to MH i2c: E2 08 00 2C 62 80 0D 01 02 00 00 00 00 07 [15:00:55]Write i2c OK [15:00:55]MH_I2C_Read... [15:00:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:00:55]Read from MH i2c: E2 [15:00:55]MH_I2C_Read... [15:00:55]Read from MH i2c: E2 03 00 [15:00:55]MH_I2C_Read... [15:00:55]Read from MH i2c: E2 03 00 2C 62 00 90 00 02 [15:00:55]RAPDU: 90 00 [15:00:55]wFMCommunicate OK [15:00:55]wFMCommunicate request_size=255 [15:00:55]MH_SAM_APDU [15:00: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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 AD 00 00 00 F4 03 04 00 AC 55 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CE 63 02 00 35 04 06 00 17 [15:00:55]Write to MH i2c: E2 02 01 2D 62 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 AD 00 00 00 F4 03 04 00 AC 55 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CE 63 02 00 35 04 06 00 17 00 00 43 [15:00:55]Write i2c OK [15:00:55]MH_I2C_Read... [15:00:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:00:55]Read from MH i2c: E2 [15:00:55]MH_I2C_Read... [15:00:55]Read from MH i2c: E2 03 00 [15:00:55]MH_I2C_Read... [15:00:55]Read from MH i2c: E2 03 00 2D 62 00 90 00 03 [15:00:55]RAPDU: 90 00 [15:00:55]wFMCommunicate OK [15:00:55]wFMCommunicate request_size=10 [15:00:55]MH_SAM_APDU [15:00:55]CAPDU: 80 0D 02 02 05 4F 79 54 53 F1 [15:00:55]Write to MH i2c: E2 0D 00 2E 62 80 0D 02 02 05 00 4F 79 54 53 F1 00 00 74 [15:00:55]Write i2c OK [15:00:55]MH_I2C_Read... [15:00:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:00:55]Read from MH i2c: E2 [15:00:55]MH_I2C_Read... [15:00:55]Read from MH i2c: E2 03 00 [15:00:55]MH_I2C_Read... [15:00:55]Read from MH i2c: E2 03 00 2E 62 00 90 00 04 [15:00:55]RAPDU: 90 00 [15:00:55]wFMCommunicate OK [15:00:55]wFMCommunicate request_size=4 [15:00:55]MH_SAM_APDU [15:00:55]CAPDU: 80 0D 03 02 [15:00:55]Write to MH i2c: E2 08 00 2F 62 80 0D 03 02 00 00 00 00 0C [15:00:55]Write i2c OK [15:00:55]MH_I2C_Read... [15:00:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:00:55]Read from MH i2c: E2 [15:00:55]MH_I2C_Read... [15:00:55]Read from MH i2c: E2 0B 00 [15:00:55]MH_I2C_Read... [15:00:55]Read from MH i2c: E2 0B 00 2F 62 00 0F E5 19 9B E6 9C 60 F2 90 00 89 [15:00:55]RAPDU: 0F E5 19 9B E6 9C 60 F2 90 00 [15:00:55]wFMCommunicate OK [15:00:55]SAM_PROTO_SignData done [15:00:55]FM_MakeSignedData done [15:00:55]CreateOFDProtocolMessage [15:00:55]wFMCommunicate request_size=4 [15:00:55]MH_SAM_APDU [15:00:55]CAPDU: 80 11 00 00 [15:00:55]Write to MH i2c: E2 08 00 30 62 80 11 00 00 00 00 00 00 0C [15:00:55]Write i2c OK [15:00:55]MH_I2C_Read... [15:00:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:00:55]Read from MH i2c: E2 [15:00:55]MH_I2C_Read... [15:00:55]Read from MH i2c: E2 17 00 [15:00:55]MH_I2C_Read... [15:00:55]Read from MH i2c: E2 17 00 30 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 61 [15:00:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:00:55]wFMCommunicate OK [15:00:55]CreateOFDProtocolMessage done [15:00:55]OFDSenderStorePacket 156622 [15:00:55]StoreOFDPacket docnum=156622 [15:00:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 4D 1C 07 01 46 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 AD 00 00 00 F4 03 04 00 AC 55 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CE 63 02 00 35 04 06 00 17 4F 79 54 53 F1 0F E5 19 9B E6 9C 60 F2 [15:00:55]CheckFolder [15:00:55]dirname=/storage/ofd_packets [15:00:55]CheckFolder done [15:00:55]ProducePacketName [15:00:55]name=ofd_packets/00156622 [15:00:55]NVStorageSaveData ofd_packets/00156622 [15:00:55]File name is /storage/ofd_packets/00156622 [15:00:55]Write 301 bytes [15:00:55]NVStorageSaveData done [15:00:55]OFDSenderStorePacket done [15:00:55]KKMCreateOFDPacket done [15:00:55]NVStorageSaveData kkm_last_timestamp [15:00:55]File name is /storage/kkm_last_timestamp [15:00:55]Write 4 bytes [15:00:55]NVStorageSaveData done [15:00:55]ExternCall_PrintAddStr [15:00:55]wPrintStart [15:00:55]Write to MH i2c: 01 00 00 31 62 93 [15:00:55]Write i2c OK [15:00:55]MH_I2C_Read... [15:00:55]Read from MH i2c: 01 [15:00:55]MH_I2C_Read... [15:00:55]Read from MH i2c: 01 07 00 [15:00:55]MH_I2C_Read... [15:00:55]Read from MH i2c: 01 07 00 31 62 00 00 00 00 00 FF 0F A8 [15:00:55]RasterBufferAndPrint [15:00:55]line Счет N : (1)99436 [15:00:55]line ИНН: 02508201610067 [15:00:55]line Контрольно-Кассовый Чек [15:00:55]line ПРОДАЖА [15:00:55]line ТРК (МРК, ГНК) : 11 [15:00:55]line Товар: 2710124130 [15:00:55]line Аи-92-К-5 [15:00:55]line 10.470 * 66.90 [15:00:55]line = 700.44 [15:00:55]line НДС 12% НСП 1% [15:00:55]line > о реализуемом товаре [15:00:55]line ОКРУГЛЕНИЕ: -0.44 [15:00:55]line ИТОГО: 700.00 [15:00:55]line Внесено: 700.00 [15:00:55]line СДАЧА: 0.00 [15:00:55]line НСП 1% : 6.20 [15:00:55]line НДС 12% : 74.38 [15:00:55]line Наличными: 700.00 [15:00:55]line Безнал.: 0.00 [15:00:55]line Место: АЗС № 143 "Партнер Нефть" [15:00:55]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [15:00:55]line СНО: Общий режим [15:00:55]line Чек 173 27.10.2024 15:01 [15:00:55]line Смена: 537 ФФД: 1.0 [15:00:55]line ЗНМ: 0300000096 [15:00:55]line РНМ: 0000000000091693 [15:00:55]line Версия ККМ: 001 [15:00:55]line ФМ: 0000000000871792 [15:00:55]line ФД: 156622 [15:00:55]line ФПД: 25630105424881 [15:00:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T150100&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156622&fm=25630105424881&tin=02508201610067®Number=0000000000091693&sum=70000 [15:00:55]written 0, free lines is 4095 [15:00:55]OFD Sender: Processing packet 156622 [packets to send 31, broken 30] [15:00:55]ProducePacketName [15:00:55]name=ofd_packets/00156622 [15:00:55]OFD Sender: To server: pG, [15:00:55]CommunicateWithHost lk.salyk.kg:30040 [15:00:55]ConnectInit lk.salyk.kg [15:00:55]Connected sock=10 [15:00:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 4D 1C 07 01 46 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 AD 00 00 00 F4 03 04 00 AC 55 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CE 63 02 00 35 04 06 00 17 4F 79 54 53 F1 0F E5 19 9B E6 9C 60 F2 [15:00:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 7F EB 47 00 40 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 31 37 39 32 10 04 04 00 CE 63 02 00 F4 03 04 00 1B FB 1D 67 B6 04 01 00 00 7C 0E 9E E2 07 CA AE F7 [15:00:56]CommunicateWithHost err = 0 [15:00:56]CheckOFDResponse [15:00:56]1017 (14) - 77093643461234 [15:00:56]1041 (16) - 0000000000871792 [15:00:56]1040 (4) - 156622 [15:00:56]1012 (4) - 27.10.2024 08:34 [15:00:56]1206 (1) - 0 [15:00:56]OFD Sender: Remove packet 156622 [15:00:56]ProducePacketName [15:00:56]name=ofd_packets/00156622 [15:00:56]NVStorageDeleteData [15:00:56]Write to MH i2c: 01 00 00 5C 62 BE [15:00:56]Write i2c OK [15:00:56]MH_I2C_Read... [15:00:56]Read from MH i2c: 01 [15:00:56]MH_I2C_Read... [15:00:56]Read from MH i2c: 01 07 00 [15:00:56]MH_I2C_Read... [15:00:56]Read from MH i2c: 01 07 00 5C 62 00 00 00 00 00 E6 0C B7 [15:00:56]RasterBufferAndPrint [15:00:56]line [15:00:56]line [15:00:56]line [15:00:56]line [15:00:56]line [15:00:56]written 0, free lines is 3311 [15:00:56]process_action close_receipt done [15:00:56]requested_data is exist [15:00:56]produce_requested_data [15:00:56]requested_item fm.sn is exist - process it [15:00:56]wFMCommunicate request_size=4 [15:00:56]MH_SAM_APDU [15:00:56]CAPDU: 80 11 00 00 [15:00:56]Write to MH i2c: E2 08 00 63 62 80 11 00 00 00 00 00 00 3F [15:00:56]Write i2c OK [15:00:56]MH_I2C_Read... [15:00:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:00:56]Read from MH i2c: E2 [15:00:56]MH_I2C_Read... [15:00:56]Read from MH i2c: E2 17 00 [15:00:56]MH_I2C_Read... [15:00:56]Read from MH i2c: E2 17 00 63 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 94 [15:00:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:00:56]wFMCommunicate OK [15:00:56]requested_item fd.num is exist - process it [15:00:56]SAM_PROTO_GetFieldsCounters [15:00:56]wFMCommunicate request_size=4 [15:00:56]MH_SAM_APDU [15:00:56]CAPDU: 80 13 00 00 [15:00:56]Write to MH i2c: E2 08 00 64 62 80 13 00 00 00 00 00 00 42 [15:00:56]Write i2c OK [15:00:56]MH_I2C_Read... [15:00:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:00:56]Read from MH i2c: E2 [15:00:56]MH_I2C_Read... [15:00:56]Read from MH i2c: E2 62 00 [15:00:56]MH_I2C_Read... [15:00:56]Read from MH i2c: E2 62 00 64 62 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 CE 63 02 00 0E 04 04 00 19 02 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 BD [15:00:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 CE 63 02 00 0E 04 04 00 19 02 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 [15:00:56]wFMCommunicate OK [15:00:56]SAM_PROTO_GetFieldsCounters done [15:00:56]requested_item shift.num is exist - process it [15:00:56]requested_item shift.opened is exist - process it [15:00:56]req_shift_opened [15:00:56]FM_GetShiftState [15:00:56]SAM_PROTO_GetShiftState [15:00:56]wFMCommunicate request_size=4 [15:00:56]MH_SAM_APDU [15:00:56]CAPDU: 80 13 01 00 [15:00:56]Write to MH i2c: E2 08 00 65 62 80 13 01 00 00 00 00 00 44 [15:00:56]Write i2c OK [15:00:56]MH_I2C_Read... [15:00:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:00:56]Read from MH i2c: E2 [15:00:56]MH_I2C_Read... [15:00:56]Read from MH i2c: E2 0E 00 [15:00:56]MH_I2C_Read... [15:00:56]Read from MH i2c: E2 0E 00 65 62 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 11 [15:00:56]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [15:00:56]wFMCommunicate OK [15:00:56]SAM_PROTO_GetShiftState done [15:00:56]FM_GetShiftState done [15:00:56]req_shift_opened done [15:00:56]requested_item shift.open_date is exist - process it [15:00:56]req_shift_open_date [15:00:56]req_shift_open_date done [15:00:56]produce_requested_data done [15:00:56]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156622,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [15:00:56]process_action_free close_receipt [15:00:56]json_value_free [15:00:56]json_value_free done [15:00:56]process_json_proto returns [15:00:56]Send response to host [15:00:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156622,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [15:00:56]free response buf [15:00:56]execute_script done [15:00:56]execute_script returns [15:00:56]free content buf [15:00:56]Sock 8.Close socket [15:00:56]Sock 8.Thread stoped [15:00:56]OFD Sender: No OFD packet to send [15:01:01]OFD Sender: No OFD packet to send [15:01:06]OFD Sender: No OFD packet to send [15:01:11]OFD Sender: No OFD packet to send [15:01:16]OFD Sender: No OFD packet to send [15:01:21]OFD Sender: No OFD packet to send [15:01:26]OFD Sender: No OFD packet to send [15:01:31]OFD Sender: No OFD packet to send [15:01:36]OFD Sender: No OFD packet to send [15:01:39]accept exits with 9 [15:01:39]New connection [15:01:39]New thread 3066977636 created [15:01:39]Thread 3066834276 joined [15:01:39]Waiting for new connection... [15:01:39] Sock 9.Parse request [15:01:39]Sock 9.Check first char [15:01:39]Sock 9.First char is OK [15:01:39]request: POST /json_proto HTTP/1.0 [15:01:39]Method: POST [15:01:39]URL: /json_proto [15:01:39]Method is POST - this is cgi request [15:01:39]url: /json_proto [15:01:39]query_string will be loaded in cgi processing [15:01:39]execute_cgi json_proto POST (null) [15:01:39]execute_cgi path=json_proto method=POST [15:01:39]POST find Content-Length [15:01:39]Host: 172.17.63.3:8080 [15:01:39]Content-Length: 677 [15:01:39]Content-Type: application/json [15:01:39] [15:01:39]POST finish read [15:01:39]Found Content-Length = 677 [15:01:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99437", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:01:39]execute_script... [15:01: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)99437", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:01:39]POST & json_proto [15:01:39]process_json_proto [15:01:39]json parsed OK: [15:01:39]protocol is kg_v1.0 [15:01:39]action value=close_receipt [15:01:39]process_action close_receipt [15:01:39]cmd_close_receipt [15:01:39]MH_GetDate [15:01:39]Write to MH i2c: F0 00 00 66 62 B7 [15:01:39]Write i2c OK [15:01:39]MH_I2C_Read... [15:01:39]Read from MH i2c: F0 [15:01:39]MH_I2C_Read... [15:01:39]Read from MH i2c: F0 09 00 [15:01:39]MH_I2C_Read... [15:01:39]Read from MH i2c: F0 09 00 66 62 00 D9 55 1E 67 50 D1 6C 64 64 [15:01:39]GetLastDocTimeStamp 1730041260 [15:01:39]current date 1730041305 [15:01:39]FM_GetShiftState [15:01:39]SAM_PROTO_GetShiftState [15:01:39]wFMCommunicate request_size=4 [15:01:39]MH_SAM_APDU [15:01:39]CAPDU: 80 13 01 00 [15:01:39]Write to MH i2c: E2 08 00 67 62 80 13 01 00 00 00 00 00 46 [15:01:39]Write i2c OK [15:01:39]MH_I2C_Read... [15:01:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:01:39]Read from MH i2c: E2 [15:01:39]MH_I2C_Read... [15:01:39]Read from MH i2c: E2 0E 00 [15:01:39]MH_I2C_Read... [15:01:39]Read from MH i2c: E2 0E 00 67 62 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 13 [15:01:39]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [15:01:39]wFMCommunicate OK [15:01:39]SAM_PROTO_GetShiftState done [15:01:39]FM_GetShiftState done [15:01:39]opened in 1729989044 [15:01:39]opened+sec_in_day 1730075444 [15:01:39]quantity*price = 70044 [15:01:39]sum+1 = 70045 [15:01:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 174 27.10.2024 15:01 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156623 ФПД: 258663239551167 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T150145&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156623&fm=258663239551167&tin=02508201610067®Number=0000000000091693&sum=70000 [15:01:40]StoreToDocumentArchive [15:01:40]shift 537 fd 156623 [15:01:40]save to /storage/0537/doc_00156623 [15:01:40]save last doc name /storage/0537/doc_00156623 to /storage/kkm_last_doc_name [15:01:40]save OK [15:01:40]Clear old archive folders... [15:01:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:01:40]tlvbuf is 017A0660 [15:01:40]SAM_PROTO_ClearQueue [15:01:40]wFMCommunicate request_size=4 [15:01:40]MH_SAM_APDU [15:01:40]CAPDU: 80 09 00 00 [15:01:40]Write to MH i2c: E2 08 00 74 62 80 09 00 00 00 00 00 00 48 [15:01:40]Write i2c OK [15:01:40]MH_I2C_Read... [15:01:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:01:40]Read from MH i2c: E2 [15:01:40]MH_I2C_Read... [15:01:40]Read from MH i2c: E2 03 00 [15:01:40]MH_I2C_Read... [15:01:40]Read from MH i2c: E2 03 00 74 62 00 90 00 4A [15:01:40]RAPDU: 90 00 [15:01:40]wFMCommunicate OK [15:01:40]SAM_PROTO_ClearQueue done [15:01:40]KKMCreateOFDPacket [15:01:40]OFDProtocolAddRootSTLVToBuf [15:01:40]FM_MakeSignedData [15:01:40]FM_MakeSignedData [15:01:40]SAM_PROTO_SignData [15:01:40]wFMCommunicate request_size=4 [15:01:40]MH_SAM_APDU [15:01:40]CAPDU: 80 0D 01 02 [15:01:40]Write to MH i2c: E2 08 00 75 62 80 0D 01 02 00 00 00 00 50 [15:01:40]Write i2c OK [15:01:40]MH_I2C_Read... [15:01:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:01:40]Read from MH i2c: E2 [15:01:40]MH_I2C_Read... [15:01:40]Read from MH i2c: E2 03 00 [15:01:40]MH_I2C_Read... [15:01:40]Read from MH i2c: E2 03 00 75 62 00 90 00 4B [15:01:40]RAPDU: 90 00 [15:01:40]wFMCommunicate OK [15:01:40]wFMCommunicate request_size=255 [15:01:40]MH_SAM_APDU [15:01: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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 AE 00 00 00 F4 03 04 00 D9 55 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CF 63 02 00 35 04 06 00 EB [15:01:40]Write to MH i2c: E2 02 01 76 62 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 AE 00 00 00 F4 03 04 00 D9 55 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CF 63 02 00 35 04 06 00 EB 00 00 8F [15:01:40]Write i2c OK [15:01:40]MH_I2C_Read... [15:01:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:01:41]Read from MH i2c: E2 [15:01:41]MH_I2C_Read... [15:01:41]Read from MH i2c: E2 03 00 [15:01:41]MH_I2C_Read... [15:01:41]Read from MH i2c: E2 03 00 76 62 00 90 00 4C [15:01:41]RAPDU: 90 00 [15:01:41]wFMCommunicate OK [15:01:41]wFMCommunicate request_size=10 [15:01:41]MH_SAM_APDU [15:01:41]CAPDU: 80 0D 02 02 05 40 BA 82 88 BF [15:01:41]Write to MH i2c: E2 0D 00 77 62 80 0D 02 02 05 00 40 BA 82 88 BF 00 00 20 [15:01:41]Write i2c OK [15:01:41]MH_I2C_Read... [15:01:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:01:41]Read from MH i2c: E2 [15:01:41]MH_I2C_Read... [15:01:41]Read from MH i2c: E2 03 00 [15:01:41]MH_I2C_Read... [15:01:41]Read from MH i2c: E2 03 00 77 62 00 90 00 4D [15:01:41]RAPDU: 90 00 [15:01:41]wFMCommunicate OK [15:01:41]wFMCommunicate request_size=4 [15:01:41]MH_SAM_APDU [15:01:41]CAPDU: 80 0D 03 02 [15:01:41]Write to MH i2c: E2 08 00 78 62 80 0D 03 02 00 00 00 00 55 [15:01:41]Write i2c OK [15:01:41]MH_I2C_Read... [15:01:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:01:41]Read from MH i2c: E2 [15:01:41]MH_I2C_Read... [15:01:41]Read from MH i2c: E2 0B 00 [15:01:41]MH_I2C_Read... [15:01:41]Read from MH i2c: E2 0B 00 78 62 00 B4 07 4C 05 4B AA D2 1A 90 00 43 [15:01:41]RAPDU: B4 07 4C 05 4B AA D2 1A 90 00 [15:01:41]wFMCommunicate OK [15:01:41]SAM_PROTO_SignData done [15:01:41]FM_MakeSignedData done [15:01:41]CreateOFDProtocolMessage [15:01:41]wFMCommunicate request_size=4 [15:01:41]MH_SAM_APDU [15:01:41]CAPDU: 80 11 00 00 [15:01:41]Write to MH i2c: E2 08 00 79 62 80 11 00 00 00 00 00 00 55 [15:01:41]Write i2c OK [15:01:41]MH_I2C_Read... [15:01:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:01:41]Read from MH i2c: E2 [15:01:41]MH_I2C_Read... [15:01:41]Read from MH i2c: E2 17 00 [15:01:41]MH_I2C_Read... [15:01:41]Read from MH i2c: E2 17 00 79 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 AA [15:01:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:01:41]wFMCommunicate OK [15:01:41]CreateOFDProtocolMessage done [15:01:41]OFDSenderStorePacket 156623 [15:01:41]StoreOFDPacket docnum=156623 [15:01:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 F5 A2 07 01 A6 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 AE 00 00 00 F4 03 04 00 D9 55 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CF 63 02 00 35 04 06 00 EB 40 BA 82 88 BF B4 07 4C 05 4B AA D2 1A [15:01:41]CheckFolder [15:01:41]dirname=/storage/ofd_packets [15:01:41]CheckFolder done [15:01:41]ProducePacketName [15:01:41]name=ofd_packets/00156623 [15:01:41]NVStorageSaveData ofd_packets/00156623 [15:01:41]File name is /storage/ofd_packets/00156623 [15:01:41]Write 301 bytes [15:01:41]NVStorageSaveData done [15:01:41]OFDSenderStorePacket done [15:01:41]KKMCreateOFDPacket done [15:01:41]NVStorageSaveData kkm_last_timestamp [15:01:41]File name is /storage/kkm_last_timestamp [15:01:41]Write 4 bytes [15:01:41]NVStorageSaveData done [15:01:41]ExternCall_PrintAddStr [15:01:41]wPrintStart [15:01:41]Write to MH i2c: 01 00 00 7A 62 DC [15:01:41]Write i2c OK [15:01:41]MH_I2C_Read... [15:01:41]Read from MH i2c: 01 [15:01:41]MH_I2C_Read... [15:01:41]Read from MH i2c: 01 07 00 [15:01:41]MH_I2C_Read... [15:01:41]Read from MH i2c: 01 07 00 7A 62 00 00 00 00 00 FF 0F F1 [15:01:41]RasterBufferAndPrint [15:01:41]line Счет N : (1)99437 [15:01:41]line ИНН: 02508201610067 [15:01:41]line Контрольно-Кассовый Чек [15:01:41]line ПРОДАЖА [15:01:41]line ТРК (МРК, ГНК) : 21 [15:01:41]line Товар: 2710124130 [15:01:41]line Аи-92-К-5 [15:01:41]line 10.470 * 66.90 [15:01:41]line = 700.44 [15:01:41]line НДС 12% НСП 1% [15:01:41]line > о реализуемом товаре [15:01:41]line ОКРУГЛЕНИЕ: -0.44 [15:01:41]line ИТОГО: 700.00 [15:01:41]line Внесено: 700.00 [15:01:41]line СДАЧА: 0.00 [15:01:41]line НСП 1% : 6.20 [15:01:41]line НДС 12% : 74.38 [15:01:41]line Наличными: 700.00 [15:01:41]line Безнал.: 0.00 [15:01:41]line Место: АЗС № 143 "Партнер Нефть" [15:01:41]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [15:01:41]line СНО: Общий режим [15:01:41]line Чек 174 27.10.2024 15:01 [15:01:41]line Смена: 537 ФФД: 1.0 [15:01:41]line ЗНМ: 0300000096 [15:01:41]line РНМ: 0000000000091693 [15:01:41]line Версия ККМ: 001 [15:01:41]line ФМ: 0000000000871792 [15:01:41]line ФД: 156623 [15:01:41]line ФПД: 258663239551167 [15:01:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T150145&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156623&fm=258663239551167&tin=02508201610067®Number=0000000000091693&sum=70000 [15:01:41]OFD Sender: Processing packet 156623 [packets to send 31, broken 30] [15:01:41]ProducePacketName [15:01:41]name=ofd_packets/00156623 [15:01:41]OFD Sender: To server: pG, [15:01:41]CommunicateWithHost lk.salyk.kg:30040 [15:01:41]ConnectInit lk.salyk.kg [15:01:41]written 0, free lines is 4095 [15:01:41]Connected sock=10 [15:01:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 F5 A2 07 01 A6 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 AE 00 00 00 F4 03 04 00 D9 55 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CF 63 02 00 35 04 06 00 EB 40 BA 82 88 BF B4 07 4C 05 4B AA D2 1A [15:01:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 B3 DE 47 00 F9 EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 CF 63 02 00 F4 03 04 00 49 FB 1D 67 B6 04 01 00 00 98 26 8D 0B 56 1A 10 F9 [15:01:42]CommunicateWithHost err = 0 [15:01:42]CheckOFDResponse [15:01:42]1017 (14) - 77093643461234 [15:01:42]1041 (16) - 0000000000871792 [15:01:42]1040 (4) - 156623 [15:01:42]1012 (4) - 27.10.2024 08:35 [15:01:42]1206 (1) - 0 [15:01:42]OFD Sender: Remove packet 156623 [15:01:42]ProducePacketName [15:01:42]name=ofd_packets/00156623 [15:01:42]NVStorageDeleteData [15:01:42]Write to MH i2c: 01 00 00 A5 62 07 [15:01:42]Write i2c OK [15:01:42]MH_I2C_Read... [15:01:42]Read from MH i2c: 01 [15:01:42]MH_I2C_Read... [15:01:42]Read from MH i2c: 01 07 00 [15:01:42]MH_I2C_Read... [15:01:42]Read from MH i2c: 01 07 00 A5 62 00 00 00 00 00 E9 0C 03 [15:01:42]RasterBufferAndPrint [15:01:42]line [15:01:42]line [15:01:42]line [15:01:42]line [15:01:42]line [15:01:42]written 0, free lines is 3312 [15:01:42]process_action close_receipt done [15:01:42]requested_data is exist [15:01:42]produce_requested_data [15:01:42]requested_item fm.sn is exist - process it [15:01:42]wFMCommunicate request_size=4 [15:01:42]MH_SAM_APDU [15:01:42]CAPDU: 80 11 00 00 [15:01:42]Write to MH i2c: E2 08 00 AC 62 80 11 00 00 00 00 00 00 88 [15:01:42]Write i2c OK [15:01:42]MH_I2C_Read... [15:01:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:01:42]Read from MH i2c: E2 [15:01:42]MH_I2C_Read... [15:01:42]Read from MH i2c: E2 17 00 [15:01:42]MH_I2C_Read... [15:01:42]Read from MH i2c: E2 17 00 AC 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 DD [15:01:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:01:42]wFMCommunicate OK [15:01:42]requested_item fd.num is exist - process it [15:01:42]SAM_PROTO_GetFieldsCounters [15:01:42]wFMCommunicate request_size=4 [15:01:42]MH_SAM_APDU [15:01:42]CAPDU: 80 13 00 00 [15:01:42]Write to MH i2c: E2 08 00 AD 62 80 13 00 00 00 00 00 00 8B [15:01:42]Write i2c OK [15:01:42]MH_I2C_Read... [15:01:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:01:42]Read from MH i2c: E2 [15:01:42]MH_I2C_Read... [15:01:42]Read from MH i2c: E2 62 00 [15:01:42]MH_I2C_Read... [15:01:42]Read from MH i2c: E2 62 00 AD 62 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 CF 63 02 00 0E 04 04 00 19 02 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 0A [15:01:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 CF 63 02 00 0E 04 04 00 19 02 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 [15:01:42]wFMCommunicate OK [15:01:42]SAM_PROTO_GetFieldsCounters done [15:01:42]requested_item shift.num is exist - process it [15:01:42]requested_item shift.opened is exist - process it [15:01:42]req_shift_opened [15:01:42]FM_GetShiftState [15:01:42]SAM_PROTO_GetShiftState [15:01:42]wFMCommunicate request_size=4 [15:01:42]MH_SAM_APDU [15:01:42]CAPDU: 80 13 01 00 [15:01:42]Write to MH i2c: E2 08 00 AE 62 80 13 01 00 00 00 00 00 8D [15:01:42]Write i2c OK [15:01:42]MH_I2C_Read... [15:01:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:01:42]Read from MH i2c: E2 [15:01:42]MH_I2C_Read... [15:01:42]Read from MH i2c: E2 0E 00 [15:01:42]MH_I2C_Read... [15:01:42]Read from MH i2c: E2 0E 00 AE 62 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 5A [15:01:42]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [15:01:42]wFMCommunicate OK [15:01:42]SAM_PROTO_GetShiftState done [15:01:42]FM_GetShiftState done [15:01:42]req_shift_opened done [15:01:42]requested_item shift.open_date is exist - process it [15:01:42]req_shift_open_date [15:01:42]req_shift_open_date done [15:01:42]produce_requested_data done [15:01:42]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156623,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [15:01:42]process_action_free close_receipt [15:01:42]json_value_free [15:01:42]json_value_free done [15:01:42]process_json_proto returns [15:01:42]Send response to host [15:01:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156623,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [15:01:42]free response buf [15:01:42]execute_script done [15:01:42]execute_script returns [15:01:42]free content buf [15:01:42]Sock 9.Close socket [15:01:42]Sock 9.Thread stoped [15:01:42]OFD Sender: No OFD packet to send [15:01:47]OFD Sender: No OFD packet to send [15:01:52]OFD Sender: No OFD packet to send [15:01:57]OFD Sender: No OFD packet to send [15:02:02]OFD Sender: No OFD packet to send [15:02:07]OFD Sender: No OFD packet to send [15:02:12]OFD Sender: No OFD packet to send [15:02:17]OFD Sender: No OFD packet to send [15:02:22]OFD Sender: No OFD packet to send [15:02:27]OFD Sender: No OFD packet to send [15:02:32]OFD Sender: No OFD packet to send [15:02:37]OFD Sender: No OFD packet to send [15:02:42]OFD Sender: No OFD packet to send [15:02:47]OFD Sender: No OFD packet to send [15:02:52]OFD Sender: No OFD packet to send [15:02:57]OFD Sender: No OFD packet to send [15:03:02]OFD Sender: No OFD packet to send [15:03:07]OFD Sender: No OFD packet to send [15:03:12]OFD Sender: No OFD packet to send [15:03:17]OFD Sender: No OFD packet to send [15:03:22]OFD Sender: No OFD packet to send [15:03:27]OFD Sender: No OFD packet to send [15:03:32]OFD Sender: No OFD packet to send [15:03:37]OFD Sender: No OFD packet to send [15:03:42]OFD Sender: No OFD packet to send [15:03:47]OFD Sender: No OFD packet to send [15:03:52]OFD Sender: No OFD packet to send [15:03:57]OFD Sender: No OFD packet to send [15:04:02]OFD Sender: No OFD packet to send [15:04:07]OFD Sender: No OFD packet to send [15:04:12]OFD Sender: No OFD packet to send [15:04:17]OFD Sender: No OFD packet to send [15:04:22]OFD Sender: No OFD packet to send [15:04:27]OFD Sender: No OFD packet to send [15:04:32]OFD Sender: No OFD packet to send [15:04:37]OFD Sender: No OFD packet to send [15:04:42]OFD Sender: No OFD packet to send [15:04:47]OFD Sender: No OFD packet to send [15:04:52]OFD Sender: No OFD packet to send [15:04:57]OFD Sender: No OFD packet to send [15:05:02]OFD Sender: No OFD packet to send [15:05:07]OFD Sender: No OFD packet to send [15:05:12]OFD Sender: No OFD packet to send [15:05:17]OFD Sender: No OFD packet to send [15:05:22]OFD Sender: No OFD packet to send [15:05:27]OFD Sender: No OFD packet to send [15:05:32]OFD Sender: No OFD packet to send [15:05:37]OFD Sender: No OFD packet to send [15:05:42]OFD Sender: No OFD packet to send [15:05:47]OFD Sender: No OFD packet to send [15:05:52]OFD Sender: No OFD packet to send [15:05:54]accept exits with 8 [15:05:54]New connection [15:05:54]New thread 3066834276 created [15:05:54]Thread 3066977636 joined [15:05:54]Waiting for new connection... [15:05:54] Sock 8.Parse request [15:05:54]Sock 8.Check first char [15:05:54]Sock 8.First char is OK [15:05:54]request: POST /json_proto HTTP/1.0 [15:05:54]Method: POST [15:05:54]URL: /json_proto [15:05:54]Method is POST - this is cgi request [15:05:54]url: /json_proto [15:05:54]query_string will be loaded in cgi processing [15:05:54]execute_cgi json_proto POST (null) [15:05:54]execute_cgi path=json_proto method=POST [15:05:54]POST find Content-Length [15:05:54]Host: 172.17.63.3:8080 [15:05:54]Content-Length: 673 [15:05:54]Content-Type: application/json [15:05:54] [15:05:54]POST finish read [15:05:54]Found Content-Length = 673 [15:05:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99438", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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:05:54]execute_script... [15:05:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99438", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "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:05:54]POST & json_proto [15:05:54]process_json_proto [15:05:54]json parsed OK: [15:05:54]protocol is kg_v1.0 [15:05:54]action value=close_receipt [15:05:54]process_action close_receipt [15:05:54]cmd_close_receipt [15:05:54]MH_GetDate [15:05:54]Write to MH i2c: F0 00 00 AF 62 00 [15:05:54]Write i2c OK [15:05:54]MH_I2C_Read... [15:05:54]Read from MH i2c: F0 [15:05:54]MH_I2C_Read... [15:05:54]Read from MH i2c: F0 09 00 [15:05:54]MH_I2C_Read... [15:05:54]Read from MH i2c: F0 09 00 AF 62 00 D8 56 1E 67 50 D1 6C 64 AD [15:05:54]GetLastDocTimeStamp 1730041305 [15:05:54]current date 1730041560 [15:05:54]FM_GetShiftState [15:05:54]SAM_PROTO_GetShiftState [15:05:54]wFMCommunicate request_size=4 [15:05:54]MH_SAM_APDU [15:05:54]CAPDU: 80 13 01 00 [15:05:54]Write to MH i2c: E2 08 00 B0 62 80 13 01 00 00 00 00 00 8F [15:05:54]Write i2c OK [15:05:54]MH_I2C_Read... [15:05:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:05:54]Read from MH i2c: E2 [15:05:54]MH_I2C_Read... [15:05:54]Read from MH i2c: E2 0E 00 [15:05:54]MH_I2C_Read... [15:05:54]Read from MH i2c: E2 0E 00 B0 62 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 5C [15:05:54]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [15:05:54]wFMCommunicate OK [15:05:54]SAM_PROTO_GetShiftState done [15:05:54]FM_GetShiftState done [15:05:54]opened in 1729989044 [15:05:54]opened+sec_in_day 1730075444 [15:05:54]quantity*price = 50063 [15:05:54]sum+1 = 50064 [15:05:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 175 27.10.2024 15:06 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156624 ФПД: 280451986043688 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T150600&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156624&fm=280451986043688&tin=02508201610067®Number=0000000000091693&sum=50000 [15:05:55]StoreToDocumentArchive [15:05:55]shift 537 fd 156624 [15:05:55]save to /storage/0537/doc_00156624 [15:05:55]save last doc name /storage/0537/doc_00156624 to /storage/kkm_last_doc_name [15:05:55]save OK [15:05:55]Clear old archive folders... [15:05:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:05:55]tlvbuf is 01889190 [15:05:55]SAM_PROTO_ClearQueue [15:05:55]wFMCommunicate request_size=4 [15:05:55]MH_SAM_APDU [15:05:55]CAPDU: 80 09 00 00 [15:05:55]Write to MH i2c: E2 08 00 BD 62 80 09 00 00 00 00 00 00 91 [15:05:55]Write i2c OK [15:05:55]MH_I2C_Read... [15:05:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:05:55]Read from MH i2c: E2 [15:05:55]MH_I2C_Read... [15:05:55]Read from MH i2c: E2 03 00 [15:05:55]MH_I2C_Read... [15:05:55]Read from MH i2c: E2 03 00 BD 62 00 90 00 93 [15:05:55]RAPDU: 90 00 [15:05:55]wFMCommunicate OK [15:05:55]SAM_PROTO_ClearQueue done [15:05:55]KKMCreateOFDPacket [15:05:55]OFDProtocolAddRootSTLVToBuf [15:05:55]FM_MakeSignedData [15:05:55]FM_MakeSignedData [15:05:55]SAM_PROTO_SignData [15:05:55]wFMCommunicate request_size=4 [15:05:55]MH_SAM_APDU [15:05:55]CAPDU: 80 0D 01 02 [15:05:55]Write to MH i2c: E2 08 00 BE 62 80 0D 01 02 00 00 00 00 99 [15:05:55]Write i2c OK [15:05:55]MH_I2C_Read... [15:05:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:05:55]Read from MH i2c: E2 [15:05:55]MH_I2C_Read... [15:05:55]Read from MH i2c: E2 03 00 [15:05:55]MH_I2C_Read... [15:05:55]Read from MH i2c: E2 03 00 BE 62 00 90 00 94 [15:05:55]RAPDU: 90 00 [15:05:55]wFMCommunicate OK [15:05:55]wFMCommunicate request_size=255 [15:05:55]MH_SAM_APDU [15:05:55]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 AF 00 00 00 F4 03 04 00 D8 56 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D0 63 02 00 35 04 06 00 FF 11 D1 01 [15:05:55]Write to MH i2c: E2 02 01 BF 62 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 AF 00 00 00 F4 03 04 00 D8 56 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D0 63 02 00 35 04 06 00 FF 11 D1 01 00 00 3F [15:05:55]Write i2c OK [15:05:55]MH_I2C_Read... [15:05:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:05:56]Read from MH i2c: E2 [15:05:56]MH_I2C_Read... [15:05:56]Read from MH i2c: E2 03 00 [15:05:56]MH_I2C_Read... [15:05:56]Read from MH i2c: E2 03 00 BF 62 00 90 00 95 [15:05:56]RAPDU: 90 00 [15:05:56]wFMCommunicate OK [15:05:56]wFMCommunicate request_size=7 [15:05:56]MH_SAM_APDU [15:05:56]CAPDU: 80 0D 02 02 02 33 28 [15:05:56]Write to MH i2c: E2 0A 00 C0 62 80 0D 02 02 02 00 33 28 00 00 FB [15:05:56]Write i2c OK [15:05:56]MH_I2C_Read... [15:05:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:05:56]Read from MH i2c: E2 [15:05:56]MH_I2C_Read... [15:05:56]Read from MH i2c: E2 03 00 [15:05:56]MH_I2C_Read... [15:05:56]Read from MH i2c: E2 03 00 C0 62 00 90 00 96 [15:05:56]RAPDU: 90 00 [15:05:56]wFMCommunicate OK [15:05:56]wFMCommunicate request_size=4 [15:05:56]MH_SAM_APDU [15:05:56]CAPDU: 80 0D 03 02 [15:05:56]Write to MH i2c: E2 08 00 C1 62 80 0D 03 02 00 00 00 00 9E [15:05:56]Write i2c OK [15:05:56]MH_I2C_Read... [15:05:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:05:56]Read from MH i2c: E2 [15:05:56]MH_I2C_Read... [15:05:56]Read from MH i2c: E2 0B 00 [15:05:56]MH_I2C_Read... [15:05:56]Read from MH i2c: E2 0B 00 C1 62 00 56 68 1F E0 D7 C8 A0 B0 90 00 4B [15:05:56]RAPDU: 56 68 1F E0 D7 C8 A0 B0 90 00 [15:05:56]wFMCommunicate OK [15:05:56]SAM_PROTO_SignData done [15:05:56]FM_MakeSignedData done [15:05:56]CreateOFDProtocolMessage [15:05:56]wFMCommunicate request_size=4 [15:05:56]MH_SAM_APDU [15:05:56]CAPDU: 80 11 00 00 [15:05:56]Write to MH i2c: E2 08 00 C2 62 80 11 00 00 00 00 00 00 9E [15:05:56]Write i2c OK [15:05:56]MH_I2C_Read... [15:05:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:05:56]Read from MH i2c: E2 [15:05:56]MH_I2C_Read... [15:05:56]Read from MH i2c: E2 17 00 [15:05:56]MH_I2C_Read... [15:05:56]Read from MH i2c: E2 17 00 C2 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 F3 [15:05:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:05:56]wFMCommunicate OK [15:05:56]CreateOFDProtocolMessage done [15:05:56]OFDSenderStorePacket 156624 [15:05:56]StoreOFDPacket docnum=156624 [15:05:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 3D A0 04 01 61 5E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 AF 00 00 00 F4 03 04 00 D8 56 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D0 63 02 00 35 04 06 00 FF 11 D1 01 33 28 56 68 1F E0 D7 C8 A0 B0 [15:05:56]CheckFolder [15:05:56]dirname=/storage/ofd_packets [15:05:56]CheckFolder done [15:05:56]ProducePacketName [15:05:56]name=ofd_packets/00156624 [15:05:56]NVStorageSaveData ofd_packets/00156624 [15:05:56]File name is /storage/ofd_packets/00156624 [15:05:56]Write 298 bytes [15:05:56]NVStorageSaveData done [15:05:56]OFDSenderStorePacket done [15:05:56]KKMCreateOFDPacket done [15:05:56]NVStorageSaveData kkm_last_timestamp [15:05:56]File name is /storage/kkm_last_timestamp [15:05:56]Write 4 bytes [15:05:56]NVStorageSaveData done [15:05:56]ExternCall_PrintAddStr [15:05:56]wPrintStart [15:05:56]Write to MH i2c: 01 00 00 C3 62 25 [15:05:56]Write i2c OK [15:05:56]MH_I2C_Read... [15:05:56]Read from MH i2c: 01 [15:05:56]MH_I2C_Read... [15:05:56]Read from MH i2c: 01 07 00 [15:05:56]MH_I2C_Read... [15:05:56]Read from MH i2c: 01 07 00 C3 62 00 00 00 00 00 FF 0F 3A [15:05:56]RasterBufferAndPrint [15:05:56]line Счет N : (1)99438 [15:05:56]line ИНН: 02508201610067 [15:05:56]line Контрольно-Кассовый Чек [15:05:56]line ПРОДАЖА [15:05:56]line ТРК (МРК, ГНК) : 32 [15:05:56]line Товар: 2710194210 [15:05:56]line ДТ-К-5 [15:05:56]line 6.570 * 76.20 [15:05:56]line = 500.63 [15:05:56]line НДС 12% НСП 1% [15:05:56]line > о реализуемом товаре [15:05:56]line ОКРУГЛЕНИЕ: -0.63 [15:05:56]line ИТОГО: 500.00 [15:05:56]line Внесено: 500.00 [15:05:56]line СДАЧА: 0.00 [15:05:56]line НСП 1% : 4.43 [15:05:56]line НДС 12% : 53.16 [15:05:56]line Наличными: 500.00 [15:05:56]line Безнал.: 0.00 [15:05:56]line Место: АЗС № 143 "Партнер Нефть" [15:05:56]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [15:05:56]line СНО: Общий режим [15:05:56]line Чек 175 27.10.2024 15:06 [15:05:56]line Смена: 537 ФФД: 1.0 [15:05:56]line ЗНМ: 0300000096 [15:05:56]line РНМ: 0000000000091693 [15:05:56]line Версия ККМ: 001 [15:05:56]line ФМ: 0000000000871792 [15:05:56]line ФД: 156624 [15:05:56]line ФПД: 280451986043688 [15:05:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T150600&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156624&fm=280451986043688&tin=02508201610067®Number=0000000000091693&sum=50000 [15:05:56]OFD Sender: Processing packet 156624 [packets to send 31, broken 30] [15:05:56]ProducePacketName [15:05:56]name=ofd_packets/00156624 [15:05:56]OFD Sender: To server: pG, [15:05:56]CommunicateWithHost lk.salyk.kg:30040 [15:05:56]ConnectInit lk.salyk.kg [15:05:56]written 0, free lines is 4095 [15:05:56]Connected sock=10 [15:05:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 3D A0 04 01 61 5E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F 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 C4 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 AF 00 00 00 F4 03 04 00 D8 56 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D0 63 02 00 35 04 06 00 FF 11 D1 01 33 28 56 68 1F E0 D7 C8 A0 B0 [15:05:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 6C 1F 47 00 C6 B5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D0 63 02 00 F4 03 04 00 48 FC 1D 67 B6 04 01 00 00 29 1F 82 AA 6C 4C 4D 6F [15:05:56]CommunicateWithHost err = 0 [15:05:56]CheckOFDResponse [15:05:56]1017 (14) - 77093643461234 [15:05:56]1041 (16) - 0000000000871792 [15:05:56]1040 (4) - 156624 [15:05:56]1012 (4) - 27.10.2024 08:39 [15:05:56]1206 (1) - 0 [15:05:56]OFD Sender: Remove packet 156624 [15:05:56]ProducePacketName [15:05:56]name=ofd_packets/00156624 [15:05:56]NVStorageDeleteData [15:05:57]Write to MH i2c: 01 00 00 EE 62 50 [15:05:57]Write i2c OK [15:05:57]MH_I2C_Read... [15:05:57]Read from MH i2c: 01 [15:05:57]MH_I2C_Read... [15:05:57]Read from MH i2c: 01 07 00 [15:05:57]MH_I2C_Read... [15:05:57]Read from MH i2c: 01 07 00 EE 62 00 00 00 00 00 F4 0C 57 [15:05:57]RasterBufferAndPrint [15:05:57]line [15:05:57]line [15:05:57]line [15:05:57]line [15:05:57]line [15:05:57]written 0, free lines is 3323 [15:05:57]process_action close_receipt done [15:05:57]requested_data is exist [15:05:57]produce_requested_data [15:05:57]requested_item fm.sn is exist - process it [15:05:57]wFMCommunicate request_size=4 [15:05:57]MH_SAM_APDU [15:05:57]CAPDU: 80 11 00 00 [15:05:57]Write to MH i2c: E2 08 00 F5 62 80 11 00 00 00 00 00 00 D1 [15:05:57]Write i2c OK [15:05:57]MH_I2C_Read... [15:05:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:05:57]Read from MH i2c: E2 [15:05:57]MH_I2C_Read... [15:05:57]Read from MH i2c: E2 17 00 [15:05:57]MH_I2C_Read... [15:05:57]Read from MH i2c: E2 17 00 F5 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 26 [15:05:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:05:57]wFMCommunicate OK [15:05:57]requested_item fd.num is exist - process it [15:05:57]SAM_PROTO_GetFieldsCounters [15:05:57]wFMCommunicate request_size=4 [15:05:57]MH_SAM_APDU [15:05:57]CAPDU: 80 13 00 00 [15:05:57]Write to MH i2c: E2 08 00 F6 62 80 13 00 00 00 00 00 00 D4 [15:05:57]Write i2c OK [15:05:57]MH_I2C_Read... [15:05:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:05:57]Read from MH i2c: E2 [15:05:57]MH_I2C_Read... [15:05:57]Read from MH i2c: E2 62 00 [15:05:57]MH_I2C_Read... [15:05:57]Read from MH i2c: E2 62 00 F6 62 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 D0 63 02 00 0E 04 04 00 19 02 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 57 [15:05:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 D0 63 02 00 0E 04 04 00 19 02 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 [15:05:57]wFMCommunicate OK [15:05:57]SAM_PROTO_GetFieldsCounters done [15:05:57]requested_item shift.num is exist - process it [15:05:57]requested_item shift.opened is exist - process it [15:05:57]req_shift_opened [15:05:57]FM_GetShiftState [15:05:57]SAM_PROTO_GetShiftState [15:05:57]wFMCommunicate request_size=4 [15:05:57]MH_SAM_APDU [15:05:57]CAPDU: 80 13 01 00 [15:05:57]Write to MH i2c: E2 08 00 F7 62 80 13 01 00 00 00 00 00 D6 [15:05:57]Write i2c OK [15:05:57]MH_I2C_Read... [15:05:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:05:57]Read from MH i2c: E2 [15:05:57]MH_I2C_Read... [15:05:57]Read from MH i2c: E2 0E 00 [15:05:57]MH_I2C_Read... [15:05:57]Read from MH i2c: E2 0E 00 F7 62 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 A3 [15:05:57]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [15:05:57]wFMCommunicate OK [15:05:57]SAM_PROTO_GetShiftState done [15:05:57]FM_GetShiftState done [15:05:57]req_shift_opened done [15:05:57]requested_item shift.open_date is exist - process it [15:05:57]req_shift_open_date [15:05:57]req_shift_open_date done [15:05:57]produce_requested_data done [15:05:57]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156624,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [15:05:57]process_action_free close_receipt [15:05:57]json_value_free [15:05:57]json_value_free done [15:05:57]process_json_proto returns [15:05:57]Send response to host [15:05:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156624,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [15:05:57]free response buf [15:05:57]execute_script done [15:05:57]execute_script returns [15:05:57]free content buf [15:05:57]Sock 8.Close socket [15:05:57]Sock 8.Thread stoped [15:05:57]OFD Sender: No OFD packet to send [15:06:02]OFD Sender: No OFD packet to send [15:06:07]OFD Sender: No OFD packet to send [15:06:12]OFD Sender: No OFD packet to send [15:06:17]OFD Sender: No OFD packet to send [15:06:22]OFD Sender: No OFD packet to send [15:06:27]OFD Sender: No OFD packet to send [15:06:32]OFD Sender: No OFD packet to send [15:06:37]OFD Sender: No OFD packet to send [15:06:42]OFD Sender: No OFD packet to send [15:06:47]OFD Sender: No OFD packet to send [15:06:52]OFD Sender: No OFD packet to send [15:06:57]OFD Sender: No OFD packet to send [15:07:02]OFD Sender: No OFD packet to send [15:07:07]OFD Sender: No OFD packet to send [15:07:12]OFD Sender: No OFD packet to send [15:07:17]OFD Sender: No OFD packet to send [15:07:22]OFD Sender: No OFD packet to send [15:07:27]OFD Sender: No OFD packet to send [15:07:32]OFD Sender: No OFD packet to send [15:07:37]OFD Sender: No OFD packet to send [15:07:42]OFD Sender: No OFD packet to send [15:07:47]OFD Sender: No OFD packet to send [15:07:52]OFD Sender: No OFD packet to send [15:07:57]OFD Sender: No OFD packet to send [15:08:02]OFD Sender: No OFD packet to send [15:08:07]OFD Sender: No OFD packet to send [15:08:12]OFD Sender: No OFD packet to send [15:08:17]OFD Sender: No OFD packet to send [15:08:22]OFD Sender: No OFD packet to send [15:08:27]OFD Sender: No OFD packet to send [15:08:32]OFD Sender: No OFD packet to send [15:08:37]OFD Sender: No OFD packet to send [15:08:42]OFD Sender: No OFD packet to send [15:08:43]accept exits with 9 [15:08:43]New connection [15:08:43]New thread 3066977636 created [15:08:43]Thread 3066834276 joined [15:08:43]Waiting for new connection... [15:08:43] Sock 9.Parse request [15:08:43]Sock 9.Check first char [15:08:43]Sock 9.First char is OK [15:08:43]request: POST /json_proto HTTP/1.0 [15:08:43]Method: POST [15:08:43]URL: /json_proto [15:08:43]Method is POST - this is cgi request [15:08:43]url: /json_proto [15:08:43]query_string will be loaded in cgi processing [15:08:43]execute_cgi json_proto POST (null) [15:08:43]execute_cgi path=json_proto method=POST [15:08:43]POST find Content-Length [15:08:43]Host: 172.17.63.3:8080 [15:08:43]Content-Length: 676 [15:08:43]Content-Type: application/json [15:08:43] [15:08:43]POST finish read [15:08:43]Found Content-Length = 676 [15:08:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99439", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:08:43]execute_script... [15:08: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)99439", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:08:43]POST & json_proto [15:08:43]process_json_proto [15:08:43]json parsed OK: [15:08:43]protocol is kg_v1.0 [15:08:43]action value=close_receipt [15:08:43]process_action close_receipt [15:08:43]cmd_close_receipt [15:08:43]MH_GetDate [15:08:43]Write to MH i2c: F0 00 00 F8 62 49 [15:08:43]Write i2c OK [15:08:43]MH_I2C_Read... [15:08:43]Read from MH i2c: F0 [15:08:43]MH_I2C_Read... [15:08:43]Read from MH i2c: F0 09 00 [15:08:43]MH_I2C_Read... [15:08:43]Read from MH i2c: F0 09 00 F8 62 00 81 57 1E 67 50 D1 6C 64 A0 [15:08:43]GetLastDocTimeStamp 1730041560 [15:08:43]current date 1730041729 [15:08:43]FM_GetShiftState [15:08:43]SAM_PROTO_GetShiftState [15:08:43]wFMCommunicate request_size=4 [15:08:43]MH_SAM_APDU [15:08:43]CAPDU: 80 13 01 00 [15:08:43]Write to MH i2c: E2 08 00 F9 62 80 13 01 00 00 00 00 00 D8 [15:08:43]Write i2c OK [15:08:43]MH_I2C_Read... [15:08:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:08:43]Read from MH i2c: E2 [15:08:43]MH_I2C_Read... [15:08:43]Read from MH i2c: E2 0E 00 [15:08:43]MH_I2C_Read... [15:08:43]Read from MH i2c: E2 0E 00 F9 62 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 A5 [15:08:43]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [15:08:43]wFMCommunicate OK [15:08:43]SAM_PROTO_GetShiftState done [15:08:43]FM_GetShiftState done [15:08:43]opened in 1729989044 [15:08:43]opened+sec_in_day 1730075444 [15:08:43]quantity*price = 50041 [15:08:43]sum+1 = 50042 [15:08:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 176 27.10.2024 15:08 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156625 ФПД: 112573119521052 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T150849&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156625&fm=112573119521052&tin=02508201610067®Number=0000000000091693&sum=50000 [15:08:44]StoreToDocumentArchive [15:08:44]shift 537 fd 156625 [15:08:44]save to /storage/0537/doc_00156625 [15:08:44]save last doc name /storage/0537/doc_00156625 to /storage/kkm_last_doc_name [15:08:44]save OK [15:08:44]Clear old archive folders... [15:08:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:08:44]tlvbuf is 01848A10 [15:08:44]SAM_PROTO_ClearQueue [15:08:44]wFMCommunicate request_size=4 [15:08:44]MH_SAM_APDU [15:08:44]CAPDU: 80 09 00 00 [15:08:44]Write to MH i2c: E2 08 00 06 63 80 09 00 00 00 00 00 00 DB [15:08:44]Write i2c OK [15:08:44]MH_I2C_Read... [15:08:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:08:44]Read from MH i2c: E2 [15:08:44]MH_I2C_Read... [15:08:44]Read from MH i2c: E2 03 00 [15:08:44]MH_I2C_Read... [15:08:44]Read from MH i2c: E2 03 00 06 63 00 90 00 DD [15:08:44]RAPDU: 90 00 [15:08:44]wFMCommunicate OK [15:08:44]SAM_PROTO_ClearQueue done [15:08:44]KKMCreateOFDPacket [15:08:44]OFDProtocolAddRootSTLVToBuf [15:08:44]FM_MakeSignedData [15:08:44]FM_MakeSignedData [15:08:44]SAM_PROTO_SignData [15:08:44]wFMCommunicate request_size=4 [15:08:44]MH_SAM_APDU [15:08:44]CAPDU: 80 0D 01 02 [15:08:44]Write to MH i2c: E2 08 00 07 63 80 0D 01 02 00 00 00 00 E3 [15:08:44]Write i2c OK [15:08:44]MH_I2C_Read... [15:08:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:08:44]Read from MH i2c: E2 [15:08:44]MH_I2C_Read... [15:08:44]Read from MH i2c: E2 03 00 [15:08:44]MH_I2C_Read... [15:08:44]Read from MH i2c: E2 03 00 07 63 00 90 00 DE [15:08:44]RAPDU: 90 00 [15:08:44]wFMCommunicate OK [15:08:44]wFMCommunicate request_size=255 [15:08:44]MH_SAM_APDU [15:08: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 81 57 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D1 63 02 00 35 04 06 00 66 [15:08:44]Write to MH i2c: E2 02 01 08 63 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 81 57 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D1 63 02 00 35 04 06 00 66 00 00 3B [15:08:44]Write i2c OK [15:08:44]MH_I2C_Read... [15:08:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:08:44]Read from MH i2c: E2 [15:08:44]MH_I2C_Read... [15:08:44]Read from MH i2c: E2 03 00 [15:08:44]MH_I2C_Read... [15:08:44]Read from MH i2c: E2 03 00 08 63 00 90 00 DF [15:08:44]RAPDU: 90 00 [15:08:44]wFMCommunicate OK [15:08:44]wFMCommunicate request_size=10 [15:08:44]MH_SAM_APDU [15:08:44]CAPDU: 80 0D 02 02 05 62 78 CC E1 1C [15:08:44]Write to MH i2c: E2 0D 00 09 63 80 0D 02 02 05 00 62 78 CC E1 1C 00 00 93 [15:08:44]Write i2c OK [15:08:44]MH_I2C_Read... [15:08:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:08:44]Read from MH i2c: E2 [15:08:44]MH_I2C_Read... [15:08:44]Read from MH i2c: E2 03 00 [15:08:44]MH_I2C_Read... [15:08:44]Read from MH i2c: E2 03 00 09 63 00 90 00 E0 [15:08:44]RAPDU: 90 00 [15:08:44]wFMCommunicate OK [15:08:44]wFMCommunicate request_size=4 [15:08:44]MH_SAM_APDU [15:08:44]CAPDU: 80 0D 03 02 [15:08:44]Write to MH i2c: E2 08 00 0A 63 80 0D 03 02 00 00 00 00 E8 [15:08:44]Write i2c OK [15:08:44]MH_I2C_Read... [15:08:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:08:44]Read from MH i2c: E2 [15:08:44]MH_I2C_Read... [15:08:44]Read from MH i2c: E2 0B 00 [15:08:44]MH_I2C_Read... [15:08:44]Read from MH i2c: E2 0B 00 0A 63 00 8C 0E C3 5C AC 62 9B 48 90 00 93 [15:08:44]RAPDU: 8C 0E C3 5C AC 62 9B 48 90 00 [15:08:44]wFMCommunicate OK [15:08:44]SAM_PROTO_SignData done [15:08:44]FM_MakeSignedData done [15:08:44]CreateOFDProtocolMessage [15:08:44]wFMCommunicate request_size=4 [15:08:44]MH_SAM_APDU [15:08:44]CAPDU: 80 11 00 00 [15:08:44]Write to MH i2c: E2 08 00 0B 63 80 11 00 00 00 00 00 00 E8 [15:08:44]Write i2c OK [15:08:44]MH_I2C_Read... [15:08:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:08:44]Read from MH i2c: E2 [15:08:44]MH_I2C_Read... [15:08:44]Read from MH i2c: E2 17 00 [15:08:44]MH_I2C_Read... [15:08:44]Read from MH i2c: E2 17 00 0B 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 3D [15:08:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:08:44]wFMCommunicate OK [15:08:44]CreateOFDProtocolMessage done [15:08:44]OFDSenderStorePacket 156625 [15:08:44]StoreOFDPacket docnum=156625 [15:08:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 73 47 07 01 EA A3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 81 57 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D1 63 02 00 35 04 06 00 66 62 78 CC E1 1C 8C 0E C3 5C AC 62 9B 48 [15:08:44]CheckFolder [15:08:44]dirname=/storage/ofd_packets [15:08:44]CheckFolder done [15:08:44]ProducePacketName [15:08:44]name=ofd_packets/00156625 [15:08:44]NVStorageSaveData ofd_packets/00156625 [15:08:44]File name is /storage/ofd_packets/00156625 [15:08:44]Write 301 bytes [15:08:44]NVStorageSaveData done [15:08:44]OFDSenderStorePacket done [15:08:44]KKMCreateOFDPacket done [15:08:44]NVStorageSaveData kkm_last_timestamp [15:08:44]File name is /storage/kkm_last_timestamp [15:08:44]Write 4 bytes [15:08:44]NVStorageSaveData done [15:08:44]ExternCall_PrintAddStr [15:08:44]wPrintStart [15:08:44]Write to MH i2c: 01 00 00 0C 63 6F [15:08:44]Write i2c OK [15:08:44]MH_I2C_Read... [15:08:44]Read from MH i2c: 01 [15:08:44]MH_I2C_Read... [15:08:44]Read from MH i2c: 01 07 00 [15:08:44]MH_I2C_Read... [15:08:44]Read from MH i2c: 01 07 00 0C 63 00 00 00 00 00 FF 0F 84 [15:08:44]RasterBufferAndPrint [15:08:44]line Счет N : (1)99439 [15:08:44]line ИНН: 02508201610067 [15:08:44]line Контрольно-Кассовый Чек [15:08:44]line ПРОДАЖА [15:08:44]line ТРК (МРК, ГНК) : 11 [15:08:44]line Товар: 2710124130 [15:08:44]line Аи-92-К-5 [15:08:44]line 7.480 * 66.90 [15:08:44]line = 500.41 [15:08:44]line НДС 12% НСП 1% [15:08:44]line > о реализуемом товаре [15:08:44]line ОКРУГЛЕНИЕ: -0.41 [15:08:44]line ИТОГО: 500.00 [15:08:44]line Внесено: 500.00 [15:08:44]line СДАЧА: 0.00 [15:08:44]line НСП 1% : 4.43 [15:08:44]line НДС 12% : 53.14 [15:08:44]line Наличными: 500.00 [15:08:44]line Безнал.: 0.00 [15:08:44]line Место: АЗС № 143 "Партнер Нефть" [15:08:44]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [15:08:44]line СНО: Общий режим [15:08:44]line Чек 176 27.10.2024 15:08 [15:08:44]line Смена: 537 ФФД: 1.0 [15:08:44]line ЗНМ: 0300000096 [15:08:44]line РНМ: 0000000000091693 [15:08:44]line Версия ККМ: 001 [15:08:44]line ФМ: 0000000000871792 [15:08:44]line ФД: 156625 [15:08:44]line ФПД: 112573119521052 [15:08:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T150849&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156625&fm=112573119521052&tin=02508201610067®Number=0000000000091693&sum=50000 [15:08:45]OFD Sender: Processing packet 156625 [packets to send 31, broken 30] [15:08:45]ProducePacketName [15:08:45]name=ofd_packets/00156625 [15:08:45]OFD Sender: To server: pG, [15:08:45]CommunicateWithHost lk.salyk.kg:30040 [15:08:45]ConnectInit lk.salyk.kg [15:08:45]written 0, free lines is 4095 [15:08:45]Connected sock=11 [15:08:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 73 47 07 01 EA A3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 81 57 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D1 63 02 00 35 04 06 00 66 62 78 CC E1 1C 8C 0E C3 5C AC 62 9B 48 [15:08:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 3D D4 47 00 56 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D1 63 02 00 F4 03 04 00 F0 FC 1D 67 B6 04 01 00 00 CC 53 56 6A 75 F5 CD 58 [15:08:45]CommunicateWithHost err = 0 [15:08:45]CheckOFDResponse [15:08:45]1017 (14) - 77093643461234 [15:08:45]1041 (16) - 0000000000871792 [15:08:45]1040 (4) - 156625 [15:08:45]1012 (4) - 27.10.2024 08:42 [15:08:45]1206 (1) - 0 [15:08:45]OFD Sender: Remove packet 156625 [15:08:45]ProducePacketName [15:08:45]name=ofd_packets/00156625 [15:08:45]NVStorageDeleteData [15:08:45]Write to MH i2c: 01 00 00 37 63 9A [15:08:45]Write i2c OK [15:08:45]MH_I2C_Read... [15:08:45]Read from MH i2c: 01 [15:08:45]MH_I2C_Read... [15:08:45]Read from MH i2c: 01 07 00 [15:08:45]MH_I2C_Read... [15:08:45]Read from MH i2c: 01 07 00 37 63 00 00 00 00 00 DC 0C 89 [15:08:45]RasterBufferAndPrint [15:08:45]line [15:08:45]line [15:08:45]line [15:08:45]line [15:08:45]line [15:08:45]written 0, free lines is 3298 [15:08:45]process_action close_receipt done [15:08:45]requested_data is exist [15:08:45]produce_requested_data [15:08:45]requested_item fm.sn is exist - process it [15:08:45]wFMCommunicate request_size=4 [15:08:45]MH_SAM_APDU [15:08:45]CAPDU: 80 11 00 00 [15:08:45]Write to MH i2c: E2 08 00 3E 63 80 11 00 00 00 00 00 00 1B [15:08:45]Write i2c OK [15:08:45]MH_I2C_Read... [15:08:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:08:45]Read from MH i2c: E2 [15:08:45]MH_I2C_Read... [15:08:45]Read from MH i2c: E2 17 00 [15:08:45]MH_I2C_Read... [15:08:45]Read from MH i2c: E2 17 00 3E 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 70 [15:08:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:08:45]wFMCommunicate OK [15:08:45]requested_item fd.num is exist - process it [15:08:45]SAM_PROTO_GetFieldsCounters [15:08:45]wFMCommunicate request_size=4 [15:08:45]MH_SAM_APDU [15:08:45]CAPDU: 80 13 00 00 [15:08:45]Write to MH i2c: E2 08 00 3F 63 80 13 00 00 00 00 00 00 1E [15:08:45]Write i2c OK [15:08:45]MH_I2C_Read... [15:08:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:08:45]Read from MH i2c: E2 [15:08:45]MH_I2C_Read... [15:08:45]Read from MH i2c: E2 62 00 [15:08:45]MH_I2C_Read... [15:08:45]Read from MH i2c: E2 62 00 3F 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 D1 63 02 00 0E 04 04 00 19 02 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 A5 [15:08:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 D1 63 02 00 0E 04 04 00 19 02 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 [15:08:45]wFMCommunicate OK [15:08:45]SAM_PROTO_GetFieldsCounters done [15:08:45]requested_item shift.num is exist - process it [15:08:45]requested_item shift.opened is exist - process it [15:08:45]req_shift_opened [15:08:45]FM_GetShiftState [15:08:45]SAM_PROTO_GetShiftState [15:08:45]wFMCommunicate request_size=4 [15:08:45]MH_SAM_APDU [15:08:45]CAPDU: 80 13 01 00 [15:08:45]Write to MH i2c: E2 08 00 40 63 80 13 01 00 00 00 00 00 20 [15:08:45]Write i2c OK [15:08:45]MH_I2C_Read... [15:08:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:08:45]Read from MH i2c: E2 [15:08:45]MH_I2C_Read... [15:08:45]Read from MH i2c: E2 0E 00 [15:08:45]MH_I2C_Read... [15:08:45]Read from MH i2c: E2 0E 00 40 63 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 ED [15:08:45]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [15:08:45]wFMCommunicate OK [15:08:45]SAM_PROTO_GetShiftState done [15:08:45]FM_GetShiftState done [15:08:45]req_shift_opened done [15:08:45]requested_item shift.open_date is exist - process it [15:08:45]req_shift_open_date [15:08:45]req_shift_open_date done [15:08:45]produce_requested_data done [15:08:45]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156625,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [15:08:45]process_action_free close_receipt [15:08:45]json_value_free [15:08:45]json_value_free done [15:08:45]process_json_proto returns [15:08:45]Send response to host [15:08:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156625,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [15:08:45]free response buf [15:08:45]execute_script done [15:08:45]execute_script returns [15:08:45]free content buf [15:08:45]Sock 9.Close socket [15:08:45]Sock 9.Thread stoped [15:08:45]OFD Sender: No OFD packet to send [15:08:46]accept exits with 8 [15:08:46]New connection [15:08:46]New thread 3066834276 created [15:08:46]Thread 3066977636 joined [15:08:46]Waiting for new connection... [15:08:46] Sock 8.Parse request [15:08:46]Sock 8.Check first char [15:08:46]Sock 8.First char is OK [15:08:46]request: POST /json_proto HTTP/1.0 [15:08:46]Method: POST [15:08:46]URL: /json_proto [15:08:46]Method is POST - this is cgi request [15:08:46]url: /json_proto [15:08:46]query_string will be loaded in cgi processing [15:08:46]execute_cgi json_proto POST (null) [15:08:46]execute_cgi path=json_proto method=POST [15:08:46]POST find Content-Length [15:08:46]Host: 172.17.63.3:8080 [15:08:46]Content-Length: 765 [15:08:46]Content-Type: application/json [15:08:46] [15:08:46]POST finish read [15:08:46]Found Content-Length = 765 [15:08:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99440", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:08:46]execute_script... [15:08: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)99440", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:08:46]POST & json_proto [15:08:46]process_json_proto [15:08:46]json parsed OK: [15:08:46]protocol is kg_v1.0 [15:08:46]action value=close_receipt [15:08:46]process_action close_receipt [15:08:46]cmd_close_receipt [15:08:46]MH_GetDate [15:08:46]Write to MH i2c: F0 00 00 41 63 93 [15:08:46]Write i2c OK [15:08:46]MH_I2C_Read... [15:08:46]Read from MH i2c: F0 [15:08:46]MH_I2C_Read... [15:08:46]Read from MH i2c: F0 09 00 [15:08:46]MH_I2C_Read... [15:08:46]Read from MH i2c: F0 09 00 41 63 00 84 57 1E 67 50 D1 6C 64 ED [15:08:46]GetLastDocTimeStamp 1730041729 [15:08:46]current date 1730041732 [15:08:46]FM_GetShiftState [15:08:46]SAM_PROTO_GetShiftState [15:08:46]wFMCommunicate request_size=4 [15:08:46]MH_SAM_APDU [15:08:46]CAPDU: 80 13 01 00 [15:08:46]Write to MH i2c: E2 08 00 42 63 80 13 01 00 00 00 00 00 22 [15:08:46]Write i2c OK [15:08:46]MH_I2C_Read... [15:08:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:08:46]Read from MH i2c: E2 [15:08:46]MH_I2C_Read... [15:08:46]Read from MH i2c: E2 0E 00 [15:08:46]MH_I2C_Read... [15:08:46]Read from MH i2c: E2 0E 00 42 63 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 EF [15:08:46]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [15:08:46]wFMCommunicate OK [15:08:46]SAM_PROTO_GetShiftState done [15:08:46]FM_GetShiftState done [15:08:46]opened in 1729989044 [15:08:46]opened+sec_in_day 1730075444 [15:08:46]quantity*price = 50041 [15:08:46]sum+1 = 50042 [15:08:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 177 27.10.2024 15:08 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 156626 ФПД: 168760374922892 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T150852&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156626&fm=168760374922892&tin=02508201610067®Number=0000000000091693&sum=50041 [15:08:47]StoreToDocumentArchive [15:08:47]shift 537 fd 156626 [15:08:47]save to /storage/0537/doc_00156626 [15:08:47]save last doc name /storage/0537/doc_00156626 to /storage/kkm_last_doc_name [15:08:47]save OK [15:08:47]Clear old archive folders... [15:08:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:08:47]tlvbuf is 017E4340 [15:08:47]SAM_PROTO_ClearQueue [15:08:47]wFMCommunicate request_size=4 [15:08:47]MH_SAM_APDU [15:08:47]CAPDU: 80 09 00 00 [15:08:47]Write to MH i2c: E2 08 00 4F 63 80 09 00 00 00 00 00 00 24 [15:08:47]Write i2c OK [15:08:47]MH_I2C_Read... [15:08:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:08:47]Read from MH i2c: E2 [15:08:47]MH_I2C_Read... [15:08:47]Read from MH i2c: E2 03 00 [15:08:47]MH_I2C_Read... [15:08:47]Read from MH i2c: E2 03 00 4F 63 00 90 00 26 [15:08:47]RAPDU: 90 00 [15:08:47]wFMCommunicate OK [15:08:47]SAM_PROTO_ClearQueue done [15:08:47]KKMCreateOFDPacket [15:08:47]OFDProtocolAddRootSTLVToBuf [15:08:47]FM_MakeSignedData [15:08:47]FM_MakeSignedData [15:08:47]SAM_PROTO_SignData [15:08:47]wFMCommunicate request_size=4 [15:08:47]MH_SAM_APDU [15:08:47]CAPDU: 80 0D 01 02 [15:08:47]Write to MH i2c: E2 08 00 50 63 80 0D 01 02 00 00 00 00 2C [15:08:47]Write i2c OK [15:08:47]MH_I2C_Read... [15:08:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:08:47]Read from MH i2c: E2 [15:08:47]MH_I2C_Read... [15:08:47]Read from MH i2c: E2 03 00 [15:08:47]MH_I2C_Read... [15:08:47]Read from MH i2c: E2 03 00 50 63 00 90 00 27 [15:08:47]RAPDU: 90 00 [15:08:47]wFMCommunicate OK [15:08:47]wFMCommunicate request_size=255 [15:08:47]MH_SAM_APDU [15:08: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 84 57 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D2 63 02 00 35 04 06 00 99 [15:08:47]Write to MH i2c: E2 02 01 51 63 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 84 57 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D2 63 02 00 35 04 06 00 99 00 00 0E [15:08:47]Write i2c OK [15:08:47]MH_I2C_Read... [15:08:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:08:48]Read from MH i2c: E2 [15:08:48]MH_I2C_Read... [15:08:48]Read from MH i2c: E2 03 00 [15:08:48]MH_I2C_Read... [15:08:48]Read from MH i2c: E2 03 00 51 63 00 90 00 28 [15:08:48]RAPDU: 90 00 [15:08:48]wFMCommunicate OK [15:08:48]wFMCommunicate request_size=10 [15:08:48]MH_SAM_APDU [15:08:48]CAPDU: 80 0D 02 02 05 7C 96 33 0E 8C [15:08:48]Write to MH i2c: E2 0D 00 52 63 80 0D 02 02 05 00 7C 96 33 0E 8C 00 00 18 [15:08:48]Write i2c OK [15:08:48]MH_I2C_Read... [15:08:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:08:48]Read from MH i2c: E2 [15:08:48]MH_I2C_Read... [15:08:48]Read from MH i2c: E2 03 00 [15:08:48]MH_I2C_Read... [15:08:48]Read from MH i2c: E2 03 00 52 63 00 90 00 29 [15:08:48]RAPDU: 90 00 [15:08:48]wFMCommunicate OK [15:08:48]wFMCommunicate request_size=4 [15:08:48]MH_SAM_APDU [15:08:48]CAPDU: 80 0D 03 02 [15:08:48]Write to MH i2c: E2 08 00 53 63 80 0D 03 02 00 00 00 00 31 [15:08:48]Write i2c OK [15:08:48]MH_I2C_Read... [15:08:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:08:48]Read from MH i2c: E2 [15:08:48]MH_I2C_Read... [15:08:48]Read from MH i2c: E2 0B 00 [15:08:48]MH_I2C_Read... [15:08:48]Read from MH i2c: E2 0B 00 53 63 00 50 2A 9C EC 7D B6 1A 51 90 00 D2 [15:08:48]RAPDU: 50 2A 9C EC 7D B6 1A 51 90 00 [15:08:48]wFMCommunicate OK [15:08:48]SAM_PROTO_SignData done [15:08:48]FM_MakeSignedData done [15:08:48]CreateOFDProtocolMessage [15:08:48]wFMCommunicate request_size=4 [15:08:48]MH_SAM_APDU [15:08:48]CAPDU: 80 11 00 00 [15:08:48]Write to MH i2c: E2 08 00 54 63 80 11 00 00 00 00 00 00 31 [15:08:48]Write i2c OK [15:08:48]MH_I2C_Read... [15:08:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:08:48]Read from MH i2c: E2 [15:08:48]MH_I2C_Read... [15:08:48]Read from MH i2c: E2 17 00 [15:08:48]MH_I2C_Read... [15:08:48]Read from MH i2c: E2 17 00 54 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 86 [15:08:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:08:48]wFMCommunicate OK [15:08:48]CreateOFDProtocolMessage done [15:08:48]OFDSenderStorePacket 156626 [15:08:48]StoreOFDPacket docnum=156626 [15:08:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 34 DD 07 01 15 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 84 57 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D2 63 02 00 35 04 06 00 99 7C 96 33 0E 8C 50 2A 9C EC 7D B6 1A 51 [15:08:48]CheckFolder [15:08:48]dirname=/storage/ofd_packets [15:08:48]CheckFolder done [15:08:48]ProducePacketName [15:08:48]name=ofd_packets/00156626 [15:08:48]NVStorageSaveData ofd_packets/00156626 [15:08:48]File name is /storage/ofd_packets/00156626 [15:08:48]Write 301 bytes [15:08:48]NVStorageSaveData done [15:08:48]OFDSenderStorePacket done [15:08:48]KKMCreateOFDPacket done [15:08:48]NVStorageSaveData kkm_last_timestamp [15:08:48]File name is /storage/kkm_last_timestamp [15:08:48]Write 4 bytes [15:08:48]NVStorageSaveData done [15:08:48]ExternCall_PrintAddStr [15:08:48]wPrintStart [15:08:48]Write to MH i2c: 01 00 00 55 63 B8 [15:08:48]Write i2c OK [15:08:48]MH_I2C_Read... [15:08:48]Read from MH i2c: 01 [15:08:48]MH_I2C_Read... [15:08:48]Read from MH i2c: 01 07 00 [15:08:48]MH_I2C_Read... [15:08:48]Read from MH i2c: 01 07 00 55 63 00 00 00 00 00 FF 0F CD [15:08:48]RasterBufferAndPrint [15:08:48]line Счет N : (1)99440 [15:08:48]line ИНН: 02508201610067 [15:08:48]line Контрольно-Кассовый Чек [15:08:48]line ПРОДАЖА [15:08:48]line ТРК (МРК, ГНК) : 21 [15:08:48]line Товар: 2710124130 [15:08:48]line Аи-92-К-5 [15:08:48]line 7.480 * 66.90 [15:08:48]line = 500.41 [15:08:48]line НДС 12% НСП 1% [15:08:48]line > о реализуемом товаре [15:08:48]line ИТОГО: 500.41 [15:08:48]line НСП 1% : 4.43 [15:08:48]line НДС 12% : 53.14 [15:08:48]line Наличными: 0.00 [15:08:48]line Безнал.: 500.41 [15:08:48]line Место: АЗС № 143 "Партнер Нефть" [15:08:48]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [15:08:48]line СНО: Общий режим [15:08:48]line Чек 177 27.10.2024 15:08 [15:08:48]line Смена: 537 ФФД: 1.0 [15:08:48]line ЗНМ: 0300000096 [15:08:48]line РНМ: 0000000000091693 [15:08:48]line Версия ККМ: 001 [15:08:48]line Платежная система: Mbank [15:08:48]line ФМ: 0000000000871792 [15:08:48]line ФД: 156626 [15:08:48]line ФПД: 168760374922892 [15:08:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T150852&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156626&fm=168760374922892&tin=02508201610067®Number=0000000000091693&sum=50041 [15:08:48]written 0, free lines is 4095 [15:08:48]OFD Sender: Processing packet 156626 [packets to send 31, broken 30] [15:08:48]ProducePacketName [15:08:48]name=ofd_packets/00156626 [15:08:48]OFD Sender: To server: pG, [15:08:48]CommunicateWithHost lk.salyk.kg:30040 [15:08:48]ConnectInit lk.salyk.kg [15:08:48]Connected sock=10 [15:08:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 34 DD 07 01 15 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 84 57 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D2 63 02 00 35 04 06 00 99 7C 96 33 0E 8C 50 2A 9C EC 7D B6 1A 51 [15:08:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 7F 84 47 00 54 DB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D2 63 02 00 F4 03 04 00 F3 FC 1D 67 B6 04 01 00 00 82 7A 08 BF 04 AB 17 5B [15:08:48]CommunicateWithHost err = 0 [15:08:48]CheckOFDResponse [15:08:48]1017 (14) - 77093643461234 [15:08:48]1041 (16) - 0000000000871792 [15:08:48]1040 (4) - 156626 [15:08:48]1012 (4) - 27.10.2024 08:42 [15:08:48]1206 (1) - 0 [15:08:48]OFD Sender: Remove packet 156626 [15:08:48]ProducePacketName [15:08:48]name=ofd_packets/00156626 [15:08:48]NVStorageDeleteData [15:08:48]Write to MH i2c: 01 00 00 7E 63 E1 [15:08:48]Write i2c OK [15:08:48]MH_I2C_Read... [15:08:48]Read from MH i2c: 01 [15:08:48]MH_I2C_Read... [15:08:48]Read from MH i2c: 01 07 00 [15:08:48]MH_I2C_Read... [15:08:48]Read from MH i2c: 01 07 00 7E 63 00 00 00 00 00 26 0D 1B [15:08:48]RasterBufferAndPrint [15:08:48]line [15:08:48]line [15:08:48]line [15:08:48]line [15:08:48]line [15:08:48]written 0, free lines is 3382 [15:08:48]process_action close_receipt done [15:08:48]requested_data is exist [15:08:48]produce_requested_data [15:08:48]requested_item fm.sn is exist - process it [15:08:48]wFMCommunicate request_size=4 [15:08:48]MH_SAM_APDU [15:08:48]CAPDU: 80 11 00 00 [15:08:48]Write to MH i2c: E2 08 00 85 63 80 11 00 00 00 00 00 00 62 [15:08:48]Write i2c OK [15:08:48]MH_I2C_Read... [15:08:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:08:48]Read from MH i2c: E2 [15:08:48]MH_I2C_Read... [15:08:48]Read from MH i2c: E2 17 00 [15:08:48]MH_I2C_Read... [15:08:48]Read from MH i2c: E2 17 00 85 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 B7 [15:08:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:08:48]wFMCommunicate OK [15:08:48]requested_item fd.num is exist - process it [15:08:48]SAM_PROTO_GetFieldsCounters [15:08:48]wFMCommunicate request_size=4 [15:08:48]MH_SAM_APDU [15:08:48]CAPDU: 80 13 00 00 [15:08:48]Write to MH i2c: E2 08 00 86 63 80 13 00 00 00 00 00 00 65 [15:08:48]Write i2c OK [15:08:48]MH_I2C_Read... [15:08:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:08:48]Read from MH i2c: E2 [15:08:48]MH_I2C_Read... [15:08:48]Read from MH i2c: E2 62 00 [15:08:48]MH_I2C_Read... [15:08:48]Read from MH i2c: E2 62 00 86 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 D2 63 02 00 0E 04 04 00 19 02 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 F0 [15:08:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 D2 63 02 00 0E 04 04 00 19 02 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 [15:08:49]wFMCommunicate OK [15:08:49]SAM_PROTO_GetFieldsCounters done [15:08:49]requested_item shift.num is exist - process it [15:08:49]requested_item shift.opened is exist - process it [15:08:49]req_shift_opened [15:08:49]FM_GetShiftState [15:08:49]SAM_PROTO_GetShiftState [15:08:49]wFMCommunicate request_size=4 [15:08:49]MH_SAM_APDU [15:08:49]CAPDU: 80 13 01 00 [15:08:49]Write to MH i2c: E2 08 00 87 63 80 13 01 00 00 00 00 00 67 [15:08:49]Write i2c OK [15:08:49]MH_I2C_Read... [15:08:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:08:49]Read from MH i2c: E2 [15:08:49]MH_I2C_Read... [15:08:49]Read from MH i2c: E2 0E 00 [15:08:49]MH_I2C_Read... [15:08:49]Read from MH i2c: E2 0E 00 87 63 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 34 [15:08:49]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [15:08:49]wFMCommunicate OK [15:08:49]SAM_PROTO_GetShiftState done [15:08:49]FM_GetShiftState done [15:08:49]req_shift_opened done [15:08:49]requested_item shift.open_date is exist - process it [15:08:49]req_shift_open_date [15:08:49]req_shift_open_date done [15:08:49]produce_requested_data done [15:08:49]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156626,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [15:08:49]process_action_free close_receipt [15:08:49]json_value_free [15:08:49]json_value_free done [15:08:49]process_json_proto returns [15:08:49]Send response to host [15:08:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156626,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [15:08:49]free response buf [15:08:49]execute_script done [15:08:49]execute_script returns [15:08:49]free content buf [15:08:49]Sock 8.Close socket [15:08:49]Sock 8.Thread stoped [15:08:49]OFD Sender: No OFD packet to send [15:08:54]OFD Sender: No OFD packet to send [15:08:59]OFD Sender: No OFD packet to send [15:09:04]OFD Sender: No OFD packet to send [15:09:09]OFD Sender: No OFD packet to send [15:09:14]OFD Sender: No OFD packet to send [15:09:19]OFD Sender: No OFD packet to send [15:09:24]OFD Sender: No OFD packet to send [15:09:29]OFD Sender: No OFD packet to send [15:09:34]OFD Sender: No OFD packet to send [15:09:39]OFD Sender: No OFD packet to send [15:09:44]OFD Sender: No OFD packet to send [15:09:49]OFD Sender: No OFD packet to send [15:09:54]OFD Sender: No OFD packet to send [15:09:59]OFD Sender: No OFD packet to send [15:10:04]OFD Sender: No OFD packet to send [15:10:09]OFD Sender: No OFD packet to send [15:10:10]accept exits with 9 [15:10:10]New connection [15:10:10]New thread 3066977636 created [15:10:10]Thread 3066834276 joined [15:10:10]Waiting for new connection... [15:10:10] Sock 9.Parse request [15:10:10]Sock 9.Check first char [15:10:10]Sock 9.First char is OK [15:10:10]request: POST /json_proto HTTP/1.0 [15:10:10]Method: POST [15:10:10]URL: /json_proto [15:10:10]Method is POST - this is cgi request [15:10:10]url: /json_proto [15:10:10]query_string will be loaded in cgi processing [15:10:10]execute_cgi json_proto POST (null) [15:10:10]execute_cgi path=json_proto method=POST [15:10:10]POST find Content-Length [15:10:10]Host: 172.17.63.3:8080 [15:10:10]Content-Length: 681 [15:10:10]Content-Type: application/json [15:10:10] [15:10:10]POST finish read [15:10:10]Found Content-Length = 681 [15:10:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99441", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:10:10]execute_script... [15:10: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)99441", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:10:10]POST & json_proto [15:10:10]process_json_proto [15:10:10]json parsed OK: [15:10:10]protocol is kg_v1.0 [15:10:10]action value=close_receipt [15:10:10]process_action close_receipt [15:10:10]cmd_close_receipt [15:10:10]MH_GetDate [15:10:10]Write to MH i2c: F0 00 00 88 63 DA [15:10:10]Write i2c OK [15:10:10]MH_I2C_Read... [15:10:10]Read from MH i2c: F0 [15:10:10]MH_I2C_Read... [15:10:10]Read from MH i2c: F0 09 00 [15:10:10]MH_I2C_Read... [15:10:10]Read from MH i2c: F0 09 00 88 63 00 D8 57 1E 67 50 D1 6C 64 88 [15:10:10]GetLastDocTimeStamp 1730041732 [15:10:10]current date 1730041816 [15:10:10]FM_GetShiftState [15:10:10]SAM_PROTO_GetShiftState [15:10:10]wFMCommunicate request_size=4 [15:10:10]MH_SAM_APDU [15:10:10]CAPDU: 80 13 01 00 [15:10:10]Write to MH i2c: E2 08 00 89 63 80 13 01 00 00 00 00 00 69 [15:10:10]Write i2c OK [15:10:10]MH_I2C_Read... [15:10:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:10:10]Read from MH i2c: E2 [15:10:10]MH_I2C_Read... [15:10:10]Read from MH i2c: E2 0E 00 [15:10:10]MH_I2C_Read... [15:10:10]Read from MH i2c: E2 0E 00 89 63 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 36 [15:10:10]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [15:10:10]wFMCommunicate OK [15:10:10]SAM_PROTO_GetShiftState done [15:10:10]FM_GetShiftState done [15:10:10]opened in 1729989044 [15:10:10]opened+sec_in_day 1730075444 [15:10:10]quantity*price = 100015 [15:10:10]sum+1 = 100017 [15:10:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 178 27.10.2024 15:10 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156627 ФПД: 278770339837628 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T151016&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156627&fm=278770339837628&tin=02508201610067®Number=0000000000091693&sum=100000 [15:10:11]StoreToDocumentArchive [15:10:11]shift 537 fd 156627 [15:10:11]save to /storage/0537/doc_00156627 [15:10:11]save last doc name /storage/0537/doc_00156627 to /storage/kkm_last_doc_name [15:10:11]save OK [15:10:11]Clear old archive folders... [15:10:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:10:11]tlvbuf is 01782E40 [15:10:11]SAM_PROTO_ClearQueue [15:10:11]wFMCommunicate request_size=4 [15:10:11]MH_SAM_APDU [15:10:11]CAPDU: 80 09 00 00 [15:10:11]Write to MH i2c: E2 08 00 96 63 80 09 00 00 00 00 00 00 6B [15:10:11]Write i2c OK [15:10:11]MH_I2C_Read... [15:10:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:10:11]Read from MH i2c: E2 [15:10:11]MH_I2C_Read... [15:10:11]Read from MH i2c: E2 03 00 [15:10:11]MH_I2C_Read... [15:10:11]Read from MH i2c: E2 03 00 96 63 00 90 00 6D [15:10:11]RAPDU: 90 00 [15:10:11]wFMCommunicate OK [15:10:11]SAM_PROTO_ClearQueue done [15:10:11]KKMCreateOFDPacket [15:10:11]OFDProtocolAddRootSTLVToBuf [15:10:11]FM_MakeSignedData [15:10:11]FM_MakeSignedData [15:10:11]SAM_PROTO_SignData [15:10:11]wFMCommunicate request_size=4 [15:10:11]MH_SAM_APDU [15:10:11]CAPDU: 80 0D 01 02 [15:10:11]Write to MH i2c: E2 08 00 97 63 80 0D 01 02 00 00 00 00 73 [15:10:11]Write i2c OK [15:10:11]MH_I2C_Read... [15:10:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:10:11]Read from MH i2c: E2 [15:10:11]MH_I2C_Read... [15:10:11]Read from MH i2c: E2 03 00 [15:10:11]MH_I2C_Read... [15:10:11]Read from MH i2c: E2 03 00 97 63 00 90 00 6E [15:10:11]RAPDU: 90 00 [15:10:11]wFMCommunicate OK [15:10:11]wFMCommunicate request_size=255 [15:10:11]MH_SAM_APDU [15:10:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 D8 57 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D3 63 02 00 35 04 06 00 FD [15:10:11]Write to MH i2c: E2 02 01 98 63 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 D8 57 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D3 63 02 00 35 04 06 00 FD 00 00 B7 [15:10:11]Write i2c OK [15:10:11]MH_I2C_Read... [15:10:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:10:11]Read from MH i2c: E2 [15:10:11]MH_I2C_Read... [15:10:11]Read from MH i2c: E2 03 00 [15:10:11]MH_I2C_Read... [15:10:11]Read from MH i2c: E2 03 00 98 63 00 90 00 6F [15:10:11]RAPDU: 90 00 [15:10:11]wFMCommunicate OK [15:10:11]wFMCommunicate request_size=10 [15:10:11]MH_SAM_APDU [15:10:11]CAPDU: 80 0D 02 02 05 8A 47 14 76 BC [15:10:11]Write to MH i2c: E2 0D 00 99 63 80 0D 02 02 05 00 8A 47 14 76 BC 00 00 97 [15:10:11]Write i2c OK [15:10:11]MH_I2C_Read... [15:10:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:10:11]Read from MH i2c: E2 [15:10:11]MH_I2C_Read... [15:10:11]Read from MH i2c: E2 03 00 [15:10:11]MH_I2C_Read... [15:10:11]Read from MH i2c: E2 03 00 99 63 00 90 00 70 [15:10:11]RAPDU: 90 00 [15:10:11]wFMCommunicate OK [15:10:11]wFMCommunicate request_size=4 [15:10:11]MH_SAM_APDU [15:10:11]CAPDU: 80 0D 03 02 [15:10:11]Write to MH i2c: E2 08 00 9A 63 80 0D 03 02 00 00 00 00 78 [15:10:11]Write i2c OK [15:10:11]MH_I2C_Read... [15:10:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:10:11]Read from MH i2c: E2 [15:10:11]MH_I2C_Read... [15:10:11]Read from MH i2c: E2 0B 00 [15:10:11]MH_I2C_Read... [15:10:11]Read from MH i2c: E2 0B 00 9A 63 00 41 4F EC 90 44 32 31 77 90 00 A3 [15:10:11]RAPDU: 41 4F EC 90 44 32 31 77 90 00 [15:10:11]wFMCommunicate OK [15:10:11]SAM_PROTO_SignData done [15:10:11]FM_MakeSignedData done [15:10:11]CreateOFDProtocolMessage [15:10:11]wFMCommunicate request_size=4 [15:10:11]MH_SAM_APDU [15:10:11]CAPDU: 80 11 00 00 [15:10:11]Write to MH i2c: E2 08 00 9B 63 80 11 00 00 00 00 00 00 78 [15:10:11]Write i2c OK [15:10:11]MH_I2C_Read... [15:10:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:10:11]Read from MH i2c: E2 [15:10:11]MH_I2C_Read... [15:10:11]Read from MH i2c: E2 17 00 [15:10:11]MH_I2C_Read... [15:10:11]Read from MH i2c: E2 17 00 9B 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 CD [15:10:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:10:11]wFMCommunicate OK [15:10:11]CreateOFDProtocolMessage done [15:10:11]OFDSenderStorePacket 156627 [15:10:11]StoreOFDPacket docnum=156627 [15:10:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 6C 38 07 01 01 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 D8 57 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D3 63 02 00 35 04 06 00 FD 8A 47 14 76 BC 41 4F EC 90 44 32 31 77 [15:10:11]CheckFolder [15:10:11]dirname=/storage/ofd_packets [15:10:11]CheckFolder done [15:10:11]ProducePacketName [15:10:11]name=ofd_packets/00156627 [15:10:11]NVStorageSaveData ofd_packets/00156627 [15:10:11]File name is /storage/ofd_packets/00156627 [15:10:11]Write 301 bytes [15:10:11]NVStorageSaveData done [15:10:11]OFDSenderStorePacket done [15:10:11]KKMCreateOFDPacket done [15:10:11]NVStorageSaveData kkm_last_timestamp [15:10:11]File name is /storage/kkm_last_timestamp [15:10:11]Write 4 bytes [15:10:11]NVStorageSaveData done [15:10:11]ExternCall_PrintAddStr [15:10:11]wPrintStart [15:10:11]Write to MH i2c: 01 00 00 9C 63 FF [15:10:11]Write i2c OK [15:10:11]MH_I2C_Read... [15:10:11]Read from MH i2c: 01 [15:10:11]MH_I2C_Read... [15:10:11]Read from MH i2c: 01 07 00 [15:10:11]MH_I2C_Read... [15:10:11]Read from MH i2c: 01 07 00 9C 63 00 00 00 00 00 FF 0F 14 [15:10:11]RasterBufferAndPrint [15:10:11]line Счет N : (1)99441 [15:10:11]line ИНН: 02508201610067 [15:10:11]line Контрольно-Кассовый Чек [15:10:11]line ПРОДАЖА [15:10:11]line ТРК (МРК, ГНК) : 11 [15:10:11]line Товар: 2710124130 [15:10:11]line Аи-92-К-5 [15:10:11]line 14.950 * 66.90 [15:10:11]line = 1000.16 [15:10:11]line НДС 12% НСП 1% [15:10:11]line > о реализуемом товаре [15:10:11]line ОКРУГЛЕНИЕ: -0.16 [15:10:11]line ИТОГО: 1000.00 [15:10:11]line Внесено: 1000.00 [15:10:11]line СДАЧА: 0.00 [15:10:11]line НСП 1% : 8.85 [15:10:11]line НДС 12% : 106.21 [15:10:11]line Наличными: 1000.00 [15:10:11]line Безнал.: 0.00 [15:10:11]line Место: АЗС № 143 "Партнер Нефть" [15:10:11]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [15:10:11]line СНО: Общий режим [15:10:11]line Чек 178 27.10.2024 15:10 [15:10:11]line Смена: 537 ФФД: 1.0 [15:10:11]line ЗНМ: 0300000096 [15:10:11]line РНМ: 0000000000091693 [15:10:11]line Версия ККМ: 001 [15:10:11]line ФМ: 0000000000871792 [15:10:11]line ФД: 156627 [15:10:11]line ФПД: 278770339837628 [15:10:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T151016&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156627&fm=278770339837628&tin=02508201610067®Number=0000000000091693&sum=100000 [15:10:11]written 0, free lines is 4095 [15:10:11]OFD Sender: Processing packet 156627 [packets to send 31, broken 30] [15:10:11]ProducePacketName [15:10:11]name=ofd_packets/00156627 [15:10:11]OFD Sender: To server: pG, [15:10:11]CommunicateWithHost lk.salyk.kg:30040 [15:10:11]ConnectInit lk.salyk.kg [15:10:12]Connected sock=10 [15:10:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 6C 38 07 01 01 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 D8 57 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D3 63 02 00 35 04 06 00 FD 8A 47 14 76 BC 41 4F EC 90 44 32 31 77 [15:10:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 6E 93 47 00 7C 07 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D3 63 02 00 F4 03 04 00 47 FD 1D 67 B6 04 01 00 00 61 32 A6 45 59 F1 D2 C4 [15:10:12]CommunicateWithHost err = 0 [15:10:12]CheckOFDResponse [15:10:12]1017 (14) - 77093643461234 [15:10:12]1041 (16) - 0000000000871792 [15:10:12]1040 (4) - 156627 [15:10:12]1012 (4) - 27.10.2024 08:43 [15:10:12]1206 (1) - 0 [15:10:12]OFD Sender: Remove packet 156627 [15:10:12]ProducePacketName [15:10:12]name=ofd_packets/00156627 [15:10:12]NVStorageDeleteData [15:10:12]Write to MH i2c: 01 00 00 C7 63 2A [15:10:12]Write i2c OK [15:10:12]MH_I2C_Read... [15:10:12]Read from MH i2c: 01 [15:10:12]MH_I2C_Read... [15:10:12]Read from MH i2c: 01 07 00 [15:10:12]MH_I2C_Read... [15:10:12]Read from MH i2c: 01 07 00 C7 63 00 00 00 00 00 F3 0C 30 [15:10:12]RasterBufferAndPrint [15:10:12]line [15:10:12]line [15:10:12]line [15:10:12]line [15:10:12]line [15:10:12]written 0, free lines is 3321 [15:10:12]process_action close_receipt done [15:10:12]requested_data is exist [15:10:12]produce_requested_data [15:10:12]requested_item fm.sn is exist - process it [15:10:12]wFMCommunicate request_size=4 [15:10:12]MH_SAM_APDU [15:10:12]CAPDU: 80 11 00 00 [15:10:12]Write to MH i2c: E2 08 00 CE 63 80 11 00 00 00 00 00 00 AB [15:10:12]Write i2c OK [15:10:12]MH_I2C_Read... [15:10:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:10:12]Read from MH i2c: E2 [15:10:12]MH_I2C_Read... [15:10:12]Read from MH i2c: E2 17 00 [15:10:12]MH_I2C_Read... [15:10:12]Read from MH i2c: E2 17 00 CE 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 00 [15:10:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:10:12]wFMCommunicate OK [15:10:12]requested_item fd.num is exist - process it [15:10:12]SAM_PROTO_GetFieldsCounters [15:10:12]wFMCommunicate request_size=4 [15:10:12]MH_SAM_APDU [15:10:12]CAPDU: 80 13 00 00 [15:10:12]Write to MH i2c: E2 08 00 CF 63 80 13 00 00 00 00 00 00 AE [15:10:12]Write i2c OK [15:10:12]MH_I2C_Read... [15:10:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:10:12]Read from MH i2c: E2 [15:10:12]MH_I2C_Read... [15:10:12]Read from MH i2c: E2 62 00 [15:10:12]MH_I2C_Read... [15:10:12]Read from MH i2c: E2 62 00 CF 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 D3 63 02 00 0E 04 04 00 19 02 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 3D [15:10:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 D3 63 02 00 0E 04 04 00 19 02 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 [15:10:12]wFMCommunicate OK [15:10:12]SAM_PROTO_GetFieldsCounters done [15:10:12]requested_item shift.num is exist - process it [15:10:12]requested_item shift.opened is exist - process it [15:10:12]req_shift_opened [15:10:12]FM_GetShiftState [15:10:12]SAM_PROTO_GetShiftState [15:10:12]wFMCommunicate request_size=4 [15:10:12]MH_SAM_APDU [15:10:12]CAPDU: 80 13 01 00 [15:10:12]Write to MH i2c: E2 08 00 D0 63 80 13 01 00 00 00 00 00 B0 [15:10:12]Write i2c OK [15:10:12]MH_I2C_Read... [15:10:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:10:12]Read from MH i2c: E2 [15:10:12]MH_I2C_Read... [15:10:12]Read from MH i2c: E2 0E 00 [15:10:12]MH_I2C_Read... [15:10:12]Read from MH i2c: E2 0E 00 D0 63 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 7D [15:10:12]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [15:10:12]wFMCommunicate OK [15:10:12]SAM_PROTO_GetShiftState done [15:10:12]FM_GetShiftState done [15:10:12]req_shift_opened done [15:10:12]requested_item shift.open_date is exist - process it [15:10:12]req_shift_open_date [15:10:12]req_shift_open_date done [15:10:12]produce_requested_data done [15:10:12]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156627,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [15:10:12]process_action_free close_receipt [15:10:12]json_value_free [15:10:12]json_value_free done [15:10:12]process_json_proto returns [15:10:12]Send response to host [15:10:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156627,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [15:10:12]free response buf [15:10:12]execute_script done [15:10:12]execute_script returns [15:10:12]free content buf [15:10:12]Sock 9.Close socket [15:10:12]Sock 9.Thread stoped [15:10:12]OFD Sender: No OFD packet to send [15:10:17]OFD Sender: No OFD packet to send [15:10:22]OFD Sender: No OFD packet to send [15:10:27]OFD Sender: No OFD packet to send [15:10:32]OFD Sender: No OFD packet to send [15:10:37]OFD Sender: No OFD packet to send [15:10:42]OFD Sender: No OFD packet to send [15:10:47]OFD Sender: No OFD packet to send [15:10:52]OFD Sender: No OFD packet to send [15:10:57]OFD Sender: No OFD packet to send [15:11:02]OFD Sender: No OFD packet to send [15:11:07]OFD Sender: No OFD packet to send [15:11:12]OFD Sender: No OFD packet to send [15:11:17]OFD Sender: No OFD packet to send [15:11:22]OFD Sender: No OFD packet to send [15:11:27]OFD Sender: No OFD packet to send [15:11:32]OFD Sender: No OFD packet to send [15:11:37]OFD Sender: No OFD packet to send [15:11:42]OFD Sender: No OFD packet to send [15:11:47]OFD Sender: No OFD packet to send [15:11:52]OFD Sender: No OFD packet to send [15:11:57]OFD Sender: No OFD packet to send [15:12:02]OFD Sender: No OFD packet to send [15:12:07]OFD Sender: No OFD packet to send [15:12:12]OFD Sender: No OFD packet to send [15:12:17]OFD Sender: No OFD packet to send [15:12:22]OFD Sender: No OFD packet to send [15:12:27]OFD Sender: No OFD packet to send [15:12:32]OFD Sender: No OFD packet to send [15:12:37]OFD Sender: No OFD packet to send [15:12:42]OFD Sender: No OFD packet to send [15:12:47]OFD Sender: No OFD packet to send [15:12:52]OFD Sender: No OFD packet to send [15:12:57]OFD Sender: No OFD packet to send [15:13:02]OFD Sender: No OFD packet to send [15:13:07]OFD Sender: No OFD packet to send [15:13:12]OFD Sender: No OFD packet to send [15:13:17]OFD Sender: No OFD packet to send [15:13:22]OFD Sender: No OFD packet to send [15:13:27]OFD Sender: No OFD packet to send [15:13:32]OFD Sender: No OFD packet to send [15:13:37]OFD Sender: No OFD packet to send [15:13:42]OFD Sender: No OFD packet to send [15:13:47]OFD Sender: No OFD packet to send [15:13:52]OFD Sender: No OFD packet to send [15:13:57]OFD Sender: No OFD packet to send [15:14:02]OFD Sender: No OFD packet to send [15:14:07]OFD Sender: No OFD packet to send [15:14:12]accept exits with 8 [15:14:12]New connection [15:14:12]New thread 3066834276 created [15:14:12]Thread 3066977636 joined [15:14:12]Waiting for new connection... [15:14:12] Sock 8.Parse request [15:14:12]Sock 8.Check first char [15:14:12]Sock 8.First char is OK [15:14:12]request: POST /json_proto HTTP/1.0 [15:14:12]Method: POST [15:14:12]URL: /json_proto [15:14:12]Method is POST - this is cgi request [15:14:12]url: /json_proto [15:14:12]query_string will be loaded in cgi processing [15:14:12]execute_cgi json_proto POST (null) [15:14:12]execute_cgi path=json_proto method=POST [15:14:12]POST find Content-Length [15:14:12]Host: 172.17.63.3:8080 [15:14:12]Content-Length: 676 [15:14:12]Content-Type: application/json [15:14:12] [15:14:12]POST finish read [15:14:12]Found Content-Length = 676 [15:14:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99442", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 6.280, "sum" : 420.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 420.00, "total" : 420.00, "payments": [ { "type": 0, "sum" : 420.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:14:12]execute_script... [15:14:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99442", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 6.280, "sum" : 420.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 420.00, "total" : 420.00, "payments": [ { "type": 0, "sum" : 420.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:14:12]POST & json_proto [15:14:12]process_json_proto [15:14:12]json parsed OK: [15:14:12]protocol is kg_v1.0 [15:14:12]action value=close_receipt [15:14:12]process_action close_receipt [15:14:12]cmd_close_receipt [15:14:12]MH_GetDate [15:14:12]Write to MH i2c: F0 00 00 D1 63 23 [15:14:12]Write i2c OK [15:14:12]MH_I2C_Read... [15:14:12]Read from MH i2c: F0 [15:14:12]MH_I2C_Read... [15:14:12]Read from MH i2c: F0 09 00 [15:14:12]MH_I2C_Read... [15:14:12]Read from MH i2c: F0 09 00 D1 63 00 CA 58 1E 67 50 D1 6C 64 C4 [15:14:12]GetLastDocTimeStamp 1730041816 [15:14:12]current date 1730042058 [15:14:12]FM_GetShiftState [15:14:12]SAM_PROTO_GetShiftState [15:14:12]wFMCommunicate request_size=4 [15:14:12]MH_SAM_APDU [15:14:12]CAPDU: 80 13 01 00 [15:14:12]Write to MH i2c: E2 08 00 D2 63 80 13 01 00 00 00 00 00 B2 [15:14:12]Write i2c OK [15:14:12]MH_I2C_Read... [15:14:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:14:12]Read from MH i2c: E2 [15:14:12]MH_I2C_Read... [15:14:12]Read from MH i2c: E2 0E 00 [15:14:12]MH_I2C_Read... [15:14:12]Read from MH i2c: E2 0E 00 D2 63 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 7F [15:14:12]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [15:14:12]wFMCommunicate OK [15:14:12]SAM_PROTO_GetShiftState done [15:14:12]FM_GetShiftState done [15:14:12]opened in 1729989044 [15:14:12]opened+sec_in_day 1730075444 [15:14:12]quantity*price = 42013 [15:14:12]sum+1 = 42014 [15:14:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 420.00 Внесено: 420.00 СДАЧА: 0.00 НСП 1% : 3.72 НДС 12% : 44.62 Наличными: 420.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 179 27.10.2024 15:14 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156628 ФПД: 47672855776823 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T151418&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156628&fm=47672855776823&tin=02508201610067®Number=0000000000091693&sum=42000 [15:14:13]StoreToDocumentArchive [15:14:13]shift 537 fd 156628 [15:14:13]save to /storage/0537/doc_00156628 [15:14:13]save last doc name /storage/0537/doc_00156628 to /storage/kkm_last_doc_name [15:14:13]save OK [15:14:13]Clear old archive folders... [15:14:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:14:13]tlvbuf is 016BB4A0 [15:14:13]SAM_PROTO_ClearQueue [15:14:13]wFMCommunicate request_size=4 [15:14:13]MH_SAM_APDU [15:14:13]CAPDU: 80 09 00 00 [15:14:13]Write to MH i2c: E2 08 00 DF 63 80 09 00 00 00 00 00 00 B4 [15:14:13]Write i2c OK [15:14:13]MH_I2C_Read... [15:14:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:14:13]Read from MH i2c: E2 [15:14:13]MH_I2C_Read... [15:14:13]Read from MH i2c: E2 03 00 [15:14:13]MH_I2C_Read... [15:14:13]Read from MH i2c: E2 03 00 DF 63 00 90 00 B6 [15:14:13]RAPDU: 90 00 [15:14:13]wFMCommunicate OK [15:14:13]SAM_PROTO_ClearQueue done [15:14:13]KKMCreateOFDPacket [15:14:13]OFDProtocolAddRootSTLVToBuf [15:14:13]FM_MakeSignedData [15:14:13]FM_MakeSignedData [15:14:13]SAM_PROTO_SignData [15:14:13]wFMCommunicate request_size=4 [15:14:13]MH_SAM_APDU [15:14:13]CAPDU: 80 0D 01 02 [15:14:13]Write to MH i2c: E2 08 00 E0 63 80 0D 01 02 00 00 00 00 BC [15:14:13]Write i2c OK [15:14:13]MH_I2C_Read... [15:14:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:14:13]Read from MH i2c: E2 [15:14:13]MH_I2C_Read... [15:14:13]Read from MH i2c: E2 03 00 [15:14:13]MH_I2C_Read... [15:14:13]Read from MH i2c: E2 03 00 E0 63 00 90 00 B7 [15:14:13]RAPDU: 90 00 [15:14:13]wFMCommunicate OK [15:14:13]wFMCommunicate request_size=255 [15:14:13]MH_SAM_APDU [15:14:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 18 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 1D A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 11 00 00 00 00 07 04 06 00 10 A4 00 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 CA 58 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D4 63 02 00 35 04 06 00 2B [15:14:13]Write to MH i2c: E2 02 01 E1 63 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 18 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 1D A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 11 00 00 00 00 07 04 06 00 10 A4 00 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 CA 58 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D4 63 02 00 35 04 06 00 2B 00 00 9D [15:14:13]Write i2c OK [15:14:13]MH_I2C_Read... [15:14:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:14:13]Read from MH i2c: E2 [15:14:13]MH_I2C_Read... [15:14:13]Read from MH i2c: E2 03 00 [15:14:13]MH_I2C_Read... [15:14:13]Read from MH i2c: E2 03 00 E1 63 00 90 00 B8 [15:14:13]RAPDU: 90 00 [15:14:13]wFMCommunicate OK [15:14:13]wFMCommunicate request_size=10 [15:14:13]MH_SAM_APDU [15:14:13]CAPDU: 80 0D 02 02 05 5B B3 A2 4E 37 [15:14:13]Write to MH i2c: E2 0D 00 E2 63 80 0D 02 02 05 00 5B B3 A2 4E 37 00 00 FE [15:14:13]Write i2c OK [15:14:13]MH_I2C_Read... [15:14:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:14:13]Read from MH i2c: E2 [15:14:13]MH_I2C_Read... [15:14:13]Read from MH i2c: E2 03 00 [15:14:13]MH_I2C_Read... [15:14:13]Read from MH i2c: E2 03 00 E2 63 00 90 00 B9 [15:14:13]RAPDU: 90 00 [15:14:13]wFMCommunicate OK [15:14:13]wFMCommunicate request_size=4 [15:14:13]MH_SAM_APDU [15:14:13]CAPDU: 80 0D 03 02 [15:14:13]Write to MH i2c: E2 08 00 E3 63 80 0D 03 02 00 00 00 00 C1 [15:14:13]Write i2c OK [15:14:13]MH_I2C_Read... [15:14:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:14:13]Read from MH i2c: E2 [15:14:13]MH_I2C_Read... [15:14:13]Read from MH i2c: E2 0B 00 [15:14:13]MH_I2C_Read... [15:14:13]Read from MH i2c: E2 0B 00 E3 63 00 EF C0 FF 28 2D 67 3B 4B 90 00 B2 [15:14:13]RAPDU: EF C0 FF 28 2D 67 3B 4B 90 00 [15:14:13]wFMCommunicate OK [15:14:13]SAM_PROTO_SignData done [15:14:13]FM_MakeSignedData done [15:14:13]CreateOFDProtocolMessage [15:14:13]wFMCommunicate request_size=4 [15:14:13]MH_SAM_APDU [15:14:13]CAPDU: 80 11 00 00 [15:14:13]Write to MH i2c: E2 08 00 E4 63 80 11 00 00 00 00 00 00 C1 [15:14:13]Write i2c OK [15:14:13]MH_I2C_Read... [15:14:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:14:13]Read from MH i2c: E2 [15:14:13]MH_I2C_Read... [15:14:13]Read from MH i2c: E2 17 00 [15:14:13]MH_I2C_Read... [15:14:13]Read from MH i2c: E2 17 00 E4 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 16 [15:14:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:14:13]wFMCommunicate OK [15:14:13]CreateOFDProtocolMessage done [15:14:13]OFDSenderStorePacket 156628 [15:14:13]StoreOFDPacket docnum=156628 [15:14:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 93 58 07 01 DF 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 18 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 1D A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 11 00 00 00 00 07 04 06 00 10 A4 00 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 CA 58 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D4 63 02 00 35 04 06 00 2B 5B B3 A2 4E 37 EF C0 FF 28 2D 67 3B 4B [15:14:13]CheckFolder [15:14:13]dirname=/storage/ofd_packets [15:14:13]CheckFolder done [15:14:13]ProducePacketName [15:14:13]name=ofd_packets/00156628 [15:14:13]NVStorageSaveData ofd_packets/00156628 [15:14:13]File name is /storage/ofd_packets/00156628 [15:14:13]Write 301 bytes [15:14:13]NVStorageSaveData done [15:14:13]OFDSenderStorePacket done [15:14:13]KKMCreateOFDPacket done [15:14:13]NVStorageSaveData kkm_last_timestamp [15:14:13]File name is /storage/kkm_last_timestamp [15:14:13]Write 4 bytes [15:14:13]NVStorageSaveData done [15:14:13]ExternCall_PrintAddStr [15:14:13]wPrintStart [15:14:13]Write to MH i2c: 01 00 00 E5 63 48 [15:14:13]Write i2c OK [15:14:13]MH_I2C_Read... [15:14:13]Read from MH i2c: 01 [15:14:13]MH_I2C_Read... [15:14:13]Read from MH i2c: 01 07 00 [15:14:13]MH_I2C_Read... [15:14:13]Read from MH i2c: 01 07 00 E5 63 00 00 00 00 00 FF 0F 5D [15:14:13]RasterBufferAndPrint [15:14:13]line Счет N : (1)99442 [15:14:13]line ИНН: 02508201610067 [15:14:13]line Контрольно-Кассовый Чек [15:14:13]line ПРОДАЖА [15:14:13]line ТРК (МРК, ГНК) : 21 [15:14:13]line Товар: 2710124130 [15:14:13]line Аи-92-К-5 [15:14:13]line 6.280 * 66.90 [15:14:13]line = 420.13 [15:14:13]line НДС 12% НСП 1% [15:14:13]line > о реализуемом товаре [15:14:13]line ОКРУГЛЕНИЕ: -0.13 [15:14:13]line ИТОГО: 420.00 [15:14:13]line Внесено: 420.00 [15:14:13]line СДАЧА: 0.00 [15:14:13]line НСП 1% : 3.72 [15:14:13]line НДС 12% : 44.62 [15:14:13]line Наличными: 420.00 [15:14:13]line Безнал.: 0.00 [15:14:13]line Место: АЗС № 143 "Партнер Нефть" [15:14:13]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [15:14:13]line СНО: Общий режим [15:14:13]line Чек 179 27.10.2024 15:14 [15:14:13]line Смена: 537 ФФД: 1.0 [15:14:13]line ЗНМ: 0300000096 [15:14:13]line РНМ: 0000000000091693 [15:14:13]line Версия ККМ: 001 [15:14:13]line ФМ: 0000000000871792 [15:14:13]line ФД: 156628 [15:14:13]line ФПД: 47672855776823 [15:14:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T151418&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156628&fm=47672855776823&tin=02508201610067®Number=0000000000091693&sum=42000 [15:14:14]OFD Sender: Processing packet 156628 [packets to send 31, broken 30] [15:14:14]ProducePacketName [15:14:14]name=ofd_packets/00156628 [15:14:14]OFD Sender: To server: pG, [15:14:14]CommunicateWithHost lk.salyk.kg:30040 [15:14:14]ConnectInit lk.salyk.kg [15:14:14]written 0, free lines is 4095 [15:14:14]Connected sock=10 [15:14:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 93 58 07 01 DF 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 18 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 1D A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 11 00 00 00 00 07 04 06 00 10 A4 00 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 CA 58 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D4 63 02 00 35 04 06 00 2B 5B B3 A2 4E 37 EF C0 FF 28 2D 67 3B 4B [15:14:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 60 0E 47 00 03 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 31 37 39 32 10 04 04 00 D4 63 02 00 F4 03 04 00 39 FE 1D 67 B6 04 01 00 00 6B CA 90 7C 40 7C 95 F5 [15:14:14]CommunicateWithHost err = 0 [15:14:14]CheckOFDResponse [15:14:14]1017 (14) - 77093643461234 [15:14:14]1041 (16) - 0000000000871792 [15:14:14]1040 (4) - 156628 [15:14:14]1012 (4) - 27.10.2024 08:47 [15:14:14]1206 (1) - 0 [15:14:14]OFD Sender: Remove packet 156628 [15:14:14]ProducePacketName [15:14:14]name=ofd_packets/00156628 [15:14:14]NVStorageDeleteData [15:14:14]Write to MH i2c: 01 00 00 10 64 74 [15:14:14]Write i2c OK [15:14:14]MH_I2C_Read... [15:14:14]Read from MH i2c: 01 [15:14:14]MH_I2C_Read... [15:14:14]Read from MH i2c: 01 07 00 [15:14:14]MH_I2C_Read... [15:14:14]Read from MH i2c: 01 07 00 10 64 00 00 00 00 00 F7 0C 7E [15:14:14]RasterBufferAndPrint [15:14:14]line [15:14:14]line [15:14:14]line [15:14:14]line [15:14:14]line [15:14:14]written 0, free lines is 3326 [15:14:14]process_action close_receipt done [15:14:14]requested_data is exist [15:14:14]produce_requested_data [15:14:14]requested_item fm.sn is exist - process it [15:14:14]wFMCommunicate request_size=4 [15:14:14]MH_SAM_APDU [15:14:14]CAPDU: 80 11 00 00 [15:14:14]Write to MH i2c: E2 08 00 17 64 80 11 00 00 00 00 00 00 F5 [15:14:14]Write i2c OK [15:14:14]MH_I2C_Read... [15:14:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:14:14]Read from MH i2c: E2 [15:14:14]MH_I2C_Read... [15:14:14]Read from MH i2c: E2 17 00 [15:14:14]MH_I2C_Read... [15:14:14]Read from MH i2c: E2 17 00 17 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 4A [15:14:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:14:14]wFMCommunicate OK [15:14:14]requested_item fd.num is exist - process it [15:14:14]SAM_PROTO_GetFieldsCounters [15:14:14]wFMCommunicate request_size=4 [15:14:14]MH_SAM_APDU [15:14:14]CAPDU: 80 13 00 00 [15:14:14]Write to MH i2c: E2 08 00 18 64 80 13 00 00 00 00 00 00 F8 [15:14:14]Write i2c OK [15:14:14]MH_I2C_Read... [15:14:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:14:14]Read from MH i2c: E2 [15:14:14]MH_I2C_Read... [15:14:14]Read from MH i2c: E2 62 00 [15:14:14]MH_I2C_Read... [15:14:14]Read from MH i2c: E2 62 00 18 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 D4 63 02 00 0E 04 04 00 19 02 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 8B [15:14:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 D4 63 02 00 0E 04 04 00 19 02 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 [15:14:14]wFMCommunicate OK [15:14:14]SAM_PROTO_GetFieldsCounters done [15:14:14]requested_item shift.num is exist - process it [15:14:14]requested_item shift.opened is exist - process it [15:14:14]req_shift_opened [15:14:14]FM_GetShiftState [15:14:14]SAM_PROTO_GetShiftState [15:14:14]wFMCommunicate request_size=4 [15:14:14]MH_SAM_APDU [15:14:14]CAPDU: 80 13 01 00 [15:14:14]Write to MH i2c: E2 08 00 19 64 80 13 01 00 00 00 00 00 FA [15:14:15]Write i2c OK [15:14:15]MH_I2C_Read... [15:14:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:14:15]Read from MH i2c: E2 [15:14:15]MH_I2C_Read... [15:14:15]Read from MH i2c: E2 0E 00 [15:14:15]MH_I2C_Read... [15:14:15]Read from MH i2c: E2 0E 00 19 64 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 C7 [15:14:15]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [15:14:15]wFMCommunicate OK [15:14:15]SAM_PROTO_GetShiftState done [15:14:15]FM_GetShiftState done [15:14:15]req_shift_opened done [15:14:15]requested_item shift.open_date is exist - process it [15:14:15]req_shift_open_date [15:14:15]req_shift_open_date done [15:14:15]produce_requested_data done [15:14:15]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156628,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [15:14:15]process_action_free close_receipt [15:14:15]json_value_free [15:14:15]json_value_free done [15:14:15]process_json_proto returns [15:14:15]Send response to host [15:14:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156628,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [15:14:15]free response buf [15:14:15]execute_script done [15:14:15]execute_script returns [15:14:15]free content buf [15:14:15]Sock 8.Close socket [15:14:15]Sock 8.Thread stoped [15:14:15]OFD Sender: No OFD packet to send [15:14:20]OFD Sender: No OFD packet to send [15:14:25]OFD Sender: No OFD packet to send [15:14:30]OFD Sender: No OFD packet to send [15:14:35]OFD Sender: No OFD packet to send [15:14:40]OFD Sender: No OFD packet to send [15:14:45]OFD Sender: No OFD packet to send [15:14:50]OFD Sender: No OFD packet to send [15:14:55]OFD Sender: No OFD packet to send [15:15:00]OFD Sender: No OFD packet to send [15:15:05]OFD Sender: No OFD packet to send [15:15:10]OFD Sender: No OFD packet to send [15:15:15]OFD Sender: No OFD packet to send [15:15:20]OFD Sender: No OFD packet to send [15:15:25]OFD Sender: No OFD packet to send [15:15:30]OFD Sender: No OFD packet to send [15:15:35]OFD Sender: No OFD packet to send [15:15:40]OFD Sender: No OFD packet to send [15:15:45]OFD Sender: No OFD packet to send [15:15:46]accept exits with 9 [15:15:46]New connection [15:15:46]New thread 3066977636 created [15:15:46]Thread 3066834276 joined [15:15:46]Waiting for new connection... [15:15:46] Sock 9.Parse request [15:15:46]Sock 9.Check first char [15:15:46]Sock 9.First char is OK [15:15:46]request: POST /json_proto HTTP/1.0 [15:15:46]Method: POST [15:15:46]URL: /json_proto [15:15:46]Method is POST - this is cgi request [15:15:46]url: /json_proto [15:15:46]query_string will be loaded in cgi processing [15:15:46]execute_cgi json_proto POST (null) [15:15:46]execute_cgi path=json_proto method=POST [15:15:46]POST find Content-Length [15:15:46]Host: 172.17.63.3:8080 [15:15:46]Content-Length: 673 [15:15:46]Content-Type: application/json [15:15:46] [15:15:46]POST finish read [15:15:46]Found Content-Length = 673 [15:15:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99443", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:15:46]execute_script... [15:15: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)99443", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:15:46]POST & json_proto [15:15:46]process_json_proto [15:15:46]json parsed OK: [15:15:46]protocol is kg_v1.0 [15:15:46]action value=close_receipt [15:15:46]process_action close_receipt [15:15:46]cmd_close_receipt [15:15:46]MH_GetDate [15:15:46]Write to MH i2c: F0 00 00 1A 64 6D [15:15:46]Write i2c OK [15:15:46]MH_I2C_Read... [15:15:46]Read from MH i2c: F0 [15:15:46]MH_I2C_Read... [15:15:46]Read from MH i2c: F0 09 00 [15:15:46]MH_I2C_Read... [15:15:46]Read from MH i2c: F0 09 00 1A 64 00 29 59 1E 67 50 D1 6C 64 6E [15:15:46]GetLastDocTimeStamp 1730042058 [15:15:46]current date 1730042153 [15:15:46]FM_GetShiftState [15:15:46]SAM_PROTO_GetShiftState [15:15:46]wFMCommunicate request_size=4 [15:15:46]MH_SAM_APDU [15:15:46]CAPDU: 80 13 01 00 [15:15:46]Write to MH i2c: E2 08 00 1B 64 80 13 01 00 00 00 00 00 FC [15:15:46]Write i2c OK [15:15:46]MH_I2C_Read... [15:15:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:15:46]Read from MH i2c: E2 [15:15:46]MH_I2C_Read... [15:15:46]Read from MH i2c: E2 0E 00 [15:15:46]MH_I2C_Read... [15:15:46]Read from MH i2c: E2 0E 00 1B 64 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 C9 [15:15:46]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [15:15:46]wFMCommunicate OK [15:15:46]SAM_PROTO_GetShiftState done [15:15:46]FM_GetShiftState done [15:15:46]opened in 1729989044 [15:15:46]opened+sec_in_day 1730075444 [15:15:46]quantity*price = 70027 [15:15:46]sum+1 = 70029 [15:15:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 180 27.10.2024 15:15 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156629 ФПД: 125906297489641 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T151553&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156629&fm=125906297489641&tin=02508201610067®Number=0000000000091693&sum=70000 [15:15:47]StoreToDocumentArchive [15:15:47]shift 537 fd 156629 [15:15:47]save to /storage/0537/doc_00156629 [15:15:47]save last doc name /storage/0537/doc_00156629 to /storage/kkm_last_doc_name [15:15:47]save OK [15:15:47]Clear old archive folders... [15:15:47]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:15:47]tlvbuf is 0183E4A0 [15:15:47]SAM_PROTO_ClearQueue [15:15:47]wFMCommunicate request_size=4 [15:15:47]MH_SAM_APDU [15:15:47]CAPDU: 80 09 00 00 [15:15:47]Write to MH i2c: E2 08 00 28 64 80 09 00 00 00 00 00 00 FE [15:15:47]Write i2c OK [15:15:47]MH_I2C_Read... [15:15:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:15:47]Read from MH i2c: E2 [15:15:47]MH_I2C_Read... [15:15:47]Read from MH i2c: E2 03 00 [15:15:47]MH_I2C_Read... [15:15:47]Read from MH i2c: E2 03 00 28 64 00 90 00 00 [15:15:47]RAPDU: 90 00 [15:15:47]wFMCommunicate OK [15:15:47]SAM_PROTO_ClearQueue done [15:15:47]KKMCreateOFDPacket [15:15:47]OFDProtocolAddRootSTLVToBuf [15:15:47]FM_MakeSignedData [15:15:47]FM_MakeSignedData [15:15:47]SAM_PROTO_SignData [15:15:47]wFMCommunicate request_size=4 [15:15:47]MH_SAM_APDU [15:15:47]CAPDU: 80 0D 01 02 [15:15:47]Write to MH i2c: E2 08 00 29 64 80 0D 01 02 00 00 00 00 06 [15:15:47]Write i2c OK [15:15:47]MH_I2C_Read... [15:15:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:15:48]Read from MH i2c: E2 [15:15:48]MH_I2C_Read... [15:15:48]Read from MH i2c: E2 03 00 [15:15:48]MH_I2C_Read... [15:15:48]Read from MH i2c: E2 03 00 29 64 00 90 00 01 [15:15:48]RAPDU: 90 00 [15:15:48]wFMCommunicate OK [15:15:48]wFMCommunicate request_size=255 [15:15:48]MH_SAM_APDU [15:15:48]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 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 0D 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 B4 00 00 00 F4 03 04 00 29 59 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D5 63 02 00 35 04 06 00 72 82 D8 23 [15:15:48]Write to MH i2c: E2 02 01 2A 64 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 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 0D 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 B4 00 00 00 F4 03 04 00 29 59 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D5 63 02 00 35 04 06 00 72 82 D8 23 00 00 8B [15:15:48]Write i2c OK [15:15:48]MH_I2C_Read... [15:15:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:48]Read from MH i2c: E2 [15:15:48]MH_I2C_Read... [15:15:48]Read from MH i2c: E2 03 00 [15:15:48]MH_I2C_Read... [15:15:48]Read from MH i2c: E2 03 00 2A 64 00 90 00 02 [15:15:48]RAPDU: 90 00 [15:15:48]wFMCommunicate OK [15:15:48]wFMCommunicate request_size=7 [15:15:48]MH_SAM_APDU [15:15:48]CAPDU: 80 0D 02 02 02 08 E9 [15:15:48]Write to MH i2c: E2 0A 00 2B 64 80 0D 02 02 02 00 08 E9 00 00 FE [15:15:48]Write i2c OK [15:15:48]MH_I2C_Read... [15:15:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:48]Read from MH i2c: E2 [15:15:48]MH_I2C_Read... [15:15:48]Read from MH i2c: E2 03 00 [15:15:48]MH_I2C_Read... [15:15:48]Read from MH i2c: E2 03 00 2B 64 00 90 00 03 [15:15:48]RAPDU: 90 00 [15:15:48]wFMCommunicate OK [15:15:48]wFMCommunicate request_size=4 [15:15:48]MH_SAM_APDU [15:15:48]CAPDU: 80 0D 03 02 [15:15:48]Write to MH i2c: E2 08 00 2C 64 80 0D 03 02 00 00 00 00 0B [15:15:48]Write i2c OK [15:15:48]MH_I2C_Read... [15:15:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:15:48]Read from MH i2c: E2 [15:15:48]MH_I2C_Read... [15:15:48]Read from MH i2c: E2 0B 00 [15:15:48]MH_I2C_Read... [15:15:48]Read from MH i2c: E2 0B 00 2C 64 00 3E 82 93 7E 87 0F 45 32 90 00 EA [15:15:48]RAPDU: 3E 82 93 7E 87 0F 45 32 90 00 [15:15:48]wFMCommunicate OK [15:15:48]SAM_PROTO_SignData done [15:15:48]FM_MakeSignedData done [15:15:48]CreateOFDProtocolMessage [15:15:48]wFMCommunicate request_size=4 [15:15:48]MH_SAM_APDU [15:15:48]CAPDU: 80 11 00 00 [15:15:48]Write to MH i2c: E2 08 00 2D 64 80 11 00 00 00 00 00 00 0B [15:15:48]Write i2c OK [15:15:48]MH_I2C_Read... [15:15:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:15:48]Read from MH i2c: E2 [15:15:48]MH_I2C_Read... [15:15:48]Read from MH i2c: E2 17 00 [15:15:48]MH_I2C_Read... [15:15:48]Read from MH i2c: E2 17 00 2D 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 60 [15:15:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:15:48]wFMCommunicate OK [15:15:48]CreateOFDProtocolMessage done [15:15:48]OFDSenderStorePacket 156629 [15:15:48]StoreOFDPacket docnum=156629 [15:15:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 1D 10 04 01 74 4A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 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 0D 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 B4 00 00 00 F4 03 04 00 29 59 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D5 63 02 00 35 04 06 00 72 82 D8 23 08 E9 3E 82 93 7E 87 0F 45 32 [15:15:48]CheckFolder [15:15:48]dirname=/storage/ofd_packets [15:15:48]CheckFolder done [15:15:48]ProducePacketName [15:15:48]name=ofd_packets/00156629 [15:15:48]NVStorageSaveData ofd_packets/00156629 [15:15:48]File name is /storage/ofd_packets/00156629 [15:15:48]Write 298 bytes [15:15:48]NVStorageSaveData done [15:15:48]OFDSenderStorePacket done [15:15:48]KKMCreateOFDPacket done [15:15:48]NVStorageSaveData kkm_last_timestamp [15:15:48]File name is /storage/kkm_last_timestamp [15:15:48]Write 4 bytes [15:15:48]NVStorageSaveData done [15:15:48]ExternCall_PrintAddStr [15:15:48]wPrintStart [15:15:48]Write to MH i2c: 01 00 00 2E 64 92 [15:15:48]Write i2c OK [15:15:48]MH_I2C_Read... [15:15:48]Read from MH i2c: 01 [15:15:48]MH_I2C_Read... [15:15:48]Read from MH i2c: 01 07 00 [15:15:48]MH_I2C_Read... [15:15:48]Read from MH i2c: 01 07 00 2E 64 00 00 00 00 00 FF 0F A7 [15:15:48]RasterBufferAndPrint [15:15:48]line Счет N : (1)99443 [15:15:48]line ИНН: 02508201610067 [15:15:48]line Контрольно-Кассовый Чек [15:15:48]line ПРОДАЖА [15:15:48]line ТРК (МРК, ГНК) : 32 [15:15:48]line Товар: 2710194210 [15:15:48]line ДТ-К-5 [15:15:48]line 9.190 * 76.20 [15:15:48]line = 700.28 [15:15:48]line НДС 12% НСП 1% [15:15:48]line > о реализуемом товаре [15:15:48]line ОКРУГЛЕНИЕ: -0.28 [15:15:48]line ИТОГО: 700.00 [15:15:48]line Внесено: 700.00 [15:15:48]line СДАЧА: 0.00 [15:15:48]line НСП 1% : 6.20 [15:15:48]line НДС 12% : 74.37 [15:15:48]line Наличными: 700.00 [15:15:48]line Безнал.: 0.00 [15:15:48]line Место: АЗС № 143 "Партнер Нефть" [15:15:48]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [15:15:48]line СНО: Общий режим [15:15:48]line Чек 180 27.10.2024 15:15 [15:15:48]line Смена: 537 ФФД: 1.0 [15:15:48]line ЗНМ: 0300000096 [15:15:48]line РНМ: 0000000000091693 [15:15:48]line Версия ККМ: 001 [15:15:48]line ФМ: 0000000000871792 [15:15:48]line ФД: 156629 [15:15:48]line ФПД: 125906297489641 [15:15:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T151553&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156629&fm=125906297489641&tin=02508201610067®Number=0000000000091693&sum=70000 [15:15:48]written 0, free lines is 4095 [15:15:48]OFD Sender: Processing packet 156629 [packets to send 31, broken 30] [15:15:48]ProducePacketName [15:15:48]name=ofd_packets/00156629 [15:15:48]OFD Sender: To server: pG, [15:15:48]CommunicateWithHost lk.salyk.kg:30040 [15:15:48]ConnectInit lk.salyk.kg [15:15:48]Connected sock=10 [15:15:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 1D 10 04 01 74 4A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 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 0D 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 B4 00 00 00 F4 03 04 00 29 59 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D5 63 02 00 35 04 06 00 72 82 D8 23 08 E9 3E 82 93 7E 87 0F 45 32 [15:15:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 4F ED 47 00 D5 B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D5 63 02 00 F4 03 04 00 98 FE 1D 67 B6 04 01 00 00 47 20 FC 2D 27 A2 F8 06 [15:15:49]CommunicateWithHost err = 0 [15:15:49]CheckOFDResponse [15:15:49]1017 (14) - 77093643461234 [15:15:49]1041 (16) - 0000000000871792 [15:15:49]1040 (4) - 156629 [15:15:49]1012 (4) - 27.10.2024 08:49 [15:15:49]1206 (1) - 0 [15:15:49]OFD Sender: Remove packet 156629 [15:15:49]ProducePacketName [15:15:49]name=ofd_packets/00156629 [15:15:49]NVStorageDeleteData [15:15:49]Write to MH i2c: 01 00 00 59 64 BD [15:15:49]Write i2c OK [15:15:49]MH_I2C_Read... [15:15:49]Read from MH i2c: 01 [15:15:49]MH_I2C_Read... [15:15:49]Read from MH i2c: 01 07 00 [15:15:49]MH_I2C_Read... [15:15:49]Read from MH i2c: 01 07 00 59 64 00 00 00 00 00 EC 0C BC [15:15:49]RasterBufferAndPrint [15:15:49]line [15:15:49]line [15:15:49]line [15:15:49]line [15:15:49]line [15:15:49]written 0, free lines is 3314 [15:15:49]process_action close_receipt done [15:15:49]requested_data is exist [15:15:49]produce_requested_data [15:15:49]requested_item fm.sn is exist - process it [15:15:49]wFMCommunicate request_size=4 [15:15:49]MH_SAM_APDU [15:15:49]CAPDU: 80 11 00 00 [15:15:49]Write to MH i2c: E2 08 00 60 64 80 11 00 00 00 00 00 00 3E [15:15:49]Write i2c OK [15:15:49]MH_I2C_Read... [15:15:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:15:49]Read from MH i2c: E2 [15:15:49]MH_I2C_Read... [15:15:49]Read from MH i2c: E2 17 00 [15:15:49]MH_I2C_Read... [15:15:49]Read from MH i2c: E2 17 00 60 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 93 [15:15:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:15:49]wFMCommunicate OK [15:15:49]requested_item fd.num is exist - process it [15:15:49]SAM_PROTO_GetFieldsCounters [15:15:49]wFMCommunicate request_size=4 [15:15:49]MH_SAM_APDU [15:15:49]CAPDU: 80 13 00 00 [15:15:49]Write to MH i2c: E2 08 00 61 64 80 13 00 00 00 00 00 00 41 [15:15:49]Write i2c OK [15:15:49]MH_I2C_Read... [15:15:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:15:49]Read from MH i2c: E2 [15:15:49]MH_I2C_Read... [15:15:49]Read from MH i2c: E2 62 00 [15:15:49]MH_I2C_Read... [15:15:49]Read from MH i2c: E2 62 00 61 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 D5 63 02 00 0E 04 04 00 19 02 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 D8 [15:15:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 D5 63 02 00 0E 04 04 00 19 02 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 [15:15:49]wFMCommunicate OK [15:15:49]SAM_PROTO_GetFieldsCounters done [15:15:49]requested_item shift.num is exist - process it [15:15:49]requested_item shift.opened is exist - process it [15:15:49]req_shift_opened [15:15:49]FM_GetShiftState [15:15:49]SAM_PROTO_GetShiftState [15:15:49]wFMCommunicate request_size=4 [15:15:49]MH_SAM_APDU [15:15:49]CAPDU: 80 13 01 00 [15:15:49]Write to MH i2c: E2 08 00 62 64 80 13 01 00 00 00 00 00 43 [15:15:49]Write i2c OK [15:15:49]MH_I2C_Read... [15:15:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:15:49]Read from MH i2c: E2 [15:15:49]MH_I2C_Read... [15:15:49]Read from MH i2c: E2 0E 00 [15:15:49]MH_I2C_Read... [15:15:49]Read from MH i2c: E2 0E 00 62 64 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 10 [15:15:49]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [15:15:49]wFMCommunicate OK [15:15:49]SAM_PROTO_GetShiftState done [15:15:49]FM_GetShiftState done [15:15:49]req_shift_opened done [15:15:49]requested_item shift.open_date is exist - process it [15:15:49]req_shift_open_date [15:15:49]req_shift_open_date done [15:15:49]produce_requested_data done [15:15:49]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156629,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [15:15:49]process_action_free close_receipt [15:15:49]json_value_free [15:15:49]json_value_free done [15:15:49]process_json_proto returns [15:15:49]Send response to host [15:15:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156629,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [15:15:49]free response buf [15:15:49]execute_script done [15:15:49]execute_script returns [15:15:49]free content buf [15:15:49]Sock 9.Close socket [15:15:49]Sock 9.Thread stoped [15:15:49]OFD Sender: No OFD packet to send [15:15:54]OFD Sender: No OFD packet to send [15:15:59]OFD Sender: No OFD packet to send [15:16:04]OFD Sender: No OFD packet to send [15:16:09]OFD Sender: No OFD packet to send [15:16:14]OFD Sender: No OFD packet to send [15:16:19]OFD Sender: No OFD packet to send [15:16:24]OFD Sender: No OFD packet to send [15:16:29]OFD Sender: No OFD packet to send [15:16:34]OFD Sender: No OFD packet to send [15:16:39]OFD Sender: No OFD packet to send [15:16:44]OFD Sender: No OFD packet to send [15:16:49]OFD Sender: No OFD packet to send [15:16:54]OFD Sender: No OFD packet to send [15:16:59]OFD Sender: No OFD packet to send [15:17:04]OFD Sender: No OFD packet to send [15:17:09]OFD Sender: No OFD packet to send [15:17:14]OFD Sender: No OFD packet to send [15:17:19]OFD Sender: No OFD packet to send [15:17:24]OFD Sender: No OFD packet to send [15:17:29]OFD Sender: No OFD packet to send [15:17:34]OFD Sender: No OFD packet to send [15:17:39]OFD Sender: No OFD packet to send [15:17:44]OFD Sender: No OFD packet to send [15:17:49]OFD Sender: No OFD packet to send [15:17:54]OFD Sender: No OFD packet to send [15:17:59]OFD Sender: No OFD packet to send [15:18:04]OFD Sender: No OFD packet to send [15:18:09]OFD Sender: No OFD packet to send [15:18:14]OFD Sender: No OFD packet to send [15:18:19]OFD Sender: No OFD packet to send [15:18:24]OFD Sender: No OFD packet to send [15:18:29]OFD Sender: No OFD packet to send [15:18:34]OFD Sender: No OFD packet to send [15:18:39]OFD Sender: No OFD packet to send [15:18:44]OFD Sender: No OFD packet to send [15:18:49]OFD Sender: No OFD packet to send [15:18:54]OFD Sender: No OFD packet to send [15:18:59]OFD Sender: No OFD packet to send [15:19:04]OFD Sender: No OFD packet to send [15:19:09]OFD Sender: No OFD packet to send [15:19:14]OFD Sender: No OFD packet to send [15:19:19]OFD Sender: No OFD packet to send [15:19:24]OFD Sender: No OFD packet to send [15:19:29]OFD Sender: No OFD packet to send [15:19:34]OFD Sender: No OFD packet to send [15:19:39]OFD Sender: No OFD packet to send [15:19:44]OFD Sender: No OFD packet to send [15:19:49]OFD Sender: No OFD packet to send [15:19:54]OFD Sender: No OFD packet to send [15:19:59]accept exits with 8 [15:19:59]New connection [15:19:59]New thread 3066834276 created [15:19:59]Thread 3066977636 joined [15:19:59]Waiting for new connection... [15:19:59] Sock 8.Parse request [15:19:59]Sock 8.Check first char [15:19:59]Sock 8.First char is OK [15:19:59]request: POST /json_proto HTTP/1.0 [15:19:59]Method: POST [15:19:59]URL: /json_proto [15:19:59]Method is POST - this is cgi request [15:19:59]url: /json_proto [15:19:59]query_string will be loaded in cgi processing [15:19:59]execute_cgi json_proto POST (null) [15:19:59]execute_cgi path=json_proto method=POST [15:19:59]POST find Content-Length [15:19:59]Host: 172.17.63.3:8080 [15:19:59]Content-Length: 677 [15:19:59]Content-Type: application/json [15:19:59] [15:19:59]POST finish read [15:19:59]Found Content-Length = 677 [15:19:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99444", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "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" ] } } [15:19:59]execute_script... [15:19: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)99444", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "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" ] } } [15:19:59]POST & json_proto [15:19:59]process_json_proto [15:19:59]json parsed OK: [15:19:59]protocol is kg_v1.0 [15:19:59]action value=close_receipt [15:19:59]process_action close_receipt [15:19:59]cmd_close_receipt [15:19:59]MH_GetDate [15:19:59]Write to MH i2c: F0 00 00 63 64 B6 [15:19:59]Write i2c OK [15:19:59]MH_I2C_Read... [15:19:59]Read from MH i2c: F0 [15:19:59]MH_I2C_Read... [15:19:59]Read from MH i2c: F0 09 00 [15:19:59]MH_I2C_Read... [15:19:59]Read from MH i2c: F0 09 00 63 64 00 25 5A 1E 67 50 D1 6C 64 B4 [15:19:59]GetLastDocTimeStamp 1730042153 [15:19:59]current date 1730042405 [15:19:59]FM_GetShiftState [15:19:59]SAM_PROTO_GetShiftState [15:19:59]wFMCommunicate request_size=4 [15:19:59]MH_SAM_APDU [15:19:59]CAPDU: 80 13 01 00 [15:19:59]Write to MH i2c: E2 08 00 64 64 80 13 01 00 00 00 00 00 45 [15:19:59]Write i2c OK [15:19:59]MH_I2C_Read... [15:19:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:19:59]Read from MH i2c: E2 [15:19:59]MH_I2C_Read... [15:19:59]Read from MH i2c: E2 0E 00 [15:19:59]MH_I2C_Read... [15:19:59]Read from MH i2c: E2 0E 00 64 64 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 12 [15:19:59]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [15:19:59]wFMCommunicate OK [15:19:59]SAM_PROTO_GetShiftState done [15:19:59]FM_GetShiftState done [15:19:59]opened in 1729989044 [15:19:59]opened+sec_in_day 1730075444 [15:19:59]quantity*price = 80012 [15:19:59]sum+1 = 80013 [15:19:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 181 27.10.2024 15:20 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156630 ФПД: 151786982278065 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T152005&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156630&fm=151786982278065&tin=02508201610067®Number=0000000000091693&sum=80000 [15:20:00]StoreToDocumentArchive [15:20:00]shift 537 fd 156630 [15:20:00]save to /storage/0537/doc_00156630 [15:20:00]save last doc name /storage/0537/doc_00156630 to /storage/kkm_last_doc_name [15:20:00]save OK [15:20:00]Clear old archive folders... [15:20:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:20:00]tlvbuf is 01840C90 [15:20:00]SAM_PROTO_ClearQueue [15:20:00]wFMCommunicate request_size=4 [15:20:00]MH_SAM_APDU [15:20:00]CAPDU: 80 09 00 00 [15:20:00]Write to MH i2c: E2 08 00 71 64 80 09 00 00 00 00 00 00 47 [15:20:00]Write i2c OK [15:20:00]MH_I2C_Read... [15:20:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:20:00]Read from MH i2c: E2 [15:20:00]MH_I2C_Read... [15:20:00]Read from MH i2c: E2 03 00 [15:20:00]MH_I2C_Read... [15:20:00]Read from MH i2c: E2 03 00 71 64 00 90 00 49 [15:20:00]RAPDU: 90 00 [15:20:00]wFMCommunicate OK [15:20:00]SAM_PROTO_ClearQueue done [15:20:00]KKMCreateOFDPacket [15:20:00]OFDProtocolAddRootSTLVToBuf [15:20:00]FM_MakeSignedData [15:20:00]FM_MakeSignedData [15:20:00]SAM_PROTO_SignData [15:20:00]wFMCommunicate request_size=4 [15:20:00]MH_SAM_APDU [15:20:00]CAPDU: 80 0D 01 02 [15:20:00]Write to MH i2c: E2 08 00 72 64 80 0D 01 02 00 00 00 00 4F [15:20:00]Write i2c OK [15:20:00]MH_I2C_Read... [15:20:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:20:00]Read from MH i2c: E2 [15:20:00]MH_I2C_Read... [15:20:00]Read from MH i2c: E2 03 00 [15:20:00]MH_I2C_Read... [15:20:00]Read from MH i2c: E2 03 00 72 64 00 90 00 4A [15:20:00]RAPDU: 90 00 [15:20:00]wFMCommunicate OK [15:20:00]wFMCommunicate request_size=255 [15:20:00]MH_SAM_APDU [15:20: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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 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 B5 00 00 00 F4 03 04 00 25 5A 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D6 63 02 00 35 04 06 00 8A [15:20:00]Write to MH i2c: E2 02 01 73 64 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 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 B5 00 00 00 F4 03 04 00 25 5A 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D6 63 02 00 35 04 06 00 8A 00 00 68 [15:20:00]Write i2c OK [15:20:00]MH_I2C_Read... [15:20:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:20:01]Read from MH i2c: E2 [15:20:01]MH_I2C_Read... [15:20:01]Read from MH i2c: E2 03 00 [15:20:01]MH_I2C_Read... [15:20:01]Read from MH i2c: E2 03 00 73 64 00 90 00 4B [15:20:01]RAPDU: 90 00 [15:20:01]wFMCommunicate OK [15:20:01]wFMCommunicate request_size=10 [15:20:01]MH_SAM_APDU [15:20:01]CAPDU: 80 0D 02 02 05 0C A9 29 03 B1 [15:20:01]Write to MH i2c: E2 0D 00 74 64 80 0D 02 02 05 00 0C A9 29 03 B1 00 00 EE [15:20:01]Write i2c OK [15:20:01]MH_I2C_Read... [15:20:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:20:01]Read from MH i2c: E2 [15:20:01]MH_I2C_Read... [15:20:01]Read from MH i2c: E2 03 00 [15:20:01]MH_I2C_Read... [15:20:01]Read from MH i2c: E2 03 00 74 64 00 90 00 4C [15:20:01]RAPDU: 90 00 [15:20:01]wFMCommunicate OK [15:20:01]wFMCommunicate request_size=4 [15:20:01]MH_SAM_APDU [15:20:01]CAPDU: 80 0D 03 02 [15:20:01]Write to MH i2c: E2 08 00 75 64 80 0D 03 02 00 00 00 00 54 [15:20:01]Write i2c OK [15:20:01]MH_I2C_Read... [15:20:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:20:01]Read from MH i2c: E2 [15:20:01]MH_I2C_Read... [15:20:01]Read from MH i2c: E2 0B 00 [15:20:01]MH_I2C_Read... [15:20:01]Read from MH i2c: E2 0B 00 75 64 00 D6 D9 25 37 9F 39 83 13 90 00 CE [15:20:01]RAPDU: D6 D9 25 37 9F 39 83 13 90 00 [15:20:01]wFMCommunicate OK [15:20:01]SAM_PROTO_SignData done [15:20:01]FM_MakeSignedData done [15:20:01]CreateOFDProtocolMessage [15:20:01]wFMCommunicate request_size=4 [15:20:01]MH_SAM_APDU [15:20:01]CAPDU: 80 11 00 00 [15:20:01]Write to MH i2c: E2 08 00 76 64 80 11 00 00 00 00 00 00 54 [15:20:01]Write i2c OK [15:20:01]MH_I2C_Read... [15:20:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:20:01]Read from MH i2c: E2 [15:20:01]MH_I2C_Read... [15:20:01]Read from MH i2c: E2 17 00 [15:20:01]MH_I2C_Read... [15:20:01]Read from MH i2c: E2 17 00 76 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 A9 [15:20:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:20:01]wFMCommunicate OK [15:20:01]CreateOFDProtocolMessage done [15:20:01]OFDSenderStorePacket 156630 [15:20:01]StoreOFDPacket docnum=156630 [15:20:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 7F E7 07 01 6E AB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 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 B5 00 00 00 F4 03 04 00 25 5A 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D6 63 02 00 35 04 06 00 8A 0C A9 29 03 B1 D6 D9 25 37 9F 39 83 13 [15:20:01]CheckFolder [15:20:01]dirname=/storage/ofd_packets [15:20:01]CheckFolder done [15:20:01]ProducePacketName [15:20:01]name=ofd_packets/00156630 [15:20:01]NVStorageSaveData ofd_packets/00156630 [15:20:01]File name is /storage/ofd_packets/00156630 [15:20:01]Write 301 bytes [15:20:01]NVStorageSaveData done [15:20:01]OFDSenderStorePacket done [15:20:01]KKMCreateOFDPacket done [15:20:01]NVStorageSaveData kkm_last_timestamp [15:20:01]File name is /storage/kkm_last_timestamp [15:20:01]Write 4 bytes [15:20:01]NVStorageSaveData done [15:20:01]ExternCall_PrintAddStr [15:20:01]wPrintStart [15:20:01]Write to MH i2c: 01 00 00 77 64 DB [15:20:01]Write i2c OK [15:20:01]MH_I2C_Read... [15:20:01]Read from MH i2c: 01 [15:20:01]MH_I2C_Read... [15:20:01]Read from MH i2c: 01 07 00 [15:20:01]MH_I2C_Read... [15:20:01]Read from MH i2c: 01 07 00 77 64 00 00 00 00 00 FF 0F F0 [15:20:01]RasterBufferAndPrint [15:20:01]line Счет N : (1)99444 [15:20:01]line ИНН: 02508201610067 [15:20:01]line Контрольно-Кассовый Чек [15:20:01]line ПРОДАЖА [15:20:01]line ТРК (МРК, ГНК) : 21 [15:20:01]line Товар: 2710124130 [15:20:01]line Аи-92-К-5 [15:20:01]line 11.960 * 66.90 [15:20:01]line = 800.12 [15:20:01]line НДС 12% НСП 1% [15:20:01]line > о реализуемом товаре [15:20:01]line ОКРУГЛЕНИЕ: -0.12 [15:20:01]line ИТОГО: 800.00 [15:20:01]line Внесено: 800.00 [15:20:01]line СДАЧА: 0.00 [15:20:01]line НСП 1% : 7.08 [15:20:01]line НДС 12% : 84.97 [15:20:01]line Наличными: 800.00 [15:20:01]line Безнал.: 0.00 [15:20:01]line Место: АЗС № 143 "Партнер Нефть" [15:20:01]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [15:20:01]line СНО: Общий режим [15:20:01]line Чек 181 27.10.2024 15:20 [15:20:01]line Смена: 537 ФФД: 1.0 [15:20:01]line ЗНМ: 0300000096 [15:20:01]line РНМ: 0000000000091693 [15:20:01]line Версия ККМ: 001 [15:20:01]line ФМ: 0000000000871792 [15:20:01]line ФД: 156630 [15:20:01]line ФПД: 151786982278065 [15:20:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T152005&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156630&fm=151786982278065&tin=02508201610067®Number=0000000000091693&sum=80000 [15:20:01]OFD Sender: Processing packet 156630 [packets to send 31, broken 30] [15:20:01]ProducePacketName [15:20:01]name=ofd_packets/00156630 [15:20:01]OFD Sender: To server: pG, [15:20:01]CommunicateWithHost lk.salyk.kg:30040 [15:20:01]ConnectInit lk.salyk.kg [15:20:01]written 0, free lines is 4095 [15:20:01]Connected sock=10 [15:20:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 7F E7 07 01 6E AB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 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 B5 00 00 00 F4 03 04 00 25 5A 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D6 63 02 00 35 04 06 00 8A 0C A9 29 03 B1 D6 D9 25 37 9F 39 83 13 [15:20:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 C3 89 47 00 D9 88 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D6 63 02 00 F4 03 04 00 95 FF 1D 67 B6 04 01 00 00 8E D0 76 79 1F AD 91 DA [15:20:01]CommunicateWithHost err = 0 [15:20:01]CheckOFDResponse [15:20:01]1017 (14) - 77093643461234 [15:20:01]1041 (16) - 0000000000871792 [15:20:01]1040 (4) - 156630 [15:20:01]1012 (4) - 27.10.2024 08:53 [15:20:01]1206 (1) - 0 [15:20:01]OFD Sender: Remove packet 156630 [15:20:01]ProducePacketName [15:20:01]name=ofd_packets/00156630 [15:20:01]NVStorageDeleteData [15:20:02]Write to MH i2c: 01 00 00 A2 64 06 [15:20:02]Write i2c OK [15:20:02]MH_I2C_Read... [15:20:02]Read from MH i2c: 01 [15:20:02]MH_I2C_Read... [15:20:02]Read from MH i2c: 01 07 00 [15:20:02]MH_I2C_Read... [15:20:02]Read from MH i2c: 01 07 00 A2 64 00 00 00 00 00 F3 0C 0C [15:20:02]RasterBufferAndPrint [15:20:02]line [15:20:02]line [15:20:02]line [15:20:02]line [15:20:02]line [15:20:02]written 0, free lines is 3321 [15:20:02]process_action close_receipt done [15:20:02]requested_data is exist [15:20:02]produce_requested_data [15:20:02]requested_item fm.sn is exist - process it [15:20:02]wFMCommunicate request_size=4 [15:20:02]MH_SAM_APDU [15:20:02]CAPDU: 80 11 00 00 [15:20:02]Write to MH i2c: E2 08 00 A9 64 80 11 00 00 00 00 00 00 87 [15:20:02]Write i2c OK [15:20:02]MH_I2C_Read... [15:20:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:20:02]Read from MH i2c: E2 [15:20:02]MH_I2C_Read... [15:20:02]Read from MH i2c: E2 17 00 [15:20:02]MH_I2C_Read... [15:20:02]Read from MH i2c: E2 17 00 A9 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 DC [15:20:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:20:02]wFMCommunicate OK [15:20:02]requested_item fd.num is exist - process it [15:20:02]SAM_PROTO_GetFieldsCounters [15:20:02]wFMCommunicate request_size=4 [15:20:02]MH_SAM_APDU [15:20:02]CAPDU: 80 13 00 00 [15:20:02]Write to MH i2c: E2 08 00 AA 64 80 13 00 00 00 00 00 00 8A [15:20:02]Write i2c OK [15:20:02]MH_I2C_Read... [15:20:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:20:02]Read from MH i2c: E2 [15:20:02]MH_I2C_Read... [15:20:02]Read from MH i2c: E2 62 00 [15:20:02]MH_I2C_Read... [15:20:02]Read from MH i2c: E2 62 00 AA 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 D6 63 02 00 0E 04 04 00 19 02 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 25 [15:20:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 D6 63 02 00 0E 04 04 00 19 02 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 [15:20:02]wFMCommunicate OK [15:20:02]SAM_PROTO_GetFieldsCounters done [15:20:02]requested_item shift.num is exist - process it [15:20:02]requested_item shift.opened is exist - process it [15:20:02]req_shift_opened [15:20:02]FM_GetShiftState [15:20:02]SAM_PROTO_GetShiftState [15:20:02]wFMCommunicate request_size=4 [15:20:02]MH_SAM_APDU [15:20:02]CAPDU: 80 13 01 00 [15:20:02]Write to MH i2c: E2 08 00 AB 64 80 13 01 00 00 00 00 00 8C [15:20:02]Write i2c OK [15:20:02]MH_I2C_Read... [15:20:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:20:02]Read from MH i2c: E2 [15:20:02]MH_I2C_Read... [15:20:02]Read from MH i2c: E2 0E 00 [15:20:02]MH_I2C_Read... [15:20:02]Read from MH i2c: E2 0E 00 AB 64 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 59 [15:20:02]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [15:20:02]wFMCommunicate OK [15:20:02]SAM_PROTO_GetShiftState done [15:20:02]FM_GetShiftState done [15:20:02]req_shift_opened done [15:20:02]requested_item shift.open_date is exist - process it [15:20:02]req_shift_open_date [15:20:02]req_shift_open_date done [15:20:02]produce_requested_data done [15:20:02]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156630,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [15:20:02]process_action_free close_receipt [15:20:02]json_value_free [15:20:02]json_value_free done [15:20:02]process_json_proto returns [15:20:02]Send response to host [15:20:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156630,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [15:20:02]free response buf [15:20:02]execute_script done [15:20:02]execute_script returns [15:20:02]free content buf [15:20:02]Sock 8.Close socket [15:20:02]Sock 8.Thread stoped [15:20:02]OFD Sender: No OFD packet to send [15:20:07]OFD Sender: No OFD packet to send [15:20:12]OFD Sender: No OFD packet to send [15:20:17]OFD Sender: No OFD packet to send [15:20:22]OFD Sender: No OFD packet to send [15:20:27]OFD Sender: No OFD packet to send [15:20:32]OFD Sender: No OFD packet to send [15:20:37]OFD Sender: No OFD packet to send [15:20:42]OFD Sender: No OFD packet to send [15:20:47]OFD Sender: No OFD packet to send [15:20:52]OFD Sender: No OFD packet to send [15:20:57]OFD Sender: No OFD packet to send [15:21:02]OFD Sender: No OFD packet to send [15:21:07]OFD Sender: No OFD packet to send [15:21:12]OFD Sender: No OFD packet to send [15:21:17]OFD Sender: No OFD packet to send [15:21:22]OFD Sender: No OFD packet to send [15:21:27]OFD Sender: No OFD packet to send [15:21:32]OFD Sender: No OFD packet to send [15:21:37]OFD Sender: No OFD packet to send [15:21:42]OFD Sender: No OFD packet to send [15:21:47]OFD Sender: No OFD packet to send [15:21:52]OFD Sender: No OFD packet to send [15:21:57]OFD Sender: No OFD packet to send [15:22:02]OFD Sender: No OFD packet to send [15:22:07]OFD Sender: No OFD packet to send [15:22:12]OFD Sender: No OFD packet to send [15:22:17]OFD Sender: No OFD packet to send [15:22:22]OFD Sender: No OFD packet to send [15:22:27]OFD Sender: No OFD packet to send [15:22:32]OFD Sender: No OFD packet to send [15:22:37]OFD Sender: No OFD packet to send [15:22:42]OFD Sender: No OFD packet to send [15:22:47]OFD Sender: No OFD packet to send [15:22:52]OFD Sender: No OFD packet to send [15:22:57]OFD Sender: No OFD packet to send [15:23:02]OFD Sender: No OFD packet to send [15:23:07]OFD Sender: No OFD packet to send [15:23:12]OFD Sender: No OFD packet to send [15:23:17]OFD Sender: No OFD packet to send [15:23:22]OFD Sender: No OFD packet to send [15:23:27]OFD Sender: No OFD packet to send [15:23:32]OFD Sender: No OFD packet to send [15:23:37]OFD Sender: No OFD packet to send [15:23:42]OFD Sender: No OFD packet to send [15:23:47]OFD Sender: No OFD packet to send [15:23:52]OFD Sender: No OFD packet to send [15:23:57]OFD Sender: No OFD packet to send [15:24:02]OFD Sender: No OFD packet to send [15:24:07]OFD Sender: No OFD packet to send [15:24:12]OFD Sender: No OFD packet to send [15:24:17]OFD Sender: No OFD packet to send [15:24:19]accept exits with 9 [15:24:19]New connection [15:24:19]New thread 3066977636 created [15:24:19]Thread 3066834276 joined [15:24:19]Waiting for new connection... [15:24:19] Sock 9.Parse request [15:24:19]Sock 9.Check first char [15:24:19]Sock 9.First char is OK [15:24:19]request: POST /json_proto HTTP/1.0 [15:24:19]Method: POST [15:24:19]URL: /json_proto [15:24:19]Method is POST - this is cgi request [15:24:19]url: /json_proto [15:24:19]query_string will be loaded in cgi processing [15:24:19]execute_cgi json_proto POST (null) [15:24:19]execute_cgi path=json_proto method=POST [15:24:19]POST find Content-Length [15:24:19]Host: 172.17.63.3:8080 [15:24:19]Content-Length: 681 [15:24:19]Content-Type: application/json [15:24:19] [15:24:19]POST finish read [15:24:19]Found Content-Length = 681 [15:24:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99445", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "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" ] } } [15:24:19]execute_script... [15:24: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)99445", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "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" ] } } [15:24:19]POST & json_proto [15:24:19]process_json_proto [15:24:19]json parsed OK: [15:24:19]protocol is kg_v1.0 [15:24:19]action value=close_receipt [15:24:19]process_action close_receipt [15:24:19]cmd_close_receipt [15:24:19]MH_GetDate [15:24:19]Write to MH i2c: F0 00 00 AC 64 FF [15:24:19]Write i2c OK [15:24:19]MH_I2C_Read... [15:24:19]Read from MH i2c: F0 [15:24:19]MH_I2C_Read... [15:24:19]Read from MH i2c: F0 09 00 [15:24:19]MH_I2C_Read... [15:24:19]Read from MH i2c: F0 09 00 AC 64 00 29 5B 1E 67 50 D1 6C 64 02 [15:24:19]GetLastDocTimeStamp 1730042405 [15:24:19]current date 1730042665 [15:24:19]FM_GetShiftState [15:24:19]SAM_PROTO_GetShiftState [15:24:19]wFMCommunicate request_size=4 [15:24:19]MH_SAM_APDU [15:24:19]CAPDU: 80 13 01 00 [15:24:19]Write to MH i2c: E2 08 00 AD 64 80 13 01 00 00 00 00 00 8E [15:24:19]Write i2c OK [15:24:19]MH_I2C_Read... [15:24:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:24:19]Read from MH i2c: E2 [15:24:19]MH_I2C_Read... [15:24:19]Read from MH i2c: E2 0E 00 [15:24:19]MH_I2C_Read... [15:24:19]Read from MH i2c: E2 0E 00 AD 64 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 5B [15:24:19]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [15:24:19]wFMCommunicate OK [15:24:19]SAM_PROTO_GetShiftState done [15:24:19]FM_GetShiftState done [15:24:19]opened in 1729989044 [15:24:19]opened+sec_in_day 1730075444 [15:24:19]quantity*price = 150056 [15:24:19]sum+1 = 150058 [15:24:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 182 27.10.2024 15:24 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156631 ФПД: 122219645108985 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T152425&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156631&fm=122219645108985&tin=02508201610067®Number=0000000000091693&sum=150000 [15:24:20]StoreToDocumentArchive [15:24:20]shift 537 fd 156631 [15:24:20]save to /storage/0537/doc_00156631 [15:24:20]save last doc name /storage/0537/doc_00156631 to /storage/kkm_last_doc_name [15:24:20]save OK [15:24:20]Clear old archive folders... [15:24:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:24:20]tlvbuf is 0179AF20 [15:24:20]SAM_PROTO_ClearQueue [15:24:20]wFMCommunicate request_size=4 [15:24:20]MH_SAM_APDU [15:24:20]CAPDU: 80 09 00 00 [15:24:20]Write to MH i2c: E2 08 00 BA 64 80 09 00 00 00 00 00 00 90 [15:24:20]Write i2c OK [15:24:20]MH_I2C_Read... [15:24:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:24:20]Read from MH i2c: E2 [15:24:20]MH_I2C_Read... [15:24:20]Read from MH i2c: E2 03 00 [15:24:20]MH_I2C_Read... [15:24:20]Read from MH i2c: E2 03 00 BA 64 00 90 00 92 [15:24:20]RAPDU: 90 00 [15:24:20]wFMCommunicate OK [15:24:20]SAM_PROTO_ClearQueue done [15:24:20]KKMCreateOFDPacket [15:24:20]OFDProtocolAddRootSTLVToBuf [15:24:20]FM_MakeSignedData [15:24:20]FM_MakeSignedData [15:24:20]SAM_PROTO_SignData [15:24:20]wFMCommunicate request_size=4 [15:24:20]MH_SAM_APDU [15:24:20]CAPDU: 80 0D 01 02 [15:24:20]Write to MH i2c: E2 08 00 BB 64 80 0D 01 02 00 00 00 00 98 [15:24:20]Write i2c OK [15:24:20]MH_I2C_Read... [15:24:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:24:20]Read from MH i2c: E2 [15:24:20]MH_I2C_Read... [15:24:20]Read from MH i2c: E2 03 00 [15:24:20]MH_I2C_Read... [15:24:20]Read from MH i2c: E2 03 00 BB 64 00 90 00 93 [15:24:20]RAPDU: 90 00 [15:24:20]wFMCommunicate OK [15:24:20]wFMCommunicate request_size=255 [15:24:20]MH_SAM_APDU [15:24: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 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 29 5B 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D7 63 02 00 35 04 06 00 6F [15:24:20]Write to MH i2c: E2 02 01 BC 64 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 29 5B 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D7 63 02 00 35 04 06 00 6F 00 00 FA [15:24:20]Write i2c OK [15:24:20]MH_I2C_Read... [15:24:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:24:20]Read from MH i2c: E2 [15:24:20]MH_I2C_Read... [15:24:20]Read from MH i2c: E2 03 00 [15:24:20]MH_I2C_Read... [15:24:20]Read from MH i2c: E2 03 00 BC 64 00 90 00 94 [15:24:20]RAPDU: 90 00 [15:24:20]wFMCommunicate OK [15:24:20]wFMCommunicate request_size=10 [15:24:20]MH_SAM_APDU [15:24:20]CAPDU: 80 0D 02 02 05 28 7A 88 02 F9 [15:24:20]Write to MH i2c: E2 0D 00 BD 64 80 0D 02 02 05 00 28 7A 88 02 F9 00 00 CA [15:24:20]Write i2c OK [15:24:20]MH_I2C_Read... [15:24:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:24:20]Read from MH i2c: E2 [15:24:20]MH_I2C_Read... [15:24:20]Read from MH i2c: E2 03 00 [15:24:20]MH_I2C_Read... [15:24:20]Read from MH i2c: E2 03 00 BD 64 00 90 00 95 [15:24:20]RAPDU: 90 00 [15:24:20]wFMCommunicate OK [15:24:20]wFMCommunicate request_size=4 [15:24:20]MH_SAM_APDU [15:24:20]CAPDU: 80 0D 03 02 [15:24:20]Write to MH i2c: E2 08 00 BE 64 80 0D 03 02 00 00 00 00 9D [15:24:20]Write i2c OK [15:24:20]MH_I2C_Read... [15:24:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:24:20]Read from MH i2c: E2 [15:24:20]MH_I2C_Read... [15:24:20]Read from MH i2c: E2 0B 00 [15:24:20]MH_I2C_Read... [15:24:20]Read from MH i2c: E2 0B 00 BE 64 00 B9 FE F5 12 74 76 E0 6A 90 00 90 [15:24:20]RAPDU: B9 FE F5 12 74 76 E0 6A 90 00 [15:24:20]wFMCommunicate OK [15:24:20]SAM_PROTO_SignData done [15:24:20]FM_MakeSignedData done [15:24:20]CreateOFDProtocolMessage [15:24:20]wFMCommunicate request_size=4 [15:24:20]MH_SAM_APDU [15:24:20]CAPDU: 80 11 00 00 [15:24:20]Write to MH i2c: E2 08 00 BF 64 80 11 00 00 00 00 00 00 9D [15:24:20]Write i2c OK [15:24:20]MH_I2C_Read... [15:24:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:24:20]Read from MH i2c: E2 [15:24:20]MH_I2C_Read... [15:24:20]Read from MH i2c: E2 17 00 [15:24:20]MH_I2C_Read... [15:24:21]Read from MH i2c: E2 17 00 BF 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 F2 [15:24:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:24:21]wFMCommunicate OK [15:24:21]CreateOFDProtocolMessage done [15:24:21]OFDSenderStorePacket 156631 [15:24:21]StoreOFDPacket docnum=156631 [15:24:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 BE 6B 07 01 84 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 29 5B 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D7 63 02 00 35 04 06 00 6F 28 7A 88 02 F9 B9 FE F5 12 74 76 E0 6A [15:24:21]CheckFolder [15:24:21]dirname=/storage/ofd_packets [15:24:21]CheckFolder done [15:24:21]ProducePacketName [15:24:21]name=ofd_packets/00156631 [15:24:21]NVStorageSaveData ofd_packets/00156631 [15:24:21]File name is /storage/ofd_packets/00156631 [15:24:21]Write 301 bytes [15:24:21]NVStorageSaveData done [15:24:21]OFDSenderStorePacket done [15:24:21]KKMCreateOFDPacket done [15:24:21]NVStorageSaveData kkm_last_timestamp [15:24:21]File name is /storage/kkm_last_timestamp [15:24:21]Write 4 bytes [15:24:21]NVStorageSaveData done [15:24:21]OFD Sender: Processing packet 156631 [packets to send 31, broken 30] [15:24:21]ProducePacketName [15:24:21]name=ofd_packets/00156631 [15:24:21]OFD Sender: To server: pG, [15:24:21]CommunicateWithHost lk.salyk.kg:30040 [15:24:21]ConnectInit lk.salyk.kg [15:24:21]ExternCall_PrintAddStr [15:24:21]wPrintStart [15:24:21]Write to MH i2c: 01 00 00 C0 64 24 [15:24:21]Write i2c OK [15:24:21]MH_I2C_Read... [15:24:21]Read from MH i2c: 01 [15:24:21]MH_I2C_Read... [15:24:21]Read from MH i2c: 01 07 00 [15:24:21]MH_I2C_Read... [15:24:21]Read from MH i2c: 01 07 00 C0 64 00 00 00 00 00 FF 0F 39 [15:24:21]RasterBufferAndPrint [15:24:21]line Счет N : (1)99445 [15:24:21]line ИНН: 02508201610067 [15:24:21]line Контрольно-Кассовый Чек [15:24:21]line ПРОДАЖА [15:24:21]line ТРК (МРК, ГНК) : 21 [15:24:21]line Товар: 2710124130 [15:24:21]line Аи-92-К-5 [15:24:21]line 22.430 * 66.90 [15:24:21]line = 1500.57 [15:24:21]line НДС 12% НСП 1% [15:24:21]line > о реализуемом товаре [15:24:21]line ОКРУГЛЕНИЕ: -0.57 [15:24:21]line ИТОГО: 1500.00 [15:24:21]line Внесено: 1500.00 [15:24:21]line СДАЧА: 0.00 [15:24:21]line НСП 1% : 13.28 [15:24:21]line НДС 12% : 159.35 [15:24:21]line Наличными: 1500.00 [15:24:21]line Безнал.: 0.00 [15:24:21]line Место: АЗС № 143 "Партнер Нефть" [15:24:21]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [15:24:21]line СНО: Общий режим [15:24:21]line Чек 182 27.10.2024 15:24 [15:24:21]line Смена: 537 ФФД: 1.0 [15:24:21]line ЗНМ: 0300000096 [15:24:21]line РНМ: 0000000000091693 [15:24:21]line Версия ККМ: 001 [15:24:21]line ФМ: 0000000000871792 [15:24:21]line ФД: 156631 [15:24:21]line ФПД: 122219645108985 [15:24:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T152425&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156631&fm=122219645108985&tin=02508201610067®Number=0000000000091693&sum=150000 [15:24:21]Connected sock=11 [15:24:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 BE 6B 07 01 84 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 29 5B 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D7 63 02 00 35 04 06 00 6F 28 7A 88 02 F9 B9 FE F5 12 74 76 E0 6A [15:24:21]written 0, free lines is 4095 [15:24:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 0B A0 47 00 96 F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D7 63 02 00 F4 03 04 00 98 00 1E 67 B6 04 01 00 00 97 01 AB 2A CE 16 E1 E5 [15:24:21]CommunicateWithHost err = 0 [15:24:21]CheckOFDResponse [15:24:21]1017 (14) - 77093643461234 [15:24:21]1041 (16) - 0000000000871792 [15:24:21]1040 (4) - 156631 [15:24:21]1012 (4) - 27.10.2024 08:58 [15:24:21]1206 (1) - 0 [15:24:21]OFD Sender: Remove packet 156631 [15:24:21]ProducePacketName [15:24:21]name=ofd_packets/00156631 [15:24:21]NVStorageDeleteData [15:24:21]Write to MH i2c: 01 00 00 EB 64 4F [15:24:21]Write i2c OK [15:24:21]MH_I2C_Read... [15:24:21]Read from MH i2c: 01 [15:24:21]MH_I2C_Read... [15:24:21]Read from MH i2c: 01 07 00 [15:24:21]MH_I2C_Read... [15:24:21]Read from MH i2c: 01 07 00 EB 64 00 00 00 00 00 E5 0C 47 [15:24:21]RasterBufferAndPrint [15:24:21]line [15:24:21]line [15:24:21]line [15:24:21]line [15:24:21]line [15:24:21]written 0, free lines is 3310 [15:24:21]process_action close_receipt done [15:24:21]requested_data is exist [15:24:21]produce_requested_data [15:24:21]requested_item fm.sn is exist - process it [15:24:21]wFMCommunicate request_size=4 [15:24:21]MH_SAM_APDU [15:24:21]CAPDU: 80 11 00 00 [15:24:21]Write to MH i2c: E2 08 00 F2 64 80 11 00 00 00 00 00 00 D0 [15:24:21]Write i2c OK [15:24:21]MH_I2C_Read... [15:24:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:24:21]Read from MH i2c: E2 [15:24:21]MH_I2C_Read... [15:24:21]Read from MH i2c: E2 17 00 [15:24:21]MH_I2C_Read... [15:24:21]Read from MH i2c: E2 17 00 F2 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 25 [15:24:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:24:21]wFMCommunicate OK [15:24:21]requested_item fd.num is exist - process it [15:24:21]SAM_PROTO_GetFieldsCounters [15:24:21]wFMCommunicate request_size=4 [15:24:21]MH_SAM_APDU [15:24:21]CAPDU: 80 13 00 00 [15:24:21]Write to MH i2c: E2 08 00 F3 64 80 13 00 00 00 00 00 00 D3 [15:24:21]Write i2c OK [15:24:21]MH_I2C_Read... [15:24:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:24:22]Read from MH i2c: E2 [15:24:22]MH_I2C_Read... [15:24:22]Read from MH i2c: E2 62 00 [15:24:22]MH_I2C_Read... [15:24:22]OFD Sender: No OFD packet to send [15:24:22]Read from MH i2c: E2 62 00 F3 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 D7 63 02 00 0E 04 04 00 19 02 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 72 [15:24:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 D7 63 02 00 0E 04 04 00 19 02 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 [15:24:22]wFMCommunicate OK [15:24:22]SAM_PROTO_GetFieldsCounters done [15:24:22]requested_item shift.num is exist - process it [15:24:22]requested_item shift.opened is exist - process it [15:24:22]req_shift_opened [15:24:22]FM_GetShiftState [15:24:22]SAM_PROTO_GetShiftState [15:24:22]wFMCommunicate request_size=4 [15:24:22]MH_SAM_APDU [15:24:22]CAPDU: 80 13 01 00 [15:24:22]Write to MH i2c: E2 08 00 F4 64 80 13 01 00 00 00 00 00 D5 [15:24:22]Write i2c OK [15:24:22]MH_I2C_Read... [15:24:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:24:22]Read from MH i2c: E2 [15:24:22]MH_I2C_Read... [15:24:22]Read from MH i2c: E2 0E 00 [15:24:22]MH_I2C_Read... [15:24:22]Read from MH i2c: E2 0E 00 F4 64 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 A2 [15:24:22]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [15:24:22]wFMCommunicate OK [15:24:22]SAM_PROTO_GetShiftState done [15:24:22]FM_GetShiftState done [15:24:22]req_shift_opened done [15:24:22]requested_item shift.open_date is exist - process it [15:24:22]req_shift_open_date [15:24:22]req_shift_open_date done [15:24:22]produce_requested_data done [15:24:22]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156631,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [15:24:22]process_action_free close_receipt [15:24:22]json_value_free [15:24:22]json_value_free done [15:24:22]process_json_proto returns [15:24:22]Send response to host [15:24:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156631,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [15:24:22]free response buf [15:24:22]execute_script done [15:24:22]execute_script returns [15:24:22]free content buf [15:24:22]Sock 9.Close socket [15:24:22]Sock 9.Thread stoped [15:24:25]accept exits with 10 [15:24:25]New connection [15:24:25]New thread 3066834276 created [15:24:25]Thread 3066977636 joined [15:24:25]Waiting for new connection... [15:24:25] Sock 10.Parse request [15:24:25]Sock 10.Check first char [15:24:25]Sock 10.First char is OK [15:24:25]request: POST /json_proto HTTP/1.0 [15:24:25]Method: POST [15:24:25]URL: /json_proto [15:24:25]Method is POST - this is cgi request [15:24:25]url: /json_proto [15:24:25]query_string will be loaded in cgi processing [15:24:25]execute_cgi json_proto POST (null) [15:24:25]execute_cgi path=json_proto method=POST [15:24:25]POST find Content-Length [15:24:25]Host: 172.17.63.3:8080 [15:24:25]Content-Length: 676 [15:24:25]Content-Type: application/json [15:24:25] [15:24:25]POST finish read [15:24:25]Found Content-Length = 676 [15:24:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99446", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 9.760, "sum" : 652.94, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 652.00, "payments": [ { "type": 0, "sum" : 652.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:24:25]execute_script... [15:24: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)99446", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 9.760, "sum" : 652.94, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 652.00, "payments": [ { "type": 0, "sum" : 652.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:24:25]POST & json_proto [15:24:25]process_json_proto [15:24:25]json parsed OK: [15:24:25]protocol is kg_v1.0 [15:24:25]action value=close_receipt [15:24:25]process_action close_receipt [15:24:25]cmd_close_receipt [15:24:25]MH_GetDate [15:24:25]Write to MH i2c: F0 00 00 F5 64 48 [15:24:25]Write i2c OK [15:24:25]MH_I2C_Read... [15:24:25]Read from MH i2c: F0 [15:24:25]MH_I2C_Read... [15:24:25]Read from MH i2c: F0 09 00 [15:24:25]MH_I2C_Read... [15:24:25]Read from MH i2c: F0 09 00 F5 64 00 2F 5B 1E 67 50 D1 6C 64 51 [15:24:25]GetLastDocTimeStamp 1730042665 [15:24:25]current date 1730042671 [15:24:25]FM_GetShiftState [15:24:25]SAM_PROTO_GetShiftState [15:24:25]wFMCommunicate request_size=4 [15:24:25]MH_SAM_APDU [15:24:25]CAPDU: 80 13 01 00 [15:24:25]Write to MH i2c: E2 08 00 F6 64 80 13 01 00 00 00 00 00 D7 [15:24:25]Write i2c OK [15:24:25]MH_I2C_Read... [15:24:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:24:25]Read from MH i2c: E2 [15:24:25]MH_I2C_Read... [15:24:25]Read from MH i2c: E2 0E 00 [15:24:25]MH_I2C_Read... [15:24:25]Read from MH i2c: E2 0E 00 F6 64 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 A4 [15:24:25]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [15:24:25]wFMCommunicate OK [15:24:25]SAM_PROTO_GetShiftState done [15:24:25]FM_GetShiftState done [15:24:25]opened in 1729989044 [15:24:25]opened+sec_in_day 1730075444 [15:24:25]quantity*price = 65294 [15:24:25]sum+1 = 65295 [15:24:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.94 ИТОГО: 652.00 Внесено: 700.00 СДАЧА: 48.00 НСП 1% : 5.78 НДС 12% : 69.34 Наличными: 652.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 183 27.10.2024 15:24 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156632 ФПД: 253230213207183 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T152431&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156632&fm=253230213207183&tin=02508201610067®Number=0000000000091693&sum=65200 [15:24:26]StoreToDocumentArchive [15:24:26]shift 537 fd 156632 [15:24:26]save to /storage/0537/doc_00156632 [15:24:26]save last doc name /storage/0537/doc_00156632 to /storage/kkm_last_doc_name [15:24:26]save OK [15:24:26]Clear old archive folders... [15:24:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:24:26]tlvbuf is 016F8360 [15:24:26]SAM_PROTO_ClearQueue [15:24:26]wFMCommunicate request_size=4 [15:24:26]MH_SAM_APDU [15:24:26]CAPDU: 80 09 00 00 [15:24:26]Write to MH i2c: E2 08 00 03 65 80 09 00 00 00 00 00 00 DA [15:24:26]Write i2c OK [15:24:26]MH_I2C_Read... [15:24:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:24:26]Read from MH i2c: E2 [15:24:26]MH_I2C_Read... [15:24:26]Read from MH i2c: E2 03 00 [15:24:26]MH_I2C_Read... [15:24:26]Read from MH i2c: E2 03 00 03 65 00 90 00 DC [15:24:26]RAPDU: 90 00 [15:24:26]wFMCommunicate OK [15:24:26]SAM_PROTO_ClearQueue done [15:24:26]KKMCreateOFDPacket [15:24:26]OFDProtocolAddRootSTLVToBuf [15:24:26]FM_MakeSignedData [15:24:26]FM_MakeSignedData [15:24:26]SAM_PROTO_SignData [15:24:26]wFMCommunicate request_size=4 [15:24:26]MH_SAM_APDU [15:24:26]CAPDU: 80 0D 01 02 [15:24:26]Write to MH i2c: E2 08 00 04 65 80 0D 01 02 00 00 00 00 E2 [15:24:26]Write i2c OK [15:24:26]MH_I2C_Read... [15:24:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:24:26]Read from MH i2c: E2 [15:24:26]MH_I2C_Read... [15:24:26]Read from MH i2c: E2 03 00 [15:24:26]MH_I2C_Read... [15:24:26]Read from MH i2c: E2 03 00 04 65 00 90 00 DD [15:24:26]RAPDU: 90 00 [15:24:26]wFMCommunicate OK [15:24:26]wFMCommunicate request_size=255 [15:24:26]MH_SAM_APDU [15:24:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 26 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0E FF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 1B 00 00 00 00 07 04 06 00 B0 FE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 2F 5B 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D8 63 02 00 35 04 06 00 E6 [15:24:26]Write to MH i2c: E2 02 01 05 65 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 26 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0E FF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 1B 00 00 00 00 07 04 06 00 B0 FE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 2F 5B 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D8 63 02 00 35 04 06 00 E6 00 00 55 [15:24:26]Write i2c OK [15:24:26]MH_I2C_Read... [15:24:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:24:27]Read from MH i2c: E2 [15:24:27]MH_I2C_Read... [15:24:27]Read from MH i2c: E2 03 00 [15:24:27]MH_I2C_Read... [15:24:27]Read from MH i2c: E2 03 00 05 65 00 90 00 DE [15:24:27]RAPDU: 90 00 [15:24:27]wFMCommunicate OK [15:24:27]wFMCommunicate request_size=10 [15:24:27]MH_SAM_APDU [15:24:27]CAPDU: 80 0D 02 02 05 4F C0 E7 94 8F [15:24:27]Write to MH i2c: E2 0D 00 06 65 80 0D 02 02 05 00 4F C0 E7 94 8F 00 00 08 [15:24:27]OFD Sender: No OFD packet to send [15:24:27]Write i2c OK [15:24:27]MH_I2C_Read... [15:24:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:24:27]Read from MH i2c: E2 [15:24:27]MH_I2C_Read... [15:24:27]Read from MH i2c: E2 03 00 [15:24:27]MH_I2C_Read... [15:24:27]Read from MH i2c: E2 03 00 06 65 00 90 00 DF [15:24:27]RAPDU: 90 00 [15:24:27]wFMCommunicate OK [15:24:27]wFMCommunicate request_size=4 [15:24:27]MH_SAM_APDU [15:24:27]CAPDU: 80 0D 03 02 [15:24:27]Write to MH i2c: E2 08 00 07 65 80 0D 03 02 00 00 00 00 E7 [15:24:27]Write i2c OK [15:24:27]MH_I2C_Read... [15:24:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:24:27]Read from MH i2c: E2 [15:24:27]MH_I2C_Read... [15:24:27]Read from MH i2c: E2 0B 00 [15:24:27]MH_I2C_Read... [15:24:27]Read from MH i2c: E2 0B 00 07 65 00 33 C6 8B 67 65 B5 8A 65 90 00 DC [15:24:27]RAPDU: 33 C6 8B 67 65 B5 8A 65 90 00 [15:24:27]wFMCommunicate OK [15:24:27]SAM_PROTO_SignData done [15:24:27]FM_MakeSignedData done [15:24:27]CreateOFDProtocolMessage [15:24:27]wFMCommunicate request_size=4 [15:24:27]MH_SAM_APDU [15:24:27]CAPDU: 80 11 00 00 [15:24:27]Write to MH i2c: E2 08 00 08 65 80 11 00 00 00 00 00 00 E7 [15:24:27]Write i2c OK [15:24:27]MH_I2C_Read... [15:24:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:24:27]Read from MH i2c: E2 [15:24:27]MH_I2C_Read... [15:24:27]Read from MH i2c: E2 17 00 [15:24:27]MH_I2C_Read... [15:24:27]Read from MH i2c: E2 17 00 08 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 3C [15:24:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:24:27]wFMCommunicate OK [15:24:27]CreateOFDProtocolMessage done [15:24:27]OFDSenderStorePacket 156632 [15:24:27]StoreOFDPacket docnum=156632 [15:24:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 2E 62 07 01 4F C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 26 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0E FF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 1B 00 00 00 00 07 04 06 00 B0 FE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 2F 5B 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D8 63 02 00 35 04 06 00 E6 4F C0 E7 94 8F 33 C6 8B 67 65 B5 8A 65 [15:24:27]CheckFolder [15:24:27]dirname=/storage/ofd_packets [15:24:27]CheckFolder done [15:24:27]ProducePacketName [15:24:27]name=ofd_packets/00156632 [15:24:27]NVStorageSaveData ofd_packets/00156632 [15:24:27]File name is /storage/ofd_packets/00156632 [15:24:27]Write 301 bytes [15:24:27]NVStorageSaveData done [15:24:27]OFDSenderStorePacket done [15:24:27]KKMCreateOFDPacket done [15:24:27]NVStorageSaveData kkm_last_timestamp [15:24:27]File name is /storage/kkm_last_timestamp [15:24:27]Write 4 bytes [15:24:27]NVStorageSaveData done [15:24:27]ExternCall_PrintAddStr [15:24:27]wPrintStart [15:24:27]Write to MH i2c: 01 00 00 09 65 6E [15:24:27]Write i2c OK [15:24:27]MH_I2C_Read... [15:24:27]Read from MH i2c: 01 [15:24:27]MH_I2C_Read... [15:24:27]Read from MH i2c: 01 07 00 [15:24:27]MH_I2C_Read... [15:24:27]Read from MH i2c: 01 07 00 09 65 00 00 00 00 00 FF 0F 83 [15:24:27]RasterBufferAndPrint [15:24:27]line Счет N : (1)99446 [15:24:27]line ИНН: 02508201610067 [15:24:27]line Контрольно-Кассовый Чек [15:24:27]line ПРОДАЖА [15:24:27]line ТРК (МРК, ГНК) : 11 [15:24:27]line Товар: 2710124130 [15:24:27]line Аи-92-К-5 [15:24:27]line 9.760 * 66.90 [15:24:27]line = 652.94 [15:24:27]line НДС 12% НСП 1% [15:24:27]line > о реализуемом товаре [15:24:27]line ОКРУГЛЕНИЕ: -0.94 [15:24:27]line ИТОГО: 652.00 [15:24:27]line Внесено: 700.00 [15:24:27]line СДАЧА: 48.00 [15:24:27]line НСП 1% : 5.78 [15:24:27]line НДС 12% : 69.34 [15:24:27]line Наличными: 652.00 [15:24:27]line Безнал.: 0.00 [15:24:27]line Место: АЗС № 143 "Партнер Нефть" [15:24:27]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [15:24:27]line СНО: Общий режим [15:24:27]line Чек 183 27.10.2024 15:24 [15:24:27]line Смена: 537 ФФД: 1.0 [15:24:27]line ЗНМ: 0300000096 [15:24:27]line РНМ: 0000000000091693 [15:24:27]line Версия ККМ: 001 [15:24:27]line ФМ: 0000000000871792 [15:24:27]line ФД: 156632 [15:24:27]line ФПД: 253230213207183 [15:24:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T152431&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156632&fm=253230213207183&tin=02508201610067®Number=0000000000091693&sum=65200 [15:24:27]written 0, free lines is 4095 [15:24:27]OFD Sender: Processing packet 156632 [packets to send 31, broken 30] [15:24:27]ProducePacketName [15:24:27]name=ofd_packets/00156632 [15:24:27]OFD Sender: To server: pG, [15:24:27]CommunicateWithHost lk.salyk.kg:30040 [15:24:27]ConnectInit lk.salyk.kg [15:24:27]Connected sock=9 [15:24:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 2E 62 07 01 4F C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 26 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0E FF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 FE 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 1B 00 00 00 00 07 04 06 00 B0 FE 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 2F 5B 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D8 63 02 00 35 04 06 00 E6 4F C0 E7 94 8F 33 C6 8B 67 65 B5 8A 65 [15:24:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 23 60 47 00 91 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 31 37 39 32 10 04 04 00 D8 63 02 00 F4 03 04 00 9E 00 1E 67 B6 04 01 00 00 43 E8 D3 B0 CD EA BA F7 [15:24:27]CommunicateWithHost err = 0 [15:24:27]CheckOFDResponse [15:24:27]1017 (14) - 77093643461234 [15:24:27]1041 (16) - 0000000000871792 [15:24:27]1040 (4) - 156632 [15:24:27]1012 (4) - 27.10.2024 08:58 [15:24:27]1206 (1) - 0 [15:24:27]OFD Sender: Remove packet 156632 [15:24:27]ProducePacketName [15:24:27]name=ofd_packets/00156632 [15:24:27]NVStorageDeleteData [15:24:27]Write to MH i2c: 01 00 00 34 65 99 [15:24:27]Write i2c OK [15:24:27]MH_I2C_Read... [15:24:27]Read from MH i2c: 01 [15:24:27]MH_I2C_Read... [15:24:27]Read from MH i2c: 01 07 00 [15:24:27]MH_I2C_Read... [15:24:27]Read from MH i2c: 01 07 00 34 65 00 00 00 00 00 F6 0C A2 [15:24:27]RasterBufferAndPrint [15:24:27]line [15:24:27]line [15:24:27]line [15:24:27]line [15:24:27]line [15:24:27]written 0, free lines is 3331 [15:24:27]process_action close_receipt done [15:24:27]requested_data is exist [15:24:27]produce_requested_data [15:24:27]requested_item fm.sn is exist - process it [15:24:27]wFMCommunicate request_size=4 [15:24:27]MH_SAM_APDU [15:24:27]CAPDU: 80 11 00 00 [15:24:27]Write to MH i2c: E2 08 00 3B 65 80 11 00 00 00 00 00 00 1A [15:24:27]Write i2c OK [15:24:27]MH_I2C_Read... [15:24:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:24:27]Read from MH i2c: E2 [15:24:27]MH_I2C_Read... [15:24:27]Read from MH i2c: E2 17 00 [15:24:27]MH_I2C_Read... [15:24:27]Read from MH i2c: E2 17 00 3B 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 6F [15:24:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:24:27]wFMCommunicate OK [15:24:27]requested_item fd.num is exist - process it [15:24:27]SAM_PROTO_GetFieldsCounters [15:24:27]wFMCommunicate request_size=4 [15:24:27]MH_SAM_APDU [15:24:27]CAPDU: 80 13 00 00 [15:24:27]Write to MH i2c: E2 08 00 3C 65 80 13 00 00 00 00 00 00 1D [15:24:27]Write i2c OK [15:24:27]MH_I2C_Read... [15:24:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:24:27]Read from MH i2c: E2 [15:24:27]MH_I2C_Read... [15:24:27]Read from MH i2c: E2 62 00 [15:24:27]MH_I2C_Read... [15:24:27]Read from MH i2c: E2 62 00 3C 65 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 D8 63 02 00 0E 04 04 00 19 02 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 C0 [15:24:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 D8 63 02 00 0E 04 04 00 19 02 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 [15:24:28]wFMCommunicate OK [15:24:28]SAM_PROTO_GetFieldsCounters done [15:24:28]requested_item shift.num is exist - process it [15:24:28]requested_item shift.opened is exist - process it [15:24:28]req_shift_opened [15:24:28]FM_GetShiftState [15:24:28]SAM_PROTO_GetShiftState [15:24:28]wFMCommunicate request_size=4 [15:24:28]MH_SAM_APDU [15:24:28]CAPDU: 80 13 01 00 [15:24:28]Write to MH i2c: E2 08 00 3D 65 80 13 01 00 00 00 00 00 1F [15:24:28]Write i2c OK [15:24:28]MH_I2C_Read... [15:24:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:24:28]Read from MH i2c: E2 [15:24:28]MH_I2C_Read... [15:24:28]Read from MH i2c: E2 0E 00 [15:24:28]MH_I2C_Read... [15:24:28]Read from MH i2c: E2 0E 00 3D 65 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 EC [15:24:28]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [15:24:28]wFMCommunicate OK [15:24:28]SAM_PROTO_GetShiftState done [15:24:28]FM_GetShiftState done [15:24:28]req_shift_opened done [15:24:28]requested_item shift.open_date is exist - process it [15:24:28]req_shift_open_date [15:24:28]req_shift_open_date done [15:24:28]produce_requested_data done [15:24:28]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156632,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [15:24:28]process_action_free close_receipt [15:24:28]json_value_free [15:24:28]json_value_free done [15:24:28]process_json_proto returns [15:24:28]Send response to host [15:24:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156632,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [15:24:28]free response buf [15:24:28]execute_script done [15:24:28]execute_script returns [15:24:28]free content buf [15:24:28]Sock 10.Close socket [15:24:28]Sock 10.Thread stoped [15:24:28]OFD Sender: No OFD packet to send [15:24:33]OFD Sender: No OFD packet to send [15:24:38]OFD Sender: No OFD packet to send [15:24:43]OFD Sender: No OFD packet to send [15:24:48]OFD Sender: No OFD packet to send [15:24:53]OFD Sender: No OFD packet to send [15:24:54]accept exits with 8 [15:24:54]New connection [15:24:54]New thread 3066977636 created [15:24:54]Thread 3066834276 joined [15:24:54]Waiting for new connection... [15:24:54] Sock 8.Parse request [15:24:54]Sock 8.Check first char [15:24:54]Sock 8.First char is OK [15:24:54]request: POST /json_proto HTTP/1.0 [15:24:54]Method: POST [15:24:54]URL: /json_proto [15:24:54]Method is POST - this is cgi request [15:24:54]url: /json_proto [15:24:54]query_string will be loaded in cgi processing [15:24:54]execute_cgi json_proto POST (null) [15:24:54]execute_cgi path=json_proto method=POST [15:24:54]POST find Content-Length [15:24:54]Host: 172.17.63.3:8080 [15:24:54]Content-Length: 676 [15:24:54]Content-Type: application/json [15:24:54] [15:24:54]POST finish read [15:24:54]Found Content-Length = 676 [15:24:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99447", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:24:54]execute_script... [15:24:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99447", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:24:54]POST & json_proto [15:24:54]process_json_proto [15:24:54]json parsed OK: [15:24:54]protocol is kg_v1.0 [15:24:54]action value=close_receipt [15:24:54]process_action close_receipt [15:24:54]cmd_close_receipt [15:24:54]MH_GetDate [15:24:54]Write to MH i2c: F0 00 00 3E 65 92 [15:24:54]Write i2c OK [15:24:54]MH_I2C_Read... [15:24:54]Read from MH i2c: F0 [15:24:54]MH_I2C_Read... [15:24:54]Read from MH i2c: F0 09 00 [15:24:54]MH_I2C_Read... [15:24:54]Read from MH i2c: F0 09 00 3E 65 00 4C 5B 1E 67 50 D1 6C 64 B8 [15:24:54]GetLastDocTimeStamp 1730042671 [15:24:54]current date 1730042700 [15:24:54]FM_GetShiftState [15:24:54]SAM_PROTO_GetShiftState [15:24:54]wFMCommunicate request_size=4 [15:24:54]MH_SAM_APDU [15:24:54]CAPDU: 80 13 01 00 [15:24:54]Write to MH i2c: E2 08 00 3F 65 80 13 01 00 00 00 00 00 21 [15:24:54]Write i2c OK [15:24:54]MH_I2C_Read... [15:24:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:24:54]Read from MH i2c: E2 [15:24:54]MH_I2C_Read... [15:24:54]Read from MH i2c: E2 0E 00 [15:24:54]MH_I2C_Read... [15:24:54]Read from MH i2c: E2 0E 00 3F 65 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 EE [15:24:54]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [15:24:54]wFMCommunicate OK [15:24:54]SAM_PROTO_GetShiftState done [15:24:54]FM_GetShiftState done [15:24:54]opened in 1729989044 [15:24:54]opened+sec_in_day 1730075444 [15:24:54]quantity*price = 40006 [15:24:54]sum+1 = 40007 [15:24:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 184 27.10.2024 15:25 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156633 ФПД: 223292788592136 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T152500&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156633&fm=223292788592136&tin=02508201610067®Number=0000000000091693&sum=40000 [15:24:55]StoreToDocumentArchive [15:24:55]shift 537 fd 156633 [15:24:55]save to /storage/0537/doc_00156633 [15:24:55]save last doc name /storage/0537/doc_00156633 to /storage/kkm_last_doc_name [15:24:55]save OK [15:24:55]Clear old archive folders... [15:24:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:24:55]tlvbuf is 018D6FB0 [15:24:55]SAM_PROTO_ClearQueue [15:24:55]wFMCommunicate request_size=4 [15:24:55]MH_SAM_APDU [15:24:55]CAPDU: 80 09 00 00 [15:24:55]Write to MH i2c: E2 08 00 4C 65 80 09 00 00 00 00 00 00 23 [15:24:55]Write i2c OK [15:24:55]MH_I2C_Read... [15:24:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:24:55]Read from MH i2c: E2 [15:24:55]MH_I2C_Read... [15:24:55]Read from MH i2c: E2 03 00 [15:24:55]MH_I2C_Read... [15:24:55]Read from MH i2c: E2 03 00 4C 65 00 90 00 25 [15:24:55]RAPDU: 90 00 [15:24:55]wFMCommunicate OK [15:24:55]SAM_PROTO_ClearQueue done [15:24:55]KKMCreateOFDPacket [15:24:55]OFDProtocolAddRootSTLVToBuf [15:24:55]FM_MakeSignedData [15:24:55]FM_MakeSignedData [15:24:55]SAM_PROTO_SignData [15:24:55]wFMCommunicate request_size=4 [15:24:55]MH_SAM_APDU [15:24:55]CAPDU: 80 0D 01 02 [15:24:55]Write to MH i2c: E2 08 00 4D 65 80 0D 01 02 00 00 00 00 2B [15:24:55]Write i2c OK [15:24:55]MH_I2C_Read... [15:24:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:24:55]Read from MH i2c: E2 [15:24:55]MH_I2C_Read... [15:24:55]Read from MH i2c: E2 03 00 [15:24:55]MH_I2C_Read... [15:24:55]Read from MH i2c: E2 03 00 4D 65 00 90 00 26 [15:24:55]RAPDU: 90 00 [15:24:55]wFMCommunicate OK [15:24:55]wFMCommunicate request_size=255 [15:24:55]MH_SAM_APDU [15:24: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 4C 5B 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D9 63 02 00 35 04 06 00 CB [15:24:55]Write to MH i2c: E2 02 01 4E 65 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 4C 5B 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D9 63 02 00 35 04 06 00 CB 00 00 96 [15:24:55]Write i2c OK [15:24:55]MH_I2C_Read... [15:24:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:24:56]Read from MH i2c: E2 [15:24:56]MH_I2C_Read... [15:24:56]Read from MH i2c: E2 03 00 [15:24:56]MH_I2C_Read... [15:24:56]Read from MH i2c: E2 03 00 4E 65 00 90 00 27 [15:24:56]RAPDU: 90 00 [15:24:56]wFMCommunicate OK [15:24:56]wFMCommunicate request_size=10 [15:24:56]MH_SAM_APDU [15:24:56]CAPDU: 80 0D 02 02 05 15 67 58 4E 08 [15:24:56]Write to MH i2c: E2 0D 00 4F 65 80 0D 02 02 05 00 15 67 58 4E 08 00 00 62 [15:24:56]Write i2c OK [15:24:56]MH_I2C_Read... [15:24:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:24:56]Read from MH i2c: E2 [15:24:56]MH_I2C_Read... [15:24:56]Read from MH i2c: E2 03 00 [15:24:56]MH_I2C_Read... [15:24:56]Read from MH i2c: E2 03 00 4F 65 00 90 00 28 [15:24:56]RAPDU: 90 00 [15:24:56]wFMCommunicate OK [15:24:56]wFMCommunicate request_size=4 [15:24:56]MH_SAM_APDU [15:24:56]CAPDU: 80 0D 03 02 [15:24:56]Write to MH i2c: E2 08 00 50 65 80 0D 03 02 00 00 00 00 30 [15:24:56]Write i2c OK [15:24:56]MH_I2C_Read... [15:24:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:24:56]Read from MH i2c: E2 [15:24:56]MH_I2C_Read... [15:24:56]Read from MH i2c: E2 0B 00 [15:24:56]MH_I2C_Read... [15:24:56]Read from MH i2c: E2 0B 00 50 65 00 5B 67 56 84 2E CF A5 14 90 00 83 [15:24:56]RAPDU: 5B 67 56 84 2E CF A5 14 90 00 [15:24:56]wFMCommunicate OK [15:24:56]SAM_PROTO_SignData done [15:24:56]FM_MakeSignedData done [15:24:56]CreateOFDProtocolMessage [15:24:56]wFMCommunicate request_size=4 [15:24:56]MH_SAM_APDU [15:24:56]CAPDU: 80 11 00 00 [15:24:56]Write to MH i2c: E2 08 00 51 65 80 11 00 00 00 00 00 00 30 [15:24:56]Write i2c OK [15:24:56]MH_I2C_Read... [15:24:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:24:56]Read from MH i2c: E2 [15:24:56]MH_I2C_Read... [15:24:56]Read from MH i2c: E2 17 00 [15:24:56]MH_I2C_Read... [15:24:56]Read from MH i2c: E2 17 00 51 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 85 [15:24:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:24:56]wFMCommunicate OK [15:24:56]CreateOFDProtocolMessage done [15:24:56]OFDSenderStorePacket 156633 [15:24:56]StoreOFDPacket docnum=156633 [15:24:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 EE DF 07 01 6A 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 4C 5B 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D9 63 02 00 35 04 06 00 CB 15 67 58 4E 08 5B 67 56 84 2E CF A5 14 [15:24:56]CheckFolder [15:24:56]dirname=/storage/ofd_packets [15:24:56]CheckFolder done [15:24:56]ProducePacketName [15:24:56]name=ofd_packets/00156633 [15:24:56]NVStorageSaveData ofd_packets/00156633 [15:24:56]File name is /storage/ofd_packets/00156633 [15:24:56]Write 301 bytes [15:24:56]NVStorageSaveData done [15:24:56]OFDSenderStorePacket done [15:24:56]KKMCreateOFDPacket done [15:24:56]NVStorageSaveData kkm_last_timestamp [15:24:56]File name is /storage/kkm_last_timestamp [15:24:56]Write 4 bytes [15:24:56]NVStorageSaveData done [15:24:56]ExternCall_PrintAddStr [15:24:56]wPrintStart [15:24:56]Write to MH i2c: 01 00 00 52 65 B7 [15:24:56]Write i2c OK [15:24:56]MH_I2C_Read... [15:24:56]Read from MH i2c: 01 [15:24:56]MH_I2C_Read... [15:24:56]Read from MH i2c: 01 07 00 [15:24:56]MH_I2C_Read... [15:24:56]Read from MH i2c: 01 07 00 52 65 00 00 00 00 00 FF 0F CC [15:24:56]RasterBufferAndPrint [15:24:56]line Счет N : (1)99447 [15:24:56]line ИНН: 02508201610067 [15:24:56]line Контрольно-Кассовый Чек [15:24:56]line ПРОДАЖА [15:24:56]line ТРК (МРК, ГНК) : 11 [15:24:56]line Товар: 2710124130 [15:24:56]line Аи-92-К-5 [15:24:56]line 5.980 * 66.90 [15:24:56]line = 400.06 [15:24:56]line НДС 12% НСП 1% [15:24:56]line > о реализуемом товаре [15:24:56]line ОКРУГЛЕНИЕ: -0.06 [15:24:56]line ИТОГО: 400.00 [15:24:56]line Внесено: 400.00 [15:24:56]line СДАЧА: 0.00 [15:24:56]line НСП 1% : 3.54 [15:24:56]line НДС 12% : 42.48 [15:24:56]line Наличными: 400.00 [15:24:56]line Безнал.: 0.00 [15:24:56]line Место: АЗС № 143 "Партнер Нефть" [15:24:56]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [15:24:56]line СНО: Общий режим [15:24:56]line Чек 184 27.10.2024 15:25 [15:24:56]line Смена: 537 ФФД: 1.0 [15:24:56]line ЗНМ: 0300000096 [15:24:56]line РНМ: 0000000000091693 [15:24:56]line Версия ККМ: 001 [15:24:56]line ФМ: 0000000000871792 [15:24:56]line ФД: 156633 [15:24:56]line ФПД: 223292788592136 [15:24:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T152500&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156633&fm=223292788592136&tin=02508201610067®Number=0000000000091693&sum=40000 [15:24:56]OFD Sender: Processing packet 156633 [packets to send 31, broken 30] [15:24:56]ProducePacketName [15:24:56]name=ofd_packets/00156633 [15:24:56]OFD Sender: To server: pG, [15:24:56]CommunicateWithHost lk.salyk.kg:30040 [15:24:56]ConnectInit lk.salyk.kg [15:24:56]written 0, free lines is 4095 [15:24:56]Connected sock=10 [15:24:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 EE DF 07 01 6A 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 4C 5B 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D9 63 02 00 35 04 06 00 CB 15 67 58 4E 08 5B 67 56 84 2E CF A5 14 [15:24:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 9C E0 47 00 F3 F6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 D9 63 02 00 F4 03 04 00 BC 00 1E 67 B6 04 01 00 00 C1 D1 F2 F9 07 3D 5D 95 [15:24:57]CommunicateWithHost err = 0 [15:24:57]CheckOFDResponse [15:24:57]1017 (14) - 77093643461234 [15:24:57]1041 (16) - 0000000000871792 [15:24:57]1040 (4) - 156633 [15:24:57]1012 (4) - 27.10.2024 08:58 [15:24:57]1206 (1) - 0 [15:24:57]OFD Sender: Remove packet 156633 [15:24:57]ProducePacketName [15:24:57]name=ofd_packets/00156633 [15:24:57]NVStorageDeleteData [15:24:57]Write to MH i2c: 01 00 00 7D 65 E2 [15:24:57]Write i2c OK [15:24:57]MH_I2C_Read... [15:24:57]Read from MH i2c: 01 [15:24:57]MH_I2C_Read... [15:24:57]Read from MH i2c: 01 07 00 [15:24:57]MH_I2C_Read... [15:24:57]Read from MH i2c: 01 07 00 7D 65 00 00 00 00 00 F0 0C E5 [15:24:57]RasterBufferAndPrint [15:24:57]line [15:24:57]line [15:24:57]line [15:24:57]line [15:24:57]line [15:24:57]written 0, free lines is 3318 [15:24:57]process_action close_receipt done [15:24:57]requested_data is exist [15:24:57]produce_requested_data [15:24:57]requested_item fm.sn is exist - process it [15:24:57]wFMCommunicate request_size=4 [15:24:57]MH_SAM_APDU [15:24:57]CAPDU: 80 11 00 00 [15:24:57]Write to MH i2c: E2 08 00 84 65 80 11 00 00 00 00 00 00 63 [15:24:57]Write i2c OK [15:24:57]MH_I2C_Read... [15:24:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:24:57]Read from MH i2c: E2 [15:24:57]MH_I2C_Read... [15:24:57]Read from MH i2c: E2 17 00 [15:24:57]MH_I2C_Read... [15:24:57]Read from MH i2c: E2 17 00 84 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 B8 [15:24:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:24:57]wFMCommunicate OK [15:24:57]requested_item fd.num is exist - process it [15:24:57]SAM_PROTO_GetFieldsCounters [15:24:57]wFMCommunicate request_size=4 [15:24:57]MH_SAM_APDU [15:24:57]CAPDU: 80 13 00 00 [15:24:57]Write to MH i2c: E2 08 00 85 65 80 13 00 00 00 00 00 00 66 [15:24:57]Write i2c OK [15:24:57]MH_I2C_Read... [15:24:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:24:57]Read from MH i2c: E2 [15:24:57]MH_I2C_Read... [15:24:57]Read from MH i2c: E2 62 00 [15:24:57]MH_I2C_Read... [15:24:57]Read from MH i2c: E2 62 00 85 65 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 D9 63 02 00 0E 04 04 00 19 02 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 0D [15:24:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 D9 63 02 00 0E 04 04 00 19 02 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 [15:24:57]wFMCommunicate OK [15:24:57]SAM_PROTO_GetFieldsCounters done [15:24:57]requested_item shift.num is exist - process it [15:24:57]requested_item shift.opened is exist - process it [15:24:57]req_shift_opened [15:24:57]FM_GetShiftState [15:24:57]SAM_PROTO_GetShiftState [15:24:57]wFMCommunicate request_size=4 [15:24:57]MH_SAM_APDU [15:24:57]CAPDU: 80 13 01 00 [15:24:57]Write to MH i2c: E2 08 00 86 65 80 13 01 00 00 00 00 00 68 [15:24:57]Write i2c OK [15:24:57]MH_I2C_Read... [15:24:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:24:57]Read from MH i2c: E2 [15:24:57]MH_I2C_Read... [15:24:57]Read from MH i2c: E2 0E 00 [15:24:57]MH_I2C_Read... [15:24:57]Read from MH i2c: E2 0E 00 86 65 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 35 [15:24:57]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [15:24:57]wFMCommunicate OK [15:24:57]SAM_PROTO_GetShiftState done [15:24:57]FM_GetShiftState done [15:24:57]req_shift_opened done [15:24:57]requested_item shift.open_date is exist - process it [15:24:57]req_shift_open_date [15:24:57]req_shift_open_date done [15:24:57]produce_requested_data done [15:24:57]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156633,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [15:24:57]process_action_free close_receipt [15:24:57]json_value_free [15:24:57]json_value_free done [15:24:57]process_json_proto returns [15:24:57]Send response to host [15:24:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156633,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [15:24:57]free response buf [15:24:57]execute_script done [15:24:57]execute_script returns [15:24:57]free content buf [15:24:57]Sock 8.Close socket [15:24:57]Sock 8.Thread stoped [15:24:57]OFD Sender: No OFD packet to send [15:25:02]OFD Sender: No OFD packet to send [15:25:06]int [15:25:06]Write to MH i2c: 01 00 00 87 65 EC [15:25:06]*** FLAG_PRN_KEY set [15:25:06]Write i2c OK [15:25:06]MH_I2C_Read... [15:25:06]Read from MH i2c: 01 [15:25:06]MH_I2C_Read... [15:25:06]Read from MH i2c: 01 07 00 [15:25:06]MH_I2C_Read... [15:25:06]Read from MH i2c: 01 07 00 87 65 00 08 00 00 00 FF 0F 09 [15:25:06]state=0 [15:25:06]Key pressed [15:25:06]Feed [15:25:06]Write to MH i2c: D8 00 00 88 65 C4 [15:25:06]Write i2c OK [15:25:06]MH_I2C_Read... [15:25:06]Read from MH i2c: D8 [15:25:06]MH_I2C_Read... [15:25:06]Read from MH i2c: D8 01 00 [15:25:06]MH_I2C_Read... [15:25:06]Read from MH i2c: D8 01 00 88 65 00 C5 [15:25:06]int [15:25:06]Write to MH i2c: 01 00 00 89 65 EE [15:25:06]Write i2c OK [15:25:06]MH_I2C_Read... [15:25:06]Read from MH i2c: 01 [15:25:06]MH_I2C_Read... [15:25:06]Read from MH i2c: 01 07 00 [15:25:06]MH_I2C_Read... [15:25:06]Read from MH i2c: 01 07 00 89 65 00 48 00 00 00 3D 00 7A [15:25:06]state=2 [15:25:06]Key pressed [15:25:06]int [15:25:06]Write to MH i2c: 01 00 00 8A 65 EF [15:25:06]*** FLAG_PRN_KEY reset [15:25:06]Write i2c OK [15:25:06]MH_I2C_Read... [15:25:06]Read from MH i2c: 01 [15:25:06]MH_I2C_Read... [15:25:06]Read from MH i2c: 01 07 00 [15:25:06]MH_I2C_Read... [15:25:06]Read from MH i2c: 01 07 00 8A 65 00 00 00 00 00 FB 0F 00 [15:25:06]state=2 [15:25:06]Stop feed [15:25:07]OFD Sender: No OFD packet to send [15:25:12]OFD Sender: No OFD packet to send [15:25:17]OFD Sender: No OFD packet to send [15:25:22]OFD Sender: No OFD packet to send [15:25:27]OFD Sender: No OFD packet to send [15:25:32]OFD Sender: No OFD packet to send [15:25:37]OFD Sender: No OFD packet to send [15:25:42]OFD Sender: No OFD packet to send [15:25:47]OFD Sender: No OFD packet to send [15:25:52]OFD Sender: No OFD packet to send [15:25:57]OFD Sender: No OFD packet to send [15:26:02]OFD Sender: No OFD packet to send [15:26:06]accept exits with 9 [15:26:06]New connection [15:26:06]New thread 3066834276 created [15:26:06]Thread 3066977636 joined [15:26:06]Waiting for new connection... [15:26:06] Sock 9.Parse request [15:26:06]Sock 9.Check first char [15:26:06]Sock 9.First char is OK [15:26:06]request: POST /json_proto HTTP/1.0 [15:26:06]Method: POST [15:26:06]URL: /json_proto [15:26:06]Method is POST - this is cgi request [15:26:06]url: /json_proto [15:26:06]query_string will be loaded in cgi processing [15:26:06]execute_cgi json_proto POST (null) [15:26:06]execute_cgi path=json_proto method=POST [15:26:06]POST find Content-Length [15:26:06]Host: 172.17.63.3:8080 [15:26:06]Content-Length: 681 [15:26:06]Content-Type: application/json [15:26:06] [15:26:06]POST finish read [15:26:06]Found Content-Length = 681 [15:26:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99448", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:26:06]execute_script... [15:26: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)99448", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:26:06]POST & json_proto [15:26:06]process_json_proto [15:26:06]json parsed OK: [15:26:06]protocol is kg_v1.0 [15:26:06]action value=close_receipt [15:26:06]process_action close_receipt [15:26:06]cmd_close_receipt [15:26:06]MH_GetDate [15:26:06]Write to MH i2c: F0 00 00 8B 65 DF [15:26:06]Write i2c OK [15:26:06]MH_I2C_Read... [15:26:06]Read from MH i2c: F0 [15:26:06]MH_I2C_Read... [15:26:06]Read from MH i2c: F0 09 00 [15:26:06]MH_I2C_Read... [15:26:06]Read from MH i2c: F0 09 00 8B 65 00 94 5B 1E 67 50 D1 6C 64 4D [15:26:06]GetLastDocTimeStamp 1730042700 [15:26:06]current date 1730042772 [15:26:06]FM_GetShiftState [15:26:06]SAM_PROTO_GetShiftState [15:26:06]wFMCommunicate request_size=4 [15:26:06]MH_SAM_APDU [15:26:06]CAPDU: 80 13 01 00 [15:26:06]Write to MH i2c: E2 08 00 8C 65 80 13 01 00 00 00 00 00 6E [15:26:06]Write i2c OK [15:26:06]MH_I2C_Read... [15:26:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:26:06]Read from MH i2c: E2 [15:26:06]MH_I2C_Read... [15:26:06]Read from MH i2c: E2 0E 00 [15:26:06]MH_I2C_Read... [15:26:06]Read from MH i2c: E2 0E 00 8C 65 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 3B [15:26:06]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [15:26:06]wFMCommunicate OK [15:26:06]SAM_PROTO_GetShiftState done [15:26:06]FM_GetShiftState done [15:26:06]opened in 1729989044 [15:26:06]opened+sec_in_day 1730075444 [15:26:06]quantity*price = 100015 [15:26:06]sum+1 = 100017 [15:26:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 185 27.10.2024 15:26 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156634 ФПД: 225281320694727 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T152613&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156634&fm=225281320694727&tin=02508201610067®Number=0000000000091693&sum=100000 [15:26:07]StoreToDocumentArchive [15:26:07]shift 537 fd 156634 [15:26:07]save to /storage/0537/doc_00156634 [15:26:07]save last doc name /storage/0537/doc_00156634 to /storage/kkm_last_doc_name [15:26:07]save OK [15:26:07]Clear old archive folders... [15:26:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:26:07]tlvbuf is 016E9F20 [15:26:07]SAM_PROTO_ClearQueue [15:26:07]wFMCommunicate request_size=4 [15:26:07]MH_SAM_APDU [15:26:07]CAPDU: 80 09 00 00 [15:26:07]Write to MH i2c: E2 08 00 99 65 80 09 00 00 00 00 00 00 70 [15:26:07]Write i2c OK [15:26:07]MH_I2C_Read... [15:26:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:26:07]Read from MH i2c: E2 [15:26:07]MH_I2C_Read... [15:26:07]Read from MH i2c: E2 03 00 [15:26:07]MH_I2C_Read... [15:26:07]Read from MH i2c: E2 03 00 99 65 00 90 00 72 [15:26:07]RAPDU: 90 00 [15:26:07]wFMCommunicate OK [15:26:07]SAM_PROTO_ClearQueue done [15:26:07]KKMCreateOFDPacket [15:26:07]OFDProtocolAddRootSTLVToBuf [15:26:07]FM_MakeSignedData [15:26:07]FM_MakeSignedData [15:26:07]SAM_PROTO_SignData [15:26:07]wFMCommunicate request_size=4 [15:26:07]MH_SAM_APDU [15:26:07]CAPDU: 80 0D 01 02 [15:26:07]Write to MH i2c: E2 08 00 9A 65 80 0D 01 02 00 00 00 00 78 [15:26:07]Write i2c OK [15:26:07]MH_I2C_Read... [15:26:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:26:07]Read from MH i2c: E2 [15:26:07]MH_I2C_Read... [15:26:07]Read from MH i2c: E2 03 00 [15:26:07]MH_I2C_Read... [15:26:07]Read from MH i2c: E2 03 00 9A 65 00 90 00 73 [15:26:07]RAPDU: 90 00 [15:26:07]wFMCommunicate OK [15:26:07]wFMCommunicate request_size=255 [15:26:07]MH_SAM_APDU [15:26: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 95 5B 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DA 63 02 00 35 04 06 00 CC [15:26:07]Write to MH i2c: E2 02 01 9B 65 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 95 5B 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DA 63 02 00 35 04 06 00 CC 00 00 5A [15:26:07]Write i2c OK [15:26:07]MH_I2C_Read... [15:26:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:26:08]Read from MH i2c: E2 [15:26:08]MH_I2C_Read... [15:26:08]Read from MH i2c: E2 03 00 [15:26:08]MH_I2C_Read... [15:26:08]Read from MH i2c: E2 03 00 9B 65 00 90 00 74 [15:26:08]RAPDU: 90 00 [15:26:08]wFMCommunicate OK [15:26:08]wFMCommunicate request_size=10 [15:26:08]MH_SAM_APDU [15:26:08]CAPDU: 80 0D 02 02 05 E4 65 18 33 C7 [15:26:08]Write to MH i2c: E2 0D 00 9C 65 80 0D 02 02 05 00 E4 65 18 33 C7 00 00 E0 [15:26:08]Write i2c OK [15:26:08]MH_I2C_Read... [15:26:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:26:08]Read from MH i2c: E2 [15:26:08]MH_I2C_Read... [15:26:08]Read from MH i2c: E2 03 00 [15:26:08]MH_I2C_Read... [15:26:08]Read from MH i2c: E2 03 00 9C 65 00 90 00 75 [15:26:08]RAPDU: 90 00 [15:26:08]wFMCommunicate OK [15:26:08]wFMCommunicate request_size=4 [15:26:08]MH_SAM_APDU [15:26:08]CAPDU: 80 0D 03 02 [15:26:08]Write to MH i2c: E2 08 00 9D 65 80 0D 03 02 00 00 00 00 7D [15:26:08]Write i2c OK [15:26:08]MH_I2C_Read... [15:26:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:26:08]Read from MH i2c: E2 [15:26:08]MH_I2C_Read... [15:26:08]Read from MH i2c: E2 0B 00 [15:26:08]MH_I2C_Read... [15:26:08]Read from MH i2c: E2 0B 00 9D 65 00 6F 76 9B EC 42 C8 E5 AD 90 00 86 [15:26:08]RAPDU: 6F 76 9B EC 42 C8 E5 AD 90 00 [15:26:08]wFMCommunicate OK [15:26:08]SAM_PROTO_SignData done [15:26:08]FM_MakeSignedData done [15:26:08]CreateOFDProtocolMessage [15:26:08]wFMCommunicate request_size=4 [15:26:08]MH_SAM_APDU [15:26:08]CAPDU: 80 11 00 00 [15:26:08]Write to MH i2c: E2 08 00 9E 65 80 11 00 00 00 00 00 00 7D [15:26:08]Write i2c OK [15:26:08]MH_I2C_Read... [15:26:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:26:08]Read from MH i2c: E2 [15:26:08]MH_I2C_Read... [15:26:08]Read from MH i2c: E2 17 00 [15:26:08]MH_I2C_Read... [15:26:08]Read from MH i2c: E2 17 00 9E 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 D2 [15:26:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:26:08]wFMCommunicate OK [15:26:08]CreateOFDProtocolMessage done [15:26:08]OFDSenderStorePacket 156634 [15:26:08]StoreOFDPacket docnum=156634 [15:26:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 A3 29 07 01 88 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 95 5B 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DA 63 02 00 35 04 06 00 CC E4 65 18 33 C7 6F 76 9B EC 42 C8 E5 AD [15:26:08]CheckFolder [15:26:08]dirname=/storage/ofd_packets [15:26:08]CheckFolder done [15:26:08]ProducePacketName [15:26:08]name=ofd_packets/00156634 [15:26:08]NVStorageSaveData ofd_packets/00156634 [15:26:08]File name is /storage/ofd_packets/00156634 [15:26:08]Write 301 bytes [15:26:08]NVStorageSaveData done [15:26:08]OFDSenderStorePacket done [15:26:08]KKMCreateOFDPacket done [15:26:08]NVStorageSaveData kkm_last_timestamp [15:26:08]File name is /storage/kkm_last_timestamp [15:26:08]Write 4 bytes [15:26:08]NVStorageSaveData done [15:26:08]ExternCall_PrintAddStr [15:26:08]wPrintStart [15:26:08]Write to MH i2c: 01 00 00 9F 65 04 [15:26:08]Write i2c OK [15:26:08]MH_I2C_Read... [15:26:08]Read from MH i2c: 01 [15:26:08]MH_I2C_Read... [15:26:08]Read from MH i2c: 01 07 00 [15:26:08]MH_I2C_Read... [15:26:08]Read from MH i2c: 01 07 00 9F 65 00 00 00 00 00 FF 0F 19 [15:26:08]RasterBufferAndPrint [15:26:08]line Счет N : (1)99448 [15:26:08]line ИНН: 02508201610067 [15:26:08]line Контрольно-Кассовый Чек [15:26:08]line ПРОДАЖА [15:26:08]line ТРК (МРК, ГНК) : 31 [15:26:08]line Товар: 2710124130 [15:26:08]line Аи-92-К-5 [15:26:08]line 14.950 * 66.90 [15:26:08]line = 1000.16 [15:26:08]line НДС 12% НСП 1% [15:26:08]line > о реализуемом товаре [15:26:08]line ОКРУГЛЕНИЕ: -0.16 [15:26:08]line ИТОГО: 1000.00 [15:26:08]line Внесено: 1000.00 [15:26:08]line СДАЧА: 0.00 [15:26:08]line НСП 1% : 8.85 [15:26:08]line НДС 12% : 106.21 [15:26:08]line Наличными: 1000.00 [15:26:08]line Безнал.: 0.00 [15:26:08]line Место: АЗС № 143 "Партнер Нефть" [15:26:08]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [15:26:08]line СНО: Общий режим [15:26:08]line Чек 185 27.10.2024 15:26 [15:26:08]line Смена: 537 ФФД: 1.0 [15:26:08]line ЗНМ: 0300000096 [15:26:08]line РНМ: 0000000000091693 [15:26:08]line Версия ККМ: 001 [15:26:08]line ФМ: 0000000000871792 [15:26:08]line ФД: 156634 [15:26:08]line ФПД: 225281320694727 [15:26:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T152613&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156634&fm=225281320694727&tin=02508201610067®Number=0000000000091693&sum=100000 [15:26:08]OFD Sender: Processing packet 156634 [packets to send 31, broken 30] [15:26:08]ProducePacketName [15:26:08]name=ofd_packets/00156634 [15:26:08]OFD Sender: To server: pG, [15:26:08]CommunicateWithHost lk.salyk.kg:30040 [15:26:08]ConnectInit lk.salyk.kg [15:26:08]written 0, free lines is 4095 [15:26:08]Connected sock=10 [15:26:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 A3 29 07 01 88 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 95 5B 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DA 63 02 00 35 04 06 00 CC E4 65 18 33 C7 6F 76 9B EC 42 C8 E5 AD [15:26:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 78 7A 47 00 1F 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 31 37 39 32 10 04 04 00 DA 63 02 00 F4 03 04 00 04 01 1E 67 B6 04 01 00 00 94 AF F6 2F BF 8E 52 C9 [15:26:09]CommunicateWithHost err = 0 [15:26:09]CheckOFDResponse [15:26:09]1017 (14) - 77093643461234 [15:26:09]1041 (16) - 0000000000871792 [15:26:09]1040 (4) - 156634 [15:26:09]1012 (4) - 27.10.2024 08:59 [15:26:09]1206 (1) - 0 [15:26:09]OFD Sender: Remove packet 156634 [15:26:09]ProducePacketName [15:26:09]name=ofd_packets/00156634 [15:26:09]NVStorageDeleteData [15:26:09]Write to MH i2c: 01 00 00 CA 65 2F [15:26:09]Write i2c OK [15:26:09]MH_I2C_Read... [15:26:09]Read from MH i2c: 01 [15:26:09]MH_I2C_Read... [15:26:09]Read from MH i2c: 01 07 00 [15:26:09]MH_I2C_Read... [15:26:09]Read from MH i2c: 01 07 00 CA 65 00 00 00 00 00 EC 0C 2E [15:26:09]RasterBufferAndPrint [15:26:09]line [15:26:09]line [15:26:09]line [15:26:09]line [15:26:09]line [15:26:09]written 0, free lines is 3314 [15:26:09]process_action close_receipt done [15:26:09]requested_data is exist [15:26:09]produce_requested_data [15:26:09]requested_item fm.sn is exist - process it [15:26:09]wFMCommunicate request_size=4 [15:26:09]MH_SAM_APDU [15:26:09]CAPDU: 80 11 00 00 [15:26:09]Write to MH i2c: E2 08 00 D1 65 80 11 00 00 00 00 00 00 B0 [15:26:09]Write i2c OK [15:26:09]MH_I2C_Read... [15:26:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:26:09]Read from MH i2c: E2 [15:26:09]MH_I2C_Read... [15:26:09]Read from MH i2c: E2 17 00 [15:26:09]MH_I2C_Read... [15:26:09]Read from MH i2c: E2 17 00 D1 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 05 [15:26:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:26:09]wFMCommunicate OK [15:26:09]requested_item fd.num is exist - process it [15:26:09]SAM_PROTO_GetFieldsCounters [15:26:09]wFMCommunicate request_size=4 [15:26:09]MH_SAM_APDU [15:26:09]CAPDU: 80 13 00 00 [15:26:09]Write to MH i2c: E2 08 00 D2 65 80 13 00 00 00 00 00 00 B3 [15:26:09]Write i2c OK [15:26:09]MH_I2C_Read... [15:26:09]Read from MH i2c: E2 [15:26:09]MH_I2C_Read... [15:26:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:26:09]Read from MH i2c: E2 62 00 [15:26:09]MH_I2C_Read... [15:26:09]Read from MH i2c: E2 62 00 D2 65 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 DA 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 5E [15:26:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 DA 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:26:09]wFMCommunicate OK [15:26:09]SAM_PROTO_GetFieldsCounters done [15:26:09]requested_item shift.num is exist - process it [15:26:09]requested_item shift.opened is exist - process it [15:26:09]req_shift_opened [15:26:09]FM_GetShiftState [15:26:09]SAM_PROTO_GetShiftState [15:26:09]wFMCommunicate request_size=4 [15:26:09]MH_SAM_APDU [15:26:09]CAPDU: 80 13 01 00 [15:26:09]Write to MH i2c: E2 08 00 D3 65 80 13 01 00 00 00 00 00 B5 [15:26:09]Write i2c OK [15:26:09]MH_I2C_Read... [15:26:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:26:09]Read from MH i2c: E2 [15:26:09]MH_I2C_Read... [15:26:09]Read from MH i2c: E2 0E 00 [15:26:09]MH_I2C_Read... [15:26:09]Read from MH i2c: E2 0E 00 D3 65 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 82 [15:26:09]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [15:26:09]wFMCommunicate OK [15:26:09]SAM_PROTO_GetShiftState done [15:26:09]FM_GetShiftState done [15:26:09]req_shift_opened done [15:26:09]requested_item shift.open_date is exist - process it [15:26:09]req_shift_open_date [15:26:09]req_shift_open_date done [15:26:09]produce_requested_data done [15:26:09]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156634,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [15:26:09]process_action_free close_receipt [15:26:09]json_value_free [15:26:09]json_value_free done [15:26:09]process_json_proto returns [15:26:09]Send response to host [15:26:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156634,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [15:26:09]free response buf [15:26:09]execute_script done [15:26:09]execute_script returns [15:26:09]free content buf [15:26:09]Sock 9.Close socket [15:26:09]Sock 9.Thread stoped [15:26:09]OFD Sender: No OFD packet to send [15:26:14]OFD Sender: No OFD packet to send [15:26:19]OFD Sender: No OFD packet to send [15:26:24]OFD Sender: No OFD packet to send [15:26:29]OFD Sender: No OFD packet to send [15:26:34]OFD Sender: No OFD packet to send [15:26:39]OFD Sender: No OFD packet to send [15:26:44]OFD Sender: No OFD packet to send [15:26:49]OFD Sender: No OFD packet to send [15:26:54]OFD Sender: No OFD packet to send [15:26:55]accept exits with 8 [15:26:55]New connection [15:26:55]New thread 3066977636 created [15:26:55]Thread 3066834276 joined [15:26:55]Waiting for new connection... [15:26:55] Sock 8.Parse request [15:26:55]Sock 8.Check first char [15:26:55]Sock 8.First char is OK [15:26:55]request: POST /json_proto HTTP/1.0 [15:26:55]Method: POST [15:26:55]URL: /json_proto [15:26:55]Method is POST - this is cgi request [15:26:55]url: /json_proto [15:26:55]query_string will be loaded in cgi processing [15:26:55]execute_cgi json_proto POST (null) [15:26:55]execute_cgi path=json_proto method=POST [15:26:55]POST find Content-Length [15:26:55]Host: 172.17.63.3:8080 [15:26:55]Content-Length: 765 [15:26:55]Content-Type: application/json [15:26:55] [15:26:55]POST finish read [15:26:55]Found Content-Length = 765 [15:26:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99449", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:26:55]execute_script... [15:26: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)99449", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:26:55]POST & json_proto [15:26:55]process_json_proto [15:26:55]json parsed OK: [15:26:55]protocol is kg_v1.0 [15:26:55]action value=close_receipt [15:26:55]process_action close_receipt [15:26:55]cmd_close_receipt [15:26:55]MH_GetDate [15:26:55]Write to MH i2c: F0 00 00 D4 65 28 [15:26:55]Write i2c OK [15:26:55]MH_I2C_Read... [15:26:55]Read from MH i2c: F0 [15:26:55]MH_I2C_Read... [15:26:55]Read from MH i2c: F0 09 00 [15:26:55]MH_I2C_Read... [15:26:55]Read from MH i2c: F0 09 00 D4 65 00 C6 5B 1E 67 50 D1 6C 64 C8 [15:26:55]GetLastDocTimeStamp 1730042773 [15:26:55]current date 1730042822 [15:26:55]FM_GetShiftState [15:26:55]SAM_PROTO_GetShiftState [15:26:55]wFMCommunicate request_size=4 [15:26:55]MH_SAM_APDU [15:26:55]CAPDU: 80 13 01 00 [15:26:55]Write to MH i2c: E2 08 00 D5 65 80 13 01 00 00 00 00 00 B7 [15:26:55]Write i2c OK [15:26:55]MH_I2C_Read... [15:26:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:26:55]Read from MH i2c: E2 [15:26:55]MH_I2C_Read... [15:26:55]Read from MH i2c: E2 0E 00 [15:26:55]MH_I2C_Read... [15:26:55]Read from MH i2c: E2 0E 00 D5 65 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 84 [15:26:55]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [15:26:55]wFMCommunicate OK [15:26:55]SAM_PROTO_GetShiftState done [15:26:55]FM_GetShiftState done [15:26:55]opened in 1729989044 [15:26:55]opened+sec_in_day 1730075444 [15:26:55]quantity*price = 40006 [15:26:55]sum+1 = 40007 [15:26:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.06 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 0.00 Безнал.: 400.06 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 186 27.10.2024 15:27 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 156635 ФПД: 116763671497031 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T152702&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156635&fm=116763671497031&tin=02508201610067®Number=0000000000091693&sum=40006 [15:26:56]StoreToDocumentArchive [15:26:56]shift 537 fd 156635 [15:26:56]save to /storage/0537/doc_00156635 [15:26:56]save last doc name /storage/0537/doc_00156635 to /storage/kkm_last_doc_name [15:26:56]save OK [15:26:56]Clear old archive folders... [15:26:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:26:56]tlvbuf is 016F7D30 [15:26:56]SAM_PROTO_ClearQueue [15:26:56]wFMCommunicate request_size=4 [15:26:56]MH_SAM_APDU [15:26:56]CAPDU: 80 09 00 00 [15:26:56]Write to MH i2c: E2 08 00 E2 65 80 09 00 00 00 00 00 00 B9 [15:26:56]Write i2c OK [15:26:56]MH_I2C_Read... [15:26:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:26:56]Read from MH i2c: E2 [15:26:56]MH_I2C_Read... [15:26:56]Read from MH i2c: E2 03 00 [15:26:56]MH_I2C_Read... [15:26:56]Read from MH i2c: E2 03 00 E2 65 00 90 00 BB [15:26:56]RAPDU: 90 00 [15:26:56]wFMCommunicate OK [15:26:56]SAM_PROTO_ClearQueue done [15:26:56]KKMCreateOFDPacket [15:26:56]OFDProtocolAddRootSTLVToBuf [15:26:56]FM_MakeSignedData [15:26:56]FM_MakeSignedData [15:26:56]SAM_PROTO_SignData [15:26:56]wFMCommunicate request_size=4 [15:26:56]MH_SAM_APDU [15:26:56]CAPDU: 80 0D 01 02 [15:26:56]Write to MH i2c: E2 08 00 E3 65 80 0D 01 02 00 00 00 00 C1 [15:26:56]Write i2c OK [15:26:56]MH_I2C_Read... [15:26:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:26:57]Read from MH i2c: E2 [15:26:57]MH_I2C_Read... [15:26:57]Read from MH i2c: E2 03 00 [15:26:57]MH_I2C_Read... [15:26:57]Read from MH i2c: E2 03 00 E3 65 00 90 00 BC [15:26:57]RAPDU: 90 00 [15:26:57]wFMCommunicate OK [15:26:57]wFMCommunicate request_size=255 [15:26:57]MH_SAM_APDU [15:26: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 C6 5B 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DB 63 02 00 35 04 06 00 6A [15:26:57]Write to MH i2c: E2 02 01 E4 65 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 C6 5B 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DB 63 02 00 35 04 06 00 6A 00 00 55 [15:26:57]Write i2c OK [15:26:57]MH_I2C_Read... [15:26:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:26:57]Read from MH i2c: E2 [15:26:57]MH_I2C_Read... [15:26:57]Read from MH i2c: E2 03 00 [15:26:57]MH_I2C_Read... [15:26:57]Read from MH i2c: E2 03 00 E4 65 00 90 00 BD [15:26:57]RAPDU: 90 00 [15:26:57]wFMCommunicate OK [15:26:57]wFMCommunicate request_size=10 [15:26:57]MH_SAM_APDU [15:26:57]CAPDU: 80 0D 02 02 05 32 29 29 89 47 [15:26:57]Write to MH i2c: E2 0D 00 E5 65 80 0D 02 02 05 00 32 29 29 89 47 00 00 22 [15:26:57]Write i2c OK [15:26:57]MH_I2C_Read... [15:26:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:26:57]Read from MH i2c: E2 [15:26:57]MH_I2C_Read... [15:26:57]Read from MH i2c: E2 03 00 [15:26:57]MH_I2C_Read... [15:26:57]Read from MH i2c: E2 03 00 E5 65 00 90 00 BE [15:26:57]RAPDU: 90 00 [15:26:57]wFMCommunicate OK [15:26:57]wFMCommunicate request_size=4 [15:26:57]MH_SAM_APDU [15:26:57]CAPDU: 80 0D 03 02 [15:26:57]Write to MH i2c: E2 08 00 E6 65 80 0D 03 02 00 00 00 00 C6 [15:26:57]Write i2c OK [15:26:57]MH_I2C_Read... [15:26:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:26:57]Read from MH i2c: E2 [15:26:57]MH_I2C_Read... [15:26:57]Read from MH i2c: E2 0B 00 [15:26:57]MH_I2C_Read... [15:26:57]Read from MH i2c: E2 0B 00 E6 65 00 EE F7 35 4B 50 87 7F D0 90 00 52 [15:26:57]RAPDU: EE F7 35 4B 50 87 7F D0 90 00 [15:26:57]wFMCommunicate OK [15:26:57]SAM_PROTO_SignData done [15:26:57]FM_MakeSignedData done [15:26:57]CreateOFDProtocolMessage [15:26:57]wFMCommunicate request_size=4 [15:26:57]MH_SAM_APDU [15:26:57]CAPDU: 80 11 00 00 [15:26:57]Write to MH i2c: E2 08 00 E7 65 80 11 00 00 00 00 00 00 C6 [15:26:57]Write i2c OK [15:26:57]MH_I2C_Read... [15:26:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:26:57]Read from MH i2c: E2 [15:26:57]MH_I2C_Read... [15:26:57]Read from MH i2c: E2 17 00 [15:26:57]MH_I2C_Read... [15:26:57]Read from MH i2c: E2 17 00 E7 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 1B [15:26:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:26:57]wFMCommunicate OK [15:26:57]CreateOFDProtocolMessage done [15:26:57]OFDSenderStorePacket 156635 [15:26:57]StoreOFDPacket docnum=156635 [15:26:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 4A 0F 07 01 C3 AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 C6 5B 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DB 63 02 00 35 04 06 00 6A 32 29 29 89 47 EE F7 35 4B 50 87 7F D0 [15:26:57]CheckFolder [15:26:57]dirname=/storage/ofd_packets [15:26:57]CheckFolder done [15:26:57]ProducePacketName [15:26:57]name=ofd_packets/00156635 [15:26:57]NVStorageSaveData ofd_packets/00156635 [15:26:57]File name is /storage/ofd_packets/00156635 [15:26:57]Write 301 bytes [15:26:57]NVStorageSaveData done [15:26:57]OFDSenderStorePacket done [15:26:57]KKMCreateOFDPacket done [15:26:57]NVStorageSaveData kkm_last_timestamp [15:26:57]File name is /storage/kkm_last_timestamp [15:26:57]Write 4 bytes [15:26:57]NVStorageSaveData done [15:26:57]ExternCall_PrintAddStr [15:26:57]wPrintStart [15:26:57]Write to MH i2c: 01 00 00 E8 65 4D [15:26:57]Write i2c OK [15:26:57]MH_I2C_Read... [15:26:57]Read from MH i2c: 01 [15:26:57]MH_I2C_Read... [15:26:57]Read from MH i2c: 01 07 00 [15:26:57]MH_I2C_Read... [15:26:57]Read from MH i2c: 01 07 00 E8 65 00 00 00 00 00 FF 0F 62 [15:26:57]RasterBufferAndPrint [15:26:57]line Счет N : (1)99449 [15:26:57]line ИНН: 02508201610067 [15:26:57]line Контрольно-Кассовый Чек [15:26:57]line ПРОДАЖА [15:26:57]line ТРК (МРК, ГНК) : 21 [15:26:57]line Товар: 2710124130 [15:26:57]line Аи-92-К-5 [15:26:57]line 5.980 * 66.90 [15:26:57]line = 400.06 [15:26:57]line НДС 12% НСП 1% [15:26:57]line > о реализуемом товаре [15:26:57]line ИТОГО: 400.06 [15:26:57]line НСП 1% : 3.54 [15:26:57]line НДС 12% : 42.48 [15:26:57]line Наличными: 0.00 [15:26:57]line Безнал.: 400.06 [15:26:57]line Место: АЗС № 143 "Партнер Нефть" [15:26:57]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [15:26:57]line СНО: Общий режим [15:26:57]line Чек 186 27.10.2024 15:27 [15:26:57]line Смена: 537 ФФД: 1.0 [15:26:57]line ЗНМ: 0300000096 [15:26:57]line РНМ: 0000000000091693 [15:26:57]line Версия ККМ: 001 [15:26:57]line Платежная система: Mbank [15:26:57]line ФМ: 0000000000871792 [15:26:57]line ФД: 156635 [15:26:57]line ФПД: 116763671497031 [15:26:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T152702&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156635&fm=116763671497031&tin=02508201610067®Number=0000000000091693&sum=40006 [15:26:57]written 0, free lines is 4095 [15:26:57]OFD Sender: Processing packet 156635 [packets to send 31, broken 30] [15:26:57]ProducePacketName [15:26:57]name=ofd_packets/00156635 [15:26:57]OFD Sender: To server: pG, [15:26:57]CommunicateWithHost lk.salyk.kg:30040 [15:26:57]ConnectInit lk.salyk.kg [15:26:57]Connected sock=10 [15:26:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 4A 0F 07 01 C3 AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 C6 5B 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DB 63 02 00 35 04 06 00 6A 32 29 29 89 47 EE F7 35 4B 50 87 7F D0 [15:26:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 A9 E0 47 00 07 DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DB 63 02 00 F4 03 04 00 35 01 1E 67 B6 04 01 00 00 C5 58 B5 13 A7 81 57 17 [15:26:57]CommunicateWithHost err = 0 [15:26:57]CheckOFDResponse [15:26:57]1017 (14) - 77093643461234 [15:26:57]1041 (16) - 0000000000871792 [15:26:57]1040 (4) - 156635 [15:26:57]1012 (4) - 27.10.2024 09:00 [15:26:57]1206 (1) - 0 [15:26:57]OFD Sender: Remove packet 156635 [15:26:57]ProducePacketName [15:26:57]name=ofd_packets/00156635 [15:26:57]NVStorageDeleteData [15:26:57]Write to MH i2c: 01 00 00 11 66 77 [15:26:57]Write i2c OK [15:26:57]MH_I2C_Read... [15:26:57]Read from MH i2c: 01 [15:26:57]MH_I2C_Read... [15:26:57]Read from MH i2c: 01 07 00 [15:26:57]MH_I2C_Read... [15:26:57]Read from MH i2c: 01 07 00 11 66 00 00 00 00 00 20 0D AB [15:26:57]RasterBufferAndPrint [15:26:57]line [15:26:57]line [15:26:57]line [15:26:57]line [15:26:57]line [15:26:57]written 0, free lines is 3369 [15:26:57]process_action close_receipt done [15:26:57]requested_data is exist [15:26:57]produce_requested_data [15:26:57]requested_item fm.sn is exist - process it [15:26:57]wFMCommunicate request_size=4 [15:26:57]MH_SAM_APDU [15:26:57]CAPDU: 80 11 00 00 [15:26:57]Write to MH i2c: E2 08 00 18 66 80 11 00 00 00 00 00 00 F8 [15:26:57]Write i2c OK [15:26:57]MH_I2C_Read... [15:26:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:26:58]Read from MH i2c: E2 [15:26:58]MH_I2C_Read... [15:26:58]Read from MH i2c: E2 17 00 [15:26:58]MH_I2C_Read... [15:26:58]Read from MH i2c: E2 17 00 18 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 4D [15:26:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:26:58]wFMCommunicate OK [15:26:58]requested_item fd.num is exist - process it [15:26:58]SAM_PROTO_GetFieldsCounters [15:26:58]wFMCommunicate request_size=4 [15:26:58]MH_SAM_APDU [15:26:58]CAPDU: 80 13 00 00 [15:26:58]Write to MH i2c: E2 08 00 19 66 80 13 00 00 00 00 00 00 FB [15:26:58]Write i2c OK [15:26:58]MH_I2C_Read... [15:26:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:26:58]Read from MH i2c: E2 [15:26:58]MH_I2C_Read... [15:26:58]Read from MH i2c: E2 62 00 [15:26:58]MH_I2C_Read... [15:26:58]Read from MH i2c: E2 62 00 19 66 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 DB 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 AA [15:26:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 DB 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:26:58]wFMCommunicate OK [15:26:58]SAM_PROTO_GetFieldsCounters done [15:26:58]requested_item shift.num is exist - process it [15:26:58]requested_item shift.opened is exist - process it [15:26:58]req_shift_opened [15:26:58]FM_GetShiftState [15:26:58]SAM_PROTO_GetShiftState [15:26:58]wFMCommunicate request_size=4 [15:26:58]MH_SAM_APDU [15:26:58]CAPDU: 80 13 01 00 [15:26:58]Write to MH i2c: E2 08 00 1A 66 80 13 01 00 00 00 00 00 FD [15:26:58]Write i2c OK [15:26:58]MH_I2C_Read... [15:26:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:26:58]Read from MH i2c: E2 [15:26:58]MH_I2C_Read... [15:26:58]Read from MH i2c: E2 0E 00 [15:26:58]MH_I2C_Read... [15:26:58]Read from MH i2c: E2 0E 00 1A 66 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 CA [15:26:58]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [15:26:58]wFMCommunicate OK [15:26:58]SAM_PROTO_GetShiftState done [15:26:58]FM_GetShiftState done [15:26:58]req_shift_opened done [15:26:58]requested_item shift.open_date is exist - process it [15:26:58]req_shift_open_date [15:26:58]req_shift_open_date done [15:26:58]produce_requested_data done [15:26:58]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156635,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [15:26:58]process_action_free close_receipt [15:26:58]json_value_free [15:26:58]json_value_free done [15:26:58]process_json_proto returns [15:26:58]Send response to host [15:26:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156635,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [15:26:58]free response buf [15:26:58]execute_script done [15:26:58]execute_script returns [15:26:58]free content buf [15:26:58]Sock 8.Close socket [15:26:58]Sock 8.Thread stoped [15:26:58]OFD Sender: No OFD packet to send [15:27:03]OFD Sender: No OFD packet to send [15:27:08]OFD Sender: No OFD packet to send [15:27:13]OFD Sender: No OFD packet to send [15:27:18]OFD Sender: No OFD packet to send [15:27:23]OFD Sender: No OFD packet to send [15:27:28]OFD Sender: No OFD packet to send [15:27:33]OFD Sender: No OFD packet to send [15:27:38]OFD Sender: No OFD packet to send [15:27:43]OFD Sender: No OFD packet to send [15:27:48]OFD Sender: No OFD packet to send [15:27:53]OFD Sender: No OFD packet to send [15:27:58]OFD Sender: No OFD packet to send [15:28:03]OFD Sender: No OFD packet to send [15:28:08]OFD Sender: No OFD packet to send [15:28:13]OFD Sender: No OFD packet to send [15:28:18]OFD Sender: No OFD packet to send [15:28:23]OFD Sender: No OFD packet to send [15:28:28]OFD Sender: No OFD packet to send [15:28:33]OFD Sender: No OFD packet to send [15:28:38]OFD Sender: No OFD packet to send [15:28:43]OFD Sender: No OFD packet to send [15:28:44]accept exits with 9 [15:28:44]New connection [15:28:44]New thread 3066834276 created [15:28:44]Thread 3066977636 joined [15:28:44]Waiting for new connection... [15:28:44] Sock 9.Parse request [15:28:44]Sock 9.Check first char [15:28:44]Sock 9.First char is OK [15:28:44]request: POST /json_proto HTTP/1.0 [15:28:44]Method: POST [15:28:44]URL: /json_proto [15:28:44]Method is POST - this is cgi request [15:28:44]url: /json_proto [15:28:44]query_string will be loaded in cgi processing [15:28:44]execute_cgi json_proto POST (null) [15:28:44]execute_cgi path=json_proto method=POST [15:28:44]POST find Content-Length [15:28:44]Host: 172.17.63.3:8080 [15:28:44]Content-Length: 678 [15:28:44]Content-Type: application/json [15:28:44] [15:28:44]POST finish read [15:28:44]Found Content-Length = 678 [15:28:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99450", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "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" ] } } [15:28:44]execute_script... [15:28: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)99450", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "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" ] } } [15:28:44]POST & json_proto [15:28:44]process_json_proto [15:28:44]json parsed OK: [15:28:44]protocol is kg_v1.0 [15:28:44]action value=close_receipt [15:28:44]process_action close_receipt [15:28:44]cmd_close_receipt [15:28:44]MH_GetDate [15:28:44]Write to MH i2c: F0 00 00 1B 66 70 [15:28:44]Write i2c OK [15:28:44]MH_I2C_Read... [15:28:44]Read from MH i2c: F0 [15:28:44]MH_I2C_Read... [15:28:44]Read from MH i2c: F0 09 00 [15:28:44]MH_I2C_Read... [15:28:44]Read from MH i2c: F0 09 00 1B 66 00 32 5C 1E 67 50 D1 6C 64 7D [15:28:44]GetLastDocTimeStamp 1730042822 [15:28:44]current date 1730042930 [15:28:44]FM_GetShiftState [15:28:44]SAM_PROTO_GetShiftState [15:28:44]wFMCommunicate request_size=4 [15:28:44]MH_SAM_APDU [15:28:44]CAPDU: 80 13 01 00 [15:28:44]Write to MH i2c: E2 08 00 1C 66 80 13 01 00 00 00 00 00 FF [15:28:44]Write i2c OK [15:28:44]MH_I2C_Read... [15:28:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:28:44]Read from MH i2c: E2 [15:28:44]MH_I2C_Read... [15:28:44]Read from MH i2c: E2 0E 00 [15:28:44]MH_I2C_Read... [15:28:44]Read from MH i2c: E2 0E 00 1C 66 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 CC [15:28:44]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [15:28:44]wFMCommunicate OK [15:28:44]SAM_PROTO_GetShiftState done [15:28:44]FM_GetShiftState done [15:28:44]opened in 1729989044 [15:28:44]opened+sec_in_day 1730075444 [15:28:44]quantity*price = 150037 [15:28:44]sum+1 = 150039 [15:28:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 187 27.10.2024 15:28 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156636 ФПД: 117206940078530 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T152850&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156636&fm=117206940078530&tin=02508201610067®Number=0000000000091693&sum=150000 [15:28:45]StoreToDocumentArchive [15:28:45]shift 537 fd 156636 [15:28:45]save to /storage/0537/doc_00156636 [15:28:45]save last doc name /storage/0537/doc_00156636 to /storage/kkm_last_doc_name [15:28:45]save OK [15:28:45]Clear old archive folders... [15:28:45]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:28:45]tlvbuf is 0189CE70 [15:28:45]SAM_PROTO_ClearQueue [15:28:45]wFMCommunicate request_size=4 [15:28:45]MH_SAM_APDU [15:28:45]CAPDU: 80 09 00 00 [15:28:45]Write to MH i2c: E2 08 00 29 66 80 09 00 00 00 00 00 00 01 [15:28:45]Write i2c OK [15:28:45]MH_I2C_Read... [15:28:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:28:45]Read from MH i2c: E2 [15:28:45]MH_I2C_Read... [15:28:45]Read from MH i2c: E2 03 00 [15:28:45]MH_I2C_Read... [15:28:45]Read from MH i2c: E2 03 00 29 66 00 90 00 03 [15:28:45]RAPDU: 90 00 [15:28:45]wFMCommunicate OK [15:28:45]SAM_PROTO_ClearQueue done [15:28:45]KKMCreateOFDPacket [15:28:45]OFDProtocolAddRootSTLVToBuf [15:28:45]FM_MakeSignedData [15:28:45]FM_MakeSignedData [15:28:45]SAM_PROTO_SignData [15:28:45]wFMCommunicate request_size=4 [15:28:45]MH_SAM_APDU [15:28:45]CAPDU: 80 0D 01 02 [15:28:45]Write to MH i2c: E2 08 00 2A 66 80 0D 01 02 00 00 00 00 09 [15:28:45]Write i2c OK [15:28:45]MH_I2C_Read... [15:28:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:28:45]Read from MH i2c: E2 [15:28:45]MH_I2C_Read... [15:28:45]Read from MH i2c: E2 03 00 [15:28:45]MH_I2C_Read... [15:28:45]Read from MH i2c: E2 03 00 2A 66 00 90 00 04 [15:28:45]RAPDU: 90 00 [15:28:45]wFMCommunicate OK [15:28:45]wFMCommunicate request_size=255 [15:28:45]MH_SAM_APDU [15:28:45]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 32 5C 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DC 63 02 00 35 04 06 00 6A 99 5E 07 [15:28:45]Write to MH i2c: E2 02 01 2B 66 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 32 5C 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DC 63 02 00 35 04 06 00 6A 99 5E 07 00 00 9C [15:28:45]Write i2c OK [15:28:45]MH_I2C_Read... [15:28:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:28:46]Read from MH i2c: E2 [15:28:46]MH_I2C_Read... [15:28:46]Read from MH i2c: E2 03 00 [15:28:46]MH_I2C_Read... [15:28:46]Read from MH i2c: E2 03 00 2B 66 00 90 00 05 [15:28:46]RAPDU: 90 00 [15:28:46]wFMCommunicate OK [15:28:46]wFMCommunicate request_size=7 [15:28:46]MH_SAM_APDU [15:28:46]CAPDU: 80 0D 02 02 02 51 C2 [15:28:46]Write to MH i2c: E2 0A 00 2C 66 80 0D 02 02 02 00 51 C2 00 00 23 [15:28:46]Write i2c OK [15:28:46]MH_I2C_Read... [15:28:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:28:46]Read from MH i2c: E2 [15:28:46]MH_I2C_Read... [15:28:46]Read from MH i2c: E2 03 00 [15:28:46]MH_I2C_Read... [15:28:46]Read from MH i2c: E2 03 00 2C 66 00 90 00 06 [15:28:46]RAPDU: 90 00 [15:28:46]wFMCommunicate OK [15:28:46]wFMCommunicate request_size=4 [15:28:46]MH_SAM_APDU [15:28:46]CAPDU: 80 0D 03 02 [15:28:46]Write to MH i2c: E2 08 00 2D 66 80 0D 03 02 00 00 00 00 0E [15:28:46]Write i2c OK [15:28:46]MH_I2C_Read... [15:28:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:28:46]Read from MH i2c: E2 [15:28:46]MH_I2C_Read... [15:28:46]Read from MH i2c: E2 0B 00 [15:28:46]MH_I2C_Read... [15:28:46]Read from MH i2c: E2 0B 00 2D 66 00 93 59 F9 71 48 1A C7 1C 90 00 AA [15:28:46]RAPDU: 93 59 F9 71 48 1A C7 1C 90 00 [15:28:46]wFMCommunicate OK [15:28:46]SAM_PROTO_SignData done [15:28:46]FM_MakeSignedData done [15:28:46]CreateOFDProtocolMessage [15:28:46]wFMCommunicate request_size=4 [15:28:46]MH_SAM_APDU [15:28:46]CAPDU: 80 11 00 00 [15:28:46]Write to MH i2c: E2 08 00 2E 66 80 11 00 00 00 00 00 00 0E [15:28:46]Write i2c OK [15:28:46]MH_I2C_Read... [15:28:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:28:46]Read from MH i2c: E2 [15:28:46]MH_I2C_Read... [15:28:46]Read from MH i2c: E2 17 00 [15:28:46]MH_I2C_Read... [15:28:46]Read from MH i2c: E2 17 00 2E 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 63 [15:28:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:28:46]wFMCommunicate OK [15:28:46]CreateOFDProtocolMessage done [15:28:46]OFDSenderStorePacket 156636 [15:28:46]StoreOFDPacket docnum=156636 [15:28:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 44 37 04 01 35 9D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 32 5C 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DC 63 02 00 35 04 06 00 6A 99 5E 07 51 C2 93 59 F9 71 48 1A C7 1C [15:28:46]CheckFolder [15:28:46]dirname=/storage/ofd_packets [15:28:46]CheckFolder done [15:28:46]ProducePacketName [15:28:46]name=ofd_packets/00156636 [15:28:46]NVStorageSaveData ofd_packets/00156636 [15:28:46]File name is /storage/ofd_packets/00156636 [15:28:46]Write 298 bytes [15:28:46]NVStorageSaveData done [15:28:46]OFDSenderStorePacket done [15:28:46]KKMCreateOFDPacket done [15:28:46]NVStorageSaveData kkm_last_timestamp [15:28:46]File name is /storage/kkm_last_timestamp [15:28:46]Write 4 bytes [15:28:46]NVStorageSaveData done [15:28:46]ExternCall_PrintAddStr [15:28:46]wPrintStart [15:28:46]Write to MH i2c: 01 00 00 2F 66 95 [15:28:46]Write i2c OK [15:28:46]MH_I2C_Read... [15:28:46]Read from MH i2c: 01 [15:28:46]MH_I2C_Read... [15:28:46]Read from MH i2c: 01 07 00 [15:28:46]MH_I2C_Read... [15:28:46]Read from MH i2c: 01 07 00 2F 66 00 00 00 00 00 FF 0F AA [15:28:46]RasterBufferAndPrint [15:28:46]line Счет N : (1)99450 [15:28:46]line ИНН: 02508201610067 [15:28:46]line Контрольно-Кассовый Чек [15:28:46]line ПРОДАЖА [15:28:46]line ТРК (МРК, ГНК) : 32 [15:28:46]line Товар: 2710194210 [15:28:46]line ДТ-К-5 [15:28:46]line 19.690 * 76.20 [15:28:46]line = 1500.38 [15:28:46]line НДС 12% НСП 1% [15:28:46]line > о реализуемом товаре [15:28:46]line ОКРУГЛЕНИЕ: -0.38 [15:28:46]line ИТОГО: 1500.00 [15:28:46]line Внесено: 1500.00 [15:28:46]line СДАЧА: 0.00 [15:28:46]line НСП 1% : 13.28 [15:28:46]line НДС 12% : 159.33 [15:28:46]line Наличными: 1500.00 [15:28:46]line Безнал.: 0.00 [15:28:46]line Место: АЗС № 143 "Партнер Нефть" [15:28:46]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [15:28:46]line СНО: Общий режим [15:28:46]line Чек 187 27.10.2024 15:28 [15:28:46]line Смена: 537 ФФД: 1.0 [15:28:46]line ЗНМ: 0300000096 [15:28:46]line РНМ: 0000000000091693 [15:28:46]line Версия ККМ: 001 [15:28:46]line ФМ: 0000000000871792 [15:28:46]line ФД: 156636 [15:28:46]line ФПД: 117206940078530 [15:28:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T152850&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156636&fm=117206940078530&tin=02508201610067®Number=0000000000091693&sum=150000 [15:28:46]written 0, free lines is 4095 [15:28:46]OFD Sender: Processing packet 156636 [packets to send 31, broken 30] [15:28:46]ProducePacketName [15:28:46]name=ofd_packets/00156636 [15:28:46]OFD Sender: To server: pG, [15:28:46]CommunicateWithHost lk.salyk.kg:30040 [15:28:46]ConnectInit lk.salyk.kg [15:28:46]Connected sock=8 [15:28:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 44 37 04 01 35 9D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 32 5C 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DC 63 02 00 35 04 06 00 6A 99 5E 07 51 C2 93 59 F9 71 48 1A C7 1C [15:28:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 8D 02 47 00 7E 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DC 63 02 00 F4 03 04 00 A2 01 1E 67 B6 04 01 00 00 FC F7 23 A5 F2 2A 47 80 [15:28:46]CommunicateWithHost err = 0 [15:28:46]CheckOFDResponse [15:28:46]1017 (14) - 77093643461234 [15:28:46]1041 (16) - 0000000000871792 [15:28:46]1040 (4) - 156636 [15:28:46]1012 (4) - 27.10.2024 09:02 [15:28:46]1206 (1) - 0 [15:28:46]OFD Sender: Remove packet 156636 [15:28:46]ProducePacketName [15:28:46]name=ofd_packets/00156636 [15:28:46]NVStorageDeleteData [15:28:47]Write to MH i2c: 01 00 00 5A 66 C0 [15:28:47]Write i2c OK [15:28:47]MH_I2C_Read... [15:28:47]Read from MH i2c: 01 [15:28:47]MH_I2C_Read... [15:28:47]Read from MH i2c: 01 07 00 [15:28:47]MH_I2C_Read... [15:28:47]Read from MH i2c: 01 07 00 5A 66 00 00 00 00 00 E4 0C B7 [15:28:47]RasterBufferAndPrint [15:28:47]line [15:28:47]line [15:28:47]line [15:28:47]line [15:28:47]line [15:28:47]written 0, free lines is 3309 [15:28:47]process_action close_receipt done [15:28:47]requested_data is exist [15:28:47]produce_requested_data [15:28:47]requested_item fm.sn is exist - process it [15:28:47]wFMCommunicate request_size=4 [15:28:47]MH_SAM_APDU [15:28:47]CAPDU: 80 11 00 00 [15:28:47]Write to MH i2c: E2 08 00 61 66 80 11 00 00 00 00 00 00 41 [15:28:47]Write i2c OK [15:28:47]MH_I2C_Read... [15:28:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:28:47]Read from MH i2c: E2 [15:28:47]MH_I2C_Read... [15:28:47]Read from MH i2c: E2 17 00 [15:28:47]MH_I2C_Read... [15:28:47]Read from MH i2c: E2 17 00 61 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 96 [15:28:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:28:47]wFMCommunicate OK [15:28:47]requested_item fd.num is exist - process it [15:28:47]SAM_PROTO_GetFieldsCounters [15:28:47]wFMCommunicate request_size=4 [15:28:47]MH_SAM_APDU [15:28:47]CAPDU: 80 13 00 00 [15:28:47]Write to MH i2c: E2 08 00 62 66 80 13 00 00 00 00 00 00 44 [15:28:47]Write i2c OK [15:28:47]MH_I2C_Read... [15:28:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:28:47]Read from MH i2c: E2 [15:28:47]MH_I2C_Read... [15:28:47]Read from MH i2c: E2 62 00 [15:28:47]MH_I2C_Read... [15:28:47]Read from MH i2c: E2 62 00 62 66 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 DC 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 F7 [15:28:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 DC 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:28:47]wFMCommunicate OK [15:28:47]SAM_PROTO_GetFieldsCounters done [15:28:47]requested_item shift.num is exist - process it [15:28:47]requested_item shift.opened is exist - process it [15:28:47]req_shift_opened [15:28:47]FM_GetShiftState [15:28:47]SAM_PROTO_GetShiftState [15:28:47]wFMCommunicate request_size=4 [15:28:47]MH_SAM_APDU [15:28:47]CAPDU: 80 13 01 00 [15:28:47]Write to MH i2c: E2 08 00 63 66 80 13 01 00 00 00 00 00 46 [15:28:47]Write i2c OK [15:28:47]MH_I2C_Read... [15:28:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:28:47]Read from MH i2c: E2 [15:28:47]MH_I2C_Read... [15:28:47]Read from MH i2c: E2 0E 00 [15:28:47]MH_I2C_Read... [15:28:47]Read from MH i2c: E2 0E 00 63 66 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 13 [15:28:47]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [15:28:47]wFMCommunicate OK [15:28:47]SAM_PROTO_GetShiftState done [15:28:47]FM_GetShiftState done [15:28:47]req_shift_opened done [15:28:47]requested_item shift.open_date is exist - process it [15:28:47]req_shift_open_date [15:28:47]req_shift_open_date done [15:28:47]produce_requested_data done [15:28:47]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156636,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [15:28:47]process_action_free close_receipt [15:28:47]json_value_free [15:28:47]json_value_free done [15:28:47]process_json_proto returns [15:28:47]Send response to host [15:28:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156636,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [15:28:47]free response buf [15:28:47]execute_script done [15:28:47]execute_script returns [15:28:47]free content buf [15:28:47]Sock 9.Close socket [15:28:47]Sock 9.Thread stoped [15:28:47]OFD Sender: No OFD packet to send [15:28:52]OFD Sender: No OFD packet to send [15:28:57]OFD Sender: No OFD packet to send [15:29:02]OFD Sender: No OFD packet to send [15:29:07]OFD Sender: No OFD packet to send [15:29:12]OFD Sender: No OFD packet to send [15:29:17]OFD Sender: No OFD packet to send [15:29:22]OFD Sender: No OFD packet to send [15:29:27]OFD Sender: No OFD packet to send [15:29:32]OFD Sender: No OFD packet to send [15:29:37]OFD Sender: No OFD packet to send [15:29:42]OFD Sender: No OFD packet to send [15:29:47]OFD Sender: No OFD packet to send [15:29:52]OFD Sender: No OFD packet to send [15:29:57]OFD Sender: No OFD packet to send [15:30:02]OFD Sender: No OFD packet to send [15:30:07]OFD Sender: No OFD packet to send [15:30:12]OFD Sender: No OFD packet to send [15:30:17]OFD Sender: No OFD packet to send [15:30:22]OFD Sender: No OFD packet to send [15:30:27]OFD Sender: No OFD packet to send [15:30:32]OFD Sender: No OFD packet to send [15:30:37]OFD Sender: No OFD packet to send [15:30:42]OFD Sender: No OFD packet to send [15:30:47]OFD Sender: No OFD packet to send [15:30:52]OFD Sender: No OFD packet to send [15:30:57]OFD Sender: No OFD packet to send [15:31:02]OFD Sender: No OFD packet to send [15:31:07]OFD Sender: No OFD packet to send [15:31:12]OFD Sender: No OFD packet to send [15:31:17]OFD Sender: No OFD packet to send [15:31:22]OFD Sender: No OFD packet to send [15:31:27]OFD Sender: No OFD packet to send [15:31:32]OFD Sender: No OFD packet to send [15:31:37]OFD Sender: No OFD packet to send [15:31:42]OFD Sender: No OFD packet to send [15:31:47]OFD Sender: No OFD packet to send [15:31:52]OFD Sender: No OFD packet to send [15:31:57]OFD Sender: No OFD packet to send [15:32:02]OFD Sender: No OFD packet to send [15:32:07]OFD Sender: No OFD packet to send [15:32:12]OFD Sender: No OFD packet to send [15:32:17]OFD Sender: No OFD packet to send [15:32:22]OFD Sender: No OFD packet to send [15:32:27]OFD Sender: No OFD packet to send [15:32:32]OFD Sender: No OFD packet to send [15:32:37]OFD Sender: No OFD packet to send [15:32:42]OFD Sender: No OFD packet to send [15:32:47]OFD Sender: No OFD packet to send [15:32:52]OFD Sender: No OFD packet to send [15:32:57]OFD Sender: No OFD packet to send [15:33:02]OFD Sender: No OFD packet to send [15:33:07]OFD Sender: No OFD packet to send [15:33:12]OFD Sender: No OFD packet to send [15:33:17]OFD Sender: No OFD packet to send [15:33:22]OFD Sender: No OFD packet to send [15:33:27]OFD Sender: No OFD packet to send [15:33:32]OFD Sender: No OFD packet to send [15:33:37]OFD Sender: No OFD packet to send [15:33:38]accept exits with 10 [15:33:38]New connection [15:33:38]New thread 3066977636 created [15:33:38]Thread 3066834276 joined [15:33:38]Waiting for new connection... [15:33:38] Sock 10.Parse request [15:33:38]Sock 10.Check first char [15:33:38]Sock 10.First char is OK [15:33:38]request: POST /json_proto HTTP/1.0 [15:33:38]Method: POST [15:33:38]URL: /json_proto [15:33:38]Method is POST - this is cgi request [15:33:38]url: /json_proto [15:33:38]query_string will be loaded in cgi processing [15:33:38]execute_cgi json_proto POST (null) [15:33:38]execute_cgi path=json_proto method=POST [15:33:38]POST find Content-Length [15:33:38]Host: 172.17.63.3:8080 [15:33:38]Content-Length: 676 [15:33:38]Content-Type: application/json [15:33:38] [15:33:38]POST finish read [15:33:38]Found Content-Length = 676 [15:33:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99451", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:33:38]execute_script... [15:33: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)99451", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:33:38]POST & json_proto [15:33:38]process_json_proto [15:33:38]json parsed OK: [15:33:38]protocol is kg_v1.0 [15:33:38]action value=close_receipt [15:33:38]process_action close_receipt [15:33:38]cmd_close_receipt [15:33:38]MH_GetDate [15:33:38]Write to MH i2c: F0 00 00 64 66 B9 [15:33:38]Write i2c OK [15:33:38]MH_I2C_Read... [15:33:38]Read from MH i2c: F0 [15:33:38]MH_I2C_Read... [15:33:38]Read from MH i2c: F0 09 00 [15:33:38]MH_I2C_Read... [15:33:38]Read from MH i2c: F0 09 00 64 66 00 59 5D 1E 67 50 D1 6C 64 EE [15:33:38]GetLastDocTimeStamp 1730042930 [15:33:38]current date 1730043225 [15:33:38]FM_GetShiftState [15:33:38]SAM_PROTO_GetShiftState [15:33:38]wFMCommunicate request_size=4 [15:33:38]MH_SAM_APDU [15:33:38]CAPDU: 80 13 01 00 [15:33:38]Write to MH i2c: E2 08 00 65 66 80 13 01 00 00 00 00 00 48 [15:33:38]Write i2c OK [15:33:38]MH_I2C_Read... [15:33:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:33:38]Read from MH i2c: E2 [15:33:38]MH_I2C_Read... [15:33:38]Read from MH i2c: E2 0E 00 [15:33:38]MH_I2C_Read... [15:33:38]Read from MH i2c: E2 0E 00 65 66 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 15 [15:33:38]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [15:33:38]wFMCommunicate OK [15:33:38]SAM_PROTO_GetShiftState done [15:33:38]FM_GetShiftState done [15:33:38]opened in 1729989044 [15:33:38]opened+sec_in_day 1730075444 [15:33:38]quantity*price = 50041 [15:33:38]sum+1 = 50042 [15:33:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 188 27.10.2024 15:33 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156637 ФПД: 118894375366976 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T153345&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156637&fm=118894375366976&tin=02508201610067®Number=0000000000091693&sum=50000 [15:33:39]StoreToDocumentArchive [15:33:39]shift 537 fd 156637 [15:33:39]save to /storage/0537/doc_00156637 [15:33:39]save last doc name /storage/0537/doc_00156637 to /storage/kkm_last_doc_name [15:33:39]save OK [15:33:39]Clear old archive folders... [15:33:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:33:39]tlvbuf is 017ABBD0 [15:33:39]SAM_PROTO_ClearQueue [15:33:39]wFMCommunicate request_size=4 [15:33:39]MH_SAM_APDU [15:33:39]CAPDU: 80 09 00 00 [15:33:39]Write to MH i2c: E2 08 00 72 66 80 09 00 00 00 00 00 00 4A [15:33:39]Write i2c OK [15:33:39]MH_I2C_Read... [15:33:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:33:39]Read from MH i2c: E2 [15:33:39]MH_I2C_Read... [15:33:39]Read from MH i2c: E2 03 00 [15:33:39]MH_I2C_Read... [15:33:39]Read from MH i2c: E2 03 00 72 66 00 90 00 4C [15:33:39]RAPDU: 90 00 [15:33:39]wFMCommunicate OK [15:33:39]SAM_PROTO_ClearQueue done [15:33:39]KKMCreateOFDPacket [15:33:39]OFDProtocolAddRootSTLVToBuf [15:33:39]FM_MakeSignedData [15:33:39]FM_MakeSignedData [15:33:39]SAM_PROTO_SignData [15:33:39]wFMCommunicate request_size=4 [15:33:39]MH_SAM_APDU [15:33:39]CAPDU: 80 0D 01 02 [15:33:39]Write to MH i2c: E2 08 00 73 66 80 0D 01 02 00 00 00 00 52 [15:33:39]Write i2c OK [15:33:39]MH_I2C_Read... [15:33:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:33:39]Read from MH i2c: E2 [15:33:39]MH_I2C_Read... [15:33:39]Read from MH i2c: E2 03 00 [15:33:39]MH_I2C_Read... [15:33:39]Read from MH i2c: E2 03 00 73 66 00 90 00 4D [15:33:39]RAPDU: 90 00 [15:33:39]wFMCommunicate OK [15:33:39]wFMCommunicate request_size=255 [15:33:39]MH_SAM_APDU [15:33: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 59 5D 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DD 63 02 00 35 04 06 00 6C [15:33:39]Write to MH i2c: E2 02 01 74 66 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 59 5D 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DD 63 02 00 35 04 06 00 6C 00 00 A6 [15:33:40]Write i2c OK [15:33:40]MH_I2C_Read... [15:33:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:33:40]Read from MH i2c: E2 [15:33:40]MH_I2C_Read... [15:33:40]Read from MH i2c: E2 03 00 [15:33:40]MH_I2C_Read... [15:33:40]Read from MH i2c: E2 03 00 74 66 00 90 00 4E [15:33:40]RAPDU: 90 00 [15:33:40]wFMCommunicate OK [15:33:40]wFMCommunicate request_size=10 [15:33:40]MH_SAM_APDU [15:33:40]CAPDU: 80 0D 02 02 05 22 41 02 71 40 [15:33:40]Write to MH i2c: E2 0D 00 75 66 80 0D 02 02 05 00 22 41 02 71 40 00 00 75 [15:33:40]Write i2c OK [15:33:40]MH_I2C_Read... [15:33:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:33:40]Read from MH i2c: E2 [15:33:40]MH_I2C_Read... [15:33:40]Read from MH i2c: E2 03 00 [15:33:40]MH_I2C_Read... [15:33:40]Read from MH i2c: E2 03 00 75 66 00 90 00 4F [15:33:40]RAPDU: 90 00 [15:33:40]wFMCommunicate OK [15:33:40]wFMCommunicate request_size=4 [15:33:40]MH_SAM_APDU [15:33:40]CAPDU: 80 0D 03 02 [15:33:40]Write to MH i2c: E2 08 00 76 66 80 0D 03 02 00 00 00 00 57 [15:33:40]Write i2c OK [15:33:40]MH_I2C_Read... [15:33:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:33:40]Read from MH i2c: E2 [15:33:40]MH_I2C_Read... [15:33:40]Read from MH i2c: E2 0B 00 [15:33:40]MH_I2C_Read... [15:33:40]Read from MH i2c: E2 0B 00 76 66 00 DA A0 6C 7C 12 49 29 3A 90 00 78 [15:33:40]RAPDU: DA A0 6C 7C 12 49 29 3A 90 00 [15:33:40]wFMCommunicate OK [15:33:40]SAM_PROTO_SignData done [15:33:40]FM_MakeSignedData done [15:33:40]CreateOFDProtocolMessage [15:33:40]wFMCommunicate request_size=4 [15:33:40]MH_SAM_APDU [15:33:40]CAPDU: 80 11 00 00 [15:33:40]Write to MH i2c: E2 08 00 77 66 80 11 00 00 00 00 00 00 57 [15:33:40]Write i2c OK [15:33:40]MH_I2C_Read... [15:33:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:33:40]Read from MH i2c: E2 [15:33:40]MH_I2C_Read... [15:33:40]Read from MH i2c: E2 17 00 [15:33:40]MH_I2C_Read... [15:33:40]Read from MH i2c: E2 17 00 77 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 AC [15:33:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:33:40]wFMCommunicate OK [15:33:40]CreateOFDProtocolMessage done [15:33:40]OFDSenderStorePacket 156637 [15:33:40]StoreOFDPacket docnum=156637 [15:33:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 9F C4 07 01 7D 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 59 5D 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DD 63 02 00 35 04 06 00 6C 22 41 02 71 40 DA A0 6C 7C 12 49 29 3A [15:33:40]CheckFolder [15:33:40]dirname=/storage/ofd_packets [15:33:40]CheckFolder done [15:33:40]ProducePacketName [15:33:40]name=ofd_packets/00156637 [15:33:40]NVStorageSaveData ofd_packets/00156637 [15:33:40]File name is /storage/ofd_packets/00156637 [15:33:40]Write 301 bytes [15:33:40]NVStorageSaveData done [15:33:40]OFDSenderStorePacket done [15:33:40]KKMCreateOFDPacket done [15:33:40]NVStorageSaveData kkm_last_timestamp [15:33:40]File name is /storage/kkm_last_timestamp [15:33:40]Write 4 bytes [15:33:40]NVStorageSaveData done [15:33:40]ExternCall_PrintAddStr [15:33:40]wPrintStart [15:33:40]Write to MH i2c: 01 00 00 78 66 DE [15:33:40]Write i2c OK [15:33:40]MH_I2C_Read... [15:33:40]Read from MH i2c: 01 [15:33:40]MH_I2C_Read... [15:33:40]Read from MH i2c: 01 07 00 [15:33:40]MH_I2C_Read... [15:33:40]Read from MH i2c: 01 07 00 78 66 00 00 00 00 00 FF 0F F3 [15:33:40]RasterBufferAndPrint [15:33:40]line Счет N : (1)99451 [15:33:40]line ИНН: 02508201610067 [15:33:40]line Контрольно-Кассовый Чек [15:33:40]line ПРОДАЖА [15:33:40]line ТРК (МРК, ГНК) : 11 [15:33:40]line Товар: 2710124130 [15:33:40]line Аи-92-К-5 [15:33:40]line 7.480 * 66.90 [15:33:40]line = 500.41 [15:33:40]line НДС 12% НСП 1% [15:33:40]line > о реализуемом товаре [15:33:40]line ОКРУГЛЕНИЕ: -0.41 [15:33:40]line ИТОГО: 500.00 [15:33:40]line Внесено: 500.00 [15:33:40]line СДАЧА: 0.00 [15:33:40]line НСП 1% : 4.43 [15:33:40]line НДС 12% : 53.14 [15:33:40]line Наличными: 500.00 [15:33:40]line Безнал.: 0.00 [15:33:40]line Место: АЗС № 143 "Партнер Нефть" [15:33:40]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [15:33:40]line СНО: Общий режим [15:33:40]line Чек 188 27.10.2024 15:33 [15:33:40]line Смена: 537 ФФД: 1.0 [15:33:40]line ЗНМ: 0300000096 [15:33:40]line РНМ: 0000000000091693 [15:33:40]line Версия ККМ: 001 [15:33:40]line ФМ: 0000000000871792 [15:33:40]line ФД: 156637 [15:33:40]line ФПД: 118894375366976 [15:33:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T153345&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156637&fm=118894375366976&tin=02508201610067®Number=0000000000091693&sum=50000 [15:33:40]OFD Sender: Processing packet 156637 [packets to send 31, broken 30] [15:33:40]ProducePacketName [15:33:40]name=ofd_packets/00156637 [15:33:40]OFD Sender: To server: pG, [15:33:40]CommunicateWithHost lk.salyk.kg:30040 [15:33:40]ConnectInit lk.salyk.kg [15:33:40]written 0, free lines is 4095 [15:33:40]Connected sock=9 [15:33:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 9F C4 07 01 7D 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 59 5D 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DD 63 02 00 35 04 06 00 6C 22 41 02 71 40 DA A0 6C 7C 12 49 29 3A [15:33:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 42 9E 47 00 0C BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DD 63 02 00 F4 03 04 00 C8 02 1E 67 B6 04 01 00 00 0A A5 33 5D 69 AB B2 8A [15:33:41]CommunicateWithHost err = 0 [15:33:41]CheckOFDResponse [15:33:41]1017 (14) - 77093643461234 [15:33:41]1041 (16) - 0000000000871792 [15:33:41]1040 (4) - 156637 [15:33:41]1012 (4) - 27.10.2024 09:07 [15:33:41]1206 (1) - 0 [15:33:41]OFD Sender: Remove packet 156637 [15:33:41]ProducePacketName [15:33:41]name=ofd_packets/00156637 [15:33:41]NVStorageDeleteData [15:33:41]Write to MH i2c: 01 00 00 A3 66 09 [15:33:41]Write i2c OK [15:33:41]MH_I2C_Read... [15:33:41]Read from MH i2c: 01 [15:33:41]MH_I2C_Read... [15:33:41]Read from MH i2c: 01 07 00 [15:33:41]MH_I2C_Read... [15:33:41]Read from MH i2c: 01 07 00 A3 66 00 00 00 00 00 F1 0C 0D [15:33:41]RasterBufferAndPrint [15:33:41]line [15:33:41]line [15:33:41]line [15:33:41]line [15:33:41]line [15:33:41]written 0, free lines is 3319 [15:33:41]process_action close_receipt done [15:33:41]requested_data is exist [15:33:41]produce_requested_data [15:33:41]requested_item fm.sn is exist - process it [15:33:41]wFMCommunicate request_size=4 [15:33:41]MH_SAM_APDU [15:33:41]CAPDU: 80 11 00 00 [15:33:41]Write to MH i2c: E2 08 00 AA 66 80 11 00 00 00 00 00 00 8A [15:33:41]Write i2c OK [15:33:41]MH_I2C_Read... [15:33:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:33:41]Read from MH i2c: E2 [15:33:41]MH_I2C_Read... [15:33:41]Read from MH i2c: E2 17 00 [15:33:41]MH_I2C_Read... [15:33:41]Read from MH i2c: E2 17 00 AA 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 DF [15:33:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:33:41]wFMCommunicate OK [15:33:41]requested_item fd.num is exist - process it [15:33:41]SAM_PROTO_GetFieldsCounters [15:33:41]wFMCommunicate request_size=4 [15:33:41]MH_SAM_APDU [15:33:41]CAPDU: 80 13 00 00 [15:33:41]Write to MH i2c: E2 08 00 AB 66 80 13 00 00 00 00 00 00 8D [15:33:41]Write i2c OK [15:33:41]MH_I2C_Read... [15:33:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:33:41]Read from MH i2c: E2 [15:33:41]MH_I2C_Read... [15:33:41]Read from MH i2c: E2 62 00 [15:33:41]MH_I2C_Read... [15:33:41]Read from MH i2c: E2 62 00 AB 66 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 DD 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 44 [15:33:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 DD 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:33:41]wFMCommunicate OK [15:33:41]SAM_PROTO_GetFieldsCounters done [15:33:41]requested_item shift.num is exist - process it [15:33:41]requested_item shift.opened is exist - process it [15:33:41]req_shift_opened [15:33:41]FM_GetShiftState [15:33:41]SAM_PROTO_GetShiftState [15:33:41]wFMCommunicate request_size=4 [15:33:41]MH_SAM_APDU [15:33:41]CAPDU: 80 13 01 00 [15:33:41]Write to MH i2c: E2 08 00 AC 66 80 13 01 00 00 00 00 00 8F [15:33:41]Write i2c OK [15:33:41]MH_I2C_Read... [15:33:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:33:41]Read from MH i2c: E2 [15:33:41]MH_I2C_Read... [15:33:41]Read from MH i2c: E2 0E 00 [15:33:41]MH_I2C_Read... [15:33:41]Read from MH i2c: E2 0E 00 AC 66 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 5C [15:33:41]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [15:33:41]wFMCommunicate OK [15:33:41]SAM_PROTO_GetShiftState done [15:33:41]FM_GetShiftState done [15:33:41]req_shift_opened done [15:33:41]requested_item shift.open_date is exist - process it [15:33:41]req_shift_open_date [15:33:41]req_shift_open_date done [15:33:41]produce_requested_data done [15:33:41]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156637,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [15:33:41]process_action_free close_receipt [15:33:41]json_value_free [15:33:41]json_value_free done [15:33:41]process_json_proto returns [15:33:41]Send response to host [15:33:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156637,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [15:33:41]free response buf [15:33:41]execute_script done [15:33:41]execute_script returns [15:33:41]free content buf [15:33:41]Sock 10.Close socket [15:33:41]Sock 10.Thread stoped [15:33:41]OFD Sender: No OFD packet to send [15:33:46]OFD Sender: No OFD packet to send [15:33:51]OFD Sender: No OFD packet to send [15:33:56]OFD Sender: No OFD packet to send [15:34:01]OFD Sender: No OFD packet to send [15:34:06]OFD Sender: No OFD packet to send [15:34:11]OFD Sender: No OFD packet to send [15:34:16]OFD Sender: No OFD packet to send [15:34:21]OFD Sender: No OFD packet to send [15:34:26]OFD Sender: No OFD packet to send [15:34:31]OFD Sender: No OFD packet to send [15:34:36]OFD Sender: No OFD packet to send [15:34:41]OFD Sender: No OFD packet to send [15:34:46]accept exits with 8 [15:34:46]New connection [15:34:46]New thread 3066834276 created [15:34:46]Thread 3066977636 joined [15:34:46]Waiting for new connection... [15:34:46] Sock 8.Parse request [15:34:46]Sock 8.Check first char [15:34:46]Sock 8.First char is OK [15:34:46]request: POST /json_proto HTTP/1.0 [15:34:46]Method: POST [15:34:46]URL: /json_proto [15:34:46]Method is POST - this is cgi request [15:34:46]url: /json_proto [15:34:46]query_string will be loaded in cgi processing [15:34:46]execute_cgi json_proto POST (null) [15:34:46]execute_cgi path=json_proto method=POST [15:34:46]POST find Content-Length [15:34:46]Host: 172.17.63.3:8080 [15:34:46]Content-Length: 676 [15:34:46]Content-Type: application/json [15:34:46] [15:34:46]POST finish read [15:34:46]Found Content-Length = 676 [15:34:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99452", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:34:46]execute_script... [15:34:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99452", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:34:46]POST & json_proto [15:34:46]process_json_proto [15:34:46]json parsed OK: [15:34:46]protocol is kg_v1.0 [15:34:46]action value=close_receipt [15:34:46]process_action close_receipt [15:34:46]cmd_close_receipt [15:34:46]MH_GetDate [15:34:46]Write to MH i2c: F0 00 00 AD 66 02 [15:34:46]Write i2c OK [15:34:46]MH_I2C_Read... [15:34:46]Read from MH i2c: F0 [15:34:46]MH_I2C_Read... [15:34:46]Read from MH i2c: F0 09 00 [15:34:46]MH_I2C_Read... [15:34:46]Read from MH i2c: F0 09 00 AD 66 00 9C 5D 1E 67 50 D1 6C 64 7A [15:34:46]GetLastDocTimeStamp 1730043225 [15:34:46]current date 1730043292 [15:34:46]FM_GetShiftState [15:34:46]SAM_PROTO_GetShiftState [15:34:46]wFMCommunicate request_size=4 [15:34:46]MH_SAM_APDU [15:34:46]CAPDU: 80 13 01 00 [15:34:46]Write to MH i2c: E2 08 00 AE 66 80 13 01 00 00 00 00 00 91 [15:34:46]Write i2c OK [15:34:46]MH_I2C_Read... [15:34:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:34:46]Read from MH i2c: E2 [15:34:46]MH_I2C_Read... [15:34:46]Read from MH i2c: E2 0E 00 [15:34:46]MH_I2C_Read... [15:34:46]Read from MH i2c: E2 0E 00 AE 66 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 5E [15:34:46]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [15:34:46]wFMCommunicate OK [15:34:46]SAM_PROTO_GetShiftState done [15:34:46]FM_GetShiftState done [15:34:46]opened in 1729989044 [15:34:46]opened+sec_in_day 1730075444 [15:34:46]quantity*price = 50041 [15:34:46]sum+1 = 50042 [15:34:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 189 27.10.2024 15:34 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156638 ФПД: 34985523025697 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T153452&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156638&fm=34985523025697&tin=02508201610067®Number=0000000000091693&sum=50000 [15:34:47]StoreToDocumentArchive [15:34:47]shift 537 fd 156638 [15:34:47]save to /storage/0537/doc_00156638 [15:34:47]save last doc name /storage/0537/doc_00156638 to /storage/kkm_last_doc_name [15:34:47]save OK [15:34:47]Clear old archive folders... [15:34:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:34:47]tlvbuf is 016F7D40 [15:34:47]SAM_PROTO_ClearQueue [15:34:47]wFMCommunicate request_size=4 [15:34:47]MH_SAM_APDU [15:34:47]CAPDU: 80 09 00 00 [15:34:47]Write to MH i2c: E2 08 00 BB 66 80 09 00 00 00 00 00 00 93 [15:34:47]Write i2c OK [15:34:47]MH_I2C_Read... [15:34:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:34:47]Read from MH i2c: E2 [15:34:47]MH_I2C_Read... [15:34:47]Read from MH i2c: E2 03 00 [15:34:47]MH_I2C_Read... [15:34:47]Read from MH i2c: E2 03 00 BB 66 00 90 00 95 [15:34:47]RAPDU: 90 00 [15:34:47]wFMCommunicate OK [15:34:47]SAM_PROTO_ClearQueue done [15:34:47]KKMCreateOFDPacket [15:34:47]OFDProtocolAddRootSTLVToBuf [15:34:47]FM_MakeSignedData [15:34:47]FM_MakeSignedData [15:34:47]SAM_PROTO_SignData [15:34:47]wFMCommunicate request_size=4 [15:34:47]MH_SAM_APDU [15:34:47]CAPDU: 80 0D 01 02 [15:34:47]Write to MH i2c: E2 08 00 BC 66 80 0D 01 02 00 00 00 00 9B [15:34:47]Write i2c OK [15:34:47]MH_I2C_Read... [15:34:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:34:47]Read from MH i2c: E2 [15:34:47]MH_I2C_Read... [15:34:47]Read from MH i2c: E2 03 00 [15:34:47]MH_I2C_Read... [15:34:47]Read from MH i2c: E2 03 00 BC 66 00 90 00 96 [15:34:47]RAPDU: 90 00 [15:34:47]wFMCommunicate OK [15:34:47]wFMCommunicate request_size=255 [15:34:47]MH_SAM_APDU [15:34: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 9C 5D 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DE 63 02 00 35 04 06 00 1F [15:34:47]Write to MH i2c: E2 02 01 BD 66 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 9C 5D 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DE 63 02 00 35 04 06 00 1F 00 00 E7 [15:34:47]Write i2c OK [15:34:47]MH_I2C_Read... [15:34:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:34:47]Read from MH i2c: E2 [15:34:47]MH_I2C_Read... [15:34:47]Read from MH i2c: E2 03 00 [15:34:47]MH_I2C_Read... [15:34:47]Read from MH i2c: E2 03 00 BD 66 00 90 00 97 [15:34:47]RAPDU: 90 00 [15:34:47]wFMCommunicate OK [15:34:47]wFMCommunicate request_size=10 [15:34:47]MH_SAM_APDU [15:34:47]CAPDU: 80 0D 02 02 05 D1 B3 AC 17 21 [15:34:47]Write to MH i2c: E2 0D 00 BE 66 80 0D 02 02 05 00 D1 B3 AC 17 21 00 00 10 [15:34:47]Write i2c OK [15:34:47]MH_I2C_Read... [15:34:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:34:47]Read from MH i2c: E2 [15:34:47]MH_I2C_Read... [15:34:47]Read from MH i2c: E2 03 00 [15:34:47]MH_I2C_Read... [15:34:47]Read from MH i2c: E2 03 00 BE 66 00 90 00 98 [15:34:47]RAPDU: 90 00 [15:34:47]wFMCommunicate OK [15:34:47]wFMCommunicate request_size=4 [15:34:47]MH_SAM_APDU [15:34:47]CAPDU: 80 0D 03 02 [15:34:47]Write to MH i2c: E2 08 00 BF 66 80 0D 03 02 00 00 00 00 A0 [15:34:47]Write i2c OK [15:34:47]MH_I2C_Read... [15:34:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:34:47]Read from MH i2c: E2 [15:34:47]MH_I2C_Read... [15:34:47]Read from MH i2c: E2 0B 00 [15:34:47]MH_I2C_Read... [15:34:47]Read from MH i2c: E2 0B 00 BF 66 00 C3 B1 AC DB 0D 87 BA 74 90 00 5E [15:34:47]RAPDU: C3 B1 AC DB 0D 87 BA 74 90 00 [15:34:47]wFMCommunicate OK [15:34:47]SAM_PROTO_SignData done [15:34:47]FM_MakeSignedData done [15:34:47]CreateOFDProtocolMessage [15:34:47]wFMCommunicate request_size=4 [15:34:47]MH_SAM_APDU [15:34:47]CAPDU: 80 11 00 00 [15:34:47]Write to MH i2c: E2 08 00 C0 66 80 11 00 00 00 00 00 00 A0 [15:34:47]Write i2c OK [15:34:47]MH_I2C_Read... [15:34:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:34:47]Read from MH i2c: E2 [15:34:47]MH_I2C_Read... [15:34:47]Read from MH i2c: E2 17 00 [15:34:47]MH_I2C_Read... [15:34:47]Read from MH i2c: E2 17 00 C0 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 F5 [15:34:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:34:47]wFMCommunicate OK [15:34:47]CreateOFDProtocolMessage done [15:34:47]OFDSenderStorePacket 156638 [15:34:47]StoreOFDPacket docnum=156638 [15:34:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 90 29 07 01 B5 40 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 9C 5D 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DE 63 02 00 35 04 06 00 1F D1 B3 AC 17 21 C3 B1 AC DB 0D 87 BA 74 [15:34:47]CheckFolder [15:34:47]dirname=/storage/ofd_packets [15:34:47]CheckFolder done [15:34:47]ProducePacketName [15:34:47]name=ofd_packets/00156638 [15:34:47]NVStorageSaveData ofd_packets/00156638 [15:34:47]File name is /storage/ofd_packets/00156638 [15:34:47]Write 301 bytes [15:34:47]NVStorageSaveData done [15:34:47]OFDSenderStorePacket done [15:34:47]KKMCreateOFDPacket done [15:34:47]NVStorageSaveData kkm_last_timestamp [15:34:47]File name is /storage/kkm_last_timestamp [15:34:47]OFD Sender: Processing packet 156638 [packets to send 31, broken 30] [15:34:47]ProducePacketName [15:34:47]name=ofd_packets/00156638 [15:34:47]OFD Sender: To server: pG, [15:34:47]CommunicateWithHost lk.salyk.kg:30040 [15:34:47]ConnectInit lk.salyk.kg [15:34:47]Write 4 bytes [15:34:47]NVStorageSaveData done [15:34:47]ExternCall_PrintAddStr [15:34:47]wPrintStart [15:34:47]Write to MH i2c: 01 00 00 C1 66 27 [15:34:47]Write i2c OK [15:34:47]MH_I2C_Read... [15:34:47]Read from MH i2c: 01 [15:34:47]MH_I2C_Read... [15:34:47]Read from MH i2c: 01 07 00 [15:34:47]MH_I2C_Read... [15:34:47]Read from MH i2c: 01 07 00 C1 66 00 00 00 00 00 FF 0F 3C [15:34:47]RasterBufferAndPrint [15:34:47]line Счет N : (1)99452 [15:34:47]line ИНН: 02508201610067 [15:34:47]line Контрольно-Кассовый Чек [15:34:47]line ПРОДАЖА [15:34:47]line ТРК (МРК, ГНК) : 31 [15:34:47]line Товар: 2710124130 [15:34:47]line Аи-92-К-5 [15:34:47]line 7.480 * 66.90 [15:34:47]line = 500.41 [15:34:47]line НДС 12% НСП 1% [15:34:47]line > о реализуемом товаре [15:34:47]line ОКРУГЛЕНИЕ: -0.41 [15:34:47]line ИТОГО: 500.00 [15:34:47]line Внесено: 500.00 [15:34:47]line СДАЧА: 0.00 [15:34:47]line НСП 1% : 4.43 [15:34:47]line НДС 12% : 53.14 [15:34:47]line Наличными: 500.00 [15:34:47]line Безнал.: 0.00 [15:34:47]line Место: АЗС № 143 "Партнер Нефть" [15:34:47]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [15:34:47]line СНО: Общий режим [15:34:47]line Чек 189 27.10.2024 15:34 [15:34:47]line Смена: 537 ФФД: 1.0 [15:34:47]line ЗНМ: 0300000096 [15:34:47]line РНМ: 0000000000091693 [15:34:47]line Версия ККМ: 001 [15:34:47]line ФМ: 0000000000871792 [15:34:47]line ФД: 156638 [15:34:47]line ФПД: 34985523025697 [15:34:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T153452&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156638&fm=34985523025697&tin=02508201610067®Number=0000000000091693&sum=50000 [15:34:48]Connected sock=11 [15:34:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 90 29 07 01 B5 40 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 9C 5D 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DE 63 02 00 35 04 06 00 1F D1 B3 AC 17 21 C3 B1 AC DB 0D 87 BA 74 [15:34:48]written 0, free lines is 4095 [15:34:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 27 57 47 00 C9 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 31 37 39 32 10 04 04 00 DE 63 02 00 F4 03 04 00 0B 03 1E 67 B6 04 01 00 00 86 AC FC 9F EB 23 3B 0C [15:34:48]CommunicateWithHost err = 0 [15:34:48]CheckOFDResponse [15:34:48]1017 (14) - 77093643461234 [15:34:48]1041 (16) - 0000000000871792 [15:34:48]1040 (4) - 156638 [15:34:48]1012 (4) - 27.10.2024 09:08 [15:34:48]1206 (1) - 0 [15:34:48]OFD Sender: Remove packet 156638 [15:34:48]ProducePacketName [15:34:48]name=ofd_packets/00156638 [15:34:48]NVStorageDeleteData [15:34:48]Write to MH i2c: 01 00 00 EC 66 52 [15:34:48]Write i2c OK [15:34:48]MH_I2C_Read... [15:34:48]Read from MH i2c: 01 [15:34:48]MH_I2C_Read... [15:34:48]Read from MH i2c: 01 07 00 [15:34:48]MH_I2C_Read... [15:34:48]Read from MH i2c: 01 07 00 EC 66 00 00 00 00 00 DE 0C 43 [15:34:48]RasterBufferAndPrint [15:34:48]line [15:34:48]line [15:34:48]line [15:34:48]line [15:34:48]line [15:34:48]written 0, free lines is 3303 [15:34:48]process_action close_receipt done [15:34:48]requested_data is exist [15:34:48]produce_requested_data [15:34:48]requested_item fm.sn is exist - process it [15:34:48]wFMCommunicate request_size=4 [15:34:48]MH_SAM_APDU [15:34:48]CAPDU: 80 11 00 00 [15:34:48]Write to MH i2c: E2 08 00 F3 66 80 11 00 00 00 00 00 00 D3 [15:34:48]Write i2c OK [15:34:48]MH_I2C_Read... [15:34:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:34:48]Read from MH i2c: E2 [15:34:48]MH_I2C_Read... [15:34:48]Read from MH i2c: E2 17 00 [15:34:48]MH_I2C_Read... [15:34:48]Read from MH i2c: E2 17 00 F3 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 28 [15:34:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:34:48]wFMCommunicate OK [15:34:48]requested_item fd.num is exist - process it [15:34:48]SAM_PROTO_GetFieldsCounters [15:34:48]wFMCommunicate request_size=4 [15:34:48]MH_SAM_APDU [15:34:48]CAPDU: 80 13 00 00 [15:34:48]Write to MH i2c: E2 08 00 F4 66 80 13 00 00 00 00 00 00 D6 [15:34:48]Write i2c OK [15:34:48]MH_I2C_Read... [15:34:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:34:48]Read from MH i2c: E2 [15:34:48]MH_I2C_Read... [15:34:48]Read from MH i2c: E2 62 00 [15:34:48]MH_I2C_Read... [15:34:48]Read from MH i2c: E2 62 00 F4 66 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 DE 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 91 [15:34:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 DE 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:34:48]wFMCommunicate OK [15:34:48]SAM_PROTO_GetFieldsCounters done [15:34:48]requested_item shift.num is exist - process it [15:34:48]requested_item shift.opened is exist - process it [15:34:48]req_shift_opened [15:34:48]FM_GetShiftState [15:34:48]SAM_PROTO_GetShiftState [15:34:48]wFMCommunicate request_size=4 [15:34:48]MH_SAM_APDU [15:34:48]CAPDU: 80 13 01 00 [15:34:48]Write to MH i2c: E2 08 00 F5 66 80 13 01 00 00 00 00 00 D8 [15:34:48]OFD Sender: No OFD packet to send [15:34:48]Write i2c OK [15:34:48]MH_I2C_Read... [15:34:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:34:48]Read from MH i2c: E2 [15:34:48]MH_I2C_Read... [15:34:48]Read from MH i2c: E2 0E 00 [15:34:48]MH_I2C_Read... [15:34:48]Read from MH i2c: E2 0E 00 F5 66 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 A5 [15:34:48]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [15:34:48]wFMCommunicate OK [15:34:48]SAM_PROTO_GetShiftState done [15:34:48]FM_GetShiftState done [15:34:48]req_shift_opened done [15:34:48]requested_item shift.open_date is exist - process it [15:34:48]req_shift_open_date [15:34:48]req_shift_open_date done [15:34:48]produce_requested_data done [15:34:48]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156638,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [15:34:48]process_action_free close_receipt [15:34:48]json_value_free [15:34:48]json_value_free done [15:34:48]process_json_proto returns [15:34:48]Send response to host [15:34:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156638,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [15:34:48]free response buf [15:34:48]execute_script done [15:34:48]execute_script returns [15:34:48]free content buf [15:34:48]Sock 8.Close socket [15:34:48]Sock 8.Thread stoped [15:34:53]OFD Sender: No OFD packet to send [15:34:58]OFD Sender: No OFD packet to send [15:35:03]OFD Sender: No OFD packet to send [15:35:08]OFD Sender: No OFD packet to send [15:35:13]OFD Sender: No OFD packet to send [15:35:18]OFD Sender: No OFD packet to send [15:35:23]OFD Sender: No OFD packet to send [15:35:28]OFD Sender: No OFD packet to send [15:35:33]OFD Sender: No OFD packet to send [15:35:38]OFD Sender: No OFD packet to send [15:35:43]OFD Sender: No OFD packet to send [15:35:48]OFD Sender: No OFD packet to send [15:35:53]OFD Sender: No OFD packet to send [15:35:58]OFD Sender: No OFD packet to send [15:36:03]OFD Sender: No OFD packet to send [15:36:08]OFD Sender: No OFD packet to send [15:36:13]OFD Sender: No OFD packet to send [15:36:18]OFD Sender: No OFD packet to send [15:36:23]OFD Sender: No OFD packet to send [15:36:28]OFD Sender: No OFD packet to send [15:36:33]OFD Sender: No OFD packet to send [15:36:38]OFD Sender: No OFD packet to send [15:36:43]OFD Sender: No OFD packet to send [15:36:48]OFD Sender: No OFD packet to send [15:36:53]OFD Sender: No OFD packet to send [15:36:58]OFD Sender: No OFD packet to send [15:37:03]accept exits with 9 [15:37:03]New connection [15:37:03]New thread 3066977636 created [15:37:03]Thread 3066834276 joined [15:37:03]Waiting for new connection... [15:37:03] Sock 9.Parse request [15:37:03]Sock 9.Check first char [15:37:03]Sock 9.First char is OK [15:37:03]request: POST /json_proto HTTP/1.0 [15:37:03]Method: POST [15:37:03]URL: /json_proto [15:37:03]Method is POST - this is cgi request [15:37:03]url: /json_proto [15:37:03]query_string will be loaded in cgi processing [15:37:03]execute_cgi json_proto POST (null) [15:37:03]execute_cgi path=json_proto method=POST [15:37:03]POST find Content-Length [15:37:03]Host: 172.17.63.3:8080 [15:37:03]Content-Length: 765 [15:37:03]Content-Type: application/json [15:37:03] [15:37:03]POST finish read [15:37:03]Found Content-Length = 765 [15:37:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99453", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:37:03]execute_script... [15:37:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99453", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:37:03]POST & json_proto [15:37:03]process_json_proto [15:37:03]json parsed OK: [15:37:03]protocol is kg_v1.0 [15:37:03]action value=close_receipt [15:37:03]process_action close_receipt [15:37:03]cmd_close_receipt [15:37:03]MH_GetDate [15:37:03]Write to MH i2c: F0 00 00 F6 66 4B [15:37:03]Write i2c OK [15:37:03]MH_I2C_Read... [15:37:03]Read from MH i2c: F0 [15:37:03]MH_I2C_Read... [15:37:03]Read from MH i2c: F0 09 00 [15:37:03]MH_I2C_Read... [15:37:03]Read from MH i2c: F0 09 00 F6 66 00 25 5E 1E 67 50 D1 6C 64 4D [15:37:03]GetLastDocTimeStamp 1730043292 [15:37:03]current date 1730043429 [15:37:03]FM_GetShiftState [15:37:03]SAM_PROTO_GetShiftState [15:37:03]wFMCommunicate request_size=4 [15:37:03]MH_SAM_APDU [15:37:03]CAPDU: 80 13 01 00 [15:37:03]Write to MH i2c: E2 08 00 F7 66 80 13 01 00 00 00 00 00 DA [15:37:03]Write i2c OK [15:37:03]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 F7 66 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 A7 [15:37:03]RAPDU: 09 00 01 B4 89 1D 67 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 1729989044 [15:37:03]opened+sec_in_day 1730075444 [15:37:03]quantity*price = 50041 [15:37:03]sum+1 = 50042 [15:37:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 190 27.10.2024 15:37 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 156639 ФПД: 137397931460158 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T153709&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156639&fm=137397931460158&tin=02508201610067®Number=0000000000091693&sum=50041 [15:37:04]StoreToDocumentArchive [15:37:04]shift 537 fd 156639 [15:37:04]save to /storage/0537/doc_00156639 [15:37:04]save last doc name /storage/0537/doc_00156639 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 016980D0 [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 04 67 80 09 00 00 00 00 00 00 DD [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 04 67 00 90 00 DF [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 05 67 80 0D 01 02 00 00 00 00 E5 [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 05 67 00 90 00 E0 [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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 25 5E 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DF 63 02 00 35 04 06 00 7C [15:37:04]Write to MH i2c: E2 02 01 06 67 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 25 5E 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DF 63 02 00 35 04 06 00 7C 00 00 6C [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 06 67 00 90 00 E1 [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 F6 72 E5 C6 3E [15:37:04]Write to MH i2c: E2 0D 00 07 67 80 0D 02 02 05 00 F6 72 E5 C6 3E 00 00 43 [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 07 67 00 90 00 E2 [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 08 67 80 0D 03 02 00 00 00 00 EA [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 08 67 00 3F 8B 22 1A 88 41 08 49 90 00 0B [15:37:04]RAPDU: 3F 8B 22 1A 88 41 08 49 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 09 67 80 11 00 00 00 00 00 00 EA [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 09 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 3F [15:37:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:37:04]wFMCommunicate OK [15:37:04]CreateOFDProtocolMessage done [15:37:04]OFDSenderStorePacket 156639 [15:37:04]StoreOFDPacket docnum=156639 [15:37:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 BE CE 07 01 5B 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 25 5E 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DF 63 02 00 35 04 06 00 7C F6 72 E5 C6 3E 3F 8B 22 1A 88 41 08 49 [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/00156639 [15:37:04]NVStorageSaveData ofd_packets/00156639 [15:37:04]File name is /storage/ofd_packets/00156639 [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 0A 67 71 [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 0A 67 00 00 00 00 00 FF 0F 86 [15:37:04]RasterBufferAndPrint [15:37:04]line Счет N : (1)99453 [15:37:04]line ИНН: 02508201610067 [15:37:04]line Контрольно-Кассовый Чек [15:37:04]line ПРОДАЖА [15:37:04]line ТРК (МРК, ГНК) : 21 [15:37:04]line Товар: 2710124130 [15:37:04]line Аи-92-К-5 [15:37:04]line 7.480 * 66.90 [15:37:04]line = 500.41 [15:37:04]line НДС 12% НСП 1% [15:37:04]line > о реализуемом товаре [15:37:04]line ИТОГО: 500.41 [15:37:04]line НСП 1% : 4.43 [15:37:04]line НДС 12% : 53.14 [15:37:04]line Наличными: 0.00 [15:37:04]line Безнал.: 500.41 [15:37:04]line Место: АЗС № 143 "Партнер Нефть" [15:37:04]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [15:37:04]line СНО: Общий режим [15:37:04]line Чек 190 27.10.2024 15:37 [15:37:04]line Смена: 537 ФФД: 1.0 [15:37:04]line ЗНМ: 0300000096 [15:37:04]line РНМ: 0000000000091693 [15:37:04]line Версия ККМ: 001 [15:37:04]line Платежная система: Mbank [15:37:04]line ФМ: 0000000000871792 [15:37:04]line ФД: 156639 [15:37:04]line ФПД: 137397931460158 [15:37:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T153709&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156639&fm=137397931460158&tin=02508201610067®Number=0000000000091693&sum=50041 [15:37:04]written 0, free lines is 4095 [15:37:05]OFD Sender: Processing packet 156639 [packets to send 31, broken 30] [15:37:05]ProducePacketName [15:37:05]name=ofd_packets/00156639 [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]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 31 37 39 32 0F 01 00 00 BE CE 07 01 5B 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 25 5E 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 DF 63 02 00 35 04 06 00 7C F6 72 E5 C6 3E 3F 8B 22 1A 88 41 08 49 [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 31 37 39 32 4F 00 00 00 E7 85 47 00 A2 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 31 37 39 32 10 04 04 00 DF 63 02 00 F4 03 04 00 94 03 1E 67 B6 04 01 00 00 22 DB 55 F8 79 F7 61 55 [15:37:05]CommunicateWithHost err = 0 [15:37:05]CheckOFDResponse [15:37:05]1017 (14) - 77093643461234 [15:37:05]1041 (16) - 0000000000871792 [15:37:05]1040 (4) - 156639 [15:37:05]1012 (4) - 27.10.2024 09:10 [15:37:05]1206 (1) - 0 [15:37:05]OFD Sender: Remove packet 156639 [15:37:05]ProducePacketName [15:37:05]name=ofd_packets/00156639 [15:37:05]NVStorageDeleteData [15:37:05]Write to MH i2c: 01 00 00 33 67 9A [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 33 67 00 00 00 00 00 1A 0D C8 [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 3360 [15:37:05]process_action close_receipt done [15:37:05]requested_data is exist [15:37:05]produce_requested_data [15:37:05]requested_item fm.sn is exist - process it [15:37:05]wFMCommunicate request_size=4 [15:37:05]MH_SAM_APDU [15:37:05]CAPDU: 80 11 00 00 [15:37:05]Write to MH i2c: E2 08 00 3A 67 80 11 00 00 00 00 00 00 1B [15:37:05]Write i2c OK [15:37:05]MH_I2C_Read... [15:37:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:37:05]Read from MH i2c: E2 [15:37:05]MH_I2C_Read... [15:37:05]Read from MH i2c: E2 17 00 [15:37:05]MH_I2C_Read... [15:37:05]Read from MH i2c: E2 17 00 3A 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 70 [15:37:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:37:05]wFMCommunicate OK [15:37:05]requested_item fd.num is exist - process it [15:37:05]SAM_PROTO_GetFieldsCounters [15:37:05]wFMCommunicate request_size=4 [15:37:05]MH_SAM_APDU [15:37:05]CAPDU: 80 13 00 00 [15:37:05]Write to MH i2c: E2 08 00 3B 67 80 13 00 00 00 00 00 00 1E [15:37:05]Write i2c OK [15:37:05]MH_I2C_Read... [15:37:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:37:05]Read from MH i2c: E2 [15:37:05]MH_I2C_Read... [15:37:05]Read from MH i2c: E2 62 00 [15:37:05]MH_I2C_Read... [15:37:05]Read from MH i2c: E2 62 00 3B 67 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 DF 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 DD [15:37:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 DF 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:37:05]wFMCommunicate OK [15:37:05]SAM_PROTO_GetFieldsCounters done [15:37:05]requested_item shift.num is exist - process it [15:37:05]requested_item shift.opened is exist - process it [15:37:05]req_shift_opened [15:37:05]FM_GetShiftState [15:37:05]SAM_PROTO_GetShiftState [15:37:05]wFMCommunicate request_size=4 [15:37:05]MH_SAM_APDU [15:37:05]CAPDU: 80 13 01 00 [15:37:05]Write to MH i2c: E2 08 00 3C 67 80 13 01 00 00 00 00 00 20 [15:37:05]Write i2c OK [15:37:05]MH_I2C_Read... [15:37:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:37:05]Read from MH i2c: E2 [15:37:05]MH_I2C_Read... [15:37:05]Read from MH i2c: E2 0E 00 [15:37:05]MH_I2C_Read... [15:37:05]Read from MH i2c: E2 0E 00 3C 67 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 ED [15:37:05]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [15:37:05]wFMCommunicate OK [15:37:05]SAM_PROTO_GetShiftState done [15:37:05]FM_GetShiftState done [15:37:05]req_shift_opened done [15:37:05]requested_item shift.open_date is exist - process it [15:37:05]req_shift_open_date [15:37:05]req_shift_open_date done [15:37:05]produce_requested_data done [15:37:05]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156639,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [15:37:05]process_action_free close_receipt [15:37:05]json_value_free [15:37:05]json_value_free done [15:37:05]process_json_proto returns [15:37:05]Send response to host [15:37:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156639,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [15:37:05]free response buf [15:37:05]execute_script done [15:37:05]execute_script returns [15:37:05]free content buf [15:37:05]Sock 9.Close socket [15:37:05]Sock 9.Thread stoped [15:37:05]OFD Sender: No OFD packet to send [15:37:10]OFD Sender: No OFD packet to send [15:37:15]OFD Sender: No OFD packet to send [15:37: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:55]OFD Sender: No OFD packet to send [15:39:00]OFD Sender: No OFD packet to send [15:39:05]OFD Sender: No OFD packet to send [15:39:10]OFD Sender: No OFD packet to send [15:39:15]OFD Sender: No OFD packet to send [15:39:20]OFD Sender: No OFD packet to send [15:39:25]OFD Sender: No OFD packet to send [15:39:30]OFD Sender: No OFD packet to send [15:39:35]OFD Sender: No OFD packet to send [15:39:40]OFD Sender: No OFD packet to send [15:39:45]OFD Sender: No OFD packet to send [15:39:50]OFD Sender: No OFD packet to send [15:39:55]OFD Sender: No OFD packet to send [15:40:01]OFD Sender: No OFD packet to send [15:40:06]OFD Sender: No OFD packet to send [15:40:11]OFD Sender: No OFD packet to send [15:40:16]OFD Sender: No OFD packet to send [15:40:21]OFD Sender: No OFD packet to send [15:40:26]OFD Sender: No OFD packet to send [15:40:31]OFD Sender: No OFD packet to send [15:40:36]OFD Sender: No OFD packet to send [15:40:41]OFD Sender: No OFD packet to send [15:40:46]OFD Sender: No OFD packet to send [15:40:51]OFD Sender: No OFD packet to send [15:40:56]OFD Sender: No OFD packet to send [15:41:01]OFD Sender: No OFD packet to send [15:41:06]OFD Sender: No OFD packet to send [15:41:11]OFD Sender: No OFD packet to send [15:41:11]accept exits with 8 [15:41:11]New connection [15:41:11]New thread 3066834276 created [15:41:11]Thread 3066977636 joined [15:41:11]Waiting for new connection... [15:41:11] Sock 8.Parse request [15:41:11]Sock 8.Check first char [15:41:11]Sock 8.First char is OK [15:41:11]request: POST /json_proto HTTP/1.0 [15:41:11]Method: POST [15:41:11]URL: /json_proto [15:41:11]Method is POST - this is cgi request [15:41:11]url: /json_proto [15:41:11]query_string will be loaded in cgi processing [15:41:11]execute_cgi json_proto POST (null) [15:41:11]execute_cgi path=json_proto method=POST [15:41:11]POST find Content-Length [15:41:11]Host: 172.17.63.3:8080 [15:41:11]Content-Length: 676 [15:41:11]Content-Type: application/json [15:41:11] [15:41:11]POST finish read [15:41:11]Found Content-Length = 676 [15:41:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99454", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:41:11]execute_script... [15: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)99454", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:41:11]POST & json_proto [15:41:11]process_json_proto [15:41:11]json parsed OK: [15:41:11]protocol is kg_v1.0 [15:41:11]action value=close_receipt [15:41:11]process_action close_receipt [15:41:11]cmd_close_receipt [15:41:11]MH_GetDate [15:41:11]Write to MH i2c: F0 00 00 3D 67 93 [15:41:11]Write i2c OK [15:41:11]MH_I2C_Read... [15:41:11]Read from MH i2c: F0 [15:41:11]MH_I2C_Read... [15:41:11]Read from MH i2c: F0 09 00 [15:41:11]MH_I2C_Read... [15:41:11]Read from MH i2c: F0 09 00 3D 67 00 1D 5F 1E 67 50 D1 6C 64 8E [15:41:11]GetLastDocTimeStamp 1730043429 [15:41:11]current date 1730043677 [15:41:11]FM_GetShiftState [15:41:11]SAM_PROTO_GetShiftState [15:41:11]wFMCommunicate request_size=4 [15:41:11]MH_SAM_APDU [15:41:11]CAPDU: 80 13 01 00 [15:41:11]Write to MH i2c: E2 08 00 3E 67 80 13 01 00 00 00 00 00 22 [15:41:11]Write i2c OK [15:41:11]MH_I2C_Read... [15:41:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:41:11]Read from MH i2c: E2 [15:41:11]MH_I2C_Read... [15:41:11]Read from MH i2c: E2 0E 00 [15:41:11]MH_I2C_Read... [15:41:11]Read from MH i2c: E2 0E 00 3E 67 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 EF [15:41:11]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [15:41:11]wFMCommunicate OK [15:41:11]SAM_PROTO_GetShiftState done [15:41:11]FM_GetShiftState done [15:41:11]opened in 1729989044 [15:41:11]opened+sec_in_day 1730075444 [15:41:11]quantity*price = 50041 [15:41:11]sum+1 = 50042 [15:41:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 191 27.10.2024 15:41 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156640 ФПД: 160399749538037 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T154117&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156640&fm=160399749538037&tin=02508201610067®Number=0000000000091693&sum=50000 [15:41:12]StoreToDocumentArchive [15:41:12]shift 537 fd 156640 [15:41:12]save to /storage/0537/doc_00156640 [15:41:12]save last doc name /storage/0537/doc_00156640 to /storage/kkm_last_doc_name [15:41:12]save OK [15:41:12]Clear old archive folders... [15:41:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:41:12]tlvbuf is 01857770 [15:41:12]SAM_PROTO_ClearQueue [15:41:12]wFMCommunicate request_size=4 [15:41:12]MH_SAM_APDU [15:41:12]CAPDU: 80 09 00 00 [15:41:12]Write to MH i2c: E2 08 00 4B 67 80 09 00 00 00 00 00 00 24 [15:41:12]Write i2c OK [15:41:12]MH_I2C_Read... [15:41:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:41:12]Read from MH i2c: E2 [15:41:12]MH_I2C_Read... [15:41:12]Read from MH i2c: E2 03 00 [15:41:12]MH_I2C_Read... [15:41:12]Read from MH i2c: E2 03 00 4B 67 00 90 00 26 [15:41:12]RAPDU: 90 00 [15:41:12]wFMCommunicate OK [15:41:12]SAM_PROTO_ClearQueue done [15:41:12]KKMCreateOFDPacket [15:41:12]OFDProtocolAddRootSTLVToBuf [15:41:12]FM_MakeSignedData [15:41:12]FM_MakeSignedData [15:41:12]SAM_PROTO_SignData [15:41:12]wFMCommunicate request_size=4 [15:41:12]MH_SAM_APDU [15:41:12]CAPDU: 80 0D 01 02 [15:41:12]Write to MH i2c: E2 08 00 4C 67 80 0D 01 02 00 00 00 00 2C [15:41:12]Write i2c OK [15:41:12]MH_I2C_Read... [15:41:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:41:12]Read from MH i2c: E2 [15:41:12]MH_I2C_Read... [15:41:12]Read from MH i2c: E2 03 00 [15:41:12]MH_I2C_Read... [15:41:12]Read from MH i2c: E2 03 00 4C 67 00 90 00 27 [15:41:12]RAPDU: 90 00 [15:41:12]wFMCommunicate OK [15:41:12]wFMCommunicate request_size=255 [15:41:12]MH_SAM_APDU [15: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 1D 5F 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E0 63 02 00 35 04 06 00 91 [15:41:12]Write to MH i2c: E2 02 01 4D 67 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 1D 5F 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E0 63 02 00 35 04 06 00 91 00 00 71 [15:41:12]Write i2c OK [15:41:12]MH_I2C_Read... [15:41:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:41:12]Read from MH i2c: E2 [15:41:12]MH_I2C_Read... [15:41:12]Read from MH i2c: E2 03 00 [15:41:12]MH_I2C_Read... [15:41:12]Read from MH i2c: E2 03 00 4D 67 00 90 00 28 [15:41:12]RAPDU: 90 00 [15:41:12]wFMCommunicate OK [15:41:12]wFMCommunicate request_size=10 [15:41:12]MH_SAM_APDU [15:41:12]CAPDU: 80 0D 02 02 05 E1 FA 17 E0 F5 [15:41:12]Write to MH i2c: E2 0D 00 4E 67 80 0D 02 02 05 00 E1 FA 17 E0 F5 00 00 00 [15:41:12]Write i2c OK [15:41:12]MH_I2C_Read... [15:41:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:41:12]Read from MH i2c: E2 [15:41:12]MH_I2C_Read... [15:41:12]Read from MH i2c: E2 03 00 [15:41:12]MH_I2C_Read... [15:41:12]Read from MH i2c: E2 03 00 4E 67 00 90 00 29 [15:41:12]RAPDU: 90 00 [15:41:12]wFMCommunicate OK [15:41:12]wFMCommunicate request_size=4 [15:41:12]MH_SAM_APDU [15:41:12]CAPDU: 80 0D 03 02 [15:41:12]Write to MH i2c: E2 08 00 4F 67 80 0D 03 02 00 00 00 00 31 [15:41:12]Write i2c OK [15:41:12]MH_I2C_Read... [15:41:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:41:12]Read from MH i2c: E2 [15:41:12]MH_I2C_Read... [15:41:12]Read from MH i2c: E2 0B 00 [15:41:12]MH_I2C_Read... [15:41:12]Read from MH i2c: E2 0B 00 4F 67 00 BC 38 5A D4 1B 40 A1 FF 90 00 4F [15:41:12]RAPDU: BC 38 5A D4 1B 40 A1 FF 90 00 [15:41:12]wFMCommunicate OK [15:41:12]SAM_PROTO_SignData done [15:41:12]FM_MakeSignedData done [15:41:12]CreateOFDProtocolMessage [15:41:12]wFMCommunicate request_size=4 [15:41:12]MH_SAM_APDU [15:41:12]CAPDU: 80 11 00 00 [15:41:12]Write to MH i2c: E2 08 00 50 67 80 11 00 00 00 00 00 00 31 [15:41:12]Write i2c OK [15:41:12]MH_I2C_Read... [15:41:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:41:12]Read from MH i2c: E2 [15:41:12]MH_I2C_Read... [15:41:12]Read from MH i2c: E2 17 00 [15:41:12]MH_I2C_Read... [15:41:12]Read from MH i2c: E2 17 00 50 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 86 [15:41:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:41:12]wFMCommunicate OK [15:41:12]CreateOFDProtocolMessage done [15:41:12]OFDSenderStorePacket 156640 [15:41:12]StoreOFDPacket docnum=156640 [15:41:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 BC 24 07 01 EC 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 1D 5F 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E0 63 02 00 35 04 06 00 91 E1 FA 17 E0 F5 BC 38 5A D4 1B 40 A1 FF [15:41:12]CheckFolder [15:41:12]dirname=/storage/ofd_packets [15:41:12]CheckFolder done [15:41:12]ProducePacketName [15:41:12]name=ofd_packets/00156640 [15:41:12]NVStorageSaveData ofd_packets/00156640 [15:41:12]File name is /storage/ofd_packets/00156640 [15:41:12]Write 301 bytes [15:41:12]NVStorageSaveData done [15:41:12]OFDSenderStorePacket done [15:41:12]KKMCreateOFDPacket done [15:41:12]NVStorageSaveData kkm_last_timestamp [15:41:12]File name is /storage/kkm_last_timestamp [15:41:12]Write 4 bytes [15:41:12]NVStorageSaveData done [15:41:12]ExternCall_PrintAddStr [15:41:12]wPrintStart [15:41:12]Write to MH i2c: 01 00 00 51 67 B8 [15:41:12]Write i2c OK [15:41:12]MH_I2C_Read... [15:41:12]Read from MH i2c: 01 [15:41:12]MH_I2C_Read... [15:41:12]Read from MH i2c: 01 07 00 [15:41:12]MH_I2C_Read... [15:41:12]Read from MH i2c: 01 07 00 51 67 00 00 00 00 00 FF 0F CD [15:41:12]RasterBufferAndPrint [15:41:12]line Счет N : (1)99454 [15:41:12]line ИНН: 02508201610067 [15:41:12]line Контрольно-Кассовый Чек [15:41:12]line ПРОДАЖА [15:41:12]line ТРК (МРК, ГНК) : 11 [15:41:12]line Товар: 2710124130 [15:41:12]line Аи-92-К-5 [15:41:12]line 7.480 * 66.90 [15:41:12]line = 500.41 [15:41:12]line НДС 12% НСП 1% [15:41:12]line > о реализуемом товаре [15:41:12]line ОКРУГЛЕНИЕ: -0.41 [15:41:12]line ИТОГО: 500.00 [15:41:12]line Внесено: 500.00 [15:41:12]line СДАЧА: 0.00 [15:41:12]line НСП 1% : 4.43 [15:41:12]line НДС 12% : 53.14 [15:41:12]line Наличными: 500.00 [15:41:12]line Безнал.: 0.00 [15:41:12]line Место: АЗС № 143 "Партнер Нефть" [15:41:12]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [15:41:12]line СНО: Общий режим [15:41:12]line Чек 191 27.10.2024 15:41 [15:41:12]line Смена: 537 ФФД: 1.0 [15:41:12]line ЗНМ: 0300000096 [15:41:12]line РНМ: 0000000000091693 [15:41:12]line Версия ККМ: 001 [15:41:12]line ФМ: 0000000000871792 [15:41:12]line ФД: 156640 [15:41:12]line ФПД: 160399749538037 [15:41:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T154117&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156640&fm=160399749538037&tin=02508201610067®Number=0000000000091693&sum=50000 [15:41:13]OFD Sender: Processing packet 156640 [packets to send 31, broken 30] [15:41:13]ProducePacketName [15:41:13]name=ofd_packets/00156640 [15:41:13]OFD Sender: To server: pG, [15:41:13]CommunicateWithHost lk.salyk.kg:30040 [15:41:13]ConnectInit lk.salyk.kg [15:41:13]written 0, free lines is 4095 [15:41:13]Connected sock=10 [15: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 31 37 39 32 0F 01 00 00 BC 24 07 01 EC 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 1D 5F 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E0 63 02 00 35 04 06 00 91 E1 FA 17 E0 F5 BC 38 5A D4 1B 40 A1 FF [15:41:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 DA 65 47 00 B0 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E0 63 02 00 F4 03 04 00 8C 04 1E 67 B6 04 01 00 00 20 E0 9A 18 4E 8B EE 96 [15:41:13]CommunicateWithHost err = 0 [15:41:13]CheckOFDResponse [15:41:13]1017 (14) - 77093643461234 [15:41:13]1041 (16) - 0000000000871792 [15:41:13]1040 (4) - 156640 [15:41:13]1012 (4) - 27.10.2024 09:14 [15:41:13]1206 (1) - 0 [15:41:13]OFD Sender: Remove packet 156640 [15:41:13]ProducePacketName [15:41:13]name=ofd_packets/00156640 [15:41:13]NVStorageDeleteData [15:41:13]Write to MH i2c: 01 00 00 7C 67 E3 [15:41:13]Write i2c OK [15:41:13]MH_I2C_Read... [15:41:13]Read from MH i2c: 01 [15:41:13]MH_I2C_Read... [15:41:13]Read from MH i2c: 01 07 00 [15:41:13]MH_I2C_Read... [15:41:13]Read from MH i2c: 01 07 00 7C 67 00 00 00 00 00 E4 0C DA [15:41:13]RasterBufferAndPrint [15:41:13]line [15:41:13]line [15:41:13]line [15:41:13]line [15:41:13]line [15:41:13]written 0, free lines is 3306 [15:41:13]process_action close_receipt done [15:41:13]requested_data is exist [15:41:13]produce_requested_data [15:41:13]requested_item fm.sn is exist - process it [15:41:13]wFMCommunicate request_size=4 [15:41:13]MH_SAM_APDU [15:41:13]CAPDU: 80 11 00 00 [15:41:13]Write to MH i2c: E2 08 00 83 67 80 11 00 00 00 00 00 00 64 [15:41:13]Write i2c OK [15:41:13]MH_I2C_Read... [15:41:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:41:13]Read from MH i2c: E2 [15:41:13]MH_I2C_Read... [15:41:13]Read from MH i2c: E2 17 00 [15:41:13]MH_I2C_Read... [15:41:13]Read from MH i2c: E2 17 00 83 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 B9 [15:41:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:41:13]wFMCommunicate OK [15:41:13]requested_item fd.num is exist - process it [15:41:13]SAM_PROTO_GetFieldsCounters [15:41:13]wFMCommunicate request_size=4 [15:41:13]MH_SAM_APDU [15:41:13]CAPDU: 80 13 00 00 [15:41:13]Write to MH i2c: E2 08 00 84 67 80 13 00 00 00 00 00 00 67 [15:41:13]Write i2c OK [15:41:13]MH_I2C_Read... [15:41:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:41:13]Read from MH i2c: E2 [15:41:13]MH_I2C_Read... [15:41:13]Read from MH i2c: E2 62 00 [15:41:13]MH_I2C_Read... [15:41:13]Read from MH i2c: E2 62 00 84 67 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E0 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 2A [15:41:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E0 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:41:13]wFMCommunicate OK [15:41:13]SAM_PROTO_GetFieldsCounters done [15:41:13]requested_item shift.num is exist - process it [15:41:13]requested_item shift.opened is exist - process it [15:41:13]req_shift_opened [15:41:13]FM_GetShiftState [15:41:13]SAM_PROTO_GetShiftState [15:41:13]wFMCommunicate request_size=4 [15:41:13]MH_SAM_APDU [15:41:13]CAPDU: 80 13 01 00 [15:41:13]Write to MH i2c: E2 08 00 85 67 80 13 01 00 00 00 00 00 69 [15:41:13]Write i2c OK [15:41:13]MH_I2C_Read... [15:41:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:41:13]Read from MH i2c: E2 [15:41:13]MH_I2C_Read... [15:41:13]Read from MH i2c: E2 0E 00 [15:41:13]MH_I2C_Read... [15:41:13]Read from MH i2c: E2 0E 00 85 67 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 36 [15:41:13]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [15:41:13]wFMCommunicate OK [15:41:13]SAM_PROTO_GetShiftState done [15:41:13]FM_GetShiftState done [15:41:13]req_shift_opened done [15:41:13]requested_item shift.open_date is exist - process it [15:41:13]req_shift_open_date [15:41:13]req_shift_open_date done [15:41:13]produce_requested_data done [15:41:13]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156640,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [15:41:13]process_action_free close_receipt [15:41:13]json_value_free [15:41:13]json_value_free done [15:41:13]process_json_proto returns [15:41:13]Send response to host [15:41:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156640,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [15:41:13]free response buf [15:41:13]execute_script done [15:41:13]execute_script returns [15:41:13]free content buf [15:41:13]Sock 8.Close socket [15:41:13]Sock 8.Thread stoped [15:41:14]OFD Sender: No OFD packet to send [15:41:19]OFD Sender: No OFD packet to send [15:41:24]OFD Sender: No OFD packet to send [15:41:29]OFD Sender: No OFD packet to send [15:41:34]OFD Sender: No OFD packet to send [15:41:39]OFD Sender: No OFD packet to send [15:41:44]OFD Sender: No OFD packet to send [15:41:49]OFD Sender: No OFD packet to send [15:41:54]OFD Sender: No OFD packet to send [15:41:59]OFD Sender: No OFD packet to send [15:42:04]OFD Sender: No OFD packet to send [15:42:09]OFD Sender: No OFD packet to send [15:42:14]OFD Sender: No OFD packet to send [15:42:19]OFD Sender: No OFD packet to send [15:42:24]OFD Sender: No OFD packet to send [15:42:29]OFD Sender: No OFD packet to send [15:42:34]OFD Sender: No OFD packet to send [15:42:39]OFD Sender: No OFD packet to send [15:42:44]OFD Sender: No OFD packet to send [15:42:49]OFD Sender: No OFD packet to send [15:42:54]OFD Sender: No OFD packet to send [15:42:59]OFD Sender: No OFD packet to send [15:43:04]OFD Sender: No OFD packet to send [15:43:09]OFD Sender: No OFD packet to send [15:43:14]OFD Sender: No OFD packet to send [15:43:19]OFD Sender: No OFD packet to send [15:43:24]OFD Sender: No OFD packet to send [15:43:29]OFD Sender: No OFD packet to send [15:43:34]OFD Sender: No OFD packet to send [15:43:39]OFD Sender: No OFD packet to send [15:43:44]OFD Sender: No OFD packet to send [15:43:49]OFD Sender: No OFD packet to send [15:43:54]OFD Sender: No OFD packet to send [15:43:58]accept exits with 9 [15:43:58]New connection [15:43:58]New thread 3066977636 created [15:43:58]Thread 3066834276 joined [15:43:58]Waiting for new connection... [15:43:58] Sock 9.Parse request [15:43:58]Sock 9.Check first char [15:43:58]Sock 9.First char is OK [15:43:58]request: POST /json_proto HTTP/1.0 [15:43:58]Method: POST [15:43:58]URL: /json_proto [15:43:58]Method is POST - this is cgi request [15:43:58]url: /json_proto [15:43:58]query_string will be loaded in cgi processing [15:43:58]execute_cgi json_proto POST (null) [15:43:58]execute_cgi path=json_proto method=POST [15:43:58]POST find Content-Length [15:43:58]Host: 172.17.63.3:8080 [15:43:58]Content-Length: 676 [15:43:58]Content-Type: application/json [15:43:58] [15:43:58]POST finish read [15:43:58]Found Content-Length = 676 [15:43:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99455", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "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" ] } } [15:43:58]execute_script... [15:43: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)99455", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "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" ] } } [15:43:58]POST & json_proto [15:43:58]process_json_proto [15:43:58]json parsed OK: [15:43:58]protocol is kg_v1.0 [15:43:58]action value=close_receipt [15:43:58]process_action close_receipt [15:43:58]cmd_close_receipt [15:43:58]MH_GetDate [15:43:58]Write to MH i2c: F0 00 00 86 67 DC [15:43:58]Write i2c OK [15:43:58]MH_I2C_Read... [15:43:58]Read from MH i2c: F0 [15:43:58]MH_I2C_Read... [15:43:58]Read from MH i2c: F0 09 00 [15:43:58]MH_I2C_Read... [15:43:58]Read from MH i2c: F0 09 00 86 67 00 C5 5F 1E 67 50 D1 6C 64 7F [15:43:58]GetLastDocTimeStamp 1730043677 [15:43:58]current date 1730043845 [15:43:58]FM_GetShiftState [15:43:58]SAM_PROTO_GetShiftState [15:43:58]wFMCommunicate request_size=4 [15:43:58]MH_SAM_APDU [15:43:58]CAPDU: 80 13 01 00 [15:43:58]Write to MH i2c: E2 08 00 87 67 80 13 01 00 00 00 00 00 6B [15:43:58]Write i2c OK [15:43:58]MH_I2C_Read... [15:43:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:43:59]Read from MH i2c: E2 [15:43:59]MH_I2C_Read... [15:43:59]Read from MH i2c: E2 0E 00 [15:43:59]MH_I2C_Read... [15:43:59]Read from MH i2c: E2 0E 00 87 67 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 38 [15:43:59]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [15:43:59]wFMCommunicate OK [15:43:59]SAM_PROTO_GetShiftState done [15:43:59]FM_GetShiftState done [15:43:59]opened in 1729989044 [15:43:59]opened+sec_in_day 1730075444 [15:43:59]quantity*price = 20003 [15:43:59]sum+1 = 20004 [15:43:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 192 27.10.2024 15:44 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156641 ФПД: 28194712120051 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T154405&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156641&fm=28194712120051&tin=02508201610067®Number=0000000000091693&sum=20000 [15:44:00]StoreToDocumentArchive [15:44:00]shift 537 fd 156641 [15:44:00]save to /storage/0537/doc_00156641 [15:44:00]save last doc name /storage/0537/doc_00156641 to /storage/kkm_last_doc_name [15:44:00]save OK [15:44:00]Clear old archive folders... [15:44:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:44:00]tlvbuf is 0182BE10 [15:44:00]SAM_PROTO_ClearQueue [15:44:00]wFMCommunicate request_size=4 [15:44:00]MH_SAM_APDU [15:44:00]CAPDU: 80 09 00 00 [15:44:00]Write to MH i2c: E2 08 00 94 67 80 09 00 00 00 00 00 00 6D [15:44:00]Write i2c OK [15:44:00]MH_I2C_Read... [15:44:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:44:00]Read from MH i2c: E2 [15:44:00]MH_I2C_Read... [15:44:00]Read from MH i2c: E2 03 00 [15:44:00]MH_I2C_Read... [15:44:00]Read from MH i2c: E2 03 00 94 67 00 90 00 6F [15:44:00]RAPDU: 90 00 [15:44:00]wFMCommunicate OK [15:44:00]SAM_PROTO_ClearQueue done [15:44:00]KKMCreateOFDPacket [15:44:00]OFDProtocolAddRootSTLVToBuf [15:44:00]FM_MakeSignedData [15:44:00]FM_MakeSignedData [15:44:00]SAM_PROTO_SignData [15:44:00]wFMCommunicate request_size=4 [15:44:00]MH_SAM_APDU [15:44:00]CAPDU: 80 0D 01 02 [15:44:00]Write to MH i2c: E2 08 00 95 67 80 0D 01 02 00 00 00 00 75 [15:44:00]Write i2c OK [15:44:00]MH_I2C_Read... [15:44:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:44:00]Read from MH i2c: E2 [15:44:00]MH_I2C_Read... [15:44:00]Read from MH i2c: E2 03 00 [15:44:00]MH_I2C_Read... [15:44:00]Read from MH i2c: E2 03 00 95 67 00 90 00 70 [15:44:00]RAPDU: 90 00 [15:44:00]wFMCommunicate OK [15:44:00]wFMCommunicate request_size=255 [15:44:00]MH_SAM_APDU [15:44: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 C0 00 00 00 F4 03 04 00 C5 5F 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E1 63 02 00 35 04 06 00 19 [15:44:00]Write to MH i2c: E2 02 01 96 67 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 C0 00 00 00 F4 03 04 00 C5 5F 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E1 63 02 00 35 04 06 00 19 00 00 AE [15:44:00]Write i2c OK [15:44:00]MH_I2C_Read... [15:44:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:44:00]Read from MH i2c: E2 [15:44:00]MH_I2C_Read... [15:44:00]Read from MH i2c: E2 03 00 [15:44:00]MH_I2C_Read... [15:44:00]Read from MH i2c: E2 03 00 96 67 00 90 00 71 [15:44:00]RAPDU: 90 00 [15:44:00]wFMCommunicate OK [15:44:00]wFMCommunicate request_size=10 [15:44:00]MH_SAM_APDU [15:44:00]CAPDU: 80 0D 02 02 05 A4 97 CC EA F3 [15:44:00]Write to MH i2c: E2 0D 00 97 67 80 0D 02 02 05 00 A4 97 CC EA F3 00 00 66 [15:44:00]Write i2c OK [15:44:00]MH_I2C_Read... [15:44:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:44:00]Read from MH i2c: E2 [15:44:00]MH_I2C_Read... [15:44:00]Read from MH i2c: E2 03 00 [15:44:00]MH_I2C_Read... [15:44:00]Read from MH i2c: E2 03 00 97 67 00 90 00 72 [15:44:00]RAPDU: 90 00 [15:44:00]wFMCommunicate OK [15:44:00]wFMCommunicate request_size=4 [15:44:00]MH_SAM_APDU [15:44:00]CAPDU: 80 0D 03 02 [15:44:00]Write to MH i2c: E2 08 00 98 67 80 0D 03 02 00 00 00 00 7A [15:44:00]Write i2c OK [15:44:00]MH_I2C_Read... [15:44:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:44:00]Read from MH i2c: E2 [15:44:00]MH_I2C_Read... [15:44:00]Read from MH i2c: E2 0B 00 [15:44:00]MH_I2C_Read... [15:44:00]Read from MH i2c: E2 0B 00 98 67 00 32 B1 37 6E B1 B9 B2 78 90 00 97 [15:44:00]RAPDU: 32 B1 37 6E B1 B9 B2 78 90 00 [15:44:00]wFMCommunicate OK [15:44:00]SAM_PROTO_SignData done [15:44:00]FM_MakeSignedData done [15:44:00]CreateOFDProtocolMessage [15:44:00]wFMCommunicate request_size=4 [15:44:00]MH_SAM_APDU [15:44:00]CAPDU: 80 11 00 00 [15:44:00]Write to MH i2c: E2 08 00 99 67 80 11 00 00 00 00 00 00 7A [15:44:00]Write i2c OK [15:44:00]MH_I2C_Read... [15:44:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:44:00]Read from MH i2c: E2 [15:44:00]MH_I2C_Read... [15:44:00]Read from MH i2c: E2 17 00 [15:44:00]MH_I2C_Read... [15:44:00]Read from MH i2c: E2 17 00 99 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 CF [15:44:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:44:00]wFMCommunicate OK [15:44:00]CreateOFDProtocolMessage done [15:44:00]OFDSenderStorePacket 156641 [15:44:00]StoreOFDPacket docnum=156641 [15:44:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 4B 19 07 01 1B CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 C0 00 00 00 F4 03 04 00 C5 5F 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E1 63 02 00 35 04 06 00 19 A4 97 CC EA F3 32 B1 37 6E B1 B9 B2 78 [15:44:00]CheckFolder [15:44:00]dirname=/storage/ofd_packets [15:44:00]CheckFolder done [15:44:00]ProducePacketName [15:44:00]name=ofd_packets/00156641 [15:44:00]NVStorageSaveData ofd_packets/00156641 [15:44:00]File name is /storage/ofd_packets/00156641 [15:44:00]Write 301 bytes [15:44:00]NVStorageSaveData done [15:44:00]OFDSenderStorePacket done [15:44:00]KKMCreateOFDPacket done [15:44:00]NVStorageSaveData kkm_last_timestamp [15:44:00]File name is /storage/kkm_last_timestamp [15:44:00]Write 4 bytes [15:44:00]NVStorageSaveData done [15:44:00]ExternCall_PrintAddStr [15:44:00]wPrintStart [15:44:00]Write to MH i2c: 01 00 00 9A 67 01 [15:44:00]Write i2c OK [15:44:00]MH_I2C_Read... [15:44:00]Read from MH i2c: 01 [15:44:00]MH_I2C_Read... [15:44:00]Read from MH i2c: 01 07 00 [15:44:00]MH_I2C_Read... [15:44:00]Read from MH i2c: 01 07 00 9A 67 00 00 00 00 00 FF 0F 16 [15:44:00]RasterBufferAndPrint [15:44:00]line Счет N : (1)99455 [15:44:00]line ИНН: 02508201610067 [15:44:00]line Контрольно-Кассовый Чек [15:44:00]line ПРОДАЖА [15:44:00]line ТРК (МРК, ГНК) : 11 [15:44:00]line Товар: 2710124130 [15:44:00]line Аи-92-К-5 [15:44:00]line 2.990 * 66.90 [15:44:00]line = 200.03 [15:44:00]line НДС 12% НСП 1% [15:44:00]line > о реализуемом товаре [15:44:00]line ОКРУГЛЕНИЕ: -0.03 [15:44:00]line ИТОГО: 200.00 [15:44:00]line Внесено: 200.00 [15:44:00]line СДАЧА: 0.00 [15:44:00]line НСП 1% : 1.77 [15:44:00]line НДС 12% : 21.24 [15:44:00]line Наличными: 200.00 [15:44:00]line Безнал.: 0.00 [15:44:00]line Место: АЗС № 143 "Партнер Нефть" [15:44:00]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [15:44:00]line СНО: Общий режим [15:44:00]line Чек 192 27.10.2024 15:44 [15:44:00]line Смена: 537 ФФД: 1.0 [15:44:00]line ЗНМ: 0300000096 [15:44:00]line РНМ: 0000000000091693 [15:44:00]line Версия ККМ: 001 [15:44:00]line ФМ: 0000000000871792 [15:44:00]line ФД: 156641 [15:44:00]line ФПД: 28194712120051 [15:44:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T154405&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156641&fm=28194712120051&tin=02508201610067®Number=0000000000091693&sum=20000 [15:44:01]OFD Sender: Processing packet 156641 [packets to send 31, broken 30] [15:44:01]ProducePacketName [15:44:01]name=ofd_packets/00156641 [15:44:01]OFD Sender: To server: pG, [15:44:01]CommunicateWithHost lk.salyk.kg:30040 [15:44:01]ConnectInit lk.salyk.kg [15:44:01]written 0, free lines is 4095 [15:44:01]Connected sock=10 [15:44:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 4B 19 07 01 1B CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 C0 00 00 00 F4 03 04 00 C5 5F 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E1 63 02 00 35 04 06 00 19 A4 97 CC EA F3 32 B1 37 6E B1 B9 B2 78 [15:44:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 8E 51 47 00 9A D6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E1 63 02 00 F4 03 04 00 34 05 1E 67 B6 04 01 00 00 22 87 AD A2 12 CE C1 16 [15:44:01]CommunicateWithHost err = 0 [15:44:01]CheckOFDResponse [15:44:01]1017 (14) - 77093643461234 [15:44:01]1041 (16) - 0000000000871792 [15:44:01]1040 (4) - 156641 [15:44:01]1012 (4) - 27.10.2024 09:17 [15:44:01]1206 (1) - 0 [15:44:01]OFD Sender: Remove packet 156641 [15:44:01]ProducePacketName [15:44:01]name=ofd_packets/00156641 [15:44:01]NVStorageDeleteData [15:44:01]Write to MH i2c: 01 00 00 C5 67 2C [15:44:01]Write i2c OK [15:44:01]MH_I2C_Read... [15:44:01]Read from MH i2c: 01 [15:44:01]MH_I2C_Read... [15:44:01]Read from MH i2c: 01 07 00 [15:44:01]MH_I2C_Read... [15:44:01]Read from MH i2c: 01 07 00 C5 67 00 00 00 00 00 E4 0C 23 [15:44:01]RasterBufferAndPrint [15:44:01]line [15:44:01]line [15:44:01]line [15:44:01]line [15:44:01]line [15:44:01]written 0, free lines is 3306 [15:44:01]process_action close_receipt done [15:44:01]requested_data is exist [15:44:01]produce_requested_data [15:44:01]requested_item fm.sn is exist - process it [15:44:01]wFMCommunicate request_size=4 [15:44:01]MH_SAM_APDU [15:44:01]CAPDU: 80 11 00 00 [15:44:01]Write to MH i2c: E2 08 00 CC 67 80 11 00 00 00 00 00 00 AD [15:44:01]Write i2c OK [15:44:01]MH_I2C_Read... [15:44:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:44:01]Read from MH i2c: E2 [15:44:01]MH_I2C_Read... [15:44:01]Read from MH i2c: E2 17 00 [15:44:01]MH_I2C_Read... [15:44:01]Read from MH i2c: E2 17 00 CC 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 02 [15:44:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:44:01]wFMCommunicate OK [15:44:01]requested_item fd.num is exist - process it [15:44:01]SAM_PROTO_GetFieldsCounters [15:44:01]wFMCommunicate request_size=4 [15:44:01]MH_SAM_APDU [15:44:01]CAPDU: 80 13 00 00 [15:44:01]Write to MH i2c: E2 08 00 CD 67 80 13 00 00 00 00 00 00 B0 [15:44:01]Write i2c OK [15:44:01]MH_I2C_Read... [15:44:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:44:01]Read from MH i2c: E2 [15:44:01]MH_I2C_Read... [15:44:01]Read from MH i2c: E2 62 00 [15:44:01]MH_I2C_Read... [15:44:01]Read from MH i2c: E2 62 00 CD 67 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E1 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 77 [15:44:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E1 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:44:01]wFMCommunicate OK [15:44:01]SAM_PROTO_GetFieldsCounters done [15:44:01]requested_item shift.num is exist - process it [15:44:01]requested_item shift.opened is exist - process it [15:44:01]req_shift_opened [15:44:01]FM_GetShiftState [15:44:01]SAM_PROTO_GetShiftState [15:44:01]wFMCommunicate request_size=4 [15:44:01]MH_SAM_APDU [15:44:01]CAPDU: 80 13 01 00 [15:44:01]Write to MH i2c: E2 08 00 CE 67 80 13 01 00 00 00 00 00 B2 [15:44:01]Write i2c OK [15:44:01]MH_I2C_Read... [15:44:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:44:01]Read from MH i2c: E2 [15:44:01]MH_I2C_Read... [15:44:01]Read from MH i2c: E2 0E 00 [15:44:01]MH_I2C_Read... [15:44:01]Read from MH i2c: E2 0E 00 CE 67 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 7F [15:44:01]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [15:44:01]wFMCommunicate OK [15:44:01]SAM_PROTO_GetShiftState done [15:44:01]FM_GetShiftState done [15:44:01]req_shift_opened done [15:44:01]requested_item shift.open_date is exist - process it [15:44:01]req_shift_open_date [15:44:01]req_shift_open_date done [15:44:01]produce_requested_data done [15:44:01]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156641,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [15:44:01]process_action_free close_receipt [15:44:01]json_value_free [15:44:01]json_value_free done [15:44:01]process_json_proto returns [15:44:01]Send response to host [15:44:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156641,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [15:44:01]free response buf [15:44:01]execute_script done [15:44:01]execute_script returns [15:44:01]free content buf [15:44:01]Sock 9.Close socket [15:44:01]Sock 9.Thread stoped [15:44:01]OFD Sender: No OFD packet to send [15:44:06]OFD Sender: No OFD packet to send [15:44:11]OFD Sender: No OFD packet to send [15:44:16]OFD Sender: No OFD packet to send [15:44:21]OFD Sender: No OFD packet to send [15:44:26]OFD Sender: No OFD packet to send [15:44:31]OFD Sender: No OFD packet to send [15:44:36]OFD Sender: No OFD packet to send [15:44:41]OFD Sender: No OFD packet to send [15:44:46]OFD Sender: No OFD packet to send [15:44:51]OFD Sender: No OFD packet to send [15:44:56]OFD Sender: No OFD packet to send [15:45:01]OFD Sender: No OFD packet to send [15:45:06]OFD Sender: No OFD packet to send [15:45:11]OFD Sender: No OFD packet to send [15:45:16]OFD Sender: No OFD packet to send [15:45:21]OFD Sender: No OFD packet to send [15:45:26]OFD Sender: No OFD packet to send [15:45:31]OFD Sender: No OFD packet to send [15:45:36]OFD Sender: No OFD packet to send [15:45:41]OFD Sender: No OFD packet to send [15:45:46]OFD Sender: No OFD packet to send [15:45:51]OFD Sender: No OFD packet to send [15:45:57]OFD Sender: No OFD packet to send [15:46:02]OFD Sender: No OFD packet to send [15:46:07]OFD Sender: No OFD packet to send [15:46:12]OFD Sender: No OFD packet to send [15:46:17]OFD Sender: No OFD packet to send [15:46:22]OFD Sender: No OFD packet to send [15:46:27]OFD Sender: No OFD packet to send [15:46:32]OFD Sender: No OFD packet to send [15:46:37]OFD Sender: No OFD packet to send [15:46:42]OFD Sender: No OFD packet to send [15:46:47]OFD Sender: No OFD packet to send [15:46:52]OFD Sender: No OFD packet to send [15:46:57]OFD Sender: No OFD packet to send [15:47:02]OFD Sender: No OFD packet to send [15:47:07]OFD Sender: No OFD packet to send [15:47:12]OFD Sender: No OFD packet to send [15:47:17]OFD Sender: No OFD packet to send [15:47:22]OFD Sender: No OFD packet to send [15:47:27]OFD Sender: No OFD packet to send [15:47:32]OFD Sender: No OFD packet to send [15:47:37]OFD Sender: No OFD packet to send [15:47:42]OFD Sender: No OFD packet to send [15:47:47]OFD Sender: No OFD packet to send [15:47:52]OFD Sender: No OFD packet to send [15:47:57]OFD Sender: No OFD packet to send [15:48:02]OFD Sender: No OFD packet to send [15:48:07]OFD Sender: No OFD packet to send [15:48:08]accept exits with 8 [15:48:08]New connection [15:48:08]New thread 3066834276 created [15:48:08]Thread 3066977636 joined [15:48:08]Waiting for new connection... [15:48:08] Sock 8.Parse request [15:48:08]Sock 8.Check first char [15:48:08]Sock 8.First char is OK [15:48:08]request: POST /json_proto HTTP/1.0 [15:48:08]Method: POST [15:48:08]URL: /json_proto [15:48:08]Method is POST - this is cgi request [15:48:08]url: /json_proto [15:48:08]query_string will be loaded in cgi processing [15:48:08]execute_cgi json_proto POST (null) [15:48:08]execute_cgi path=json_proto method=POST [15:48:08]POST find Content-Length [15:48:08]Host: 172.17.63.3:8080 [15:48:08]Content-Length: 765 [15:48:08]Content-Type: application/json [15:48:08] [15:48:08]POST finish read [15:48:08]Found Content-Length = 765 [15:48:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99456", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:48:08]execute_script... [15:48:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99456", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:48:08]POST & json_proto [15:48:08]process_json_proto [15:48:08]json parsed OK: [15:48:08]protocol is kg_v1.0 [15:48:08]action value=close_receipt [15:48:08]process_action close_receipt [15:48:08]cmd_close_receipt [15:48:08]MH_GetDate [15:48:08]Write to MH i2c: F0 00 00 CF 67 25 [15:48:08]Write i2c OK [15:48:08]MH_I2C_Read... [15:48:08]Read from MH i2c: F0 [15:48:08]MH_I2C_Read... [15:48:08]Read from MH i2c: F0 09 00 [15:48:08]MH_I2C_Read... [15:48:08]Read from MH i2c: F0 09 00 CF 67 00 BF 60 1E 67 50 D1 6C 64 C3 [15:48:08]GetLastDocTimeStamp 1730043845 [15:48:08]current date 1730044095 [15:48:08]FM_GetShiftState [15:48:08]SAM_PROTO_GetShiftState [15:48:08]wFMCommunicate request_size=4 [15:48:08]MH_SAM_APDU [15:48:08]CAPDU: 80 13 01 00 [15:48:08]Write to MH i2c: E2 08 00 D0 67 80 13 01 00 00 00 00 00 B4 [15:48:08]Write i2c OK [15:48:08]MH_I2C_Read... [15:48:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:48:08]Read from MH i2c: E2 [15:48:08]MH_I2C_Read... [15:48:08]Read from MH i2c: E2 0E 00 [15:48:08]MH_I2C_Read... [15:48:08]Read from MH i2c: E2 0E 00 D0 67 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 81 [15:48:08]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [15:48:08]wFMCommunicate OK [15:48:08]SAM_PROTO_GetShiftState done [15:48:08]FM_GetShiftState done [15:48:08]opened in 1729989044 [15:48:08]opened+sec_in_day 1730075444 [15:48:08]quantity*price = 40006 [15:48:08]sum+1 = 40007 [15:48:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.06 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 0.00 Безнал.: 400.06 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 193 27.10.2024 15:48 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 156642 ФПД: 211654617542171 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T154815&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156642&fm=211654617542171&tin=02508201610067®Number=0000000000091693&sum=40006 [15:48:10]StoreToDocumentArchive [15:48:10]shift 537 fd 156642 [15:48:10]save to /storage/0537/doc_00156642 [15:48:10]save last doc name /storage/0537/doc_00156642 to /storage/kkm_last_doc_name [15:48:10]save OK [15:48:10]Clear old archive folders... [15:48:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:48:10]tlvbuf is 018F55D0 [15:48:10]SAM_PROTO_ClearQueue [15:48:10]wFMCommunicate request_size=4 [15:48:10]MH_SAM_APDU [15:48:10]CAPDU: 80 09 00 00 [15:48:10]Write to MH i2c: E2 08 00 DD 67 80 09 00 00 00 00 00 00 B6 [15:48:10]Write i2c OK [15:48:10]MH_I2C_Read... [15:48:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:48:10]Read from MH i2c: E2 [15:48:10]MH_I2C_Read... [15:48:10]Read from MH i2c: E2 03 00 [15:48:10]MH_I2C_Read... [15:48:10]Read from MH i2c: E2 03 00 DD 67 00 90 00 B8 [15:48:10]RAPDU: 90 00 [15:48:10]wFMCommunicate OK [15:48:10]SAM_PROTO_ClearQueue done [15:48:10]KKMCreateOFDPacket [15:48:10]OFDProtocolAddRootSTLVToBuf [15:48:10]FM_MakeSignedData [15:48:10]FM_MakeSignedData [15:48:10]SAM_PROTO_SignData [15:48:10]wFMCommunicate request_size=4 [15:48:10]MH_SAM_APDU [15:48:10]CAPDU: 80 0D 01 02 [15:48:10]Write to MH i2c: E2 08 00 DE 67 80 0D 01 02 00 00 00 00 BE [15:48:10]Write i2c OK [15:48:10]MH_I2C_Read... [15:48:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:48:10]Read from MH i2c: E2 [15:48:10]MH_I2C_Read... [15:48:10]Read from MH i2c: E2 03 00 [15:48:10]MH_I2C_Read... [15:48:10]Read from MH i2c: E2 03 00 DE 67 00 90 00 B9 [15:48:10]RAPDU: 90 00 [15:48:10]wFMCommunicate OK [15:48:10]wFMCommunicate request_size=255 [15:48:10]MH_SAM_APDU [15: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 BF 60 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E2 63 02 00 35 04 06 00 C0 [15:48:10]Write to MH i2c: E2 02 01 DF 67 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 BF 60 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E2 63 02 00 35 04 06 00 C0 00 00 B4 [15:48:10]Write i2c OK [15:48:10]MH_I2C_Read... [15:48:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:48:10]Read from MH i2c: E2 [15:48:10]MH_I2C_Read... [15:48:10]Read from MH i2c: E2 03 00 [15:48:10]MH_I2C_Read... [15:48:10]Read from MH i2c: E2 03 00 DF 67 00 90 00 BA [15:48:10]RAPDU: 90 00 [15:48:10]wFMCommunicate OK [15:48:10]wFMCommunicate request_size=10 [15:48:10]MH_SAM_APDU [15:48:10]CAPDU: 80 0D 02 02 05 7F AE 4B 2E 1B [15:48:10]Write to MH i2c: E2 0D 00 E0 67 80 0D 02 02 05 00 7F AE 4B 2E 1B 00 00 8C [15:48:10]Write i2c OK [15:48:10]MH_I2C_Read... [15:48:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:48:10]Read from MH i2c: E2 [15:48:10]MH_I2C_Read... [15:48:10]Read from MH i2c: E2 03 00 [15:48:10]MH_I2C_Read... [15:48:10]Read from MH i2c: E2 03 00 E0 67 00 90 00 BB [15:48:10]RAPDU: 90 00 [15:48:10]wFMCommunicate OK [15:48:10]wFMCommunicate request_size=4 [15:48:10]MH_SAM_APDU [15:48:10]CAPDU: 80 0D 03 02 [15:48:10]Write to MH i2c: E2 08 00 E1 67 80 0D 03 02 00 00 00 00 C3 [15:48:10]Write i2c OK [15:48:10]MH_I2C_Read... [15:48:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:48:10]Read from MH i2c: E2 [15:48:10]MH_I2C_Read... [15:48:10]Read from MH i2c: E2 0B 00 [15:48:10]MH_I2C_Read... [15:48:10]Read from MH i2c: E2 0B 00 E1 67 00 64 1C 56 5A 37 20 85 86 90 00 56 [15:48:10]RAPDU: 64 1C 56 5A 37 20 85 86 90 00 [15:48:10]wFMCommunicate OK [15:48:10]SAM_PROTO_SignData done [15:48:10]FM_MakeSignedData done [15:48:10]CreateOFDProtocolMessage [15:48:10]wFMCommunicate request_size=4 [15:48:10]MH_SAM_APDU [15:48:10]CAPDU: 80 11 00 00 [15:48:10]Write to MH i2c: E2 08 00 E2 67 80 11 00 00 00 00 00 00 C3 [15:48:10]Write i2c OK [15:48:10]MH_I2C_Read... [15:48:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:48:10]Read from MH i2c: E2 [15:48:10]MH_I2C_Read... [15:48:10]Read from MH i2c: E2 17 00 [15:48:10]MH_I2C_Read... [15:48:10]Read from MH i2c: E2 17 00 E2 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 18 [15:48:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:48:10]wFMCommunicate OK [15:48:10]CreateOFDProtocolMessage done [15:48:10]OFDSenderStorePacket 156642 [15:48:10]StoreOFDPacket docnum=156642 [15:48:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 8F 4B 07 01 D4 81 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 BF 60 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E2 63 02 00 35 04 06 00 C0 7F AE 4B 2E 1B 64 1C 56 5A 37 20 85 86 [15:48:10]CheckFolder [15:48:10]dirname=/storage/ofd_packets [15:48:10]CheckFolder done [15:48:10]ProducePacketName [15:48:10]name=ofd_packets/00156642 [15:48:10]NVStorageSaveData ofd_packets/00156642 [15:48:10]File name is /storage/ofd_packets/00156642 [15:48:10]Write 301 bytes [15:48:10]NVStorageSaveData done [15:48:10]OFDSenderStorePacket done [15:48:10]KKMCreateOFDPacket done [15:48:10]NVStorageSaveData kkm_last_timestamp [15:48:10]File name is /storage/kkm_last_timestamp [15:48:10]Write 4 bytes [15:48:10]NVStorageSaveData done [15:48:10]ExternCall_PrintAddStr [15:48:10]wPrintStart [15:48:10]Write to MH i2c: 01 00 00 E3 67 4A [15:48:10]Write i2c OK [15:48:10]MH_I2C_Read... [15:48:10]Read from MH i2c: 01 [15:48:10]MH_I2C_Read... [15:48:10]Read from MH i2c: 01 07 00 [15:48:10]MH_I2C_Read... [15:48:10]Read from MH i2c: 01 07 00 E3 67 00 00 00 00 00 FF 0F 5F [15:48:10]RasterBufferAndPrint [15:48:10]line Счет N : (1)99456 [15:48:10]line ИНН: 02508201610067 [15:48:10]line Контрольно-Кассовый Чек [15:48:10]line ПРОДАЖА [15:48:10]line ТРК (МРК, ГНК) : 21 [15:48:10]line Товар: 2710124130 [15:48:10]line Аи-92-К-5 [15:48:10]line 5.980 * 66.90 [15:48:10]line = 400.06 [15:48:10]line НДС 12% НСП 1% [15:48:10]line > о реализуемом товаре [15:48:10]line ИТОГО: 400.06 [15:48:10]line НСП 1% : 3.54 [15:48:10]line НДС 12% : 42.48 [15:48:10]line Наличными: 0.00 [15:48:10]line Безнал.: 400.06 [15:48:10]line Место: АЗС № 143 "Партнер Нефть" [15:48:10]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [15:48:10]line СНО: Общий режим [15:48:10]line Чек 193 27.10.2024 15:48 [15:48:10]line Смена: 537 ФФД: 1.0 [15:48:10]line ЗНМ: 0300000096 [15:48:10]line РНМ: 0000000000091693 [15:48:10]line Версия ККМ: 001 [15:48:10]line Платежная система: Mbank [15:48:10]line ФМ: 0000000000871792 [15:48:10]line ФД: 156642 [15:48:10]line ФПД: 211654617542171 [15:48:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T154815&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156642&fm=211654617542171&tin=02508201610067®Number=0000000000091693&sum=40006 [15:48:10]OFD Sender: Processing packet 156642 [packets to send 31, broken 30] [15:48:10]ProducePacketName [15:48:10]name=ofd_packets/00156642 [15:48:10]OFD Sender: To server: pG, [15:48:10]CommunicateWithHost lk.salyk.kg:30040 [15:48:10]ConnectInit lk.salyk.kg [15:48:10]written 0, free lines is 4095 [15:48:11]Connected sock=10 [15:48:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 8F 4B 07 01 D4 81 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 BF 60 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E2 63 02 00 35 04 06 00 C0 7F AE 4B 2E 1B 64 1C 56 5A 37 20 85 86 [15:48:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 53 FD 47 00 B4 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 31 37 39 32 10 04 04 00 E2 63 02 00 F4 03 04 00 2E 06 1E 67 B6 04 01 00 00 18 35 3D 1B 83 69 56 F8 [15:48:11]CommunicateWithHost err = 0 [15:48:11]CheckOFDResponse [15:48:11]1017 (14) - 77093643461234 [15:48:11]1041 (16) - 0000000000871792 [15:48:11]1040 (4) - 156642 [15:48:11]1012 (4) - 27.10.2024 09:21 [15:48:11]1206 (1) - 0 [15:48:11]OFD Sender: Remove packet 156642 [15:48:11]ProducePacketName [15:48:11]name=ofd_packets/00156642 [15:48:11]NVStorageDeleteData [15:48:11]Write to MH i2c: 01 00 00 0C 68 74 [15:48:11]Write i2c OK [15:48:11]MH_I2C_Read... [15:48:11]Read from MH i2c: 01 [15:48:11]MH_I2C_Read... [15:48:11]Read from MH i2c: 01 07 00 [15:48:11]MH_I2C_Read... [15:48:11]Read from MH i2c: 01 07 00 0C 68 00 00 00 00 00 15 0D 9D [15:48:11]RasterBufferAndPrint [15:48:11]line [15:48:11]line [15:48:11]line [15:48:11]line [15:48:11]line [15:48:11]written 0, free lines is 3356 [15:48:11]process_action close_receipt done [15:48:11]requested_data is exist [15:48:11]produce_requested_data [15:48:11]requested_item fm.sn is exist - process it [15:48:11]wFMCommunicate request_size=4 [15:48:11]MH_SAM_APDU [15:48:11]CAPDU: 80 11 00 00 [15:48:11]Write to MH i2c: E2 08 00 13 68 80 11 00 00 00 00 00 00 F5 [15:48:11]Write i2c OK [15:48:11]MH_I2C_Read... [15:48:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:48:11]Read from MH i2c: E2 [15:48:11]MH_I2C_Read... [15:48:11]Read from MH i2c: E2 17 00 [15:48:11]MH_I2C_Read... [15:48:11]Read from MH i2c: E2 17 00 13 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 4A [15:48:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:48:11]wFMCommunicate OK [15:48:11]requested_item fd.num is exist - process it [15:48:11]SAM_PROTO_GetFieldsCounters [15:48:11]wFMCommunicate request_size=4 [15:48:11]MH_SAM_APDU [15:48:11]CAPDU: 80 13 00 00 [15:48:11]Write to MH i2c: E2 08 00 14 68 80 13 00 00 00 00 00 00 F8 [15:48:11]Write i2c OK [15:48:11]MH_I2C_Read... [15:48:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:48:11]Read from MH i2c: E2 [15:48:11]MH_I2C_Read... [15:48:11]Read from MH i2c: E2 62 00 [15:48:11]MH_I2C_Read... [15:48:11]Read from MH i2c: E2 62 00 14 68 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E2 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 C3 [15:48:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E2 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:48:11]wFMCommunicate OK [15:48:11]SAM_PROTO_GetFieldsCounters done [15:48:11]requested_item shift.num is exist - process it [15:48:11]requested_item shift.opened is exist - process it [15:48:11]req_shift_opened [15:48:11]FM_GetShiftState [15:48:11]SAM_PROTO_GetShiftState [15:48:11]wFMCommunicate request_size=4 [15:48:11]MH_SAM_APDU [15:48:11]CAPDU: 80 13 01 00 [15:48:11]Write to MH i2c: E2 08 00 15 68 80 13 01 00 00 00 00 00 FA [15:48:11]Write i2c OK [15:48:11]MH_I2C_Read... [15:48:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:48:11]Read from MH i2c: E2 [15:48:11]MH_I2C_Read... [15:48:11]Read from MH i2c: E2 0E 00 [15:48:11]MH_I2C_Read... [15:48:11]Read from MH i2c: E2 0E 00 15 68 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 C7 [15:48:11]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [15:48:11]wFMCommunicate OK [15:48:11]SAM_PROTO_GetShiftState done [15:48:11]FM_GetShiftState done [15:48:11]req_shift_opened done [15:48:11]requested_item shift.open_date is exist - process it [15:48:11]req_shift_open_date [15:48:11]req_shift_open_date done [15:48:11]produce_requested_data done [15:48:11]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156642,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [15:48:11]process_action_free close_receipt [15:48:11]json_value_free [15:48:11]json_value_free done [15:48:11]process_json_proto returns [15:48:11]Send response to host [15:48:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156642,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [15:48:11]free response buf [15:48:11]execute_script done [15:48:11]execute_script returns [15:48:11]free content buf [15:48:11]Sock 8.Close socket [15:48:11]Sock 8.Thread stoped [15:48:11]OFD Sender: No OFD packet to send [15:48:16]OFD Sender: No OFD packet to send [15:48:21]OFD Sender: No OFD packet to send [15:48:26]OFD Sender: No OFD packet to send [15:48:31]OFD Sender: No OFD packet to send [15:48:36]OFD Sender: No OFD packet to send [15:48:41]OFD Sender: No OFD packet to send [15:48:46]OFD Sender: No OFD packet to send [15:48:51]OFD Sender: No OFD packet to send [15:48:56]OFD Sender: No OFD packet to send [15:49:01]OFD Sender: No OFD packet to send [15:49:06]OFD Sender: No OFD packet to send [15:49:11]OFD Sender: No OFD packet to send [15:49:16]OFD Sender: No OFD packet to send [15:49:21]OFD Sender: No OFD packet to send [15:49:26]OFD Sender: No OFD packet to send [15:49:31]OFD Sender: No OFD packet to send [15:49:36]OFD Sender: No OFD packet to send [15:49:41]OFD Sender: No OFD packet to send [15:49:46]OFD Sender: No OFD packet to send [15:49:51]OFD Sender: No OFD packet to send [15:49:56]OFD Sender: No OFD packet to send [15:50:01]OFD Sender: No OFD packet to send [15:50:06]OFD Sender: No OFD packet to send [15:50:11]OFD Sender: No OFD packet to send [15:50:16]OFD Sender: No OFD packet to send [15:50:21]OFD Sender: No OFD packet to send [15:50:26]OFD Sender: No OFD packet to send [15:50:31]OFD Sender: No OFD packet to send [15:50:36]OFD Sender: No OFD packet to send [15:50:41]OFD Sender: No OFD packet to send [15:50:46]OFD Sender: No OFD packet to send [15:50:51]OFD Sender: No OFD packet to send [15:50:56]OFD Sender: No OFD packet to send [15:51:01]OFD Sender: No OFD packet to send [15:51:06]OFD Sender: No OFD packet to send [15:51:11]OFD Sender: No OFD packet to send [15:51:16]OFD Sender: No OFD packet to send [15:51:21]OFD Sender: No OFD packet to send [15:51:22]accept exits with 9 [15:51:22]New connection [15:51:22]New thread 3066977636 created [15:51:22]Thread 3066834276 joined [15:51:22]Waiting for new connection... [15:51:22] Sock 9.Parse request [15:51:22]Sock 9.Check first char [15:51:22]Sock 9.First char is OK [15:51:22]request: POST /json_proto HTTP/1.0 [15:51:22]Method: POST [15:51:22]URL: /json_proto [15:51:22]Method is POST - this is cgi request [15:51:22]url: /json_proto [15:51:22]query_string will be loaded in cgi processing [15:51:22]execute_cgi json_proto POST (null) [15:51:22]execute_cgi path=json_proto method=POST [15:51:22]POST find Content-Length [15:51:22]Host: 172.17.63.3:8080 [15:51:22]Content-Length: 673 [15:51:22]Content-Type: application/json [15:51:22] [15:51:22]POST finish read [15:51:22]Found Content-Length = 673 [15:51:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99457", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:51:22]execute_script... [15:51: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)99457", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:51:22]POST & json_proto [15:51:22]process_json_proto [15:51:22]json parsed OK: [15:51:22]protocol is kg_v1.0 [15:51:22]action value=close_receipt [15:51:22]process_action close_receipt [15:51:22]cmd_close_receipt [15:51:22]MH_GetDate [15:51:22]Write to MH i2c: F0 00 00 16 68 6D [15:51:22]Write i2c OK [15:51:22]MH_I2C_Read... [15:51:22]Read from MH i2c: F0 [15:51:22]MH_I2C_Read... [15:51:22]Read from MH i2c: F0 09 00 [15:51:22]MH_I2C_Read... [15:51:22]Read from MH i2c: F0 09 00 16 68 00 80 61 1E 67 50 D1 6C 64 CD [15:51:22]GetLastDocTimeStamp 1730044095 [15:51:22]current date 1730044288 [15:51:22]FM_GetShiftState [15:51:22]SAM_PROTO_GetShiftState [15:51:22]wFMCommunicate request_size=4 [15:51:22]MH_SAM_APDU [15:51:22]CAPDU: 80 13 01 00 [15:51:22]Write to MH i2c: E2 08 00 17 68 80 13 01 00 00 00 00 00 FC [15:51:22]Write i2c OK [15:51:22]MH_I2C_Read... [15:51:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:51:22]Read from MH i2c: E2 [15:51:22]MH_I2C_Read... [15:51:22]Read from MH i2c: E2 0E 00 [15:51:22]MH_I2C_Read... [15:51:22]Read from MH i2c: E2 0E 00 17 68 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 C9 [15:51:22]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [15:51:22]wFMCommunicate OK [15:51:22]SAM_PROTO_GetShiftState done [15:51:22]FM_GetShiftState done [15:51:22]opened in 1729989044 [15:51:22]opened+sec_in_day 1730075444 [15:51:22]quantity*price = 70027 [15:51:22]sum+1 = 70029 [15:51:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 194 27.10.2024 15:51 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156643 ФПД: 162418141850545 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T155128&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156643&fm=162418141850545&tin=02508201610067®Number=0000000000091693&sum=70000 [15:51:23]StoreToDocumentArchive [15:51:23]shift 537 fd 156643 [15:51:23]save to /storage/0537/doc_00156643 [15:51:23]save last doc name /storage/0537/doc_00156643 to /storage/kkm_last_doc_name [15:51:23]save OK [15:51:23]Clear old archive folders... [15:51:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:51:23]tlvbuf is 018D3310 [15:51:23]SAM_PROTO_ClearQueue [15:51:23]wFMCommunicate request_size=4 [15:51:23]MH_SAM_APDU [15:51:23]CAPDU: 80 09 00 00 [15:51:23]Write to MH i2c: E2 08 00 24 68 80 09 00 00 00 00 00 00 FE [15:51:23]Write i2c OK [15:51:23]MH_I2C_Read... [15:51:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:51:23]Read from MH i2c: E2 [15:51:23]MH_I2C_Read... [15:51:23]Read from MH i2c: E2 03 00 [15:51:23]MH_I2C_Read... [15:51:23]Read from MH i2c: E2 03 00 24 68 00 90 00 00 [15:51:23]RAPDU: 90 00 [15:51:23]wFMCommunicate OK [15:51:23]SAM_PROTO_ClearQueue done [15:51:23]KKMCreateOFDPacket [15:51:23]OFDProtocolAddRootSTLVToBuf [15:51:23]FM_MakeSignedData [15:51:23]FM_MakeSignedData [15:51:23]SAM_PROTO_SignData [15:51:23]wFMCommunicate request_size=4 [15:51:23]MH_SAM_APDU [15:51:23]CAPDU: 80 0D 01 02 [15:51:23]Write to MH i2c: E2 08 00 25 68 80 0D 01 02 00 00 00 00 06 [15:51:23]Write i2c OK [15:51:23]MH_I2C_Read... [15:51:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:51:23]Read from MH i2c: E2 [15:51:23]MH_I2C_Read... [15:51:23]Read from MH i2c: E2 03 00 [15:51:23]MH_I2C_Read... [15:51:23]Read from MH i2c: E2 03 00 25 68 00 90 00 01 [15:51:23]RAPDU: 90 00 [15:51:23]wFMCommunicate OK [15:51:23]wFMCommunicate request_size=255 [15:51:23]MH_SAM_APDU [15:51:23]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 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 0D 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 C2 00 00 00 F4 03 04 00 80 61 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E3 63 02 00 35 04 06 00 93 B7 EB A6 [15:51:23]Write to MH i2c: E2 02 01 26 68 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 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 0D 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 C2 00 00 00 F4 03 04 00 80 61 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E3 63 02 00 35 04 06 00 93 B7 EB A6 00 00 F2 [15:51:23]Write i2c OK [15:51:23]MH_I2C_Read... [15:51:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:51:23]Read from MH i2c: E2 [15:51:23]MH_I2C_Read... [15:51:23]Read from MH i2c: E2 03 00 [15:51:23]MH_I2C_Read... [15:51:23]Read from MH i2c: E2 03 00 26 68 00 90 00 02 [15:51:23]RAPDU: 90 00 [15:51:23]wFMCommunicate OK [15:51:23]wFMCommunicate request_size=7 [15:51:23]MH_SAM_APDU [15:51:23]CAPDU: 80 0D 02 02 02 6B B1 [15:51:23]Write to MH i2c: E2 0A 00 27 68 80 0D 02 02 02 00 6B B1 00 00 29 [15:51:23]Write i2c OK [15:51:23]MH_I2C_Read... [15:51:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:51:23]Read from MH i2c: E2 [15:51:23]MH_I2C_Read... [15:51:23]Read from MH i2c: E2 03 00 [15:51:23]MH_I2C_Read... [15:51:23]Read from MH i2c: E2 03 00 27 68 00 90 00 03 [15:51:23]RAPDU: 90 00 [15:51:23]wFMCommunicate OK [15:51:23]wFMCommunicate request_size=4 [15:51:23]MH_SAM_APDU [15:51:23]CAPDU: 80 0D 03 02 [15:51:23]Write to MH i2c: E2 08 00 28 68 80 0D 03 02 00 00 00 00 0B [15:51:23]Write i2c OK [15:51:23]MH_I2C_Read... [15:51:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:51:23]Read from MH i2c: E2 [15:51:23]MH_I2C_Read... [15:51:23]Read from MH i2c: E2 0B 00 [15:51:23]MH_I2C_Read... [15:51:23]Read from MH i2c: E2 0B 00 28 68 00 2A 7A EA AA AE BF 8F 3D 90 00 7D [15:51:23]RAPDU: 2A 7A EA AA AE BF 8F 3D 90 00 [15:51:23]wFMCommunicate OK [15:51:23]SAM_PROTO_SignData done [15:51:23]FM_MakeSignedData done [15:51:23]CreateOFDProtocolMessage [15:51:23]wFMCommunicate request_size=4 [15:51:23]MH_SAM_APDU [15:51:23]CAPDU: 80 11 00 00 [15:51:23]Write to MH i2c: E2 08 00 29 68 80 11 00 00 00 00 00 00 0B [15:51:23]Write i2c OK [15:51:23]MH_I2C_Read... [15:51:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:51:23]Read from MH i2c: E2 [15:51:23]MH_I2C_Read... [15:51:23]Read from MH i2c: E2 17 00 [15:51:23]MH_I2C_Read... [15:51:23]Read from MH i2c: E2 17 00 29 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 60 [15:51:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:51:23]wFMCommunicate OK [15:51:23]CreateOFDProtocolMessage done [15:51:23]OFDSenderStorePacket 156643 [15:51:23]StoreOFDPacket docnum=156643 [15:51:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 33 2F 04 01 A3 86 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 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 0D 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 C2 00 00 00 F4 03 04 00 80 61 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E3 63 02 00 35 04 06 00 93 B7 EB A6 6B B1 2A 7A EA AA AE BF 8F 3D [15:51:23]CheckFolder [15:51:23]dirname=/storage/ofd_packets [15:51:23]CheckFolder done [15:51:23]ProducePacketName [15:51:23]name=ofd_packets/00156643 [15:51:23]NVStorageSaveData ofd_packets/00156643 [15:51:23]File name is /storage/ofd_packets/00156643 [15:51:23]Write 298 bytes [15:51:23]NVStorageSaveData done [15:51:23]OFDSenderStorePacket done [15:51:23]KKMCreateOFDPacket done [15:51:23]NVStorageSaveData kkm_last_timestamp [15:51:23]File name is /storage/kkm_last_timestamp [15:51:23]Write 4 bytes [15:51:23]NVStorageSaveData done [15:51:23]ExternCall_PrintAddStr [15:51:23]wPrintStart [15:51:23]Write to MH i2c: 01 00 00 2A 68 92 [15:51:23]Write i2c OK [15:51:23]MH_I2C_Read... [15:51:23]Read from MH i2c: 01 [15:51:23]MH_I2C_Read... [15:51:23]Read from MH i2c: 01 07 00 [15:51:23]MH_I2C_Read... [15:51:23]Read from MH i2c: 01 07 00 2A 68 00 00 00 00 00 FF 0F A7 [15:51:23]RasterBufferAndPrint [15:51:23]line Счет N : (1)99457 [15:51:23]line ИНН: 02508201610067 [15:51:23]line Контрольно-Кассовый Чек [15:51:23]line ПРОДАЖА [15:51:23]line ТРК (МРК, ГНК) : 32 [15:51:23]line Товар: 2710194210 [15:51:23]line ДТ-К-5 [15:51:23]line 9.190 * 76.20 [15:51:23]line = 700.28 [15:51:23]line НДС 12% НСП 1% [15:51:23]line > о реализуемом товаре [15:51:23]line ОКРУГЛЕНИЕ: -0.28 [15:51:23]line ИТОГО: 700.00 [15:51:23]line Внесено: 700.00 [15:51:23]line СДАЧА: 0.00 [15:51:23]line НСП 1% : 6.20 [15:51:23]line НДС 12% : 74.37 [15:51:23]line Наличными: 700.00 [15:51:23]line Безнал.: 0.00 [15:51:23]line Место: АЗС № 143 "Партнер Нефть" [15:51:23]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [15:51:23]line СНО: Общий режим [15:51:23]line Чек 194 27.10.2024 15:51 [15:51:23]line Смена: 537 ФФД: 1.0 [15:51:23]line ЗНМ: 0300000096 [15:51:23]line РНМ: 0000000000091693 [15:51:23]line Версия ККМ: 001 [15:51:23]line ФМ: 0000000000871792 [15:51:23]line ФД: 156643 [15:51:23]line ФПД: 162418141850545 [15:51:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T155128&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156643&fm=162418141850545&tin=02508201610067®Number=0000000000091693&sum=70000 [15:51:24]OFD Sender: Processing packet 156643 [packets to send 31, broken 30] [15:51:24]ProducePacketName [15:51:24]name=ofd_packets/00156643 [15:51:24]OFD Sender: To server: pG, [15:51:24]CommunicateWithHost lk.salyk.kg:30040 [15:51:24]ConnectInit lk.salyk.kg [15:51:24]written 0, free lines is 4095 [15:51:24]Connected sock=10 [15:51:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 33 2F 04 01 A3 86 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 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 0D 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 C2 00 00 00 F4 03 04 00 80 61 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E3 63 02 00 35 04 06 00 93 B7 EB A6 6B B1 2A 7A EA AA AE BF 8F 3D [15:51:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 7B A8 47 00 CE 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E3 63 02 00 F4 03 04 00 EF 06 1E 67 B6 04 01 00 00 2B 8A A7 99 0C DE 00 9F [15:51:24]CommunicateWithHost err = 0 [15:51:24]CheckOFDResponse [15:51:24]1017 (14) - 77093643461234 [15:51:24]1041 (16) - 0000000000871792 [15:51:24]1040 (4) - 156643 [15:51:24]1012 (4) - 27.10.2024 09:25 [15:51:24]1206 (1) - 0 [15:51:24]OFD Sender: Remove packet 156643 [15:51:24]ProducePacketName [15:51:24]name=ofd_packets/00156643 [15:51:24]NVStorageDeleteData [15:51:24]Write to MH i2c: 01 00 00 55 68 BD [15:51:24]Write i2c OK [15:51:24]MH_I2C_Read... [15:51:24]Read from MH i2c: 01 [15:51:24]MH_I2C_Read... [15:51:24]Read from MH i2c: 01 07 00 [15:51:24]MH_I2C_Read... [15:51:24]Read from MH i2c: 01 07 00 55 68 00 00 00 00 00 F7 0C C7 [15:51:24]RasterBufferAndPrint [15:51:24]line [15:51:24]line [15:51:24]line [15:51:24]line [15:51:24]line [15:51:24]written 0, free lines is 3327 [15:51:24]process_action close_receipt done [15:51:24]requested_data is exist [15:51:24]produce_requested_data [15:51:24]requested_item fm.sn is exist - process it [15:51:24]wFMCommunicate request_size=4 [15:51:24]MH_SAM_APDU [15:51:24]CAPDU: 80 11 00 00 [15:51:24]Write to MH i2c: E2 08 00 5C 68 80 11 00 00 00 00 00 00 3E [15:51:24]Write i2c OK [15:51:24]MH_I2C_Read... [15:51:24]Read from MH i2c: E2 [15:51:24]MH_I2C_Read... [15:51:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:51:24]Read from MH i2c: E2 17 00 [15:51:24]MH_I2C_Read... [15:51:24]Read from MH i2c: E2 17 00 5C 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 93 [15:51:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:51:24]wFMCommunicate OK [15:51:24]requested_item fd.num is exist - process it [15:51:24]SAM_PROTO_GetFieldsCounters [15:51:24]wFMCommunicate request_size=4 [15:51:24]MH_SAM_APDU [15:51:24]CAPDU: 80 13 00 00 [15:51:24]Write to MH i2c: E2 08 00 5D 68 80 13 00 00 00 00 00 00 41 [15:51:24]Write i2c OK [15:51:24]MH_I2C_Read... [15:51:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:51:25]Read from MH i2c: E2 [15:51:25]MH_I2C_Read... [15:51:25]Read from MH i2c: E2 62 00 [15:51:25]MH_I2C_Read... [15:51:25]Read from MH i2c: E2 62 00 5D 68 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E3 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 10 [15:51:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E3 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:51:25]wFMCommunicate OK [15:51:25]SAM_PROTO_GetFieldsCounters done [15:51:25]requested_item shift.num is exist - process it [15:51:25]requested_item shift.opened is exist - process it [15:51:25]req_shift_opened [15:51:25]FM_GetShiftState [15:51:25]SAM_PROTO_GetShiftState [15:51:25]wFMCommunicate request_size=4 [15:51:25]MH_SAM_APDU [15:51:25]CAPDU: 80 13 01 00 [15:51:25]Write to MH i2c: E2 08 00 5E 68 80 13 01 00 00 00 00 00 43 [15:51:25]Write i2c OK [15:51:25]MH_I2C_Read... [15:51:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:51:25]Read from MH i2c: E2 [15:51:25]MH_I2C_Read... [15:51:25]Read from MH i2c: E2 0E 00 [15:51:25]MH_I2C_Read... [15:51:25]Read from MH i2c: E2 0E 00 5E 68 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 10 [15:51:25]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [15:51:25]wFMCommunicate OK [15:51:25]SAM_PROTO_GetShiftState done [15:51:25]FM_GetShiftState done [15:51:25]req_shift_opened done [15:51:25]requested_item shift.open_date is exist - process it [15:51:25]req_shift_open_date [15:51:25]req_shift_open_date done [15:51:25]produce_requested_data done [15:51:25]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156643,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [15:51:25]process_action_free close_receipt [15:51:25]json_value_free [15:51:25]json_value_free done [15:51:25]process_json_proto returns [15:51:25]Send response to host [15:51:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156643,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [15:51:25]free response buf [15:51:25]execute_script done [15:51:25]execute_script returns [15:51:25]free content buf [15:51:25]Sock 9.Close socket [15:51:25]Sock 9.Thread stoped [15:51:25]OFD Sender: No OFD packet to send [15:51:30]OFD Sender: No OFD packet to send [15:51:35]OFD Sender: No OFD packet to send [15:51:40]OFD Sender: No OFD packet to send [15:51:45]OFD Sender: No OFD packet to send [15:51:50]OFD Sender: No OFD packet to send [15:51:55]OFD Sender: No OFD packet to send [15:52:00]OFD Sender: No OFD packet to send [15:52:05]OFD Sender: No OFD packet to send [15:52:10]OFD Sender: No OFD packet to send [15:52:15]OFD Sender: No OFD packet to send [15:52:20]OFD Sender: No OFD packet to send [15:52:25]OFD Sender: No OFD packet to send [15:52:30]OFD Sender: No OFD packet to send [15:52:35]OFD Sender: No OFD packet to send [15:52:40]OFD Sender: No OFD packet to send [15:52:45]OFD Sender: No OFD packet to send [15:52:50]OFD Sender: No OFD packet to send [15:52:53]accept exits with 8 [15:52:53]New connection [15:52:53]New thread 3066834276 created [15:52:53]Thread 3066977636 joined [15:52:53]Waiting for new connection... [15:52:53] Sock 8.Parse request [15:52:53]Sock 8.Check first char [15:52:53]Sock 8.First char is OK [15:52:53]request: POST /json_proto HTTP/1.0 [15:52:53]Method: POST [15:52:53]URL: /json_proto [15:52:53]Method is POST - this is cgi request [15:52:53]url: /json_proto [15:52:53]query_string will be loaded in cgi processing [15:52:53]execute_cgi json_proto POST (null) [15:52:53]execute_cgi path=json_proto method=POST [15:52:53]POST find Content-Length [15:52:53]Host: 172.17.63.3:8080 [15:52:53]Content-Length: 676 [15:52:53]Content-Type: application/json [15:52:53] [15:52:53]POST finish read [15:52:53]Found Content-Length = 676 [15:52:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99458", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:52:53]execute_script... [15:52: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)99458", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:52:53]POST & json_proto [15:52:53]process_json_proto [15:52:53]json parsed OK: [15:52:53]protocol is kg_v1.0 [15:52:53]action value=close_receipt [15:52:53]process_action close_receipt [15:52:53]cmd_close_receipt [15:52:53]MH_GetDate [15:52:53]Write to MH i2c: F0 00 00 5F 68 B6 [15:52:53]Write i2c OK [15:52:53]MH_I2C_Read... [15:52:53]Read from MH i2c: F0 [15:52:53]MH_I2C_Read... [15:52:53]Read from MH i2c: F0 09 00 [15:52:53]MH_I2C_Read... [15:52:53]Read from MH i2c: F0 09 00 5F 68 00 DC 61 1E 67 50 D1 6C 64 72 [15:52:53]GetLastDocTimeStamp 1730044288 [15:52:53]current date 1730044380 [15:52:53]FM_GetShiftState [15:52:53]SAM_PROTO_GetShiftState [15:52:53]wFMCommunicate request_size=4 [15:52:53]MH_SAM_APDU [15:52:53]CAPDU: 80 13 01 00 [15:52:53]Write to MH i2c: E2 08 00 60 68 80 13 01 00 00 00 00 00 45 [15:52:53]Write i2c OK [15:52:53]MH_I2C_Read... [15:52:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:52:53]Read from MH i2c: E2 [15:52:53]MH_I2C_Read... [15:52:53]Read from MH i2c: E2 0E 00 [15:52:53]MH_I2C_Read... [15:52:53]Read from MH i2c: E2 0E 00 60 68 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 12 [15:52:53]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [15:52:53]wFMCommunicate OK [15:52:53]SAM_PROTO_GetShiftState done [15:52:53]FM_GetShiftState done [15:52:53]opened in 1729989044 [15:52:53]opened+sec_in_day 1730075444 [15:52:53]quantity*price = 50041 [15:52:53]sum+1 = 50042 [15:52:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 195 27.10.2024 15:53 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156644 ФПД: 246624844744209 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T155300&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156644&fm=246624844744209&tin=02508201610067®Number=0000000000091693&sum=50000 [15:52:54]StoreToDocumentArchive [15:52:54]shift 537 fd 156644 [15:52:54]save to /storage/0537/doc_00156644 [15:52:54]save last doc name /storage/0537/doc_00156644 to /storage/kkm_last_doc_name [15:52:54]save OK [15:52:54]Clear old archive folders... [15:52:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:52:54]tlvbuf is B6F5B900 [15:52:54]SAM_PROTO_ClearQueue [15:52:54]wFMCommunicate request_size=4 [15:52:54]MH_SAM_APDU [15:52:54]CAPDU: 80 09 00 00 [15:52:54]Write to MH i2c: E2 08 00 6D 68 80 09 00 00 00 00 00 00 47 [15:52:54]Write i2c OK [15:52:54]MH_I2C_Read... [15:52:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:52:55]Read from MH i2c: E2 [15:52:55]MH_I2C_Read... [15:52:55]Read from MH i2c: E2 03 00 [15:52:55]MH_I2C_Read... [15:52:55]Read from MH i2c: E2 03 00 6D 68 00 90 00 49 [15:52:55]RAPDU: 90 00 [15:52:55]wFMCommunicate OK [15:52:55]SAM_PROTO_ClearQueue done [15:52:55]KKMCreateOFDPacket [15:52:55]OFDProtocolAddRootSTLVToBuf [15:52:55]FM_MakeSignedData [15:52:55]FM_MakeSignedData [15:52:55]SAM_PROTO_SignData [15:52:55]wFMCommunicate request_size=4 [15:52:55]MH_SAM_APDU [15:52:55]CAPDU: 80 0D 01 02 [15:52:55]Write to MH i2c: E2 08 00 6E 68 80 0D 01 02 00 00 00 00 4F [15:52:55]Write i2c OK [15:52:55]MH_I2C_Read... [15:52:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:52:55]Read from MH i2c: E2 [15:52:55]MH_I2C_Read... [15:52:55]Read from MH i2c: E2 03 00 [15:52:55]MH_I2C_Read... [15:52:55]Read from MH i2c: E2 03 00 6E 68 00 90 00 4A [15:52:55]RAPDU: 90 00 [15:52:55]wFMCommunicate OK [15:52:55]wFMCommunicate request_size=255 [15:52:55]MH_SAM_APDU [15:52: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 DC 61 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E4 63 02 00 35 04 06 00 E0 [15:52:55]Write to MH i2c: E2 02 01 6F 68 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 DC 61 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E4 63 02 00 35 04 06 00 E0 00 00 AC [15:52:55]Write i2c OK [15:52:55]MH_I2C_Read... [15:52:55]OFD Sender: No OFD packet to send [15:52:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:52:55]Read from MH i2c: E2 [15:52:55]MH_I2C_Read... [15:52:55]Read from MH i2c: E2 03 00 [15:52:55]MH_I2C_Read... [15:52:55]Read from MH i2c: E2 03 00 6F 68 00 90 00 4B [15:52:55]RAPDU: 90 00 [15:52:55]wFMCommunicate OK [15:52:55]wFMCommunicate request_size=10 [15:52:55]MH_SAM_APDU [15:52:55]CAPDU: 80 0D 02 02 05 4D D2 43 86 11 [15:52:55]Write to MH i2c: E2 0D 00 70 68 80 0D 02 02 05 00 4D D2 43 86 11 00 00 55 [15:52:55]Write i2c OK [15:52:55]MH_I2C_Read... [15:52:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:52:55]Read from MH i2c: E2 [15:52:55]MH_I2C_Read... [15:52:55]Read from MH i2c: E2 03 00 [15:52:55]MH_I2C_Read... [15:52:55]Read from MH i2c: E2 03 00 70 68 00 90 00 4C [15:52:55]RAPDU: 90 00 [15:52:55]wFMCommunicate OK [15:52:55]wFMCommunicate request_size=4 [15:52:55]MH_SAM_APDU [15:52:55]CAPDU: 80 0D 03 02 [15:52:55]Write to MH i2c: E2 08 00 71 68 80 0D 03 02 00 00 00 00 54 [15:52:55]Write i2c OK [15:52:55]MH_I2C_Read... [15:52:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:52:55]Read from MH i2c: E2 [15:52:55]MH_I2C_Read... [15:52:55]Read from MH i2c: E2 0B 00 [15:52:55]MH_I2C_Read... [15:52:55]Read from MH i2c: E2 0B 00 71 68 00 47 30 58 62 CD F7 1C DB 90 00 41 [15:52:55]RAPDU: 47 30 58 62 CD F7 1C DB 90 00 [15:52:55]wFMCommunicate OK [15:52:55]SAM_PROTO_SignData done [15:52:55]FM_MakeSignedData done [15:52:55]CreateOFDProtocolMessage [15:52:55]wFMCommunicate request_size=4 [15:52:55]MH_SAM_APDU [15:52:55]CAPDU: 80 11 00 00 [15:52:55]Write to MH i2c: E2 08 00 72 68 80 11 00 00 00 00 00 00 54 [15:52:55]Write i2c OK [15:52:55]MH_I2C_Read... [15:52:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:52:55]Read from MH i2c: E2 [15:52:55]MH_I2C_Read... [15:52:55]Read from MH i2c: E2 17 00 [15:52:55]MH_I2C_Read... [15:52:55]Read from MH i2c: E2 17 00 72 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 A9 [15:52:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:52:55]wFMCommunicate OK [15:52:55]CreateOFDProtocolMessage done [15:52:55]OFDSenderStorePacket 156644 [15:52:55]StoreOFDPacket docnum=156644 [15:52:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 59 54 07 01 DF 56 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 DC 61 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E4 63 02 00 35 04 06 00 E0 4D D2 43 86 11 47 30 58 62 CD F7 1C DB [15:52:55]CheckFolder [15:52:55]dirname=/storage/ofd_packets [15:52:55]CheckFolder done [15:52:55]ProducePacketName [15:52:55]name=ofd_packets/00156644 [15:52:55]NVStorageSaveData ofd_packets/00156644 [15:52:55]File name is /storage/ofd_packets/00156644 [15:52:55]Write 301 bytes [15:52:55]NVStorageSaveData done [15:52:55]OFDSenderStorePacket done [15:52:55]KKMCreateOFDPacket done [15:52:55]NVStorageSaveData kkm_last_timestamp [15:52:55]File name is /storage/kkm_last_timestamp [15:52:55]Write 4 bytes [15:52:55]NVStorageSaveData done [15:52:55]ExternCall_PrintAddStr [15:52:55]wPrintStart [15:52:55]Write to MH i2c: 01 00 00 73 68 DB [15:52:55]Write i2c OK [15:52:55]MH_I2C_Read... [15:52:55]Read from MH i2c: 01 [15:52:55]MH_I2C_Read... [15:52:55]Read from MH i2c: 01 07 00 [15:52:55]MH_I2C_Read... [15:52:55]Read from MH i2c: 01 07 00 73 68 00 00 00 00 00 FF 0F F0 [15:52:55]RasterBufferAndPrint [15:52:55]line Счет N : (1)99458 [15:52:55]line ИНН: 02508201610067 [15:52:55]line Контрольно-Кассовый Чек [15:52:55]line ПРОДАЖА [15:52:55]line ТРК (МРК, ГНК) : 11 [15:52:55]line Товар: 2710124130 [15:52:55]line Аи-92-К-5 [15:52:55]line 7.480 * 66.90 [15:52:55]line = 500.41 [15:52:55]line НДС 12% НСП 1% [15:52:55]line > о реализуемом товаре [15:52:55]line ОКРУГЛЕНИЕ: -0.41 [15:52:55]line ИТОГО: 500.00 [15:52:55]line Внесено: 500.00 [15:52:55]line СДАЧА: 0.00 [15:52:55]line НСП 1% : 4.43 [15:52:55]line НДС 12% : 53.14 [15:52:55]line Наличными: 500.00 [15:52:55]line Безнал.: 0.00 [15:52:55]line Место: АЗС № 143 "Партнер Нефть" [15:52:55]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [15:52:55]line СНО: Общий режим [15:52:55]line Чек 195 27.10.2024 15:53 [15:52:55]line Смена: 537 ФФД: 1.0 [15:52:55]line ЗНМ: 0300000096 [15:52:55]line РНМ: 0000000000091693 [15:52:55]line Версия ККМ: 001 [15:52:55]line ФМ: 0000000000871792 [15:52:55]line ФД: 156644 [15:52:55]line ФПД: 246624844744209 [15:52:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T155300&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156644&fm=246624844744209&tin=02508201610067®Number=0000000000091693&sum=50000 [15:52:55]OFD Sender: Processing packet 156644 [packets to send 31, broken 30] [15:52:55]ProducePacketName [15:52:55]name=ofd_packets/00156644 [15:52:55]OFD Sender: To server: pG, [15:52:55]CommunicateWithHost lk.salyk.kg:30040 [15:52:55]ConnectInit lk.salyk.kg [15:52:55]written 0, free lines is 4095 [15:52:55]Connected sock=10 [15:52:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 59 54 07 01 DF 56 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 DC 61 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E4 63 02 00 35 04 06 00 E0 4D D2 43 86 11 47 30 58 62 CD F7 1C DB [15:52:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 77 9E 47 00 9D 17 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E4 63 02 00 F4 03 04 00 4B 07 1E 67 B6 04 01 00 00 47 7D 6D 65 E4 36 DF FD [15:52:56]CommunicateWithHost err = 0 [15:52:56]CheckOFDResponse [15:52:56]1017 (14) - 77093643461234 [15:52:56]1041 (16) - 0000000000871792 [15:52:56]1040 (4) - 156644 [15:52:56]1012 (4) - 27.10.2024 09:26 [15:52:56]1206 (1) - 0 [15:52:56]OFD Sender: Remove packet 156644 [15:52:56]ProducePacketName [15:52:56]name=ofd_packets/00156644 [15:52:56]NVStorageDeleteData [15:52:56]Write to MH i2c: 01 00 00 9E 68 06 [15:52:56]Write i2c OK [15:52:56]MH_I2C_Read... [15:52:56]Read from MH i2c: 01 [15:52:56]MH_I2C_Read... [15:52:56]Read from MH i2c: 01 07 00 [15:52:56]MH_I2C_Read... [15:52:56]Read from MH i2c: 01 07 00 9E 68 00 00 00 00 00 E6 0C FF [15:52:56]RasterBufferAndPrint [15:52:56]line [15:52:56]line [15:52:56]line [15:52:56]line [15:52:56]line [15:52:56]written 0, free lines is 3311 [15:52:56]process_action close_receipt done [15:52:56]requested_data is exist [15:52:56]produce_requested_data [15:52:56]requested_item fm.sn is exist - process it [15:52:56]wFMCommunicate request_size=4 [15:52:56]MH_SAM_APDU [15:52:56]CAPDU: 80 11 00 00 [15:52:56]Write to MH i2c: E2 08 00 A5 68 80 11 00 00 00 00 00 00 87 [15:52:56]Write i2c OK [15:52:56]MH_I2C_Read... [15:52:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:52:56]Read from MH i2c: E2 [15:52:56]MH_I2C_Read... [15:52:56]Read from MH i2c: E2 17 00 [15:52:56]MH_I2C_Read... [15:52:56]Read from MH i2c: E2 17 00 A5 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 DC [15:52:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:52:56]wFMCommunicate OK [15:52:56]requested_item fd.num is exist - process it [15:52:56]SAM_PROTO_GetFieldsCounters [15:52:56]wFMCommunicate request_size=4 [15:52:56]MH_SAM_APDU [15:52:56]CAPDU: 80 13 00 00 [15:52:56]Write to MH i2c: E2 08 00 A6 68 80 13 00 00 00 00 00 00 8A [15:52:56]Write i2c OK [15:52:56]MH_I2C_Read... [15:52:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:52:56]Read from MH i2c: E2 [15:52:56]MH_I2C_Read... [15:52:56]Read from MH i2c: E2 62 00 [15:52:56]MH_I2C_Read... [15:52:56]Read from MH i2c: E2 62 00 A6 68 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E4 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 5D [15:52:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E4 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:52:56]wFMCommunicate OK [15:52:56]SAM_PROTO_GetFieldsCounters done [15:52:56]requested_item shift.num is exist - process it [15:52:56]requested_item shift.opened is exist - process it [15:52:56]req_shift_opened [15:52:56]FM_GetShiftState [15:52:56]SAM_PROTO_GetShiftState [15:52:56]wFMCommunicate request_size=4 [15:52:56]MH_SAM_APDU [15:52:56]CAPDU: 80 13 01 00 [15:52:56]Write to MH i2c: E2 08 00 A7 68 80 13 01 00 00 00 00 00 8C [15:52:56]Write i2c OK [15:52:56]MH_I2C_Read... [15:52:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:52:56]Read from MH i2c: E2 [15:52:56]MH_I2C_Read... [15:52:56]Read from MH i2c: E2 0E 00 [15:52:56]MH_I2C_Read... [15:52:56]Read from MH i2c: E2 0E 00 A7 68 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 59 [15:52:56]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [15:52:56]wFMCommunicate OK [15:52:56]SAM_PROTO_GetShiftState done [15:52:56]FM_GetShiftState done [15:52:56]req_shift_opened done [15:52:56]requested_item shift.open_date is exist - process it [15:52:56]req_shift_open_date [15:52:56]req_shift_open_date done [15:52:56]produce_requested_data done [15:52:56]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156644,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [15:52:56]process_action_free close_receipt [15:52:56]json_value_free [15:52:56]json_value_free done [15:52:56]process_json_proto returns [15:52:56]Send response to host [15:52:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156644,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [15:52:56]free response buf [15:52:56]execute_script done [15:52:56]execute_script returns [15:52:56]free content buf [15:52:56]Sock 8.Close socket [15:52:56]Sock 8.Thread stoped [15:52:56]OFD Sender: No OFD packet to send [15:53:01]OFD Sender: No OFD packet to send [15:53:06]OFD Sender: No OFD packet to send [15:53:11]OFD Sender: No OFD packet to send [15:53:16]OFD Sender: No OFD packet to send [15:53:21]OFD Sender: No OFD packet to send [15:53:26]OFD Sender: No OFD packet to send [15:53:31]OFD Sender: No OFD packet to send [15:53:36]OFD Sender: No OFD packet to send [15:53:41]OFD Sender: No OFD packet to send [15:53:46]OFD Sender: No OFD packet to send [15:53:51]OFD Sender: No OFD packet to send [15:53:56]OFD Sender: No OFD packet to send [15:54:01]OFD Sender: No OFD packet to send [15:54:06]OFD Sender: No OFD packet to send [15:54:11]OFD Sender: No OFD packet to send [15:54:16]OFD Sender: No OFD packet to send [15:54:21]OFD Sender: No OFD packet to send [15:54:26]OFD Sender: No OFD packet to send [15:54:29]accept exits with 9 [15:54:29]New connection [15:54:29]New thread 3066977636 created [15:54:29]Thread 3066834276 joined [15:54:29]Waiting for new connection... [15:54:29] Sock 9.Parse request [15:54:29]Sock 9.Check first char [15:54:29]Sock 9.First char is OK [15:54:29]request: POST /json_proto HTTP/1.0 [15:54:29]Method: POST [15:54:29]URL: /json_proto [15:54:29]Method is POST - this is cgi request [15:54:29]url: /json_proto [15:54:29]query_string will be loaded in cgi processing [15:54:29]execute_cgi json_proto POST (null) [15:54:29]execute_cgi path=json_proto method=POST [15:54:29]POST find Content-Length [15:54:29]Host: 172.17.63.3:8080 [15:54:29]Content-Length: 676 [15:54:29]Content-Type: application/json [15:54:29] [15:54:29]POST finish read [15:54:29]Found Content-Length = 676 [15:54:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99459", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "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:54:29]execute_script... [15:54: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)99459", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "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:54:29]POST & json_proto [15:54:29]process_json_proto [15:54:29]json parsed OK: [15:54:29]protocol is kg_v1.0 [15:54:29]action value=close_receipt [15:54:29]process_action close_receipt [15:54:29]cmd_close_receipt [15:54:29]MH_GetDate [15:54:29]Write to MH i2c: F0 00 00 A8 68 FF [15:54:29]Write i2c OK [15:54:29]MH_I2C_Read... [15:54:29]Read from MH i2c: F0 [15:54:29]MH_I2C_Read... [15:54:29]Read from MH i2c: F0 09 00 [15:54:29]MH_I2C_Read... [15:54:29]Read from MH i2c: F0 09 00 A8 68 00 3C 62 1E 67 50 D1 6C 64 1C [15:54:29]GetLastDocTimeStamp 1730044380 [15:54:29]current date 1730044476 [15:54:29]FM_GetShiftState [15:54:29]SAM_PROTO_GetShiftState [15:54:29]wFMCommunicate request_size=4 [15:54:29]MH_SAM_APDU [15:54:29]CAPDU: 80 13 01 00 [15:54:29]Write to MH i2c: E2 08 00 A9 68 80 13 01 00 00 00 00 00 8E [15:54:29]Write i2c OK [15:54:29]MH_I2C_Read... [15:54:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:54:29]Read from MH i2c: E2 [15:54:29]MH_I2C_Read... [15:54:29]Read from MH i2c: E2 0E 00 [15:54:29]MH_I2C_Read... [15:54:29]Read from MH i2c: E2 0E 00 A9 68 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 5B [15:54:29]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [15:54:29]wFMCommunicate OK [15:54:29]SAM_PROTO_GetShiftState done [15:54:29]FM_GetShiftState done [15:54:29]opened in 1729989044 [15:54:29]opened+sec_in_day 1730075444 [15:54:29]quantity*price = 60009 [15:54:29]sum+1 = 60010 [15:54:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 196 27.10.2024 15:54 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156645 ФПД: 21182470294296 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T155436&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156645&fm=21182470294296&tin=02508201610067®Number=0000000000091693&sum=60000 [15:54:30]StoreToDocumentArchive [15:54:30]shift 537 fd 156645 [15:54:30]save to /storage/0537/doc_00156645 [15:54:30]save last doc name /storage/0537/doc_00156645 to /storage/kkm_last_doc_name [15:54:30]save OK [15:54:30]Clear old archive folders... [15:54:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:54:30]tlvbuf is 016E4850 [15:54:30]SAM_PROTO_ClearQueue [15:54:30]wFMCommunicate request_size=4 [15:54:30]MH_SAM_APDU [15:54:30]CAPDU: 80 09 00 00 [15:54:30]Write to MH i2c: E2 08 00 B6 68 80 09 00 00 00 00 00 00 90 [15:54:30]Write i2c OK [15:54:30]MH_I2C_Read... [15:54:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:54:30]Read from MH i2c: E2 [15:54:30]MH_I2C_Read... [15:54:30]Read from MH i2c: E2 03 00 [15:54:30]MH_I2C_Read... [15:54:30]Read from MH i2c: E2 03 00 B6 68 00 90 00 92 [15:54:30]RAPDU: 90 00 [15:54:30]wFMCommunicate OK [15:54:30]SAM_PROTO_ClearQueue done [15:54:30]KKMCreateOFDPacket [15:54:30]OFDProtocolAddRootSTLVToBuf [15:54:30]FM_MakeSignedData [15:54:30]FM_MakeSignedData [15:54:30]SAM_PROTO_SignData [15:54:30]wFMCommunicate request_size=4 [15:54:30]MH_SAM_APDU [15:54:30]CAPDU: 80 0D 01 02 [15:54:30]Write to MH i2c: E2 08 00 B7 68 80 0D 01 02 00 00 00 00 98 [15:54:30]Write i2c OK [15:54:30]MH_I2C_Read... [15:54:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:54:30]Read from MH i2c: E2 [15:54:30]MH_I2C_Read... [15:54:30]Read from MH i2c: E2 03 00 [15:54:30]MH_I2C_Read... [15:54:30]Read from MH i2c: E2 03 00 B7 68 00 90 00 93 [15:54:30]RAPDU: 90 00 [15:54:30]wFMCommunicate OK [15:54:30]wFMCommunicate request_size=255 [15:54:30]MH_SAM_APDU [15:54: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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 C4 00 00 00 F4 03 04 00 3C 62 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E5 63 02 00 35 04 06 00 13 [15:54:30]Write to MH i2c: E2 02 01 B8 68 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 C4 00 00 00 F4 03 04 00 3C 62 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E5 63 02 00 35 04 06 00 13 00 00 68 [15:54:30]Write i2c OK [15:54:30]MH_I2C_Read... [15:54:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:54:31]Read from MH i2c: E2 [15:54:31]MH_I2C_Read... [15:54:31]Read from MH i2c: E2 03 00 [15:54:31]MH_I2C_Read... [15:54:31]Read from MH i2c: E2 03 00 B8 68 00 90 00 94 [15:54:31]RAPDU: 90 00 [15:54:31]wFMCommunicate OK [15:54:31]wFMCommunicate request_size=10 [15:54:31]MH_SAM_APDU [15:54:31]CAPDU: 80 0D 02 02 05 43 ED 9E 0B 18 [15:54:31]Write to MH i2c: E2 0D 00 B9 68 80 0D 02 02 05 00 43 ED 9E 0B 18 00 00 96 [15:54:31]Write i2c OK [15:54:31]MH_I2C_Read... [15:54:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:54:31]Read from MH i2c: E2 [15:54:31]MH_I2C_Read... [15:54:31]Read from MH i2c: E2 03 00 [15:54:31]MH_I2C_Read... [15:54:31]Read from MH i2c: E2 03 00 B9 68 00 90 00 95 [15:54:31]RAPDU: 90 00 [15:54:31]wFMCommunicate OK [15:54:31]wFMCommunicate request_size=4 [15:54:31]MH_SAM_APDU [15:54:31]CAPDU: 80 0D 03 02 [15:54:31]Write to MH i2c: E2 08 00 BA 68 80 0D 03 02 00 00 00 00 9D [15:54:31]Write i2c OK [15:54:31]MH_I2C_Read... [15:54:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:54:31]Read from MH i2c: E2 [15:54:31]MH_I2C_Read... [15:54:31]Read from MH i2c: E2 0B 00 [15:54:31]MH_I2C_Read... [15:54:31]Read from MH i2c: E2 0B 00 BA 68 00 8D 3D 1D 01 29 7F 7F 75 90 00 22 [15:54:31]RAPDU: 8D 3D 1D 01 29 7F 7F 75 90 00 [15:54:31]wFMCommunicate OK [15:54:31]SAM_PROTO_SignData done [15:54:31]FM_MakeSignedData done [15:54:31]CreateOFDProtocolMessage [15:54:31]wFMCommunicate request_size=4 [15:54:31]MH_SAM_APDU [15:54:31]CAPDU: 80 11 00 00 [15:54:31]Write to MH i2c: E2 08 00 BB 68 80 11 00 00 00 00 00 00 9D [15:54:31]Write i2c OK [15:54:31]MH_I2C_Read... [15:54:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:54:31]Read from MH i2c: E2 [15:54:31]MH_I2C_Read... [15:54:31]Read from MH i2c: E2 17 00 [15:54:31]MH_I2C_Read... [15:54:31]Read from MH i2c: E2 17 00 BB 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 F2 [15:54:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:54:31]wFMCommunicate OK [15:54:31]CreateOFDProtocolMessage done [15:54:31]OFDSenderStorePacket 156645 [15:54:31]StoreOFDPacket docnum=156645 [15:54:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 AD C9 07 01 A9 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 C4 00 00 00 F4 03 04 00 3C 62 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E5 63 02 00 35 04 06 00 13 43 ED 9E 0B 18 8D 3D 1D 01 29 7F 7F 75 [15:54:31]CheckFolder [15:54:31]dirname=/storage/ofd_packets [15:54:31]CheckFolder done [15:54:31]ProducePacketName [15:54:31]name=ofd_packets/00156645 [15:54:31]NVStorageSaveData ofd_packets/00156645 [15:54:31]File name is /storage/ofd_packets/00156645 [15:54:31]Write 301 bytes [15:54:31]NVStorageSaveData done [15:54:31]OFDSenderStorePacket done [15:54:31]KKMCreateOFDPacket done [15:54:31]NVStorageSaveData kkm_last_timestamp [15:54:31]File name is /storage/kkm_last_timestamp [15:54:31]Write 4 bytes [15:54:31]NVStorageSaveData done [15:54:31]ExternCall_PrintAddStr [15:54:31]wPrintStart [15:54:31]Write to MH i2c: 01 00 00 BC 68 24 [15:54:31]Write i2c OK [15:54:31]MH_I2C_Read... [15:54:31]Read from MH i2c: 01 [15:54:31]MH_I2C_Read... [15:54:31]Read from MH i2c: 01 07 00 [15:54:31]MH_I2C_Read... [15:54:31]Read from MH i2c: 01 07 00 BC 68 00 00 00 00 00 FF 0F 39 [15:54:31]RasterBufferAndPrint [15:54:31]line Счет N : (1)99459 [15:54:31]line ИНН: 02508201610067 [15:54:31]line Контрольно-Кассовый Чек [15:54:31]line ПРОДАЖА [15:54:31]line ТРК (МРК, ГНК) : 11 [15:54:31]line Товар: 2710124130 [15:54:31]line Аи-92-К-5 [15:54:31]line 8.970 * 66.90 [15:54:31]line = 600.09 [15:54:31]line НДС 12% НСП 1% [15:54:31]line > о реализуемом товаре [15:54:31]line ОКРУГЛЕНИЕ: -0.09 [15:54:31]line ИТОГО: 600.00 [15:54:31]line Внесено: 600.00 [15:54:31]line СДАЧА: 0.00 [15:54:31]line НСП 1% : 5.31 [15:54:31]line НДС 12% : 63.73 [15:54:31]line Наличными: 600.00 [15:54:31]line Безнал.: 0.00 [15:54:31]line Место: АЗС № 143 "Партнер Нефть" [15:54:31]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [15:54:31]line СНО: Общий режим [15:54:31]line Чек 196 27.10.2024 15:54 [15:54:31]line Смена: 537 ФФД: 1.0 [15:54:31]line ЗНМ: 0300000096 [15:54:31]line РНМ: 0000000000091693 [15:54:31]line Версия ККМ: 001 [15:54:31]line ФМ: 0000000000871792 [15:54:31]line ФД: 156645 [15:54:31]line ФПД: 21182470294296 [15:54:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T155436&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156645&fm=21182470294296&tin=02508201610067®Number=0000000000091693&sum=60000 [15:54:31]written 0, free lines is 4095 [15:54:31]OFD Sender: Processing packet 156645 [packets to send 31, broken 30] [15:54:31]ProducePacketName [15:54:31]name=ofd_packets/00156645 [15:54:31]OFD Sender: To server: pG, [15:54:31]CommunicateWithHost lk.salyk.kg:30040 [15:54:31]ConnectInit lk.salyk.kg [15:54:31]Connected sock=10 [15:54:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 AD C9 07 01 A9 1C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 C4 00 00 00 F4 03 04 00 3C 62 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E5 63 02 00 35 04 06 00 13 43 ED 9E 0B 18 8D 3D 1D 01 29 7F 7F 75 [15:54:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 F3 25 47 00 F4 04 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E5 63 02 00 F4 03 04 00 AA 07 1E 67 B6 04 01 00 00 73 B0 F8 28 18 A2 BA A9 [15:54:31]CommunicateWithHost err = 0 [15:54:31]CheckOFDResponse [15:54:31]1017 (14) - 77093643461234 [15:54:31]1041 (16) - 0000000000871792 [15:54:31]1040 (4) - 156645 [15:54:31]1012 (4) - 27.10.2024 09:28 [15:54:31]1206 (1) - 0 [15:54:31]OFD Sender: Remove packet 156645 [15:54:31]ProducePacketName [15:54:31]name=ofd_packets/00156645 [15:54:31]NVStorageDeleteData [15:54:31]Write to MH i2c: 01 00 00 E7 68 4F [15:54:31]Write i2c OK [15:54:31]MH_I2C_Read... [15:54:31]Read from MH i2c: 01 [15:54:31]MH_I2C_Read... [15:54:31]Read from MH i2c: 01 07 00 [15:54:31]MH_I2C_Read... [15:54:31]Read from MH i2c: 01 07 00 E7 68 00 00 00 00 00 EB 0C 4D [15:54:31]RasterBufferAndPrint [15:54:31]line [15:54:31]line [15:54:31]line [15:54:31]line [15:54:31]line [15:54:31]written 0, free lines is 3313 [15:54:31]process_action close_receipt done [15:54:31]requested_data is exist [15:54:31]produce_requested_data [15:54:31]requested_item fm.sn is exist - process it [15:54:31]wFMCommunicate request_size=4 [15:54:31]MH_SAM_APDU [15:54:31]CAPDU: 80 11 00 00 [15:54:31]Write to MH i2c: E2 08 00 EE 68 80 11 00 00 00 00 00 00 D0 [15:54:31]Write i2c OK [15:54:31]MH_I2C_Read... [15:54:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:54:31]Read from MH i2c: E2 [15:54:31]MH_I2C_Read... [15:54:31]Read from MH i2c: E2 17 00 [15:54:31]MH_I2C_Read... [15:54:31]Read from MH i2c: E2 17 00 EE 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 25 [15:54:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:54:31]wFMCommunicate OK [15:54:31]requested_item fd.num is exist - process it [15:54:31]SAM_PROTO_GetFieldsCounters [15:54:31]wFMCommunicate request_size=4 [15:54:31]MH_SAM_APDU [15:54:31]CAPDU: 80 13 00 00 [15:54:31]Write to MH i2c: E2 08 00 EF 68 80 13 00 00 00 00 00 00 D3 [15:54:31]Write i2c OK [15:54:31]MH_I2C_Read... [15:54:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:54:31]Read from MH i2c: E2 [15:54:31]MH_I2C_Read... [15:54:31]Read from MH i2c: E2 62 00 [15:54:31]MH_I2C_Read... [15:54:31]Read from MH i2c: E2 62 00 EF 68 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E5 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 AA [15:54:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E5 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:54:31]wFMCommunicate OK [15:54:31]SAM_PROTO_GetFieldsCounters done [15:54:31]requested_item shift.num is exist - process it [15:54:31]requested_item shift.opened is exist - process it [15:54:31]req_shift_opened [15:54:31]FM_GetShiftState [15:54:31]SAM_PROTO_GetShiftState [15:54:31]wFMCommunicate request_size=4 [15:54:31]MH_SAM_APDU [15:54:31]CAPDU: 80 13 01 00 [15:54:31]Write to MH i2c: E2 08 00 F0 68 80 13 01 00 00 00 00 00 D5 [15:54:31]Write i2c OK [15:54:31]MH_I2C_Read... [15:54:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:54:32]Read from MH i2c: E2 [15:54:32]MH_I2C_Read... [15:54:32]Read from MH i2c: E2 0E 00 [15:54:32]MH_I2C_Read... [15:54:32]Read from MH i2c: E2 0E 00 F0 68 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 A2 [15:54:32]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [15:54:32]wFMCommunicate OK [15:54:32]SAM_PROTO_GetShiftState done [15:54:32]FM_GetShiftState done [15:54:32]req_shift_opened done [15:54:32]requested_item shift.open_date is exist - process it [15:54:32]req_shift_open_date [15:54:32]req_shift_open_date done [15:54:32]produce_requested_data done [15:54:32]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156645,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [15:54:32]process_action_free close_receipt [15:54:32]json_value_free [15:54:32]json_value_free done [15:54:32]process_json_proto returns [15:54:32]Send response to host [15:54:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156645,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [15:54:32]free response buf [15:54:32]execute_script done [15:54:32]execute_script returns [15:54:32]free content buf [15:54:32]Sock 9.Close socket [15:54:32]Sock 9.Thread stoped [15:54:32]OFD Sender: No OFD packet to send [15:54:37]OFD Sender: No OFD packet to send [15:54:42]OFD Sender: No OFD packet to send [15:54:47]OFD Sender: No OFD packet to send [15:54:52]OFD Sender: No OFD packet to send [15:54:57]OFD Sender: No OFD packet to send [15:55:02]OFD Sender: No OFD packet to send [15:55:07]OFD Sender: No OFD packet to send [15:55:12]OFD Sender: No OFD packet to send [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:47]int [15:55:47]Write to MH i2c: 01 00 00 F1 68 59 [15:55:47]*** FLAG_PRN_KEY set [15:55:47]Write i2c OK [15:55:47]MH_I2C_Read... [15:55:47]Read from MH i2c: 01 [15:55:47]MH_I2C_Read... [15:55:47]Read from MH i2c: 01 07 00 [15:55:47]MH_I2C_Read... [15:55:47]Read from MH i2c: 01 07 00 F1 68 00 08 00 00 00 FF 0F 76 [15:55:47]state=0 [15:55:47]Key pressed [15:55:47]Feed [15:55:47]Write to MH i2c: D8 00 00 F2 68 31 [15:55:47]Write i2c OK [15:55:47]MH_I2C_Read... [15:55:47]Read from MH i2c: D8 [15:55:47]MH_I2C_Read... [15:55:47]Read from MH i2c: D8 01 00 [15:55:47]MH_I2C_Read... [15:55:47]Read from MH i2c: D8 01 00 F2 68 00 32 [15:55:47]int [15:55:47]Write to MH i2c: 01 00 00 F3 68 5B [15:55:47]Write i2c OK [15:55:47]MH_I2C_Read... [15:55:48]Read from MH i2c: 01 [15:55:48]MH_I2C_Read... [15:55:48]Read from MH i2c: 01 07 00 [15:55:48]MH_I2C_Read... [15:55:48]Read from MH i2c: 01 07 00 F3 68 00 48 00 00 00 3D 00 E7 [15:55:48]state=2 [15:55:48]Key pressed [15:55:48]int [15:55:48]Write to MH i2c: 01 00 00 F4 68 5C [15:55:48]*** FLAG_PRN_KEY reset [15:55:48]Write i2c OK [15:55:48]MH_I2C_Read... [15:55:48]Read from MH i2c: 01 [15:55:48]MH_I2C_Read... [15:55:48]Read from MH i2c: 01 07 00 [15:55:48]MH_I2C_Read... [15:55:48]Read from MH i2c: 01 07 00 F4 68 00 00 00 00 00 FF 0F 71 [15:55:48]state=2 [15:55:48]Stop feed [15:55:49]int [15:55:49]Write to MH i2c: 01 00 00 F5 68 5D [15:55:49]*** FLAG_PRN_KEY set [15:55:49]Write i2c OK [15:55:49]MH_I2C_Read... [15:55:49]Read from MH i2c: 01 [15:55:49]MH_I2C_Read... [15:55:49]Read from MH i2c: 01 07 00 [15:55:49]MH_I2C_Read... [15:55:49]Read from MH i2c: 01 07 00 F5 68 00 08 00 00 00 FF 0F 7A [15:55:49]state=0 [15:55:49]Key pressed [15:55:49]Feed [15:55:49]Write to MH i2c: D8 00 00 F6 68 35 [15:55:49]Write i2c OK [15:55:49]MH_I2C_Read... [15:55:49]Read from MH i2c: D8 [15:55:49]MH_I2C_Read... [15:55:49]Read from MH i2c: D8 01 00 [15:55:49]MH_I2C_Read... [15:55:49]Read from MH i2c: D8 01 00 F6 68 00 36 [15:55:49]int [15:55:49]Write to MH i2c: 01 00 00 F7 68 5F [15:55:49]Write i2c OK [15:55:49]MH_I2C_Read... [15:55:49]Read from MH i2c: 01 [15:55:49]MH_I2C_Read... [15:55:49]Read from MH i2c: 01 07 00 [15:55:49]MH_I2C_Read... [15:55:49]Read from MH i2c: 01 07 00 F7 68 00 48 00 00 00 3C 00 EA [15:55:49]state=2 [15:55:49]Key pressed [15:55:49]int [15:55:49]Write to MH i2c: 01 00 00 F8 68 60 [15:55:49]*** FLAG_PRN_KEY reset [15:55:49]Write i2c OK [15:55:49]MH_I2C_Read... [15:55:49]Read from MH i2c: 01 [15:55:49]MH_I2C_Read... [15:55:49]Read from MH i2c: 01 07 00 [15:55:49]MH_I2C_Read... [15:55:49]Read from MH i2c: 01 07 00 F8 68 00 00 00 00 00 F6 0F 6C [15:55:49]state=2 [15:55:49]Stop feed [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:14]accept exits with 8 [15:56:14]New connection [15:56:14]New thread 3066834276 created [15:56:14]Thread 3066977636 joined [15:56:14]Waiting for new connection... [15:56:14] Sock 8.Parse request [15:56:14]Sock 8.Check first char [15:56:14]Sock 8.First char is OK [15:56:14]request: POST /json_proto HTTP/1.0 [15:56:14]Method: POST [15:56:14]URL: /json_proto [15:56:14]Method is POST - this is cgi request [15:56:14]url: /json_proto [15:56:14]query_string will be loaded in cgi processing [15:56:14]execute_cgi json_proto POST (null) [15:56:14]execute_cgi path=json_proto method=POST [15:56:14]POST find Content-Length [15:56:14]Host: 172.17.63.3:8080 [15:56:14]Content-Length: 676 [15:56:14]Content-Type: application/json [15:56:14] [15:56:14]POST finish read [15:56:14]Found Content-Length = 676 [15:56:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99460", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:56:14]execute_script... [15:56: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)99460", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:56:14]POST & json_proto [15:56:14]process_json_proto [15:56:14]json parsed OK: [15:56:14]protocol is kg_v1.0 [15:56:14]action value=close_receipt [15:56:14]process_action close_receipt [15:56:14]cmd_close_receipt [15:56:14]MH_GetDate [15:56:14]Write to MH i2c: F0 00 00 F9 68 50 [15:56:14]Write i2c OK [15:56:14]MH_I2C_Read... [15:56:14]Read from MH i2c: F0 [15:56:14]MH_I2C_Read... [15:56:14]Read from MH i2c: F0 09 00 [15:56:14]MH_I2C_Read... [15:56:14]Read from MH i2c: F0 09 00 F9 68 00 A4 62 1E 67 50 D1 6C 64 D5 [15:56:14]GetLastDocTimeStamp 1730044476 [15:56:14]current date 1730044580 [15:56:14]FM_GetShiftState [15:56:14]SAM_PROTO_GetShiftState [15:56:14]wFMCommunicate request_size=4 [15:56:14]MH_SAM_APDU [15:56:14]CAPDU: 80 13 01 00 [15:56:14]Write to MH i2c: E2 08 00 FA 68 80 13 01 00 00 00 00 00 DF [15:56:14]Write i2c OK [15:56:14]MH_I2C_Read... [15:56:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:56:14]Read from MH i2c: E2 [15:56:14]MH_I2C_Read... [15:56:14]Read from MH i2c: E2 0E 00 [15:56:14]MH_I2C_Read... [15:56:14]Read from MH i2c: E2 0E 00 FA 68 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 AC [15:56:14]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [15:56:14]wFMCommunicate OK [15:56:14]SAM_PROTO_GetShiftState done [15:56:14]FM_GetShiftState done [15:56:14]opened in 1729989044 [15:56:14]opened+sec_in_day 1730075444 [15:56:14]quantity*price = 50041 [15:56:14]sum+1 = 50042 [15:56:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 197 27.10.2024 15:56 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156646 ФПД: 11935541127044 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T155620&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156646&fm=11935541127044&tin=02508201610067®Number=0000000000091693&sum=50000 [15:56:15]StoreToDocumentArchive [15:56:15]shift 537 fd 156646 [15:56:15]save to /storage/0537/doc_00156646 [15:56:15]save last doc name /storage/0537/doc_00156646 to /storage/kkm_last_doc_name [15:56:15]save OK [15:56:15]Clear old archive folders... [15:56:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:56:15]tlvbuf is 01735EB0 [15:56:15]SAM_PROTO_ClearQueue [15:56:15]wFMCommunicate request_size=4 [15:56:15]MH_SAM_APDU [15:56:15]CAPDU: 80 09 00 00 [15:56:15]Write to MH i2c: E2 08 00 07 69 80 09 00 00 00 00 00 00 E2 [15:56:15]Write i2c OK [15:56:15]MH_I2C_Read... [15:56:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:56:15]Read from MH i2c: E2 [15:56:15]MH_I2C_Read... [15:56:15]Read from MH i2c: E2 03 00 [15:56:15]MH_I2C_Read... [15:56:15]Read from MH i2c: E2 03 00 07 69 00 90 00 E4 [15:56:15]RAPDU: 90 00 [15:56:15]wFMCommunicate OK [15:56:15]SAM_PROTO_ClearQueue done [15:56:15]KKMCreateOFDPacket [15:56:15]OFDProtocolAddRootSTLVToBuf [15:56:15]FM_MakeSignedData [15:56:15]FM_MakeSignedData [15:56:15]SAM_PROTO_SignData [15:56:15]wFMCommunicate request_size=4 [15:56:15]MH_SAM_APDU [15:56:15]CAPDU: 80 0D 01 02 [15:56:15]Write to MH i2c: E2 08 00 08 69 80 0D 01 02 00 00 00 00 EA [15:56:15]Write i2c OK [15:56:15]MH_I2C_Read... [15:56:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:56:15]Read from MH i2c: E2 [15:56:15]MH_I2C_Read... [15:56:15]Read from MH i2c: E2 03 00 [15:56:15]MH_I2C_Read... [15:56:15]Read from MH i2c: E2 03 00 08 69 00 90 00 E5 [15:56:15]RAPDU: 90 00 [15:56:15]wFMCommunicate OK [15:56:15]wFMCommunicate request_size=255 [15:56:15]MH_SAM_APDU [15:56: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 A4 62 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E6 63 02 00 35 04 06 00 0A [15:56:15]Write to MH i2c: E2 02 01 09 69 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 A4 62 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E6 63 02 00 35 04 06 00 0A 00 00 3E [15:56:15]Write i2c OK [15:56:15]MH_I2C_Read... [15:56:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:56:15]Read from MH i2c: E2 [15:56:15]MH_I2C_Read... [15:56:15]Read from MH i2c: E2 03 00 [15:56:15]MH_I2C_Read... [15:56:15]Read from MH i2c: E2 03 00 09 69 00 90 00 E6 [15:56:15]RAPDU: 90 00 [15:56:15]wFMCommunicate OK [15:56:15]wFMCommunicate request_size=10 [15:56:15]MH_SAM_APDU [15:56:15]CAPDU: 80 0D 02 02 05 DA F5 B0 67 84 [15:56:15]Write to MH i2c: E2 0D 00 0A 69 80 0D 02 02 05 00 DA F5 B0 67 84 00 00 61 [15:56:15]Write i2c OK [15:56:15]MH_I2C_Read... [15:56:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:56:15]Read from MH i2c: E2 [15:56:15]MH_I2C_Read... [15:56:15]Read from MH i2c: E2 03 00 [15:56:15]MH_I2C_Read... [15:56:15]Read from MH i2c: E2 03 00 0A 69 00 90 00 E7 [15:56:15]RAPDU: 90 00 [15:56:15]wFMCommunicate OK [15:56:15]wFMCommunicate request_size=4 [15:56:15]MH_SAM_APDU [15:56:15]CAPDU: 80 0D 03 02 [15:56:15]Write to MH i2c: E2 08 00 0B 69 80 0D 03 02 00 00 00 00 EF [15:56:15]Write i2c OK [15:56:15]MH_I2C_Read... [15:56:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:56:15]Read from MH i2c: E2 [15:56:15]MH_I2C_Read... [15:56:15]Read from MH i2c: E2 0B 00 [15:56:15]MH_I2C_Read... [15:56:15]Read from MH i2c: E2 0B 00 0B 69 00 A0 43 3A 07 DD 91 D9 69 90 00 C4 [15:56:15]RAPDU: A0 43 3A 07 DD 91 D9 69 90 00 [15:56:15]wFMCommunicate OK [15:56:15]SAM_PROTO_SignData done [15:56:15]FM_MakeSignedData done [15:56:15]CreateOFDProtocolMessage [15:56:15]wFMCommunicate request_size=4 [15:56:15]MH_SAM_APDU [15:56:15]CAPDU: 80 11 00 00 [15:56:15]Write to MH i2c: E2 08 00 0C 69 80 11 00 00 00 00 00 00 EF [15:56:15]Write i2c OK [15:56:15]MH_I2C_Read... [15:56:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:56:15]Read from MH i2c: E2 [15:56:15]MH_I2C_Read... [15:56:15]Read from MH i2c: E2 17 00 [15:56:15]MH_I2C_Read... [15:56:15]Read from MH i2c: E2 17 00 0C 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 44 [15:56:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:56:15]wFMCommunicate OK [15:56:15]CreateOFDProtocolMessage done [15:56:15]OFDSenderStorePacket 156646 [15:56:15]StoreOFDPacket docnum=156646 [15:56:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 A9 8F 07 01 C8 0A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 A4 62 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E6 63 02 00 35 04 06 00 0A DA F5 B0 67 84 A0 43 3A 07 DD 91 D9 69 [15:56:15]CheckFolder [15:56:15]dirname=/storage/ofd_packets [15:56:15]CheckFolder done [15:56:15]ProducePacketName [15:56:15]name=ofd_packets/00156646 [15:56:15]NVStorageSaveData ofd_packets/00156646 [15:56:15]File name is /storage/ofd_packets/00156646 [15:56:15]Write 301 bytes [15:56:15]NVStorageSaveData done [15:56:15]OFDSenderStorePacket done [15:56:15]KKMCreateOFDPacket done [15:56:15]NVStorageSaveData kkm_last_timestamp [15:56:15]File name is /storage/kkm_last_timestamp [15:56:15]Write 4 bytes [15:56:15]NVStorageSaveData done [15:56:15]ExternCall_PrintAddStr [15:56:15]wPrintStart [15:56:15]Write to MH i2c: 01 00 00 0D 69 76 [15:56:15]Write i2c OK [15:56:15]MH_I2C_Read... [15:56:15]Read from MH i2c: 01 [15:56:15]MH_I2C_Read... [15:56:15]Read from MH i2c: 01 07 00 [15:56:15]MH_I2C_Read... [15:56:15]Read from MH i2c: 01 07 00 0D 69 00 00 00 00 00 FF 0F 8B [15:56:15]RasterBufferAndPrint [15:56:15]line Счет N : (1)99460 [15:56:15]line ИНН: 02508201610067 [15:56:15]line Контрольно-Кассовый Чек [15:56:15]line ПРОДАЖА [15:56:15]line ТРК (МРК, ГНК) : 31 [15:56:15]line Товар: 2710124130 [15:56:15]line Аи-92-К-5 [15:56:15]line 7.480 * 66.90 [15:56:15]line = 500.41 [15:56:15]line НДС 12% НСП 1% [15:56:15]line > о реализуемом товаре [15:56:15]line ОКРУГЛЕНИЕ: -0.41 [15:56:15]line ИТОГО: 500.00 [15:56:15]line Внесено: 500.00 [15:56:15]line СДАЧА: 0.00 [15:56:15]line НСП 1% : 4.43 [15:56:15]line НДС 12% : 53.14 [15:56:15]line Наличными: 500.00 [15:56:15]line Безнал.: 0.00 [15:56:15]line Место: АЗС № 143 "Партнер Нефть" [15:56:15]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [15:56:15]line СНО: Общий режим [15:56:15]line Чек 197 27.10.2024 15:56 [15:56:15]line Смена: 537 ФФД: 1.0 [15:56:15]line ЗНМ: 0300000096 [15:56:15]line РНМ: 0000000000091693 [15:56:15]line Версия ККМ: 001 [15:56:15]line ФМ: 0000000000871792 [15:56:15]line ФД: 156646 [15:56:15]line ФПД: 11935541127044 [15:56:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T155620&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156646&fm=11935541127044&tin=02508201610067®Number=0000000000091693&sum=50000 [15:56:16]OFD Sender: Processing packet 156646 [packets to send 31, broken 30] [15:56:16]ProducePacketName [15:56:16]name=ofd_packets/00156646 [15:56:16]OFD Sender: To server: pG, [15:56:16]CommunicateWithHost lk.salyk.kg:30040 [15:56:16]ConnectInit lk.salyk.kg [15:56:16]written 0, free lines is 4095 [15:56:16]Connected sock=10 [15:56:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 A9 8F 07 01 C8 0A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 A4 62 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E6 63 02 00 35 04 06 00 0A DA F5 B0 67 84 A0 43 3A 07 DD 91 D9 69 [15:56:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 D8 5B 47 00 C2 4A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E6 63 02 00 F4 03 04 00 13 08 1E 67 B6 04 01 00 00 A4 27 4C A8 90 F4 36 C0 [15:56:16]CommunicateWithHost err = 0 [15:56:16]CheckOFDResponse [15:56:16]1017 (14) - 77093643461234 [15:56:16]1041 (16) - 0000000000871792 [15:56:16]1040 (4) - 156646 [15:56:16]1012 (4) - 27.10.2024 09:29 [15:56:16]1206 (1) - 0 [15:56:16]OFD Sender: Remove packet 156646 [15:56:16]ProducePacketName [15:56:16]name=ofd_packets/00156646 [15:56:16]NVStorageDeleteData [15:56:16]Write to MH i2c: 01 00 00 38 69 A1 [15:56:16]Write i2c OK [15:56:16]MH_I2C_Read... [15:56:16]Read from MH i2c: 01 [15:56:16]MH_I2C_Read... [15:56:16]Read from MH i2c: 01 07 00 [15:56:16]MH_I2C_Read... [15:56:16]Read from MH i2c: 01 07 00 38 69 00 00 00 00 00 E4 0C 98 [15:56:16]RasterBufferAndPrint [15:56:16]line [15:56:16]line [15:56:16]line [15:56:16]line [15:56:16]line [15:56:16]written 0, free lines is 3306 [15:56:16]process_action close_receipt done [15:56:16]requested_data is exist [15:56:16]produce_requested_data [15:56:16]requested_item fm.sn is exist - process it [15:56:16]wFMCommunicate request_size=4 [15:56:16]MH_SAM_APDU [15:56:16]CAPDU: 80 11 00 00 [15:56:16]Write to MH i2c: E2 08 00 3F 69 80 11 00 00 00 00 00 00 22 [15:56:16]Write i2c OK [15:56:16]MH_I2C_Read... [15:56:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:56:16]Read from MH i2c: E2 [15:56:16]MH_I2C_Read... [15:56:16]Read from MH i2c: E2 17 00 [15:56:16]MH_I2C_Read... [15:56:16]Read from MH i2c: E2 17 00 3F 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 77 [15:56:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:56:16]wFMCommunicate OK [15:56:16]requested_item fd.num is exist - process it [15:56:16]SAM_PROTO_GetFieldsCounters [15:56:16]wFMCommunicate request_size=4 [15:56:16]MH_SAM_APDU [15:56:16]CAPDU: 80 13 00 00 [15:56:16]Write to MH i2c: E2 08 00 40 69 80 13 00 00 00 00 00 00 25 [15:56:16]Write i2c OK [15:56:16]MH_I2C_Read... [15:56:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:56:16]Read from MH i2c: E2 [15:56:16]MH_I2C_Read... [15:56:16]Read from MH i2c: E2 62 00 [15:56:16]MH_I2C_Read... [15:56:16]Read from MH i2c: E2 62 00 40 69 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E6 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 00 [15:56:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E6 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:56:16]wFMCommunicate OK [15:56:16]SAM_PROTO_GetFieldsCounters done [15:56:16]requested_item shift.num is exist - process it [15:56:16]requested_item shift.opened is exist - process it [15:56:16]req_shift_opened [15:56:16]FM_GetShiftState [15:56:16]SAM_PROTO_GetShiftState [15:56:16]wFMCommunicate request_size=4 [15:56:16]MH_SAM_APDU [15:56:16]CAPDU: 80 13 01 00 [15:56:16]Write to MH i2c: E2 08 00 41 69 80 13 01 00 00 00 00 00 27 [15:56:16]Write i2c OK [15:56:16]MH_I2C_Read... [15:56:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:56:16]Read from MH i2c: E2 [15:56:16]MH_I2C_Read... [15:56:16]Read from MH i2c: E2 0E 00 [15:56:16]MH_I2C_Read... [15:56:16]Read from MH i2c: E2 0E 00 41 69 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 F4 [15:56:16]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [15:56:16]wFMCommunicate OK [15:56:16]SAM_PROTO_GetShiftState done [15:56:16]FM_GetShiftState done [15:56:16]req_shift_opened done [15:56:16]requested_item shift.open_date is exist - process it [15:56:16]req_shift_open_date [15:56:16]req_shift_open_date done [15:56:16]produce_requested_data done [15:56:16]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156646,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [15:56:16]process_action_free close_receipt [15:56:16]json_value_free [15:56:16]json_value_free done [15:56:16]process_json_proto returns [15:56:16]Send response to host [15:56:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156646,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [15:56:16]free response buf [15:56:16]execute_script done [15:56:16]execute_script returns [15:56:16]free content buf [15:56:16]Sock 8.Close socket [15:56:16]Sock 8.Thread stoped [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:01]accept exits with 9 [15:58:01]New connection [15:58:01]New thread 3066977636 created [15:58:01]Thread 3066834276 joined [15:58:01]Waiting for new connection... [15:58:01] Sock 9.Parse request [15:58:01]Sock 9.Check first char [15:58:01]Sock 9.First char is OK [15:58:01]request: POST /json_proto HTTP/1.0 [15:58:01]Method: POST [15:58:01]URL: /json_proto [15:58:01]Method is POST - this is cgi request [15:58:01]url: /json_proto [15:58:01]query_string will be loaded in cgi processing [15:58:01]execute_cgi json_proto POST (null) [15:58:01]execute_cgi path=json_proto method=POST [15:58:01]POST find Content-Length [15:58:01]Host: 172.17.63.3:8080 [15:58:01]Content-Length: 676 [15:58:01]Content-Type: application/json [15:58:01] [15:58:01]POST finish read [15:58:01]Found Content-Length = 676 [15:58:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99461", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:58:01]execute_script... [15:58: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)99461", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:58:01]POST & json_proto [15:58:01]process_json_proto [15:58:01]json parsed OK: [15:58:01]protocol is kg_v1.0 [15:58:01]action value=close_receipt [15:58:01]process_action close_receipt [15:58:01]cmd_close_receipt [15:58:01]MH_GetDate [15:58:01]Write to MH i2c: F0 00 00 42 69 9A [15:58:01]Write i2c OK [15:58:01]MH_I2C_Read... [15:58:01]Read from MH i2c: F0 [15:58:01]MH_I2C_Read... [15:58:01]Read from MH i2c: F0 09 00 [15:58:01]MH_I2C_Read... [15:58:01]Read from MH i2c: F0 09 00 42 69 00 0F 63 1E 67 50 D1 6C 64 8B [15:58:01]GetLastDocTimeStamp 1730044580 [15:58:01]current date 1730044687 [15:58:01]FM_GetShiftState [15:58:01]SAM_PROTO_GetShiftState [15:58:01]wFMCommunicate request_size=4 [15:58:01]MH_SAM_APDU [15:58:01]CAPDU: 80 13 01 00 [15:58:01]Write to MH i2c: E2 08 00 43 69 80 13 01 00 00 00 00 00 29 [15:58:01]Write i2c OK [15:58:01]MH_I2C_Read... [15:58:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:58:01]Read from MH i2c: E2 [15:58:01]MH_I2C_Read... [15:58:01]Read from MH i2c: E2 0E 00 [15:58:01]MH_I2C_Read... [15:58:01]Read from MH i2c: E2 0E 00 43 69 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 F6 [15:58:01]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [15:58:01]wFMCommunicate OK [15:58:01]SAM_PROTO_GetShiftState done [15:58:01]FM_GetShiftState done [15:58:01]opened in 1729989044 [15:58:01]opened+sec_in_day 1730075444 [15:58:01]quantity*price = 50041 [15:58:01]sum+1 = 50042 [15:58:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 198 27.10.2024 15:58 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156647 ФПД: 240463615492012 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T155807&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156647&fm=240463615492012&tin=02508201610067®Number=0000000000091693&sum=50000 [15:58:02]StoreToDocumentArchive [15:58:02]shift 537 fd 156647 [15:58:02]save to /storage/0537/doc_00156647 [15:58:02]save last doc name /storage/0537/doc_00156647 to /storage/kkm_last_doc_name [15:58:02]save OK [15:58:02]Clear old archive folders... [15:58:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:58:02]tlvbuf is 018D7100 [15:58:02]SAM_PROTO_ClearQueue [15:58:02]wFMCommunicate request_size=4 [15:58:02]MH_SAM_APDU [15:58:02]CAPDU: 80 09 00 00 [15:58:02]Write to MH i2c: E2 08 00 50 69 80 09 00 00 00 00 00 00 2B [15:58:02]Write i2c OK [15:58:02]MH_I2C_Read... [15:58:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:58:02]Read from MH i2c: E2 [15:58:02]MH_I2C_Read... [15:58:02]Read from MH i2c: E2 03 00 [15:58:02]MH_I2C_Read... [15:58:02]Read from MH i2c: E2 03 00 50 69 00 90 00 2D [15:58:02]RAPDU: 90 00 [15:58:02]wFMCommunicate OK [15:58:02]SAM_PROTO_ClearQueue done [15:58:02]KKMCreateOFDPacket [15:58:02]OFDProtocolAddRootSTLVToBuf [15:58:02]FM_MakeSignedData [15:58:02]FM_MakeSignedData [15:58:02]SAM_PROTO_SignData [15:58:02]wFMCommunicate request_size=4 [15:58:02]MH_SAM_APDU [15:58:02]CAPDU: 80 0D 01 02 [15:58:02]Write to MH i2c: E2 08 00 51 69 80 0D 01 02 00 00 00 00 33 [15:58:02]Write i2c OK [15:58:02]MH_I2C_Read... [15:58:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:58:02]Read from MH i2c: E2 [15:58:02]MH_I2C_Read... [15:58:02]Read from MH i2c: E2 03 00 [15:58:02]MH_I2C_Read... [15:58:02]Read from MH i2c: E2 03 00 51 69 00 90 00 2E [15:58:02]RAPDU: 90 00 [15:58:02]wFMCommunicate OK [15:58:02]wFMCommunicate request_size=255 [15:58:02]MH_SAM_APDU [15:58: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 0F 63 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E7 63 02 00 35 04 06 00 DA [15:58:02]Write to MH i2c: E2 02 01 52 69 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 0F 63 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E7 63 02 00 35 04 06 00 DA 00 00 C5 [15:58:02]Write i2c OK [15:58:02]MH_I2C_Read... [15:58:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:58:02]Read from MH i2c: E2 [15:58:02]MH_I2C_Read... [15:58:02]Read from MH i2c: E2 03 00 [15:58:02]MH_I2C_Read... [15:58:02]Read from MH i2c: E2 03 00 52 69 00 90 00 2F [15:58:02]RAPDU: 90 00 [15:58:02]wFMCommunicate OK [15:58:02]wFMCommunicate request_size=10 [15:58:02]MH_SAM_APDU [15:58:02]CAPDU: 80 0D 02 02 05 B3 4C 61 FF AC [15:58:02]Write to MH i2c: E2 0D 00 53 69 80 0D 02 02 05 00 B3 4C 61 FF AC 00 00 4B [15:58:02]Write i2c OK [15:58:02]MH_I2C_Read... [15:58:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:58:02]Read from MH i2c: E2 [15:58:02]MH_I2C_Read... [15:58:02]Read from MH i2c: E2 03 00 [15:58:02]MH_I2C_Read... [15:58:02]Read from MH i2c: E2 03 00 53 69 00 90 00 30 [15:58:02]RAPDU: 90 00 [15:58:02]wFMCommunicate OK [15:58:02]wFMCommunicate request_size=4 [15:58:02]MH_SAM_APDU [15:58:02]CAPDU: 80 0D 03 02 [15:58:02]Write to MH i2c: E2 08 00 54 69 80 0D 03 02 00 00 00 00 38 [15:58:02]Write i2c OK [15:58:02]MH_I2C_Read... [15:58:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:58:02]Read from MH i2c: E2 [15:58:02]MH_I2C_Read... [15:58:02]Read from MH i2c: E2 0B 00 [15:58:02]MH_I2C_Read... [15:58:02]Read from MH i2c: E2 0B 00 54 69 00 BF ED 19 96 70 C5 93 C2 90 00 1E [15:58:02]RAPDU: BF ED 19 96 70 C5 93 C2 90 00 [15:58:02]wFMCommunicate OK [15:58:02]SAM_PROTO_SignData done [15:58:02]FM_MakeSignedData done [15:58:02]CreateOFDProtocolMessage [15:58:02]wFMCommunicate request_size=4 [15:58:02]MH_SAM_APDU [15:58:02]CAPDU: 80 11 00 00 [15:58:02]Write to MH i2c: E2 08 00 55 69 80 11 00 00 00 00 00 00 38 [15:58:02]Write i2c OK [15:58:02]MH_I2C_Read... [15:58:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:58:02]Read from MH i2c: E2 [15:58:02]MH_I2C_Read... [15:58:02]Read from MH i2c: E2 17 00 [15:58:02]MH_I2C_Read... [15:58:02]Read from MH i2c: E2 17 00 55 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 8D [15:58:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:58:02]wFMCommunicate OK [15:58:02]CreateOFDProtocolMessage done [15:58:02]OFDSenderStorePacket 156647 [15:58:02]StoreOFDPacket docnum=156647 [15:58:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 EE 04 07 01 6E 44 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 0F 63 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E7 63 02 00 35 04 06 00 DA B3 4C 61 FF AC BF ED 19 96 70 C5 93 C2 [15:58:02]CheckFolder [15:58:02]dirname=/storage/ofd_packets [15:58:02]CheckFolder done [15:58:02]ProducePacketName [15:58:02]name=ofd_packets/00156647 [15:58:02]NVStorageSaveData ofd_packets/00156647 [15:58:02]File name is /storage/ofd_packets/00156647 [15:58:02]Write 301 bytes [15:58:02]NVStorageSaveData done [15:58:02]OFDSenderStorePacket done [15:58:02]KKMCreateOFDPacket done [15:58:02]NVStorageSaveData kkm_last_timestamp [15:58:02]File name is /storage/kkm_last_timestamp [15:58:02]Write 4 bytes [15:58:02]NVStorageSaveData done [15:58:02]ExternCall_PrintAddStr [15:58:02]wPrintStart [15:58:02]Write to MH i2c: 01 00 00 56 69 BF [15:58:02]Write i2c OK [15:58:02]MH_I2C_Read... [15:58:02]Read from MH i2c: 01 [15:58:02]MH_I2C_Read... [15:58:02]Read from MH i2c: 01 07 00 [15:58:02]MH_I2C_Read... [15:58:02]Read from MH i2c: 01 07 00 56 69 00 00 00 00 00 FF 0F D4 [15:58:02]RasterBufferAndPrint [15:58:02]line Счет N : (1)99461 [15:58:02]line ИНН: 02508201610067 [15:58:02]line Контрольно-Кассовый Чек [15:58:02]line ПРОДАЖА [15:58:02]line ТРК (МРК, ГНК) : 21 [15:58:02]line Товар: 2710124130 [15:58:02]line Аи-92-К-5 [15:58:02]line 7.480 * 66.90 [15:58:02]line = 500.41 [15:58:02]line НДС 12% НСП 1% [15:58:02]line > о реализуемом товаре [15:58:02]line ОКРУГЛЕНИЕ: -0.41 [15:58:02]line ИТОГО: 500.00 [15:58:02]line Внесено: 500.00 [15:58:02]line СДАЧА: 0.00 [15:58:02]line НСП 1% : 4.43 [15:58:02]line НДС 12% : 53.14 [15:58:02]line Наличными: 500.00 [15:58:02]line Безнал.: 0.00 [15:58:02]line Место: АЗС № 143 "Партнер Нефть" [15:58:02]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [15:58:02]line СНО: Общий режим [15:58:02]line Чек 198 27.10.2024 15:58 [15:58:02]line Смена: 537 ФФД: 1.0 [15:58:02]line ЗНМ: 0300000096 [15:58:02]line РНМ: 0000000000091693 [15:58:02]line Версия ККМ: 001 [15:58:02]line ФМ: 0000000000871792 [15:58:02]line ФД: 156647 [15:58:02]line ФПД: 240463615492012 [15:58:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T155807&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156647&fm=240463615492012&tin=02508201610067®Number=0000000000091693&sum=50000 [15:58:03]OFD Sender: Processing packet 156647 [packets to send 31, broken 30] [15:58:03]ProducePacketName [15:58:03]name=ofd_packets/00156647 [15:58:03]OFD Sender: To server: pG, [15:58:03]CommunicateWithHost lk.salyk.kg:30040 [15:58:03]ConnectInit lk.salyk.kg [15:58:03]written 0, free lines is 4095 [15:58:03]Connected sock=10 [15:58:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 EE 04 07 01 6E 44 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 0F 63 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E7 63 02 00 35 04 06 00 DA B3 4C 61 FF AC BF ED 19 96 70 C5 93 C2 [15:58:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 9C A8 47 00 14 91 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E7 63 02 00 F4 03 04 00 7E 08 1E 67 B6 04 01 00 00 6D 2A 94 EB A7 8D AB 60 [15:58:03]CommunicateWithHost err = 0 [15:58:03]CheckOFDResponse [15:58:03]1017 (14) - 77093643461234 [15:58:03]1041 (16) - 0000000000871792 [15:58:03]1040 (4) - 156647 [15:58:03]1012 (4) - 27.10.2024 09:31 [15:58:03]1206 (1) - 0 [15:58:03]OFD Sender: Remove packet 156647 [15:58:03]ProducePacketName [15:58:03]name=ofd_packets/00156647 [15:58:03]NVStorageDeleteData [15:58:03]Write to MH i2c: 01 00 00 81 69 EA [15:58:03]Write i2c OK [15:58:03]MH_I2C_Read... [15:58:03]Read from MH i2c: 01 [15:58:03]MH_I2C_Read... [15:58:03]Read from MH i2c: 01 07 00 [15:58:03]MH_I2C_Read... [15:58:03]Read from MH i2c: 01 07 00 81 69 00 00 00 00 00 EE 0C EB [15:58:03]RasterBufferAndPrint [15:58:03]line [15:58:03]line [15:58:03]line [15:58:03]line [15:58:03]line [15:58:03]written 0, free lines is 3316 [15:58:03]process_action close_receipt done [15:58:03]requested_data is exist [15:58:03]produce_requested_data [15:58:03]requested_item fm.sn is exist - process it [15:58:03]wFMCommunicate request_size=4 [15:58:03]MH_SAM_APDU [15:58:03]CAPDU: 80 11 00 00 [15:58:03]Write to MH i2c: E2 08 00 88 69 80 11 00 00 00 00 00 00 6B [15:58:03]Write i2c OK [15:58:03]MH_I2C_Read... [15:58:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:58:03]Read from MH i2c: E2 [15:58:03]MH_I2C_Read... [15:58:03]Read from MH i2c: E2 17 00 [15:58:03]MH_I2C_Read... [15:58:03]Read from MH i2c: E2 17 00 88 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 C0 [15:58:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [15:58:03]wFMCommunicate OK [15:58:03]requested_item fd.num is exist - process it [15:58:03]SAM_PROTO_GetFieldsCounters [15:58:03]wFMCommunicate request_size=4 [15:58:03]MH_SAM_APDU [15:58:03]CAPDU: 80 13 00 00 [15:58:03]Write to MH i2c: E2 08 00 89 69 80 13 00 00 00 00 00 00 6E [15:58:03]Write i2c OK [15:58:03]MH_I2C_Read... [15:58:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:58:03]Read from MH i2c: E2 [15:58:03]MH_I2C_Read... [15:58:03]Read from MH i2c: E2 62 00 [15:58:03]MH_I2C_Read... [15:58:03]Read from MH i2c: E2 62 00 89 69 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E7 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 4D [15:58:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E7 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:58:03]wFMCommunicate OK [15:58:03]SAM_PROTO_GetFieldsCounters done [15:58:03]requested_item shift.num is exist - process it [15:58:03]requested_item shift.opened is exist - process it [15:58:03]req_shift_opened [15:58:03]FM_GetShiftState [15:58:03]SAM_PROTO_GetShiftState [15:58:03]wFMCommunicate request_size=4 [15:58:03]MH_SAM_APDU [15:58:03]CAPDU: 80 13 01 00 [15:58:03]Write to MH i2c: E2 08 00 8A 69 80 13 01 00 00 00 00 00 70 [15:58:03]Write i2c OK [15:58:03]MH_I2C_Read... [15:58:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:58:03]Read from MH i2c: E2 [15:58:03]MH_I2C_Read... [15:58:03]Read from MH i2c: E2 0E 00 [15:58:03]MH_I2C_Read... [15:58:03]Read from MH i2c: E2 0E 00 8A 69 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 3D [15:58:03]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [15:58:03]wFMCommunicate OK [15:58:03]SAM_PROTO_GetShiftState done [15:58:03]FM_GetShiftState done [15:58:03]req_shift_opened done [15:58:03]requested_item shift.open_date is exist - process it [15:58:03]req_shift_open_date [15:58:03]req_shift_open_date done [15:58:03]produce_requested_data done [15:58:03]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156647,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [15:58:03]process_action_free close_receipt [15:58:03]json_value_free [15:58:03]json_value_free done [15:58:03]process_json_proto returns [15:58:03]Send response to host [15:58:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156647,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [15:58:03]free response buf [15:58:03]execute_script done [15:58:03]execute_script returns [15:58:03]free content buf [15:58:03]Sock 9.Close socket [15:58:03]Sock 9.Thread stoped [15:58:03]OFD Sender: No OFD packet to send [15:58:08]OFD Sender: No OFD packet to send [15:58:13]OFD Sender: No OFD packet to send [15:58:18]OFD Sender: No OFD packet to send [15:58:23]OFD Sender: No OFD packet to send [15:58:28]OFD Sender: No OFD packet to send [15:58:33]OFD Sender: No OFD packet to send [15:58:38]OFD Sender: No OFD packet to send [15:58:43]OFD Sender: No OFD packet to send [15:58:48]OFD Sender: No OFD packet to send [15:58:53]OFD Sender: No OFD packet to send [15:58:58]OFD Sender: No OFD packet to send [15:59:03]OFD Sender: No OFD packet to send [15:59:08]OFD Sender: No OFD packet to send [15:59:13]OFD Sender: No OFD packet to send [15:59:18]OFD Sender: No OFD packet to send [15:59:23]OFD Sender: No OFD packet to send [15:59:28]OFD Sender: No OFD packet to send [15:59:33]OFD Sender: No OFD packet to send [15:59:38]OFD Sender: No OFD packet to send [15:59:43]OFD Sender: No OFD packet to send [15:59:49]OFD Sender: No OFD packet to send [15:59:54]OFD Sender: No OFD packet to send [15:59:59]OFD Sender: No OFD packet to send [16:00:04]OFD Sender: No OFD packet to send [16:00:09]OFD Sender: No OFD packet to send [16:00:14]OFD Sender: No OFD packet to send [16:00:19]OFD Sender: No OFD packet to send [16:00:24]OFD Sender: No OFD packet to send [16:00:29]OFD Sender: No OFD packet to send [16:00:34]OFD Sender: No OFD packet to send [16:00:39]OFD Sender: No OFD packet to send [16:00:44]OFD Sender: No OFD packet to send [16:00:49]OFD Sender: No OFD packet to send [16:00:54]OFD Sender: No OFD packet to send [16:00:59]OFD Sender: No OFD packet to send [16:01:04]OFD Sender: No OFD packet to send [16:01:09]OFD Sender: No OFD packet to send [16:01:14]OFD Sender: No OFD packet to send [16:01:19]OFD Sender: No OFD packet to send [16:01:24]OFD Sender: No OFD packet to send [16:01:29]OFD Sender: No OFD packet to send [16:01:34]OFD Sender: No OFD packet to send [16:01:39]OFD Sender: No OFD packet to send [16:01:44]OFD Sender: No OFD packet to send [16:01:49]OFD Sender: No OFD packet to send [16:01:54]OFD Sender: No OFD packet to send [16:01:59]OFD Sender: No OFD packet to send [16:02:04]OFD Sender: No OFD packet to send [16:02:09]OFD Sender: No OFD packet to send [16:02:14]OFD Sender: No OFD packet to send [16:02:19]OFD Sender: No OFD packet to send [16:02:24]OFD Sender: No OFD packet to send [16:02:29]OFD Sender: No OFD packet to send [16:02:34]OFD Sender: No OFD packet to send [16:02:39]OFD Sender: No OFD packet to send [16:02:44]OFD Sender: No OFD packet to send [16:02:49]OFD Sender: No OFD packet to send [16:02:54]OFD Sender: No OFD packet to send [16:02:59]OFD Sender: No OFD packet to send [16:03:04]OFD Sender: No OFD packet to send [16:03:09]OFD Sender: No OFD packet to send [16:03:14]OFD Sender: No OFD packet to send [16:03:19]OFD Sender: No OFD packet to send [16:03:22]accept exits with 8 [16:03:22]New connection [16:03:22]New thread 3066834276 created [16:03:22]Thread 3066977636 joined [16:03:22]Waiting for new connection... [16:03:22] Sock 8.Parse request [16:03:22]Sock 8.Check first char [16:03:22]Sock 8.First char is OK [16:03:22]request: POST /json_proto HTTP/1.0 [16:03:22]Method: POST [16:03:22]URL: /json_proto [16:03:22]Method is POST - this is cgi request [16:03:22]url: /json_proto [16:03:22]query_string will be loaded in cgi processing [16:03:22]execute_cgi json_proto POST (null) [16:03:22]execute_cgi path=json_proto method=POST [16:03:22]POST find Content-Length [16:03:22]Host: 172.17.63.3:8080 [16:03:22]Content-Length: 765 [16:03:22]Content-Type: application/json [16:03:22] [16:03:22]POST finish read [16:03:22]Found Content-Length = 765 [16:03:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99462", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:03:22]execute_script... [16:03: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)99462", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:03:22]POST & json_proto [16:03:22]process_json_proto [16:03:22]json parsed OK: [16:03:22]protocol is kg_v1.0 [16:03:22]action value=close_receipt [16:03:22]process_action close_receipt [16:03:22]cmd_close_receipt [16:03:22]MH_GetDate [16:03:22]Write to MH i2c: F0 00 00 8B 69 E3 [16:03:22]Write i2c OK [16:03:22]MH_I2C_Read... [16:03:22]Read from MH i2c: F0 [16:03:22]MH_I2C_Read... [16:03:22]Read from MH i2c: F0 09 00 [16:03:22]MH_I2C_Read... [16:03:22]Read from MH i2c: F0 09 00 8B 69 00 50 64 1E 67 50 D1 6C 64 16 [16:03:22]GetLastDocTimeStamp 1730044687 [16:03:22]current date 1730045008 [16:03:22]FM_GetShiftState [16:03:22]SAM_PROTO_GetShiftState [16:03:22]wFMCommunicate request_size=4 [16:03:22]MH_SAM_APDU [16:03:22]CAPDU: 80 13 01 00 [16:03:22]Write to MH i2c: E2 08 00 8C 69 80 13 01 00 00 00 00 00 72 [16:03:22]Write i2c OK [16:03:22]MH_I2C_Read... [16:03:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:03:22]Read from MH i2c: E2 [16:03:22]MH_I2C_Read... [16:03:22]Read from MH i2c: E2 0E 00 [16:03:22]MH_I2C_Read... [16:03:22]Read from MH i2c: E2 0E 00 8C 69 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 3F [16:03:22]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [16:03:22]wFMCommunicate OK [16:03:22]SAM_PROTO_GetShiftState done [16:03:22]FM_GetShiftState done [16:03:22]opened in 1729989044 [16:03:22]opened+sec_in_day 1730075444 [16:03:22]quantity*price = 40006 [16:03:22]sum+1 = 40007 [16:03:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.06 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 0.00 Безнал.: 400.06 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 199 27.10.2024 16:03 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 156648 ФПД: 135411715305983 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T160328&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156648&fm=135411715305983&tin=02508201610067®Number=0000000000091693&sum=40006 [16:03:23]StoreToDocumentArchive [16:03:23]shift 537 fd 156648 [16:03:23]save to /storage/0537/doc_00156648 [16:03:23]save last doc name /storage/0537/doc_00156648 to /storage/kkm_last_doc_name [16:03:23]save OK [16:03:23]Clear old archive folders... [16:03:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:03:23]tlvbuf is 01847FC0 [16:03:23]SAM_PROTO_ClearQueue [16:03:23]wFMCommunicate request_size=4 [16:03:23]MH_SAM_APDU [16:03:23]CAPDU: 80 09 00 00 [16:03:23]Write to MH i2c: E2 08 00 99 69 80 09 00 00 00 00 00 00 74 [16:03:23]Write i2c OK [16:03:23]MH_I2C_Read... [16:03:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:03:23]Read from MH i2c: E2 [16:03:23]MH_I2C_Read... [16:03:23]Read from MH i2c: E2 03 00 [16:03:23]MH_I2C_Read... [16:03:23]Read from MH i2c: E2 03 00 99 69 00 90 00 76 [16:03:23]RAPDU: 90 00 [16:03:23]wFMCommunicate OK [16:03:23]SAM_PROTO_ClearQueue done [16:03:23]KKMCreateOFDPacket [16:03:23]OFDProtocolAddRootSTLVToBuf [16:03:23]FM_MakeSignedData [16:03:23]FM_MakeSignedData [16:03:23]SAM_PROTO_SignData [16:03:23]wFMCommunicate request_size=4 [16:03:23]MH_SAM_APDU [16:03:23]CAPDU: 80 0D 01 02 [16:03:23]Write to MH i2c: E2 08 00 9A 69 80 0D 01 02 00 00 00 00 7C [16:03:23]Write i2c OK [16:03:23]MH_I2C_Read... [16:03:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:03:23]Read from MH i2c: E2 [16:03:23]MH_I2C_Read... [16:03:23]Read from MH i2c: E2 03 00 [16:03:23]MH_I2C_Read... [16:03:23]Read from MH i2c: E2 03 00 9A 69 00 90 00 77 [16:03:23]RAPDU: 90 00 [16:03:23]wFMCommunicate OK [16:03:23]wFMCommunicate request_size=255 [16:03:23]MH_SAM_APDU [16:03: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 50 64 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E8 63 02 00 35 04 06 00 7B [16:03:23]Write to MH i2c: E2 02 01 9B 69 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 50 64 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E8 63 02 00 35 04 06 00 7B 00 00 CE [16:03:23]Write i2c OK [16:03:23]MH_I2C_Read... [16:03:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:03:23]Read from MH i2c: E2 [16:03:23]MH_I2C_Read... [16:03:23]Read from MH i2c: E2 03 00 [16:03:23]MH_I2C_Read... [16:03:23]Read from MH i2c: E2 03 00 9B 69 00 90 00 78 [16:03:23]RAPDU: 90 00 [16:03:23]wFMCommunicate OK [16:03:23]wFMCommunicate request_size=10 [16:03:23]MH_SAM_APDU [16:03:23]CAPDU: 80 0D 02 02 05 27 FF 30 71 FF [16:03:23]Write to MH i2c: E2 0D 00 9C 69 80 0D 02 02 05 00 27 FF 30 71 FF 00 00 4F [16:03:23]Write i2c OK [16:03:23]MH_I2C_Read... [16:03:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:03:23]Read from MH i2c: E2 [16:03:23]MH_I2C_Read... [16:03:23]Read from MH i2c: E2 03 00 [16:03:23]MH_I2C_Read... [16:03:23]Read from MH i2c: E2 03 00 9C 69 00 90 00 79 [16:03:23]RAPDU: 90 00 [16:03:23]wFMCommunicate OK [16:03:23]wFMCommunicate request_size=4 [16:03:23]MH_SAM_APDU [16:03:23]CAPDU: 80 0D 03 02 [16:03:23]Write to MH i2c: E2 08 00 9D 69 80 0D 03 02 00 00 00 00 81 [16:03:23]Write i2c OK [16:03:23]MH_I2C_Read... [16:03:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:03:23]Read from MH i2c: E2 [16:03:23]MH_I2C_Read... [16:03:23]Read from MH i2c: E2 0B 00 [16:03:23]MH_I2C_Read... [16:03:23]Read from MH i2c: E2 0B 00 9D 69 00 43 22 FB E8 6F AC DC 2C 90 00 ED [16:03:23]RAPDU: 43 22 FB E8 6F AC DC 2C 90 00 [16:03:23]wFMCommunicate OK [16:03:23]SAM_PROTO_SignData done [16:03:23]FM_MakeSignedData done [16:03:23]CreateOFDProtocolMessage [16:03:23]wFMCommunicate request_size=4 [16:03:23]MH_SAM_APDU [16:03:23]CAPDU: 80 11 00 00 [16:03:23]Write to MH i2c: E2 08 00 9E 69 80 11 00 00 00 00 00 00 81 [16:03:23]Write i2c OK [16:03:23]MH_I2C_Read... [16:03:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:03:23]Read from MH i2c: E2 [16:03:23]MH_I2C_Read... [16:03:23]Read from MH i2c: E2 17 00 [16:03:23]MH_I2C_Read... [16:03:24]Read from MH i2c: E2 17 00 9E 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 D6 [16:03:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:03:24]wFMCommunicate OK [16:03:24]CreateOFDProtocolMessage done [16:03:24]OFDSenderStorePacket 156648 [16:03:24]StoreOFDPacket docnum=156648 [16:03:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 DE DC 07 01 35 B4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 50 64 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E8 63 02 00 35 04 06 00 7B 27 FF 30 71 FF 43 22 FB E8 6F AC DC 2C [16:03:24]CheckFolder [16:03:24]dirname=/storage/ofd_packets [16:03:24]CheckFolder done [16:03:24]ProducePacketName [16:03:24]name=ofd_packets/00156648 [16:03:24]NVStorageSaveData ofd_packets/00156648 [16:03:24]File name is /storage/ofd_packets/00156648 [16:03:24]Write 301 bytes [16:03:24]NVStorageSaveData done [16:03:24]OFDSenderStorePacket done [16:03:24]KKMCreateOFDPacket done [16:03:24]NVStorageSaveData kkm_last_timestamp [16:03:24]File name is /storage/kkm_last_timestamp [16:03:24]Write 4 bytes [16:03:24]NVStorageSaveData done [16:03:24]ExternCall_PrintAddStr [16:03:24]wPrintStart [16:03:24]Write to MH i2c: 01 00 00 9F 69 08 [16:03:24]Write i2c OK [16:03:24]MH_I2C_Read... [16:03:24]Read from MH i2c: 01 [16:03:24]MH_I2C_Read... [16:03:24]Read from MH i2c: 01 07 00 [16:03:24]MH_I2C_Read... [16:03:24]Read from MH i2c: 01 07 00 9F 69 00 00 00 00 00 FF 0F 1D [16:03:24]RasterBufferAndPrint [16:03:24]line Счет N : (1)99462 [16:03:24]line ИНН: 02508201610067 [16:03:24]line Контрольно-Кассовый Чек [16:03:24]line ПРОДАЖА [16:03:24]line ТРК (МРК, ГНК) : 31 [16:03:24]line Товар: 2710124130 [16:03:24]line Аи-92-К-5 [16:03:24]line 5.980 * 66.90 [16:03:24]line = 400.06 [16:03:24]line НДС 12% НСП 1% [16:03:24]line > о реализуемом товаре [16:03:24]line ИТОГО: 400.06 [16:03:24]line НСП 1% : 3.54 [16:03:24]line НДС 12% : 42.48 [16:03:24]line Наличными: 0.00 [16:03:24]line Безнал.: 400.06 [16:03:24]line Место: АЗС № 143 "Партнер Нефть" [16:03:24]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [16:03:24]line СНО: Общий режим [16:03:24]line Чек 199 27.10.2024 16:03 [16:03:24]line Смена: 537 ФФД: 1.0 [16:03:24]line ЗНМ: 0300000096 [16:03:24]line РНМ: 0000000000091693 [16:03:24]line Версия ККМ: 001 [16:03:24]line Платежная система: Mbank [16:03:24]line ФМ: 0000000000871792 [16:03:24]line ФД: 156648 [16:03:24]line ФПД: 135411715305983 [16:03:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T160328&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156648&fm=135411715305983&tin=02508201610067®Number=0000000000091693&sum=40006 [16:03:24]written 0, free lines is 4095 [16:03:24]OFD Sender: Processing packet 156648 [packets to send 31, broken 30] [16:03:24]ProducePacketName [16:03:24]name=ofd_packets/00156648 [16:03:24]OFD Sender: To server: pG, [16:03:24]CommunicateWithHost lk.salyk.kg:30040 [16:03:24]ConnectInit lk.salyk.kg [16:03:24]Write to MH i2c: 01 00 00 C8 69 31 [16:03:24]Write i2c OK [16:03:24]MH_I2C_Read... [16:03:24]Read from MH i2c: 01 [16:03:24]MH_I2C_Read... [16:03:24]Read from MH i2c: 01 07 00 [16:03:24]MH_I2C_Read... [16:03:24]Read from MH i2c: 01 07 00 C8 69 00 00 00 00 00 03 0D 48 [16:03:24]RasterBufferAndPrint [16:03:24]line [16:03:24]line [16:03:24]line [16:03:24]line [16:03:24]line [16:03:24]written 0, free lines is 3337 [16:03:24]process_action close_receipt done [16:03:24]requested_data is exist [16:03:24]produce_requested_data [16:03:24]requested_item fm.sn is exist - process it [16:03:24]wFMCommunicate request_size=4 [16:03:24]MH_SAM_APDU [16:03:24]CAPDU: 80 11 00 00 [16:03:24]Write to MH i2c: E2 08 00 CF 69 80 11 00 00 00 00 00 00 B2 [16:03:24]Write i2c OK [16:03:24]MH_I2C_Read... [16:03:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:03:24]Read from MH i2c: E2 [16:03:24]MH_I2C_Read... [16:03:24]Read from MH i2c: E2 17 00 [16:03:24]MH_I2C_Read... [16:03:24]Read from MH i2c: E2 17 00 CF 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 07 [16:03:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:03:24]wFMCommunicate OK [16:03:24]requested_item fd.num is exist - process it [16:03:24]SAM_PROTO_GetFieldsCounters [16:03:24]wFMCommunicate request_size=4 [16:03:24]MH_SAM_APDU [16:03:24]CAPDU: 80 13 00 00 [16:03:24]Write to MH i2c: E2 08 00 D0 69 80 13 00 00 00 00 00 00 B5 [16:03:24]Write i2c OK [16:03:24]MH_I2C_Read... [16:03:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:03:24]Read from MH i2c: E2 [16:03:24]MH_I2C_Read... [16:03:24]Read from MH i2c: E2 62 00 [16:03:24]MH_I2C_Read... [16:03:24]Read from MH i2c: E2 62 00 D0 69 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E8 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 98 [16:03:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E8 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:03:24]wFMCommunicate OK [16:03:24]SAM_PROTO_GetFieldsCounters done [16:03:24]requested_item shift.num is exist - process it [16:03:24]requested_item shift.opened is exist - process it [16:03:24]req_shift_opened [16:03:24]FM_GetShiftState [16:03:24]SAM_PROTO_GetShiftState [16:03:24]wFMCommunicate request_size=4 [16:03:24]MH_SAM_APDU [16:03:24]CAPDU: 80 13 01 00 [16:03:24]Write to MH i2c: E2 08 00 D1 69 80 13 01 00 00 00 00 00 B7 [16:03:24]Write i2c OK [16:03:24]MH_I2C_Read... [16:03:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:03:24]Read from MH i2c: E2 [16:03:24]MH_I2C_Read... [16:03:24]Read from MH i2c: E2 0E 00 [16:03:24]MH_I2C_Read... [16:03:24]Read from MH i2c: E2 0E 00 D1 69 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 84 [16:03:24]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [16:03:24]wFMCommunicate OK [16:03:24]SAM_PROTO_GetShiftState done [16:03:24]FM_GetShiftState done [16:03:24]req_shift_opened done [16:03:24]requested_item shift.open_date is exist - process it [16:03:24]req_shift_open_date [16:03:24]req_shift_open_date done [16:03:24]produce_requested_data done [16:03:24]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156648,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [16:03:24]process_action_free close_receipt [16:03:24]json_value_free [16:03:24]json_value_free done [16:03:24]process_json_proto returns [16:03:24]Send response to host [16:03:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156648,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [16:03:24]free response buf [16:03:24]execute_script done [16:03:24]execute_script returns [16:03:24]free content buf [16:03:24]Sock 8.Close socket [16:03:24]Sock 8.Thread stoped [16:04:41]accept exits with 9 [16:04:41]New connection [16:04:41]New thread 3066977636 created [16:04:41]Thread 3066834276 joined [16:04:41]Waiting for new connection... [16:04:41] Sock 9.Parse request [16:04:41]Sock 9.Check first char [16:04:41]Sock 9.First char is OK [16:04:41]request: POST /json_proto HTTP/1.0 [16:04:41]Method: POST [16:04:41]URL: /json_proto [16:04:41]Method is POST - this is cgi request [16:04:41]url: /json_proto [16:04:41]query_string will be loaded in cgi processing [16:04:41]execute_cgi json_proto POST (null) [16:04:41]execute_cgi path=json_proto method=POST [16:04:41]POST find Content-Length [16:04:41]Host: 172.17.63.3:8080 [16:04:41]Content-Length: 765 [16:04:41]Content-Type: application/json [16:04:41] [16:04:41]POST finish read [16:04:41]Found Content-Length = 765 [16:04:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99463", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.230, "sum" : 550.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 550.59 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:04:41]execute_script... [16:04:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99463", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.230, "sum" : 550.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 550.59 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:04:41]POST & json_proto [16:04:41]process_json_proto [16:04:41]json parsed OK: [16:04:41]protocol is kg_v1.0 [16:04:41]action value=close_receipt [16:04:41]process_action close_receipt [16:04:41]cmd_close_receipt [16:04:41]MH_GetDate [16:04:41]Write to MH i2c: F0 00 00 D2 69 2A [16:04:41]Write i2c OK [16:04:41]MH_I2C_Read... [16:04:41]Read from MH i2c: F0 [16:04:41]MH_I2C_Read... [16:04:41]Read from MH i2c: F0 09 00 [16:04:41]MH_I2C_Read... [16:04:41]Read from MH i2c: F0 09 00 D2 69 00 9F 64 1E 67 50 D1 6C 64 AC [16:04:41]GetLastDocTimeStamp 1730045008 [16:04:41]current date 1730045087 [16:04:41]FM_GetShiftState [16:04:41]SAM_PROTO_GetShiftState [16:04:41]wFMCommunicate request_size=4 [16:04:41]MH_SAM_APDU [16:04:41]CAPDU: 80 13 01 00 [16:04:41]Write to MH i2c: E2 08 00 D3 69 80 13 01 00 00 00 00 00 B9 [16:04:41]Write i2c OK [16:04:41]MH_I2C_Read... [16:04:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:04:41]Read from MH i2c: E2 [16:04:41]MH_I2C_Read... [16:04:41]Read from MH i2c: E2 0E 00 [16:04:41]MH_I2C_Read... [16:04:41]Read from MH i2c: E2 0E 00 D3 69 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 86 [16:04:41]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [16:04:41]wFMCommunicate OK [16:04:41]SAM_PROTO_GetShiftState done [16:04:41]FM_GetShiftState done [16:04:41]opened in 1729989044 [16:04:41]opened+sec_in_day 1730075444 [16:04:41]quantity*price = 55058 [16:04:41]sum+1 = 55060 [16:04:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 550.59 НСП 1% : 4.87 НДС 12% : 58.47 Наличными: 0.00 Безнал.: 550.59 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 200 27.10.2024 16:04 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 156649 ФПД: 145613974543807 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T160448&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156649&fm=145613974543807&tin=02508201610067®Number=0000000000091693&sum=55059 [16:04:42]StoreToDocumentArchive [16:04:42]shift 537 fd 156649 [16:04:42]save to /storage/0537/doc_00156649 [16:04:42]save last doc name /storage/0537/doc_00156649 to /storage/kkm_last_doc_name [16:04:42]save OK [16:04:42]Clear old archive folders... [16:04:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:04:42]tlvbuf is 01865EA0 [16:04:42]SAM_PROTO_ClearQueue [16:04:42]wFMCommunicate request_size=4 [16:04:42]MH_SAM_APDU [16:04:42]CAPDU: 80 09 00 00 [16:04:42]Write to MH i2c: E2 08 00 E0 69 80 09 00 00 00 00 00 00 BB [16:04:42]Write i2c OK [16:04:42]MH_I2C_Read... [16:04:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:04:42]Read from MH i2c: E2 [16:04:42]MH_I2C_Read... [16:04:42]Read from MH i2c: E2 03 00 [16:04:42]MH_I2C_Read... [16:04:42]Read from MH i2c: E2 03 00 E0 69 00 90 00 BD [16:04:42]RAPDU: 90 00 [16:04:42]wFMCommunicate OK [16:04:42]SAM_PROTO_ClearQueue done [16:04:42]KKMCreateOFDPacket [16:04:42]OFDProtocolAddRootSTLVToBuf [16:04:42]FM_MakeSignedData [16:04:42]FM_MakeSignedData [16:04:42]SAM_PROTO_SignData [16:04:42]wFMCommunicate request_size=4 [16:04:42]MH_SAM_APDU [16:04:42]CAPDU: 80 0D 01 02 [16:04:42]Write to MH i2c: E2 08 00 E1 69 80 0D 01 02 00 00 00 00 C3 [16:04:42]Write i2c OK [16:04:42]MH_I2C_Read... [16:04:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:04:42]Read from MH i2c: E2 [16:04:42]MH_I2C_Read... [16:04:42]Read from MH i2c: E2 03 00 [16:04:42]MH_I2C_Read... [16:04:42]Read from MH i2c: E2 03 00 E1 69 00 90 00 BE [16:04:42]RAPDU: 90 00 [16:04:42]wFMCommunicate OK [16:04:42]wFMCommunicate request_size=255 [16:04:42]MH_SAM_APDU [16:04:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 26 20 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 13 D7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 16 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 13 D7 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 A0 64 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E9 63 02 00 35 04 06 00 84 [16:04:42]Write to MH i2c: E2 02 01 E2 69 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 26 20 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 13 D7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 16 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 13 D7 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 A0 64 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E9 63 02 00 35 04 06 00 84 00 00 25 [16:04:42]Write i2c OK [16:04:42]MH_I2C_Read... [16:04:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:04:42]Read from MH i2c: E2 [16:04:42]MH_I2C_Read... [16:04:42]Read from MH i2c: E2 03 00 [16:04:42]MH_I2C_Read... [16:04:42]Read from MH i2c: E2 03 00 E2 69 00 90 00 BF [16:04:42]RAPDU: 90 00 [16:04:43]wFMCommunicate OK [16:04:43]wFMCommunicate request_size=10 [16:04:43]MH_SAM_APDU [16:04:43]CAPDU: 80 0D 02 02 05 6F 65 3A 1D BF [16:04:43]Write to MH i2c: E2 0D 00 E3 69 80 0D 02 02 05 00 6F 65 3A 1D BF 00 00 BA [16:04:43]Write i2c OK [16:04:43]MH_I2C_Read... [16:04:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:04:43]Read from MH i2c: E2 [16:04:43]MH_I2C_Read... [16:04:43]Read from MH i2c: E2 03 00 [16:04:43]MH_I2C_Read... [16:04:43]Read from MH i2c: E2 03 00 E3 69 00 90 00 C0 [16:04:43]RAPDU: 90 00 [16:04:43]wFMCommunicate OK [16:04:43]wFMCommunicate request_size=4 [16:04:43]MH_SAM_APDU [16:04:43]CAPDU: 80 0D 03 02 [16:04:43]Write to MH i2c: E2 08 00 E4 69 80 0D 03 02 00 00 00 00 C8 [16:04:43]Write i2c OK [16:04:43]MH_I2C_Read... [16:04:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:04:43]Read from MH i2c: E2 [16:04:43]MH_I2C_Read... [16:04:43]Read from MH i2c: E2 0B 00 [16:04:43]MH_I2C_Read... [16:04:43]Read from MH i2c: E2 0B 00 E4 69 00 E2 4E 3B F1 C6 39 F6 DD 90 00 F7 [16:04:43]RAPDU: E2 4E 3B F1 C6 39 F6 DD 90 00 [16:04:43]wFMCommunicate OK [16:04:43]SAM_PROTO_SignData done [16:04:43]FM_MakeSignedData done [16:04:43]CreateOFDProtocolMessage [16:04:43]wFMCommunicate request_size=4 [16:04:43]MH_SAM_APDU [16:04:43]CAPDU: 80 11 00 00 [16:04:43]Write to MH i2c: E2 08 00 E5 69 80 11 00 00 00 00 00 00 C8 [16:04:43]Write i2c OK [16:04:43]MH_I2C_Read... [16:04:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:04:43]Read from MH i2c: E2 [16:04:43]MH_I2C_Read... [16:04:43]Read from MH i2c: E2 17 00 [16:04:43]MH_I2C_Read... [16:04:43]Read from MH i2c: E2 17 00 E5 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 1D [16:04:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:04:43]wFMCommunicate OK [16:04:43]CreateOFDProtocolMessage done [16:04:43]OFDSenderStorePacket 156649 [16:04:43]StoreOFDPacket docnum=156649 [16:04:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 4D A1 07 01 B6 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 26 20 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 13 D7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 16 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 13 D7 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 A0 64 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E9 63 02 00 35 04 06 00 84 6F 65 3A 1D BF E2 4E 3B F1 C6 39 F6 DD [16:04:43]CheckFolder [16:04:43]dirname=/storage/ofd_packets [16:04:43]CheckFolder done [16:04:43]ProducePacketName [16:04:43]name=ofd_packets/00156649 [16:04:43]NVStorageSaveData ofd_packets/00156649 [16:04:43]File name is /storage/ofd_packets/00156649 [16:04:43]Write 301 bytes [16:04:43]NVStorageSaveData done [16:04:43]OFDSenderStorePacket done [16:04:43]KKMCreateOFDPacket done [16:04:43]NVStorageSaveData kkm_last_timestamp [16:04:43]File name is /storage/kkm_last_timestamp [16:04:43]Write 4 bytes [16:04:43]NVStorageSaveData done [16:04:43]ExternCall_PrintAddStr [16:04:43]wPrintStart [16:04:43]Write to MH i2c: 01 00 00 E6 69 4F [16:04:43]Write i2c OK [16:04:43]MH_I2C_Read... [16:04:43]Read from MH i2c: 01 [16:04:43]MH_I2C_Read... [16:04:43]Read from MH i2c: 01 07 00 [16:04:43]MH_I2C_Read... [16:04:43]Read from MH i2c: 01 07 00 E6 69 00 00 00 00 00 FF 0F 64 [16:04:43]RasterBufferAndPrint [16:04:43]line Счет N : (1)99463 [16:04:43]line ИНН: 02508201610067 [16:04:43]line Контрольно-Кассовый Чек [16:04:43]line ПРОДАЖА [16:04:43]line ТРК (МРК, ГНК) : 21 [16:04:43]line Товар: 2710124130 [16:04:43]line Аи-92-К-5 [16:04:43]line 8.230 * 66.90 [16:04:43]line = 550.59 [16:04:43]line НДС 12% НСП 1% [16:04:43]line > о реализуемом товаре [16:04:43]line ИТОГО: 550.59 [16:04:43]line НСП 1% : 4.87 [16:04:43]line НДС 12% : 58.47 [16:04:43]line Наличными: 0.00 [16:04:43]line Безнал.: 550.59 [16:04:43]line Место: АЗС № 143 "Партнер Нефть" [16:04:43]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [16:04:43]line СНО: Общий режим [16:04:43]line Чек 200 27.10.2024 16:04 [16:04:43]line Смена: 537 ФФД: 1.0 [16:04:43]line ЗНМ: 0300000096 [16:04:43]line РНМ: 0000000000091693 [16:04:43]line Версия ККМ: 001 [16:04:43]line Платежная система: Mbank [16:04:43]line ФМ: 0000000000871792 [16:04:43]line ФД: 156649 [16:04:43]line ФПД: 145613974543807 [16:04:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T160448&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156649&fm=145613974543807&tin=02508201610067®Number=0000000000091693&sum=55059 [16:04:43]written 0, free lines is 4095 [16:04:43]Write to MH i2c: 01 00 00 0F 6A 79 [16:04:43]Write i2c OK [16:04:43]MH_I2C_Read... [16:04:43]Read from MH i2c: 01 [16:04:43]MH_I2C_Read... [16:04:43]Read from MH i2c: 01 07 00 [16:04:43]MH_I2C_Read... [16:04:43]Read from MH i2c: 01 07 00 0F 6A 00 00 00 00 00 07 0D 94 [16:04:43]RasterBufferAndPrint [16:04:43]line [16:04:43]line [16:04:43]line [16:04:43]line [16:04:43]line [16:04:43]written 0, free lines is 3341 [16:04:43]process_action close_receipt done [16:04:43]requested_data is exist [16:04:43]produce_requested_data [16:04:43]requested_item fm.sn is exist - process it [16:04:43]wFMCommunicate request_size=4 [16:04:43]MH_SAM_APDU [16:04:43]CAPDU: 80 11 00 00 [16:04:43]Write to MH i2c: E2 08 00 16 6A 80 11 00 00 00 00 00 00 FA [16:04:43]Write i2c OK [16:04:43]MH_I2C_Read... [16:04:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:04:43]Read from MH i2c: E2 [16:04:43]MH_I2C_Read... [16:04:43]Read from MH i2c: E2 17 00 [16:04:43]MH_I2C_Read... [16:04:43]Read from MH i2c: E2 17 00 16 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 4F [16:04:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:04:43]wFMCommunicate OK [16:04:43]requested_item fd.num is exist - process it [16:04:43]SAM_PROTO_GetFieldsCounters [16:04:43]wFMCommunicate request_size=4 [16:04:43]MH_SAM_APDU [16:04:43]CAPDU: 80 13 00 00 [16:04:43]Write to MH i2c: E2 08 00 17 6A 80 13 00 00 00 00 00 00 FD [16:04:43]Write i2c OK [16:04:43]MH_I2C_Read... [16:04:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:04:44]Read from MH i2c: E2 [16:04:44]MH_I2C_Read... [16:04:44]Read from MH i2c: E2 62 00 [16:04:44]MH_I2C_Read... [16:04:44]Read from MH i2c: E2 62 00 17 6A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E9 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 E4 [16:04:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 E9 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:04:44]wFMCommunicate OK [16:04:44]SAM_PROTO_GetFieldsCounters done [16:04:44]requested_item shift.num is exist - process it [16:04:44]requested_item shift.opened is exist - process it [16:04:44]req_shift_opened [16:04:44]FM_GetShiftState [16:04:44]SAM_PROTO_GetShiftState [16:04:44]wFMCommunicate request_size=4 [16:04:44]MH_SAM_APDU [16:04:44]CAPDU: 80 13 01 00 [16:04:44]Write to MH i2c: E2 08 00 18 6A 80 13 01 00 00 00 00 00 FF [16:04:44]Write i2c OK [16:04:44]MH_I2C_Read... [16:04:44]Read from MH i2c: E2 [16:04:44]MH_I2C_Read... [16:04:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:04:44]Read from MH i2c: E2 0E 00 [16:04:44]MH_I2C_Read... [16:04:44]Read from MH i2c: E2 0E 00 18 6A 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 CC [16:04:44]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [16:04:44]wFMCommunicate OK [16:04:44]SAM_PROTO_GetShiftState done [16:04:44]FM_GetShiftState done [16:04:44]req_shift_opened done [16:04:44]requested_item shift.open_date is exist - process it [16:04:44]req_shift_open_date [16:04:44]req_shift_open_date done [16:04:44]produce_requested_data done [16:04:44]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156649,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [16:04:44]process_action_free close_receipt [16:04:44]json_value_free [16:04:44]json_value_free done [16:04:44]process_json_proto returns [16:04:44]Send response to host [16:04:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156649,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [16:04:44]free response buf [16:04:44]execute_script done [16:04:44]execute_script returns [16:04:44]free content buf [16:04:44]Sock 9.Close socket [16:04:44]Sock 9.Thread stoped [16:05:26]accept exits with 8 [16:05:26]New connection [16:05:26]New thread 3066834276 created [16:05:26]Thread 3066977636 joined [16:05:26]Waiting for new connection... [16:05:26] Sock 8.Parse request [16:05:26]Sock 8.Check first char [16:05:26]Sock 8.First char is OK [16:05:26]request: POST /json_proto HTTP/1.0 [16:05:26]Method: POST [16:05:26]URL: /json_proto [16:05:26]Method is POST - this is cgi request [16:05:26]url: /json_proto [16:05:26]query_string will be loaded in cgi processing [16:05:26]execute_cgi json_proto POST (null) [16:05:26]execute_cgi path=json_proto method=POST [16:05:26]POST find Content-Length [16:05:26]Host: 172.17.63.3:8080 [16:05:26]Content-Length: 765 [16:05:26]Content-Type: application/json [16:05:26] [16:05:26]POST finish read [16:05:26]Found Content-Length = 765 [16:05:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99464", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:05:26]execute_script... [16:05: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)99464", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:05:26]POST & json_proto [16:05:26]process_json_proto [16:05:26]json parsed OK: [16:05:26]protocol is kg_v1.0 [16:05:26]action value=close_receipt [16:05:26]process_action close_receipt [16:05:26]cmd_close_receipt [16:05:26]MH_GetDate [16:05:26]Write to MH i2c: F0 00 00 19 6A 72 [16:05:26]Write i2c OK [16:05:26]MH_I2C_Read... [16:05:26]Read from MH i2c: F0 [16:05:26]MH_I2C_Read... [16:05:26]Read from MH i2c: F0 09 00 [16:05:26]MH_I2C_Read... [16:05:26]Read from MH i2c: F0 09 00 19 6A 00 CD 64 1E 67 50 D1 6C 64 22 [16:05:26]GetLastDocTimeStamp 1730045088 [16:05:26]current date 1730045133 [16:05:26]FM_GetShiftState [16:05:26]SAM_PROTO_GetShiftState [16:05:26]wFMCommunicate request_size=4 [16:05:26]MH_SAM_APDU [16:05:26]CAPDU: 80 13 01 00 [16:05:26]Write to MH i2c: E2 08 00 1A 6A 80 13 01 00 00 00 00 00 01 [16:05:26]Write i2c OK [16:05:26]MH_I2C_Read... [16:05:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:05:26]Read from MH i2c: E2 [16:05:26]MH_I2C_Read... [16:05:26]Read from MH i2c: E2 0E 00 [16:05:26]MH_I2C_Read... [16:05:26]Read from MH i2c: E2 0E 00 1A 6A 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 CE [16:05:26]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [16:05:26]wFMCommunicate OK [16:05:26]SAM_PROTO_GetShiftState done [16:05:26]FM_GetShiftState done [16:05:26]opened in 1729989044 [16:05:26]opened+sec_in_day 1730075444 [16:05:26]quantity*price = 50041 [16:05:26]sum+1 = 50042 [16:05:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 201 27.10.2024 16:05 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 156650 ФПД: 183620584352591 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T160533&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156650&fm=183620584352591&tin=02508201610067®Number=0000000000091693&sum=50041 [16:05:27]StoreToDocumentArchive [16:05:27]shift 537 fd 156650 [16:05:27]save to /storage/0537/doc_00156650 [16:05:27]save last doc name /storage/0537/doc_00156650 to /storage/kkm_last_doc_name [16:05:27]save OK [16:05:27]Clear old archive folders... [16:05:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:05:27]tlvbuf is 017A91B0 [16:05:27]SAM_PROTO_ClearQueue [16:05:27]wFMCommunicate request_size=4 [16:05:27]MH_SAM_APDU [16:05:27]CAPDU: 80 09 00 00 [16:05:27]Write to MH i2c: E2 08 00 27 6A 80 09 00 00 00 00 00 00 03 [16:05:27]Write i2c OK [16:05:27]MH_I2C_Read... [16:05:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:05:27]Read from MH i2c: E2 [16:05:27]MH_I2C_Read... [16:05:27]Read from MH i2c: E2 03 00 [16:05:27]MH_I2C_Read... [16:05:27]Read from MH i2c: E2 03 00 27 6A 00 90 00 05 [16:05:27]RAPDU: 90 00 [16:05:27]wFMCommunicate OK [16:05:27]SAM_PROTO_ClearQueue done [16:05:27]KKMCreateOFDPacket [16:05:27]OFDProtocolAddRootSTLVToBuf [16:05:27]FM_MakeSignedData [16:05:27]FM_MakeSignedData [16:05:27]SAM_PROTO_SignData [16:05:27]wFMCommunicate request_size=4 [16:05:27]MH_SAM_APDU [16:05:27]CAPDU: 80 0D 01 02 [16:05:27]Write to MH i2c: E2 08 00 28 6A 80 0D 01 02 00 00 00 00 0B [16:05:27]Write i2c OK [16:05:27]MH_I2C_Read... [16:05:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:05:27]Read from MH i2c: E2 [16:05:27]MH_I2C_Read... [16:05:27]Read from MH i2c: E2 03 00 [16:05:27]MH_I2C_Read... [16:05:27]Read from MH i2c: E2 03 00 28 6A 00 90 00 06 [16:05:27]RAPDU: 90 00 [16:05:27]wFMCommunicate OK [16:05:27]wFMCommunicate request_size=255 [16:05:27]MH_SAM_APDU [16:05:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 CD 64 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EA 63 02 00 35 04 06 00 A7 [16:05:27]Write to MH i2c: E2 02 01 29 6A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 CD 64 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EA 63 02 00 35 04 06 00 A7 00 00 81 [16:05:27]Write i2c OK [16:05:27]MH_I2C_Read... [16:05:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:05:28]Read from MH i2c: E2 [16:05:28]MH_I2C_Read... [16:05:28]Read from MH i2c: E2 03 00 [16:05:28]MH_I2C_Read... [16:05:28]Read from MH i2c: E2 03 00 29 6A 00 90 00 07 [16:05:28]RAPDU: 90 00 [16:05:28]wFMCommunicate OK [16:05:28]wFMCommunicate request_size=10 [16:05:28]MH_SAM_APDU [16:05:28]CAPDU: 80 0D 02 02 05 00 7F B4 2B 4F [16:05:28]Write to MH i2c: E2 0D 00 2A 6A 80 0D 02 02 05 00 00 7F B4 2B 4F 00 00 C5 [16:05:28]Write i2c OK [16:05:28]MH_I2C_Read... [16:05:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:05:28]Read from MH i2c: E2 [16:05:28]MH_I2C_Read... [16:05:28]Read from MH i2c: E2 03 00 [16:05:28]MH_I2C_Read... [16:05:28]Read from MH i2c: E2 03 00 2A 6A 00 90 00 08 [16:05:28]RAPDU: 90 00 [16:05:28]wFMCommunicate OK [16:05:28]wFMCommunicate request_size=4 [16:05:28]MH_SAM_APDU [16:05:28]CAPDU: 80 0D 03 02 [16:05:28]Write to MH i2c: E2 08 00 2B 6A 80 0D 03 02 00 00 00 00 10 [16:05:28]Write i2c OK [16:05:28]MH_I2C_Read... [16:05:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:05:28]Read from MH i2c: E2 [16:05:28]MH_I2C_Read... [16:05:28]Read from MH i2c: E2 0B 00 [16:05:28]MH_I2C_Read... [16:05:28]Read from MH i2c: E2 0B 00 2B 6A 00 72 29 DF 4D 6B 53 13 25 90 00 CE [16:05:28]RAPDU: 72 29 DF 4D 6B 53 13 25 90 00 [16:05:28]wFMCommunicate OK [16:05:28]SAM_PROTO_SignData done [16:05:28]FM_MakeSignedData done [16:05:28]CreateOFDProtocolMessage [16:05:28]wFMCommunicate request_size=4 [16:05:28]MH_SAM_APDU [16:05:28]CAPDU: 80 11 00 00 [16:05:28]Write to MH i2c: E2 08 00 2C 6A 80 11 00 00 00 00 00 00 10 [16:05:28]Write i2c OK [16:05:28]MH_I2C_Read... [16:05:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:05:28]Read from MH i2c: E2 [16:05:28]MH_I2C_Read... [16:05:28]Read from MH i2c: E2 17 00 [16:05:28]MH_I2C_Read... [16:05:28]Read from MH i2c: E2 17 00 2C 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 65 [16:05:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:05:28]wFMCommunicate OK [16:05:28]CreateOFDProtocolMessage done [16:05:28]OFDSenderStorePacket 156650 [16:05:28]StoreOFDPacket docnum=156650 [16:05:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 FB 6C 07 01 61 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 CD 64 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EA 63 02 00 35 04 06 00 A7 00 7F B4 2B 4F 72 29 DF 4D 6B 53 13 25 [16:05:28]CheckFolder [16:05:28]dirname=/storage/ofd_packets [16:05:28]CheckFolder done [16:05:28]ProducePacketName [16:05:28]name=ofd_packets/00156650 [16:05:28]NVStorageSaveData ofd_packets/00156650 [16:05:28]File name is /storage/ofd_packets/00156650 [16:05:28]Write 301 bytes [16:05:28]NVStorageSaveData done [16:05:28]OFDSenderStorePacket done [16:05:28]KKMCreateOFDPacket done [16:05:28]NVStorageSaveData kkm_last_timestamp [16:05:28]File name is /storage/kkm_last_timestamp [16:05:28]Write 4 bytes [16:05:28]NVStorageSaveData done [16:05:28]ExternCall_PrintAddStr [16:05:28]wPrintStart [16:05:28]Write to MH i2c: 01 00 00 2D 6A 97 [16:05:28]Write i2c OK [16:05:28]MH_I2C_Read... [16:05:28]Read from MH i2c: 01 [16:05:28]MH_I2C_Read... [16:05:28]Read from MH i2c: 01 07 00 [16:05:28]MH_I2C_Read... [16:05:28]Read from MH i2c: 01 07 00 2D 6A 00 00 00 00 00 FF 0F AC [16:05:28]RasterBufferAndPrint [16:05:28]line Счет N : (1)99464 [16:05:28]line ИНН: 02508201610067 [16:05:28]line Контрольно-Кассовый Чек [16:05:28]line ПРОДАЖА [16:05:28]line ТРК (МРК, ГНК) : 11 [16:05:28]line Товар: 2710124130 [16:05:28]line Аи-92-К-5 [16:05:28]line 7.480 * 66.90 [16:05:28]line = 500.41 [16:05:28]line НДС 12% НСП 1% [16:05:28]line > о реализуемом товаре [16:05:28]line ИТОГО: 500.41 [16:05:28]line НСП 1% : 4.43 [16:05:28]line НДС 12% : 53.14 [16:05:28]line Наличными: 0.00 [16:05:28]line Безнал.: 500.41 [16:05:28]line Место: АЗС № 143 "Партнер Нефть" [16:05:28]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [16:05:28]line СНО: Общий режим [16:05:28]line Чек 201 27.10.2024 16:05 [16:05:28]line Смена: 537 ФФД: 1.0 [16:05:28]line ЗНМ: 0300000096 [16:05:28]line РНМ: 0000000000091693 [16:05:28]line Версия ККМ: 001 [16:05:28]line Платежная система: Mbank [16:05:28]line ФМ: 0000000000871792 [16:05:28]line ФД: 156650 [16:05:28]line ФПД: 183620584352591 [16:05:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T160533&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156650&fm=183620584352591&tin=02508201610067®Number=0000000000091693&sum=50041 [16:05:28]written 0, free lines is 4095 [16:05:29]Write to MH i2c: 01 00 00 56 6A C0 [16:05:29]Write i2c OK [16:05:29]MH_I2C_Read... [16:05:29]Read from MH i2c: 01 [16:05:29]MH_I2C_Read... [16:05:29]Read from MH i2c: 01 07 00 [16:05:29]MH_I2C_Read... [16:05:29]Read from MH i2c: 01 07 00 56 6A 00 00 00 00 00 03 0D D7 [16:05:29]RasterBufferAndPrint [16:05:29]line [16:05:29]line [16:05:29]line [16:05:29]line [16:05:29]line [16:05:29]written 0, free lines is 3337 [16:05:29]process_action close_receipt done [16:05:29]requested_data is exist [16:05:29]produce_requested_data [16:05:29]requested_item fm.sn is exist - process it [16:05:29]wFMCommunicate request_size=4 [16:05:29]MH_SAM_APDU [16:05:29]CAPDU: 80 11 00 00 [16:05:29]Write to MH i2c: E2 08 00 5D 6A 80 11 00 00 00 00 00 00 41 [16:05:29]Write i2c OK [16:05:29]MH_I2C_Read... [16:05:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:05:29]Read from MH i2c: E2 [16:05:29]MH_I2C_Read... [16:05:29]Read from MH i2c: E2 17 00 [16:05:29]MH_I2C_Read... [16:05:29]Read from MH i2c: E2 17 00 5D 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 96 [16:05:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:05:29]wFMCommunicate OK [16:05:29]requested_item fd.num is exist - process it [16:05:29]SAM_PROTO_GetFieldsCounters [16:05:29]wFMCommunicate request_size=4 [16:05:29]MH_SAM_APDU [16:05:29]CAPDU: 80 13 00 00 [16:05:29]Write to MH i2c: E2 08 00 5E 6A 80 13 00 00 00 00 00 00 44 [16:05:29]Write i2c OK [16:05:29]MH_I2C_Read... [16:05:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:05:29]Read from MH i2c: E2 [16:05:29]MH_I2C_Read... [16:05:29]Read from MH i2c: E2 62 00 [16:05:29]MH_I2C_Read... [16:05:29]Read from MH i2c: E2 62 00 5E 6A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 EA 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 2F [16:05:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 EA 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:05:29]wFMCommunicate OK [16:05:29]SAM_PROTO_GetFieldsCounters done [16:05:29]requested_item shift.num is exist - process it [16:05:29]requested_item shift.opened is exist - process it [16:05:29]req_shift_opened [16:05:29]FM_GetShiftState [16:05:29]SAM_PROTO_GetShiftState [16:05:29]wFMCommunicate request_size=4 [16:05:29]MH_SAM_APDU [16:05:29]CAPDU: 80 13 01 00 [16:05:29]Write to MH i2c: E2 08 00 5F 6A 80 13 01 00 00 00 00 00 46 [16:05:29]Write i2c OK [16:05:29]MH_I2C_Read... [16:05:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:05:29]Read from MH i2c: E2 [16:05:29]MH_I2C_Read... [16:05:29]Read from MH i2c: E2 0E 00 [16:05:29]MH_I2C_Read... [16:05:29]Read from MH i2c: E2 0E 00 5F 6A 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 13 [16:05:29]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [16:05:29]wFMCommunicate OK [16:05:29]SAM_PROTO_GetShiftState done [16:05:29]FM_GetShiftState done [16:05:29]req_shift_opened done [16:05:29]requested_item shift.open_date is exist - process it [16:05:29]req_shift_open_date [16:05:29]req_shift_open_date done [16:05:29]produce_requested_data done [16:05:29]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156650,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [16:05:29]process_action_free close_receipt [16:05:29]json_value_free [16:05:29]json_value_free done [16:05:29]process_json_proto returns [16:05:29]Send response to host [16:05:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156650,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [16:05:29]free response buf [16:05:29]execute_script done [16:05:29]execute_script returns [16:05:29]free content buf [16:05:29]Sock 8.Close socket [16:05:29]Sock 8.Thread stoped [16:05:37]ConnectInit Can't connect to host [16:05:37]CommunicateWithHost connect error [16:05:37]CommunicateWithHost err = -1 [16:05:37]OFD Sender: Server communicate error [16:05:37]OFD Sender: Processing packet 156648 [packets to send 33, broken 30] [16:05:37]ProducePacketName [16:05:37]name=ofd_packets/00156648 [16:05:37]OFD Sender: To server: pG, [16:05:37]CommunicateWithHost lk.salyk.kg:30040 [16:05:37]ConnectInit lk.salyk.kg [16:05:37]Connected sock=8 [16:05:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 DE DC 07 01 35 B4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 50 64 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E8 63 02 00 35 04 06 00 7B 27 FF 30 71 FF 43 22 FB E8 6F AC DC 2C [16:05:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 5D 3C 47 00 47 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 31 37 39 32 10 04 04 00 E8 63 02 00 F4 03 04 00 45 0A 1E 67 B6 04 01 00 00 0D CD 86 F5 2E A6 8B FE [16:05:38]CommunicateWithHost err = 0 [16:05:38]CheckOFDResponse [16:05:38]1017 (14) - 77093643461234 [16:05:38]1041 (16) - 0000000000871792 [16:05:38]1040 (4) - 156648 [16:05:38]1012 (4) - 27.10.2024 09:39 [16:05:38]1206 (1) - 0 [16:05:38]OFD Sender: Remove packet 156648 [16:05:38]ProducePacketName [16:05:38]name=ofd_packets/00156648 [16:05:38]NVStorageDeleteData [16:05:38]OFD Sender: Processing packet 156649 [packets to send 32, broken 30] [16:05:38]ProducePacketName [16:05:38]name=ofd_packets/00156649 [16:05:38]OFD Sender: To server: pG, [16:05:38]CommunicateWithHost lk.salyk.kg:30040 [16:05:38]ConnectInit lk.salyk.kg [16:05:38]Connected sock=8 [16:05:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 4D A1 07 01 B6 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 26 20 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 13 D7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 13 D7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 16 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 13 D7 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 A0 64 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E9 63 02 00 35 04 06 00 84 6F 65 3A 1D BF E2 4E 3B F1 C6 39 F6 DD [16:05:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 02 06 47 00 0E 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 E9 63 02 00 F4 03 04 00 46 0A 1E 67 B6 04 01 00 00 A4 51 65 83 34 A7 BD 34 [16:05:39]CommunicateWithHost err = 0 [16:05:39]CheckOFDResponse [16:05:39]1017 (14) - 77093643461234 [16:05:39]1041 (16) - 0000000000871792 [16:05:39]1040 (4) - 156649 [16:05:39]1012 (4) - 27.10.2024 09:39 [16:05:39]1206 (1) - 0 [16:05:39]OFD Sender: Remove packet 156649 [16:05:39]ProducePacketName [16:05:39]name=ofd_packets/00156649 [16:05:39]NVStorageDeleteData [16:05:39]OFD Sender: Processing packet 156650 [packets to send 31, broken 30] [16:05:39]ProducePacketName [16:05:39]name=ofd_packets/00156650 [16:05:39]OFD Sender: To server: pG, [16:05:39]CommunicateWithHost lk.salyk.kg:30040 [16:05:39]ConnectInit lk.salyk.kg [16:05:39]Connected sock=8 [16:05:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 FB 6C 07 01 61 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 CD 64 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EA 63 02 00 35 04 06 00 A7 00 7F B4 2B 4F 72 29 DF 4D 6B 53 13 25 [16:05:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 02 2D 47 00 A0 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 31 37 39 32 10 04 04 00 EA 63 02 00 F4 03 04 00 47 0A 1E 67 B6 04 01 00 00 23 7A 84 CE 59 1D 17 13 [16:05:39]CommunicateWithHost err = 0 [16:05:39]CheckOFDResponse [16:05:39]1017 (14) - 77093643461234 [16:05:39]1041 (16) - 0000000000871792 [16:05:39]1040 (4) - 156650 [16:05:39]1012 (4) - 27.10.2024 09:39 [16:05:39]1206 (1) - 0 [16:05:39]OFD Sender: Remove packet 156650 [16:05:39]ProducePacketName [16:05:39]name=ofd_packets/00156650 [16:05:39]NVStorageDeleteData [16:05:40]OFD Sender: No OFD packet to send [16:05:45]OFD Sender: No OFD packet to send [16:05:50]OFD Sender: No OFD packet to send [16:05:55]OFD Sender: No OFD packet to send [16:06:00]OFD Sender: No OFD packet to send [16:06:05]OFD Sender: No OFD packet to send [16:06:10]OFD Sender: No OFD packet to send [16:06:15]OFD Sender: No OFD packet to send [16:06:20]OFD Sender: No OFD packet to send [16:06:25]OFD Sender: No OFD packet to send [16:06:30]OFD Sender: No OFD packet to send [16:06:35]OFD Sender: No OFD packet to send [16:06:40]OFD Sender: No OFD packet to send [16:06:45]OFD Sender: No OFD packet to send [16:06:50]OFD Sender: No OFD packet to send [16:06:55]OFD Sender: No OFD packet to send [16:07:00]OFD Sender: No OFD packet to send [16:07:05]OFD Sender: No OFD packet to send [16:07:10]OFD Sender: No OFD packet to send [16:07:15]OFD Sender: No OFD packet to send [16:07:20]OFD Sender: No OFD packet to send [16:07:25]OFD Sender: No OFD packet to send [16:07:30]OFD Sender: No OFD packet to send [16:07:35]OFD Sender: No OFD packet to send [16:07:40]OFD Sender: No OFD packet to send [16:07:45]OFD Sender: No OFD packet to send [16:07:50]OFD Sender: No OFD packet to send [16:07:55]OFD Sender: No OFD packet to send [16:08:00]OFD Sender: No OFD packet to send [16:08:05]OFD Sender: No OFD packet to send [16:08:10]OFD Sender: No OFD packet to send [16:08:15]OFD Sender: No OFD packet to send [16:08:20]OFD Sender: No OFD packet to send [16:08:24]accept exits with 9 [16:08:24]New connection [16:08:24]New thread 3066977636 created [16:08:24]Thread 3066834276 joined [16:08:24]Waiting for new connection... [16:08:24] Sock 9.Parse request [16:08:24]Sock 9.Check first char [16:08:24]Sock 9.First char is OK [16:08:24]request: POST /json_proto HTTP/1.0 [16:08:24]Method: POST [16:08:24]URL: /json_proto [16:08:24]Method is POST - this is cgi request [16:08:24]url: /json_proto [16:08:24]query_string will be loaded in cgi processing [16:08:24]execute_cgi json_proto POST (null) [16:08:24]execute_cgi path=json_proto method=POST [16:08:24]POST find Content-Length [16:08:24]Host: 172.17.63.3:8080 [16:08:24]Content-Length: 677 [16:08:24]Content-Type: application/json [16:08:24] [16:08:24]POST finish read [16:08:24]Found Content-Length = 677 [16:08:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99465", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:08:24]execute_script... [16:08: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)99465", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:08:24]POST & json_proto [16:08:24]process_json_proto [16:08:24]json parsed OK: [16:08:24]protocol is kg_v1.0 [16:08:24]action value=close_receipt [16:08:24]process_action close_receipt [16:08:24]cmd_close_receipt [16:08:24]MH_GetDate [16:08:24]Write to MH i2c: F0 00 00 60 6A B9 [16:08:24]Write i2c OK [16:08:24]MH_I2C_Read... [16:08:24]Read from MH i2c: F0 [16:08:24]MH_I2C_Read... [16:08:24]Read from MH i2c: F0 09 00 [16:08:24]MH_I2C_Read... [16:08:24]Read from MH i2c: F0 09 00 60 6A 00 7F 65 1E 67 50 D1 6C 64 1C [16:08:24]GetLastDocTimeStamp 1730045133 [16:08:24]current date 1730045311 [16:08:24]FM_GetShiftState [16:08:24]SAM_PROTO_GetShiftState [16:08:24]wFMCommunicate request_size=4 [16:08:24]MH_SAM_APDU [16:08:24]CAPDU: 80 13 01 00 [16:08:24]Write to MH i2c: E2 08 00 61 6A 80 13 01 00 00 00 00 00 48 [16:08:24]Write i2c OK [16:08:24]MH_I2C_Read... [16:08:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:08:24]Read from MH i2c: E2 [16:08:24]MH_I2C_Read... [16:08:24]Read from MH i2c: E2 0E 00 [16:08:24]MH_I2C_Read... [16:08:24]Read from MH i2c: E2 0E 00 61 6A 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 15 [16:08:24]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [16:08:24]wFMCommunicate OK [16:08:24]SAM_PROTO_GetShiftState done [16:08:24]FM_GetShiftState done [16:08:24]opened in 1729989044 [16:08:24]opened+sec_in_day 1730075444 [16:08:24]quantity*price = 70044 [16:08:24]sum+1 = 70045 [16:08:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 202 27.10.2024 16:08 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156651 ФПД: 14187231536882 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T160831&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156651&fm=14187231536882&tin=02508201610067®Number=0000000000091693&sum=70000 [16:08:25]StoreToDocumentArchive [16:08:25]shift 537 fd 156651 [16:08:25]save to /storage/0537/doc_00156651 [16:08:25]save last doc name /storage/0537/doc_00156651 to /storage/kkm_last_doc_name [16:08:25]save OK [16:08:25]Clear old archive folders... [16:08:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:08:25]tlvbuf is 0171E7B0 [16:08:25]SAM_PROTO_ClearQueue [16:08:25]wFMCommunicate request_size=4 [16:08:25]MH_SAM_APDU [16:08:25]CAPDU: 80 09 00 00 [16:08:25]Write to MH i2c: E2 08 00 6E 6A 80 09 00 00 00 00 00 00 4A [16:08:25]Write i2c OK [16:08:25]MH_I2C_Read... [16:08:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:08:25]Read from MH i2c: E2 [16:08:25]MH_I2C_Read... [16:08:25]Read from MH i2c: E2 03 00 [16:08:25]MH_I2C_Read... [16:08:25]Read from MH i2c: E2 03 00 6E 6A 00 90 00 4C [16:08:25]RAPDU: 90 00 [16:08:25]wFMCommunicate OK [16:08:25]SAM_PROTO_ClearQueue done [16:08:25]KKMCreateOFDPacket [16:08:25]OFDProtocolAddRootSTLVToBuf [16:08:25]FM_MakeSignedData [16:08:25]FM_MakeSignedData [16:08:25]SAM_PROTO_SignData [16:08:25]wFMCommunicate request_size=4 [16:08:25]MH_SAM_APDU [16:08:25]CAPDU: 80 0D 01 02 [16:08:25]Write to MH i2c: E2 08 00 6F 6A 80 0D 01 02 00 00 00 00 52 [16:08:25]Write i2c OK [16:08:25]MH_I2C_Read... [16:08:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:08:25]Read from MH i2c: E2 [16:08:25]MH_I2C_Read... [16:08:25]Read from MH i2c: E2 03 00 [16:08:25]MH_I2C_Read... [16:08:25]Read from MH i2c: E2 03 00 6F 6A 00 90 00 4D [16:08:25]RAPDU: 90 00 [16:08:25]wFMCommunicate OK [16:08:25]wFMCommunicate request_size=255 [16:08:25]MH_SAM_APDU [16:08: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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 CA 00 00 00 F4 03 04 00 7F 65 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EB 63 02 00 35 04 06 00 0C [16:08:25]Write to MH i2c: E2 02 01 70 6A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 CA 00 00 00 F4 03 04 00 7F 65 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EB 63 02 00 35 04 06 00 0C 00 00 A0 [16:08:25]Write i2c OK [16:08:25]MH_I2C_Read... [16:08:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:08:26]Read from MH i2c: E2 [16:08:26]MH_I2C_Read... [16:08:26]Read from MH i2c: E2 03 00 [16:08:26]MH_I2C_Read... [16:08:26]Read from MH i2c: E2 03 00 70 6A 00 90 00 4E [16:08:26]RAPDU: 90 00 [16:08:26]wFMCommunicate OK [16:08:26]wFMCommunicate request_size=10 [16:08:26]MH_SAM_APDU [16:08:26]CAPDU: 80 0D 02 02 05 E7 38 E5 66 F2 [16:08:26]Write to MH i2c: E2 0D 00 71 6A 80 0D 02 02 05 00 E7 38 E5 66 F2 00 00 BB [16:08:26]Write i2c OK [16:08:26]MH_I2C_Read... [16:08:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:08:26]Read from MH i2c: E2 [16:08:26]MH_I2C_Read... [16:08:26]Read from MH i2c: E2 03 00 [16:08:26]MH_I2C_Read... [16:08:26]Read from MH i2c: E2 03 00 71 6A 00 90 00 4F [16:08:26]RAPDU: 90 00 [16:08:26]wFMCommunicate OK [16:08:26]wFMCommunicate request_size=4 [16:08:26]MH_SAM_APDU [16:08:26]CAPDU: 80 0D 03 02 [16:08:26]Write to MH i2c: E2 08 00 72 6A 80 0D 03 02 00 00 00 00 57 [16:08:26]Write i2c OK [16:08:26]MH_I2C_Read... [16:08:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:08:26]Read from MH i2c: E2 [16:08:26]MH_I2C_Read... [16:08:26]Read from MH i2c: E2 0B 00 [16:08:26]MH_I2C_Read... [16:08:26]Read from MH i2c: E2 0B 00 72 6A 00 AA F0 DC 76 AD C4 62 ED 90 00 04 [16:08:26]RAPDU: AA F0 DC 76 AD C4 62 ED 90 00 [16:08:26]wFMCommunicate OK [16:08:26]SAM_PROTO_SignData done [16:08:26]FM_MakeSignedData done [16:08:26]CreateOFDProtocolMessage [16:08:26]wFMCommunicate request_size=4 [16:08:26]MH_SAM_APDU [16:08:26]CAPDU: 80 11 00 00 [16:08:26]Write to MH i2c: E2 08 00 73 6A 80 11 00 00 00 00 00 00 57 [16:08:26]Write i2c OK [16:08:26]MH_I2C_Read... [16:08:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:08:26]Read from MH i2c: E2 [16:08:26]MH_I2C_Read... [16:08:26]Read from MH i2c: E2 17 00 [16:08:26]MH_I2C_Read... [16:08:26]Read from MH i2c: E2 17 00 73 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 AC [16:08:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:08:26]wFMCommunicate OK [16:08:26]CreateOFDProtocolMessage done [16:08:26]OFDSenderStorePacket 156651 [16:08:26]StoreOFDPacket docnum=156651 [16:08:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 45 EB 07 01 FA 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 CA 00 00 00 F4 03 04 00 7F 65 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EB 63 02 00 35 04 06 00 0C E7 38 E5 66 F2 AA F0 DC 76 AD C4 62 ED [16:08:26]CheckFolder [16:08:26]dirname=/storage/ofd_packets [16:08:26]CheckFolder done [16:08:26]ProducePacketName [16:08:26]name=ofd_packets/00156651 [16:08:26]NVStorageSaveData ofd_packets/00156651 [16:08:26]File name is /storage/ofd_packets/00156651 [16:08:26]Write 301 bytes [16:08:26]NVStorageSaveData done [16:08:26]OFDSenderStorePacket done [16:08:26]KKMCreateOFDPacket done [16:08:26]NVStorageSaveData kkm_last_timestamp [16:08:26]File name is /storage/kkm_last_timestamp [16:08:26]Write 4 bytes [16:08:26]NVStorageSaveData done [16:08:26]ExternCall_PrintAddStr [16:08:26]wPrintStart [16:08:26]Write to MH i2c: 01 00 00 74 6A DE [16:08:26]Write i2c OK [16:08:26]MH_I2C_Read... [16:08:26]Read from MH i2c: 01 [16:08:26]MH_I2C_Read... [16:08:26]Read from MH i2c: 01 07 00 [16:08:26]MH_I2C_Read... [16:08:26]Read from MH i2c: 01 07 00 74 6A 00 00 00 00 00 FF 0F F3 [16:08:26]RasterBufferAndPrint [16:08:26]line Счет N : (1)99465 [16:08:26]line ИНН: 02508201610067 [16:08:26]line Контрольно-Кассовый Чек [16:08:26]line ПРОДАЖА [16:08:26]line ТРК (МРК, ГНК) : 21 [16:08:26]line Товар: 2710124130 [16:08:26]line Аи-92-К-5 [16:08:26]line 10.470 * 66.90 [16:08:26]line = 700.44 [16:08:26]line НДС 12% НСП 1% [16:08:26]line > о реализуемом товаре [16:08:26]line ОКРУГЛЕНИЕ: -0.44 [16:08:26]line ИТОГО: 700.00 [16:08:26]line Внесено: 700.00 [16:08:26]line СДАЧА: 0.00 [16:08:26]line НСП 1% : 6.20 [16:08:26]line НДС 12% : 74.38 [16:08:26]line Наличными: 700.00 [16:08:26]line Безнал.: 0.00 [16:08:26]line Место: АЗС № 143 "Партнер Нефть" [16:08:26]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [16:08:26]line СНО: Общий режим [16:08:26]line Чек 202 27.10.2024 16:08 [16:08:26]line Смена: 537 ФФД: 1.0 [16:08:26]line ЗНМ: 0300000096 [16:08:26]line РНМ: 0000000000091693 [16:08:26]line Версия ККМ: 001 [16:08:26]line ФМ: 0000000000871792 [16:08:26]line ФД: 156651 [16:08:26]line ФПД: 14187231536882 [16:08:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T160831&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156651&fm=14187231536882&tin=02508201610067®Number=0000000000091693&sum=70000 [16:08:26]OFD Sender: Processing packet 156651 [packets to send 31, broken 30] [16:08:26]ProducePacketName [16:08:26]name=ofd_packets/00156651 [16:08:26]OFD Sender: To server: pG, [16:08:26]CommunicateWithHost lk.salyk.kg:30040 [16:08:26]ConnectInit lk.salyk.kg [16:08:26]written 0, free lines is 4095 [16:08:26]Connected sock=10 [16:08:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 45 EB 07 01 FA 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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 CA 00 00 00 F4 03 04 00 7F 65 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EB 63 02 00 35 04 06 00 0C E7 38 E5 66 F2 AA F0 DC 76 AD C4 62 ED [16:08:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 55 3D 47 00 4C 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 31 37 39 32 10 04 04 00 EB 63 02 00 F4 03 04 00 EE 0A 1E 67 B6 04 01 00 00 4D 10 2F 77 BC AC 1A 92 [16:08:27]CommunicateWithHost err = 0 [16:08:27]CheckOFDResponse [16:08:27]1017 (14) - 77093643461234 [16:08:27]1041 (16) - 0000000000871792 [16:08:27]1040 (4) - 156651 [16:08:27]1012 (4) - 27.10.2024 09:42 [16:08:27]1206 (1) - 0 [16:08:27]OFD Sender: Remove packet 156651 [16:08:27]ProducePacketName [16:08:27]name=ofd_packets/00156651 [16:08:27]NVStorageDeleteData [16:08:27]Write to MH i2c: 01 00 00 9F 6A 09 [16:08:27]Write i2c OK [16:08:27]MH_I2C_Read... [16:08:27]Read from MH i2c: 01 [16:08:27]MH_I2C_Read... [16:08:27]Read from MH i2c: 01 07 00 [16:08:27]MH_I2C_Read... [16:08:27]Read from MH i2c: 01 07 00 9F 6A 00 00 00 00 00 F6 0C 12 [16:08:27]RasterBufferAndPrint [16:08:27]line [16:08:27]line [16:08:27]line [16:08:27]line [16:08:27]line [16:08:27]written 0, free lines is 3324 [16:08:27]process_action close_receipt done [16:08:27]requested_data is exist [16:08:27]produce_requested_data [16:08:27]requested_item fm.sn is exist - process it [16:08:27]wFMCommunicate request_size=4 [16:08:27]MH_SAM_APDU [16:08:27]CAPDU: 80 11 00 00 [16:08:27]Write to MH i2c: E2 08 00 A6 6A 80 11 00 00 00 00 00 00 8A [16:08:27]Write i2c OK [16:08:27]MH_I2C_Read... [16:08:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:08:27]Read from MH i2c: E2 [16:08:27]MH_I2C_Read... [16:08:27]Read from MH i2c: E2 17 00 [16:08:27]MH_I2C_Read... [16:08:27]Read from MH i2c: E2 17 00 A6 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 DF [16:08:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:08:27]wFMCommunicate OK [16:08:27]requested_item fd.num is exist - process it [16:08:27]SAM_PROTO_GetFieldsCounters [16:08:27]wFMCommunicate request_size=4 [16:08:27]MH_SAM_APDU [16:08:27]CAPDU: 80 13 00 00 [16:08:27]Write to MH i2c: E2 08 00 A7 6A 80 13 00 00 00 00 00 00 8D [16:08:27]Write i2c OK [16:08:27]MH_I2C_Read... [16:08:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:08:27]Read from MH i2c: E2 [16:08:27]MH_I2C_Read... [16:08:27]Read from MH i2c: E2 62 00 [16:08:27]MH_I2C_Read... [16:08:27]Read from MH i2c: E2 62 00 A7 6A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 EB 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 7C [16:08:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 EB 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:08:27]wFMCommunicate OK [16:08:27]SAM_PROTO_GetFieldsCounters done [16:08:27]requested_item shift.num is exist - process it [16:08:27]requested_item shift.opened is exist - process it [16:08:27]req_shift_opened [16:08:27]FM_GetShiftState [16:08:27]SAM_PROTO_GetShiftState [16:08:27]wFMCommunicate request_size=4 [16:08:27]MH_SAM_APDU [16:08:27]CAPDU: 80 13 01 00 [16:08:27]Write to MH i2c: E2 08 00 A8 6A 80 13 01 00 00 00 00 00 8F [16:08:27]Write i2c OK [16:08:27]MH_I2C_Read... [16:08:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:08:27]Read from MH i2c: E2 [16:08:27]MH_I2C_Read... [16:08:27]Read from MH i2c: E2 0E 00 [16:08:27]MH_I2C_Read... [16:08:27]Read from MH i2c: E2 0E 00 A8 6A 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 5C [16:08:27]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [16:08:27]wFMCommunicate OK [16:08:27]SAM_PROTO_GetShiftState done [16:08:27]FM_GetShiftState done [16:08:27]req_shift_opened done [16:08:27]requested_item shift.open_date is exist - process it [16:08:27]req_shift_open_date [16:08:27]req_shift_open_date done [16:08:27]produce_requested_data done [16:08:27]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156651,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [16:08:27]process_action_free close_receipt [16:08:27]json_value_free [16:08:27]json_value_free done [16:08:27]process_json_proto returns [16:08:27]Send response to host [16:08:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156651,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [16:08:27]free response buf [16:08:27]execute_script done [16:08:27]execute_script returns [16:08:27]free content buf [16:08:27]Sock 9.Close socket [16:08:27]Sock 9.Thread stoped [16:08:27]OFD Sender: No OFD packet to send [16:08:32]OFD Sender: No OFD packet to send [16:08:37]OFD Sender: No OFD packet to send [16:08:42]OFD Sender: No OFD packet to send [16:08:47]OFD Sender: No OFD packet to send [16:08:52]OFD Sender: No OFD packet to send [16:08:57]OFD Sender: No OFD packet to send [16:09:02]OFD Sender: No OFD packet to send [16:09:07]OFD Sender: No OFD packet to send [16:09:12]OFD Sender: No OFD packet to send [16:09:17]OFD Sender: No OFD packet to send [16:09:22]OFD Sender: No OFD packet to send [16:09:27]OFD Sender: No OFD packet to send [16:09:32]OFD Sender: No OFD packet to send [16:09:37]OFD Sender: No OFD packet to send [16:09:42]OFD Sender: No OFD packet to send [16:09:47]OFD Sender: No OFD packet to send [16:09:52]OFD Sender: No OFD packet to send [16:09:57]OFD Sender: No OFD packet to send [16:10:02]OFD Sender: No OFD packet to send [16:10:07]OFD Sender: No OFD packet to send [16:10:12]OFD Sender: No OFD packet to send [16:10:17]OFD Sender: No OFD packet to send [16:10:22]OFD Sender: No OFD packet to send [16:10:27]OFD Sender: No OFD packet to send [16:10:37]OFD Sender: No OFD packet to send [16:10:42]OFD Sender: No OFD packet to send [16:10:46]accept exits with 8 [16:10:46]New connection [16:10:46]New thread 3066834276 created [16:10:46]Thread 3066977636 joined [16:10:46]Waiting for new connection... [16:10:46] Sock 8.Parse request [16:10:46]Sock 8.Check first char [16:10:46]Sock 8.First char is OK [16:10:46]request: POST /json_proto HTTP/1.0 [16:10:46]Method: POST [16:10:46]URL: /json_proto [16:10:46]Method is POST - this is cgi request [16:10:46]url: /json_proto [16:10:46]query_string will be loaded in cgi processing [16:10:46]execute_cgi json_proto POST (null) [16:10:46]execute_cgi path=json_proto method=POST [16:10:46]POST find Content-Length [16:10:46]Host: 172.17.63.3:8080 [16:10:46]Content-Length: 676 [16:10:46]Content-Type: application/json [16:10:46] [16:10:46]POST finish read [16:10:46]Found Content-Length = 676 [16:10:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99466", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:10:46]execute_script... [16:10: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)99466", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:10:46]POST & json_proto [16:10:46]process_json_proto [16:10:46]json parsed OK: [16:10:46]protocol is kg_v1.0 [16:10:46]action value=close_receipt [16:10:46]process_action close_receipt [16:10:46]cmd_close_receipt [16:10:46]MH_GetDate [16:10:46]Write to MH i2c: F0 00 00 A9 6A 02 [16:10:46]Write i2c OK [16:10:46]MH_I2C_Read... [16:10:46]Read from MH i2c: F0 [16:10:46]MH_I2C_Read... [16:10:46]Read from MH i2c: F0 09 00 [16:10:46]MH_I2C_Read... [16:10:46]Read from MH i2c: F0 09 00 A9 6A 00 0C 66 1E 67 50 D1 6C 64 F3 [16:10:46]GetLastDocTimeStamp 1730045311 [16:10:46]current date 1730045452 [16:10:46]FM_GetShiftState [16:10:46]SAM_PROTO_GetShiftState [16:10:46]wFMCommunicate request_size=4 [16:10:46]MH_SAM_APDU [16:10:46]CAPDU: 80 13 01 00 [16:10:46]Write to MH i2c: E2 08 00 AA 6A 80 13 01 00 00 00 00 00 91 [16:10:46]Write i2c OK [16:10:46]MH_I2C_Read... [16:10:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:10:46]Read from MH i2c: E2 [16:10:46]MH_I2C_Read... [16:10:46]Read from MH i2c: E2 0E 00 [16:10:46]MH_I2C_Read... [16:10:46]Read from MH i2c: E2 0E 00 AA 6A 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 5E [16:10:46]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [16:10:46]wFMCommunicate OK [16:10:46]SAM_PROTO_GetShiftState done [16:10:46]FM_GetShiftState done [16:10:46]opened in 1729989044 [16:10:46]opened+sec_in_day 1730075444 [16:10:46]quantity*price = 50041 [16:10:46]sum+1 = 50042 [16:10:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 203 27.10.2024 16:10 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156652 ФПД: 203844874529845 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T161052&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156652&fm=203844874529845&tin=02508201610067®Number=0000000000091693&sum=50000 [16:10:47]StoreToDocumentArchive [16:10:47]shift 537 fd 156652 [16:10:47]save to /storage/0537/doc_00156652 [16:10:47]save last doc name /storage/0537/doc_00156652 to /storage/kkm_last_doc_name [16:10:47]save OK [16:10:47]Clear old archive folders... [16:10:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:10:47]tlvbuf is 0183DCD0 [16:10:47]SAM_PROTO_ClearQueue [16:10:47]wFMCommunicate request_size=4 [16:10:47]MH_SAM_APDU [16:10:47]CAPDU: 80 09 00 00 [16:10:47]Write to MH i2c: E2 08 00 B7 6A 80 09 00 00 00 00 00 00 93 [16:10:47]Write i2c OK [16:10:47]MH_I2C_Read... [16:10:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:10:47]Read from MH i2c: E2 [16:10:47]MH_I2C_Read... [16:10:47]Read from MH i2c: E2 03 00 [16:10:47]MH_I2C_Read... [16:10:47]Read from MH i2c: E2 03 00 B7 6A 00 90 00 95 [16:10:47]RAPDU: 90 00 [16:10:47]wFMCommunicate OK [16:10:47]SAM_PROTO_ClearQueue done [16:10:47]KKMCreateOFDPacket [16:10:47]OFDProtocolAddRootSTLVToBuf [16:10:47]FM_MakeSignedData [16:10:47]FM_MakeSignedData [16:10:47]SAM_PROTO_SignData [16:10:47]wFMCommunicate request_size=4 [16:10:47]MH_SAM_APDU [16:10:47]CAPDU: 80 0D 01 02 [16:10:47]Write to MH i2c: E2 08 00 B8 6A 80 0D 01 02 00 00 00 00 9B [16:10:47]Write i2c OK [16:10:47]MH_I2C_Read... [16:10:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:10:47]Read from MH i2c: E2 [16:10:47]MH_I2C_Read... [16:10:47]Read from MH i2c: E2 03 00 [16:10:47]MH_I2C_Read... [16:10:47]Read from MH i2c: E2 03 00 B8 6A 00 90 00 96 [16:10:47]RAPDU: 90 00 [16:10:47]wFMCommunicate OK [16:10:47]wFMCommunicate request_size=255 [16:10:47]MH_SAM_APDU [16:10: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 0C 66 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EC 63 02 00 35 04 06 00 B9 [16:10:47]Write to MH i2c: E2 02 01 B9 6A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 0C 66 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EC 63 02 00 35 04 06 00 B9 00 00 16 [16:10:47]Write i2c OK [16:10:47]MH_I2C_Read... [16:10:47]OFD Sender: No OFD packet to send [16:10:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:10:47]Read from MH i2c: E2 [16:10:47]MH_I2C_Read... [16:10:47]Read from MH i2c: E2 03 00 [16:10:47]MH_I2C_Read... [16:10:47]Read from MH i2c: E2 03 00 B9 6A 00 90 00 97 [16:10:47]RAPDU: 90 00 [16:10:47]wFMCommunicate OK [16:10:47]wFMCommunicate request_size=10 [16:10:47]MH_SAM_APDU [16:10:47]CAPDU: 80 0D 02 02 05 65 55 55 EC 35 [16:10:47]Write to MH i2c: E2 0D 00 BA 6A 80 0D 02 02 05 00 65 55 55 EC 35 00 00 D8 [16:10:47]Write i2c OK [16:10:47]MH_I2C_Read... [16:10:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:10:47]Read from MH i2c: E2 [16:10:47]MH_I2C_Read... [16:10:47]Read from MH i2c: E2 03 00 [16:10:47]MH_I2C_Read... [16:10:47]Read from MH i2c: E2 03 00 BA 6A 00 90 00 98 [16:10:47]RAPDU: 90 00 [16:10:47]wFMCommunicate OK [16:10:47]wFMCommunicate request_size=4 [16:10:47]MH_SAM_APDU [16:10:47]CAPDU: 80 0D 03 02 [16:10:47]Write to MH i2c: E2 08 00 BB 6A 80 0D 03 02 00 00 00 00 A0 [16:10:47]Write i2c OK [16:10:47]MH_I2C_Read... [16:10:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:10:47]Read from MH i2c: E2 [16:10:47]MH_I2C_Read... [16:10:47]Read from MH i2c: E2 0B 00 [16:10:47]MH_I2C_Read... [16:10:47]Read from MH i2c: E2 0B 00 BB 6A 00 F3 A5 31 5F D3 0C 96 8A 90 00 C8 [16:10:47]RAPDU: F3 A5 31 5F D3 0C 96 8A 90 00 [16:10:47]wFMCommunicate OK [16:10:47]SAM_PROTO_SignData done [16:10:47]FM_MakeSignedData done [16:10:47]CreateOFDProtocolMessage [16:10:47]wFMCommunicate request_size=4 [16:10:47]MH_SAM_APDU [16:10:47]CAPDU: 80 11 00 00 [16:10:47]Write to MH i2c: E2 08 00 BC 6A 80 11 00 00 00 00 00 00 A0 [16:10:47]Write i2c OK [16:10:47]MH_I2C_Read... [16:10:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:10:47]Read from MH i2c: E2 [16:10:47]MH_I2C_Read... [16:10:47]Read from MH i2c: E2 17 00 [16:10:47]MH_I2C_Read... [16:10:47]Read from MH i2c: E2 17 00 BC 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 F5 [16:10:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:10:47]wFMCommunicate OK [16:10:47]CreateOFDProtocolMessage done [16:10:47]OFDSenderStorePacket 156652 [16:10:47]StoreOFDPacket docnum=156652 [16:10:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 2D 9B 07 01 85 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 0C 66 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EC 63 02 00 35 04 06 00 B9 65 55 55 EC 35 F3 A5 31 5F D3 0C 96 8A [16:10:47]CheckFolder [16:10:47]dirname=/storage/ofd_packets [16:10:47]CheckFolder done [16:10:47]ProducePacketName [16:10:47]name=ofd_packets/00156652 [16:10:47]NVStorageSaveData ofd_packets/00156652 [16:10:47]File name is /storage/ofd_packets/00156652 [16:10:47]Write 301 bytes [16:10:47]NVStorageSaveData done [16:10:47]OFDSenderStorePacket done [16:10:47]KKMCreateOFDPacket done [16:10:47]NVStorageSaveData kkm_last_timestamp [16:10:47]File name is /storage/kkm_last_timestamp [16:10:47]Write 4 bytes [16:10:47]NVStorageSaveData done [16:10:47]ExternCall_PrintAddStr [16:10:47]wPrintStart [16:10:47]Write to MH i2c: 01 00 00 BD 6A 27 [16:10:47]Write i2c OK [16:10:47]MH_I2C_Read... [16:10:47]Read from MH i2c: 01 [16:10:47]MH_I2C_Read... [16:10:47]Read from MH i2c: 01 07 00 [16:10:47]MH_I2C_Read... [16:10:47]Read from MH i2c: 01 07 00 BD 6A 00 00 00 00 00 FF 0F 3C [16:10:47]RasterBufferAndPrint [16:10:47]line Счет N : (1)99466 [16:10:47]line ИНН: 02508201610067 [16:10:47]line Контрольно-Кассовый Чек [16:10:47]line ПРОДАЖА [16:10:47]line ТРК (МРК, ГНК) : 21 [16:10:47]line Товар: 2710124130 [16:10:47]line Аи-92-К-5 [16:10:47]line 7.480 * 66.90 [16:10:47]line = 500.41 [16:10:47]line НДС 12% НСП 1% [16:10:47]line > о реализуемом товаре [16:10:47]line ОКРУГЛЕНИЕ: -0.41 [16:10:47]line ИТОГО: 500.00 [16:10:47]line Внесено: 500.00 [16:10:47]line СДАЧА: 0.00 [16:10:47]line НСП 1% : 4.43 [16:10:47]line НДС 12% : 53.14 [16:10:47]line Наличными: 500.00 [16:10:47]line Безнал.: 0.00 [16:10:47]line Место: АЗС № 143 "Партнер Нефть" [16:10:47]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [16:10:47]line СНО: Общий режим [16:10:47]line Чек 203 27.10.2024 16:10 [16:10:47]line Смена: 537 ФФД: 1.0 [16:10:47]line ЗНМ: 0300000096 [16:10:47]line РНМ: 0000000000091693 [16:10:47]line Версия ККМ: 001 [16:10:47]line ФМ: 0000000000871792 [16:10:47]line ФД: 156652 [16:10:47]line ФПД: 203844874529845 [16:10:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T161052&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156652&fm=203844874529845&tin=02508201610067®Number=0000000000091693&sum=50000 [16:10:48]OFD Sender: Processing packet 156652 [packets to send 31, broken 30] [16:10:48]ProducePacketName [16:10:48]name=ofd_packets/00156652 [16:10:48]OFD Sender: To server: pG, [16:10:48]CommunicateWithHost lk.salyk.kg:30040 [16:10:48]ConnectInit lk.salyk.kg [16:10:48]written 0, free lines is 4095 [16:10:48]Connected sock=11 [16:10:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 2D 9B 07 01 85 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 0C 66 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EC 63 02 00 35 04 06 00 B9 65 55 55 EC 35 F3 A5 31 5F D3 0C 96 8A [16:10:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 A2 47 47 00 6E 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EC 63 02 00 F4 03 04 00 7B 0B 1E 67 B6 04 01 00 00 3E 03 76 46 E9 9B 98 29 [16:10:48]CommunicateWithHost err = 0 [16:10:48]CheckOFDResponse [16:10:48]1017 (14) - 77093643461234 [16:10:48]1041 (16) - 0000000000871792 [16:10:48]1040 (4) - 156652 [16:10:48]1012 (4) - 27.10.2024 09:44 [16:10:48]1206 (1) - 0 [16:10:48]OFD Sender: Remove packet 156652 [16:10:48]ProducePacketName [16:10:48]name=ofd_packets/00156652 [16:10:48]NVStorageDeleteData [16:10:48]Write to MH i2c: 01 00 00 E8 6A 52 [16:10:48]Write i2c OK [16:10:48]MH_I2C_Read... [16:10:48]Read from MH i2c: 01 [16:10:48]MH_I2C_Read... [16:10:48]Read from MH i2c: 01 07 00 [16:10:48]MH_I2C_Read... [16:10:48]Read from MH i2c: 01 07 00 E8 6A 00 00 00 00 00 F1 0C 56 [16:10:48]RasterBufferAndPrint [16:10:48]line [16:10:48]line [16:10:48]line [16:10:48]line [16:10:48]line [16:10:48]written 0, free lines is 3323 [16:10:48]process_action close_receipt done [16:10:48]requested_data is exist [16:10:48]produce_requested_data [16:10:48]requested_item fm.sn is exist - process it [16:10:48]wFMCommunicate request_size=4 [16:10:48]MH_SAM_APDU [16:10:48]CAPDU: 80 11 00 00 [16:10:48]Write to MH i2c: E2 08 00 EF 6A 80 11 00 00 00 00 00 00 D3 [16:10:48]Write i2c OK [16:10:48]MH_I2C_Read... [16:10:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:10:48]Read from MH i2c: E2 [16:10:48]MH_I2C_Read... [16:10:48]Read from MH i2c: E2 17 00 [16:10:48]MH_I2C_Read... [16:10:48]Read from MH i2c: E2 17 00 EF 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 28 [16:10:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:10:48]wFMCommunicate OK [16:10:48]requested_item fd.num is exist - process it [16:10:48]SAM_PROTO_GetFieldsCounters [16:10:48]wFMCommunicate request_size=4 [16:10:48]MH_SAM_APDU [16:10:48]CAPDU: 80 13 00 00 [16:10:48]Write to MH i2c: E2 08 00 F0 6A 80 13 00 00 00 00 00 00 D6 [16:10:48]Write i2c OK [16:10:48]MH_I2C_Read... [16:10:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:10:48]Read from MH i2c: E2 [16:10:48]MH_I2C_Read... [16:10:48]Read from MH i2c: E2 62 00 [16:10:48]MH_I2C_Read... [16:10:48]Read from MH i2c: E2 62 00 F0 6A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 EC 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 C9 [16:10:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 EC 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:10:48]wFMCommunicate OK [16:10:48]SAM_PROTO_GetFieldsCounters done [16:10:48]requested_item shift.num is exist - process it [16:10:48]requested_item shift.opened is exist - process it [16:10:48]req_shift_opened [16:10:48]FM_GetShiftState [16:10:48]SAM_PROTO_GetShiftState [16:10:48]wFMCommunicate request_size=4 [16:10:48]MH_SAM_APDU [16:10:48]CAPDU: 80 13 01 00 [16:10:48]Write to MH i2c: E2 08 00 F1 6A 80 13 01 00 00 00 00 00 D8 [16:10:48]Write i2c OK [16:10:48]MH_I2C_Read... [16:10:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:10:49]Read from MH i2c: E2 [16:10:49]MH_I2C_Read... [16:10:49]Read from MH i2c: E2 0E 00 [16:10:49]MH_I2C_Read... [16:10:49]Read from MH i2c: E2 0E 00 F1 6A 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 A5 [16:10:49]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [16:10:49]wFMCommunicate OK [16:10:49]SAM_PROTO_GetShiftState done [16:10:49]FM_GetShiftState done [16:10:49]req_shift_opened done [16:10:49]requested_item shift.open_date is exist - process it [16:10:49]req_shift_open_date [16:10:49]req_shift_open_date done [16:10:49]produce_requested_data done [16:10:49]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156652,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [16:10:49]process_action_free close_receipt [16:10:49]json_value_free [16:10:49]json_value_free done [16:10:49]process_json_proto returns [16:10:49]Send response to host [16:10:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156652,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [16:10:49]free response buf [16:10:49]execute_script done [16:10:49]execute_script returns [16:10:49]free content buf [16:10:49]Sock 8.Close socket [16:10:49]Sock 8.Thread stoped [16:10:49]OFD Sender: No OFD packet to send [16:10:54]OFD Sender: No OFD packet to send [16:10:59]OFD Sender: No OFD packet to send [16:11:04]OFD Sender: No OFD packet to send [16:11:09]OFD Sender: No OFD packet to send [16:11:14]OFD Sender: No OFD packet to send [16:11:15]accept exits with 10 [16:11:15]New connection [16:11:15]New thread 3066977636 created [16:11:15]Thread 3066834276 joined [16:11:15]Waiting for new connection... [16:11:15] Sock 10.Parse request [16:11:15]Sock 10.Check first char [16:11:15]Sock 10.First char is OK [16:11:15]request: POST /json_proto HTTP/1.0 [16:11:15]Method: POST [16:11:15]URL: /json_proto [16:11:15]Method is POST - this is cgi request [16:11:15]url: /json_proto [16:11:15]query_string will be loaded in cgi processing [16:11:15]execute_cgi json_proto POST (null) [16:11:15]execute_cgi path=json_proto method=POST [16:11:15]POST find Content-Length [16:11:15]Host: 172.17.63.3:8080 [16:11:15]Content-Length: 676 [16:11:15]Content-Type: application/json [16:11:15] [16:11:15]POST finish read [16:11:15]Found Content-Length = 676 [16:11:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99467", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:11:15]execute_script... [16:11:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99467", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:11:15]POST & json_proto [16:11:15]process_json_proto [16:11:15]json parsed OK: [16:11:15]protocol is kg_v1.0 [16:11:15]action value=close_receipt [16:11:15]process_action close_receipt [16:11:15]cmd_close_receipt [16:11:15]MH_GetDate [16:11:15]Write to MH i2c: F0 00 00 F2 6A 4B [16:11:15]Write i2c OK [16:11:15]MH_I2C_Read... [16:11:15]Read from MH i2c: F0 [16:11:15]MH_I2C_Read... [16:11:15]Read from MH i2c: F0 09 00 [16:11:15]MH_I2C_Read... [16:11:15]Read from MH i2c: F0 09 00 F2 6A 00 29 66 1E 67 50 D1 6C 64 59 [16:11:15]GetLastDocTimeStamp 1730045452 [16:11:15]current date 1730045481 [16:11:15]FM_GetShiftState [16:11:15]SAM_PROTO_GetShiftState [16:11:15]wFMCommunicate request_size=4 [16:11:15]MH_SAM_APDU [16:11:15]CAPDU: 80 13 01 00 [16:11:15]Write to MH i2c: E2 08 00 F3 6A 80 13 01 00 00 00 00 00 DA [16:11:15]Write i2c OK [16:11:15]MH_I2C_Read... [16:11:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:11:15]Read from MH i2c: E2 [16:11:15]MH_I2C_Read... [16:11:15]Read from MH i2c: E2 0E 00 [16:11:15]MH_I2C_Read... [16:11:15]Read from MH i2c: E2 0E 00 F3 6A 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 A7 [16:11:15]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [16:11:15]wFMCommunicate OK [16:11:15]SAM_PROTO_GetShiftState done [16:11:15]FM_GetShiftState done [16:11:15]opened in 1729989044 [16:11:15]opened+sec_in_day 1730075444 [16:11:15]quantity*price = 50041 [16:11:15]sum+1 = 50042 [16:11:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 204 27.10.2024 16:11 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156653 ФПД: 81429988323436 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T161121&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156653&fm=81429988323436&tin=02508201610067®Number=0000000000091693&sum=50000 [16:11:16]StoreToDocumentArchive [16:11:16]shift 537 fd 156653 [16:11:16]save to /storage/0537/doc_00156653 [16:11:16]save last doc name /storage/0537/doc_00156653 to /storage/kkm_last_doc_name [16:11:16]save OK [16:11:16]Clear old archive folders... [16:11:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:11:16]tlvbuf is 0187B790 [16:11:16]SAM_PROTO_ClearQueue [16:11:16]wFMCommunicate request_size=4 [16:11:16]MH_SAM_APDU [16:11:16]CAPDU: 80 09 00 00 [16:11:16]Write to MH i2c: E2 08 00 00 6B 80 09 00 00 00 00 00 00 DD [16:11:16]Write i2c OK [16:11:16]MH_I2C_Read... [16:11:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:11:16]Read from MH i2c: E2 [16:11:16]MH_I2C_Read... [16:11:16]Read from MH i2c: E2 03 00 [16:11:16]MH_I2C_Read... [16:11:16]Read from MH i2c: E2 03 00 00 6B 00 90 00 DF [16:11:16]RAPDU: 90 00 [16:11:16]wFMCommunicate OK [16:11:16]SAM_PROTO_ClearQueue done [16:11:16]KKMCreateOFDPacket [16:11:16]OFDProtocolAddRootSTLVToBuf [16:11:16]FM_MakeSignedData [16:11:16]FM_MakeSignedData [16:11:16]SAM_PROTO_SignData [16:11:16]wFMCommunicate request_size=4 [16:11:16]MH_SAM_APDU [16:11:16]CAPDU: 80 0D 01 02 [16:11:16]Write to MH i2c: E2 08 00 01 6B 80 0D 01 02 00 00 00 00 E5 [16:11:16]Write i2c OK [16:11:16]MH_I2C_Read... [16:11:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:11:16]Read from MH i2c: E2 [16:11:16]MH_I2C_Read... [16:11:16]Read from MH i2c: E2 03 00 [16:11:16]MH_I2C_Read... [16:11:16]Read from MH i2c: E2 03 00 01 6B 00 90 00 E0 [16:11:16]RAPDU: 90 00 [16:11:16]wFMCommunicate OK [16:11:16]wFMCommunicate request_size=255 [16:11:16]MH_SAM_APDU [16:11:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 29 66 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 ED 63 02 00 35 04 06 00 4A [16:11:16]Write to MH i2c: E2 02 01 02 6B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 29 66 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 ED 63 02 00 35 04 06 00 4A 00 00 10 [16:11:16]Write i2c OK [16:11:16]MH_I2C_Read... [16:11:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:11:16]Read from MH i2c: E2 [16:11:16]MH_I2C_Read... [16:11:16]Read from MH i2c: E2 03 00 [16:11:16]MH_I2C_Read... [16:11:16]Read from MH i2c: E2 03 00 02 6B 00 90 00 E1 [16:11:16]RAPDU: 90 00 [16:11:16]wFMCommunicate OK [16:11:16]wFMCommunicate request_size=10 [16:11:16]MH_SAM_APDU [16:11:16]CAPDU: 80 0D 02 02 05 0F 65 87 30 6C [16:11:16]Write to MH i2c: E2 0D 00 03 6B 80 0D 02 02 05 00 0F 65 87 30 6C 00 00 89 [16:11:16]Write i2c OK [16:11:16]MH_I2C_Read... [16:11:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:11:16]Read from MH i2c: E2 [16:11:16]MH_I2C_Read... [16:11:16]Read from MH i2c: E2 03 00 [16:11:16]MH_I2C_Read... [16:11:16]Read from MH i2c: E2 03 00 03 6B 00 90 00 E2 [16:11:16]RAPDU: 90 00 [16:11:16]wFMCommunicate OK [16:11:16]wFMCommunicate request_size=4 [16:11:16]MH_SAM_APDU [16:11:16]CAPDU: 80 0D 03 02 [16:11:16]Write to MH i2c: E2 08 00 04 6B 80 0D 03 02 00 00 00 00 EA [16:11:16]Write i2c OK [16:11:16]MH_I2C_Read... [16:11:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:11:16]Read from MH i2c: E2 [16:11:16]MH_I2C_Read... [16:11:16]Read from MH i2c: E2 0B 00 [16:11:16]MH_I2C_Read... [16:11:16]Read from MH i2c: E2 0B 00 04 6B 00 94 50 BC C0 7A A0 EE 8D 90 00 E0 [16:11:16]RAPDU: 94 50 BC C0 7A A0 EE 8D 90 00 [16:11:16]wFMCommunicate OK [16:11:16]SAM_PROTO_SignData done [16:11:16]FM_MakeSignedData done [16:11:16]CreateOFDProtocolMessage [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 05 6B 80 11 00 00 00 00 00 00 EA [16:11:16]Write i2c OK [16:11:16]MH_I2C_Read... [16:11:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:11:17]Read from MH i2c: E2 [16:11:17]MH_I2C_Read... [16:11:17]Read from MH i2c: E2 17 00 [16:11:17]MH_I2C_Read... [16:11:17]Read from MH i2c: E2 17 00 05 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 3F [16:11:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:11:17]wFMCommunicate OK [16:11:17]CreateOFDProtocolMessage done [16:11:17]OFDSenderStorePacket 156653 [16:11:17]StoreOFDPacket docnum=156653 [16:11:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 FC 75 07 01 0B 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 29 66 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 ED 63 02 00 35 04 06 00 4A 0F 65 87 30 6C 94 50 BC C0 7A A0 EE 8D [16:11:17]CheckFolder [16:11:17]dirname=/storage/ofd_packets [16:11:17]CheckFolder done [16:11:17]ProducePacketName [16:11:17]name=ofd_packets/00156653 [16:11:17]NVStorageSaveData ofd_packets/00156653 [16:11:17]File name is /storage/ofd_packets/00156653 [16:11:17]Write 301 bytes [16:11:17]NVStorageSaveData done [16:11:17]OFDSenderStorePacket done [16:11:17]KKMCreateOFDPacket done [16:11:17]NVStorageSaveData kkm_last_timestamp [16:11:17]File name is /storage/kkm_last_timestamp [16:11:17]Write 4 bytes [16:11:17]NVStorageSaveData done [16:11:17]ExternCall_PrintAddStr [16:11:17]wPrintStart [16:11:17]Write to MH i2c: 01 00 00 06 6B 71 [16:11:17]Write i2c OK [16:11:17]MH_I2C_Read... [16:11:17]OFD Sender: Processing packet 156653 [packets to send 31, broken 30] [16:11:17]ProducePacketName [16:11:17]name=ofd_packets/00156653 [16:11:17]OFD Sender: To server: pG, [16:11:17]CommunicateWithHost lk.salyk.kg:30040 [16:11:17]ConnectInit lk.salyk.kg [16:11:17]Read from MH i2c: 01 [16:11:17]MH_I2C_Read... [16:11:17]Read from MH i2c: 01 07 00 [16:11:17]MH_I2C_Read... [16:11:17]Read from MH i2c: 01 07 00 06 6B 00 00 00 00 00 FF 0F 86 [16:11:17]RasterBufferAndPrint [16:11:17]line Счет N : (1)99467 [16:11:17]line ИНН: 02508201610067 [16:11:17]line Контрольно-Кассовый Чек [16:11:17]line ПРОДАЖА [16:11:17]line ТРК (МРК, ГНК) : 31 [16:11:17]line Товар: 2710124130 [16:11:17]line Аи-92-К-5 [16:11:17]line 7.480 * 66.90 [16:11:17]line = 500.41 [16:11:17]line НДС 12% НСП 1% [16:11:17]line > о реализуемом товаре [16:11:17]line ОКРУГЛЕНИЕ: -0.41 [16:11:17]line ИТОГО: 500.00 [16:11:17]line Внесено: 500.00 [16:11:17]line СДАЧА: 0.00 [16:11:17]line НСП 1% : 4.43 [16:11:17]line НДС 12% : 53.14 [16:11:17]line Наличными: 500.00 [16:11:17]line Безнал.: 0.00 [16:11:17]line Место: АЗС № 143 "Партнер Нефть" [16:11:17]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [16:11:17]line СНО: Общий режим [16:11:17]line Чек 204 27.10.2024 16:11 [16:11:17]line Смена: 537 ФФД: 1.0 [16:11:17]line ЗНМ: 0300000096 [16:11:17]line РНМ: 0000000000091693 [16:11:17]line Версия ККМ: 001 [16:11:17]line ФМ: 0000000000871792 [16:11:17]line ФД: 156653 [16:11:17]line ФПД: 81429988323436 [16:11:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T161121&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156653&fm=81429988323436&tin=02508201610067®Number=0000000000091693&sum=50000 [16:11:17]written 0, free lines is 4095 [16:11:17]Connected sock=11 [16:11:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 FC 75 07 01 0B 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 29 66 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 ED 63 02 00 35 04 06 00 4A 0F 65 87 30 6C 94 50 BC C0 7A A0 EE 8D [16:11:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 6F 64 47 00 78 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 ED 63 02 00 F4 03 04 00 98 0B 1E 67 B6 04 01 00 00 22 BE A0 69 23 E7 6A 45 [16:11:17]CommunicateWithHost err = 0 [16:11:17]CheckOFDResponse [16:11:17]1017 (14) - 77093643461234 [16:11:17]1041 (16) - 0000000000871792 [16:11:17]1040 (4) - 156653 [16:11:17]1012 (4) - 27.10.2024 09:44 [16:11:17]1206 (1) - 0 [16:11:17]OFD Sender: Remove packet 156653 [16:11:17]ProducePacketName [16:11:17]name=ofd_packets/00156653 [16:11:17]NVStorageDeleteData [16:11:17]Write to MH i2c: 01 00 00 31 6B 9C [16:11:17]Write i2c OK [16:11:17]MH_I2C_Read... [16:11:17]Read from MH i2c: 01 [16:11:17]MH_I2C_Read... [16:11:17]Read from MH i2c: 01 07 00 [16:11:17]MH_I2C_Read... [16:11:17]Read from MH i2c: 01 07 00 31 6B 00 00 00 00 00 01 0D B1 [16:11:17]RasterBufferAndPrint [16:11:17]line [16:11:17]line [16:11:17]line [16:11:17]line [16:11:17]line [16:11:17]written 0, free lines is 3347 [16:11:17]process_action close_receipt done [16:11:17]requested_data is exist [16:11:17]produce_requested_data [16:11:17]requested_item fm.sn is exist - process it [16:11:17]wFMCommunicate request_size=4 [16:11:17]MH_SAM_APDU [16:11:17]CAPDU: 80 11 00 00 [16:11:17]Write to MH i2c: E2 08 00 38 6B 80 11 00 00 00 00 00 00 1D [16:11:17]Write i2c OK [16:11:17]MH_I2C_Read... [16:11:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:11:17]Read from MH i2c: E2 [16:11:17]MH_I2C_Read... [16:11:17]Read from MH i2c: E2 17 00 [16:11:17]MH_I2C_Read... [16:11:17]Read from MH i2c: E2 17 00 38 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 72 [16:11:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:11:17]wFMCommunicate OK [16:11:17]requested_item fd.num is exist - process it [16:11:17]SAM_PROTO_GetFieldsCounters [16:11:17]wFMCommunicate request_size=4 [16:11:17]MH_SAM_APDU [16:11:17]CAPDU: 80 13 00 00 [16:11:17]Write to MH i2c: E2 08 00 39 6B 80 13 00 00 00 00 00 00 20 [16:11:17]Write i2c OK [16:11:17]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 39 6B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 ED 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 17 [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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 ED 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 [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 3A 6B 80 13 01 00 00 00 00 00 22 [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 3A 6B 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 EF [16:11:17]RAPDU: 09 00 01 B4 89 1D 67 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":"0000000000871792","fd.num":156653,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [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":"0000000000871792","fd.num":156653,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [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 10.Close socket [16:11:17]Sock 10.Thread stoped [16:11:17]OFD Sender: No OFD packet to send [16:11:22]OFD Sender: No OFD packet to send [16:11:27]OFD Sender: No OFD packet to send [16:11:32]OFD Sender: No OFD packet to send [16:11:38]OFD Sender: No OFD packet to send [16:11:43]OFD Sender: No OFD packet to send [16:11:48]OFD Sender: No OFD packet to send [16:11:53]OFD Sender: No OFD packet to send [16:11:58]OFD Sender: No OFD packet to send [16:12:03]OFD Sender: No OFD packet to send [16:12:08]OFD Sender: No OFD packet to send [16:12:13]OFD Sender: No OFD packet to send [16:12:18]OFD Sender: No OFD packet to send [16:12:23]OFD Sender: No OFD packet to send [16:12:28]OFD Sender: No OFD packet to send [16:12:33]OFD Sender: No OFD packet to send [16:12:38]OFD Sender: No OFD packet to send [16:12:43]OFD Sender: No OFD packet to send [16:12:47]ConnectInit Can't connect to host [16:12:48]OFD Sender: No OFD packet to send [16:12:53]OFD Sender: No OFD packet to send [16:12:58]OFD Sender: No OFD packet to send [16:13:03]OFD Sender: No OFD packet to send [16:13:04]accept exits with 8 [16:13:04]New connection [16:13:04]New thread 3066834276 created [16:13:04]Thread 3066977636 joined [16:13:04]Waiting for new connection... [16:13:04] Sock 8.Parse request [16:13:04]Sock 8.Check first char [16:13:04]Sock 8.First char is OK [16:13:04]request: POST /json_proto HTTP/1.0 [16:13:04]Method: POST [16:13:04]URL: /json_proto [16:13:04]Method is POST - this is cgi request [16:13:04]url: /json_proto [16:13:04]query_string will be loaded in cgi processing [16:13:04]execute_cgi json_proto POST (null) [16:13:04]execute_cgi path=json_proto method=POST [16:13:04]POST find Content-Length [16:13:04]Host: 172.17.63.3:8080 [16:13:04]Content-Length: 676 [16:13:04]Content-Type: application/json [16:13:04] [16:13:04]POST finish read [16:13:04]Found Content-Length = 676 [16:13:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99468", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:13:04]execute_script... [16:13: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)99468", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:13:04]POST & json_proto [16:13:04]process_json_proto [16:13:04]json parsed OK: [16:13:04]protocol is kg_v1.0 [16:13:04]action value=close_receipt [16:13:04]process_action close_receipt [16:13:04]cmd_close_receipt [16:13:04]MH_GetDate [16:13:04]Write to MH i2c: F0 00 00 3B 6B 95 [16:13:04]Write i2c OK [16:13:04]MH_I2C_Read... [16:13:04]Read from MH i2c: F0 [16:13:04]MH_I2C_Read... [16:13:04]Read from MH i2c: F0 09 00 [16:13:04]MH_I2C_Read... [16:13:04]Read from MH i2c: F0 09 00 3B 6B 00 97 66 1E 67 50 D1 6C 64 11 [16:13:04]GetLastDocTimeStamp 1730045481 [16:13:04]current date 1730045591 [16:13:04]FM_GetShiftState [16:13:04]SAM_PROTO_GetShiftState [16:13:04]wFMCommunicate request_size=4 [16:13:04]MH_SAM_APDU [16:13:04]CAPDU: 80 13 01 00 [16:13:04]Write to MH i2c: E2 08 00 3C 6B 80 13 01 00 00 00 00 00 24 [16:13:04]Write i2c OK [16:13:04]MH_I2C_Read... [16:13:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:13:04]Read from MH i2c: E2 [16:13:04]MH_I2C_Read... [16:13:04]Read from MH i2c: E2 0E 00 [16:13:04]MH_I2C_Read... [16:13:04]Read from MH i2c: E2 0E 00 3C 6B 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 F1 [16:13:04]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [16:13:04]wFMCommunicate OK [16:13:04]SAM_PROTO_GetShiftState done [16:13:04]FM_GetShiftState done [16:13:04]opened in 1729989044 [16:13:04]opened+sec_in_day 1730075444 [16:13:04]quantity*price = 40006 [16:13:04]sum+1 = 40007 [16:13:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 205 27.10.2024 16:13 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156654 ФПД: 72374693551281 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T161311&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156654&fm=72374693551281&tin=02508201610067®Number=0000000000091693&sum=40000 [16:13:05]StoreToDocumentArchive [16:13:05]shift 537 fd 156654 [16:13:05]save to /storage/0537/doc_00156654 [16:13:05]save last doc name /storage/0537/doc_00156654 to /storage/kkm_last_doc_name [16:13:05]save OK [16:13:05]Clear old archive folders... [16:13:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:13:05]tlvbuf is 016E98D0 [16:13:05]SAM_PROTO_ClearQueue [16:13:05]wFMCommunicate request_size=4 [16:13:05]MH_SAM_APDU [16:13:05]CAPDU: 80 09 00 00 [16:13:05]Write to MH i2c: E2 08 00 49 6B 80 09 00 00 00 00 00 00 26 [16:13:05]Write i2c OK [16:13:05]MH_I2C_Read... [16:13:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:13:05]Read from MH i2c: E2 [16:13:05]MH_I2C_Read... [16:13:05]Read from MH i2c: E2 03 00 [16:13:05]MH_I2C_Read... [16:13:05]Read from MH i2c: E2 03 00 49 6B 00 90 00 28 [16:13:05]RAPDU: 90 00 [16:13:05]wFMCommunicate OK [16:13:05]SAM_PROTO_ClearQueue done [16:13:05]KKMCreateOFDPacket [16:13:05]OFDProtocolAddRootSTLVToBuf [16:13:05]FM_MakeSignedData [16:13:05]FM_MakeSignedData [16:13:05]SAM_PROTO_SignData [16:13:05]wFMCommunicate request_size=4 [16:13:05]MH_SAM_APDU [16:13:05]CAPDU: 80 0D 01 02 [16:13:05]Write to MH i2c: E2 08 00 4A 6B 80 0D 01 02 00 00 00 00 2E [16:13:05]Write i2c OK [16:13:05]MH_I2C_Read... [16:13:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:13:05]Read from MH i2c: E2 [16:13:05]MH_I2C_Read... [16:13:05]Read from MH i2c: E2 03 00 [16:13:05]MH_I2C_Read... [16:13:05]Read from MH i2c: E2 03 00 4A 6B 00 90 00 29 [16:13:05]RAPDU: 90 00 [16:13:05]wFMCommunicate OK [16:13:05]wFMCommunicate request_size=255 [16:13:05]MH_SAM_APDU [16:13: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 97 66 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EE 63 02 00 35 04 06 00 41 [16:13:05]Write to MH i2c: E2 02 01 4B 6B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 97 66 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EE 63 02 00 35 04 06 00 41 00 00 8F [16:13:05]Write i2c OK [16:13:05]MH_I2C_Read... [16:13:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:13:06]Read from MH i2c: E2 [16:13:06]MH_I2C_Read... [16:13:06]Read from MH i2c: E2 03 00 [16:13:06]MH_I2C_Read... [16:13:06]Read from MH i2c: E2 03 00 4B 6B 00 90 00 2A [16:13:06]RAPDU: 90 00 [16:13:06]wFMCommunicate OK [16:13:06]wFMCommunicate request_size=10 [16:13:06]MH_SAM_APDU [16:13:06]CAPDU: 80 0D 02 02 05 D3 0B E6 5C B1 [16:13:06]Write to MH i2c: E2 0D 00 4C 6B 80 0D 02 02 05 00 D3 0B E6 5C B1 00 00 0C [16:13:06]Write i2c OK [16:13:06]MH_I2C_Read... [16:13:06]Read from MH i2c: E2 [16:13:06]MH_I2C_Read... [16:13:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:13:06]Read from MH i2c: E2 03 00 [16:13:06]MH_I2C_Read... [16:13:06]Read from MH i2c: E2 03 00 4C 6B 00 90 00 2B [16:13:06]RAPDU: 90 00 [16:13:06]wFMCommunicate OK [16:13:06]wFMCommunicate request_size=4 [16:13:06]MH_SAM_APDU [16:13:06]CAPDU: 80 0D 03 02 [16:13:06]Write to MH i2c: E2 08 00 4D 6B 80 0D 03 02 00 00 00 00 33 [16:13:06]Write i2c OK [16:13:06]MH_I2C_Read... [16:13:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:13:06]Read from MH i2c: E2 [16:13:06]MH_I2C_Read... [16:13:06]Read from MH i2c: E2 0B 00 [16:13:06]MH_I2C_Read... [16:13:06]Read from MH i2c: E2 0B 00 4D 6B 00 AD EE B5 72 A4 F5 94 5F 90 00 82 [16:13:06]RAPDU: AD EE B5 72 A4 F5 94 5F 90 00 [16:13:06]wFMCommunicate OK [16:13:06]SAM_PROTO_SignData done [16:13:06]FM_MakeSignedData done [16:13:06]CreateOFDProtocolMessage [16:13:06]wFMCommunicate request_size=4 [16:13:06]MH_SAM_APDU [16:13:06]CAPDU: 80 11 00 00 [16:13:06]Write to MH i2c: E2 08 00 4E 6B 80 11 00 00 00 00 00 00 33 [16:13:06]Write i2c OK [16:13:06]MH_I2C_Read... [16:13:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:13:06]Read from MH i2c: E2 [16:13:06]MH_I2C_Read... [16:13:06]Read from MH i2c: E2 17 00 [16:13:06]MH_I2C_Read... [16:13:06]Read from MH i2c: E2 17 00 4E 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 88 [16:13:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:13:06]wFMCommunicate OK [16:13:06]CreateOFDProtocolMessage done [16:13:06]OFDSenderStorePacket 156654 [16:13:06]StoreOFDPacket docnum=156654 [16:13:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 EC 05 07 01 AF A7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 97 66 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EE 63 02 00 35 04 06 00 41 D3 0B E6 5C B1 AD EE B5 72 A4 F5 94 5F [16:13:06]CheckFolder [16:13:06]dirname=/storage/ofd_packets [16:13:06]CheckFolder done [16:13:06]ProducePacketName [16:13:06]name=ofd_packets/00156654 [16:13:06]NVStorageSaveData ofd_packets/00156654 [16:13:06]File name is /storage/ofd_packets/00156654 [16:13:06]Write 301 bytes [16:13:06]NVStorageSaveData done [16:13:06]OFDSenderStorePacket done [16:13:06]KKMCreateOFDPacket done [16:13:06]NVStorageSaveData kkm_last_timestamp [16:13:06]File name is /storage/kkm_last_timestamp [16:13:06]Write 4 bytes [16:13:06]NVStorageSaveData done [16:13:06]ExternCall_PrintAddStr [16:13:06]wPrintStart [16:13:06]Write to MH i2c: 01 00 00 4F 6B BA [16:13:06]Write i2c OK [16:13:06]MH_I2C_Read... [16:13:06]Read from MH i2c: 01 [16:13:06]MH_I2C_Read... [16:13:06]Read from MH i2c: 01 07 00 [16:13:06]MH_I2C_Read... [16:13:06]Read from MH i2c: 01 07 00 4F 6B 00 00 00 00 00 FF 0F CF [16:13:06]RasterBufferAndPrint [16:13:06]line Счет N : (1)99468 [16:13:06]line ИНН: 02508201610067 [16:13:06]line Контрольно-Кассовый Чек [16:13:06]line ПРОДАЖА [16:13:06]line ТРК (МРК, ГНК) : 31 [16:13:06]line Товар: 2710124130 [16:13:06]line Аи-92-К-5 [16:13:06]line 5.980 * 66.90 [16:13:06]line = 400.06 [16:13:06]line НДС 12% НСП 1% [16:13:06]line > о реализуемом товаре [16:13:06]line ОКРУГЛЕНИЕ: -0.06 [16:13:06]line ИТОГО: 400.00 [16:13:06]line Внесено: 400.00 [16:13:06]line СДАЧА: 0.00 [16:13:06]line НСП 1% : 3.54 [16:13:06]line НДС 12% : 42.48 [16:13:06]line Наличными: 400.00 [16:13:06]line Безнал.: 0.00 [16:13:06]line Место: АЗС № 143 "Партнер Нефть" [16:13:06]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [16:13:06]line СНО: Общий режим [16:13:06]line Чек 205 27.10.2024 16:13 [16:13:06]line Смена: 537 ФФД: 1.0 [16:13:06]line ЗНМ: 0300000096 [16:13:06]line РНМ: 0000000000091693 [16:13:06]line Версия ККМ: 001 [16:13:06]line ФМ: 0000000000871792 [16:13:06]line ФД: 156654 [16:13:06]line ФПД: 72374693551281 [16:13:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T161311&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156654&fm=72374693551281&tin=02508201610067®Number=0000000000091693&sum=40000 [16:13:06]OFD Sender: Processing packet 156654 [packets to send 31, broken 30] [16:13:06]ProducePacketName [16:13:06]name=ofd_packets/00156654 [16:13:06]OFD Sender: To server: pG, [16:13:06]CommunicateWithHost lk.salyk.kg:30040 [16:13:06]ConnectInit lk.salyk.kg [16:13:06]written 0, free lines is 4095 [16:13:06]Connected sock=10 [16:13:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 EC 05 07 01 AF A7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 97 66 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EE 63 02 00 35 04 06 00 41 D3 0B E6 5C B1 AD EE B5 72 A4 F5 94 5F [16:13:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 85 53 47 00 C1 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EE 63 02 00 F4 03 04 00 06 0C 1E 67 B6 04 01 00 00 3F F6 85 88 01 DA 06 5B [16:13:07]CommunicateWithHost err = 0 [16:13:07]CheckOFDResponse [16:13:07]1017 (14) - 77093643461234 [16:13:07]1041 (16) - 0000000000871792 [16:13:07]1040 (4) - 156654 [16:13:07]1012 (4) - 27.10.2024 09:46 [16:13:07]1206 (1) - 0 [16:13:07]OFD Sender: Remove packet 156654 [16:13:07]ProducePacketName [16:13:07]name=ofd_packets/00156654 [16:13:07]NVStorageDeleteData [16:13:07]Write to MH i2c: 01 00 00 7A 6B E5 [16:13:07]Write i2c OK [16:13:07]MH_I2C_Read... [16:13:07]Read from MH i2c: 01 [16:13:07]MH_I2C_Read... [16:13:07]Read from MH i2c: 01 07 00 [16:13:07]MH_I2C_Read... [16:13:07]Read from MH i2c: 01 07 00 7A 6B 00 00 00 00 00 01 0D FA [16:13:07]RasterBufferAndPrint [16:13:07]line [16:13:07]line [16:13:07]line [16:13:07]line [16:13:07]line [16:13:07]written 0, free lines is 3347 [16:13:07]process_action close_receipt done [16:13:07]requested_data is exist [16:13:07]produce_requested_data [16:13:07]requested_item fm.sn is exist - process it [16:13:07]wFMCommunicate request_size=4 [16:13:07]MH_SAM_APDU [16:13:07]CAPDU: 80 11 00 00 [16:13:07]Write to MH i2c: E2 08 00 81 6B 80 11 00 00 00 00 00 00 66 [16:13:07]Write i2c OK [16:13:07]MH_I2C_Read... [16:13:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:13:07]Read from MH i2c: E2 [16:13:07]MH_I2C_Read... [16:13:07]Read from MH i2c: E2 17 00 [16:13:07]MH_I2C_Read... [16:13:07]Read from MH i2c: E2 17 00 81 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 BB [16:13:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:13:07]wFMCommunicate OK [16:13:07]requested_item fd.num is exist - process it [16:13:07]SAM_PROTO_GetFieldsCounters [16:13:07]wFMCommunicate request_size=4 [16:13:07]MH_SAM_APDU [16:13:07]CAPDU: 80 13 00 00 [16:13:07]Write to MH i2c: E2 08 00 82 6B 80 13 00 00 00 00 00 00 69 [16:13:07]Write i2c OK [16:13:07]MH_I2C_Read... [16:13:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:13:07]Read from MH i2c: E2 [16:13:07]MH_I2C_Read... [16:13:07]Read from MH i2c: E2 62 00 [16:13:07]MH_I2C_Read... [16:13:07]Read from MH i2c: E2 62 00 82 6B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 EE 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 64 [16:13:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 EE 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:13:07]wFMCommunicate OK [16:13:07]SAM_PROTO_GetFieldsCounters done [16:13:07]requested_item shift.num is exist - process it [16:13:07]requested_item shift.opened is exist - process it [16:13:07]req_shift_opened [16:13:07]FM_GetShiftState [16:13:07]SAM_PROTO_GetShiftState [16:13:07]wFMCommunicate request_size=4 [16:13:07]MH_SAM_APDU [16:13:07]CAPDU: 80 13 01 00 [16:13:07]Write to MH i2c: E2 08 00 83 6B 80 13 01 00 00 00 00 00 6B [16:13:07]Write i2c OK [16:13:07]MH_I2C_Read... [16:13:07]Read from MH i2c: E2 [16:13:07]MH_I2C_Read... [16:13:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:13:07]Read from MH i2c: E2 0E 00 [16:13:07]MH_I2C_Read... [16:13:07]Read from MH i2c: E2 0E 00 83 6B 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 38 [16:13:07]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [16:13:07]wFMCommunicate OK [16:13:07]SAM_PROTO_GetShiftState done [16:13:07]FM_GetShiftState done [16:13:07]req_shift_opened done [16:13:07]requested_item shift.open_date is exist - process it [16:13:07]req_shift_open_date [16:13:07]req_shift_open_date done [16:13:07]produce_requested_data done [16:13:07]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156654,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [16:13:07]process_action_free close_receipt [16:13:07]json_value_free [16:13:07]json_value_free done [16:13:07]process_json_proto returns [16:13:07]Send response to host [16:13:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156654,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [16:13:07]free response buf [16:13:07]execute_script done [16:13:07]execute_script returns [16:13:07]free content buf [16:13:07]Sock 8.Close socket [16:13:07]Sock 8.Thread stoped [16:13:07]OFD Sender: No OFD packet to send [16:13:12]OFD Sender: No OFD packet to send [16:13:17]OFD Sender: No OFD packet to send [16:13:22]OFD Sender: No OFD packet to send [16:13:27]OFD Sender: No OFD packet to send [16:13:32]OFD Sender: No OFD packet to send [16:13:37]OFD Sender: No OFD packet to send [16:13:42]OFD Sender: No OFD packet to send [16:13:47]OFD Sender: No OFD packet to send [16:13:52]OFD Sender: No OFD packet to send [16:13:57]OFD Sender: No OFD packet to send [16:14:02]OFD Sender: No OFD packet to send [16:14:07]OFD Sender: No OFD packet to send [16:14:12]OFD Sender: No OFD packet to send [16:14:17]OFD Sender: No OFD packet to send [16:14:22]OFD Sender: No OFD packet to send [16:14:27]OFD Sender: No OFD packet to send [16:14:32]OFD Sender: No OFD packet to send [16:14:37]OFD Sender: No OFD packet to send [16:14:42]OFD Sender: No OFD packet to send [16:14:47]OFD Sender: No OFD packet to send [16:14:52]OFD Sender: No OFD packet to send [16:14:57]OFD Sender: No OFD packet to send [16:15:02]OFD Sender: No OFD packet to send [16:15:07]OFD Sender: No OFD packet to send [16:15:12]OFD Sender: No OFD packet to send [16:15:17]OFD Sender: No OFD packet to send [16:15:22]OFD Sender: No OFD packet to send [16:15:27]OFD Sender: No OFD packet to send [16:15:32]OFD Sender: No OFD packet to send [16:15:37]OFD Sender: No OFD packet to send [16:15:42]OFD Sender: No OFD packet to send [16:15:47]OFD Sender: No OFD packet to send [16:15:52]OFD Sender: No OFD packet to send [16:15:57]OFD Sender: No OFD packet to send [16:16:02]OFD Sender: No OFD packet to send [16:16:07]OFD Sender: No OFD packet to send [16:16:12]OFD Sender: No OFD packet to send [16:16:17]OFD Sender: No OFD packet to send [16:16:22]OFD Sender: No OFD packet to send [16:16:27]OFD Sender: No OFD packet to send [16:16:32]OFD Sender: No OFD packet to send [16:16:37]OFD Sender: No OFD packet to send [16:16:42]OFD Sender: No OFD packet to send [16:16:47]OFD Sender: No OFD packet to send [16:16:48]accept exits with 9 [16:16:48]New connection [16:16:48]New thread 3066977636 created [16:16:48]Thread 3066834276 joined [16:16:48]Waiting for new connection... [16:16:48] Sock 9.Parse request [16:16:48]Sock 9.Check first char [16:16:48]Sock 9.First char is OK [16:16:48]request: POST /json_proto HTTP/1.0 [16:16:48]Method: POST [16:16:48]URL: /json_proto [16:16:48]Method is POST - this is cgi request [16:16:48]url: /json_proto [16:16:48]query_string will be loaded in cgi processing [16:16:48]execute_cgi json_proto POST (null) [16:16:48]execute_cgi path=json_proto method=POST [16:16:48]POST find Content-Length [16:16:48]Host: 172.17.63.3:8080 [16:16:48]Content-Length: 676 [16:16:48]Content-Type: application/json [16:16:48] [16:16:48]POST finish read [16:16:48]Found Content-Length = 676 [16:16:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99469", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:16:48]execute_script... [16:16:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99469", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:16:48]POST & json_proto [16:16:48]process_json_proto [16:16:48]json parsed OK: [16:16:48]protocol is kg_v1.0 [16:16:48]action value=close_receipt [16:16:48]process_action close_receipt [16:16:48]cmd_close_receipt [16:16:48]MH_GetDate [16:16:48]Write to MH i2c: F0 00 00 84 6B DE [16:16:48]Write i2c OK [16:16:48]MH_I2C_Read... [16:16:48]Read from MH i2c: F0 [16:16:48]MH_I2C_Read... [16:16:48]Read from MH i2c: F0 09 00 [16:16:48]MH_I2C_Read... [16:16:48]Read from MH i2c: F0 09 00 84 6B 00 77 67 1E 67 50 D1 6C 64 3B [16:16:48]GetLastDocTimeStamp 1730045591 [16:16:48]current date 1730045815 [16:16:48]FM_GetShiftState [16:16:48]SAM_PROTO_GetShiftState [16:16:48]wFMCommunicate request_size=4 [16:16:48]MH_SAM_APDU [16:16:48]CAPDU: 80 13 01 00 [16:16:48]Write to MH i2c: E2 08 00 85 6B 80 13 01 00 00 00 00 00 6D [16:16:48]Write i2c OK [16:16:48]MH_I2C_Read... [16:16:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:16:48]Read from MH i2c: E2 [16:16:48]MH_I2C_Read... [16:16:48]Read from MH i2c: E2 0E 00 [16:16:48]MH_I2C_Read... [16:16:48]Read from MH i2c: E2 0E 00 85 6B 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 3A [16:16:48]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [16:16:48]wFMCommunicate OK [16:16:48]SAM_PROTO_GetShiftState done [16:16:48]FM_GetShiftState done [16:16:48]opened in 1729989044 [16:16:48]opened+sec_in_day 1730075444 [16:16:48]quantity*price = 40006 [16:16:48]sum+1 = 40007 [16:16:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 206 27.10.2024 16:16 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156655 ФПД: 24955707679618 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T161655&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156655&fm=24955707679618&tin=02508201610067®Number=0000000000091693&sum=40000 [16:16:49]StoreToDocumentArchive [16:16:49]shift 537 fd 156655 [16:16:49]save to /storage/0537/doc_00156655 [16:16:49]save last doc name /storage/0537/doc_00156655 to /storage/kkm_last_doc_name [16:16:49]save OK [16:16:49]Clear old archive folders... [16:16:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:16:49]tlvbuf is 016B3A80 [16:16:49]SAM_PROTO_ClearQueue [16:16:49]wFMCommunicate request_size=4 [16:16:49]MH_SAM_APDU [16:16:49]CAPDU: 80 09 00 00 [16:16:49]Write to MH i2c: E2 08 00 92 6B 80 09 00 00 00 00 00 00 6F [16:16:50]Write i2c OK [16:16:50]MH_I2C_Read... [16:16:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:16:50]Read from MH i2c: E2 [16:16:50]MH_I2C_Read... [16:16:50]Read from MH i2c: E2 03 00 [16:16:50]MH_I2C_Read... [16:16:50]Read from MH i2c: E2 03 00 92 6B 00 90 00 71 [16:16:50]RAPDU: 90 00 [16:16:50]wFMCommunicate OK [16:16:50]SAM_PROTO_ClearQueue done [16:16:50]KKMCreateOFDPacket [16:16:50]OFDProtocolAddRootSTLVToBuf [16:16:50]FM_MakeSignedData [16:16:50]FM_MakeSignedData [16:16:50]SAM_PROTO_SignData [16:16:50]wFMCommunicate request_size=4 [16:16:50]MH_SAM_APDU [16:16:50]CAPDU: 80 0D 01 02 [16:16:50]Write to MH i2c: E2 08 00 93 6B 80 0D 01 02 00 00 00 00 77 [16:16:50]Write i2c OK [16:16:50]MH_I2C_Read... [16:16:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:16:50]Read from MH i2c: E2 [16:16:50]MH_I2C_Read... [16:16:50]Read from MH i2c: E2 03 00 [16:16:50]MH_I2C_Read... [16:16:50]Read from MH i2c: E2 03 00 93 6B 00 90 00 72 [16:16:50]RAPDU: 90 00 [16:16:50]wFMCommunicate OK [16:16:50]wFMCommunicate request_size=255 [16:16:50]MH_SAM_APDU [16:16: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 77 67 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EF 63 02 00 35 04 06 00 16 [16:16:50]Write to MH i2c: E2 02 01 94 6B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 77 67 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EF 63 02 00 35 04 06 00 16 00 00 90 [16:16:50]Write i2c OK [16:16:50]MH_I2C_Read... [16:16:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:16:50]Read from MH i2c: E2 [16:16:50]MH_I2C_Read... [16:16:50]Read from MH i2c: E2 03 00 [16:16:50]MH_I2C_Read... [16:16:50]Read from MH i2c: E2 03 00 94 6B 00 90 00 73 [16:16:50]RAPDU: 90 00 [16:16:50]wFMCommunicate OK [16:16:50]wFMCommunicate request_size=10 [16:16:50]MH_SAM_APDU [16:16:50]CAPDU: 80 0D 02 02 05 B2 74 17 63 82 [16:16:50]Write to MH i2c: E2 0D 00 95 6B 80 0D 02 02 05 00 B2 74 17 63 82 00 00 A6 [16:16:50]Write i2c OK [16:16:50]MH_I2C_Read... [16:16:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:16:50]Read from MH i2c: E2 [16:16:50]MH_I2C_Read... [16:16:50]Read from MH i2c: E2 03 00 [16:16:50]MH_I2C_Read... [16:16:50]Read from MH i2c: E2 03 00 95 6B 00 90 00 74 [16:16:50]RAPDU: 90 00 [16:16:50]wFMCommunicate OK [16:16:50]wFMCommunicate request_size=4 [16:16:50]MH_SAM_APDU [16:16:50]CAPDU: 80 0D 03 02 [16:16:50]Write to MH i2c: E2 08 00 96 6B 80 0D 03 02 00 00 00 00 7C [16:16:50]Write i2c OK [16:16:50]MH_I2C_Read... [16:16:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:16:50]Read from MH i2c: E2 [16:16:50]MH_I2C_Read... [16:16:50]Read from MH i2c: E2 0B 00 [16:16:50]MH_I2C_Read... [16:16:50]Read from MH i2c: E2 0B 00 96 6B 00 E4 0C C8 6B 4E 4C 98 E8 90 00 BA [16:16:50]RAPDU: E4 0C C8 6B 4E 4C 98 E8 90 00 [16:16:50]wFMCommunicate OK [16:16:50]SAM_PROTO_SignData done [16:16:50]FM_MakeSignedData done [16:16:50]CreateOFDProtocolMessage [16:16:50]wFMCommunicate request_size=4 [16:16:50]MH_SAM_APDU [16:16:50]CAPDU: 80 11 00 00 [16:16:50]Write to MH i2c: E2 08 00 97 6B 80 11 00 00 00 00 00 00 7C [16:16:50]Write i2c OK [16:16:50]MH_I2C_Read... [16:16:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:16:50]Read from MH i2c: E2 [16:16:50]MH_I2C_Read... [16:16:50]Read from MH i2c: E2 17 00 [16:16:50]MH_I2C_Read... [16:16:50]Read from MH i2c: E2 17 00 97 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 D1 [16:16:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:16:50]wFMCommunicate OK [16:16:50]CreateOFDProtocolMessage done [16:16:50]OFDSenderStorePacket 156655 [16:16:50]StoreOFDPacket docnum=156655 [16:16:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 DB 75 07 01 BD 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 77 67 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EF 63 02 00 35 04 06 00 16 B2 74 17 63 82 E4 0C C8 6B 4E 4C 98 E8 [16:16:50]CheckFolder [16:16:50]dirname=/storage/ofd_packets [16:16:50]CheckFolder done [16:16:50]ProducePacketName [16:16:50]name=ofd_packets/00156655 [16:16:50]NVStorageSaveData ofd_packets/00156655 [16:16:50]File name is /storage/ofd_packets/00156655 [16:16:50]Write 301 bytes [16:16:50]NVStorageSaveData done [16:16:50]OFDSenderStorePacket done [16:16:50]KKMCreateOFDPacket done [16:16:50]NVStorageSaveData kkm_last_timestamp [16:16:50]File name is /storage/kkm_last_timestamp [16:16:50]Write 4 bytes [16:16:50]NVStorageSaveData done [16:16:50]ExternCall_PrintAddStr [16:16:50]wPrintStart [16:16:50]Write to MH i2c: 01 00 00 98 6B 03 [16:16:50]OFD Sender: Processing packet 156655 [packets to send 31, broken 30] [16:16:50]ProducePacketName [16:16:50]name=ofd_packets/00156655 [16:16:50]OFD Sender: To server: pG, [16:16:50]CommunicateWithHost lk.salyk.kg:30040 [16:16:50]ConnectInit lk.salyk.kg [16:16:50]Write i2c OK [16:16:50]MH_I2C_Read... [16:16:50]Read from MH i2c: 01 [16:16:50]MH_I2C_Read... [16:16:50]Read from MH i2c: 01 07 00 [16:16:50]MH_I2C_Read... [16:16:50]Read from MH i2c: 01 07 00 98 6B 00 00 00 00 00 FF 0F 18 [16:16:50]RasterBufferAndPrint [16:16:50]line Счет N : (1)99469 [16:16:50]line ИНН: 02508201610067 [16:16:50]line Контрольно-Кассовый Чек [16:16:50]line ПРОДАЖА [16:16:50]line ТРК (МРК, ГНК) : 31 [16:16:50]line Товар: 2710124130 [16:16:50]line Аи-92-К-5 [16:16:50]line 5.980 * 66.90 [16:16:50]line = 400.06 [16:16:50]line НДС 12% НСП 1% [16:16:50]line > о реализуемом товаре [16:16:50]line ОКРУГЛЕНИЕ: -0.06 [16:16:50]line ИТОГО: 400.00 [16:16:50]line Внесено: 400.00 [16:16:50]line СДАЧА: 0.00 [16:16:50]line НСП 1% : 3.54 [16:16:50]line НДС 12% : 42.48 [16:16:50]line Наличными: 400.00 [16:16:50]line Безнал.: 0.00 [16:16:50]line Место: АЗС № 143 "Партнер Нефть" [16:16:50]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [16:16:50]line СНО: Общий режим [16:16:50]line Чек 206 27.10.2024 16:16 [16:16:50]line Смена: 537 ФФД: 1.0 [16:16:50]line ЗНМ: 0300000096 [16:16:50]line РНМ: 0000000000091693 [16:16:50]line Версия ККМ: 001 [16:16:50]line ФМ: 0000000000871792 [16:16:50]line ФД: 156655 [16:16:50]line ФПД: 24955707679618 [16:16:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T161655&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156655&fm=24955707679618&tin=02508201610067®Number=0000000000091693&sum=40000 [16:16:50]Connected sock=10 [16:16:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 DB 75 07 01 BD 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 77 67 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EF 63 02 00 35 04 06 00 16 B2 74 17 63 82 E4 0C C8 6B 4E 4C 98 E8 [16:16:50]written 0, free lines is 4095 [16:16:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 B6 D7 47 00 77 51 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 EF 63 02 00 F4 03 04 00 E6 0C 1E 67 B6 04 01 00 00 04 D7 0A D6 CC 35 97 DA [16:16:51]CommunicateWithHost err = 0 [16:16:51]CheckOFDResponse [16:16:51]1017 (14) - 77093643461234 [16:16:51]1041 (16) - 0000000000871792 [16:16:51]1040 (4) - 156655 [16:16:51]1012 (4) - 27.10.2024 09:50 [16:16:51]1206 (1) - 0 [16:16:51]OFD Sender: Remove packet 156655 [16:16:51]ProducePacketName [16:16:51]name=ofd_packets/00156655 [16:16:51]NVStorageDeleteData [16:16:51]Write to MH i2c: 01 00 00 C3 6B 2E [16:16:51]Write i2c OK [16:16:51]MH_I2C_Read... [16:16:51]Read from MH i2c: 01 [16:16:51]MH_I2C_Read... [16:16:51]Read from MH i2c: 01 07 00 [16:16:51]MH_I2C_Read... [16:16:51]Read from MH i2c: 01 07 00 C3 6B 00 00 00 00 00 E1 0C 22 [16:16:51]RasterBufferAndPrint [16:16:51]line [16:16:51]line [16:16:51]line [16:16:51]line [16:16:51]line [16:16:51]written 0, free lines is 3306 [16:16:51]process_action close_receipt done [16:16:51]requested_data is exist [16:16:51]produce_requested_data [16:16:51]requested_item fm.sn is exist - process it [16:16:51]wFMCommunicate request_size=4 [16:16:51]MH_SAM_APDU [16:16:51]CAPDU: 80 11 00 00 [16:16:51]Write to MH i2c: E2 08 00 CA 6B 80 11 00 00 00 00 00 00 AF [16:16:51]Write i2c OK [16:16:51]MH_I2C_Read... [16:16:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:16:51]Read from MH i2c: E2 [16:16:51]MH_I2C_Read... [16:16:51]Read from MH i2c: E2 17 00 [16:16:51]MH_I2C_Read... [16:16:51]Read from MH i2c: E2 17 00 CA 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 04 [16:16:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:16:51]wFMCommunicate OK [16:16:51]requested_item fd.num is exist - process it [16:16:51]SAM_PROTO_GetFieldsCounters [16:16:51]wFMCommunicate request_size=4 [16:16:51]MH_SAM_APDU [16:16:51]CAPDU: 80 13 00 00 [16:16:51]Write to MH i2c: E2 08 00 CB 6B 80 13 00 00 00 00 00 00 B2 [16:16:51]Write i2c OK [16:16:51]MH_I2C_Read... [16:16:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:16:51]OFD Sender: No OFD packet to send [16:16:51]Read from MH i2c: E2 [16:16:51]MH_I2C_Read... [16:16:51]Read from MH i2c: E2 62 00 [16:16:51]MH_I2C_Read... [16:16:51]Read from MH i2c: E2 62 00 CB 6B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 EF 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 B1 [16:16:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 EF 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:16:51]wFMCommunicate OK [16:16:51]SAM_PROTO_GetFieldsCounters done [16:16:51]requested_item shift.num is exist - process it [16:16:51]requested_item shift.opened is exist - process it [16:16:51]req_shift_opened [16:16:51]FM_GetShiftState [16:16:51]SAM_PROTO_GetShiftState [16:16:51]wFMCommunicate request_size=4 [16:16:51]MH_SAM_APDU [16:16:51]CAPDU: 80 13 01 00 [16:16:51]Write to MH i2c: E2 08 00 CC 6B 80 13 01 00 00 00 00 00 B4 [16:16:51]Write i2c OK [16:16:51]MH_I2C_Read... [16:16:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:16:51]Read from MH i2c: E2 [16:16:51]MH_I2C_Read... [16:16:51]Read from MH i2c: E2 0E 00 [16:16:51]MH_I2C_Read... [16:16:51]Read from MH i2c: E2 0E 00 CC 6B 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 81 [16:16:51]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [16:16:51]wFMCommunicate OK [16:16:51]SAM_PROTO_GetShiftState done [16:16:51]FM_GetShiftState done [16:16:51]req_shift_opened done [16:16:51]requested_item shift.open_date is exist - process it [16:16:51]req_shift_open_date [16:16:51]req_shift_open_date done [16:16:51]produce_requested_data done [16:16:51]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156655,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [16:16:51]process_action_free close_receipt [16:16:51]json_value_free [16:16:51]json_value_free done [16:16:51]process_json_proto returns [16:16:51]Send response to host [16:16:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156655,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [16:16:51]free response buf [16:16:51]execute_script done [16:16:51]execute_script returns [16:16:51]free content buf [16:16:51]Sock 9.Close socket [16:16:51]Sock 9.Thread stoped [16:16:56]OFD Sender: No OFD packet to send [16:17:01]OFD Sender: No OFD packet to send [16:17:06]OFD Sender: No OFD packet to send [16:17:11]OFD Sender: No OFD packet to send [16:17:16]OFD Sender: No OFD packet to send [16:17:21]OFD Sender: No OFD packet to send [16:17:26]OFD Sender: No OFD packet to send [16:17:31]OFD Sender: No OFD packet to send [16:17:36]OFD Sender: No OFD packet to send [16:17:41]OFD Sender: No OFD packet to send [16:17:46]OFD Sender: No OFD packet to send [16:17:51]OFD Sender: No OFD packet to send [16:17:56]OFD Sender: No OFD packet to send [16:18:01]OFD Sender: No OFD packet to send [16:18:06]OFD Sender: No OFD packet to send [16:18:11]OFD Sender: No OFD packet to send [16:18:16]OFD Sender: No OFD packet to send [16:18:21]OFD Sender: No OFD packet to send [16:18:26]OFD Sender: No OFD packet to send [16:18:31]OFD Sender: No OFD packet to send [16:18:36]OFD Sender: No OFD packet to send [16:18:41]accept exits with 8 [16:18:41]New connection [16:18:41]New thread 3066834276 created [16:18:41]Thread 3066977636 joined [16:18:41]Waiting for new connection... [16:18:41] Sock 8.Parse request [16:18:41]Sock 8.Check first char [16:18:41]Sock 8.First char is OK [16:18:41]request: POST /json_proto HTTP/1.0 [16:18:41]Method: POST [16:18:41]URL: /json_proto [16:18:41]Method is POST - this is cgi request [16:18:41]url: /json_proto [16:18:41]query_string will be loaded in cgi processing [16:18:41]execute_cgi json_proto POST (null) [16:18:41]execute_cgi path=json_proto method=POST [16:18:41]POST find Content-Length [16:18:41]Host: 172.17.63.3:8080 [16:18:41]Content-Length: 676 [16:18:41]Content-Type: application/json [16:18:41] [16:18:41]POST finish read [16:18:41]Found Content-Length = 676 [16:18:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99470", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:18:41]execute_script... [16:18: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)99470", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:18:41]POST & json_proto [16:18:41]process_json_proto [16:18:41]json parsed OK: [16:18:41]protocol is kg_v1.0 [16:18:41]action value=close_receipt [16:18:41]process_action close_receipt [16:18:41]cmd_close_receipt [16:18:41]MH_GetDate [16:18:41]Write to MH i2c: F0 00 00 CD 6B 27 [16:18:41]Write i2c OK [16:18:41]MH_I2C_Read... [16:18:41]Read from MH i2c: F0 [16:18:41]MH_I2C_Read... [16:18:41]Read from MH i2c: F0 09 00 [16:18:41]MH_I2C_Read... [16:18:41]Read from MH i2c: F0 09 00 CD 6B 00 E8 67 1E 67 50 D1 6C 64 F5 [16:18:41]GetLastDocTimeStamp 1730045815 [16:18:41]current date 1730045928 [16:18:41]FM_GetShiftState [16:18:41]SAM_PROTO_GetShiftState [16:18:41]wFMCommunicate request_size=4 [16:18:41]MH_SAM_APDU [16:18:41]CAPDU: 80 13 01 00 [16:18:41]Write to MH i2c: E2 08 00 CE 6B 80 13 01 00 00 00 00 00 B6 [16:18:41]Write i2c OK [16:18:41]MH_I2C_Read... [16:18:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:18:41]Read from MH i2c: E2 [16:18:41]MH_I2C_Read... [16:18:41]Read from MH i2c: E2 0E 00 [16:18:41]MH_I2C_Read... [16:18:41]Read from MH i2c: E2 0E 00 CE 6B 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 83 [16:18:41]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [16:18:41]wFMCommunicate OK [16:18:41]SAM_PROTO_GetShiftState done [16:18:41]FM_GetShiftState done [16:18:41]opened in 1729989044 [16:18:41]opened+sec_in_day 1730075444 [16:18:41]quantity*price = 40006 [16:18:41]sum+1 = 40007 [16:18:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 207 27.10.2024 16:18 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156656 ФПД: 268146143820909 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T161848&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156656&fm=268146143820909&tin=02508201610067®Number=0000000000091693&sum=40000 [16:18:42]StoreToDocumentArchive [16:18:42]shift 537 fd 156656 [16:18:42]save to /storage/0537/doc_00156656 [16:18:42]save last doc name /storage/0537/doc_00156656 to /storage/kkm_last_doc_name [16:18:42]save OK [16:18:42]Clear old archive folders... [16:18:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:18:42]tlvbuf is 0167F250 [16:18:42]SAM_PROTO_ClearQueue [16:18:42]wFMCommunicate request_size=4 [16:18:42]MH_SAM_APDU [16:18:42]CAPDU: 80 09 00 00 [16:18:42]Write to MH i2c: E2 08 00 DB 6B 80 09 00 00 00 00 00 00 B8 [16:18:42]Write i2c OK [16:18:42]MH_I2C_Read... [16:18:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:18:42]Read from MH i2c: E2 [16:18:42]MH_I2C_Read... [16:18:42]Read from MH i2c: E2 03 00 [16:18:42]MH_I2C_Read... [16:18:42]Read from MH i2c: E2 03 00 DB 6B 00 90 00 BA [16:18:42]RAPDU: 90 00 [16:18:42]wFMCommunicate OK [16:18:42]SAM_PROTO_ClearQueue done [16:18:42]KKMCreateOFDPacket [16:18:42]OFDProtocolAddRootSTLVToBuf [16:18:42]FM_MakeSignedData [16:18:42]FM_MakeSignedData [16:18:42]SAM_PROTO_SignData [16:18:42]wFMCommunicate request_size=4 [16:18:42]MH_SAM_APDU [16:18:42]CAPDU: 80 0D 01 02 [16:18:42]Write to MH i2c: E2 08 00 DC 6B 80 0D 01 02 00 00 00 00 C0 [16:18:42]Write i2c OK [16:18:42]MH_I2C_Read... [16:18:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:18:42]Read from MH i2c: E2 [16:18:42]MH_I2C_Read... [16:18:42]Read from MH i2c: E2 03 00 [16:18:42]MH_I2C_Read... [16:18:42]Read from MH i2c: E2 03 00 DC 6B 00 90 00 BB [16:18:42]RAPDU: 90 00 [16:18:42]wFMCommunicate OK [16:18:42]wFMCommunicate request_size=255 [16:18:42]MH_SAM_APDU [16:18: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 E8 67 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F0 63 02 00 35 04 06 00 F3 [16:18:42]Write to MH i2c: E2 02 01 DD 6B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 E8 67 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F0 63 02 00 35 04 06 00 F3 00 00 29 [16:18:42]Write i2c OK [16:18:42]MH_I2C_Read... [16:18:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:18:43]Read from MH i2c: E2 [16:18:43]MH_I2C_Read... [16:18:43]Read from MH i2c: E2 03 00 [16:18:43]MH_I2C_Read... [16:18:43]Read from MH i2c: E2 03 00 DD 6B 00 90 00 BC [16:18:43]RAPDU: 90 00 [16:18:43]wFMCommunicate OK [16:18:43]wFMCommunicate request_size=10 [16:18:43]MH_SAM_APDU [16:18:43]CAPDU: 80 0D 02 02 05 E0 A3 A6 7C 6D [16:18:43]Write to MH i2c: E2 0D 00 DE 6B 80 0D 02 02 05 00 E0 A3 A6 7C 6D 00 00 DF [16:18:43]Write i2c OK [16:18:43]MH_I2C_Read... [16:18:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:18:43]Read from MH i2c: E2 [16:18:43]MH_I2C_Read... [16:18:43]Read from MH i2c: E2 03 00 [16:18:43]MH_I2C_Read... [16:18:43]Read from MH i2c: E2 03 00 DE 6B 00 90 00 BD [16:18:43]RAPDU: 90 00 [16:18:43]wFMCommunicate OK [16:18:43]wFMCommunicate request_size=4 [16:18:43]MH_SAM_APDU [16:18:43]CAPDU: 80 0D 03 02 [16:18:43]Write to MH i2c: E2 08 00 DF 6B 80 0D 03 02 00 00 00 00 C5 [16:18:43]Write i2c OK [16:18:43]MH_I2C_Read... [16:18:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:18:43]Read from MH i2c: E2 [16:18:43]MH_I2C_Read... [16:18:43]Read from MH i2c: E2 0B 00 [16:18:43]MH_I2C_Read... [16:18:43]Read from MH i2c: E2 0B 00 DF 6B 00 68 81 38 B0 2E 55 73 7A 90 00 07 [16:18:43]RAPDU: 68 81 38 B0 2E 55 73 7A 90 00 [16:18:43]wFMCommunicate OK [16:18:43]SAM_PROTO_SignData done [16:18:43]FM_MakeSignedData done [16:18:43]CreateOFDProtocolMessage [16:18:43]wFMCommunicate request_size=4 [16:18:43]MH_SAM_APDU [16:18:43]CAPDU: 80 11 00 00 [16:18:43]Write to MH i2c: E2 08 00 E0 6B 80 11 00 00 00 00 00 00 C5 [16:18:43]Write i2c OK [16:18:43]MH_I2C_Read... [16:18:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:18:43]Read from MH i2c: E2 [16:18:43]MH_I2C_Read... [16:18:43]Read from MH i2c: E2 17 00 [16:18:43]MH_I2C_Read... [16:18:43]Read from MH i2c: E2 17 00 E0 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 1A [16:18:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:18:43]wFMCommunicate OK [16:18:43]CreateOFDProtocolMessage done [16:18:43]OFDSenderStorePacket 156656 [16:18:43]StoreOFDPacket docnum=156656 [16:18:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 87 3D 07 01 BE 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 E8 67 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F0 63 02 00 35 04 06 00 F3 E0 A3 A6 7C 6D 68 81 38 B0 2E 55 73 7A [16:18:43]CheckFolder [16:18:43]dirname=/storage/ofd_packets [16:18:43]CheckFolder done [16:18:43]ProducePacketName [16:18:43]name=ofd_packets/00156656 [16:18:43]NVStorageSaveData ofd_packets/00156656 [16:18:43]File name is /storage/ofd_packets/00156656 [16:18:43]Write 301 bytes [16:18:43]NVStorageSaveData done [16:18:43]OFDSenderStorePacket done [16:18:43]KKMCreateOFDPacket done [16:18:43]NVStorageSaveData kkm_last_timestamp [16:18:43]File name is /storage/kkm_last_timestamp [16:18:43]Write 4 bytes [16:18:43]NVStorageSaveData done [16:18:43]OFD Sender: Processing packet 156656 [packets to send 31, broken 30] [16:18:43]ProducePacketName [16:18:43]name=ofd_packets/00156656 [16:18:43]OFD Sender: To server: pG, [16:18:43]CommunicateWithHost lk.salyk.kg:30040 [16:18:43]ConnectInit lk.salyk.kg [16:18:43]ExternCall_PrintAddStr [16:18:43]wPrintStart [16:18:43]Write to MH i2c: 01 00 00 E1 6B 4C [16:18:43]Write i2c OK [16:18:43]MH_I2C_Read... [16:18:43]Read from MH i2c: 01 [16:18:43]MH_I2C_Read... [16:18:43]Read from MH i2c: 01 07 00 [16:18:43]MH_I2C_Read... [16:18:43]Read from MH i2c: 01 07 00 E1 6B 00 00 00 00 00 FF 0F 61 [16:18:43]RasterBufferAndPrint [16:18:43]line Счет N : (1)99470 [16:18:43]line ИНН: 02508201610067 [16:18:43]line Контрольно-Кассовый Чек [16:18:43]line ПРОДАЖА [16:18:43]line ТРК (МРК, ГНК) : 31 [16:18:43]line Товар: 2710124130 [16:18:43]line Аи-92-К-5 [16:18:43]line 5.980 * 66.90 [16:18:43]line = 400.06 [16:18:43]line НДС 12% НСП 1% [16:18:43]line > о реализуемом товаре [16:18:43]line ОКРУГЛЕНИЕ: -0.06 [16:18:43]line ИТОГО: 400.00 [16:18:43]line Внесено: 400.00 [16:18:43]line СДАЧА: 0.00 [16:18:43]line НСП 1% : 3.54 [16:18:43]line НДС 12% : 42.48 [16:18:43]line Наличными: 400.00 [16:18:43]line Безнал.: 0.00 [16:18:43]line Место: АЗС № 143 "Партнер Нефть" [16:18:43]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [16:18:43]line СНО: Общий режим [16:18:43]line Чек 207 27.10.2024 16:18 [16:18:43]line Смена: 537 ФФД: 1.0 [16:18:43]line ЗНМ: 0300000096 [16:18:43]line РНМ: 0000000000091693 [16:18:43]line Версия ККМ: 001 [16:18:43]line ФМ: 0000000000871792 [16:18:43]line ФД: 156656 [16:18:43]line ФПД: 268146143820909 [16:18:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T161848&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156656&fm=268146143820909&tin=02508201610067®Number=0000000000091693&sum=40000 [16:18:43]Connected sock=11 [16:18:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 87 3D 07 01 BE 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 E8 67 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F0 63 02 00 35 04 06 00 F3 E0 A3 A6 7C 6D 68 81 38 B0 2E 55 73 7A [16:18:43]written 0, free lines is 4095 [16:18:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 E6 D4 47 00 60 4B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F0 63 02 00 F4 03 04 00 57 0D 1E 67 B6 04 01 00 00 E7 AF 6C 45 E3 54 52 3E [16:18:43]CommunicateWithHost err = 0 [16:18:43]CheckOFDResponse [16:18:43]1017 (14) - 77093643461234 [16:18:43]1041 (16) - 0000000000871792 [16:18:43]1040 (4) - 156656 [16:18:43]1012 (4) - 27.10.2024 09:52 [16:18:43]1206 (1) - 0 [16:18:43]OFD Sender: Remove packet 156656 [16:18:43]ProducePacketName [16:18:43]name=ofd_packets/00156656 [16:18:43]NVStorageDeleteData [16:18:44]Write to MH i2c: 01 00 00 0C 6C 78 [16:18:44]Write i2c OK [16:18:44]MH_I2C_Read... [16:18:44]Read from MH i2c: 01 [16:18:44]MH_I2C_Read... [16:18:44]Read from MH i2c: 01 07 00 [16:18:44]MH_I2C_Read... [16:18:44]Read from MH i2c: 01 07 00 0C 6C 00 00 00 00 00 E1 0C 6C [16:18:44]RasterBufferAndPrint [16:18:44]line [16:18:44]line [16:18:44]line [16:18:44]line [16:18:44]line [16:18:44]written 0, free lines is 3303 [16:18:44]process_action close_receipt done [16:18:44]requested_data is exist [16:18:44]produce_requested_data [16:18:44]requested_item fm.sn is exist - process it [16:18:44]wFMCommunicate request_size=4 [16:18:44]MH_SAM_APDU [16:18:44]CAPDU: 80 11 00 00 [16:18:44]Write to MH i2c: E2 08 00 13 6C 80 11 00 00 00 00 00 00 F9 [16:18:44]Write i2c OK [16:18:44]MH_I2C_Read... [16:18:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:18:44]Read from MH i2c: E2 [16:18:44]MH_I2C_Read... [16:18:44]Read from MH i2c: E2 17 00 [16:18:44]MH_I2C_Read... [16:18:44]Read from MH i2c: E2 17 00 13 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 4E [16:18:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:18:44]wFMCommunicate OK [16:18:44]requested_item fd.num is exist - process it [16:18:44]SAM_PROTO_GetFieldsCounters [16:18:44]wFMCommunicate request_size=4 [16:18:44]MH_SAM_APDU [16:18:44]CAPDU: 80 13 00 00 [16:18:44]Write to MH i2c: E2 08 00 14 6C 80 13 00 00 00 00 00 00 FC [16:18:44]Write i2c OK [16:18:44]MH_I2C_Read... [16:18:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:18:44]Read from MH i2c: E2 [16:18:44]MH_I2C_Read... [16:18:44]Read from MH i2c: E2 62 00 [16:18:44]MH_I2C_Read... [16:18:44]Read from MH i2c: E2 62 00 14 6C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F0 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 FF [16:18: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F0 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:18:44]wFMCommunicate OK [16:18:44]SAM_PROTO_GetFieldsCounters done [16:18:44]requested_item shift.num is exist - process it [16:18:44]requested_item shift.opened is exist - process it [16:18:44]req_shift_opened [16:18:44]FM_GetShiftState [16:18:44]SAM_PROTO_GetShiftState [16:18:44]wFMCommunicate request_size=4 [16:18:44]MH_SAM_APDU [16:18:44]CAPDU: 80 13 01 00 [16:18:44]Write to MH i2c: E2 08 00 15 6C 80 13 01 00 00 00 00 00 FE [16:18:44]Write i2c OK [16:18:44]MH_I2C_Read... [16:18:44]OFD Sender: No OFD packet to send [16:18:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:18:44]Read from MH i2c: E2 [16:18:44]MH_I2C_Read... [16:18:44]Read from MH i2c: E2 0E 00 [16:18:44]MH_I2C_Read... [16:18:44]Read from MH i2c: E2 0E 00 15 6C 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 CB [16:18:44]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [16:18:44]wFMCommunicate OK [16:18:44]SAM_PROTO_GetShiftState done [16:18:44]FM_GetShiftState done [16:18:44]req_shift_opened done [16:18:44]requested_item shift.open_date is exist - process it [16:18:44]req_shift_open_date [16:18:44]req_shift_open_date done [16:18:44]produce_requested_data done [16:18:44]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156656,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [16:18:44]process_action_free close_receipt [16:18:44]json_value_free [16:18:44]json_value_free done [16:18:44]process_json_proto returns [16:18:44]Send response to host [16:18:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156656,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [16:18:44]free response buf [16:18:44]execute_script done [16:18:44]execute_script returns [16:18:44]free content buf [16:18:44]Sock 8.Close socket [16:18:44]Sock 8.Thread stoped [16:18:49]OFD Sender: No OFD packet to send [16:18:54]OFD Sender: No OFD packet to send [16:18:59]OFD Sender: No OFD packet to send [16:19:04]OFD Sender: No OFD packet to send [16:19:09]OFD Sender: No OFD packet to send [16:19:14]OFD Sender: No OFD packet to send [16:19:19]OFD Sender: No OFD packet to send [16:19:24]OFD Sender: No OFD packet to send [16:19:29]OFD Sender: No OFD packet to send [16:19:34]OFD Sender: No OFD packet to send [16:19:39]OFD Sender: No OFD packet to send [16:19:44]OFD Sender: No OFD packet to send [16:19:49]OFD Sender: No OFD packet to send [16:19:54]OFD Sender: No OFD packet to send [16:19:59]OFD Sender: No OFD packet to send [16:20:04]OFD Sender: No OFD packet to send [16:20:09]OFD Sender: No OFD packet to send [16:20:14]OFD Sender: No OFD packet to send [16:20:19]OFD Sender: No OFD packet to send [16:20:24]OFD Sender: No OFD packet to send [16:20:29]OFD Sender: No OFD packet to send [16:20:34]OFD Sender: No OFD packet to send [16:20:39]OFD Sender: No OFD packet to send [16:20:44]OFD Sender: No OFD packet to send [16:20:49]OFD Sender: No OFD packet to send [16:20:54]OFD Sender: No OFD packet to send [16:20:59]OFD Sender: No OFD packet to send [16:21:04]OFD Sender: No OFD packet to send [16:21:09]OFD Sender: No OFD packet to send [16:21:14]OFD Sender: No OFD packet to send [16:21:19]OFD Sender: No OFD packet to send [16:21:24]OFD Sender: No OFD packet to send [16:21:29]OFD Sender: No OFD packet to send [16:21:34]OFD Sender: No OFD packet to send [16:21:39]OFD Sender: No OFD packet to send [16:21:44]OFD Sender: No OFD packet to send [16:21:47]accept exits with 9 [16:21:47]New connection [16:21:47]New thread 3066977636 created [16:21:47]Thread 3066834276 joined [16:21:47]Waiting for new connection... [16:21:47] Sock 9.Parse request [16:21:47]Sock 9.Check first char [16:21:47]Sock 9.First char is OK [16:21:47]request: POST /json_proto HTTP/1.0 [16:21:47]Method: POST [16:21:47]URL: /json_proto [16:21:47]Method is POST - this is cgi request [16:21:47]url: /json_proto [16:21:47]query_string will be loaded in cgi processing [16:21:47]execute_cgi json_proto POST (null) [16:21:47]execute_cgi path=json_proto method=POST [16:21:47]POST find Content-Length [16:21:47]Host: 172.17.63.3:8080 [16:21:47]Content-Length: 678 [16:21:47]Content-Type: application/json [16:21:47] [16:21:47]POST finish read [16:21:47]Found Content-Length = 678 [16:21:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99471", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 52.500, "sum" : 4000.50, "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" ] } } [16:21:47]execute_script... [16:21:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99471", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 52.500, "sum" : 4000.50, "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" ] } } [16:21:47]POST & json_proto [16:21:47]process_json_proto [16:21:47]json parsed OK: [16:21:47]protocol is kg_v1.0 [16:21:47]action value=close_receipt [16:21:47]process_action close_receipt [16:21:47]cmd_close_receipt [16:21:47]MH_GetDate [16:21:47]Write to MH i2c: F0 00 00 16 6C 71 [16:21:47]Write i2c OK [16:21:47]MH_I2C_Read... [16:21:47]Read from MH i2c: F0 [16:21:47]MH_I2C_Read... [16:21:47]Read from MH i2c: F0 09 00 [16:21:47]MH_I2C_Read... [16:21:47]Read from MH i2c: F0 09 00 16 6C 00 A2 68 1E 67 50 D1 6C 64 FA [16:21:47]GetLastDocTimeStamp 1730045928 [16:21:47]current date 1730046114 [16:21:47]FM_GetShiftState [16:21:47]SAM_PROTO_GetShiftState [16:21:47]wFMCommunicate request_size=4 [16:21:47]MH_SAM_APDU [16:21:47]CAPDU: 80 13 01 00 [16:21:47]Write to MH i2c: E2 08 00 17 6C 80 13 01 00 00 00 00 00 00 [16:21:47]Write i2c OK [16:21:47]MH_I2C_Read... [16:21:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:21:47]Read from MH i2c: E2 [16:21:47]MH_I2C_Read... [16:21:47]Read from MH i2c: E2 0E 00 [16:21:47]MH_I2C_Read... [16:21:47]Read from MH i2c: E2 0E 00 17 6C 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 CD [16:21:47]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [16:21:47]wFMCommunicate OK [16:21:47]SAM_PROTO_GetShiftState done [16:21:47]FM_GetShiftState done [16:21:47]opened in 1729989044 [16:21:47]opened+sec_in_day 1730075444 [16:21:47]quantity*price = 400050 [16:21:47]sum+1 = 400051 [16:21:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 4000.00 Внесено: 4000.00 СДАЧА: 0.00 НСП 1% : 35.40 НДС 12% : 424.83 Наличными: 4000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 208 27.10.2024 16:21 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156657 ФПД: 50072855420130 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T162154&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156657&fm=50072855420130&tin=02508201610067®Number=0000000000091693&sum=400000 [16:21:49]StoreToDocumentArchive [16:21:49]shift 537 fd 156657 [16:21:49]save to /storage/0537/doc_00156657 [16:21:49]save last doc name /storage/0537/doc_00156657 to /storage/kkm_last_doc_name [16:21:49]save OK [16:21:49]Clear old archive folders... [16:21:49]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:21:49]tlvbuf is 016A3950 [16:21:49]SAM_PROTO_ClearQueue [16:21:49]wFMCommunicate request_size=4 [16:21:49]MH_SAM_APDU [16:21:49]CAPDU: 80 09 00 00 [16:21:49]Write to MH i2c: E2 08 00 24 6C 80 09 00 00 00 00 00 00 02 [16:21:49]Write i2c OK [16:21:49]MH_I2C_Read... [16:21:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:21:49]Read from MH i2c: E2 [16:21:49]MH_I2C_Read... [16:21:49]Read from MH i2c: E2 03 00 [16:21:49]MH_I2C_Read... [16:21:49]Read from MH i2c: E2 03 00 24 6C 00 90 00 04 [16:21:49]RAPDU: 90 00 [16:21:49]wFMCommunicate OK [16:21:49]SAM_PROTO_ClearQueue done [16:21:49]KKMCreateOFDPacket [16:21:49]OFDProtocolAddRootSTLVToBuf [16:21:49]FM_MakeSignedData [16:21:49]FM_MakeSignedData [16:21:49]SAM_PROTO_SignData [16:21:49]wFMCommunicate request_size=4 [16:21:49]MH_SAM_APDU [16:21:49]CAPDU: 80 0D 01 02 [16:21:49]Write to MH i2c: E2 08 00 25 6C 80 0D 01 02 00 00 00 00 0A [16:21:49]Write i2c OK [16:21:49]MH_I2C_Read... [16:21:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:21:49]Read from MH i2c: E2 [16:21:49]MH_I2C_Read... [16:21:49]Read from MH i2c: E2 03 00 [16:21:49]MH_I2C_Read... [16:21:49]Read from MH i2c: E2 03 00 25 6C 00 90 00 05 [16:21:49]RAPDU: 90 00 [16:21:49]wFMCommunicate OK [16:21:49]wFMCommunicate request_size=255 [16:21:49]MH_SAM_APDU [16:21:49]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 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 F3 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 D0 00 00 00 F4 03 04 00 A2 68 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F1 63 02 00 35 04 06 00 2D 8A 7E C2 [16:21:49]Write to MH i2c: E2 02 01 26 6C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 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 F3 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 D0 00 00 00 F4 03 04 00 A2 68 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F1 63 02 00 35 04 06 00 2D 8A 7E C2 00 00 80 [16:21:49]Write i2c OK [16:21:49]MH_I2C_Read... [16:21:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:21:49]Read from MH i2c: E2 [16:21:49]MH_I2C_Read... [16:21:49]Read from MH i2c: E2 03 00 [16:21:49]MH_I2C_Read... [16:21:49]Read from MH i2c: E2 03 00 26 6C 00 90 00 06 [16:21:49]RAPDU: 90 00 [16:21:49]wFMCommunicate OK [16:21:49]wFMCommunicate request_size=7 [16:21:49]MH_SAM_APDU [16:21:49]CAPDU: 80 0D 02 02 02 9C E2 [16:21:49]Write to MH i2c: E2 0A 00 27 6C 80 0D 02 02 02 00 9C E2 00 00 8F [16:21:49]Write i2c OK [16:21:49]MH_I2C_Read... [16:21:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:21:49]Read from MH i2c: E2 [16:21:49]MH_I2C_Read... [16:21:49]Read from MH i2c: E2 03 00 [16:21:49]MH_I2C_Read... [16:21:49]Read from MH i2c: E2 03 00 27 6C 00 90 00 07 [16:21:49]RAPDU: 90 00 [16:21:49]wFMCommunicate OK [16:21:49]wFMCommunicate request_size=4 [16:21:49]MH_SAM_APDU [16:21:49]CAPDU: 80 0D 03 02 [16:21:49]Write to MH i2c: E2 08 00 28 6C 80 0D 03 02 00 00 00 00 0F [16:21:49]Write i2c OK [16:21:49]MH_I2C_Read... [16:21:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:21:49]Read from MH i2c: E2 [16:21:49]MH_I2C_Read... [16:21:49]Read from MH i2c: E2 0B 00 [16:21:49]MH_I2C_Read... [16:21:49]Read from MH i2c: E2 0B 00 28 6C 00 39 47 58 F9 A0 5B BD B5 90 00 4E [16:21:49]RAPDU: 39 47 58 F9 A0 5B BD B5 90 00 [16:21:49]wFMCommunicate OK [16:21:49]SAM_PROTO_SignData done [16:21:49]FM_MakeSignedData done [16:21:49]CreateOFDProtocolMessage [16:21:49]wFMCommunicate request_size=4 [16:21:49]MH_SAM_APDU [16:21:49]CAPDU: 80 11 00 00 [16:21:49]Write to MH i2c: E2 08 00 29 6C 80 11 00 00 00 00 00 00 0F [16:21:49]Write i2c OK [16:21:49]MH_I2C_Read... [16:21:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:21:49]Read from MH i2c: E2 [16:21:49]MH_I2C_Read... [16:21:49]Read from MH i2c: E2 17 00 [16:21:49]MH_I2C_Read... [16:21:49]Read from MH i2c: E2 17 00 29 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 64 [16:21:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:21:49]wFMCommunicate OK [16:21:49]CreateOFDProtocolMessage done [16:21:49]OFDSenderStorePacket 156657 [16:21:49]StoreOFDPacket docnum=156657 [16:21:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 42 20 04 01 15 93 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 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 F3 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 D0 00 00 00 F4 03 04 00 A2 68 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F1 63 02 00 35 04 06 00 2D 8A 7E C2 9C E2 39 47 58 F9 A0 5B BD B5 [16:21:49]CheckFolder [16:21:49]dirname=/storage/ofd_packets [16:21:49]CheckFolder done [16:21:49]ProducePacketName [16:21:49]name=ofd_packets/00156657 [16:21:49]NVStorageSaveData ofd_packets/00156657 [16:21:49]File name is /storage/ofd_packets/00156657 [16:21:49]Write 298 bytes [16:21:49]NVStorageSaveData done [16:21:49]OFDSenderStorePacket done [16:21:49]KKMCreateOFDPacket done [16:21:49]NVStorageSaveData kkm_last_timestamp [16:21:49]File name is /storage/kkm_last_timestamp [16:21:49]Write 4 bytes [16:21:49]NVStorageSaveData done [16:21:49]ExternCall_PrintAddStr [16:21:49]wPrintStart [16:21:49]Write to MH i2c: 01 00 00 2A 6C 96 [16:21:49]Write i2c OK [16:21:49]MH_I2C_Read... [16:21:49]Read from MH i2c: 01 [16:21:49]MH_I2C_Read... [16:21:49]Read from MH i2c: 01 07 00 [16:21:49]MH_I2C_Read... [16:21:49]Read from MH i2c: 01 07 00 2A 6C 00 00 00 00 00 FF 0F AB [16:21:49]RasterBufferAndPrint [16:21:49]line Счет N : (1)99471 [16:21:49]line ИНН: 02508201610067 [16:21:49]line Контрольно-Кассовый Чек [16:21:49]line ПРОДАЖА [16:21:49]line ТРК (МРК, ГНК) : 32 [16:21:49]line Товар: 2710194210 [16:21:49]line ДТ-К-5 [16:21:49]line 52.500 * 76.20 [16:21:49]line = 4000.50 [16:21:49]line НДС 12% НСП 1% [16:21:49]line > о реализуемом товаре [16:21:49]line ОКРУГЛЕНИЕ: -0.50 [16:21:49]line ИТОГО: 4000.00 [16:21:49]line Внесено: 4000.00 [16:21:49]line СДАЧА: 0.00 [16:21:49]line НСП 1% : 35.40 [16:21:49]line НДС 12% : 424.83 [16:21:49]line Наличными: 4000.00 [16:21:49]line Безнал.: 0.00 [16:21:49]line Место: АЗС № 143 "Партнер Нефть" [16:21:49]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [16:21:49]line СНО: Общий режим [16:21:49]line Чек 208 27.10.2024 16:21 [16:21:49]line Смена: 537 ФФД: 1.0 [16:21:49]line ЗНМ: 0300000096 [16:21:49]line РНМ: 0000000000091693 [16:21:49]line Версия ККМ: 001 [16:21:49]line ФМ: 0000000000871792 [16:21:49]line ФД: 156657 [16:21:49]line ФПД: 50072855420130 [16:21:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T162154&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156657&fm=50072855420130&tin=02508201610067®Number=0000000000091693&sum=400000 [16:21:49]OFD Sender: Processing packet 156657 [packets to send 31, broken 30] [16:21:49]ProducePacketName [16:21:49]name=ofd_packets/00156657 [16:21:49]OFD Sender: To server: pG, [16:21:49]CommunicateWithHost lk.salyk.kg:30040 [16:21:49]ConnectInit lk.salyk.kg [16:21:49]written 0, free lines is 4095 [16:21:49]Connected sock=10 [16:21:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 42 20 04 01 15 93 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 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 F3 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 D0 00 00 00 F4 03 04 00 A2 68 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F1 63 02 00 35 04 06 00 2D 8A 7E C2 9C E2 39 47 58 F9 A0 5B BD B5 [16:21:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 69 5E 47 00 8C 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 31 37 39 32 10 04 04 00 F1 63 02 00 F4 03 04 00 11 0E 1E 67 B6 04 01 00 00 24 9C 93 66 97 AC 16 E3 [16:21:50]CommunicateWithHost err = 0 [16:21:50]CheckOFDResponse [16:21:50]1017 (14) - 77093643461234 [16:21:50]1041 (16) - 0000000000871792 [16:21:50]1040 (4) - 156657 [16:21:50]1012 (4) - 27.10.2024 09:55 [16:21:50]1206 (1) - 0 [16:21:50]OFD Sender: Remove packet 156657 [16:21:50]ProducePacketName [16:21:50]name=ofd_packets/00156657 [16:21:50]NVStorageDeleteData [16:21:50]Write to MH i2c: 01 00 00 55 6C C1 [16:21:50]Write i2c OK [16:21:50]MH_I2C_Read... [16:21:50]Read from MH i2c: 01 [16:21:50]MH_I2C_Read... [16:21:50]Read from MH i2c: 01 07 00 [16:21:50]MH_I2C_Read... [16:21:50]Read from MH i2c: 01 07 00 55 6C 00 00 00 00 00 D9 0C AD [16:21:50]RasterBufferAndPrint [16:21:50]line [16:21:50]line [16:21:50]line [16:21:50]line [16:21:50]line [16:21:50]written 0, free lines is 3296 [16:21:50]process_action close_receipt done [16:21:50]requested_data is exist [16:21:50]produce_requested_data [16:21:50]requested_item fm.sn is exist - process it [16:21:50]wFMCommunicate request_size=4 [16:21:50]MH_SAM_APDU [16:21:50]CAPDU: 80 11 00 00 [16:21:50]Write to MH i2c: E2 08 00 5C 6C 80 11 00 00 00 00 00 00 42 [16:21:50]Write i2c OK [16:21:50]MH_I2C_Read... [16:21:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:21:50]Read from MH i2c: E2 [16:21:50]MH_I2C_Read... [16:21:50]Read from MH i2c: E2 17 00 [16:21:50]MH_I2C_Read... [16:21:50]Read from MH i2c: E2 17 00 5C 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 97 [16:21:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:21:50]wFMCommunicate OK [16:21:50]requested_item fd.num is exist - process it [16:21:50]SAM_PROTO_GetFieldsCounters [16:21:50]wFMCommunicate request_size=4 [16:21:50]MH_SAM_APDU [16:21:50]CAPDU: 80 13 00 00 [16:21:50]Write to MH i2c: E2 08 00 5D 6C 80 13 00 00 00 00 00 00 45 [16:21:50]Write i2c OK [16:21:50]MH_I2C_Read... [16:21:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:21:50]Read from MH i2c: E2 [16:21:50]MH_I2C_Read... [16:21:50]Read from MH i2c: E2 62 00 [16:21:50]MH_I2C_Read... [16:21:50]Read from MH i2c: E2 62 00 5D 6C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F1 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 4C [16:21:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F1 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:21:50]wFMCommunicate OK [16:21:50]SAM_PROTO_GetFieldsCounters done [16:21:50]requested_item shift.num is exist - process it [16:21:50]requested_item shift.opened is exist - process it [16:21:50]req_shift_opened [16:21:50]FM_GetShiftState [16:21:50]SAM_PROTO_GetShiftState [16:21:50]wFMCommunicate request_size=4 [16:21:50]MH_SAM_APDU [16:21:50]CAPDU: 80 13 01 00 [16:21:50]Write to MH i2c: E2 08 00 5E 6C 80 13 01 00 00 00 00 00 47 [16:21:50]Write i2c OK [16:21:50]MH_I2C_Read... [16:21:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:21:50]Read from MH i2c: E2 [16:21:50]MH_I2C_Read... [16:21:50]Read from MH i2c: E2 0E 00 [16:21:50]MH_I2C_Read... [16:21:50]Read from MH i2c: E2 0E 00 5E 6C 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 14 [16:21:50]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [16:21:50]wFMCommunicate OK [16:21:50]SAM_PROTO_GetShiftState done [16:21:50]FM_GetShiftState done [16:21:50]req_shift_opened done [16:21:50]requested_item shift.open_date is exist - process it [16:21:50]req_shift_open_date [16:21:50]req_shift_open_date done [16:21:50]produce_requested_data done [16:21:50]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156657,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [16:21:50]process_action_free close_receipt [16:21:50]json_value_free [16:21:50]json_value_free done [16:21:50]process_json_proto returns [16:21:50]Send response to host [16:21:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156657,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [16:21:50]free response buf [16:21:50]execute_script done [16:21:50]execute_script returns [16:21:50]free content buf [16:21:50]Sock 9.Close socket [16:21:50]Sock 9.Thread stoped [16:21:50]OFD Sender: No OFD packet to send [16:21:55]OFD Sender: No OFD packet to send [16:22:00]OFD Sender: No OFD packet to send [16:22:05]OFD Sender: No OFD packet to send [16:22:10]OFD Sender: No OFD packet to send [16:22:15]OFD Sender: No OFD packet to send [16:22:20]OFD Sender: No OFD packet to send [16:22:25]OFD Sender: No OFD packet to send [16:22:30]OFD Sender: No OFD packet to send [16:22:35]OFD Sender: No OFD packet to send [16:22:40]OFD Sender: No OFD packet to send [16:22:45]OFD Sender: No OFD packet to send [16:22:50]OFD Sender: No OFD packet to send [16:22:55]OFD Sender: No OFD packet to send [16:23:00]OFD Sender: No OFD packet to send [16:23:05]OFD Sender: No OFD packet to send [16:23:10]OFD Sender: No OFD packet to send [16:23:15]OFD Sender: No OFD packet to send [16:23:20]OFD Sender: No OFD packet to send [16:23:25]OFD Sender: No OFD packet to send [16:23:30]OFD Sender: No OFD packet to send [16:23:35]OFD Sender: No OFD packet to send [16:23:40]OFD Sender: No OFD packet to send [16:23:45]OFD Sender: No OFD packet to send [16:23:50]OFD Sender: No OFD packet to send [16:23:55]OFD Sender: No OFD packet to send [16:24:00]OFD Sender: No OFD packet to send [16:24:05]OFD Sender: No OFD packet to send [16:24:10]OFD Sender: No OFD packet to send [16:24:15]OFD Sender: No OFD packet to send [16:24:20]OFD Sender: No OFD packet to send [16:24:25]OFD Sender: No OFD packet to send [16:24:30]OFD Sender: No OFD packet to send [16:24:35]OFD Sender: No OFD packet to send [16:24:40]OFD Sender: No OFD packet to send [16:24:45]OFD Sender: No OFD packet to send [16:24:50]OFD Sender: No OFD packet to send [16:24:55]OFD Sender: No OFD packet to send [16:25:00]OFD Sender: No OFD packet to send [16:25:05]OFD Sender: No OFD packet to send [16:25:10]OFD Sender: No OFD packet to send [16:25:15]OFD Sender: No OFD packet to send [16:25:20]OFD Sender: No OFD packet to send [16:25:25]OFD Sender: No OFD packet to send [16:25:30]OFD Sender: No OFD packet to send [16:25:35]OFD Sender: No OFD packet to send [16:25:40]OFD Sender: No OFD packet to send [16:25:45]OFD Sender: No OFD packet to send [16:25:50]OFD Sender: No OFD packet to send [16:25:55]OFD Sender: No OFD packet to send [16:26:00]OFD Sender: No OFD packet to send [16:26:05]OFD Sender: No OFD packet to send [16:26:10]OFD Sender: No OFD packet to send [16:26:15]OFD Sender: No OFD packet to send [16:26:20]OFD Sender: No OFD packet to send [16:26:25]OFD Sender: No OFD packet to send [16:26:30]OFD Sender: No OFD packet to send [16:26:35]OFD Sender: No OFD packet to send [16:26:40]OFD Sender: No OFD packet to send [16:26:45]OFD Sender: No OFD packet to send [16:26:50]OFD Sender: No OFD packet to send [16:26:55]OFD Sender: No OFD packet to send [16:27:00]OFD Sender: No OFD packet to send [16:27:05]OFD Sender: No OFD packet to send [16:27:10]OFD Sender: No OFD packet to send [16:27:15]OFD Sender: No OFD packet to send [16:27:20]OFD Sender: No OFD packet to send [16:27:25]OFD Sender: No OFD packet to send [16:27:31]OFD Sender: No OFD packet to send [16:27:36]OFD Sender: No OFD packet to send [16:27:41]OFD Sender: No OFD packet to send [16:27:46]OFD Sender: No OFD packet to send [16:27:51]OFD Sender: No OFD packet to send [16:27:56]OFD Sender: No OFD packet to send [16:28:01]OFD Sender: No OFD packet to send [16:28:06]OFD Sender: No OFD packet to send [16:28:11]OFD Sender: No OFD packet to send [16:28:16]OFD Sender: No OFD packet to send [16:28:21]OFD Sender: No OFD packet to send [16:28:26]OFD Sender: No OFD packet to send [16:28:31]OFD Sender: No OFD packet to send [16:28:36]OFD Sender: No OFD packet to send [16:28:41]OFD Sender: No OFD packet to send [16:28:46]OFD Sender: No OFD packet to send [16:28:51]OFD Sender: No OFD packet to send [16:28:56]OFD Sender: No OFD packet to send [16:29:01]OFD Sender: No OFD packet to send [16:29:06]OFD Sender: No OFD packet to send [16:29:11]OFD Sender: No OFD packet to send [16:29:14]accept exits with 8 [16:29:14]New connection [16:29:14]New thread 3066834276 created [16:29:14]Thread 3066977636 joined [16:29:14]Waiting for new connection... [16:29:14] Sock 8.Parse request [16:29:14]Sock 8.Check first char [16:29:14]Sock 8.First char is OK [16:29:14]request: POST /json_proto HTTP/1.0 [16:29:14]Method: POST [16:29:14]URL: /json_proto [16:29:14]Method is POST - this is cgi request [16:29:14]url: /json_proto [16:29:14]query_string will be loaded in cgi processing [16:29:14]execute_cgi json_proto POST (null) [16:29:14]execute_cgi path=json_proto method=POST [16:29:14]POST find Content-Length [16:29:14]Host: 172.17.63.3:8080 [16:29:14]Content-Length: 677 [16:29:14]Content-Type: application/json [16:29:14] [16:29:14]POST finish read [16:29:14]Found Content-Length = 677 [16:29:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99472", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "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:29:14]execute_script... [16:29: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)99472", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "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:29:14]POST & json_proto [16:29:14]process_json_proto [16:29:14]json parsed OK: [16:29:14]protocol is kg_v1.0 [16:29:14]action value=close_receipt [16:29:14]process_action close_receipt [16:29:14]cmd_close_receipt [16:29:14]MH_GetDate [16:29:14]Write to MH i2c: F0 00 00 5F 6C BA [16:29:14]Write i2c OK [16:29:14]MH_I2C_Read... [16:29:14]Read from MH i2c: F0 [16:29:14]MH_I2C_Read... [16:29:14]Read from MH i2c: F0 09 00 [16:29:14]MH_I2C_Read... [16:29:14]Read from MH i2c: F0 09 00 5F 6C 00 61 6A 1E 67 50 D1 6C 64 04 [16:29:14]GetLastDocTimeStamp 1730046114 [16:29:14]current date 1730046561 [16:29:14]FM_GetShiftState [16:29:14]SAM_PROTO_GetShiftState [16:29:14]wFMCommunicate request_size=4 [16:29:14]MH_SAM_APDU [16:29:14]CAPDU: 80 13 01 00 [16:29:14]Write to MH i2c: E2 08 00 60 6C 80 13 01 00 00 00 00 00 49 [16:29:14]Write i2c OK [16:29:14]MH_I2C_Read... [16:29:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:29:14]Read from MH i2c: E2 [16:29:14]MH_I2C_Read... [16:29:14]Read from MH i2c: E2 0E 00 [16:29:14]MH_I2C_Read... [16:29:14]Read from MH i2c: E2 0E 00 60 6C 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 16 [16:29:14]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [16:29:14]wFMCommunicate OK [16:29:14]SAM_PROTO_GetShiftState done [16:29:14]FM_GetShiftState done [16:29:14]opened in 1729989044 [16:29:14]opened+sec_in_day 1730075444 [16:29:14]quantity*price = 80012 [16:29:14]sum+1 = 80013 [16:29:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 209 27.10.2024 16:29 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156658 ФПД: 66145377006726 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T162921&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156658&fm=66145377006726&tin=02508201610067®Number=0000000000091693&sum=80000 [16:29:15]StoreToDocumentArchive [16:29:15]shift 537 fd 156658 [16:29:15]save to /storage/0537/doc_00156658 [16:29:15]save last doc name /storage/0537/doc_00156658 to /storage/kkm_last_doc_name [16:29:15]save OK [16:29:15]Clear old archive folders... [16:29:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:29:15]tlvbuf is 018071F0 [16:29:15]SAM_PROTO_ClearQueue [16:29:15]wFMCommunicate request_size=4 [16:29:15]MH_SAM_APDU [16:29:15]CAPDU: 80 09 00 00 [16:29:15]Write to MH i2c: E2 08 00 6D 6C 80 09 00 00 00 00 00 00 4B [16:29:15]Write i2c OK [16:29:15]MH_I2C_Read... [16:29:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:29:15]Read from MH i2c: E2 [16:29:15]MH_I2C_Read... [16:29:15]Read from MH i2c: E2 03 00 [16:29:15]MH_I2C_Read... [16:29:15]Read from MH i2c: E2 03 00 6D 6C 00 90 00 4D [16:29:15]RAPDU: 90 00 [16:29:15]wFMCommunicate OK [16:29:15]SAM_PROTO_ClearQueue done [16:29:15]KKMCreateOFDPacket [16:29:15]OFDProtocolAddRootSTLVToBuf [16:29:15]FM_MakeSignedData [16:29:15]FM_MakeSignedData [16:29:15]SAM_PROTO_SignData [16:29:15]wFMCommunicate request_size=4 [16:29:15]MH_SAM_APDU [16:29:15]CAPDU: 80 0D 01 02 [16:29:15]Write to MH i2c: E2 08 00 6E 6C 80 0D 01 02 00 00 00 00 53 [16:29:15]Write i2c OK [16:29:15]MH_I2C_Read... [16:29:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:29:15]Read from MH i2c: E2 [16:29:15]MH_I2C_Read... [16:29:15]Read from MH i2c: E2 03 00 [16:29:15]MH_I2C_Read... [16:29:15]Read from MH i2c: E2 03 00 6E 6C 00 90 00 4E [16:29:15]RAPDU: 90 00 [16:29:15]wFMCommunicate OK [16:29:15]wFMCommunicate request_size=255 [16:29:15]MH_SAM_APDU [16:29: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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 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 D1 00 00 00 F4 03 04 00 61 6A 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F2 63 02 00 35 04 06 00 3C [16:29:15]Write to MH i2c: E2 02 01 6F 6C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 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 D1 00 00 00 F4 03 04 00 61 6A 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F2 63 02 00 35 04 06 00 3C 00 00 A2 [16:29:15]Write i2c OK [16:29:15]MH_I2C_Read... [16:29:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:29:16]Read from MH i2c: E2 [16:29:16]MH_I2C_Read... [16:29:16]Read from MH i2c: E2 03 00 [16:29:16]MH_I2C_Read... [16:29:16]Read from MH i2c: E2 03 00 6F 6C 00 90 00 4F [16:29:16]RAPDU: 90 00 [16:29:16]wFMCommunicate OK [16:29:16]wFMCommunicate request_size=10 [16:29:16]MH_SAM_APDU [16:29:16]CAPDU: 80 0D 02 02 05 28 AB B3 34 86 [16:29:16]Write to MH i2c: E2 0D 00 70 6C 80 0D 02 02 05 00 28 AB B3 34 86 00 00 A0 [16:29:16]Write i2c OK [16:29:16]MH_I2C_Read... [16:29:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:29:16]Read from MH i2c: E2 [16:29:16]MH_I2C_Read... [16:29:16]Read from MH i2c: E2 03 00 [16:29:16]MH_I2C_Read... [16:29:16]Read from MH i2c: E2 03 00 70 6C 00 90 00 50 [16:29:16]RAPDU: 90 00 [16:29:16]wFMCommunicate OK [16:29:16]wFMCommunicate request_size=4 [16:29:16]MH_SAM_APDU [16:29:16]CAPDU: 80 0D 03 02 [16:29:16]Write to MH i2c: E2 08 00 71 6C 80 0D 03 02 00 00 00 00 58 [16:29:16]Write i2c OK [16:29:16]MH_I2C_Read... [16:29:16]OFD Sender: No OFD packet to send [16:29:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:29:16]Read from MH i2c: E2 [16:29:16]MH_I2C_Read... [16:29:16]Read from MH i2c: E2 0B 00 [16:29:16]MH_I2C_Read... [16:29:16]Read from MH i2c: E2 0B 00 71 6C 00 C1 CA 80 7F 77 10 31 31 90 00 CC [16:29:16]RAPDU: C1 CA 80 7F 77 10 31 31 90 00 [16:29:16]wFMCommunicate OK [16:29:16]SAM_PROTO_SignData done [16:29:16]FM_MakeSignedData done [16:29:16]CreateOFDProtocolMessage [16:29:16]wFMCommunicate request_size=4 [16:29:16]MH_SAM_APDU [16:29:16]CAPDU: 80 11 00 00 [16:29:16]Write to MH i2c: E2 08 00 72 6C 80 11 00 00 00 00 00 00 58 [16:29:16]Write i2c OK [16:29:16]MH_I2C_Read... [16:29:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:29:16]Read from MH i2c: E2 [16:29:16]MH_I2C_Read... [16:29:16]Read from MH i2c: E2 17 00 [16:29:16]MH_I2C_Read... [16:29:16]Read from MH i2c: E2 17 00 72 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 AD [16:29:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:29:16]wFMCommunicate OK [16:29:16]CreateOFDProtocolMessage done [16:29:16]OFDSenderStorePacket 156658 [16:29:16]StoreOFDPacket docnum=156658 [16:29:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 0B 03 07 01 F0 B5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 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 D1 00 00 00 F4 03 04 00 61 6A 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F2 63 02 00 35 04 06 00 3C 28 AB B3 34 86 C1 CA 80 7F 77 10 31 31 [16:29:16]CheckFolder [16:29:16]dirname=/storage/ofd_packets [16:29:16]CheckFolder done [16:29:16]ProducePacketName [16:29:16]name=ofd_packets/00156658 [16:29:16]NVStorageSaveData ofd_packets/00156658 [16:29:16]File name is /storage/ofd_packets/00156658 [16:29:16]Write 301 bytes [16:29:16]NVStorageSaveData done [16:29:16]OFDSenderStorePacket done [16:29:16]KKMCreateOFDPacket done [16:29:16]NVStorageSaveData kkm_last_timestamp [16:29:16]File name is /storage/kkm_last_timestamp [16:29:16]Write 4 bytes [16:29:16]NVStorageSaveData done [16:29:16]ExternCall_PrintAddStr [16:29:16]wPrintStart [16:29:16]Write to MH i2c: 01 00 00 73 6C DF [16:29:16]Write i2c OK [16:29:16]MH_I2C_Read... [16:29:16]Read from MH i2c: 01 [16:29:16]MH_I2C_Read... [16:29:16]Read from MH i2c: 01 07 00 [16:29:16]MH_I2C_Read... [16:29:16]Read from MH i2c: 01 07 00 73 6C 00 00 00 00 00 FF 0F F4 [16:29:16]RasterBufferAndPrint [16:29:16]line Счет N : (1)99472 [16:29:16]line ИНН: 02508201610067 [16:29:16]line Контрольно-Кассовый Чек [16:29:16]line ПРОДАЖА [16:29:16]line ТРК (МРК, ГНК) : 11 [16:29:16]line Товар: 2710124130 [16:29:16]line Аи-92-К-5 [16:29:16]line 11.960 * 66.90 [16:29:16]line = 800.12 [16:29:16]line НДС 12% НСП 1% [16:29:16]line > о реализуемом товаре [16:29:16]line ОКРУГЛЕНИЕ: -0.12 [16:29:16]line ИТОГО: 800.00 [16:29:16]line Внесено: 800.00 [16:29:16]line СДАЧА: 0.00 [16:29:16]line НСП 1% : 7.08 [16:29:16]line НДС 12% : 84.97 [16:29:16]line Наличными: 800.00 [16:29:16]line Безнал.: 0.00 [16:29:16]line Место: АЗС № 143 "Партнер Нефть" [16:29:16]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [16:29:16]line СНО: Общий режим [16:29:16]line Чек 209 27.10.2024 16:29 [16:29:16]line Смена: 537 ФФД: 1.0 [16:29:16]line ЗНМ: 0300000096 [16:29:16]line РНМ: 0000000000091693 [16:29:16]line Версия ККМ: 001 [16:29:16]line ФМ: 0000000000871792 [16:29:16]line ФД: 156658 [16:29:16]line ФПД: 66145377006726 [16:29:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T162921&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156658&fm=66145377006726&tin=02508201610067®Number=0000000000091693&sum=80000 [16:29:16]OFD Sender: Processing packet 156658 [packets to send 31, broken 30] [16:29:16]ProducePacketName [16:29:16]name=ofd_packets/00156658 [16:29:16]OFD Sender: To server: pG, [16:29:16]CommunicateWithHost lk.salyk.kg:30040 [16:29:16]ConnectInit lk.salyk.kg [16:29:16]written 0, free lines is 4095 [16:29:16]Connected sock=11 [16:29:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 0B 03 07 01 F0 B5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 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 D1 00 00 00 F4 03 04 00 61 6A 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F2 63 02 00 35 04 06 00 3C 28 AB B3 34 86 C1 CA 80 7F 77 10 31 31 [16:29:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 AA 0E 47 00 C4 C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F2 63 02 00 F4 03 04 00 D0 0F 1E 67 B6 04 01 00 00 AB 46 95 2A A9 B7 4A 01 [16:29:16]CommunicateWithHost err = 0 [16:29:16]CheckOFDResponse [16:29:16]1017 (14) - 77093643461234 [16:29:16]1041 (16) - 0000000000871792 [16:29:16]1040 (4) - 156658 [16:29:16]1012 (4) - 27.10.2024 10:02 [16:29:16]1206 (1) - 0 [16:29:16]OFD Sender: Remove packet 156658 [16:29:16]ProducePacketName [16:29:16]name=ofd_packets/00156658 [16:29:16]NVStorageDeleteData [16:29:16]Write to MH i2c: 01 00 00 9E 6C 0A [16:29:16]Write i2c OK [16:29:16]MH_I2C_Read... [16:29:16]Read from MH i2c: 01 [16:29:16]MH_I2C_Read... [16:29:16]Read from MH i2c: 01 07 00 [16:29:16]MH_I2C_Read... [16:29:16]Read from MH i2c: 01 07 00 9E 6C 00 00 00 00 00 D8 0C F5 [16:29:16]RasterBufferAndPrint [16:29:16]line [16:29:16]line [16:29:16]line [16:29:16]line [16:29:16]line [16:29:16]written 0, free lines is 3296 [16:29:16]process_action close_receipt done [16:29:16]requested_data is exist [16:29:16]produce_requested_data [16:29:16]requested_item fm.sn is exist - process it [16:29:16]wFMCommunicate request_size=4 [16:29:16]MH_SAM_APDU [16:29:16]CAPDU: 80 11 00 00 [16:29:16]Write to MH i2c: E2 08 00 A5 6C 80 11 00 00 00 00 00 00 8B [16:29:16]Write i2c OK [16:29:16]MH_I2C_Read... [16:29:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:29:17]Read from MH i2c: E2 [16:29:17]MH_I2C_Read... [16:29:17]Read from MH i2c: E2 17 00 [16:29:17]MH_I2C_Read... [16:29:17]Read from MH i2c: E2 17 00 A5 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 E0 [16:29:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:29:17]wFMCommunicate OK [16:29:17]requested_item fd.num is exist - process it [16:29:17]SAM_PROTO_GetFieldsCounters [16:29:17]wFMCommunicate request_size=4 [16:29:17]MH_SAM_APDU [16:29:17]CAPDU: 80 13 00 00 [16:29:17]Write to MH i2c: E2 08 00 A6 6C 80 13 00 00 00 00 00 00 8E [16:29:17]Write i2c OK [16:29:17]MH_I2C_Read... [16:29:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:29:17]Read from MH i2c: E2 [16:29:17]MH_I2C_Read... [16:29:17]Read from MH i2c: E2 62 00 [16:29:17]MH_I2C_Read... [16:29:17]Read from MH i2c: E2 62 00 A6 6C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F2 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 99 [16:29:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F2 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:29:17]wFMCommunicate OK [16:29:17]SAM_PROTO_GetFieldsCounters done [16:29:17]requested_item shift.num is exist - process it [16:29:17]requested_item shift.opened is exist - process it [16:29:17]req_shift_opened [16:29:17]FM_GetShiftState [16:29:17]SAM_PROTO_GetShiftState [16:29:17]wFMCommunicate request_size=4 [16:29:17]MH_SAM_APDU [16:29:17]CAPDU: 80 13 01 00 [16:29:17]Write to MH i2c: E2 08 00 A7 6C 80 13 01 00 00 00 00 00 90 [16:29:17]Write i2c OK [16:29:17]MH_I2C_Read... [16:29:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:29:17]Read from MH i2c: E2 [16:29:17]MH_I2C_Read... [16:29:17]Read from MH i2c: E2 0E 00 [16:29:17]MH_I2C_Read... [16:29:17]Read from MH i2c: E2 0E 00 A7 6C 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 5D [16:29:17]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [16:29:17]wFMCommunicate OK [16:29:17]SAM_PROTO_GetShiftState done [16:29:17]FM_GetShiftState done [16:29:17]req_shift_opened done [16:29:17]requested_item shift.open_date is exist - process it [16:29:17]req_shift_open_date [16:29:17]req_shift_open_date done [16:29:17]produce_requested_data done [16:29:17]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156658,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [16:29:17]process_action_free close_receipt [16:29:17]json_value_free [16:29:17]json_value_free done [16:29:17]process_json_proto returns [16:29:17]Send response to host [16:29:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156658,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [16:29:17]free response buf [16:29:17]execute_script done [16:29:17]execute_script returns [16:29:17]free content buf [16:29:17]Sock 8.Close socket [16:29:17]Sock 8.Thread stoped [16:29:17]OFD Sender: No OFD packet to send [16:29:20]accept exits with 9 [16:29:20]New connection [16:29:20]New thread 3066977636 created [16:29:20]Thread 3066834276 joined [16:29:20]Waiting for new connection... [16:29:20] Sock 9.Parse request [16:29:20]Sock 9.Check first char [16:29:20]Sock 9.First char is OK [16:29:20]request: POST /json_proto HTTP/1.0 [16:29:20]Method: POST [16:29:20]URL: /json_proto [16:29:20]Method is POST - this is cgi request [16:29:20]url: /json_proto [16:29:20]query_string will be loaded in cgi processing [16:29:20]execute_cgi json_proto POST (null) [16:29:20]execute_cgi path=json_proto method=POST [16:29:20]POST find Content-Length [16:29:20]Host: 172.17.63.3:8080 [16:29:20]Content-Length: 676 [16:29:20]Content-Type: application/json [16:29:20] [16:29:20]POST finish read [16:29:20]Found Content-Length = 676 [16:29:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99473", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:29:20]execute_script... [16: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)99473", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:29:20]POST & json_proto [16:29:20]process_json_proto [16:29:20]json parsed OK: [16:29:20]protocol is kg_v1.0 [16:29:20]action value=close_receipt [16:29:20]process_action close_receipt [16:29:20]cmd_close_receipt [16:29:20]MH_GetDate [16:29:20]Write to MH i2c: F0 00 00 A8 6C 03 [16:29:20]Write i2c OK [16:29:20]MH_I2C_Read... [16:29:20]Read from MH i2c: F0 [16:29:20]MH_I2C_Read... [16:29:20]Read from MH i2c: F0 09 00 [16:29:20]MH_I2C_Read... [16:29:21]Read from MH i2c: F0 09 00 A8 6C 00 67 6A 1E 67 50 D1 6C 64 53 [16:29:21]GetLastDocTimeStamp 1730046561 [16:29:21]current date 1730046567 [16:29:21]FM_GetShiftState [16:29:21]SAM_PROTO_GetShiftState [16:29:21]wFMCommunicate request_size=4 [16:29:21]MH_SAM_APDU [16:29:21]CAPDU: 80 13 01 00 [16:29:21]Write to MH i2c: E2 08 00 A9 6C 80 13 01 00 00 00 00 00 92 [16:29:21]Write i2c OK [16:29:21]MH_I2C_Read... [16:29:21]Read from MH i2c: E2 [16:29:21]MH_I2C_Read... [16:29:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:29:21]Read from MH i2c: E2 0E 00 [16:29:21]MH_I2C_Read... [16:29:21]Read from MH i2c: E2 0E 00 A9 6C 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 5F [16:29:21]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [16:29:21]wFMCommunicate OK [16:29:21]SAM_PROTO_GetShiftState done [16:29:21]FM_GetShiftState done [16:29:21]opened in 1729989044 [16:29:21]opened+sec_in_day 1730075444 [16:29:21]quantity*price = 40006 [16:29:21]sum+1 = 40007 [16:29:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 210 27.10.2024 16:29 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156659 ФПД: 170476090768688 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T162927&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156659&fm=170476090768688&tin=02508201610067®Number=0000000000091693&sum=40000 [16:29:22]StoreToDocumentArchive [16:29:22]shift 537 fd 156659 [16:29:22]save to /storage/0537/doc_00156659 [16:29:22]save last doc name /storage/0537/doc_00156659 to /storage/kkm_last_doc_name [16:29:22]save OK [16:29:22]Clear old archive folders... [16:29:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:29:22]tlvbuf is 01807570 [16:29:22]SAM_PROTO_ClearQueue [16:29:22]wFMCommunicate request_size=4 [16:29:22]MH_SAM_APDU [16:29:22]CAPDU: 80 09 00 00 [16:29:22]Write to MH i2c: E2 08 00 B6 6C 80 09 00 00 00 00 00 00 94 [16:29:22]Write i2c OK [16:29:22]MH_I2C_Read... [16:29:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:29:22]Read from MH i2c: E2 [16:29:22]MH_I2C_Read... [16:29:22]Read from MH i2c: E2 03 00 [16:29:22]MH_I2C_Read... [16:29:22]Read from MH i2c: E2 03 00 B6 6C 00 90 00 96 [16:29:22]RAPDU: 90 00 [16:29:22]wFMCommunicate OK [16:29:22]SAM_PROTO_ClearQueue done [16:29:22]KKMCreateOFDPacket [16:29:22]OFDProtocolAddRootSTLVToBuf [16:29:22]FM_MakeSignedData [16:29:22]FM_MakeSignedData [16:29:22]SAM_PROTO_SignData [16:29:22]wFMCommunicate request_size=4 [16:29:22]MH_SAM_APDU [16:29:22]CAPDU: 80 0D 01 02 [16:29:22]Write to MH i2c: E2 08 00 B7 6C 80 0D 01 02 00 00 00 00 9C [16:29:22]Write i2c OK [16:29:22]MH_I2C_Read... [16:29:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:29:22]Read from MH i2c: E2 [16:29:22]MH_I2C_Read... [16:29:22]Read from MH i2c: E2 03 00 [16:29:22]MH_I2C_Read... [16:29:22]Read from MH i2c: E2 03 00 B7 6C 00 90 00 97 [16:29:22]RAPDU: 90 00 [16:29:22]wFMCommunicate OK [16:29:22]wFMCommunicate request_size=255 [16:29:22]MH_SAM_APDU [16:29: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 67 6A 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F3 63 02 00 35 04 06 00 9B [16:29:22]Write to MH i2c: E2 02 01 B8 6C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 67 6A 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F3 63 02 00 35 04 06 00 9B 00 00 35 [16:29:22]Write i2c OK [16:29:22]MH_I2C_Read... [16:29:22]OFD Sender: No OFD packet to send [16:29:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:29:22]Read from MH i2c: E2 [16:29:22]MH_I2C_Read... [16:29:22]Read from MH i2c: E2 03 00 [16:29:22]MH_I2C_Read... [16:29:22]Read from MH i2c: E2 03 00 B8 6C 00 90 00 98 [16:29:22]RAPDU: 90 00 [16:29:22]wFMCommunicate OK [16:29:22]wFMCommunicate request_size=10 [16:29:22]MH_SAM_APDU [16:29:22]CAPDU: 80 0D 02 02 05 0C 0E D5 3D 30 [16:29:22]Write to MH i2c: E2 0D 00 B9 6C 80 0D 02 02 05 00 0C 0E D5 3D 30 00 00 05 [16:29:22]Write i2c OK [16:29:22]MH_I2C_Read... [16:29:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:29:22]Read from MH i2c: E2 [16:29:22]MH_I2C_Read... [16:29:22]Read from MH i2c: E2 03 00 [16:29:22]MH_I2C_Read... [16:29:22]Read from MH i2c: E2 03 00 B9 6C 00 90 00 99 [16:29:22]RAPDU: 90 00 [16:29:22]wFMCommunicate OK [16:29:22]wFMCommunicate request_size=4 [16:29:22]MH_SAM_APDU [16:29:22]CAPDU: 80 0D 03 02 [16:29:22]Write to MH i2c: E2 08 00 BA 6C 80 0D 03 02 00 00 00 00 A1 [16:29:22]Write i2c OK [16:29:22]MH_I2C_Read... [16:29:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:29:22]Read from MH i2c: E2 [16:29:22]MH_I2C_Read... [16:29:22]Read from MH i2c: E2 0B 00 [16:29:22]MH_I2C_Read... [16:29:22]Read from MH i2c: E2 0B 00 BA 6C 00 7D E4 C6 CC A3 08 BC D4 90 00 D0 [16:29:22]RAPDU: 7D E4 C6 CC A3 08 BC D4 90 00 [16:29:22]wFMCommunicate OK [16:29:22]SAM_PROTO_SignData done [16:29:22]FM_MakeSignedData done [16:29:22]CreateOFDProtocolMessage [16:29:22]wFMCommunicate request_size=4 [16:29:22]MH_SAM_APDU [16:29:22]CAPDU: 80 11 00 00 [16:29:22]Write to MH i2c: E2 08 00 BB 6C 80 11 00 00 00 00 00 00 A1 [16:29:22]Write i2c OK [16:29:22]MH_I2C_Read... [16:29:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:29:22]Read from MH i2c: E2 [16:29:22]MH_I2C_Read... [16:29:22]Read from MH i2c: E2 17 00 [16:29:22]MH_I2C_Read... [16:29:22]Read from MH i2c: E2 17 00 BB 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 F6 [16:29:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:29:22]wFMCommunicate OK [16:29:22]CreateOFDProtocolMessage done [16:29:22]OFDSenderStorePacket 156659 [16:29:22]StoreOFDPacket docnum=156659 [16:29:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 10 DE 07 01 46 D7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 67 6A 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F3 63 02 00 35 04 06 00 9B 0C 0E D5 3D 30 7D E4 C6 CC A3 08 BC D4 [16:29:22]CheckFolder [16:29:22]dirname=/storage/ofd_packets [16:29:22]CheckFolder done [16:29:22]ProducePacketName [16:29:22]name=ofd_packets/00156659 [16:29:22]NVStorageSaveData ofd_packets/00156659 [16:29:22]File name is /storage/ofd_packets/00156659 [16:29:22]Write 301 bytes [16:29:22]NVStorageSaveData done [16:29:22]OFDSenderStorePacket done [16:29:22]KKMCreateOFDPacket done [16:29:22]NVStorageSaveData kkm_last_timestamp [16:29:22]File name is /storage/kkm_last_timestamp [16:29:22]Write 4 bytes [16:29:22]NVStorageSaveData done [16:29:22]ExternCall_PrintAddStr [16:29:22]wPrintStart [16:29:22]Write to MH i2c: 01 00 00 BC 6C 28 [16:29:22]Write i2c OK [16:29:22]MH_I2C_Read... [16:29:22]Read from MH i2c: 01 [16:29:22]MH_I2C_Read... [16:29:22]Read from MH i2c: 01 07 00 [16:29:22]MH_I2C_Read... [16:29:22]Read from MH i2c: 01 07 00 BC 6C 00 00 00 00 00 FF 0F 3D [16:29:22]RasterBufferAndPrint [16:29:22]line Счет N : (1)99473 [16:29:22]line ИНН: 02508201610067 [16:29:22]line Контрольно-Кассовый Чек [16:29:22]line ПРОДАЖА [16:29:22]line ТРК (МРК, ГНК) : 21 [16:29:22]line Товар: 2710124130 [16:29:22]line Аи-92-К-5 [16:29:22]line 5.980 * 66.90 [16:29:22]line = 400.06 [16:29:22]line НДС 12% НСП 1% [16:29:22]line > о реализуемом товаре [16:29:22]line ОКРУГЛЕНИЕ: -0.06 [16:29:22]line ИТОГО: 400.00 [16:29:22]line Внесено: 400.00 [16:29:22]line СДАЧА: 0.00 [16:29:22]line НСП 1% : 3.54 [16:29:22]line НДС 12% : 42.48 [16:29:22]line Наличными: 400.00 [16:29:22]line Безнал.: 0.00 [16:29:22]line Место: АЗС № 143 "Партнер Нефть" [16:29:22]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [16:29:22]line СНО: Общий режим [16:29:22]line Чек 210 27.10.2024 16:29 [16:29:22]line Смена: 537 ФФД: 1.0 [16:29:22]line ЗНМ: 0300000096 [16:29:22]line РНМ: 0000000000091693 [16:29:22]line Версия ККМ: 001 [16:29:22]line ФМ: 0000000000871792 [16:29:22]line ФД: 156659 [16:29:22]line ФПД: 170476090768688 [16:29:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T162927&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156659&fm=170476090768688&tin=02508201610067®Number=0000000000091693&sum=40000 [16:29:22]written 0, free lines is 4095 [16:29:22]OFD Sender: Processing packet 156659 [packets to send 31, broken 30] [16:29:22]ProducePacketName [16:29:22]name=ofd_packets/00156659 [16:29:22]OFD Sender: To server: pG, [16:29:22]CommunicateWithHost lk.salyk.kg:30040 [16:29:22]ConnectInit lk.salyk.kg [16:29:22]Connected sock=10 [16: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 31 37 39 32 0F 01 00 00 10 DE 07 01 46 D7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D2 00 00 00 F4 03 04 00 67 6A 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F3 63 02 00 35 04 06 00 9B 0C 0E D5 3D 30 7D E4 C6 CC A3 08 BC D4 [16:29:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 A1 0C 47 00 9F 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 31 37 39 32 10 04 04 00 F3 63 02 00 F4 03 04 00 D6 0F 1E 67 B6 04 01 00 00 30 84 0A AC 0E 98 A7 97 [16:29:23]CommunicateWithHost err = 0 [16:29:23]CheckOFDResponse [16:29:23]1017 (14) - 77093643461234 [16:29:23]1041 (16) - 0000000000871792 [16:29:23]1040 (4) - 156659 [16:29:23]1012 (4) - 27.10.2024 10:03 [16:29:23]1206 (1) - 0 [16:29:23]OFD Sender: Remove packet 156659 [16:29:23]ProducePacketName [16:29:23]name=ofd_packets/00156659 [16:29:23]NVStorageDeleteData [16:29:23]Write to MH i2c: 01 00 00 E7 6C 53 [16:29:23]Write i2c OK [16:29:23]MH_I2C_Read... [16:29:23]Read from MH i2c: 01 [16:29:23]MH_I2C_Read... [16:29:23]Read from MH i2c: 01 07 00 [16:29:23]MH_I2C_Read... [16:29:23]Read from MH i2c: 01 07 00 E7 6C 00 00 00 00 00 E0 0C 46 [16:29:23]RasterBufferAndPrint [16:29:23]line [16:29:23]line [16:29:23]line [16:29:23]line [16:29:23]line [16:29:23]written 0, free lines is 3305 [16:29:23]process_action close_receipt done [16:29:23]requested_data is exist [16:29:23]produce_requested_data [16:29:23]requested_item fm.sn is exist - process it [16:29:23]wFMCommunicate request_size=4 [16:29:23]MH_SAM_APDU [16:29:23]CAPDU: 80 11 00 00 [16:29:23]Write to MH i2c: E2 08 00 EE 6C 80 11 00 00 00 00 00 00 D4 [16:29:23]Write i2c OK [16:29:23]MH_I2C_Read... [16:29:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:29:23]Read from MH i2c: E2 [16:29:23]MH_I2C_Read... [16:29:23]Read from MH i2c: E2 17 00 [16:29:23]MH_I2C_Read... [16:29:23]Read from MH i2c: E2 17 00 EE 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 29 [16:29:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:29:23]wFMCommunicate OK [16:29:23]requested_item fd.num is exist - process it [16:29:23]SAM_PROTO_GetFieldsCounters [16:29:23]wFMCommunicate request_size=4 [16:29:23]MH_SAM_APDU [16:29:23]CAPDU: 80 13 00 00 [16:29:23]Write to MH i2c: E2 08 00 EF 6C 80 13 00 00 00 00 00 00 D7 [16:29:23]Write i2c OK [16:29:23]MH_I2C_Read... [16:29:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:29:23]Read from MH i2c: E2 [16:29:23]MH_I2C_Read... [16:29:23]Read from MH i2c: E2 62 00 [16:29:23]MH_I2C_Read... [16:29:23]Read from MH i2c: E2 62 00 EF 6C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F3 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 E6 [16:29:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F3 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:29:23]wFMCommunicate OK [16:29:23]SAM_PROTO_GetFieldsCounters done [16:29:23]requested_item shift.num is exist - process it [16:29:23]requested_item shift.opened is exist - process it [16:29:23]req_shift_opened [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 F0 6C 80 13 01 00 00 00 00 00 D9 [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 F0 6C 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 A6 [16:29:23]RAPDU: 09 00 01 B4 89 1D 67 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]req_shift_opened done [16:29:23]requested_item shift.open_date is exist - process it [16:29:23]req_shift_open_date [16:29:23]req_shift_open_date done [16:29:23]produce_requested_data done [16:29:23]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156659,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [16:29:23]process_action_free close_receipt [16:29:23]json_value_free [16:29:23]json_value_free done [16:29:23]process_json_proto returns [16:29:23]Send response to host [16:29:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156659,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [16:29:23]free response buf [16:29:23]execute_script done [16:29:23]execute_script returns [16:29:23]free content buf [16:29:23]Sock 9.Close socket [16:29:23]Sock 9.Thread stoped [16:29:23]OFD Sender: No OFD packet to send [16:29:28]OFD Sender: No OFD packet to send [16:29:33]OFD Sender: No OFD packet to send [16:29:38]OFD Sender: No OFD packet to send [16:29:43]OFD Sender: No OFD packet to send [16:29:48]OFD Sender: No OFD packet to send [16:29:53]OFD Sender: No OFD packet to send [16:29:58]OFD Sender: No OFD packet to send [16:30:03]OFD Sender: No OFD packet to send [16:30:08]OFD Sender: No OFD packet to send [16:30:13]OFD Sender: No OFD packet to send [16:30:18]OFD Sender: No OFD packet to send [16:30:23]OFD Sender: No OFD packet to send [16:30:28]OFD Sender: No OFD packet to send [16:30:33]OFD Sender: No OFD packet to send [16:30:38]OFD Sender: No OFD packet to send [16:30:43]OFD Sender: No OFD packet to send [16:30:48]OFD Sender: No OFD packet to send [16:30:53]OFD Sender: No OFD packet to send [16:30:58]OFD Sender: No OFD packet to send [16:31:03]OFD Sender: No OFD packet to send [16:31:08]OFD Sender: No OFD packet to send [16:31:13]OFD Sender: No OFD packet to send [16:31:18]OFD Sender: No OFD packet to send [16:31:23]OFD Sender: No OFD packet to send [16:31:28]OFD Sender: No OFD packet to send [16:31:33]OFD Sender: No OFD packet to send [16:31:38]OFD Sender: No OFD packet to send [16:31:43]OFD Sender: No OFD packet to send [16:31:46]accept exits with 8 [16:31:46]New connection [16:31:46]New thread 3066834276 created [16:31:46]Thread 3066977636 joined [16:31:46]Waiting for new connection... [16:31:46] Sock 8.Parse request [16:31:46]Sock 8.Check first char [16:31:46]Sock 8.First char is OK [16:31:46]request: POST /json_proto HTTP/1.0 [16:31:46]Method: POST [16:31:46]URL: /json_proto [16:31:46]Method is POST - this is cgi request [16:31:46]url: /json_proto [16:31:46]query_string will be loaded in cgi processing [16:31:46]execute_cgi json_proto POST (null) [16:31:46]execute_cgi path=json_proto method=POST [16:31:46]POST find Content-Length [16:31:46]Host: 172.17.63.3:8080 [16:31:46]Content-Length: 676 [16:31:46]Content-Type: application/json [16:31:46] [16:31:46]POST finish read [16:31:46]Found Content-Length = 676 [16:31:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99475", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:31:46]execute_script... [16:31: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)99475", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:31:46]POST & json_proto [16:31:46]process_json_proto [16:31:46]json parsed OK: [16:31:46]protocol is kg_v1.0 [16:31:46]action value=close_receipt [16:31:46]process_action close_receipt [16:31:46]cmd_close_receipt [16:31:46]MH_GetDate [16:31:46]Write to MH i2c: F0 00 00 F1 6C 4C [16:31:46]Write i2c OK [16:31:46]MH_I2C_Read... [16:31:46]Read from MH i2c: F0 [16:31:46]MH_I2C_Read... [16:31:46]Read from MH i2c: F0 09 00 [16:31:46]MH_I2C_Read... [16:31:46]Read from MH i2c: F0 09 00 F1 6C 00 F9 6A 1E 67 50 D1 6C 64 2E [16:31:46]GetLastDocTimeStamp 1730046567 [16:31:46]current date 1730046713 [16:31:46]FM_GetShiftState [16:31:46]SAM_PROTO_GetShiftState [16:31:46]wFMCommunicate request_size=4 [16:31:46]MH_SAM_APDU [16:31:46]CAPDU: 80 13 01 00 [16:31:46]Write to MH i2c: E2 08 00 F2 6C 80 13 01 00 00 00 00 00 DB [16:31:46]Write i2c OK [16:31:46]MH_I2C_Read... [16:31:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:31:46]Read from MH i2c: E2 [16:31:46]MH_I2C_Read... [16:31:46]Read from MH i2c: E2 0E 00 [16:31:46]MH_I2C_Read... [16:31:46]Read from MH i2c: E2 0E 00 F2 6C 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 A8 [16:31:46]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [16:31:46]wFMCommunicate OK [16:31:46]SAM_PROTO_GetShiftState done [16:31:46]FM_GetShiftState done [16:31:46]opened in 1729989044 [16:31:46]opened+sec_in_day 1730075444 [16:31:46]quantity*price = 50041 [16:31:46]sum+1 = 50042 [16:31:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 211 27.10.2024 16:31 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156660 ФПД: 231913644683666 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T163153&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156660&fm=231913644683666&tin=02508201610067®Number=0000000000091693&sum=50000 [16:31:47]StoreToDocumentArchive [16:31:47]shift 537 fd 156660 [16:31:47]save to /storage/0537/doc_00156660 [16:31:47]save last doc name /storage/0537/doc_00156660 to /storage/kkm_last_doc_name [16:31:47]save OK [16:31:47]Clear old archive folders... [16:31:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:31:47]tlvbuf is B6EE0610 [16:31:47]SAM_PROTO_ClearQueue [16:31:47]wFMCommunicate request_size=4 [16:31:47]MH_SAM_APDU [16:31:47]CAPDU: 80 09 00 00 [16:31:47]Write to MH i2c: E2 08 00 FF 6C 80 09 00 00 00 00 00 00 DD [16:31:47]Write i2c OK [16:31:47]MH_I2C_Read... [16:31:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:31:47]Read from MH i2c: E2 [16:31:47]MH_I2C_Read... [16:31:47]Read from MH i2c: E2 03 00 [16:31:47]MH_I2C_Read... [16:31:47]Read from MH i2c: E2 03 00 FF 6C 00 90 00 DF [16:31:47]RAPDU: 90 00 [16:31:47]wFMCommunicate OK [16:31:47]SAM_PROTO_ClearQueue done [16:31:47]KKMCreateOFDPacket [16:31:47]OFDProtocolAddRootSTLVToBuf [16:31:47]FM_MakeSignedData [16:31:47]FM_MakeSignedData [16:31:47]SAM_PROTO_SignData [16:31:47]wFMCommunicate request_size=4 [16:31:47]MH_SAM_APDU [16:31:47]CAPDU: 80 0D 01 02 [16:31:47]Write to MH i2c: E2 08 00 00 6D 80 0D 01 02 00 00 00 00 E6 [16:31:47]Write i2c OK [16:31:47]MH_I2C_Read... [16:31:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:31:48]Read from MH i2c: E2 [16:31:48]MH_I2C_Read... [16:31:48]Read from MH i2c: E2 03 00 [16:31:48]MH_I2C_Read... [16:31:48]Read from MH i2c: E2 03 00 00 6D 00 90 00 E1 [16:31:48]RAPDU: 90 00 [16:31:48]wFMCommunicate OK [16:31:48]wFMCommunicate request_size=255 [16:31:48]MH_SAM_APDU [16:31: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 F9 6A 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F4 63 02 00 35 04 06 00 D2 [16:31:48]Write to MH i2c: E2 02 01 01 6D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 F9 6A 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F4 63 02 00 35 04 06 00 D2 00 00 7B [16:31:48]Write i2c OK [16:31:48]MH_I2C_Read... [16:31:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:31:48]Read from MH i2c: E2 [16:31:48]MH_I2C_Read... [16:31:48]Read from MH i2c: E2 03 00 [16:31:48]MH_I2C_Read... [16:31:48]Read from MH i2c: E2 03 00 01 6D 00 90 00 E2 [16:31:48]RAPDU: 90 00 [16:31:48]wFMCommunicate OK [16:31:48]wFMCommunicate request_size=10 [16:31:48]MH_SAM_APDU [16:31:48]CAPDU: 80 0D 02 02 05 EC 9A 68 F1 92 [16:31:48]Write to MH i2c: E2 0D 00 02 6D 80 0D 02 02 05 00 EC 9A 68 F1 92 00 00 64 [16:31:48]Write i2c OK [16:31:48]MH_I2C_Read... [16:31:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:31:48]Read from MH i2c: E2 [16:31:48]MH_I2C_Read... [16:31:48]Read from MH i2c: E2 03 00 [16:31:48]MH_I2C_Read... [16:31:48]Read from MH i2c: E2 03 00 02 6D 00 90 00 E3 [16:31:48]RAPDU: 90 00 [16:31:48]wFMCommunicate OK [16:31:48]wFMCommunicate request_size=4 [16:31:48]MH_SAM_APDU [16:31:48]CAPDU: 80 0D 03 02 [16:31:48]Write to MH i2c: E2 08 00 03 6D 80 0D 03 02 00 00 00 00 EB [16:31:48]Write i2c OK [16:31:48]MH_I2C_Read... [16:31:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:31:48]Read from MH i2c: E2 [16:31:48]MH_I2C_Read... [16:31:48]Read from MH i2c: E2 0B 00 [16:31:48]MH_I2C_Read... [16:31:48]Read from MH i2c: E2 0B 00 03 6D 00 0B 76 CF 06 4F 55 E4 5C 90 00 26 [16:31:48]RAPDU: 0B 76 CF 06 4F 55 E4 5C 90 00 [16:31:48]wFMCommunicate OK [16:31:48]SAM_PROTO_SignData done [16:31:48]FM_MakeSignedData done [16:31:48]CreateOFDProtocolMessage [16:31:48]wFMCommunicate request_size=4 [16:31:48]MH_SAM_APDU [16:31:48]CAPDU: 80 11 00 00 [16:31:48]Write to MH i2c: E2 08 00 04 6D 80 11 00 00 00 00 00 00 EB [16:31:48]Write i2c OK [16:31:48]MH_I2C_Read... [16:31:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:31:48]Read from MH i2c: E2 [16:31:48]MH_I2C_Read... [16:31:48]Read from MH i2c: E2 17 00 [16:31:48]MH_I2C_Read... [16:31:48]Read from MH i2c: E2 17 00 04 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 40 [16:31:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:31:48]wFMCommunicate OK [16:31:48]CreateOFDProtocolMessage done [16:31:48]OFDSenderStorePacket 156660 [16:31:48]StoreOFDPacket docnum=156660 [16:31:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 5B E1 07 01 98 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 F9 6A 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F4 63 02 00 35 04 06 00 D2 EC 9A 68 F1 92 0B 76 CF 06 4F 55 E4 5C [16:31:48]CheckFolder [16:31:48]dirname=/storage/ofd_packets [16:31:48]CheckFolder done [16:31:48]ProducePacketName [16:31:48]name=ofd_packets/00156660 [16:31:48]NVStorageSaveData ofd_packets/00156660 [16:31:48]File name is /storage/ofd_packets/00156660 [16:31:48]Write 301 bytes [16:31:48]NVStorageSaveData done [16:31:48]OFDSenderStorePacket done [16:31:48]KKMCreateOFDPacket done [16:31:48]NVStorageSaveData kkm_last_timestamp [16:31:48]File name is /storage/kkm_last_timestamp [16:31:48]Write 4 bytes [16:31:48]NVStorageSaveData done [16:31:48]ExternCall_PrintAddStr [16:31:48]wPrintStart [16:31:48]Write to MH i2c: 01 00 00 05 6D 72 [16:31:48]Write i2c OK [16:31:48]MH_I2C_Read... [16:31:48]Read from MH i2c: 01 [16:31:48]MH_I2C_Read... [16:31:48]Read from MH i2c: 01 07 00 [16:31:48]MH_I2C_Read... [16:31:48]Read from MH i2c: 01 07 00 05 6D 00 00 00 00 00 FF 0F 87 [16:31:48]RasterBufferAndPrint [16:31:48]line Счет N : (1)99475 [16:31:48]line ИНН: 02508201610067 [16:31:48]line Контрольно-Кассовый Чек [16:31:48]line ПРОДАЖА [16:31:48]line ТРК (МРК, ГНК) : 11 [16:31:48]line Товар: 2710124130 [16:31:48]line Аи-92-К-5 [16:31:48]line 7.480 * 66.90 [16:31:48]line = 500.41 [16:31:48]line НДС 12% НСП 1% [16:31:48]line > о реализуемом товаре [16:31:48]line ОКРУГЛЕНИЕ: -0.41 [16:31:48]line ИТОГО: 500.00 [16:31:48]line Внесено: 500.00 [16:31:48]line СДАЧА: 0.00 [16:31:48]line НСП 1% : 4.43 [16:31:48]line НДС 12% : 53.14 [16:31:48]line Наличными: 500.00 [16:31:48]line Безнал.: 0.00 [16:31:48]line Место: АЗС № 143 "Партнер Нефть" [16:31:48]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [16:31:48]line СНО: Общий режим [16:31:48]line Чек 211 27.10.2024 16:31 [16:31:48]line Смена: 537 ФФД: 1.0 [16:31:48]line ЗНМ: 0300000096 [16:31:48]line РНМ: 0000000000091693 [16:31:48]line Версия ККМ: 001 [16:31:48]line ФМ: 0000000000871792 [16:31:48]line ФД: 156660 [16:31:48]line ФПД: 231913644683666 [16:31:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T163153&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156660&fm=231913644683666&tin=02508201610067®Number=0000000000091693&sum=50000 [16:31:48]OFD Sender: Processing packet 156660 [packets to send 31, broken 30] [16:31:48]ProducePacketName [16:31:48]name=ofd_packets/00156660 [16:31:48]OFD Sender: To server: pG, [16:31:48]CommunicateWithHost lk.salyk.kg:30040 [16:31:48]ConnectInit lk.salyk.kg [16:31:48]written 0, free lines is 4095 [16:31:48]Connected sock=10 [16:31:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 5B E1 07 01 98 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 F9 6A 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F4 63 02 00 35 04 06 00 D2 EC 9A 68 F1 92 0B 76 CF 06 4F 55 E4 5C [16:31:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 DF 48 47 00 5C 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 31 37 39 32 10 04 04 00 F4 63 02 00 F4 03 04 00 68 10 1E 67 B6 04 01 00 00 85 D8 BC E6 02 A8 38 01 [16:31:49]CommunicateWithHost err = 0 [16:31:49]CheckOFDResponse [16:31:49]1017 (14) - 77093643461234 [16:31:49]1041 (16) - 0000000000871792 [16:31:49]1040 (4) - 156660 [16:31:49]1012 (4) - 27.10.2024 10:05 [16:31:49]1206 (1) - 0 [16:31:49]OFD Sender: Remove packet 156660 [16:31:49]ProducePacketName [16:31:49]name=ofd_packets/00156660 [16:31:49]NVStorageDeleteData [16:31:49]Write to MH i2c: 01 00 00 30 6D 9D [16:31:49]Write i2c OK [16:31:49]MH_I2C_Read... [16:31:49]Read from MH i2c: 01 [16:31:49]MH_I2C_Read... [16:31:49]Read from MH i2c: 01 07 00 [16:31:49]MH_I2C_Read... [16:31:49]Read from MH i2c: 01 07 00 30 6D 00 00 00 00 00 E4 0C 94 [16:31:49]RasterBufferAndPrint [16:31:49]line [16:31:49]line [16:31:49]line [16:31:49]line [16:31:49]line [16:31:49]written 0, free lines is 3306 [16:31:49]process_action close_receipt done [16:31:49]requested_data is exist [16:31:49]produce_requested_data [16:31:49]requested_item fm.sn is exist - process it [16:31:49]wFMCommunicate request_size=4 [16:31:49]MH_SAM_APDU [16:31:49]CAPDU: 80 11 00 00 [16:31:49]Write to MH i2c: E2 08 00 37 6D 80 11 00 00 00 00 00 00 1E [16:31:49]Write i2c OK [16:31:49]MH_I2C_Read... [16:31:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:31:49]Read from MH i2c: E2 [16:31:49]MH_I2C_Read... [16:31:49]Read from MH i2c: E2 17 00 [16:31:49]MH_I2C_Read... [16:31:49]Read from MH i2c: E2 17 00 37 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 73 [16:31:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:31:49]wFMCommunicate OK [16:31:49]requested_item fd.num is exist - process it [16:31:49]SAM_PROTO_GetFieldsCounters [16:31:49]wFMCommunicate request_size=4 [16:31:49]MH_SAM_APDU [16:31:49]CAPDU: 80 13 00 00 [16:31:49]Write to MH i2c: E2 08 00 38 6D 80 13 00 00 00 00 00 00 21 [16:31:49]Write i2c OK [16:31:49]MH_I2C_Read... [16:31:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:31:49]Read from MH i2c: E2 [16:31:49]MH_I2C_Read... [16:31:49]Read from MH i2c: E2 62 00 [16:31:49]MH_I2C_Read... [16:31:49]Read from MH i2c: E2 62 00 38 6D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F4 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 34 [16:31:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F4 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:31:49]wFMCommunicate OK [16:31:49]SAM_PROTO_GetFieldsCounters done [16:31:49]requested_item shift.num is exist - process it [16:31:49]requested_item shift.opened is exist - process it [16:31:49]req_shift_opened [16:31:49]FM_GetShiftState [16:31:49]SAM_PROTO_GetShiftState [16:31:49]wFMCommunicate request_size=4 [16:31:49]MH_SAM_APDU [16:31:49]CAPDU: 80 13 01 00 [16:31:49]Write to MH i2c: E2 08 00 39 6D 80 13 01 00 00 00 00 00 23 [16:31:49]Write i2c OK [16:31:49]MH_I2C_Read... [16:31:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:31:49]Read from MH i2c: E2 [16:31:49]MH_I2C_Read... [16:31:49]Read from MH i2c: E2 0E 00 [16:31:49]MH_I2C_Read... [16:31:49]Read from MH i2c: E2 0E 00 39 6D 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 F0 [16:31:49]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [16:31:49]wFMCommunicate OK [16:31:49]SAM_PROTO_GetShiftState done [16:31:49]FM_GetShiftState done [16:31:49]req_shift_opened done [16:31:49]requested_item shift.open_date is exist - process it [16:31:49]req_shift_open_date [16:31:49]req_shift_open_date done [16:31:49]produce_requested_data done [16:31:49]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156660,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [16:31:49]process_action_free close_receipt [16:31:49]json_value_free [16:31:49]json_value_free done [16:31:49]process_json_proto returns [16:31:49]Send response to host [16:31:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156660,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [16:31:49]free response buf [16:31:49]execute_script done [16:31:49]execute_script returns [16:31:49]free content buf [16:31:49]Sock 8.Close socket [16:31:49]Sock 8.Thread stoped [16:31:49]OFD Sender: No OFD packet to send [16:31:54]OFD Sender: No OFD packet to send [16:31:59]OFD Sender: No OFD packet to send [16:32:04]OFD Sender: No OFD packet to send [16:32:09]OFD Sender: No OFD packet to send [16:32:14]OFD Sender: No OFD packet to send [16:32:19]OFD Sender: No OFD packet to send [16:32:24]OFD Sender: No OFD packet to send [16:32:29]OFD Sender: No OFD packet to send [16:32:32]accept exits with 9 [16:32:32]New connection [16:32:32]New thread 3066977636 created [16:32:32]Thread 3066834276 joined [16:32:32]Waiting for new connection... [16:32:32] Sock 9.Parse request [16:32:32]Sock 9.Check first char [16:32:32]Sock 9.First char is OK [16:32:32]request: POST /json_proto HTTP/1.0 [16:32:32]Method: POST [16:32:32]URL: /json_proto [16:32:32]Method is POST - this is cgi request [16:32:32]url: /json_proto [16:32:32]query_string will be loaded in cgi processing [16:32:32]execute_cgi json_proto POST (null) [16:32:32]execute_cgi path=json_proto method=POST [16:32:32]POST find Content-Length [16:32:32]Host: 172.17.63.3:8080 [16:32:32]Content-Length: 802 [16:32:32]Content-Type: application/json [16:32:32] [16:32:32]POST finish read [16:32:32]Found Content-Length = 802 [16:32:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99474", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4234789.90", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:32:32]execute_script... [16:32: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)99474", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4234789.90", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:32:32]POST & json_proto [16:32:32]process_json_proto [16:32:32]json parsed OK: [16:32:32]protocol is kg_v1.0 [16:32:32]action value=close_receipt [16:32:32]process_action close_receipt [16:32:32]cmd_close_receipt [16:32:32]MH_GetDate [16:32:32]Write to MH i2c: F0 00 00 3A 6D 96 [16:32:32]Write i2c OK [16:32:32]MH_I2C_Read... [16:32:32]Read from MH i2c: F0 [16:32:32]MH_I2C_Read... [16:32:32]Read from MH i2c: F0 09 00 [16:32:32]MH_I2C_Read... [16:32:32]Read from MH i2c: F0 09 00 3A 6D 00 27 6B 1E 67 50 D1 6C 64 A7 [16:32:32]GetLastDocTimeStamp 1730046713 [16:32:32]current date 1730046759 [16:32:32]FM_GetShiftState [16:32:32]SAM_PROTO_GetShiftState [16:32:32]wFMCommunicate request_size=4 [16:32:32]MH_SAM_APDU [16:32:32]CAPDU: 80 13 01 00 [16:32:32]Write to MH i2c: E2 08 00 3B 6D 80 13 01 00 00 00 00 00 25 [16:32:32]Write i2c OK [16:32:32]MH_I2C_Read... [16:32:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:32:33]Read from MH i2c: E2 [16:32:33]MH_I2C_Read... [16:32:33]Read from MH i2c: E2 0E 00 [16:32:33]MH_I2C_Read... [16:32:33]Read from MH i2c: E2 0E 00 3B 6D 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 F2 [16:32:33]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [16:32:33]wFMCommunicate OK [16:32:33]SAM_PROTO_GetShiftState done [16:32:33]FM_GetShiftState done [16:32:33]opened in 1729989044 [16:32:33]opened+sec_in_day 1730075444 [16:32:33]quantity*price = 0 [16:32:33]sum+1 = 1 [16:32:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 212 27.10.2024 16:32 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Талоны: Топливные Талоны 4234789.90 ФМ: 0000000000871792 ФД: 156661 ФПД: 261744251840511 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T163239&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156661&fm=261744251840511&tin=02508201610067®Number=0000000000091693&sum=0 [16:32:34]StoreToDocumentArchive [16:32:34]shift 537 fd 156661 [16:32:34]save to /storage/0537/doc_00156661 [16:32:34]save last doc name /storage/0537/doc_00156661 to /storage/kkm_last_doc_name [16:32:34]save OK [16:32:34]Clear old archive folders... [16:32:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:32:34]tlvbuf is 0179AAD0 [16:32:34]SAM_PROTO_ClearQueue [16:32:34]wFMCommunicate request_size=4 [16:32:34]MH_SAM_APDU [16:32:34]CAPDU: 80 09 00 00 [16:32:34]Write to MH i2c: E2 08 00 48 6D 80 09 00 00 00 00 00 00 27 [16:32:34]Write i2c OK [16:32:34]MH_I2C_Read... [16:32:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:32:34]Read from MH i2c: E2 [16:32:34]MH_I2C_Read... [16:32:34]Read from MH i2c: E2 03 00 [16:32:34]MH_I2C_Read... [16:32:34]Read from MH i2c: E2 03 00 48 6D 00 90 00 29 [16:32:34]RAPDU: 90 00 [16:32:34]wFMCommunicate OK [16:32:34]SAM_PROTO_ClearQueue done [16:32:34]KKMCreateOFDPacket [16:32:34]OFDProtocolAddRootSTLVToBuf [16:32:34]FM_MakeSignedData [16:32:34]FM_MakeSignedData [16:32:34]SAM_PROTO_SignData [16:32:34]wFMCommunicate request_size=4 [16:32:34]MH_SAM_APDU [16:32:34]CAPDU: 80 0D 01 02 [16:32:34]Write to MH i2c: E2 08 00 49 6D 80 0D 01 02 00 00 00 00 2F [16:32:34]Write i2c OK [16:32:34]MH_I2C_Read... [16:32:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:32:34]Read from MH i2c: E2 [16:32:34]MH_I2C_Read... [16:32:34]Read from MH i2c: E2 03 00 [16:32:34]MH_I2C_Read... [16:32:34]Read from MH i2c: E2 03 00 49 6D 00 90 00 2A [16:32:34]RAPDU: 90 00 [16:32:34]wFMCommunicate OK [16:32:34]wFMCommunicate request_size=255 [16:32:34]MH_SAM_APDU [16:32: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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 27 6B 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F5 63 02 00 35 04 06 00 EE [16:32:34]Write to MH i2c: E2 02 01 4A 6D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 27 6B 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F5 63 02 00 35 04 06 00 EE 00 00 FA [16:32:34]Write i2c OK [16:32:34]MH_I2C_Read... [16:32:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:32:34]Read from MH i2c: E2 [16:32:34]MH_I2C_Read... [16:32:34]Read from MH i2c: E2 03 00 [16:32:34]MH_I2C_Read... [16:32:34]Read from MH i2c: E2 03 00 4A 6D 00 90 00 2B [16:32:34]RAPDU: 90 00 [16:32:34]wFMCommunicate OK [16:32:34]wFMCommunicate request_size=10 [16:32:34]MH_SAM_APDU [16:32:34]CAPDU: 80 0D 02 02 05 0E 15 27 27 FF [16:32:34]Write to MH i2c: E2 0D 00 4B 6D 80 0D 02 02 05 00 0E 15 27 27 FF 00 00 AC [16:32:34]Write i2c OK [16:32:34]MH_I2C_Read... [16:32:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:32:34]Read from MH i2c: E2 [16:32:34]MH_I2C_Read... [16:32:34]Read from MH i2c: E2 03 00 [16:32:34]MH_I2C_Read... [16:32:34]Read from MH i2c: E2 03 00 4B 6D 00 90 00 2C [16:32:34]RAPDU: 90 00 [16:32:34]wFMCommunicate OK [16:32:34]wFMCommunicate request_size=4 [16:32:34]MH_SAM_APDU [16:32:34]CAPDU: 80 0D 03 02 [16:32:34]Write to MH i2c: E2 08 00 4C 6D 80 0D 03 02 00 00 00 00 34 [16:32:34]Write i2c OK [16:32:34]MH_I2C_Read... [16:32:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:32:34]Read from MH i2c: E2 [16:32:34]MH_I2C_Read... [16:32:34]Read from MH i2c: E2 0B 00 [16:32:34]MH_I2C_Read... [16:32:34]Read from MH i2c: E2 0B 00 4C 6D 00 37 1E 1C 32 97 80 0E 7C 90 00 79 [16:32:34]RAPDU: 37 1E 1C 32 97 80 0E 7C 90 00 [16:32:34]wFMCommunicate OK [16:32:34]SAM_PROTO_SignData done [16:32:34]FM_MakeSignedData done [16:32:34]CreateOFDProtocolMessage [16:32:34]wFMCommunicate request_size=4 [16:32:34]MH_SAM_APDU [16:32:34]CAPDU: 80 11 00 00 [16:32:34]Write to MH i2c: E2 08 00 4D 6D 80 11 00 00 00 00 00 00 34 [16:32:34]Write i2c OK [16:32:34]MH_I2C_Read... [16:32:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:32:34]Read from MH i2c: E2 [16:32:34]MH_I2C_Read... [16:32:34]Read from MH i2c: E2 17 00 [16:32:34]MH_I2C_Read... [16:32:34]Read from MH i2c: E2 17 00 4D 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 89 [16:32:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:32:34]wFMCommunicate OK [16:32:34]CreateOFDProtocolMessage done [16:32:34]OFDSenderStorePacket 156661 [16:32:34]StoreOFDPacket docnum=156661 [16:32:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 7F 6C 07 01 D0 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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 27 6B 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F5 63 02 00 35 04 06 00 EE 0E 15 27 27 FF 37 1E 1C 32 97 80 0E 7C [16:32:34]CheckFolder [16:32:34]dirname=/storage/ofd_packets [16:32:34]CheckFolder done [16:32:34]ProducePacketName [16:32:34]name=ofd_packets/00156661 [16:32:34]NVStorageSaveData ofd_packets/00156661 [16:32:34]File name is /storage/ofd_packets/00156661 [16:32:34]Write 301 bytes [16:32:34]NVStorageSaveData done [16:32:34]OFDSenderStorePacket done [16:32:34]KKMCreateOFDPacket done [16:32:34]NVStorageSaveData kkm_last_timestamp [16:32:34]File name is /storage/kkm_last_timestamp [16:32:34]Write 4 bytes [16:32:34]NVStorageSaveData done [16:32:34]ExternCall_PrintAddStr [16:32:34]wPrintStart [16:32:34]Write to MH i2c: 01 00 00 4E 6D BB [16:32:34]Write i2c OK [16:32:34]MH_I2C_Read... [16:32:34]Read from MH i2c: 01 [16:32:34]MH_I2C_Read... [16:32:34]Read from MH i2c: 01 07 00 [16:32:34]MH_I2C_Read... [16:32:34]Read from MH i2c: 01 07 00 4E 6D 00 00 00 00 00 FF 0F D0 [16:32:34]RasterBufferAndPrint [16:32:34]line Счет N : (1)99474 [16:32:34]line ИНН: 02508201610067 [16:32:34]line Контрольно-Кассовый Чек [16:32:34]line ПРОДАЖА [16:32:34]line ТРК (МРК, ГНК) : 31 [16:32:34]line Товар: 2710124130 [16:32:34]line Аи-92-К-5 [16:32:34]line 20.000 * 0.00 [16:32:34]line = 0.00 [16:32:34]line НДС 12% НСП 1% [16:32:34]line > о реализуемом товаре [16:32:34]line ИТОГО: 0.00 [16:32:34]line НСП 1% : 0.00 [16:32:34]line НДС 12% : 0.00 [16:32:34]line Наличными: 0.00 [16:32:34]line Безнал.: 0.00 [16:32:34]line Место: АЗС № 143 "Партнер Нефть" [16:32:34]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [16:32:34]line СНО: Общий режим [16:32:34]line Чек 212 27.10.2024 16:32 [16:32:34]line Смена: 537 ФФД: 1.0 [16:32:34]line ЗНМ: 0300000096 [16:32:34]line РНМ: 0000000000091693 [16:32:34]line Версия ККМ: 001 [16:32:34]line Талоны: Топливные Талоны [16:32:34]line 4234789.90 [16:32:34]line ФМ: 0000000000871792 [16:32:34]line ФД: 156661 [16:32:34]line ФПД: 261744251840511 [16:32:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T163239&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156661&fm=261744251840511&tin=02508201610067®Number=0000000000091693&sum=0 [16:32:35]written 0, free lines is 4095 [16:32:35]OFD Sender: Processing packet 156661 [packets to send 31, broken 30] [16:32:35]ProducePacketName [16:32:35]name=ofd_packets/00156661 [16:32:35]OFD Sender: To server: pG, [16:32:35]CommunicateWithHost lk.salyk.kg:30040 [16:32:35]ConnectInit lk.salyk.kg [16:32:35]Connected sock=10 [16:32:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 7F 6C 07 01 D0 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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 27 6B 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F5 63 02 00 35 04 06 00 EE 0E 15 27 27 FF 37 1E 1C 32 97 80 0E 7C [16:32:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 2D 1C 47 00 45 64 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F5 63 02 00 F4 03 04 00 96 10 1E 67 B6 04 01 00 00 3F 7F A7 37 79 CC 3F BD [16:32:35]CommunicateWithHost err = 0 [16:32:35]CheckOFDResponse [16:32:35]1017 (14) - 77093643461234 [16:32:35]1041 (16) - 0000000000871792 [16:32:35]1040 (4) - 156661 [16:32:35]1012 (4) - 27.10.2024 10:06 [16:32:35]1206 (1) - 0 [16:32:35]OFD Sender: Remove packet 156661 [16:32:35]ProducePacketName [16:32:35]name=ofd_packets/00156661 [16:32:35]NVStorageDeleteData [16:32:35]Write to MH i2c: 01 00 00 78 6D E5 [16:32:35]Write i2c OK [16:32:35]MH_I2C_Read... [16:32:35]Read from MH i2c: 01 [16:32:35]MH_I2C_Read... [16:32:35]Read from MH i2c: 01 07 00 [16:32:35]MH_I2C_Read... [16:32:35]Read from MH i2c: 01 07 00 78 6D 00 00 00 00 00 F4 0C EC [16:32:35]RasterBufferAndPrint [16:32:35]line [16:32:35]line [16:32:35]line [16:32:35]line [16:32:35]line [16:32:35]written 0, free lines is 3323 [16:32:35]process_action close_receipt done [16:32:35]requested_data is exist [16:32:35]produce_requested_data [16:32:35]requested_item fm.sn is exist - process it [16:32:35]wFMCommunicate request_size=4 [16:32:35]MH_SAM_APDU [16:32:35]CAPDU: 80 11 00 00 [16:32:35]Write to MH i2c: E2 08 00 7F 6D 80 11 00 00 00 00 00 00 66 [16:32:35]Write i2c OK [16:32:35]MH_I2C_Read... [16:32:35]Read from MH i2c: E2 [16:32:35]MH_I2C_Read... [16:32:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:32:35]Read from MH i2c: E2 17 00 [16:32:35]MH_I2C_Read... [16:32:35]Read from MH i2c: E2 17 00 7F 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 BB [16:32:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:32:35]wFMCommunicate OK [16:32:35]requested_item fd.num is exist - process it [16:32:35]SAM_PROTO_GetFieldsCounters [16:32:35]wFMCommunicate request_size=4 [16:32:35]MH_SAM_APDU [16:32:35]CAPDU: 80 13 00 00 [16:32:35]Write to MH i2c: E2 08 00 80 6D 80 13 00 00 00 00 00 00 69 [16:32:35]Write i2c OK [16:32:35]MH_I2C_Read... [16:32:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:32:35]Read from MH i2c: E2 [16:32:35]MH_I2C_Read... [16:32:35]Read from MH i2c: E2 62 00 [16:32:35]MH_I2C_Read... [16:32:35]Read from MH i2c: E2 62 00 80 6D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F5 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 80 [16:32:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F5 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:32:35]wFMCommunicate OK [16:32:35]SAM_PROTO_GetFieldsCounters done [16:32:35]requested_item shift.num is exist - process it [16:32:35]requested_item shift.opened is exist - process it [16:32:35]req_shift_opened [16:32:35]FM_GetShiftState [16:32:35]SAM_PROTO_GetShiftState [16:32:35]wFMCommunicate request_size=4 [16:32:35]MH_SAM_APDU [16:32:35]CAPDU: 80 13 01 00 [16:32:35]Write to MH i2c: E2 08 00 81 6D 80 13 01 00 00 00 00 00 6B [16:32:35]Write i2c OK [16:32:35]MH_I2C_Read... [16:32:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:32:35]Read from MH i2c: E2 [16:32:35]MH_I2C_Read... [16:32:35]Read from MH i2c: E2 0E 00 [16:32:35]MH_I2C_Read... [16:32:35]Read from MH i2c: E2 0E 00 81 6D 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 38 [16:32:35]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [16:32:35]wFMCommunicate OK [16:32:35]SAM_PROTO_GetShiftState done [16:32:35]FM_GetShiftState done [16:32:35]req_shift_opened done [16:32:35]requested_item shift.open_date is exist - process it [16:32:35]req_shift_open_date [16:32:35]req_shift_open_date done [16:32:35]produce_requested_data done [16:32:35]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156661,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [16:32:35]process_action_free close_receipt [16:32:35]json_value_free [16:32:35]json_value_free done [16:32:35]process_json_proto returns [16:32:35]Send response to host [16:32:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156661,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [16:32:35]free response buf [16:32:35]execute_script done [16:32:35]execute_script returns [16:32:35]free content buf [16:32:35]Sock 9.Close socket [16:32:35]Sock 9.Thread stoped [16:32:35]OFD Sender: No OFD packet to send [16:32:40]OFD Sender: No OFD packet to send [16:32:45]OFD Sender: No OFD packet to send [16:32:50]OFD Sender: No OFD packet to send [16:32:55]OFD Sender: No OFD packet to send [16:33:00]OFD Sender: No OFD packet to send [16:33:05]OFD Sender: No OFD packet to send [16:33:10]OFD Sender: No OFD packet to send [16:33:15]OFD Sender: No OFD packet to send [16:33:20]OFD Sender: No OFD packet to send [16:33:25]OFD Sender: No OFD packet to send [16:33:30]OFD Sender: No OFD packet to send [16:33:35]OFD Sender: No OFD packet to send [16:33:40]OFD Sender: No OFD packet to send [16:33:45]OFD Sender: No OFD packet to send [16:33:50]OFD Sender: No OFD packet to send [16:33:55]OFD Sender: No OFD packet to send [16:34:00]OFD Sender: No OFD packet to send [16:34:05]OFD Sender: No OFD packet to send [16:34:10]OFD Sender: No OFD packet to send [16:34:15]OFD Sender: No OFD packet to send [16:34:20]OFD Sender: No OFD packet to send [16:34:25]OFD Sender: No OFD packet to send [16:34:30]OFD Sender: No OFD packet to send [16:34:35]OFD Sender: No OFD packet to send [16:34:40]OFD Sender: No OFD packet to send [16:34:45]OFD Sender: No OFD packet to send [16:34:50]OFD Sender: No OFD packet to send [16:34:55]OFD Sender: No OFD packet to send [16:35:00]OFD Sender: No OFD packet to send [16:35:05]OFD Sender: No OFD packet to send [16:35:10]OFD Sender: No OFD packet to send [16:35:15]OFD Sender: No OFD packet to send [16:35:21]OFD Sender: No OFD packet to send [16:35:26]OFD Sender: No OFD packet to send [16:35:31]OFD Sender: No OFD packet to send [16:35:36]OFD Sender: No OFD packet to send [16:35:41]OFD Sender: No OFD packet to send [16:35:46]OFD Sender: No OFD packet to send [16:35:51]OFD Sender: No OFD packet to send [16:35:56]OFD Sender: No OFD packet to send [16:36:01]OFD Sender: No OFD packet to send [16:36:06]OFD Sender: No OFD packet to send [16:36:11]OFD Sender: No OFD packet to send [16:36:16]OFD Sender: No OFD packet to send [16:36:21]OFD Sender: No OFD packet to send [16:36:26]OFD Sender: No OFD packet to send [16:36:31]OFD Sender: No OFD packet to send [16:36:36]OFD Sender: No OFD packet to send [16:36:41]OFD Sender: No OFD packet to send [16:36:46]OFD Sender: No OFD packet to send [16:36:51]OFD Sender: No OFD packet to send [16:36:56]OFD Sender: No OFD packet to send [16:37:01]OFD Sender: No OFD packet to send [16:37:06]OFD Sender: No OFD packet to send [16:37:11]OFD Sender: No OFD packet to send [16:37:16]OFD Sender: No OFD packet to send [16:37:21]OFD Sender: No OFD packet to send [16:37:26]OFD Sender: No OFD packet to send [16:37:31]OFD Sender: No OFD packet to send [16:37:36]OFD Sender: No OFD packet to send [16:37:41]OFD Sender: No OFD packet to send [16:37:46]OFD Sender: No OFD packet to send [16:37:51]OFD Sender: No OFD packet to send [16:37:56]OFD Sender: No OFD packet to send [16:38:01]OFD Sender: No OFD packet to send [16:38:06]OFD Sender: No OFD packet to send [16:38:11]OFD Sender: No OFD packet to send [16:38:16]OFD Sender: No OFD packet to send [16:38:21]OFD Sender: No OFD packet to send [16:38:26]OFD Sender: No OFD packet to send [16:38:31]OFD Sender: No OFD packet to send [16:38:36]OFD Sender: No OFD packet to send [16:38:41]OFD Sender: No OFD packet to send [16:38:46]OFD Sender: No OFD packet to send [16:38:51]OFD Sender: No OFD packet to send [16:38:56]OFD Sender: No OFD packet to send [16:39:01]OFD Sender: No OFD packet to send [16:39:06]OFD Sender: No OFD packet to send [16:39:11]OFD Sender: No OFD packet to send [16:39:16]OFD Sender: No OFD packet to send [16:39:21]OFD Sender: No OFD packet to send [16:39:26]OFD Sender: No OFD packet to send [16:39:31]OFD Sender: No OFD packet to send [16:39:36]OFD Sender: No OFD packet to send [16:39:41]OFD Sender: No OFD packet to send [16:39:46]OFD Sender: No OFD packet to send [16:39:51]OFD Sender: No OFD packet to send [16:39:56]OFD Sender: No OFD packet to send [16:40:01]OFD Sender: No OFD packet to send [16:40:06]OFD Sender: No OFD packet to send [16:40:11]OFD Sender: No OFD packet to send [16:40:16]OFD Sender: No OFD packet to send [16:40:21]OFD Sender: No OFD packet to send [16:40:26]OFD Sender: No OFD packet to send [16:40:31]OFD Sender: No OFD packet to send [16:40:36]OFD Sender: No OFD packet to send [16:40:41]OFD Sender: No OFD packet to send [16:40:46]OFD Sender: No OFD packet to send [16:40:51]OFD Sender: No OFD packet to send [16:40:56]OFD Sender: No OFD packet to send [16:41:01]OFD Sender: No OFD packet to send [16:41:06]OFD Sender: No OFD packet to send [16:41:11]OFD Sender: No OFD packet to send [16:41:16]OFD Sender: No OFD packet to send [16:41:21]OFD Sender: No OFD packet to send [16:41:26]OFD Sender: No OFD packet to send [16:41:31]OFD Sender: No OFD packet to send [16:41:36]OFD Sender: No OFD packet to send [16:41:41]OFD Sender: No OFD packet to send [16:41:46]OFD Sender: No OFD packet to send [16:41:51]OFD Sender: No OFD packet to send [16:41:56]OFD Sender: No OFD packet to send [16:42:01]OFD Sender: No OFD packet to send [16:42:06]OFD Sender: No OFD packet to send [16:42:11]OFD Sender: No OFD packet to send [16:42:16]OFD Sender: No OFD packet to send [16:42:21]OFD Sender: No OFD packet to send [16:42:21]accept exits with 8 [16:42:21]New connection [16:42:21]New thread 3066834276 created [16:42:21]Thread 3066977636 joined [16:42:21]Waiting for new connection... [16:42:21] Sock 8.Parse request [16:42:21]Sock 8.Check first char [16:42:21]Sock 8.First char is OK [16:42:21]request: POST /json_proto HTTP/1.0 [16:42:21]Method: POST [16:42:21]URL: /json_proto [16:42:21]Method is POST - this is cgi request [16:42:21]url: /json_proto [16:42:21]query_string will be loaded in cgi processing [16:42:21]execute_cgi json_proto POST (null) [16:42:21]execute_cgi path=json_proto method=POST [16:42:21]POST find Content-Length [16:42:21]Host: 172.17.63.3:8080 [16:42:21]Content-Length: 678 [16:42:21]Content-Type: application/json [16:42:21] [16:42:21]POST finish read [16:42:21]Found Content-Length = 678 [16:42:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99476", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 45.940, "sum" : 3500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3500.00, "total" : 3500.00, "payments": [ { "type": 0, "sum" : 3500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:42:21]execute_script... [16:42: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)99476", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 45.940, "sum" : 3500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3500.00, "total" : 3500.00, "payments": [ { "type": 0, "sum" : 3500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:42:21]POST & json_proto [16:42:21]process_json_proto [16:42:21]json parsed OK: [16:42:21]protocol is kg_v1.0 [16:42:21]action value=close_receipt [16:42:21]process_action close_receipt [16:42:21]cmd_close_receipt [16:42:21]MH_GetDate [16:42:21]Write to MH i2c: F0 00 00 82 6D DE [16:42:21]Write i2c OK [16:42:21]MH_I2C_Read... [16:42:21]Read from MH i2c: F0 [16:42:21]MH_I2C_Read... [16:42:21]Read from MH i2c: F0 09 00 [16:42:21]MH_I2C_Read... [16:42:21]Read from MH i2c: F0 09 00 82 6D 00 74 6D 1E 67 50 D1 6C 64 3E [16:42:21]GetLastDocTimeStamp 1730046759 [16:42:21]current date 1730047348 [16:42:21]FM_GetShiftState [16:42:21]SAM_PROTO_GetShiftState [16:42:21]wFMCommunicate request_size=4 [16:42:21]MH_SAM_APDU [16:42:21]CAPDU: 80 13 01 00 [16:42:21]Write to MH i2c: E2 08 00 83 6D 80 13 01 00 00 00 00 00 6D [16:42:21]Write i2c OK [16:42:21]MH_I2C_Read... [16:42:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:42:21]Read from MH i2c: E2 [16:42:21]MH_I2C_Read... [16:42:21]Read from MH i2c: E2 0E 00 [16:42:21]MH_I2C_Read... [16:42:21]Read from MH i2c: E2 0E 00 83 6D 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 3A [16:42:21]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [16:42:21]wFMCommunicate OK [16:42:21]SAM_PROTO_GetShiftState done [16:42:21]FM_GetShiftState done [16:42:21]opened in 1729989044 [16:42:21]opened+sec_in_day 1730075444 [16:42:21]quantity*price = 350062 [16:42:21]sum+1 = 350064 [16:42:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 3500.00 Внесено: 3500.00 СДАЧА: 0.00 НСП 1% : 30.98 НДС 12% : 371.75 Наличными: 3500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 213 27.10.2024 16:42 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156662 ФПД: 134080109420408 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T164228&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156662&fm=134080109420408&tin=02508201610067®Number=0000000000091693&sum=350000 [16:42:22]StoreToDocumentArchive [16:42:22]shift 537 fd 156662 [16:42:22]save to /storage/0537/doc_00156662 [16:42:22]save last doc name /storage/0537/doc_00156662 to /storage/kkm_last_doc_name [16:42:22]save OK [16:42:22]Clear old archive folders... [16:42:22]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:42:22]tlvbuf is B6F5B580 [16:42:22]SAM_PROTO_ClearQueue [16:42:22]wFMCommunicate request_size=4 [16:42:22]MH_SAM_APDU [16:42:22]CAPDU: 80 09 00 00 [16:42:22]Write to MH i2c: E2 08 00 90 6D 80 09 00 00 00 00 00 00 6F [16:42:22]Write i2c OK [16:42:22]MH_I2C_Read... [16:42:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:42:22]Read from MH i2c: E2 [16:42:22]MH_I2C_Read... [16:42:22]Read from MH i2c: E2 03 00 [16:42:22]MH_I2C_Read... [16:42:22]Read from MH i2c: E2 03 00 90 6D 00 90 00 71 [16:42:22]RAPDU: 90 00 [16:42:22]wFMCommunicate OK [16:42:22]SAM_PROTO_ClearQueue done [16:42:22]KKMCreateOFDPacket [16:42:22]OFDProtocolAddRootSTLVToBuf [16:42:22]FM_MakeSignedData [16:42:22]FM_MakeSignedData [16:42:22]SAM_PROTO_SignData [16:42:22]wFMCommunicate request_size=4 [16:42:22]MH_SAM_APDU [16:42:22]CAPDU: 80 0D 01 02 [16:42:22]Write to MH i2c: E2 08 00 91 6D 80 0D 01 02 00 00 00 00 77 [16:42:22]Write i2c OK [16:42:22]MH_I2C_Read... [16:42:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:42:22]Read from MH i2c: E2 [16:42:22]MH_I2C_Read... [16:42:22]Read from MH i2c: E2 03 00 [16:42:22]MH_I2C_Read... [16:42:22]Read from MH i2c: E2 03 00 91 6D 00 90 00 72 [16:42:22]RAPDU: 90 00 [16:42:22]wFMCommunicate OK [16:42:22]wFMCommunicate request_size=255 [16:42:22]MH_SAM_APDU [16:42:22]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 74 B3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6F 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 74 6D 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F6 63 02 00 35 04 06 00 79 F1 F5 4B [16:42:22]Write to MH i2c: E2 02 01 92 6D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 74 B3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6F 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 74 6D 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F6 63 02 00 35 04 06 00 79 F1 F5 4B 00 00 0D [16:42:22]Write i2c OK [16:42:22]MH_I2C_Read... [16:42:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:42:23]Read from MH i2c: E2 [16:42:23]MH_I2C_Read... [16:42:23]Read from MH i2c: E2 03 00 [16:42:23]MH_I2C_Read... [16:42:23]Read from MH i2c: E2 03 00 92 6D 00 90 00 73 [16:42:23]RAPDU: 90 00 [16:42:23]wFMCommunicate OK [16:42:23]wFMCommunicate request_size=7 [16:42:23]MH_SAM_APDU [16:42:23]CAPDU: 80 0D 02 02 02 1F 78 [16:42:23]Write to MH i2c: E2 0A 00 93 6D 80 0D 02 02 02 00 1F 78 00 00 15 [16:42:23]Write i2c OK [16:42:23]MH_I2C_Read... [16:42:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:42:23]Read from MH i2c: E2 [16:42:23]MH_I2C_Read... [16:42:23]Read from MH i2c: E2 03 00 [16:42:23]MH_I2C_Read... [16:42:23]Read from MH i2c: E2 03 00 93 6D 00 90 00 74 [16:42:23]RAPDU: 90 00 [16:42:23]wFMCommunicate OK [16:42:23]wFMCommunicate request_size=4 [16:42:23]MH_SAM_APDU [16:42:23]CAPDU: 80 0D 03 02 [16:42:23]Write to MH i2c: E2 08 00 94 6D 80 0D 03 02 00 00 00 00 7C [16:42:23]Write i2c OK [16:42:23]MH_I2C_Read... [16:42:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:42:23]Read from MH i2c: E2 [16:42:23]MH_I2C_Read... [16:42:23]Read from MH i2c: E2 0B 00 [16:42:23]MH_I2C_Read... [16:42:23]Read from MH i2c: E2 0B 00 94 6D 00 9C 60 36 81 BA 39 99 7C 90 00 38 [16:42:23]RAPDU: 9C 60 36 81 BA 39 99 7C 90 00 [16:42:23]wFMCommunicate OK [16:42:23]SAM_PROTO_SignData done [16:42:23]FM_MakeSignedData done [16:42:23]CreateOFDProtocolMessage [16:42:23]wFMCommunicate request_size=4 [16:42:23]MH_SAM_APDU [16:42:23]CAPDU: 80 11 00 00 [16:42:23]Write to MH i2c: E2 08 00 95 6D 80 11 00 00 00 00 00 00 7C [16:42:23]Write i2c OK [16:42:23]MH_I2C_Read... [16:42:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:42:23]Read from MH i2c: E2 [16:42:23]MH_I2C_Read... [16:42:23]Read from MH i2c: E2 17 00 [16:42:23]MH_I2C_Read... [16:42:23]Read from MH i2c: E2 17 00 95 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 D1 [16:42:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:42:23]wFMCommunicate OK [16:42:23]CreateOFDProtocolMessage done [16:42:23]OFDSenderStorePacket 156662 [16:42:23]StoreOFDPacket docnum=156662 [16:42:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 F2 EB 04 01 A7 55 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 74 B3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6F 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 74 6D 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F6 63 02 00 35 04 06 00 79 F1 F5 4B 1F 78 9C 60 36 81 BA 39 99 7C [16:42:23]CheckFolder [16:42:23]dirname=/storage/ofd_packets [16:42:23]CheckFolder done [16:42:23]ProducePacketName [16:42:23]name=ofd_packets/00156662 [16:42:23]NVStorageSaveData ofd_packets/00156662 [16:42:23]File name is /storage/ofd_packets/00156662 [16:42:23]Write 298 bytes [16:42:23]NVStorageSaveData done [16:42:23]OFDSenderStorePacket done [16:42:23]KKMCreateOFDPacket done [16:42:23]NVStorageSaveData kkm_last_timestamp [16:42:23]File name is /storage/kkm_last_timestamp [16:42:23]Write 4 bytes [16:42:23]NVStorageSaveData done [16:42:23]ExternCall_PrintAddStr [16:42:23]wPrintStart [16:42:23]Write to MH i2c: 01 00 00 96 6D 03 [16:42:23]Write i2c OK [16:42:23]MH_I2C_Read... [16:42:23]Read from MH i2c: 01 [16:42:23]MH_I2C_Read... [16:42:23]Read from MH i2c: 01 07 00 [16:42:23]MH_I2C_Read... [16:42:23]Read from MH i2c: 01 07 00 96 6D 00 00 00 00 00 FF 0F 18 [16:42:23]RasterBufferAndPrint [16:42:23]line Счет N : (1)99476 [16:42:23]line ИНН: 02508201610067 [16:42:23]line Контрольно-Кассовый Чек [16:42:23]line ПРОДАЖА [16:42:23]line ТРК (МРК, ГНК) : 32 [16:42:23]line Товар: 2710194210 [16:42:23]line ДТ-К-5 [16:42:23]line 45.940 * 76.20 [16:42:23]line = 3500.63 [16:42:23]line НДС 12% НСП 1% [16:42:23]line > о реализуемом товаре [16:42:23]line ОКРУГЛЕНИЕ: -0.63 [16:42:23]line ИТОГО: 3500.00 [16:42:23]line Внесено: 3500.00 [16:42:23]line СДАЧА: 0.00 [16:42:23]line НСП 1% : 30.98 [16:42:23]line НДС 12% : 371.75 [16:42:23]line Наличными: 3500.00 [16:42:23]line Безнал.: 0.00 [16:42:23]line Место: АЗС № 143 "Партнер Нефть" [16:42:23]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [16:42:23]line СНО: Общий режим [16:42:23]line Чек 213 27.10.2024 16:42 [16:42:23]line Смена: 537 ФФД: 1.0 [16:42:23]line ЗНМ: 0300000096 [16:42:23]line РНМ: 0000000000091693 [16:42:23]line Версия ККМ: 001 [16:42:23]line ФМ: 0000000000871792 [16:42:23]line ФД: 156662 [16:42:23]line ФПД: 134080109420408 [16:42:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T164228&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156662&fm=134080109420408&tin=02508201610067®Number=0000000000091693&sum=350000 [16:42:23]OFD Sender: Processing packet 156662 [packets to send 31, broken 30] [16:42:23]ProducePacketName [16:42:23]name=ofd_packets/00156662 [16:42:23]OFD Sender: To server: pG, [16:42:23]CommunicateWithHost lk.salyk.kg:30040 [16:42:23]ConnectInit lk.salyk.kg [16:42:23]written 0, free lines is 4095 [16:42:23]Connected sock=10 [16:42:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 F2 EB 04 01 A7 55 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 74 B3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6F 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 74 6D 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F6 63 02 00 35 04 06 00 79 F1 F5 4B 1F 78 9C 60 36 81 BA 39 99 7C [16:42:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 CC 9B 47 00 0A 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 31 37 39 32 10 04 04 00 F6 63 02 00 F4 03 04 00 E3 12 1E 67 B6 04 01 00 00 D6 EC 16 70 4F 76 7C BB [16:42:23]CommunicateWithHost err = 0 [16:42:23]CheckOFDResponse [16:42:23]1017 (14) - 77093643461234 [16:42:23]1041 (16) - 0000000000871792 [16:42:23]1040 (4) - 156662 [16:42:23]1012 (4) - 27.10.2024 10:16 [16:42:23]1206 (1) - 0 [16:42:23]OFD Sender: Remove packet 156662 [16:42:23]ProducePacketName [16:42:23]name=ofd_packets/00156662 [16:42:23]NVStorageDeleteData [16:42:24]Write to MH i2c: 01 00 00 C1 6D 2E [16:42:24]Write i2c OK [16:42:24]MH_I2C_Read... [16:42:24]Read from MH i2c: 01 [16:42:24]MH_I2C_Read... [16:42:24]Read from MH i2c: 01 07 00 [16:42:24]MH_I2C_Read... [16:42:24]Read from MH i2c: 01 07 00 C1 6D 00 00 00 00 00 E4 0C 25 [16:42:24]RasterBufferAndPrint [16:42:24]line [16:42:24]line [16:42:24]line [16:42:24]line [16:42:24]line [16:42:24]written 0, free lines is 3306 [16:42:24]process_action close_receipt done [16:42:24]requested_data is exist [16:42:24]produce_requested_data [16:42:24]requested_item fm.sn is exist - process it [16:42:24]wFMCommunicate request_size=4 [16:42:24]MH_SAM_APDU [16:42:24]CAPDU: 80 11 00 00 [16:42:24]Write to MH i2c: E2 08 00 C8 6D 80 11 00 00 00 00 00 00 AF [16:42:24]Write i2c OK [16:42:24]MH_I2C_Read... [16:42:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:42:24]Read from MH i2c: E2 [16:42:24]MH_I2C_Read... [16:42:24]Read from MH i2c: E2 17 00 [16:42:24]MH_I2C_Read... [16:42:24]Read from MH i2c: E2 17 00 C8 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 04 [16:42:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:42:24]wFMCommunicate OK [16:42:24]requested_item fd.num is exist - process it [16:42:24]SAM_PROTO_GetFieldsCounters [16:42:24]wFMCommunicate request_size=4 [16:42:24]MH_SAM_APDU [16:42:24]CAPDU: 80 13 00 00 [16:42:24]Write to MH i2c: E2 08 00 C9 6D 80 13 00 00 00 00 00 00 B2 [16:42:24]Write i2c OK [16:42:24]MH_I2C_Read... [16:42:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:42:24]Read from MH i2c: E2 [16:42:24]MH_I2C_Read... [16:42:24]Read from MH i2c: E2 62 00 [16:42:24]MH_I2C_Read... [16:42:24]Read from MH i2c: E2 62 00 C9 6D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F6 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 CD [16:42:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F6 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:42:24]wFMCommunicate OK [16:42:24]SAM_PROTO_GetFieldsCounters done [16:42:24]requested_item shift.num is exist - process it [16:42:24]requested_item shift.opened is exist - process it [16:42:24]req_shift_opened [16:42:24]FM_GetShiftState [16:42:24]SAM_PROTO_GetShiftState [16:42:24]wFMCommunicate request_size=4 [16:42:24]MH_SAM_APDU [16:42:24]CAPDU: 80 13 01 00 [16:42:24]Write to MH i2c: E2 08 00 CA 6D 80 13 01 00 00 00 00 00 B4 [16:42:24]Write i2c OK [16:42:24]MH_I2C_Read... [16:42:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:42:24]Read from MH i2c: E2 [16:42:24]MH_I2C_Read... [16:42:24]Read from MH i2c: E2 0E 00 [16:42:24]MH_I2C_Read... [16:42:24]Read from MH i2c: E2 0E 00 CA 6D 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 81 [16:42:24]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [16:42:24]wFMCommunicate OK [16:42:24]SAM_PROTO_GetShiftState done [16:42:24]FM_GetShiftState done [16:42:24]req_shift_opened done [16:42:24]requested_item shift.open_date is exist - process it [16:42:24]req_shift_open_date [16:42:24]req_shift_open_date done [16:42:24]produce_requested_data done [16:42:24]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156662,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [16:42:24]process_action_free close_receipt [16:42:24]json_value_free [16:42:24]json_value_free done [16:42:24]process_json_proto returns [16:42:24]Send response to host [16:42:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156662,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [16:42:24]free response buf [16:42:24]execute_script done [16:42:24]execute_script returns [16:42:24]free content buf [16:42:24]Sock 8.Close socket [16:42:24]Sock 8.Thread stoped [16:42:24]OFD Sender: No OFD packet to send [16:42:29]OFD Sender: No OFD packet to send [16:42:34]OFD Sender: No OFD packet to send [16:42:39]OFD Sender: No OFD packet to send [16:42:44]OFD Sender: No OFD packet to send [16:42:49]OFD Sender: No OFD packet to send [16:42:54]OFD Sender: No OFD packet to send [16:42:56]accept exits with 9 [16:42:56]New connection [16:42:56]New thread 3066977636 created [16:42:56]Thread 3066834276 joined [16:42:56]Waiting for new connection... [16:42:56] Sock 9.Parse request [16:42:56]Sock 9.Check first char [16:42:56]Sock 9.First char is OK [16:42:56]request: POST /json_proto HTTP/1.0 [16:42:56]Method: POST [16:42:56]URL: /json_proto [16:42:56]Method is POST - this is cgi request [16:42:56]url: /json_proto [16:42:56]query_string will be loaded in cgi processing [16:42:56]execute_cgi json_proto POST (null) [16:42:56]execute_cgi path=json_proto method=POST [16:42:56]POST find Content-Length [16:42:56]Host: 172.17.63.3:8080 [16:42:56]Content-Length: 676 [16:42:56]Content-Type: application/json [16:42:56] [16:42:56]POST finish read [16:42:56]Found Content-Length = 676 [16:42:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99477", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:42:56]execute_script... [16: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)99477", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:42:56]POST & json_proto [16:42:56]process_json_proto [16:42:56]json parsed OK: [16:42:56]protocol is kg_v1.0 [16:42:56]action value=close_receipt [16:42:56]process_action close_receipt [16:42:56]cmd_close_receipt [16:42:56]MH_GetDate [16:42:56]Write to MH i2c: F0 00 00 CB 6D 27 [16:42:56]Write i2c OK [16:42:56]MH_I2C_Read... [16:42:56]Read from MH i2c: F0 [16:42:56]MH_I2C_Read... [16:42:56]Read from MH i2c: F0 09 00 [16:42:56]MH_I2C_Read... [16:42:56]Read from MH i2c: F0 09 00 CB 6D 00 96 6D 1E 67 50 D1 6C 64 A9 [16:42:56]GetLastDocTimeStamp 1730047348 [16:42:56]current date 1730047382 [16:42:56]FM_GetShiftState [16:42:56]SAM_PROTO_GetShiftState [16:42:56]wFMCommunicate request_size=4 [16:42:56]MH_SAM_APDU [16:42:56]CAPDU: 80 13 01 00 [16:42:56]Write to MH i2c: E2 08 00 CC 6D 80 13 01 00 00 00 00 00 B6 [16:42:56]Write i2c OK [16:42:56]MH_I2C_Read... [16:42:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:42:56]Read from MH i2c: E2 [16:42:56]MH_I2C_Read... [16:42:56]Read from MH i2c: E2 0E 00 [16:42:56]MH_I2C_Read... [16:42:56]Read from MH i2c: E2 0E 00 CC 6D 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 83 [16:42:56]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [16:42:56]wFMCommunicate OK [16:42:56]SAM_PROTO_GetShiftState done [16:42:56]FM_GetShiftState done [16:42:56]opened in 1729989044 [16:42:56]opened+sec_in_day 1730075444 [16:42:56]quantity*price = 40006 [16:42:56]sum+1 = 40007 [16:42:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 214 27.10.2024 16:43 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156663 ФПД: 252278173953735 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T164302&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156663&fm=252278173953735&tin=02508201610067®Number=0000000000091693&sum=40000 [16:42:57]StoreToDocumentArchive [16:42:57]shift 537 fd 156663 [16:42:57]save to /storage/0537/doc_00156663 [16:42:57]save last doc name /storage/0537/doc_00156663 to /storage/kkm_last_doc_name [16:42:57]save OK [16:42:57]Clear old archive folders... [16:42:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:42:57]tlvbuf is 01735BA0 [16:42:57]SAM_PROTO_ClearQueue [16:42:57]wFMCommunicate request_size=4 [16:42:57]MH_SAM_APDU [16:42:57]CAPDU: 80 09 00 00 [16:42:57]Write to MH i2c: E2 08 00 D9 6D 80 09 00 00 00 00 00 00 B8 [16:42:57]Write i2c OK [16:42:57]MH_I2C_Read... [16:42:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:42:57]Read from MH i2c: E2 [16:42:57]MH_I2C_Read... [16:42:57]Read from MH i2c: E2 03 00 [16:42:57]MH_I2C_Read... [16:42:57]Read from MH i2c: E2 03 00 D9 6D 00 90 00 BA [16:42:57]RAPDU: 90 00 [16:42:57]wFMCommunicate OK [16:42:57]SAM_PROTO_ClearQueue done [16:42:57]KKMCreateOFDPacket [16:42:57]OFDProtocolAddRootSTLVToBuf [16:42:57]FM_MakeSignedData [16:42:57]FM_MakeSignedData [16:42:57]SAM_PROTO_SignData [16:42:57]wFMCommunicate request_size=4 [16:42:57]MH_SAM_APDU [16:42:57]CAPDU: 80 0D 01 02 [16:42:57]Write to MH i2c: E2 08 00 DA 6D 80 0D 01 02 00 00 00 00 C0 [16:42:57]Write i2c OK [16:42:57]MH_I2C_Read... [16:42:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:42:57]Read from MH i2c: E2 [16:42:57]MH_I2C_Read... [16:42:57]Read from MH i2c: E2 03 00 [16:42:57]MH_I2C_Read... [16:42:57]Read from MH i2c: E2 03 00 DA 6D 00 90 00 BB [16:42:57]RAPDU: 90 00 [16:42:57]wFMCommunicate OK [16:42:57]wFMCommunicate request_size=255 [16:42:57]MH_SAM_APDU [16: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 96 6D 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F7 63 02 00 35 04 06 00 E5 [16:42:57]Write to MH i2c: E2 02 01 DB 6D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 96 6D 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F7 63 02 00 35 04 06 00 E5 00 00 DD [16:42:57]Write i2c OK [16:42:57]MH_I2C_Read... [16:42:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:42:57]Read from MH i2c: E2 [16:42:57]MH_I2C_Read... [16:42:57]Read from MH i2c: E2 03 00 [16:42:57]MH_I2C_Read... [16:42:57]Read from MH i2c: E2 03 00 DB 6D 00 90 00 BC [16:42:57]RAPDU: 90 00 [16:42:57]wFMCommunicate OK [16:42:57]wFMCommunicate request_size=10 [16:42:57]MH_SAM_APDU [16:42:57]CAPDU: 80 0D 02 02 05 72 16 F1 6E C7 [16:42:57]Write to MH i2c: E2 0D 00 DC 6D 80 0D 02 02 05 00 72 16 F1 6E C7 00 00 7B [16:42:57]Write i2c OK [16:42:57]MH_I2C_Read... [16:42:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:42:57]Read from MH i2c: E2 [16:42:57]MH_I2C_Read... [16:42:57]Read from MH i2c: E2 03 00 [16:42:57]MH_I2C_Read... [16:42:57]Read from MH i2c: E2 03 00 DC 6D 00 90 00 BD [16:42:57]RAPDU: 90 00 [16:42:57]wFMCommunicate OK [16:42:57]wFMCommunicate request_size=4 [16:42:57]MH_SAM_APDU [16:42:57]CAPDU: 80 0D 03 02 [16:42:57]Write to MH i2c: E2 08 00 DD 6D 80 0D 03 02 00 00 00 00 C5 [16:42:57]Write i2c OK [16:42:57]MH_I2C_Read... [16:42:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:42:57]Read from MH i2c: E2 [16:42:57]MH_I2C_Read... [16:42:57]Read from MH i2c: E2 0B 00 [16:42:57]MH_I2C_Read... [16:42:57]Read from MH i2c: E2 0B 00 DD 6D 00 0D 0D DD 7D 79 F2 A4 1C 90 00 65 [16:42:57]RAPDU: 0D 0D DD 7D 79 F2 A4 1C 90 00 [16:42:57]wFMCommunicate OK [16:42:57]SAM_PROTO_SignData done [16:42:57]FM_MakeSignedData done [16:42:57]CreateOFDProtocolMessage [16:42:57]wFMCommunicate request_size=4 [16:42:57]MH_SAM_APDU [16:42:57]CAPDU: 80 11 00 00 [16:42:57]Write to MH i2c: E2 08 00 DE 6D 80 11 00 00 00 00 00 00 C5 [16:42:57]Write i2c OK [16:42:57]MH_I2C_Read... [16:42:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:42:57]Read from MH i2c: E2 [16:42:57]MH_I2C_Read... [16:42:57]Read from MH i2c: E2 17 00 [16:42:57]MH_I2C_Read... [16:42:57]Read from MH i2c: E2 17 00 DE 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 1A [16:42:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:42:57]wFMCommunicate OK [16:42:57]CreateOFDProtocolMessage done [16:42:57]OFDSenderStorePacket 156663 [16:42:57]StoreOFDPacket docnum=156663 [16:42:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 CE 27 07 01 2F 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 96 6D 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F7 63 02 00 35 04 06 00 E5 72 16 F1 6E C7 0D 0D DD 7D 79 F2 A4 1C [16:42:57]CheckFolder [16:42:57]dirname=/storage/ofd_packets [16:42:57]CheckFolder done [16:42:57]ProducePacketName [16:42:57]name=ofd_packets/00156663 [16:42:57]NVStorageSaveData ofd_packets/00156663 [16:42:57]File name is /storage/ofd_packets/00156663 [16:42:57]Write 301 bytes [16:42:57]NVStorageSaveData done [16:42:57]OFDSenderStorePacket done [16:42:57]KKMCreateOFDPacket done [16:42:57]NVStorageSaveData kkm_last_timestamp [16:42:57]File name is /storage/kkm_last_timestamp [16:42:57]Write 4 bytes [16:42:57]NVStorageSaveData done [16:42:57]OFD Sender: Processing packet 156663 [packets to send 31, broken 30] [16:42:57]ProducePacketName [16:42:57]name=ofd_packets/00156663 [16:42:57]OFD Sender: To server: pG, [16:42:57]CommunicateWithHost lk.salyk.kg:30040 [16:42:57]ConnectInit lk.salyk.kg [16:42:57]ExternCall_PrintAddStr [16:42:57]wPrintStart [16:42:57]Write to MH i2c: 01 00 00 DF 6D 4C [16:42:57]Write i2c OK [16:42:57]MH_I2C_Read... [16:42:57]Read from MH i2c: 01 [16:42:57]MH_I2C_Read... [16:42:57]Read from MH i2c: 01 07 00 [16:42:57]MH_I2C_Read... [16:42:57]Read from MH i2c: 01 07 00 DF 6D 00 00 00 00 00 FF 0F 61 [16:42:57]RasterBufferAndPrint [16:42:57]line Счет N : (1)99477 [16:42:57]line ИНН: 02508201610067 [16:42:57]line Контрольно-Кассовый Чек [16:42:57]line ПРОДАЖА [16:42:57]line ТРК (МРК, ГНК) : 11 [16:42:57]line Товар: 2710124130 [16:42:57]line Аи-92-К-5 [16:42:57]line 5.980 * 66.90 [16:42:57]line = 400.06 [16:42:57]line НДС 12% НСП 1% [16:42:57]line > о реализуемом товаре [16:42:57]line ОКРУГЛЕНИЕ: -0.06 [16:42:57]line ИТОГО: 400.00 [16:42:57]line Внесено: 400.00 [16:42:57]line СДАЧА: 0.00 [16:42:57]line НСП 1% : 3.54 [16:42:57]line НДС 12% : 42.48 [16:42:57]line Наличными: 400.00 [16:42:57]line Безнал.: 0.00 [16:42:57]line Место: АЗС № 143 "Партнер Нефть" [16:42:57]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [16:42:57]line СНО: Общий режим [16:42:57]line Чек 214 27.10.2024 16:43 [16:42:57]line Смена: 537 ФФД: 1.0 [16:42:57]line ЗНМ: 0300000096 [16:42:57]line РНМ: 0000000000091693 [16:42:57]line Версия ККМ: 001 [16:42:57]line ФМ: 0000000000871792 [16:42:57]line ФД: 156663 [16:42:57]line ФПД: 252278173953735 [16:42:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T164302&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156663&fm=252278173953735&tin=02508201610067®Number=0000000000091693&sum=40000 [16:42:58]Connected sock=11 [16: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 31 37 39 32 0F 01 00 00 CE 27 07 01 2F 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 96 6D 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F7 63 02 00 35 04 06 00 E5 72 16 F1 6E C7 0D 0D DD 7D 79 F2 A4 1C [16:42:58]written 0, free lines is 4095 [16:42:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 FC 73 47 00 9D 4D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F7 63 02 00 F4 03 04 00 05 13 1E 67 B6 04 01 00 00 E3 91 42 00 C8 40 22 0F [16:42:58]CommunicateWithHost err = 0 [16:42:58]CheckOFDResponse [16:42:58]1017 (14) - 77093643461234 [16:42:58]1041 (16) - 0000000000871792 [16:42:58]1040 (4) - 156663 [16:42:58]1012 (4) - 27.10.2024 10:16 [16:42:58]1206 (1) - 0 [16:42:58]OFD Sender: Remove packet 156663 [16:42:58]ProducePacketName [16:42:58]name=ofd_packets/00156663 [16:42:58]NVStorageDeleteData [16:42:58]Write to MH i2c: 01 00 00 0A 6E 78 [16:42:58]Write i2c OK [16:42:58]MH_I2C_Read... [16:42:58]Read from MH i2c: 01 [16:42:58]MH_I2C_Read... [16:42:58]Read from MH i2c: 01 07 00 [16:42:58]MH_I2C_Read... [16:42:58]Read from MH i2c: 01 07 00 0A 6E 00 00 00 00 00 D8 0C 63 [16:42:58]RasterBufferAndPrint [16:42:58]line [16:42:58]line [16:42:58]line [16:42:58]line [16:42:58]line [16:42:58]written 0, free lines is 3296 [16:42:58]process_action close_receipt done [16:42:58]requested_data is exist [16:42:58]produce_requested_data [16:42:58]requested_item fm.sn is exist - process it [16:42:58]wFMCommunicate request_size=4 [16:42:58]MH_SAM_APDU [16:42:58]CAPDU: 80 11 00 00 [16:42:58]Write to MH i2c: E2 08 00 11 6E 80 11 00 00 00 00 00 00 F9 [16:42:58]Write i2c OK [16:42:58]MH_I2C_Read... [16:42:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:42:58]Read from MH i2c: E2 [16:42:58]MH_I2C_Read... [16:42:58]Read from MH i2c: E2 17 00 [16:42:58]MH_I2C_Read... [16:42:58]Read from MH i2c: E2 17 00 11 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 4E [16:42:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:42:58]wFMCommunicate OK [16:42:58]requested_item fd.num is exist - process it [16:42:58]SAM_PROTO_GetFieldsCounters [16:42:58]wFMCommunicate request_size=4 [16:42:58]MH_SAM_APDU [16:42:58]CAPDU: 80 13 00 00 [16:42:58]Write to MH i2c: E2 08 00 12 6E 80 13 00 00 00 00 00 00 FC [16:42:58]Write i2c OK [16:42:58]MH_I2C_Read... [16:42:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:42:58]Read from MH i2c: E2 [16:42:58]MH_I2C_Read... [16:42:58]Read from MH i2c: E2 62 00 [16:42:58]MH_I2C_Read... [16:42:58]Read from MH i2c: E2 62 00 12 6E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F7 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 1B [16:42:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F7 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:42:58]wFMCommunicate OK [16:42:58]SAM_PROTO_GetFieldsCounters done [16:42:58]requested_item shift.num is exist - process it [16:42:58]requested_item shift.opened is exist - process it [16:42:58]req_shift_opened [16:42:58]FM_GetShiftState [16:42:58]SAM_PROTO_GetShiftState [16:42:58]wFMCommunicate request_size=4 [16:42:58]MH_SAM_APDU [16:42:58]CAPDU: 80 13 01 00 [16:42:58]Write to MH i2c: E2 08 00 13 6E 80 13 01 00 00 00 00 00 FE [16:42:58]Write i2c OK [16:42:58]MH_I2C_Read... [16:42:58]OFD Sender: No OFD packet to send [16:42:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:42:58]Read from MH i2c: E2 [16:42:58]MH_I2C_Read... [16:42:58]Read from MH i2c: E2 0E 00 [16:42:58]MH_I2C_Read... [16:42:58]Read from MH i2c: E2 0E 00 13 6E 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 CB [16:42:58]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [16:42:58]wFMCommunicate OK [16:42:58]SAM_PROTO_GetShiftState done [16:42:58]FM_GetShiftState done [16:42:58]req_shift_opened done [16:42:58]requested_item shift.open_date is exist - process it [16:42:58]req_shift_open_date [16:42:58]req_shift_open_date done [16:42:58]produce_requested_data done [16:42:58]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156663,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [16:42:58]process_action_free close_receipt [16:42:58]json_value_free [16:42:58]json_value_free done [16:42:58]process_json_proto returns [16:42:58]Send response to host [16:42:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156663,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [16:42:58]free response buf [16:42:58]execute_script done [16:42:58]execute_script returns [16:42:58]free content buf [16:42:58]Sock 9.Close socket [16:42:58]Sock 9.Thread stoped [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:54]OFD Sender: No OFD packet to send [16:43:59]OFD Sender: No OFD packet to send [16:44:04]OFD Sender: No OFD packet to send [16:44:09]OFD Sender: No OFD packet to send [16:44:14]OFD Sender: No OFD packet to send [16:44:19]OFD Sender: No OFD packet to send [16:44:24]OFD Sender: No OFD packet to send [16:44:29]OFD Sender: No OFD packet to send [16:44:34]OFD Sender: No OFD packet to send [16:44:39]OFD Sender: No OFD packet to send [16:44:41]accept exits with 8 [16:44:41]New connection [16:44:41]New thread 3066834276 created [16:44:41]Thread 3066977636 joined [16:44:41]Waiting for new connection... [16:44:41] Sock 8.Parse request [16:44:41]Sock 8.Check first char [16:44:41]Sock 8.First char is OK [16:44:41]request: POST /json_proto HTTP/1.0 [16:44:41]Method: POST [16:44:41]URL: /json_proto [16:44:41]Method is POST - this is cgi request [16:44:41]url: /json_proto [16:44:41]query_string will be loaded in cgi processing [16:44:41]execute_cgi json_proto POST (null) [16:44:41]execute_cgi path=json_proto method=POST [16:44:41]POST find Content-Length [16:44:41]Host: 172.17.63.3:8080 [16:44:41]Content-Length: 674 [16:44:41]Content-Type: application/json [16:44:41] [16:44:41]POST finish read [16:44:41]Found Content-Length = 674 [16:44:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99478", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "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:44:41]execute_script... [16:44: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)99478", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "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:44:41]POST & json_proto [16:44:41]process_json_proto [16:44:41]json parsed OK: [16:44:41]protocol is kg_v1.0 [16:44:41]action value=close_receipt [16:44:41]process_action close_receipt [16:44:41]cmd_close_receipt [16:44:41]MH_GetDate [16:44:41]Write to MH i2c: F0 00 00 14 6E 71 [16:44:41]Write i2c OK [16:44:41]MH_I2C_Read... [16:44:41]Read from MH i2c: F0 [16:44:41]MH_I2C_Read... [16:44:41]Read from MH i2c: F0 09 00 [16:44:41]MH_I2C_Read... [16:44:41]Read from MH i2c: F0 09 00 14 6E 00 00 6E 1E 67 50 D1 6C 64 5E [16:44:41]GetLastDocTimeStamp 1730047382 [16:44:41]current date 1730047488 [16:44:41]FM_GetShiftState [16:44:41]SAM_PROTO_GetShiftState [16:44:41]wFMCommunicate request_size=4 [16:44:41]MH_SAM_APDU [16:44:41]CAPDU: 80 13 01 00 [16:44:41]Write to MH i2c: E2 08 00 15 6E 80 13 01 00 00 00 00 00 00 [16:44:41]Write i2c OK [16:44:41]MH_I2C_Read... [16:44:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:44:41]Read from MH i2c: E2 [16:44:41]MH_I2C_Read... [16:44:41]Read from MH i2c: E2 0E 00 [16:44:41]MH_I2C_Read... [16:44:41]Read from MH i2c: E2 0E 00 15 6E 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 CD [16:44:41]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [16:44:41]wFMCommunicate OK [16:44:41]SAM_PROTO_GetShiftState done [16:44:41]FM_GetShiftState done [16:44:41]opened in 1729989044 [16:44:41]opened+sec_in_day 1730075444 [16:44:41]quantity*price = 80010 [16:44:41]sum+1 = 80011 [16:44:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 215 27.10.2024 16:44 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156664 ФПД: 236297888753542 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T164448&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156664&fm=236297888753542&tin=02508201610067®Number=0000000000091693&sum=80000 [16:44:42]StoreToDocumentArchive [16:44:42]shift 537 fd 156664 [16:44:42]save to /storage/0537/doc_00156664 [16:44:42]save last doc name /storage/0537/doc_00156664 to /storage/kkm_last_doc_name [16:44:42]save OK [16:44:42]Clear old archive folders... [16:44:42]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:44:42]tlvbuf is 01889590 [16:44:42]SAM_PROTO_ClearQueue [16:44:42]wFMCommunicate request_size=4 [16:44:42]MH_SAM_APDU [16:44:42]CAPDU: 80 09 00 00 [16:44:42]Write to MH i2c: E2 08 00 22 6E 80 09 00 00 00 00 00 00 02 [16:44:42]Write i2c OK [16:44:42]MH_I2C_Read... [16:44:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:44:43]Read from MH i2c: E2 [16:44:43]MH_I2C_Read... [16:44:43]Read from MH i2c: E2 03 00 [16:44:43]MH_I2C_Read... [16:44:43]Read from MH i2c: E2 03 00 22 6E 00 90 00 04 [16:44:43]RAPDU: 90 00 [16:44:43]wFMCommunicate OK [16:44:43]SAM_PROTO_ClearQueue done [16:44:43]KKMCreateOFDPacket [16:44:43]OFDProtocolAddRootSTLVToBuf [16:44:43]FM_MakeSignedData [16:44:43]FM_MakeSignedData [16:44:43]SAM_PROTO_SignData [16:44:43]wFMCommunicate request_size=4 [16:44:43]MH_SAM_APDU [16:44:43]CAPDU: 80 0D 01 02 [16:44:43]Write to MH i2c: E2 08 00 23 6E 80 0D 01 02 00 00 00 00 0A [16:44:43]Write i2c OK [16:44:43]MH_I2C_Read... [16:44:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:44:43]Read from MH i2c: E2 [16:44:43]MH_I2C_Read... [16:44:43]Read from MH i2c: E2 03 00 [16:44:43]MH_I2C_Read... [16:44:43]Read from MH i2c: E2 03 00 23 6E 00 90 00 05 [16:44:43]RAPDU: 90 00 [16:44:43]wFMCommunicate OK [16:44:43]wFMCommunicate request_size=255 [16:44:43]MH_SAM_APDU [16:44:43]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 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 D7 00 00 00 F4 03 04 00 00 6E 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F8 63 02 00 35 04 06 00 D6 E9 63 B8 [16:44:43]Write to MH i2c: E2 02 01 24 6E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 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 D7 00 00 00 F4 03 04 00 00 6E 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F8 63 02 00 35 04 06 00 D6 E9 63 B8 00 00 E3 [16:44:43]Write i2c OK [16:44:43]MH_I2C_Read... [16:44:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:44:43]Read from MH i2c: E2 [16:44:43]MH_I2C_Read... [16:44:43]Read from MH i2c: E2 03 00 [16:44:43]MH_I2C_Read... [16:44:43]Read from MH i2c: E2 03 00 24 6E 00 90 00 06 [16:44:43]RAPDU: 90 00 [16:44:43]wFMCommunicate OK [16:44:43]wFMCommunicate request_size=7 [16:44:43]MH_SAM_APDU [16:44:43]CAPDU: 80 0D 02 02 02 67 86 [16:44:43]Write to MH i2c: E2 0A 00 25 6E 80 0D 02 02 02 00 67 86 00 00 FE [16:44:43]Write i2c OK [16:44:43]MH_I2C_Read... [16:44:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:44:43]Read from MH i2c: E2 [16:44:43]MH_I2C_Read... [16:44:43]Read from MH i2c: E2 03 00 [16:44:43]MH_I2C_Read... [16:44:43]Read from MH i2c: E2 03 00 25 6E 00 90 00 07 [16:44:43]RAPDU: 90 00 [16:44:43]wFMCommunicate OK [16:44:43]wFMCommunicate request_size=4 [16:44:43]MH_SAM_APDU [16:44:43]CAPDU: 80 0D 03 02 [16:44:43]Write to MH i2c: E2 08 00 26 6E 80 0D 03 02 00 00 00 00 0F [16:44:43]Write i2c OK [16:44:43]MH_I2C_Read... [16:44:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:44:43]Read from MH i2c: E2 [16:44:43]MH_I2C_Read... [16:44:43]Read from MH i2c: E2 0B 00 [16:44:43]MH_I2C_Read... [16:44:43]Read from MH i2c: E2 0B 00 26 6E 00 3E E5 94 9D 33 B8 50 DD 90 00 7C [16:44:43]RAPDU: 3E E5 94 9D 33 B8 50 DD 90 00 [16:44:43]wFMCommunicate OK [16:44:43]SAM_PROTO_SignData done [16:44:43]FM_MakeSignedData done [16:44:43]CreateOFDProtocolMessage [16:44:43]wFMCommunicate request_size=4 [16:44:43]MH_SAM_APDU [16:44:43]CAPDU: 80 11 00 00 [16:44:43]Write to MH i2c: E2 08 00 27 6E 80 11 00 00 00 00 00 00 0F [16:44:43]Write i2c OK [16:44:43]MH_I2C_Read... [16:44:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:44:43]Read from MH i2c: E2 [16:44:43]MH_I2C_Read... [16:44:43]Read from MH i2c: E2 17 00 [16:44:43]MH_I2C_Read... [16:44:43]Read from MH i2c: E2 17 00 27 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 64 [16:44:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:44:43]wFMCommunicate OK [16:44:43]CreateOFDProtocolMessage done [16:44:43]OFDSenderStorePacket 156664 [16:44:43]StoreOFDPacket docnum=156664 [16:44:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 EB B3 04 01 14 2F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 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 D7 00 00 00 F4 03 04 00 00 6E 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F8 63 02 00 35 04 06 00 D6 E9 63 B8 67 86 3E E5 94 9D 33 B8 50 DD [16:44:43]CheckFolder [16:44:43]dirname=/storage/ofd_packets [16:44:43]CheckFolder done [16:44:43]ProducePacketName [16:44:43]name=ofd_packets/00156664 [16:44:43]NVStorageSaveData ofd_packets/00156664 [16:44:43]File name is /storage/ofd_packets/00156664 [16:44:43]Write 298 bytes [16:44:43]NVStorageSaveData done [16:44:43]OFDSenderStorePacket done [16:44:43]KKMCreateOFDPacket done [16:44:43]NVStorageSaveData kkm_last_timestamp [16:44:43]File name is /storage/kkm_last_timestamp [16:44:43]Write 4 bytes [16:44:43]NVStorageSaveData done [16:44:43]ExternCall_PrintAddStr [16:44:43]wPrintStart [16:44:43]Write to MH i2c: 01 00 00 28 6E 96 [16:44:43]Write i2c OK [16:44:43]MH_I2C_Read... [16:44:43]Read from MH i2c: 01 [16:44:43]MH_I2C_Read... [16:44:43]Read from MH i2c: 01 07 00 [16:44:43]MH_I2C_Read... [16:44:43]Read from MH i2c: 01 07 00 28 6E 00 00 00 00 00 FF 0F AB [16:44:43]RasterBufferAndPrint [16:44:43]line Счет N : (1)99478 [16:44:43]line ИНН: 02508201610067 [16:44:43]line Контрольно-Кассовый Чек [16:44:43]line ПРОДАЖА [16:44:43]line ТРК (МРК, ГНК) : 32 [16:44:43]line Товар: 2710194210 [16:44:43]line ДТ-К-5 [16:44:43]line 10.500 * 76.20 [16:44:43]line = 800.10 [16:44:43]line НДС 12% НСП 1% [16:44:43]line > о реализуемом товаре [16:44:43]line ОКРУГЛЕНИЕ: -0.10 [16:44:43]line ИТОГО: 800.00 [16:44:43]line Внесено: 800.00 [16:44:43]line СДАЧА: 0.00 [16:44:43]line НСП 1% : 7.08 [16:44:43]line НДС 12% : 84.97 [16:44:43]line Наличными: 800.00 [16:44:43]line Безнал.: 0.00 [16:44:43]line Место: АЗС № 143 "Партнер Нефть" [16:44:43]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [16:44:43]line СНО: Общий режим [16:44:43]line Чек 215 27.10.2024 16:44 [16:44:43]line Смена: 537 ФФД: 1.0 [16:44:43]line ЗНМ: 0300000096 [16:44:43]line РНМ: 0000000000091693 [16:44:43]line Версия ККМ: 001 [16:44:43]line ФМ: 0000000000871792 [16:44:43]line ФД: 156664 [16:44:43]line ФПД: 236297888753542 [16:44:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T164448&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156664&fm=236297888753542&tin=02508201610067®Number=0000000000091693&sum=80000 [16:44:43]OFD Sender: Processing packet 156664 [packets to send 31, broken 30] [16:44:43]ProducePacketName [16:44:43]name=ofd_packets/00156664 [16:44:43]OFD Sender: To server: pG, [16:44:43]CommunicateWithHost lk.salyk.kg:30040 [16:44:43]ConnectInit lk.salyk.kg [16:44:43]written 0, free lines is 4095 [16:44:43]Connected sock=10 [16:44:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 EB B3 04 01 14 2F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 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 D7 00 00 00 F4 03 04 00 00 6E 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F8 63 02 00 35 04 06 00 D6 E9 63 B8 67 86 3E E5 94 9D 33 B8 50 DD [16:44:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 2F FF 47 00 EB 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 31 37 39 32 10 04 04 00 F8 63 02 00 F4 03 04 00 6F 13 1E 67 B6 04 01 00 00 16 61 90 FF AC 32 98 D4 [16:44:44]CommunicateWithHost err = 0 [16:44:44]CheckOFDResponse [16:44:44]1017 (14) - 77093643461234 [16:44:44]1041 (16) - 0000000000871792 [16:44:44]1040 (4) - 156664 [16:44:44]1012 (4) - 27.10.2024 10:18 [16:44:44]1206 (1) - 0 [16:44:44]OFD Sender: Remove packet 156664 [16:44:44]ProducePacketName [16:44:44]name=ofd_packets/00156664 [16:44:44]NVStorageDeleteData [16:44:44]Write to MH i2c: 01 00 00 53 6E C1 [16:44:44]Write i2c OK [16:44:44]MH_I2C_Read... [16:44:44]Read from MH i2c: 01 [16:44:44]MH_I2C_Read... [16:44:44]Read from MH i2c: 01 07 00 [16:44:44]MH_I2C_Read... [16:44:44]Read from MH i2c: 01 07 00 53 6E 00 00 00 00 00 E7 0C BB [16:44:44]RasterBufferAndPrint [16:44:44]line [16:44:44]line [16:44:44]line [16:44:44]line [16:44:44]line [16:44:44]written 0, free lines is 3310 [16:44:44]process_action close_receipt done [16:44:44]requested_data is exist [16:44:44]produce_requested_data [16:44:44]requested_item fm.sn is exist - process it [16:44:44]wFMCommunicate request_size=4 [16:44:44]MH_SAM_APDU [16:44:44]CAPDU: 80 11 00 00 [16:44:44]Write to MH i2c: E2 08 00 5A 6E 80 11 00 00 00 00 00 00 42 [16:44:44]Write i2c OK [16:44:44]MH_I2C_Read... [16:44:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:44:44]Read from MH i2c: E2 [16:44:44]MH_I2C_Read... [16:44:44]Read from MH i2c: E2 17 00 [16:44:44]MH_I2C_Read... [16:44:44]Read from MH i2c: E2 17 00 5A 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 97 [16:44:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:44:44]wFMCommunicate OK [16:44:44]requested_item fd.num is exist - process it [16:44:44]SAM_PROTO_GetFieldsCounters [16:44:44]wFMCommunicate request_size=4 [16:44:44]MH_SAM_APDU [16:44:44]CAPDU: 80 13 00 00 [16:44:44]Write to MH i2c: E2 08 00 5B 6E 80 13 00 00 00 00 00 00 45 [16:44:44]Write i2c OK [16:44:44]MH_I2C_Read... [16:44:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:44:44]Read from MH i2c: E2 [16:44:44]MH_I2C_Read... [16:44:44]Read from MH i2c: E2 62 00 [16:44:44]MH_I2C_Read... [16:44:44]Read from MH i2c: E2 62 00 5B 6E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F8 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 68 [16:44: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F8 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:44:44]wFMCommunicate OK [16:44:44]SAM_PROTO_GetFieldsCounters done [16:44:44]requested_item shift.num is exist - process it [16:44:44]requested_item shift.opened is exist - process it [16:44:44]req_shift_opened [16:44:44]FM_GetShiftState [16:44:44]SAM_PROTO_GetShiftState [16:44:44]wFMCommunicate request_size=4 [16:44:44]MH_SAM_APDU [16:44:44]CAPDU: 80 13 01 00 [16:44:44]Write to MH i2c: E2 08 00 5C 6E 80 13 01 00 00 00 00 00 47 [16:44:44]Write i2c OK [16:44:44]MH_I2C_Read... [16:44:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:44:44]Read from MH i2c: E2 [16:44:44]MH_I2C_Read... [16:44:44]Read from MH i2c: E2 0E 00 [16:44:44]MH_I2C_Read... [16:44:44]Read from MH i2c: E2 0E 00 5C 6E 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 14 [16:44:44]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [16:44:44]wFMCommunicate OK [16:44:44]SAM_PROTO_GetShiftState done [16:44:44]FM_GetShiftState done [16:44:44]req_shift_opened done [16:44:44]requested_item shift.open_date is exist - process it [16:44:44]req_shift_open_date [16:44:44]req_shift_open_date done [16:44:44]produce_requested_data done [16:44:44]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156664,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [16:44:44]process_action_free close_receipt [16:44:44]json_value_free [16:44:44]json_value_free done [16:44:44]process_json_proto returns [16:44:44]Send response to host [16:44:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156664,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [16:44:44]free response buf [16:44:44]execute_script done [16:44:44]execute_script returns [16:44:44]free content buf [16:44:44]Sock 8.Close socket [16:44:44]Sock 8.Thread stoped [16:44:44]OFD Sender: No OFD packet to send [16:44:49]OFD Sender: No OFD packet to send [16:44:54]OFD Sender: No OFD packet to send [16:44:59]OFD Sender: No OFD packet to send [16:45:04]OFD Sender: No OFD packet to send [16:45:09]OFD Sender: No OFD packet to send [16:45:14]OFD Sender: No OFD packet to send [16:45:19]OFD Sender: No OFD packet to send [16:45:24]OFD Sender: No OFD packet to send [16:45:29]OFD Sender: No OFD packet to send [16:45:34]OFD Sender: No OFD packet to send [16:45:39]OFD Sender: No OFD packet to send [16:45:44]OFD Sender: No OFD packet to send [16:45:49]OFD Sender: No OFD packet to send [16:45:54]OFD Sender: No OFD packet to send [16:45:59]OFD Sender: No OFD packet to send [16:46:04]OFD Sender: No OFD packet to send [16:46:09]OFD Sender: No OFD packet to send [16:46:14]OFD Sender: No OFD packet to send [16:46:19]OFD Sender: No OFD packet to send [16:46:24]OFD Sender: No OFD packet to send [16:46:29]OFD Sender: No OFD packet to send [16:46:30]accept exits with 9 [16:46:30]New connection [16:46:30]New thread 3066977636 created [16:46:30]Thread 3066834276 joined [16:46:30]Waiting for new connection... [16:46:30] Sock 9.Parse request [16:46:30]Sock 9.Check first char [16:46:30]Sock 9.First char is OK [16:46:30]request: POST /json_proto HTTP/1.0 [16:46:30]Method: POST [16:46:30]URL: /json_proto [16:46:30]Method is POST - this is cgi request [16:46:30]url: /json_proto [16:46:30]query_string will be loaded in cgi processing [16:46:30]execute_cgi json_proto POST (null) [16:46:30]execute_cgi path=json_proto method=POST [16:46:30]POST find Content-Length [16:46:30]Host: 172.17.63.3:8080 [16:46:30]Content-Length: 676 [16:46:30]Content-Type: application/json [16:46:30] [16:46:30]POST finish read [16:46:30]Found Content-Length = 676 [16:46:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99479", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "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" ] } } [16:46:30]execute_script... [16:46: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)99479", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "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" ] } } [16:46:30]POST & json_proto [16:46:30]process_json_proto [16:46:30]json parsed OK: [16:46:30]protocol is kg_v1.0 [16:46:30]action value=close_receipt [16:46:30]process_action close_receipt [16:46:30]cmd_close_receipt [16:46:30]MH_GetDate [16:46:30]Write to MH i2c: F0 00 00 5D 6E BA [16:46:30]Write i2c OK [16:46:30]MH_I2C_Read... [16:46:30]Read from MH i2c: F0 [16:46:30]MH_I2C_Read... [16:46:30]Read from MH i2c: F0 09 00 [16:46:30]MH_I2C_Read... [16:46:30]Read from MH i2c: F0 09 00 5D 6E 00 6D 6E 1E 67 50 D1 6C 64 14 [16:46:30]GetLastDocTimeStamp 1730047488 [16:46:30]current date 1730047597 [16:46:30]FM_GetShiftState [16:46:30]SAM_PROTO_GetShiftState [16:46:30]wFMCommunicate request_size=4 [16:46:30]MH_SAM_APDU [16:46:30]CAPDU: 80 13 01 00 [16:46:30]Write to MH i2c: E2 08 00 5E 6E 80 13 01 00 00 00 00 00 49 [16:46:30]Write i2c OK [16:46:30]MH_I2C_Read... [16:46:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:46:30]Read from MH i2c: E2 [16:46:30]MH_I2C_Read... [16:46:30]Read from MH i2c: E2 0E 00 [16:46:30]MH_I2C_Read... [16:46:30]Read from MH i2c: E2 0E 00 5E 6E 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 16 [16:46:30]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [16:46:30]wFMCommunicate OK [16:46:30]SAM_PROTO_GetShiftState done [16:46:30]FM_GetShiftState done [16:46:30]opened in 1729989044 [16:46:30]opened+sec_in_day 1730075444 [16:46:30]quantity*price = 20003 [16:46:30]sum+1 = 20004 [16:46:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 216 27.10.2024 16:46 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156665 ФПД: 258039082364865 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T164637&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156665&fm=258039082364865&tin=02508201610067®Number=0000000000091693&sum=20000 [16:46:31]StoreToDocumentArchive [16:46:31]shift 537 fd 156665 [16:46:31]save to /storage/0537/doc_00156665 [16:46:31]save last doc name /storage/0537/doc_00156665 to /storage/kkm_last_doc_name [16:46:31]save OK [16:46:31]Clear old archive folders... [16:46:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:46:31]tlvbuf is 0189D6A0 [16:46:31]SAM_PROTO_ClearQueue [16:46:31]wFMCommunicate request_size=4 [16:46:31]MH_SAM_APDU [16:46:31]CAPDU: 80 09 00 00 [16:46:31]Write to MH i2c: E2 08 00 6B 6E 80 09 00 00 00 00 00 00 4B [16:46:31]Write i2c OK [16:46:31]MH_I2C_Read... [16:46:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:46:32]Read from MH i2c: E2 [16:46:32]MH_I2C_Read... [16:46:32]Read from MH i2c: E2 03 00 [16:46:32]MH_I2C_Read... [16:46:32]Read from MH i2c: E2 03 00 6B 6E 00 90 00 4D [16:46:32]RAPDU: 90 00 [16:46:32]wFMCommunicate OK [16:46:32]SAM_PROTO_ClearQueue done [16:46:32]KKMCreateOFDPacket [16:46:32]OFDProtocolAddRootSTLVToBuf [16:46:32]FM_MakeSignedData [16:46:32]FM_MakeSignedData [16:46:32]SAM_PROTO_SignData [16:46:32]wFMCommunicate request_size=4 [16:46:32]MH_SAM_APDU [16:46:32]CAPDU: 80 0D 01 02 [16:46:32]Write to MH i2c: E2 08 00 6C 6E 80 0D 01 02 00 00 00 00 53 [16:46:32]Write i2c OK [16:46:32]MH_I2C_Read... [16:46:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:46:32]Read from MH i2c: E2 [16:46:32]MH_I2C_Read... [16:46:32]Read from MH i2c: E2 03 00 [16:46:32]MH_I2C_Read... [16:46:32]Read from MH i2c: E2 03 00 6C 6E 00 90 00 4E [16:46:32]RAPDU: 90 00 [16:46:32]wFMCommunicate OK [16:46:32]wFMCommunicate request_size=255 [16:46:32]MH_SAM_APDU [16:46: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 D8 00 00 00 F4 03 04 00 6D 6E 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F9 63 02 00 35 04 06 00 EA [16:46:32]Write to MH i2c: E2 02 01 6D 6E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 D8 00 00 00 F4 03 04 00 6D 6E 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F9 63 02 00 35 04 06 00 EA 00 00 44 [16:46:32]Write i2c OK [16:46:32]MH_I2C_Read... [16:46:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:46:32]Read from MH i2c: E2 [16:46:32]MH_I2C_Read... [16:46:32]Read from MH i2c: E2 03 00 [16:46:32]MH_I2C_Read... [16:46:32]Read from MH i2c: E2 03 00 6D 6E 00 90 00 4F [16:46:32]RAPDU: 90 00 [16:46:32]wFMCommunicate OK [16:46:32]wFMCommunicate request_size=10 [16:46:32]MH_SAM_APDU [16:46:32]CAPDU: 80 0D 02 02 05 AF 67 D7 AF C1 [16:46:32]Write to MH i2c: E2 0D 00 6E 6E 80 0D 02 02 05 00 AF 67 D7 AF C1 00 00 BD [16:46:32]Write i2c OK [16:46:32]MH_I2C_Read... [16:46:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:46:32]Read from MH i2c: E2 [16:46:32]MH_I2C_Read... [16:46:32]Read from MH i2c: E2 03 00 [16:46:32]MH_I2C_Read... [16:46:32]Read from MH i2c: E2 03 00 6E 6E 00 90 00 50 [16:46:32]RAPDU: 90 00 [16:46:32]wFMCommunicate OK [16:46:32]wFMCommunicate request_size=4 [16:46:32]MH_SAM_APDU [16:46:32]CAPDU: 80 0D 03 02 [16:46:32]Write to MH i2c: E2 08 00 6F 6E 80 0D 03 02 00 00 00 00 58 [16:46:32]Write i2c OK [16:46:32]MH_I2C_Read... [16:46:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:46:32]Read from MH i2c: E2 [16:46:32]MH_I2C_Read... [16:46:32]Read from MH i2c: E2 0B 00 [16:46:32]MH_I2C_Read... [16:46:32]Read from MH i2c: E2 0B 00 6F 6E 00 B2 52 20 79 52 19 52 8A 90 00 3D [16:46:32]RAPDU: B2 52 20 79 52 19 52 8A 90 00 [16:46:32]wFMCommunicate OK [16:46:32]SAM_PROTO_SignData done [16:46:32]FM_MakeSignedData done [16:46:32]CreateOFDProtocolMessage [16:46:32]wFMCommunicate request_size=4 [16:46:32]MH_SAM_APDU [16:46:32]CAPDU: 80 11 00 00 [16:46:32]Write to MH i2c: E2 08 00 70 6E 80 11 00 00 00 00 00 00 58 [16:46:32]Write i2c OK [16:46:32]MH_I2C_Read... [16:46:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:46:32]Read from MH i2c: E2 [16:46:32]MH_I2C_Read... [16:46:32]Read from MH i2c: E2 17 00 [16:46:32]MH_I2C_Read... [16:46:32]Read from MH i2c: E2 17 00 70 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 AD [16:46:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:46:32]wFMCommunicate OK [16:46:32]CreateOFDProtocolMessage done [16:46:32]OFDSenderStorePacket 156665 [16:46:32]StoreOFDPacket docnum=156665 [16:46:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 5D 12 07 01 39 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 D8 00 00 00 F4 03 04 00 6D 6E 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F9 63 02 00 35 04 06 00 EA AF 67 D7 AF C1 B2 52 20 79 52 19 52 8A [16:46:32]CheckFolder [16:46:32]dirname=/storage/ofd_packets [16:46:32]CheckFolder done [16:46:32]ProducePacketName [16:46:32]name=ofd_packets/00156665 [16:46:32]NVStorageSaveData ofd_packets/00156665 [16:46:32]File name is /storage/ofd_packets/00156665 [16:46:32]Write 301 bytes [16:46:32]NVStorageSaveData done [16:46:32]OFDSenderStorePacket done [16:46:32]KKMCreateOFDPacket done [16:46:32]NVStorageSaveData kkm_last_timestamp [16:46:32]File name is /storage/kkm_last_timestamp [16:46:32]Write 4 bytes [16:46:32]NVStorageSaveData done [16:46:32]ExternCall_PrintAddStr [16:46:32]wPrintStart [16:46:32]Write to MH i2c: 01 00 00 71 6E DF [16:46:32]Write i2c OK [16:46:32]MH_I2C_Read... [16:46:32]Read from MH i2c: 01 [16:46:32]MH_I2C_Read... [16:46:32]Read from MH i2c: 01 07 00 [16:46:32]MH_I2C_Read... [16:46:32]Read from MH i2c: 01 07 00 71 6E 00 00 00 00 00 FF 0F F4 [16:46:32]RasterBufferAndPrint [16:46:32]line Счет N : (1)99479 [16:46:32]line ИНН: 02508201610067 [16:46:32]line Контрольно-Кассовый Чек [16:46:32]line ПРОДАЖА [16:46:32]line ТРК (МРК, ГНК) : 11 [16:46:32]line Товар: 2710124130 [16:46:32]line Аи-92-К-5 [16:46:32]line 2.990 * 66.90 [16:46:32]line = 200.03 [16:46:32]line НДС 12% НСП 1% [16:46:32]line > о реализуемом товаре [16:46:32]line ОКРУГЛЕНИЕ: -0.03 [16:46:32]line ИТОГО: 200.00 [16:46:32]line Внесено: 200.00 [16:46:32]line СДАЧА: 0.00 [16:46:32]line НСП 1% : 1.77 [16:46:32]line НДС 12% : 21.24 [16:46:32]line Наличными: 200.00 [16:46:32]line Безнал.: 0.00 [16:46:32]line Место: АЗС № 143 "Партнер Нефть" [16:46:32]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [16:46:32]line СНО: Общий режим [16:46:32]line Чек 216 27.10.2024 16:46 [16:46:32]line Смена: 537 ФФД: 1.0 [16:46:32]line ЗНМ: 0300000096 [16:46:32]line РНМ: 0000000000091693 [16:46:32]line Версия ККМ: 001 [16:46:32]line ФМ: 0000000000871792 [16:46:32]line ФД: 156665 [16:46:32]line ФПД: 258039082364865 [16:46:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T164637&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156665&fm=258039082364865&tin=02508201610067®Number=0000000000091693&sum=20000 [16:46:32]written 0, free lines is 4095 [16:46:32]OFD Sender: Processing packet 156665 [packets to send 31, broken 30] [16:46:32]ProducePacketName [16:46:32]name=ofd_packets/00156665 [16:46:32]OFD Sender: To server: pG, [16:46:32]CommunicateWithHost lk.salyk.kg:30040 [16:46:32]ConnectInit lk.salyk.kg [16:46:32]Connected sock=8 [16:46:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 5D 12 07 01 39 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 D8 00 00 00 F4 03 04 00 6D 6E 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F9 63 02 00 35 04 06 00 EA AF 67 D7 AF C1 B2 52 20 79 52 19 52 8A [16:46:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 67 35 47 00 E4 FF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 F9 63 02 00 F4 03 04 00 DC 13 1E 67 B6 04 01 00 00 9C 30 68 7F 62 EA 89 A9 [16:46:32]CommunicateWithHost err = 0 [16:46:32]CheckOFDResponse [16:46:32]1017 (14) - 77093643461234 [16:46:32]1041 (16) - 0000000000871792 [16:46:32]1040 (4) - 156665 [16:46:32]1012 (4) - 27.10.2024 10:20 [16:46:32]1206 (1) - 0 [16:46:32]OFD Sender: Remove packet 156665 [16:46:32]ProducePacketName [16:46:32]name=ofd_packets/00156665 [16:46:32]NVStorageDeleteData [16:46:33]Write to MH i2c: 01 00 00 9C 6E 0A [16:46:33]Write i2c OK [16:46:33]MH_I2C_Read... [16:46:33]Read from MH i2c: 01 [16:46:33]MH_I2C_Read... [16:46:33]Read from MH i2c: 01 07 00 [16:46:33]MH_I2C_Read... [16:46:33]Read from MH i2c: 01 07 00 9C 6E 00 00 00 00 00 EB 0C 08 [16:46:33]RasterBufferAndPrint [16:46:33]line [16:46:33]line [16:46:33]line [16:46:33]line [16:46:33]line [16:46:33]written 0, free lines is 3313 [16:46:33]process_action close_receipt done [16:46:33]requested_data is exist [16:46:33]produce_requested_data [16:46:33]requested_item fm.sn is exist - process it [16:46:33]wFMCommunicate request_size=4 [16:46:33]MH_SAM_APDU [16:46:33]CAPDU: 80 11 00 00 [16:46:33]Write to MH i2c: E2 08 00 A3 6E 80 11 00 00 00 00 00 00 8B [16:46:33]Write i2c OK [16:46:33]MH_I2C_Read... [16:46:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:46:33]Read from MH i2c: E2 [16:46:33]MH_I2C_Read... [16:46:33]Read from MH i2c: E2 17 00 [16:46:33]MH_I2C_Read... [16:46:33]Read from MH i2c: E2 17 00 A3 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 E0 [16:46:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:46:33]wFMCommunicate OK [16:46:33]requested_item fd.num is exist - process it [16:46:33]SAM_PROTO_GetFieldsCounters [16:46:33]wFMCommunicate request_size=4 [16:46:33]MH_SAM_APDU [16:46:33]CAPDU: 80 13 00 00 [16:46:33]Write to MH i2c: E2 08 00 A4 6E 80 13 00 00 00 00 00 00 8E [16:46:33]Write i2c OK [16:46:33]MH_I2C_Read... [16:46:33]Read from MH i2c: E2 [16:46:33]MH_I2C_Read... [16:46:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:46:33]Read from MH i2c: E2 62 00 [16:46:33]MH_I2C_Read... [16:46:33]Read from MH i2c: E2 62 00 A4 6E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F9 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 B5 [16:46:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 F9 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:46:33]wFMCommunicate OK [16:46:33]SAM_PROTO_GetFieldsCounters done [16:46:33]requested_item shift.num is exist - process it [16:46:33]requested_item shift.opened is exist - process it [16:46:33]req_shift_opened [16:46:33]FM_GetShiftState [16:46:33]SAM_PROTO_GetShiftState [16:46:33]wFMCommunicate request_size=4 [16:46:33]MH_SAM_APDU [16:46:33]CAPDU: 80 13 01 00 [16:46:33]Write to MH i2c: E2 08 00 A5 6E 80 13 01 00 00 00 00 00 90 [16:46:33]Write i2c OK [16:46:33]MH_I2C_Read... [16:46:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:46:33]Read from MH i2c: E2 [16:46:33]MH_I2C_Read... [16:46:33]Read from MH i2c: E2 0E 00 [16:46:33]MH_I2C_Read... [16:46:33]Read from MH i2c: E2 0E 00 A5 6E 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 5D [16:46:33]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [16:46:33]wFMCommunicate OK [16:46:33]SAM_PROTO_GetShiftState done [16:46:33]FM_GetShiftState done [16:46:33]req_shift_opened done [16:46:33]requested_item shift.open_date is exist - process it [16:46:33]req_shift_open_date [16:46:33]req_shift_open_date done [16:46:33]produce_requested_data done [16:46:33]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156665,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [16:46:33]process_action_free close_receipt [16:46:33]json_value_free [16:46:33]json_value_free done [16:46:33]process_json_proto returns [16:46:33]Send response to host [16:46:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156665,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [16:46:33]free response buf [16:46:33]execute_script done [16:46:33]execute_script returns [16:46:33]free content buf [16:46:33]Sock 9.Close socket [16:46:33]Sock 9.Thread stoped [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:15]accept exits with 10 [16:53:15]New connection [16:53:15]New thread 3066834276 created [16:53:15]Thread 3066977636 joined [16:53:15]Waiting for new connection... [16:53:15] Sock 10.Parse request [16:53:15]Sock 10.Check first char [16:53:15]Sock 10.First char is OK [16:53:15]request: POST /json_proto HTTP/1.0 [16:53:15]Method: POST [16:53:15]URL: /json_proto [16:53:15]Method is POST - this is cgi request [16:53:15]url: /json_proto [16:53:15]query_string will be loaded in cgi processing [16:53:15]execute_cgi json_proto POST (null) [16:53:15]execute_cgi path=json_proto method=POST [16:53:15]POST find Content-Length [16:53:15]Host: 172.17.63.3:8080 [16:53:15]Content-Length: 676 [16:53:15]Content-Type: application/json [16:53:15] [16:53:15]POST finish read [16:53:15]Found Content-Length = 676 [16:53:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99480", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.180, "sum" : 480.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 480.00, "total" : 480.00, "payments": [ { "type": 0, "sum" : 480.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:53:15]execute_script... [16:53: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)99480", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.180, "sum" : 480.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 480.00, "total" : 480.00, "payments": [ { "type": 0, "sum" : 480.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:53:15]POST & json_proto [16:53:15]process_json_proto [16:53:15]json parsed OK: [16:53:15]protocol is kg_v1.0 [16:53:15]action value=close_receipt [16:53:15]process_action close_receipt [16:53:15]cmd_close_receipt [16:53:15]MH_GetDate [16:53:15]Write to MH i2c: F0 00 00 A6 6E 03 [16:53:15]Write i2c OK [16:53:15]MH_I2C_Read... [16:53:15]Read from MH i2c: F0 [16:53:15]MH_I2C_Read... [16:53:15]Read from MH i2c: F0 09 00 [16:53:15]MH_I2C_Read... [16:53:15]Read from MH i2c: F0 09 00 A6 6E 00 01 70 1E 67 50 D1 6C 64 F3 [16:53:15]GetLastDocTimeStamp 1730047597 [16:53:15]current date 1730048001 [16:53:15]FM_GetShiftState [16:53:15]SAM_PROTO_GetShiftState [16:53:15]wFMCommunicate request_size=4 [16:53:15]MH_SAM_APDU [16:53:15]CAPDU: 80 13 01 00 [16:53:15]Write to MH i2c: E2 08 00 A7 6E 80 13 01 00 00 00 00 00 92 [16:53:15]Write i2c OK [16:53:15]MH_I2C_Read... [16:53:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:53:15]Read from MH i2c: E2 [16:53:15]MH_I2C_Read... [16:53:15]Read from MH i2c: E2 0E 00 [16:53:15]MH_I2C_Read... [16:53:15]Read from MH i2c: E2 0E 00 A7 6E 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 5F [16:53:15]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [16:53:15]wFMCommunicate OK [16:53:15]SAM_PROTO_GetShiftState done [16:53:15]FM_GetShiftState done [16:53:15]opened in 1729989044 [16:53:15]opened+sec_in_day 1730075444 [16:53:15]quantity*price = 48034 [16:53:15]sum+1 = 48035 [16:53:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 480.00 Внесено: 480.00 СДАЧА: 0.00 НСП 1% : 4.25 НДС 12% : 51.01 Наличными: 480.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 217 27.10.2024 16:53 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156666 ФПД: 29938830230729 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T165321&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156666&fm=29938830230729&tin=02508201610067®Number=0000000000091693&sum=48000 [16:53:16]StoreToDocumentArchive [16:53:16]shift 537 fd 156666 [16:53:16]save to /storage/0537/doc_00156666 [16:53:16]save last doc name /storage/0537/doc_00156666 to /storage/kkm_last_doc_name [16:53:16]save OK [16:53:16]Clear old archive folders... [16:53:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:53:16]tlvbuf is 01878860 [16:53:16]SAM_PROTO_ClearQueue [16:53:16]wFMCommunicate request_size=4 [16:53:16]MH_SAM_APDU [16:53:16]CAPDU: 80 09 00 00 [16:53:16]Write to MH i2c: E2 08 00 B4 6E 80 09 00 00 00 00 00 00 94 [16:53:16]Write i2c OK [16:53:16]MH_I2C_Read... [16:53:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:53:16]Read from MH i2c: E2 [16:53:16]MH_I2C_Read... [16:53:16]Read from MH i2c: E2 03 00 [16:53:16]MH_I2C_Read... [16:53:16]Read from MH i2c: E2 03 00 B4 6E 00 90 00 96 [16:53:16]RAPDU: 90 00 [16:53:16]wFMCommunicate OK [16:53:16]SAM_PROTO_ClearQueue done [16:53:16]KKMCreateOFDPacket [16:53:16]OFDProtocolAddRootSTLVToBuf [16:53:16]FM_MakeSignedData [16:53:16]FM_MakeSignedData [16:53:16]SAM_PROTO_SignData [16:53:16]wFMCommunicate request_size=4 [16:53:16]MH_SAM_APDU [16:53:16]CAPDU: 80 0D 01 02 [16:53:16]Write to MH i2c: E2 08 00 B5 6E 80 0D 01 02 00 00 00 00 9C [16:53:16]Write i2c OK [16:53:16]MH_I2C_Read... [16:53:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:53:16]Read from MH i2c: E2 [16:53:16]MH_I2C_Read... [16:53:16]Read from MH i2c: E2 03 00 [16:53:16]MH_I2C_Read... [16:53:16]Read from MH i2c: E2 03 00 B5 6E 00 90 00 97 [16:53:16]RAPDU: 90 00 [16:53:16]wFMCommunicate OK [16:53:16]wFMCommunicate request_size=255 [16:53:16]MH_SAM_APDU [16:53:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 1C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A2 BB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 BB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED 13 00 00 00 00 07 04 06 00 80 BB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 01 70 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FA 63 02 00 35 04 06 00 1B [16:53:16]Write to MH i2c: E2 02 01 B6 6E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 1C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A2 BB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 BB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED 13 00 00 00 00 07 04 06 00 80 BB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 01 70 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FA 63 02 00 35 04 06 00 1B 00 00 F0 [16:53:16]Write i2c OK [16:53:16]MH_I2C_Read... [16:53:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:53:16]Read from MH i2c: E2 [16:53:16]MH_I2C_Read... [16:53:16]Read from MH i2c: E2 03 00 [16:53:16]MH_I2C_Read... [16:53:16]Read from MH i2c: E2 03 00 B6 6E 00 90 00 98 [16:53:16]RAPDU: 90 00 [16:53:16]wFMCommunicate OK [16:53:16]wFMCommunicate request_size=10 [16:53:16]MH_SAM_APDU [16:53:16]CAPDU: 80 0D 02 02 05 3A AD 57 44 C9 [16:53:16]Write to MH i2c: E2 0D 00 B7 6E 80 0D 02 02 05 00 3A AD 57 44 C9 00 00 F4 [16:53:16]Write i2c OK [16:53:16]MH_I2C_Read... [16:53:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:53:16]Read from MH i2c: E2 [16:53:16]MH_I2C_Read... [16:53:16]Read from MH i2c: E2 03 00 [16:53:16]MH_I2C_Read... [16:53:16]Read from MH i2c: E2 03 00 B7 6E 00 90 00 99 [16:53:16]RAPDU: 90 00 [16:53:16]wFMCommunicate OK [16:53:16]wFMCommunicate request_size=4 [16:53:16]MH_SAM_APDU [16:53:16]CAPDU: 80 0D 03 02 [16:53:16]Write to MH i2c: E2 08 00 B8 6E 80 0D 03 02 00 00 00 00 A1 [16:53:16]Write i2c OK [16:53:16]MH_I2C_Read... [16:53:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:53:16]Read from MH i2c: E2 [16:53:16]MH_I2C_Read... [16:53:16]Read from MH i2c: E2 0B 00 [16:53:16]MH_I2C_Read... [16:53:16]Read from MH i2c: E2 0B 00 B8 6E 00 A6 B0 D1 EA 9D 18 5D 8B 90 00 50 [16:53:16]RAPDU: A6 B0 D1 EA 9D 18 5D 8B 90 00 [16:53:16]wFMCommunicate OK [16:53:16]SAM_PROTO_SignData done [16:53:16]FM_MakeSignedData done [16:53:16]CreateOFDProtocolMessage [16:53:16]wFMCommunicate request_size=4 [16:53:16]MH_SAM_APDU [16:53:16]CAPDU: 80 11 00 00 [16:53:16]Write to MH i2c: E2 08 00 B9 6E 80 11 00 00 00 00 00 00 A1 [16:53:16]Write i2c OK [16:53:16]MH_I2C_Read... [16:53:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:53:16]Read from MH i2c: E2 [16:53:16]MH_I2C_Read... [16:53:16]Read from MH i2c: E2 17 00 [16:53:16]MH_I2C_Read... [16:53:16]Read from MH i2c: E2 17 00 B9 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 F6 [16:53:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:53:16]wFMCommunicate OK [16:53:16]CreateOFDProtocolMessage done [16:53:16]OFDSenderStorePacket 156666 [16:53:16]StoreOFDPacket docnum=156666 [16:53:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 58 1D 07 01 F7 64 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 1C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A2 BB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 BB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED 13 00 00 00 00 07 04 06 00 80 BB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 01 70 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FA 63 02 00 35 04 06 00 1B 3A AD 57 44 C9 A6 B0 D1 EA 9D 18 5D 8B [16:53:16]CheckFolder [16:53:16]dirname=/storage/ofd_packets [16:53:16]CheckFolder done [16:53:16]ProducePacketName [16:53:16]name=ofd_packets/00156666 [16:53:16]NVStorageSaveData ofd_packets/00156666 [16:53:16]File name is /storage/ofd_packets/00156666 [16:53:16]Write 301 bytes [16:53:16]NVStorageSaveData done [16:53:16]OFDSenderStorePacket done [16:53:16]KKMCreateOFDPacket done [16:53:16]NVStorageSaveData kkm_last_timestamp [16:53:16]File name is /storage/kkm_last_timestamp [16:53:16]Write 4 bytes [16:53:16]NVStorageSaveData done [16:53:16]ExternCall_PrintAddStr [16:53:16]wPrintStart [16:53:16]Write to MH i2c: 01 00 00 BA 6E 28 [16:53:16]Write i2c OK [16:53:16]MH_I2C_Read... [16:53:16]Read from MH i2c: 01 [16:53:16]MH_I2C_Read... [16:53:16]Read from MH i2c: 01 07 00 [16:53:16]MH_I2C_Read... [16:53:16]Read from MH i2c: 01 07 00 BA 6E 00 00 00 00 00 FF 0F 3D [16:53:16]RasterBufferAndPrint [16:53:16]line Счет N : (1)99480 [16:53:16]line ИНН: 02508201610067 [16:53:16]line Контрольно-Кассовый Чек [16:53:16]line ПРОДАЖА [16:53:16]line ТРК (МРК, ГНК) : 31 [16:53:16]line Товар: 2710124130 [16:53:16]line Аи-92-К-5 [16:53:16]line 7.180 * 66.90 [16:53:16]line = 480.34 [16:53:16]line НДС 12% НСП 1% [16:53:16]line > о реализуемом товаре [16:53:16]line ОКРУГЛЕНИЕ: -0.34 [16:53:16]line ИТОГО: 480.00 [16:53:16]line Внесено: 480.00 [16:53:16]line СДАЧА: 0.00 [16:53:16]line НСП 1% : 4.25 [16:53:16]line НДС 12% : 51.01 [16:53:16]line Наличными: 480.00 [16:53:16]line Безнал.: 0.00 [16:53:16]line Место: АЗС № 143 "Партнер Нефть" [16:53:16]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [16:53:16]line СНО: Общий режим [16:53:16]line Чек 217 27.10.2024 16:53 [16:53:16]line Смена: 537 ФФД: 1.0 [16:53:16]line ЗНМ: 0300000096 [16:53:16]line РНМ: 0000000000091693 [16:53:16]line Версия ККМ: 001 [16:53:16]line ФМ: 0000000000871792 [16:53:16]line ФД: 156666 [16:53:16]line ФПД: 29938830230729 [16:53:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T165321&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156666&fm=29938830230729&tin=02508201610067®Number=0000000000091693&sum=48000 [16:53:17]OFD Sender: Processing packet 156666 [packets to send 31, broken 30] [16:53:17]ProducePacketName [16:53:17]name=ofd_packets/00156666 [16:53:17]OFD Sender: To server: pG, [16:53:17]CommunicateWithHost lk.salyk.kg:30040 [16:53:17]ConnectInit lk.salyk.kg [16:53:17]written 0, free lines is 4095 [16:53:17]Connected sock=9 [16:53:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 58 1D 07 01 F7 64 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0C 1C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A2 BB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 BB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED 13 00 00 00 00 07 04 06 00 80 BB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 01 70 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FA 63 02 00 35 04 06 00 1B 3A AD 57 44 C9 A6 B0 D1 EA 9D 18 5D 8B [16:53:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 CE 2B 47 00 C7 AE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FA 63 02 00 F4 03 04 00 71 15 1E 67 B6 04 01 00 00 91 DF 5B BD 71 75 70 62 [16:53:17]CommunicateWithHost err = 0 [16:53:17]CheckOFDResponse [16:53:17]1017 (14) - 77093643461234 [16:53:17]1041 (16) - 0000000000871792 [16:53:17]1040 (4) - 156666 [16:53:17]1012 (4) - 27.10.2024 10:26 [16:53:17]1206 (1) - 0 [16:53:17]OFD Sender: Remove packet 156666 [16:53:17]ProducePacketName [16:53:17]name=ofd_packets/00156666 [16:53:17]NVStorageDeleteData [16:53:17]Write to MH i2c: 01 00 00 E5 6E 53 [16:53:17]Write i2c OK [16:53:17]MH_I2C_Read... [16:53:17]Read from MH i2c: 01 [16:53:17]MH_I2C_Read... [16:53:17]Read from MH i2c: 01 07 00 [16:53:17]MH_I2C_Read... [16:53:17]Read from MH i2c: 01 07 00 E5 6E 00 00 00 00 00 E9 0C 4F [16:53:17]RasterBufferAndPrint [16:53:17]line [16:53:17]line [16:53:17]line [16:53:17]line [16:53:17]line [16:53:17]written 0, free lines is 3311 [16:53:17]process_action close_receipt done [16:53:17]requested_data is exist [16:53:17]produce_requested_data [16:53:17]requested_item fm.sn is exist - process it [16:53:17]wFMCommunicate request_size=4 [16:53:17]MH_SAM_APDU [16:53:17]CAPDU: 80 11 00 00 [16:53:17]Write to MH i2c: E2 08 00 EC 6E 80 11 00 00 00 00 00 00 D4 [16:53:17]Write i2c OK [16:53:17]MH_I2C_Read... [16:53:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:53:17]Read from MH i2c: E2 [16:53:17]MH_I2C_Read... [16:53:17]Read from MH i2c: E2 17 00 [16:53:17]MH_I2C_Read... [16:53:17]Read from MH i2c: E2 17 00 EC 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 29 [16:53:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:53:17]wFMCommunicate OK [16:53:17]requested_item fd.num is exist - process it [16:53:17]SAM_PROTO_GetFieldsCounters [16:53:17]wFMCommunicate request_size=4 [16:53:17]MH_SAM_APDU [16:53:17]CAPDU: 80 13 00 00 [16:53:17]Write to MH i2c: E2 08 00 ED 6E 80 13 00 00 00 00 00 00 D7 [16:53:17]Write i2c OK [16:53:17]MH_I2C_Read... [16:53:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:53:17]Read from MH i2c: E2 [16:53:17]MH_I2C_Read... [16:53:17]Read from MH i2c: E2 62 00 [16:53:17]MH_I2C_Read... [16:53:17]Read from MH i2c: E2 62 00 ED 6E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 FA 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 02 [16:53:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 FA 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:53:17]wFMCommunicate OK [16:53:17]SAM_PROTO_GetFieldsCounters done [16:53:17]requested_item shift.num is exist - process it [16:53:18]requested_item shift.opened is exist - process it [16:53:18]req_shift_opened [16:53:18]FM_GetShiftState [16:53:18]SAM_PROTO_GetShiftState [16:53:18]wFMCommunicate request_size=4 [16:53:18]MH_SAM_APDU [16:53:18]CAPDU: 80 13 01 00 [16:53:18]Write to MH i2c: E2 08 00 EE 6E 80 13 01 00 00 00 00 00 D9 [16:53:18]Write i2c OK [16:53:18]MH_I2C_Read... [16:53:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:53:18]Read from MH i2c: E2 [16:53:18]MH_I2C_Read... [16:53:18]Read from MH i2c: E2 0E 00 [16:53:18]MH_I2C_Read... [16:53:18]Read from MH i2c: E2 0E 00 EE 6E 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 A6 [16:53:18]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [16:53:18]wFMCommunicate OK [16:53:18]SAM_PROTO_GetShiftState done [16:53:18]FM_GetShiftState done [16:53:18]req_shift_opened done [16:53:18]requested_item shift.open_date is exist - process it [16:53:18]req_shift_open_date [16:53:18]req_shift_open_date done [16:53:18]produce_requested_data done [16:53:18]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156666,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [16:53:18]process_action_free close_receipt [16:53:18]json_value_free [16:53:18]json_value_free done [16:53:18]process_json_proto returns [16:53:18]Send response to host [16:53:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156666,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [16:53:18]free response buf [16:53:18]execute_script done [16:53:18]execute_script returns [16:53:18]free content buf [16:53:18]Sock 10.Close socket [16:53:18]Sock 10.Thread stoped [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:58]OFD Sender: No OFD packet to send [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:38]OFD Sender: No OFD packet to send [16:54:43]OFD Sender: No OFD packet to send [16:54:48]OFD Sender: No OFD packet to send [16:54:53]OFD Sender: No OFD packet to send [16:54:58]OFD Sender: No OFD packet to send [16:55:03]OFD Sender: No OFD packet to send [16:55:08]OFD Sender: No OFD packet to send [16:55:13]OFD Sender: No OFD packet to send [16:55:18]OFD Sender: No OFD packet to send [16:55:23]OFD Sender: No OFD packet to send [16:55:28]OFD Sender: No OFD packet to send [16:55:33]OFD Sender: No OFD packet to send [16:55:38]OFD Sender: No OFD packet to send [16:55:43]OFD Sender: No OFD packet to send [16:55:48]OFD Sender: No OFD packet to send [16:55:53]OFD Sender: No OFD packet to send [16:55:58]OFD Sender: No OFD packet to send [16:56:03]OFD Sender: No OFD packet to send [16:56:08]OFD Sender: No OFD packet to send [16:56:13]OFD Sender: No OFD packet to send [16:56:18]OFD Sender: No OFD packet to send [16:56:23]OFD Sender: No OFD packet to send [16:56:28]OFD Sender: No OFD packet to send [16:56:33]OFD Sender: No OFD packet to send [16:56:38]OFD Sender: No OFD packet to send [16:56:43]OFD Sender: No OFD packet to send [16:56:48]OFD Sender: No OFD packet to send [16:56:53]OFD Sender: No OFD packet to send [16:56:58]OFD Sender: No OFD packet to send [16:57:03]OFD Sender: No OFD packet to send [16:57:08]OFD Sender: No OFD packet to send [16:57:13]OFD Sender: No OFD packet to send [16:57:18]OFD Sender: No OFD packet to send [16:57:23]OFD Sender: No OFD packet to send [16:57:28]OFD Sender: No OFD packet to send [16:57:33]OFD Sender: No OFD packet to send [16:57:38]OFD Sender: No OFD packet to send [16:57:43]OFD Sender: No OFD packet to send [16:57:48]OFD Sender: No OFD packet to send [16:57:53]OFD Sender: No OFD packet to send [16:57:58]OFD Sender: No OFD packet to send [16:58:03]OFD Sender: No OFD packet to send [16:58:08]OFD Sender: No OFD packet to send [16:58:10]accept exits with 8 [16:58:10]New connection [16:58:10]New thread 3066977636 created [16:58:10]Thread 3066834276 joined [16:58:10]Waiting for new connection... [16:58:10] Sock 8.Parse request [16:58:10]Sock 8.Check first char [16:58:10]Sock 8.First char is OK [16:58:10]request: POST /json_proto HTTP/1.0 [16:58:10]Method: POST [16:58:10]URL: /json_proto [16:58:10]Method is POST - this is cgi request [16:58:10]url: /json_proto [16:58:10]query_string will be loaded in cgi processing [16:58:10]execute_cgi json_proto POST (null) [16:58:10]execute_cgi path=json_proto method=POST [16:58:10]POST find Content-Length [16:58:10]Host: 172.17.63.3:8080 [16:58:10]Content-Length: 676 [16:58:10]Content-Type: application/json [16:58:10] [16:58:10]POST finish read [16:58:10]Found Content-Length = 676 [16:58:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99481", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "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:58:10]execute_script... [16:58: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)99481", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "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:58:10]POST & json_proto [16:58:10]process_json_proto [16:58:10]json parsed OK: [16:58:10]protocol is kg_v1.0 [16:58:10]action value=close_receipt [16:58:10]process_action close_receipt [16:58:10]cmd_close_receipt [16:58:10]MH_GetDate [16:58:10]Write to MH i2c: F0 00 00 EF 6E 4C [16:58:10]Write i2c OK [16:58:10]MH_I2C_Read... [16:58:10]Read from MH i2c: F0 [16:58:10]MH_I2C_Read... [16:58:10]Read from MH i2c: F0 09 00 [16:58:10]MH_I2C_Read... [16:58:10]Read from MH i2c: F0 09 00 EF 6E 00 28 71 1E 67 50 D1 6C 64 64 [16:58:10]GetLastDocTimeStamp 1730048001 [16:58:10]current date 1730048296 [16:58:10]FM_GetShiftState [16:58:10]SAM_PROTO_GetShiftState [16:58:10]wFMCommunicate request_size=4 [16:58:10]MH_SAM_APDU [16:58:10]CAPDU: 80 13 01 00 [16:58:10]Write to MH i2c: E2 08 00 F0 6E 80 13 01 00 00 00 00 00 DB [16:58:10]Write i2c OK [16:58:10]MH_I2C_Read... [16:58:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:58:10]Read from MH i2c: E2 [16:58:10]MH_I2C_Read... [16:58:10]Read from MH i2c: E2 0E 00 [16:58:10]MH_I2C_Read... [16:58:10]Read from MH i2c: E2 0E 00 F0 6E 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 A8 [16:58:10]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [16:58:10]wFMCommunicate OK [16:58:10]SAM_PROTO_GetShiftState done [16:58:10]FM_GetShiftState done [16:58:10]opened in 1729989044 [16:58:10]opened+sec_in_day 1730075444 [16:58:10]quantity*price = 60009 [16:58:10]sum+1 = 60010 [16:58:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 218 27.10.2024 16:58 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156667 ФПД: 143871307738149 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T165816&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156667&fm=143871307738149&tin=02508201610067®Number=0000000000091693&sum=60000 [16:58:11]StoreToDocumentArchive [16:58:11]shift 537 fd 156667 [16:58:11]save to /storage/0537/doc_00156667 [16:58:11]save last doc name /storage/0537/doc_00156667 to /storage/kkm_last_doc_name [16:58:11]save OK [16:58:11]Clear old archive folders... [16:58:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:58:11]tlvbuf is 016A3DC0 [16:58:11]SAM_PROTO_ClearQueue [16:58:11]wFMCommunicate request_size=4 [16:58:11]MH_SAM_APDU [16:58:11]CAPDU: 80 09 00 00 [16:58:11]Write to MH i2c: E2 08 00 FD 6E 80 09 00 00 00 00 00 00 DD [16:58:11]Write i2c OK [16:58:11]MH_I2C_Read... [16:58:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:58:11]Read from MH i2c: E2 [16:58:11]MH_I2C_Read... [16:58:11]Read from MH i2c: E2 03 00 [16:58:11]MH_I2C_Read... [16:58:11]Read from MH i2c: E2 03 00 FD 6E 00 90 00 DF [16:58:11]RAPDU: 90 00 [16:58:11]wFMCommunicate OK [16:58:11]SAM_PROTO_ClearQueue done [16:58:11]KKMCreateOFDPacket [16:58:11]OFDProtocolAddRootSTLVToBuf [16:58:11]FM_MakeSignedData [16:58:11]FM_MakeSignedData [16:58:11]SAM_PROTO_SignData [16:58:11]wFMCommunicate request_size=4 [16:58:11]MH_SAM_APDU [16:58:11]CAPDU: 80 0D 01 02 [16:58:11]Write to MH i2c: E2 08 00 FE 6E 80 0D 01 02 00 00 00 00 E5 [16:58:11]Write i2c OK [16:58:11]MH_I2C_Read... [16:58:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:58:11]Read from MH i2c: E2 [16:58:11]MH_I2C_Read... [16:58:11]Read from MH i2c: E2 03 00 [16:58:11]MH_I2C_Read... [16:58:11]Read from MH i2c: E2 03 00 FE 6E 00 90 00 E0 [16:58:11]RAPDU: 90 00 [16:58:11]wFMCommunicate OK [16:58:11]wFMCommunicate request_size=255 [16:58:11]MH_SAM_APDU [16:58:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 DA 00 00 00 F4 03 04 00 28 71 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FB 63 02 00 35 04 06 00 82 [16:58:11]Write to MH i2c: E2 02 01 FF 6E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 DA 00 00 00 F4 03 04 00 28 71 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FB 63 02 00 35 04 06 00 82 00 00 4B [16:58:11]Write i2c OK [16:58:11]MH_I2C_Read... [16:58:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:58:11]Read from MH i2c: E2 [16:58:11]MH_I2C_Read... [16:58:11]Read from MH i2c: E2 03 00 [16:58:11]MH_I2C_Read... [16:58:11]Read from MH i2c: E2 03 00 FF 6E 00 90 00 E1 [16:58:11]RAPDU: 90 00 [16:58:11]wFMCommunicate OK [16:58:11]wFMCommunicate request_size=10 [16:58:11]MH_SAM_APDU [16:58:11]CAPDU: 80 0D 02 02 05 D9 A6 30 EC 25 [16:58:11]Write to MH i2c: E2 0D 00 00 6F 80 0D 02 02 05 00 D9 A6 30 EC 25 00 00 B3 [16:58:11]Write i2c OK [16:58:11]MH_I2C_Read... [16:58:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:58:11]Read from MH i2c: E2 [16:58:11]MH_I2C_Read... [16:58:11]Read from MH i2c: E2 03 00 [16:58:11]MH_I2C_Read... [16:58:11]Read from MH i2c: E2 03 00 00 6F 00 90 00 E3 [16:58:11]RAPDU: 90 00 [16:58:11]wFMCommunicate OK [16:58:11]wFMCommunicate request_size=4 [16:58:11]MH_SAM_APDU [16:58:11]CAPDU: 80 0D 03 02 [16:58:11]Write to MH i2c: E2 08 00 01 6F 80 0D 03 02 00 00 00 00 EB [16:58:11]Write i2c OK [16:58:11]MH_I2C_Read... [16:58:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:58:11]Read from MH i2c: E2 [16:58:11]MH_I2C_Read... [16:58:11]Read from MH i2c: E2 0B 00 [16:58:11]MH_I2C_Read... [16:58:11]Read from MH i2c: E2 0B 00 01 6F 00 D9 E9 46 ED D5 21 6B 6A 90 00 AC [16:58:11]RAPDU: D9 E9 46 ED D5 21 6B 6A 90 00 [16:58:11]wFMCommunicate OK [16:58:11]SAM_PROTO_SignData done [16:58:11]FM_MakeSignedData done [16:58:11]CreateOFDProtocolMessage [16:58:11]wFMCommunicate request_size=4 [16:58:11]MH_SAM_APDU [16:58:11]CAPDU: 80 11 00 00 [16:58:11]Write to MH i2c: E2 08 00 02 6F 80 11 00 00 00 00 00 00 EB [16:58:11]Write i2c OK [16:58:11]MH_I2C_Read... [16:58:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:58:11]Read from MH i2c: E2 [16:58:11]MH_I2C_Read... [16:58:11]Read from MH i2c: E2 17 00 [16:58:11]MH_I2C_Read... [16:58:11]Read from MH i2c: E2 17 00 02 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 40 [16:58:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:58:11]wFMCommunicate OK [16:58:11]CreateOFDProtocolMessage done [16:58:11]OFDSenderStorePacket 156667 [16:58:11]StoreOFDPacket docnum=156667 [16:58:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 AC A1 07 01 2D 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 DA 00 00 00 F4 03 04 00 28 71 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FB 63 02 00 35 04 06 00 82 D9 A6 30 EC 25 D9 E9 46 ED D5 21 6B 6A [16:58:11]CheckFolder [16:58:11]dirname=/storage/ofd_packets [16:58:11]CheckFolder done [16:58:11]ProducePacketName [16:58:11]name=ofd_packets/00156667 [16:58:11]NVStorageSaveData ofd_packets/00156667 [16:58:11]File name is /storage/ofd_packets/00156667 [16:58:11]Write 301 bytes [16:58:11]NVStorageSaveData done [16:58:11]OFDSenderStorePacket done [16:58:11]KKMCreateOFDPacket done [16:58:11]NVStorageSaveData kkm_last_timestamp [16:58:11]File name is /storage/kkm_last_timestamp [16:58:11]Write 4 bytes [16:58:11]NVStorageSaveData done [16:58:11]ExternCall_PrintAddStr [16:58:11]wPrintStart [16:58:11]Write to MH i2c: 01 00 00 03 6F 72 [16:58:11]Write i2c OK [16:58:11]MH_I2C_Read... [16:58:11]Read from MH i2c: 01 [16:58:11]MH_I2C_Read... [16:58:11]Read from MH i2c: 01 07 00 [16:58:11]MH_I2C_Read... [16:58:11]Read from MH i2c: 01 07 00 03 6F 00 00 00 00 00 FF 0F 87 [16:58:11]RasterBufferAndPrint [16:58:11]line Счет N : (1)99481 [16:58:11]line ИНН: 02508201610067 [16:58:11]line Контрольно-Кассовый Чек [16:58:11]line ПРОДАЖА [16:58:11]line ТРК (МРК, ГНК) : 21 [16:58:11]line Товар: 2710124130 [16:58:11]line Аи-92-К-5 [16:58:11]line 8.970 * 66.90 [16:58:11]line = 600.09 [16:58:11]line НДС 12% НСП 1% [16:58:11]line > о реализуемом товаре [16:58:11]line ОКРУГЛЕНИЕ: -0.09 [16:58:11]line ИТОГО: 600.00 [16:58:11]line Внесено: 600.00 [16:58:11]line СДАЧА: 0.00 [16:58:11]line НСП 1% : 5.31 [16:58:11]line НДС 12% : 63.73 [16:58:11]line Наличными: 600.00 [16:58:11]line Безнал.: 0.00 [16:58:11]line Место: АЗС № 143 "Партнер Нефть" [16:58:11]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [16:58:11]line СНО: Общий режим [16:58:11]line Чек 218 27.10.2024 16:58 [16:58:11]line Смена: 537 ФФД: 1.0 [16:58:11]line ЗНМ: 0300000096 [16:58:11]line РНМ: 0000000000091693 [16:58:11]line Версия ККМ: 001 [16:58:11]line ФМ: 0000000000871792 [16:58:11]line ФД: 156667 [16:58:11]line ФПД: 143871307738149 [16:58:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T165816&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156667&fm=143871307738149&tin=02508201610067®Number=0000000000091693&sum=60000 [16:58:12]OFD Sender: Processing packet 156667 [packets to send 31, broken 30] [16:58:12]ProducePacketName [16:58:12]name=ofd_packets/00156667 [16:58:12]OFD Sender: To server: pG, [16:58:12]CommunicateWithHost lk.salyk.kg:30040 [16:58:12]ConnectInit lk.salyk.kg [16:58:12]written 0, free lines is 4095 [16:58:12]Connected sock=10 [16:58:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 AC A1 07 01 2D 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 DA 00 00 00 F4 03 04 00 28 71 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FB 63 02 00 35 04 06 00 82 D9 A6 30 EC 25 D9 E9 46 ED D5 21 6B 6A [16:58:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 F0 31 47 00 3B 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FB 63 02 00 F4 03 04 00 97 16 1E 67 B6 04 01 00 00 F5 82 0D F4 AF 30 A2 A1 [16:58:12]CommunicateWithHost err = 0 [16:58:12]CheckOFDResponse [16:58:12]1017 (14) - 77093643461234 [16:58:12]1041 (16) - 0000000000871792 [16:58:12]1040 (4) - 156667 [16:58:12]1012 (4) - 27.10.2024 10:31 [16:58:12]1206 (1) - 0 [16:58:12]OFD Sender: Remove packet 156667 [16:58:12]ProducePacketName [16:58:12]name=ofd_packets/00156667 [16:58:12]NVStorageDeleteData [16:58:12]Write to MH i2c: 01 00 00 2E 6F 9D [16:58:12]Write i2c OK [16:58:12]MH_I2C_Read... [16:58:12]Read from MH i2c: 01 [16:58:12]MH_I2C_Read... [16:58:12]Read from MH i2c: 01 07 00 [16:58:12]MH_I2C_Read... [16:58:12]Read from MH i2c: 01 07 00 2E 6F 00 00 00 00 00 E0 0C 90 [16:58:12]RasterBufferAndPrint [16:58:12]line [16:58:12]line [16:58:12]line [16:58:12]line [16:58:12]line [16:58:12]written 0, free lines is 3302 [16:58:12]process_action close_receipt done [16:58:12]requested_data is exist [16:58:12]produce_requested_data [16:58:12]requested_item fm.sn is exist - process it [16:58:12]wFMCommunicate request_size=4 [16:58:12]MH_SAM_APDU [16:58:12]CAPDU: 80 11 00 00 [16:58:12]Write to MH i2c: E2 08 00 35 6F 80 11 00 00 00 00 00 00 1E [16:58:12]Write i2c OK [16:58:12]MH_I2C_Read... [16:58:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:58:12]Read from MH i2c: E2 [16:58:12]MH_I2C_Read... [16:58:12]Read from MH i2c: E2 17 00 [16:58:12]MH_I2C_Read... [16:58:12]Read from MH i2c: E2 17 00 35 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 73 [16:58:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:58:12]wFMCommunicate OK [16:58:12]requested_item fd.num is exist - process it [16:58:12]SAM_PROTO_GetFieldsCounters [16:58:12]wFMCommunicate request_size=4 [16:58:12]MH_SAM_APDU [16:58:12]CAPDU: 80 13 00 00 [16:58:12]Write to MH i2c: E2 08 00 36 6F 80 13 00 00 00 00 00 00 21 [16:58:12]Write i2c OK [16:58:12]MH_I2C_Read... [16:58:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:58:12]Read from MH i2c: E2 [16:58:12]MH_I2C_Read... [16:58:12]Read from MH i2c: E2 62 00 [16:58:12]MH_I2C_Read... [16:58:12]Read from MH i2c: E2 62 00 36 6F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 FB 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 50 [16:58:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 FB 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:58:12]wFMCommunicate OK [16:58:12]SAM_PROTO_GetFieldsCounters done [16:58:12]requested_item shift.num is exist - process it [16:58:12]requested_item shift.opened is exist - process it [16:58:12]req_shift_opened [16:58:12]FM_GetShiftState [16:58:12]SAM_PROTO_GetShiftState [16:58:12]wFMCommunicate request_size=4 [16:58:12]MH_SAM_APDU [16:58:12]CAPDU: 80 13 01 00 [16:58:12]Write to MH i2c: E2 08 00 37 6F 80 13 01 00 00 00 00 00 23 [16:58:12]Write i2c OK [16:58:12]MH_I2C_Read... [16:58:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:58:12]Read from MH i2c: E2 [16:58:12]MH_I2C_Read... [16:58:12]Read from MH i2c: E2 0E 00 [16:58:12]MH_I2C_Read... [16:58:12]Read from MH i2c: E2 0E 00 37 6F 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 F0 [16:58:12]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [16:58:12]wFMCommunicate OK [16:58:12]SAM_PROTO_GetShiftState done [16:58:12]FM_GetShiftState done [16:58:12]req_shift_opened done [16:58:12]requested_item shift.open_date is exist - process it [16:58:12]req_shift_open_date [16:58:12]req_shift_open_date done [16:58:12]produce_requested_data done [16:58:12]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156667,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [16:58:12]process_action_free close_receipt [16:58:12]json_value_free [16:58:12]json_value_free done [16:58:12]process_json_proto returns [16:58:12]Send response to host [16:58:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156667,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [16:58:12]free response buf [16:58:12]execute_script done [16:58:12]execute_script returns [16:58:12]free content buf [16:58:12]Sock 8.Close socket [16:58:12]Sock 8.Thread stoped [16:58:12]OFD Sender: No OFD packet to send [16:58:17]OFD Sender: No OFD packet to send [16:58:22]OFD Sender: No OFD packet to send [16:58:27]OFD Sender: No OFD packet to send [16:58:32]OFD Sender: No OFD packet to send [16:58:37]OFD Sender: No OFD packet to send [16:58:42]OFD Sender: No OFD packet to send [16:58:47]OFD Sender: No OFD packet to send [16:58:52]OFD Sender: No OFD packet to send [16:58:57]OFD Sender: No OFD packet to send [16:59:02]OFD Sender: No OFD packet to send [16:59:07]OFD Sender: No OFD packet to send [16:59:12]OFD Sender: No OFD packet to send [16:59:17]OFD Sender: No OFD packet to send [16:59:22]OFD Sender: No OFD packet to send [16:59:28]OFD Sender: No OFD packet to send [16:59:33]OFD Sender: No OFD packet to send [16:59:38]OFD Sender: No OFD packet to send [16:59:43]OFD Sender: No OFD packet to send [16:59:48]OFD Sender: No OFD packet to send [16:59:53]OFD Sender: No OFD packet to send [16:59:55]accept exits with 9 [16:59:55]New connection [16:59:55]New thread 3066834276 created [16:59:55]Thread 3066977636 joined [16:59:55]Waiting for new connection... [16:59:55] Sock 9.Parse request [16:59:55]Sock 9.Check first char [16:59:55]Sock 9.First char is OK [16:59:55]request: POST /json_proto HTTP/1.0 [16:59:55]Method: POST [16:59:55]URL: /json_proto [16:59:55]Method is POST - this is cgi request [16:59:55]url: /json_proto [16:59:55]query_string will be loaded in cgi processing [16:59:55]execute_cgi json_proto POST (null) [16:59:55]execute_cgi path=json_proto method=POST [16:59:55]POST find Content-Length [16:59:55]Host: 172.17.63.3:8080 [16:59:55]Content-Length: 676 [16:59:55]Content-Type: application/json [16:59:55] [16:59:55]POST finish read [16:59:55]Found Content-Length = 676 [16:59:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99482", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:59:55]execute_script... [16:59: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)99482", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:59:55]POST & json_proto [16:59:55]process_json_proto [16:59:55]json parsed OK: [16:59:55]protocol is kg_v1.0 [16:59:55]action value=close_receipt [16:59:55]process_action close_receipt [16:59:55]cmd_close_receipt [16:59:55]MH_GetDate [16:59:55]Write to MH i2c: F0 00 00 38 6F 96 [16:59:55]Write i2c OK [16:59:55]MH_I2C_Read... [16:59:55]Read from MH i2c: F0 [16:59:55]MH_I2C_Read... [16:59:55]Read from MH i2c: F0 09 00 [16:59:55]MH_I2C_Read... [16:59:55]Read from MH i2c: F0 09 00 38 6F 00 92 71 1E 67 50 D1 6C 64 18 [16:59:55]GetLastDocTimeStamp 1730048296 [16:59:55]current date 1730048402 [16:59:55]FM_GetShiftState [16:59:55]SAM_PROTO_GetShiftState [16:59:55]wFMCommunicate request_size=4 [16:59:55]MH_SAM_APDU [16:59:55]CAPDU: 80 13 01 00 [16:59:55]Write to MH i2c: E2 08 00 39 6F 80 13 01 00 00 00 00 00 25 [16:59:55]Write i2c OK [16:59:55]MH_I2C_Read... [16:59:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:59:55]Read from MH i2c: E2 [16:59:55]MH_I2C_Read... [16:59:55]Read from MH i2c: E2 0E 00 [16:59:55]MH_I2C_Read... [16:59:55]Read from MH i2c: E2 0E 00 39 6F 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 F2 [16:59:55]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [16:59:55]wFMCommunicate OK [16:59:55]SAM_PROTO_GetShiftState done [16:59:55]FM_GetShiftState done [16:59:55]opened in 1729989044 [16:59:55]opened+sec_in_day 1730075444 [16:59:55]quantity*price = 30038 [16:59:55]sum+1 = 30039 [16:59:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 219 27.10.2024 17:00 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156668 ФПД: 136922769599576 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T170002&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156668&fm=136922769599576&tin=02508201610067®Number=0000000000091693&sum=30000 [16:59:57]StoreToDocumentArchive [16:59:57]shift 537 fd 156668 [16:59:57]save to /storage/0537/doc_00156668 [16:59:57]save last doc name /storage/0537/doc_00156668 to /storage/kkm_last_doc_name [16:59:57]save OK [16:59:57]Clear old archive folders... [16:59:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:59:57]tlvbuf is 0174F8D0 [16:59:57]SAM_PROTO_ClearQueue [16:59:57]wFMCommunicate request_size=4 [16:59:57]MH_SAM_APDU [16:59:57]CAPDU: 80 09 00 00 [16:59:57]Write to MH i2c: E2 08 00 46 6F 80 09 00 00 00 00 00 00 27 [16:59:57]Write i2c OK [16:59:57]MH_I2C_Read... [16:59:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:59:57]Read from MH i2c: E2 [16:59:57]MH_I2C_Read... [16:59:57]Read from MH i2c: E2 03 00 [16:59:57]MH_I2C_Read... [16:59:57]Read from MH i2c: E2 03 00 46 6F 00 90 00 29 [16:59:57]RAPDU: 90 00 [16:59:57]wFMCommunicate OK [16:59:57]SAM_PROTO_ClearQueue done [16:59:57]KKMCreateOFDPacket [16:59:57]OFDProtocolAddRootSTLVToBuf [16:59:57]FM_MakeSignedData [16:59:57]FM_MakeSignedData [16:59:57]SAM_PROTO_SignData [16:59:57]wFMCommunicate request_size=4 [16:59:57]MH_SAM_APDU [16:59:57]CAPDU: 80 0D 01 02 [16:59:57]Write to MH i2c: E2 08 00 47 6F 80 0D 01 02 00 00 00 00 2F [16:59:57]Write i2c OK [16:59:57]MH_I2C_Read... [16:59:57]Read from MH i2c: E2 [16:59:57]MH_I2C_Read... [16:59:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:59:57]Read from MH i2c: E2 03 00 [16:59:57]MH_I2C_Read... [16:59:57]Read from MH i2c: E2 03 00 47 6F 00 90 00 2A [16:59:57]RAPDU: 90 00 [16:59:57]wFMCommunicate OK [16:59:57]wFMCommunicate request_size=255 [16:59:57]MH_SAM_APDU [16:59: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 92 71 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FC 63 02 00 35 04 06 00 7C [16:59:57]Write to MH i2c: E2 02 01 48 6F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 92 71 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FC 63 02 00 35 04 06 00 7C 00 00 12 [16:59:57]Write i2c OK [16:59:57]MH_I2C_Read... [16:59:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:59:57]Read from MH i2c: E2 [16:59:57]MH_I2C_Read... [16:59:57]Read from MH i2c: E2 03 00 [16:59:57]MH_I2C_Read... [16:59:57]Read from MH i2c: E2 03 00 48 6F 00 90 00 2B [16:59:57]RAPDU: 90 00 [16:59:57]wFMCommunicate OK [16:59:57]wFMCommunicate request_size=10 [16:59:57]MH_SAM_APDU [16:59:57]CAPDU: 80 0D 02 02 05 87 D1 0B 2C 58 [16:59:57]Write to MH i2c: E2 0D 00 49 6F 80 0D 02 02 05 00 87 D1 0B 2C 58 00 00 23 [16:59:57]Write i2c OK [16:59:57]MH_I2C_Read... [16:59:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:59:57]Read from MH i2c: E2 [16:59:57]MH_I2C_Read... [16:59:57]Read from MH i2c: E2 03 00 [16:59:57]MH_I2C_Read... [16:59:57]Read from MH i2c: E2 03 00 49 6F 00 90 00 2C [16:59:57]RAPDU: 90 00 [16:59:57]wFMCommunicate OK [16:59:57]wFMCommunicate request_size=4 [16:59:57]MH_SAM_APDU [16:59:57]CAPDU: 80 0D 03 02 [16:59:57]Write to MH i2c: E2 08 00 4A 6F 80 0D 03 02 00 00 00 00 34 [16:59:57]Write i2c OK [16:59:57]MH_I2C_Read... [16:59:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:59:57]Read from MH i2c: E2 [16:59:57]MH_I2C_Read... [16:59:57]Read from MH i2c: E2 0B 00 [16:59:57]MH_I2C_Read... [16:59:57]Read from MH i2c: E2 0B 00 4A 6F 00 4D 0B 58 E0 DF 3A 12 DF 90 00 CF [16:59:57]RAPDU: 4D 0B 58 E0 DF 3A 12 DF 90 00 [16:59:57]wFMCommunicate OK [16:59:57]SAM_PROTO_SignData done [16:59:57]FM_MakeSignedData done [16:59:57]CreateOFDProtocolMessage [16:59:57]wFMCommunicate request_size=4 [16:59:57]MH_SAM_APDU [16:59:57]CAPDU: 80 11 00 00 [16:59:57]Write to MH i2c: E2 08 00 4B 6F 80 11 00 00 00 00 00 00 34 [16:59:57]Write i2c OK [16:59:57]MH_I2C_Read... [16:59:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:59:57]Read from MH i2c: E2 [16:59:57]MH_I2C_Read... [16:59:57]Read from MH i2c: E2 17 00 [16:59:57]MH_I2C_Read... [16:59:57]Read from MH i2c: E2 17 00 4B 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 89 [16:59:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:59:57]wFMCommunicate OK [16:59:57]CreateOFDProtocolMessage done [16:59:57]OFDSenderStorePacket 156668 [16:59:57]StoreOFDPacket docnum=156668 [16:59:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 7B BC 07 01 85 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 92 71 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FC 63 02 00 35 04 06 00 7C 87 D1 0B 2C 58 4D 0B 58 E0 DF 3A 12 DF [16:59:57]CheckFolder [16:59:57]dirname=/storage/ofd_packets [16:59:57]CheckFolder done [16:59:57]ProducePacketName [16:59:57]name=ofd_packets/00156668 [16:59:57]NVStorageSaveData ofd_packets/00156668 [16:59:57]File name is /storage/ofd_packets/00156668 [16:59:57]Write 301 bytes [16:59:57]NVStorageSaveData done [16:59:57]OFDSenderStorePacket done [16:59:57]KKMCreateOFDPacket done [16:59:57]NVStorageSaveData kkm_last_timestamp [16:59:57]File name is /storage/kkm_last_timestamp [16:59:57]Write 4 bytes [16:59:57]NVStorageSaveData done [16:59:57]ExternCall_PrintAddStr [16:59:57]wPrintStart [16:59:57]Write to MH i2c: 01 00 00 4C 6F BB [16:59:57]Write i2c OK [16:59:57]MH_I2C_Read... [16:59:57]Read from MH i2c: 01 [16:59:57]MH_I2C_Read... [16:59:57]Read from MH i2c: 01 07 00 [16:59:57]MH_I2C_Read... [16:59:57]Read from MH i2c: 01 07 00 4C 6F 00 00 00 00 00 FF 0F D0 [16:59:57]RasterBufferAndPrint [16:59:57]line Счет N : (1)99482 [16:59:57]line ИНН: 02508201610067 [16:59:57]line Контрольно-Кассовый Чек [16:59:57]line ПРОДАЖА [16:59:57]line ТРК (МРК, ГНК) : 21 [16:59:57]line Товар: 2710124130 [16:59:57]line Аи-92-К-5 [16:59:57]line 4.490 * 66.90 [16:59:57]line = 300.38 [16:59:57]line НДС 12% НСП 1% [16:59:57]line > о реализуемом товаре [16:59:57]line ОКРУГЛЕНИЕ: -0.38 [16:59:57]line ИТОГО: 300.00 [16:59:57]line Внесено: 300.00 [16:59:57]line СДАЧА: 0.00 [16:59:57]line НСП 1% : 2.66 [16:59:57]line НДС 12% : 31.90 [16:59:57]line Наличными: 300.00 [16:59:57]line Безнал.: 0.00 [16:59:57]line Место: АЗС № 143 "Партнер Нефть" [16:59:57]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [16:59:57]line СНО: Общий режим [16:59:57]line Чек 219 27.10.2024 17:00 [16:59:57]line Смена: 537 ФФД: 1.0 [16:59:57]line ЗНМ: 0300000096 [16:59:57]line РНМ: 0000000000091693 [16:59:57]line Версия ККМ: 001 [16:59:57]line ФМ: 0000000000871792 [16:59:57]line ФД: 156668 [16:59:57]line ФПД: 136922769599576 [16:59:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T170002&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156668&fm=136922769599576&tin=02508201610067®Number=0000000000091693&sum=30000 [16:59:57]OFD Sender: Processing packet 156668 [packets to send 31, broken 30] [16:59:57]ProducePacketName [16:59:57]name=ofd_packets/00156668 [16:59:57]OFD Sender: To server: pG, [16:59:57]CommunicateWithHost lk.salyk.kg:30040 [16:59:57]ConnectInit lk.salyk.kg [16:59:57]written 0, free lines is 4095 [16:59:58]Connected sock=10 [16:59:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 7B BC 07 01 85 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 92 71 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FC 63 02 00 35 04 06 00 7C 87 D1 0B 2C 58 4D 0B 58 E0 DF 3A 12 DF [16:59:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 7B 8C 47 00 8F EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FC 63 02 00 F4 03 04 00 01 17 1E 67 B6 04 01 00 00 1C D3 A2 78 FF 16 21 DE [16:59:58]CommunicateWithHost err = 0 [16:59:58]CheckOFDResponse [16:59:58]1017 (14) - 77093643461234 [16:59:58]1041 (16) - 0000000000871792 [16:59:58]1040 (4) - 156668 [16:59:58]1012 (4) - 27.10.2024 10:33 [16:59:58]1206 (1) - 0 [16:59:58]OFD Sender: Remove packet 156668 [16:59:58]ProducePacketName [16:59:58]name=ofd_packets/00156668 [16:59:58]NVStorageDeleteData [16:59:58]Write to MH i2c: 01 00 00 77 6F E6 [16:59:58]Write i2c OK [16:59:58]MH_I2C_Read... [16:59:58]Read from MH i2c: 01 [16:59:58]MH_I2C_Read... [16:59:58]Read from MH i2c: 01 07 00 [16:59:58]MH_I2C_Read... [16:59:58]Read from MH i2c: 01 07 00 77 6F 00 00 00 00 00 E4 0C DD [16:59:58]RasterBufferAndPrint [16:59:58]line [16:59:58]line [16:59:58]line [16:59:58]line [16:59:58]line [16:59:58]written 0, free lines is 3306 [16:59:58]process_action close_receipt done [16:59:58]requested_data is exist [16:59:58]produce_requested_data [16:59:58]requested_item fm.sn is exist - process it [16:59:58]wFMCommunicate request_size=4 [16:59:58]MH_SAM_APDU [16:59:58]CAPDU: 80 11 00 00 [16:59:58]Write to MH i2c: E2 08 00 7E 6F 80 11 00 00 00 00 00 00 67 [16:59:58]Write i2c OK [16:59:58]MH_I2C_Read... [16:59:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:59:58]Read from MH i2c: E2 [16:59:58]MH_I2C_Read... [16:59:58]Read from MH i2c: E2 17 00 [16:59:58]MH_I2C_Read... [16:59:58]Read from MH i2c: E2 17 00 7E 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 BC [16:59:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [16:59:58]wFMCommunicate OK [16:59:58]requested_item fd.num is exist - process it [16:59:58]SAM_PROTO_GetFieldsCounters [16:59:58]wFMCommunicate request_size=4 [16:59:58]MH_SAM_APDU [16:59:58]CAPDU: 80 13 00 00 [16:59:58]Write to MH i2c: E2 08 00 7F 6F 80 13 00 00 00 00 00 00 6A [16:59:58]Write i2c OK [16:59:58]MH_I2C_Read... [16:59:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:59:58]Read from MH i2c: E2 [16:59:58]MH_I2C_Read... [16:59:58]Read from MH i2c: E2 62 00 [16:59:58]MH_I2C_Read... [16:59:58]Read from MH i2c: E2 62 00 7F 6F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 FC 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 9D [16:59:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 FC 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:59:58]wFMCommunicate OK [16:59:58]SAM_PROTO_GetFieldsCounters done [16:59:58]requested_item shift.num is exist - process it [16:59:58]requested_item shift.opened is exist - process it [16:59:58]req_shift_opened [16:59:58]FM_GetShiftState [16:59:58]SAM_PROTO_GetShiftState [16:59:58]wFMCommunicate request_size=4 [16:59:58]MH_SAM_APDU [16:59:58]CAPDU: 80 13 01 00 [16:59:58]Write to MH i2c: E2 08 00 80 6F 80 13 01 00 00 00 00 00 6C [16:59:58]Write i2c OK [16:59:58]MH_I2C_Read... [16:59:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:59:58]Read from MH i2c: E2 [16:59:58]MH_I2C_Read... [16:59:58]Read from MH i2c: E2 0E 00 [16:59:58]MH_I2C_Read... [16:59:58]Read from MH i2c: E2 0E 00 80 6F 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 39 [16:59:58]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [16:59:58]wFMCommunicate OK [16:59:58]SAM_PROTO_GetShiftState done [16:59:58]FM_GetShiftState done [16:59:58]req_shift_opened done [16:59:58]requested_item shift.open_date is exist - process it [16:59:58]req_shift_open_date [16:59:58]req_shift_open_date done [16:59:58]produce_requested_data done [16:59:58]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156668,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [16:59:58]process_action_free close_receipt [16:59:58]json_value_free [16:59:58]json_value_free done [16:59:58]process_json_proto returns [16:59:58]Send response to host [16:59:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156668,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [16:59:58]free response buf [16:59:58]execute_script done [16:59:58]execute_script returns [16:59:58]free content buf [16:59:58]Sock 9.Close socket [16:59:58]Sock 9.Thread stoped [16:59:58]OFD Sender: No OFD packet to send [17:00:03]OFD Sender: No OFD packet to send [17:00:08]OFD Sender: No OFD packet to send [17:00:13]OFD Sender: No OFD packet to send [17:00:18]OFD Sender: No OFD packet to send [17:00:23]OFD Sender: No OFD packet to send [17:00:28]OFD Sender: No OFD packet to send [17:00:33]OFD Sender: No OFD packet to send [17:00:38]OFD Sender: No OFD packet to send [17:00:43]OFD Sender: No OFD packet to send [17:00:48]OFD Sender: No OFD packet to send [17:00:53]OFD Sender: No OFD packet to send [17:00:58]OFD Sender: No OFD packet to send [17:01:02]accept exits with 8 [17:01:02]New connection [17:01:02]New thread 3066977636 created [17:01:02]Thread 3066834276 joined [17:01:02]Waiting for new connection... [17:01:02] Sock 8.Parse request [17:01:02]Sock 8.Check first char [17:01:02]Sock 8.First char is OK [17:01:02]request: POST /json_proto HTTP/1.0 [17:01:02]Method: POST [17:01:02]URL: /json_proto [17:01:02]Method is POST - this is cgi request [17:01:02]url: /json_proto [17:01:02]query_string will be loaded in cgi processing [17:01:02]execute_cgi json_proto POST (null) [17:01:02]execute_cgi path=json_proto method=POST [17:01:02]POST find Content-Length [17:01:02]Host: 172.17.63.3:8080 [17:01:02]Content-Length: 676 [17:01:02]Content-Type: application/json [17:01:02] [17:01:02]POST finish read [17:01:02]Found Content-Length = 676 [17:01:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99483", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.250, "sum" : 150.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:01:02]execute_script... [17:01: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)99483", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.250, "sum" : 150.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:01:02]POST & json_proto [17:01:02]process_json_proto [17:01:02]json parsed OK: [17:01:02]protocol is kg_v1.0 [17:01:02]action value=close_receipt [17:01:02]process_action close_receipt [17:01:02]cmd_close_receipt [17:01:02]MH_GetDate [17:01:02]Write to MH i2c: F0 00 00 81 6F DF [17:01:02]Write i2c OK [17:01:02]MH_I2C_Read... [17:01:02]Read from MH i2c: F0 [17:01:02]MH_I2C_Read... [17:01:02]Read from MH i2c: F0 09 00 [17:01:02]MH_I2C_Read... [17:01:02]Read from MH i2c: F0 09 00 81 6F 00 D5 71 1E 67 50 D1 6C 64 A4 [17:01:02]GetLastDocTimeStamp 1730048402 [17:01:02]current date 1730048469 [17:01:02]FM_GetShiftState [17:01:02]SAM_PROTO_GetShiftState [17:01:02]wFMCommunicate request_size=4 [17:01:02]MH_SAM_APDU [17:01:02]CAPDU: 80 13 01 00 [17:01:02]Write to MH i2c: E2 08 00 82 6F 80 13 01 00 00 00 00 00 6E [17:01:02]Write i2c OK [17:01:02]MH_I2C_Read... [17:01:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:01:02]Read from MH i2c: E2 [17:01:02]MH_I2C_Read... [17:01:02]Read from MH i2c: E2 0E 00 [17:01:02]MH_I2C_Read... [17:01:02]Read from MH i2c: E2 0E 00 82 6F 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 3B [17:01:02]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [17:01:02]wFMCommunicate OK [17:01:02]SAM_PROTO_GetShiftState done [17:01:02]FM_GetShiftState done [17:01:02]opened in 1729989044 [17:01:02]opened+sec_in_day 1730075444 [17:01:02]quantity*price = 15052 [17:01:02]sum+1 = 15054 [17:01:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 150.00 Внесено: 150.00 СДАЧА: 0.00 НСП 1% : 1.33 НДС 12% : 15.98 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 220 27.10.2024 17:01 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156669 ФПД: 216001173653939 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T170109&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156669&fm=216001173653939&tin=02508201610067®Number=0000000000091693&sum=15000 [17:01:03]StoreToDocumentArchive [17:01:03]shift 537 fd 156669 [17:01:03]save to /storage/0537/doc_00156669 [17:01:03]save last doc name /storage/0537/doc_00156669 to /storage/kkm_last_doc_name [17:01:03]save OK [17:01:03]Clear old archive folders... [17:01:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:01:03]tlvbuf is 01712430 [17:01:03]SAM_PROTO_ClearQueue [17:01:03]wFMCommunicate request_size=4 [17:01:03]MH_SAM_APDU [17:01:03]CAPDU: 80 09 00 00 [17:01:03]Write to MH i2c: E2 08 00 8F 6F 80 09 00 00 00 00 00 00 70 [17:01:03]Write i2c OK [17:01:03]MH_I2C_Read... [17:01:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:01:03]Read from MH i2c: E2 [17:01:03]MH_I2C_Read... [17:01:03]Read from MH i2c: E2 03 00 [17:01:03]MH_I2C_Read... [17:01:03]Read from MH i2c: E2 03 00 8F 6F 00 90 00 72 [17:01:03]RAPDU: 90 00 [17:01:03]wFMCommunicate OK [17:01:03]SAM_PROTO_ClearQueue done [17:01:03]KKMCreateOFDPacket [17:01:03]OFDProtocolAddRootSTLVToBuf [17:01:03]FM_MakeSignedData [17:01:03]FM_MakeSignedData [17:01:03]SAM_PROTO_SignData [17:01:03]wFMCommunicate request_size=4 [17:01:03]MH_SAM_APDU [17:01:03]CAPDU: 80 0D 01 02 [17:01:03]Write to MH i2c: E2 08 00 90 6F 80 0D 01 02 00 00 00 00 78 [17:01:03]Write i2c OK [17:01:03]MH_I2C_Read... [17:01:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:01:03]Read from MH i2c: E2 [17:01:03]MH_I2C_Read... [17:01:03]Read from MH i2c: E2 03 00 [17:01:03]MH_I2C_Read... [17:01:03]Read from MH i2c: E2 03 00 90 6F 00 90 00 73 [17:01:03]RAPDU: 90 00 [17:01:03]wFMCommunicate OK [17:01:03]wFMCommunicate request_size=255 [17:01:03]MH_SAM_APDU [17:01: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 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 D5 71 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FD 63 02 00 35 04 06 00 C4 [17:01:03]Write to MH i2c: E2 02 01 91 6F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 D5 71 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FD 63 02 00 35 04 06 00 C4 00 00 F1 [17:01:03]Write i2c OK [17:01:03]MH_I2C_Read... [17:01:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:01:04]Read from MH i2c: E2 [17:01:04]MH_I2C_Read... [17:01:04]Read from MH i2c: E2 03 00 [17:01:04]MH_I2C_Read... [17:01:04]Read from MH i2c: E2 03 00 91 6F 00 90 00 74 [17:01:04]RAPDU: 90 00 [17:01:04]wFMCommunicate OK [17:01:04]wFMCommunicate request_size=10 [17:01:04]MH_SAM_APDU [17:01:04]CAPDU: 80 0D 02 02 05 73 B1 3A 09 B3 [17:01:04]Write to MH i2c: E2 0D 00 92 6F 80 0D 02 02 05 00 73 B1 3A 09 B3 00 00 9F [17:01:04]Write i2c OK [17:01:04]MH_I2C_Read... [17:01:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:01:04]Read from MH i2c: E2 [17:01:04]MH_I2C_Read... [17:01:04]Read from MH i2c: E2 03 00 [17:01:04]MH_I2C_Read... [17:01:04]Read from MH i2c: E2 03 00 92 6F 00 90 00 75 [17:01:04]RAPDU: 90 00 [17:01:04]wFMCommunicate OK [17:01:04]wFMCommunicate request_size=4 [17:01:04]MH_SAM_APDU [17:01:04]CAPDU: 80 0D 03 02 [17:01:04]Write to MH i2c: E2 08 00 93 6F 80 0D 03 02 00 00 00 00 7D [17:01:04]Write i2c OK [17:01:04]MH_I2C_Read... [17:01:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:01:04]Read from MH i2c: E2 [17:01:04]MH_I2C_Read... [17:01:04]Read from MH i2c: E2 0B 00 [17:01:04]MH_I2C_Read... [17:01:04]Read from MH i2c: E2 0B 00 93 6F 00 3F A2 AE A2 1B 9D 10 46 90 00 BD [17:01:04]RAPDU: 3F A2 AE A2 1B 9D 10 46 90 00 [17:01:04]wFMCommunicate OK [17:01:04]SAM_PROTO_SignData done [17:01:04]FM_MakeSignedData done [17:01:04]CreateOFDProtocolMessage [17:01:04]wFMCommunicate request_size=4 [17:01:04]MH_SAM_APDU [17:01:04]CAPDU: 80 11 00 00 [17:01:04]Write to MH i2c: E2 08 00 94 6F 80 11 00 00 00 00 00 00 7D [17:01:04]Write i2c OK [17:01:04]MH_I2C_Read... [17:01:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:01:04]Read from MH i2c: E2 [17:01:04]MH_I2C_Read... [17:01:04]Read from MH i2c: E2 17 00 [17:01:04]MH_I2C_Read... [17:01:04]Read from MH i2c: E2 17 00 94 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 D2 [17:01:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:01:04]wFMCommunicate OK [17:01:04]CreateOFDProtocolMessage done [17:01:04]OFDSenderStorePacket 156669 [17:01:04]StoreOFDPacket docnum=156669 [17:01:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 C5 BC 07 01 F4 E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 D5 71 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FD 63 02 00 35 04 06 00 C4 73 B1 3A 09 B3 3F A2 AE A2 1B 9D 10 46 [17:01:04]CheckFolder [17:01:04]dirname=/storage/ofd_packets [17:01:04]CheckFolder done [17:01:04]ProducePacketName [17:01:04]name=ofd_packets/00156669 [17:01:04]NVStorageSaveData ofd_packets/00156669 [17:01:04]File name is /storage/ofd_packets/00156669 [17:01:04]Write 301 bytes [17:01:04]NVStorageSaveData done [17:01:04]OFDSenderStorePacket done [17:01:04]KKMCreateOFDPacket done [17:01:04]NVStorageSaveData kkm_last_timestamp [17:01:04]File name is /storage/kkm_last_timestamp [17:01:04]Write 4 bytes [17:01:04]NVStorageSaveData done [17:01:04]ExternCall_PrintAddStr [17:01:04]wPrintStart [17:01:04]Write to MH i2c: 01 00 00 95 6F 04 [17:01:04]Write i2c OK [17:01:04]MH_I2C_Read... [17:01:04]Read from MH i2c: 01 [17:01:04]MH_I2C_Read... [17:01:04]Read from MH i2c: 01 07 00 [17:01:04]MH_I2C_Read... [17:01:04]Read from MH i2c: 01 07 00 95 6F 00 00 00 00 00 FF 0F 19 [17:01:04]RasterBufferAndPrint [17:01:04]line Счет N : (1)99483 [17:01:04]line ИНН: 02508201610067 [17:01:04]line Контрольно-Кассовый Чек [17:01:04]line ПРОДАЖА [17:01:04]line ТРК (МРК, ГНК) : 11 [17:01:04]line Товар: 2710124130 [17:01:04]line Аи-92-К-5 [17:01:04]line 2.250 * 66.90 [17:01:04]line = 150.53 [17:01:04]line НДС 12% НСП 1% [17:01:04]line > о реализуемом товаре [17:01:04]line ОКРУГЛЕНИЕ: -0.53 [17:01:04]line ИТОГО: 150.00 [17:01:04]line Внесено: 150.00 [17:01:04]line СДАЧА: 0.00 [17:01:04]line НСП 1% : 1.33 [17:01:04]line НДС 12% : 15.98 [17:01:04]line Наличными: 150.00 [17:01:04]line Безнал.: 0.00 [17:01:04]line Место: АЗС № 143 "Партнер Нефть" [17:01:04]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [17:01:04]line СНО: Общий режим [17:01:04]line Чек 220 27.10.2024 17:01 [17:01:04]line Смена: 537 ФФД: 1.0 [17:01:04]line ЗНМ: 0300000096 [17:01:04]line РНМ: 0000000000091693 [17:01:04]line Версия ККМ: 001 [17:01:04]line ФМ: 0000000000871792 [17:01:04]line ФД: 156669 [17:01:04]line ФПД: 216001173653939 [17:01:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T170109&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156669&fm=216001173653939&tin=02508201610067®Number=0000000000091693&sum=15000 [17:01:04]OFD Sender: Processing packet 156669 [packets to send 31, broken 30] [17:01:04]ProducePacketName [17:01:04]name=ofd_packets/00156669 [17:01:04]OFD Sender: To server: pG, [17:01:04]CommunicateWithHost lk.salyk.kg:30040 [17:01:04]ConnectInit lk.salyk.kg [17:01:04]written 0, free lines is 4095 [17:01:04]Connected sock=10 [17:01:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 C5 BC 07 01 F4 E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 D5 71 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FD 63 02 00 35 04 06 00 C4 73 B1 3A 09 B3 3F A2 AE A2 1B 9D 10 46 [17:01:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 6C E5 47 00 AF 5F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FD 63 02 00 F4 03 04 00 44 17 1E 67 B6 04 01 00 00 00 9B 04 BC D5 91 51 4E [17:01:05]CommunicateWithHost err = 0 [17:01:05]CheckOFDResponse [17:01:05]1017 (14) - 77093643461234 [17:01:05]1041 (16) - 0000000000871792 [17:01:05]1040 (4) - 156669 [17:01:05]1012 (4) - 27.10.2024 10:34 [17:01:05]1206 (1) - 0 [17:01:05]OFD Sender: Remove packet 156669 [17:01:05]ProducePacketName [17:01:05]name=ofd_packets/00156669 [17:01:05]NVStorageDeleteData [17:01:05]Write to MH i2c: 01 00 00 C0 6F 2F [17:01:05]Write i2c OK [17:01:05]MH_I2C_Read... [17:01:05]Read from MH i2c: 01 [17:01:05]MH_I2C_Read... [17:01:05]Read from MH i2c: 01 07 00 [17:01:05]MH_I2C_Read... [17:01:05]Read from MH i2c: 01 07 00 C0 6F 00 00 00 00 00 DF 0C 21 [17:01:05]RasterBufferAndPrint [17:01:05]line [17:01:05]line [17:01:05]line [17:01:05]line [17:01:05]line [17:01:05]written 0, free lines is 3304 [17:01:05]process_action close_receipt done [17:01:05]requested_data is exist [17:01:05]produce_requested_data [17:01:05]requested_item fm.sn is exist - process it [17:01:05]wFMCommunicate request_size=4 [17:01:05]MH_SAM_APDU [17:01:05]CAPDU: 80 11 00 00 [17:01:05]Write to MH i2c: E2 08 00 C7 6F 80 11 00 00 00 00 00 00 B0 [17:01:05]Write i2c OK [17:01:05]MH_I2C_Read... [17:01:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:01:05]Read from MH i2c: E2 [17:01:05]MH_I2C_Read... [17:01:05]Read from MH i2c: E2 17 00 [17:01:05]MH_I2C_Read... [17:01:05]Read from MH i2c: E2 17 00 C7 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 05 [17:01:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:01:05]wFMCommunicate OK [17:01:05]requested_item fd.num is exist - process it [17:01:05]SAM_PROTO_GetFieldsCounters [17:01:05]wFMCommunicate request_size=4 [17:01:05]MH_SAM_APDU [17:01:05]CAPDU: 80 13 00 00 [17:01:05]Write to MH i2c: E2 08 00 C8 6F 80 13 00 00 00 00 00 00 B3 [17:01:05]Write i2c OK [17:01:05]MH_I2C_Read... [17:01:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:01:05]Read from MH i2c: E2 [17:01:05]MH_I2C_Read... [17:01:05]Read from MH i2c: E2 62 00 [17:01:05]MH_I2C_Read... [17:01:05]Read from MH i2c: E2 62 00 C8 6F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 FD 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 EA [17:01:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 FD 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:01:05]wFMCommunicate OK [17:01:05]SAM_PROTO_GetFieldsCounters done [17:01:05]requested_item shift.num is exist - process it [17:01:05]requested_item shift.opened is exist - process it [17:01:05]req_shift_opened [17:01:05]FM_GetShiftState [17:01:05]SAM_PROTO_GetShiftState [17:01:05]wFMCommunicate request_size=4 [17:01:05]MH_SAM_APDU [17:01:05]CAPDU: 80 13 01 00 [17:01:05]Write to MH i2c: E2 08 00 C9 6F 80 13 01 00 00 00 00 00 B5 [17:01:05]Write i2c OK [17:01:05]MH_I2C_Read... [17:01:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:01:05]Read from MH i2c: E2 [17:01:05]MH_I2C_Read... [17:01:05]Read from MH i2c: E2 0E 00 [17:01:05]MH_I2C_Read... [17:01:05]Read from MH i2c: E2 0E 00 C9 6F 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 82 [17:01:05]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [17:01:05]wFMCommunicate OK [17:01:05]SAM_PROTO_GetShiftState done [17:01:05]FM_GetShiftState done [17:01:05]req_shift_opened done [17:01:05]requested_item shift.open_date is exist - process it [17:01:05]req_shift_open_date [17:01:05]req_shift_open_date done [17:01:05]produce_requested_data done [17:01:05]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156669,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [17:01:05]process_action_free close_receipt [17:01:05]json_value_free [17:01:05]json_value_free done [17:01:05]process_json_proto returns [17:01:05]Send response to host [17:01:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156669,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [17:01:05]free response buf [17:01:05]execute_script done [17:01:05]execute_script returns [17:01:05]free content buf [17:01:05]Sock 8.Close socket [17:01:05]Sock 8.Thread stoped [17:01:05]OFD Sender: No OFD packet to send [17:01:10]OFD Sender: No OFD packet to send [17:01:15]OFD Sender: No OFD packet to send [17:01:20]OFD Sender: No OFD packet to send [17:01:25]OFD Sender: No OFD packet to send [17:01:30]OFD Sender: No OFD packet to send [17:01:35]OFD Sender: No OFD packet to send [17:01:40]OFD Sender: No OFD packet to send [17:01:45]OFD Sender: No OFD packet to send [17:01:50]OFD Sender: No OFD packet to send [17:01:55]OFD Sender: No OFD packet to send [17:02:00]OFD Sender: No OFD packet to send [17:02:05]OFD Sender: No OFD packet to send [17:02:10]OFD Sender: No OFD packet to send [17:02:11]accept exits with 9 [17:02:11]New connection [17:02:11]New thread 3066834276 created [17:02:11]Thread 3066977636 joined [17:02:11]Waiting for new connection... [17:02:11] Sock 9.Parse request [17:02:11]Sock 9.Check first char [17:02:11]Sock 9.First char is OK [17:02:11]request: POST /json_proto HTTP/1.0 [17:02:11]Method: POST [17:02:11]URL: /json_proto [17:02:11]Method is POST - this is cgi request [17:02:11]url: /json_proto [17:02:11]query_string will be loaded in cgi processing [17:02:11]execute_cgi json_proto POST (null) [17:02:11]execute_cgi path=json_proto method=POST [17:02:11]POST find Content-Length [17:02:11]Host: 172.17.63.3:8080 [17:02:11]Content-Length: 681 [17:02:11]Content-Type: application/json [17:02:11] [17:02:11]POST finish read [17:02:11]Found Content-Length = 681 [17:02:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99484", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "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" ] } } [17:02:11]execute_script... [17: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)99484", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "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" ] } } [17:02:11]POST & json_proto [17:02:11]process_json_proto [17:02:11]json parsed OK: [17:02:11]protocol is kg_v1.0 [17:02:11]action value=close_receipt [17:02:11]process_action close_receipt [17:02:11]cmd_close_receipt [17:02:11]MH_GetDate [17:02:11]Write to MH i2c: F0 00 00 CA 6F 28 [17:02:11]Write i2c OK [17:02:11]MH_I2C_Read... [17:02:11]Read from MH i2c: F0 [17:02:11]MH_I2C_Read... [17:02:11]Read from MH i2c: F0 09 00 [17:02:11]MH_I2C_Read... [17:02:11]Read from MH i2c: F0 09 00 CA 6F 00 1A 72 1E 67 50 D1 6C 64 33 [17:02:11]GetLastDocTimeStamp 1730048469 [17:02:11]current date 1730048538 [17:02:11]FM_GetShiftState [17:02:11]SAM_PROTO_GetShiftState [17:02:11]wFMCommunicate request_size=4 [17:02:11]MH_SAM_APDU [17:02:11]CAPDU: 80 13 01 00 [17:02:11]Write to MH i2c: E2 08 00 CB 6F 80 13 01 00 00 00 00 00 B7 [17:02:11]Write i2c OK [17:02:11]MH_I2C_Read... [17:02:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:02:11]Read from MH i2c: E2 [17:02:11]MH_I2C_Read... [17:02:11]Read from MH i2c: E2 0E 00 [17:02:11]MH_I2C_Read... [17:02:11]Read from MH i2c: E2 0E 00 CB 6F 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 84 [17:02:11]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [17:02:11]wFMCommunicate OK [17:02:11]SAM_PROTO_GetShiftState done [17:02:11]FM_GetShiftState done [17:02:11]opened in 1729989044 [17:02:11]opened+sec_in_day 1730075444 [17:02:11]quantity*price = 150056 [17:02:11]sum+1 = 150058 [17:02:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 221 27.10.2024 17:02 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156670 ФПД: 105738713817090 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T170218&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156670&fm=105738713817090&tin=02508201610067®Number=0000000000091693&sum=150000 [17:02:12]StoreToDocumentArchive [17:02:12]shift 537 fd 156670 [17:02:12]save to /storage/0537/doc_00156670 [17:02:12]save last doc name /storage/0537/doc_00156670 to /storage/kkm_last_doc_name [17:02:12]save OK [17:02:12]Clear old archive folders... [17:02:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:02:12]tlvbuf is 016BD700 [17:02:12]SAM_PROTO_ClearQueue [17:02:12]wFMCommunicate request_size=4 [17:02:12]MH_SAM_APDU [17:02:12]CAPDU: 80 09 00 00 [17:02:12]Write to MH i2c: E2 08 00 D8 6F 80 09 00 00 00 00 00 00 B9 [17:02:12]Write i2c OK [17:02:12]MH_I2C_Read... [17:02:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:02:12]Read from MH i2c: E2 [17:02:12]MH_I2C_Read... [17:02:12]Read from MH i2c: E2 03 00 [17:02:12]MH_I2C_Read... [17:02:12]Read from MH i2c: E2 03 00 D8 6F 00 90 00 BB [17:02:12]RAPDU: 90 00 [17:02:12]wFMCommunicate OK [17:02:12]SAM_PROTO_ClearQueue done [17:02:12]KKMCreateOFDPacket [17:02:12]OFDProtocolAddRootSTLVToBuf [17:02:12]FM_MakeSignedData [17:02:12]FM_MakeSignedData [17:02:12]SAM_PROTO_SignData [17:02:12]wFMCommunicate request_size=4 [17:02:12]MH_SAM_APDU [17:02:12]CAPDU: 80 0D 01 02 [17:02:12]Write to MH i2c: E2 08 00 D9 6F 80 0D 01 02 00 00 00 00 C1 [17:02:12]Write i2c OK [17:02:12]MH_I2C_Read... [17:02:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:02:13]Read from MH i2c: E2 [17:02:13]MH_I2C_Read... [17:02:13]Read from MH i2c: E2 03 00 [17:02:13]MH_I2C_Read... [17:02:13]Read from MH i2c: E2 03 00 D9 6F 00 90 00 BC [17:02:13]RAPDU: 90 00 [17:02:13]wFMCommunicate OK [17:02:13]wFMCommunicate request_size=255 [17:02:13]MH_SAM_APDU [17:02:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 1A 72 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FE 63 02 00 35 04 06 00 60 [17:02:13]Write to MH i2c: E2 02 01 DA 6F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 1A 72 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FE 63 02 00 35 04 06 00 60 00 00 6A [17:02:13]Write i2c OK [17:02:13]MH_I2C_Read... [17:02:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:02:13]Read from MH i2c: E2 [17:02:13]MH_I2C_Read... [17:02:13]Read from MH i2c: E2 03 00 [17:02:13]MH_I2C_Read... [17:02:13]Read from MH i2c: E2 03 00 DA 6F 00 90 00 BD [17:02:13]RAPDU: 90 00 [17:02:13]wFMCommunicate OK [17:02:13]wFMCommunicate request_size=10 [17:02:13]MH_SAM_APDU [17:02:13]CAPDU: 80 0D 02 02 05 2B 36 79 E0 02 [17:02:13]Write to MH i2c: E2 0D 00 DB 6F 80 0D 02 02 05 00 2B 36 79 E0 02 00 00 8A [17:02:13]Write i2c OK [17:02:13]MH_I2C_Read... [17:02:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:02:13]Read from MH i2c: E2 [17:02:13]MH_I2C_Read... [17:02:13]Read from MH i2c: E2 03 00 [17:02:13]MH_I2C_Read... [17:02:13]Read from MH i2c: E2 03 00 DB 6F 00 90 00 BE [17:02:13]RAPDU: 90 00 [17:02:13]wFMCommunicate OK [17:02:13]wFMCommunicate request_size=4 [17:02:13]MH_SAM_APDU [17:02:13]CAPDU: 80 0D 03 02 [17:02:13]Write to MH i2c: E2 08 00 DC 6F 80 0D 03 02 00 00 00 00 C6 [17:02:13]Write i2c OK [17:02:13]MH_I2C_Read... [17:02:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:02:13]Read from MH i2c: E2 [17:02:13]MH_I2C_Read... [17:02:13]Read from MH i2c: E2 0B 00 [17:02:13]MH_I2C_Read... [17:02:13]Read from MH i2c: E2 0B 00 DC 6F 00 E5 F0 59 7F 93 35 D5 2F 90 00 40 [17:02:13]RAPDU: E5 F0 59 7F 93 35 D5 2F 90 00 [17:02:13]wFMCommunicate OK [17:02:13]SAM_PROTO_SignData done [17:02:13]FM_MakeSignedData done [17:02:13]CreateOFDProtocolMessage [17:02:13]wFMCommunicate request_size=4 [17:02:13]MH_SAM_APDU [17:02:13]CAPDU: 80 11 00 00 [17:02:13]Write to MH i2c: E2 08 00 DD 6F 80 11 00 00 00 00 00 00 C6 [17:02:13]Write i2c OK [17:02:13]MH_I2C_Read... [17:02:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:02:13]Read from MH i2c: E2 [17:02:13]MH_I2C_Read... [17:02:13]Read from MH i2c: E2 17 00 [17:02:13]MH_I2C_Read... [17:02:13]Read from MH i2c: E2 17 00 DD 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 1B [17:02:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:02:13]wFMCommunicate OK [17:02:13]CreateOFDProtocolMessage done [17:02:13]OFDSenderStorePacket 156670 [17:02:13]StoreOFDPacket docnum=156670 [17:02:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 23 F6 07 01 A1 64 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 1A 72 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FE 63 02 00 35 04 06 00 60 2B 36 79 E0 02 E5 F0 59 7F 93 35 D5 2F [17:02:13]CheckFolder [17:02:13]dirname=/storage/ofd_packets [17:02:13]CheckFolder done [17:02:13]ProducePacketName [17:02:13]name=ofd_packets/00156670 [17:02:13]NVStorageSaveData ofd_packets/00156670 [17:02:13]File name is /storage/ofd_packets/00156670 [17:02:13]Write 301 bytes [17:02:13]NVStorageSaveData done [17:02:13]OFDSenderStorePacket done [17:02:13]KKMCreateOFDPacket done [17:02:13]NVStorageSaveData kkm_last_timestamp [17:02:13]File name is /storage/kkm_last_timestamp [17:02:13]Write 4 bytes [17:02:13]NVStorageSaveData done [17:02:13]ExternCall_PrintAddStr [17:02:13]wPrintStart [17:02:13]Write to MH i2c: 01 00 00 DE 6F 4D [17:02:13]Write i2c OK [17:02:13]MH_I2C_Read... [17:02:13]Read from MH i2c: 01 [17:02:13]MH_I2C_Read... [17:02:13]Read from MH i2c: 01 07 00 [17:02:13]MH_I2C_Read... [17:02:13]Read from MH i2c: 01 07 00 DE 6F 00 00 00 00 00 FF 0F 62 [17:02:13]RasterBufferAndPrint [17:02:13]line Счет N : (1)99484 [17:02:13]line ИНН: 02508201610067 [17:02:13]line Контрольно-Кассовый Чек [17:02:13]line ПРОДАЖА [17:02:13]line ТРК (МРК, ГНК) : 21 [17:02:13]line Товар: 2710124130 [17:02:13]line Аи-92-К-5 [17:02:13]line 22.430 * 66.90 [17:02:13]line = 1500.57 [17:02:13]line НДС 12% НСП 1% [17:02:13]line > о реализуемом товаре [17:02:13]line ОКРУГЛЕНИЕ: -0.57 [17:02:13]line ИТОГО: 1500.00 [17:02:13]line Внесено: 1500.00 [17:02:13]line СДАЧА: 0.00 [17:02:13]line НСП 1% : 13.28 [17:02:13]line НДС 12% : 159.35 [17:02:13]line Наличными: 1500.00 [17:02:13]line Безнал.: 0.00 [17:02:13]line Место: АЗС № 143 "Партнер Нефть" [17:02:13]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [17:02:13]line СНО: Общий режим [17:02:13]line Чек 221 27.10.2024 17:02 [17:02:13]line Смена: 537 ФФД: 1.0 [17:02:13]line ЗНМ: 0300000096 [17:02:13]line РНМ: 0000000000091693 [17:02:13]line Версия ККМ: 001 [17:02:13]line ФМ: 0000000000871792 [17:02:13]line ФД: 156670 [17:02:13]line ФПД: 105738713817090 [17:02:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T170218&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156670&fm=105738713817090&tin=02508201610067®Number=0000000000091693&sum=150000 [17:02:13]OFD Sender: Processing packet 156670 [packets to send 31, broken 30] [17:02:13]ProducePacketName [17:02:13]name=ofd_packets/00156670 [17:02:13]OFD Sender: To server: pG, [17:02:13]CommunicateWithHost lk.salyk.kg:30040 [17:02:13]ConnectInit lk.salyk.kg [17:02:13]written 0, free lines is 4095 [17:02:13]Connected sock=10 [17: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 31 37 39 32 0F 01 00 00 23 F6 07 01 A1 64 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DD 00 00 00 F4 03 04 00 1A 72 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FE 63 02 00 35 04 06 00 60 2B 36 79 E0 02 E5 F0 59 7F 93 35 D5 2F [17:02:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 AE 3A 47 00 4B D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FE 63 02 00 F4 03 04 00 89 17 1E 67 B6 04 01 00 00 A7 B0 5F 3B F7 38 6F 0F [17:02:14]CommunicateWithHost err = 0 [17:02:14]CheckOFDResponse [17:02:14]1017 (14) - 77093643461234 [17:02:14]1041 (16) - 0000000000871792 [17:02:14]1040 (4) - 156670 [17:02:14]1012 (4) - 27.10.2024 10:35 [17:02:14]1206 (1) - 0 [17:02:14]OFD Sender: Remove packet 156670 [17:02:14]ProducePacketName [17:02:14]name=ofd_packets/00156670 [17:02:14]NVStorageDeleteData [17:02:14]Write to MH i2c: 01 00 00 09 70 79 [17:02:14]Write i2c OK [17:02:14]MH_I2C_Read... [17:02:14]Read from MH i2c: 01 [17:02:14]MH_I2C_Read... [17:02:14]Read from MH i2c: 01 07 00 [17:02:14]MH_I2C_Read... [17:02:14]Read from MH i2c: 01 07 00 09 70 00 00 00 00 00 E0 0C 6C [17:02:14]RasterBufferAndPrint [17:02:14]line [17:02:14]line [17:02:14]line [17:02:14]line [17:02:14]line [17:02:14]written 0, free lines is 3304 [17:02:14]process_action close_receipt done [17:02:14]requested_data is exist [17:02:14]produce_requested_data [17:02:14]requested_item fm.sn is exist - process it [17:02:14]wFMCommunicate request_size=4 [17:02:14]MH_SAM_APDU [17:02:14]CAPDU: 80 11 00 00 [17:02:14]Write to MH i2c: E2 08 00 10 70 80 11 00 00 00 00 00 00 FA [17:02:14]Write i2c OK [17:02:14]MH_I2C_Read... [17:02:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:02:14]Read from MH i2c: E2 [17:02:14]MH_I2C_Read... [17:02:14]Read from MH i2c: E2 17 00 [17:02:14]MH_I2C_Read... [17:02:14]Read from MH i2c: E2 17 00 10 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 4F [17:02:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:02:14]wFMCommunicate OK [17:02:14]requested_item fd.num is exist - process it [17:02:14]SAM_PROTO_GetFieldsCounters [17:02:14]wFMCommunicate request_size=4 [17:02:14]MH_SAM_APDU [17:02:14]CAPDU: 80 13 00 00 [17:02:14]Write to MH i2c: E2 08 00 11 70 80 13 00 00 00 00 00 00 FD [17:02:14]Write i2c OK [17:02:14]MH_I2C_Read... [17:02:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:02:14]Read from MH i2c: E2 [17:02:14]MH_I2C_Read... [17:02:14]Read from MH i2c: E2 62 00 [17:02:14]MH_I2C_Read... [17:02:14]Read from MH i2c: E2 62 00 11 70 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 FE 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 38 [17:02:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 FE 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:02:14]wFMCommunicate OK [17:02:14]SAM_PROTO_GetFieldsCounters done [17:02:14]requested_item shift.num is exist - process it [17:02:14]requested_item shift.opened is exist - process it [17:02:14]req_shift_opened [17:02:14]FM_GetShiftState [17:02:14]SAM_PROTO_GetShiftState [17:02:14]wFMCommunicate request_size=4 [17:02:14]MH_SAM_APDU [17:02:14]CAPDU: 80 13 01 00 [17:02:14]Write to MH i2c: E2 08 00 12 70 80 13 01 00 00 00 00 00 FF [17:02:14]Write i2c OK [17:02:14]MH_I2C_Read... [17:02:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:02:14]Read from MH i2c: E2 [17:02:14]MH_I2C_Read... [17:02:14]Read from MH i2c: E2 0E 00 [17:02:14]MH_I2C_Read... [17:02:14]Read from MH i2c: E2 0E 00 12 70 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 CC [17:02:14]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [17:02:14]wFMCommunicate OK [17:02:14]SAM_PROTO_GetShiftState done [17:02:14]FM_GetShiftState done [17:02:14]req_shift_opened done [17:02:14]requested_item shift.open_date is exist - process it [17:02:14]req_shift_open_date [17:02:14]req_shift_open_date done [17:02:14]produce_requested_data done [17:02:14]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156670,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [17:02:14]process_action_free close_receipt [17:02:14]json_value_free [17:02:14]json_value_free done [17:02:14]process_json_proto returns [17:02:14]Send response to host [17:02:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156670,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [17:02:14]free response buf [17:02:14]execute_script done [17:02:14]execute_script returns [17:02:14]free content buf [17:02:14]Sock 9.Close socket [17:02:14]Sock 9.Thread stoped [17:02:14]OFD Sender: No OFD packet to send [17:02:19]OFD Sender: No OFD packet to send [17:02:20]accept exits with 8 [17:02:20]New connection [17:02:20]New thread 3066977636 created [17:02:20]Thread 3066834276 joined [17:02:20]Waiting for new connection... [17:02:20] Sock 8.Parse request [17:02:20]Sock 8.Check first char [17:02:20]Sock 8.First char is OK [17:02:20]request: POST /json_proto HTTP/1.0 [17:02:20]Method: POST [17:02:20]URL: /json_proto [17:02:20]Method is POST - this is cgi request [17:02:20]url: /json_proto [17:02:20]query_string will be loaded in cgi processing [17:02:20]execute_cgi json_proto POST (null) [17:02:20]execute_cgi path=json_proto method=POST [17:02:20]POST find Content-Length [17:02:20]Host: 172.17.63.3:8080 [17:02:20]Content-Length: 676 [17:02:20]Content-Type: application/json [17:02:20] [17:02:20]POST finish read [17:02:20]Found Content-Length = 676 [17:02:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99485", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:02:20]execute_script... [17:02: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)99485", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:02:20]POST & json_proto [17:02:20]process_json_proto [17:02:20]json parsed OK: [17:02:20]protocol is kg_v1.0 [17:02:20]action value=close_receipt [17:02:20]process_action close_receipt [17:02:20]cmd_close_receipt [17:02:20]MH_GetDate [17:02:20]Write to MH i2c: F0 00 00 13 70 72 [17:02:20]Write i2c OK [17:02:20]MH_I2C_Read... [17:02:20]Read from MH i2c: F0 [17:02:20]MH_I2C_Read... [17:02:20]Read from MH i2c: F0 09 00 [17:02:20]MH_I2C_Read... [17:02:20]Read from MH i2c: F0 09 00 13 70 00 23 72 1E 67 50 D1 6C 64 86 [17:02:20]GetLastDocTimeStamp 1730048538 [17:02:20]current date 1730048547 [17:02:20]FM_GetShiftState [17:02:20]SAM_PROTO_GetShiftState [17:02:20]wFMCommunicate request_size=4 [17:02:20]MH_SAM_APDU [17:02:20]CAPDU: 80 13 01 00 [17:02:20]Write to MH i2c: E2 08 00 14 70 80 13 01 00 00 00 00 00 01 [17:02:20]Write i2c OK [17:02:20]MH_I2C_Read... [17:02:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:02:20]Read from MH i2c: E2 [17:02:20]MH_I2C_Read... [17:02:20]Read from MH i2c: E2 0E 00 [17:02:20]MH_I2C_Read... [17:02:20]Read from MH i2c: E2 0E 00 14 70 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 CE [17:02:20]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [17:02:20]wFMCommunicate OK [17:02:20]SAM_PROTO_GetShiftState done [17:02:20]FM_GetShiftState done [17:02:20]opened in 1729989044 [17:02:20]opened+sec_in_day 1730075444 [17:02:20]quantity*price = 50041 [17:02:20]sum+1 = 50042 [17:02:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 222 27.10.2024 17:02 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156671 ФПД: 54029820352337 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T170227&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156671&fm=54029820352337&tin=02508201610067®Number=0000000000091693&sum=50000 [17:02:21]StoreToDocumentArchive [17:02:21]shift 537 fd 156671 [17:02:21]save to /storage/0537/doc_00156671 [17:02:21]save last doc name /storage/0537/doc_00156671 to /storage/kkm_last_doc_name [17:02:21]save OK [17:02:21]Clear old archive folders... [17:02:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:02:21]tlvbuf is 01783240 [17:02:21]SAM_PROTO_ClearQueue [17:02:21]wFMCommunicate request_size=4 [17:02:21]MH_SAM_APDU [17:02:21]CAPDU: 80 09 00 00 [17:02:21]Write to MH i2c: E2 08 00 21 70 80 09 00 00 00 00 00 00 03 [17:02:21]Write i2c OK [17:02:21]MH_I2C_Read... [17:02:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:02:21]Read from MH i2c: E2 [17:02:21]MH_I2C_Read... [17:02:21]Read from MH i2c: E2 03 00 [17:02:21]MH_I2C_Read... [17:02:21]Read from MH i2c: E2 03 00 21 70 00 90 00 05 [17:02:21]RAPDU: 90 00 [17:02:21]wFMCommunicate OK [17:02:21]SAM_PROTO_ClearQueue done [17:02:21]KKMCreateOFDPacket [17:02:21]OFDProtocolAddRootSTLVToBuf [17:02:21]FM_MakeSignedData [17:02:21]FM_MakeSignedData [17:02:21]SAM_PROTO_SignData [17:02:21]wFMCommunicate request_size=4 [17:02:21]MH_SAM_APDU [17:02:21]CAPDU: 80 0D 01 02 [17:02:21]Write to MH i2c: E2 08 00 22 70 80 0D 01 02 00 00 00 00 0B [17:02:21]Write i2c OK [17:02:21]MH_I2C_Read... [17:02:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:02:21]Read from MH i2c: E2 [17:02:21]MH_I2C_Read... [17:02:21]Read from MH i2c: E2 03 00 [17:02:21]MH_I2C_Read... [17:02:21]Read from MH i2c: E2 03 00 22 70 00 90 00 06 [17:02:21]RAPDU: 90 00 [17:02:21]wFMCommunicate OK [17:02:21]wFMCommunicate request_size=255 [17:02:21]MH_SAM_APDU [17:02: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 23 72 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FF 63 02 00 35 04 06 00 31 [17:02:21]Write to MH i2c: E2 02 01 23 70 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 23 72 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FF 63 02 00 35 04 06 00 31 00 00 47 [17:02:21]Write i2c OK [17:02:21]MH_I2C_Read... [17:02:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:02:22]Read from MH i2c: E2 [17:02:22]MH_I2C_Read... [17:02:22]Read from MH i2c: E2 03 00 [17:02:22]MH_I2C_Read... [17:02:22]Read from MH i2c: E2 03 00 23 70 00 90 00 07 [17:02:22]RAPDU: 90 00 [17:02:22]wFMCommunicate OK [17:02:22]wFMCommunicate request_size=10 [17:02:22]MH_SAM_APDU [17:02:22]CAPDU: 80 0D 02 02 05 23 CC 3F D7 51 [17:02:22]Write to MH i2c: E2 0D 00 24 70 80 0D 02 02 05 00 23 CC 3F D7 51 00 00 6E [17:02:22]Write i2c OK [17:02:22]MH_I2C_Read... [17:02:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:02:22]Read from MH i2c: E2 [17:02:22]MH_I2C_Read... [17:02:22]Read from MH i2c: E2 03 00 [17:02:22]MH_I2C_Read... [17:02:22]Read from MH i2c: E2 03 00 24 70 00 90 00 08 [17:02:22]RAPDU: 90 00 [17:02:22]wFMCommunicate OK [17:02:22]wFMCommunicate request_size=4 [17:02:22]MH_SAM_APDU [17:02:22]CAPDU: 80 0D 03 02 [17:02:22]Write to MH i2c: E2 08 00 25 70 80 0D 03 02 00 00 00 00 10 [17:02:22]Write i2c OK [17:02:22]MH_I2C_Read... [17:02:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:02:22]Read from MH i2c: E2 [17:02:22]MH_I2C_Read... [17:02:22]Read from MH i2c: E2 0B 00 [17:02:22]MH_I2C_Read... [17:02:22]Read from MH i2c: E2 0B 00 25 70 00 2E DF 6F D8 8F E0 11 9B 90 00 80 [17:02:22]RAPDU: 2E DF 6F D8 8F E0 11 9B 90 00 [17:02:22]wFMCommunicate OK [17:02:22]SAM_PROTO_SignData done [17:02:22]FM_MakeSignedData done [17:02:22]CreateOFDProtocolMessage [17:02:22]wFMCommunicate request_size=4 [17:02:22]MH_SAM_APDU [17:02:22]CAPDU: 80 11 00 00 [17:02:22]Write to MH i2c: E2 08 00 26 70 80 11 00 00 00 00 00 00 10 [17:02:22]Write i2c OK [17:02:22]MH_I2C_Read... [17:02:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:02:22]Read from MH i2c: E2 [17:02:22]MH_I2C_Read... [17:02:22]Read from MH i2c: E2 17 00 [17:02:22]MH_I2C_Read... [17:02:22]Read from MH i2c: E2 17 00 26 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 65 [17:02:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:02:22]wFMCommunicate OK [17:02:22]CreateOFDProtocolMessage done [17:02:22]OFDSenderStorePacket 156671 [17:02:22]StoreOFDPacket docnum=156671 [17:02:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 14 F2 07 01 87 A7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 23 72 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FF 63 02 00 35 04 06 00 31 23 CC 3F D7 51 2E DF 6F D8 8F E0 11 9B [17:02:22]CheckFolder [17:02:22]dirname=/storage/ofd_packets [17:02:22]CheckFolder done [17:02:22]ProducePacketName [17:02:22]name=ofd_packets/00156671 [17:02:22]NVStorageSaveData ofd_packets/00156671 [17:02:22]File name is /storage/ofd_packets/00156671 [17:02:22]Write 301 bytes [17:02:22]NVStorageSaveData done [17:02:22]OFDSenderStorePacket done [17:02:22]KKMCreateOFDPacket done [17:02:22]NVStorageSaveData kkm_last_timestamp [17:02:22]File name is /storage/kkm_last_timestamp [17:02:22]Write 4 bytes [17:02:22]NVStorageSaveData done [17:02:22]ExternCall_PrintAddStr [17:02:22]wPrintStart [17:02:22]Write to MH i2c: 01 00 00 27 70 97 [17:02:22]Write i2c OK [17:02:22]MH_I2C_Read... [17:02:22]Read from MH i2c: 01 [17:02:22]MH_I2C_Read... [17:02:22]Read from MH i2c: 01 07 00 [17:02:22]MH_I2C_Read... [17:02:22]Read from MH i2c: 01 07 00 27 70 00 00 00 00 00 FF 0F AC [17:02:22]RasterBufferAndPrint [17:02:22]line Счет N : (1)99485 [17:02:22]line ИНН: 02508201610067 [17:02:22]line Контрольно-Кассовый Чек [17:02:22]line ПРОДАЖА [17:02:22]line ТРК (МРК, ГНК) : 31 [17:02:22]line Товар: 2710124130 [17:02:22]line Аи-92-К-5 [17:02:22]line 7.480 * 66.90 [17:02:22]line = 500.41 [17:02:22]line НДС 12% НСП 1% [17:02:22]line > о реализуемом товаре [17:02:22]line ОКРУГЛЕНИЕ: -0.41 [17:02:22]line ИТОГО: 500.00 [17:02:22]line Внесено: 500.00 [17:02:22]line СДАЧА: 0.00 [17:02:22]line НСП 1% : 4.43 [17:02:22]line НДС 12% : 53.14 [17:02:22]line Наличными: 500.00 [17:02:22]line Безнал.: 0.00 [17:02:22]line Место: АЗС № 143 "Партнер Нефть" [17:02:22]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [17:02:22]line СНО: Общий режим [17:02:22]line Чек 222 27.10.2024 17:02 [17:02:22]line Смена: 537 ФФД: 1.0 [17:02:22]line ЗНМ: 0300000096 [17:02:22]line РНМ: 0000000000091693 [17:02:22]line Версия ККМ: 001 [17:02:22]line ФМ: 0000000000871792 [17:02:22]line ФД: 156671 [17:02:22]line ФПД: 54029820352337 [17:02:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T170227&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156671&fm=54029820352337&tin=02508201610067®Number=0000000000091693&sum=50000 [17:02:22]OFD Sender: Processing packet 156671 [packets to send 31, broken 30] [17:02:22]ProducePacketName [17:02:22]name=ofd_packets/00156671 [17:02:22]OFD Sender: To server: pG, [17:02:22]CommunicateWithHost lk.salyk.kg:30040 [17:02:22]ConnectInit lk.salyk.kg [17:02:22]written 0, free lines is 4095 [17:02:22]Connected sock=9 [17:02:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 14 F2 07 01 87 A7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 00 00 00 F4 03 04 00 23 72 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 FF 63 02 00 35 04 06 00 31 23 CC 3F D7 51 2E DF 6F D8 8F E0 11 9B [17:02:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 01 87 47 00 FA 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 31 37 39 32 10 04 04 00 FF 63 02 00 F4 03 04 00 92 17 1E 67 B6 04 01 00 00 67 49 00 30 61 AA F7 0D [17:02:22]CommunicateWithHost err = 0 [17:02:22]CheckOFDResponse [17:02:22]1017 (14) - 77093643461234 [17:02:22]1041 (16) - 0000000000871792 [17:02:22]1040 (4) - 156671 [17:02:22]1012 (4) - 27.10.2024 10:36 [17:02:22]1206 (1) - 0 [17:02:22]OFD Sender: Remove packet 156671 [17:02:22]ProducePacketName [17:02:22]name=ofd_packets/00156671 [17:02:22]NVStorageDeleteData [17:02:23]Write to MH i2c: 01 00 00 52 70 C2 [17:02:23]Write i2c OK [17:02:23]MH_I2C_Read... [17:02:23]Read from MH i2c: 01 [17:02:23]MH_I2C_Read... [17:02:23]Read from MH i2c: 01 07 00 [17:02:23]MH_I2C_Read... [17:02:23]Read from MH i2c: 01 07 00 52 70 00 00 00 00 00 DC 0C B1 [17:02:23]RasterBufferAndPrint [17:02:23]line [17:02:23]line [17:02:23]line [17:02:23]line [17:02:23]line [17:02:23]written 0, free lines is 3304 [17:02:23]process_action close_receipt done [17:02:23]requested_data is exist [17:02:23]produce_requested_data [17:02:23]requested_item fm.sn is exist - process it [17:02:23]wFMCommunicate request_size=4 [17:02:23]MH_SAM_APDU [17:02:23]CAPDU: 80 11 00 00 [17:02:23]Write to MH i2c: E2 08 00 59 70 80 11 00 00 00 00 00 00 43 [17:02:23]Write i2c OK [17:02:23]MH_I2C_Read... [17:02:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:02:23]Read from MH i2c: E2 [17:02:23]MH_I2C_Read... [17:02:23]Read from MH i2c: E2 17 00 [17:02:23]MH_I2C_Read... [17:02:23]Read from MH i2c: E2 17 00 59 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 98 [17:02:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:02:23]wFMCommunicate OK [17:02:23]requested_item fd.num is exist - process it [17:02:23]SAM_PROTO_GetFieldsCounters [17:02:23]wFMCommunicate request_size=4 [17:02:23]MH_SAM_APDU [17:02:23]CAPDU: 80 13 00 00 [17:02:23]Write to MH i2c: E2 08 00 5A 70 80 13 00 00 00 00 00 00 46 [17:02:23]Write i2c OK [17:02:23]MH_I2C_Read... [17:02:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:02:23]Read from MH i2c: E2 [17:02:23]MH_I2C_Read... [17:02:23]Read from MH i2c: E2 62 00 [17:02:23]MH_I2C_Read... [17:02:23]Read from MH i2c: E2 62 00 5A 70 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 FF 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 85 [17:02:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 FF 63 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:02:23]wFMCommunicate OK [17:02:23]SAM_PROTO_GetFieldsCounters done [17:02:23]requested_item shift.num is exist - process it [17:02:23]requested_item shift.opened is exist - process it [17:02:23]req_shift_opened [17:02:23]FM_GetShiftState [17:02:23]SAM_PROTO_GetShiftState [17:02:23]wFMCommunicate request_size=4 [17:02:23]MH_SAM_APDU [17:02:23]CAPDU: 80 13 01 00 [17:02:23]Write to MH i2c: E2 08 00 5B 70 80 13 01 00 00 00 00 00 48 [17:02:23]Write i2c OK [17:02:23]MH_I2C_Read... [17:02:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:02:23]Read from MH i2c: E2 [17:02:23]MH_I2C_Read... [17:02:23]Read from MH i2c: E2 0E 00 [17:02:23]MH_I2C_Read... [17:02:23]Read from MH i2c: E2 0E 00 5B 70 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 15 [17:02:23]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [17:02:23]wFMCommunicate OK [17:02:23]SAM_PROTO_GetShiftState done [17:02:23]FM_GetShiftState done [17:02:23]req_shift_opened done [17:02:23]requested_item shift.open_date is exist - process it [17:02:23]req_shift_open_date [17:02:23]req_shift_open_date done [17:02:23]produce_requested_data done [17:02:23]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156671,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [17:02:23]process_action_free close_receipt [17:02:23]json_value_free [17:02:23]json_value_free done [17:02:23]process_json_proto returns [17:02:23]Send response to host [17:02:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156671,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [17:02:23]free response buf [17:02:23]execute_script done [17:02:23]execute_script returns [17:02:23]free content buf [17:02:23]Sock 8.Close socket [17:02:23]Sock 8.Thread stoped [17:02:23]OFD Sender: No OFD packet to send [17:02:28]OFD Sender: No OFD packet to send [17:02:33]OFD Sender: No OFD packet to send [17:02:38]OFD Sender: No OFD packet to send [17:02:43]OFD Sender: No OFD packet to send [17:02:48]OFD Sender: No OFD packet to send [17:02:53]OFD Sender: No OFD packet to send [17:02:58]OFD Sender: No OFD packet to send [17:03:03]OFD Sender: No OFD packet to send [17:03:08]OFD Sender: No OFD packet to send [17:03:13]OFD Sender: No OFD packet to send [17:03:18]OFD Sender: No OFD packet to send [17:03:23]OFD Sender: No OFD packet to send [17:03:28]OFD Sender: No OFD packet to send [17:03:33]OFD Sender: No OFD packet to send [17:03:38]OFD Sender: No OFD packet to send [17:03:43]OFD Sender: No OFD packet to send [17:03:48]OFD Sender: No OFD packet to send [17:03:53]OFD Sender: No OFD packet to send [17:03:58]OFD Sender: No OFD packet to send [17:04:03]OFD Sender: No OFD packet to send [17:04:08]OFD Sender: No OFD packet to send [17:04:13]OFD Sender: No OFD packet to send [17:04:18]OFD Sender: No OFD packet to send [17:04:23]OFD Sender: No OFD packet to send [17:04:28]OFD Sender: No OFD packet to send [17:04:33]OFD Sender: No OFD packet to send [17:04:38]OFD Sender: No OFD packet to send [17:04:43]OFD Sender: No OFD packet to send [17:04:48]OFD Sender: No OFD packet to send [17:04:51]accept exits with 10 [17:04:51]New connection [17:04:51]New thread 3066834276 created [17:04:51]Thread 3066977636 joined [17:04:51]Waiting for new connection... [17:04:51] Sock 10.Parse request [17:04:51]Sock 10.Check first char [17:04:51]Sock 10.First char is OK [17:04:51]request: POST /json_proto HTTP/1.0 [17:04:51]Method: POST [17:04:51]URL: /json_proto [17:04:51]Method is POST - this is cgi request [17:04:51]url: /json_proto [17:04:51]query_string will be loaded in cgi processing [17:04:51]execute_cgi json_proto POST (null) [17:04:51]execute_cgi path=json_proto method=POST [17:04:51]POST find Content-Length [17:04:51]Host: 172.17.63.3:8080 [17:04:51]Content-Length: 681 [17:04:51]Content-Type: application/json [17:04:51] [17:04:51]POST finish read [17:04:51]Found Content-Length = 681 [17:04:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99486", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:04:51]execute_script... [17:04:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99486", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:04:51]POST & json_proto [17:04:51]process_json_proto [17:04:51]json parsed OK: [17:04:51]protocol is kg_v1.0 [17:04:51]action value=close_receipt [17:04:51]process_action close_receipt [17:04:51]cmd_close_receipt [17:04:51]MH_GetDate [17:04:51]Write to MH i2c: F0 00 00 5C 70 BB [17:04:51]Write i2c OK [17:04:51]MH_I2C_Read... [17:04:51]Read from MH i2c: F0 [17:04:51]MH_I2C_Read... [17:04:51]Read from MH i2c: F0 09 00 [17:04:51]MH_I2C_Read... [17:04:51]Read from MH i2c: F0 09 00 5C 70 00 B9 72 1E 67 50 D1 6C 64 65 [17:04:51]GetLastDocTimeStamp 1730048547 [17:04:51]current date 1730048697 [17:04:51]FM_GetShiftState [17:04:51]SAM_PROTO_GetShiftState [17:04:51]wFMCommunicate request_size=4 [17:04:51]MH_SAM_APDU [17:04:51]CAPDU: 80 13 01 00 [17:04:51]Write to MH i2c: E2 08 00 5D 70 80 13 01 00 00 00 00 00 4A [17:04:51]Write i2c OK [17:04:51]MH_I2C_Read... [17:04:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:04:51]Read from MH i2c: E2 [17:04:51]MH_I2C_Read... [17:04:51]Read from MH i2c: E2 0E 00 [17:04:51]MH_I2C_Read... [17:04:51]Read from MH i2c: E2 0E 00 5D 70 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 17 [17:04:51]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [17:04:51]wFMCommunicate OK [17:04:51]SAM_PROTO_GetShiftState done [17:04:51]FM_GetShiftState done [17:04:51]opened in 1729989044 [17:04:51]opened+sec_in_day 1730075444 [17:04:51]quantity*price = 100015 [17:04:51]sum+1 = 100017 [17:04:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 223 27.10.2024 17:04 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156672 ФПД: 177654736784491 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T170457&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156672&fm=177654736784491&tin=02508201610067®Number=0000000000091693&sum=100000 [17:04:52]StoreToDocumentArchive [17:04:52]shift 537 fd 156672 [17:04:52]save to /storage/0537/doc_00156672 [17:04:52]save last doc name /storage/0537/doc_00156672 to /storage/kkm_last_doc_name [17:04:52]save OK [17:04:52]Clear old archive folders... [17:04:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:04:52]tlvbuf is 016A3A20 [17:04:52]SAM_PROTO_ClearQueue [17:04:52]wFMCommunicate request_size=4 [17:04:52]MH_SAM_APDU [17:04:52]CAPDU: 80 09 00 00 [17:04:52]Write to MH i2c: E2 08 00 6A 70 80 09 00 00 00 00 00 00 4C [17:04:52]Write i2c OK [17:04:52]MH_I2C_Read... [17:04:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:04:52]Read from MH i2c: E2 [17:04:52]MH_I2C_Read... [17:04:52]Read from MH i2c: E2 03 00 [17:04:52]MH_I2C_Read... [17:04:52]Read from MH i2c: E2 03 00 6A 70 00 90 00 4E [17:04:52]RAPDU: 90 00 [17:04:52]wFMCommunicate OK [17:04:52]SAM_PROTO_ClearQueue done [17:04:52]KKMCreateOFDPacket [17:04:52]OFDProtocolAddRootSTLVToBuf [17:04:52]FM_MakeSignedData [17:04:52]FM_MakeSignedData [17:04:52]SAM_PROTO_SignData [17:04:52]wFMCommunicate request_size=4 [17:04:52]MH_SAM_APDU [17:04:52]CAPDU: 80 0D 01 02 [17:04:52]Write to MH i2c: E2 08 00 6B 70 80 0D 01 02 00 00 00 00 54 [17:04:52]Write i2c OK [17:04:52]MH_I2C_Read... [17:04:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:04:52]Read from MH i2c: E2 [17:04:52]MH_I2C_Read... [17:04:52]Read from MH i2c: E2 03 00 [17:04:52]MH_I2C_Read... [17:04:52]Read from MH i2c: E2 03 00 6B 70 00 90 00 4F [17:04:52]RAPDU: 90 00 [17:04:52]wFMCommunicate OK [17:04:52]wFMCommunicate request_size=255 [17:04:52]MH_SAM_APDU [17:04:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 B9 72 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 00 64 02 00 35 04 06 00 A1 [17:04:52]Write to MH i2c: E2 02 01 6C 70 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 B9 72 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 00 64 02 00 35 04 06 00 A1 00 00 93 [17:04:52]Write i2c OK [17:04:52]MH_I2C_Read... [17:04:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:04:52]Read from MH i2c: E2 [17:04:52]MH_I2C_Read... [17:04:52]Read from MH i2c: E2 03 00 [17:04:52]MH_I2C_Read... [17:04:52]Read from MH i2c: E2 03 00 6C 70 00 90 00 50 [17:04:52]RAPDU: 90 00 [17:04:52]wFMCommunicate OK [17:04:52]wFMCommunicate request_size=10 [17:04:52]MH_SAM_APDU [17:04:52]CAPDU: 80 0D 02 02 05 93 77 7A 8C 6B [17:04:52]Write to MH i2c: E2 0D 00 6D 70 80 0D 02 02 05 00 93 77 7A 8C 6B 00 00 DC [17:04:52]Write i2c OK [17:04:52]MH_I2C_Read... [17:04:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:04:52]Read from MH i2c: E2 [17:04:52]MH_I2C_Read... [17:04:52]Read from MH i2c: E2 03 00 [17:04:52]MH_I2C_Read... [17:04:52]Read from MH i2c: E2 03 00 6D 70 00 90 00 51 [17:04:52]RAPDU: 90 00 [17:04:52]wFMCommunicate OK [17:04:52]wFMCommunicate request_size=4 [17:04:52]MH_SAM_APDU [17:04:52]CAPDU: 80 0D 03 02 [17:04:52]Write to MH i2c: E2 08 00 6E 70 80 0D 03 02 00 00 00 00 59 [17:04:52]Write i2c OK [17:04:52]MH_I2C_Read... [17:04:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:04:52]Read from MH i2c: E2 [17:04:52]MH_I2C_Read... [17:04:52]Read from MH i2c: E2 0B 00 [17:04:52]MH_I2C_Read... [17:04:52]Read from MH i2c: E2 0B 00 6E 70 00 14 2F A5 8F B8 14 8F DB 90 00 07 [17:04:52]RAPDU: 14 2F A5 8F B8 14 8F DB 90 00 [17:04:52]wFMCommunicate OK [17:04:52]SAM_PROTO_SignData done [17:04:52]FM_MakeSignedData done [17:04:52]CreateOFDProtocolMessage [17:04:52]wFMCommunicate request_size=4 [17:04:52]MH_SAM_APDU [17:04:52]CAPDU: 80 11 00 00 [17:04:52]Write to MH i2c: E2 08 00 6F 70 80 11 00 00 00 00 00 00 59 [17:04:52]Write i2c OK [17:04:52]MH_I2C_Read... [17:04:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:04:52]Read from MH i2c: E2 [17:04:52]MH_I2C_Read... [17:04:52]Read from MH i2c: E2 17 00 [17:04:52]MH_I2C_Read... [17:04:52]Read from MH i2c: E2 17 00 6F 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 AE [17:04:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:04:52]wFMCommunicate OK [17:04:52]CreateOFDProtocolMessage done [17:04:52]OFDSenderStorePacket 156672 [17:04:52]StoreOFDPacket docnum=156672 [17:04:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 B2 4A 07 01 D6 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 B9 72 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 00 64 02 00 35 04 06 00 A1 93 77 7A 8C 6B 14 2F A5 8F B8 14 8F DB [17:04:52]CheckFolder [17:04:52]dirname=/storage/ofd_packets [17:04:52]CheckFolder done [17:04:52]ProducePacketName [17:04:52]name=ofd_packets/00156672 [17:04:52]NVStorageSaveData ofd_packets/00156672 [17:04:52]File name is /storage/ofd_packets/00156672 [17:04:52]Write 301 bytes [17:04:52]NVStorageSaveData done [17:04:52]OFDSenderStorePacket done [17:04:52]KKMCreateOFDPacket done [17:04:52]NVStorageSaveData kkm_last_timestamp [17:04:52]File name is /storage/kkm_last_timestamp [17:04:52]Write 4 bytes [17:04:52]NVStorageSaveData done [17:04:52]ExternCall_PrintAddStr [17:04:52]wPrintStart [17:04:52]Write to MH i2c: 01 00 00 70 70 E0 [17:04:52]Write i2c OK [17:04:52]MH_I2C_Read... [17:04:52]Read from MH i2c: 01 [17:04:52]MH_I2C_Read... [17:04:52]Read from MH i2c: 01 07 00 [17:04:52]MH_I2C_Read... [17:04:52]Read from MH i2c: 01 07 00 70 70 00 00 00 00 00 FF 0F F5 [17:04:52]RasterBufferAndPrint [17:04:52]line Счет N : (1)99486 [17:04:52]line ИНН: 02508201610067 [17:04:52]line Контрольно-Кассовый Чек [17:04:52]line ПРОДАЖА [17:04:52]line ТРК (МРК, ГНК) : 31 [17:04:52]line Товар: 2710124130 [17:04:52]line Аи-92-К-5 [17:04:52]line 14.950 * 66.90 [17:04:52]line = 1000.16 [17:04:52]line НДС 12% НСП 1% [17:04:52]line > о реализуемом товаре [17:04:52]line ОКРУГЛЕНИЕ: -0.16 [17:04:52]line ИТОГО: 1000.00 [17:04:52]line Внесено: 1000.00 [17:04:52]line СДАЧА: 0.00 [17:04:52]line НСП 1% : 8.85 [17:04:52]line НДС 12% : 106.21 [17:04:52]line Наличными: 1000.00 [17:04:52]line Безнал.: 0.00 [17:04:52]line Место: АЗС № 143 "Партнер Нефть" [17:04:52]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [17:04:52]line СНО: Общий режим [17:04:52]line Чек 223 27.10.2024 17:04 [17:04:52]line Смена: 537 ФФД: 1.0 [17:04:52]line ЗНМ: 0300000096 [17:04:52]line РНМ: 0000000000091693 [17:04:52]line Версия ККМ: 001 [17:04:52]line ФМ: 0000000000871792 [17:04:52]line ФД: 156672 [17:04:52]line ФПД: 177654736784491 [17:04:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T170457&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156672&fm=177654736784491&tin=02508201610067®Number=0000000000091693&sum=100000 [17:04:53]OFD Sender: Processing packet 156672 [packets to send 31, broken 30] [17:04:53]ProducePacketName [17:04:53]name=ofd_packets/00156672 [17:04:53]OFD Sender: To server: pG, [17:04:53]CommunicateWithHost lk.salyk.kg:30040 [17:04:53]ConnectInit lk.salyk.kg [17:04:53]written 0, free lines is 4095 [17:04:53]Connected sock=9 [17:04:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 B2 4A 07 01 D6 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 B9 72 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 00 64 02 00 35 04 06 00 A1 93 77 7A 8C 6B 14 2F A5 8F B8 14 8F DB [17:04:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 9F 31 47 00 B3 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 00 64 02 00 F4 03 04 00 28 18 1E 67 B6 04 01 00 00 8C 6F 4B 83 4B 97 19 A6 [17:04:53]CommunicateWithHost err = 0 [17:04:53]CheckOFDResponse [17:04:53]1017 (14) - 77093643461234 [17:04:53]1041 (16) - 0000000000871792 [17:04:53]1040 (4) - 156672 [17:04:53]1012 (4) - 27.10.2024 10:38 [17:04:53]1206 (1) - 0 [17:04:53]OFD Sender: Remove packet 156672 [17:04:53]ProducePacketName [17:04:53]name=ofd_packets/00156672 [17:04:53]NVStorageDeleteData [17:04:53]Write to MH i2c: 01 00 00 9B 70 0B [17:04:53]Write i2c OK [17:04:53]MH_I2C_Read... [17:04:53]Read from MH i2c: 01 [17:04:53]MH_I2C_Read... [17:04:53]Read from MH i2c: 01 07 00 [17:04:53]MH_I2C_Read... [17:04:53]Read from MH i2c: 01 07 00 9B 70 00 00 00 00 00 D9 0C F7 [17:04:53]RasterBufferAndPrint [17:04:53]line [17:04:53]line [17:04:53]line [17:04:53]line [17:04:53]line [17:04:53]written 0, free lines is 3297 [17:04:53]process_action close_receipt done [17:04:53]requested_data is exist [17:04:53]produce_requested_data [17:04:53]requested_item fm.sn is exist - process it [17:04:53]wFMCommunicate request_size=4 [17:04:53]MH_SAM_APDU [17:04:53]CAPDU: 80 11 00 00 [17:04:53]Write to MH i2c: E2 08 00 A2 70 80 11 00 00 00 00 00 00 8C [17:04:53]Write i2c OK [17:04:53]MH_I2C_Read... [17:04:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:04:53]Read from MH i2c: E2 [17:04:53]MH_I2C_Read... [17:04:53]Read from MH i2c: E2 17 00 [17:04:53]MH_I2C_Read... [17:04:53]Read from MH i2c: E2 17 00 A2 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 E1 [17:04:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:04:53]wFMCommunicate OK [17:04:53]requested_item fd.num is exist - process it [17:04:53]SAM_PROTO_GetFieldsCounters [17:04:53]wFMCommunicate request_size=4 [17:04:53]MH_SAM_APDU [17:04:53]CAPDU: 80 13 00 00 [17:04:53]Write to MH i2c: E2 08 00 A3 70 80 13 00 00 00 00 00 00 8F [17:04:53]Write i2c OK [17:04:53]MH_I2C_Read... [17:04:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:04:53]Read from MH i2c: E2 [17:04:53]MH_I2C_Read... [17:04:53]Read from MH i2c: E2 62 00 [17:04:53]MH_I2C_Read... [17:04:53]Read from MH i2c: E2 62 00 A3 70 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 00 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 D3 [17:04:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 00 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:04:53]wFMCommunicate OK [17:04:53]SAM_PROTO_GetFieldsCounters done [17:04:53]requested_item shift.num is exist - process it [17:04:53]requested_item shift.opened is exist - process it [17:04:53]req_shift_opened [17:04:53]FM_GetShiftState [17:04:53]SAM_PROTO_GetShiftState [17:04:53]wFMCommunicate request_size=4 [17:04:53]MH_SAM_APDU [17:04:53]CAPDU: 80 13 01 00 [17:04:53]Write to MH i2c: E2 08 00 A4 70 80 13 01 00 00 00 00 00 91 [17:04:53]Write i2c OK [17:04:53]MH_I2C_Read... [17:04:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:04:53]Read from MH i2c: E2 [17:04:53]MH_I2C_Read... [17:04:53]Read from MH i2c: E2 0E 00 [17:04:53]MH_I2C_Read... [17:04:53]Read from MH i2c: E2 0E 00 A4 70 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 5E [17:04:53]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [17:04:53]wFMCommunicate OK [17:04:53]SAM_PROTO_GetShiftState done [17:04:53]FM_GetShiftState done [17:04:53]req_shift_opened done [17:04:53]requested_item shift.open_date is exist - process it [17:04:53]req_shift_open_date [17:04:53]req_shift_open_date done [17:04:53]produce_requested_data done [17:04:53]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156672,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [17:04:53]process_action_free close_receipt [17:04:53]json_value_free [17:04:53]json_value_free done [17:04:53]process_json_proto returns [17:04:53]Send response to host [17:04:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156672,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [17:04:53]free response buf [17:04:53]execute_script done [17:04:53]execute_script returns [17:04:53]free content buf [17:04:53]Sock 10.Close socket [17:04:53]Sock 10.Thread stoped [17:04:54]OFD Sender: No OFD packet to send [17:04:59]OFD Sender: No OFD packet to send [17:05:04]OFD Sender: No OFD packet to send [17:05:09]OFD Sender: No OFD packet to send [17:05:14]OFD Sender: No OFD packet to send [17:05:19]OFD Sender: No OFD packet to send [17:05:24]OFD Sender: No OFD packet to send [17:05:29]OFD Sender: No OFD packet to send [17:05:34]OFD Sender: No OFD packet to send [17:05:39]OFD Sender: No OFD packet to send [17:05:44]OFD Sender: No OFD packet to send [17:05:49]OFD Sender: No OFD packet to send [17:05:54]OFD Sender: No OFD packet to send [17:05:59]OFD Sender: No OFD packet to send [17:06:04]OFD Sender: No OFD packet to send [17:06:09]OFD Sender: No OFD packet to send [17:06:14]OFD Sender: No OFD packet to send [17:06:19]OFD Sender: No OFD packet to send [17:06:24]OFD Sender: No OFD packet to send [17:06:29]OFD Sender: No OFD packet to send [17:06:34]OFD Sender: No OFD packet to send [17:06:39]OFD Sender: No OFD packet to send [17:06:44]OFD Sender: No OFD packet to send [17:06:49]OFD Sender: No OFD packet to send [17:06:54]OFD Sender: No OFD packet to send [17:06:59]OFD Sender: No OFD packet to send [17:07:04]OFD Sender: No OFD packet to send [17:07:09]OFD Sender: No OFD packet to send [17:07:14]OFD Sender: No OFD packet to send [17:07:19]OFD Sender: No OFD packet to send [17:07:24]OFD Sender: No OFD packet to send [17:07:26]accept exits with 8 [17:07:26]New connection [17:07:26]New thread 3066977636 created [17:07:26]Thread 3066834276 joined [17:07:26]Waiting for new connection... [17:07:26] Sock 8.Parse request [17:07:26]Sock 8.Check first char [17:07:26]Sock 8.First char is OK [17:07:26]request: POST /json_proto HTTP/1.0 [17:07:26]Method: POST [17:07:26]URL: /json_proto [17:07:26]Method is POST - this is cgi request [17:07:26]url: /json_proto [17:07:26]query_string will be loaded in cgi processing [17:07:26]execute_cgi json_proto POST (null) [17:07:26]execute_cgi path=json_proto method=POST [17:07:26]POST find Content-Length [17:07:26]Host: 172.17.63.3:8080 [17:07:26]Content-Length: 678 [17:07:26]Content-Type: application/json [17:07:26] [17:07:26]POST finish read [17:07:26]Found Content-Length = 678 [17:07:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99487", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 28.880, "sum" : 2200.66, "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" ] } } [17:07:26]execute_script... [17:07: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)99487", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 28.880, "sum" : 2200.66, "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" ] } } [17:07:26]POST & json_proto [17:07:26]process_json_proto [17:07:26]json parsed OK: [17:07:26]protocol is kg_v1.0 [17:07:26]action value=close_receipt [17:07:26]process_action close_receipt [17:07:26]cmd_close_receipt [17:07:26]MH_GetDate [17:07:26]Write to MH i2c: F0 00 00 A5 70 04 [17:07:26]Write i2c OK [17:07:26]MH_I2C_Read... [17:07:26]Read from MH i2c: F0 [17:07:26]MH_I2C_Read... [17:07:26]Read from MH i2c: F0 09 00 [17:07:26]MH_I2C_Read... [17:07:26]Read from MH i2c: F0 09 00 A5 70 00 55 73 1E 67 50 D1 6C 64 4B [17:07:26]GetLastDocTimeStamp 1730048697 [17:07:26]current date 1730048853 [17:07:26]FM_GetShiftState [17:07:26]SAM_PROTO_GetShiftState [17:07:26]wFMCommunicate request_size=4 [17:07:26]MH_SAM_APDU [17:07:26]CAPDU: 80 13 01 00 [17:07:26]Write to MH i2c: E2 08 00 A6 70 80 13 01 00 00 00 00 00 93 [17:07:26]Write i2c OK [17:07:26]MH_I2C_Read... [17:07:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:07:26]Read from MH i2c: E2 [17:07:26]MH_I2C_Read... [17:07:26]Read from MH i2c: E2 0E 00 [17:07:26]MH_I2C_Read... [17:07:26]Read from MH i2c: E2 0E 00 A6 70 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 60 [17:07:26]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [17:07:26]wFMCommunicate OK [17:07:26]SAM_PROTO_GetShiftState done [17:07:26]FM_GetShiftState done [17:07:26]opened in 1729989044 [17:07:26]opened+sec_in_day 1730075444 [17:07:26]quantity*price = 220065 [17:07:26]sum+1 = 220067 [17:07:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 2200.00 Внесено: 2200.00 СДАЧА: 0.00 НСП 1% : 19.47 НДС 12% : 233.70 Наличными: 2200.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 224 27.10.2024 17:07 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156673 ФПД: 21782129410207 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T170733&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156673&fm=21782129410207&tin=02508201610067®Number=0000000000091693&sum=220000 [17:07:27]StoreToDocumentArchive [17:07:27]shift 537 fd 156673 [17:07:27]save to /storage/0537/doc_00156673 [17:07:27]save last doc name /storage/0537/doc_00156673 to /storage/kkm_last_doc_name [17:07:27]save OK [17:07:27]Clear old archive folders... [17:07:27]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:07:27]tlvbuf is 0182BAC0 [17:07:27]SAM_PROTO_ClearQueue [17:07:27]wFMCommunicate request_size=4 [17:07:27]MH_SAM_APDU [17:07:27]CAPDU: 80 09 00 00 [17:07:27]Write to MH i2c: E2 08 00 B3 70 80 09 00 00 00 00 00 00 95 [17:07:27]Write i2c OK [17:07:27]MH_I2C_Read... [17:07:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:07:27]Read from MH i2c: E2 [17:07:27]MH_I2C_Read... [17:07:27]Read from MH i2c: E2 03 00 [17:07:27]MH_I2C_Read... [17:07:27]Read from MH i2c: E2 03 00 B3 70 00 90 00 97 [17:07:27]RAPDU: 90 00 [17:07:27]wFMCommunicate OK [17:07:27]SAM_PROTO_ClearQueue done [17:07:27]KKMCreateOFDPacket [17:07:27]OFDProtocolAddRootSTLVToBuf [17:07:27]FM_MakeSignedData [17:07:27]FM_MakeSignedData [17:07:27]SAM_PROTO_SignData [17:07:27]wFMCommunicate request_size=4 [17:07:27]MH_SAM_APDU [17:07:27]CAPDU: 80 0D 01 02 [17:07:27]Write to MH i2c: E2 08 00 B4 70 80 0D 01 02 00 00 00 00 9D [17:07:27]Write i2c OK [17:07:27]MH_I2C_Read... [17:07:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:07:27]Read from MH i2c: E2 [17:07:27]MH_I2C_Read... [17:07:27]Read from MH i2c: E2 03 00 [17:07:27]MH_I2C_Read... [17:07:27]Read from MH i2c: E2 03 00 B4 70 00 90 00 98 [17:07:27]RAPDU: 90 00 [17:07:27]wFMCommunicate OK [17:07:27]wFMCommunicate request_size=255 [17:07:27]MH_SAM_APDU [17:07:27]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D0 70 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A2 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 4A 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 E0 00 00 00 F4 03 04 00 55 73 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 01 64 02 00 35 04 06 00 13 CF 8C 16 [17:07:27]Write to MH i2c: E2 02 01 B5 70 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D0 70 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A2 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 4A 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 E0 00 00 00 F4 03 04 00 55 73 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 01 64 02 00 35 04 06 00 13 CF 8C 16 00 00 16 [17:07:27]Write i2c OK [17:07:27]MH_I2C_Read... [17:07:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:07:27]Read from MH i2c: E2 [17:07:27]MH_I2C_Read... [17:07:27]Read from MH i2c: E2 03 00 [17:07:27]MH_I2C_Read... [17:07:27]Read from MH i2c: E2 03 00 B5 70 00 90 00 99 [17:07:27]RAPDU: 90 00 [17:07:27]wFMCommunicate OK [17:07:27]wFMCommunicate request_size=7 [17:07:27]MH_SAM_APDU [17:07:27]CAPDU: 80 0D 02 02 02 00 9F [17:07:27]Write to MH i2c: E2 0A 00 B6 70 80 0D 02 02 02 00 00 9F 00 00 43 [17:07:27]Write i2c OK [17:07:27]MH_I2C_Read... [17:07:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:07:27]Read from MH i2c: E2 [17:07:27]MH_I2C_Read... [17:07:27]Read from MH i2c: E2 03 00 [17:07:27]MH_I2C_Read... [17:07:27]Read from MH i2c: E2 03 00 B6 70 00 90 00 9A [17:07:27]RAPDU: 90 00 [17:07:27]wFMCommunicate OK [17:07:27]wFMCommunicate request_size=4 [17:07:27]MH_SAM_APDU [17:07:27]CAPDU: 80 0D 03 02 [17:07:27]Write to MH i2c: E2 08 00 B7 70 80 0D 03 02 00 00 00 00 A2 [17:07:27]Write i2c OK [17:07:27]MH_I2C_Read... [17:07:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:07:27]Read from MH i2c: E2 [17:07:27]MH_I2C_Read... [17:07:27]Read from MH i2c: E2 0B 00 [17:07:27]MH_I2C_Read... [17:07:27]Read from MH i2c: E2 0B 00 B7 70 00 28 56 3B 6E F9 32 4A 2D 90 00 6C [17:07:27]RAPDU: 28 56 3B 6E F9 32 4A 2D 90 00 [17:07:27]wFMCommunicate OK [17:07:27]SAM_PROTO_SignData done [17:07:27]FM_MakeSignedData done [17:07:27]CreateOFDProtocolMessage [17:07:27]wFMCommunicate request_size=4 [17:07:27]MH_SAM_APDU [17:07:27]CAPDU: 80 11 00 00 [17:07:27]Write to MH i2c: E2 08 00 B8 70 80 11 00 00 00 00 00 00 A2 [17:07:27]Write i2c OK [17:07:27]MH_I2C_Read... [17:07:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:07:27]Read from MH i2c: E2 [17:07:27]MH_I2C_Read... [17:07:27]Read from MH i2c: E2 17 00 [17:07:27]MH_I2C_Read... [17:07:28]Read from MH i2c: E2 17 00 B8 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 F7 [17:07:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:07:28]wFMCommunicate OK [17:07:28]CreateOFDProtocolMessage done [17:07:28]OFDSenderStorePacket 156673 [17:07:28]StoreOFDPacket docnum=156673 [17:07:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 E0 E7 04 01 6F 48 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D0 70 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A2 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 4A 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 E0 00 00 00 F4 03 04 00 55 73 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 01 64 02 00 35 04 06 00 13 CF 8C 16 00 9F 28 56 3B 6E F9 32 4A 2D [17:07:28]CheckFolder [17:07:28]dirname=/storage/ofd_packets [17:07:28]CheckFolder done [17:07:28]ProducePacketName [17:07:28]name=ofd_packets/00156673 [17:07:28]NVStorageSaveData ofd_packets/00156673 [17:07:28]File name is /storage/ofd_packets/00156673 [17:07:28]Write 298 bytes [17:07:28]NVStorageSaveData done [17:07:28]OFDSenderStorePacket done [17:07:28]KKMCreateOFDPacket done [17:07:28]NVStorageSaveData kkm_last_timestamp [17:07:28]File name is /storage/kkm_last_timestamp [17:07:28]Write 4 bytes [17:07:28]NVStorageSaveData done [17:07:28]ExternCall_PrintAddStr [17:07:28]wPrintStart [17:07:28]Write to MH i2c: 01 00 00 B9 70 29 [17:07:28]Write i2c OK [17:07:28]MH_I2C_Read... [17:07:28]Read from MH i2c: 01 [17:07:28]MH_I2C_Read... [17:07:28]Read from MH i2c: 01 07 00 [17:07:28]MH_I2C_Read... [17:07:28]Read from MH i2c: 01 07 00 B9 70 00 00 00 00 00 FF 0F 3E [17:07:28]RasterBufferAndPrint [17:07:28]line Счет N : (1)99487 [17:07:28]line ИНН: 02508201610067 [17:07:28]line Контрольно-Кассовый Чек [17:07:28]line ПРОДАЖА [17:07:28]line ТРК (МРК, ГНК) : 32 [17:07:28]line Товар: 2710194210 [17:07:28]line ДТ-К-5 [17:07:28]line 28.880 * 76.20 [17:07:28]line = 2200.66 [17:07:28]line НДС 12% НСП 1% [17:07:28]line > о реализуемом товаре [17:07:28]line ОКРУГЛЕНИЕ: -0.66 [17:07:28]line ИТОГО: 2200.00 [17:07:28]line Внесено: 2200.00 [17:07:28]line СДАЧА: 0.00 [17:07:28]line НСП 1% : 19.47 [17:07:28]line НДС 12% : 233.70 [17:07:28]line Наличными: 2200.00 [17:07:28]line Безнал.: 0.00 [17:07:28]line Место: АЗС № 143 "Партнер Нефть" [17:07:28]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [17:07:28]line СНО: Общий режим [17:07:28]line Чек 224 27.10.2024 17:07 [17:07:28]line Смена: 537 ФФД: 1.0 [17:07:28]line ЗНМ: 0300000096 [17:07:28]line РНМ: 0000000000091693 [17:07:28]line Версия ККМ: 001 [17:07:28]line ФМ: 0000000000871792 [17:07:28]line ФД: 156673 [17:07:28]line ФПД: 21782129410207 [17:07:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T170733&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156673&fm=21782129410207&tin=02508201610067®Number=0000000000091693&sum=220000 [17:07:28]written 0, free lines is 4095 [17:07:28]OFD Sender: Processing packet 156673 [packets to send 31, broken 30] [17:07:28]ProducePacketName [17:07:28]name=ofd_packets/00156673 [17:07:28]OFD Sender: To server: pG, [17:07:28]CommunicateWithHost lk.salyk.kg:30040 [17:07:28]ConnectInit lk.salyk.kg [17:07:28]Connected sock=10 [17:07:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 E0 E7 04 01 6F 48 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D0 70 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A2 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 4A 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 E0 00 00 00 F4 03 04 00 55 73 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 01 64 02 00 35 04 06 00 13 CF 8C 16 00 9F 28 56 3B 6E F9 32 4A 2D [17:07:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 F2 7B 47 00 FA 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 31 37 39 32 10 04 04 00 01 64 02 00 F4 03 04 00 C4 18 1E 67 B6 04 01 00 00 13 C2 BF A8 93 52 C5 A4 [17:07:28]CommunicateWithHost err = 0 [17:07:28]CheckOFDResponse [17:07:28]1017 (14) - 77093643461234 [17:07:28]1041 (16) - 0000000000871792 [17:07:28]1040 (4) - 156673 [17:07:28]1012 (4) - 27.10.2024 10:41 [17:07:28]1206 (1) - 0 [17:07:28]OFD Sender: Remove packet 156673 [17:07:28]ProducePacketName [17:07:28]name=ofd_packets/00156673 [17:07:28]NVStorageDeleteData [17:07:28]Write to MH i2c: 01 00 00 E4 70 54 [17:07:28]Write i2c OK [17:07:28]MH_I2C_Read... [17:07:28]Read from MH i2c: 01 [17:07:28]MH_I2C_Read... [17:07:28]Read from MH i2c: 01 07 00 [17:07:28]MH_I2C_Read... [17:07:28]Read from MH i2c: 01 07 00 E4 70 00 00 00 00 00 E8 0C 4F [17:07:28]RasterBufferAndPrint [17:07:28]line [17:07:28]line [17:07:28]line [17:07:28]line [17:07:28]line [17:07:28]written 0, free lines is 3310 [17:07:28]process_action close_receipt done [17:07:28]requested_data is exist [17:07:28]produce_requested_data [17:07:28]requested_item fm.sn is exist - process it [17:07:28]wFMCommunicate request_size=4 [17:07:28]MH_SAM_APDU [17:07:28]CAPDU: 80 11 00 00 [17:07:28]Write to MH i2c: E2 08 00 EB 70 80 11 00 00 00 00 00 00 D5 [17:07:28]Write i2c OK [17:07:28]MH_I2C_Read... [17:07:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:07:28]Read from MH i2c: E2 [17:07:28]MH_I2C_Read... [17:07:28]Read from MH i2c: E2 17 00 [17:07:28]MH_I2C_Read... [17:07:28]Read from MH i2c: E2 17 00 EB 70 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 2A [17:07:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:07:28]wFMCommunicate OK [17:07:28]requested_item fd.num is exist - process it [17:07:28]SAM_PROTO_GetFieldsCounters [17:07:28]wFMCommunicate request_size=4 [17:07:28]MH_SAM_APDU [17:07:28]CAPDU: 80 13 00 00 [17:07:28]Write to MH i2c: E2 08 00 EC 70 80 13 00 00 00 00 00 00 D8 [17:07:28]Write i2c OK [17:07:28]MH_I2C_Read... [17:07:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:07:28]Read from MH i2c: E2 [17:07:28]MH_I2C_Read... [17:07:29]Read from MH i2c: E2 62 00 [17:07:29]MH_I2C_Read... [17:07:29]Read from MH i2c: E2 62 00 EC 70 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 01 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 20 [17:07:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 01 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:07:29]wFMCommunicate OK [17:07:29]SAM_PROTO_GetFieldsCounters done [17:07:29]requested_item shift.num is exist - process it [17:07:29]requested_item shift.opened is exist - process it [17:07:29]req_shift_opened [17:07:29]FM_GetShiftState [17:07:29]SAM_PROTO_GetShiftState [17:07:29]wFMCommunicate request_size=4 [17:07:29]MH_SAM_APDU [17:07:29]CAPDU: 80 13 01 00 [17:07:29]Write to MH i2c: E2 08 00 ED 70 80 13 01 00 00 00 00 00 DA [17:07:29]Write i2c OK [17:07:29]MH_I2C_Read... [17:07:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:07:29]Read from MH i2c: E2 [17:07:29]MH_I2C_Read... [17:07:29]Read from MH i2c: E2 0E 00 [17:07:29]MH_I2C_Read... [17:07:29]Read from MH i2c: E2 0E 00 ED 70 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 A7 [17:07:29]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [17:07:29]wFMCommunicate OK [17:07:29]SAM_PROTO_GetShiftState done [17:07:29]FM_GetShiftState done [17:07:29]req_shift_opened done [17:07:29]requested_item shift.open_date is exist - process it [17:07:29]req_shift_open_date [17:07:29]req_shift_open_date done [17:07:29]produce_requested_data done [17:07:29]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156673,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [17:07:29]process_action_free close_receipt [17:07:29]json_value_free [17:07:29]json_value_free done [17:07:29]process_json_proto returns [17:07:29]Send response to host [17:07:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156673,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [17:07:29]free response buf [17:07:29]execute_script done [17:07:29]execute_script returns [17:07:29]free content buf [17:07:29]Sock 8.Close socket [17:07:29]Sock 8.Thread stoped [17:07:29]OFD Sender: No OFD packet to send [17:07:34]OFD Sender: No OFD packet to send [17:07:39]OFD Sender: No OFD packet to send [17:07:44]OFD Sender: No OFD packet to send [17:07:49]OFD Sender: No OFD packet to send [17:07:54]OFD Sender: No OFD packet to send [17:07:59]OFD Sender: No OFD packet to send [17:08:04]OFD Sender: No OFD packet to send [17:08:09]OFD Sender: No OFD packet to send [17:08:14]OFD Sender: No OFD packet to send [17:08:19]OFD Sender: No OFD packet to send [17:08:24]OFD Sender: No OFD packet to send [17:08:29]OFD Sender: No OFD packet to send [17:08:34]OFD Sender: No OFD packet to send [17:08:39]OFD Sender: No OFD packet to send [17:08:44]OFD Sender: No OFD packet to send [17:08:49]OFD Sender: No OFD packet to send [17:08:54]OFD Sender: No OFD packet to send [17:08:59]OFD Sender: No OFD packet to send [17:09:04]OFD Sender: No OFD packet to send [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:04]OFD Sender: No OFD packet to send [17:10:09]OFD Sender: No OFD packet to send [17:10:14]OFD Sender: No OFD packet to send [17:10:19]OFD Sender: No OFD packet to send [17:10:24]OFD Sender: No OFD packet to send [17:10:29]OFD Sender: No OFD packet to send [17:10:34]OFD Sender: No OFD packet to send [17:10:39]OFD Sender: No OFD packet to send [17:10:44]OFD Sender: No OFD packet to send [17:10:49]OFD Sender: No OFD packet to send [17:10:54]OFD Sender: No OFD packet to send [17:10:59]OFD Sender: No OFD packet to send [17:11:04]OFD Sender: No OFD packet to send [17:11:09]OFD Sender: No OFD packet to send [17:11:14]OFD Sender: No OFD packet to send [17:11:19]OFD Sender: No OFD packet to send [17:11:24]OFD Sender: No OFD packet to send [17:11:29]OFD Sender: No OFD packet to send [17:11:34]OFD Sender: No OFD packet to send [17:11:39]OFD Sender: No OFD packet to send [17:11:44]OFD Sender: No OFD packet to send [17:11:49]OFD Sender: No OFD packet to send [17:11:54]OFD Sender: No OFD packet to send [17:11:59]OFD Sender: No OFD packet to send [17:12:04]OFD Sender: No OFD packet to send [17:12:09]OFD Sender: No OFD packet to send [17:12:14]OFD Sender: No OFD packet to send [17:12:19]OFD Sender: No OFD packet to send [17:12:24]OFD Sender: No OFD packet to send [17:12:29]OFD Sender: No OFD packet to send [17:12:34]OFD Sender: No OFD packet to send [17:12:39]OFD Sender: No OFD packet to send [17:12:44]OFD Sender: No OFD packet to send [17:12:49]OFD Sender: No OFD packet to send [17:12:54]OFD Sender: No OFD packet to send [17:12:59]OFD Sender: No OFD packet to send [17:13:04]OFD Sender: No OFD packet to send [17:13:09]OFD Sender: No OFD packet to send [17:13:14]OFD Sender: No OFD packet to send [17:13:19]OFD Sender: No OFD packet to send [17:13:24]OFD Sender: No OFD packet to send [17:13:29]OFD Sender: No OFD packet to send [17:13:34]OFD Sender: No OFD packet to send [17:13:39]OFD Sender: No OFD packet to send [17:13:44]OFD Sender: No OFD packet to send [17:13:49]OFD Sender: No OFD packet to send [17:13:54]OFD Sender: No OFD packet to send [17:13:59]OFD Sender: No OFD packet to send [17:14:04]OFD Sender: No OFD packet to send [17:14:09]OFD Sender: No OFD packet to send [17:14:10]accept exits with 9 [17:14:10]New connection [17:14:10]New thread 3066834276 created [17:14:10]Thread 3066977636 joined [17:14:10]Waiting for new connection... [17:14:10] Sock 9.Parse request [17:14:10]Sock 9.Check first char [17:14:10]Sock 9.First char is OK [17:14:10]request: POST /json_proto HTTP/1.0 [17:14:10]Method: POST [17:14:10]URL: /json_proto [17:14:10]Method is POST - this is cgi request [17:14:10]url: /json_proto [17:14:10]query_string will be loaded in cgi processing [17:14:10]execute_cgi json_proto POST (null) [17:14:10]execute_cgi path=json_proto method=POST [17:14:10]POST find Content-Length [17:14:10]Host: 172.17.63.3:8080 [17:14:10]Content-Length: 676 [17:14:10]Content-Type: application/json [17:14:10] [17:14:10]POST finish read [17:14:10]Found Content-Length = 676 [17:14:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99488", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "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" ] } } [17:14:10]execute_script... [17:14: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)99488", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "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" ] } } [17:14:10]POST & json_proto [17:14:10]process_json_proto [17:14:10]json parsed OK: [17:14:10]protocol is kg_v1.0 [17:14:10]action value=close_receipt [17:14:10]process_action close_receipt [17:14:10]cmd_close_receipt [17:14:10]MH_GetDate [17:14:10]Write to MH i2c: F0 00 00 EE 70 4D [17:14:10]Write i2c OK [17:14:10]MH_I2C_Read... [17:14:10]Read from MH i2c: F0 [17:14:10]MH_I2C_Read... [17:14:10]Read from MH i2c: F0 09 00 [17:14:10]MH_I2C_Read... [17:14:10]Read from MH i2c: F0 09 00 EE 70 00 E8 74 1E 67 50 D1 6C 64 28 [17:14:10]GetLastDocTimeStamp 1730048853 [17:14:10]current date 1730049256 [17:14:10]FM_GetShiftState [17:14:10]SAM_PROTO_GetShiftState [17:14:10]wFMCommunicate request_size=4 [17:14:10]MH_SAM_APDU [17:14:10]CAPDU: 80 13 01 00 [17:14:10]Write to MH i2c: E2 08 00 EF 70 80 13 01 00 00 00 00 00 DC [17:14:10]Write i2c OK [17:14:10]MH_I2C_Read... [17:14:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:14:10]Read from MH i2c: E2 [17:14:10]MH_I2C_Read... [17:14:10]Read from MH i2c: E2 0E 00 [17:14:10]MH_I2C_Read... [17:14:10]Read from MH i2c: E2 0E 00 EF 70 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 A9 [17:14:10]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [17:14:10]wFMCommunicate OK [17:14:10]SAM_PROTO_GetShiftState done [17:14:10]FM_GetShiftState done [17:14:10]opened in 1729989044 [17:14:10]opened+sec_in_day 1730075444 [17:14:10]quantity*price = 20003 [17:14:10]sum+1 = 20004 [17:14:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 225 27.10.2024 17:14 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156674 ФПД: 15732776161942 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T171416&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156674&fm=15732776161942&tin=02508201610067®Number=0000000000091693&sum=20000 [17:14:11]StoreToDocumentArchive [17:14:11]shift 537 fd 156674 [17:14:11]save to /storage/0537/doc_00156674 [17:14:11]save last doc name /storage/0537/doc_00156674 to /storage/kkm_last_doc_name [17:14:11]save OK [17:14:11]Clear old archive folders... [17:14:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:14:11]tlvbuf is 016BD5E0 [17:14:11]SAM_PROTO_ClearQueue [17:14:11]wFMCommunicate request_size=4 [17:14:11]MH_SAM_APDU [17:14:11]CAPDU: 80 09 00 00 [17:14:11]Write to MH i2c: E2 08 00 FC 70 80 09 00 00 00 00 00 00 DE [17:14:11]Write i2c OK [17:14:11]MH_I2C_Read... [17:14:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:14:11]Read from MH i2c: E2 [17:14:11]MH_I2C_Read... [17:14:11]Read from MH i2c: E2 03 00 [17:14:11]MH_I2C_Read... [17:14:11]Read from MH i2c: E2 03 00 FC 70 00 90 00 E0 [17:14:11]RAPDU: 90 00 [17:14:11]wFMCommunicate OK [17:14:11]SAM_PROTO_ClearQueue done [17:14:11]KKMCreateOFDPacket [17:14:11]OFDProtocolAddRootSTLVToBuf [17:14:11]FM_MakeSignedData [17:14:11]FM_MakeSignedData [17:14:11]SAM_PROTO_SignData [17:14:11]wFMCommunicate request_size=4 [17:14:11]MH_SAM_APDU [17:14:11]CAPDU: 80 0D 01 02 [17:14:11]Write to MH i2c: E2 08 00 FD 70 80 0D 01 02 00 00 00 00 E6 [17:14:11]Write i2c OK [17:14:11]MH_I2C_Read... [17:14:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:14:11]Read from MH i2c: E2 [17:14:11]MH_I2C_Read... [17:14:11]Read from MH i2c: E2 03 00 [17:14:11]MH_I2C_Read... [17:14:11]Read from MH i2c: E2 03 00 FD 70 00 90 00 E1 [17:14:11]RAPDU: 90 00 [17:14:11]wFMCommunicate OK [17:14:11]wFMCommunicate request_size=255 [17:14:11]MH_SAM_APDU [17:14:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 E1 00 00 00 F4 03 04 00 E8 74 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 02 64 02 00 35 04 06 00 0E [17:14:11]Write to MH i2c: E2 02 01 FE 70 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 E1 00 00 00 F4 03 04 00 E8 74 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 02 64 02 00 35 04 06 00 0E 00 00 8F [17:14:11]Write i2c OK [17:14:11]MH_I2C_Read... [17:14:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:14:11]Read from MH i2c: E2 [17:14:11]MH_I2C_Read... [17:14:11]Read from MH i2c: E2 03 00 [17:14:11]MH_I2C_Read... [17:14:11]Read from MH i2c: E2 03 00 FE 70 00 90 00 E2 [17:14:11]RAPDU: 90 00 [17:14:11]wFMCommunicate OK [17:14:11]wFMCommunicate request_size=10 [17:14:11]MH_SAM_APDU [17:14:11]CAPDU: 80 0D 02 02 05 4F 12 88 D2 96 [17:14:11]Write to MH i2c: E2 0D 00 FF 70 80 0D 02 02 05 00 4F 12 88 D2 96 00 00 44 [17:14:11]Write i2c OK [17:14:11]MH_I2C_Read... [17:14:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:14:11]Read from MH i2c: E2 [17:14:11]MH_I2C_Read... [17:14:11]Read from MH i2c: E2 03 00 [17:14:11]MH_I2C_Read... [17:14:11]Read from MH i2c: E2 03 00 FF 70 00 90 00 E3 [17:14:11]RAPDU: 90 00 [17:14:11]wFMCommunicate OK [17:14:11]wFMCommunicate request_size=4 [17:14:11]MH_SAM_APDU [17:14:11]CAPDU: 80 0D 03 02 [17:14:11]Write to MH i2c: E2 08 00 00 71 80 0D 03 02 00 00 00 00 EC [17:14:11]Write i2c OK [17:14:11]MH_I2C_Read... [17:14:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:14:11]Read from MH i2c: E2 [17:14:11]MH_I2C_Read... [17:14:11]Read from MH i2c: E2 0B 00 [17:14:11]MH_I2C_Read... [17:14:11]Read from MH i2c: E2 0B 00 00 71 00 38 0E 0B FE FA 11 B6 D8 90 00 D5 [17:14:11]RAPDU: 38 0E 0B FE FA 11 B6 D8 90 00 [17:14:11]wFMCommunicate OK [17:14:11]SAM_PROTO_SignData done [17:14:11]FM_MakeSignedData done [17:14:11]CreateOFDProtocolMessage [17:14:11]wFMCommunicate request_size=4 [17:14:11]MH_SAM_APDU [17:14:11]CAPDU: 80 11 00 00 [17:14:11]Write to MH i2c: E2 08 00 01 71 80 11 00 00 00 00 00 00 EC [17:14:11]Write i2c OK [17:14:11]MH_I2C_Read... [17:14:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:14:11]Read from MH i2c: E2 [17:14:11]MH_I2C_Read... [17:14:11]Read from MH i2c: E2 17 00 [17:14:11]MH_I2C_Read... [17:14:11]Read from MH i2c: E2 17 00 01 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 41 [17:14:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:14:11]wFMCommunicate OK [17:14:11]CreateOFDProtocolMessage done [17:14:11]OFDSenderStorePacket 156674 [17:14:11]StoreOFDPacket docnum=156674 [17:14:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 F4 3F 07 01 C0 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 E1 00 00 00 F4 03 04 00 E8 74 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 02 64 02 00 35 04 06 00 0E 4F 12 88 D2 96 38 0E 0B FE FA 11 B6 D8 [17:14:11]CheckFolder [17:14:11]dirname=/storage/ofd_packets [17:14:11]CheckFolder done [17:14:11]ProducePacketName [17:14:11]name=ofd_packets/00156674 [17:14:11]NVStorageSaveData ofd_packets/00156674 [17:14:11]File name is /storage/ofd_packets/00156674 [17:14:11]Write 301 bytes [17:14:11]NVStorageSaveData done [17:14:11]OFDSenderStorePacket done [17:14:11]KKMCreateOFDPacket done [17:14:11]NVStorageSaveData kkm_last_timestamp [17:14:11]File name is /storage/kkm_last_timestamp [17:14:11]Write 4 bytes [17:14:11]NVStorageSaveData done [17:14:11]ExternCall_PrintAddStr [17:14:11]wPrintStart [17:14:11]Write to MH i2c: 01 00 00 02 71 73 [17:14:11]Write i2c OK [17:14:11]MH_I2C_Read... [17:14:11]Read from MH i2c: 01 [17:14:11]MH_I2C_Read... [17:14:11]Read from MH i2c: 01 07 00 [17:14:11]MH_I2C_Read... [17:14:11]Read from MH i2c: 01 07 00 02 71 00 00 00 00 00 FF 0F 88 [17:14:11]RasterBufferAndPrint [17:14:11]line Счет N : (1)99488 [17:14:11]line ИНН: 02508201610067 [17:14:11]line Контрольно-Кассовый Чек [17:14:11]line ПРОДАЖА [17:14:11]line ТРК (МРК, ГНК) : 31 [17:14:11]line Товар: 2710124130 [17:14:11]line Аи-92-К-5 [17:14:11]line 2.990 * 66.90 [17:14:11]line = 200.03 [17:14:11]line НДС 12% НСП 1% [17:14:11]line > о реализуемом товаре [17:14:11]line ОКРУГЛЕНИЕ: -0.03 [17:14:11]line ИТОГО: 200.00 [17:14:11]line Внесено: 200.00 [17:14:11]line СДАЧА: 0.00 [17:14:11]line НСП 1% : 1.77 [17:14:11]line НДС 12% : 21.24 [17:14:11]line Наличными: 200.00 [17:14:11]line Безнал.: 0.00 [17:14:11]line Место: АЗС № 143 "Партнер Нефть" [17:14:11]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [17:14:11]line СНО: Общий режим [17:14:11]line Чек 225 27.10.2024 17:14 [17:14:11]line Смена: 537 ФФД: 1.0 [17:14:11]line ЗНМ: 0300000096 [17:14:11]line РНМ: 0000000000091693 [17:14:11]line Версия ККМ: 001 [17:14:11]line ФМ: 0000000000871792 [17:14:11]line ФД: 156674 [17:14:11]line ФПД: 15732776161942 [17:14:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T171416&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156674&fm=15732776161942&tin=02508201610067®Number=0000000000091693&sum=20000 [17:14:12]OFD Sender: Processing packet 156674 [packets to send 31, broken 30] [17:14:12]ProducePacketName [17:14:12]name=ofd_packets/00156674 [17:14:12]OFD Sender: To server: pG, [17:14:12]CommunicateWithHost lk.salyk.kg:30040 [17:14:12]ConnectInit lk.salyk.kg [17:14:12]written 0, free lines is 4095 [17:14:12]Connected sock=10 [17:14:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 F4 3F 07 01 C0 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 E1 00 00 00 F4 03 04 00 E8 74 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 02 64 02 00 35 04 06 00 0E 4F 12 88 D2 96 38 0E 0B FE FA 11 B6 D8 [17:14:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 45 E1 47 00 34 DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 02 64 02 00 F4 03 04 00 57 1A 1E 67 B6 04 01 00 00 CF 06 30 7C CE 08 20 A3 [17:14:12]CommunicateWithHost err = 0 [17:14:12]CheckOFDResponse [17:14:12]1017 (14) - 77093643461234 [17:14:12]1041 (16) - 0000000000871792 [17:14:12]1040 (4) - 156674 [17:14:12]1012 (4) - 27.10.2024 10:47 [17:14:12]1206 (1) - 0 [17:14:12]OFD Sender: Remove packet 156674 [17:14:12]ProducePacketName [17:14:12]name=ofd_packets/00156674 [17:14:12]NVStorageDeleteData [17:14:12]Write to MH i2c: 01 00 00 2D 71 9E [17:14:12]Write i2c OK [17:14:12]MH_I2C_Read... [17:14:12]Read from MH i2c: 01 [17:14:12]MH_I2C_Read... [17:14:12]Read from MH i2c: 01 07 00 [17:14:12]MH_I2C_Read... [17:14:12]Read from MH i2c: 01 07 00 2D 71 00 00 00 00 00 E0 0C 91 [17:14:12]RasterBufferAndPrint [17:14:12]line [17:14:12]line [17:14:12]line [17:14:12]line [17:14:12]line [17:14:12]written 0, free lines is 3301 [17:14:12]process_action close_receipt done [17:14:12]requested_data is exist [17:14:12]produce_requested_data [17:14:12]requested_item fm.sn is exist - process it [17:14:12]wFMCommunicate request_size=4 [17:14:12]MH_SAM_APDU [17:14:12]CAPDU: 80 11 00 00 [17:14:12]Write to MH i2c: E2 08 00 34 71 80 11 00 00 00 00 00 00 1F [17:14:12]Write i2c OK [17:14:12]MH_I2C_Read... [17:14:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:14:12]Read from MH i2c: E2 [17:14:12]MH_I2C_Read... [17:14:12]Read from MH i2c: E2 17 00 [17:14:12]MH_I2C_Read... [17:14:12]Read from MH i2c: E2 17 00 34 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 74 [17:14:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:14:12]wFMCommunicate OK [17:14:12]requested_item fd.num is exist - process it [17:14:12]SAM_PROTO_GetFieldsCounters [17:14:12]wFMCommunicate request_size=4 [17:14:12]MH_SAM_APDU [17:14:12]CAPDU: 80 13 00 00 [17:14:12]Write to MH i2c: E2 08 00 35 71 80 13 00 00 00 00 00 00 22 [17:14:12]Write i2c OK [17:14:12]MH_I2C_Read... [17:14:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:14:12]Read from MH i2c: E2 [17:14:12]MH_I2C_Read... [17:14:12]Read from MH i2c: E2 62 00 [17:14:12]MH_I2C_Read... [17:14:12]Read from MH i2c: E2 62 00 35 71 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 02 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 6E [17:14:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 02 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:14:12]wFMCommunicate OK [17:14:12]SAM_PROTO_GetFieldsCounters done [17:14:12]requested_item shift.num is exist - process it [17:14:12]requested_item shift.opened is exist - process it [17:14:12]req_shift_opened [17:14:12]FM_GetShiftState [17:14:12]SAM_PROTO_GetShiftState [17:14:12]wFMCommunicate request_size=4 [17:14:12]MH_SAM_APDU [17:14:12]CAPDU: 80 13 01 00 [17:14:12]Write to MH i2c: E2 08 00 36 71 80 13 01 00 00 00 00 00 24 [17:14:12]Write i2c OK [17:14:12]MH_I2C_Read... [17:14:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:14:12]Read from MH i2c: E2 [17:14:12]MH_I2C_Read... [17:14:12]Read from MH i2c: E2 0E 00 [17:14:12]MH_I2C_Read... [17:14:12]Read from MH i2c: E2 0E 00 36 71 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 F1 [17:14:12]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [17:14:12]wFMCommunicate OK [17:14:12]SAM_PROTO_GetShiftState done [17:14:12]FM_GetShiftState done [17:14:12]req_shift_opened done [17:14:12]requested_item shift.open_date is exist - process it [17:14:12]req_shift_open_date [17:14:12]req_shift_open_date done [17:14:12]produce_requested_data done [17:14:12]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156674,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [17:14:12]process_action_free close_receipt [17:14:12]json_value_free [17:14:12]json_value_free done [17:14:12]process_json_proto returns [17:14:12]Send response to host [17:14:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156674,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [17:14:12]free response buf [17:14:12]execute_script done [17:14:12]execute_script returns [17:14:12]free content buf [17:14:12]Sock 9.Close socket [17:14:12]Sock 9.Thread stoped [17:14:12]OFD Sender: No OFD packet to send [17:14:17]OFD Sender: No OFD packet to send [17:14:22]OFD Sender: No OFD packet to send [17:14:27]OFD Sender: No OFD packet to send [17:14:32]OFD Sender: No OFD packet to send [17:14:37]OFD Sender: No OFD packet to send [17:14:42]OFD Sender: No OFD packet to send [17:14:47]OFD Sender: No OFD packet to send [17:14: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:06]accept exits with 8 [17:17:06]New connection [17:17:06]New thread 3066977636 created [17:17:06]Thread 3066834276 joined [17:17:06]Waiting for new connection... [17:17:06] Sock 8.Parse request [17:17:06]Sock 8.Check first char [17:17:06]Sock 8.First char is OK [17:17:06]request: POST /json_proto HTTP/1.0 [17:17:06]Method: POST [17:17:06]URL: /json_proto [17:17:06]Method is POST - this is cgi request [17:17:06]url: /json_proto [17:17:06]query_string will be loaded in cgi processing [17:17:06]execute_cgi json_proto POST (null) [17:17:06]execute_cgi path=json_proto method=POST [17:17:06]POST find Content-Length [17:17:06]Host: 172.17.63.3:8080 [17:17:06]Content-Length: 681 [17:17:06]Content-Type: application/json [17:17:06] [17:17:06]POST finish read [17:17:06]Found Content-Length = 681 [17:17:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99489", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 19.440, "sum" : 1300.54, "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" ] } } [17:17:06]execute_script... [17:17: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)99489", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 19.440, "sum" : 1300.54, "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" ] } } [17:17:06]POST & json_proto [17:17:06]process_json_proto [17:17:06]json parsed OK: [17:17:06]protocol is kg_v1.0 [17:17:06]action value=close_receipt [17:17:06]process_action close_receipt [17:17:06]cmd_close_receipt [17:17:06]MH_GetDate [17:17:06]Write to MH i2c: F0 00 00 37 71 97 [17:17:06]Write i2c OK [17:17:06]MH_I2C_Read... [17:17:06]Read from MH i2c: F0 [17:17:06]MH_I2C_Read... [17:17:06]Read from MH i2c: F0 09 00 [17:17:06]MH_I2C_Read... [17:17:06]Read from MH i2c: F0 09 00 37 71 00 99 75 1E 67 50 D1 6C 64 24 [17:17:06]GetLastDocTimeStamp 1730049256 [17:17:06]current date 1730049433 [17:17:06]FM_GetShiftState [17:17:06]SAM_PROTO_GetShiftState [17:17:06]wFMCommunicate request_size=4 [17:17:06]MH_SAM_APDU [17:17:06]CAPDU: 80 13 01 00 [17:17:06]Write to MH i2c: E2 08 00 38 71 80 13 01 00 00 00 00 00 26 [17:17:06]Write i2c OK [17:17:06]MH_I2C_Read... [17:17:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:17:06]Read from MH i2c: E2 [17:17:06]MH_I2C_Read... [17:17:06]Read from MH i2c: E2 0E 00 [17:17:06]MH_I2C_Read... [17:17:06]Read from MH i2c: E2 0E 00 38 71 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 F3 [17:17:06]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [17:17:06]wFMCommunicate OK [17:17:06]SAM_PROTO_GetShiftState done [17:17:06]FM_GetShiftState done [17:17:06]opened in 1729989044 [17:17:06]opened+sec_in_day 1730075444 [17:17:06]quantity*price = 130053 [17:17:06]sum+1 = 130055 [17:17:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 1300.00 Внесено: 1300.00 СДАЧА: 0.00 НСП 1% : 11.51 НДС 12% : 138.11 Наличными: 1300.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 226 27.10.2024 17:17 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156675 ФПД: 237304409300199 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T171713&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156675&fm=237304409300199&tin=02508201610067®Number=0000000000091693&sum=130000 [17:17:08]StoreToDocumentArchive [17:17:08]shift 537 fd 156675 [17:17:08]save to /storage/0537/doc_00156675 [17:17:08]save last doc name /storage/0537/doc_00156675 to /storage/kkm_last_doc_name [17:17:08]save OK [17:17:08]Clear old archive folders... [17:17:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:17:08]tlvbuf is 016E9D90 [17:17:08]SAM_PROTO_ClearQueue [17:17:08]wFMCommunicate request_size=4 [17:17:08]MH_SAM_APDU [17:17:08]CAPDU: 80 09 00 00 [17:17:08]Write to MH i2c: E2 08 00 45 71 80 09 00 00 00 00 00 00 28 [17:17:08]Write i2c OK [17:17:08]MH_I2C_Read... [17:17:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:17:08]OFD Sender: No OFD packet to send [17:17:08]Read from MH i2c: E2 [17:17:08]MH_I2C_Read... [17:17:08]Read from MH i2c: E2 03 00 [17:17:08]MH_I2C_Read... [17:17:08]Read from MH i2c: E2 03 00 45 71 00 90 00 2A [17:17:08]RAPDU: 90 00 [17:17:08]wFMCommunicate OK [17:17:08]SAM_PROTO_ClearQueue done [17:17:08]KKMCreateOFDPacket [17:17:08]OFDProtocolAddRootSTLVToBuf [17:17:08]FM_MakeSignedData [17:17:08]FM_MakeSignedData [17:17:08]SAM_PROTO_SignData [17:17:08]wFMCommunicate request_size=4 [17:17:08]MH_SAM_APDU [17:17:08]CAPDU: 80 0D 01 02 [17:17:08]Write to MH i2c: E2 08 00 46 71 80 0D 01 02 00 00 00 00 30 [17:17:08]Write i2c OK [17:17:08]MH_I2C_Read... [17:17:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:17:08]Read from MH i2c: E2 [17:17:08]MH_I2C_Read... [17:17:08]Read from MH i2c: E2 03 00 [17:17:08]MH_I2C_Read... [17:17:08]Read from MH i2c: E2 03 00 46 71 00 90 00 2B [17:17:08]RAPDU: 90 00 [17:17:08]wFMCommunicate OK [17:17:08]wFMCommunicate request_size=255 [17:17:08]MH_SAM_APDU [17:17: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 F0 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 06 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 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 E2 00 00 00 F4 03 04 00 99 75 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 03 64 02 00 35 04 06 00 D7 [17:17:08]Write to MH i2c: E2 02 01 47 71 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 06 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 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 E2 00 00 00 F4 03 04 00 99 75 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 03 64 02 00 35 04 06 00 D7 00 00 CC [17:17:08]Write i2c OK [17:17:08]MH_I2C_Read... [17:17:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:17:08]Read from MH i2c: E2 [17:17:08]MH_I2C_Read... [17:17:08]Read from MH i2c: E2 03 00 [17:17:08]MH_I2C_Read... [17:17:08]Read from MH i2c: E2 03 00 47 71 00 90 00 2C [17:17:08]RAPDU: 90 00 [17:17:08]wFMCommunicate OK [17:17:08]wFMCommunicate request_size=10 [17:17:08]MH_SAM_APDU [17:17:08]CAPDU: 80 0D 02 02 05 D3 BD 05 1C E7 [17:17:08]Write to MH i2c: E2 0D 00 48 71 80 0D 02 02 05 00 D3 BD 05 1C E7 00 00 D5 [17:17:08]Write i2c OK [17:17:08]MH_I2C_Read... [17:17:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:17:08]Read from MH i2c: E2 [17:17:08]MH_I2C_Read... [17:17:08]Read from MH i2c: E2 03 00 [17:17:08]MH_I2C_Read... [17:17:08]Read from MH i2c: E2 03 00 48 71 00 90 00 2D [17:17:08]RAPDU: 90 00 [17:17:08]wFMCommunicate OK [17:17:08]wFMCommunicate request_size=4 [17:17:08]MH_SAM_APDU [17:17:08]CAPDU: 80 0D 03 02 [17:17:08]Write to MH i2c: E2 08 00 49 71 80 0D 03 02 00 00 00 00 35 [17:17:08]Write i2c OK [17:17:08]MH_I2C_Read... [17:17:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:17:08]Read from MH i2c: E2 [17:17:08]MH_I2C_Read... [17:17:08]Read from MH i2c: E2 0B 00 [17:17:08]MH_I2C_Read... [17:17:08]Read from MH i2c: E2 0B 00 49 71 00 38 49 37 FA 16 3E DE 8D 90 00 A7 [17:17:08]RAPDU: 38 49 37 FA 16 3E DE 8D 90 00 [17:17:08]wFMCommunicate OK [17:17:08]SAM_PROTO_SignData done [17:17:08]FM_MakeSignedData done [17:17:08]CreateOFDProtocolMessage [17:17:08]wFMCommunicate request_size=4 [17:17:08]MH_SAM_APDU [17:17:08]CAPDU: 80 11 00 00 [17:17:08]Write to MH i2c: E2 08 00 4A 71 80 11 00 00 00 00 00 00 35 [17:17:08]Write i2c OK [17:17:08]MH_I2C_Read... [17:17:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:17:08]Read from MH i2c: E2 [17:17:08]MH_I2C_Read... [17:17:08]Read from MH i2c: E2 17 00 [17:17:08]MH_I2C_Read... [17:17:08]Read from MH i2c: E2 17 00 4A 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 8A [17:17:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:17:08]wFMCommunicate OK [17:17:08]CreateOFDProtocolMessage done [17:17:08]OFDSenderStorePacket 156675 [17:17:08]StoreOFDPacket docnum=156675 [17:17:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 EB D5 07 01 01 B1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 06 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 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 E2 00 00 00 F4 03 04 00 99 75 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 03 64 02 00 35 04 06 00 D7 D3 BD 05 1C E7 38 49 37 FA 16 3E DE 8D [17:17:08]CheckFolder [17:17:08]dirname=/storage/ofd_packets [17:17:08]CheckFolder done [17:17:08]ProducePacketName [17:17:08]name=ofd_packets/00156675 [17:17:08]NVStorageSaveData ofd_packets/00156675 [17:17:08]File name is /storage/ofd_packets/00156675 [17:17:08]Write 301 bytes [17:17:08]NVStorageSaveData done [17:17:08]OFDSenderStorePacket done [17:17:08]KKMCreateOFDPacket done [17:17:08]NVStorageSaveData kkm_last_timestamp [17:17:08]File name is /storage/kkm_last_timestamp [17:17:08]Write 4 bytes [17:17:08]NVStorageSaveData done [17:17:08]ExternCall_PrintAddStr [17:17:08]wPrintStart [17:17:08]Write to MH i2c: 01 00 00 4B 71 BC [17:17:08]Write i2c OK [17:17:08]MH_I2C_Read... [17:17:08]Read from MH i2c: 01 [17:17:08]MH_I2C_Read... [17:17:08]Read from MH i2c: 01 07 00 [17:17:08]MH_I2C_Read... [17:17:08]Read from MH i2c: 01 07 00 4B 71 00 00 00 00 00 FF 0F D1 [17:17:08]RasterBufferAndPrint [17:17:08]line Счет N : (1)99489 [17:17:08]line ИНН: 02508201610067 [17:17:08]line Контрольно-Кассовый Чек [17:17:08]line ПРОДАЖА [17:17:08]line ТРК (МРК, ГНК) : 31 [17:17:08]line Товар: 2710124130 [17:17:08]line Аи-92-К-5 [17:17:08]line 19.440 * 66.90 [17:17:08]line = 1300.54 [17:17:08]line НДС 12% НСП 1% [17:17:08]line > о реализуемом товаре [17:17:08]line ОКРУГЛЕНИЕ: -0.54 [17:17:08]line ИТОГО: 1300.00 [17:17:08]line Внесено: 1300.00 [17:17:08]line СДАЧА: 0.00 [17:17:08]line НСП 1% : 11.51 [17:17:08]line НДС 12% : 138.11 [17:17:08]line Наличными: 1300.00 [17:17:08]line Безнал.: 0.00 [17:17:08]line Место: АЗС № 143 "Партнер Нефть" [17:17:08]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [17:17:08]line СНО: Общий режим [17:17:08]line Чек 226 27.10.2024 17:17 [17:17:08]line Смена: 537 ФФД: 1.0 [17:17:08]line ЗНМ: 0300000096 [17:17:08]line РНМ: 0000000000091693 [17:17:08]line Версия ККМ: 001 [17:17:08]line ФМ: 0000000000871792 [17:17:08]line ФД: 156675 [17:17:08]line ФПД: 237304409300199 [17:17:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T171713&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156675&fm=237304409300199&tin=02508201610067®Number=0000000000091693&sum=130000 [17:17:08]OFD Sender: Processing packet 156675 [packets to send 31, broken 30] [17:17:08]ProducePacketName [17:17:08]name=ofd_packets/00156675 [17:17:08]OFD Sender: To server: pG, [17:17:08]CommunicateWithHost lk.salyk.kg:30040 [17:17:08]ConnectInit lk.salyk.kg [17:17:08]written 0, free lines is 4095 [17:17:09]Connected sock=10 [17:17:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 EB D5 07 01 01 B1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 06 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 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 E2 00 00 00 F4 03 04 00 99 75 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 03 64 02 00 35 04 06 00 D7 D3 BD 05 1C E7 38 49 37 FA 16 3E DE 8D [17:17:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 C5 F4 47 00 40 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 31 37 39 32 10 04 04 00 03 64 02 00 F4 03 04 00 08 1B 1E 67 B6 04 01 00 00 87 8F B7 47 F3 F4 2D B2 [17:17:09]CommunicateWithHost err = 0 [17:17:09]CheckOFDResponse [17:17:09]1017 (14) - 77093643461234 [17:17:09]1041 (16) - 0000000000871792 [17:17:09]1040 (4) - 156675 [17:17:09]1012 (4) - 27.10.2024 10:50 [17:17:09]1206 (1) - 0 [17:17:09]OFD Sender: Remove packet 156675 [17:17:09]ProducePacketName [17:17:09]name=ofd_packets/00156675 [17:17:09]NVStorageDeleteData [17:17:09]Write to MH i2c: 01 00 00 76 71 E7 [17:17:09]Write i2c OK [17:17:09]MH_I2C_Read... [17:17:09]Read from MH i2c: 01 [17:17:09]MH_I2C_Read... [17:17:09]Read from MH i2c: 01 07 00 [17:17:09]MH_I2C_Read... [17:17:09]Read from MH i2c: 01 07 00 76 71 00 00 00 00 00 D7 0C D1 [17:17:09]RasterBufferAndPrint [17:17:09]line [17:17:09]line [17:17:09]line [17:17:09]line [17:17:09]line [17:17:09]written 0, free lines is 3294 [17:17:09]process_action close_receipt done [17:17:09]requested_data is exist [17:17:09]produce_requested_data [17:17:09]requested_item fm.sn is exist - process it [17:17:09]wFMCommunicate request_size=4 [17:17:09]MH_SAM_APDU [17:17:09]CAPDU: 80 11 00 00 [17:17:09]Write to MH i2c: E2 08 00 7D 71 80 11 00 00 00 00 00 00 68 [17:17:09]Write i2c OK [17:17:09]MH_I2C_Read... [17:17:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:17:09]Read from MH i2c: E2 [17:17:09]MH_I2C_Read... [17:17:09]Read from MH i2c: E2 17 00 [17:17:09]MH_I2C_Read... [17:17:09]Read from MH i2c: E2 17 00 7D 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 BD [17:17:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:17:09]wFMCommunicate OK [17:17:09]requested_item fd.num is exist - process it [17:17:09]SAM_PROTO_GetFieldsCounters [17:17:09]wFMCommunicate request_size=4 [17:17:09]MH_SAM_APDU [17:17:09]CAPDU: 80 13 00 00 [17:17:09]Write to MH i2c: E2 08 00 7E 71 80 13 00 00 00 00 00 00 6B [17:17:09]Write i2c OK [17:17:09]MH_I2C_Read... [17:17:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:17:09]Read from MH i2c: E2 [17:17:09]MH_I2C_Read... [17:17:09]Read from MH i2c: E2 62 00 [17:17:09]MH_I2C_Read... [17:17:09]Read from MH i2c: E2 62 00 7E 71 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 03 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 BB [17:17:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 03 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:17:09]wFMCommunicate OK [17:17:09]SAM_PROTO_GetFieldsCounters done [17:17:09]requested_item shift.num is exist - process it [17:17:09]requested_item shift.opened is exist - process it [17:17:09]req_shift_opened [17:17:09]FM_GetShiftState [17:17:09]SAM_PROTO_GetShiftState [17:17:09]wFMCommunicate request_size=4 [17:17:09]MH_SAM_APDU [17:17:09]CAPDU: 80 13 01 00 [17:17:09]Write to MH i2c: E2 08 00 7F 71 80 13 01 00 00 00 00 00 6D [17:17:09]Write i2c OK [17:17:09]MH_I2C_Read... [17:17:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:17:09]Read from MH i2c: E2 [17:17:09]MH_I2C_Read... [17:17:09]Read from MH i2c: E2 0E 00 [17:17:09]MH_I2C_Read... [17:17:09]Read from MH i2c: E2 0E 00 7F 71 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 3A [17:17:09]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [17:17:09]wFMCommunicate OK [17:17:09]SAM_PROTO_GetShiftState done [17:17:09]FM_GetShiftState done [17:17:09]req_shift_opened done [17:17:09]requested_item shift.open_date is exist - process it [17:17:09]req_shift_open_date [17:17:09]req_shift_open_date done [17:17:09]produce_requested_data done [17:17:09]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156675,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [17:17:09]process_action_free close_receipt [17:17:09]json_value_free [17:17:09]json_value_free done [17:17:09]process_json_proto returns [17:17:09]Send response to host [17:17:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156675,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [17:17:09]free response buf [17:17:09]execute_script done [17:17:09]execute_script returns [17:17:09]free content buf [17:17:09]Sock 8.Close socket [17:17:09]Sock 8.Thread stoped [17:17:09]OFD Sender: No OFD packet to send [17:17:14]OFD Sender: No OFD packet to send [17:17:19]OFD Sender: No OFD packet to send [17:17:24]OFD Sender: No OFD packet to send [17:17:29]OFD Sender: No OFD packet to send [17:17:34]OFD Sender: No OFD packet to send [17:17:39]OFD Sender: No OFD packet to send [17:17:44]OFD Sender: No OFD packet to send [17:17:49]OFD Sender: No OFD packet to send [17:17:54]OFD Sender: No OFD packet to send [17:17:59]OFD Sender: No OFD packet to send [17:18:04]OFD Sender: No OFD packet to send [17:18:09]OFD Sender: No OFD packet to send [17:18:14]OFD Sender: No OFD packet to send [17:18:19]OFD Sender: No OFD packet to send [17:18:24]OFD Sender: No OFD packet to send [17:18:29]OFD Sender: No OFD packet to send [17:18:34]OFD Sender: No OFD packet to send [17:18:39]OFD Sender: No OFD packet to send [17:18:44]OFD Sender: No OFD packet to send [17:18:49]OFD Sender: No OFD packet to send [17:18:54]OFD Sender: No OFD packet to send [17:18:59]OFD Sender: No OFD packet to send [17:19:04]OFD Sender: No OFD packet to send [17:19:09]OFD Sender: No OFD packet to send [17:19:14]OFD Sender: No OFD packet to send [17:19:19]OFD Sender: No OFD packet to send [17:19:24]OFD Sender: No OFD packet to send [17:19:29]OFD Sender: No OFD packet to send [17:19:34]OFD Sender: No OFD packet to send [17:19:39]OFD Sender: No OFD packet to send [17:19:44]OFD Sender: No OFD packet to send [17:19:49]OFD Sender: No OFD packet to send [17:19:54]OFD Sender: No OFD packet to send [17:19:59]OFD Sender: No OFD packet to send [17:20:04]OFD Sender: No OFD packet to send [17:20:09]OFD Sender: No OFD packet to send [17:20:14]OFD Sender: No OFD packet to send [17:20:19]OFD Sender: No OFD packet to send [17:20:24]OFD Sender: No OFD packet to send [17:20:29]OFD Sender: No OFD packet to send [17:20:34]OFD Sender: No OFD packet to send [17:20:39]OFD Sender: No OFD packet to send [17:20:44]OFD Sender: No OFD packet to send [17:20:49]OFD Sender: No OFD packet to send [17:20:54]OFD Sender: No OFD packet to send [17:20:59]OFD Sender: No OFD packet to send [17:21:05]OFD Sender: No OFD packet to send [17:21:10]OFD Sender: No OFD packet to send [17:21:15]OFD Sender: No OFD packet to send [17:21:20]OFD Sender: No OFD packet to send [17:21:25]OFD Sender: No OFD packet to send [17:21:30]OFD Sender: No OFD packet to send [17:21:35]OFD Sender: No OFD packet to send [17:21:40]OFD Sender: No OFD packet to send [17:21:45]OFD Sender: No OFD packet to send [17:21:50]OFD Sender: No OFD packet to send [17:21:55]OFD Sender: No OFD packet to send [17:22:00]OFD Sender: No OFD packet to send [17:22:05]OFD Sender: No OFD packet to send [17:22:10]OFD Sender: No OFD packet to send [17:22:15]OFD Sender: No OFD packet to send [17:22:20]OFD Sender: No OFD packet to send [17:22:25]OFD Sender: No OFD packet to send [17:22:30]OFD Sender: No OFD packet to send [17:22:35]OFD Sender: No OFD packet to send [17:22:40]OFD Sender: No OFD packet to send [17:22:45]OFD Sender: No OFD packet to send [17:22:50]OFD Sender: No OFD packet to send [17:22:55]OFD Sender: No OFD packet to send [17:23:00]OFD Sender: No OFD packet to send [17:23:05]OFD Sender: No OFD packet to send [17:23:10]OFD Sender: No OFD packet to send [17:23:15]OFD Sender: No OFD packet to send [17:23:20]OFD Sender: No OFD packet to send [17:23:25]OFD Sender: No OFD packet to send [17:23:30]OFD Sender: No OFD packet to send [17:23:35]OFD Sender: No OFD packet to send [17:23:40]OFD Sender: No OFD packet to send [17:23:45]OFD Sender: No OFD packet to send [17:23:50]OFD Sender: No OFD packet to send [17:23:52]accept exits with 9 [17:23:52]New connection [17:23:52]New thread 3066834276 created [17:23:52]Thread 3066977636 joined [17:23:52]Waiting for new connection... [17:23:52] Sock 9.Parse request [17:23:52]Sock 9.Check first char [17:23:52]Sock 9.First char is OK [17:23:52]request: POST /json_proto HTTP/1.0 [17:23:52]Method: POST [17:23:52]URL: /json_proto [17:23:52]Method is POST - this is cgi request [17:23:52]url: /json_proto [17:23:52]query_string will be loaded in cgi processing [17:23:52]execute_cgi json_proto POST (null) [17:23:52]execute_cgi path=json_proto method=POST [17:23:52]POST find Content-Length [17:23:52]Host: 172.17.63.3:8080 [17:23:52]Content-Length: 676 [17:23:52]Content-Type: application/json [17:23:52] [17:23:52]POST finish read [17:23:52]Found Content-Length = 676 [17:23:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99490", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:23:52]execute_script... [17:23: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)99490", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:23:52]POST & json_proto [17:23:52]process_json_proto [17:23:52]json parsed OK: [17:23:52]protocol is kg_v1.0 [17:23:52]action value=close_receipt [17:23:52]process_action close_receipt [17:23:52]cmd_close_receipt [17:23:52]MH_GetDate [17:23:52]Write to MH i2c: F0 00 00 80 71 E0 [17:23:52]Write i2c OK [17:23:52]MH_I2C_Read... [17:23:52]Read from MH i2c: F0 [17:23:52]MH_I2C_Read... [17:23:52]Read from MH i2c: F0 09 00 [17:23:52]MH_I2C_Read... [17:23:52]Read from MH i2c: F0 09 00 80 71 00 2F 77 1E 67 50 D1 6C 64 05 [17:23:52]GetLastDocTimeStamp 1730049433 [17:23:52]current date 1730049839 [17:23:52]FM_GetShiftState [17:23:52]SAM_PROTO_GetShiftState [17:23:52]wFMCommunicate request_size=4 [17:23:52]MH_SAM_APDU [17:23:52]CAPDU: 80 13 01 00 [17:23:52]Write to MH i2c: E2 08 00 81 71 80 13 01 00 00 00 00 00 6F [17:23:52]Write i2c OK [17:23:52]MH_I2C_Read... [17:23:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:23:52]Read from MH i2c: E2 [17:23:52]MH_I2C_Read... [17:23:52]Read from MH i2c: E2 0E 00 [17:23:52]MH_I2C_Read... [17:23:52]Read from MH i2c: E2 0E 00 81 71 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 3C [17:23:52]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [17:23:52]wFMCommunicate OK [17:23:52]SAM_PROTO_GetShiftState done [17:23:52]FM_GetShiftState done [17:23:52]opened in 1729989044 [17:23:52]opened+sec_in_day 1730075444 [17:23:52]quantity*price = 60009 [17:23:52]sum+1 = 60010 [17:23:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 227 27.10.2024 17:23 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156676 ФПД: 263062986642120 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T172359&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156676&fm=263062986642120&tin=02508201610067®Number=0000000000091693&sum=60000 [17:23:53]StoreToDocumentArchive [17:23:53]shift 537 fd 156676 [17:23:53]save to /storage/0537/doc_00156676 [17:23:53]save last doc name /storage/0537/doc_00156676 to /storage/kkm_last_doc_name [17:23:53]save OK [17:23:53]Clear old archive folders... [17:23:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:23:53]tlvbuf is 018D7C00 [17:23:53]SAM_PROTO_ClearQueue [17:23:53]wFMCommunicate request_size=4 [17:23:53]MH_SAM_APDU [17:23:53]CAPDU: 80 09 00 00 [17:23:53]Write to MH i2c: E2 08 00 8E 71 80 09 00 00 00 00 00 00 71 [17:23:53]Write i2c OK [17:23:53]MH_I2C_Read... [17:23:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:23:53]Read from MH i2c: E2 [17:23:53]MH_I2C_Read... [17:23:53]Read from MH i2c: E2 03 00 [17:23:53]MH_I2C_Read... [17:23:53]Read from MH i2c: E2 03 00 8E 71 00 90 00 73 [17:23:53]RAPDU: 90 00 [17:23:53]wFMCommunicate OK [17:23:53]SAM_PROTO_ClearQueue done [17:23:53]KKMCreateOFDPacket [17:23:53]OFDProtocolAddRootSTLVToBuf [17:23:53]FM_MakeSignedData [17:23:53]FM_MakeSignedData [17:23:53]SAM_PROTO_SignData [17:23:53]wFMCommunicate request_size=4 [17:23:53]MH_SAM_APDU [17:23:53]CAPDU: 80 0D 01 02 [17:23:53]Write to MH i2c: E2 08 00 8F 71 80 0D 01 02 00 00 00 00 79 [17:23:53]Write i2c OK [17:23:53]MH_I2C_Read... [17:23:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:23:53]Read from MH i2c: E2 [17:23:53]MH_I2C_Read... [17:23:53]Read from MH i2c: E2 03 00 [17:23:53]MH_I2C_Read... [17:23:53]Read from MH i2c: E2 03 00 8F 71 00 90 00 74 [17:23:53]RAPDU: 90 00 [17:23:53]wFMCommunicate OK [17:23:53]wFMCommunicate request_size=255 [17:23:53]MH_SAM_APDU [17:23: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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 E3 00 00 00 F4 03 04 00 2F 77 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 04 64 02 00 35 04 06 00 EF [17:23:53]Write to MH i2c: E2 02 01 90 71 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 E3 00 00 00 F4 03 04 00 2F 77 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 04 64 02 00 35 04 06 00 EF 00 00 6C [17:23:53]Write i2c OK [17:23:53]MH_I2C_Read... [17:23:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:23:54]Read from MH i2c: E2 [17:23:54]MH_I2C_Read... [17:23:54]Read from MH i2c: E2 03 00 [17:23:54]MH_I2C_Read... [17:23:54]Read from MH i2c: E2 03 00 90 71 00 90 00 75 [17:23:54]RAPDU: 90 00 [17:23:54]wFMCommunicate OK [17:23:54]wFMCommunicate request_size=10 [17:23:54]MH_SAM_APDU [17:23:54]CAPDU: 80 0D 02 02 05 41 1F DF 52 C8 [17:23:54]Write to MH i2c: E2 0D 00 91 71 80 0D 02 02 05 00 41 1F DF 52 C8 00 00 DF [17:23:54]Write i2c OK [17:23:54]MH_I2C_Read... [17:23:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:23:54]Read from MH i2c: E2 [17:23:54]MH_I2C_Read... [17:23:54]Read from MH i2c: E2 03 00 [17:23:54]MH_I2C_Read... [17:23:54]Read from MH i2c: E2 03 00 91 71 00 90 00 76 [17:23:54]RAPDU: 90 00 [17:23:54]wFMCommunicate OK [17:23:54]wFMCommunicate request_size=4 [17:23:54]MH_SAM_APDU [17:23:54]CAPDU: 80 0D 03 02 [17:23:54]Write to MH i2c: E2 08 00 92 71 80 0D 03 02 00 00 00 00 7E [17:23:54]Write i2c OK [17:23:54]MH_I2C_Read... [17:23:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:23:54]Read from MH i2c: E2 [17:23:54]MH_I2C_Read... [17:23:54]Read from MH i2c: E2 0B 00 [17:23:54]MH_I2C_Read... [17:23:54]Read from MH i2c: E2 0B 00 92 71 00 21 41 BF AF 88 AE E7 C8 90 00 34 [17:23:54]RAPDU: 21 41 BF AF 88 AE E7 C8 90 00 [17:23:54]wFMCommunicate OK [17:23:54]SAM_PROTO_SignData done [17:23:54]FM_MakeSignedData done [17:23:54]CreateOFDProtocolMessage [17:23:54]wFMCommunicate request_size=4 [17:23:54]MH_SAM_APDU [17:23:54]CAPDU: 80 11 00 00 [17:23:54]Write to MH i2c: E2 08 00 93 71 80 11 00 00 00 00 00 00 7E [17:23:54]Write i2c OK [17:23:54]MH_I2C_Read... [17:23:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:23:54]Read from MH i2c: E2 [17:23:54]MH_I2C_Read... [17:23:54]Read from MH i2c: E2 17 00 [17:23:54]MH_I2C_Read... [17:23:54]Read from MH i2c: E2 17 00 93 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 D3 [17:23:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:23:54]wFMCommunicate OK [17:23:54]CreateOFDProtocolMessage done [17:23:54]OFDSenderStorePacket 156676 [17:23:54]StoreOFDPacket docnum=156676 [17:23:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 97 0C 07 01 7E C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 E3 00 00 00 F4 03 04 00 2F 77 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 04 64 02 00 35 04 06 00 EF 41 1F DF 52 C8 21 41 BF AF 88 AE E7 C8 [17:23:54]CheckFolder [17:23:54]dirname=/storage/ofd_packets [17:23:54]CheckFolder done [17:23:54]ProducePacketName [17:23:54]name=ofd_packets/00156676 [17:23:54]NVStorageSaveData ofd_packets/00156676 [17:23:54]File name is /storage/ofd_packets/00156676 [17:23:54]Write 301 bytes [17:23:54]NVStorageSaveData done [17:23:54]OFDSenderStorePacket done [17:23:54]KKMCreateOFDPacket done [17:23:54]NVStorageSaveData kkm_last_timestamp [17:23:54]File name is /storage/kkm_last_timestamp [17:23:54]Write 4 bytes [17:23:54]NVStorageSaveData done [17:23:54]ExternCall_PrintAddStr [17:23:54]wPrintStart [17:23:54]Write to MH i2c: 01 00 00 94 71 05 [17:23:54]Write i2c OK [17:23:54]MH_I2C_Read... [17:23:54]Read from MH i2c: 01 [17:23:54]MH_I2C_Read... [17:23:54]Read from MH i2c: 01 07 00 [17:23:54]MH_I2C_Read... [17:23:54]Read from MH i2c: 01 07 00 94 71 00 00 00 00 00 FF 0F 1A [17:23:54]RasterBufferAndPrint [17:23:54]line Счет N : (1)99490 [17:23:54]line ИНН: 02508201610067 [17:23:54]line Контрольно-Кассовый Чек [17:23:54]line ПРОДАЖА [17:23:54]line ТРК (МРК, ГНК) : 21 [17:23:54]line Товар: 2710124130 [17:23:54]line Аи-92-К-5 [17:23:54]line 8.970 * 66.90 [17:23:54]line = 600.09 [17:23:54]line НДС 12% НСП 1% [17:23:54]line > о реализуемом товаре [17:23:54]line ОКРУГЛЕНИЕ: -0.09 [17:23:54]line ИТОГО: 600.00 [17:23:54]line Внесено: 600.00 [17:23:54]line СДАЧА: 0.00 [17:23:54]line НСП 1% : 5.31 [17:23:54]line НДС 12% : 63.73 [17:23:54]line Наличными: 600.00 [17:23:54]line Безнал.: 0.00 [17:23:54]line Место: АЗС № 143 "Партнер Нефть" [17:23:54]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [17:23:54]line СНО: Общий режим [17:23:54]line Чек 227 27.10.2024 17:23 [17:23:54]line Смена: 537 ФФД: 1.0 [17:23:54]line ЗНМ: 0300000096 [17:23:54]line РНМ: 0000000000091693 [17:23:54]line Версия ККМ: 001 [17:23:54]line ФМ: 0000000000871792 [17:23:54]line ФД: 156676 [17:23:54]line ФПД: 263062986642120 [17:23:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T172359&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156676&fm=263062986642120&tin=02508201610067®Number=0000000000091693&sum=60000 [17:23:54]OFD Sender: Processing packet 156676 [packets to send 31, broken 30] [17:23:54]ProducePacketName [17:23:54]name=ofd_packets/00156676 [17:23:54]OFD Sender: To server: pG, [17:23:54]CommunicateWithHost lk.salyk.kg:30040 [17:23:54]ConnectInit lk.salyk.kg [17:23:54]written 0, free lines is 4095 [17:23:54]Connected sock=10 [17:23:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 97 0C 07 01 7E C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 E3 00 00 00 F4 03 04 00 2F 77 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 04 64 02 00 35 04 06 00 EF 41 1F DF 52 C8 21 41 BF AF 88 AE E7 C8 [17:23:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 5B FF 47 00 68 C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 04 64 02 00 F4 03 04 00 9E 1C 1E 67 B6 04 01 00 00 62 A2 99 03 21 73 FC A5 [17:23:54]CommunicateWithHost err = 0 [17:23:54]CheckOFDResponse [17:23:54]1017 (14) - 77093643461234 [17:23:54]1041 (16) - 0000000000871792 [17:23:54]1040 (4) - 156676 [17:23:54]1012 (4) - 27.10.2024 10:57 [17:23:54]1206 (1) - 0 [17:23:54]OFD Sender: Remove packet 156676 [17:23:54]ProducePacketName [17:23:54]name=ofd_packets/00156676 [17:23:54]NVStorageDeleteData [17:23:55]Write to MH i2c: 01 00 00 BF 71 30 [17:23:55]Write i2c OK [17:23:55]MH_I2C_Read... [17:23:55]Read from MH i2c: 01 [17:23:55]MH_I2C_Read... [17:23:55]Read from MH i2c: 01 07 00 [17:23:55]MH_I2C_Read... [17:23:55]Read from MH i2c: 01 07 00 BF 71 00 00 00 00 00 DC 0C 1F [17:23:55]RasterBufferAndPrint [17:23:55]line [17:23:55]line [17:23:55]line [17:23:55]line [17:23:55]line [17:23:55]written 0, free lines is 3298 [17:23:55]process_action close_receipt done [17:23:55]requested_data is exist [17:23:55]produce_requested_data [17:23:55]requested_item fm.sn is exist - process it [17:23:55]wFMCommunicate request_size=4 [17:23:55]MH_SAM_APDU [17:23:55]CAPDU: 80 11 00 00 [17:23:55]Write to MH i2c: E2 08 00 C6 71 80 11 00 00 00 00 00 00 B1 [17:23:55]Write i2c OK [17:23:55]MH_I2C_Read... [17:23:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:23:55]Read from MH i2c: E2 [17:23:55]MH_I2C_Read... [17:23:55]Read from MH i2c: E2 17 00 [17:23:55]MH_I2C_Read... [17:23:55]Read from MH i2c: E2 17 00 C6 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 06 [17:23:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:23:55]wFMCommunicate OK [17:23:55]requested_item fd.num is exist - process it [17:23:55]SAM_PROTO_GetFieldsCounters [17:23:55]wFMCommunicate request_size=4 [17:23:55]MH_SAM_APDU [17:23:55]CAPDU: 80 13 00 00 [17:23:55]Write to MH i2c: E2 08 00 C7 71 80 13 00 00 00 00 00 00 B4 [17:23:55]Write i2c OK [17:23:55]MH_I2C_Read... [17:23:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:23:55]Read from MH i2c: E2 [17:23:55]MH_I2C_Read... [17:23:55]Read from MH i2c: E2 62 00 [17:23:55]MH_I2C_Read... [17:23:55]Read from MH i2c: E2 62 00 C7 71 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 04 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 08 [17:23:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 04 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:23:55]wFMCommunicate OK [17:23:55]SAM_PROTO_GetFieldsCounters done [17:23:55]requested_item shift.num is exist - process it [17:23:55]requested_item shift.opened is exist - process it [17:23:55]req_shift_opened [17:23:55]FM_GetShiftState [17:23:55]SAM_PROTO_GetShiftState [17:23:55]wFMCommunicate request_size=4 [17:23:55]MH_SAM_APDU [17:23:55]CAPDU: 80 13 01 00 [17:23:55]Write to MH i2c: E2 08 00 C8 71 80 13 01 00 00 00 00 00 B6 [17:23:55]Write i2c OK [17:23:55]MH_I2C_Read... [17:23:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:23:55]Read from MH i2c: E2 [17:23:55]MH_I2C_Read... [17:23:55]Read from MH i2c: E2 0E 00 [17:23:55]MH_I2C_Read... [17:23:55]Read from MH i2c: E2 0E 00 C8 71 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 83 [17:23:55]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [17:23:55]wFMCommunicate OK [17:23:55]SAM_PROTO_GetShiftState done [17:23:55]FM_GetShiftState done [17:23:55]req_shift_opened done [17:23:55]requested_item shift.open_date is exist - process it [17:23:55]req_shift_open_date [17:23:55]req_shift_open_date done [17:23:55]produce_requested_data done [17:23:55]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156676,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [17:23:55]process_action_free close_receipt [17:23:55]json_value_free [17:23:55]json_value_free done [17:23:55]process_json_proto returns [17:23:55]Send response to host [17:23:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156676,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [17:23:55]free response buf [17:23:55]execute_script done [17:23:55]execute_script returns [17:23:55]free content buf [17:23:55]Sock 9.Close socket [17:23:55]Sock 9.Thread stoped [17:23:55]OFD Sender: No OFD packet to send [17:24:00]OFD Sender: No OFD packet to send [17:24:05]OFD Sender: No OFD packet to send [17:24:10]OFD Sender: No OFD packet to send [17:24:15]OFD Sender: No OFD packet to send [17:24:20]OFD Sender: No OFD packet to send [17:24:25]OFD Sender: No OFD packet to send [17:24:30]OFD Sender: No OFD packet to send [17:24:35]OFD Sender: No OFD packet to send [17:24:40]OFD Sender: No OFD packet to send [17:24:45]OFD Sender: No OFD packet to send [17:24:50]OFD Sender: No OFD packet to send [17:24:55]OFD Sender: No OFD packet to send [17:25:00]OFD Sender: No OFD packet to send [17:25:05]OFD Sender: No OFD packet to send [17:25:10]OFD Sender: No OFD packet to send [17:25:15]OFD Sender: No OFD packet to send [17:25:20]OFD Sender: No OFD packet to send [17:25:25]OFD Sender: No OFD packet to send [17:25:30]OFD Sender: No OFD packet to send [17:25:35]OFD Sender: No OFD packet to send [17:25:40]OFD Sender: No OFD packet to send [17:25:40]accept exits with 8 [17:25:40]New connection [17:25:40]New thread 3066977636 created [17:25:40]Thread 3066834276 joined [17:25:40]Waiting for new connection... [17:25:40] Sock 8.Parse request [17:25:40]Sock 8.Check first char [17:25:40]Sock 8.First char is OK [17:25:40]request: POST /json_proto HTTP/1.0 [17:25:40]Method: POST [17:25:40]URL: /json_proto [17:25:40]Method is POST - this is cgi request [17:25:40]url: /json_proto [17:25:40]query_string will be loaded in cgi processing [17:25:40]execute_cgi json_proto POST (null) [17:25:40]execute_cgi path=json_proto method=POST [17:25:40]POST find Content-Length [17:25:40]Host: 172.17.63.3:8080 [17:25:40]Content-Length: 676 [17:25:40]Content-Type: application/json [17:25:40] [17:25:40]POST finish read [17:25:40]Found Content-Length = 676 [17:25:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99491", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "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" ] } } [17:25:40]execute_script... [17:25:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99491", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "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" ] } } [17:25:40]POST & json_proto [17:25:40]process_json_proto [17:25:40]json parsed OK: [17:25:40]protocol is kg_v1.0 [17:25:40]action value=close_receipt [17:25:40]process_action close_receipt [17:25:40]cmd_close_receipt [17:25:40]MH_GetDate [17:25:40]Write to MH i2c: F0 00 00 C9 71 29 [17:25:40]Write i2c OK [17:25:40]MH_I2C_Read... [17:25:40]Read from MH i2c: F0 [17:25:40]MH_I2C_Read... [17:25:40]Read from MH i2c: F0 09 00 [17:25:40]MH_I2C_Read... [17:25:40]Read from MH i2c: F0 09 00 C9 71 00 9B 77 1E 67 50 D1 6C 64 BA [17:25:40]GetLastDocTimeStamp 1730049839 [17:25:40]current date 1730049947 [17:25:40]FM_GetShiftState [17:25:40]SAM_PROTO_GetShiftState [17:25:40]wFMCommunicate request_size=4 [17:25:40]MH_SAM_APDU [17:25:40]CAPDU: 80 13 01 00 [17:25:40]Write to MH i2c: E2 08 00 CA 71 80 13 01 00 00 00 00 00 B8 [17:25:40]Write i2c OK [17:25:40]MH_I2C_Read... [17:25:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:25:40]Read from MH i2c: E2 [17:25:40]MH_I2C_Read... [17:25:40]Read from MH i2c: E2 0E 00 [17:25:40]MH_I2C_Read... [17:25:40]Read from MH i2c: E2 0E 00 CA 71 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 85 [17:25:40]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [17:25:40]wFMCommunicate OK [17:25:40]SAM_PROTO_GetShiftState done [17:25:40]FM_GetShiftState done [17:25:40]opened in 1729989044 [17:25:40]opened+sec_in_day 1730075444 [17:25:40]quantity*price = 20003 [17:25:40]sum+1 = 20004 [17:25:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 228 27.10.2024 17:25 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156677 ФПД: 224075368192294 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T172547&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156677&fm=224075368192294&tin=02508201610067®Number=0000000000091693&sum=20000 [17:25:41]StoreToDocumentArchive [17:25:41]shift 537 fd 156677 [17:25:41]save to /storage/0537/doc_00156677 [17:25:41]save last doc name /storage/0537/doc_00156677 to /storage/kkm_last_doc_name [17:25:41]save OK [17:25:41]Clear old archive folders... [17:25:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:25:41]tlvbuf is 01827970 [17:25:41]SAM_PROTO_ClearQueue [17:25:41]wFMCommunicate request_size=4 [17:25:41]MH_SAM_APDU [17:25:41]CAPDU: 80 09 00 00 [17:25:41]Write to MH i2c: E2 08 00 D7 71 80 09 00 00 00 00 00 00 BA [17:25:41]Write i2c OK [17:25:41]MH_I2C_Read... [17:25:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:25:41]Read from MH i2c: E2 [17:25:41]MH_I2C_Read... [17:25:41]Read from MH i2c: E2 03 00 [17:25:41]MH_I2C_Read... [17:25:41]Read from MH i2c: E2 03 00 D7 71 00 90 00 BC [17:25:41]RAPDU: 90 00 [17:25:41]wFMCommunicate OK [17:25:41]SAM_PROTO_ClearQueue done [17:25:41]KKMCreateOFDPacket [17:25:41]OFDProtocolAddRootSTLVToBuf [17:25:41]FM_MakeSignedData [17:25:41]FM_MakeSignedData [17:25:41]SAM_PROTO_SignData [17:25:41]wFMCommunicate request_size=4 [17:25:41]MH_SAM_APDU [17:25:41]CAPDU: 80 0D 01 02 [17:25:41]Write to MH i2c: E2 08 00 D8 71 80 0D 01 02 00 00 00 00 C2 [17:25:41]Write i2c OK [17:25:41]MH_I2C_Read... [17:25:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:25:42]Read from MH i2c: E2 [17:25:42]MH_I2C_Read... [17:25:42]Read from MH i2c: E2 03 00 [17:25:42]MH_I2C_Read... [17:25:42]Read from MH i2c: E2 03 00 D8 71 00 90 00 BD [17:25:42]RAPDU: 90 00 [17:25:42]wFMCommunicate OK [17:25:42]wFMCommunicate request_size=255 [17:25:42]MH_SAM_APDU [17:25: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 E4 00 00 00 F4 03 04 00 9B 77 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 05 64 02 00 35 04 06 00 CB [17:25:42]Write to MH i2c: E2 02 01 D9 71 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 E4 00 00 00 F4 03 04 00 9B 77 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 05 64 02 00 35 04 06 00 CB 00 00 E4 [17:25:42]Write i2c OK [17:25:42]MH_I2C_Read... [17:25:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:25:42]Read from MH i2c: E2 [17:25:42]MH_I2C_Read... [17:25:42]Read from MH i2c: E2 03 00 [17:25:42]MH_I2C_Read... [17:25:42]Read from MH i2c: E2 03 00 D9 71 00 90 00 BE [17:25:42]RAPDU: 90 00 [17:25:42]wFMCommunicate OK [17:25:42]wFMCommunicate request_size=10 [17:25:42]MH_SAM_APDU [17:25:42]CAPDU: 80 0D 02 02 05 CB 9C B9 59 26 [17:25:42]Write to MH i2c: E2 0D 00 DA 71 80 0D 02 02 05 00 CB 9C B9 59 26 00 00 6E [17:25:42]Write i2c OK [17:25:42]MH_I2C_Read... [17:25:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:25:42]Read from MH i2c: E2 [17:25:42]MH_I2C_Read... [17:25:42]Read from MH i2c: E2 03 00 [17:25:42]MH_I2C_Read... [17:25:42]Read from MH i2c: E2 03 00 DA 71 00 90 00 BF [17:25:42]RAPDU: 90 00 [17:25:42]wFMCommunicate OK [17:25:42]wFMCommunicate request_size=4 [17:25:42]MH_SAM_APDU [17:25:42]CAPDU: 80 0D 03 02 [17:25:42]Write to MH i2c: E2 08 00 DB 71 80 0D 03 02 00 00 00 00 C7 [17:25:42]Write i2c OK [17:25:42]MH_I2C_Read... [17:25:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:25:42]Read from MH i2c: E2 [17:25:42]MH_I2C_Read... [17:25:42]Read from MH i2c: E2 0B 00 [17:25:42]MH_I2C_Read... [17:25:42]Read from MH i2c: E2 0B 00 DB 71 00 B1 30 A9 1F 48 AC 14 15 90 00 8E [17:25:42]RAPDU: B1 30 A9 1F 48 AC 14 15 90 00 [17:25:42]wFMCommunicate OK [17:25:42]SAM_PROTO_SignData done [17:25:42]FM_MakeSignedData done [17:25:42]CreateOFDProtocolMessage [17:25:42]wFMCommunicate request_size=4 [17:25:42]MH_SAM_APDU [17:25:42]CAPDU: 80 11 00 00 [17:25:42]Write to MH i2c: E2 08 00 DC 71 80 11 00 00 00 00 00 00 C7 [17:25:42]Write i2c OK [17:25:42]MH_I2C_Read... [17:25:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:25:42]Read from MH i2c: E2 [17:25:42]MH_I2C_Read... [17:25:42]Read from MH i2c: E2 17 00 [17:25:42]MH_I2C_Read... [17:25:42]Read from MH i2c: E2 17 00 DC 71 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 1C [17:25:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:25:42]wFMCommunicate OK [17:25:42]CreateOFDProtocolMessage done [17:25:42]OFDSenderStorePacket 156677 [17:25:42]StoreOFDPacket docnum=156677 [17:25:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 26 E7 07 01 FB 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 E4 00 00 00 F4 03 04 00 9B 77 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 05 64 02 00 35 04 06 00 CB CB 9C B9 59 26 B1 30 A9 1F 48 AC 14 15 [17:25:42]CheckFolder [17:25:42]dirname=/storage/ofd_packets [17:25:42]CheckFolder done [17:25:42]ProducePacketName [17:25:42]name=ofd_packets/00156677 [17:25:42]NVStorageSaveData ofd_packets/00156677 [17:25:42]File name is /storage/ofd_packets/00156677 [17:25:42]Write 301 bytes [17:25:42]NVStorageSaveData done [17:25:42]OFDSenderStorePacket done [17:25:42]KKMCreateOFDPacket done [17:25:42]NVStorageSaveData kkm_last_timestamp [17:25:42]File name is /storage/kkm_last_timestamp [17:25:42]Write 4 bytes [17:25:42]NVStorageSaveData done [17:25:42]ExternCall_PrintAddStr [17:25:42]wPrintStart [17:25:42]Write to MH i2c: 01 00 00 DD 71 4E [17:25:42]Write i2c OK [17:25:42]MH_I2C_Read... [17:25:42]Read from MH i2c: 01 [17:25:42]MH_I2C_Read... [17:25:42]Read from MH i2c: 01 07 00 [17:25:42]MH_I2C_Read... [17:25:42]Read from MH i2c: 01 07 00 DD 71 00 00 00 00 00 FF 0F 63 [17:25:42]RasterBufferAndPrint [17:25:42]line Счет N : (1)99491 [17:25:42]line ИНН: 02508201610067 [17:25:42]line Контрольно-Кассовый Чек [17:25:42]line ПРОДАЖА [17:25:42]line ТРК (МРК, ГНК) : 31 [17:25:42]line Товар: 2710124130 [17:25:42]line Аи-92-К-5 [17:25:42]line 2.990 * 66.90 [17:25:42]line = 200.03 [17:25:42]line НДС 12% НСП 1% [17:25:42]line > о реализуемом товаре [17:25:42]line ОКРУГЛЕНИЕ: -0.03 [17:25:42]line ИТОГО: 200.00 [17:25:42]line Внесено: 200.00 [17:25:42]line СДАЧА: 0.00 [17:25:42]line НСП 1% : 1.77 [17:25:42]line НДС 12% : 21.24 [17:25:42]line Наличными: 200.00 [17:25:42]line Безнал.: 0.00 [17:25:42]line Место: АЗС № 143 "Партнер Нефть" [17:25:42]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [17:25:42]line СНО: Общий режим [17:25:42]line Чек 228 27.10.2024 17:25 [17:25:42]line Смена: 537 ФФД: 1.0 [17:25:42]line ЗНМ: 0300000096 [17:25:42]line РНМ: 0000000000091693 [17:25:42]line Версия ККМ: 001 [17:25:42]line ФМ: 0000000000871792 [17:25:42]line ФД: 156677 [17:25:42]line ФПД: 224075368192294 [17:25:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T172547&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156677&fm=224075368192294&tin=02508201610067®Number=0000000000091693&sum=20000 [17:25:42]OFD Sender: Processing packet 156677 [packets to send 31, broken 30] [17:25:42]ProducePacketName [17:25:42]name=ofd_packets/00156677 [17:25:42]OFD Sender: To server: pG, [17:25:42]CommunicateWithHost lk.salyk.kg:30040 [17:25:42]ConnectInit lk.salyk.kg [17:25:42]written 0, free lines is 4095 [17:25:42]Connected sock=10 [17:25:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 26 E7 07 01 FB 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 E4 00 00 00 F4 03 04 00 9B 77 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 05 64 02 00 35 04 06 00 CB CB 9C B9 59 26 B1 30 A9 1F 48 AC 14 15 [17:25:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 04 B1 47 00 92 E8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 05 64 02 00 F4 03 04 00 0A 1D 1E 67 B6 04 01 00 00 20 1B 6A 50 B0 D2 D2 B3 [17:25:43]CommunicateWithHost err = 0 [17:25:43]CheckOFDResponse [17:25:43]1017 (14) - 77093643461234 [17:25:43]1041 (16) - 0000000000871792 [17:25:43]1040 (4) - 156677 [17:25:43]1012 (4) - 27.10.2024 10:59 [17:25:43]1206 (1) - 0 [17:25:43]OFD Sender: Remove packet 156677 [17:25:43]ProducePacketName [17:25:43]name=ofd_packets/00156677 [17:25:43]NVStorageDeleteData [17:25:43]Write to MH i2c: 01 00 00 08 72 7A [17:25:43]Write i2c OK [17:25:43]MH_I2C_Read... [17:25:43]Read from MH i2c: 01 [17:25:43]MH_I2C_Read... [17:25:43]Read from MH i2c: 01 07 00 [17:25:43]MH_I2C_Read... [17:25:43]Read from MH i2c: 01 07 00 08 72 00 00 00 00 00 D4 0C 61 [17:25:43]RasterBufferAndPrint [17:25:43]line [17:25:43]line [17:25:43]line [17:25:43]line [17:25:43]line [17:25:43]written 0, free lines is 3292 [17:25:43]process_action close_receipt done [17:25:43]requested_data is exist [17:25:43]produce_requested_data [17:25:43]requested_item fm.sn is exist - process it [17:25:43]wFMCommunicate request_size=4 [17:25:43]MH_SAM_APDU [17:25:43]CAPDU: 80 11 00 00 [17:25:43]Write to MH i2c: E2 08 00 0F 72 80 11 00 00 00 00 00 00 FB [17:25:43]Write i2c OK [17:25:43]MH_I2C_Read... [17:25:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:25:43]Read from MH i2c: E2 [17:25:43]MH_I2C_Read... [17:25:43]Read from MH i2c: E2 17 00 [17:25:43]MH_I2C_Read... [17:25:43]Read from MH i2c: E2 17 00 0F 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 50 [17:25:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:25:43]wFMCommunicate OK [17:25:43]requested_item fd.num is exist - process it [17:25:43]SAM_PROTO_GetFieldsCounters [17:25:43]wFMCommunicate request_size=4 [17:25:43]MH_SAM_APDU [17:25:43]CAPDU: 80 13 00 00 [17:25:43]Write to MH i2c: E2 08 00 10 72 80 13 00 00 00 00 00 00 FE [17:25:43]Write i2c OK [17:25:43]MH_I2C_Read... [17:25:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:25:43]Read from MH i2c: E2 [17:25:43]MH_I2C_Read... [17:25:43]Read from MH i2c: E2 62 00 [17:25:43]MH_I2C_Read... [17:25:43]Read from MH i2c: E2 62 00 10 72 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 05 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 56 [17:25:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 05 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:25:43]wFMCommunicate OK [17:25:43]SAM_PROTO_GetFieldsCounters done [17:25:43]requested_item shift.num is exist - process it [17:25:43]requested_item shift.opened is exist - process it [17:25:43]req_shift_opened [17:25:43]FM_GetShiftState [17:25:43]SAM_PROTO_GetShiftState [17:25:43]wFMCommunicate request_size=4 [17:25:43]MH_SAM_APDU [17:25:43]CAPDU: 80 13 01 00 [17:25:43]Write to MH i2c: E2 08 00 11 72 80 13 01 00 00 00 00 00 00 [17:25:43]Write i2c OK [17:25:43]MH_I2C_Read... [17:25:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:25:43]Read from MH i2c: E2 [17:25:43]MH_I2C_Read... [17:25:43]Read from MH i2c: E2 0E 00 [17:25:43]MH_I2C_Read... [17:25:43]Read from MH i2c: E2 0E 00 11 72 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 CD [17:25:43]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [17:25:43]wFMCommunicate OK [17:25:43]SAM_PROTO_GetShiftState done [17:25:43]FM_GetShiftState done [17:25:43]req_shift_opened done [17:25:43]requested_item shift.open_date is exist - process it [17:25:43]req_shift_open_date [17:25:43]req_shift_open_date done [17:25:43]produce_requested_data done [17:25:43]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156677,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [17:25:43]process_action_free close_receipt [17:25:43]json_value_free [17:25:43]json_value_free done [17:25:43]process_json_proto returns [17:25:43]Send response to host [17:25:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156677,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [17:25:43]free response buf [17:25:43]execute_script done [17:25:43]execute_script returns [17:25:43]free content buf [17:25:43]Sock 8.Close socket [17:25:43]Sock 8.Thread stoped [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:25]accept exits with 9 [17:28:25]New connection [17:28:25]New thread 3066834276 created [17:28:25]Thread 3066977636 joined [17:28:25]Waiting for new connection... [17:28:25] Sock 9.Parse request [17:28:25]Sock 9.Check first char [17:28:25]Sock 9.First char is OK [17:28:25]request: POST /json_proto HTTP/1.0 [17:28:25]Method: POST [17:28:25]URL: /json_proto [17:28:25]Method is POST - this is cgi request [17:28:25]url: /json_proto [17:28:25]query_string will be loaded in cgi processing [17:28:25]execute_cgi json_proto POST (null) [17:28:25]execute_cgi path=json_proto method=POST [17:28:25]POST find Content-Length [17:28:25]Host: 172.17.63.3:8080 [17:28:25]Content-Length: 676 [17:28:25]Content-Type: application/json [17:28:25] [17:28:25]POST finish read [17:28:25]Found Content-Length = 676 [17:28:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99492", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:28:25]execute_script... [17:28: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)99492", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:28:25]POST & json_proto [17:28:25]process_json_proto [17:28:25]json parsed OK: [17:28:25]protocol is kg_v1.0 [17:28:25]action value=close_receipt [17:28:25]process_action close_receipt [17:28:25]cmd_close_receipt [17:28:25]MH_GetDate [17:28:25]Write to MH i2c: F0 00 00 12 72 73 [17:28:25]Write i2c OK [17:28:25]MH_I2C_Read... [17:28:25]Read from MH i2c: F0 [17:28:25]MH_I2C_Read... [17:28:25]Read from MH i2c: F0 09 00 [17:28:25]MH_I2C_Read... [17:28:25]Read from MH i2c: F0 09 00 12 72 00 40 78 1E 67 50 D1 6C 64 AA [17:28:25]GetLastDocTimeStamp 1730049947 [17:28:25]current date 1730050112 [17:28:25]FM_GetShiftState [17:28:25]SAM_PROTO_GetShiftState [17:28:25]wFMCommunicate request_size=4 [17:28:25]MH_SAM_APDU [17:28:25]CAPDU: 80 13 01 00 [17:28:25]Write to MH i2c: E2 08 00 13 72 80 13 01 00 00 00 00 00 02 [17:28:25]Write i2c OK [17:28:25]MH_I2C_Read... [17:28:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:28:25]Read from MH i2c: E2 [17:28:25]MH_I2C_Read... [17:28:25]Read from MH i2c: E2 0E 00 [17:28:25]MH_I2C_Read... [17:28:25]Read from MH i2c: E2 0E 00 13 72 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 CF [17:28:25]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [17:28:25]wFMCommunicate OK [17:28:25]SAM_PROTO_GetShiftState done [17:28:25]FM_GetShiftState done [17:28:25]opened in 1729989044 [17:28:25]opened+sec_in_day 1730075444 [17:28:25]quantity*price = 40006 [17:28:25]sum+1 = 40007 [17:28:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 229 27.10.2024 17:28 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156678 ФПД: 216436910227086 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T172832&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156678&fm=216436910227086&tin=02508201610067®Number=0000000000091693&sum=40000 [17:28:26]StoreToDocumentArchive [17:28:26]shift 537 fd 156678 [17:28:26]save to /storage/0537/doc_00156678 [17:28:26]save last doc name /storage/0537/doc_00156678 to /storage/kkm_last_doc_name [17:28:26]save OK [17:28:26]Clear old archive folders... [17:28:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:28:26]tlvbuf is 017632A0 [17:28:26]SAM_PROTO_ClearQueue [17:28:26]wFMCommunicate request_size=4 [17:28:26]MH_SAM_APDU [17:28:26]CAPDU: 80 09 00 00 [17:28:26]Write to MH i2c: E2 08 00 20 72 80 09 00 00 00 00 00 00 04 [17:28:26]Write i2c OK [17:28:26]MH_I2C_Read... [17:28:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:28:26]Read from MH i2c: E2 [17:28:26]MH_I2C_Read... [17:28:26]Read from MH i2c: E2 03 00 [17:28:26]MH_I2C_Read... [17:28:26]Read from MH i2c: E2 03 00 20 72 00 90 00 06 [17:28:26]RAPDU: 90 00 [17:28:26]wFMCommunicate OK [17:28:26]SAM_PROTO_ClearQueue done [17:28:26]KKMCreateOFDPacket [17:28:26]OFDProtocolAddRootSTLVToBuf [17:28:26]FM_MakeSignedData [17:28:26]FM_MakeSignedData [17:28:26]SAM_PROTO_SignData [17:28:26]wFMCommunicate request_size=4 [17:28:26]MH_SAM_APDU [17:28:26]CAPDU: 80 0D 01 02 [17:28:26]Write to MH i2c: E2 08 00 21 72 80 0D 01 02 00 00 00 00 0C [17:28:26]Write i2c OK [17:28:26]MH_I2C_Read... [17:28:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:28:26]Read from MH i2c: E2 [17:28:26]MH_I2C_Read... [17:28:26]Read from MH i2c: E2 03 00 [17:28:26]MH_I2C_Read... [17:28:26]Read from MH i2c: E2 03 00 21 72 00 90 00 07 [17:28:26]RAPDU: 90 00 [17:28:26]wFMCommunicate OK [17:28:26]wFMCommunicate request_size=255 [17:28:26]MH_SAM_APDU [17:28: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 40 78 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 06 64 02 00 35 04 06 00 C4 [17:28:26]Write to MH i2c: E2 02 01 22 72 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 40 78 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 06 64 02 00 35 04 06 00 C4 00 00 DC [17:28:26]Write i2c OK [17:28:26]MH_I2C_Read... [17:28:26]Read from MH i2c: E2 [17:28:26]MH_I2C_Read... [17:28:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:28:26]Read from MH i2c: E2 03 00 [17:28:26]MH_I2C_Read... [17:28:26]Read from MH i2c: E2 03 00 22 72 00 90 00 08 [17:28:26]RAPDU: 90 00 [17:28:26]wFMCommunicate OK [17:28:26]wFMCommunicate request_size=10 [17:28:26]MH_SAM_APDU [17:28:26]CAPDU: 80 0D 02 02 05 D9 25 26 7E 8E [17:28:26]Write to MH i2c: E2 0D 00 23 72 80 0D 02 02 05 00 D9 25 26 7E 8E 00 00 49 [17:28:26]Write i2c OK [17:28:26]MH_I2C_Read... [17:28:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:28:26]Read from MH i2c: E2 [17:28:26]MH_I2C_Read... [17:28:26]Read from MH i2c: E2 03 00 [17:28:26]MH_I2C_Read... [17:28:26]Read from MH i2c: E2 03 00 23 72 00 90 00 09 [17:28:26]RAPDU: 90 00 [17:28:26]wFMCommunicate OK [17:28:26]wFMCommunicate request_size=4 [17:28:26]MH_SAM_APDU [17:28:26]CAPDU: 80 0D 03 02 [17:28:26]Write to MH i2c: E2 08 00 24 72 80 0D 03 02 00 00 00 00 11 [17:28:26]Write i2c OK [17:28:26]MH_I2C_Read... [17:28:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:28:26]Read from MH i2c: E2 [17:28:26]MH_I2C_Read... [17:28:26]Read from MH i2c: E2 0B 00 [17:28:27]MH_I2C_Read... [17:28:27]Read from MH i2c: E2 0B 00 24 72 00 64 6F 9F 35 48 93 CA 60 90 00 BE [17:28:27]RAPDU: 64 6F 9F 35 48 93 CA 60 90 00 [17:28:27]wFMCommunicate OK [17:28:27]SAM_PROTO_SignData done [17:28:27]FM_MakeSignedData done [17:28:27]CreateOFDProtocolMessage [17:28:27]wFMCommunicate request_size=4 [17:28:27]MH_SAM_APDU [17:28:27]CAPDU: 80 11 00 00 [17:28:27]Write to MH i2c: E2 08 00 25 72 80 11 00 00 00 00 00 00 11 [17:28:27]Write i2c OK [17:28:27]MH_I2C_Read... [17:28:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:28:27]Read from MH i2c: E2 [17:28:27]MH_I2C_Read... [17:28:27]Read from MH i2c: E2 17 00 [17:28:27]MH_I2C_Read... [17:28:27]Read from MH i2c: E2 17 00 25 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 66 [17:28:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:28:27]wFMCommunicate OK [17:28:27]CreateOFDProtocolMessage done [17:28:27]OFDSenderStorePacket 156678 [17:28:27]StoreOFDPacket docnum=156678 [17:28:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 F6 97 07 01 8A 67 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 40 78 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 06 64 02 00 35 04 06 00 C4 D9 25 26 7E 8E 64 6F 9F 35 48 93 CA 60 [17:28:27]CheckFolder [17:28:27]dirname=/storage/ofd_packets [17:28:27]CheckFolder done [17:28:27]ProducePacketName [17:28:27]name=ofd_packets/00156678 [17:28:27]NVStorageSaveData ofd_packets/00156678 [17:28:27]File name is /storage/ofd_packets/00156678 [17:28:27]Write 301 bytes [17:28:27]NVStorageSaveData done [17:28:27]OFDSenderStorePacket done [17:28:27]KKMCreateOFDPacket done [17:28:27]NVStorageSaveData kkm_last_timestamp [17:28:27]File name is /storage/kkm_last_timestamp [17:28:27]Write 4 bytes [17:28:27]NVStorageSaveData done [17:28:27]ExternCall_PrintAddStr [17:28:27]wPrintStart [17:28:27]Write to MH i2c: 01 00 00 26 72 98 [17:28:27]Write i2c OK [17:28:27]MH_I2C_Read... [17:28:27]Read from MH i2c: 01 [17:28:27]MH_I2C_Read... [17:28:27]Read from MH i2c: 01 07 00 [17:28:27]MH_I2C_Read... [17:28:27]Read from MH i2c: 01 07 00 26 72 00 00 00 00 00 FF 0F AD [17:28:27]RasterBufferAndPrint [17:28:27]line Счет N : (1)99492 [17:28:27]line ИНН: 02508201610067 [17:28:27]line Контрольно-Кассовый Чек [17:28:27]line ПРОДАЖА [17:28:27]line ТРК (МРК, ГНК) : 31 [17:28:27]line Товар: 2710124130 [17:28:27]line Аи-92-К-5 [17:28:27]line 5.980 * 66.90 [17:28:27]line = 400.06 [17:28:27]line НДС 12% НСП 1% [17:28:27]line > о реализуемом товаре [17:28:27]line ОКРУГЛЕНИЕ: -0.06 [17:28:27]line ИТОГО: 400.00 [17:28:27]line Внесено: 400.00 [17:28:27]line СДАЧА: 0.00 [17:28:27]line НСП 1% : 3.54 [17:28:27]line НДС 12% : 42.48 [17:28:27]line Наличными: 400.00 [17:28:27]line Безнал.: 0.00 [17:28:27]line Место: АЗС № 143 "Партнер Нефть" [17:28:27]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [17:28:27]line СНО: Общий режим [17:28:27]line Чек 229 27.10.2024 17:28 [17:28:27]line Смена: 537 ФФД: 1.0 [17:28:27]line ЗНМ: 0300000096 [17:28:27]line РНМ: 0000000000091693 [17:28:27]line Версия ККМ: 001 [17:28:27]line ФМ: 0000000000871792 [17:28:27]line ФД: 156678 [17:28:27]line ФПД: 216436910227086 [17:28:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T172832&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156678&fm=216436910227086&tin=02508201610067®Number=0000000000091693&sum=40000 [17:28:27]OFD Sender: Processing packet 156678 [packets to send 31, broken 30] [17:28:27]ProducePacketName [17:28:27]name=ofd_packets/00156678 [17:28:27]OFD Sender: To server: pG, [17:28:27]CommunicateWithHost lk.salyk.kg:30040 [17:28:27]ConnectInit lk.salyk.kg [17:28:27]written 0, free lines is 4095 [17:28:27]Connected sock=10 [17:28:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 F6 97 07 01 8A 67 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 40 78 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 06 64 02 00 35 04 06 00 C4 D9 25 26 7E 8E 64 6F 9F 35 48 93 CA 60 [17:28:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 77 92 47 00 C0 FD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 06 64 02 00 F4 03 04 00 AF 1D 1E 67 B6 04 01 00 00 2B 9A 4C 9B 4D DD 42 1F [17:28:27]CommunicateWithHost err = 0 [17:28:27]CheckOFDResponse [17:28:27]1017 (14) - 77093643461234 [17:28:27]1041 (16) - 0000000000871792 [17:28:27]1040 (4) - 156678 [17:28:27]1012 (4) - 27.10.2024 11:02 [17:28:27]1206 (1) - 0 [17:28:27]OFD Sender: Remove packet 156678 [17:28:27]ProducePacketName [17:28:27]name=ofd_packets/00156678 [17:28:27]NVStorageDeleteData [17:28:27]Write to MH i2c: 01 00 00 51 72 C3 [17:28:27]Write i2c OK [17:28:27]MH_I2C_Read... [17:28:27]Read from MH i2c: 01 [17:28:27]MH_I2C_Read... [17:28:27]Read from MH i2c: 01 07 00 [17:28:27]MH_I2C_Read... [17:28:27]Read from MH i2c: 01 07 00 51 72 00 00 00 00 00 E6 0C BC [17:28:27]RasterBufferAndPrint [17:28:27]line [17:28:27]line [17:28:27]line [17:28:27]line [17:28:27]line [17:28:27]written 0, free lines is 3308 [17:28:27]process_action close_receipt done [17:28:27]requested_data is exist [17:28:27]produce_requested_data [17:28:27]requested_item fm.sn is exist - process it [17:28:27]wFMCommunicate request_size=4 [17:28:27]MH_SAM_APDU [17:28:27]CAPDU: 80 11 00 00 [17:28:27]Write to MH i2c: E2 08 00 58 72 80 11 00 00 00 00 00 00 44 [17:28:27]Write i2c OK [17:28:27]MH_I2C_Read... [17:28:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:28:27]Read from MH i2c: E2 [17:28:27]MH_I2C_Read... [17:28:27]Read from MH i2c: E2 17 00 [17:28:27]MH_I2C_Read... [17:28:27]Read from MH i2c: E2 17 00 58 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 99 [17:28:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:28:27]wFMCommunicate OK [17:28:27]requested_item fd.num is exist - process it [17:28:27]SAM_PROTO_GetFieldsCounters [17:28:27]wFMCommunicate request_size=4 [17:28:27]MH_SAM_APDU [17:28:27]CAPDU: 80 13 00 00 [17:28:27]Write to MH i2c: E2 08 00 59 72 80 13 00 00 00 00 00 00 47 [17:28:27]Write i2c OK [17:28:27]MH_I2C_Read... [17:28:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:28:28]Read from MH i2c: E2 [17:28:28]MH_I2C_Read... [17:28:28]Read from MH i2c: E2 62 00 [17:28:28]MH_I2C_Read... [17:28:28]Read from MH i2c: E2 62 00 59 72 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 06 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 A3 [17:28:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 06 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:28:28]wFMCommunicate OK [17:28:28]SAM_PROTO_GetFieldsCounters done [17:28:28]requested_item shift.num is exist - process it [17:28:28]requested_item shift.opened is exist - process it [17:28:28]req_shift_opened [17:28:28]FM_GetShiftState [17:28:28]SAM_PROTO_GetShiftState [17:28:28]wFMCommunicate request_size=4 [17:28:28]MH_SAM_APDU [17:28:28]CAPDU: 80 13 01 00 [17:28:28]Write to MH i2c: E2 08 00 5A 72 80 13 01 00 00 00 00 00 49 [17:28:28]Write i2c OK [17:28:28]MH_I2C_Read... [17:28:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:28:28]Read from MH i2c: E2 [17:28:28]MH_I2C_Read... [17:28:28]Read from MH i2c: E2 0E 00 [17:28:28]MH_I2C_Read... [17:28:28]Read from MH i2c: E2 0E 00 5A 72 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 16 [17:28:28]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [17:28:28]wFMCommunicate OK [17:28:28]SAM_PROTO_GetShiftState done [17:28:28]FM_GetShiftState done [17:28:28]req_shift_opened done [17:28:28]requested_item shift.open_date is exist - process it [17:28:28]req_shift_open_date [17:28:28]req_shift_open_date done [17:28:28]produce_requested_data done [17:28:28]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156678,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [17:28:28]process_action_free close_receipt [17:28:28]json_value_free [17:28:28]json_value_free done [17:28:28]process_json_proto returns [17:28:28]Send response to host [17:28:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156678,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [17:28:28]free response buf [17:28:28]execute_script done [17:28:28]execute_script returns [17:28:28]free content buf [17:28:28]Sock 9.Close socket [17:28:28]Sock 9.Thread stoped [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 [17:30:21]accept exits with 8 [17:30:21]New connection [17:30:21]New thread 3066977636 created [17:30:21]Thread 3066834276 joined [17:30:21]Waiting for new connection... [17:30:21] Sock 8.Parse request [17:30:21]Sock 8.Check first char [17:30:21]Sock 8.First char is OK [17:30:21]request: POST /json_proto HTTP/1.0 [17:30:21]Method: POST [17:30:21]URL: /json_proto [17:30:21]Method is POST - this is cgi request [17:30:21]url: /json_proto [17:30:21]query_string will be loaded in cgi processing [17:30:21]execute_cgi json_proto POST (null) [17:30:21]execute_cgi path=json_proto method=POST [17:30:21]POST find Content-Length [17:30:21]Host: 172.17.63.3:8080 [17:30:21]Content-Length: 676 [17:30:21]Content-Type: application/json [17:30:21] [17:30:21]POST finish read [17:30:21]Found Content-Length = 676 [17:30:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99493", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:30:21]execute_script... [17:30: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)99493", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:30:21]POST & json_proto [17:30:21]process_json_proto [17:30:21]json parsed OK: [17:30:21]protocol is kg_v1.0 [17:30:21]action value=close_receipt [17:30:21]process_action close_receipt [17:30:21]cmd_close_receipt [17:30:21]MH_GetDate [17:30:21]Write to MH i2c: F0 00 00 5B 72 BC [17:30:21]Write i2c OK [17:30:21]MH_I2C_Read... [17:30:21]Read from MH i2c: F0 [17:30:21]MH_I2C_Read... [17:30:21]Read from MH i2c: F0 09 00 [17:30:21]MH_I2C_Read... [17:30:21]Read from MH i2c: F0 09 00 5B 72 00 B4 78 1E 67 50 D1 6C 64 67 [17:30:21]GetLastDocTimeStamp 1730050112 [17:30:21]current date 1730050228 [17:30:21]FM_GetShiftState [17:30:21]SAM_PROTO_GetShiftState [17:30:21]wFMCommunicate request_size=4 [17:30:21]MH_SAM_APDU [17:30:21]CAPDU: 80 13 01 00 [17:30:21]Write to MH i2c: E2 08 00 5C 72 80 13 01 00 00 00 00 00 4B [17:30:21]Write i2c OK [17:30:21]MH_I2C_Read... [17:30:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:30:21]Read from MH i2c: E2 [17:30:21]MH_I2C_Read... [17:30:21]Read from MH i2c: E2 0E 00 [17:30:21]MH_I2C_Read... [17:30:21]Read from MH i2c: E2 0E 00 5C 72 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 18 [17:30:21]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [17:30:21]wFMCommunicate OK [17:30:21]SAM_PROTO_GetShiftState done [17:30:21]FM_GetShiftState done [17:30:21]opened in 1729989044 [17:30:21]opened+sec_in_day 1730075444 [17:30:21]quantity*price = 30038 [17:30:21]sum+1 = 30039 [17:30:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 230 27.10.2024 17:30 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156679 ФПД: 231911506336799 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T173028&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156679&fm=231911506336799&tin=02508201610067®Number=0000000000091693&sum=30000 [17:30:23]StoreToDocumentArchive [17:30:23]shift 537 fd 156679 [17:30:23]save to /storage/0537/doc_00156679 [17:30:23]save last doc name /storage/0537/doc_00156679 to /storage/kkm_last_doc_name [17:30:23]save OK [17:30:23]Clear old archive folders... [17:30:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:30:23]tlvbuf is 01889820 [17:30:23]SAM_PROTO_ClearQueue [17:30:23]wFMCommunicate request_size=4 [17:30:23]MH_SAM_APDU [17:30:23]CAPDU: 80 09 00 00 [17:30:23]Write to MH i2c: E2 08 00 69 72 80 09 00 00 00 00 00 00 4D [17:30:23]Write i2c OK [17:30:23]MH_I2C_Read... [17:30:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:30:23]Read from MH i2c: E2 [17:30:23]MH_I2C_Read... [17:30:23]Read from MH i2c: E2 03 00 [17:30:23]MH_I2C_Read... [17:30:23]Read from MH i2c: E2 03 00 69 72 00 90 00 4F [17:30:23]RAPDU: 90 00 [17:30:23]wFMCommunicate OK [17:30:23]SAM_PROTO_ClearQueue done [17:30:23]KKMCreateOFDPacket [17:30:23]OFDProtocolAddRootSTLVToBuf [17:30:23]FM_MakeSignedData [17:30:23]FM_MakeSignedData [17:30:23]SAM_PROTO_SignData [17:30:23]wFMCommunicate request_size=4 [17:30:23]MH_SAM_APDU [17:30:23]CAPDU: 80 0D 01 02 [17:30:23]Write to MH i2c: E2 08 00 6A 72 80 0D 01 02 00 00 00 00 55 [17:30:23]Write i2c OK [17:30:23]MH_I2C_Read... [17:30:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:30:23]Read from MH i2c: E2 [17:30:23]MH_I2C_Read... [17:30:23]Read from MH i2c: E2 03 00 [17:30:23]MH_I2C_Read... [17:30:23]Read from MH i2c: E2 03 00 6A 72 00 90 00 50 [17:30:23]RAPDU: 90 00 [17:30:23]wFMCommunicate OK [17:30:23]wFMCommunicate request_size=255 [17:30:23]MH_SAM_APDU [17:30: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 B4 78 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 07 64 02 00 35 04 06 00 D2 [17:30:23]Write to MH i2c: E2 02 01 6B 72 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 B4 78 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 07 64 02 00 35 04 06 00 D2 00 00 CE [17:30:23]Write i2c OK [17:30:23]MH_I2C_Read... [17:30:23]OFD Sender: No OFD packet to send [17:30:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:30:23]Read from MH i2c: E2 [17:30:23]MH_I2C_Read... [17:30:23]Read from MH i2c: E2 03 00 [17:30:23]MH_I2C_Read... [17:30:23]Read from MH i2c: E2 03 00 6B 72 00 90 00 51 [17:30:23]RAPDU: 90 00 [17:30:23]wFMCommunicate OK [17:30:23]wFMCommunicate request_size=10 [17:30:23]MH_SAM_APDU [17:30:23]CAPDU: 80 0D 02 02 05 EC 1A F4 5C 1F [17:30:23]Write to MH i2c: E2 0D 00 6C 72 80 0D 02 02 05 00 EC 1A F4 5C 1F 00 00 D7 [17:30:23]Write i2c OK [17:30:23]MH_I2C_Read... [17:30:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:30:23]Read from MH i2c: E2 [17:30:23]MH_I2C_Read... [17:30:23]Read from MH i2c: E2 03 00 [17:30:23]MH_I2C_Read... [17:30:23]Read from MH i2c: E2 03 00 6C 72 00 90 00 52 [17:30:23]RAPDU: 90 00 [17:30:23]wFMCommunicate OK [17:30:23]wFMCommunicate request_size=4 [17:30:23]MH_SAM_APDU [17:30:23]CAPDU: 80 0D 03 02 [17:30:23]Write to MH i2c: E2 08 00 6D 72 80 0D 03 02 00 00 00 00 5A [17:30:23]Write i2c OK [17:30:23]MH_I2C_Read... [17:30:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:30:23]Read from MH i2c: E2 [17:30:23]MH_I2C_Read... [17:30:23]Read from MH i2c: E2 0B 00 [17:30:23]MH_I2C_Read... [17:30:23]Read from MH i2c: E2 0B 00 6D 72 00 F0 38 CA 09 36 5F 56 00 90 00 41 [17:30:23]RAPDU: F0 38 CA 09 36 5F 56 00 90 00 [17:30:23]wFMCommunicate OK [17:30:23]SAM_PROTO_SignData done [17:30:23]FM_MakeSignedData done [17:30:23]CreateOFDProtocolMessage [17:30:23]wFMCommunicate request_size=4 [17:30:23]MH_SAM_APDU [17:30:23]CAPDU: 80 11 00 00 [17:30:23]Write to MH i2c: E2 08 00 6E 72 80 11 00 00 00 00 00 00 5A [17:30:23]Write i2c OK [17:30:23]MH_I2C_Read... [17:30:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:30:23]Read from MH i2c: E2 [17:30:23]MH_I2C_Read... [17:30:23]Read from MH i2c: E2 17 00 [17:30:23]MH_I2C_Read... [17:30:23]Read from MH i2c: E2 17 00 6E 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 AF [17:30:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:30:23]wFMCommunicate OK [17:30:23]CreateOFDProtocolMessage done [17:30:23]OFDSenderStorePacket 156679 [17:30:23]StoreOFDPacket docnum=156679 [17:30:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 86 AC 07 01 0B 09 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 B4 78 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 07 64 02 00 35 04 06 00 D2 EC 1A F4 5C 1F F0 38 CA 09 36 5F 56 00 [17:30:23]CheckFolder [17:30:23]dirname=/storage/ofd_packets [17:30:23]CheckFolder done [17:30:23]ProducePacketName [17:30:23]name=ofd_packets/00156679 [17:30:23]NVStorageSaveData ofd_packets/00156679 [17:30:23]File name is /storage/ofd_packets/00156679 [17:30:23]Write 301 bytes [17:30:23]NVStorageSaveData done [17:30:23]OFDSenderStorePacket done [17:30:23]KKMCreateOFDPacket done [17:30:23]NVStorageSaveData kkm_last_timestamp [17:30:23]File name is /storage/kkm_last_timestamp [17:30:23]Write 4 bytes [17:30:23]NVStorageSaveData done [17:30:23]ExternCall_PrintAddStr [17:30:23]wPrintStart [17:30:23]Write to MH i2c: 01 00 00 6F 72 E1 [17:30:23]Write i2c OK [17:30:23]MH_I2C_Read... [17:30:23]Read from MH i2c: 01 [17:30:23]MH_I2C_Read... [17:30:23]Read from MH i2c: 01 07 00 [17:30:23]MH_I2C_Read... [17:30:23]Read from MH i2c: 01 07 00 6F 72 00 00 00 00 00 FF 0F F6 [17:30:23]RasterBufferAndPrint [17:30:23]line Счет N : (1)99493 [17:30:23]line ИНН: 02508201610067 [17:30:23]line Контрольно-Кассовый Чек [17:30:23]line ПРОДАЖА [17:30:23]line ТРК (МРК, ГНК) : 31 [17:30:23]line Товар: 2710124130 [17:30:23]line Аи-92-К-5 [17:30:23]line 4.490 * 66.90 [17:30:23]line = 300.38 [17:30:23]line НДС 12% НСП 1% [17:30:23]line > о реализуемом товаре [17:30:23]line ОКРУГЛЕНИЕ: -0.38 [17:30:23]line ИТОГО: 300.00 [17:30:23]line Внесено: 300.00 [17:30:23]line СДАЧА: 0.00 [17:30:23]line НСП 1% : 2.66 [17:30:23]line НДС 12% : 31.90 [17:30:23]line Наличными: 300.00 [17:30:23]line Безнал.: 0.00 [17:30:23]line Место: АЗС № 143 "Партнер Нефть" [17:30:23]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [17:30:23]line СНО: Общий режим [17:30:23]line Чек 230 27.10.2024 17:30 [17:30:23]line Смена: 537 ФФД: 1.0 [17:30:23]line ЗНМ: 0300000096 [17:30:23]line РНМ: 0000000000091693 [17:30:23]line Версия ККМ: 001 [17:30:23]line ФМ: 0000000000871792 [17:30:23]line ФД: 156679 [17:30:23]line ФПД: 231911506336799 [17:30:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T173028&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156679&fm=231911506336799&tin=02508201610067®Number=0000000000091693&sum=30000 [17:30:23]OFD Sender: Processing packet 156679 [packets to send 31, broken 30] [17:30:23]ProducePacketName [17:30:23]name=ofd_packets/00156679 [17:30:23]OFD Sender: To server: pG, [17:30:23]CommunicateWithHost lk.salyk.kg:30040 [17:30:23]ConnectInit lk.salyk.kg [17:30:23]written 0, free lines is 4095 [17:30:24]Connected sock=10 [17:30:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 86 AC 07 01 0B 09 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 B4 78 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 07 64 02 00 35 04 06 00 D2 EC 1A F4 5C 1F F0 38 CA 09 36 5F 56 00 [17:30:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 AB E2 47 00 44 B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 07 64 02 00 F4 03 04 00 23 1E 1E 67 B6 04 01 00 00 C2 E0 E7 1D 1E 52 7D 51 [17:30:24]CommunicateWithHost err = 0 [17:30:24]CheckOFDResponse [17:30:24]1017 (14) - 77093643461234 [17:30:24]1041 (16) - 0000000000871792 [17:30:24]1040 (4) - 156679 [17:30:24]1012 (4) - 27.10.2024 11:04 [17:30:24]1206 (1) - 0 [17:30:24]OFD Sender: Remove packet 156679 [17:30:24]ProducePacketName [17:30:24]name=ofd_packets/00156679 [17:30:24]NVStorageDeleteData [17:30:24]Write to MH i2c: 01 00 00 9A 72 0C [17:30:24]Write i2c OK [17:30:24]MH_I2C_Read... [17:30:24]Read from MH i2c: 01 [17:30:24]MH_I2C_Read... [17:30:24]Read from MH i2c: 01 07 00 [17:30:24]MH_I2C_Read... [17:30:24]Read from MH i2c: 01 07 00 9A 72 00 00 00 00 00 E1 0C 00 [17:30:24]RasterBufferAndPrint [17:30:24]line [17:30:24]line [17:30:24]line [17:30:24]line [17:30:24]line [17:30:24]written 0, free lines is 3303 [17:30:24]process_action close_receipt done [17:30:24]requested_data is exist [17:30:24]produce_requested_data [17:30:24]requested_item fm.sn is exist - process it [17:30:24]wFMCommunicate request_size=4 [17:30:24]MH_SAM_APDU [17:30:24]CAPDU: 80 11 00 00 [17:30:24]Write to MH i2c: E2 08 00 A1 72 80 11 00 00 00 00 00 00 8D [17:30:24]Write i2c OK [17:30:24]MH_I2C_Read... [17:30:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:30:24]Read from MH i2c: E2 [17:30:24]MH_I2C_Read... [17:30:24]Read from MH i2c: E2 17 00 [17:30:24]MH_I2C_Read... [17:30:24]Read from MH i2c: E2 17 00 A1 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 E2 [17:30:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:30:24]wFMCommunicate OK [17:30:24]requested_item fd.num is exist - process it [17:30:24]SAM_PROTO_GetFieldsCounters [17:30:24]wFMCommunicate request_size=4 [17:30:24]MH_SAM_APDU [17:30:24]CAPDU: 80 13 00 00 [17:30:24]Write to MH i2c: E2 08 00 A2 72 80 13 00 00 00 00 00 00 90 [17:30:24]Write i2c OK [17:30:24]MH_I2C_Read... [17:30:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:30:24]Read from MH i2c: E2 [17:30:24]MH_I2C_Read... [17:30:24]Read from MH i2c: E2 62 00 [17:30:24]MH_I2C_Read... [17:30:24]Read from MH i2c: E2 62 00 A2 72 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 07 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 F0 [17:30:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 07 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:30:24]wFMCommunicate OK [17:30:24]SAM_PROTO_GetFieldsCounters done [17:30:24]requested_item shift.num is exist - process it [17:30:24]requested_item shift.opened is exist - process it [17:30:24]req_shift_opened [17:30:24]FM_GetShiftState [17:30:24]SAM_PROTO_GetShiftState [17:30:24]wFMCommunicate request_size=4 [17:30:24]MH_SAM_APDU [17:30:24]CAPDU: 80 13 01 00 [17:30:24]Write to MH i2c: E2 08 00 A3 72 80 13 01 00 00 00 00 00 92 [17:30:24]Write i2c OK [17:30:24]MH_I2C_Read... [17:30:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:30:24]Read from MH i2c: E2 [17:30:24]MH_I2C_Read... [17:30:24]Read from MH i2c: E2 0E 00 [17:30:24]MH_I2C_Read... [17:30:24]Read from MH i2c: E2 0E 00 A3 72 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 5F [17:30:24]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [17:30:24]wFMCommunicate OK [17:30:24]SAM_PROTO_GetShiftState done [17:30:24]FM_GetShiftState done [17:30:24]req_shift_opened done [17:30:24]requested_item shift.open_date is exist - process it [17:30:24]req_shift_open_date [17:30:24]req_shift_open_date done [17:30:24]produce_requested_data done [17:30:24]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156679,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [17:30:24]process_action_free close_receipt [17:30:24]json_value_free [17:30:24]json_value_free done [17:30:24]process_json_proto returns [17:30:24]Send response to host [17:30:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156679,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [17:30:24]free response buf [17:30:24]execute_script done [17:30:24]execute_script returns [17:30:24]free content buf [17:30:24]Sock 8.Close socket [17:30:24]Sock 8.Thread stoped [17:30:24]OFD Sender: No OFD packet to send [17:30:29]OFD Sender: No OFD packet to send [17:30:34]OFD Sender: No OFD packet to send [17:30:39]OFD Sender: No OFD packet to send [17:30:44]OFD Sender: No OFD packet to send [17:30:49]OFD Sender: No OFD packet to send [17:30:54]OFD Sender: No OFD packet to send [17:30:59]OFD Sender: No OFD packet to send [17:31:04]OFD Sender: No OFD packet to send [17:31:09]OFD Sender: No OFD packet to send [17:31:14]OFD Sender: No OFD packet to send [17:31:19]OFD Sender: No OFD packet to send [17:31:24]OFD Sender: No OFD packet to send [17:31:29]OFD Sender: No OFD packet to send [17:31:34]OFD Sender: No OFD packet to send [17:31:39]OFD Sender: No OFD packet to send [17:31:44]OFD Sender: No OFD packet to send [17:31:49]OFD Sender: No OFD packet to send [17:31:54]OFD Sender: No OFD packet to send [17:31:59]OFD Sender: No OFD packet to send [17:32:04]OFD Sender: No OFD packet to send [17:32:09]OFD Sender: No OFD packet to send [17:32:14]OFD Sender: No OFD packet to send [17:32:19]OFD Sender: No OFD packet to send [17:32:24]OFD Sender: No OFD packet to send [17:32:29]OFD Sender: No OFD packet to send [17:32:34]OFD Sender: No OFD packet to send [17:32:39]OFD Sender: No OFD packet to send [17:32:44]OFD Sender: No OFD packet to send [17:32:47]accept exits with 9 [17:32:47]New connection [17:32:47]New thread 3066834276 created [17:32:47]Thread 3066977636 joined [17:32:47]Waiting for new connection... [17:32:47] Sock 9.Parse request [17:32:47]Sock 9.Check first char [17:32:47]Sock 9.First char is OK [17:32:47]request: POST /json_proto HTTP/1.0 [17:32:47]Method: POST [17:32:47]URL: /json_proto [17:32:47]Method is POST - this is cgi request [17:32:47]url: /json_proto [17:32:47]query_string will be loaded in cgi processing [17:32:47]execute_cgi json_proto POST (null) [17:32:47]execute_cgi path=json_proto method=POST [17:32:47]POST find Content-Length [17:32:47]Host: 172.17.63.3:8080 [17:32:47]Content-Length: 676 [17:32:47]Content-Type: application/json [17:32:47] [17:32:47]POST finish read [17:32:47]Found Content-Length = 676 [17:32:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99494", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:32:47]execute_script... [17:32:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99494", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:32:47]POST & json_proto [17:32:47]process_json_proto [17:32:47]json parsed OK: [17:32:47]protocol is kg_v1.0 [17:32:47]action value=close_receipt [17:32:47]process_action close_receipt [17:32:47]cmd_close_receipt [17:32:47]MH_GetDate [17:32:47]Write to MH i2c: F0 00 00 A4 72 05 [17:32:47]Write i2c OK [17:32:47]MH_I2C_Read... [17:32:47]Read from MH i2c: F0 [17:32:47]MH_I2C_Read... [17:32:47]Read from MH i2c: F0 09 00 [17:32:47]MH_I2C_Read... [17:32:47]Read from MH i2c: F0 09 00 A4 72 00 46 79 1E 67 50 D1 6C 64 43 [17:32:47]GetLastDocTimeStamp 1730050228 [17:32:47]current date 1730050374 [17:32:47]FM_GetShiftState [17:32:47]SAM_PROTO_GetShiftState [17:32:47]wFMCommunicate request_size=4 [17:32:47]MH_SAM_APDU [17:32:47]CAPDU: 80 13 01 00 [17:32:47]Write to MH i2c: E2 08 00 A5 72 80 13 01 00 00 00 00 00 94 [17:32:47]Write i2c OK [17:32:47]MH_I2C_Read... [17:32:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:32:47]Read from MH i2c: E2 [17:32:47]MH_I2C_Read... [17:32:47]Read from MH i2c: E2 0E 00 [17:32:47]MH_I2C_Read... [17:32:47]Read from MH i2c: E2 0E 00 A5 72 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 61 [17:32:47]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [17:32:47]wFMCommunicate OK [17:32:47]SAM_PROTO_GetShiftState done [17:32:47]FM_GetShiftState done [17:32:47]opened in 1729989044 [17:32:47]opened+sec_in_day 1730075444 [17:32:47]quantity*price = 50041 [17:32:47]sum+1 = 50042 [17:32:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 231 27.10.2024 17:32 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156680 ФПД: 74687035779638 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T173254&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156680&fm=74687035779638&tin=02508201610067®Number=0000000000091693&sum=50000 [17:32:48]StoreToDocumentArchive [17:32:48]shift 537 fd 156680 [17:32:48]save to /storage/0537/doc_00156680 [17:32:48]save last doc name /storage/0537/doc_00156680 to /storage/kkm_last_doc_name [17:32:48]save OK [17:32:48]Clear old archive folders... [17:32:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:32:48]tlvbuf is 017C6A30 [17:32:48]SAM_PROTO_ClearQueue [17:32:48]wFMCommunicate request_size=4 [17:32:48]MH_SAM_APDU [17:32:48]CAPDU: 80 09 00 00 [17:32:48]Write to MH i2c: E2 08 00 B2 72 80 09 00 00 00 00 00 00 96 [17:32:48]Write i2c OK [17:32:48]MH_I2C_Read... [17:32:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:32:48]Read from MH i2c: E2 [17:32:48]MH_I2C_Read... [17:32:48]Read from MH i2c: E2 03 00 [17:32:48]MH_I2C_Read... [17:32:48]Read from MH i2c: E2 03 00 B2 72 00 90 00 98 [17:32:48]RAPDU: 90 00 [17:32:48]wFMCommunicate OK [17:32:48]SAM_PROTO_ClearQueue done [17:32:48]KKMCreateOFDPacket [17:32:48]OFDProtocolAddRootSTLVToBuf [17:32:48]FM_MakeSignedData [17:32:48]FM_MakeSignedData [17:32:48]SAM_PROTO_SignData [17:32:48]wFMCommunicate request_size=4 [17:32:48]MH_SAM_APDU [17:32:48]CAPDU: 80 0D 01 02 [17:32:48]Write to MH i2c: E2 08 00 B3 72 80 0D 01 02 00 00 00 00 9E [17:32:48]Write i2c OK [17:32:48]MH_I2C_Read... [17:32:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:32:48]Read from MH i2c: E2 [17:32:48]MH_I2C_Read... [17:32:48]Read from MH i2c: E2 03 00 [17:32:48]MH_I2C_Read... [17:32:48]Read from MH i2c: E2 03 00 B3 72 00 90 00 99 [17:32:48]RAPDU: 90 00 [17:32:48]wFMCommunicate OK [17:32:48]wFMCommunicate request_size=255 [17:32:48]MH_SAM_APDU [17:32: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 46 79 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 08 64 02 00 35 04 06 00 43 [17:32:48]Write to MH i2c: E2 02 01 B4 72 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 46 79 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 08 64 02 00 35 04 06 00 43 00 00 29 [17:32:48]Write i2c OK [17:32:48]MH_I2C_Read... [17:32:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:32:48]Read from MH i2c: E2 [17:32:48]MH_I2C_Read... [17:32:48]Read from MH i2c: E2 03 00 [17:32:48]MH_I2C_Read... [17:32:48]Read from MH i2c: E2 03 00 B4 72 00 90 00 9A [17:32:48]RAPDU: 90 00 [17:32:48]wFMCommunicate OK [17:32:48]wFMCommunicate request_size=10 [17:32:48]MH_SAM_APDU [17:32:48]CAPDU: 80 0D 02 02 05 ED 6E 3C AA 36 [17:32:48]Write to MH i2c: E2 0D 00 B5 72 80 0D 02 02 05 00 ED 6E 3C AA 36 00 00 22 [17:32:48]Write i2c OK [17:32:48]MH_I2C_Read... [17:32:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:32:48]Read from MH i2c: E2 [17:32:48]MH_I2C_Read... [17:32:48]Read from MH i2c: E2 03 00 [17:32:48]MH_I2C_Read... [17:32:48]Read from MH i2c: E2 03 00 B5 72 00 90 00 9B [17:32:48]RAPDU: 90 00 [17:32:48]wFMCommunicate OK [17:32:48]wFMCommunicate request_size=4 [17:32:48]MH_SAM_APDU [17:32:48]CAPDU: 80 0D 03 02 [17:32:48]Write to MH i2c: E2 08 00 B6 72 80 0D 03 02 00 00 00 00 A3 [17:32:48]Write i2c OK [17:32:48]MH_I2C_Read... [17:32:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:32:48]Read from MH i2c: E2 [17:32:48]MH_I2C_Read... [17:32:48]Read from MH i2c: E2 0B 00 [17:32:48]MH_I2C_Read... [17:32:48]Read from MH i2c: E2 0B 00 B6 72 00 9D 21 27 D8 0B 12 54 13 90 00 E5 [17:32:48]RAPDU: 9D 21 27 D8 0B 12 54 13 90 00 [17:32:48]wFMCommunicate OK [17:32:48]SAM_PROTO_SignData done [17:32:48]FM_MakeSignedData done [17:32:48]CreateOFDProtocolMessage [17:32:48]wFMCommunicate request_size=4 [17:32:48]MH_SAM_APDU [17:32:48]CAPDU: 80 11 00 00 [17:32:48]Write to MH i2c: E2 08 00 B7 72 80 11 00 00 00 00 00 00 A3 [17:32:48]Write i2c OK [17:32:48]MH_I2C_Read... [17:32:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:32:48]Read from MH i2c: E2 [17:32:48]MH_I2C_Read... [17:32:48]Read from MH i2c: E2 17 00 [17:32:48]MH_I2C_Read... [17:32:48]Read from MH i2c: E2 17 00 B7 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 F8 [17:32:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:32:48]wFMCommunicate OK [17:32:48]CreateOFDProtocolMessage done [17:32:48]OFDSenderStorePacket 156680 [17:32:48]StoreOFDPacket docnum=156680 [17:32:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 E3 7E 07 01 D4 AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 46 79 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 08 64 02 00 35 04 06 00 43 ED 6E 3C AA 36 9D 21 27 D8 0B 12 54 13 [17:32:48]CheckFolder [17:32:48]dirname=/storage/ofd_packets [17:32:48]CheckFolder done [17:32:48]ProducePacketName [17:32:48]name=ofd_packets/00156680 [17:32:48]NVStorageSaveData ofd_packets/00156680 [17:32:48]File name is /storage/ofd_packets/00156680 [17:32:48]Write 301 bytes [17:32:48]NVStorageSaveData done [17:32:48]OFDSenderStorePacket done [17:32:48]KKMCreateOFDPacket done [17:32:48]NVStorageSaveData kkm_last_timestamp [17:32:48]File name is /storage/kkm_last_timestamp [17:32:48]Write 4 bytes [17:32:48]NVStorageSaveData done [17:32:48]ExternCall_PrintAddStr [17:32:48]wPrintStart [17:32:48]Write to MH i2c: 01 00 00 B8 72 2A [17:32:48]Write i2c OK [17:32:48]MH_I2C_Read... [17:32:48]Read from MH i2c: 01 [17:32:48]MH_I2C_Read... [17:32:48]Read from MH i2c: 01 07 00 [17:32:48]MH_I2C_Read... [17:32:48]Read from MH i2c: 01 07 00 B8 72 00 00 00 00 00 FF 0F 3F [17:32:48]RasterBufferAndPrint [17:32:48]line Счет N : (1)99494 [17:32:48]line ИНН: 02508201610067 [17:32:48]line Контрольно-Кассовый Чек [17:32:48]line ПРОДАЖА [17:32:48]line ТРК (МРК, ГНК) : 31 [17:32:48]line Товар: 2710124130 [17:32:48]line Аи-92-К-5 [17:32:48]line 7.480 * 66.90 [17:32:48]line = 500.41 [17:32:48]line НДС 12% НСП 1% [17:32:48]line > о реализуемом товаре [17:32:48]line ОКРУГЛЕНИЕ: -0.41 [17:32:48]line ИТОГО: 500.00 [17:32:48]line Внесено: 500.00 [17:32:48]line СДАЧА: 0.00 [17:32:48]line НСП 1% : 4.43 [17:32:48]line НДС 12% : 53.14 [17:32:48]line Наличными: 500.00 [17:32:48]line Безнал.: 0.00 [17:32:48]line Место: АЗС № 143 "Партнер Нефть" [17:32:48]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [17:32:48]line СНО: Общий режим [17:32:48]line Чек 231 27.10.2024 17:32 [17:32:48]line Смена: 537 ФФД: 1.0 [17:32:48]line ЗНМ: 0300000096 [17:32:48]line РНМ: 0000000000091693 [17:32:48]line Версия ККМ: 001 [17:32:48]line ФМ: 0000000000871792 [17:32:48]line ФД: 156680 [17:32:48]line ФПД: 74687035779638 [17:32:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T173254&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156680&fm=74687035779638&tin=02508201610067®Number=0000000000091693&sum=50000 [17:32:49]OFD Sender: Processing packet 156680 [packets to send 31, broken 30] [17:32:49]ProducePacketName [17:32:49]name=ofd_packets/00156680 [17:32:49]OFD Sender: To server: pG, [17:32:49]CommunicateWithHost lk.salyk.kg:30040 [17:32:49]ConnectInit lk.salyk.kg [17:32:49]written 0, free lines is 4095 [17:32:49]Connected sock=10 [17:32:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 E3 7E 07 01 D4 AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 46 79 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 08 64 02 00 35 04 06 00 43 ED 6E 3C AA 36 9D 21 27 D8 0B 12 54 13 [17:32:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 CF A7 47 00 FA DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 08 64 02 00 F4 03 04 00 B5 1E 1E 67 B6 04 01 00 00 53 B2 50 DF 88 8B 39 4B [17:32:49]CommunicateWithHost err = 0 [17:32:49]CheckOFDResponse [17:32:49]1017 (14) - 77093643461234 [17:32:49]1041 (16) - 0000000000871792 [17:32:49]1040 (4) - 156680 [17:32:49]1012 (4) - 27.10.2024 11:06 [17:32:49]1206 (1) - 0 [17:32:49]OFD Sender: Remove packet 156680 [17:32:49]ProducePacketName [17:32:49]name=ofd_packets/00156680 [17:32:49]NVStorageDeleteData [17:32:49]Write to MH i2c: 01 00 00 E3 72 55 [17:32:49]Write i2c OK [17:32:49]MH_I2C_Read... [17:32:49]Read from MH i2c: 01 [17:32:49]MH_I2C_Read... [17:32:49]Read from MH i2c: 01 07 00 [17:32:49]MH_I2C_Read... [17:32:49]Read from MH i2c: 01 07 00 E3 72 00 00 00 00 00 D8 0C 40 [17:32:49]RasterBufferAndPrint [17:32:49]line [17:32:49]line [17:32:49]line [17:32:49]line [17:32:49]line [17:32:49]written 0, free lines is 3295 [17:32:49]process_action close_receipt done [17:32:49]requested_data is exist [17:32:49]produce_requested_data [17:32:49]requested_item fm.sn is exist - process it [17:32:49]wFMCommunicate request_size=4 [17:32:49]MH_SAM_APDU [17:32:49]CAPDU: 80 11 00 00 [17:32:49]Write to MH i2c: E2 08 00 EA 72 80 11 00 00 00 00 00 00 D6 [17:32:49]Write i2c OK [17:32:49]MH_I2C_Read... [17:32:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:32:49]Read from MH i2c: E2 [17:32:49]MH_I2C_Read... [17:32:49]Read from MH i2c: E2 17 00 [17:32:49]MH_I2C_Read... [17:32:49]Read from MH i2c: E2 17 00 EA 72 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 2B [17:32:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:32:49]wFMCommunicate OK [17:32:49]requested_item fd.num is exist - process it [17:32:49]SAM_PROTO_GetFieldsCounters [17:32:49]wFMCommunicate request_size=4 [17:32:49]MH_SAM_APDU [17:32:49]CAPDU: 80 13 00 00 [17:32:49]Write to MH i2c: E2 08 00 EB 72 80 13 00 00 00 00 00 00 D9 [17:32:49]Write i2c OK [17:32:49]MH_I2C_Read... [17:32:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:32:49]Read from MH i2c: E2 [17:32:49]MH_I2C_Read... [17:32:49]Read from MH i2c: E2 62 00 [17:32:49]MH_I2C_Read... [17:32:49]Read from MH i2c: E2 62 00 EB 72 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 08 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 3D [17:32:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 08 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:32:49]wFMCommunicate OK [17:32:49]SAM_PROTO_GetFieldsCounters done [17:32:49]requested_item shift.num is exist - process it [17:32:49]requested_item shift.opened is exist - process it [17:32:49]req_shift_opened [17:32:49]FM_GetShiftState [17:32:49]SAM_PROTO_GetShiftState [17:32:49]wFMCommunicate request_size=4 [17:32:49]MH_SAM_APDU [17:32:49]CAPDU: 80 13 01 00 [17:32:49]Write to MH i2c: E2 08 00 EC 72 80 13 01 00 00 00 00 00 DB [17:32:49]Write i2c OK [17:32:49]MH_I2C_Read... [17:32:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:32:49]Read from MH i2c: E2 [17:32:49]MH_I2C_Read... [17:32:49]Read from MH i2c: E2 0E 00 [17:32:49]MH_I2C_Read... [17:32:49]Read from MH i2c: E2 0E 00 EC 72 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 A8 [17:32:49]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [17:32:49]wFMCommunicate OK [17:32:49]SAM_PROTO_GetShiftState done [17:32:49]FM_GetShiftState done [17:32:49]req_shift_opened done [17:32:49]requested_item shift.open_date is exist - process it [17:32:49]req_shift_open_date [17:32:49]req_shift_open_date done [17:32:49]produce_requested_data done [17:32:49]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156680,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [17:32:49]process_action_free close_receipt [17:32:49]json_value_free [17:32:49]json_value_free done [17:32:49]process_json_proto returns [17:32:49]Send response to host [17:32:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156680,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [17:32:49]free response buf [17:32:49]execute_script done [17:32:49]execute_script returns [17:32:49]free content buf [17:32:49]Sock 9.Close socket [17:32:49]Sock 9.Thread stoped [17:32:50]OFD Sender: No OFD packet to send [17:32:55]OFD Sender: No OFD packet to send [17:33:00]OFD Sender: No OFD packet to send [17:33:05]OFD Sender: No OFD packet to send [17:33:10]OFD Sender: No OFD packet to send [17:33:15]OFD Sender: No OFD packet to send [17:33:20]OFD Sender: No OFD packet to send [17:33:25]OFD Sender: No OFD packet to send [17:33:30]OFD Sender: No OFD packet to send [17:33:35]OFD Sender: No OFD packet to send [17:33:40]OFD Sender: No OFD packet to send [17:33:45]OFD Sender: No OFD packet to send [17:33:45]accept exits with 8 [17:33:45]New connection [17:33:45]New thread 3066977636 created [17:33:45]Thread 3066834276 joined [17:33:45]Waiting for new connection... [17:33:45] Sock 8.Parse request [17:33:45]Sock 8.Check first char [17:33:45]Sock 8.First char is OK [17:33:45]request: POST /json_proto HTTP/1.0 [17:33:45]Method: POST [17:33:45]URL: /json_proto [17:33:45]Method is POST - this is cgi request [17:33:45]url: /json_proto [17:33:45]query_string will be loaded in cgi processing [17:33:45]execute_cgi json_proto POST (null) [17:33:45]execute_cgi path=json_proto method=POST [17:33:45]POST find Content-Length [17:33:45]Host: 172.17.63.3:8080 [17:33:45]Content-Length: 677 [17:33:45]Content-Type: application/json [17:33:45] [17:33:45]POST finish read [17:33:45]Found Content-Length = 677 [17:33:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99495", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.220, "sum" : 750.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 750.00, "total" : 750.00, "payments": [ { "type": 0, "sum" : 750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:33:45]execute_script... [17:33: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)99495", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.220, "sum" : 750.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 750.00, "total" : 750.00, "payments": [ { "type": 0, "sum" : 750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:33:45]POST & json_proto [17:33:45]process_json_proto [17:33:45]json parsed OK: [17:33:45]protocol is kg_v1.0 [17:33:45]action value=close_receipt [17:33:45]process_action close_receipt [17:33:45]cmd_close_receipt [17:33:45]MH_GetDate [17:33:45]Write to MH i2c: F0 00 00 ED 72 4E [17:33:45]Write i2c OK [17:33:45]MH_I2C_Read... [17:33:45]Read from MH i2c: F0 [17:33:45]MH_I2C_Read... [17:33:45]Read from MH i2c: F0 09 00 [17:33:45]MH_I2C_Read... [17:33:45]Read from MH i2c: F0 09 00 ED 72 00 80 79 1E 67 50 D1 6C 64 C6 [17:33:45]GetLastDocTimeStamp 1730050374 [17:33:45]current date 1730050432 [17:33:45]FM_GetShiftState [17:33:45]SAM_PROTO_GetShiftState [17:33:45]wFMCommunicate request_size=4 [17:33:45]MH_SAM_APDU [17:33:45]CAPDU: 80 13 01 00 [17:33:45]Write to MH i2c: E2 08 00 EE 72 80 13 01 00 00 00 00 00 DD [17:33:45]Write i2c OK [17:33:45]MH_I2C_Read... [17:33:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:33:45]Read from MH i2c: E2 [17:33:45]MH_I2C_Read... [17:33:45]Read from MH i2c: E2 0E 00 [17:33:45]MH_I2C_Read... [17:33:45]Read from MH i2c: E2 0E 00 EE 72 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 AA [17:33:45]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [17:33:45]wFMCommunicate OK [17:33:45]SAM_PROTO_GetShiftState done [17:33:45]FM_GetShiftState done [17:33:45]opened in 1729989044 [17:33:45]opened+sec_in_day 1730075444 [17:33:45]quantity*price = 75061 [17:33:45]sum+1 = 75063 [17:33:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 750.00 Внесено: 750.00 СДАЧА: 0.00 НСП 1% : 6.64 НДС 12% : 79.71 Наличными: 750.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 232 27.10.2024 17:33 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156681 ФПД: 79569066125512 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T173352&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156681&fm=79569066125512&tin=02508201610067®Number=0000000000091693&sum=75000 [17:33:46]StoreToDocumentArchive [17:33:46]shift 537 fd 156681 [17:33:46]save to /storage/0537/doc_00156681 [17:33:46]save last doc name /storage/0537/doc_00156681 to /storage/kkm_last_doc_name [17:33:46]save OK [17:33:46]Clear old archive folders... [17:33:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:33:46]tlvbuf is 017AB640 [17:33:46]SAM_PROTO_ClearQueue [17:33:46]wFMCommunicate request_size=4 [17:33:46]MH_SAM_APDU [17:33:46]CAPDU: 80 09 00 00 [17:33:46]Write to MH i2c: E2 08 00 FB 72 80 09 00 00 00 00 00 00 DF [17:33:46]Write i2c OK [17:33:46]MH_I2C_Read... [17:33:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:33:46]Read from MH i2c: E2 [17:33:46]MH_I2C_Read... [17:33:46]Read from MH i2c: E2 03 00 [17:33:46]MH_I2C_Read... [17:33:46]Read from MH i2c: E2 03 00 FB 72 00 90 00 E1 [17:33:46]RAPDU: 90 00 [17:33:46]wFMCommunicate OK [17:33:46]SAM_PROTO_ClearQueue done [17:33:46]KKMCreateOFDPacket [17:33:46]OFDProtocolAddRootSTLVToBuf [17:33:46]FM_MakeSignedData [17:33:46]FM_MakeSignedData [17:33:46]SAM_PROTO_SignData [17:33:46]wFMCommunicate request_size=4 [17:33:46]MH_SAM_APDU [17:33:46]CAPDU: 80 0D 01 02 [17:33:46]Write to MH i2c: E2 08 00 FC 72 80 0D 01 02 00 00 00 00 E7 [17:33:46]Write i2c OK [17:33:46]MH_I2C_Read... [17:33:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:33:46]Read from MH i2c: E2 [17:33:46]MH_I2C_Read... [17:33:46]Read from MH i2c: E2 03 00 [17:33:46]MH_I2C_Read... [17:33:46]Read from MH i2c: E2 03 00 FC 72 00 90 00 E2 [17:33:46]RAPDU: 90 00 [17:33:46]wFMCommunicate OK [17:33:46]wFMCommunicate request_size=255 [17:33:46]MH_SAM_APDU [17:33: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 D4 2B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 80 79 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 09 64 02 00 35 04 06 00 48 [17:33:46]Write to MH i2c: E2 02 01 FD 72 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 2B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 80 79 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 09 64 02 00 35 04 06 00 48 00 00 DB [17:33:46]Write i2c OK [17:33:46]MH_I2C_Read... [17:33:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:33:46]Read from MH i2c: E2 [17:33:46]MH_I2C_Read... [17:33:46]Read from MH i2c: E2 03 00 [17:33:46]MH_I2C_Read... [17:33:46]Read from MH i2c: E2 03 00 FD 72 00 90 00 E3 [17:33:46]RAPDU: 90 00 [17:33:46]wFMCommunicate OK [17:33:46]wFMCommunicate request_size=10 [17:33:46]MH_SAM_APDU [17:33:46]CAPDU: 80 0D 02 02 05 5E 1D EB E8 C8 [17:33:46]Write to MH i2c: E2 0D 00 FE 72 80 0D 02 02 05 00 5E 1D EB E8 C8 00 00 0A [17:33:46]Write i2c OK [17:33:46]MH_I2C_Read... [17:33:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:33:46]Read from MH i2c: E2 [17:33:46]MH_I2C_Read... [17:33:46]Read from MH i2c: E2 03 00 [17:33:46]MH_I2C_Read... [17:33:46]Read from MH i2c: E2 03 00 FE 72 00 90 00 E4 [17:33:46]RAPDU: 90 00 [17:33:46]wFMCommunicate OK [17:33:46]wFMCommunicate request_size=4 [17:33:46]MH_SAM_APDU [17:33:46]CAPDU: 80 0D 03 02 [17:33:46]Write to MH i2c: E2 08 00 FF 72 80 0D 03 02 00 00 00 00 EC [17:33:46]Write i2c OK [17:33:46]MH_I2C_Read... [17:33:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:33:47]Read from MH i2c: E2 [17:33:47]MH_I2C_Read... [17:33:47]Read from MH i2c: E2 0B 00 [17:33:47]MH_I2C_Read... [17:33:47]Read from MH i2c: E2 0B 00 FF 72 00 B9 4A AA 5F 16 8E DF 4C 90 00 C8 [17:33:47]RAPDU: B9 4A AA 5F 16 8E DF 4C 90 00 [17:33:47]wFMCommunicate OK [17:33:47]SAM_PROTO_SignData done [17:33:47]FM_MakeSignedData done [17:33:47]CreateOFDProtocolMessage [17:33:47]wFMCommunicate request_size=4 [17:33:47]MH_SAM_APDU [17:33:47]CAPDU: 80 11 00 00 [17:33:47]Write to MH i2c: E2 08 00 00 73 80 11 00 00 00 00 00 00 ED [17:33:47]Write i2c OK [17:33:47]MH_I2C_Read... [17:33:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:33:47]Read from MH i2c: E2 [17:33:47]MH_I2C_Read... [17:33:47]Read from MH i2c: E2 17 00 [17:33:47]MH_I2C_Read... [17:33:47]Read from MH i2c: E2 17 00 00 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 42 [17:33:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:33:47]wFMCommunicate OK [17:33:47]CreateOFDProtocolMessage done [17:33:47]OFDSenderStorePacket 156681 [17:33:47]StoreOFDPacket docnum=156681 [17:33:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 B7 70 07 01 CF 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 2B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 80 79 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 09 64 02 00 35 04 06 00 48 5E 1D EB E8 C8 B9 4A AA 5F 16 8E DF 4C [17:33:47]CheckFolder [17:33:47]dirname=/storage/ofd_packets [17:33:47]CheckFolder done [17:33:47]ProducePacketName [17:33:47]name=ofd_packets/00156681 [17:33:47]NVStorageSaveData ofd_packets/00156681 [17:33:47]File name is /storage/ofd_packets/00156681 [17:33:47]Write 301 bytes [17:33:47]NVStorageSaveData done [17:33:47]OFDSenderStorePacket done [17:33:47]KKMCreateOFDPacket done [17:33:47]NVStorageSaveData kkm_last_timestamp [17:33:47]File name is /storage/kkm_last_timestamp [17:33:47]Write 4 bytes [17:33:47]NVStorageSaveData done [17:33:47]ExternCall_PrintAddStr [17:33:47]wPrintStart [17:33:47]Write to MH i2c: 01 00 00 01 73 74 [17:33:47]Write i2c OK [17:33:47]MH_I2C_Read... [17:33:47]Read from MH i2c: 01 [17:33:47]MH_I2C_Read... [17:33:47]Read from MH i2c: 01 07 00 [17:33:47]MH_I2C_Read... [17:33:47]Read from MH i2c: 01 07 00 01 73 00 00 00 00 00 FF 0F 89 [17:33:47]RasterBufferAndPrint [17:33:47]line Счет N : (1)99495 [17:33:47]line ИНН: 02508201610067 [17:33:47]line Контрольно-Кассовый Чек [17:33:47]line ПРОДАЖА [17:33:47]line ТРК (МРК, ГНК) : 31 [17:33:47]line Товар: 2710124130 [17:33:47]line Аи-92-К-5 [17:33:47]line 11.220 * 66.90 [17:33:47]line = 750.62 [17:33:47]line НДС 12% НСП 1% [17:33:47]line > о реализуемом товаре [17:33:47]line ОКРУГЛЕНИЕ: -0.62 [17:33:47]line ИТОГО: 750.00 [17:33:47]line Внесено: 750.00 [17:33:47]line СДАЧА: 0.00 [17:33:47]line НСП 1% : 6.64 [17:33:47]line НДС 12% : 79.71 [17:33:47]line Наличными: 750.00 [17:33:47]line Безнал.: 0.00 [17:33:47]line Место: АЗС № 143 "Партнер Нефть" [17:33:47]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [17:33:47]line СНО: Общий режим [17:33:47]line Чек 232 27.10.2024 17:33 [17:33:47]line Смена: 537 ФФД: 1.0 [17:33:47]line ЗНМ: 0300000096 [17:33:47]line РНМ: 0000000000091693 [17:33:47]line Версия ККМ: 001 [17:33:47]line ФМ: 0000000000871792 [17:33:47]line ФД: 156681 [17:33:47]line ФПД: 79569066125512 [17:33:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T173352&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156681&fm=79569066125512&tin=02508201610067®Number=0000000000091693&sum=75000 [17:33:47]OFD Sender: Processing packet 156681 [packets to send 31, broken 30] [17:33:47]ProducePacketName [17:33:47]name=ofd_packets/00156681 [17:33:47]OFD Sender: To server: pG, [17:33:47]CommunicateWithHost lk.salyk.kg:30040 [17:33:47]ConnectInit lk.salyk.kg [17:33:47]written 0, free lines is 4095 [17:33:47]Connected sock=10 [17:33:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 B7 70 07 01 CF 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 2B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 1F 00 00 00 00 07 04 06 00 F8 24 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 80 79 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 09 64 02 00 35 04 06 00 48 5E 1D EB E8 C8 B9 4A AA 5F 16 8E DF 4C [17:33:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 B4 10 47 00 98 DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 09 64 02 00 F4 03 04 00 EF 1E 1E 67 B6 04 01 00 00 A5 0A BD 40 86 FF B4 4D [17:33:47]CommunicateWithHost err = 0 [17:33:47]CheckOFDResponse [17:33:47]1017 (14) - 77093643461234 [17:33:47]1041 (16) - 0000000000871792 [17:33:47]1040 (4) - 156681 [17:33:47]1012 (4) - 27.10.2024 11:07 [17:33:47]1206 (1) - 0 [17:33:47]OFD Sender: Remove packet 156681 [17:33:47]ProducePacketName [17:33:47]name=ofd_packets/00156681 [17:33:47]NVStorageDeleteData [17:33:47]Write to MH i2c: 01 00 00 2C 73 9F [17:33:47]Write i2c OK [17:33:47]MH_I2C_Read... [17:33:47]Read from MH i2c: 01 [17:33:47]MH_I2C_Read... [17:33:47]Read from MH i2c: 01 07 00 [17:33:47]MH_I2C_Read... [17:33:47]Read from MH i2c: 01 07 00 2C 73 00 00 00 00 00 E9 0C 9B [17:33:47]RasterBufferAndPrint [17:33:47]line [17:33:47]line [17:33:47]line [17:33:47]line [17:33:47]line [17:33:47]written 0, free lines is 3311 [17:33:47]process_action close_receipt done [17:33:47]requested_data is exist [17:33:47]produce_requested_data [17:33:47]requested_item fm.sn is exist - process it [17:33:47]wFMCommunicate request_size=4 [17:33:47]MH_SAM_APDU [17:33:47]CAPDU: 80 11 00 00 [17:33:47]Write to MH i2c: E2 08 00 33 73 80 11 00 00 00 00 00 00 20 [17:33:47]Write i2c OK [17:33:47]MH_I2C_Read... [17:33:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:33:47]Read from MH i2c: E2 [17:33:47]MH_I2C_Read... [17:33:47]Read from MH i2c: E2 17 00 [17:33:47]MH_I2C_Read... [17:33:47]Read from MH i2c: E2 17 00 33 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 75 [17:33:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:33:47]wFMCommunicate OK [17:33:47]requested_item fd.num is exist - process it [17:33:47]SAM_PROTO_GetFieldsCounters [17:33:47]wFMCommunicate request_size=4 [17:33:47]MH_SAM_APDU [17:33:47]CAPDU: 80 13 00 00 [17:33:47]Write to MH i2c: E2 08 00 34 73 80 13 00 00 00 00 00 00 23 [17:33:47]Write i2c OK [17:33:47]MH_I2C_Read... [17:33:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:33:48]Read from MH i2c: E2 [17:33:48]MH_I2C_Read... [17:33:48]Read from MH i2c: E2 62 00 [17:33:48]MH_I2C_Read... [17:33:48]Read from MH i2c: E2 62 00 34 73 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 09 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 8B [17:33:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 09 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:33:48]wFMCommunicate OK [17:33:48]SAM_PROTO_GetFieldsCounters done [17:33:48]requested_item shift.num is exist - process it [17:33:48]requested_item shift.opened is exist - process it [17:33:48]req_shift_opened [17:33:48]FM_GetShiftState [17:33:48]SAM_PROTO_GetShiftState [17:33:48]wFMCommunicate request_size=4 [17:33:48]MH_SAM_APDU [17:33:48]CAPDU: 80 13 01 00 [17:33:48]Write to MH i2c: E2 08 00 35 73 80 13 01 00 00 00 00 00 25 [17:33:48]Write i2c OK [17:33:48]MH_I2C_Read... [17:33:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:33:48]Read from MH i2c: E2 [17:33:48]MH_I2C_Read... [17:33:48]Read from MH i2c: E2 0E 00 [17:33:48]MH_I2C_Read... [17:33:48]Read from MH i2c: E2 0E 00 35 73 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 F2 [17:33:48]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [17:33:48]wFMCommunicate OK [17:33:48]SAM_PROTO_GetShiftState done [17:33:48]FM_GetShiftState done [17:33:48]req_shift_opened done [17:33:48]requested_item shift.open_date is exist - process it [17:33:48]req_shift_open_date [17:33:48]req_shift_open_date done [17:33:48]produce_requested_data done [17:33:48]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156681,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [17:33:48]process_action_free close_receipt [17:33:48]json_value_free [17:33:48]json_value_free done [17:33:48]process_json_proto returns [17:33:48]Send response to host [17:33:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156681,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [17:33:48]free response buf [17:33:48]execute_script done [17:33:48]execute_script returns [17:33:48]free content buf [17:33:48]Sock 8.Close socket [17:33:48]Sock 8.Thread stoped [17:33:48]OFD Sender: No OFD packet to send [17:33:53]OFD Sender: No OFD packet to send [17:33:58]OFD Sender: No OFD packet to send [17:34:03]OFD Sender: No OFD packet to send [17:34:08]OFD Sender: No OFD packet to send [17:34:13]OFD Sender: No OFD packet to send [17:34:18]OFD Sender: No OFD packet to send [17:34:23]OFD Sender: No OFD packet to send [17:34:28]OFD Sender: No OFD packet to send [17:34:33]OFD Sender: No OFD packet to send [17:34:38]OFD Sender: No OFD packet to send [17:34:43]OFD Sender: No OFD packet to send [17:34:48]OFD Sender: No OFD packet to send [17:34:53]OFD Sender: No OFD packet to send [17:34:58]OFD Sender: No OFD packet to send [17:35:03]OFD Sender: No OFD packet to send [17:35:08]OFD Sender: No OFD packet to send [17:35:13]OFD Sender: No OFD packet to send [17:35:18]OFD Sender: No OFD packet to send [17:35:23]OFD Sender: No OFD packet to send [17:35:28]OFD Sender: No OFD packet to send [17:35:33]OFD Sender: No OFD packet to send [17:35:38]OFD Sender: No OFD packet to send [17:35:43]OFD Sender: No OFD packet to send [17:35:48]OFD Sender: No OFD packet to send [17:35:53]OFD Sender: No OFD packet to send [17:35:58]OFD Sender: No OFD packet to send [17:36:03]OFD Sender: No OFD packet to send [17:36:08]OFD Sender: No OFD packet to send [17:36:13]OFD Sender: No OFD packet to send [17:36:14]accept exits with 9 [17:36:14]New connection [17:36:14]New thread 3066834276 created [17:36:14]Thread 3066977636 joined [17:36:14]Waiting for new connection... [17:36:14] Sock 9.Parse request [17:36:14]Sock 9.Check first char [17:36:14]Sock 9.First char is OK [17:36:14]request: POST /json_proto HTTP/1.0 [17:36:14]Method: POST [17:36:14]URL: /json_proto [17:36:14]Method is POST - this is cgi request [17:36:14]url: /json_proto [17:36:14]query_string will be loaded in cgi processing [17:36:14]execute_cgi json_proto POST (null) [17:36:14]execute_cgi path=json_proto method=POST [17:36:14]POST find Content-Length [17:36:14]Host: 172.17.63.3:8080 [17:36:14]Content-Length: 677 [17:36:14]Content-Type: application/json [17:36:14] [17:36:14]POST finish read [17:36:14]Found Content-Length = 677 [17:36:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99496", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.020, "sum" : 670.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 670.00, "total" : 670.00, "payments": [ { "type": 0, "sum" : 670.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:36:14]execute_script... [17:36: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)99496", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.020, "sum" : 670.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 670.00, "total" : 670.00, "payments": [ { "type": 0, "sum" : 670.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:36:14]POST & json_proto [17:36:14]process_json_proto [17:36:14]json parsed OK: [17:36:14]protocol is kg_v1.0 [17:36:14]action value=close_receipt [17:36:14]process_action close_receipt [17:36:14]cmd_close_receipt [17:36:14]MH_GetDate [17:36:14]Write to MH i2c: F0 00 00 36 73 98 [17:36:14]Write i2c OK [17:36:14]MH_I2C_Read... [17:36:14]Read from MH i2c: F0 [17:36:14]MH_I2C_Read... [17:36:14]Read from MH i2c: F0 09 00 [17:36:14]MH_I2C_Read... [17:36:14]Read from MH i2c: F0 09 00 36 73 00 15 7A 1E 67 50 D1 6C 64 A6 [17:36:14]GetLastDocTimeStamp 1730050432 [17:36:14]current date 1730050581 [17:36:14]FM_GetShiftState [17:36:14]SAM_PROTO_GetShiftState [17:36:14]wFMCommunicate request_size=4 [17:36:14]MH_SAM_APDU [17:36:14]CAPDU: 80 13 01 00 [17:36:14]Write to MH i2c: E2 08 00 37 73 80 13 01 00 00 00 00 00 27 [17:36:14]Write i2c OK [17:36:14]MH_I2C_Read... [17:36:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:36:14]Read from MH i2c: E2 [17:36:14]MH_I2C_Read... [17:36:14]Read from MH i2c: E2 0E 00 [17:36:14]MH_I2C_Read... [17:36:14]Read from MH i2c: E2 0E 00 37 73 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 F4 [17:36:14]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [17:36:14]wFMCommunicate OK [17:36:14]SAM_PROTO_GetShiftState done [17:36:14]FM_GetShiftState done [17:36:14]opened in 1729989044 [17:36:14]opened+sec_in_day 1730075444 [17:36:14]quantity*price = 67033 [17:36:14]sum+1 = 67035 [17:36:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 670.00 Внесено: 670.00 СДАЧА: 0.00 НСП 1% : 5.93 НДС 12% : 71.19 Наличными: 670.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 233 27.10.2024 17:36 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156682 ФПД: 120504386862642 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T173621&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156682&fm=120504386862642&tin=02508201610067®Number=0000000000091693&sum=67000 [17:36:15]StoreToDocumentArchive [17:36:15]shift 537 fd 156682 [17:36:15]save to /storage/0537/doc_00156682 [17:36:15]save last doc name /storage/0537/doc_00156682 to /storage/kkm_last_doc_name [17:36:15]save OK [17:36:15]Clear old archive folders... [17:36:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:36:15]tlvbuf is 01735BA0 [17:36:15]SAM_PROTO_ClearQueue [17:36:15]wFMCommunicate request_size=4 [17:36:15]MH_SAM_APDU [17:36:15]CAPDU: 80 09 00 00 [17:36:15]Write to MH i2c: E2 08 00 44 73 80 09 00 00 00 00 00 00 29 [17:36:15]Write i2c OK [17:36:15]MH_I2C_Read... [17:36:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:36:15]Read from MH i2c: E2 [17:36:15]MH_I2C_Read... [17:36:15]Read from MH i2c: E2 03 00 [17:36:15]MH_I2C_Read... [17:36:15]Read from MH i2c: E2 03 00 44 73 00 90 00 2B [17:36:15]RAPDU: 90 00 [17:36:15]wFMCommunicate OK [17:36:15]SAM_PROTO_ClearQueue done [17:36:15]KKMCreateOFDPacket [17:36:15]OFDProtocolAddRootSTLVToBuf [17:36:15]FM_MakeSignedData [17:36:15]FM_MakeSignedData [17:36:15]SAM_PROTO_SignData [17:36:15]wFMCommunicate request_size=4 [17:36:15]MH_SAM_APDU [17:36:15]CAPDU: 80 0D 01 02 [17:36:15]Write to MH i2c: E2 08 00 45 73 80 0D 01 02 00 00 00 00 31 [17:36:15]Write i2c OK [17:36:15]MH_I2C_Read... [17:36:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:36:15]Read from MH i2c: E2 [17:36:15]MH_I2C_Read... [17:36:15]Read from MH i2c: E2 03 00 [17:36:15]MH_I2C_Read... [17:36:15]Read from MH i2c: E2 03 00 45 73 00 90 00 2C [17:36:15]RAPDU: 90 00 [17:36:15]wFMCommunicate OK [17:36:15]wFMCommunicate request_size=255 [17:36:15]MH_SAM_APDU [17:36: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 24 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DA 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 15 7A 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0A 64 02 00 35 04 06 00 6D [17:36:15]Write to MH i2c: E2 02 01 46 73 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DA 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 15 7A 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0A 64 02 00 35 04 06 00 6D 00 00 55 [17:36:15]Write i2c OK [17:36:15]MH_I2C_Read... [17:36:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:36:15]Read from MH i2c: E2 [17:36:15]MH_I2C_Read... [17:36:15]Read from MH i2c: E2 03 00 [17:36:15]MH_I2C_Read... [17:36:15]Read from MH i2c: E2 03 00 46 73 00 90 00 2D [17:36:15]RAPDU: 90 00 [17:36:15]wFMCommunicate OK [17:36:15]wFMCommunicate request_size=10 [17:36:15]MH_SAM_APDU [17:36:15]CAPDU: 80 0D 02 02 05 99 1D 2C 3E 32 [17:36:15]Write to MH i2c: E2 0D 00 47 73 80 0D 02 02 05 00 99 1D 2C 3E 32 00 00 90 [17:36:15]Write i2c OK [17:36:15]MH_I2C_Read... [17:36:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:36:15]Read from MH i2c: E2 [17:36:15]MH_I2C_Read... [17:36:15]Read from MH i2c: E2 03 00 [17:36:15]MH_I2C_Read... [17:36:15]Read from MH i2c: E2 03 00 47 73 00 90 00 2E [17:36:15]RAPDU: 90 00 [17:36:15]wFMCommunicate OK [17:36:15]wFMCommunicate request_size=4 [17:36:15]MH_SAM_APDU [17:36:15]CAPDU: 80 0D 03 02 [17:36:15]Write to MH i2c: E2 08 00 48 73 80 0D 03 02 00 00 00 00 36 [17:36:15]Write i2c OK [17:36:15]MH_I2C_Read... [17:36:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:36:15]Read from MH i2c: E2 [17:36:15]MH_I2C_Read... [17:36:15]Read from MH i2c: E2 0B 00 [17:36:15]MH_I2C_Read... [17:36:15]Read from MH i2c: E2 0B 00 48 73 00 E5 45 49 D5 1F 79 31 EE 90 00 36 [17:36:15]RAPDU: E5 45 49 D5 1F 79 31 EE 90 00 [17:36:15]wFMCommunicate OK [17:36:15]SAM_PROTO_SignData done [17:36:15]FM_MakeSignedData done [17:36:15]CreateOFDProtocolMessage [17:36:15]wFMCommunicate request_size=4 [17:36:15]MH_SAM_APDU [17:36:15]CAPDU: 80 11 00 00 [17:36:15]Write to MH i2c: E2 08 00 49 73 80 11 00 00 00 00 00 00 36 [17:36:15]Write i2c OK [17:36:15]MH_I2C_Read... [17:36:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:36:15]Read from MH i2c: E2 [17:36:15]MH_I2C_Read... [17:36:15]Read from MH i2c: E2 17 00 [17:36:15]MH_I2C_Read... [17:36:15]Read from MH i2c: E2 17 00 49 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 8B [17:36:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:36:15]wFMCommunicate OK [17:36:15]CreateOFDProtocolMessage done [17:36:15]OFDSenderStorePacket 156682 [17:36:15]StoreOFDPacket docnum=156682 [17:36:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 9E 0C 07 01 04 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DA 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 15 7A 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0A 64 02 00 35 04 06 00 6D 99 1D 2C 3E 32 E5 45 49 D5 1F 79 31 EE [17:36:15]CheckFolder [17:36:15]dirname=/storage/ofd_packets [17:36:15]CheckFolder done [17:36:15]ProducePacketName [17:36:15]name=ofd_packets/00156682 [17:36:15]NVStorageSaveData ofd_packets/00156682 [17:36:15]File name is /storage/ofd_packets/00156682 [17:36:15]Write 301 bytes [17:36:15]NVStorageSaveData done [17:36:15]OFDSenderStorePacket done [17:36:15]KKMCreateOFDPacket done [17:36:15]NVStorageSaveData kkm_last_timestamp [17:36:15]File name is /storage/kkm_last_timestamp [17:36:15]Write 4 bytes [17:36:15]NVStorageSaveData done [17:36:15]ExternCall_PrintAddStr [17:36:15]wPrintStart [17:36:15]Write to MH i2c: 01 00 00 4A 73 BD [17:36:15]Write i2c OK [17:36:15]MH_I2C_Read... [17:36:15]Read from MH i2c: 01 [17:36:15]MH_I2C_Read... [17:36:15]Read from MH i2c: 01 07 00 [17:36:15]MH_I2C_Read... [17:36:15]Read from MH i2c: 01 07 00 4A 73 00 00 00 00 00 FF 0F D2 [17:36:15]RasterBufferAndPrint [17:36:15]line Счет N : (1)99496 [17:36:15]line ИНН: 02508201610067 [17:36:15]line Контрольно-Кассовый Чек [17:36:15]line ПРОДАЖА [17:36:15]line ТРК (МРК, ГНК) : 31 [17:36:15]line Товар: 2710124130 [17:36:15]line Аи-92-К-5 [17:36:15]line 10.020 * 66.90 [17:36:15]line = 670.34 [17:36:15]line НДС 12% НСП 1% [17:36:15]line > о реализуемом товаре [17:36:15]line ОКРУГЛЕНИЕ: -0.34 [17:36:15]line ИТОГО: 670.00 [17:36:15]line Внесено: 670.00 [17:36:15]line СДАЧА: 0.00 [17:36:15]line НСП 1% : 5.93 [17:36:15]line НДС 12% : 71.19 [17:36:15]line Наличными: 670.00 [17:36:15]line Безнал.: 0.00 [17:36:15]line Место: АЗС № 143 "Партнер Нефть" [17:36:15]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [17:36:15]line СНО: Общий режим [17:36:15]line Чек 233 27.10.2024 17:36 [17:36:15]line Смена: 537 ФФД: 1.0 [17:36:15]line ЗНМ: 0300000096 [17:36:15]line РНМ: 0000000000091693 [17:36:15]line Версия ККМ: 001 [17:36:15]line ФМ: 0000000000871792 [17:36:15]line ФД: 156682 [17:36:15]line ФПД: 120504386862642 [17:36:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T173621&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156682&fm=120504386862642&tin=02508201610067®Number=0000000000091693&sum=67000 [17:36:16]OFD Sender: Processing packet 156682 [packets to send 31, broken 30] [17:36:16]ProducePacketName [17:36:16]name=ofd_packets/00156682 [17:36:16]OFD Sender: To server: pG, [17:36:16]CommunicateWithHost lk.salyk.kg:30040 [17:36:16]ConnectInit lk.salyk.kg [17:36:16]written 0, free lines is 4095 [17:36:16]Connected sock=10 [17:36:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 9E 0C 07 01 04 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 24 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 DA 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 1B 00 00 00 00 07 04 06 00 B8 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 00 00 00 F4 03 04 00 15 7A 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0A 64 02 00 35 04 06 00 6D 99 1D 2C 3E 32 E5 45 49 D5 1F 79 31 EE [17:36:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 56 B3 47 00 57 BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0A 64 02 00 F4 03 04 00 84 1F 1E 67 B6 04 01 00 00 4B 4B E8 34 F2 72 50 CB [17:36:16]CommunicateWithHost err = 0 [17:36:16]CheckOFDResponse [17:36:16]1017 (14) - 77093643461234 [17:36:16]1041 (16) - 0000000000871792 [17:36:16]1040 (4) - 156682 [17:36:16]1012 (4) - 27.10.2024 11:09 [17:36:16]1206 (1) - 0 [17:36:16]OFD Sender: Remove packet 156682 [17:36:16]ProducePacketName [17:36:16]name=ofd_packets/00156682 [17:36:16]NVStorageDeleteData [17:36:16]Write to MH i2c: 01 00 00 75 73 E8 [17:36:16]Write i2c OK [17:36:16]MH_I2C_Read... [17:36:16]Read from MH i2c: 01 [17:36:16]MH_I2C_Read... [17:36:16]Read from MH i2c: 01 07 00 [17:36:16]MH_I2C_Read... [17:36:16]Read from MH i2c: 01 07 00 75 73 00 00 00 00 00 D3 0C CE [17:36:16]RasterBufferAndPrint [17:36:16]line [17:36:16]line [17:36:16]line [17:36:16]line [17:36:16]line [17:36:16]written 0, free lines is 3292 [17:36:16]process_action close_receipt done [17:36:16]requested_data is exist [17:36:16]produce_requested_data [17:36:16]requested_item fm.sn is exist - process it [17:36:16]wFMCommunicate request_size=4 [17:36:16]MH_SAM_APDU [17:36:16]CAPDU: 80 11 00 00 [17:36:16]Write to MH i2c: E2 08 00 7C 73 80 11 00 00 00 00 00 00 69 [17:36:16]Write i2c OK [17:36:16]MH_I2C_Read... [17:36:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:36:16]Read from MH i2c: E2 [17:36:16]MH_I2C_Read... [17:36:16]Read from MH i2c: E2 17 00 [17:36:16]MH_I2C_Read... [17:36:16]Read from MH i2c: E2 17 00 7C 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 BE [17:36:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:36:16]wFMCommunicate OK [17:36:16]requested_item fd.num is exist - process it [17:36:16]SAM_PROTO_GetFieldsCounters [17:36:16]wFMCommunicate request_size=4 [17:36:16]MH_SAM_APDU [17:36:16]CAPDU: 80 13 00 00 [17:36:16]Write to MH i2c: E2 08 00 7D 73 80 13 00 00 00 00 00 00 6C [17:36:16]Write i2c OK [17:36:16]MH_I2C_Read... [17:36:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:36:16]Read from MH i2c: E2 [17:36:16]MH_I2C_Read... [17:36:16]Read from MH i2c: E2 62 00 [17:36:16]MH_I2C_Read... [17:36:16]Read from MH i2c: E2 62 00 7D 73 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 0A 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 D8 [17:36:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 0A 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:36:16]wFMCommunicate OK [17:36:16]SAM_PROTO_GetFieldsCounters done [17:36:16]requested_item shift.num is exist - process it [17:36:16]requested_item shift.opened is exist - process it [17:36:16]req_shift_opened [17:36:16]FM_GetShiftState [17:36:16]SAM_PROTO_GetShiftState [17:36:16]wFMCommunicate request_size=4 [17:36:16]MH_SAM_APDU [17:36:16]CAPDU: 80 13 01 00 [17:36:16]Write to MH i2c: E2 08 00 7E 73 80 13 01 00 00 00 00 00 6E [17:36:16]Write i2c OK [17:36:16]MH_I2C_Read... [17:36:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:36:17]Read from MH i2c: E2 [17:36:17]MH_I2C_Read... [17:36:17]Read from MH i2c: E2 0E 00 [17:36:17]MH_I2C_Read... [17:36:17]Read from MH i2c: E2 0E 00 7E 73 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 3B [17:36:17]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [17:36:17]wFMCommunicate OK [17:36:17]SAM_PROTO_GetShiftState done [17:36:17]FM_GetShiftState done [17:36:17]req_shift_opened done [17:36:17]requested_item shift.open_date is exist - process it [17:36:17]req_shift_open_date [17:36:17]req_shift_open_date done [17:36:17]produce_requested_data done [17:36:17]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156682,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [17:36:17]process_action_free close_receipt [17:36:17]json_value_free [17:36:17]json_value_free done [17:36:17]process_json_proto returns [17:36:17]Send response to host [17:36:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156682,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [17:36:17]free response buf [17:36:17]execute_script done [17:36:17]execute_script returns [17:36:17]free content buf [17:36:17]Sock 9.Close socket [17:36:17]Sock 9.Thread stoped [17:36:17]OFD Sender: No OFD packet to send [17:36:22]OFD Sender: No OFD packet to send [17:36:27]OFD Sender: No OFD packet to send [17:36:32]OFD Sender: No OFD packet to send [17:36:37]OFD Sender: No OFD packet to send [17:36:42]OFD Sender: No OFD packet to send [17:36:47]OFD Sender: No OFD packet to send [17:36:52]OFD Sender: No OFD packet to send [17:36:57]OFD Sender: No OFD packet to send [17:37:00]accept exits with 8 [17:37:00]New connection [17:37:00]New thread 3066977636 created [17:37:00]Thread 3066834276 joined [17:37:00]Waiting for new connection... [17:37:00] Sock 8.Parse request [17:37:00]Sock 8.Check first char [17:37:00]Sock 8.First char is OK [17:37:00]request: POST /json_proto HTTP/1.0 [17:37:00]Method: POST [17:37:00]URL: /json_proto [17:37:00]Method is POST - this is cgi request [17:37:00]url: /json_proto [17:37:00]query_string will be loaded in cgi processing [17:37:00]execute_cgi json_proto POST (null) [17:37:00]execute_cgi path=json_proto method=POST [17:37:00]POST find Content-Length [17:37:00]Host: 172.17.63.3:8080 [17:37:00]Content-Length: 765 [17:37:00]Content-Type: application/json [17:37:00] [17:37:00]POST finish read [17:37:00]Found Content-Length = 765 [17:37:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99497", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:37:00]execute_script... [17:37: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)99497", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:37:00]POST & json_proto [17:37:00]process_json_proto [17:37:00]json parsed OK: [17:37:00]protocol is kg_v1.0 [17:37:00]action value=close_receipt [17:37:00]process_action close_receipt [17:37:00]cmd_close_receipt [17:37:00]MH_GetDate [17:37:00]Write to MH i2c: F0 00 00 7F 73 E1 [17:37:00]Write i2c OK [17:37:00]MH_I2C_Read... [17:37:00]Read from MH i2c: F0 [17:37:00]MH_I2C_Read... [17:37:00]Read from MH i2c: F0 09 00 [17:37:00]MH_I2C_Read... [17:37:00]Read from MH i2c: F0 09 00 7F 73 00 42 7A 1E 67 50 D1 6C 64 1C [17:37:00]GetLastDocTimeStamp 1730050581 [17:37:00]current date 1730050626 [17:37:00]FM_GetShiftState [17:37:00]SAM_PROTO_GetShiftState [17:37:00]wFMCommunicate request_size=4 [17:37:00]MH_SAM_APDU [17:37:00]CAPDU: 80 13 01 00 [17:37:00]Write to MH i2c: E2 08 00 80 73 80 13 01 00 00 00 00 00 70 [17:37:00]Write i2c OK [17:37:00]MH_I2C_Read... [17:37:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:37:00]Read from MH i2c: E2 [17:37:00]MH_I2C_Read... [17:37:00]Read from MH i2c: E2 0E 00 [17:37:00]MH_I2C_Read... [17:37:00]Read from MH i2c: E2 0E 00 80 73 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 3D [17:37:00]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [17:37:00]wFMCommunicate OK [17:37:00]SAM_PROTO_GetShiftState done [17:37:00]FM_GetShiftState done [17:37:00]opened in 1729989044 [17:37:00]opened+sec_in_day 1730075444 [17:37:00]quantity*price = 30038 [17:37:00]sum+1 = 30039 [17:37:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.38 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 0.00 Безнал.: 300.38 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 234 27.10.2024 17:37 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 156683 ФПД: 135062953196644 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T173706&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156683&fm=135062953196644&tin=02508201610067®Number=0000000000091693&sum=30038 [17:37:01]StoreToDocumentArchive [17:37:01]shift 537 fd 156683 [17:37:01]save to /storage/0537/doc_00156683 [17:37:01]save last doc name /storage/0537/doc_00156683 to /storage/kkm_last_doc_name [17:37:01]save OK [17:37:01]Clear old archive folders... [17:37:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:37:01]tlvbuf is 01878B50 [17:37:01]SAM_PROTO_ClearQueue [17:37:01]wFMCommunicate request_size=4 [17:37:01]MH_SAM_APDU [17:37:01]CAPDU: 80 09 00 00 [17:37:01]Write to MH i2c: E2 08 00 8D 73 80 09 00 00 00 00 00 00 72 [17:37:01]Write i2c OK [17:37:01]MH_I2C_Read... [17:37:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:37:01]Read from MH i2c: E2 [17:37:01]MH_I2C_Read... [17:37:01]Read from MH i2c: E2 03 00 [17:37:01]MH_I2C_Read... [17:37:01]Read from MH i2c: E2 03 00 8D 73 00 90 00 74 [17:37:01]RAPDU: 90 00 [17:37:01]wFMCommunicate OK [17:37:01]SAM_PROTO_ClearQueue done [17:37:01]KKMCreateOFDPacket [17:37:01]OFDProtocolAddRootSTLVToBuf [17:37:01]FM_MakeSignedData [17:37:01]FM_MakeSignedData [17:37:01]SAM_PROTO_SignData [17:37:01]wFMCommunicate request_size=4 [17:37:01]MH_SAM_APDU [17:37:01]CAPDU: 80 0D 01 02 [17:37:01]Write to MH i2c: E2 08 00 8E 73 80 0D 01 02 00 00 00 00 7A [17:37:01]Write i2c OK [17:37:01]MH_I2C_Read... [17:37:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:37:01]Read from MH i2c: E2 [17:37:01]MH_I2C_Read... [17:37:01]Read from MH i2c: E2 03 00 [17:37:01]MH_I2C_Read... [17:37:01]Read from MH i2c: E2 03 00 8E 73 00 90 00 75 [17:37:01]RAPDU: 90 00 [17:37:01]wFMCommunicate OK [17:37:01]wFMCommunicate request_size=255 [17:37:01]MH_SAM_APDU [17:37: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 42 7A 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0B 64 02 00 35 04 06 00 7A [17:37:01]Write to MH i2c: E2 02 01 8F 73 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 42 7A 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0B 64 02 00 35 04 06 00 7A 00 00 7F [17:37:01]Write i2c OK [17:37:01]MH_I2C_Read... [17:37:01]Read from MH i2c: E2 [17:37:01]MH_I2C_Read... [17:37:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:37:01]Read from MH i2c: E2 03 00 [17:37:01]MH_I2C_Read... [17:37:01]Read from MH i2c: E2 03 00 8F 73 00 90 00 76 [17:37:01]RAPDU: 90 00 [17:37:01]wFMCommunicate OK [17:37:01]wFMCommunicate request_size=10 [17:37:01]MH_SAM_APDU [17:37:01]CAPDU: 80 0D 02 02 05 D6 CB 58 FC 64 [17:37:01]Write to MH i2c: E2 0D 00 90 73 80 0D 02 02 05 00 D6 CB 58 FC 64 00 00 E0 [17:37:01]Write i2c OK [17:37:01]MH_I2C_Read... [17:37:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:37:01]Read from MH i2c: E2 [17:37:01]MH_I2C_Read... [17:37:01]Read from MH i2c: E2 03 00 [17:37:01]MH_I2C_Read... [17:37:01]Read from MH i2c: E2 03 00 90 73 00 90 00 77 [17:37:01]RAPDU: 90 00 [17:37:01]wFMCommunicate OK [17:37:01]wFMCommunicate request_size=4 [17:37:01]MH_SAM_APDU [17:37:01]CAPDU: 80 0D 03 02 [17:37:01]Write to MH i2c: E2 08 00 91 73 80 0D 03 02 00 00 00 00 7F [17:37:01]Write i2c OK [17:37:01]MH_I2C_Read... [17:37:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:37:01]Read from MH i2c: E2 [17:37:01]MH_I2C_Read... [17:37:01]Read from MH i2c: E2 0B 00 [17:37:01]MH_I2C_Read... [17:37:01]Read from MH i2c: E2 0B 00 91 73 00 3D 85 6D 32 18 6A 24 68 90 00 EF [17:37:01]RAPDU: 3D 85 6D 32 18 6A 24 68 90 00 [17:37:01]wFMCommunicate OK [17:37:01]SAM_PROTO_SignData done [17:37:01]FM_MakeSignedData done [17:37:01]CreateOFDProtocolMessage [17:37:01]wFMCommunicate request_size=4 [17:37:01]MH_SAM_APDU [17:37:01]CAPDU: 80 11 00 00 [17:37:01]Write to MH i2c: E2 08 00 92 73 80 11 00 00 00 00 00 00 7F [17:37:01]Write i2c OK [17:37:01]MH_I2C_Read... [17:37:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:37:01]Read from MH i2c: E2 [17:37:01]MH_I2C_Read... [17:37:01]Read from MH i2c: E2 17 00 [17:37:01]MH_I2C_Read... [17:37:01]Read from MH i2c: E2 17 00 92 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 D4 [17:37:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:37:01]wFMCommunicate OK [17:37:01]CreateOFDProtocolMessage done [17:37:01]OFDSenderStorePacket 156683 [17:37:01]StoreOFDPacket docnum=156683 [17:37:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 17 A8 07 01 AE 21 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 42 7A 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0B 64 02 00 35 04 06 00 7A D6 CB 58 FC 64 3D 85 6D 32 18 6A 24 68 [17:37:01]CheckFolder [17:37:01]dirname=/storage/ofd_packets [17:37:01]CheckFolder done [17:37:01]ProducePacketName [17:37:01]name=ofd_packets/00156683 [17:37:01]NVStorageSaveData ofd_packets/00156683 [17:37:01]File name is /storage/ofd_packets/00156683 [17:37:01]Write 301 bytes [17:37:01]NVStorageSaveData done [17:37:01]OFDSenderStorePacket done [17:37:01]KKMCreateOFDPacket done [17:37:01]NVStorageSaveData kkm_last_timestamp [17:37:01]File name is /storage/kkm_last_timestamp [17:37:01]Write 4 bytes [17:37:01]NVStorageSaveData done [17:37:01]ExternCall_PrintAddStr [17:37:01]wPrintStart [17:37:01]Write to MH i2c: 01 00 00 93 73 06 [17:37:01]Write i2c OK [17:37:01]MH_I2C_Read... [17:37:01]Read from MH i2c: 01 [17:37:01]MH_I2C_Read... [17:37:01]Read from MH i2c: 01 07 00 [17:37:01]MH_I2C_Read... [17:37:01]Read from MH i2c: 01 07 00 93 73 00 00 00 00 00 FF 0F 1B [17:37:01]RasterBufferAndPrint [17:37:01]line Счет N : (1)99497 [17:37:01]line ИНН: 02508201610067 [17:37:01]line Контрольно-Кассовый Чек [17:37:01]line ПРОДАЖА [17:37:01]line ТРК (МРК, ГНК) : 31 [17:37:01]line Товар: 2710124130 [17:37:01]line Аи-92-К-5 [17:37:01]line 4.490 * 66.90 [17:37:01]line = 300.38 [17:37:01]line НДС 12% НСП 1% [17:37:01]line > о реализуемом товаре [17:37:01]line ИТОГО: 300.38 [17:37:01]line НСП 1% : 2.66 [17:37:01]line НДС 12% : 31.90 [17:37:01]line Наличными: 0.00 [17:37:01]line Безнал.: 300.38 [17:37:01]line Место: АЗС № 143 "Партнер Нефть" [17:37:01]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [17:37:01]line СНО: Общий режим [17:37:01]line Чек 234 27.10.2024 17:37 [17:37:01]line Смена: 537 ФФД: 1.0 [17:37:01]line ЗНМ: 0300000096 [17:37:01]line РНМ: 0000000000091693 [17:37:01]line Версия ККМ: 001 [17:37:01]line Платежная система: Mbank [17:37:01]line ФМ: 0000000000871792 [17:37:01]line ФД: 156683 [17:37:01]line ФПД: 135062953196644 [17:37:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T173706&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156683&fm=135062953196644&tin=02508201610067®Number=0000000000091693&sum=30038 [17:37:01]written 0, free lines is 4095 [17:37:01]OFD Sender: Processing packet 156683 [packets to send 31, broken 30] [17:37:01]ProducePacketName [17:37:01]name=ofd_packets/00156683 [17:37:01]OFD Sender: To server: pG, [17:37:01]CommunicateWithHost lk.salyk.kg:30040 [17:37:01]ConnectInit lk.salyk.kg [17:37:01]Connected sock=10 [17:37:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 17 A8 07 01 AE 21 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 42 7A 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0B 64 02 00 35 04 06 00 7A D6 CB 58 FC 64 3D 85 6D 32 18 6A 24 68 [17:37:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 74 08 47 00 F6 51 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0B 64 02 00 F4 03 04 00 B1 1F 1E 67 B6 04 01 00 00 F0 D7 ED 8B B8 89 17 6F [17:37:02]CommunicateWithHost err = 0 [17:37:02]CheckOFDResponse [17:37:02]1017 (14) - 77093643461234 [17:37:02]1041 (16) - 0000000000871792 [17:37:02]1040 (4) - 156683 [17:37:02]1012 (4) - 27.10.2024 11:10 [17:37:02]1206 (1) - 0 [17:37:02]OFD Sender: Remove packet 156683 [17:37:02]ProducePacketName [17:37:02]name=ofd_packets/00156683 [17:37:02]NVStorageDeleteData [17:37:02]Write to MH i2c: 01 00 00 BC 73 2F [17:37:02]Write i2c OK [17:37:02]MH_I2C_Read... [17:37:02]Read from MH i2c: 01 [17:37:02]MH_I2C_Read... [17:37:02]Read from MH i2c: 01 07 00 [17:37:02]MH_I2C_Read... [17:37:02]Read from MH i2c: 01 07 00 BC 73 00 00 00 00 00 13 0D 56 [17:37:02]RasterBufferAndPrint [17:37:02]line [17:37:02]line [17:37:02]line [17:37:02]line [17:37:02]line [17:37:02]written 0, free lines is 3353 [17:37:02]process_action close_receipt done [17:37:02]requested_data is exist [17:37:02]produce_requested_data [17:37:02]requested_item fm.sn is exist - process it [17:37:02]wFMCommunicate request_size=4 [17:37:02]MH_SAM_APDU [17:37:02]CAPDU: 80 11 00 00 [17:37:02]Write to MH i2c: E2 08 00 C3 73 80 11 00 00 00 00 00 00 B0 [17:37:02]Write i2c OK [17:37:02]MH_I2C_Read... [17:37:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:37:02]Read from MH i2c: E2 [17:37:02]MH_I2C_Read... [17:37:02]Read from MH i2c: E2 17 00 [17:37:02]MH_I2C_Read... [17:37:02]Read from MH i2c: E2 17 00 C3 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 05 [17:37:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:37:02]wFMCommunicate OK [17:37:02]requested_item fd.num is exist - process it [17:37:02]SAM_PROTO_GetFieldsCounters [17:37:02]wFMCommunicate request_size=4 [17:37:02]MH_SAM_APDU [17:37:02]CAPDU: 80 13 00 00 [17:37:02]Write to MH i2c: E2 08 00 C4 73 80 13 00 00 00 00 00 00 B3 [17:37:02]Write i2c OK [17:37:02]MH_I2C_Read... [17:37:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:37:02]Read from MH i2c: E2 [17:37:02]MH_I2C_Read... [17:37:02]Read from MH i2c: E2 62 00 [17:37:02]MH_I2C_Read... [17:37:02]Read from MH i2c: E2 62 00 C4 73 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 0B 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 23 [17:37:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 0B 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:37:02]wFMCommunicate OK [17:37:02]SAM_PROTO_GetFieldsCounters done [17:37:02]requested_item shift.num is exist - process it [17:37:02]requested_item shift.opened is exist - process it [17:37:02]req_shift_opened [17:37:02]FM_GetShiftState [17:37:02]SAM_PROTO_GetShiftState [17:37:02]wFMCommunicate request_size=4 [17:37:02]MH_SAM_APDU [17:37:02]CAPDU: 80 13 01 00 [17:37:02]Write to MH i2c: E2 08 00 C5 73 80 13 01 00 00 00 00 00 B5 [17:37:02]Write i2c OK [17:37:02]MH_I2C_Read... [17:37:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:37:02]Read from MH i2c: E2 [17:37:02]MH_I2C_Read... [17:37:02]Read from MH i2c: E2 0E 00 [17:37:02]MH_I2C_Read... [17:37:02]Read from MH i2c: E2 0E 00 C5 73 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 82 [17:37:02]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [17:37:02]wFMCommunicate OK [17:37:02]SAM_PROTO_GetShiftState done [17:37:02]FM_GetShiftState done [17:37:02]req_shift_opened done [17:37:02]requested_item shift.open_date is exist - process it [17:37:02]req_shift_open_date [17:37:02]req_shift_open_date done [17:37:02]produce_requested_data done [17:37:02]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156683,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [17:37:02]process_action_free close_receipt [17:37:02]json_value_free [17:37:02]json_value_free done [17:37:02]process_json_proto returns [17:37:02]Send response to host [17:37:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156683,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [17:37:02]free response buf [17:37:02]execute_script done [17:37:02]execute_script returns [17:37:02]free content buf [17:37:02]Sock 8.Close socket [17:37:02]Sock 8.Thread stoped [17:37:02]OFD Sender: No OFD packet to send [17:37:07]OFD Sender: No OFD packet to send [17:37:12]OFD Sender: No OFD packet to send [17:37:17]OFD Sender: No OFD packet to send [17:37:22]OFD Sender: No OFD packet to send [17:37:27]OFD Sender: No OFD packet to send [17:37:32]OFD Sender: No OFD packet to send [17:37:37]OFD Sender: No OFD packet to send [17:37:42]OFD Sender: No OFD packet to send [17:37:47]OFD Sender: No OFD packet to send [17:37:52]OFD Sender: No OFD packet to send [17:37:57]OFD Sender: No OFD packet to send [17:38:02]OFD Sender: No OFD packet to send [17:38:07]OFD Sender: No OFD packet to send [17:38:12]OFD Sender: No OFD packet to send [17:38:17]OFD Sender: No OFD packet to send [17:38:22]OFD Sender: No OFD packet to send [17:38:27]OFD Sender: No OFD packet to send [17:38:32]OFD Sender: No OFD packet to send [17:38:37]OFD Sender: No OFD packet to send [17:38:42]OFD Sender: No OFD packet to send [17:38:47]OFD Sender: No OFD packet to send [17:38:52]OFD Sender: No OFD packet to send [17:38:57]OFD Sender: No OFD packet to send [17:39:02]OFD Sender: No OFD packet to send [17:39:07]OFD Sender: No OFD packet to send [17:39:12]OFD Sender: No OFD packet to send [17:39:17]OFD Sender: No OFD packet to send [17:39:22]OFD Sender: No OFD packet to send [17:39:27]OFD Sender: No OFD packet to send [17:39:32]OFD Sender: No OFD packet to send [17:39:37]OFD Sender: No OFD packet to send [17:39:42]OFD Sender: No OFD packet to send [17:39:47]OFD Sender: No OFD packet to send [17:39:52]OFD Sender: No OFD packet to send [17:39:57]OFD Sender: No OFD packet to send [17:40:02]OFD Sender: No OFD packet to send [17:40:07]OFD Sender: No OFD packet to send [17:40:12]OFD Sender: No OFD packet to send [17:40:13]accept exits with 9 [17:40:13]New connection [17:40:13]New thread 3066834276 created [17:40:13]Thread 3066977636 joined [17:40:13]Waiting for new connection... [17:40:13] Sock 9.Parse request [17:40:13]Sock 9.Check first char [17:40:13]Sock 9.First char is OK [17:40:13]request: POST /json_proto HTTP/1.0 [17:40:13]Method: POST [17:40:13]URL: /json_proto [17:40:13]Method is POST - this is cgi request [17:40:13]url: /json_proto [17:40:13]query_string will be loaded in cgi processing [17:40:13]execute_cgi json_proto POST (null) [17:40:13]execute_cgi path=json_proto method=POST [17:40:13]POST find Content-Length [17:40:13]Host: 172.17.63.3:8080 [17:40:13]Content-Length: 676 [17:40:13]Content-Type: application/json [17:40:13] [17:40:13]POST finish read [17:40:13]Found Content-Length = 676 [17:40:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99498", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:40:13]execute_script... [17:40: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)99498", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:40:13]POST & json_proto [17:40:13]process_json_proto [17:40:13]json parsed OK: [17:40:13]protocol is kg_v1.0 [17:40:13]action value=close_receipt [17:40:13]process_action close_receipt [17:40:13]cmd_close_receipt [17:40:13]MH_GetDate [17:40:13]Write to MH i2c: F0 00 00 C6 73 28 [17:40:13]Write i2c OK [17:40:13]MH_I2C_Read... [17:40:13]Read from MH i2c: F0 [17:40:13]MH_I2C_Read... [17:40:13]Read from MH i2c: F0 09 00 [17:40:13]MH_I2C_Read... [17:40:13]Read from MH i2c: F0 09 00 C6 73 00 04 7B 1E 67 50 D1 6C 64 26 [17:40:13]GetLastDocTimeStamp 1730050626 [17:40:13]current date 1730050820 [17:40:13]FM_GetShiftState [17:40:13]SAM_PROTO_GetShiftState [17:40:13]wFMCommunicate request_size=4 [17:40:13]MH_SAM_APDU [17:40:13]CAPDU: 80 13 01 00 [17:40:13]Write to MH i2c: E2 08 00 C7 73 80 13 01 00 00 00 00 00 B7 [17:40:13]Write i2c OK [17:40:13]MH_I2C_Read... [17:40:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:40:13]Read from MH i2c: E2 [17:40:13]MH_I2C_Read... [17:40:13]Read from MH i2c: E2 0E 00 [17:40:13]MH_I2C_Read... [17:40:13]Read from MH i2c: E2 0E 00 C7 73 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 84 [17:40:13]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [17:40:13]wFMCommunicate OK [17:40:13]SAM_PROTO_GetShiftState done [17:40:13]FM_GetShiftState done [17:40:13]opened in 1729989044 [17:40:13]opened+sec_in_day 1730075444 [17:40:13]quantity*price = 50041 [17:40:13]sum+1 = 50042 [17:40:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 235 27.10.2024 17:40 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156684 ФПД: 180236315792636 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T174020&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156684&fm=180236315792636&tin=02508201610067®Number=0000000000091693&sum=50000 [17:40:14]StoreToDocumentArchive [17:40:14]shift 537 fd 156684 [17:40:14]save to /storage/0537/doc_00156684 [17:40:14]save last doc name /storage/0537/doc_00156684 to /storage/kkm_last_doc_name [17:40:14]save OK [17:40:14]Clear old archive folders... [17:40:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:40:14]tlvbuf is 0167E890 [17:40:14]SAM_PROTO_ClearQueue [17:40:14]wFMCommunicate request_size=4 [17:40:14]MH_SAM_APDU [17:40:14]CAPDU: 80 09 00 00 [17:40:14]Write to MH i2c: E2 08 00 D4 73 80 09 00 00 00 00 00 00 B9 [17:40:14]Write i2c OK [17:40:14]MH_I2C_Read... [17:40:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:40:14]Read from MH i2c: E2 [17:40:14]MH_I2C_Read... [17:40:14]Read from MH i2c: E2 03 00 [17:40:14]MH_I2C_Read... [17:40:14]Read from MH i2c: E2 03 00 D4 73 00 90 00 BB [17:40:14]RAPDU: 90 00 [17:40:14]wFMCommunicate OK [17:40:14]SAM_PROTO_ClearQueue done [17:40:14]KKMCreateOFDPacket [17:40:14]OFDProtocolAddRootSTLVToBuf [17:40:14]FM_MakeSignedData [17:40:14]FM_MakeSignedData [17:40:14]SAM_PROTO_SignData [17:40:14]wFMCommunicate request_size=4 [17:40:14]MH_SAM_APDU [17:40:14]CAPDU: 80 0D 01 02 [17:40:14]Write to MH i2c: E2 08 00 D5 73 80 0D 01 02 00 00 00 00 C1 [17:40:14]Write i2c OK [17:40:14]MH_I2C_Read... [17:40:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:40:14]Read from MH i2c: E2 [17:40:14]MH_I2C_Read... [17:40:14]Read from MH i2c: E2 03 00 [17:40:14]MH_I2C_Read... [17:40:14]Read from MH i2c: E2 03 00 D5 73 00 90 00 BC [17:40:14]RAPDU: 90 00 [17:40:14]wFMCommunicate OK [17:40:14]wFMCommunicate request_size=255 [17:40:14]MH_SAM_APDU [17:40: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 04 7B 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0C 64 02 00 35 04 06 00 A3 [17:40:14]Write to MH i2c: E2 02 01 D6 73 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 04 7B 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0C 64 02 00 35 04 06 00 A3 00 00 74 [17:40:14]Write i2c OK [17:40:14]MH_I2C_Read... [17:40:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:40:14]Read from MH i2c: E2 [17:40:14]MH_I2C_Read... [17:40:14]Read from MH i2c: E2 03 00 [17:40:14]MH_I2C_Read... [17:40:14]Read from MH i2c: E2 03 00 D6 73 00 90 00 BD [17:40:14]RAPDU: 90 00 [17:40:14]wFMCommunicate OK [17:40:14]wFMCommunicate request_size=10 [17:40:14]MH_SAM_APDU [17:40:14]CAPDU: 80 0D 02 02 05 EC 89 94 14 FC [17:40:14]Write to MH i2c: E2 0D 00 D7 73 80 0D 02 02 05 00 EC 89 94 14 FC 00 00 E7 [17:40:14]Write i2c OK [17:40:14]MH_I2C_Read... [17:40:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:40:15]Read from MH i2c: E2 [17:40:15]MH_I2C_Read... [17:40:15]Read from MH i2c: E2 03 00 [17:40:15]MH_I2C_Read... [17:40:15]Read from MH i2c: E2 03 00 D7 73 00 90 00 BE [17:40:15]RAPDU: 90 00 [17:40:15]wFMCommunicate OK [17:40:15]wFMCommunicate request_size=4 [17:40:15]MH_SAM_APDU [17:40:15]CAPDU: 80 0D 03 02 [17:40:15]Write to MH i2c: E2 08 00 D8 73 80 0D 03 02 00 00 00 00 C6 [17:40:15]Write i2c OK [17:40:15]MH_I2C_Read... [17:40:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:40:15]Read from MH i2c: E2 [17:40:15]MH_I2C_Read... [17:40:15]Read from MH i2c: E2 0B 00 [17:40:15]MH_I2C_Read... [17:40:15]Read from MH i2c: E2 0B 00 D8 73 00 94 1B C0 04 64 EF 0A 91 90 00 28 [17:40:15]RAPDU: 94 1B C0 04 64 EF 0A 91 90 00 [17:40:15]wFMCommunicate OK [17:40:15]SAM_PROTO_SignData done [17:40:15]FM_MakeSignedData done [17:40:15]CreateOFDProtocolMessage [17:40:15]wFMCommunicate request_size=4 [17:40:15]MH_SAM_APDU [17:40:15]CAPDU: 80 11 00 00 [17:40:15]Write to MH i2c: E2 08 00 D9 73 80 11 00 00 00 00 00 00 C6 [17:40:15]Write i2c OK [17:40:15]MH_I2C_Read... [17:40:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:40:15]Read from MH i2c: E2 [17:40:15]MH_I2C_Read... [17:40:15]Read from MH i2c: E2 17 00 [17:40:15]MH_I2C_Read... [17:40:15]Read from MH i2c: E2 17 00 D9 73 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 1B [17:40:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:40:15]wFMCommunicate OK [17:40:15]CreateOFDProtocolMessage done [17:40:15]OFDSenderStorePacket 156684 [17:40:15]StoreOFDPacket docnum=156684 [17:40:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 4F CC 07 01 EB 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 04 7B 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0C 64 02 00 35 04 06 00 A3 EC 89 94 14 FC 94 1B C0 04 64 EF 0A 91 [17:40:15]CheckFolder [17:40:15]dirname=/storage/ofd_packets [17:40:15]CheckFolder done [17:40:15]ProducePacketName [17:40:15]name=ofd_packets/00156684 [17:40:15]NVStorageSaveData ofd_packets/00156684 [17:40:15]File name is /storage/ofd_packets/00156684 [17:40:15]Write 301 bytes [17:40:15]NVStorageSaveData done [17:40:15]OFDSenderStorePacket done [17:40:15]KKMCreateOFDPacket done [17:40:15]NVStorageSaveData kkm_last_timestamp [17:40:15]File name is /storage/kkm_last_timestamp [17:40:15]Write 4 bytes [17:40:15]NVStorageSaveData done [17:40:15]ExternCall_PrintAddStr [17:40:15]wPrintStart [17:40:15]Write to MH i2c: 01 00 00 DA 73 4D [17:40:15]Write i2c OK [17:40:15]MH_I2C_Read... [17:40:15]Read from MH i2c: 01 [17:40:15]MH_I2C_Read... [17:40:15]Read from MH i2c: 01 07 00 [17:40:15]MH_I2C_Read... [17:40:15]Read from MH i2c: 01 07 00 DA 73 00 00 00 00 00 FF 0F 62 [17:40:15]RasterBufferAndPrint [17:40:15]line Счет N : (1)99498 [17:40:15]line ИНН: 02508201610067 [17:40:15]line Контрольно-Кассовый Чек [17:40:15]line ПРОДАЖА [17:40:15]line ТРК (МРК, ГНК) : 31 [17:40:15]line Товар: 2710124130 [17:40:15]line Аи-92-К-5 [17:40:15]line 7.480 * 66.90 [17:40:15]line = 500.41 [17:40:15]line НДС 12% НСП 1% [17:40:15]line > о реализуемом товаре [17:40:15]line ОКРУГЛЕНИЕ: -0.41 [17:40:15]line ИТОГО: 500.00 [17:40:15]line Внесено: 500.00 [17:40:15]line СДАЧА: 0.00 [17:40:15]line НСП 1% : 4.43 [17:40:15]line НДС 12% : 53.14 [17:40:15]line Наличными: 500.00 [17:40:15]line Безнал.: 0.00 [17:40:15]line Место: АЗС № 143 "Партнер Нефть" [17:40:15]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [17:40:15]line СНО: Общий режим [17:40:15]line Чек 235 27.10.2024 17:40 [17:40:15]line Смена: 537 ФФД: 1.0 [17:40:15]line ЗНМ: 0300000096 [17:40:15]line РНМ: 0000000000091693 [17:40:15]line Версия ККМ: 001 [17:40:15]line ФМ: 0000000000871792 [17:40:15]line ФД: 156684 [17:40:15]line ФПД: 180236315792636 [17:40:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T174020&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156684&fm=180236315792636&tin=02508201610067®Number=0000000000091693&sum=50000 [17:40:15]OFD Sender: Processing packet 156684 [packets to send 31, broken 30] [17:40:15]ProducePacketName [17:40:15]name=ofd_packets/00156684 [17:40:15]OFD Sender: To server: pG, [17:40:15]CommunicateWithHost lk.salyk.kg:30040 [17:40:15]ConnectInit lk.salyk.kg [17:40:15]written 0, free lines is 4095 [17:40:15]Connected sock=10 [17:40:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 4F CC 07 01 EB 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 04 7B 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0C 64 02 00 35 04 06 00 A3 EC 89 94 14 FC 94 1B C0 04 64 EF 0A 91 [17:40:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 4C 0F 47 00 2E C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0C 64 02 00 F4 03 04 00 73 20 1E 67 B6 04 01 00 00 44 C9 1D 8C 42 06 FB A3 [17:40:15]CommunicateWithHost err = 0 [17:40:15]CheckOFDResponse [17:40:15]1017 (14) - 77093643461234 [17:40:15]1041 (16) - 0000000000871792 [17:40:15]1040 (4) - 156684 [17:40:15]1012 (4) - 27.10.2024 11:13 [17:40:15]1206 (1) - 0 [17:40:15]OFD Sender: Remove packet 156684 [17:40:15]ProducePacketName [17:40:15]name=ofd_packets/00156684 [17:40:15]NVStorageDeleteData [17:40:15]Write to MH i2c: 01 00 00 05 74 79 [17:40:15]Write i2c OK [17:40:15]MH_I2C_Read... [17:40:15]Read from MH i2c: 01 [17:40:15]MH_I2C_Read... [17:40:15]Read from MH i2c: 01 07 00 [17:40:15]MH_I2C_Read... [17:40:15]Read from MH i2c: 01 07 00 05 74 00 00 00 00 00 D4 0C 60 [17:40:15]RasterBufferAndPrint [17:40:15]line [17:40:15]line [17:40:15]line [17:40:15]line [17:40:15]line [17:40:15]written 0, free lines is 3292 [17:40:15]process_action close_receipt done [17:40:15]requested_data is exist [17:40:15]produce_requested_data [17:40:15]requested_item fm.sn is exist - process it [17:40:15]wFMCommunicate request_size=4 [17:40:15]MH_SAM_APDU [17:40:15]CAPDU: 80 11 00 00 [17:40:15]Write to MH i2c: E2 08 00 0C 74 80 11 00 00 00 00 00 00 FA [17:40:15]Write i2c OK [17:40:15]MH_I2C_Read... [17:40:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:40:15]Read from MH i2c: E2 [17:40:15]MH_I2C_Read... [17:40:15]Read from MH i2c: E2 17 00 [17:40:15]MH_I2C_Read... [17:40:15]Read from MH i2c: E2 17 00 0C 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 4F [17:40:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:40:15]wFMCommunicate OK [17:40:15]requested_item fd.num is exist - process it [17:40:15]SAM_PROTO_GetFieldsCounters [17:40:15]wFMCommunicate request_size=4 [17:40:15]MH_SAM_APDU [17:40:15]CAPDU: 80 13 00 00 [17:40:15]Write to MH i2c: E2 08 00 0D 74 80 13 00 00 00 00 00 00 FD [17:40:15]Write i2c OK [17:40:15]MH_I2C_Read... [17:40:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:40:16]Read from MH i2c: E2 [17:40:16]MH_I2C_Read... [17:40:16]Read from MH i2c: E2 62 00 [17:40:16]MH_I2C_Read... [17:40:16]Read from MH i2c: E2 62 00 0D 74 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 0C 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 71 [17:40:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 0C 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:40:16]wFMCommunicate OK [17:40:16]SAM_PROTO_GetFieldsCounters done [17:40:16]requested_item shift.num is exist - process it [17:40:16]requested_item shift.opened is exist - process it [17:40:16]req_shift_opened [17:40:16]FM_GetShiftState [17:40:16]SAM_PROTO_GetShiftState [17:40:16]wFMCommunicate request_size=4 [17:40:16]MH_SAM_APDU [17:40:16]CAPDU: 80 13 01 00 [17:40:16]Write to MH i2c: E2 08 00 0E 74 80 13 01 00 00 00 00 00 FF [17:40:16]Write i2c OK [17:40:16]MH_I2C_Read... [17:40:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:40:16]Read from MH i2c: E2 [17:40:16]MH_I2C_Read... [17:40:16]Read from MH i2c: E2 0E 00 [17:40:16]MH_I2C_Read... [17:40:16]Read from MH i2c: E2 0E 00 0E 74 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 CC [17:40:16]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [17:40:16]wFMCommunicate OK [17:40:16]SAM_PROTO_GetShiftState done [17:40:16]FM_GetShiftState done [17:40:16]req_shift_opened done [17:40:16]requested_item shift.open_date is exist - process it [17:40:16]req_shift_open_date [17:40:16]req_shift_open_date done [17:40:16]produce_requested_data done [17:40:16]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156684,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [17:40:16]process_action_free close_receipt [17:40:16]json_value_free [17:40:16]json_value_free done [17:40:16]process_json_proto returns [17:40:16]Send response to host [17:40:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156684,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [17:40:16]free response buf [17:40:16]execute_script done [17:40:16]execute_script returns [17:40:16]free content buf [17:40:16]Sock 9.Close socket [17:40:16]Sock 9.Thread stoped [17:40:16]OFD Sender: No OFD packet to send [17:40:21]OFD Sender: No OFD packet to send [17:40:26]OFD Sender: No OFD packet to send [17:40:31]OFD Sender: No OFD packet to send [17:40:36]OFD Sender: No OFD packet to send [17:40:41]OFD Sender: No OFD packet to send [17:40:46]OFD Sender: No OFD packet to send [17:40:51]OFD Sender: No OFD packet to send [17:40:56]OFD Sender: No OFD packet to send [17:41:01]OFD Sender: No OFD packet to send [17:41:06]OFD Sender: No OFD packet to send [17:41:11]OFD Sender: No OFD packet to send [17:41:16]OFD Sender: No OFD packet to send [17:41:21]OFD Sender: No OFD packet to send [17:41:26]OFD Sender: No OFD packet to send [17:41:31]OFD Sender: No OFD packet to send [17:41:36]OFD Sender: No OFD packet to send [17:41:41]OFD Sender: No OFD packet to send [17:41:44]accept exits with 8 [17:41:44]New connection [17:41:44]New thread 3066977636 created [17:41:44]Thread 3066834276 joined [17:41:44]Waiting for new connection... [17:41:44] Sock 8.Parse request [17:41:44]Sock 8.Check first char [17:41:44]Sock 8.First char is OK [17:41:44]request: POST /json_proto HTTP/1.0 [17:41:44]Method: POST [17:41:44]URL: /json_proto [17:41:44]Method is POST - this is cgi request [17:41:44]url: /json_proto [17:41:44]query_string will be loaded in cgi processing [17:41:44]execute_cgi json_proto POST (null) [17:41:44]execute_cgi path=json_proto method=POST [17:41:44]POST find Content-Length [17:41:44]Host: 172.17.63.3:8080 [17:41:44]Content-Length: 676 [17:41:44]Content-Type: application/json [17:41:44] [17:41:44]POST finish read [17:41:44]Found Content-Length = 676 [17:41:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99499", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:41:44]execute_script... [17:41: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)99499", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:41:44]POST & json_proto [17:41:44]process_json_proto [17:41:44]json parsed OK: [17:41:44]protocol is kg_v1.0 [17:41:44]action value=close_receipt [17:41:44]process_action close_receipt [17:41:44]cmd_close_receipt [17:41:44]MH_GetDate [17:41:44]Write to MH i2c: F0 00 00 0F 74 72 [17:41:44]Write i2c OK [17:41:44]MH_I2C_Read... [17:41:44]Read from MH i2c: F0 [17:41:44]MH_I2C_Read... [17:41:44]Read from MH i2c: F0 09 00 [17:41:44]MH_I2C_Read... [17:41:44]Read from MH i2c: F0 09 00 0F 74 00 5F 7B 1E 67 50 D1 6C 64 CB [17:41:44]GetLastDocTimeStamp 1730050820 [17:41:44]current date 1730050911 [17:41:44]FM_GetShiftState [17:41:44]SAM_PROTO_GetShiftState [17:41:44]wFMCommunicate request_size=4 [17:41:44]MH_SAM_APDU [17:41:44]CAPDU: 80 13 01 00 [17:41:44]Write to MH i2c: E2 08 00 10 74 80 13 01 00 00 00 00 00 01 [17:41:44]Write i2c OK [17:41:44]MH_I2C_Read... [17:41:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:41:45]Read from MH i2c: E2 [17:41:45]MH_I2C_Read... [17:41:45]Read from MH i2c: E2 0E 00 [17:41:45]MH_I2C_Read... [17:41:45]Read from MH i2c: E2 0E 00 10 74 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 CE [17:41:45]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [17:41:45]wFMCommunicate OK [17:41:45]SAM_PROTO_GetShiftState done [17:41:45]FM_GetShiftState done [17:41:45]opened in 1729989044 [17:41:45]opened+sec_in_day 1730075444 [17:41:45]quantity*price = 40006 [17:41:45]sum+1 = 40007 [17:41:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 236 27.10.2024 17:41 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156685 ФПД: 66295105278590 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T174151&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156685&fm=66295105278590&tin=02508201610067®Number=0000000000091693&sum=40000 [17:41:46]StoreToDocumentArchive [17:41:46]shift 537 fd 156685 [17:41:46]save to /storage/0537/doc_00156685 [17:41:46]save last doc name /storage/0537/doc_00156685 to /storage/kkm_last_doc_name [17:41:46]save OK [17:41:46]Clear old archive folders... [17:41:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:41:46]tlvbuf is 01806FE0 [17:41:46]SAM_PROTO_ClearQueue [17:41:46]wFMCommunicate request_size=4 [17:41:46]MH_SAM_APDU [17:41:46]CAPDU: 80 09 00 00 [17:41:46]Write to MH i2c: E2 08 00 1D 74 80 09 00 00 00 00 00 00 03 [17:41:46]Write i2c OK [17:41:46]MH_I2C_Read... [17:41:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:41:46]Read from MH i2c: E2 [17:41:46]MH_I2C_Read... [17:41:46]Read from MH i2c: E2 03 00 [17:41:46]MH_I2C_Read... [17:41:46]Read from MH i2c: E2 03 00 1D 74 00 90 00 05 [17:41:46]RAPDU: 90 00 [17:41:46]wFMCommunicate OK [17:41:46]SAM_PROTO_ClearQueue done [17:41:46]KKMCreateOFDPacket [17:41:46]OFDProtocolAddRootSTLVToBuf [17:41:46]FM_MakeSignedData [17:41:46]FM_MakeSignedData [17:41:46]SAM_PROTO_SignData [17:41:46]wFMCommunicate request_size=4 [17:41:46]MH_SAM_APDU [17:41:46]CAPDU: 80 0D 01 02 [17:41:46]Write to MH i2c: E2 08 00 1E 74 80 0D 01 02 00 00 00 00 0B [17:41:46]Write i2c OK [17:41:46]MH_I2C_Read... [17:41:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:41:46]Read from MH i2c: E2 [17:41:46]MH_I2C_Read... [17:41:46]Read from MH i2c: E2 03 00 [17:41:46]MH_I2C_Read... [17:41:46]Read from MH i2c: E2 03 00 1E 74 00 90 00 06 [17:41:46]RAPDU: 90 00 [17:41:46]wFMCommunicate OK [17:41:46]wFMCommunicate request_size=255 [17:41:46]MH_SAM_APDU [17:41: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 5F 7B 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0D 64 02 00 35 04 06 00 3C [17:41:46]Write to MH i2c: E2 02 01 1F 74 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 5F 7B 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0D 64 02 00 35 04 06 00 3C 00 00 83 [17:41:46]Write i2c OK [17:41:46]MH_I2C_Read... [17:41:46]OFD Sender: No OFD packet to send [17:41:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:41:46]Read from MH i2c: E2 [17:41:46]MH_I2C_Read... [17:41:46]Read from MH i2c: E2 03 00 [17:41:46]MH_I2C_Read... [17:41:46]Read from MH i2c: E2 03 00 1F 74 00 90 00 07 [17:41:46]RAPDU: 90 00 [17:41:46]wFMCommunicate OK [17:41:46]wFMCommunicate request_size=10 [17:41:46]MH_SAM_APDU [17:41:46]CAPDU: 80 0D 02 02 05 4B 88 33 52 7E [17:41:46]Write to MH i2c: E2 0D 00 20 74 80 0D 02 02 05 00 4B 88 33 52 7E 00 00 EE [17:41:46]Write i2c OK [17:41:46]MH_I2C_Read... [17:41:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:41:46]Read from MH i2c: E2 [17:41:46]MH_I2C_Read... [17:41:46]Read from MH i2c: E2 03 00 [17:41:46]MH_I2C_Read... [17:41:46]Read from MH i2c: E2 03 00 20 74 00 90 00 08 [17:41:46]RAPDU: 90 00 [17:41:46]wFMCommunicate OK [17:41:46]wFMCommunicate request_size=4 [17:41:46]MH_SAM_APDU [17:41:46]CAPDU: 80 0D 03 02 [17:41:46]Write to MH i2c: E2 08 00 21 74 80 0D 03 02 00 00 00 00 10 [17:41:46]Write i2c OK [17:41:46]MH_I2C_Read... [17:41:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:41:46]Read from MH i2c: E2 [17:41:46]MH_I2C_Read... [17:41:46]Read from MH i2c: E2 0B 00 [17:41:46]MH_I2C_Read... [17:41:46]Read from MH i2c: E2 0B 00 21 74 00 06 67 59 76 05 1A 3D D6 90 00 7F [17:41:46]RAPDU: 06 67 59 76 05 1A 3D D6 90 00 [17:41:46]wFMCommunicate OK [17:41:46]SAM_PROTO_SignData done [17:41:46]FM_MakeSignedData done [17:41:46]CreateOFDProtocolMessage [17:41:46]wFMCommunicate request_size=4 [17:41:46]MH_SAM_APDU [17:41:46]CAPDU: 80 11 00 00 [17:41:46]Write to MH i2c: E2 08 00 22 74 80 11 00 00 00 00 00 00 10 [17:41:46]Write i2c OK [17:41:46]MH_I2C_Read... [17:41:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:41:46]Read from MH i2c: E2 [17:41:46]MH_I2C_Read... [17:41:46]Read from MH i2c: E2 17 00 [17:41:46]MH_I2C_Read... [17:41:46]Read from MH i2c: E2 17 00 22 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 65 [17:41:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:41:46]wFMCommunicate OK [17:41:46]CreateOFDProtocolMessage done [17:41:46]OFDSenderStorePacket 156685 [17:41:46]StoreOFDPacket docnum=156685 [17:41:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 8A 1D 07 01 D6 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 5F 7B 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0D 64 02 00 35 04 06 00 3C 4B 88 33 52 7E 06 67 59 76 05 1A 3D D6 [17:41:46]CheckFolder [17:41:46]dirname=/storage/ofd_packets [17:41:46]CheckFolder done [17:41:46]ProducePacketName [17:41:46]name=ofd_packets/00156685 [17:41:46]NVStorageSaveData ofd_packets/00156685 [17:41:46]File name is /storage/ofd_packets/00156685 [17:41:46]Write 301 bytes [17:41:46]NVStorageSaveData done [17:41:46]OFDSenderStorePacket done [17:41:46]KKMCreateOFDPacket done [17:41:46]NVStorageSaveData kkm_last_timestamp [17:41:46]File name is /storage/kkm_last_timestamp [17:41:46]Write 4 bytes [17:41:46]NVStorageSaveData done [17:41:46]ExternCall_PrintAddStr [17:41:46]wPrintStart [17:41:46]Write to MH i2c: 01 00 00 23 74 97 [17:41:46]Write i2c OK [17:41:46]MH_I2C_Read... [17:41:46]Read from MH i2c: 01 [17:41:46]MH_I2C_Read... [17:41:46]Read from MH i2c: 01 07 00 [17:41:46]MH_I2C_Read... [17:41:46]Read from MH i2c: 01 07 00 23 74 00 00 00 00 00 FF 0F AC [17:41:46]RasterBufferAndPrint [17:41:46]line Счет N : (1)99499 [17:41:46]line ИНН: 02508201610067 [17:41:46]line Контрольно-Кассовый Чек [17:41:46]line ПРОДАЖА [17:41:46]line ТРК (МРК, ГНК) : 31 [17:41:46]line Товар: 2710124130 [17:41:46]line Аи-92-К-5 [17:41:46]line 5.980 * 66.90 [17:41:46]line = 400.06 [17:41:46]line НДС 12% НСП 1% [17:41:46]line > о реализуемом товаре [17:41:46]line ОКРУГЛЕНИЕ: -0.06 [17:41:46]line ИТОГО: 400.00 [17:41:46]line Внесено: 400.00 [17:41:46]line СДАЧА: 0.00 [17:41:46]line НСП 1% : 3.54 [17:41:46]line НДС 12% : 42.48 [17:41:46]line Наличными: 400.00 [17:41:46]line Безнал.: 0.00 [17:41:46]line Место: АЗС № 143 "Партнер Нефть" [17:41:46]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [17:41:46]line СНО: Общий режим [17:41:46]line Чек 236 27.10.2024 17:41 [17:41:46]line Смена: 537 ФФД: 1.0 [17:41:46]line ЗНМ: 0300000096 [17:41:46]line РНМ: 0000000000091693 [17:41:46]line Версия ККМ: 001 [17:41:46]line ФМ: 0000000000871792 [17:41:46]line ФД: 156685 [17:41:46]line ФПД: 66295105278590 [17:41:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T174151&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156685&fm=66295105278590&tin=02508201610067®Number=0000000000091693&sum=40000 [17:41:46]written 0, free lines is 4095 [17:41:46]OFD Sender: Processing packet 156685 [packets to send 31, broken 30] [17:41:46]ProducePacketName [17:41:46]name=ofd_packets/00156685 [17:41:46]OFD Sender: To server: pG, [17:41:47]CommunicateWithHost lk.salyk.kg:30040 [17:41:47]ConnectInit lk.salyk.kg [17:41:47]Connected sock=10 [17:41:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 8A 1D 07 01 D6 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 00 00 00 F4 03 04 00 5F 7B 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0D 64 02 00 35 04 06 00 3C 4B 88 33 52 7E 06 67 59 76 05 1A 3D D6 [17:41:47]Write to MH i2c: 01 00 00 4E 74 C2 [17:41:47]Write i2c OK [17:41:47]MH_I2C_Read... [17:41:47]Read from MH i2c: 01 [17:41:47]MH_I2C_Read... [17:41:47]Read from MH i2c: 01 07 00 [17:41:47]MH_I2C_Read... [17:41:47]Read from MH i2c: 01 07 00 4E 74 00 00 00 00 00 E0 0C B5 [17:41:47]RasterBufferAndPrint [17:41:47]line [17:41:47]line [17:41:47]line [17:41:47]line [17:41:47]line [17:41:47]written 0, free lines is 3302 [17:41:47]process_action close_receipt done [17:41:47]requested_data is exist [17:41:47]produce_requested_data [17:41:47]requested_item fm.sn is exist - process it [17:41:47]wFMCommunicate request_size=4 [17:41:47]MH_SAM_APDU [17:41:47]CAPDU: 80 11 00 00 [17:41:47]Write to MH i2c: E2 08 00 55 74 80 11 00 00 00 00 00 00 43 [17:41:47]Write i2c OK [17:41:47]MH_I2C_Read... [17:41:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:41:47]Read from MH i2c: E2 [17:41:47]MH_I2C_Read... [17:41:47]Read from MH i2c: E2 17 00 [17:41:47]MH_I2C_Read... [17:41:47]Read from MH i2c: E2 17 00 55 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 98 [17:41:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:41:47]wFMCommunicate OK [17:41:47]requested_item fd.num is exist - process it [17:41:47]SAM_PROTO_GetFieldsCounters [17:41:47]wFMCommunicate request_size=4 [17:41:47]MH_SAM_APDU [17:41:47]CAPDU: 80 13 00 00 [17:41:47]Write to MH i2c: E2 08 00 56 74 80 13 00 00 00 00 00 00 46 [17:41:47]Write i2c OK [17:41:47]MH_I2C_Read... [17:41:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:41:47]Read from MH i2c: E2 [17:41:47]MH_I2C_Read... [17:41:47]Read from MH i2c: E2 62 00 [17:41:47]MH_I2C_Read... [17:41:47]Read from MH i2c: E2 62 00 56 74 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 0D 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 BE [17:41:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 0D 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:41:47]wFMCommunicate OK [17:41:47]SAM_PROTO_GetFieldsCounters done [17:41:47]requested_item shift.num is exist - process it [17:41:47]requested_item shift.opened is exist - process it [17:41:47]req_shift_opened [17:41:47]FM_GetShiftState [17:41:47]SAM_PROTO_GetShiftState [17:41:47]wFMCommunicate request_size=4 [17:41:47]MH_SAM_APDU [17:41:47]CAPDU: 80 13 01 00 [17:41:47]Write to MH i2c: E2 08 00 57 74 80 13 01 00 00 00 00 00 48 [17:41:47]Write i2c OK [17:41:47]MH_I2C_Read... [17:41:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 AA 6E 47 00 79 C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0D 64 02 00 F4 03 04 00 CE 20 1E 67 B6 04 01 00 00 13 52 90 FD AA DC 2D ED [17:41:47]CommunicateWithHost err = 0 [17:41:47]CheckOFDResponse [17:41:47]1017 (14) - 77093643461234 [17:41:47]1041 (16) - 0000000000871792 [17:41:47]1040 (4) - 156685 [17:41:47]1012 (4) - 27.10.2024 11:15 [17:41:47]1206 (1) - 0 [17:41:47]OFD Sender: Remove packet 156685 [17:41:47]ProducePacketName [17:41:47]name=ofd_packets/00156685 [17:41:47]NVStorageDeleteData [17:41:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:41:47]Read from MH i2c: E2 [17:41:47]MH_I2C_Read... [17:41:47]Read from MH i2c: E2 0E 00 [17:41:47]MH_I2C_Read... [17:41:47]Read from MH i2c: E2 0E 00 57 74 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 15 [17:41:47]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [17:41:47]wFMCommunicate OK [17:41:47]SAM_PROTO_GetShiftState done [17:41:47]FM_GetShiftState done [17:41:47]req_shift_opened done [17:41:47]requested_item shift.open_date is exist - process it [17:41:47]req_shift_open_date [17:41:47]req_shift_open_date done [17:41:47]produce_requested_data done [17:41:47]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156685,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [17:41:47]process_action_free close_receipt [17:41:47]json_value_free [17:41:47]json_value_free done [17:41:47]process_json_proto returns [17:41:47]Send response to host [17:41:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156685,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [17:41:47]free response buf [17:41:47]execute_script done [17:41:47]execute_script returns [17:41:47]free content buf [17:41:47]Sock 8.Close socket [17:41:47]Sock 8.Thread stoped [17:41:47]OFD Sender: No OFD packet to send [17:41:52]OFD Sender: No OFD packet to send [17:41:57]OFD Sender: No OFD packet to send [17:42:02]OFD Sender: No OFD packet to send [17:42:07]OFD Sender: No OFD packet to send [17:42:12]OFD Sender: No OFD packet to send [17:42:13]accept exits with 9 [17:42:13]New connection [17:42:13]New thread 3066834276 created [17:42:13]Thread 3066977636 joined [17:42:13]Waiting for new connection... [17:42:13] Sock 9.Parse request [17:42:13]Sock 9.Check first char [17:42:13]Sock 9.First char is OK [17:42:13]request: POST /json_proto HTTP/1.0 [17:42:13]Method: POST [17:42:13]URL: /json_proto [17:42:13]Method is POST - this is cgi request [17:42:13]url: /json_proto [17:42:13]query_string will be loaded in cgi processing [17:42:13]execute_cgi json_proto POST (null) [17:42:13]execute_cgi path=json_proto method=POST [17:42:13]POST find Content-Length [17:42:13]Host: 172.17.63.3:8080 [17:42:13]Content-Length: 673 [17:42:13]Content-Type: application/json [17:42:13] [17:42:13]POST finish read [17:42:13]Found Content-Length = 673 [17:42:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99500", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 3.290, "sum" : 250.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:42:13]execute_script... [17:42: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)99500", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 3.290, "sum" : 250.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:42:13]POST & json_proto [17:42:13]process_json_proto [17:42:13]json parsed OK: [17:42:13]protocol is kg_v1.0 [17:42:13]action value=close_receipt [17:42:13]process_action close_receipt [17:42:13]cmd_close_receipt [17:42:13]MH_GetDate [17:42:13]Write to MH i2c: F0 00 00 58 74 BB [17:42:13]Write i2c OK [17:42:13]MH_I2C_Read... [17:42:13]Read from MH i2c: F0 [17:42:13]MH_I2C_Read... [17:42:13]Read from MH i2c: F0 09 00 [17:42:13]MH_I2C_Read... [17:42:13]Read from MH i2c: F0 09 00 58 74 00 7C 7B 1E 67 50 D1 6C 64 31 [17:42:13]GetLastDocTimeStamp 1730050911 [17:42:13]current date 1730050940 [17:42:13]FM_GetShiftState [17:42:13]SAM_PROTO_GetShiftState [17:42:13]wFMCommunicate request_size=4 [17:42:13]MH_SAM_APDU [17:42:13]CAPDU: 80 13 01 00 [17:42:13]Write to MH i2c: E2 08 00 59 74 80 13 01 00 00 00 00 00 4A [17:42:13]Write i2c OK [17:42:13]MH_I2C_Read... [17:42:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:42:13]Read from MH i2c: E2 [17:42:13]MH_I2C_Read... [17:42:13]Read from MH i2c: E2 0E 00 [17:42:13]MH_I2C_Read... [17:42:13]Read from MH i2c: E2 0E 00 59 74 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 17 [17:42:13]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [17:42:13]wFMCommunicate OK [17:42:13]SAM_PROTO_GetShiftState done [17:42:13]FM_GetShiftState done [17:42:13]opened in 1729989044 [17:42:13]opened+sec_in_day 1730075444 [17:42:13]quantity*price = 25069 [17:42:13]sum+1 = 25071 [17:42:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.70 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.22 НДС 12% : 26.62 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 237 27.10.2024 17:42 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156686 ФПД: 250015798611748 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T174220&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156686&fm=250015798611748&tin=02508201610067®Number=0000000000091693&sum=25000 [17:42:14]StoreToDocumentArchive [17:42:14]shift 537 fd 156686 [17:42:14]save to /storage/0537/doc_00156686 [17:42:14]save last doc name /storage/0537/doc_00156686 to /storage/kkm_last_doc_name [17:42:14]save OK [17:42:14]Clear old archive folders... [17:42:14]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:42:14]tlvbuf is 017358E0 [17:42:14]SAM_PROTO_ClearQueue [17:42:14]wFMCommunicate request_size=4 [17:42:14]MH_SAM_APDU [17:42:14]CAPDU: 80 09 00 00 [17:42:14]Write to MH i2c: E2 08 00 66 74 80 09 00 00 00 00 00 00 4C [17:42:14]Write i2c OK [17:42:14]MH_I2C_Read... [17:42:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:42:14]Read from MH i2c: E2 [17:42:14]MH_I2C_Read... [17:42:14]Read from MH i2c: E2 03 00 [17:42:14]MH_I2C_Read... [17:42:14]Read from MH i2c: E2 03 00 66 74 00 90 00 4E [17:42:14]RAPDU: 90 00 [17:42:14]wFMCommunicate OK [17:42:14]SAM_PROTO_ClearQueue done [17:42:14]KKMCreateOFDPacket [17:42:14]OFDProtocolAddRootSTLVToBuf [17:42:14]FM_MakeSignedData [17:42:14]FM_MakeSignedData [17:42:14]SAM_PROTO_SignData [17:42:14]wFMCommunicate request_size=4 [17:42:14]MH_SAM_APDU [17:42:14]CAPDU: 80 0D 01 02 [17:42:14]Write to MH i2c: E2 08 00 67 74 80 0D 01 02 00 00 00 00 54 [17:42:14]Write i2c OK [17:42:14]MH_I2C_Read... [17:42:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:42:15]Read from MH i2c: E2 [17:42:15]MH_I2C_Read... [17:42:15]Read from MH i2c: E2 03 00 [17:42:15]MH_I2C_Read... [17:42:15]Read from MH i2c: E2 03 00 67 74 00 90 00 4F [17:42:15]RAPDU: 90 00 [17:42:15]wFMCommunicate OK [17:42:15]wFMCommunicate request_size=255 [17:42:15]MH_SAM_APDU [17:42:15]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EE 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 66 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 7C 7B 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0E 64 02 00 35 04 06 00 E3 63 56 DD [17:42:15]Write to MH i2c: E2 02 01 68 74 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EE 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 66 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 7C 7B 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0E 64 02 00 35 04 06 00 E3 63 56 DD 00 00 9D [17:42:15]Write i2c OK [17:42:15]MH_I2C_Read... [17:42:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:42:15]Read from MH i2c: E2 [17:42:15]MH_I2C_Read... [17:42:15]Read from MH i2c: E2 03 00 [17:42:15]MH_I2C_Read... [17:42:15]Read from MH i2c: E2 03 00 68 74 00 90 00 50 [17:42:15]RAPDU: 90 00 [17:42:15]wFMCommunicate OK [17:42:15]wFMCommunicate request_size=7 [17:42:15]MH_SAM_APDU [17:42:15]CAPDU: 80 0D 02 02 02 4F 24 [17:42:15]Write to MH i2c: E2 0A 00 69 74 80 0D 02 02 02 00 4F 24 00 00 CE [17:42:15]Write i2c OK [17:42:15]MH_I2C_Read... [17:42:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:42:15]Read from MH i2c: E2 [17:42:15]MH_I2C_Read... [17:42:15]Read from MH i2c: E2 03 00 [17:42:15]MH_I2C_Read... [17:42:15]Read from MH i2c: E2 03 00 69 74 00 90 00 51 [17:42:15]RAPDU: 90 00 [17:42:15]wFMCommunicate OK [17:42:15]wFMCommunicate request_size=4 [17:42:15]MH_SAM_APDU [17:42:15]CAPDU: 80 0D 03 02 [17:42:15]Write to MH i2c: E2 08 00 6A 74 80 0D 03 02 00 00 00 00 59 [17:42:15]Write i2c OK [17:42:15]MH_I2C_Read... [17:42:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:42:15]Read from MH i2c: E2 [17:42:15]MH_I2C_Read... [17:42:15]Read from MH i2c: E2 0B 00 [17:42:15]MH_I2C_Read... [17:42:15]Read from MH i2c: E2 0B 00 6A 74 00 66 26 90 6C 1E 6B 83 04 90 00 F2 [17:42:15]RAPDU: 66 26 90 6C 1E 6B 83 04 90 00 [17:42:15]wFMCommunicate OK [17:42:15]SAM_PROTO_SignData done [17:42:15]FM_MakeSignedData done [17:42:15]CreateOFDProtocolMessage [17:42:15]wFMCommunicate request_size=4 [17:42:15]MH_SAM_APDU [17:42:15]CAPDU: 80 11 00 00 [17:42:15]Write to MH i2c: E2 08 00 6B 74 80 11 00 00 00 00 00 00 59 [17:42:15]Write i2c OK [17:42:15]MH_I2C_Read... [17:42:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:42:15]Read from MH i2c: E2 [17:42:15]MH_I2C_Read... [17:42:15]Read from MH i2c: E2 17 00 [17:42:15]MH_I2C_Read... [17:42:15]Read from MH i2c: E2 17 00 6B 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 AE [17:42:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:42:15]wFMCommunicate OK [17:42:15]CreateOFDProtocolMessage done [17:42:15]OFDSenderStorePacket 156686 [17:42:15]StoreOFDPacket docnum=156686 [17:42:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 2A DE 04 01 31 73 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EE 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 66 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 7C 7B 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0E 64 02 00 35 04 06 00 E3 63 56 DD 4F 24 66 26 90 6C 1E 6B 83 04 [17:42:15]CheckFolder [17:42:15]dirname=/storage/ofd_packets [17:42:15]CheckFolder done [17:42:15]ProducePacketName [17:42:15]name=ofd_packets/00156686 [17:42:15]NVStorageSaveData ofd_packets/00156686 [17:42:15]File name is /storage/ofd_packets/00156686 [17:42:15]Write 298 bytes [17:42:15]NVStorageSaveData done [17:42:15]OFDSenderStorePacket done [17:42:15]KKMCreateOFDPacket done [17:42:15]NVStorageSaveData kkm_last_timestamp [17:42:15]File name is /storage/kkm_last_timestamp [17:42:15]Write 4 bytes [17:42:15]NVStorageSaveData done [17:42:15]ExternCall_PrintAddStr [17:42:15]wPrintStart [17:42:15]Write to MH i2c: 01 00 00 6C 74 E0 [17:42:15]Write i2c OK [17:42:15]MH_I2C_Read... [17:42:15]Read from MH i2c: 01 [17:42:15]MH_I2C_Read... [17:42:15]Read from MH i2c: 01 07 00 [17:42:15]MH_I2C_Read... [17:42:15]Read from MH i2c: 01 07 00 6C 74 00 00 00 00 00 FF 0F F5 [17:42:15]RasterBufferAndPrint [17:42:15]line Счет N : (1)99500 [17:42:15]line ИНН: 02508201610067 [17:42:15]line Контрольно-Кассовый Чек [17:42:15]line ПРОДАЖА [17:42:15]line ТРК (МРК, ГНК) : 32 [17:42:15]line Товар: 2710194210 [17:42:15]line ДТ-К-5 [17:42:15]line 3.290 * 76.20 [17:42:15]line = 250.70 [17:42:15]line НДС 12% НСП 1% [17:42:15]line > о реализуемом товаре [17:42:15]line ОКРУГЛЕНИЕ: -0.70 [17:42:15]line ИТОГО: 250.00 [17:42:15]line Внесено: 250.00 [17:42:15]line СДАЧА: 0.00 [17:42:15]line НСП 1% : 2.22 [17:42:15]line НДС 12% : 26.62 [17:42:15]line Наличными: 250.00 [17:42:15]line Безнал.: 0.00 [17:42:15]line Место: АЗС № 143 "Партнер Нефть" [17:42:15]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [17:42:15]line СНО: Общий режим [17:42:15]line Чек 237 27.10.2024 17:42 [17:42:15]line Смена: 537 ФФД: 1.0 [17:42:15]line ЗНМ: 0300000096 [17:42:15]line РНМ: 0000000000091693 [17:42:15]line Версия ККМ: 001 [17:42:15]line ФМ: 0000000000871792 [17:42:15]line ФД: 156686 [17:42:15]line ФПД: 250015798611748 [17:42:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T174220&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156686&fm=250015798611748&tin=02508201610067®Number=0000000000091693&sum=25000 [17:42:15]OFD Sender: Processing packet 156686 [packets to send 31, broken 30] [17:42:15]ProducePacketName [17:42:15]name=ofd_packets/00156686 [17:42:15]OFD Sender: To server: pG, [17:42:15]CommunicateWithHost lk.salyk.kg:30040 [17:42:15]ConnectInit lk.salyk.kg [17:42:15]written 0, free lines is 4095 [17:42:15]Connected sock=10 [17:42:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 2A DE 04 01 31 73 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EE 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 66 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 7C 7B 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0E 64 02 00 35 04 06 00 E3 63 56 DD 4F 24 66 26 90 6C 1E 6B 83 04 [17:42:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 93 20 47 00 55 42 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0E 64 02 00 F4 03 04 00 EB 20 1E 67 B6 04 01 00 00 9F CB A2 46 B9 92 3D 82 [17:42:16]CommunicateWithHost err = 0 [17:42:16]CheckOFDResponse [17:42:16]1017 (14) - 77093643461234 [17:42:16]1041 (16) - 0000000000871792 [17:42:16]1040 (4) - 156686 [17:42:16]1012 (4) - 27.10.2024 11:15 [17:42:16]1206 (1) - 0 [17:42:16]OFD Sender: Remove packet 156686 [17:42:16]ProducePacketName [17:42:16]name=ofd_packets/00156686 [17:42:16]NVStorageDeleteData [17:42:16]Write to MH i2c: 01 00 00 97 74 0B [17:42:16]Write i2c OK [17:42:16]MH_I2C_Read... [17:42:16]Read from MH i2c: 01 [17:42:16]MH_I2C_Read... [17:42:16]Read from MH i2c: 01 07 00 [17:42:16]MH_I2C_Read... [17:42:16]Read from MH i2c: 01 07 00 97 74 00 00 00 00 00 E1 0C FF [17:42:16]RasterBufferAndPrint [17:42:16]line [17:42:16]line [17:42:16]line [17:42:16]line [17:42:16]line [17:42:16]written 0, free lines is 3306 [17:42:16]process_action close_receipt done [17:42:16]requested_data is exist [17:42:16]produce_requested_data [17:42:16]requested_item fm.sn is exist - process it [17:42:16]wFMCommunicate request_size=4 [17:42:16]MH_SAM_APDU [17:42:16]CAPDU: 80 11 00 00 [17:42:16]Write to MH i2c: E2 08 00 9E 74 80 11 00 00 00 00 00 00 8C [17:42:16]Write i2c OK [17:42:16]MH_I2C_Read... [17:42:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:42:16]Read from MH i2c: E2 [17:42:16]MH_I2C_Read... [17:42:16]Read from MH i2c: E2 17 00 [17:42:16]MH_I2C_Read... [17:42:16]Read from MH i2c: E2 17 00 9E 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 E1 [17:42:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:42:16]wFMCommunicate OK [17:42:16]requested_item fd.num is exist - process it [17:42:16]SAM_PROTO_GetFieldsCounters [17:42:16]wFMCommunicate request_size=4 [17:42:16]MH_SAM_APDU [17:42:16]CAPDU: 80 13 00 00 [17:42:16]Write to MH i2c: E2 08 00 9F 74 80 13 00 00 00 00 00 00 8F [17:42:16]Write i2c OK [17:42:16]MH_I2C_Read... [17:42:16]Read from MH i2c: E2 [17:42:16]MH_I2C_Read... [17:42:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:42:16]Read from MH i2c: E2 62 00 [17:42:16]MH_I2C_Read... [17:42:16]Read from MH i2c: E2 62 00 9F 74 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 0E 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 0B [17:42:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 0E 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:42:16]wFMCommunicate OK [17:42:16]SAM_PROTO_GetFieldsCounters done [17:42:16]requested_item shift.num is exist - process it [17:42:16]requested_item shift.opened is exist - process it [17:42:16]req_shift_opened [17:42:16]FM_GetShiftState [17:42:16]SAM_PROTO_GetShiftState [17:42:16]wFMCommunicate request_size=4 [17:42:16]MH_SAM_APDU [17:42:16]CAPDU: 80 13 01 00 [17:42:16]Write to MH i2c: E2 08 00 A0 74 80 13 01 00 00 00 00 00 91 [17:42:16]Write i2c OK [17:42:16]MH_I2C_Read... [17:42:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:42:16]Read from MH i2c: E2 [17:42:16]MH_I2C_Read... [17:42:16]Read from MH i2c: E2 0E 00 [17:42:16]MH_I2C_Read... [17:42:16]Read from MH i2c: E2 0E 00 A0 74 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 5E [17:42:16]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [17:42:16]wFMCommunicate OK [17:42:16]SAM_PROTO_GetShiftState done [17:42:16]FM_GetShiftState done [17:42:16]req_shift_opened done [17:42:16]requested_item shift.open_date is exist - process it [17:42:16]req_shift_open_date [17:42:16]req_shift_open_date done [17:42:16]produce_requested_data done [17:42:16]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156686,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [17:42:16]process_action_free close_receipt [17:42:16]json_value_free [17:42:16]json_value_free done [17:42:16]process_json_proto returns [17:42:16]Send response to host [17:42:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156686,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [17:42:16]free response buf [17:42:16]execute_script done [17:42:16]execute_script returns [17:42:16]free content buf [17:42:16]Sock 9.Close socket [17:42:16]Sock 9.Thread stoped [17:42:16]OFD Sender: No OFD packet to send [17:42:21]OFD Sender: No OFD packet to send [17:42:26]OFD Sender: No OFD packet to send [17:42:31]OFD Sender: No OFD packet to send [17:42:36]OFD Sender: No OFD packet to send [17:42:41]OFD Sender: No OFD packet to send [17:42:46]OFD Sender: No OFD packet to send [17:42:51]OFD Sender: No OFD packet to send [17:42:56]OFD Sender: No OFD packet to send [17:43:01]OFD Sender: No OFD packet to send [17:43:06]OFD Sender: No OFD packet to send [17:43:11]OFD Sender: No OFD packet to send [17:43:16]OFD Sender: No OFD packet to send [17:43:21]OFD Sender: No OFD packet to send [17:43:26]OFD Sender: No OFD packet to send [17:43:31]OFD Sender: No OFD packet to send [17:43:36]OFD Sender: No OFD packet to send [17:43:41]OFD Sender: No OFD packet to send [17:43:46]OFD Sender: No OFD packet to send [17:43:51]OFD Sender: No OFD packet to send [17:43:56]OFD Sender: No OFD packet to send [17:44:01]OFD Sender: No OFD packet to send [17:44:06]OFD Sender: No OFD packet to send [17:44:11]OFD Sender: No OFD packet to send [17:44:16]OFD Sender: No OFD packet to send [17:44:21]OFD Sender: No OFD packet to send [17:44:26]OFD Sender: No OFD packet to send [17:44:27]accept exits with 8 [17:44:27]New connection [17:44:27]New thread 3066977636 created [17:44:27]Thread 3066834276 joined [17:44:27]Waiting for new connection... [17:44:27] Sock 8.Parse request [17:44:27]Sock 8.Check first char [17:44:27]Sock 8.First char is OK [17:44:27]request: POST /json_proto HTTP/1.0 [17:44:27]Method: POST [17:44:27]URL: /json_proto [17:44:27]Method is POST - this is cgi request [17:44:27]url: /json_proto [17:44:27]query_string will be loaded in cgi processing [17:44:27]execute_cgi json_proto POST (null) [17:44:27]execute_cgi path=json_proto method=POST [17:44:27]POST find Content-Length [17:44:27]Host: 172.17.63.3:8080 [17:44:27]Content-Length: 676 [17:44:27]Content-Type: application/json [17:44:27] [17:44:27]POST finish read [17:44:27]Found Content-Length = 676 [17:44:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99501", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "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" ] } } [17:44:27]execute_script... [17:44:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99501", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "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" ] } } [17:44:27]POST & json_proto [17:44:27]process_json_proto [17:44:27]json parsed OK: [17:44:27]protocol is kg_v1.0 [17:44:27]action value=close_receipt [17:44:27]process_action close_receipt [17:44:27]cmd_close_receipt [17:44:27]MH_GetDate [17:44:27]Write to MH i2c: F0 00 00 A1 74 04 [17:44:27]Write i2c OK [17:44:27]MH_I2C_Read... [17:44:27]Read from MH i2c: F0 [17:44:27]MH_I2C_Read... [17:44:27]Read from MH i2c: F0 09 00 [17:44:27]MH_I2C_Read... [17:44:27]Read from MH i2c: F0 09 00 A1 74 00 02 7C 1E 67 50 D1 6C 64 01 [17:44:27]GetLastDocTimeStamp 1730050940 [17:44:27]current date 1730051074 [17:44:27]FM_GetShiftState [17:44:27]SAM_PROTO_GetShiftState [17:44:27]wFMCommunicate request_size=4 [17:44:27]MH_SAM_APDU [17:44:27]CAPDU: 80 13 01 00 [17:44:27]Write to MH i2c: E2 08 00 A2 74 80 13 01 00 00 00 00 00 93 [17:44:27]Write i2c OK [17:44:27]MH_I2C_Read... [17:44:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:44:27]Read from MH i2c: E2 [17:44:27]MH_I2C_Read... [17:44:27]Read from MH i2c: E2 0E 00 [17:44:27]MH_I2C_Read... [17:44:27]Read from MH i2c: E2 0E 00 A2 74 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 60 [17:44:27]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [17:44:27]wFMCommunicate OK [17:44:27]SAM_PROTO_GetShiftState done [17:44:27]FM_GetShiftState done [17:44:27]opened in 1729989044 [17:44:27]opened+sec_in_day 1730075444 [17:44:27]quantity*price = 20003 [17:44:27]sum+1 = 20004 [17:44:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 238 27.10.2024 17:44 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156687 ФПД: 41296653925384 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T174434&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156687&fm=41296653925384&tin=02508201610067®Number=0000000000091693&sum=20000 [17:44:28]StoreToDocumentArchive [17:44:28]shift 537 fd 156687 [17:44:28]save to /storage/0537/doc_00156687 [17:44:28]save last doc name /storage/0537/doc_00156687 to /storage/kkm_last_doc_name [17:44:28]save OK [17:44:28]Clear old archive folders... [17:44:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:44:28]tlvbuf is 01889930 [17:44:28]SAM_PROTO_ClearQueue [17:44:28]wFMCommunicate request_size=4 [17:44:28]MH_SAM_APDU [17:44:28]CAPDU: 80 09 00 00 [17:44:28]Write to MH i2c: E2 08 00 AF 74 80 09 00 00 00 00 00 00 95 [17:44:28]Write i2c OK [17:44:28]MH_I2C_Read... [17:44:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:44:28]Read from MH i2c: E2 [17:44:28]MH_I2C_Read... [17:44:28]Read from MH i2c: E2 03 00 [17:44:28]MH_I2C_Read... [17:44:28]Read from MH i2c: E2 03 00 AF 74 00 90 00 97 [17:44:28]RAPDU: 90 00 [17:44:28]wFMCommunicate OK [17:44:28]SAM_PROTO_ClearQueue done [17:44:28]KKMCreateOFDPacket [17:44:28]OFDProtocolAddRootSTLVToBuf [17:44:28]FM_MakeSignedData [17:44:28]FM_MakeSignedData [17:44:28]SAM_PROTO_SignData [17:44:28]wFMCommunicate request_size=4 [17:44:28]MH_SAM_APDU [17:44:28]CAPDU: 80 0D 01 02 [17:44:28]Write to MH i2c: E2 08 00 B0 74 80 0D 01 02 00 00 00 00 9D [17:44:28]Write i2c OK [17:44:28]MH_I2C_Read... [17:44:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:44:29]Read from MH i2c: E2 [17:44:29]MH_I2C_Read... [17:44:29]Read from MH i2c: E2 03 00 [17:44:29]MH_I2C_Read... [17:44:29]Read from MH i2c: E2 03 00 B0 74 00 90 00 98 [17:44:29]RAPDU: 90 00 [17:44:29]wFMCommunicate OK [17:44:29]wFMCommunicate request_size=255 [17:44:29]MH_SAM_APDU [17:44: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 EE 00 00 00 F4 03 04 00 02 7C 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0F 64 02 00 35 04 06 00 25 [17:44:29]Write to MH i2c: E2 02 01 B1 74 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 EE 00 00 00 F4 03 04 00 02 7C 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0F 64 02 00 35 04 06 00 25 00 00 99 [17:44:29]Write i2c OK [17:44:29]MH_I2C_Read... [17:44:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:44:29]Read from MH i2c: E2 [17:44:29]MH_I2C_Read... [17:44:29]Read from MH i2c: E2 03 00 [17:44:29]MH_I2C_Read... [17:44:29]Read from MH i2c: E2 03 00 B1 74 00 90 00 99 [17:44:29]RAPDU: 90 00 [17:44:29]wFMCommunicate OK [17:44:29]wFMCommunicate request_size=10 [17:44:29]MH_SAM_APDU [17:44:29]CAPDU: 80 0D 02 02 05 8F 20 63 3C 08 [17:44:29]Write to MH i2c: E2 0D 00 B2 74 80 0D 02 02 05 00 8F 20 63 3C 08 00 00 00 [17:44:29]Write i2c OK [17:44:29]MH_I2C_Read... [17:44:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:44:29]Read from MH i2c: E2 [17:44:29]MH_I2C_Read... [17:44:29]Read from MH i2c: E2 03 00 [17:44:29]MH_I2C_Read... [17:44:29]Read from MH i2c: E2 03 00 B2 74 00 90 00 9A [17:44:29]RAPDU: 90 00 [17:44:29]wFMCommunicate OK [17:44:29]wFMCommunicate request_size=4 [17:44:29]MH_SAM_APDU [17:44:29]CAPDU: 80 0D 03 02 [17:44:29]Write to MH i2c: E2 08 00 B3 74 80 0D 03 02 00 00 00 00 A2 [17:44:29]Write i2c OK [17:44:29]MH_I2C_Read... [17:44:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:44:29]Read from MH i2c: E2 [17:44:29]MH_I2C_Read... [17:44:29]Read from MH i2c: E2 0B 00 [17:44:29]MH_I2C_Read... [17:44:29]Read from MH i2c: E2 0B 00 B3 74 00 97 15 A7 5E 59 C3 FB 97 90 00 02 [17:44:29]RAPDU: 97 15 A7 5E 59 C3 FB 97 90 00 [17:44:29]wFMCommunicate OK [17:44:29]SAM_PROTO_SignData done [17:44:29]FM_MakeSignedData done [17:44:29]CreateOFDProtocolMessage [17:44:29]wFMCommunicate request_size=4 [17:44:29]MH_SAM_APDU [17:44:29]CAPDU: 80 11 00 00 [17:44:29]Write to MH i2c: E2 08 00 B4 74 80 11 00 00 00 00 00 00 A2 [17:44:29]Write i2c OK [17:44:29]MH_I2C_Read... [17:44:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:44:29]Read from MH i2c: E2 [17:44:29]MH_I2C_Read... [17:44:29]Read from MH i2c: E2 17 00 [17:44:29]MH_I2C_Read... [17:44:29]Read from MH i2c: E2 17 00 B4 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 F7 [17:44:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:44:29]wFMCommunicate OK [17:44:29]CreateOFDProtocolMessage done [17:44:29]OFDSenderStorePacket 156687 [17:44:29]StoreOFDPacket docnum=156687 [17:44:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 F3 A4 07 01 62 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 EE 00 00 00 F4 03 04 00 02 7C 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0F 64 02 00 35 04 06 00 25 8F 20 63 3C 08 97 15 A7 5E 59 C3 FB 97 [17:44:29]CheckFolder [17:44:29]dirname=/storage/ofd_packets [17:44:29]CheckFolder done [17:44:29]ProducePacketName [17:44:29]name=ofd_packets/00156687 [17:44:29]NVStorageSaveData ofd_packets/00156687 [17:44:29]File name is /storage/ofd_packets/00156687 [17:44:29]Write 301 bytes [17:44:29]NVStorageSaveData done [17:44:29]OFDSenderStorePacket done [17:44:29]KKMCreateOFDPacket done [17:44:29]NVStorageSaveData kkm_last_timestamp [17:44:29]File name is /storage/kkm_last_timestamp [17:44:29]Write 4 bytes [17:44:29]NVStorageSaveData done [17:44:29]ExternCall_PrintAddStr [17:44:29]wPrintStart [17:44:29]Write to MH i2c: 01 00 00 B5 74 29 [17:44:29]Write i2c OK [17:44:29]MH_I2C_Read... [17:44:29]Read from MH i2c: 01 [17:44:29]MH_I2C_Read... [17:44:29]Read from MH i2c: 01 07 00 [17:44:29]MH_I2C_Read... [17:44:29]Read from MH i2c: 01 07 00 B5 74 00 00 00 00 00 FF 0F 3E [17:44:29]RasterBufferAndPrint [17:44:29]line Счет N : (1)99501 [17:44:29]line ИНН: 02508201610067 [17:44:29]line Контрольно-Кассовый Чек [17:44:29]line ПРОДАЖА [17:44:29]line ТРК (МРК, ГНК) : 31 [17:44:29]line Товар: 2710124130 [17:44:29]line Аи-92-К-5 [17:44:29]line 2.990 * 66.90 [17:44:29]line = 200.03 [17:44:29]line НДС 12% НСП 1% [17:44:29]line > о реализуемом товаре [17:44:29]line ОКРУГЛЕНИЕ: -0.03 [17:44:29]line ИТОГО: 200.00 [17:44:29]line Внесено: 200.00 [17:44:29]line СДАЧА: 0.00 [17:44:29]line НСП 1% : 1.77 [17:44:29]line НДС 12% : 21.24 [17:44:29]line Наличными: 200.00 [17:44:29]line Безнал.: 0.00 [17:44:29]line Место: АЗС № 143 "Партнер Нефть" [17:44:29]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [17:44:29]line СНО: Общий режим [17:44:29]line Чек 238 27.10.2024 17:44 [17:44:29]line Смена: 537 ФФД: 1.0 [17:44:29]line ЗНМ: 0300000096 [17:44:29]line РНМ: 0000000000091693 [17:44:29]line Версия ККМ: 001 [17:44:29]line ФМ: 0000000000871792 [17:44:29]line ФД: 156687 [17:44:29]line ФПД: 41296653925384 [17:44:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T174434&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156687&fm=41296653925384&tin=02508201610067®Number=0000000000091693&sum=20000 [17:44:29]OFD Sender: Processing packet 156687 [packets to send 31, broken 30] [17:44:29]ProducePacketName [17:44:29]name=ofd_packets/00156687 [17:44:29]OFD Sender: To server: pG, [17:44:29]CommunicateWithHost lk.salyk.kg:30040 [17:44:29]ConnectInit lk.salyk.kg [17:44:29]written 0, free lines is 4095 [17:44:29]Connected sock=10 [17:44:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 F3 A4 07 01 62 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 EE 00 00 00 F4 03 04 00 02 7C 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 0F 64 02 00 35 04 06 00 25 8F 20 63 3C 08 97 15 A7 5E 59 C3 FB 97 [17:44:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 4E AB 47 00 ED 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 31 37 39 32 10 04 04 00 0F 64 02 00 F4 03 04 00 71 21 1E 67 B6 04 01 00 00 87 0F 32 89 86 D5 20 31 [17:44:30]CommunicateWithHost err = 0 [17:44:30]CheckOFDResponse [17:44:30]1017 (14) - 77093643461234 [17:44:30]1041 (16) - 0000000000871792 [17:44:30]1040 (4) - 156687 [17:44:30]1012 (4) - 27.10.2024 11:18 [17:44:30]1206 (1) - 0 [17:44:30]OFD Sender: Remove packet 156687 [17:44:30]ProducePacketName [17:44:30]name=ofd_packets/00156687 [17:44:30]NVStorageDeleteData [17:44:30]Write to MH i2c: 01 00 00 E0 74 54 [17:44:30]Write i2c OK [17:44:30]MH_I2C_Read... [17:44:30]Read from MH i2c: 01 [17:44:30]MH_I2C_Read... [17:44:30]Read from MH i2c: 01 07 00 [17:44:30]MH_I2C_Read... [17:44:30]Read from MH i2c: 01 07 00 E0 74 00 00 00 00 00 E4 0C 4B [17:44:30]RasterBufferAndPrint [17:44:30]line [17:44:30]line [17:44:30]line [17:44:30]line [17:44:30]line [17:44:30]written 0, free lines is 3306 [17:44:30]process_action close_receipt done [17:44:30]requested_data is exist [17:44:30]produce_requested_data [17:44:30]requested_item fm.sn is exist - process it [17:44:30]wFMCommunicate request_size=4 [17:44:30]MH_SAM_APDU [17:44:30]CAPDU: 80 11 00 00 [17:44:30]Write to MH i2c: E2 08 00 E7 74 80 11 00 00 00 00 00 00 D5 [17:44:30]Write i2c OK [17:44:30]MH_I2C_Read... [17:44:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:44:30]Read from MH i2c: E2 [17:44:30]MH_I2C_Read... [17:44:30]Read from MH i2c: E2 17 00 [17:44:30]MH_I2C_Read... [17:44:30]Read from MH i2c: E2 17 00 E7 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 2A [17:44:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:44:30]wFMCommunicate OK [17:44:30]requested_item fd.num is exist - process it [17:44:30]SAM_PROTO_GetFieldsCounters [17:44:30]wFMCommunicate request_size=4 [17:44:30]MH_SAM_APDU [17:44:30]CAPDU: 80 13 00 00 [17:44:30]Write to MH i2c: E2 08 00 E8 74 80 13 00 00 00 00 00 00 D8 [17:44:30]Write i2c OK [17:44:30]MH_I2C_Read... [17:44:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:44:30]Read from MH i2c: E2 [17:44:30]MH_I2C_Read... [17:44:30]Read from MH i2c: E2 62 00 [17:44:30]MH_I2C_Read... [17:44:30]Read from MH i2c: E2 62 00 E8 74 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 0F 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 58 [17:44:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 0F 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:44:30]wFMCommunicate OK [17:44:30]SAM_PROTO_GetFieldsCounters done [17:44:30]requested_item shift.num is exist - process it [17:44:30]requested_item shift.opened is exist - process it [17:44:30]req_shift_opened [17:44:30]FM_GetShiftState [17:44:30]SAM_PROTO_GetShiftState [17:44:30]wFMCommunicate request_size=4 [17:44:30]MH_SAM_APDU [17:44:30]CAPDU: 80 13 01 00 [17:44:30]Write to MH i2c: E2 08 00 E9 74 80 13 01 00 00 00 00 00 DA [17:44:30]Write i2c OK [17:44:30]MH_I2C_Read... [17:44:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:44:30]Read from MH i2c: E2 [17:44:30]MH_I2C_Read... [17:44:30]Read from MH i2c: E2 0E 00 [17:44:30]MH_I2C_Read... [17:44:30]Read from MH i2c: E2 0E 00 E9 74 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 A7 [17:44:30]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [17:44:30]wFMCommunicate OK [17:44:30]SAM_PROTO_GetShiftState done [17:44:30]FM_GetShiftState done [17:44:30]req_shift_opened done [17:44:30]requested_item shift.open_date is exist - process it [17:44:30]req_shift_open_date [17:44:30]req_shift_open_date done [17:44:30]produce_requested_data done [17:44:30]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156687,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [17:44:30]process_action_free close_receipt [17:44:30]json_value_free [17:44:30]json_value_free done [17:44:30]process_json_proto returns [17:44:30]Send response to host [17:44:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156687,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [17:44:30]free response buf [17:44:30]execute_script done [17:44:30]execute_script returns [17:44:30]free content buf [17:44:30]Sock 8.Close socket [17:44:30]Sock 8.Thread stoped [17:44:30]OFD Sender: No OFD packet to send [17:44:35]OFD Sender: No OFD packet to send [17:44:40]OFD Sender: No OFD packet to send [17:44:45]OFD Sender: No OFD packet to send [17:44:50]OFD Sender: No OFD packet to send [17:44:55]OFD Sender: No OFD packet to send [17:45:00]OFD Sender: No OFD packet to send [17:45:05]OFD Sender: No OFD packet to send [17:45:10]OFD Sender: No OFD packet to send [17:45:15]OFD Sender: No OFD packet to send [17:45:20]OFD Sender: No OFD packet to send [17:45:25]OFD Sender: No OFD packet to send [17:45:30]OFD Sender: No OFD packet to send [17:45:35]OFD Sender: No OFD packet to send [17:45:40]OFD Sender: No OFD packet to send [17:45:45]OFD Sender: No OFD packet to send [17:45:50]OFD Sender: No OFD packet to send [17:45:55]OFD Sender: No OFD packet to send [17:46:00]OFD Sender: No OFD packet to send [17:46:05]OFD Sender: No OFD packet to send [17:46:10]OFD Sender: No OFD packet to send [17:46:15]OFD Sender: No OFD packet to send [17:46:20]OFD Sender: No OFD packet to send [17:46:25]OFD Sender: No OFD packet to send [17:46:30]OFD Sender: No OFD packet to send [17:46:33]accept exits with 9 [17:46:33]New connection [17:46:33]New thread 3066834276 created [17:46:33]Thread 3066977636 joined [17:46:33]Waiting for new connection... [17:46:33] Sock 9.Parse request [17:46:33]Sock 9.Check first char [17:46:33]Sock 9.First char is OK [17:46:33]request: POST /json_proto HTTP/1.0 [17:46:33]Method: POST [17:46:33]URL: /json_proto [17:46:33]Method is POST - this is cgi request [17:46:33]url: /json_proto [17:46:33]query_string will be loaded in cgi processing [17:46:33]execute_cgi json_proto POST (null) [17:46:33]execute_cgi path=json_proto method=POST [17:46:33]POST find Content-Length [17:46:33]Host: 172.17.63.3:8080 [17:46:33]Content-Length: 676 [17:46:33]Content-Type: application/json [17:46:33] [17:46:33]POST finish read [17:46:33]Found Content-Length = 676 [17:46:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99502", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:46:33]execute_script... [17:46:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99502", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:46:33]POST & json_proto [17:46:33]process_json_proto [17:46:33]json parsed OK: [17:46:33]protocol is kg_v1.0 [17:46:33]action value=close_receipt [17:46:33]process_action close_receipt [17:46:33]cmd_close_receipt [17:46:33]MH_GetDate [17:46:33]Write to MH i2c: F0 00 00 EA 74 4D [17:46:33]Write i2c OK [17:46:33]MH_I2C_Read... [17:46:33]Read from MH i2c: F0 [17:46:33]MH_I2C_Read... [17:46:33]Read from MH i2c: F0 09 00 [17:46:33]MH_I2C_Read... [17:46:33]Read from MH i2c: F0 09 00 EA 74 00 7F 7C 1E 67 50 D1 6C 64 C7 [17:46:33]GetLastDocTimeStamp 1730051074 [17:46:33]current date 1730051199 [17:46:33]FM_GetShiftState [17:46:33]SAM_PROTO_GetShiftState [17:46:33]wFMCommunicate request_size=4 [17:46:33]MH_SAM_APDU [17:46:33]CAPDU: 80 13 01 00 [17:46:33]Write to MH i2c: E2 08 00 EB 74 80 13 01 00 00 00 00 00 DC [17:46:33]Write i2c OK [17:46:33]MH_I2C_Read... [17:46:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:46:33]Read from MH i2c: E2 [17:46:33]MH_I2C_Read... [17:46:33]Read from MH i2c: E2 0E 00 [17:46:33]MH_I2C_Read... [17:46:33]Read from MH i2c: E2 0E 00 EB 74 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 A9 [17:46:33]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [17:46:33]wFMCommunicate OK [17:46:33]SAM_PROTO_GetShiftState done [17:46:33]FM_GetShiftState done [17:46:33]opened in 1729989044 [17:46:33]opened+sec_in_day 1730075444 [17:46:33]quantity*price = 50041 [17:46:33]sum+1 = 50042 [17:46:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 239 27.10.2024 17:46 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156688 ФПД: 26628206955757 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T174640&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156688&fm=26628206955757&tin=02508201610067®Number=0000000000091693&sum=50000 [17:46:34]StoreToDocumentArchive [17:46:34]shift 537 fd 156688 [17:46:34]save to /storage/0537/doc_00156688 [17:46:34]save last doc name /storage/0537/doc_00156688 to /storage/kkm_last_doc_name [17:46:34]save OK [17:46:34]Clear old archive folders... [17:46:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:46:34]tlvbuf is 018784B0 [17:46:34]SAM_PROTO_ClearQueue [17:46:34]wFMCommunicate request_size=4 [17:46:34]MH_SAM_APDU [17:46:34]CAPDU: 80 09 00 00 [17:46:34]Write to MH i2c: E2 08 00 F8 74 80 09 00 00 00 00 00 00 DE [17:46:34]Write i2c OK [17:46:34]MH_I2C_Read... [17:46:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:46:34]Read from MH i2c: E2 [17:46:34]MH_I2C_Read... [17:46:34]Read from MH i2c: E2 03 00 [17:46:34]MH_I2C_Read... [17:46:34]Read from MH i2c: E2 03 00 F8 74 00 90 00 E0 [17:46:34]RAPDU: 90 00 [17:46:34]wFMCommunicate OK [17:46:34]SAM_PROTO_ClearQueue done [17:46:34]KKMCreateOFDPacket [17:46:34]OFDProtocolAddRootSTLVToBuf [17:46:34]FM_MakeSignedData [17:46:34]FM_MakeSignedData [17:46:34]SAM_PROTO_SignData [17:46:34]wFMCommunicate request_size=4 [17:46:34]MH_SAM_APDU [17:46:34]CAPDU: 80 0D 01 02 [17:46:34]Write to MH i2c: E2 08 00 F9 74 80 0D 01 02 00 00 00 00 E6 [17:46:34]Write i2c OK [17:46:34]MH_I2C_Read... [17:46:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:46:34]Read from MH i2c: E2 [17:46:34]MH_I2C_Read... [17:46:34]Read from MH i2c: E2 03 00 [17:46:34]MH_I2C_Read... [17:46:34]Read from MH i2c: E2 03 00 F9 74 00 90 00 E1 [17:46:34]RAPDU: 90 00 [17:46:34]wFMCommunicate OK [17:46:34]wFMCommunicate request_size=255 [17:46:34]MH_SAM_APDU [17:46: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 80 7C 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 10 64 02 00 35 04 06 00 18 [17:46:34]Write to MH i2c: E2 02 01 FA 74 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 80 7C 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 10 64 02 00 35 04 06 00 18 00 00 93 [17:46:34]Write i2c OK [17:46:34]MH_I2C_Read... [17:46:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:46:34]Read from MH i2c: E2 [17:46:34]MH_I2C_Read... [17:46:34]Read from MH i2c: E2 03 00 [17:46:34]MH_I2C_Read... [17:46:34]Read from MH i2c: E2 03 00 FA 74 00 90 00 E2 [17:46:34]RAPDU: 90 00 [17:46:34]wFMCommunicate OK [17:46:34]wFMCommunicate request_size=10 [17:46:34]MH_SAM_APDU [17:46:34]CAPDU: 80 0D 02 02 05 37 DC D1 0C ED [17:46:34]Write to MH i2c: E2 0D 00 FB 74 80 0D 02 02 05 00 37 DC D1 0C ED 00 00 D0 [17:46:34]Write i2c OK [17:46:34]MH_I2C_Read... [17:46:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:46:34]Read from MH i2c: E2 [17:46:34]MH_I2C_Read... [17:46:34]Read from MH i2c: E2 03 00 [17:46:34]MH_I2C_Read... [17:46:34]Read from MH i2c: E2 03 00 FB 74 00 90 00 E3 [17:46:34]RAPDU: 90 00 [17:46:34]wFMCommunicate OK [17:46:34]wFMCommunicate request_size=4 [17:46:34]MH_SAM_APDU [17:46:34]CAPDU: 80 0D 03 02 [17:46:34]Write to MH i2c: E2 08 00 FC 74 80 0D 03 02 00 00 00 00 EB [17:46:34]Write i2c OK [17:46:34]MH_I2C_Read... [17:46:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:46:34]Read from MH i2c: E2 [17:46:34]MH_I2C_Read... [17:46:34]Read from MH i2c: E2 0B 00 [17:46:34]MH_I2C_Read... [17:46:34]Read from MH i2c: E2 0B 00 FC 74 00 34 50 B2 DC BD EB E6 9E 90 00 2A [17:46:34]RAPDU: 34 50 B2 DC BD EB E6 9E 90 00 [17:46:34]wFMCommunicate OK [17:46:34]SAM_PROTO_SignData done [17:46:34]FM_MakeSignedData done [17:46:34]CreateOFDProtocolMessage [17:46:34]wFMCommunicate request_size=4 [17:46:34]MH_SAM_APDU [17:46:34]CAPDU: 80 11 00 00 [17:46:34]Write to MH i2c: E2 08 00 FD 74 80 11 00 00 00 00 00 00 EB [17:46:34]Write i2c OK [17:46:34]MH_I2C_Read... [17:46:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:46:34]Read from MH i2c: E2 [17:46:34]MH_I2C_Read... [17:46:34]Read from MH i2c: E2 17 00 [17:46:34]MH_I2C_Read... [17:46:34]Read from MH i2c: E2 17 00 FD 74 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 40 [17:46:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:46:34]wFMCommunicate OK [17:46:34]CreateOFDProtocolMessage done [17:46:34]OFDSenderStorePacket 156688 [17:46:34]StoreOFDPacket docnum=156688 [17:46:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 88 AB 07 01 08 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 80 7C 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 10 64 02 00 35 04 06 00 18 37 DC D1 0C ED 34 50 B2 DC BD EB E6 9E [17:46:34]CheckFolder [17:46:34]dirname=/storage/ofd_packets [17:46:34]CheckFolder done [17:46:34]ProducePacketName [17:46:34]name=ofd_packets/00156688 [17:46:34]NVStorageSaveData ofd_packets/00156688 [17:46:34]File name is /storage/ofd_packets/00156688 [17:46:34]Write 301 bytes [17:46:34]NVStorageSaveData done [17:46:34]OFDSenderStorePacket done [17:46:34]KKMCreateOFDPacket done [17:46:34]NVStorageSaveData kkm_last_timestamp [17:46:34]File name is /storage/kkm_last_timestamp [17:46:34]Write 4 bytes [17:46:34]NVStorageSaveData done [17:46:34]ExternCall_PrintAddStr [17:46:34]wPrintStart [17:46:34]Write to MH i2c: 01 00 00 FE 74 72 [17:46:34]Write i2c OK [17:46:34]MH_I2C_Read... [17:46:34]Read from MH i2c: 01 [17:46:34]MH_I2C_Read... [17:46:34]Read from MH i2c: 01 07 00 [17:46:34]MH_I2C_Read... [17:46:34]Read from MH i2c: 01 07 00 FE 74 00 00 00 00 00 FF 0F 87 [17:46:34]RasterBufferAndPrint [17:46:34]line Счет N : (1)99502 [17:46:34]line ИНН: 02508201610067 [17:46:34]line Контрольно-Кассовый Чек [17:46:34]line ПРОДАЖА [17:46:34]line ТРК (МРК, ГНК) : 31 [17:46:34]line Товар: 2710124130 [17:46:34]line Аи-92-К-5 [17:46:34]line 7.480 * 66.90 [17:46:34]line = 500.41 [17:46:34]line НДС 12% НСП 1% [17:46:34]line > о реализуемом товаре [17:46:34]line ОКРУГЛЕНИЕ: -0.41 [17:46:34]line ИТОГО: 500.00 [17:46:34]line Внесено: 500.00 [17:46:34]line СДАЧА: 0.00 [17:46:34]line НСП 1% : 4.43 [17:46:34]line НДС 12% : 53.14 [17:46:34]line Наличными: 500.00 [17:46:34]line Безнал.: 0.00 [17:46:34]line Место: АЗС № 143 "Партнер Нефть" [17:46:34]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [17:46:34]line СНО: Общий режим [17:46:34]line Чек 239 27.10.2024 17:46 [17:46:34]line Смена: 537 ФФД: 1.0 [17:46:34]line ЗНМ: 0300000096 [17:46:34]line РНМ: 0000000000091693 [17:46:34]line Версия ККМ: 001 [17:46:34]line ФМ: 0000000000871792 [17:46:34]line ФД: 156688 [17:46:34]line ФПД: 26628206955757 [17:46:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T174640&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156688&fm=26628206955757&tin=02508201610067®Number=0000000000091693&sum=50000 [17:46:35]OFD Sender: Processing packet 156688 [packets to send 31, broken 30] [17:46:35]ProducePacketName [17:46:35]name=ofd_packets/00156688 [17:46:35]OFD Sender: To server: pG, [17:46:35]CommunicateWithHost lk.salyk.kg:30040 [17:46:35]ConnectInit lk.salyk.kg [17:46:35]written 0, free lines is 4095 [17:46:35]Connected sock=8 [17:46:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 88 AB 07 01 08 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 80 7C 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 10 64 02 00 35 04 06 00 18 37 DC D1 0C ED 34 50 B2 DC BD EB E6 9E [17:46:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 0B 88 47 00 8A 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 10 64 02 00 F4 03 04 00 EE 21 1E 67 B6 04 01 00 00 C8 84 20 91 9B EE C9 AB [17:46:35]CommunicateWithHost err = 0 [17:46:35]CheckOFDResponse [17:46:35]1017 (14) - 77093643461234 [17:46:35]1041 (16) - 0000000000871792 [17:46:35]1040 (4) - 156688 [17:46:35]1012 (4) - 27.10.2024 11:20 [17:46:35]1206 (1) - 0 [17:46:35]OFD Sender: Remove packet 156688 [17:46:35]ProducePacketName [17:46:35]name=ofd_packets/00156688 [17:46:35]NVStorageDeleteData [17:46:35]Write to MH i2c: 01 00 00 29 75 9E [17:46:35]Write i2c OK [17:46:35]MH_I2C_Read... [17:46:35]Read from MH i2c: 01 [17:46:35]MH_I2C_Read... [17:46:35]Read from MH i2c: 01 07 00 [17:46:35]MH_I2C_Read... [17:46:35]Read from MH i2c: 01 07 00 29 75 00 00 00 00 00 D9 0C 8A [17:46:35]RasterBufferAndPrint [17:46:35]line [17:46:35]line [17:46:35]line [17:46:35]line [17:46:35]line [17:46:35]written 0, free lines is 3296 [17:46:35]process_action close_receipt done [17:46:35]requested_data is exist [17:46:35]produce_requested_data [17:46:35]requested_item fm.sn is exist - process it [17:46:35]wFMCommunicate request_size=4 [17:46:35]MH_SAM_APDU [17:46:35]CAPDU: 80 11 00 00 [17:46:35]Write to MH i2c: E2 08 00 30 75 80 11 00 00 00 00 00 00 1F [17:46:35]Write i2c OK [17:46:35]MH_I2C_Read... [17:46:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:46:35]Read from MH i2c: E2 [17:46:35]MH_I2C_Read... [17:46:35]Read from MH i2c: E2 17 00 [17:46:35]MH_I2C_Read... [17:46:35]Read from MH i2c: E2 17 00 30 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 74 [17:46:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:46:35]wFMCommunicate OK [17:46:35]requested_item fd.num is exist - process it [17:46:35]SAM_PROTO_GetFieldsCounters [17:46:35]wFMCommunicate request_size=4 [17:46:35]MH_SAM_APDU [17:46:35]CAPDU: 80 13 00 00 [17:46:35]Write to MH i2c: E2 08 00 31 75 80 13 00 00 00 00 00 00 22 [17:46:35]Write i2c OK [17:46:35]MH_I2C_Read... [17:46:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:46:35]Read from MH i2c: E2 [17:46:35]MH_I2C_Read... [17:46:35]Read from MH i2c: E2 62 00 [17:46:35]MH_I2C_Read... [17:46:35]Read from MH i2c: E2 62 00 31 75 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 10 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 A6 [17:46:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 10 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:46:35]wFMCommunicate OK [17:46:35]SAM_PROTO_GetFieldsCounters done [17:46:35]requested_item shift.num is exist - process it [17:46:35]requested_item shift.opened is exist - process it [17:46:35]req_shift_opened [17:46:35]FM_GetShiftState [17:46:35]SAM_PROTO_GetShiftState [17:46:35]wFMCommunicate request_size=4 [17:46:35]MH_SAM_APDU [17:46:35]CAPDU: 80 13 01 00 [17:46:35]Write to MH i2c: E2 08 00 32 75 80 13 01 00 00 00 00 00 24 [17:46:35]Write i2c OK [17:46:35]MH_I2C_Read... [17:46:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:46:35]Read from MH i2c: E2 [17:46:35]MH_I2C_Read... [17:46:35]Read from MH i2c: E2 0E 00 [17:46:35]MH_I2C_Read... [17:46:35]Read from MH i2c: E2 0E 00 32 75 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 F1 [17:46:35]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [17:46:35]wFMCommunicate OK [17:46:35]SAM_PROTO_GetShiftState done [17:46:35]FM_GetShiftState done [17:46:35]req_shift_opened done [17:46:35]requested_item shift.open_date is exist - process it [17:46:35]req_shift_open_date [17:46:35]req_shift_open_date done [17:46:35]produce_requested_data done [17:46:35]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156688,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [17:46:35]process_action_free close_receipt [17:46:35]json_value_free [17:46:35]json_value_free done [17:46:35]process_json_proto returns [17:46:35]Send response to host [17:46:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156688,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [17:46:35]free response buf [17:46:35]execute_script done [17:46:35]execute_script returns [17:46:35]free content buf [17:46:35]Sock 9.Close socket [17:46:35]Sock 9.Thread stoped [17:46:35]OFD Sender: No OFD packet to send [17:46:40]OFD Sender: No OFD packet to send [17:46:45]OFD Sender: No OFD packet to send [17:46:50]OFD Sender: No OFD packet to send [17:46:55]OFD Sender: No OFD packet to send [17:47:00]OFD Sender: No OFD packet to send [17:47:05]OFD Sender: No OFD packet to send [17:47:11]OFD Sender: No OFD packet to send [17:47:16]OFD Sender: No OFD packet to send [17:47:21]OFD Sender: No OFD packet to send [17:47:26]OFD Sender: No OFD packet to send [17:47:31]OFD Sender: No OFD packet to send [17:47:36]OFD Sender: No OFD packet to send [17:47:41]OFD Sender: No OFD packet to send [17:47:41]accept exits with 10 [17:47:41]New connection [17:47:41]New thread 3066977636 created [17:47:41]Thread 3066834276 joined [17:47:41]Waiting for new connection... [17:47:41] Sock 10.Parse request [17:47:41]Sock 10.Check first char [17:47:41]Sock 10.First char is OK [17:47:41]request: POST /json_proto HTTP/1.0 [17:47:41]Method: POST [17:47:41]URL: /json_proto [17:47:41]Method is POST - this is cgi request [17:47:41]url: /json_proto [17:47:41]query_string will be loaded in cgi processing [17:47:41]execute_cgi json_proto POST (null) [17:47:41]execute_cgi path=json_proto method=POST [17:47:41]POST find Content-Length [17:47:41]Host: 172.17.63.3:8080 [17:47:41]Content-Length: 762 [17:47:41]Content-Type: application/json [17:47:41] [17:47:41]POST finish read [17:47:41]Found Content-Length = 762 [17:47:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99503", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 5.250, "sum" : 400.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 400.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:47:41]execute_script... [17:47: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)99503", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 5.250, "sum" : 400.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 400.05 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:47:41]POST & json_proto [17:47:41]process_json_proto [17:47:41]json parsed OK: [17:47:41]protocol is kg_v1.0 [17:47:41]action value=close_receipt [17:47:41]process_action close_receipt [17:47:41]cmd_close_receipt [17:47:41]MH_GetDate [17:47:41]Write to MH i2c: F0 00 00 33 75 97 [17:47:41]Write i2c OK [17:47:41]MH_I2C_Read... [17:47:41]Read from MH i2c: F0 [17:47:41]MH_I2C_Read... [17:47:41]Read from MH i2c: F0 09 00 [17:47:41]MH_I2C_Read... [17:47:41]Read from MH i2c: F0 09 00 33 75 00 C4 7C 1E 67 50 D1 6C 64 56 [17:47:41]GetLastDocTimeStamp 1730051200 [17:47:41]current date 1730051268 [17:47:41]FM_GetShiftState [17:47:41]SAM_PROTO_GetShiftState [17:47:41]wFMCommunicate request_size=4 [17:47:41]MH_SAM_APDU [17:47:41]CAPDU: 80 13 01 00 [17:47:41]Write to MH i2c: E2 08 00 34 75 80 13 01 00 00 00 00 00 26 [17:47:41]Write i2c OK [17:47:41]MH_I2C_Read... [17:47:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:41]Read from MH i2c: E2 [17:47:41]MH_I2C_Read... [17:47:41]Read from MH i2c: E2 0E 00 [17:47:41]MH_I2C_Read... [17:47:41]Read from MH i2c: E2 0E 00 34 75 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 F3 [17:47:41]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [17:47:41]wFMCommunicate OK [17:47:41]SAM_PROTO_GetShiftState done [17:47:41]FM_GetShiftState done [17:47:41]opened in 1729989044 [17:47:41]opened+sec_in_day 1730075444 [17:47:41]quantity*price = 40005 [17:47:41]sum+1 = 40006 [17:47:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.05 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 0.00 Безнал.: 400.05 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 240 27.10.2024 17:47 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 156689 ФПД: 62706974043799 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T174748&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156689&fm=62706974043799&tin=02508201610067®Number=0000000000091693&sum=40005 [17:47:42]StoreToDocumentArchive [17:47:42]shift 537 fd 156689 [17:47:42]save to /storage/0537/doc_00156689 [17:47:42]save last doc name /storage/0537/doc_00156689 to /storage/kkm_last_doc_name [17:47:42]save OK [17:47:42]Clear old archive folders... [17:47:42]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:47:42]tlvbuf is 0185D820 [17:47:42]SAM_PROTO_ClearQueue [17:47:42]wFMCommunicate request_size=4 [17:47:42]MH_SAM_APDU [17:47:42]CAPDU: 80 09 00 00 [17:47:42]Write to MH i2c: E2 08 00 41 75 80 09 00 00 00 00 00 00 28 [17:47:42]Write i2c OK [17:47:42]MH_I2C_Read... [17:47:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:47:42]Read from MH i2c: E2 [17:47:42]MH_I2C_Read... [17:47:42]Read from MH i2c: E2 03 00 [17:47:42]MH_I2C_Read... [17:47:42]Read from MH i2c: E2 03 00 41 75 00 90 00 2A [17:47:42]RAPDU: 90 00 [17:47:42]wFMCommunicate OK [17:47:42]SAM_PROTO_ClearQueue done [17:47:42]KKMCreateOFDPacket [17:47:42]OFDProtocolAddRootSTLVToBuf [17:47:42]FM_MakeSignedData [17:47:42]FM_MakeSignedData [17:47:42]SAM_PROTO_SignData [17:47:42]wFMCommunicate request_size=4 [17:47:42]MH_SAM_APDU [17:47:42]CAPDU: 80 0D 01 02 [17:47:42]Write to MH i2c: E2 08 00 42 75 80 0D 01 02 00 00 00 00 30 [17:47:42]Write i2c OK [17:47:42]MH_I2C_Read... [17:47:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:47:42]Read from MH i2c: E2 [17:47:42]MH_I2C_Read... [17:47:42]Read from MH i2c: E2 03 00 [17:47:42]MH_I2C_Read... [17:47:42]Read from MH i2c: E2 03 00 42 75 00 90 00 2B [17:47:42]RAPDU: 90 00 [17:47:42]wFMCommunicate OK [17:47:42]wFMCommunicate request_size=255 [17:47:42]MH_SAM_APDU [17:47:42]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 45 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 45 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 C4 7C 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 11 64 02 00 35 04 06 00 39 08 1A E9 [17:47:42]Write to MH i2c: E2 02 01 43 75 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 45 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 45 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 C4 7C 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 11 64 02 00 35 04 06 00 39 08 1A E9 00 00 42 [17:47:42]Write i2c OK [17:47:42]MH_I2C_Read... [17:47:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:47:42]Read from MH i2c: E2 [17:47:42]MH_I2C_Read... [17:47:42]Read from MH i2c: E2 03 00 [17:47:42]MH_I2C_Read... [17:47:42]Read from MH i2c: E2 03 00 43 75 00 90 00 2C [17:47:42]RAPDU: 90 00 [17:47:42]wFMCommunicate OK [17:47:42]wFMCommunicate request_size=7 [17:47:42]MH_SAM_APDU [17:47:42]CAPDU: 80 0D 02 02 02 AE 97 [17:47:42]Write to MH i2c: E2 0A 00 44 75 80 0D 02 02 02 00 AE 97 00 00 7C [17:47:42]Write i2c OK [17:47:42]MH_I2C_Read... [17:47:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:47:42]Read from MH i2c: E2 [17:47:42]MH_I2C_Read... [17:47:42]Read from MH i2c: E2 03 00 [17:47:42]MH_I2C_Read... [17:47:42]Read from MH i2c: E2 03 00 44 75 00 90 00 2D [17:47:42]RAPDU: 90 00 [17:47:42]wFMCommunicate OK [17:47:42]wFMCommunicate request_size=4 [17:47:42]MH_SAM_APDU [17:47:42]CAPDU: 80 0D 03 02 [17:47:42]Write to MH i2c: E2 08 00 45 75 80 0D 03 02 00 00 00 00 35 [17:47:42]Write i2c OK [17:47:42]MH_I2C_Read... [17:47:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:47:42]Read from MH i2c: E2 [17:47:42]MH_I2C_Read... [17:47:42]Read from MH i2c: E2 0B 00 [17:47:42]MH_I2C_Read... [17:47:42]Read from MH i2c: E2 0B 00 45 75 00 97 BC 62 3F BE DF 75 D1 90 00 0D [17:47:42]RAPDU: 97 BC 62 3F BE DF 75 D1 90 00 [17:47:42]wFMCommunicate OK [17:47:42]SAM_PROTO_SignData done [17:47:42]FM_MakeSignedData done [17:47:42]CreateOFDProtocolMessage [17:47:42]wFMCommunicate request_size=4 [17:47:42]MH_SAM_APDU [17:47:42]CAPDU: 80 11 00 00 [17:47:42]Write to MH i2c: E2 08 00 46 75 80 11 00 00 00 00 00 00 35 [17:47:42]Write i2c OK [17:47:42]MH_I2C_Read... [17:47:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:42]Read from MH i2c: E2 [17:47:42]MH_I2C_Read... [17:47:42]Read from MH i2c: E2 17 00 [17:47:42]MH_I2C_Read... [17:47:42]Read from MH i2c: E2 17 00 46 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 8A [17:47:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:47:42]wFMCommunicate OK [17:47:42]CreateOFDProtocolMessage done [17:47:42]OFDSenderStorePacket 156689 [17:47:42]StoreOFDPacket docnum=156689 [17:47:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 2F D1 04 01 A2 74 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 45 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 45 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 C4 7C 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 11 64 02 00 35 04 06 00 39 08 1A E9 AE 97 97 BC 62 3F BE DF 75 D1 [17:47:42]CheckFolder [17:47:42]dirname=/storage/ofd_packets [17:47:42]CheckFolder done [17:47:42]ProducePacketName [17:47:42]name=ofd_packets/00156689 [17:47:42]NVStorageSaveData ofd_packets/00156689 [17:47:42]File name is /storage/ofd_packets/00156689 [17:47:42]Write 298 bytes [17:47:42]NVStorageSaveData done [17:47:42]OFDSenderStorePacket done [17:47:42]KKMCreateOFDPacket done [17:47:42]NVStorageSaveData kkm_last_timestamp [17:47:42]File name is /storage/kkm_last_timestamp [17:47:42]Write 4 bytes [17:47:42]NVStorageSaveData done [17:47:42]ExternCall_PrintAddStr [17:47:42]wPrintStart [17:47:42]Write to MH i2c: 01 00 00 47 75 BC [17:47:42]Write i2c OK [17:47:42]MH_I2C_Read... [17:47:42]Read from MH i2c: 01 [17:47:42]MH_I2C_Read... [17:47:42]Read from MH i2c: 01 07 00 [17:47:42]MH_I2C_Read... [17:47:42]Read from MH i2c: 01 07 00 47 75 00 00 00 00 00 FF 0F D1 [17:47:42]RasterBufferAndPrint [17:47:42]line Счет N : (1)99503 [17:47:42]line ИНН: 02508201610067 [17:47:42]line Контрольно-Кассовый Чек [17:47:42]line ПРОДАЖА [17:47:42]line ТРК (МРК, ГНК) : 32 [17:47:42]line Товар: 2710194210 [17:47:42]line ДТ-К-5 [17:47:42]line 5.250 * 76.20 [17:47:42]line = 400.05 [17:47:42]line НДС 12% НСП 1% [17:47:42]line > о реализуемом товаре [17:47:42]line ИТОГО: 400.05 [17:47:42]line НСП 1% : 3.54 [17:47:42]line НДС 12% : 42.48 [17:47:42]line Наличными: 0.00 [17:47:42]line Безнал.: 400.05 [17:47:42]line Место: АЗС № 143 "Партнер Нефть" [17:47:42]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [17:47:42]line СНО: Общий режим [17:47:42]line Чек 240 27.10.2024 17:47 [17:47:42]line Смена: 537 ФФД: 1.0 [17:47:42]line ЗНМ: 0300000096 [17:47:42]line РНМ: 0000000000091693 [17:47:42]line Версия ККМ: 001 [17:47:42]line Платежная система: Mbank [17:47:42]line ФМ: 0000000000871792 [17:47:42]line ФД: 156689 [17:47:42]line ФПД: 62706974043799 [17:47:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T174748&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156689&fm=62706974043799&tin=02508201610067®Number=0000000000091693&sum=40005 [17:47:43]OFD Sender: Processing packet 156689 [packets to send 31, broken 30] [17:47:43]ProducePacketName [17:47:43]name=ofd_packets/00156689 [17:47:43]OFD Sender: To server: pG, [17:47:43]CommunicateWithHost lk.salyk.kg:30040 [17:47:43]ConnectInit lk.salyk.kg [17:47:43]written 0, free lines is 4095 [17:47:43]Connected sock=9 [17:47:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 2F D1 04 01 A2 74 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 45 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 45 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 C4 7C 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 11 64 02 00 35 04 06 00 39 08 1A E9 AE 97 97 BC 62 3F BE DF 75 D1 [17:47:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 F3 6D 47 00 13 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 11 64 02 00 F4 03 04 00 32 22 1E 67 B6 04 01 00 00 DC F7 E0 95 CB 3A C1 79 [17:47:43]CommunicateWithHost err = 0 [17:47:43]CheckOFDResponse [17:47:43]1017 (14) - 77093643461234 [17:47:43]1041 (16) - 0000000000871792 [17:47:43]1040 (4) - 156689 [17:47:43]1012 (4) - 27.10.2024 11:21 [17:47:43]1206 (1) - 0 [17:47:43]OFD Sender: Remove packet 156689 [17:47:43]ProducePacketName [17:47:43]name=ofd_packets/00156689 [17:47:43]NVStorageDeleteData [17:47:43]Write to MH i2c: 01 00 00 70 75 E5 [17:47:43]Write i2c OK [17:47:43]MH_I2C_Read... [17:47:43]Read from MH i2c: 01 [17:47:43]MH_I2C_Read... [17:47:43]Read from MH i2c: 01 07 00 [17:47:43]MH_I2C_Read... [17:47:43]Read from MH i2c: 01 07 00 70 75 00 00 00 00 00 00 0D F9 [17:47:43]RasterBufferAndPrint [17:47:43]line [17:47:43]line [17:47:43]line [17:47:43]line [17:47:43]line [17:47:43]written 0, free lines is 3334 [17:47:43]process_action close_receipt done [17:47:43]requested_data is exist [17:47:43]produce_requested_data [17:47:43]requested_item fm.sn is exist - process it [17:47:43]wFMCommunicate request_size=4 [17:47:43]MH_SAM_APDU [17:47:43]CAPDU: 80 11 00 00 [17:47:43]Write to MH i2c: E2 08 00 77 75 80 11 00 00 00 00 00 00 66 [17:47:43]Write i2c OK [17:47:43]MH_I2C_Read... [17:47:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:43]Read from MH i2c: E2 [17:47:43]MH_I2C_Read... [17:47:43]Read from MH i2c: E2 17 00 [17:47:43]MH_I2C_Read... [17:47:43]Read from MH i2c: E2 17 00 77 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 BB [17:47:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:47:43]wFMCommunicate OK [17:47:43]requested_item fd.num is exist - process it [17:47:43]SAM_PROTO_GetFieldsCounters [17:47:43]wFMCommunicate request_size=4 [17:47:43]MH_SAM_APDU [17:47:43]CAPDU: 80 13 00 00 [17:47:43]Write to MH i2c: E2 08 00 78 75 80 13 00 00 00 00 00 00 69 [17:47:43]Write i2c OK [17:47:43]MH_I2C_Read... [17:47:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:47:43]Read from MH i2c: E2 [17:47:43]MH_I2C_Read... [17:47:43]Read from MH i2c: E2 62 00 [17:47:43]MH_I2C_Read... [17:47:43]Read from MH i2c: E2 62 00 78 75 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 11 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 F1 [17:47:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 11 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:47:43]wFMCommunicate OK [17:47:43]SAM_PROTO_GetFieldsCounters done [17:47:43]requested_item shift.num is exist - process it [17:47:43]requested_item shift.opened is exist - process it [17:47:43]req_shift_opened [17:47:43]FM_GetShiftState [17:47:43]SAM_PROTO_GetShiftState [17:47:43]wFMCommunicate request_size=4 [17:47:43]MH_SAM_APDU [17:47:43]CAPDU: 80 13 01 00 [17:47:43]Write to MH i2c: E2 08 00 79 75 80 13 01 00 00 00 00 00 6B [17:47:43]Write i2c OK [17:47:43]MH_I2C_Read... [17:47:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:43]Read from MH i2c: E2 [17:47:43]MH_I2C_Read... [17:47:43]Read from MH i2c: E2 0E 00 [17:47:43]MH_I2C_Read... [17:47:43]Read from MH i2c: E2 0E 00 79 75 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 38 [17:47:43]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [17:47:43]wFMCommunicate OK [17:47:43]SAM_PROTO_GetShiftState done [17:47:43]FM_GetShiftState done [17:47:43]req_shift_opened done [17:47:43]requested_item shift.open_date is exist - process it [17:47:43]req_shift_open_date [17:47:43]req_shift_open_date done [17:47:43]produce_requested_data done [17:47:43]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156689,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [17:47:43]process_action_free close_receipt [17:47:43]json_value_free [17:47:43]json_value_free done [17:47:43]process_json_proto returns [17:47:43]Send response to host [17:47:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156689,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [17:47:43]free response buf [17:47:43]execute_script done [17:47:43]execute_script returns [17:47:43]free content buf [17:47:43]Sock 10.Close socket [17:47:43]Sock 10.Thread stoped [17:47:43]OFD Sender: No OFD packet to send [17:47:48]OFD Sender: No OFD packet to send [17:47:53]OFD Sender: No OFD packet to send [17:47:58]OFD Sender: No OFD packet to send [17:48:03]OFD Sender: No OFD packet to send [17:48:08]OFD Sender: No OFD packet to send [17:48:13]OFD Sender: No OFD packet to send [17:48:18]OFD Sender: No OFD packet to send [17:48:24]OFD Sender: No OFD packet to send [17:48:29]OFD Sender: No OFD packet to send [17:48:34]OFD Sender: No OFD packet to send [17:48:39]OFD Sender: No OFD packet to send [17:48:44]OFD Sender: No OFD packet to send [17:48:49]OFD Sender: No OFD packet to send [17:48:54]OFD Sender: No OFD packet to send [17:48:55]accept exits with 8 [17:48:55]New connection [17:48:55]New thread 3066834276 created [17:48:55]Thread 3066977636 joined [17:48:55]Waiting for new connection... [17:48:55] Sock 8.Parse request [17:48:55]Sock 8.Check first char [17:48:55]Sock 8.First char is OK [17:48:55]request: POST /json_proto HTTP/1.0 [17:48:55]Method: POST [17:48:55]URL: /json_proto [17:48:55]Method is POST - this is cgi request [17:48:55]url: /json_proto [17:48:55]query_string will be loaded in cgi processing [17:48:55]execute_cgi json_proto POST (null) [17:48:55]execute_cgi path=json_proto method=POST [17:48:55]POST find Content-Length [17:48:55]Host: 172.17.63.3:8080 [17:48:55]Content-Length: 677 [17:48:55]Content-Type: application/json [17:48:55] [17:48:55]POST finish read [17:48:55]Found Content-Length = 677 [17:48:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99504", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.770, "sum" : 720.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 720.00, "total" : 720.00, "payments": [ { "type": 0, "sum" : 720.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:48:55]execute_script... [17:48: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)99504", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.770, "sum" : 720.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 720.00, "total" : 720.00, "payments": [ { "type": 0, "sum" : 720.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:48:55]POST & json_proto [17:48:55]process_json_proto [17:48:55]json parsed OK: [17:48:55]protocol is kg_v1.0 [17:48:55]action value=close_receipt [17:48:55]process_action close_receipt [17:48:55]cmd_close_receipt [17:48:55]MH_GetDate [17:48:55]Write to MH i2c: F0 00 00 7A 75 DE [17:48:55]Write i2c OK [17:48:55]MH_I2C_Read... [17:48:55]Read from MH i2c: F0 [17:48:55]MH_I2C_Read... [17:48:55]Read from MH i2c: F0 09 00 [17:48:55]MH_I2C_Read... [17:48:55]Read from MH i2c: F0 09 00 7A 75 00 0D 7D 1E 67 50 D1 6C 64 E7 [17:48:55]GetLastDocTimeStamp 1730051268 [17:48:55]current date 1730051341 [17:48:55]FM_GetShiftState [17:48:55]SAM_PROTO_GetShiftState [17:48:55]wFMCommunicate request_size=4 [17:48:55]MH_SAM_APDU [17:48:55]CAPDU: 80 13 01 00 [17:48:55]Write to MH i2c: E2 08 00 7B 75 80 13 01 00 00 00 00 00 6D [17:48:55]Write i2c OK [17:48:55]MH_I2C_Read... [17:48:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:48:55]Read from MH i2c: E2 [17:48:55]MH_I2C_Read... [17:48:55]Read from MH i2c: E2 0E 00 [17:48:55]MH_I2C_Read... [17:48:55]Read from MH i2c: E2 0E 00 7B 75 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 3A [17:48:55]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [17:48:55]wFMCommunicate OK [17:48:55]SAM_PROTO_GetShiftState done [17:48:55]FM_GetShiftState done [17:48:55]opened in 1729989044 [17:48:55]opened+sec_in_day 1730075444 [17:48:55]quantity*price = 72051 [17:48:55]sum+1 = 72052 [17:48:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 720.00 Внесено: 720.00 СДАЧА: 0.00 НСП 1% : 6.38 НДС 12% : 76.51 Наличными: 720.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 241 27.10.2024 17:49 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156690 ФПД: 125633840953128 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T174901&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156690&fm=125633840953128&tin=02508201610067®Number=0000000000091693&sum=72000 [17:48:56]StoreToDocumentArchive [17:48:56]shift 537 fd 156690 [17:48:56]save to /storage/0537/doc_00156690 [17:48:56]save last doc name /storage/0537/doc_00156690 to /storage/kkm_last_doc_name [17:48:56]save OK [17:48:56]Clear old archive folders... [17:48:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:48:56]tlvbuf is 016E24C0 [17:48:56]SAM_PROTO_ClearQueue [17:48:56]wFMCommunicate request_size=4 [17:48:56]MH_SAM_APDU [17:48:56]CAPDU: 80 09 00 00 [17:48:56]Write to MH i2c: E2 08 00 88 75 80 09 00 00 00 00 00 00 6F [17:48:56]Write i2c OK [17:48:56]MH_I2C_Read... [17:48:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:48:56]Read from MH i2c: E2 [17:48:56]MH_I2C_Read... [17:48:56]Read from MH i2c: E2 03 00 [17:48:56]MH_I2C_Read... [17:48:56]Read from MH i2c: E2 03 00 88 75 00 90 00 71 [17:48:56]RAPDU: 90 00 [17:48:56]wFMCommunicate OK [17:48:56]SAM_PROTO_ClearQueue done [17:48:56]KKMCreateOFDPacket [17:48:56]OFDProtocolAddRootSTLVToBuf [17:48:56]FM_MakeSignedData [17:48:56]FM_MakeSignedData [17:48:56]SAM_PROTO_SignData [17:48:56]wFMCommunicate request_size=4 [17:48:56]MH_SAM_APDU [17:48:56]CAPDU: 80 0D 01 02 [17:48:56]Write to MH i2c: E2 08 00 89 75 80 0D 01 02 00 00 00 00 77 [17:48:56]Write i2c OK [17:48:56]MH_I2C_Read... [17:48:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:48:56]Read from MH i2c: E2 [17:48:56]MH_I2C_Read... [17:48:56]Read from MH i2c: E2 03 00 [17:48:56]MH_I2C_Read... [17:48:56]Read from MH i2c: E2 03 00 89 75 00 90 00 72 [17:48:56]RAPDU: 90 00 [17:48:56]wFMCommunicate OK [17:48:56]wFMCommunicate request_size=255 [17:48:56]MH_SAM_APDU [17:48: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 12 2A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 73 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 1D 00 00 00 00 07 04 06 00 40 19 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 0D 7D 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 12 64 02 00 35 04 06 00 72 [17:48:56]Write to MH i2c: E2 02 01 8A 75 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 2A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 73 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 1D 00 00 00 00 07 04 06 00 40 19 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 0D 7D 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 12 64 02 00 35 04 06 00 72 00 00 C4 [17:48:56]Write i2c OK [17:48:56]MH_I2C_Read... [17:48:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:48:56]Read from MH i2c: E2 [17:48:56]MH_I2C_Read... [17:48:56]Read from MH i2c: E2 03 00 [17:48:56]MH_I2C_Read... [17:48:56]Read from MH i2c: E2 03 00 8A 75 00 90 00 73 [17:48:56]RAPDU: 90 00 [17:48:56]wFMCommunicate OK [17:48:56]wFMCommunicate request_size=10 [17:48:56]MH_SAM_APDU [17:48:56]CAPDU: 80 0D 02 02 05 43 68 76 37 28 [17:48:56]Write to MH i2c: E2 0D 00 8B 75 80 0D 02 02 05 00 43 68 76 37 28 00 00 04 [17:48:56]Write i2c OK [17:48:56]MH_I2C_Read... [17:48:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:48:56]Read from MH i2c: E2 [17:48:56]MH_I2C_Read... [17:48:56]Read from MH i2c: E2 03 00 [17:48:56]MH_I2C_Read... [17:48:56]Read from MH i2c: E2 03 00 8B 75 00 90 00 74 [17:48:56]RAPDU: 90 00 [17:48:56]wFMCommunicate OK [17:48:56]wFMCommunicate request_size=4 [17:48:56]MH_SAM_APDU [17:48:56]CAPDU: 80 0D 03 02 [17:48:56]Write to MH i2c: E2 08 00 8C 75 80 0D 03 02 00 00 00 00 7C [17:48:56]Write i2c OK [17:48:56]MH_I2C_Read... [17:48:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:48:56]Read from MH i2c: E2 [17:48:56]MH_I2C_Read... [17:48:56]Read from MH i2c: E2 0B 00 [17:48:56]MH_I2C_Read... [17:48:56]Read from MH i2c: E2 0B 00 8C 75 00 45 A1 3E 75 5B DC F1 0D 90 00 4B [17:48:56]RAPDU: 45 A1 3E 75 5B DC F1 0D 90 00 [17:48:56]wFMCommunicate OK [17:48:56]SAM_PROTO_SignData done [17:48:56]FM_MakeSignedData done [17:48:56]CreateOFDProtocolMessage [17:48:56]wFMCommunicate request_size=4 [17:48:56]MH_SAM_APDU [17:48:56]CAPDU: 80 11 00 00 [17:48:56]Write to MH i2c: E2 08 00 8D 75 80 11 00 00 00 00 00 00 7C [17:48:56]Write i2c OK [17:48:56]MH_I2C_Read... [17:48:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:56]Read from MH i2c: E2 [17:48:56]MH_I2C_Read... [17:48:56]Read from MH i2c: E2 17 00 [17:48:56]MH_I2C_Read... [17:48:56]Read from MH i2c: E2 17 00 8D 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 D1 [17:48:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:48:56]wFMCommunicate OK [17:48:56]CreateOFDProtocolMessage done [17:48:56]OFDSenderStorePacket 156690 [17:48:56]StoreOFDPacket docnum=156690 [17:48:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 0D B8 07 01 43 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 2A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 73 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 1D 00 00 00 00 07 04 06 00 40 19 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 0D 7D 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 12 64 02 00 35 04 06 00 72 43 68 76 37 28 45 A1 3E 75 5B DC F1 0D [17:48:56]CheckFolder [17:48:56]dirname=/storage/ofd_packets [17:48:56]CheckFolder done [17:48:56]ProducePacketName [17:48:56]name=ofd_packets/00156690 [17:48:56]NVStorageSaveData ofd_packets/00156690 [17:48:56]File name is /storage/ofd_packets/00156690 [17:48:56]Write 301 bytes [17:48:56]NVStorageSaveData done [17:48:56]OFDSenderStorePacket done [17:48:56]KKMCreateOFDPacket done [17:48:56]NVStorageSaveData kkm_last_timestamp [17:48:56]File name is /storage/kkm_last_timestamp [17:48:56]Write 4 bytes [17:48:56]NVStorageSaveData done [17:48:56]ExternCall_PrintAddStr [17:48:56]wPrintStart [17:48:56]Write to MH i2c: 01 00 00 8E 75 03 [17:48:56]Write i2c OK [17:48:56]MH_I2C_Read... [17:48:56]Read from MH i2c: 01 [17:48:56]MH_I2C_Read... [17:48:56]Read from MH i2c: 01 07 00 [17:48:56]MH_I2C_Read... [17:48:56]Read from MH i2c: 01 07 00 8E 75 00 00 00 00 00 FF 0F 18 [17:48:56]RasterBufferAndPrint [17:48:56]line Счет N : (1)99504 [17:48:56]line ИНН: 02508201610067 [17:48:56]line Контрольно-Кассовый Чек [17:48:56]line ПРОДАЖА [17:48:56]line ТРК (МРК, ГНК) : 31 [17:48:56]line Товар: 2710124130 [17:48:56]line Аи-92-К-5 [17:48:56]line 10.770 * 66.90 [17:48:56]line = 720.51 [17:48:56]line НДС 12% НСП 1% [17:48:56]line > о реализуемом товаре [17:48:56]line ОКРУГЛЕНИЕ: -0.51 [17:48:56]line ИТОГО: 720.00 [17:48:56]line Внесено: 720.00 [17:48:56]line СДАЧА: 0.00 [17:48:56]line НСП 1% : 6.38 [17:48:56]line НДС 12% : 76.51 [17:48:56]line Наличными: 720.00 [17:48:56]line Безнал.: 0.00 [17:48:56]line Место: АЗС № 143 "Партнер Нефть" [17:48:56]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [17:48:56]line СНО: Общий режим [17:48:56]line Чек 241 27.10.2024 17:49 [17:48:56]line Смена: 537 ФФД: 1.0 [17:48:56]line ЗНМ: 0300000096 [17:48:56]line РНМ: 0000000000091693 [17:48:56]line Версия ККМ: 001 [17:48:56]line ФМ: 0000000000871792 [17:48:56]line ФД: 156690 [17:48:56]line ФПД: 125633840953128 [17:48:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T174901&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156690&fm=125633840953128&tin=02508201610067®Number=0000000000091693&sum=72000 [17:48:57]OFD Sender: Processing packet 156690 [packets to send 31, broken 30] [17:48:57]ProducePacketName [17:48:57]name=ofd_packets/00156690 [17:48:57]OFD Sender: To server: pG, [17:48:57]CommunicateWithHost lk.salyk.kg:30040 [17:48:57]ConnectInit lk.salyk.kg [17:48:57]written 0, free lines is 4095 [17:48:57]Connected sock=10 [17:48:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 0D B8 07 01 43 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 2A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 73 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E3 1D 00 00 00 00 07 04 06 00 40 19 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 0D 7D 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 12 64 02 00 35 04 06 00 72 43 68 76 37 28 45 A1 3E 75 5B DC F1 0D [17:48:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 C7 F5 47 00 F7 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 12 64 02 00 F4 03 04 00 7C 22 1E 67 B6 04 01 00 00 63 A0 3F 7D D6 0C E8 97 [17:48:57]CommunicateWithHost err = 0 [17:48:57]CheckOFDResponse [17:48:57]1017 (14) - 77093643461234 [17:48:57]1041 (16) - 0000000000871792 [17:48:57]1040 (4) - 156690 [17:48:57]1012 (4) - 27.10.2024 11:22 [17:48:57]1206 (1) - 0 [17:48:57]OFD Sender: Remove packet 156690 [17:48:57]ProducePacketName [17:48:57]name=ofd_packets/00156690 [17:48:57]NVStorageDeleteData [17:48:57]Write to MH i2c: 01 00 00 B9 75 2E [17:48:57]Write i2c OK [17:48:57]MH_I2C_Read... [17:48:57]Read from MH i2c: 01 [17:48:57]MH_I2C_Read... [17:48:57]Read from MH i2c: 01 07 00 [17:48:57]MH_I2C_Read... [17:48:57]Read from MH i2c: 01 07 00 B9 75 00 00 00 00 00 DD 0C 1E [17:48:57]RasterBufferAndPrint [17:48:57]line [17:48:57]line [17:48:57]line [17:48:57]line [17:48:57]line [17:48:57]written 0, free lines is 3299 [17:48:57]process_action close_receipt done [17:48:57]requested_data is exist [17:48:57]produce_requested_data [17:48:57]requested_item fm.sn is exist - process it [17:48:57]wFMCommunicate request_size=4 [17:48:57]MH_SAM_APDU [17:48:57]CAPDU: 80 11 00 00 [17:48:57]Write to MH i2c: E2 08 00 C0 75 80 11 00 00 00 00 00 00 AF [17:48:57]Write i2c OK [17:48:57]MH_I2C_Read... [17:48:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:57]Read from MH i2c: E2 [17:48:57]MH_I2C_Read... [17:48:57]Read from MH i2c: E2 17 00 [17:48:57]MH_I2C_Read... [17:48:57]Read from MH i2c: E2 17 00 C0 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 04 [17:48:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:48:57]wFMCommunicate OK [17:48:57]requested_item fd.num is exist - process it [17:48:57]SAM_PROTO_GetFieldsCounters [17:48:57]wFMCommunicate request_size=4 [17:48:57]MH_SAM_APDU [17:48:57]CAPDU: 80 13 00 00 [17:48:57]Write to MH i2c: E2 08 00 C1 75 80 13 00 00 00 00 00 00 B2 [17:48:57]Write i2c OK [17:48:57]MH_I2C_Read... [17:48:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:48:57]Read from MH i2c: E2 [17:48:57]MH_I2C_Read... [17:48:57]Read from MH i2c: E2 62 00 [17:48:57]MH_I2C_Read... [17:48:57]Read from MH i2c: E2 62 00 C1 75 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 12 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 3E [17:48:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 12 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:48:57]wFMCommunicate OK [17:48:57]SAM_PROTO_GetFieldsCounters done [17:48:57]requested_item shift.num is exist - process it [17:48:57]requested_item shift.opened is exist - process it [17:48:57]req_shift_opened [17:48:57]FM_GetShiftState [17:48:57]SAM_PROTO_GetShiftState [17:48:57]wFMCommunicate request_size=4 [17:48:57]MH_SAM_APDU [17:48:57]CAPDU: 80 13 01 00 [17:48:57]Write to MH i2c: E2 08 00 C2 75 80 13 01 00 00 00 00 00 B4 [17:48:57]Write i2c OK [17:48:57]MH_I2C_Read... [17:48:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:48:57]Read from MH i2c: E2 [17:48:57]MH_I2C_Read... [17:48:57]Read from MH i2c: E2 0E 00 [17:48:57]MH_I2C_Read... [17:48:57]Read from MH i2c: E2 0E 00 C2 75 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 81 [17:48:57]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [17:48:57]wFMCommunicate OK [17:48:57]SAM_PROTO_GetShiftState done [17:48:57]FM_GetShiftState done [17:48:57]req_shift_opened done [17:48:57]requested_item shift.open_date is exist - process it [17:48:57]req_shift_open_date [17:48:57]req_shift_open_date done [17:48:57]produce_requested_data done [17:48:57]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156690,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [17:48:57]process_action_free close_receipt [17:48:57]json_value_free [17:48:57]json_value_free done [17:48:57]process_json_proto returns [17:48:57]Send response to host [17:48:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156690,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [17:48:57]free response buf [17:48:57]execute_script done [17:48:57]execute_script returns [17:48:57]free content buf [17:48:57]Sock 8.Close socket [17:48:57]Sock 8.Thread stoped [17:48:57]OFD Sender: No OFD packet to send [17:49:02]OFD Sender: No OFD packet to send [17:49:07]OFD Sender: No OFD packet to send [17:49:12]OFD Sender: No OFD packet to send [17:49:17]OFD Sender: No OFD packet to send [17:49:22]OFD Sender: No OFD packet to send [17:49:27]OFD Sender: No OFD packet to send [17:49:32]OFD Sender: No OFD packet to send [17:49:37]OFD Sender: No OFD packet to send [17:49:42]OFD Sender: No OFD packet to send [17:49:47]OFD Sender: No OFD packet to send [17:49:52]OFD Sender: No OFD packet to send [17:49:57]OFD Sender: No OFD packet to send [17:50:02]OFD Sender: No OFD packet to send [17:50:07]OFD Sender: No OFD packet to send [17:50:12]OFD Sender: No OFD packet to send [17:50:17]OFD Sender: No OFD packet to send [17:50:22]OFD Sender: No OFD packet to send [17:50:27]OFD Sender: No OFD packet to send [17:50:33]OFD Sender: No OFD packet to send [17:50:38]OFD Sender: No OFD packet to send [17:50:43]OFD Sender: No OFD packet to send [17:50:48]OFD Sender: No OFD packet to send [17:50:53]OFD Sender: No OFD packet to send [17:50:58]OFD Sender: No OFD packet to send [17:51:03]OFD Sender: No OFD packet to send [17:51:08]OFD Sender: No OFD packet to send [17:51:13]OFD Sender: No OFD packet to send [17:51:18]OFD Sender: No OFD packet to send [17:51:23]OFD Sender: No OFD packet to send [17:51:28]OFD Sender: No OFD packet to send [17:51:33]OFD Sender: No OFD packet to send [17:51:38]OFD Sender: No OFD packet to send [17:51:43]OFD Sender: No OFD packet to send [17:51:48]OFD Sender: No OFD packet to send [17:51:53]OFD Sender: No OFD packet to send [17:51:58]OFD Sender: No OFD packet to send [17:52:03]OFD Sender: No OFD packet to send [17:52:08]OFD Sender: No OFD packet to send [17:52:13]OFD Sender: No OFD packet to send [17:52:18]OFD Sender: No OFD packet to send [17:52:23]OFD Sender: No OFD packet to send [17:52:28]OFD Sender: No OFD packet to send [17:52:33]OFD Sender: No OFD packet to send [17:52:38]OFD Sender: No OFD packet to send [17:52:43]OFD Sender: No OFD packet to send [17:52:48]OFD Sender: No OFD packet to send [17:52:53]OFD Sender: No OFD packet to send [17:52:58]OFD Sender: No OFD packet to send [17:53:03]OFD Sender: No OFD packet to send [17:53:08]OFD Sender: No OFD packet to send [17:53:13]OFD Sender: No OFD packet to send [17:53:18]OFD Sender: No OFD packet to send [17:53:23]OFD Sender: No OFD packet to send [17:53:28]OFD Sender: No OFD packet to send [17:53:33]OFD Sender: No OFD packet to send [17:53:38]OFD Sender: No OFD packet to send [17:53:43]OFD Sender: No OFD packet to send [17:53:48]OFD Sender: No OFD packet to send [17:53:53]OFD Sender: No OFD packet to send [17:53:58]OFD Sender: No OFD packet to send [17:54:03]OFD Sender: No OFD packet to send [17:54:08]OFD Sender: No OFD packet to send [17:54:13]OFD Sender: No OFD packet to send [17:54:18]OFD Sender: No OFD packet to send [17:54:23]OFD Sender: No OFD packet to send [17:54:28]OFD Sender: No OFD packet to send [17:54:33]OFD Sender: No OFD packet to send [17:54:38]OFD Sender: No OFD packet to send [17:54:43]OFD Sender: No OFD packet to send [17:54:48]OFD Sender: No OFD packet to send [17:54:53]OFD Sender: No OFD packet to send [17:54:58]OFD Sender: No OFD packet to send [17:55:03]OFD Sender: No OFD packet to send [17:55:08]OFD Sender: No OFD packet to send [17:55:13]OFD Sender: No OFD packet to send [17:55:18]OFD Sender: No OFD packet to send [17:55:23]OFD Sender: No OFD packet to send [17:55:28]OFD Sender: No OFD packet to send [17:55:33]OFD Sender: No OFD packet to send [17:55:38]OFD Sender: No OFD packet to send [17:55:43]OFD Sender: No OFD packet to send [17:55:48]OFD Sender: No OFD packet to send [17:55:53]OFD Sender: No OFD packet to send [17:55:58]OFD Sender: No OFD packet to send [17:56:03]OFD Sender: No OFD packet to send [17:56:08]OFD Sender: No OFD packet to send [17:56:13]OFD Sender: No OFD packet to send [17:56:18]OFD Sender: No OFD packet to send [17:56:23]OFD Sender: No OFD packet to send [17:56:28]OFD Sender: No OFD packet to send [17:56:33]OFD Sender: No OFD packet to send [17:56:38]OFD Sender: No OFD packet to send [17:56:43]OFD Sender: No OFD packet to send [17:56:48]OFD Sender: No OFD packet to send [17:56:53]OFD Sender: No OFD packet to send [17:56:58]OFD Sender: No OFD packet to send [17:57:03]OFD Sender: No OFD packet to send [17:57:08]OFD Sender: No OFD packet to send [17:57:13]OFD Sender: No OFD packet to send [17:57:18]OFD Sender: No OFD packet to send [17:57:23]OFD Sender: No OFD packet to send [17:57:28]OFD Sender: No OFD packet to send [17:57:29]accept exits with 9 [17:57:29]New connection [17:57:29]New thread 3066977636 created [17:57:29]Thread 3066834276 joined [17:57:29]Waiting for new connection... [17:57:29] Sock 9.Parse request [17:57:29]Sock 9.Check first char [17:57:29]Sock 9.First char is OK [17:57:29]request: POST /json_proto HTTP/1.0 [17:57:29]Method: POST [17:57:29]URL: /json_proto [17:57:29]Method is POST - this is cgi request [17:57:29]url: /json_proto [17:57:29]query_string will be loaded in cgi processing [17:57:29]execute_cgi json_proto POST (null) [17:57:29]execute_cgi path=json_proto method=POST [17:57:29]POST find Content-Length [17:57:29]Host: 172.17.63.3:8080 [17:57:29]Content-Length: 681 [17:57:29]Content-Type: application/json [17:57:29] [17:57:29]POST finish read [17:57:29]Found Content-Length = 681 [17:57:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99505", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:57:29]execute_script... [17:57: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)99505", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:57:29]POST & json_proto [17:57:29]process_json_proto [17:57:29]json parsed OK: [17:57:29]protocol is kg_v1.0 [17:57:29]action value=close_receipt [17:57:29]process_action close_receipt [17:57:29]cmd_close_receipt [17:57:29]MH_GetDate [17:57:29]Write to MH i2c: F0 00 00 C3 75 27 [17:57:29]Write i2c OK [17:57:29]MH_I2C_Read... [17:57:29]Read from MH i2c: F0 [17:57:29]MH_I2C_Read... [17:57:29]Read from MH i2c: F0 09 00 [17:57:29]MH_I2C_Read... [17:57:29]Read from MH i2c: F0 09 00 C3 75 00 10 7F 1E 67 50 D1 6C 64 35 [17:57:29]GetLastDocTimeStamp 1730051341 [17:57:29]current date 1730051856 [17:57:29]FM_GetShiftState [17:57:29]SAM_PROTO_GetShiftState [17:57:29]wFMCommunicate request_size=4 [17:57:29]MH_SAM_APDU [17:57:29]CAPDU: 80 13 01 00 [17:57:29]Write to MH i2c: E2 08 00 C4 75 80 13 01 00 00 00 00 00 B6 [17:57:29]Write i2c OK [17:57:29]MH_I2C_Read... [17:57:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:57:29]Read from MH i2c: E2 [17:57:29]MH_I2C_Read... [17:57:29]Read from MH i2c: E2 0E 00 [17:57:29]MH_I2C_Read... [17:57:29]Read from MH i2c: E2 0E 00 C4 75 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 83 [17:57:29]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [17:57:29]wFMCommunicate OK [17:57:29]SAM_PROTO_GetShiftState done [17:57:29]FM_GetShiftState done [17:57:29]opened in 1729989044 [17:57:29]opened+sec_in_day 1730075444 [17:57:29]quantity*price = 100015 [17:57:29]sum+1 = 100017 [17:57:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 242 27.10.2024 17:57 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156691 ФПД: 260834568862836 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T175736&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156691&fm=260834568862836&tin=02508201610067®Number=0000000000091693&sum=100000 [17:57:31]StoreToDocumentArchive [17:57:31]shift 537 fd 156691 [17:57:31]save to /storage/0537/doc_00156691 [17:57:31]save last doc name /storage/0537/doc_00156691 to /storage/kkm_last_doc_name [17:57:31]save OK [17:57:31]Clear old archive folders... [17:57:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:57:31]tlvbuf is 016F7BB0 [17:57:31]SAM_PROTO_ClearQueue [17:57:31]wFMCommunicate request_size=4 [17:57:31]MH_SAM_APDU [17:57:31]CAPDU: 80 09 00 00 [17:57:31]Write to MH i2c: E2 08 00 D1 75 80 09 00 00 00 00 00 00 B8 [17:57:31]Write i2c OK [17:57:31]MH_I2C_Read... [17:57:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:57:31]Read from MH i2c: E2 [17:57:31]MH_I2C_Read... [17:57:31]Read from MH i2c: E2 03 00 [17:57:31]MH_I2C_Read... [17:57:31]Read from MH i2c: E2 03 00 D1 75 00 90 00 BA [17:57:31]RAPDU: 90 00 [17:57:31]wFMCommunicate OK [17:57:31]SAM_PROTO_ClearQueue done [17:57:31]KKMCreateOFDPacket [17:57:31]OFDProtocolAddRootSTLVToBuf [17:57:31]FM_MakeSignedData [17:57:31]FM_MakeSignedData [17:57:31]SAM_PROTO_SignData [17:57:31]wFMCommunicate request_size=4 [17:57:31]MH_SAM_APDU [17:57:31]CAPDU: 80 0D 01 02 [17:57:31]Write to MH i2c: E2 08 00 D2 75 80 0D 01 02 00 00 00 00 C0 [17:57:31]Write i2c OK [17:57:31]MH_I2C_Read... [17:57:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:57:31]Read from MH i2c: E2 [17:57:31]MH_I2C_Read... [17:57:31]Read from MH i2c: E2 03 00 [17:57:31]MH_I2C_Read... [17:57:31]Read from MH i2c: E2 03 00 D2 75 00 90 00 BB [17:57:31]RAPDU: 90 00 [17:57:31]wFMCommunicate OK [17:57:31]wFMCommunicate request_size=255 [17:57:31]MH_SAM_APDU [17:57: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 10 7F 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 13 64 02 00 35 04 06 00 ED [17:57:31]Write to MH i2c: E2 02 01 D3 75 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 10 7F 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 13 64 02 00 35 04 06 00 ED 00 00 D5 [17:57:31]Write i2c OK [17:57:31]MH_I2C_Read... [17:57:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:57:31]Read from MH i2c: E2 [17:57:31]MH_I2C_Read... [17:57:31]Read from MH i2c: E2 03 00 [17:57:31]MH_I2C_Read... [17:57:31]Read from MH i2c: E2 03 00 D3 75 00 90 00 BC [17:57:31]RAPDU: 90 00 [17:57:31]wFMCommunicate OK [17:57:31]wFMCommunicate request_size=10 [17:57:31]MH_SAM_APDU [17:57:31]CAPDU: 80 0D 02 02 05 3A 47 D2 7C 74 [17:57:31]Write to MH i2c: E2 0D 00 D4 75 80 0D 02 02 05 00 3A 47 D2 7C 74 00 00 10 [17:57:31]Write i2c OK [17:57:31]MH_I2C_Read... [17:57:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:57:31]Read from MH i2c: E2 [17:57:31]MH_I2C_Read... [17:57:31]Read from MH i2c: E2 03 00 [17:57:31]MH_I2C_Read... [17:57:31]Read from MH i2c: E2 03 00 D4 75 00 90 00 BD [17:57:31]RAPDU: 90 00 [17:57:31]wFMCommunicate OK [17:57:31]wFMCommunicate request_size=4 [17:57:31]MH_SAM_APDU [17:57:31]CAPDU: 80 0D 03 02 [17:57:31]Write to MH i2c: E2 08 00 D5 75 80 0D 03 02 00 00 00 00 C5 [17:57:31]Write i2c OK [17:57:31]MH_I2C_Read... [17:57:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:57:31]Read from MH i2c: E2 [17:57:31]MH_I2C_Read... [17:57:31]Read from MH i2c: E2 0B 00 [17:57:31]MH_I2C_Read... [17:57:31]Read from MH i2c: E2 0B 00 D5 75 00 E9 A7 10 95 09 BC 92 FE 90 00 50 [17:57:31]RAPDU: E9 A7 10 95 09 BC 92 FE 90 00 [17:57:31]wFMCommunicate OK [17:57:31]SAM_PROTO_SignData done [17:57:31]FM_MakeSignedData done [17:57:31]CreateOFDProtocolMessage [17:57:31]wFMCommunicate request_size=4 [17:57:31]MH_SAM_APDU [17:57:31]CAPDU: 80 11 00 00 [17:57:31]Write to MH i2c: E2 08 00 D6 75 80 11 00 00 00 00 00 00 C5 [17:57:31]Write i2c OK [17:57:31]MH_I2C_Read... [17:57:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:57:31]Read from MH i2c: E2 [17:57:31]MH_I2C_Read... [17:57:31]Read from MH i2c: E2 17 00 [17:57:31]MH_I2C_Read... [17:57:31]Read from MH i2c: E2 17 00 D6 75 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 1A [17:57:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:57:31]wFMCommunicate OK [17:57:31]CreateOFDProtocolMessage done [17:57:31]OFDSenderStorePacket 156691 [17:57:31]StoreOFDPacket docnum=156691 [17:57:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 E7 7A 07 01 CF 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 10 7F 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 13 64 02 00 35 04 06 00 ED 3A 47 D2 7C 74 E9 A7 10 95 09 BC 92 FE [17:57:31]CheckFolder [17:57:31]dirname=/storage/ofd_packets [17:57:31]CheckFolder done [17:57:31]ProducePacketName [17:57:31]name=ofd_packets/00156691 [17:57:31]NVStorageSaveData ofd_packets/00156691 [17:57:31]File name is /storage/ofd_packets/00156691 [17:57:31]Write 301 bytes [17:57:31]NVStorageSaveData done [17:57:31]OFDSenderStorePacket done [17:57:31]KKMCreateOFDPacket done [17:57:31]NVStorageSaveData kkm_last_timestamp [17:57:31]File name is /storage/kkm_last_timestamp [17:57:31]Write 4 bytes [17:57:31]NVStorageSaveData done [17:57:31]ExternCall_PrintAddStr [17:57:31]wPrintStart [17:57:31]Write to MH i2c: 01 00 00 D7 75 4C [17:57:31]Write i2c OK [17:57:31]MH_I2C_Read... [17:57:31]Read from MH i2c: 01 [17:57:31]MH_I2C_Read... [17:57:31]Read from MH i2c: 01 07 00 [17:57:31]MH_I2C_Read... [17:57:31]Read from MH i2c: 01 07 00 D7 75 00 00 00 00 00 FF 0F 61 [17:57:31]RasterBufferAndPrint [17:57:31]line Счет N : (1)99505 [17:57:31]line ИНН: 02508201610067 [17:57:31]line Контрольно-Кассовый Чек [17:57:31]line ПРОДАЖА [17:57:31]line ТРК (МРК, ГНК) : 31 [17:57:31]line Товар: 2710124130 [17:57:31]line Аи-92-К-5 [17:57:31]line 14.950 * 66.90 [17:57:31]line = 1000.16 [17:57:31]line НДС 12% НСП 1% [17:57:31]line > о реализуемом товаре [17:57:31]line ОКРУГЛЕНИЕ: -0.16 [17:57:31]line ИТОГО: 1000.00 [17:57:31]line Внесено: 1000.00 [17:57:31]line СДАЧА: 0.00 [17:57:31]line НСП 1% : 8.85 [17:57:31]line НДС 12% : 106.21 [17:57:31]line Наличными: 1000.00 [17:57:31]line Безнал.: 0.00 [17:57:31]line Место: АЗС № 143 "Партнер Нефть" [17:57:31]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [17:57:31]line СНО: Общий режим [17:57:31]line Чек 242 27.10.2024 17:57 [17:57:31]line Смена: 537 ФФД: 1.0 [17:57:31]line ЗНМ: 0300000096 [17:57:31]line РНМ: 0000000000091693 [17:57:31]line Версия ККМ: 001 [17:57:31]line ФМ: 0000000000871792 [17:57:31]line ФД: 156691 [17:57:31]line ФПД: 260834568862836 [17:57:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T175736&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156691&fm=260834568862836&tin=02508201610067®Number=0000000000091693&sum=100000 [17:57:31]written 0, free lines is 4095 [17:57:31]OFD Sender: Processing packet 156691 [packets to send 31, broken 30] [17:57:31]ProducePacketName [17:57:31]name=ofd_packets/00156691 [17:57:31]OFD Sender: To server: pG, [17:57:31]CommunicateWithHost lk.salyk.kg:30040 [17:57:31]ConnectInit lk.salyk.kg [17:57:31]Connected sock=10 [17:57:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 E7 7A 07 01 CF 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 10 7F 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 13 64 02 00 35 04 06 00 ED 3A 47 D2 7C 74 E9 A7 10 95 09 BC 92 FE [17:57:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 4B F2 47 00 D7 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 13 64 02 00 F4 03 04 00 7F 24 1E 67 B6 04 01 00 00 30 FA 4D E7 54 F8 36 2F [17:57:32]CommunicateWithHost err = 0 [17:57:32]CheckOFDResponse [17:57:32]1017 (14) - 77093643461234 [17:57:32]1041 (16) - 0000000000871792 [17:57:32]1040 (4) - 156691 [17:57:32]1012 (4) - 27.10.2024 11:31 [17:57:32]1206 (1) - 0 [17:57:32]OFD Sender: Remove packet 156691 [17:57:32]ProducePacketName [17:57:32]name=ofd_packets/00156691 [17:57:32]NVStorageDeleteData [17:57:32]Write to MH i2c: 01 00 00 02 76 78 [17:57:32]Write i2c OK [17:57:32]MH_I2C_Read... [17:57:32]Read from MH i2c: 01 [17:57:32]MH_I2C_Read... [17:57:32]Read from MH i2c: 01 07 00 [17:57:32]MH_I2C_Read... [17:57:32]Read from MH i2c: 01 07 00 02 76 00 00 00 00 00 DD 0C 68 [17:57:32]RasterBufferAndPrint [17:57:32]line [17:57:32]line [17:57:32]line [17:57:32]line [17:57:32]line [17:57:32]written 0, free lines is 3299 [17:57:32]process_action close_receipt done [17:57:32]requested_data is exist [17:57:32]produce_requested_data [17:57:32]requested_item fm.sn is exist - process it [17:57:32]wFMCommunicate request_size=4 [17:57:32]MH_SAM_APDU [17:57:32]CAPDU: 80 11 00 00 [17:57:32]Write to MH i2c: E2 08 00 09 76 80 11 00 00 00 00 00 00 F9 [17:57:32]Write i2c OK [17:57:32]MH_I2C_Read... [17:57:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:57:32]Read from MH i2c: E2 [17:57:32]MH_I2C_Read... [17:57:32]Read from MH i2c: E2 17 00 [17:57:32]MH_I2C_Read... [17:57:32]Read from MH i2c: E2 17 00 09 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 4E [17:57:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [17:57:32]wFMCommunicate OK [17:57:32]requested_item fd.num is exist - process it [17:57:32]SAM_PROTO_GetFieldsCounters [17:57:32]wFMCommunicate request_size=4 [17:57:32]MH_SAM_APDU [17:57:32]CAPDU: 80 13 00 00 [17:57:32]Write to MH i2c: E2 08 00 0A 76 80 13 00 00 00 00 00 00 FC [17:57:32]Write i2c OK [17:57:32]MH_I2C_Read... [17:57:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:57:32]Read from MH i2c: E2 [17:57:32]MH_I2C_Read... [17:57:32]Read from MH i2c: E2 62 00 [17:57:32]MH_I2C_Read... [17:57:32]Read from MH i2c: E2 62 00 0A 76 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 13 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 8C [17:57:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 13 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:57:32]wFMCommunicate OK [17:57:32]SAM_PROTO_GetFieldsCounters done [17:57:32]requested_item shift.num is exist - process it [17:57:32]requested_item shift.opened is exist - process it [17:57:32]req_shift_opened [17:57:32]FM_GetShiftState [17:57:32]SAM_PROTO_GetShiftState [17:57:32]wFMCommunicate request_size=4 [17:57:32]MH_SAM_APDU [17:57:32]CAPDU: 80 13 01 00 [17:57:32]Write to MH i2c: E2 08 00 0B 76 80 13 01 00 00 00 00 00 FE [17:57:32]Write i2c OK [17:57:32]MH_I2C_Read... [17:57:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:57:32]Read from MH i2c: E2 [17:57:32]MH_I2C_Read... [17:57:32]Read from MH i2c: E2 0E 00 [17:57:32]MH_I2C_Read... [17:57:32]Read from MH i2c: E2 0E 00 0B 76 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 CB [17:57:32]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [17:57:32]wFMCommunicate OK [17:57:32]SAM_PROTO_GetShiftState done [17:57:32]FM_GetShiftState done [17:57:32]req_shift_opened done [17:57:32]requested_item shift.open_date is exist - process it [17:57:32]req_shift_open_date [17:57:32]req_shift_open_date done [17:57:32]produce_requested_data done [17:57:32]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156691,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [17:57:32]process_action_free close_receipt [17:57:32]json_value_free [17:57:32]json_value_free done [17:57:32]process_json_proto returns [17:57:32]Send response to host [17:57:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156691,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [17:57:32]free response buf [17:57:32]execute_script done [17:57:32]execute_script returns [17:57:32]free content buf [17:57:32]Sock 9.Close socket [17:57:32]Sock 9.Thread stoped [17:57:32]OFD Sender: No OFD packet to send [17:57:37]OFD Sender: No OFD packet to send [17:57:42]OFD Sender: No OFD packet to send [17:57:47]OFD Sender: No OFD packet to send [17:57:52]OFD Sender: No OFD packet to send [17:57:57]OFD Sender: No OFD packet to send [17:58:02]OFD Sender: No OFD packet to send [17:58:07]OFD Sender: No OFD packet to send [17:58:12]OFD Sender: No OFD packet to send [17:58:17]OFD Sender: No OFD packet to send [17:58:22]OFD Sender: No OFD packet to send [17:58:27]OFD Sender: No OFD packet to send [17:58:32]OFD Sender: No OFD packet to send [17:58:37]OFD Sender: No OFD packet to send [17:58:42]OFD Sender: No OFD packet to send [17:58:47]OFD Sender: No OFD packet to send [17:58:52]OFD Sender: No OFD packet to send [17:58:57]OFD Sender: No OFD packet to send [17:59:02]OFD Sender: No OFD packet to send [17:59:07]OFD Sender: No OFD packet to send [17:59:12]OFD Sender: No OFD packet to send [17:59:17]OFD Sender: No OFD packet to send [17:59:22]OFD Sender: No OFD packet to send [17:59:27]OFD Sender: No OFD packet to send [17:59:32]OFD Sender: No OFD packet to send [17:59:37]OFD Sender: No OFD packet to send [17:59:42]OFD Sender: No OFD packet to send [17:59:47]OFD Sender: No OFD packet to send [17:59:52]OFD Sender: No OFD packet to send [17:59:57]OFD Sender: No OFD packet to send [18:00:02]OFD Sender: No OFD packet to send [18:00:07]OFD Sender: No OFD packet to send [18:00:12]OFD Sender: No OFD packet to send [18:00:17]OFD Sender: No OFD packet to send [18:00:22]OFD Sender: No OFD packet to send [18:00:27]OFD Sender: No OFD packet to send [18:00:32]OFD Sender: No OFD packet to send [18:00:37]OFD Sender: No OFD packet to send [18:00:42]OFD Sender: No OFD packet to send [18:00:47]OFD Sender: No OFD packet to send [18:00:52]OFD Sender: No OFD packet to send [18:00:57]OFD Sender: No OFD packet to send [18:01:02]OFD Sender: No OFD packet to send [18:01:07]OFD Sender: No OFD packet to send [18:01:12]OFD Sender: No OFD packet to send [18:01:17]OFD Sender: No OFD packet to send [18:01:22]OFD Sender: No OFD packet to send [18:01:27]OFD Sender: No OFD packet to send [18:01:32]OFD Sender: No OFD packet to send [18:01:37]OFD Sender: No OFD packet to send [18:01:38]accept exits with 8 [18:01:38]New connection [18:01:38]New thread 3066834276 created [18:01:38]Thread 3066977636 joined [18:01:38]Waiting for new connection... [18:01:38] Sock 8.Parse request [18:01:38]Sock 8.Check first char [18:01:38]Sock 8.First char is OK [18:01:38]request: POST /json_proto HTTP/1.0 [18:01:38]Method: POST [18:01:38]URL: /json_proto [18:01:38]Method is POST - this is cgi request [18:01:38]url: /json_proto [18:01:38]query_string will be loaded in cgi processing [18:01:38]execute_cgi json_proto POST (null) [18:01:38]execute_cgi path=json_proto method=POST [18:01:38]POST find Content-Length [18:01:38]Host: 172.17.63.3:8080 [18:01:38]Content-Length: 677 [18:01:38]Content-Type: application/json [18:01:38] [18:01:38]POST finish read [18:01:38]Found Content-Length = 677 [18:01:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99506", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "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" ] } } [18:01:38]execute_script... [18:01: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)99506", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "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" ] } } [18:01:38]POST & json_proto [18:01:38]process_json_proto [18:01:38]json parsed OK: [18:01:38]protocol is kg_v1.0 [18:01:38]action value=close_receipt [18:01:38]process_action close_receipt [18:01:38]cmd_close_receipt [18:01:38]MH_GetDate [18:01:38]Write to MH i2c: F0 00 00 0C 76 71 [18:01:38]Write i2c OK [18:01:38]MH_I2C_Read... [18:01:38]Read from MH i2c: F0 [18:01:38]MH_I2C_Read... [18:01:38]Read from MH i2c: F0 09 00 [18:01:38]MH_I2C_Read... [18:01:38]Read from MH i2c: F0 09 00 0C 76 00 09 80 1E 67 50 D1 6C 64 79 [18:01:38]GetLastDocTimeStamp 1730051856 [18:01:38]current date 1730052105 [18:01:38]FM_GetShiftState [18:01:38]SAM_PROTO_GetShiftState [18:01:38]wFMCommunicate request_size=4 [18:01:38]MH_SAM_APDU [18:01:38]CAPDU: 80 13 01 00 [18:01:38]Write to MH i2c: E2 08 00 0D 76 80 13 01 00 00 00 00 00 00 [18:01:38]Write i2c OK [18:01:38]MH_I2C_Read... [18:01:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:01:38]Read from MH i2c: E2 [18:01:38]MH_I2C_Read... [18:01:38]Read from MH i2c: E2 0E 00 [18:01:38]MH_I2C_Read... [18:01:38]Read from MH i2c: E2 0E 00 0D 76 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 CD [18:01:38]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [18:01:38]wFMCommunicate OK [18:01:38]SAM_PROTO_GetShiftState done [18:01:38]FM_GetShiftState done [18:01:38]opened in 1729989044 [18:01:38]opened+sec_in_day 1730075444 [18:01:38]quantity*price = 70044 [18:01:38]sum+1 = 70045 [18:01:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 243 27.10.2024 18:01 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156692 ФПД: 258867703961772 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T180145&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156692&fm=258867703961772&tin=02508201610067®Number=0000000000091693&sum=70000 [18:01:39]StoreToDocumentArchive [18:01:39]shift 537 fd 156692 [18:01:39]save to /storage/0537/doc_00156692 [18:01:39]save last doc name /storage/0537/doc_00156692 to /storage/kkm_last_doc_name [18:01:39]save OK [18:01:39]Clear old archive folders... [18:01:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:01:39]tlvbuf is 018071A0 [18:01:39]SAM_PROTO_ClearQueue [18:01:39]wFMCommunicate request_size=4 [18:01:39]MH_SAM_APDU [18:01:39]CAPDU: 80 09 00 00 [18:01:39]Write to MH i2c: E2 08 00 1A 76 80 09 00 00 00 00 00 00 02 [18:01:39]Write i2c OK [18:01:39]MH_I2C_Read... [18:01:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:01:39]Read from MH i2c: E2 [18:01:39]MH_I2C_Read... [18:01:39]Read from MH i2c: E2 03 00 [18:01:39]MH_I2C_Read... [18:01:39]Read from MH i2c: E2 03 00 1A 76 00 90 00 04 [18:01:39]RAPDU: 90 00 [18:01:39]wFMCommunicate OK [18:01:39]SAM_PROTO_ClearQueue done [18:01:39]KKMCreateOFDPacket [18:01:39]OFDProtocolAddRootSTLVToBuf [18:01:39]FM_MakeSignedData [18:01:39]FM_MakeSignedData [18:01:39]SAM_PROTO_SignData [18:01:39]wFMCommunicate request_size=4 [18:01:39]MH_SAM_APDU [18:01:39]CAPDU: 80 0D 01 02 [18:01:39]Write to MH i2c: E2 08 00 1B 76 80 0D 01 02 00 00 00 00 0A [18:01:39]Write i2c OK [18:01:39]MH_I2C_Read... [18:01:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:01:39]Read from MH i2c: E2 [18:01:39]MH_I2C_Read... [18:01:39]Read from MH i2c: E2 03 00 [18:01:39]MH_I2C_Read... [18:01:39]Read from MH i2c: E2 03 00 1B 76 00 90 00 05 [18:01:39]RAPDU: 90 00 [18:01:39]wFMCommunicate OK [18:01:39]wFMCommunicate request_size=255 [18:01:39]MH_SAM_APDU [18:01: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 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 F3 00 00 00 F4 03 04 00 09 80 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 14 64 02 00 35 04 06 00 EB [18:01:39]Write to MH i2c: E2 02 01 1C 76 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 F3 00 00 00 F4 03 04 00 09 80 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 14 64 02 00 35 04 06 00 EB 00 00 2F [18:01:39]Write i2c OK [18:01:39]MH_I2C_Read... [18:01:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:01:40]Read from MH i2c: E2 [18:01:40]MH_I2C_Read... [18:01:40]Read from MH i2c: E2 03 00 [18:01:40]MH_I2C_Read... [18:01:40]Read from MH i2c: E2 03 00 1C 76 00 90 00 06 [18:01:40]RAPDU: 90 00 [18:01:40]wFMCommunicate OK [18:01:40]wFMCommunicate request_size=10 [18:01:40]MH_SAM_APDU [18:01:40]CAPDU: 80 0D 02 02 05 70 55 89 D8 AC [18:01:40]Write to MH i2c: E2 0D 00 1D 76 80 0D 02 02 05 00 70 55 89 D8 AC 00 00 E9 [18:01:40]Write i2c OK [18:01:40]MH_I2C_Read... [18:01:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:01:40]Read from MH i2c: E2 [18:01:40]MH_I2C_Read... [18:01:40]Read from MH i2c: E2 03 00 [18:01:40]MH_I2C_Read... [18:01:40]Read from MH i2c: E2 03 00 1D 76 00 90 00 07 [18:01:40]RAPDU: 90 00 [18:01:40]wFMCommunicate OK [18:01:40]wFMCommunicate request_size=4 [18:01:40]MH_SAM_APDU [18:01:40]CAPDU: 80 0D 03 02 [18:01:40]Write to MH i2c: E2 08 00 1E 76 80 0D 03 02 00 00 00 00 0F [18:01:40]Write i2c OK [18:01:40]MH_I2C_Read... [18:01:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:01:40]Read from MH i2c: E2 [18:01:40]MH_I2C_Read... [18:01:40]Read from MH i2c: E2 0B 00 [18:01:40]MH_I2C_Read... [18:01:40]Read from MH i2c: E2 0B 00 1E 76 00 F6 5C 18 26 D9 FF F8 5F 90 00 CF [18:01:40]RAPDU: F6 5C 18 26 D9 FF F8 5F 90 00 [18:01:40]wFMCommunicate OK [18:01:40]SAM_PROTO_SignData done [18:01:40]FM_MakeSignedData done [18:01:40]CreateOFDProtocolMessage [18:01:40]wFMCommunicate request_size=4 [18:01:40]MH_SAM_APDU [18:01:40]CAPDU: 80 11 00 00 [18:01:40]Write to MH i2c: E2 08 00 1F 76 80 11 00 00 00 00 00 00 0F [18:01:40]Write i2c OK [18:01:40]MH_I2C_Read... [18:01:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:01:40]Read from MH i2c: E2 [18:01:40]MH_I2C_Read... [18:01:40]Read from MH i2c: E2 17 00 [18:01:40]MH_I2C_Read... [18:01:40]Read from MH i2c: E2 17 00 1F 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 64 [18:01:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:01:40]wFMCommunicate OK [18:01:40]CreateOFDProtocolMessage done [18:01:40]OFDSenderStorePacket 156692 [18:01:40]StoreOFDPacket docnum=156692 [18:01:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 11 32 07 01 B1 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 F3 00 00 00 F4 03 04 00 09 80 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 14 64 02 00 35 04 06 00 EB 70 55 89 D8 AC F6 5C 18 26 D9 FF F8 5F [18:01:40]CheckFolder [18:01:40]dirname=/storage/ofd_packets [18:01:40]CheckFolder done [18:01:40]ProducePacketName [18:01:40]name=ofd_packets/00156692 [18:01:40]NVStorageSaveData ofd_packets/00156692 [18:01:40]File name is /storage/ofd_packets/00156692 [18:01:40]Write 301 bytes [18:01:40]NVStorageSaveData done [18:01:40]OFDSenderStorePacket done [18:01:40]KKMCreateOFDPacket done [18:01:40]NVStorageSaveData kkm_last_timestamp [18:01:40]File name is /storage/kkm_last_timestamp [18:01:40]Write 4 bytes [18:01:40]NVStorageSaveData done [18:01:40]ExternCall_PrintAddStr [18:01:40]wPrintStart [18:01:40]Write to MH i2c: 01 00 00 20 76 96 [18:01:40]Write i2c OK [18:01:40]MH_I2C_Read... [18:01:40]Read from MH i2c: 01 [18:01:40]MH_I2C_Read... [18:01:40]Read from MH i2c: 01 07 00 [18:01:40]MH_I2C_Read... [18:01:40]Read from MH i2c: 01 07 00 20 76 00 00 00 00 00 FF 0F AB [18:01:40]RasterBufferAndPrint [18:01:40]line Счет N : (1)99506 [18:01:40]line ИНН: 02508201610067 [18:01:40]line Контрольно-Кассовый Чек [18:01:40]line ПРОДАЖА [18:01:40]line ТРК (МРК, ГНК) : 31 [18:01:40]line Товар: 2710124130 [18:01:40]line Аи-92-К-5 [18:01:40]line 10.470 * 66.90 [18:01:40]line = 700.44 [18:01:40]line НДС 12% НСП 1% [18:01:40]line > о реализуемом товаре [18:01:40]line ОКРУГЛЕНИЕ: -0.44 [18:01:40]line ИТОГО: 700.00 [18:01:40]line Внесено: 700.00 [18:01:40]line СДАЧА: 0.00 [18:01:40]line НСП 1% : 6.20 [18:01:40]line НДС 12% : 74.38 [18:01:40]line Наличными: 700.00 [18:01:40]line Безнал.: 0.00 [18:01:40]line Место: АЗС № 143 "Партнер Нефть" [18:01:40]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [18:01:40]line СНО: Общий режим [18:01:40]line Чек 243 27.10.2024 18:01 [18:01:40]line Смена: 537 ФФД: 1.0 [18:01:40]line ЗНМ: 0300000096 [18:01:40]line РНМ: 0000000000091693 [18:01:40]line Версия ККМ: 001 [18:01:40]line ФМ: 0000000000871792 [18:01:40]line ФД: 156692 [18:01:40]line ФПД: 258867703961772 [18:01:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T180145&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156692&fm=258867703961772&tin=02508201610067®Number=0000000000091693&sum=70000 [18:01:40]OFD Sender: Processing packet 156692 [packets to send 31, broken 30] [18:01:40]ProducePacketName [18:01:40]name=ofd_packets/00156692 [18:01:40]OFD Sender: To server: pG, [18:01:40]CommunicateWithHost lk.salyk.kg:30040 [18:01:40]ConnectInit lk.salyk.kg [18:01:40]written 0, free lines is 4095 [18:01:40]Connected sock=10 [18:01:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 11 32 07 01 B1 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 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 0E 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 F3 00 00 00 F4 03 04 00 09 80 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 14 64 02 00 35 04 06 00 EB 70 55 89 D8 AC F6 5C 18 26 D9 FF F8 5F [18:01:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 1D 25 47 00 36 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 31 37 39 32 10 04 04 00 14 64 02 00 F4 03 04 00 78 25 1E 67 B6 04 01 00 00 61 28 01 8B C2 A7 87 33 [18:01:40]CommunicateWithHost err = 0 [18:01:40]CheckOFDResponse [18:01:40]1017 (14) - 77093643461234 [18:01:40]1041 (16) - 0000000000871792 [18:01:40]1040 (4) - 156692 [18:01:40]1012 (4) - 27.10.2024 11:35 [18:01:40]1206 (1) - 0 [18:01:40]OFD Sender: Remove packet 156692 [18:01:40]ProducePacketName [18:01:40]name=ofd_packets/00156692 [18:01:40]NVStorageDeleteData [18:01:41]Write to MH i2c: 01 00 00 4B 76 C1 [18:01:41]Write i2c OK [18:01:41]MH_I2C_Read... [18:01:41]Read from MH i2c: 01 [18:01:41]MH_I2C_Read... [18:01:41]Read from MH i2c: 01 07 00 [18:01:41]MH_I2C_Read... [18:01:41]Read from MH i2c: 01 07 00 4B 76 00 00 00 00 00 E4 0C B8 [18:01:41]RasterBufferAndPrint [18:01:41]line [18:01:41]line [18:01:41]line [18:01:41]line [18:01:41]line [18:01:41]written 0, free lines is 3306 [18:01:41]process_action close_receipt done [18:01:41]requested_data is exist [18:01:41]produce_requested_data [18:01:41]requested_item fm.sn is exist - process it [18:01:41]wFMCommunicate request_size=4 [18:01:41]MH_SAM_APDU [18:01:41]CAPDU: 80 11 00 00 [18:01:41]Write to MH i2c: E2 08 00 52 76 80 11 00 00 00 00 00 00 42 [18:01:41]Write i2c OK [18:01:41]MH_I2C_Read... [18:01:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:01:41]Read from MH i2c: E2 [18:01:41]MH_I2C_Read... [18:01:41]Read from MH i2c: E2 17 00 [18:01:41]MH_I2C_Read... [18:01:41]Read from MH i2c: E2 17 00 52 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 97 [18:01:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:01:41]wFMCommunicate OK [18:01:41]requested_item fd.num is exist - process it [18:01:41]SAM_PROTO_GetFieldsCounters [18:01:41]wFMCommunicate request_size=4 [18:01:41]MH_SAM_APDU [18:01:41]CAPDU: 80 13 00 00 [18:01:41]Write to MH i2c: E2 08 00 53 76 80 13 00 00 00 00 00 00 45 [18:01:41]Write i2c OK [18:01:41]MH_I2C_Read... [18:01:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:01:41]Read from MH i2c: E2 [18:01:41]MH_I2C_Read... [18:01:41]Read from MH i2c: E2 62 00 [18:01:41]MH_I2C_Read... [18:01:41]Read from MH i2c: E2 62 00 53 76 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 14 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 D9 [18:01:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 14 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:01:41]wFMCommunicate OK [18:01:41]SAM_PROTO_GetFieldsCounters done [18:01:41]requested_item shift.num is exist - process it [18:01:41]requested_item shift.opened is exist - process it [18:01:41]req_shift_opened [18:01:41]FM_GetShiftState [18:01:41]SAM_PROTO_GetShiftState [18:01:41]wFMCommunicate request_size=4 [18:01:41]MH_SAM_APDU [18:01:41]CAPDU: 80 13 01 00 [18:01:41]Write to MH i2c: E2 08 00 54 76 80 13 01 00 00 00 00 00 47 [18:01:41]Write i2c OK [18:01:41]MH_I2C_Read... [18:01:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:01:41]Read from MH i2c: E2 [18:01:41]MH_I2C_Read... [18:01:41]Read from MH i2c: E2 0E 00 [18:01:41]MH_I2C_Read... [18:01:41]Read from MH i2c: E2 0E 00 54 76 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 14 [18:01:41]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [18:01:41]wFMCommunicate OK [18:01:41]SAM_PROTO_GetShiftState done [18:01:41]FM_GetShiftState done [18:01:41]req_shift_opened done [18:01:41]requested_item shift.open_date is exist - process it [18:01:41]req_shift_open_date [18:01:41]req_shift_open_date done [18:01:41]produce_requested_data done [18:01:41]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156692,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [18:01:41]process_action_free close_receipt [18:01:41]json_value_free [18:01:41]json_value_free done [18:01:41]process_json_proto returns [18:01:41]Send response to host [18:01:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156692,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [18:01:41]free response buf [18:01:41]execute_script done [18:01:41]execute_script returns [18:01:41]free content buf [18:01:41]Sock 8.Close socket [18:01:41]Sock 8.Thread stoped [18:01:41]OFD Sender: No OFD packet to send [18:01:46]OFD Sender: No OFD packet to send [18:01:51]OFD Sender: No OFD packet to send [18:01:56]OFD Sender: No OFD packet to send [18:02:01]OFD Sender: No OFD packet to send [18:02:06]OFD Sender: No OFD packet to send [18:02:11]OFD Sender: No OFD packet to send [18:02:16]OFD Sender: No OFD packet to send [18:02:21]OFD Sender: No OFD packet to send [18:02:26]OFD Sender: No OFD packet to send [18:02:31]OFD Sender: No OFD packet to send [18:02:36]OFD Sender: No OFD packet to send [18:02:41]OFD Sender: No OFD packet to send [18:02:46]OFD Sender: No OFD packet to send [18:02:51]OFD Sender: No OFD packet to send [18:02:56]OFD Sender: No OFD packet to send [18:03:01]OFD Sender: No OFD packet to send [18:03:06]OFD Sender: No OFD packet to send [18:03:11]OFD Sender: No OFD packet to send [18:03:16]OFD Sender: No OFD packet to send [18:03:21]OFD Sender: No OFD packet to send [18:03:26]OFD Sender: No OFD packet to send [18:03:31]OFD Sender: No OFD packet to send [18:03:36]OFD Sender: No OFD packet to send [18:03:41]OFD Sender: No OFD packet to send [18:03:46]OFD Sender: No OFD packet to send [18:03:51]OFD Sender: No OFD packet to send [18:03:56]OFD Sender: No OFD packet to send [18:04:01]OFD Sender: No OFD packet to send [18:04:06]OFD Sender: No OFD packet to send [18:04:11]OFD Sender: No OFD packet to send [18:04:16]OFD Sender: No OFD packet to send [18:04:21]OFD Sender: No OFD packet to send [18:04:23]accept exits with 9 [18:04:23]New connection [18:04:23]New thread 3066977636 created [18:04:23]Thread 3066834276 joined [18:04:23]Waiting for new connection... [18:04:23] Sock 9.Parse request [18:04:23]Sock 9.Check first char [18:04:23]Sock 9.First char is OK [18:04:23]request: POST /json_proto HTTP/1.0 [18:04:23]Method: POST [18:04:23]URL: /json_proto [18:04:23]Method is POST - this is cgi request [18:04:23]url: /json_proto [18:04:23]query_string will be loaded in cgi processing [18:04:23]execute_cgi json_proto POST (null) [18:04:23]execute_cgi path=json_proto method=POST [18:04:23]POST find Content-Length [18:04:23]Host: 172.17.63.3:8080 [18:04:23]Content-Length: 802 [18:04:23]Content-Type: application/json [18:04:23] [18:04:23]POST finish read [18:04:23]Found Content-Length = 802 [18:04:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99507", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3948465.66", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:04:23]execute_script... [18:04: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)99507", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3948465.66", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:04:23]POST & json_proto [18:04:23]process_json_proto [18:04:23]json parsed OK: [18:04:23]protocol is kg_v1.0 [18:04:23]action value=close_receipt [18:04:23]process_action close_receipt [18:04:23]cmd_close_receipt [18:04:23]MH_GetDate [18:04:23]Write to MH i2c: F0 00 00 55 76 BA [18:04:23]Write i2c OK [18:04:23]MH_I2C_Read... [18:04:23]Read from MH i2c: F0 [18:04:23]MH_I2C_Read... [18:04:23]Read from MH i2c: F0 09 00 [18:04:23]MH_I2C_Read... [18:04:23]Read from MH i2c: F0 09 00 55 76 00 AE 80 1E 67 50 D1 6C 64 67 [18:04:23]GetLastDocTimeStamp 1730052105 [18:04:23]current date 1730052270 [18:04:23]FM_GetShiftState [18:04:23]SAM_PROTO_GetShiftState [18:04:23]wFMCommunicate request_size=4 [18:04:23]MH_SAM_APDU [18:04:23]CAPDU: 80 13 01 00 [18:04:23]Write to MH i2c: E2 08 00 56 76 80 13 01 00 00 00 00 00 49 [18:04:23]Write i2c OK [18:04:23]MH_I2C_Read... [18:04:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:04:23]Read from MH i2c: E2 [18:04:23]MH_I2C_Read... [18:04:23]Read from MH i2c: E2 0E 00 [18:04:23]MH_I2C_Read... [18:04:23]Read from MH i2c: E2 0E 00 56 76 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 16 [18:04:23]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [18:04:23]wFMCommunicate OK [18:04:23]SAM_PROTO_GetShiftState done [18:04:23]FM_GetShiftState done [18:04:23]opened in 1729989044 [18:04:23]opened+sec_in_day 1730075444 [18:04:23]quantity*price = 0 [18:04:23]sum+1 = 1 [18:04:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 244 27.10.2024 18:04 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Талоны: Топливные Талоны 3948465.66 ФМ: 0000000000871792 ФД: 156693 ФПД: 267328398226614 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T180430&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156693&fm=267328398226614&tin=02508201610067®Number=0000000000091693&sum=0 [18:04:24]StoreToDocumentArchive [18:04:24]shift 537 fd 156693 [18:04:24]save to /storage/0537/doc_00156693 [18:04:24]save last doc name /storage/0537/doc_00156693 to /storage/kkm_last_doc_name [18:04:24]save OK [18:04:24]Clear old archive folders... [18:04:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:04:24]tlvbuf is 017AD860 [18:04:24]SAM_PROTO_ClearQueue [18:04:24]wFMCommunicate request_size=4 [18:04:24]MH_SAM_APDU [18:04:24]CAPDU: 80 09 00 00 [18:04:24]Write to MH i2c: E2 08 00 63 76 80 09 00 00 00 00 00 00 4B [18:04:24]Write i2c OK [18:04:24]MH_I2C_Read... [18:04:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:04:25]Read from MH i2c: E2 [18:04:25]MH_I2C_Read... [18:04:25]Read from MH i2c: E2 03 00 [18:04:25]MH_I2C_Read... [18:04:25]Read from MH i2c: E2 03 00 63 76 00 90 00 4D [18:04:25]RAPDU: 90 00 [18:04:25]wFMCommunicate OK [18:04:25]SAM_PROTO_ClearQueue done [18:04:25]KKMCreateOFDPacket [18:04:25]OFDProtocolAddRootSTLVToBuf [18:04:25]FM_MakeSignedData [18:04:25]FM_MakeSignedData [18:04:25]SAM_PROTO_SignData [18:04:25]wFMCommunicate request_size=4 [18:04:25]MH_SAM_APDU [18:04:25]CAPDU: 80 0D 01 02 [18:04:25]Write to MH i2c: E2 08 00 64 76 80 0D 01 02 00 00 00 00 53 [18:04:25]Write i2c OK [18:04:25]MH_I2C_Read... [18:04:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:04:25]Read from MH i2c: E2 [18:04:25]MH_I2C_Read... [18:04:25]Read from MH i2c: E2 03 00 [18:04:25]MH_I2C_Read... [18:04:25]Read from MH i2c: E2 03 00 64 76 00 90 00 4E [18:04:25]RAPDU: 90 00 [18:04:25]wFMCommunicate OK [18:04:25]wFMCommunicate request_size=255 [18:04:25]MH_SAM_APDU [18:04: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 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 AE 80 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 15 64 02 00 35 04 06 00 F3 [18:04:25]Write to MH i2c: E2 02 01 65 76 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 AE 80 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 15 64 02 00 35 04 06 00 F3 00 00 6E [18:04:25]Write i2c OK [18:04:25]MH_I2C_Read... [18:04:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:04:25]Read from MH i2c: E2 [18:04:25]MH_I2C_Read... [18:04:25]Read from MH i2c: E2 03 00 [18:04:25]MH_I2C_Read... [18:04:25]Read from MH i2c: E2 03 00 65 76 00 90 00 4F [18:04:25]RAPDU: 90 00 [18:04:25]wFMCommunicate OK [18:04:25]wFMCommunicate request_size=10 [18:04:25]MH_SAM_APDU [18:04:25]CAPDU: 80 0D 02 02 05 22 3E 36 F4 B6 [18:04:25]Write to MH i2c: E2 0D 00 66 76 80 0D 02 02 05 00 22 3E 36 F4 B6 00 00 A0 [18:04:25]Write i2c OK [18:04:25]MH_I2C_Read... [18:04:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:04:25]Read from MH i2c: E2 [18:04:25]MH_I2C_Read... [18:04:25]Read from MH i2c: E2 03 00 [18:04:25]MH_I2C_Read... [18:04:25]Read from MH i2c: E2 03 00 66 76 00 90 00 50 [18:04:25]RAPDU: 90 00 [18:04:25]wFMCommunicate OK [18:04:25]wFMCommunicate request_size=4 [18:04:25]MH_SAM_APDU [18:04:25]CAPDU: 80 0D 03 02 [18:04:25]Write to MH i2c: E2 08 00 67 76 80 0D 03 02 00 00 00 00 58 [18:04:25]Write i2c OK [18:04:25]MH_I2C_Read... [18:04:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:04:25]Read from MH i2c: E2 [18:04:25]MH_I2C_Read... [18:04:25]Read from MH i2c: E2 0B 00 [18:04:25]MH_I2C_Read... [18:04:25]Read from MH i2c: E2 0B 00 67 76 00 70 E7 FE 6B 47 20 AB 07 90 00 32 [18:04:25]RAPDU: 70 E7 FE 6B 47 20 AB 07 90 00 [18:04:25]wFMCommunicate OK [18:04:25]SAM_PROTO_SignData done [18:04:25]FM_MakeSignedData done [18:04:25]CreateOFDProtocolMessage [18:04:25]wFMCommunicate request_size=4 [18:04:25]MH_SAM_APDU [18:04:25]CAPDU: 80 11 00 00 [18:04:25]Write to MH i2c: E2 08 00 68 76 80 11 00 00 00 00 00 00 58 [18:04:25]Write i2c OK [18:04:25]MH_I2C_Read... [18:04:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:04:25]Read from MH i2c: E2 [18:04:25]MH_I2C_Read... [18:04:25]Read from MH i2c: E2 17 00 [18:04:25]MH_I2C_Read... [18:04:25]Read from MH i2c: E2 17 00 68 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 AD [18:04:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:04:25]wFMCommunicate OK [18:04:25]CreateOFDProtocolMessage done [18:04:25]OFDSenderStorePacket 156693 [18:04:25]StoreOFDPacket docnum=156693 [18:04:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 AE EE 07 01 45 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 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 AE 80 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 15 64 02 00 35 04 06 00 F3 22 3E 36 F4 B6 70 E7 FE 6B 47 20 AB 07 [18:04:25]CheckFolder [18:04:25]dirname=/storage/ofd_packets [18:04:25]CheckFolder done [18:04:25]ProducePacketName [18:04:25]name=ofd_packets/00156693 [18:04:25]NVStorageSaveData ofd_packets/00156693 [18:04:25]File name is /storage/ofd_packets/00156693 [18:04:25]Write 301 bytes [18:04:25]NVStorageSaveData done [18:04:25]OFDSenderStorePacket done [18:04:25]KKMCreateOFDPacket done [18:04:25]NVStorageSaveData kkm_last_timestamp [18:04:25]File name is /storage/kkm_last_timestamp [18:04:25]Write 4 bytes [18:04:25]NVStorageSaveData done [18:04:25]ExternCall_PrintAddStr [18:04:25]wPrintStart [18:04:25]Write to MH i2c: 01 00 00 69 76 DF [18:04:25]Write i2c OK [18:04:25]MH_I2C_Read... [18:04:25]Read from MH i2c: 01 [18:04:25]MH_I2C_Read... [18:04:25]Read from MH i2c: 01 07 00 [18:04:25]MH_I2C_Read... [18:04:25]Read from MH i2c: 01 07 00 69 76 00 00 00 00 00 FF 0F F4 [18:04:25]RasterBufferAndPrint [18:04:25]line Счет N : (1)99507 [18:04:25]line ИНН: 02508201610067 [18:04:25]line Контрольно-Кассовый Чек [18:04:25]line ПРОДАЖА [18:04:25]line ТРК (МРК, ГНК) : 31 [18:04:25]line Товар: 2710124130 [18:04:25]line Аи-92-К-5 [18:04:25]line 40.000 * 0.00 [18:04:25]line = 0.00 [18:04:25]line НДС 12% НСП 1% [18:04:25]line > о реализуемом товаре [18:04:25]line ИТОГО: 0.00 [18:04:25]line НСП 1% : 0.00 [18:04:25]line НДС 12% : 0.00 [18:04:25]line Наличными: 0.00 [18:04:25]line Безнал.: 0.00 [18:04:25]line Место: АЗС № 143 "Партнер Нефть" [18:04:25]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [18:04:25]line СНО: Общий режим [18:04:25]line Чек 244 27.10.2024 18:04 [18:04:25]line Смена: 537 ФФД: 1.0 [18:04:25]line ЗНМ: 0300000096 [18:04:25]line РНМ: 0000000000091693 [18:04:25]line Версия ККМ: 001 [18:04:25]line Талоны: Топливные Талоны [18:04:25]line 3948465.66 [18:04:25]line ФМ: 0000000000871792 [18:04:25]line ФД: 156693 [18:04:25]line ФПД: 267328398226614 [18:04:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T180430&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156693&fm=267328398226614&tin=02508201610067®Number=0000000000091693&sum=0 [18:04:25]written 0, free lines is 4095 [18:04:25]OFD Sender: Processing packet 156693 [packets to send 31, broken 30] [18:04:25]ProducePacketName [18:04:25]name=ofd_packets/00156693 [18:04:25]OFD Sender: To server: pG, [18:04:25]CommunicateWithHost lk.salyk.kg:30040 [18:04:25]ConnectInit lk.salyk.kg [18:04:25]Connected sock=11 [18:04:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 AE EE 07 01 45 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 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 AE 80 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 15 64 02 00 35 04 06 00 F3 22 3E 36 F4 B6 70 E7 FE 6B 47 20 AB 07 [18:04:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 BA A9 47 00 85 44 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 15 64 02 00 F4 03 04 00 1D 26 1E 67 B6 04 01 00 00 41 72 DE 1C 1E A3 CB D3 [18:04:26]CommunicateWithHost err = 0 [18:04:26]CheckOFDResponse [18:04:26]1017 (14) - 77093643461234 [18:04:26]1041 (16) - 0000000000871792 [18:04:26]1040 (4) - 156693 [18:04:26]1012 (4) - 27.10.2024 11:38 [18:04:26]1206 (1) - 0 [18:04:26]OFD Sender: Remove packet 156693 [18:04:26]ProducePacketName [18:04:26]name=ofd_packets/00156693 [18:04:26]NVStorageDeleteData [18:04:26]Write to MH i2c: 01 00 00 93 76 09 [18:04:26]Write i2c OK [18:04:26]MH_I2C_Read... [18:04:26]Read from MH i2c: 01 [18:04:26]MH_I2C_Read... [18:04:26]Read from MH i2c: 01 07 00 [18:04:26]MH_I2C_Read... [18:04:26]Read from MH i2c: 01 07 00 93 76 00 00 00 00 00 FD 0C 19 [18:04:26]RasterBufferAndPrint [18:04:26]line [18:04:26]line [18:04:26]line [18:04:26]line [18:04:26]line [18:04:26]written 0, free lines is 3331 [18:04:26]process_action close_receipt done [18:04:26]requested_data is exist [18:04:26]produce_requested_data [18:04:26]requested_item fm.sn is exist - process it [18:04:26]wFMCommunicate request_size=4 [18:04:26]MH_SAM_APDU [18:04:26]CAPDU: 80 11 00 00 [18:04:26]Write to MH i2c: E2 08 00 9A 76 80 11 00 00 00 00 00 00 8A [18:04:26]Write i2c OK [18:04:26]MH_I2C_Read... [18:04:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:04:26]Read from MH i2c: E2 [18:04:26]MH_I2C_Read... [18:04:26]Read from MH i2c: E2 17 00 [18:04:26]MH_I2C_Read... [18:04:26]Read from MH i2c: E2 17 00 9A 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 DF [18:04:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:04:26]wFMCommunicate OK [18:04:26]requested_item fd.num is exist - process it [18:04:26]SAM_PROTO_GetFieldsCounters [18:04:26]wFMCommunicate request_size=4 [18:04:26]MH_SAM_APDU [18:04:26]CAPDU: 80 13 00 00 [18:04:26]Write to MH i2c: E2 08 00 9B 76 80 13 00 00 00 00 00 00 8D [18:04:26]Write i2c OK [18:04:26]MH_I2C_Read... [18:04:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:04:26]Read from MH i2c: E2 [18:04:26]MH_I2C_Read... [18:04:26]Read from MH i2c: E2 62 00 [18:04:26]MH_I2C_Read... [18:04:26]Read from MH i2c: E2 62 00 9B 76 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 15 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 25 [18:04:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 15 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:04:26]wFMCommunicate OK [18:04:26]SAM_PROTO_GetFieldsCounters done [18:04:26]requested_item shift.num is exist - process it [18:04:26]requested_item shift.opened is exist - process it [18:04:26]req_shift_opened [18:04:26]FM_GetShiftState [18:04:26]SAM_PROTO_GetShiftState [18:04:26]wFMCommunicate request_size=4 [18:04:26]MH_SAM_APDU [18:04:26]CAPDU: 80 13 01 00 [18:04:26]Write to MH i2c: E2 08 00 9C 76 80 13 01 00 00 00 00 00 8F [18:04:26]Write i2c OK [18:04:26]MH_I2C_Read... [18:04:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:04:26]Read from MH i2c: E2 [18:04:26]MH_I2C_Read... [18:04:26]Read from MH i2c: E2 0E 00 [18:04:26]MH_I2C_Read... [18:04:26]Read from MH i2c: E2 0E 00 9C 76 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 5C [18:04:26]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [18:04:26]wFMCommunicate OK [18:04:26]SAM_PROTO_GetShiftState done [18:04:26]FM_GetShiftState done [18:04:26]req_shift_opened done [18:04:26]requested_item shift.open_date is exist - process it [18:04:26]req_shift_open_date [18:04:26]req_shift_open_date done [18:04:26]produce_requested_data done [18:04:26]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156693,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [18:04:26]process_action_free close_receipt [18:04:26]json_value_free [18:04:26]json_value_free done [18:04:26]process_json_proto returns [18:04:26]Send response to host [18:04:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156693,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [18:04:26]free response buf [18:04:26]execute_script done [18:04:26]execute_script returns [18:04:26]free content buf [18:04:26]Sock 9.Close socket [18:04:26]Sock 9.Thread stoped [18:04:26]OFD Sender: No OFD packet to send [18:04:31]OFD Sender: No OFD packet to send [18:04:36]OFD Sender: No OFD packet to send [18:04:41]OFD Sender: No OFD packet to send [18:04:44]int [18:04:44]Write to MH i2c: 01 00 00 9D 76 13 [18:04:44]*** FLAG_PRN_KEY set [18:04:44]Write i2c OK [18:04:44]MH_I2C_Read... [18:04:44]Read from MH i2c: 01 [18:04:44]MH_I2C_Read... [18:04:44]Read from MH i2c: 01 07 00 [18:04:44]MH_I2C_Read... [18:04:44]Read from MH i2c: 01 07 00 9D 76 00 08 00 00 00 FF 0F 30 [18:04:44]state=0 [18:04:44]Key pressed [18:04:44]Feed [18:04:44]Write to MH i2c: D8 00 00 9E 76 EB [18:04:44]Write i2c OK [18:04:44]MH_I2C_Read... [18:04:44]Read from MH i2c: D8 [18:04:44]MH_I2C_Read... [18:04:44]Read from MH i2c: D8 01 00 [18:04:44]MH_I2C_Read... [18:04:44]Read from MH i2c: D8 01 00 9E 76 00 EC [18:04:44]int [18:04:44]Write to MH i2c: 01 00 00 9F 76 15 [18:04:44]Write i2c OK [18:04:44]MH_I2C_Read... [18:04:44]Read from MH i2c: 01 [18:04:44]MH_I2C_Read... [18:04:44]Read from MH i2c: 01 07 00 [18:04:44]MH_I2C_Read... [18:04:44]Read from MH i2c: 01 07 00 9F 76 00 48 00 00 00 3D 00 A1 [18:04:44]state=2 [18:04:44]Key pressed [18:04:45]int [18:04:45]Write to MH i2c: 01 00 00 A0 76 16 [18:04:45]*** FLAG_PRN_KEY reset [18:04:45]Write i2c OK [18:04:45]MH_I2C_Read... [18:04:45]Read from MH i2c: 01 [18:04:45]MH_I2C_Read... [18:04:45]Read from MH i2c: 01 07 00 [18:04:45]MH_I2C_Read... [18:04:45]Read from MH i2c: 01 07 00 A0 76 00 00 00 00 00 F6 0F 22 [18:04:45]state=2 [18:04:45]Stop feed [18:04:46]OFD Sender: No OFD packet to send [18:04:51]OFD Sender: No OFD packet to send [18:04:56]OFD Sender: No OFD packet to send [18:05:01]OFD Sender: No OFD packet to send [18:05:06]OFD Sender: No OFD packet to send [18:05:11]OFD Sender: No OFD packet to send [18:05:16]OFD Sender: No OFD packet to send [18:05:21]OFD Sender: No OFD packet to send [18:05:26]OFD Sender: No OFD packet to send [18:05:31]OFD Sender: No OFD packet to send [18:05:36]OFD Sender: No OFD packet to send [18:05:41]OFD Sender: No OFD packet to send [18:05:46]OFD Sender: No OFD packet to send [18:05:51]OFD Sender: No OFD packet to send [18:05:54]accept exits with 8 [18:05:54]New connection [18:05:54]New thread 3066834276 created [18:05:54]Thread 3066977636 joined [18:05:54]Waiting for new connection... [18:05:54] Sock 8.Parse request [18:05:54]Sock 8.Check first char [18:05:54]Sock 8.First char is OK [18:05:54]request: POST /json_proto HTTP/1.0 [18:05:54]Method: POST [18:05:54]URL: /json_proto [18:05:54]Method is POST - this is cgi request [18:05:54]url: /json_proto [18:05:54]query_string will be loaded in cgi processing [18:05:54]execute_cgi json_proto POST (null) [18:05:54]execute_cgi path=json_proto method=POST [18:05:54]POST find Content-Length [18:05:54]Host: 172.17.63.3:8080 [18:05:54]Content-Length: 676 [18:05:54]Content-Type: application/json [18:05:54] [18:05:54]POST finish read [18:05:54]Found Content-Length = 676 [18:05:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99508", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:05:54]execute_script... [18:05:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99508", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:05:54]POST & json_proto [18:05:54]process_json_proto [18:05:54]json parsed OK: [18:05:54]protocol is kg_v1.0 [18:05:54]action value=close_receipt [18:05:54]process_action close_receipt [18:05:54]cmd_close_receipt [18:05:54]MH_GetDate [18:05:54]Write to MH i2c: F0 00 00 A1 76 06 [18:05:54]Write i2c OK [18:05:54]MH_I2C_Read... [18:05:54]Read from MH i2c: F0 [18:05:54]MH_I2C_Read... [18:05:54]Read from MH i2c: F0 09 00 [18:05:54]MH_I2C_Read... [18:05:54]Read from MH i2c: F0 09 00 A1 76 00 09 81 1E 67 50 D1 6C 64 0F [18:05:54]GetLastDocTimeStamp 1730052270 [18:05:54]current date 1730052361 [18:05:54]FM_GetShiftState [18:05:54]SAM_PROTO_GetShiftState [18:05:54]wFMCommunicate request_size=4 [18:05:54]MH_SAM_APDU [18:05:54]CAPDU: 80 13 01 00 [18:05:54]Write to MH i2c: E2 08 00 A2 76 80 13 01 00 00 00 00 00 95 [18:05:54]Write i2c OK [18:05:54]MH_I2C_Read... [18:05:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:05:54]Read from MH i2c: E2 [18:05:54]MH_I2C_Read... [18:05:54]Read from MH i2c: E2 0E 00 [18:05:54]MH_I2C_Read... [18:05:54]Read from MH i2c: E2 0E 00 A2 76 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 62 [18:05:54]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [18:05:54]wFMCommunicate OK [18:05:54]SAM_PROTO_GetShiftState done [18:05:54]FM_GetShiftState done [18:05:54]opened in 1729989044 [18:05:54]opened+sec_in_day 1730075444 [18:05:54]quantity*price = 30038 [18:05:54]sum+1 = 30039 [18:05:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 245 27.10.2024 18:06 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156694 ФПД: 145724133539180 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T180601&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156694&fm=145724133539180&tin=02508201610067®Number=0000000000091693&sum=30000 [18:05:55]StoreToDocumentArchive [18:05:55]shift 537 fd 156694 [18:05:55]save to /storage/0537/doc_00156694 [18:05:55]save last doc name /storage/0537/doc_00156694 to /storage/kkm_last_doc_name [18:05:55]save OK [18:05:55]Clear old archive folders... [18:05:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:05:55]tlvbuf is 01889350 [18:05:55]SAM_PROTO_ClearQueue [18:05:55]wFMCommunicate request_size=4 [18:05:55]MH_SAM_APDU [18:05:55]CAPDU: 80 09 00 00 [18:05:55]Write to MH i2c: E2 08 00 AF 76 80 09 00 00 00 00 00 00 97 [18:05:55]Write i2c OK [18:05:55]MH_I2C_Read... [18:05:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:05:55]Read from MH i2c: E2 [18:05:55]MH_I2C_Read... [18:05:55]Read from MH i2c: E2 03 00 [18:05:55]MH_I2C_Read... [18:05:55]Read from MH i2c: E2 03 00 AF 76 00 90 00 99 [18:05:55]RAPDU: 90 00 [18:05:55]wFMCommunicate OK [18:05:55]SAM_PROTO_ClearQueue done [18:05:55]KKMCreateOFDPacket [18:05:55]OFDProtocolAddRootSTLVToBuf [18:05:55]FM_MakeSignedData [18:05:55]FM_MakeSignedData [18:05:55]SAM_PROTO_SignData [18:05:55]wFMCommunicate request_size=4 [18:05:55]MH_SAM_APDU [18:05:55]CAPDU: 80 0D 01 02 [18:05:55]Write to MH i2c: E2 08 00 B0 76 80 0D 01 02 00 00 00 00 9F [18:05:55]Write i2c OK [18:05:55]MH_I2C_Read... [18:05:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:05:55]Read from MH i2c: E2 [18:05:55]MH_I2C_Read... [18:05:55]Read from MH i2c: E2 03 00 [18:05:55]MH_I2C_Read... [18:05:55]Read from MH i2c: E2 03 00 B0 76 00 90 00 9A [18:05:55]RAPDU: 90 00 [18:05:55]wFMCommunicate OK [18:05:55]wFMCommunicate request_size=255 [18:05:55]MH_SAM_APDU [18:05: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 09 81 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 16 64 02 00 35 04 06 00 84 [18:05:55]Write to MH i2c: E2 02 01 B1 76 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 09 81 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 16 64 02 00 35 04 06 00 84 00 00 46 [18:05:55]Write i2c OK [18:05:55]MH_I2C_Read... [18:05:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:05:55]Read from MH i2c: E2 [18:05:55]MH_I2C_Read... [18:05:55]Read from MH i2c: E2 03 00 [18:05:55]MH_I2C_Read... [18:05:55]Read from MH i2c: E2 03 00 B1 76 00 90 00 9B [18:05:55]RAPDU: 90 00 [18:05:55]wFMCommunicate OK [18:05:55]wFMCommunicate request_size=10 [18:05:55]MH_SAM_APDU [18:05:55]CAPDU: 80 0D 02 02 05 89 0B 36 FD 6C [18:05:55]Write to MH i2c: E2 0D 00 B2 76 80 0D 02 02 05 00 89 0B 36 FD 6C 00 00 DF [18:05:55]Write i2c OK [18:05:55]MH_I2C_Read... [18:05:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:05:55]Read from MH i2c: E2 [18:05:55]MH_I2C_Read... [18:05:55]Read from MH i2c: E2 03 00 [18:05:55]MH_I2C_Read... [18:05:55]Read from MH i2c: E2 03 00 B2 76 00 90 00 9C [18:05:55]RAPDU: 90 00 [18:05:55]wFMCommunicate OK [18:05:55]wFMCommunicate request_size=4 [18:05:55]MH_SAM_APDU [18:05:55]CAPDU: 80 0D 03 02 [18:05:55]Write to MH i2c: E2 08 00 B3 76 80 0D 03 02 00 00 00 00 A4 [18:05:55]Write i2c OK [18:05:55]MH_I2C_Read... [18:05:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:05:55]Read from MH i2c: E2 [18:05:55]MH_I2C_Read... [18:05:55]Read from MH i2c: E2 0B 00 [18:05:55]MH_I2C_Read... [18:05:55]Read from MH i2c: E2 0B 00 B3 76 00 64 E1 A1 0C 4C 16 21 43 90 00 5D [18:05:55]RAPDU: 64 E1 A1 0C 4C 16 21 43 90 00 [18:05:55]wFMCommunicate OK [18:05:55]SAM_PROTO_SignData done [18:05:55]FM_MakeSignedData done [18:05:55]CreateOFDProtocolMessage [18:05:55]wFMCommunicate request_size=4 [18:05:55]MH_SAM_APDU [18:05:55]CAPDU: 80 11 00 00 [18:05:55]Write to MH i2c: E2 08 00 B4 76 80 11 00 00 00 00 00 00 A4 [18:05:55]Write i2c OK [18:05:55]MH_I2C_Read... [18:05:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:05:56]Read from MH i2c: E2 [18:05:56]MH_I2C_Read... [18:05:56]Read from MH i2c: E2 17 00 [18:05:56]MH_I2C_Read... [18:05:56]Read from MH i2c: E2 17 00 B4 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 F9 [18:05:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:05:56]wFMCommunicate OK [18:05:56]CreateOFDProtocolMessage done [18:05:56]OFDSenderStorePacket 156694 [18:05:56]StoreOFDPacket docnum=156694 [18:05:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 09 62 07 01 F9 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 09 81 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 16 64 02 00 35 04 06 00 84 89 0B 36 FD 6C 64 E1 A1 0C 4C 16 21 43 [18:05:56]CheckFolder [18:05:56]dirname=/storage/ofd_packets [18:05:56]CheckFolder done [18:05:56]ProducePacketName [18:05:56]name=ofd_packets/00156694 [18:05:56]NVStorageSaveData ofd_packets/00156694 [18:05:56]File name is /storage/ofd_packets/00156694 [18:05:56]Write 301 bytes [18:05:56]NVStorageSaveData done [18:05:56]OFDSenderStorePacket done [18:05:56]KKMCreateOFDPacket done [18:05:56]NVStorageSaveData kkm_last_timestamp [18:05:56]File name is /storage/kkm_last_timestamp [18:05:56]Write 4 bytes [18:05:56]NVStorageSaveData done [18:05:56]ExternCall_PrintAddStr [18:05:56]wPrintStart [18:05:56]Write to MH i2c: 01 00 00 B5 76 2B [18:05:56]Write i2c OK [18:05:56]MH_I2C_Read... [18:05:56]Read from MH i2c: 01 [18:05:56]MH_I2C_Read... [18:05:56]Read from MH i2c: 01 07 00 [18:05:56]MH_I2C_Read... [18:05:56]Read from MH i2c: 01 07 00 B5 76 00 00 00 00 00 FF 0F 40 [18:05:56]RasterBufferAndPrint [18:05:56]line Счет N : (1)99508 [18:05:56]line ИНН: 02508201610067 [18:05:56]line Контрольно-Кассовый Чек [18:05:56]line ПРОДАЖА [18:05:56]line ТРК (МРК, ГНК) : 31 [18:05:56]line Товар: 2710124130 [18:05:56]line Аи-92-К-5 [18:05:56]line 4.490 * 66.90 [18:05:56]line = 300.38 [18:05:56]line НДС 12% НСП 1% [18:05:56]line > о реализуемом товаре [18:05:56]line ОКРУГЛЕНИЕ: -0.38 [18:05:56]line ИТОГО: 300.00 [18:05:56]line Внесено: 300.00 [18:05:56]line СДАЧА: 0.00 [18:05:56]line НСП 1% : 2.66 [18:05:56]line НДС 12% : 31.90 [18:05:56]line Наличными: 300.00 [18:05:56]line Безнал.: 0.00 [18:05:56]line Место: АЗС № 143 "Партнер Нефть" [18:05:56]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [18:05:56]line СНО: Общий режим [18:05:56]line Чек 245 27.10.2024 18:06 [18:05:56]line Смена: 537 ФФД: 1.0 [18:05:56]line ЗНМ: 0300000096 [18:05:56]line РНМ: 0000000000091693 [18:05:56]line Версия ККМ: 001 [18:05:56]line ФМ: 0000000000871792 [18:05:56]line ФД: 156694 [18:05:56]line ФПД: 145724133539180 [18:05:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T180601&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156694&fm=145724133539180&tin=02508201610067®Number=0000000000091693&sum=30000 [18:05:56]OFD Sender: Processing packet 156694 [packets to send 31, broken 30] [18:05:56]ProducePacketName [18:05:56]name=ofd_packets/00156694 [18:05:56]OFD Sender: To server: pG, [18:05:56]CommunicateWithHost lk.salyk.kg:30040 [18:05:56]ConnectInit lk.salyk.kg [18:05:56]written 0, free lines is 4095 [18:05:56]Connected sock=10 [18:05:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 09 62 07 01 F9 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 09 81 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 16 64 02 00 35 04 06 00 84 89 0B 36 FD 6C 64 E1 A1 0C 4C 16 21 43 [18:05:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 D3 36 47 00 E8 D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 16 64 02 00 F4 03 04 00 78 26 1E 67 B6 04 01 00 00 B4 7B 81 07 F5 9F AE EE [18:05:56]CommunicateWithHost err = 0 [18:05:56]CheckOFDResponse [18:05:56]1017 (14) - 77093643461234 [18:05:56]1041 (16) - 0000000000871792 [18:05:56]1040 (4) - 156694 [18:05:56]1012 (4) - 27.10.2024 11:39 [18:05:56]1206 (1) - 0 [18:05:56]OFD Sender: Remove packet 156694 [18:05:56]ProducePacketName [18:05:56]name=ofd_packets/00156694 [18:05:56]NVStorageDeleteData [18:05:56]Write to MH i2c: 01 00 00 E0 76 56 [18:05:56]Write i2c OK [18:05:56]MH_I2C_Read... [18:05:56]Read from MH i2c: 01 [18:05:56]MH_I2C_Read... [18:05:56]Read from MH i2c: 01 07 00 [18:05:56]MH_I2C_Read... [18:05:56]Read from MH i2c: 01 07 00 E0 76 00 00 00 00 00 E4 0C 4D [18:05:56]RasterBufferAndPrint [18:05:56]line [18:05:56]line [18:05:56]line [18:05:56]line [18:05:56]line [18:05:56]written 0, free lines is 3306 [18:05:56]process_action close_receipt done [18:05:56]requested_data is exist [18:05:56]produce_requested_data [18:05:56]requested_item fm.sn is exist - process it [18:05:56]wFMCommunicate request_size=4 [18:05:56]MH_SAM_APDU [18:05:56]CAPDU: 80 11 00 00 [18:05:56]Write to MH i2c: E2 08 00 E7 76 80 11 00 00 00 00 00 00 D7 [18:05:56]Write i2c OK [18:05:56]MH_I2C_Read... [18:05:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:05:56]Read from MH i2c: E2 [18:05:56]MH_I2C_Read... [18:05:56]Read from MH i2c: E2 17 00 [18:05:56]MH_I2C_Read... [18:05:56]Read from MH i2c: E2 17 00 E7 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 2C [18:05:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:05:56]wFMCommunicate OK [18:05:56]requested_item fd.num is exist - process it [18:05:56]SAM_PROTO_GetFieldsCounters [18:05:56]wFMCommunicate request_size=4 [18:05:56]MH_SAM_APDU [18:05:56]CAPDU: 80 13 00 00 [18:05:56]Write to MH i2c: E2 08 00 E8 76 80 13 00 00 00 00 00 00 DA [18:05:56]Write i2c OK [18:05:56]MH_I2C_Read... [18:05:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:05:57]Read from MH i2c: E2 [18:05:57]MH_I2C_Read... [18:05:57]Read from MH i2c: E2 62 00 [18:05:57]MH_I2C_Read... [18:05:57]Read from MH i2c: E2 62 00 E8 76 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 16 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 76 [18:05:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 16 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:05:57]wFMCommunicate OK [18:05:57]SAM_PROTO_GetFieldsCounters done [18:05:57]requested_item shift.num is exist - process it [18:05:57]requested_item shift.opened is exist - process it [18:05:57]req_shift_opened [18:05:57]FM_GetShiftState [18:05:57]SAM_PROTO_GetShiftState [18:05:57]wFMCommunicate request_size=4 [18:05:57]MH_SAM_APDU [18:05:57]CAPDU: 80 13 01 00 [18:05:57]Write to MH i2c: E2 08 00 E9 76 80 13 01 00 00 00 00 00 DC [18:05:57]Write i2c OK [18:05:57]MH_I2C_Read... [18:05:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:05:57]Read from MH i2c: E2 [18:05:57]MH_I2C_Read... [18:05:57]Read from MH i2c: E2 0E 00 [18:05:57]MH_I2C_Read... [18:05:57]Read from MH i2c: E2 0E 00 E9 76 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 A9 [18:05:57]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [18:05:57]wFMCommunicate OK [18:05:57]SAM_PROTO_GetShiftState done [18:05:57]FM_GetShiftState done [18:05:57]req_shift_opened done [18:05:57]requested_item shift.open_date is exist - process it [18:05:57]req_shift_open_date [18:05:57]req_shift_open_date done [18:05:57]produce_requested_data done [18:05:57]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156694,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [18:05:57]process_action_free close_receipt [18:05:57]json_value_free [18:05:57]json_value_free done [18:05:57]process_json_proto returns [18:05:57]Send response to host [18:05:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156694,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [18:05:57]free response buf [18:05:57]execute_script done [18:05:57]execute_script returns [18:05:57]free content buf [18:05:57]Sock 8.Close socket [18:05:57]Sock 8.Thread stoped [18:05:57]OFD Sender: No OFD packet to send [18:06:02]OFD Sender: No OFD packet to send [18:06:07]OFD Sender: No OFD packet to send [18:06:12]OFD Sender: No OFD packet to send [18:06:17]OFD Sender: No OFD packet to send [18:06:22]OFD Sender: No OFD packet to send [18:06:27]OFD Sender: No OFD packet to send [18:06:32]OFD Sender: No OFD packet to send [18:06:37]OFD Sender: No OFD packet to send [18:06:42]OFD Sender: No OFD packet to send [18:06:47]OFD Sender: No OFD packet to send [18:06:52]OFD Sender: No OFD packet to send [18:06:57]OFD Sender: No OFD packet to send [18:06:57]accept exits with 9 [18:06:57]New connection [18:06:57]New thread 3066977636 created [18:06:57]Thread 3066834276 joined [18:06:57]Waiting for new connection... [18:06:57] Sock 9.Parse request [18:06:57]Sock 9.Check first char [18:06:57]Sock 9.First char is OK [18:06:57]request: POST /json_proto HTTP/1.0 [18:06:57]Method: POST [18:06:57]URL: /json_proto [18:06:57]Method is POST - this is cgi request [18:06:57]url: /json_proto [18:06:57]query_string will be loaded in cgi processing [18:06:57]execute_cgi json_proto POST (null) [18:06:57]execute_cgi path=json_proto method=POST [18:06:57]POST find Content-Length [18:06:57]Host: 172.17.63.3:8080 [18:06:57]Content-Length: 677 [18:06:57]Content-Type: application/json [18:06:57] [18:06:57]POST finish read [18:06:57]Found Content-Length = 677 [18:06:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99509", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 12.710, "sum" : 850.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 850.00, "total" : 850.00, "payments": [ { "type": 0, "sum" : 850.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:06:57]execute_script... [18:06: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)99509", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 12.710, "sum" : 850.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 850.00, "total" : 850.00, "payments": [ { "type": 0, "sum" : 850.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:06:57]POST & json_proto [18:06:57]process_json_proto [18:06:57]json parsed OK: [18:06:57]protocol is kg_v1.0 [18:06:57]action value=close_receipt [18:06:57]process_action close_receipt [18:06:57]cmd_close_receipt [18:06:57]MH_GetDate [18:06:57]Write to MH i2c: F0 00 00 EA 76 4F [18:06:57]Write i2c OK [18:06:57]MH_I2C_Read... [18:06:57]Read from MH i2c: F0 [18:06:57]MH_I2C_Read... [18:06:57]Read from MH i2c: F0 09 00 [18:06:57]MH_I2C_Read... [18:06:57]Read from MH i2c: F0 09 00 EA 76 00 48 81 1E 67 50 D1 6C 64 97 [18:06:57]GetLastDocTimeStamp 1730052361 [18:06:57]current date 1730052424 [18:06:57]FM_GetShiftState [18:06:57]SAM_PROTO_GetShiftState [18:06:57]wFMCommunicate request_size=4 [18:06:57]MH_SAM_APDU [18:06:57]CAPDU: 80 13 01 00 [18:06:57]Write to MH i2c: E2 08 00 EB 76 80 13 01 00 00 00 00 00 DE [18:06:57]Write i2c OK [18:06:57]MH_I2C_Read... [18:06:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:06:57]Read from MH i2c: E2 [18:06:57]MH_I2C_Read... [18:06:57]Read from MH i2c: E2 0E 00 [18:06:57]MH_I2C_Read... [18:06:57]Read from MH i2c: E2 0E 00 EB 76 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 AB [18:06:57]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [18:06:57]wFMCommunicate OK [18:06:57]SAM_PROTO_GetShiftState done [18:06:57]FM_GetShiftState done [18:06:57]opened in 1729989044 [18:06:57]opened+sec_in_day 1730075444 [18:06:57]quantity*price = 85029 [18:06:57]sum+1 = 85031 [18:06:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 850.00 Внесено: 850.00 СДАЧА: 0.00 НСП 1% : 7.52 НДС 12% : 90.30 Наличными: 850.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 246 27.10.2024 18:07 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156695 ФПД: 31268774175194 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T180704&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156695&fm=31268774175194&tin=02508201610067®Number=0000000000091693&sum=85000 [18:06:58]StoreToDocumentArchive [18:06:58]shift 537 fd 156695 [18:06:58]save to /storage/0537/doc_00156695 [18:06:58]save last doc name /storage/0537/doc_00156695 to /storage/kkm_last_doc_name [18:06:58]save OK [18:06:58]Clear old archive folders... [18:06:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:06:58]tlvbuf is 017C7000 [18:06:58]SAM_PROTO_ClearQueue [18:06:58]wFMCommunicate request_size=4 [18:06:58]MH_SAM_APDU [18:06:58]CAPDU: 80 09 00 00 [18:06:58]Write to MH i2c: E2 08 00 F8 76 80 09 00 00 00 00 00 00 E0 [18:06:58]Write i2c OK [18:06:58]MH_I2C_Read... [18:06:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:06:58]Read from MH i2c: E2 [18:06:58]MH_I2C_Read... [18:06:58]Read from MH i2c: E2 03 00 [18:06:58]MH_I2C_Read... [18:06:58]Read from MH i2c: E2 03 00 F8 76 00 90 00 E2 [18:06:58]RAPDU: 90 00 [18:06:58]wFMCommunicate OK [18:06:58]SAM_PROTO_ClearQueue done [18:06:58]KKMCreateOFDPacket [18:06:58]OFDProtocolAddRootSTLVToBuf [18:06:58]FM_MakeSignedData [18:06:58]FM_MakeSignedData [18:06:58]SAM_PROTO_SignData [18:06:58]wFMCommunicate request_size=4 [18:06:58]MH_SAM_APDU [18:06:58]CAPDU: 80 0D 01 02 [18:06:58]Write to MH i2c: E2 08 00 F9 76 80 0D 01 02 00 00 00 00 E8 [18:06:58]Write i2c OK [18:06:58]MH_I2C_Read... [18:06:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:06:58]Read from MH i2c: E2 [18:06:58]MH_I2C_Read... [18:06:58]Read from MH i2c: E2 03 00 [18:06:58]MH_I2C_Read... [18:06:58]Read from MH i2c: E2 03 00 F9 76 00 90 00 E3 [18:06:58]RAPDU: 90 00 [18:06:58]wFMCommunicate OK [18:06:58]wFMCommunicate request_size=255 [18:06:58]MH_SAM_APDU [18:06:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 31 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 26 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 23 00 00 00 00 07 04 06 00 08 4C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 48 81 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 17 64 02 00 35 04 06 00 1C [18:06:58]Write to MH i2c: E2 02 01 FA 76 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 31 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 26 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 23 00 00 00 00 07 04 06 00 08 4C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 48 81 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 17 64 02 00 35 04 06 00 1C 00 00 7A [18:06:58]Write i2c OK [18:06:58]MH_I2C_Read... [18:06:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:06:59]Read from MH i2c: E2 [18:06:59]MH_I2C_Read... [18:06:59]Read from MH i2c: E2 03 00 [18:06:59]MH_I2C_Read... [18:06:59]Read from MH i2c: E2 03 00 FA 76 00 90 00 E4 [18:06:59]RAPDU: 90 00 [18:06:59]wFMCommunicate OK [18:06:59]wFMCommunicate request_size=10 [18:06:59]MH_SAM_APDU [18:06:59]CAPDU: 80 0D 02 02 05 70 54 2D 61 DA [18:06:59]Write to MH i2c: E2 0D 00 FB 76 80 0D 02 02 05 00 70 54 2D 61 DA 00 00 21 [18:06:59]Write i2c OK [18:06:59]MH_I2C_Read... [18:06:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:06:59]Read from MH i2c: E2 [18:06:59]MH_I2C_Read... [18:06:59]Read from MH i2c: E2 03 00 [18:06:59]MH_I2C_Read... [18:06:59]Read from MH i2c: E2 03 00 FB 76 00 90 00 E5 [18:06:59]RAPDU: 90 00 [18:06:59]wFMCommunicate OK [18:06:59]wFMCommunicate request_size=4 [18:06:59]MH_SAM_APDU [18:06:59]CAPDU: 80 0D 03 02 [18:06:59]Write to MH i2c: E2 08 00 FC 76 80 0D 03 02 00 00 00 00 ED [18:06:59]Write i2c OK [18:06:59]MH_I2C_Read... [18:06:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:06:59]Read from MH i2c: E2 [18:06:59]MH_I2C_Read... [18:06:59]Read from MH i2c: E2 0B 00 [18:06:59]MH_I2C_Read... [18:06:59]Read from MH i2c: E2 0B 00 FC 76 00 40 C2 8F 05 D8 7A C3 EF 90 00 88 [18:06:59]RAPDU: 40 C2 8F 05 D8 7A C3 EF 90 00 [18:06:59]wFMCommunicate OK [18:06:59]SAM_PROTO_SignData done [18:06:59]FM_MakeSignedData done [18:06:59]CreateOFDProtocolMessage [18:06:59]wFMCommunicate request_size=4 [18:06:59]MH_SAM_APDU [18:06:59]CAPDU: 80 11 00 00 [18:06:59]Write to MH i2c: E2 08 00 FD 76 80 11 00 00 00 00 00 00 ED [18:06:59]Write i2c OK [18:06:59]MH_I2C_Read... [18:06:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:06:59]Read from MH i2c: E2 [18:06:59]MH_I2C_Read... [18:06:59]Read from MH i2c: E2 17 00 [18:06:59]MH_I2C_Read... [18:06:59]Read from MH i2c: E2 17 00 FD 76 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 42 [18:06:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:06:59]wFMCommunicate OK [18:06:59]CreateOFDProtocolMessage done [18:06:59]OFDSenderStorePacket 156695 [18:06:59]StoreOFDPacket docnum=156695 [18:06:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 58 99 07 01 03 46 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 31 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 26 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 23 00 00 00 00 07 04 06 00 08 4C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 48 81 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 17 64 02 00 35 04 06 00 1C 70 54 2D 61 DA 40 C2 8F 05 D8 7A C3 EF [18:06:59]CheckFolder [18:06:59]dirname=/storage/ofd_packets [18:06:59]CheckFolder done [18:06:59]ProducePacketName [18:06:59]name=ofd_packets/00156695 [18:06:59]NVStorageSaveData ofd_packets/00156695 [18:06:59]File name is /storage/ofd_packets/00156695 [18:06:59]Write 301 bytes [18:06:59]NVStorageSaveData done [18:06:59]OFDSenderStorePacket done [18:06:59]KKMCreateOFDPacket done [18:06:59]NVStorageSaveData kkm_last_timestamp [18:06:59]File name is /storage/kkm_last_timestamp [18:06:59]Write 4 bytes [18:06:59]NVStorageSaveData done [18:06:59]ExternCall_PrintAddStr [18:06:59]wPrintStart [18:06:59]Write to MH i2c: 01 00 00 FE 76 74 [18:06:59]Write i2c OK [18:06:59]MH_I2C_Read... [18:06:59]Read from MH i2c: 01 [18:06:59]MH_I2C_Read... [18:06:59]Read from MH i2c: 01 07 00 [18:06:59]MH_I2C_Read... [18:06:59]Read from MH i2c: 01 07 00 FE 76 00 00 00 00 00 FF 0F 89 [18:06:59]RasterBufferAndPrint [18:06:59]line Счет N : (1)99509 [18:06:59]line ИНН: 02508201610067 [18:06:59]line Контрольно-Кассовый Чек [18:06:59]line ПРОДАЖА [18:06:59]line ТРК (МРК, ГНК) : 31 [18:06:59]line Товар: 2710124130 [18:06:59]line Аи-92-К-5 [18:06:59]line 12.710 * 66.90 [18:06:59]line = 850.30 [18:06:59]line НДС 12% НСП 1% [18:06:59]line > о реализуемом товаре [18:06:59]line ОКРУГЛЕНИЕ: -0.30 [18:06:59]line ИТОГО: 850.00 [18:06:59]line Внесено: 850.00 [18:06:59]line СДАЧА: 0.00 [18:06:59]line НСП 1% : 7.52 [18:06:59]line НДС 12% : 90.30 [18:06:59]line Наличными: 850.00 [18:06:59]line Безнал.: 0.00 [18:06:59]line Место: АЗС № 143 "Партнер Нефть" [18:06:59]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [18:06:59]line СНО: Общий режим [18:06:59]line Чек 246 27.10.2024 18:07 [18:06:59]line Смена: 537 ФФД: 1.0 [18:06:59]line ЗНМ: 0300000096 [18:06:59]line РНМ: 0000000000091693 [18:06:59]line Версия ККМ: 001 [18:06:59]line ФМ: 0000000000871792 [18:06:59]line ФД: 156695 [18:06:59]line ФПД: 31268774175194 [18:06:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T180704&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156695&fm=31268774175194&tin=02508201610067®Number=0000000000091693&sum=85000 [18:06:59]OFD Sender: Processing packet 156695 [packets to send 31, broken 30] [18:06:59]ProducePacketName [18:06:59]name=ofd_packets/00156695 [18:06:59]OFD Sender: To server: pG, [18:06:59]CommunicateWithHost lk.salyk.kg:30040 [18:06:59]ConnectInit lk.salyk.kg [18:06:59]written 0, free lines is 4095 [18:06:59]Connected sock=11 [18:06:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 58 99 07 01 03 46 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 31 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 26 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 23 00 00 00 00 07 04 06 00 08 4C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 48 81 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 17 64 02 00 35 04 06 00 1C 70 54 2D 61 DA 40 C2 8F 05 D8 7A C3 EF [18:07:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 5E D2 47 00 E1 F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 17 64 02 00 F4 03 04 00 B7 26 1E 67 B6 04 01 00 00 52 11 6B 90 91 75 E7 E4 [18:07:00]CommunicateWithHost err = 0 [18:07:00]CheckOFDResponse [18:07:00]1017 (14) - 77093643461234 [18:07:00]1041 (16) - 0000000000871792 [18:07:00]1040 (4) - 156695 [18:07:00]1012 (4) - 27.10.2024 11:40 [18:07:00]1206 (1) - 0 [18:07:00]OFD Sender: Remove packet 156695 [18:07:00]ProducePacketName [18:07:00]name=ofd_packets/00156695 [18:07:00]NVStorageDeleteData [18:07:00]Write to MH i2c: 01 00 00 29 77 A0 [18:07:00]Write i2c OK [18:07:00]MH_I2C_Read... [18:07:00]Read from MH i2c: 01 [18:07:00]MH_I2C_Read... [18:07:00]Read from MH i2c: 01 07 00 [18:07:00]MH_I2C_Read... [18:07:00]Read from MH i2c: 01 07 00 29 77 00 00 00 00 00 E0 0C 93 [18:07:00]RasterBufferAndPrint [18:07:00]line [18:07:00]line [18:07:00]line [18:07:00]line [18:07:00]line [18:07:00]written 0, free lines is 3301 [18:07:00]process_action close_receipt done [18:07:00]requested_data is exist [18:07:00]produce_requested_data [18:07:00]requested_item fm.sn is exist - process it [18:07:00]wFMCommunicate request_size=4 [18:07:00]MH_SAM_APDU [18:07:00]CAPDU: 80 11 00 00 [18:07:00]Write to MH i2c: E2 08 00 30 77 80 11 00 00 00 00 00 00 21 [18:07:00]Write i2c OK [18:07:00]MH_I2C_Read... [18:07:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:07:00]Read from MH i2c: E2 [18:07:00]MH_I2C_Read... [18:07:00]Read from MH i2c: E2 17 00 [18:07:00]MH_I2C_Read... [18:07:00]Read from MH i2c: E2 17 00 30 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 76 [18:07:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:07:00]wFMCommunicate OK [18:07:00]requested_item fd.num is exist - process it [18:07:00]SAM_PROTO_GetFieldsCounters [18:07:00]wFMCommunicate request_size=4 [18:07:00]MH_SAM_APDU [18:07:00]CAPDU: 80 13 00 00 [18:07:00]Write to MH i2c: E2 08 00 31 77 80 13 00 00 00 00 00 00 24 [18:07:00]Write i2c OK [18:07:00]MH_I2C_Read... [18:07:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:07:00]Read from MH i2c: E2 [18:07:00]MH_I2C_Read... [18:07:00]Read from MH i2c: E2 62 00 [18:07:00]MH_I2C_Read... [18:07:00]Read from MH i2c: E2 62 00 31 77 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 17 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 C4 [18:07:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 17 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:07:00]wFMCommunicate OK [18:07:00]SAM_PROTO_GetFieldsCounters done [18:07:00]requested_item shift.num is exist - process it [18:07:00]requested_item shift.opened is exist - process it [18:07:00]req_shift_opened [18:07:00]FM_GetShiftState [18:07:00]SAM_PROTO_GetShiftState [18:07:00]wFMCommunicate request_size=4 [18:07:00]MH_SAM_APDU [18:07:00]CAPDU: 80 13 01 00 [18:07:00]Write to MH i2c: E2 08 00 32 77 80 13 01 00 00 00 00 00 26 [18:07:00]Write i2c OK [18:07:00]MH_I2C_Read... [18:07:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:07:00]Read from MH i2c: E2 [18:07:00]MH_I2C_Read... [18:07:00]Read from MH i2c: E2 0E 00 [18:07:00]MH_I2C_Read... [18:07:00]Read from MH i2c: E2 0E 00 32 77 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 F3 [18:07:00]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [18:07:00]wFMCommunicate OK [18:07:00]SAM_PROTO_GetShiftState done [18:07:00]FM_GetShiftState done [18:07:00]req_shift_opened done [18:07:00]requested_item shift.open_date is exist - process it [18:07:00]req_shift_open_date [18:07:00]req_shift_open_date done [18:07:00]produce_requested_data done [18:07:00]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156695,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [18:07:00]process_action_free close_receipt [18:07:00]json_value_free [18:07:00]json_value_free done [18:07:00]process_json_proto returns [18:07:00]Send response to host [18:07:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156695,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [18:07:00]free response buf [18:07:00]execute_script done [18:07:00]execute_script returns [18:07:00]free content buf [18:07:00]Sock 9.Close socket [18:07:00]Sock 9.Thread stoped [18:07:00]OFD Sender: No OFD packet to send [18:07:05]OFD Sender: No OFD packet to send [18:07:10]OFD Sender: No OFD packet to send [18:07:15]OFD Sender: No OFD packet to send [18:07:20]OFD Sender: No OFD packet to send [18:07:25]OFD Sender: No OFD packet to send [18:07:30]OFD Sender: No OFD packet to send [18:07:35]OFD Sender: No OFD packet to send [18:07:35]accept exits with 8 [18:07:35]New connection [18:07:35]New thread 3066834276 created [18:07:35]Thread 3066977636 joined [18:07:35]Waiting for new connection... [18:07:35] Sock 8.Parse request [18:07:35]Sock 8.Check first char [18:07:35]Sock 8.First char is OK [18:07:35]request: POST /json_proto HTTP/1.0 [18:07:35]Method: POST [18:07:35]URL: /json_proto [18:07:35]Method is POST - this is cgi request [18:07:35]url: /json_proto [18:07:35]query_string will be loaded in cgi processing [18:07:35]execute_cgi json_proto POST (null) [18:07:35]execute_cgi path=json_proto method=POST [18:07:35]POST find Content-Length [18:07:35]Host: 172.17.63.3:8080 [18:07:35]Content-Length: 676 [18:07:35]Content-Type: application/json [18:07:35] [18:07:35]POST finish read [18:07:35]Found Content-Length = 676 [18:07:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99510", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "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" ] } } [18:07:35]execute_script... [18:07: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)99510", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "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" ] } } [18:07:35]POST & json_proto [18:07:35]process_json_proto [18:07:35]json parsed OK: [18:07:35]protocol is kg_v1.0 [18:07:35]action value=close_receipt [18:07:35]process_action close_receipt [18:07:35]cmd_close_receipt [18:07:35]MH_GetDate [18:07:35]Write to MH i2c: F0 00 00 33 77 99 [18:07:35]Write i2c OK [18:07:35]MH_I2C_Read... [18:07:35]Read from MH i2c: F0 [18:07:35]MH_I2C_Read... [18:07:35]Read from MH i2c: F0 09 00 [18:07:35]MH_I2C_Read... [18:07:35]Read from MH i2c: F0 09 00 33 77 00 6E 81 1E 67 50 D1 6C 64 07 [18:07:35]GetLastDocTimeStamp 1730052424 [18:07:35]current date 1730052462 [18:07:35]FM_GetShiftState [18:07:35]SAM_PROTO_GetShiftState [18:07:35]wFMCommunicate request_size=4 [18:07:35]MH_SAM_APDU [18:07:35]CAPDU: 80 13 01 00 [18:07:35]Write to MH i2c: E2 08 00 34 77 80 13 01 00 00 00 00 00 28 [18:07:35]Write i2c OK [18:07:35]MH_I2C_Read... [18:07:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:07:35]Read from MH i2c: E2 [18:07:35]MH_I2C_Read... [18:07:35]Read from MH i2c: E2 0E 00 [18:07:35]MH_I2C_Read... [18:07:35]Read from MH i2c: E2 0E 00 34 77 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 F5 [18:07:35]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [18:07:35]wFMCommunicate OK [18:07:35]SAM_PROTO_GetShiftState done [18:07:35]FM_GetShiftState done [18:07:35]opened in 1729989044 [18:07:35]opened+sec_in_day 1730075444 [18:07:35]quantity*price = 20003 [18:07:35]sum+1 = 20004 [18:07:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 247 27.10.2024 18:07 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156696 ФПД: 93776740020555 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T180742&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156696&fm=93776740020555&tin=02508201610067®Number=0000000000091693&sum=20000 [18:07:37]StoreToDocumentArchive [18:07:37]shift 537 fd 156696 [18:07:37]save to /storage/0537/doc_00156696 [18:07:37]save last doc name /storage/0537/doc_00156696 to /storage/kkm_last_doc_name [18:07:37]save OK [18:07:37]Clear old archive folders... [18:07:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:07:37]tlvbuf is 016FF060 [18:07:37]SAM_PROTO_ClearQueue [18:07:37]wFMCommunicate request_size=4 [18:07:37]MH_SAM_APDU [18:07:37]CAPDU: 80 09 00 00 [18:07:37]Write to MH i2c: E2 08 00 41 77 80 09 00 00 00 00 00 00 2A [18:07:37]Write i2c OK [18:07:37]MH_I2C_Read... [18:07:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:07:37]Read from MH i2c: E2 [18:07:37]MH_I2C_Read... [18:07:37]Read from MH i2c: E2 03 00 [18:07:37]MH_I2C_Read... [18:07:37]Read from MH i2c: E2 03 00 41 77 00 90 00 2C [18:07:37]RAPDU: 90 00 [18:07:37]wFMCommunicate OK [18:07:37]SAM_PROTO_ClearQueue done [18:07:37]KKMCreateOFDPacket [18:07:37]OFDProtocolAddRootSTLVToBuf [18:07:37]FM_MakeSignedData [18:07:37]FM_MakeSignedData [18:07:37]SAM_PROTO_SignData [18:07:37]wFMCommunicate request_size=4 [18:07:37]MH_SAM_APDU [18:07:37]CAPDU: 80 0D 01 02 [18:07:37]Write to MH i2c: E2 08 00 42 77 80 0D 01 02 00 00 00 00 32 [18:07:37]Write i2c OK [18:07:37]MH_I2C_Read... [18:07:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:07:37]Read from MH i2c: E2 [18:07:37]MH_I2C_Read... [18:07:37]Read from MH i2c: E2 03 00 [18:07:37]MH_I2C_Read... [18:07:37]Read from MH i2c: E2 03 00 42 77 00 90 00 2D [18:07:37]RAPDU: 90 00 [18:07:37]wFMCommunicate OK [18:07:37]wFMCommunicate request_size=255 [18:07:37]MH_SAM_APDU [18:07:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 F7 00 00 00 F4 03 04 00 6E 81 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 18 64 02 00 35 04 06 00 55 [18:07:37]Write to MH i2c: E2 02 01 43 77 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 F7 00 00 00 F4 03 04 00 6E 81 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 18 64 02 00 35 04 06 00 55 00 00 E1 [18:07:37]Write i2c OK [18:07:37]MH_I2C_Read... [18:07:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:07:37]Read from MH i2c: E2 [18:07:37]MH_I2C_Read... [18:07:37]Read from MH i2c: E2 03 00 [18:07:37]MH_I2C_Read... [18:07:37]Read from MH i2c: E2 03 00 43 77 00 90 00 2E [18:07:37]RAPDU: 90 00 [18:07:37]wFMCommunicate OK [18:07:37]wFMCommunicate request_size=10 [18:07:37]MH_SAM_APDU [18:07:37]CAPDU: 80 0D 02 02 05 4A 19 46 F1 4B [18:07:37]Write to MH i2c: E2 0D 00 44 77 80 0D 02 02 05 00 4A 19 46 F1 4B 00 00 24 [18:07:37]Write i2c OK [18:07:37]MH_I2C_Read... [18:07:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:07:37]Read from MH i2c: E2 [18:07:37]MH_I2C_Read... [18:07:37]Read from MH i2c: E2 03 00 [18:07:37]MH_I2C_Read... [18:07:37]Read from MH i2c: E2 03 00 44 77 00 90 00 2F [18:07:37]RAPDU: 90 00 [18:07:37]wFMCommunicate OK [18:07:37]wFMCommunicate request_size=4 [18:07:37]MH_SAM_APDU [18:07:37]CAPDU: 80 0D 03 02 [18:07:37]Write to MH i2c: E2 08 00 45 77 80 0D 03 02 00 00 00 00 37 [18:07:37]Write i2c OK [18:07:37]MH_I2C_Read... [18:07:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:07:37]Read from MH i2c: E2 [18:07:37]MH_I2C_Read... [18:07:37]Read from MH i2c: E2 0B 00 [18:07:37]MH_I2C_Read... [18:07:37]Read from MH i2c: E2 0B 00 45 77 00 14 AA E6 EA 6D 26 3D F8 90 00 8E [18:07:37]RAPDU: 14 AA E6 EA 6D 26 3D F8 90 00 [18:07:37]wFMCommunicate OK [18:07:37]SAM_PROTO_SignData done [18:07:37]FM_MakeSignedData done [18:07:37]CreateOFDProtocolMessage [18:07:37]wFMCommunicate request_size=4 [18:07:37]MH_SAM_APDU [18:07:37]CAPDU: 80 11 00 00 [18:07:37]Write to MH i2c: E2 08 00 46 77 80 11 00 00 00 00 00 00 37 [18:07:37]Write i2c OK [18:07:37]MH_I2C_Read... [18:07:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:07:37]Read from MH i2c: E2 [18:07:37]MH_I2C_Read... [18:07:37]Read from MH i2c: E2 17 00 [18:07:37]MH_I2C_Read... [18:07:37]Read from MH i2c: E2 17 00 46 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 8C [18:07:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:07:37]wFMCommunicate OK [18:07:37]CreateOFDProtocolMessage done [18:07:37]OFDSenderStorePacket 156696 [18:07:37]StoreOFDPacket docnum=156696 [18:07:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 2A 99 07 01 DE BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 F7 00 00 00 F4 03 04 00 6E 81 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 18 64 02 00 35 04 06 00 55 4A 19 46 F1 4B 14 AA E6 EA 6D 26 3D F8 [18:07:37]CheckFolder [18:07:37]dirname=/storage/ofd_packets [18:07:37]CheckFolder done [18:07:37]ProducePacketName [18:07:37]name=ofd_packets/00156696 [18:07:37]NVStorageSaveData ofd_packets/00156696 [18:07:37]File name is /storage/ofd_packets/00156696 [18:07:37]Write 301 bytes [18:07:37]NVStorageSaveData done [18:07:37]OFDSenderStorePacket done [18:07:37]KKMCreateOFDPacket done [18:07:37]NVStorageSaveData kkm_last_timestamp [18:07:37]File name is /storage/kkm_last_timestamp [18:07:37]Write 4 bytes [18:07:37]NVStorageSaveData done [18:07:37]ExternCall_PrintAddStr [18:07:37]wPrintStart [18:07:37]Write to MH i2c: 01 00 00 47 77 BE [18:07:37]Write i2c OK [18:07:37]MH_I2C_Read... [18:07:37]Read from MH i2c: 01 [18:07:37]MH_I2C_Read... [18:07:37]Read from MH i2c: 01 07 00 [18:07:37]MH_I2C_Read... [18:07:37]Read from MH i2c: 01 07 00 47 77 00 00 00 00 00 FF 0F D3 [18:07:37]RasterBufferAndPrint [18:07:37]line Счет N : (1)99510 [18:07:37]line ИНН: 02508201610067 [18:07:37]line Контрольно-Кассовый Чек [18:07:37]line ПРОДАЖА [18:07:37]line ТРК (МРК, ГНК) : 31 [18:07:37]line Товар: 2710124130 [18:07:37]line Аи-92-К-5 [18:07:37]line 2.990 * 66.90 [18:07:37]line = 200.03 [18:07:37]line НДС 12% НСП 1% [18:07:37]line > о реализуемом товаре [18:07:37]line ОКРУГЛЕНИЕ: -0.03 [18:07:37]line ИТОГО: 200.00 [18:07:37]line Внесено: 200.00 [18:07:37]line СДАЧА: 0.00 [18:07:37]line НСП 1% : 1.77 [18:07:37]line НДС 12% : 21.24 [18:07:37]line Наличными: 200.00 [18:07:37]line Безнал.: 0.00 [18:07:37]line Место: АЗС № 143 "Партнер Нефть" [18:07:37]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [18:07:37]line СНО: Общий режим [18:07:37]line Чек 247 27.10.2024 18:07 [18:07:37]line Смена: 537 ФФД: 1.0 [18:07:37]line ЗНМ: 0300000096 [18:07:37]line РНМ: 0000000000091693 [18:07:37]line Версия ККМ: 001 [18:07:37]line ФМ: 0000000000871792 [18:07:37]line ФД: 156696 [18:07:37]line ФПД: 93776740020555 [18:07:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T180742&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156696&fm=93776740020555&tin=02508201610067®Number=0000000000091693&sum=20000 [18:07:37]OFD Sender: Processing packet 156696 [packets to send 31, broken 30] [18:07:37]ProducePacketName [18:07:37]name=ofd_packets/00156696 [18:07:37]OFD Sender: To server: pG, [18:07:37]CommunicateWithHost lk.salyk.kg:30040 [18:07:37]ConnectInit lk.salyk.kg [18:07:37]written 0, free lines is 4095 [18:07:38]Connected sock=10 [18:07:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 2A 99 07 01 DE BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 F7 00 00 00 F4 03 04 00 6E 81 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 18 64 02 00 35 04 06 00 55 4A 19 46 F1 4B 14 AA E6 EA 6D 26 3D F8 [18:07:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 AA E0 47 00 E5 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 31 37 39 32 10 04 04 00 18 64 02 00 F4 03 04 00 DD 26 1E 67 B6 04 01 00 00 5D 1E 67 98 48 0C 9B 69 [18:07:38]CommunicateWithHost err = 0 [18:07:38]CheckOFDResponse [18:07:38]1017 (14) - 77093643461234 [18:07:38]1041 (16) - 0000000000871792 [18:07:38]1040 (4) - 156696 [18:07:38]1012 (4) - 27.10.2024 11:41 [18:07:38]1206 (1) - 0 [18:07:38]OFD Sender: Remove packet 156696 [18:07:38]ProducePacketName [18:07:38]name=ofd_packets/00156696 [18:07:38]NVStorageDeleteData [18:07:38]Write to MH i2c: 01 00 00 72 77 E9 [18:07:38]Write i2c OK [18:07:38]MH_I2C_Read... [18:07:38]Read from MH i2c: 01 [18:07:38]MH_I2C_Read... [18:07:38]Read from MH i2c: 01 07 00 [18:07:38]MH_I2C_Read... [18:07:38]Read from MH i2c: 01 07 00 72 77 00 00 00 00 00 E4 0C E0 [18:07:38]RasterBufferAndPrint [18:07:38]line [18:07:38]line [18:07:38]line [18:07:38]line [18:07:38]line [18:07:38]written 0, free lines is 3306 [18:07:38]process_action close_receipt done [18:07:38]requested_data is exist [18:07:38]produce_requested_data [18:07:38]requested_item fm.sn is exist - process it [18:07:38]wFMCommunicate request_size=4 [18:07:38]MH_SAM_APDU [18:07:38]CAPDU: 80 11 00 00 [18:07:38]Write to MH i2c: E2 08 00 79 77 80 11 00 00 00 00 00 00 6A [18:07:38]Write i2c OK [18:07:38]MH_I2C_Read... [18:07:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:07:38]Read from MH i2c: E2 [18:07:38]MH_I2C_Read... [18:07:38]Read from MH i2c: E2 17 00 [18:07:38]MH_I2C_Read... [18:07:38]Read from MH i2c: E2 17 00 79 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 BF [18:07:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:07:38]wFMCommunicate OK [18:07:38]requested_item fd.num is exist - process it [18:07:38]SAM_PROTO_GetFieldsCounters [18:07:38]wFMCommunicate request_size=4 [18:07:38]MH_SAM_APDU [18:07:38]CAPDU: 80 13 00 00 [18:07:38]Write to MH i2c: E2 08 00 7A 77 80 13 00 00 00 00 00 00 6D [18:07:38]Write i2c OK [18:07:38]MH_I2C_Read... [18:07:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:07:38]Read from MH i2c: E2 [18:07:38]MH_I2C_Read... [18:07:38]Read from MH i2c: E2 62 00 [18:07:38]MH_I2C_Read... [18:07:38]Read from MH i2c: E2 62 00 7A 77 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 18 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 11 [18:07:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 18 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:07:38]wFMCommunicate OK [18:07:38]SAM_PROTO_GetFieldsCounters done [18:07:38]requested_item shift.num is exist - process it [18:07:38]requested_item shift.opened is exist - process it [18:07:38]req_shift_opened [18:07:38]FM_GetShiftState [18:07:38]SAM_PROTO_GetShiftState [18:07:38]wFMCommunicate request_size=4 [18:07:38]MH_SAM_APDU [18:07:38]CAPDU: 80 13 01 00 [18:07:38]Write to MH i2c: E2 08 00 7B 77 80 13 01 00 00 00 00 00 6F [18:07:38]Write i2c OK [18:07:38]MH_I2C_Read... [18:07:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:07:38]Read from MH i2c: E2 [18:07:38]MH_I2C_Read... [18:07:38]Read from MH i2c: E2 0E 00 [18:07:38]MH_I2C_Read... [18:07:38]Read from MH i2c: E2 0E 00 7B 77 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 3C [18:07:38]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [18:07:38]wFMCommunicate OK [18:07:38]SAM_PROTO_GetShiftState done [18:07:38]FM_GetShiftState done [18:07:38]req_shift_opened done [18:07:38]requested_item shift.open_date is exist - process it [18:07:38]req_shift_open_date [18:07:38]req_shift_open_date done [18:07:38]produce_requested_data done [18:07:38]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156696,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [18:07:38]process_action_free close_receipt [18:07:38]json_value_free [18:07:38]json_value_free done [18:07:38]process_json_proto returns [18:07:38]Send response to host [18:07:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156696,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [18:07:38]free response buf [18:07:38]execute_script done [18:07:38]execute_script returns [18:07:38]free content buf [18:07:38]Sock 8.Close socket [18:07:38]Sock 8.Thread stoped [18:07:38]OFD Sender: No OFD packet to send [18:07:43]OFD Sender: No OFD packet to send [18:07:48]OFD Sender: No OFD packet to send [18:07:53]OFD Sender: No OFD packet to send [18:07:58]OFD Sender: No OFD packet to send [18:08:03]OFD Sender: No OFD packet to send [18:08:08]OFD Sender: No OFD packet to send [18:08:13]OFD Sender: No OFD packet to send [18:08:18]OFD Sender: No OFD packet to send [18:08:23]OFD Sender: No OFD packet to send [18:08:28]OFD Sender: No OFD packet to send [18:08:33]OFD Sender: No OFD packet to send [18:08:38]OFD Sender: No OFD packet to send [18:08:43]OFD Sender: No OFD packet to send [18:08:48]OFD Sender: No OFD packet to send [18:08:53]OFD Sender: No OFD packet to send [18:08:58]OFD Sender: No OFD packet to send [18:09:03]OFD Sender: No OFD packet to send [18:09:08]OFD Sender: No OFD packet to send [18:09:13]OFD Sender: No OFD packet to send [18:09:18]OFD Sender: No OFD packet to send [18:09:23]OFD Sender: No OFD packet to send [18:09:28]OFD Sender: No OFD packet to send [18:09:33]OFD Sender: No OFD packet to send [18:09:38]OFD Sender: No OFD packet to send [18:09:43]OFD Sender: No OFD packet to send [18:09:48]OFD Sender: No OFD packet to send [18:09:53]OFD Sender: No OFD packet to send [18:09:58]OFD Sender: No OFD packet to send [18:10:03]OFD Sender: No OFD packet to send [18:10:08]OFD Sender: No OFD packet to send [18:10:09]accept exits with 9 [18:10:09]New connection [18:10:09]New thread 3066977636 created [18:10:09]Thread 3066834276 joined [18:10:09]Waiting for new connection... [18:10:09] Sock 9.Parse request [18:10:09]Sock 9.Check first char [18:10:09]Sock 9.First char is OK [18:10:09]request: POST /json_proto HTTP/1.0 [18:10:09]Method: POST [18:10:09]URL: /json_proto [18:10:09]Method is POST - this is cgi request [18:10:09]url: /json_proto [18:10:09]query_string will be loaded in cgi processing [18:10:09]execute_cgi json_proto POST (null) [18:10:09]execute_cgi path=json_proto method=POST [18:10:09]POST find Content-Length [18:10:09]Host: 172.17.63.3:8080 [18:10:09]Content-Length: 681 [18:10:09]Content-Type: application/json [18:10:09] [18:10:09]POST finish read [18:10:09]Found Content-Length = 681 [18:10:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99511", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 20.180, "sum" : 1350.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1350.00, "total" : 1350.00, "payments": [ { "type": 0, "sum" : 1350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:10:09]execute_script... [18:10:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99511", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 20.180, "sum" : 1350.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1350.00, "total" : 1350.00, "payments": [ { "type": 0, "sum" : 1350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:10:09]POST & json_proto [18:10:09]process_json_proto [18:10:09]json parsed OK: [18:10:09]protocol is kg_v1.0 [18:10:09]action value=close_receipt [18:10:09]process_action close_receipt [18:10:09]cmd_close_receipt [18:10:09]MH_GetDate [18:10:09]Write to MH i2c: F0 00 00 7C 77 E2 [18:10:09]Write i2c OK [18:10:09]MH_I2C_Read... [18:10:09]Read from MH i2c: F0 [18:10:09]MH_I2C_Read... [18:10:09]Read from MH i2c: F0 09 00 [18:10:09]MH_I2C_Read... [18:10:09]Read from MH i2c: F0 09 00 7C 77 00 08 82 1E 67 50 D1 6C 64 EB [18:10:09]GetLastDocTimeStamp 1730052462 [18:10:09]current date 1730052616 [18:10:09]FM_GetShiftState [18:10:09]SAM_PROTO_GetShiftState [18:10:09]wFMCommunicate request_size=4 [18:10:09]MH_SAM_APDU [18:10:09]CAPDU: 80 13 01 00 [18:10:09]Write to MH i2c: E2 08 00 7D 77 80 13 01 00 00 00 00 00 71 [18:10:09]Write i2c OK [18:10:09]MH_I2C_Read... [18:10:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:10:09]Read from MH i2c: E2 [18:10:09]MH_I2C_Read... [18:10:09]Read from MH i2c: E2 0E 00 [18:10:09]MH_I2C_Read... [18:10:09]Read from MH i2c: E2 0E 00 7D 77 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 3E [18:10:09]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [18:10:09]wFMCommunicate OK [18:10:09]SAM_PROTO_GetShiftState done [18:10:09]FM_GetShiftState done [18:10:09]opened in 1729989044 [18:10:09]opened+sec_in_day 1730075444 [18:10:09]quantity*price = 135004 [18:10:09]sum+1 = 135005 [18:10:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 1350.00 Внесено: 1350.00 СДАЧА: 0.00 НСП 1% : 11.95 НДС 12% : 143.37 Наличными: 1350.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 248 27.10.2024 18:10 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156697 ФПД: 125389858542571 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T181016&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156697&fm=125389858542571&tin=02508201610067®Number=0000000000091693&sum=135000 [18:10:10]StoreToDocumentArchive [18:10:10]shift 537 fd 156697 [18:10:10]save to /storage/0537/doc_00156697 [18:10:10]save last doc name /storage/0537/doc_00156697 to /storage/kkm_last_doc_name [18:10:10]save OK [18:10:10]Clear old archive folders... [18:10:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:10:10]tlvbuf is 01752080 [18:10:10]SAM_PROTO_ClearQueue [18:10:10]wFMCommunicate request_size=4 [18:10:10]MH_SAM_APDU [18:10:10]CAPDU: 80 09 00 00 [18:10:10]Write to MH i2c: E2 08 00 8A 77 80 09 00 00 00 00 00 00 73 [18:10:10]Write i2c OK [18:10:10]MH_I2C_Read... [18:10:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:10:10]Read from MH i2c: E2 [18:10:10]MH_I2C_Read... [18:10:10]Read from MH i2c: E2 03 00 [18:10:10]MH_I2C_Read... [18:10:10]Read from MH i2c: E2 03 00 8A 77 00 90 00 75 [18:10:10]RAPDU: 90 00 [18:10:10]wFMCommunicate OK [18:10:10]SAM_PROTO_ClearQueue done [18:10:10]KKMCreateOFDPacket [18:10:10]OFDProtocolAddRootSTLVToBuf [18:10:10]FM_MakeSignedData [18:10:10]FM_MakeSignedData [18:10:10]SAM_PROTO_SignData [18:10:10]wFMCommunicate request_size=4 [18:10:10]MH_SAM_APDU [18:10:10]CAPDU: 80 0D 01 02 [18:10:10]Write to MH i2c: E2 08 00 8B 77 80 0D 01 02 00 00 00 00 7B [18:10:10]Write i2c OK [18:10:10]MH_I2C_Read... [18:10:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:10:10]Read from MH i2c: E2 [18:10:10]MH_I2C_Read... [18:10:10]Read from MH i2c: E2 03 00 [18:10:10]MH_I2C_Read... [18:10:10]Read from MH i2c: E2 03 00 8B 77 00 90 00 76 [18:10:10]RAPDU: 90 00 [18:10:10]wFMCommunicate OK [18:10:10]wFMCommunicate request_size=255 [18:10:10]MH_SAM_APDU [18:10: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 D4 4E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5C 0F 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 0F 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 01 38 00 00 00 00 07 04 06 00 58 0F 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 08 82 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 19 64 02 00 35 04 06 00 72 [18:10:10]Write to MH i2c: E2 02 01 8C 77 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D4 4E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5C 0F 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 0F 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 01 38 00 00 00 00 07 04 06 00 58 0F 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 08 82 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 19 64 02 00 35 04 06 00 72 00 00 22 [18:10:10]Write i2c OK [18:10:10]MH_I2C_Read... [18:10:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:10:11]Read from MH i2c: E2 [18:10:11]MH_I2C_Read... [18:10:11]Read from MH i2c: E2 03 00 [18:10:11]MH_I2C_Read... [18:10:11]Read from MH i2c: E2 03 00 8C 77 00 90 00 77 [18:10:11]RAPDU: 90 00 [18:10:11]wFMCommunicate OK [18:10:11]wFMCommunicate request_size=10 [18:10:11]MH_SAM_APDU [18:10:11]CAPDU: 80 0D 02 02 05 0A 99 FA 13 EB [18:10:11]Write to MH i2c: E2 0D 00 8D 77 80 0D 02 02 05 00 0A 99 FA 13 EB 00 00 23 [18:10:11]Write i2c OK [18:10:11]MH_I2C_Read... [18:10:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:10:11]Read from MH i2c: E2 [18:10:11]MH_I2C_Read... [18:10:11]Read from MH i2c: E2 03 00 [18:10:11]MH_I2C_Read... [18:10:11]Read from MH i2c: E2 03 00 8D 77 00 90 00 78 [18:10:11]RAPDU: 90 00 [18:10:11]wFMCommunicate OK [18:10:11]wFMCommunicate request_size=4 [18:10:11]MH_SAM_APDU [18:10:11]CAPDU: 80 0D 03 02 [18:10:11]Write to MH i2c: E2 08 00 8E 77 80 0D 03 02 00 00 00 00 80 [18:10:11]Write i2c OK [18:10:11]MH_I2C_Read... [18:10:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:10:11]Read from MH i2c: E2 [18:10:11]MH_I2C_Read... [18:10:11]Read from MH i2c: E2 0B 00 [18:10:11]MH_I2C_Read... [18:10:11]Read from MH i2c: E2 0B 00 8E 77 00 8D 26 EE 4A F6 AF 33 BD 90 00 01 [18:10:11]RAPDU: 8D 26 EE 4A F6 AF 33 BD 90 00 [18:10:11]wFMCommunicate OK [18:10:11]SAM_PROTO_SignData done [18:10:11]FM_MakeSignedData done [18:10:11]CreateOFDProtocolMessage [18:10:11]wFMCommunicate request_size=4 [18:10:11]MH_SAM_APDU [18:10:11]CAPDU: 80 11 00 00 [18:10:11]Write to MH i2c: E2 08 00 8F 77 80 11 00 00 00 00 00 00 80 [18:10:11]Write i2c OK [18:10:11]MH_I2C_Read... [18:10:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:10:11]Read from MH i2c: E2 [18:10:11]MH_I2C_Read... [18:10:11]Read from MH i2c: E2 17 00 [18:10:11]MH_I2C_Read... [18:10:11]Read from MH i2c: E2 17 00 8F 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 D5 [18:10:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:10:11]wFMCommunicate OK [18:10:11]CreateOFDProtocolMessage done [18:10:11]OFDSenderStorePacket 156697 [18:10:11]StoreOFDPacket docnum=156697 [18:10:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 BE B0 07 01 80 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 4E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5C 0F 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 0F 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 01 38 00 00 00 00 07 04 06 00 58 0F 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 08 82 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 19 64 02 00 35 04 06 00 72 0A 99 FA 13 EB 8D 26 EE 4A F6 AF 33 BD [18:10:11]CheckFolder [18:10:11]dirname=/storage/ofd_packets [18:10:11]CheckFolder done [18:10:11]ProducePacketName [18:10:11]name=ofd_packets/00156697 [18:10:11]NVStorageSaveData ofd_packets/00156697 [18:10:11]File name is /storage/ofd_packets/00156697 [18:10:11]Write 301 bytes [18:10:11]NVStorageSaveData done [18:10:11]OFDSenderStorePacket done [18:10:11]KKMCreateOFDPacket done [18:10:11]NVStorageSaveData kkm_last_timestamp [18:10:11]File name is /storage/kkm_last_timestamp [18:10:11]Write 4 bytes [18:10:11]NVStorageSaveData done [18:10:11]ExternCall_PrintAddStr [18:10:11]wPrintStart [18:10:11]Write to MH i2c: 01 00 00 90 77 07 [18:10:11]Write i2c OK [18:10:11]MH_I2C_Read... [18:10:11]Read from MH i2c: 01 [18:10:11]MH_I2C_Read... [18:10:11]Read from MH i2c: 01 07 00 [18:10:11]MH_I2C_Read... [18:10:11]Read from MH i2c: 01 07 00 90 77 00 00 00 00 00 FF 0F 1C [18:10:11]RasterBufferAndPrint [18:10:11]line Счет N : (1)99511 [18:10:11]line ИНН: 02508201610067 [18:10:11]line Контрольно-Кассовый Чек [18:10:11]line ПРОДАЖА [18:10:11]line ТРК (МРК, ГНК) : 31 [18:10:11]line Товар: 2710124130 [18:10:11]line Аи-92-К-5 [18:10:11]line 20.180 * 66.90 [18:10:11]line = 1350.04 [18:10:11]line НДС 12% НСП 1% [18:10:11]line > о реализуемом товаре [18:10:11]line ОКРУГЛЕНИЕ: -0.04 [18:10:11]line ИТОГО: 1350.00 [18:10:11]line Внесено: 1350.00 [18:10:11]line СДАЧА: 0.00 [18:10:11]line НСП 1% : 11.95 [18:10:11]line НДС 12% : 143.37 [18:10:11]line Наличными: 1350.00 [18:10:11]line Безнал.: 0.00 [18:10:11]line Место: АЗС № 143 "Партнер Нефть" [18:10:11]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [18:10:11]line СНО: Общий режим [18:10:11]line Чек 248 27.10.2024 18:10 [18:10:11]line Смена: 537 ФФД: 1.0 [18:10:11]line ЗНМ: 0300000096 [18:10:11]line РНМ: 0000000000091693 [18:10:11]line Версия ККМ: 001 [18:10:11]line ФМ: 0000000000871792 [18:10:11]line ФД: 156697 [18:10:11]line ФПД: 125389858542571 [18:10:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T181016&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156697&fm=125389858542571&tin=02508201610067®Number=0000000000091693&sum=135000 [18:10:11]OFD Sender: Processing packet 156697 [packets to send 31, broken 30] [18:10:11]ProducePacketName [18:10:11]name=ofd_packets/00156697 [18:10:11]OFD Sender: To server: pG, [18:10:11]CommunicateWithHost lk.salyk.kg:30040 [18:10:11]ConnectInit lk.salyk.kg [18:10:11]written 0, free lines is 4095 [18:10:11]Connected sock=10 [18:10:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 BE B0 07 01 80 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 4E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5C 0F 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 0F 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 01 38 00 00 00 00 07 04 06 00 58 0F 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 08 82 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 19 64 02 00 35 04 06 00 72 0A 99 FA 13 EB 8D 26 EE 4A F6 AF 33 BD [18:10:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 F1 4B 47 00 32 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 31 37 39 32 10 04 04 00 19 64 02 00 F4 03 04 00 77 27 1E 67 B6 04 01 00 00 64 5A 0E 99 23 D3 2A DB [18:10:11]CommunicateWithHost err = 0 [18:10:11]CheckOFDResponse [18:10:11]1017 (14) - 77093643461234 [18:10:11]1041 (16) - 0000000000871792 [18:10:11]1040 (4) - 156697 [18:10:11]1012 (4) - 27.10.2024 11:43 [18:10:11]1206 (1) - 0 [18:10:11]OFD Sender: Remove packet 156697 [18:10:11]ProducePacketName [18:10:11]name=ofd_packets/00156697 [18:10:11]NVStorageDeleteData [18:10:12]Write to MH i2c: 01 00 00 BB 77 32 [18:10:12]Write i2c OK [18:10:12]MH_I2C_Read... [18:10:12]Read from MH i2c: 01 [18:10:12]MH_I2C_Read... [18:10:12]Read from MH i2c: 01 07 00 [18:10:12]MH_I2C_Read... [18:10:12]Read from MH i2c: 01 07 00 BB 77 00 00 00 00 00 EB 0C 30 [18:10:12]RasterBufferAndPrint [18:10:12]line [18:10:12]line [18:10:12]line [18:10:12]line [18:10:12]line [18:10:12]written 0, free lines is 3314 [18:10:12]process_action close_receipt done [18:10:12]requested_data is exist [18:10:12]produce_requested_data [18:10:12]requested_item fm.sn is exist - process it [18:10:12]wFMCommunicate request_size=4 [18:10:12]MH_SAM_APDU [18:10:12]CAPDU: 80 11 00 00 [18:10:12]Write to MH i2c: E2 08 00 C2 77 80 11 00 00 00 00 00 00 B3 [18:10:12]Write i2c OK [18:10:12]MH_I2C_Read... [18:10:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:10:12]Read from MH i2c: E2 [18:10:12]MH_I2C_Read... [18:10:12]Read from MH i2c: E2 17 00 [18:10:12]MH_I2C_Read... [18:10:12]Read from MH i2c: E2 17 00 C2 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 08 [18:10:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:10:12]wFMCommunicate OK [18:10:12]requested_item fd.num is exist - process it [18:10:12]SAM_PROTO_GetFieldsCounters [18:10:12]wFMCommunicate request_size=4 [18:10:12]MH_SAM_APDU [18:10:12]CAPDU: 80 13 00 00 [18:10:12]Write to MH i2c: E2 08 00 C3 77 80 13 00 00 00 00 00 00 B6 [18:10:12]Write i2c OK [18:10:12]MH_I2C_Read... [18:10:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:10:12]Read from MH i2c: E2 [18:10:12]MH_I2C_Read... [18:10:12]Read from MH i2c: E2 62 00 [18:10:12]MH_I2C_Read... [18:10:12]Read from MH i2c: E2 62 00 C3 77 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 19 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 F8 00 00 00 5E 04 04 00 F8 00 00 00 57 04 04 00 F9 00 00 00 19 04 04 00 00 00 00 00 90 00 5E [18:10:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 19 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 F8 00 00 00 5E 04 04 00 F8 00 00 00 57 04 04 00 F9 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:10:12]wFMCommunicate OK [18:10:12]SAM_PROTO_GetFieldsCounters done [18:10:12]requested_item shift.num is exist - process it [18:10:12]requested_item shift.opened is exist - process it [18:10:12]req_shift_opened [18:10:12]FM_GetShiftState [18:10:12]SAM_PROTO_GetShiftState [18:10:12]wFMCommunicate request_size=4 [18:10:12]MH_SAM_APDU [18:10:12]CAPDU: 80 13 01 00 [18:10:12]Write to MH i2c: E2 08 00 C4 77 80 13 01 00 00 00 00 00 B8 [18:10:12]Write i2c OK [18:10:12]MH_I2C_Read... [18:10:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:10:12]Read from MH i2c: E2 [18:10:12]MH_I2C_Read... [18:10:12]Read from MH i2c: E2 0E 00 [18:10:12]MH_I2C_Read... [18:10:12]Read from MH i2c: E2 0E 00 C4 77 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 85 [18:10:12]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [18:10:12]wFMCommunicate OK [18:10:12]SAM_PROTO_GetShiftState done [18:10:12]FM_GetShiftState done [18:10:12]req_shift_opened done [18:10:12]requested_item shift.open_date is exist - process it [18:10:12]req_shift_open_date [18:10:12]req_shift_open_date done [18:10:12]produce_requested_data done [18:10:12]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156697,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [18:10:12]process_action_free close_receipt [18:10:12]json_value_free [18:10:12]json_value_free done [18:10:12]process_json_proto returns [18:10:12]Send response to host [18:10:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156697,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [18:10:12]free response buf [18:10:12]execute_script done [18:10:12]execute_script returns [18:10:12]free content buf [18:10:12]Sock 9.Close socket [18:10:12]Sock 9.Thread stoped [18:10:12]OFD Sender: No OFD packet to send [18:10:17]OFD Sender: No OFD packet to send [18:10:22]OFD Sender: No OFD packet to send [18:10:27]OFD Sender: No OFD packet to send [18:10:32]OFD Sender: No OFD packet to send [18:10:37]OFD Sender: No OFD packet to send [18:10:42]OFD Sender: No OFD packet to send [18:10:47]OFD Sender: No OFD packet to send [18:10:49]accept exits with 8 [18:10:49]New connection [18:10:49]New thread 3066834276 created [18:10:49]Thread 3066977636 joined [18:10:49]Waiting for new connection... [18:10:49] Sock 8.Parse request [18:10:49]Sock 8.Check first char [18:10:49]Sock 8.First char is OK [18:10:49]request: POST /json_proto HTTP/1.0 [18:10:49]Method: POST [18:10:49]URL: /json_proto [18:10:49]Method is POST - this is cgi request [18:10:49]url: /json_proto [18:10:49]query_string will be loaded in cgi processing [18:10:49]execute_cgi json_proto POST (null) [18:10:49]execute_cgi path=json_proto method=POST [18:10:49]POST find Content-Length [18:10:49]Host: 172.17.63.3:8080 [18:10:49]Content-Length: 676 [18:10:49]Content-Type: application/json [18:10:49] [18:10:49]POST finish read [18:10:49]Found Content-Length = 676 [18:10:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99512", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "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" ] } } [18:10:49]execute_script... [18:10:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99512", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "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" ] } } [18:10:49]POST & json_proto [18:10:49]process_json_proto [18:10:49]json parsed OK: [18:10:49]protocol is kg_v1.0 [18:10:49]action value=close_receipt [18:10:49]process_action close_receipt [18:10:49]cmd_close_receipt [18:10:49]MH_GetDate [18:10:49]Write to MH i2c: F0 00 00 C5 77 2B [18:10:49]Write i2c OK [18:10:49]MH_I2C_Read... [18:10:49]Read from MH i2c: F0 [18:10:49]MH_I2C_Read... [18:10:49]Read from MH i2c: F0 09 00 [18:10:49]MH_I2C_Read... [18:10:49]Read from MH i2c: F0 09 00 C5 77 00 30 82 1E 67 50 D1 6C 64 5C [18:10:49]GetLastDocTimeStamp 1730052616 [18:10:49]current date 1730052656 [18:10:49]FM_GetShiftState [18:10:49]SAM_PROTO_GetShiftState [18:10:49]wFMCommunicate request_size=4 [18:10:49]MH_SAM_APDU [18:10:49]CAPDU: 80 13 01 00 [18:10:49]Write to MH i2c: E2 08 00 C6 77 80 13 01 00 00 00 00 00 BA [18:10:49]Write i2c OK [18:10:49]MH_I2C_Read... [18:10:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:10:49]Read from MH i2c: E2 [18:10:49]MH_I2C_Read... [18:10:49]Read from MH i2c: E2 0E 00 [18:10:49]MH_I2C_Read... [18:10:49]Read from MH i2c: E2 0E 00 C6 77 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 87 [18:10:49]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [18:10:49]wFMCommunicate OK [18:10:49]SAM_PROTO_GetShiftState done [18:10:49]FM_GetShiftState done [18:10:49]opened in 1729989044 [18:10:49]opened+sec_in_day 1730075444 [18:10:49]quantity*price = 20003 [18:10:49]sum+1 = 20004 [18:10:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 249 27.10.2024 18:10 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156698 ФПД: 52199817377483 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T181056&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156698&fm=52199817377483&tin=02508201610067®Number=0000000000091693&sum=20000 [18:10:50]StoreToDocumentArchive [18:10:50]shift 537 fd 156698 [18:10:50]save to /storage/0537/doc_00156698 [18:10:50]save last doc name /storage/0537/doc_00156698 to /storage/kkm_last_doc_name [18:10:50]save OK [18:10:50]Clear old archive folders... [18:10:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:10:50]tlvbuf is 01858280 [18:10:50]SAM_PROTO_ClearQueue [18:10:50]wFMCommunicate request_size=4 [18:10:50]MH_SAM_APDU [18:10:50]CAPDU: 80 09 00 00 [18:10:50]Write to MH i2c: E2 08 00 D3 77 80 09 00 00 00 00 00 00 BC [18:10:50]Write i2c OK [18:10:50]MH_I2C_Read... [18:10:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:10:50]Read from MH i2c: E2 [18:10:50]MH_I2C_Read... [18:10:50]Read from MH i2c: E2 03 00 [18:10:50]MH_I2C_Read... [18:10:50]Read from MH i2c: E2 03 00 D3 77 00 90 00 BE [18:10:50]RAPDU: 90 00 [18:10:50]wFMCommunicate OK [18:10:50]SAM_PROTO_ClearQueue done [18:10:50]KKMCreateOFDPacket [18:10:50]OFDProtocolAddRootSTLVToBuf [18:10:50]FM_MakeSignedData [18:10:50]FM_MakeSignedData [18:10:50]SAM_PROTO_SignData [18:10:50]wFMCommunicate request_size=4 [18:10:50]MH_SAM_APDU [18:10:50]CAPDU: 80 0D 01 02 [18:10:50]Write to MH i2c: E2 08 00 D4 77 80 0D 01 02 00 00 00 00 C4 [18:10:50]Write i2c OK [18:10:50]MH_I2C_Read... [18:10:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:10:50]Read from MH i2c: E2 [18:10:50]MH_I2C_Read... [18:10:50]Read from MH i2c: E2 03 00 [18:10:50]MH_I2C_Read... [18:10:50]Read from MH i2c: E2 03 00 D4 77 00 90 00 BF [18:10:50]RAPDU: 90 00 [18:10:50]wFMCommunicate OK [18:10:50]wFMCommunicate request_size=255 [18:10:50]MH_SAM_APDU [18:10: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 F9 00 00 00 F4 03 04 00 30 82 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1A 64 02 00 35 04 06 00 2F [18:10:50]Write to MH i2c: E2 02 01 D5 77 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 F9 00 00 00 F4 03 04 00 30 82 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1A 64 02 00 35 04 06 00 2F 00 00 14 [18:10:50]Write i2c OK [18:10:50]MH_I2C_Read... [18:10:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:10:51]Read from MH i2c: E2 [18:10:51]MH_I2C_Read... [18:10:51]Read from MH i2c: E2 03 00 [18:10:51]MH_I2C_Read... [18:10:51]Read from MH i2c: E2 03 00 D5 77 00 90 00 C0 [18:10:51]RAPDU: 90 00 [18:10:51]wFMCommunicate OK [18:10:51]wFMCommunicate request_size=10 [18:10:51]MH_SAM_APDU [18:10:51]CAPDU: 80 0D 02 02 05 79 B7 92 76 CB [18:10:51]Write to MH i2c: E2 0D 00 D6 77 80 0D 02 02 05 00 79 B7 92 76 CB 00 00 D4 [18:10:51]Write i2c OK [18:10:51]MH_I2C_Read... [18:10:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:10:51]Read from MH i2c: E2 [18:10:51]MH_I2C_Read... [18:10:51]Read from MH i2c: E2 03 00 [18:10:51]MH_I2C_Read... [18:10:51]Read from MH i2c: E2 03 00 D6 77 00 90 00 C1 [18:10:51]RAPDU: 90 00 [18:10:51]wFMCommunicate OK [18:10:51]wFMCommunicate request_size=4 [18:10:51]MH_SAM_APDU [18:10:51]CAPDU: 80 0D 03 02 [18:10:51]Write to MH i2c: E2 08 00 D7 77 80 0D 03 02 00 00 00 00 C9 [18:10:51]Write i2c OK [18:10:51]MH_I2C_Read... [18:10:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:10:51]Read from MH i2c: E2 [18:10:51]MH_I2C_Read... [18:10:51]Read from MH i2c: E2 0B 00 [18:10:51]MH_I2C_Read... [18:10:51]Read from MH i2c: E2 0B 00 D7 77 00 20 11 A1 75 59 F7 D6 38 90 00 6F [18:10:51]RAPDU: 20 11 A1 75 59 F7 D6 38 90 00 [18:10:51]wFMCommunicate OK [18:10:51]SAM_PROTO_SignData done [18:10:51]FM_MakeSignedData done [18:10:51]CreateOFDProtocolMessage [18:10:51]wFMCommunicate request_size=4 [18:10:51]MH_SAM_APDU [18:10:51]CAPDU: 80 11 00 00 [18:10:51]Write to MH i2c: E2 08 00 D8 77 80 11 00 00 00 00 00 00 C9 [18:10:51]Write i2c OK [18:10:51]MH_I2C_Read... [18:10:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:10:51]Read from MH i2c: E2 [18:10:51]MH_I2C_Read... [18:10:51]Read from MH i2c: E2 17 00 [18:10:51]MH_I2C_Read... [18:10:51]Read from MH i2c: E2 17 00 D8 77 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 1E [18:10:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:10:51]wFMCommunicate OK [18:10:51]CreateOFDProtocolMessage done [18:10:51]OFDSenderStorePacket 156698 [18:10:51]StoreOFDPacket docnum=156698 [18:10:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 F8 F9 07 01 B0 3C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 F9 00 00 00 F4 03 04 00 30 82 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1A 64 02 00 35 04 06 00 2F 79 B7 92 76 CB 20 11 A1 75 59 F7 D6 38 [18:10:51]CheckFolder [18:10:51]dirname=/storage/ofd_packets [18:10:51]CheckFolder done [18:10:51]ProducePacketName [18:10:51]name=ofd_packets/00156698 [18:10:51]NVStorageSaveData ofd_packets/00156698 [18:10:51]File name is /storage/ofd_packets/00156698 [18:10:51]Write 301 bytes [18:10:51]NVStorageSaveData done [18:10:51]OFDSenderStorePacket done [18:10:51]KKMCreateOFDPacket done [18:10:51]NVStorageSaveData kkm_last_timestamp [18:10:51]File name is /storage/kkm_last_timestamp [18:10:51]Write 4 bytes [18:10:51]NVStorageSaveData done [18:10:51]ExternCall_PrintAddStr [18:10:51]wPrintStart [18:10:51]Write to MH i2c: 01 00 00 D9 77 50 [18:10:51]Write i2c OK [18:10:51]MH_I2C_Read... [18:10:51]Read from MH i2c: 01 [18:10:51]MH_I2C_Read... [18:10:51]Read from MH i2c: 01 07 00 [18:10:51]MH_I2C_Read... [18:10:51]Read from MH i2c: 01 07 00 D9 77 00 00 00 00 00 FF 0F 65 [18:10:51]RasterBufferAndPrint [18:10:51]line Счет N : (1)99512 [18:10:51]line ИНН: 02508201610067 [18:10:51]line Контрольно-Кассовый Чек [18:10:51]line ПРОДАЖА [18:10:51]line ТРК (МРК, ГНК) : 31 [18:10:51]line Товар: 2710124130 [18:10:51]line Аи-92-К-5 [18:10:51]line 2.990 * 66.90 [18:10:51]line = 200.03 [18:10:51]line НДС 12% НСП 1% [18:10:51]line > о реализуемом товаре [18:10:51]line ОКРУГЛЕНИЕ: -0.03 [18:10:51]line ИТОГО: 200.00 [18:10:51]line Внесено: 200.00 [18:10:51]line СДАЧА: 0.00 [18:10:51]line НСП 1% : 1.77 [18:10:51]line НДС 12% : 21.24 [18:10:51]line Наличными: 200.00 [18:10:51]line Безнал.: 0.00 [18:10:51]line Место: АЗС № 143 "Партнер Нефть" [18:10:51]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [18:10:51]line СНО: Общий режим [18:10:51]line Чек 249 27.10.2024 18:10 [18:10:51]line Смена: 537 ФФД: 1.0 [18:10:51]line ЗНМ: 0300000096 [18:10:51]line РНМ: 0000000000091693 [18:10:51]line Версия ККМ: 001 [18:10:51]line ФМ: 0000000000871792 [18:10:51]line ФД: 156698 [18:10:51]line ФПД: 52199817377483 [18:10:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T181056&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156698&fm=52199817377483&tin=02508201610067®Number=0000000000091693&sum=20000 [18:10:51]OFD Sender: Processing packet 156698 [packets to send 31, broken 30] [18:10:51]ProducePacketName [18:10:51]name=ofd_packets/00156698 [18:10:51]OFD Sender: To server: pG, [18:10:51]CommunicateWithHost lk.salyk.kg:30040 [18:10:51]ConnectInit lk.salyk.kg [18:10:51]written 0, free lines is 4095 [18:10:51]Connected sock=10 [18:10:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 F8 F9 07 01 B0 3C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 F9 00 00 00 F4 03 04 00 30 82 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1A 64 02 00 35 04 06 00 2F 79 B7 92 76 CB 20 11 A1 75 59 F7 D6 38 [18:10:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 8E 3D 47 00 7A 3B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1A 64 02 00 F4 03 04 00 9F 27 1E 67 B6 04 01 00 00 8C E6 84 A6 34 EA DD 1C [18:10:51]CommunicateWithHost err = 0 [18:10:51]CheckOFDResponse [18:10:51]1017 (14) - 77093643461234 [18:10:51]1041 (16) - 0000000000871792 [18:10:51]1040 (4) - 156698 [18:10:51]1012 (4) - 27.10.2024 11:44 [18:10:51]1206 (1) - 0 [18:10:51]OFD Sender: Remove packet 156698 [18:10:51]ProducePacketName [18:10:51]name=ofd_packets/00156698 [18:10:51]NVStorageDeleteData [18:10:52]Write to MH i2c: 01 00 00 04 78 7C [18:10:52]Write i2c OK [18:10:52]MH_I2C_Read... [18:10:52]Read from MH i2c: 01 [18:10:52]MH_I2C_Read... [18:10:52]Read from MH i2c: 01 07 00 [18:10:52]MH_I2C_Read... [18:10:52]Read from MH i2c: 01 07 00 04 78 00 00 00 00 00 E9 0C 78 [18:10:52]RasterBufferAndPrint [18:10:52]line [18:10:52]line [18:10:52]line [18:10:52]line [18:10:52]line [18:10:52]written 0, free lines is 3312 [18:10:52]process_action close_receipt done [18:10:52]requested_data is exist [18:10:52]produce_requested_data [18:10:52]requested_item fm.sn is exist - process it [18:10:52]wFMCommunicate request_size=4 [18:10:52]MH_SAM_APDU [18:10:52]CAPDU: 80 11 00 00 [18:10:52]Write to MH i2c: E2 08 00 0B 78 80 11 00 00 00 00 00 00 FD [18:10:52]Write i2c OK [18:10:52]MH_I2C_Read... [18:10:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:10:52]Read from MH i2c: E2 [18:10:52]MH_I2C_Read... [18:10:52]Read from MH i2c: E2 17 00 [18:10:52]MH_I2C_Read... [18:10:52]Read from MH i2c: E2 17 00 0B 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 52 [18:10:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:10:52]wFMCommunicate OK [18:10:52]requested_item fd.num is exist - process it [18:10:52]SAM_PROTO_GetFieldsCounters [18:10:52]wFMCommunicate request_size=4 [18:10:52]MH_SAM_APDU [18:10:52]CAPDU: 80 13 00 00 [18:10:52]Write to MH i2c: E2 08 00 0C 78 80 13 00 00 00 00 00 00 00 [18:10:52]Write i2c OK [18:10:52]MH_I2C_Read... [18:10:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:10:52]Read from MH i2c: E2 [18:10:52]MH_I2C_Read... [18:10:52]Read from MH i2c: E2 62 00 [18:10:52]MH_I2C_Read... [18:10:52]Read from MH i2c: E2 62 00 0C 78 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 1A 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 AC [18:10:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 1A 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:10:52]wFMCommunicate OK [18:10:52]SAM_PROTO_GetFieldsCounters done [18:10:52]requested_item shift.num is exist - process it [18:10:52]requested_item shift.opened is exist - process it [18:10:52]req_shift_opened [18:10:52]FM_GetShiftState [18:10:52]SAM_PROTO_GetShiftState [18:10:52]wFMCommunicate request_size=4 [18:10:52]MH_SAM_APDU [18:10:52]CAPDU: 80 13 01 00 [18:10:52]Write to MH i2c: E2 08 00 0D 78 80 13 01 00 00 00 00 00 02 [18:10:52]Write i2c OK [18:10:52]MH_I2C_Read... [18:10:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:10:52]Read from MH i2c: E2 [18:10:52]MH_I2C_Read... [18:10:52]Read from MH i2c: E2 0E 00 [18:10:52]MH_I2C_Read... [18:10:52]Read from MH i2c: E2 0E 00 0D 78 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 CF [18:10:52]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [18:10:52]wFMCommunicate OK [18:10:52]SAM_PROTO_GetShiftState done [18:10:52]FM_GetShiftState done [18:10:52]req_shift_opened done [18:10:52]requested_item shift.open_date is exist - process it [18:10:52]req_shift_open_date [18:10:52]req_shift_open_date done [18:10:52]produce_requested_data done [18:10:52]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156698,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [18:10:52]process_action_free close_receipt [18:10:52]json_value_free [18:10:52]json_value_free done [18:10:52]process_json_proto returns [18:10:52]Send response to host [18:10:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156698,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [18:10:52]free response buf [18:10:52]execute_script done [18:10:52]execute_script returns [18:10:52]free content buf [18:10:52]Sock 8.Close socket [18:10:52]Sock 8.Thread stoped [18:10:52]OFD Sender: No OFD packet to send [18:10:57]OFD Sender: No OFD packet to send [18:11:02]OFD Sender: No OFD packet to send [18:11:07]OFD Sender: No OFD packet to send [18:11:12]OFD Sender: No OFD packet to send [18:11:17]OFD Sender: No OFD packet to send [18:11:22]OFD Sender: No OFD packet to send [18:11:27]OFD Sender: No OFD packet to send [18:11:32]OFD Sender: No OFD packet to send [18:11:37]OFD Sender: No OFD packet to send [18:11:42]OFD Sender: No OFD packet to send [18:11:47]OFD Sender: No OFD packet to send [18:11:52]OFD Sender: No OFD packet to send [18:11:57]OFD Sender: No OFD packet to send [18:12:02]OFD Sender: No OFD packet to send [18:12:07]OFD Sender: No OFD packet to send [18:12:12]OFD Sender: No OFD packet to send [18:12:17]OFD Sender: No OFD packet to send [18:12:22]OFD Sender: No OFD packet to send [18:12:27]OFD Sender: No OFD packet to send [18:12:32]OFD Sender: No OFD packet to send [18:12:37]OFD Sender: No OFD packet to send [18:12:42]OFD Sender: No OFD packet to send [18:12:47]OFD Sender: No OFD packet to send [18:12:52]OFD Sender: No OFD packet to send [18:12:57]OFD Sender: No OFD packet to send [18:13:02]OFD Sender: No OFD packet to send [18:13:07]OFD Sender: No OFD packet to send [18:13:12]OFD Sender: No OFD packet to send [18:13:17]OFD Sender: No OFD packet to send [18:13:22]OFD Sender: No OFD packet to send [18:13:27]OFD Sender: No OFD packet to send [18:13:32]OFD Sender: No OFD packet to send [18:13:37]OFD Sender: No OFD packet to send [18:13:42]OFD Sender: No OFD packet to send [18:13:47]OFD Sender: No OFD packet to send [18:13:52]OFD Sender: No OFD packet to send [18:13:57]OFD Sender: No OFD packet to send [18:14:02]OFD Sender: No OFD packet to send [18:14:07]OFD Sender: No OFD packet to send [18:14:12]OFD Sender: No OFD packet to send [18:14:17]OFD Sender: No OFD packet to send [18:14:22]OFD Sender: No OFD packet to send [18:14:27]OFD Sender: No OFD packet to send [18:14:32]OFD Sender: No OFD packet to send [18:14:37]OFD Sender: No OFD packet to send [18:14:42]OFD Sender: No OFD packet to send [18:14:47]OFD Sender: No OFD packet to send [18:14:52]OFD Sender: No OFD packet to send [18:14:57]OFD Sender: No OFD packet to send [18:15:02]OFD Sender: No OFD packet to send [18:15:07]OFD Sender: No OFD packet to send [18:15:12]OFD Sender: No OFD packet to send [18:15:17]OFD Sender: No OFD packet to send [18:15:18]accept exits with 9 [18:15:18]New connection [18:15:18]New thread 3066977636 created [18:15:18]Thread 3066834276 joined [18:15:18]Waiting for new connection... [18:15:18] Sock 9.Parse request [18:15:18]Sock 9.Check first char [18:15:18]Sock 9.First char is OK [18:15:18]request: POST /json_proto HTTP/1.0 [18:15:18]Method: POST [18:15:18]URL: /json_proto [18:15:18]Method is POST - this is cgi request [18:15:18]url: /json_proto [18:15:18]query_string will be loaded in cgi processing [18:15:18]execute_cgi json_proto POST (null) [18:15:18]execute_cgi path=json_proto method=POST [18:15:18]POST find Content-Length [18:15:18]Host: 172.17.63.3:8080 [18:15:18]Content-Length: 673 [18:15:18]Content-Type: application/json [18:15:18] [18:15:18]POST finish read [18:15:18]Found Content-Length = 673 [18:15:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99513", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 4.010, "sum" : 305.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 305.00, "total" : 305.00, "payments": [ { "type": 0, "sum" : 305.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:15:18]execute_script... [18:15:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99513", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 4.010, "sum" : 305.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 305.00, "total" : 305.00, "payments": [ { "type": 0, "sum" : 305.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:15:18]POST & json_proto [18:15:18]process_json_proto [18:15:18]json parsed OK: [18:15:18]protocol is kg_v1.0 [18:15:18]action value=close_receipt [18:15:18]process_action close_receipt [18:15:18]cmd_close_receipt [18:15:18]MH_GetDate [18:15:18]Write to MH i2c: F0 00 00 0E 78 75 [18:15:18]Write i2c OK [18:15:18]MH_I2C_Read... [18:15:18]Read from MH i2c: F0 [18:15:18]MH_I2C_Read... [18:15:18]Read from MH i2c: F0 09 00 [18:15:18]MH_I2C_Read... [18:15:18]Read from MH i2c: F0 09 00 0E 78 00 3D 83 1E 67 50 D1 6C 64 B4 [18:15:18]GetLastDocTimeStamp 1730052656 [18:15:18]current date 1730052925 [18:15:18]FM_GetShiftState [18:15:18]SAM_PROTO_GetShiftState [18:15:18]wFMCommunicate request_size=4 [18:15:18]MH_SAM_APDU [18:15:18]CAPDU: 80 13 01 00 [18:15:18]Write to MH i2c: E2 08 00 0F 78 80 13 01 00 00 00 00 00 04 [18:15:18]Write i2c OK [18:15:18]MH_I2C_Read... [18:15:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:15:18]Read from MH i2c: E2 [18:15:18]MH_I2C_Read... [18:15:18]Read from MH i2c: E2 0E 00 [18:15:18]MH_I2C_Read... [18:15:18]Read from MH i2c: E2 0E 00 0F 78 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 D1 [18:15:18]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [18:15:18]wFMCommunicate OK [18:15:18]SAM_PROTO_GetShiftState done [18:15:18]FM_GetShiftState done [18:15:18]opened in 1729989044 [18:15:18]opened+sec_in_day 1730075444 [18:15:18]quantity*price = 30556 [18:15:18]sum+1 = 30557 [18:15:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 305.00 Внесено: 305.00 СДАЧА: 0.00 НСП 1% : 2.70 НДС 12% : 32.45 Наличными: 305.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 250 27.10.2024 18:15 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156699 ФПД: 151682225697418 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T181525&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156699&fm=151682225697418&tin=02508201610067®Number=0000000000091693&sum=30500 [18:15:20]StoreToDocumentArchive [18:15:20]shift 537 fd 156699 [18:15:20]save to /storage/0537/doc_00156699 [18:15:20]save last doc name /storage/0537/doc_00156699 to /storage/kkm_last_doc_name [18:15:20]save OK [18:15:20]Clear old archive folders... [18:15:20]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:15:20]tlvbuf is 01889250 [18:15:20]SAM_PROTO_ClearQueue [18:15:20]wFMCommunicate request_size=4 [18:15:20]MH_SAM_APDU [18:15:20]CAPDU: 80 09 00 00 [18:15:20]Write to MH i2c: E2 08 00 1C 78 80 09 00 00 00 00 00 00 06 [18:15:20]Write i2c OK [18:15:20]MH_I2C_Read... [18:15:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:15:20]Read from MH i2c: E2 [18:15:20]MH_I2C_Read... [18:15:20]Read from MH i2c: E2 03 00 [18:15:20]MH_I2C_Read... [18:15:20]Read from MH i2c: E2 03 00 1C 78 00 90 00 08 [18:15:20]RAPDU: 90 00 [18:15:20]wFMCommunicate OK [18:15:20]SAM_PROTO_ClearQueue done [18:15:20]KKMCreateOFDPacket [18:15:20]OFDProtocolAddRootSTLVToBuf [18:15:20]FM_MakeSignedData [18:15:20]FM_MakeSignedData [18:15:20]SAM_PROTO_SignData [18:15:20]wFMCommunicate request_size=4 [18:15:20]MH_SAM_APDU [18:15:20]CAPDU: 80 0D 01 02 [18:15:20]Write to MH i2c: E2 08 00 1D 78 80 0D 01 02 00 00 00 00 0E [18:15:20]Write i2c OK [18:15:20]MH_I2C_Read... [18:15:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:15:20]Read from MH i2c: E2 [18:15:20]MH_I2C_Read... [18:15:20]Read from MH i2c: E2 03 00 [18:15:20]MH_I2C_Read... [18:15:20]Read from MH i2c: E2 03 00 1D 78 00 90 00 09 [18:15:20]RAPDU: 90 00 [18:15:20]wFMCommunicate OK [18:15:20]wFMCommunicate request_size=255 [18:15:20]MH_SAM_APDU [18:15:20]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5C 77 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 77 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 0C 00 00 00 00 07 04 06 00 24 77 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 3D 83 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1B 64 02 00 35 04 06 00 89 F4 45 2E [18:15:20]Write to MH i2c: E2 02 01 1E 78 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5C 77 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 77 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 0C 00 00 00 00 07 04 06 00 24 77 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 3D 83 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1B 64 02 00 35 04 06 00 89 F4 45 2E 00 00 A6 [18:15:20]Write i2c OK [18:15:20]MH_I2C_Read... [18:15:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:15:20]Read from MH i2c: E2 [18:15:20]MH_I2C_Read... [18:15:20]Read from MH i2c: E2 03 00 [18:15:20]MH_I2C_Read... [18:15:20]Read from MH i2c: E2 03 00 1E 78 00 90 00 0A [18:15:20]RAPDU: 90 00 [18:15:20]wFMCommunicate OK [18:15:20]wFMCommunicate request_size=7 [18:15:20]MH_SAM_APDU [18:15:20]CAPDU: 80 0D 02 02 02 72 8A [18:15:20]Write to MH i2c: E2 0A 00 1F 78 80 0D 02 02 02 00 72 8A 00 00 11 [18:15:20]Write i2c OK [18:15:20]MH_I2C_Read... [18:15:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:15:20]Read from MH i2c: E2 [18:15:20]MH_I2C_Read... [18:15:20]Read from MH i2c: E2 03 00 [18:15:20]MH_I2C_Read... [18:15:20]Read from MH i2c: E2 03 00 1F 78 00 90 00 0B [18:15:20]RAPDU: 90 00 [18:15:20]wFMCommunicate OK [18:15:20]wFMCommunicate request_size=4 [18:15:20]MH_SAM_APDU [18:15:20]CAPDU: 80 0D 03 02 [18:15:20]Write to MH i2c: E2 08 00 20 78 80 0D 03 02 00 00 00 00 13 [18:15:20]Write i2c OK [18:15:20]MH_I2C_Read... [18:15:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:15:20]Read from MH i2c: E2 [18:15:20]MH_I2C_Read... [18:15:20]Read from MH i2c: E2 0B 00 [18:15:20]MH_I2C_Read... [18:15:20]Read from MH i2c: E2 0B 00 20 78 00 6E 60 7B 58 BA 77 6F C8 90 00 1D [18:15:20]RAPDU: 6E 60 7B 58 BA 77 6F C8 90 00 [18:15:20]wFMCommunicate OK [18:15:20]SAM_PROTO_SignData done [18:15:20]FM_MakeSignedData done [18:15:20]CreateOFDProtocolMessage [18:15:20]wFMCommunicate request_size=4 [18:15:20]MH_SAM_APDU [18:15:20]CAPDU: 80 11 00 00 [18:15:20]Write to MH i2c: E2 08 00 21 78 80 11 00 00 00 00 00 00 13 [18:15:20]Write i2c OK [18:15:20]MH_I2C_Read... [18:15:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:15:20]Read from MH i2c: E2 [18:15:20]MH_I2C_Read... [18:15:20]Read from MH i2c: E2 17 00 [18:15:20]MH_I2C_Read... [18:15:20]Read from MH i2c: E2 17 00 21 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 68 [18:15:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:15:20]wFMCommunicate OK [18:15:20]CreateOFDProtocolMessage done [18:15:20]OFDSenderStorePacket 156699 [18:15:20]StoreOFDPacket docnum=156699 [18:15:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 8E 0B 04 01 6F 5E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5C 77 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 77 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 0C 00 00 00 00 07 04 06 00 24 77 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 3D 83 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1B 64 02 00 35 04 06 00 89 F4 45 2E 72 8A 6E 60 7B 58 BA 77 6F C8 [18:15:20]CheckFolder [18:15:20]dirname=/storage/ofd_packets [18:15:20]CheckFolder done [18:15:20]ProducePacketName [18:15:20]name=ofd_packets/00156699 [18:15:20]NVStorageSaveData ofd_packets/00156699 [18:15:20]File name is /storage/ofd_packets/00156699 [18:15:20]Write 298 bytes [18:15:20]NVStorageSaveData done [18:15:20]OFDSenderStorePacket done [18:15:20]KKMCreateOFDPacket done [18:15:20]NVStorageSaveData kkm_last_timestamp [18:15:20]File name is /storage/kkm_last_timestamp [18:15:20]Write 4 bytes [18:15:20]NVStorageSaveData done [18:15:20]ExternCall_PrintAddStr [18:15:20]wPrintStart [18:15:20]Write to MH i2c: 01 00 00 22 78 9A [18:15:20]Write i2c OK [18:15:20]MH_I2C_Read... [18:15:20]Read from MH i2c: 01 [18:15:20]MH_I2C_Read... [18:15:20]Read from MH i2c: 01 07 00 [18:15:20]MH_I2C_Read... [18:15:20]Read from MH i2c: 01 07 00 22 78 00 00 00 00 00 FF 0F AF [18:15:20]RasterBufferAndPrint [18:15:20]line Счет N : (1)99513 [18:15:20]line ИНН: 02508201610067 [18:15:20]line Контрольно-Кассовый Чек [18:15:20]line ПРОДАЖА [18:15:20]line ТРК (МРК, ГНК) : 32 [18:15:20]line Товар: 2710194210 [18:15:20]line ДТ-К-5 [18:15:20]line 4.010 * 76.20 [18:15:20]line = 305.56 [18:15:20]line НДС 12% НСП 1% [18:15:20]line > о реализуемом товаре [18:15:20]line ОКРУГЛЕНИЕ: -0.56 [18:15:20]line ИТОГО: 305.00 [18:15:20]line Внесено: 305.00 [18:15:20]line СДАЧА: 0.00 [18:15:20]line НСП 1% : 2.70 [18:15:20]line НДС 12% : 32.45 [18:15:20]line Наличными: 305.00 [18:15:20]line Безнал.: 0.00 [18:15:20]line Место: АЗС № 143 "Партнер Нефть" [18:15:20]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [18:15:20]line СНО: Общий режим [18:15:20]line Чек 250 27.10.2024 18:15 [18:15:20]line Смена: 537 ФФД: 1.0 [18:15:20]line ЗНМ: 0300000096 [18:15:20]line РНМ: 0000000000091693 [18:15:20]line Версия ККМ: 001 [18:15:20]line ФМ: 0000000000871792 [18:15:20]line ФД: 156699 [18:15:20]line ФПД: 151682225697418 [18:15:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T181525&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156699&fm=151682225697418&tin=02508201610067®Number=0000000000091693&sum=30500 [18:15:20]OFD Sender: Processing packet 156699 [packets to send 31, broken 30] [18:15:20]ProducePacketName [18:15:20]name=ofd_packets/00156699 [18:15:20]OFD Sender: To server: pG, [18:15:20]CommunicateWithHost lk.salyk.kg:30040 [18:15:20]ConnectInit lk.salyk.kg [18:15:20]written 0, free lines is 4095 [18:15:21]Connected sock=10 [18:15:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 8E 0B 04 01 6F 5E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5C 77 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 77 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 0C 00 00 00 00 07 04 06 00 24 77 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FA 00 00 00 F4 03 04 00 3D 83 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1B 64 02 00 35 04 06 00 89 F4 45 2E 72 8A 6E 60 7B 58 BA 77 6F C8 [18:15:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 AE CF 47 00 8B 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 31 37 39 32 10 04 04 00 1B 64 02 00 F4 03 04 00 AC 28 1E 67 B6 04 01 00 00 14 5A 74 B1 60 CA A5 D4 [18:15:21]CommunicateWithHost err = 0 [18:15:21]CheckOFDResponse [18:15:21]1017 (14) - 77093643461234 [18:15:21]1041 (16) - 0000000000871792 [18:15:21]1040 (4) - 156699 [18:15:21]1012 (4) - 27.10.2024 11:49 [18:15:21]1206 (1) - 0 [18:15:21]OFD Sender: Remove packet 156699 [18:15:21]ProducePacketName [18:15:21]name=ofd_packets/00156699 [18:15:21]NVStorageDeleteData [18:15:21]Write to MH i2c: 01 00 00 4D 78 C5 [18:15:21]Write i2c OK [18:15:21]MH_I2C_Read... [18:15:21]Read from MH i2c: 01 [18:15:21]MH_I2C_Read... [18:15:21]Read from MH i2c: 01 07 00 [18:15:21]MH_I2C_Read... [18:15:21]Read from MH i2c: 01 07 00 4D 78 00 00 00 00 00 E0 0C B8 [18:15:21]RasterBufferAndPrint [18:15:21]line [18:15:21]line [18:15:21]line [18:15:21]line [18:15:21]line [18:15:21]written 0, free lines is 3305 [18:15:21]process_action close_receipt done [18:15:21]requested_data is exist [18:15:21]produce_requested_data [18:15:21]requested_item fm.sn is exist - process it [18:15:21]wFMCommunicate request_size=4 [18:15:21]MH_SAM_APDU [18:15:21]CAPDU: 80 11 00 00 [18:15:21]Write to MH i2c: E2 08 00 54 78 80 11 00 00 00 00 00 00 46 [18:15:21]Write i2c OK [18:15:21]MH_I2C_Read... [18:15:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:15:21]Read from MH i2c: E2 [18:15:21]MH_I2C_Read... [18:15:21]Read from MH i2c: E2 17 00 [18:15:21]MH_I2C_Read... [18:15:21]Read from MH i2c: E2 17 00 54 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 9B [18:15:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:15:21]wFMCommunicate OK [18:15:21]requested_item fd.num is exist - process it [18:15:21]SAM_PROTO_GetFieldsCounters [18:15:21]wFMCommunicate request_size=4 [18:15:21]MH_SAM_APDU [18:15:21]CAPDU: 80 13 00 00 [18:15:21]Write to MH i2c: E2 08 00 55 78 80 13 00 00 00 00 00 00 49 [18:15:21]Write i2c OK [18:15:21]MH_I2C_Read... [18:15:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:15:21]Read from MH i2c: E2 [18:15:21]MH_I2C_Read... [18:15:21]Read from MH i2c: E2 62 00 [18:15:21]MH_I2C_Read... [18:15:21]Read from MH i2c: E2 62 00 55 78 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 1B 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 FA 00 00 00 5E 04 04 00 FA 00 00 00 57 04 04 00 FB 00 00 00 19 04 04 00 00 00 00 00 90 00 F9 [18:15: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 1B 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 FA 00 00 00 5E 04 04 00 FA 00 00 00 57 04 04 00 FB 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:15:21]wFMCommunicate OK [18:15:21]SAM_PROTO_GetFieldsCounters done [18:15:21]requested_item shift.num is exist - process it [18:15:21]requested_item shift.opened is exist - process it [18:15:21]req_shift_opened [18:15:21]FM_GetShiftState [18:15:21]SAM_PROTO_GetShiftState [18:15:21]wFMCommunicate request_size=4 [18:15:21]MH_SAM_APDU [18:15:21]CAPDU: 80 13 01 00 [18:15:21]Write to MH i2c: E2 08 00 56 78 80 13 01 00 00 00 00 00 4B [18:15:21]Write i2c OK [18:15:21]MH_I2C_Read... [18:15:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:15:21]Read from MH i2c: E2 [18:15:21]MH_I2C_Read... [18:15:21]Read from MH i2c: E2 0E 00 [18:15:21]MH_I2C_Read... [18:15:21]Read from MH i2c: E2 0E 00 56 78 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 18 [18:15:21]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [18:15:21]wFMCommunicate OK [18:15:21]SAM_PROTO_GetShiftState done [18:15:21]FM_GetShiftState done [18:15:21]req_shift_opened done [18:15:21]requested_item shift.open_date is exist - process it [18:15:21]req_shift_open_date [18:15:21]req_shift_open_date done [18:15:21]produce_requested_data done [18:15:21]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156699,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [18:15:21]process_action_free close_receipt [18:15:21]json_value_free [18:15:21]json_value_free done [18:15:21]process_json_proto returns [18:15:21]Send response to host [18:15:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156699,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [18:15:21]free response buf [18:15:21]execute_script done [18:15:21]execute_script returns [18:15:21]free content buf [18:15:21]Sock 9.Close socket [18:15:21]Sock 9.Thread stoped [18:15:21]OFD Sender: No OFD packet to send [18:15:26]OFD Sender: No OFD packet to send [18:15:31]OFD Sender: No OFD packet to send [18:15:36]OFD Sender: No OFD packet to send [18:15:41]OFD Sender: No OFD packet to send [18:15:46]OFD Sender: No OFD packet to send [18:15:51]OFD Sender: No OFD packet to send [18:15:56]OFD Sender: No OFD packet to send [18:16:01]OFD Sender: No OFD packet to send [18:16:06]OFD Sender: No OFD packet to send [18:16:11]OFD Sender: No OFD packet to send [18:16:16]OFD Sender: No OFD packet to send [18:16:21]OFD Sender: No OFD packet to send [18:16:26]OFD Sender: No OFD packet to send [18:16:31]OFD Sender: No OFD packet to send [18:16:36]OFD Sender: No OFD packet to send [18:16:41]OFD Sender: No OFD packet to send [18:16:46]OFD Sender: No OFD packet to send [18:16:51]OFD Sender: No OFD packet to send [18:16:56]OFD Sender: No OFD packet to send [18:17:01]OFD Sender: No OFD packet to send [18:17:06]OFD Sender: No OFD packet to send [18:17:11]OFD Sender: No OFD packet to send [18:17:16]OFD Sender: No OFD packet to send [18:17:21]OFD Sender: No OFD packet to send [18:17:26]OFD Sender: No OFD packet to send [18:17:31]OFD Sender: No OFD packet to send [18:17:36]OFD Sender: No OFD packet to send [18:17:41]OFD Sender: No OFD packet to send [18:17:46]OFD Sender: No OFD packet to send [18:17:51]OFD Sender: No OFD packet to send [18:17:56]OFD Sender: No OFD packet to send [18:17:58]accept exits with 8 [18:17:58]New connection [18:17:58]New thread 3066834276 created [18:17:58]Thread 3066977636 joined [18:17:58]Waiting for new connection... [18:17:58] Sock 8.Parse request [18:17:58]Sock 8.Check first char [18:17:58]Sock 8.First char is OK [18:17:58]request: POST /json_proto HTTP/1.0 [18:17:58]Method: POST [18:17:58]URL: /json_proto [18:17:58]Method is POST - this is cgi request [18:17:58]url: /json_proto [18:17:58]query_string will be loaded in cgi processing [18:17:58]execute_cgi json_proto POST (null) [18:17:58]execute_cgi path=json_proto method=POST [18:17:58]POST find Content-Length [18:17:58]Host: 172.17.63.3:8080 [18:17:58]Content-Length: 681 [18:17:58]Content-Type: application/json [18:17:58] [18:17:58]POST finish read [18:17:58]Found Content-Length = 681 [18:17:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99514", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 41.860, "sum" : 2800.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2800.00, "total" : 2800.00, "payments": [ { "type": 0, "sum" : 2800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:17:58]execute_script... [18:17: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)99514", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 41.860, "sum" : 2800.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2800.00, "total" : 2800.00, "payments": [ { "type": 0, "sum" : 2800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:17:58]POST & json_proto [18:17:58]process_json_proto [18:17:58]json parsed OK: [18:17:58]protocol is kg_v1.0 [18:17:58]action value=close_receipt [18:17:58]process_action close_receipt [18:17:58]cmd_close_receipt [18:17:58]MH_GetDate [18:17:58]Write to MH i2c: F0 00 00 57 78 BE [18:17:58]Write i2c OK [18:17:58]MH_I2C_Read... [18:17:58]Read from MH i2c: F0 [18:17:58]MH_I2C_Read... [18:17:58]Read from MH i2c: F0 09 00 [18:17:58]MH_I2C_Read... [18:17:58]Read from MH i2c: F0 09 00 57 78 00 DD 83 1E 67 50 D1 6C 64 9D [18:17:58]GetLastDocTimeStamp 1730052925 [18:17:58]current date 1730053085 [18:17:58]FM_GetShiftState [18:17:58]SAM_PROTO_GetShiftState [18:17:58]wFMCommunicate request_size=4 [18:17:58]MH_SAM_APDU [18:17:58]CAPDU: 80 13 01 00 [18:17:58]Write to MH i2c: E2 08 00 58 78 80 13 01 00 00 00 00 00 4D [18:17:58]Write i2c OK [18:17:58]MH_I2C_Read... [18:17:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:17:58]Read from MH i2c: E2 [18:17:58]MH_I2C_Read... [18:17:58]Read from MH i2c: E2 0E 00 [18:17:58]MH_I2C_Read... [18:17:58]Read from MH i2c: E2 0E 00 58 78 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 1A [18:17:58]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [18:17:58]wFMCommunicate OK [18:17:58]SAM_PROTO_GetShiftState done [18:17:58]FM_GetShiftState done [18:17:58]opened in 1729989044 [18:17:58]opened+sec_in_day 1730075444 [18:17:58]quantity*price = 280043 [18:17:58]sum+1 = 280044 [18:17:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2800.00 Внесено: 2800.00 СДАЧА: 0.00 НСП 1% : 24.78 НДС 12% : 297.39 Наличными: 2800.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 251 27.10.2024 18:18 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156700 ФПД: 118141867460158 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T181805&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156700&fm=118141867460158&tin=02508201610067®Number=0000000000091693&sum=280000 [18:18:00]StoreToDocumentArchive [18:18:00]shift 537 fd 156700 [18:18:00]save to /storage/0537/doc_00156700 [18:18:00]save last doc name /storage/0537/doc_00156700 to /storage/kkm_last_doc_name [18:18:00]save OK [18:18:00]Clear old archive folders... [18:18:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:18:00]tlvbuf is 0174F9C0 [18:18:00]SAM_PROTO_ClearQueue [18:18:00]wFMCommunicate request_size=4 [18:18:00]MH_SAM_APDU [18:18:00]CAPDU: 80 09 00 00 [18:18:00]Write to MH i2c: E2 08 00 65 78 80 09 00 00 00 00 00 00 4F [18:18:00]Write i2c OK [18:18:00]MH_I2C_Read... [18:18:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:18:00]Read from MH i2c: E2 [18:18:00]MH_I2C_Read... [18:18:00]Read from MH i2c: E2 03 00 [18:18:00]MH_I2C_Read... [18:18:00]Read from MH i2c: E2 03 00 65 78 00 90 00 51 [18:18:00]RAPDU: 90 00 [18:18:00]wFMCommunicate OK [18:18:00]SAM_PROTO_ClearQueue done [18:18:00]KKMCreateOFDPacket [18:18:00]OFDProtocolAddRootSTLVToBuf [18:18:00]FM_MakeSignedData [18:18:00]FM_MakeSignedData [18:18:00]SAM_PROTO_SignData [18:18:00]wFMCommunicate request_size=4 [18:18:00]MH_SAM_APDU [18:18:00]CAPDU: 80 0D 01 02 [18:18:00]Write to MH i2c: E2 08 00 66 78 80 0D 01 02 00 00 00 00 57 [18:18:00]Write i2c OK [18:18:00]MH_I2C_Read... [18:18:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:18:00]Read from MH i2c: E2 [18:18:00]MH_I2C_Read... [18:18:00]Read from MH i2c: E2 03 00 [18:18:00]MH_I2C_Read... [18:18:00]Read from MH i2c: E2 03 00 66 78 00 90 00 52 [18:18:00]RAPDU: 90 00 [18:18:00]wFMCommunicate OK [18:18:00]wFMCommunicate request_size=255 [18:18:00]MH_SAM_APDU [18:18: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 84 A3 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 EB 45 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 45 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2B 74 00 00 00 00 07 04 06 00 C0 45 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 DD 83 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1C 64 02 00 35 04 06 00 6B [18:18:00]Write to MH i2c: E2 02 01 67 78 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 A3 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 EB 45 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 45 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2B 74 00 00 00 00 07 04 06 00 C0 45 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 DD 83 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1C 64 02 00 35 04 06 00 6B 00 00 4D [18:18:00]Write i2c OK [18:18:00]MH_I2C_Read... [18:18:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:18:00]Read from MH i2c: E2 [18:18:00]MH_I2C_Read... [18:18:00]Read from MH i2c: E2 03 00 [18:18:00]MH_I2C_Read... [18:18:00]Read from MH i2c: E2 03 00 67 78 00 90 00 53 [18:18:00]RAPDU: 90 00 [18:18:00]wFMCommunicate OK [18:18:00]wFMCommunicate request_size=10 [18:18:00]MH_SAM_APDU [18:18:00]CAPDU: 80 0D 02 02 05 73 0C 0B 06 3E [18:18:00]Write to MH i2c: E2 0D 00 68 78 80 0D 02 02 05 00 73 0C 0B 06 3E 00 00 32 [18:18:00]Write i2c OK [18:18:00]MH_I2C_Read... [18:18:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:18:00]Read from MH i2c: E2 [18:18:00]MH_I2C_Read... [18:18:00]Read from MH i2c: E2 03 00 [18:18:00]MH_I2C_Read... [18:18:00]Read from MH i2c: E2 03 00 68 78 00 90 00 54 [18:18:00]RAPDU: 90 00 [18:18:00]wFMCommunicate OK [18:18:00]wFMCommunicate request_size=4 [18:18:00]MH_SAM_APDU [18:18:00]CAPDU: 80 0D 03 02 [18:18:00]Write to MH i2c: E2 08 00 69 78 80 0D 03 02 00 00 00 00 5C [18:18:00]Write i2c OK [18:18:00]MH_I2C_Read... [18:18:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:18:00]Read from MH i2c: E2 [18:18:00]MH_I2C_Read... [18:18:00]Read from MH i2c: E2 0B 00 [18:18:00]MH_I2C_Read... [18:18:00]Read from MH i2c: E2 0B 00 69 78 00 DE 0F 40 4E AC 5E C8 4F 90 00 F9 [18:18:00]RAPDU: DE 0F 40 4E AC 5E C8 4F 90 00 [18:18:00]wFMCommunicate OK [18:18:00]SAM_PROTO_SignData done [18:18:00]FM_MakeSignedData done [18:18:00]CreateOFDProtocolMessage [18:18:00]wFMCommunicate request_size=4 [18:18:00]MH_SAM_APDU [18:18:00]CAPDU: 80 11 00 00 [18:18:00]Write to MH i2c: E2 08 00 6A 78 80 11 00 00 00 00 00 00 5C [18:18:00]Write i2c OK [18:18:00]MH_I2C_Read... [18:18:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:18:00]Read from MH i2c: E2 [18:18:00]MH_I2C_Read... [18:18:00]Read from MH i2c: E2 17 00 [18:18:00]MH_I2C_Read... [18:18:00]Read from MH i2c: E2 17 00 6A 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 B1 [18:18:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:18:00]wFMCommunicate OK [18:18:00]CreateOFDProtocolMessage done [18:18:00]OFDSenderStorePacket 156700 [18:18:00]StoreOFDPacket docnum=156700 [18:18:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 30 94 07 01 3E 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 A3 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 EB 45 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 45 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2B 74 00 00 00 00 07 04 06 00 C0 45 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 DD 83 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1C 64 02 00 35 04 06 00 6B 73 0C 0B 06 3E DE 0F 40 4E AC 5E C8 4F [18:18:00]CheckFolder [18:18:00]dirname=/storage/ofd_packets [18:18:00]CheckFolder done [18:18:00]ProducePacketName [18:18:00]name=ofd_packets/00156700 [18:18:00]NVStorageSaveData ofd_packets/00156700 [18:18:00]File name is /storage/ofd_packets/00156700 [18:18:00]Write 301 bytes [18:18:00]NVStorageSaveData done [18:18:00]OFDSenderStorePacket done [18:18:00]KKMCreateOFDPacket done [18:18:00]NVStorageSaveData kkm_last_timestamp [18:18:00]File name is /storage/kkm_last_timestamp [18:18:00]Write 4 bytes [18:18:00]NVStorageSaveData done [18:18:00]ExternCall_PrintAddStr [18:18:00]wPrintStart [18:18:00]Write to MH i2c: 01 00 00 6B 78 E3 [18:18:00]Write i2c OK [18:18:00]MH_I2C_Read... [18:18:00]Read from MH i2c: 01 [18:18:00]MH_I2C_Read... [18:18:00]Read from MH i2c: 01 07 00 [18:18:00]MH_I2C_Read... [18:18:00]Read from MH i2c: 01 07 00 6B 78 00 00 00 00 00 FF 0F F8 [18:18:00]RasterBufferAndPrint [18:18:00]line Счет N : (1)99514 [18:18:00]line ИНН: 02508201610067 [18:18:00]line Контрольно-Кассовый Чек [18:18:00]line ПРОДАЖА [18:18:00]line ТРК (МРК, ГНК) : 31 [18:18:00]line Товар: 2710124130 [18:18:00]line Аи-92-К-5 [18:18:00]line 41.860 * 66.90 [18:18:00]line = 2800.43 [18:18:00]line НДС 12% НСП 1% [18:18:00]line > о реализуемом товаре [18:18:00]line ОКРУГЛЕНИЕ: -0.43 [18:18:00]line ИТОГО: 2800.00 [18:18:00]line Внесено: 2800.00 [18:18:00]line СДАЧА: 0.00 [18:18:00]line НСП 1% : 24.78 [18:18:00]line НДС 12% : 297.39 [18:18:00]line Наличными: 2800.00 [18:18:00]line Безнал.: 0.00 [18:18:00]line Место: АЗС № 143 "Партнер Нефть" [18:18:00]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [18:18:00]line СНО: Общий режим [18:18:00]line Чек 251 27.10.2024 18:18 [18:18:00]line Смена: 537 ФФД: 1.0 [18:18:00]line ЗНМ: 0300000096 [18:18:00]line РНМ: 0000000000091693 [18:18:00]line Версия ККМ: 001 [18:18:00]line ФМ: 0000000000871792 [18:18:00]line ФД: 156700 [18:18:00]line ФПД: 118141867460158 [18:18:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T181805&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156700&fm=118141867460158&tin=02508201610067®Number=0000000000091693&sum=280000 [18:18:00]OFD Sender: Processing packet 156700 [packets to send 31, broken 30] [18:18:00]ProducePacketName [18:18:00]name=ofd_packets/00156700 [18:18:00]OFD Sender: To server: pG, [18:18:00]CommunicateWithHost lk.salyk.kg:30040 [18:18:00]ConnectInit lk.salyk.kg [18:18:00]written 0, free lines is 4095 [18:18:01]Connected sock=10 [18:18:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 30 94 07 01 3E 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 84 A3 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 EB 45 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 45 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2B 74 00 00 00 00 07 04 06 00 C0 45 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 DD 83 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1C 64 02 00 35 04 06 00 6B 73 0C 0B 06 3E DE 0F 40 4E AC 5E C8 4F [18:18:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 F8 5C 47 00 D0 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 31 37 39 32 10 04 04 00 1C 64 02 00 F4 03 04 00 4C 29 1E 67 B6 04 01 00 00 F0 C7 D4 CD F8 4A A7 91 [18:18:01]CommunicateWithHost err = 0 [18:18:01]CheckOFDResponse [18:18:01]1017 (14) - 77093643461234 [18:18:01]1041 (16) - 0000000000871792 [18:18:01]1040 (4) - 156700 [18:18:01]1012 (4) - 27.10.2024 11:51 [18:18:01]1206 (1) - 0 [18:18:01]OFD Sender: Remove packet 156700 [18:18:01]ProducePacketName [18:18:01]name=ofd_packets/00156700 [18:18:01]NVStorageDeleteData [18:18:01]Write to MH i2c: 01 00 00 96 78 0E [18:18:01]Write i2c OK [18:18:01]MH_I2C_Read... [18:18:01]Read from MH i2c: 01 [18:18:01]MH_I2C_Read... [18:18:01]Read from MH i2c: 01 07 00 [18:18:01]MH_I2C_Read... [18:18:01]Read from MH i2c: 01 07 00 96 78 00 00 00 00 00 EC 0C 0D [18:18:01]RasterBufferAndPrint [18:18:01]line [18:18:01]line [18:18:01]line [18:18:01]line [18:18:01]line [18:18:01]written 0, free lines is 3314 [18:18:01]process_action close_receipt done [18:18:01]requested_data is exist [18:18:01]produce_requested_data [18:18:01]requested_item fm.sn is exist - process it [18:18:01]wFMCommunicate request_size=4 [18:18:01]MH_SAM_APDU [18:18:01]CAPDU: 80 11 00 00 [18:18:01]Write to MH i2c: E2 08 00 9D 78 80 11 00 00 00 00 00 00 8F [18:18:01]Write i2c OK [18:18:01]MH_I2C_Read... [18:18:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:18:01]Read from MH i2c: E2 [18:18:01]MH_I2C_Read... [18:18:01]Read from MH i2c: E2 17 00 [18:18:01]MH_I2C_Read... [18:18:01]Read from MH i2c: E2 17 00 9D 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 E4 [18:18:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:18:01]wFMCommunicate OK [18:18:01]requested_item fd.num is exist - process it [18:18:01]SAM_PROTO_GetFieldsCounters [18:18:01]wFMCommunicate request_size=4 [18:18:01]MH_SAM_APDU [18:18:01]CAPDU: 80 13 00 00 [18:18:01]Write to MH i2c: E2 08 00 9E 78 80 13 00 00 00 00 00 00 92 [18:18:01]Write i2c OK [18:18:01]MH_I2C_Read... [18:18:01]Read from MH i2c: E2 [18:18:01]MH_I2C_Read... [18:18:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:18:01]Read from MH i2c: E2 62 00 [18:18:01]MH_I2C_Read... [18:18:01]Read from MH i2c: E2 62 00 9E 78 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 1C 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 46 [18:18:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 1C 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:18:01]wFMCommunicate OK [18:18:01]SAM_PROTO_GetFieldsCounters done [18:18:01]requested_item shift.num is exist - process it [18:18:01]requested_item shift.opened is exist - process it [18:18:01]req_shift_opened [18:18:01]FM_GetShiftState [18:18:01]SAM_PROTO_GetShiftState [18:18:01]wFMCommunicate request_size=4 [18:18:01]MH_SAM_APDU [18:18:01]CAPDU: 80 13 01 00 [18:18:01]Write to MH i2c: E2 08 00 9F 78 80 13 01 00 00 00 00 00 94 [18:18:01]Write i2c OK [18:18:01]MH_I2C_Read... [18:18:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:18:01]Read from MH i2c: E2 [18:18:01]MH_I2C_Read... [18:18:01]Read from MH i2c: E2 0E 00 [18:18:01]MH_I2C_Read... [18:18:01]Read from MH i2c: E2 0E 00 9F 78 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 61 [18:18:01]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [18:18:01]wFMCommunicate OK [18:18:01]SAM_PROTO_GetShiftState done [18:18:01]FM_GetShiftState done [18:18:01]req_shift_opened done [18:18:01]requested_item shift.open_date is exist - process it [18:18:01]req_shift_open_date [18:18:01]req_shift_open_date done [18:18:01]produce_requested_data done [18:18:01]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156700,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [18:18:01]process_action_free close_receipt [18:18:01]json_value_free [18:18:01]json_value_free done [18:18:01]process_json_proto returns [18:18:01]Send response to host [18:18:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156700,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [18:18:01]free response buf [18:18:01]execute_script done [18:18:01]execute_script returns [18:18:01]free content buf [18:18:01]Sock 8.Close socket [18:18:01]Sock 8.Thread stoped [18:18:01]OFD Sender: No OFD packet to send [18:18:06]OFD Sender: No OFD packet to send [18:18:11]OFD Sender: No OFD packet to send [18:18:16]OFD Sender: No OFD packet to send [18:18:21]OFD Sender: No OFD packet to send [18:18:26]OFD Sender: No OFD packet to send [18:18:31]OFD Sender: No OFD packet to send [18:18:36]OFD Sender: No OFD packet to send [18:18:41]OFD Sender: No OFD packet to send [18:18:46]OFD Sender: No OFD packet to send [18:18:49]accept exits with 9 [18:18:49]New connection [18:18:49]New thread 3066977636 created [18:18:49]Thread 3066834276 joined [18:18:49]Waiting for new connection... [18:18:49] Sock 9.Parse request [18:18:49]Sock 9.Check first char [18:18:49]Sock 9.First char is OK [18:18:49]request: POST /json_proto HTTP/1.0 [18:18:49]Method: POST [18:18:49]URL: /json_proto [18:18:49]Method is POST - this is cgi request [18:18:49]url: /json_proto [18:18:49]query_string will be loaded in cgi processing [18:18:49]execute_cgi json_proto POST (null) [18:18:49]execute_cgi path=json_proto method=POST [18:18:49]POST find Content-Length [18:18:49]Host: 172.17.63.3:8080 [18:18:49]Content-Length: 676 [18:18:49]Content-Type: application/json [18:18:49] [18:18:49]POST finish read [18:18:49]Found Content-Length = 676 [18:18:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99515", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:18:49]execute_script... [18: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)99515", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:18:49]POST & json_proto [18:18:49]process_json_proto [18:18:49]json parsed OK: [18:18:49]protocol is kg_v1.0 [18:18:49]action value=close_receipt [18:18:49]process_action close_receipt [18:18:49]cmd_close_receipt [18:18:49]MH_GetDate [18:18:49]Write to MH i2c: F0 00 00 A0 78 07 [18:18:49]Write i2c OK [18:18:49]MH_I2C_Read... [18:18:49]Read from MH i2c: F0 [18:18:49]MH_I2C_Read... [18:18:49]Read from MH i2c: F0 09 00 [18:18:49]MH_I2C_Read... [18:18:49]Read from MH i2c: F0 09 00 A0 78 00 10 84 1E 67 50 D1 6C 64 1A [18:18:49]GetLastDocTimeStamp 1730053085 [18:18:49]current date 1730053136 [18:18:49]FM_GetShiftState [18:18:49]SAM_PROTO_GetShiftState [18:18:49]wFMCommunicate request_size=4 [18:18:49]MH_SAM_APDU [18:18:49]CAPDU: 80 13 01 00 [18:18:49]Write to MH i2c: E2 08 00 A1 78 80 13 01 00 00 00 00 00 96 [18:18:49]Write i2c OK [18:18:49]MH_I2C_Read... [18:18:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:18:49]Read from MH i2c: E2 [18:18:49]MH_I2C_Read... [18:18:49]Read from MH i2c: E2 0E 00 [18:18:49]MH_I2C_Read... [18:18:49]Read from MH i2c: E2 0E 00 A1 78 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 63 [18:18:49]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [18:18:49]wFMCommunicate OK [18:18:49]SAM_PROTO_GetShiftState done [18:18:49]FM_GetShiftState done [18:18:49]opened in 1729989044 [18:18:49]opened+sec_in_day 1730075444 [18:18:49]quantity*price = 50041 [18:18:49]sum+1 = 50042 [18:18:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 252 27.10.2024 18:18 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156701 ФПД: 35394396406610 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T181857&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156701&fm=35394396406610&tin=02508201610067®Number=0000000000091693&sum=50000 [18:18:51]StoreToDocumentArchive [18:18:51]shift 537 fd 156701 [18:18:51]save to /storage/0537/doc_00156701 [18:18:51]save last doc name /storage/0537/doc_00156701 to /storage/kkm_last_doc_name [18:18:51]save OK [18:18:51]Clear old archive folders... [18:18:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:18:51]tlvbuf is 01827870 [18:18:51]SAM_PROTO_ClearQueue [18:18:51]wFMCommunicate request_size=4 [18:18:51]MH_SAM_APDU [18:18:51]CAPDU: 80 09 00 00 [18:18:51]Write to MH i2c: E2 08 00 AE 78 80 09 00 00 00 00 00 00 98 [18:18:51]Write i2c OK [18:18:51]MH_I2C_Read... [18:18:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:18:51]Read from MH i2c: E2 [18:18:51]MH_I2C_Read... [18:18:51]Read from MH i2c: E2 03 00 [18:18:51]MH_I2C_Read... [18:18:51]Read from MH i2c: E2 03 00 AE 78 00 90 00 9A [18:18:51]RAPDU: 90 00 [18:18:51]wFMCommunicate OK [18:18:51]SAM_PROTO_ClearQueue done [18:18:51]KKMCreateOFDPacket [18:18:51]OFDProtocolAddRootSTLVToBuf [18:18:51]FM_MakeSignedData [18:18:51]FM_MakeSignedData [18:18:51]SAM_PROTO_SignData [18:18:51]wFMCommunicate request_size=4 [18:18:51]MH_SAM_APDU [18:18:51]CAPDU: 80 0D 01 02 [18:18:51]Write to MH i2c: E2 08 00 AF 78 80 0D 01 02 00 00 00 00 A0 [18:18:51]Write i2c OK [18:18:51]MH_I2C_Read... [18:18:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:18:51]Read from MH i2c: E2 [18:18:51]MH_I2C_Read... [18:18:51]Read from MH i2c: E2 03 00 [18:18:51]MH_I2C_Read... [18:18:51]Read from MH i2c: E2 03 00 AF 78 00 90 00 9B [18:18:51]RAPDU: 90 00 [18:18:51]wFMCommunicate OK [18:18:51]wFMCommunicate request_size=255 [18:18:51]MH_SAM_APDU [18: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 11 84 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1D 64 02 00 35 04 06 00 20 [18:18:51]Write to MH i2c: E2 02 01 B0 78 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 11 84 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1D 64 02 00 35 04 06 00 20 00 00 08 [18:18:51]Write i2c OK [18:18:51]MH_I2C_Read... [18:18:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:18:51]Read from MH i2c: E2 [18:18:51]MH_I2C_Read... [18:18:51]Read from MH i2c: E2 03 00 [18:18:51]MH_I2C_Read... [18:18:51]Read from MH i2c: E2 03 00 B0 78 00 90 00 9C [18:18:51]RAPDU: 90 00 [18:18:51]wFMCommunicate OK [18:18:51]wFMCommunicate request_size=10 [18:18:51]MH_SAM_APDU [18:18:51]CAPDU: 80 0D 02 02 05 30 E6 6C C3 52 [18:18:51]Write to MH i2c: E2 0D 00 B1 78 80 0D 02 02 05 00 30 E6 6C C3 52 00 00 44 [18:18:51]Write i2c OK [18:18:51]MH_I2C_Read... [18:18:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:18:51]Read from MH i2c: E2 [18:18:51]MH_I2C_Read... [18:18:51]Read from MH i2c: E2 03 00 [18:18:51]MH_I2C_Read... [18:18:51]Read from MH i2c: E2 03 00 B1 78 00 90 00 9D [18:18:51]RAPDU: 90 00 [18:18:51]wFMCommunicate OK [18:18:51]wFMCommunicate request_size=4 [18:18:51]MH_SAM_APDU [18:18:51]CAPDU: 80 0D 03 02 [18:18:51]Write to MH i2c: E2 08 00 B2 78 80 0D 03 02 00 00 00 00 A5 [18:18:51]Write i2c OK [18:18:51]MH_I2C_Read... [18:18:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:18:51]Read from MH i2c: E2 [18:18:51]MH_I2C_Read... [18:18:51]Read from MH i2c: E2 0B 00 [18:18:51]MH_I2C_Read... [18:18:51]Read from MH i2c: E2 0B 00 B2 78 00 6A BA 9C E3 80 C2 07 84 90 00 16 [18:18:51]RAPDU: 6A BA 9C E3 80 C2 07 84 90 00 [18:18:51]wFMCommunicate OK [18:18:51]SAM_PROTO_SignData done [18:18:51]FM_MakeSignedData done [18:18:51]CreateOFDProtocolMessage [18:18:51]wFMCommunicate request_size=4 [18:18:51]MH_SAM_APDU [18:18:51]CAPDU: 80 11 00 00 [18:18:51]Write to MH i2c: E2 08 00 B3 78 80 11 00 00 00 00 00 00 A5 [18:18:51]Write i2c OK [18:18:51]MH_I2C_Read... [18:18:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:18:51]Read from MH i2c: E2 [18:18:51]MH_I2C_Read... [18:18:51]Read from MH i2c: E2 17 00 [18:18:51]MH_I2C_Read... [18:18:51]Read from MH i2c: E2 17 00 B3 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 FA [18:18:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:18:51]wFMCommunicate OK [18:18:51]CreateOFDProtocolMessage done [18:18:51]OFDSenderStorePacket 156701 [18:18:51]StoreOFDPacket docnum=156701 [18:18:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 55 16 07 01 5B 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 11 84 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1D 64 02 00 35 04 06 00 20 30 E6 6C C3 52 6A BA 9C E3 80 C2 07 84 [18:18:51]CheckFolder [18:18:51]dirname=/storage/ofd_packets [18:18:51]CheckFolder done [18:18:51]ProducePacketName [18:18:51]name=ofd_packets/00156701 [18:18:51]NVStorageSaveData ofd_packets/00156701 [18:18:51]File name is /storage/ofd_packets/00156701 [18:18:51]Write 301 bytes [18:18:51]NVStorageSaveData done [18:18:51]OFDSenderStorePacket done [18:18:51]KKMCreateOFDPacket done [18:18:51]NVStorageSaveData kkm_last_timestamp [18:18:51]File name is /storage/kkm_last_timestamp [18:18:51]Write 4 bytes [18:18:51]NVStorageSaveData done [18:18:51]ExternCall_PrintAddStr [18:18:51]wPrintStart [18:18:51]Write to MH i2c: 01 00 00 B4 78 2C [18:18:51]Write i2c OK [18:18:51]MH_I2C_Read... [18:18:51]Read from MH i2c: 01 [18:18:51]MH_I2C_Read... [18:18:51]Read from MH i2c: 01 07 00 [18:18:51]MH_I2C_Read... [18:18:51]Read from MH i2c: 01 07 00 B4 78 00 00 00 00 00 FF 0F 41 [18:18:51]RasterBufferAndPrint [18:18:51]line Счет N : (1)99515 [18:18:51]line ИНН: 02508201610067 [18:18:51]line Контрольно-Кассовый Чек [18:18:51]line ПРОДАЖА [18:18:51]line ТРК (МРК, ГНК) : 31 [18:18:51]line Товар: 2710124130 [18:18:51]line Аи-92-К-5 [18:18:51]line 7.480 * 66.90 [18:18:51]line = 500.41 [18:18:51]line НДС 12% НСП 1% [18:18:51]line > о реализуемом товаре [18:18:51]line ОКРУГЛЕНИЕ: -0.41 [18:18:51]line ИТОГО: 500.00 [18:18:51]line Внесено: 500.00 [18:18:51]line СДАЧА: 0.00 [18:18:51]line НСП 1% : 4.43 [18:18:51]line НДС 12% : 53.14 [18:18:51]line Наличными: 500.00 [18:18:51]line Безнал.: 0.00 [18:18:51]line Место: АЗС № 143 "Партнер Нефть" [18:18:51]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [18:18:51]line СНО: Общий режим [18:18:51]line Чек 252 27.10.2024 18:18 [18:18:51]line Смена: 537 ФФД: 1.0 [18:18:51]line ЗНМ: 0300000096 [18:18:51]line РНМ: 0000000000091693 [18:18:51]line Версия ККМ: 001 [18:18:51]line ФМ: 0000000000871792 [18:18:51]line ФД: 156701 [18:18:51]line ФПД: 35394396406610 [18:18:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T181857&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156701&fm=35394396406610&tin=02508201610067®Number=0000000000091693&sum=50000 [18:18:52]OFD Sender: Processing packet 156701 [packets to send 31, broken 30] [18:18:52]ProducePacketName [18:18:52]name=ofd_packets/00156701 [18:18:52]OFD Sender: To server: pG, [18:18:52]CommunicateWithHost lk.salyk.kg:30040 [18:18:52]ConnectInit lk.salyk.kg [18:18:52]written 0, free lines is 4095 [18:18:52]Connected sock=10 [18:18:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 55 16 07 01 5B 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 11 84 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1D 64 02 00 35 04 06 00 20 30 E6 6C C3 52 6A BA 9C E3 80 C2 07 84 [18:18:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 27 20 47 00 8E B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1D 64 02 00 F4 03 04 00 7F 29 1E 67 B6 04 01 00 00 CB 6F C4 BA 77 C8 53 90 [18:18:52]CommunicateWithHost err = 0 [18:18:52]CheckOFDResponse [18:18:52]1017 (14) - 77093643461234 [18:18:52]1041 (16) - 0000000000871792 [18:18:52]1040 (4) - 156701 [18:18:52]1012 (4) - 27.10.2024 11:52 [18:18:52]1206 (1) - 0 [18:18:52]OFD Sender: Remove packet 156701 [18:18:52]ProducePacketName [18:18:52]name=ofd_packets/00156701 [18:18:52]NVStorageDeleteData [18:18:52]Write to MH i2c: 01 00 00 DF 78 57 [18:18:52]Write i2c OK [18:18:52]MH_I2C_Read... [18:18:52]Read from MH i2c: 01 [18:18:52]MH_I2C_Read... [18:18:52]Read from MH i2c: 01 07 00 [18:18:52]MH_I2C_Read... [18:18:52]Read from MH i2c: 01 07 00 DF 78 00 00 00 00 00 F5 0C 5F [18:18:52]RasterBufferAndPrint [18:18:52]line [18:18:52]line [18:18:52]line [18:18:52]line [18:18:52]line [18:18:52]written 0, free lines is 3323 [18:18:52]process_action close_receipt done [18:18:52]requested_data is exist [18:18:52]produce_requested_data [18:18:52]requested_item fm.sn is exist - process it [18:18:52]wFMCommunicate request_size=4 [18:18:52]MH_SAM_APDU [18:18:52]CAPDU: 80 11 00 00 [18:18:52]Write to MH i2c: E2 08 00 E6 78 80 11 00 00 00 00 00 00 D8 [18:18:52]Write i2c OK [18:18:52]MH_I2C_Read... [18:18:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:18:52]Read from MH i2c: E2 [18:18:52]MH_I2C_Read... [18:18:52]Read from MH i2c: E2 17 00 [18:18:52]MH_I2C_Read... [18:18:52]Read from MH i2c: E2 17 00 E6 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 2D [18:18:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:18:52]wFMCommunicate OK [18:18:52]requested_item fd.num is exist - process it [18:18:52]SAM_PROTO_GetFieldsCounters [18:18:52]wFMCommunicate request_size=4 [18:18:52]MH_SAM_APDU [18:18:52]CAPDU: 80 13 00 00 [18:18:52]Write to MH i2c: E2 08 00 E7 78 80 13 00 00 00 00 00 00 DB [18:18:52]Write i2c OK [18:18:52]MH_I2C_Read... [18:18:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:18:52]Read from MH i2c: E2 [18:18:52]MH_I2C_Read... [18:18:52]Read from MH i2c: E2 62 00 [18:18:52]MH_I2C_Read... [18:18:52]Read from MH i2c: E2 62 00 E7 78 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 1D 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 93 [18:18:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 1D 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:18:52]wFMCommunicate OK [18:18:52]SAM_PROTO_GetFieldsCounters done [18:18:52]requested_item shift.num is exist - process it [18:18:52]requested_item shift.opened is exist - process it [18:18:52]req_shift_opened [18:18:52]FM_GetShiftState [18:18:52]SAM_PROTO_GetShiftState [18:18:52]wFMCommunicate request_size=4 [18:18:52]MH_SAM_APDU [18:18:52]CAPDU: 80 13 01 00 [18:18:52]Write to MH i2c: E2 08 00 E8 78 80 13 01 00 00 00 00 00 DD [18:18:52]Write i2c OK [18:18:52]MH_I2C_Read... [18:18:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:18:52]Read from MH i2c: E2 [18:18:52]MH_I2C_Read... [18:18:52]Read from MH i2c: E2 0E 00 [18:18:52]MH_I2C_Read... [18:18:52]Read from MH i2c: E2 0E 00 E8 78 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 AA [18:18:52]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [18:18:52]wFMCommunicate OK [18:18:52]SAM_PROTO_GetShiftState done [18:18:52]FM_GetShiftState done [18:18:52]req_shift_opened done [18:18:52]requested_item shift.open_date is exist - process it [18:18:52]req_shift_open_date [18:18:52]req_shift_open_date done [18:18:52]produce_requested_data done [18:18:52]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156701,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [18:18:52]process_action_free close_receipt [18:18:52]json_value_free [18:18:52]json_value_free done [18:18:52]process_json_proto returns [18:18:52]Send response to host [18:18:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156701,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [18:18:52]free response buf [18:18:52]execute_script done [18:18:52]execute_script returns [18:18:52]free content buf [18:18:52]Sock 9.Close socket [18:18:52]Sock 9.Thread stoped [18:18:52]OFD Sender: No OFD packet to send [18:18:57]OFD Sender: No OFD packet to send [18:19:02]OFD Sender: No OFD packet to send [18:19:07]OFD Sender: No OFD packet to send [18:19:12]OFD Sender: No OFD packet to send [18:19:17]OFD Sender: No OFD packet to send [18:19:22]OFD Sender: No OFD packet to send [18:19:27]OFD Sender: No OFD packet to send [18:19:32]OFD Sender: No OFD packet to send [18:19:37]OFD Sender: No OFD packet to send [18:19:42]OFD Sender: No OFD packet to send [18:19:47]OFD Sender: No OFD packet to send [18:19:52]OFD Sender: No OFD packet to send [18:19:57]OFD Sender: No OFD packet to send [18:20:02]OFD Sender: No OFD packet to send [18:20:07]OFD Sender: No OFD packet to send [18:20:12]OFD Sender: No OFD packet to send [18:20:13]accept exits with 8 [18:20:13]New connection [18:20:13]New thread 3066834276 created [18:20:13]Thread 3066977636 joined [18:20:13]Waiting for new connection... [18:20:13] Sock 8.Parse request [18:20:13]Sock 8.Check first char [18:20:13]Sock 8.First char is OK [18:20:13]request: POST /json_proto HTTP/1.0 [18:20:13]Method: POST [18:20:13]URL: /json_proto [18:20:13]Method is POST - this is cgi request [18:20:13]url: /json_proto [18:20:13]query_string will be loaded in cgi processing [18:20:13]execute_cgi json_proto POST (null) [18:20:13]execute_cgi path=json_proto method=POST [18:20:13]POST find Content-Length [18:20:13]Host: 172.17.63.3:8080 [18:20:13]Content-Length: 676 [18:20:13]Content-Type: application/json [18:20:13] [18:20:13]POST finish read [18:20:13]Found Content-Length = 676 [18:20:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99516", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "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" ] } } [18:20:13]execute_script... [18: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)99516", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "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" ] } } [18:20:13]POST & json_proto [18:20:13]process_json_proto [18:20:13]json parsed OK: [18:20:13]protocol is kg_v1.0 [18:20:13]action value=close_receipt [18:20:13]process_action close_receipt [18:20:13]cmd_close_receipt [18:20:13]MH_GetDate [18:20:13]Write to MH i2c: F0 00 00 E9 78 50 [18:20:13]Write i2c OK [18:20:13]MH_I2C_Read... [18:20:13]Read from MH i2c: F0 [18:20:13]MH_I2C_Read... [18:20:13]Read from MH i2c: F0 09 00 [18:20:13]MH_I2C_Read... [18:20:13]Read from MH i2c: F0 09 00 E9 78 00 64 84 1E 67 50 D1 6C 64 B7 [18:20:13]GetLastDocTimeStamp 1730053137 [18:20:13]current date 1730053220 [18:20:13]FM_GetShiftState [18:20:13]SAM_PROTO_GetShiftState [18:20:13]wFMCommunicate request_size=4 [18:20:13]MH_SAM_APDU [18:20:13]CAPDU: 80 13 01 00 [18:20:13]Write to MH i2c: E2 08 00 EA 78 80 13 01 00 00 00 00 00 DF [18:20:13]Write i2c OK [18:20:13]MH_I2C_Read... [18:20:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:20:13]Read from MH i2c: E2 [18:20:13]MH_I2C_Read... [18:20:13]Read from MH i2c: E2 0E 00 [18:20:13]MH_I2C_Read... [18:20:13]Read from MH i2c: E2 0E 00 EA 78 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 AC [18:20:13]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [18:20:13]wFMCommunicate OK [18:20:13]SAM_PROTO_GetShiftState done [18:20:13]FM_GetShiftState done [18:20:13]opened in 1729989044 [18:20:13]opened+sec_in_day 1730075444 [18:20:13]quantity*price = 60009 [18:20:13]sum+1 = 60010 [18:20:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 253 27.10.2024 18:20 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156702 ФПД: 106352494430964 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T182020&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156702&fm=106352494430964&tin=02508201610067®Number=0000000000091693&sum=60000 [18:20:14]StoreToDocumentArchive [18:20:14]shift 537 fd 156702 [18:20:14]save to /storage/0537/doc_00156702 [18:20:14]save last doc name /storage/0537/doc_00156702 to /storage/kkm_last_doc_name [18:20:14]save OK [18:20:14]Clear old archive folders... [18:20:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:20:14]tlvbuf is 018665A0 [18:20:14]SAM_PROTO_ClearQueue [18:20:14]wFMCommunicate request_size=4 [18:20:14]MH_SAM_APDU [18:20:14]CAPDU: 80 09 00 00 [18:20:14]Write to MH i2c: E2 08 00 F7 78 80 09 00 00 00 00 00 00 E1 [18:20:14]Write i2c OK [18:20:14]MH_I2C_Read... [18:20:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:20:14]Read from MH i2c: E2 [18:20:14]MH_I2C_Read... [18:20:14]Read from MH i2c: E2 03 00 [18:20:14]MH_I2C_Read... [18:20:14]Read from MH i2c: E2 03 00 F7 78 00 90 00 E3 [18:20:14]RAPDU: 90 00 [18:20:14]wFMCommunicate OK [18:20:14]SAM_PROTO_ClearQueue done [18:20:14]KKMCreateOFDPacket [18:20:14]OFDProtocolAddRootSTLVToBuf [18:20:14]FM_MakeSignedData [18:20:14]FM_MakeSignedData [18:20:14]SAM_PROTO_SignData [18:20:14]wFMCommunicate request_size=4 [18:20:14]MH_SAM_APDU [18:20:14]CAPDU: 80 0D 01 02 [18:20:14]Write to MH i2c: E2 08 00 F8 78 80 0D 01 02 00 00 00 00 E9 [18:20:14]Write i2c OK [18:20:14]MH_I2C_Read... [18:20:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:20:14]Read from MH i2c: E2 [18:20:14]MH_I2C_Read... [18:20:14]Read from MH i2c: E2 03 00 [18:20:14]MH_I2C_Read... [18:20:14]Read from MH i2c: E2 03 00 F8 78 00 90 00 E4 [18:20:14]RAPDU: 90 00 [18:20:14]wFMCommunicate OK [18:20:14]wFMCommunicate request_size=255 [18:20:14]MH_SAM_APDU [18: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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 FD 00 00 00 F4 03 04 00 64 84 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1E 64 02 00 35 04 06 00 60 [18:20:14]Write to MH i2c: E2 02 01 F9 78 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 FD 00 00 00 F4 03 04 00 64 84 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1E 64 02 00 35 04 06 00 60 00 00 C3 [18:20:14]Write i2c OK [18:20:14]MH_I2C_Read... [18:20:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:20:14]Read from MH i2c: E2 [18:20:14]MH_I2C_Read... [18:20:14]Read from MH i2c: E2 03 00 [18:20:14]MH_I2C_Read... [18:20:14]Read from MH i2c: E2 03 00 F9 78 00 90 00 E5 [18:20:14]RAPDU: 90 00 [18:20:14]wFMCommunicate OK [18:20:14]wFMCommunicate request_size=10 [18:20:14]MH_SAM_APDU [18:20:14]CAPDU: 80 0D 02 02 05 BA 1E A6 CA F4 [18:20:14]Write to MH i2c: E2 0D 00 FA 78 80 0D 02 02 05 00 BA 1E A6 CA F4 00 00 32 [18:20:14]Write i2c OK [18:20:14]MH_I2C_Read... [18:20:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:20:14]Read from MH i2c: E2 [18:20:14]MH_I2C_Read... [18:20:14]Read from MH i2c: E2 03 00 [18:20:14]MH_I2C_Read... [18:20:14]Read from MH i2c: E2 03 00 FA 78 00 90 00 E6 [18:20:14]RAPDU: 90 00 [18:20:14]wFMCommunicate OK [18:20:14]wFMCommunicate request_size=4 [18:20:14]MH_SAM_APDU [18:20:14]CAPDU: 80 0D 03 02 [18:20:14]Write to MH i2c: E2 08 00 FB 78 80 0D 03 02 00 00 00 00 EE [18:20:14]Write i2c OK [18:20:14]MH_I2C_Read... [18:20:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:20:14]Read from MH i2c: E2 [18:20:14]MH_I2C_Read... [18:20:14]Read from MH i2c: E2 0B 00 [18:20:14]MH_I2C_Read... [18:20:14]Read from MH i2c: E2 0B 00 FB 78 00 21 C1 C3 16 B2 F5 1E 0D 90 00 7C [18:20:14]RAPDU: 21 C1 C3 16 B2 F5 1E 0D 90 00 [18:20:14]wFMCommunicate OK [18:20:14]SAM_PROTO_SignData done [18:20:14]FM_MakeSignedData done [18:20:14]CreateOFDProtocolMessage [18:20:14]wFMCommunicate request_size=4 [18:20:14]MH_SAM_APDU [18:20:14]CAPDU: 80 11 00 00 [18:20:14]Write to MH i2c: E2 08 00 FC 78 80 11 00 00 00 00 00 00 EE [18:20:14]Write i2c OK [18:20:14]MH_I2C_Read... [18:20:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:20:14]Read from MH i2c: E2 [18:20:14]MH_I2C_Read... [18:20:14]Read from MH i2c: E2 17 00 [18:20:14]MH_I2C_Read... [18:20:14]Read from MH i2c: E2 17 00 FC 78 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 43 [18:20:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:20:14]wFMCommunicate OK [18:20:14]CreateOFDProtocolMessage done [18:20:14]OFDSenderStorePacket 156702 [18:20:14]StoreOFDPacket docnum=156702 [18:20:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 F9 A2 07 01 DF 0D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 FD 00 00 00 F4 03 04 00 64 84 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1E 64 02 00 35 04 06 00 60 BA 1E A6 CA F4 21 C1 C3 16 B2 F5 1E 0D [18:20:14]CheckFolder [18:20:14]dirname=/storage/ofd_packets [18:20:14]CheckFolder done [18:20:14]ProducePacketName [18:20:14]name=ofd_packets/00156702 [18:20:14]NVStorageSaveData ofd_packets/00156702 [18:20:14]File name is /storage/ofd_packets/00156702 [18:20:14]Write 301 bytes [18:20:14]NVStorageSaveData done [18:20:14]OFDSenderStorePacket done [18:20:14]KKMCreateOFDPacket done [18:20:14]NVStorageSaveData kkm_last_timestamp [18:20:14]File name is /storage/kkm_last_timestamp [18:20:14]Write 4 bytes [18:20:14]NVStorageSaveData done [18:20:14]ExternCall_PrintAddStr [18:20:14]wPrintStart [18:20:14]Write to MH i2c: 01 00 00 FD 78 75 [18:20:14]Write i2c OK [18:20:14]MH_I2C_Read... [18:20:14]Read from MH i2c: 01 [18:20:14]MH_I2C_Read... [18:20:14]Read from MH i2c: 01 07 00 [18:20:14]MH_I2C_Read... [18:20:14]Read from MH i2c: 01 07 00 FD 78 00 00 00 00 00 FF 0F 8A [18:20:14]RasterBufferAndPrint [18:20:14]line Счет N : (1)99516 [18:20:14]line ИНН: 02508201610067 [18:20:14]line Контрольно-Кассовый Чек [18:20:14]line ПРОДАЖА [18:20:14]line ТРК (МРК, ГНК) : 31 [18:20:14]line Товар: 2710124130 [18:20:14]line Аи-92-К-5 [18:20:14]line 8.970 * 66.90 [18:20:14]line = 600.09 [18:20:14]line НДС 12% НСП 1% [18:20:14]line > о реализуемом товаре [18:20:14]line ОКРУГЛЕНИЕ: -0.09 [18:20:14]line ИТОГО: 600.00 [18:20:14]line Внесено: 600.00 [18:20:14]line СДАЧА: 0.00 [18:20:14]line НСП 1% : 5.31 [18:20:14]line НДС 12% : 63.73 [18:20:14]line Наличными: 600.00 [18:20:14]line Безнал.: 0.00 [18:20:14]line Место: АЗС № 143 "Партнер Нефть" [18:20:14]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [18:20:14]line СНО: Общий режим [18:20:14]line Чек 253 27.10.2024 18:20 [18:20:14]line Смена: 537 ФФД: 1.0 [18:20:14]line ЗНМ: 0300000096 [18:20:14]line РНМ: 0000000000091693 [18:20:14]line Версия ККМ: 001 [18:20:14]line ФМ: 0000000000871792 [18:20:14]line ФД: 156702 [18:20:14]line ФПД: 106352494430964 [18:20:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T182020&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156702&fm=106352494430964&tin=02508201610067®Number=0000000000091693&sum=60000 [18:20:15]OFD Sender: Processing packet 156702 [packets to send 31, broken 30] [18:20:15]ProducePacketName [18:20:15]name=ofd_packets/00156702 [18:20:15]OFD Sender: To server: pG, [18:20:15]CommunicateWithHost lk.salyk.kg:30040 [18:20:15]ConnectInit lk.salyk.kg [18:20:15]written 0, free lines is 4095 [18:20:15]Connected sock=11 [18: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 31 37 39 32 0F 01 00 00 F9 A2 07 01 DF 0D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 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 FD 00 00 00 F4 03 04 00 64 84 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1E 64 02 00 35 04 06 00 60 BA 1E A6 CA F4 21 C1 C3 16 B2 F5 1E 0D [18:20:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 1A F3 47 00 61 27 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1E 64 02 00 F4 03 04 00 D3 29 1E 67 B6 04 01 00 00 BB 0E BF E9 6C 88 F6 C3 [18:20:15]CommunicateWithHost err = 0 [18:20:15]CheckOFDResponse [18:20:15]1017 (14) - 77093643461234 [18:20:15]1041 (16) - 0000000000871792 [18:20:15]1040 (4) - 156702 [18:20:15]1012 (4) - 27.10.2024 11:53 [18:20:15]1206 (1) - 0 [18:20:15]OFD Sender: Remove packet 156702 [18:20:15]ProducePacketName [18:20:15]name=ofd_packets/00156702 [18:20:15]NVStorageDeleteData [18:20:15]Write to MH i2c: 01 00 00 28 79 A1 [18:20:15]Write i2c OK [18:20:15]MH_I2C_Read... [18:20:15]Read from MH i2c: 01 [18:20:15]MH_I2C_Read... [18:20:15]Read from MH i2c: 01 07 00 [18:20:15]MH_I2C_Read... [18:20:15]Read from MH i2c: 01 07 00 28 79 00 00 00 00 00 DA 0C 8E [18:20:15]RasterBufferAndPrint [18:20:15]line [18:20:15]line [18:20:15]line [18:20:15]line [18:20:15]line [18:20:15]written 0, free lines is 3297 [18:20:15]process_action close_receipt done [18:20:15]requested_data is exist [18:20:15]produce_requested_data [18:20:15]requested_item fm.sn is exist - process it [18:20:15]wFMCommunicate request_size=4 [18:20:15]MH_SAM_APDU [18:20:15]CAPDU: 80 11 00 00 [18:20:15]Write to MH i2c: E2 08 00 2F 79 80 11 00 00 00 00 00 00 22 [18:20:15]Write i2c OK [18:20:15]MH_I2C_Read... [18:20:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:20:15]Read from MH i2c: E2 [18:20:15]MH_I2C_Read... [18:20:15]Read from MH i2c: E2 17 00 [18:20:15]MH_I2C_Read... [18:20:15]Read from MH i2c: E2 17 00 2F 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 77 [18:20:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:20:15]wFMCommunicate OK [18:20:15]requested_item fd.num is exist - process it [18:20:15]SAM_PROTO_GetFieldsCounters [18:20:15]wFMCommunicate request_size=4 [18:20:15]MH_SAM_APDU [18:20:15]CAPDU: 80 13 00 00 [18:20:15]Write to MH i2c: E2 08 00 30 79 80 13 00 00 00 00 00 00 25 [18:20:15]Write i2c OK [18:20:15]MH_I2C_Read... [18:20:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:20:15]Read from MH i2c: E2 [18:20:15]MH_I2C_Read... [18:20:15]Read from MH i2c: E2 62 00 [18:20:15]MH_I2C_Read... [18:20:15]Read from MH i2c: E2 62 00 30 79 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 1E 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 FD 00 00 00 5E 04 04 00 FD 00 00 00 57 04 04 00 FE 00 00 00 19 04 04 00 00 00 00 00 90 00 E1 [18:20:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 1E 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 FD 00 00 00 5E 04 04 00 FD 00 00 00 57 04 04 00 FE 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:20:15]wFMCommunicate OK [18:20:15]SAM_PROTO_GetFieldsCounters done [18:20:15]requested_item shift.num is exist - process it [18:20:15]requested_item shift.opened is exist - process it [18:20:15]req_shift_opened [18:20:15]FM_GetShiftState [18:20:15]SAM_PROTO_GetShiftState [18:20:15]wFMCommunicate request_size=4 [18:20:15]MH_SAM_APDU [18:20:15]CAPDU: 80 13 01 00 [18:20:15]Write to MH i2c: E2 08 00 31 79 80 13 01 00 00 00 00 00 27 [18:20:15]Write i2c OK [18:20:15]MH_I2C_Read... [18:20:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:20:15]Read from MH i2c: E2 [18:20:15]MH_I2C_Read... [18:20:15]Read from MH i2c: E2 0E 00 [18:20:15]MH_I2C_Read... [18:20:15]Read from MH i2c: E2 0E 00 31 79 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 F4 [18:20:15]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [18:20:15]wFMCommunicate OK [18:20:15]SAM_PROTO_GetShiftState done [18:20:15]FM_GetShiftState done [18:20:15]req_shift_opened done [18:20:15]requested_item shift.open_date is exist - process it [18:20:15]req_shift_open_date [18:20:15]req_shift_open_date done [18:20:15]produce_requested_data done [18:20:15]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156702,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [18:20:15]process_action_free close_receipt [18:20:15]json_value_free [18:20:15]json_value_free done [18:20:15]process_json_proto returns [18:20:15]Send response to host [18:20:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156702,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [18:20:15]free response buf [18:20:15]execute_script done [18:20:15]execute_script returns [18:20:15]free content buf [18:20:15]Sock 8.Close socket [18:20:15]Sock 8.Thread stoped [18:20:15]OFD Sender: No OFD packet to send [18:20:20]OFD Sender: No OFD packet to send [18:20:25]OFD Sender: No OFD packet to send [18:20:30]OFD Sender: No OFD packet to send [18:20:35]OFD Sender: No OFD packet to send [18:20:40]OFD Sender: No OFD packet to send [18:20:45]OFD Sender: No OFD packet to send [18:20:51]OFD Sender: No OFD packet to send [18:20:56]OFD Sender: No OFD packet to send [18:21:01]OFD Sender: No OFD packet to send [18:21:06]OFD Sender: No OFD packet to send [18:21:11]OFD Sender: No OFD packet to send [18:21:16]OFD Sender: No OFD packet to send [18:21:21]OFD Sender: No OFD packet to send [18:21:26]OFD Sender: No OFD packet to send [18:21:31]OFD Sender: No OFD packet to send [18:21:36]OFD Sender: No OFD packet to send [18:21:41]OFD Sender: No OFD packet to send [18:21:46]OFD Sender: No OFD packet to send [18:21:51]OFD Sender: No OFD packet to send [18:21:56]OFD Sender: No OFD packet to send [18:22:01]OFD Sender: No OFD packet to send [18:22:06]OFD Sender: No OFD packet to send [18:22:11]OFD Sender: No OFD packet to send [18:22:16]OFD Sender: No OFD packet to send [18:22:18]accept exits with 9 [18:22:18]New connection [18:22:18]New thread 3066977636 created [18:22:18]Thread 3066834276 joined [18:22:18]Waiting for new connection... [18:22:18] Sock 9.Parse request [18:22:18]Sock 9.Check first char [18:22:18]Sock 9.First char is OK [18:22:18]request: POST /json_proto HTTP/1.0 [18:22:18]Method: POST [18:22:18]URL: /json_proto [18:22:18]Method is POST - this is cgi request [18:22:18]url: /json_proto [18:22:18]query_string will be loaded in cgi processing [18:22:18]execute_cgi json_proto POST (null) [18:22:18]execute_cgi path=json_proto method=POST [18:22:18]POST find Content-Length [18:22:18]Host: 172.17.63.3:8080 [18:22:18]Content-Length: 678 [18:22:18]Content-Type: application/json [18:22:18] [18:22:18]POST finish read [18:22:18]Found Content-Length = 678 [18:22:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99517", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:22:18]execute_script... [18:22:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99517", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:22:18]POST & json_proto [18:22:18]process_json_proto [18:22:18]json parsed OK: [18:22:18]protocol is kg_v1.0 [18:22:18]action value=close_receipt [18:22:18]process_action close_receipt [18:22:18]cmd_close_receipt [18:22:18]MH_GetDate [18:22:18]Write to MH i2c: F0 00 00 32 79 9A [18:22:18]Write i2c OK [18:22:18]MH_I2C_Read... [18:22:18]Read from MH i2c: F0 [18:22:18]MH_I2C_Read... [18:22:18]Read from MH i2c: F0 09 00 [18:22:18]MH_I2C_Read... [18:22:18]Read from MH i2c: F0 09 00 32 79 00 E1 84 1E 67 50 D1 6C 64 7E [18:22:18]GetLastDocTimeStamp 1730053220 [18:22:18]current date 1730053345 [18:22:18]FM_GetShiftState [18:22:18]SAM_PROTO_GetShiftState [18:22:18]wFMCommunicate request_size=4 [18:22:18]MH_SAM_APDU [18:22:18]CAPDU: 80 13 01 00 [18:22:18]Write to MH i2c: E2 08 00 33 79 80 13 01 00 00 00 00 00 29 [18:22:18]Write i2c OK [18:22:18]MH_I2C_Read... [18:22:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:22:18]Read from MH i2c: E2 [18:22:18]MH_I2C_Read... [18:22:18]Read from MH i2c: E2 0E 00 [18:22:18]MH_I2C_Read... [18:22:18]Read from MH i2c: E2 0E 00 33 79 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 F6 [18:22:18]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [18:22:18]wFMCommunicate OK [18:22:18]SAM_PROTO_GetShiftState done [18:22:18]FM_GetShiftState done [18:22:18]opened in 1729989044 [18:22:18]opened+sec_in_day 1730075444 [18:22:18]quantity*price = 100050 [18:22:18]sum+1 = 100052 [18:22:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 254 27.10.2024 18:22 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156703 ФПД: 78418601089912 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T182225&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156703&fm=78418601089912&tin=02508201610067®Number=0000000000091693&sum=100000 [18:22:20]StoreToDocumentArchive [18:22:20]shift 537 fd 156703 [18:22:20]save to /storage/0537/doc_00156703 [18:22:20]save last doc name /storage/0537/doc_00156703 to /storage/kkm_last_doc_name [18:22:20]save OK [18:22:20]Clear old archive folders... [18:22:20]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:22:20]tlvbuf is 018894D0 [18:22:20]SAM_PROTO_ClearQueue [18:22:20]wFMCommunicate request_size=4 [18:22:20]MH_SAM_APDU [18:22:20]CAPDU: 80 09 00 00 [18:22:20]Write to MH i2c: E2 08 00 40 79 80 09 00 00 00 00 00 00 2B [18:22:20]Write i2c OK [18:22:20]MH_I2C_Read... [18:22:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:22:20]Read from MH i2c: E2 [18:22:20]MH_I2C_Read... [18:22:20]Read from MH i2c: E2 03 00 [18:22:20]MH_I2C_Read... [18:22:20]Read from MH i2c: E2 03 00 40 79 00 90 00 2D [18:22:20]RAPDU: 90 00 [18:22:20]wFMCommunicate OK [18:22:20]SAM_PROTO_ClearQueue done [18:22:20]KKMCreateOFDPacket [18:22:20]OFDProtocolAddRootSTLVToBuf [18:22:20]FM_MakeSignedData [18:22:20]FM_MakeSignedData [18:22:20]SAM_PROTO_SignData [18:22:20]wFMCommunicate request_size=4 [18:22:20]MH_SAM_APDU [18:22:20]CAPDU: 80 0D 01 02 [18:22:20]Write to MH i2c: E2 08 00 41 79 80 0D 01 02 00 00 00 00 33 [18:22:20]Write i2c OK [18:22:20]MH_I2C_Read... [18:22:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:22:20]Read from MH i2c: E2 [18:22:20]MH_I2C_Read... [18:22:20]Read from MH i2c: E2 03 00 [18:22:20]MH_I2C_Read... [18:22:20]Read from MH i2c: E2 03 00 41 79 00 90 00 2E [18:22:20]RAPDU: 90 00 [18:22:20]wFMCommunicate OK [18:22:20]wFMCommunicate request_size=255 [18:22:20]MH_SAM_APDU [18:22:20]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 E1 84 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1F 64 02 00 35 04 06 00 47 52 40 DC [18:22:20]Write to MH i2c: E2 02 01 42 79 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 E1 84 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1F 64 02 00 35 04 06 00 47 52 40 DC 00 00 FA [18:22:20]Write i2c OK [18:22:20]MH_I2C_Read... [18:22:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:22:20]Read from MH i2c: E2 [18:22:20]MH_I2C_Read... [18:22:20]Read from MH i2c: E2 03 00 [18:22:20]MH_I2C_Read... [18:22:20]Read from MH i2c: E2 03 00 42 79 00 90 00 2F [18:22:20]RAPDU: 90 00 [18:22:20]wFMCommunicate OK [18:22:20]wFMCommunicate request_size=7 [18:22:20]MH_SAM_APDU [18:22:20]CAPDU: 80 0D 02 02 02 9B 78 [18:22:20]Write to MH i2c: E2 0A 00 43 79 80 0D 02 02 02 00 9B 78 00 00 4D [18:22:20]Write i2c OK [18:22:20]MH_I2C_Read... [18:22:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:22:20]Read from MH i2c: E2 [18:22:20]MH_I2C_Read... [18:22:20]Read from MH i2c: E2 03 00 [18:22:20]MH_I2C_Read... [18:22:20]Read from MH i2c: E2 03 00 43 79 00 90 00 30 [18:22:20]RAPDU: 90 00 [18:22:20]wFMCommunicate OK [18:22:20]wFMCommunicate request_size=4 [18:22:20]MH_SAM_APDU [18:22:20]CAPDU: 80 0D 03 02 [18:22:20]Write to MH i2c: E2 08 00 44 79 80 0D 03 02 00 00 00 00 38 [18:22:20]Write i2c OK [18:22:20]MH_I2C_Read... [18:22:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:22:20]Read from MH i2c: E2 [18:22:20]MH_I2C_Read... [18:22:20]Read from MH i2c: E2 0B 00 [18:22:20]MH_I2C_Read... [18:22:20]Read from MH i2c: E2 0B 00 44 79 00 80 ED E3 C1 39 59 54 2D 90 00 5D [18:22:20]RAPDU: 80 ED E3 C1 39 59 54 2D 90 00 [18:22:20]wFMCommunicate OK [18:22:20]SAM_PROTO_SignData done [18:22:20]FM_MakeSignedData done [18:22:20]CreateOFDProtocolMessage [18:22:20]wFMCommunicate request_size=4 [18:22:20]MH_SAM_APDU [18:22:20]CAPDU: 80 11 00 00 [18:22:20]Write to MH i2c: E2 08 00 45 79 80 11 00 00 00 00 00 00 38 [18:22:20]Write i2c OK [18:22:20]MH_I2C_Read... [18:22:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:22:20]Read from MH i2c: E2 [18:22:20]MH_I2C_Read... [18:22:20]Read from MH i2c: E2 17 00 [18:22:20]MH_I2C_Read... [18:22:20]Read from MH i2c: E2 17 00 45 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 8D [18:22:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:22:20]wFMCommunicate OK [18:22:20]CreateOFDProtocolMessage done [18:22:20]OFDSenderStorePacket 156703 [18:22:20]StoreOFDPacket docnum=156703 [18:22:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 9E 8D 04 01 1D A9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 E1 84 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1F 64 02 00 35 04 06 00 47 52 40 DC 9B 78 80 ED E3 C1 39 59 54 2D [18:22:20]CheckFolder [18:22:20]dirname=/storage/ofd_packets [18:22:20]CheckFolder done [18:22:20]ProducePacketName [18:22:20]name=ofd_packets/00156703 [18:22:20]NVStorageSaveData ofd_packets/00156703 [18:22:20]File name is /storage/ofd_packets/00156703 [18:22:20]Write 298 bytes [18:22:20]NVStorageSaveData done [18:22:20]OFDSenderStorePacket done [18:22:20]KKMCreateOFDPacket done [18:22:20]NVStorageSaveData kkm_last_timestamp [18:22:20]File name is /storage/kkm_last_timestamp [18:22:20]Write 4 bytes [18:22:20]NVStorageSaveData done [18:22:20]ExternCall_PrintAddStr [18:22:20]wPrintStart [18:22:20]Write to MH i2c: 01 00 00 46 79 BF [18:22:20]Write i2c OK [18:22:20]MH_I2C_Read... [18:22:20]Read from MH i2c: 01 [18:22:20]MH_I2C_Read... [18:22:20]Read from MH i2c: 01 07 00 [18:22:20]MH_I2C_Read... [18:22:20]Read from MH i2c: 01 07 00 46 79 00 00 00 00 00 FF 0F D4 [18:22:20]RasterBufferAndPrint [18:22:20]line Счет N : (1)99517 [18:22:20]line ИНН: 02508201610067 [18:22:20]line Контрольно-Кассовый Чек [18:22:20]line ПРОДАЖА [18:22:20]line ТРК (МРК, ГНК) : 32 [18:22:20]line Товар: 2710194210 [18:22:20]line ДТ-К-5 [18:22:20]line 13.130 * 76.20 [18:22:20]line = 1000.51 [18:22:20]line НДС 12% НСП 1% [18:22:20]line > о реализуемом товаре [18:22:20]line ОКРУГЛЕНИЕ: -0.51 [18:22:20]line ИТОГО: 1000.00 [18:22:20]line Внесено: 1000.00 [18:22:20]line СДАЧА: 0.00 [18:22:20]line НСП 1% : 8.85 [18:22:20]line НДС 12% : 106.25 [18:22:20]line Наличными: 1000.00 [18:22:20]line Безнал.: 0.00 [18:22:20]line Место: АЗС № 143 "Партнер Нефть" [18:22:20]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [18:22:20]line СНО: Общий режим [18:22:20]line Чек 254 27.10.2024 18:22 [18:22:20]line Смена: 537 ФФД: 1.0 [18:22:20]line ЗНМ: 0300000096 [18:22:20]line РНМ: 0000000000091693 [18:22:20]line Версия ККМ: 001 [18:22:20]line ФМ: 0000000000871792 [18:22:20]line ФД: 156703 [18:22:20]line ФПД: 78418601089912 [18:22:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T182225&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156703&fm=78418601089912&tin=02508201610067®Number=0000000000091693&sum=100000 [18:22:20]OFD Sender: Processing packet 156703 [packets to send 31, broken 30] [18:22:20]ProducePacketName [18:22:20]name=ofd_packets/00156703 [18:22:20]OFD Sender: To server: pG, [18:22:20]CommunicateWithHost lk.salyk.kg:30040 [18:22:20]ConnectInit lk.salyk.kg [18:22:20]written 0, free lines is 4095 [18:22:21]Connected sock=10 [18:22:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 9E 8D 04 01 1D A9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 00 00 00 F4 03 04 00 E1 84 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1F 64 02 00 35 04 06 00 47 52 40 DC 9B 78 80 ED E3 C1 39 59 54 2D [18:22:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 3F 40 47 00 F9 B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 1F 64 02 00 F4 03 04 00 50 2A 1E 67 B6 04 01 00 00 9F 6F 61 40 C7 E2 AB 10 [18:22:21]CommunicateWithHost err = 0 [18:22:21]CheckOFDResponse [18:22:21]1017 (14) - 77093643461234 [18:22:21]1041 (16) - 0000000000871792 [18:22:21]1040 (4) - 156703 [18:22:21]1012 (4) - 27.10.2024 11:56 [18:22:21]1206 (1) - 0 [18:22:21]OFD Sender: Remove packet 156703 [18:22:21]ProducePacketName [18:22:21]name=ofd_packets/00156703 [18:22:21]NVStorageDeleteData [18:22:21]Write to MH i2c: 01 00 00 71 79 EA [18:22:21]Write i2c OK [18:22:21]MH_I2C_Read... [18:22:21]Read from MH i2c: 01 [18:22:21]MH_I2C_Read... [18:22:21]Read from MH i2c: 01 07 00 [18:22:21]MH_I2C_Read... [18:22:21]Read from MH i2c: 01 07 00 71 79 00 00 00 00 00 E2 0C DF [18:22:21]RasterBufferAndPrint [18:22:21]line [18:22:21]line [18:22:21]line [18:22:21]line [18:22:21]line [18:22:21]written 0, free lines is 3304 [18:22:21]process_action close_receipt done [18:22:21]requested_data is exist [18:22:21]produce_requested_data [18:22:21]requested_item fm.sn is exist - process it [18:22:21]wFMCommunicate request_size=4 [18:22:21]MH_SAM_APDU [18:22:21]CAPDU: 80 11 00 00 [18:22:21]Write to MH i2c: E2 08 00 78 79 80 11 00 00 00 00 00 00 6B [18:22:21]Write i2c OK [18:22:21]MH_I2C_Read... [18:22:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:22:21]Read from MH i2c: E2 [18:22:21]MH_I2C_Read... [18:22:21]Read from MH i2c: E2 17 00 [18:22:21]MH_I2C_Read... [18:22:21]Read from MH i2c: E2 17 00 78 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 C0 [18:22:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:22:21]wFMCommunicate OK [18:22:21]requested_item fd.num is exist - process it [18:22:21]SAM_PROTO_GetFieldsCounters [18:22:21]wFMCommunicate request_size=4 [18:22:21]MH_SAM_APDU [18:22:21]CAPDU: 80 13 00 00 [18:22:21]Write to MH i2c: E2 08 00 79 79 80 13 00 00 00 00 00 00 6E [18:22:21]Write i2c OK [18:22:21]MH_I2C_Read... [18:22:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:22:21]Read from MH i2c: E2 [18:22:21]MH_I2C_Read... [18:22:21]Read from MH i2c: E2 62 00 [18:22:21]MH_I2C_Read... [18:22:21]Read from MH i2c: E2 62 00 79 79 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 1F 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 FE 00 00 00 5E 04 04 00 FE 00 00 00 57 04 04 00 FF 00 00 00 19 04 04 00 00 00 00 00 90 00 2E [18: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 1F 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 FE 00 00 00 5E 04 04 00 FE 00 00 00 57 04 04 00 FF 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:22:21]wFMCommunicate OK [18:22:21]SAM_PROTO_GetFieldsCounters done [18:22:21]requested_item shift.num is exist - process it [18:22:21]requested_item shift.opened is exist - process it [18:22:21]req_shift_opened [18:22:21]FM_GetShiftState [18:22:21]SAM_PROTO_GetShiftState [18:22:21]wFMCommunicate request_size=4 [18:22:21]MH_SAM_APDU [18:22:21]CAPDU: 80 13 01 00 [18:22:21]Write to MH i2c: E2 08 00 7A 79 80 13 01 00 00 00 00 00 70 [18:22:21]Write i2c OK [18:22:21]MH_I2C_Read... [18:22:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:22:21]Read from MH i2c: E2 [18:22:21]MH_I2C_Read... [18:22:21]Read from MH i2c: E2 0E 00 [18:22:21]MH_I2C_Read... [18:22:21]Read from MH i2c: E2 0E 00 7A 79 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 3D [18:22:21]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [18:22:21]wFMCommunicate OK [18:22:21]SAM_PROTO_GetShiftState done [18:22:21]FM_GetShiftState done [18:22:21]req_shift_opened done [18:22:21]requested_item shift.open_date is exist - process it [18:22:21]req_shift_open_date [18:22:21]req_shift_open_date done [18:22:21]produce_requested_data done [18:22:21]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156703,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [18:22:21]process_action_free close_receipt [18:22:21]json_value_free [18:22:21]json_value_free done [18:22:21]process_json_proto returns [18:22:21]Send response to host [18:22:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156703,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [18:22:21]free response buf [18:22:21]execute_script done [18:22:21]execute_script returns [18:22:21]free content buf [18:22:21]Sock 9.Close socket [18:22:21]Sock 9.Thread stoped [18:22:21]OFD Sender: No OFD packet to send [18:22:26]OFD Sender: No OFD packet to send [18:22:31]OFD Sender: No OFD packet to send [18:22:36]OFD Sender: No OFD packet to send [18:22:41]OFD Sender: No OFD packet to send [18:22:46]OFD Sender: No OFD packet to send [18:22:51]OFD Sender: No OFD packet to send [18:22:56]OFD Sender: No OFD packet to send [18:23:01]OFD Sender: No OFD packet to send [18:23:06]OFD Sender: No OFD packet to send [18:23:11]OFD Sender: No OFD packet to send [18:23:16]OFD Sender: No OFD packet to send [18:23:21]OFD Sender: No OFD packet to send [18:23:26]OFD Sender: No OFD packet to send [18:23:31]OFD Sender: No OFD packet to send [18:23:36]OFD Sender: No OFD packet to send [18:23:41]OFD Sender: No OFD packet to send [18:23:46]OFD Sender: No OFD packet to send [18:23:51]OFD Sender: No OFD packet to send [18:23:56]OFD Sender: No OFD packet to send [18:24:01]OFD Sender: No OFD packet to send [18:24:06]OFD Sender: No OFD packet to send [18:24:11]OFD Sender: No OFD packet to send [18:24:16]OFD Sender: No OFD packet to send [18:24:21]OFD Sender: No OFD packet to send [18:24:26]OFD Sender: No OFD packet to send [18:24:31]OFD Sender: No OFD packet to send [18:24:36]OFD Sender: No OFD packet to send [18:24:41]OFD Sender: No OFD packet to send [18:24:46]OFD Sender: No OFD packet to send [18:24:51]OFD Sender: No OFD packet to send [18:24:56]OFD Sender: No OFD packet to send [18:25:01]OFD Sender: No OFD packet to send [18:25:06]OFD Sender: No OFD packet to send [18:25:11]OFD Sender: No OFD packet to send [18:25:16]OFD Sender: No OFD packet to send [18:25:21]OFD Sender: No OFD packet to send [18:25:26]OFD Sender: No OFD packet to send [18:25:31]OFD Sender: No OFD packet to send [18:25:36]OFD Sender: No OFD packet to send [18:25:41]OFD Sender: No OFD packet to send [18:25:46]OFD Sender: No OFD packet to send [18:25:51]OFD Sender: No OFD packet to send [18:25:56]OFD Sender: No OFD packet to send [18:26:01]OFD Sender: No OFD packet to send [18:26:06]OFD Sender: No OFD packet to send [18:26:11]OFD Sender: No OFD packet to send [18:26:16]OFD Sender: No OFD packet to send [18:26:21]OFD Sender: No OFD packet to send [18:26:26]OFD Sender: No OFD packet to send [18:26:31]OFD Sender: No OFD packet to send [18:26:36]OFD Sender: No OFD packet to send [18:26:41]OFD Sender: No OFD packet to send [18:26:46]OFD Sender: No OFD packet to send [18:26:51]OFD Sender: No OFD packet to send [18:26:56]OFD Sender: No OFD packet to send [18:27:01]OFD Sender: No OFD packet to send [18:27:06]OFD Sender: No OFD packet to send [18:27:11]OFD Sender: No OFD packet to send [18:27:17]OFD Sender: No OFD packet to send [18:27:22]OFD Sender: No OFD packet to send [18:27:27]OFD Sender: No OFD packet to send [18:27:32]OFD Sender: No OFD packet to send [18:27:37]OFD Sender: No OFD packet to send [18:27:42]OFD Sender: No OFD packet to send [18:27:47]OFD Sender: No OFD packet to send [18:27:52]OFD Sender: No OFD packet to send [18:27:57]OFD Sender: No OFD packet to send [18:27:58]accept exits with 8 [18:27:58]New connection [18:27:58]New thread 3066834276 created [18:27:58]Thread 3066977636 joined [18:27:58]Waiting for new connection... [18:27:58] Sock 8.Parse request [18:27:58]Sock 8.Check first char [18:27:58]Sock 8.First char is OK [18:27:58]request: POST /json_proto HTTP/1.0 [18:27:58]Method: POST [18:27:58]URL: /json_proto [18:27:58]Method is POST - this is cgi request [18:27:58]url: /json_proto [18:27:58]query_string will be loaded in cgi processing [18:27:58]execute_cgi json_proto POST (null) [18:27:58]execute_cgi path=json_proto method=POST [18:27:58]POST find Content-Length [18:27:58]Host: 172.17.63.3:8080 [18:27:58]Content-Length: 676 [18:27:58]Content-Type: application/json [18:27:58] [18:27:58]POST finish read [18:27:58]Found Content-Length = 676 [18:27:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99518", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:27:58]execute_script... [18:27: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)99518", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:27:58]POST & json_proto [18:27:58]process_json_proto [18:27:58]json parsed OK: [18:27:58]protocol is kg_v1.0 [18:27:58]action value=close_receipt [18:27:58]process_action close_receipt [18:27:58]cmd_close_receipt [18:27:58]MH_GetDate [18:27:58]Write to MH i2c: F0 00 00 7B 79 E3 [18:27:58]Write i2c OK [18:27:58]MH_I2C_Read... [18:27:58]Read from MH i2c: F0 [18:27:58]MH_I2C_Read... [18:27:58]Read from MH i2c: F0 09 00 [18:27:58]MH_I2C_Read... [18:27:58]Read from MH i2c: F0 09 00 7B 79 00 35 86 1E 67 50 D1 6C 64 1D [18:27:58]GetLastDocTimeStamp 1730053345 [18:27:58]current date 1730053685 [18:27:58]FM_GetShiftState [18:27:58]SAM_PROTO_GetShiftState [18:27:58]wFMCommunicate request_size=4 [18:27:58]MH_SAM_APDU [18:27:58]CAPDU: 80 13 01 00 [18:27:58]Write to MH i2c: E2 08 00 7C 79 80 13 01 00 00 00 00 00 72 [18:27:58]Write i2c OK [18:27:58]MH_I2C_Read... [18:27:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:58]Read from MH i2c: E2 [18:27:58]MH_I2C_Read... [18:27:58]Read from MH i2c: E2 0E 00 [18:27:58]MH_I2C_Read... [18:27:58]Read from MH i2c: E2 0E 00 7C 79 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 3F [18:27:58]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [18:27:58]wFMCommunicate OK [18:27:58]SAM_PROTO_GetShiftState done [18:27:58]FM_GetShiftState done [18:27:58]opened in 1729989044 [18:27:58]opened+sec_in_day 1730075444 [18:27:58]quantity*price = 50041 [18:27:58]sum+1 = 50042 [18:27:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 255 27.10.2024 18:28 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156704 ФПД: 6735901182119 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T182805&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156704&fm=6735901182119&tin=02508201610067®Number=0000000000091693&sum=50000 [18:28:00]StoreToDocumentArchive [18:28:00]shift 537 fd 156704 [18:28:00]save to /storage/0537/doc_00156704 [18:28:00]save last doc name /storage/0537/doc_00156704 to /storage/kkm_last_doc_name [18:28:00]save OK [18:28:00]Clear old archive folders... [18:28:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:28:00]tlvbuf is 01735BA0 [18:28:00]SAM_PROTO_ClearQueue [18:28:00]wFMCommunicate request_size=4 [18:28:00]MH_SAM_APDU [18:28:00]CAPDU: 80 09 00 00 [18:28:00]Write to MH i2c: E2 08 00 89 79 80 09 00 00 00 00 00 00 74 [18:28:00]Write i2c OK [18:28:00]MH_I2C_Read... [18:28:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:28:00]Read from MH i2c: E2 [18:28:00]MH_I2C_Read... [18:28:00]Read from MH i2c: E2 03 00 [18:28:00]MH_I2C_Read... [18:28:00]Read from MH i2c: E2 03 00 89 79 00 90 00 76 [18:28:00]RAPDU: 90 00 [18:28:00]wFMCommunicate OK [18:28:00]SAM_PROTO_ClearQueue done [18:28:00]KKMCreateOFDPacket [18:28:00]OFDProtocolAddRootSTLVToBuf [18:28:00]FM_MakeSignedData [18:28:00]FM_MakeSignedData [18:28:00]SAM_PROTO_SignData [18:28:00]wFMCommunicate request_size=4 [18:28:00]MH_SAM_APDU [18:28:00]CAPDU: 80 0D 01 02 [18:28:00]Write to MH i2c: E2 08 00 8A 79 80 0D 01 02 00 00 00 00 7C [18:28:00]Write i2c OK [18:28:00]MH_I2C_Read... [18:28:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:28:00]Read from MH i2c: E2 [18:28:00]MH_I2C_Read... [18:28:00]Read from MH i2c: E2 03 00 [18:28:00]MH_I2C_Read... [18:28:00]Read from MH i2c: E2 03 00 8A 79 00 90 00 77 [18:28:00]RAPDU: 90 00 [18:28:00]wFMCommunicate OK [18:28:00]wFMCommunicate request_size=255 [18:28:00]MH_SAM_APDU [18:28: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 35 86 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 20 64 02 00 35 04 06 00 06 [18:28:00]Write to MH i2c: E2 02 01 8B 79 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 35 86 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 20 64 02 00 35 04 06 00 06 00 00 F6 [18:28:00]Write i2c OK [18:28:00]MH_I2C_Read... [18:28:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:28:00]Read from MH i2c: E2 [18:28:00]MH_I2C_Read... [18:28:00]Read from MH i2c: E2 03 00 [18:28:00]MH_I2C_Read... [18:28:00]Read from MH i2c: E2 03 00 8B 79 00 90 00 78 [18:28:00]RAPDU: 90 00 [18:28:00]wFMCommunicate OK [18:28:00]wFMCommunicate request_size=10 [18:28:00]MH_SAM_APDU [18:28:00]CAPDU: 80 0D 02 02 05 20 52 FF 48 A7 [18:28:00]Write to MH i2c: E2 0D 00 8C 79 80 0D 02 02 05 00 20 52 FF 48 A7 00 00 E9 [18:28:00]Write i2c OK [18:28:00]MH_I2C_Read... [18:28:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:28:00]Read from MH i2c: E2 [18:28:00]MH_I2C_Read... [18:28:00]Read from MH i2c: E2 03 00 [18:28:00]MH_I2C_Read... [18:28:00]Read from MH i2c: E2 03 00 8C 79 00 90 00 79 [18:28:00]RAPDU: 90 00 [18:28:00]wFMCommunicate OK [18:28:00]wFMCommunicate request_size=4 [18:28:00]MH_SAM_APDU [18:28:00]CAPDU: 80 0D 03 02 [18:28:00]Write to MH i2c: E2 08 00 8D 79 80 0D 03 02 00 00 00 00 81 [18:28:00]Write i2c OK [18:28:00]MH_I2C_Read... [18:28:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:28:00]Read from MH i2c: E2 [18:28:00]MH_I2C_Read... [18:28:00]Read from MH i2c: E2 0B 00 [18:28:00]MH_I2C_Read... [18:28:00]Read from MH i2c: E2 0B 00 8D 79 00 E4 7C 69 59 7A 09 C4 58 90 00 43 [18:28:00]RAPDU: E4 7C 69 59 7A 09 C4 58 90 00 [18:28:00]wFMCommunicate OK [18:28:00]SAM_PROTO_SignData done [18:28:00]FM_MakeSignedData done [18:28:00]CreateOFDProtocolMessage [18:28:00]wFMCommunicate request_size=4 [18:28:00]MH_SAM_APDU [18:28:00]CAPDU: 80 11 00 00 [18:28:00]Write to MH i2c: E2 08 00 8E 79 80 11 00 00 00 00 00 00 81 [18:28:00]Write i2c OK [18:28:00]MH_I2C_Read... [18:28:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:28:00]Read from MH i2c: E2 [18:28:00]MH_I2C_Read... [18:28:00]Read from MH i2c: E2 17 00 [18:28:00]MH_I2C_Read... [18:28:00]Read from MH i2c: E2 17 00 8E 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 D6 [18:28:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:28:00]wFMCommunicate OK [18:28:00]CreateOFDProtocolMessage done [18:28:00]OFDSenderStorePacket 156704 [18:28:00]StoreOFDPacket docnum=156704 [18:28:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 DB 08 07 01 FF B3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 35 86 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 20 64 02 00 35 04 06 00 06 20 52 FF 48 A7 E4 7C 69 59 7A 09 C4 58 [18:28:00]CheckFolder [18:28:00]dirname=/storage/ofd_packets [18:28:00]CheckFolder done [18:28:00]ProducePacketName [18:28:00]name=ofd_packets/00156704 [18:28:00]NVStorageSaveData ofd_packets/00156704 [18:28:00]File name is /storage/ofd_packets/00156704 [18:28:00]Write 301 bytes [18:28:00]NVStorageSaveData done [18:28:00]OFDSenderStorePacket done [18:28:00]KKMCreateOFDPacket done [18:28:00]NVStorageSaveData kkm_last_timestamp [18:28:00]File name is /storage/kkm_last_timestamp [18:28:00]Write 4 bytes [18:28:00]NVStorageSaveData done [18:28:00]ExternCall_PrintAddStr [18:28:00]wPrintStart [18:28:00]Write to MH i2c: 01 00 00 8F 79 08 [18:28:00]Write i2c OK [18:28:00]MH_I2C_Read... [18:28:00]Read from MH i2c: 01 [18:28:00]MH_I2C_Read... [18:28:00]Read from MH i2c: 01 07 00 [18:28:00]MH_I2C_Read... [18:28:00]Read from MH i2c: 01 07 00 8F 79 00 00 00 00 00 FF 0F 1D [18:28:00]RasterBufferAndPrint [18:28:00]line Счет N : (1)99518 [18:28:00]line ИНН: 02508201610067 [18:28:00]line Контрольно-Кассовый Чек [18:28:00]line ПРОДАЖА [18:28:00]line ТРК (МРК, ГНК) : 31 [18:28:00]line Товар: 2710124130 [18:28:00]line Аи-92-К-5 [18:28:00]line 7.480 * 66.90 [18:28:00]line = 500.41 [18:28:00]line НДС 12% НСП 1% [18:28:00]line > о реализуемом товаре [18:28:00]line ОКРУГЛЕНИЕ: -0.41 [18:28:00]line ИТОГО: 500.00 [18:28:00]line Внесено: 500.00 [18:28:00]line СДАЧА: 0.00 [18:28:00]line НСП 1% : 4.43 [18:28:00]line НДС 12% : 53.14 [18:28:00]line Наличными: 500.00 [18:28:00]line Безнал.: 0.00 [18:28:00]line Место: АЗС № 143 "Партнер Нефть" [18:28:00]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [18:28:00]line СНО: Общий режим [18:28:00]line Чек 255 27.10.2024 18:28 [18:28:00]line Смена: 537 ФФД: 1.0 [18:28:00]line ЗНМ: 0300000096 [18:28:00]line РНМ: 0000000000091693 [18:28:00]line Версия ККМ: 001 [18:28:00]line ФМ: 0000000000871792 [18:28:00]line ФД: 156704 [18:28:00]line ФПД: 6735901182119 [18:28:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T182805&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156704&fm=6735901182119&tin=02508201610067®Number=0000000000091693&sum=50000 [18:28:00]OFD Sender: Processing packet 156704 [packets to send 31, broken 30] [18:28:00]ProducePacketName [18:28:00]name=ofd_packets/00156704 [18:28:00]OFD Sender: To server: pG, [18:28:00]CommunicateWithHost lk.salyk.kg:30040 [18:28:00]ConnectInit lk.salyk.kg [18:28:00]written 0, free lines is 4095 [18:28:01]Connected sock=10 [18:28:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 DB 08 07 01 FF B3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 00 00 00 F4 03 04 00 35 86 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 20 64 02 00 35 04 06 00 06 20 52 FF 48 A7 E4 7C 69 59 7A 09 C4 58 [18:28:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 FF EA 47 00 19 BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 20 64 02 00 F4 03 04 00 A4 2B 1E 67 B6 04 01 00 00 BA E5 6C 81 BD 1F B5 F4 [18:28:01]CommunicateWithHost err = 0 [18:28:01]CheckOFDResponse [18:28:01]1017 (14) - 77093643461234 [18:28:01]1041 (16) - 0000000000871792 [18:28:01]1040 (4) - 156704 [18:28:01]1012 (4) - 27.10.2024 12:01 [18:28:01]1206 (1) - 0 [18:28:01]OFD Sender: Remove packet 156704 [18:28:01]ProducePacketName [18:28:01]name=ofd_packets/00156704 [18:28:01]NVStorageDeleteData [18:28:01]Write to MH i2c: 01 00 00 BA 79 33 [18:28:01]Write i2c OK [18:28:01]MH_I2C_Read... [18:28:01]Read from MH i2c: 01 [18:28:01]MH_I2C_Read... [18:28:01]Read from MH i2c: 01 07 00 [18:28:01]MH_I2C_Read... [18:28:01]Read from MH i2c: 01 07 00 BA 79 00 00 00 00 00 E4 0C 2A [18:28:01]RasterBufferAndPrint [18:28:01]line [18:28:01]line [18:28:01]line [18:28:01]line [18:28:01]line [18:28:01]written 0, free lines is 3306 [18:28:01]process_action close_receipt done [18:28:01]requested_data is exist [18:28:01]produce_requested_data [18:28:01]requested_item fm.sn is exist - process it [18:28:01]wFMCommunicate request_size=4 [18:28:01]MH_SAM_APDU [18:28:01]CAPDU: 80 11 00 00 [18:28:01]Write to MH i2c: E2 08 00 C1 79 80 11 00 00 00 00 00 00 B4 [18:28:01]Write i2c OK [18:28:01]MH_I2C_Read... [18:28:01]Read from MH i2c: E2 [18:28:01]MH_I2C_Read... [18:28:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:28:01]Read from MH i2c: E2 17 00 [18:28:01]MH_I2C_Read... [18:28:01]Read from MH i2c: E2 17 00 C1 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 09 [18:28:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:28:01]wFMCommunicate OK [18:28:01]requested_item fd.num is exist - process it [18:28:01]SAM_PROTO_GetFieldsCounters [18:28:01]wFMCommunicate request_size=4 [18:28:01]MH_SAM_APDU [18:28:01]CAPDU: 80 13 00 00 [18:28:01]Write to MH i2c: E2 08 00 C2 79 80 13 00 00 00 00 00 00 B7 [18:28:01]Write i2c OK [18:28:01]MH_I2C_Read... [18:28:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:28:01]Read from MH i2c: E2 [18:28:01]MH_I2C_Read... [18:28:01]Read from MH i2c: E2 62 00 [18:28:01]MH_I2C_Read... [18:28:01]Read from MH i2c: E2 62 00 C2 79 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 20 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 7C [18:28:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 20 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:28:01]wFMCommunicate OK [18:28:01]SAM_PROTO_GetFieldsCounters done [18:28:01]requested_item shift.num is exist - process it [18:28:01]requested_item shift.opened is exist - process it [18:28:01]req_shift_opened [18:28:01]FM_GetShiftState [18:28:01]SAM_PROTO_GetShiftState [18:28:01]wFMCommunicate request_size=4 [18:28:01]MH_SAM_APDU [18:28:01]CAPDU: 80 13 01 00 [18:28:01]Write to MH i2c: E2 08 00 C3 79 80 13 01 00 00 00 00 00 B9 [18:28:01]Write i2c OK [18:28:01]MH_I2C_Read... [18:28:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:28:01]Read from MH i2c: E2 [18:28:01]MH_I2C_Read... [18:28:01]Read from MH i2c: E2 0E 00 [18:28:01]MH_I2C_Read... [18:28:01]Read from MH i2c: E2 0E 00 C3 79 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 86 [18:28:01]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [18:28:01]wFMCommunicate OK [18:28:01]SAM_PROTO_GetShiftState done [18:28:01]FM_GetShiftState done [18:28:01]req_shift_opened done [18:28:01]requested_item shift.open_date is exist - process it [18:28:01]req_shift_open_date [18:28:01]req_shift_open_date done [18:28:01]produce_requested_data done [18:28:01]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156704,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [18:28:01]process_action_free close_receipt [18:28:01]json_value_free [18:28:01]json_value_free done [18:28:01]process_json_proto returns [18:28:01]Send response to host [18:28:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156704,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [18:28:01]free response buf [18:28:01]execute_script done [18:28:01]execute_script returns [18:28:01]free content buf [18:28:01]Sock 8.Close socket [18:28:01]Sock 8.Thread stoped [18:28:01]OFD Sender: No OFD packet to send [18:28:06]OFD Sender: No OFD packet to send [18:28:11]OFD Sender: No OFD packet to send [18:28:16]OFD Sender: No OFD packet to send [18:28:21]OFD Sender: No OFD packet to send [18:28:26]OFD Sender: No OFD packet to send [18:28:31]OFD Sender: No OFD packet to send [18:28:36]OFD Sender: No OFD packet to send [18:28:41]OFD Sender: No OFD packet to send [18:28:46]OFD Sender: No OFD packet to send [18:28:51]OFD Sender: No OFD packet to send [18:28:56]OFD Sender: No OFD packet to send [18:29:01]OFD Sender: No OFD packet to send [18:29:06]OFD Sender: No OFD packet to send [18:29:11]OFD Sender: No OFD packet to send [18:29:16]OFD Sender: No OFD packet to send [18:29:21]OFD Sender: No OFD packet to send [18:29:26]OFD Sender: No OFD packet to send [18:29:31]OFD Sender: No OFD packet to send [18:29:36]OFD Sender: No OFD packet to send [18:29:41]OFD Sender: No OFD packet to send [18:29:44]accept exits with 9 [18:29:44]New connection [18:29:44]New thread 3066977636 created [18:29:44]Thread 3066834276 joined [18:29:44]Waiting for new connection... [18:29:44] Sock 9.Parse request [18:29:44]Sock 9.Check first char [18:29:44]Sock 9.First char is OK [18:29:44]request: POST /json_proto HTTP/1.0 [18:29:44]Method: POST [18:29:44]URL: /json_proto [18:29:44]Method is POST - this is cgi request [18:29:44]url: /json_proto [18:29:44]query_string will be loaded in cgi processing [18:29:44]execute_cgi json_proto POST (null) [18:29:44]execute_cgi path=json_proto method=POST [18:29:44]POST find Content-Length [18:29:44]Host: 172.17.63.3:8080 [18:29:44]Content-Length: 677 [18:29:44]Content-Type: application/json [18:29:44] [18:29:44]POST finish read [18:29:44]Found Content-Length = 677 [18:29:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99519", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "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" ] } } [18:29:44]execute_script... [18:29: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)99519", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 11.960, "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" ] } } [18:29:44]POST & json_proto [18:29:44]process_json_proto [18:29:44]json parsed OK: [18:29:44]protocol is kg_v1.0 [18:29:44]action value=close_receipt [18:29:44]process_action close_receipt [18:29:44]cmd_close_receipt [18:29:44]MH_GetDate [18:29:44]Write to MH i2c: F0 00 00 C4 79 2C [18:29:44]Write i2c OK [18:29:44]MH_I2C_Read... [18:29:44]Read from MH i2c: F0 [18:29:44]MH_I2C_Read... [18:29:44]Read from MH i2c: F0 09 00 [18:29:44]MH_I2C_Read... [18:29:44]Read from MH i2c: F0 09 00 C4 79 00 9F 86 1E 67 50 D1 6C 64 D0 [18:29:44]GetLastDocTimeStamp 1730053685 [18:29:44]current date 1730053791 [18:29:44]FM_GetShiftState [18:29:44]SAM_PROTO_GetShiftState [18:29:44]wFMCommunicate request_size=4 [18:29:44]MH_SAM_APDU [18:29:44]CAPDU: 80 13 01 00 [18:29:44]Write to MH i2c: E2 08 00 C5 79 80 13 01 00 00 00 00 00 BB [18:29:44]Write i2c OK [18:29:44]MH_I2C_Read... [18:29:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:29:44]Read from MH i2c: E2 [18:29:44]MH_I2C_Read... [18:29:44]Read from MH i2c: E2 0E 00 [18:29:44]MH_I2C_Read... [18:29:44]Read from MH i2c: E2 0E 00 C5 79 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 88 [18:29:44]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [18:29:44]wFMCommunicate OK [18:29:44]SAM_PROTO_GetShiftState done [18:29:44]FM_GetShiftState done [18:29:44]opened in 1729989044 [18:29:44]opened+sec_in_day 1730075444 [18:29:44]quantity*price = 80012 [18:29:44]sum+1 = 80013 [18:29:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 256 27.10.2024 18:29 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156705 ФПД: 86660217041160 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T182951&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156705&fm=86660217041160&tin=02508201610067®Number=0000000000091693&sum=80000 [18:29:45]StoreToDocumentArchive [18:29:45]shift 537 fd 156705 [18:29:45]save to /storage/0537/doc_00156705 [18:29:45]save last doc name /storage/0537/doc_00156705 to /storage/kkm_last_doc_name [18:29:45]save OK [18:29:45]Clear old archive folders... [18:29:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:29:45]tlvbuf is 01807890 [18:29:45]SAM_PROTO_ClearQueue [18:29:45]wFMCommunicate request_size=4 [18:29:45]MH_SAM_APDU [18:29:45]CAPDU: 80 09 00 00 [18:29:45]Write to MH i2c: E2 08 00 D2 79 80 09 00 00 00 00 00 00 BD [18:29:45]Write i2c OK [18:29:45]MH_I2C_Read... [18:29:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:29:45]Read from MH i2c: E2 [18:29:45]MH_I2C_Read... [18:29:45]Read from MH i2c: E2 03 00 [18:29:45]MH_I2C_Read... [18:29:45]Read from MH i2c: E2 03 00 D2 79 00 90 00 BF [18:29:45]RAPDU: 90 00 [18:29:45]wFMCommunicate OK [18:29:45]SAM_PROTO_ClearQueue done [18:29:45]KKMCreateOFDPacket [18:29:45]OFDProtocolAddRootSTLVToBuf [18:29:45]FM_MakeSignedData [18:29:45]FM_MakeSignedData [18:29:45]SAM_PROTO_SignData [18:29:45]wFMCommunicate request_size=4 [18:29:45]MH_SAM_APDU [18:29:45]CAPDU: 80 0D 01 02 [18:29:45]Write to MH i2c: E2 08 00 D3 79 80 0D 01 02 00 00 00 00 C5 [18:29:45]Write i2c OK [18:29:45]MH_I2C_Read... [18:29:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:29:45]Read from MH i2c: E2 [18:29:45]MH_I2C_Read... [18:29:45]Read from MH i2c: E2 03 00 [18:29:45]MH_I2C_Read... [18:29:45]Read from MH i2c: E2 03 00 D3 79 00 90 00 C0 [18:29:45]RAPDU: 90 00 [18:29:45]wFMCommunicate OK [18:29:45]wFMCommunicate request_size=255 [18:29:45]MH_SAM_APDU [18: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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 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 00 01 00 00 F4 03 04 00 9F 86 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 21 64 02 00 35 04 06 00 4E [18:29:45]Write to MH i2c: E2 02 01 D4 79 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 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 00 01 00 00 F4 03 04 00 9F 86 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 21 64 02 00 35 04 06 00 4E 00 00 E0 [18:29:45]Write i2c OK [18:29:45]MH_I2C_Read... [18:29:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:29:45]Read from MH i2c: E2 [18:29:45]MH_I2C_Read... [18:29:45]Read from MH i2c: E2 03 00 [18:29:45]MH_I2C_Read... [18:29:45]Read from MH i2c: E2 03 00 D4 79 00 90 00 C1 [18:29:45]RAPDU: 90 00 [18:29:45]wFMCommunicate OK [18:29:45]wFMCommunicate request_size=10 [18:29:45]MH_SAM_APDU [18:29:45]CAPDU: 80 0D 02 02 05 D1 27 73 F1 08 [18:29:45]Write to MH i2c: E2 0D 00 D5 79 80 0D 02 02 05 00 D1 27 73 F1 08 00 00 36 [18:29:45]Write i2c OK [18:29:45]MH_I2C_Read... [18:29:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:29:45]Read from MH i2c: E2 [18:29:45]MH_I2C_Read... [18:29:45]Read from MH i2c: E2 03 00 [18:29:45]MH_I2C_Read... [18:29:45]Read from MH i2c: E2 03 00 D5 79 00 90 00 C2 [18:29:45]RAPDU: 90 00 [18:29:45]wFMCommunicate OK [18:29:45]wFMCommunicate request_size=4 [18:29:45]MH_SAM_APDU [18:29:45]CAPDU: 80 0D 03 02 [18:29:45]Write to MH i2c: E2 08 00 D6 79 80 0D 03 02 00 00 00 00 CA [18:29:45]Write i2c OK [18:29:45]MH_I2C_Read... [18:29:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:29:45]Read from MH i2c: E2 [18:29:45]MH_I2C_Read... [18:29:45]Read from MH i2c: E2 0B 00 [18:29:45]MH_I2C_Read... [18:29:45]Read from MH i2c: E2 0B 00 D6 79 00 D9 0E EE A8 5E 53 88 31 90 00 B2 [18:29:45]RAPDU: D9 0E EE A8 5E 53 88 31 90 00 [18:29:45]wFMCommunicate OK [18:29:45]SAM_PROTO_SignData done [18:29:45]FM_MakeSignedData done [18:29:45]CreateOFDProtocolMessage [18:29:45]wFMCommunicate request_size=4 [18:29:45]MH_SAM_APDU [18:29:45]CAPDU: 80 11 00 00 [18:29:45]Write to MH i2c: E2 08 00 D7 79 80 11 00 00 00 00 00 00 CA [18:29:45]Write i2c OK [18:29:45]MH_I2C_Read... [18:29:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:29:45]Read from MH i2c: E2 [18:29:45]MH_I2C_Read... [18:29:45]Read from MH i2c: E2 17 00 [18:29:45]MH_I2C_Read... [18:29:45]Read from MH i2c: E2 17 00 D7 79 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 1F [18:29:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:29:45]wFMCommunicate OK [18:29:45]CreateOFDProtocolMessage done [18:29:45]OFDSenderStorePacket 156705 [18:29:45]StoreOFDPacket docnum=156705 [18:29:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 1A 24 07 01 6F 3A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 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 00 01 00 00 F4 03 04 00 9F 86 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 21 64 02 00 35 04 06 00 4E D1 27 73 F1 08 D9 0E EE A8 5E 53 88 31 [18:29:45]CheckFolder [18:29:45]dirname=/storage/ofd_packets [18:29:45]CheckFolder done [18:29:45]ProducePacketName [18:29:45]name=ofd_packets/00156705 [18:29:45]NVStorageSaveData ofd_packets/00156705 [18:29:45]File name is /storage/ofd_packets/00156705 [18:29:45]Write 301 bytes [18:29:45]NVStorageSaveData done [18:29:45]OFDSenderStorePacket done [18:29:45]KKMCreateOFDPacket done [18:29:45]NVStorageSaveData kkm_last_timestamp [18:29:45]File name is /storage/kkm_last_timestamp [18:29:45]Write 4 bytes [18:29:45]NVStorageSaveData done [18:29:45]ExternCall_PrintAddStr [18:29:45]wPrintStart [18:29:45]Write to MH i2c: 01 00 00 D8 79 51 [18:29:45]Write i2c OK [18:29:45]MH_I2C_Read... [18:29:45]Read from MH i2c: 01 [18:29:45]MH_I2C_Read... [18:29:45]Read from MH i2c: 01 07 00 [18:29:45]MH_I2C_Read... [18:29:45]Read from MH i2c: 01 07 00 D8 79 00 00 00 00 00 FF 0F 66 [18:29:45]RasterBufferAndPrint [18:29:45]line Счет N : (1)99519 [18:29:45]line ИНН: 02508201610067 [18:29:45]line Контрольно-Кассовый Чек [18:29:45]line ПРОДАЖА [18:29:45]line ТРК (МРК, ГНК) : 31 [18:29:45]line Товар: 2710124130 [18:29:45]line Аи-92-К-5 [18:29:45]line 11.960 * 66.90 [18:29:45]line = 800.12 [18:29:45]line НДС 12% НСП 1% [18:29:45]line > о реализуемом товаре [18:29:45]line ОКРУГЛЕНИЕ: -0.12 [18:29:45]line ИТОГО: 800.00 [18:29:45]line Внесено: 800.00 [18:29:45]line СДАЧА: 0.00 [18:29:45]line НСП 1% : 7.08 [18:29:45]line НДС 12% : 84.97 [18:29:45]line Наличными: 800.00 [18:29:45]line Безнал.: 0.00 [18:29:45]line Место: АЗС № 143 "Партнер Нефть" [18:29:45]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [18:29:45]line СНО: Общий режим [18:29:45]line Чек 256 27.10.2024 18:29 [18:29:45]line Смена: 537 ФФД: 1.0 [18:29:45]line ЗНМ: 0300000096 [18:29:45]line РНМ: 0000000000091693 [18:29:45]line Версия ККМ: 001 [18:29:45]line ФМ: 0000000000871792 [18:29:45]line ФД: 156705 [18:29:45]line ФПД: 86660217041160 [18:29:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T182951&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156705&fm=86660217041160&tin=02508201610067®Number=0000000000091693&sum=80000 [18:29:46]OFD Sender: Processing packet 156705 [packets to send 31, broken 30] [18:29:46]ProducePacketName [18:29:46]name=ofd_packets/00156705 [18:29:46]OFD Sender: To server: pG, [18:29:46]CommunicateWithHost lk.salyk.kg:30040 [18:29:46]ConnectInit lk.salyk.kg [18:29:46]written 0, free lines is 4095 [18:29:46]Connected sock=10 [18: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 31 37 39 32 0F 01 00 00 1A 24 07 01 6F 3A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 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 00 01 00 00 F4 03 04 00 9F 86 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 21 64 02 00 35 04 06 00 4E D1 27 73 F1 08 D9 0E EE A8 5E 53 88 31 [18:29:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 E6 E7 47 00 BE 51 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 21 64 02 00 F4 03 04 00 0E 2C 1E 67 B6 04 01 00 00 94 C2 71 26 42 51 B6 09 [18:29:46]CommunicateWithHost err = 0 [18:29:46]CheckOFDResponse [18:29:46]1017 (14) - 77093643461234 [18:29:46]1041 (16) - 0000000000871792 [18:29:46]1040 (4) - 156705 [18:29:46]1012 (4) - 27.10.2024 12:03 [18:29:46]1206 (1) - 0 [18:29:46]OFD Sender: Remove packet 156705 [18:29:46]ProducePacketName [18:29:46]name=ofd_packets/00156705 [18:29:46]NVStorageDeleteData [18:29:46]Write to MH i2c: 01 00 00 03 7A 7D [18:29:46]Write i2c OK [18:29:46]MH_I2C_Read... [18:29:46]Read from MH i2c: 01 [18:29:46]MH_I2C_Read... [18:29:46]Read from MH i2c: 01 07 00 [18:29:46]MH_I2C_Read... [18:29:46]Read from MH i2c: 01 07 00 03 7A 00 00 00 00 00 EB 0C 7B [18:29:46]RasterBufferAndPrint [18:29:46]line [18:29:46]line [18:29:46]line [18:29:46]line [18:29:46]line [18:29:46]written 0, free lines is 3316 [18:29:46]process_action close_receipt done [18:29:46]requested_data is exist [18:29:46]produce_requested_data [18:29:46]requested_item fm.sn is exist - process it [18:29:46]wFMCommunicate request_size=4 [18:29:46]MH_SAM_APDU [18:29:46]CAPDU: 80 11 00 00 [18:29:46]Write to MH i2c: E2 08 00 0A 7A 80 11 00 00 00 00 00 00 FE [18:29:46]Write i2c OK [18:29:46]MH_I2C_Read... [18:29:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:29:46]Read from MH i2c: E2 [18:29:46]MH_I2C_Read... [18:29:46]Read from MH i2c: E2 17 00 [18:29:46]MH_I2C_Read... [18:29:46]Read from MH i2c: E2 17 00 0A 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 53 [18:29:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:29:46]wFMCommunicate OK [18:29:46]requested_item fd.num is exist - process it [18:29:46]SAM_PROTO_GetFieldsCounters [18:29:46]wFMCommunicate request_size=4 [18:29:46]MH_SAM_APDU [18:29:46]CAPDU: 80 13 00 00 [18:29:46]Write to MH i2c: E2 08 00 0B 7A 80 13 00 00 00 00 00 00 01 [18:29:46]Write i2c OK [18:29:46]MH_I2C_Read... [18:29:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:29:47]Read from MH i2c: E2 [18:29:47]MH_I2C_Read... [18:29:47]Read from MH i2c: E2 62 00 [18:29:47]MH_I2C_Read... [18:29:47]Read from MH i2c: E2 62 00 0B 7A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 21 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 CC [18:29:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 21 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:29:47]wFMCommunicate OK [18:29:47]SAM_PROTO_GetFieldsCounters done [18:29:47]requested_item shift.num is exist - process it [18:29:47]requested_item shift.opened is exist - process it [18:29:47]req_shift_opened [18:29:47]FM_GetShiftState [18:29:47]SAM_PROTO_GetShiftState [18:29:47]wFMCommunicate request_size=4 [18:29:47]MH_SAM_APDU [18:29:47]CAPDU: 80 13 01 00 [18:29:47]Write to MH i2c: E2 08 00 0C 7A 80 13 01 00 00 00 00 00 03 [18:29:47]Write i2c OK [18:29:47]MH_I2C_Read... [18:29:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:29:47]Read from MH i2c: E2 [18:29:47]MH_I2C_Read... [18:29:47]Read from MH i2c: E2 0E 00 [18:29:47]MH_I2C_Read... [18:29:47]Read from MH i2c: E2 0E 00 0C 7A 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 D0 [18:29:47]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [18:29:47]wFMCommunicate OK [18:29:47]SAM_PROTO_GetShiftState done [18:29:47]FM_GetShiftState done [18:29:47]req_shift_opened done [18:29:47]requested_item shift.open_date is exist - process it [18:29:47]req_shift_open_date [18:29:47]req_shift_open_date done [18:29:47]produce_requested_data done [18:29:47]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156705,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [18:29:47]process_action_free close_receipt [18:29:47]json_value_free [18:29:47]json_value_free done [18:29:47]process_json_proto returns [18:29:47]Send response to host [18:29:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156705,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [18:29:47]free response buf [18:29:47]execute_script done [18:29:47]execute_script returns [18:29:47]free content buf [18:29:47]Sock 9.Close socket [18:29:47]Sock 9.Thread stoped [18:29:47]OFD Sender: No OFD packet to send [18:29:52]OFD Sender: No OFD packet to send [18:29:57]OFD Sender: No OFD packet to send [18:30:02]OFD Sender: No OFD packet to send [18:30:07]OFD Sender: No OFD packet to send [18:30:12]OFD Sender: No OFD packet to send [18:30:17]OFD Sender: No OFD packet to send [18:30:22]OFD Sender: No OFD packet to send [18:30:27]OFD Sender: No OFD packet to send [18:30:32]OFD Sender: No OFD packet to send [18:30:37]OFD Sender: No OFD packet to send [18:30:40]accept exits with 8 [18:30:40]New connection [18:30:40]New thread 3066834276 created [18:30:40]Thread 3066977636 joined [18:30:40]Waiting for new connection... [18:30:40] Sock 8.Parse request [18:30:40]Sock 8.Check first char [18:30:40]Sock 8.First char is OK [18:30:40]request: POST /json_proto HTTP/1.0 [18:30:40]Method: POST [18:30:40]URL: /json_proto [18:30:40]Method is POST - this is cgi request [18:30:40]url: /json_proto [18:30:40]query_string will be loaded in cgi processing [18:30:40]execute_cgi json_proto POST (null) [18:30:40]execute_cgi path=json_proto method=POST [18:30:40]POST find Content-Length [18:30:40]Host: 172.17.63.3:8080 [18:30:40]Content-Length: 676 [18:30:40]Content-Type: application/json [18:30:40] [18:30:40]POST finish read [18:30:40]Found Content-Length = 676 [18:30:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99520", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:30:40]execute_script... [18:30:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99520", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:30:40]POST & json_proto [18:30:40]process_json_proto [18:30:40]json parsed OK: [18:30:40]protocol is kg_v1.0 [18:30:40]action value=close_receipt [18:30:40]process_action close_receipt [18:30:40]cmd_close_receipt [18:30:40]MH_GetDate [18:30:40]Write to MH i2c: F0 00 00 0D 7A 76 [18:30:40]Write i2c OK [18:30:40]MH_I2C_Read... [18:30:40]Read from MH i2c: F0 [18:30:40]MH_I2C_Read... [18:30:40]Read from MH i2c: F0 09 00 [18:30:40]MH_I2C_Read... [18:30:40]Read from MH i2c: F0 09 00 0D 7A 00 D8 86 1E 67 50 D1 6C 64 53 [18:30:40]GetLastDocTimeStamp 1730053791 [18:30:40]current date 1730053848 [18:30:40]FM_GetShiftState [18:30:40]SAM_PROTO_GetShiftState [18:30:40]wFMCommunicate request_size=4 [18:30:40]MH_SAM_APDU [18:30:40]CAPDU: 80 13 01 00 [18:30:40]Write to MH i2c: E2 08 00 0E 7A 80 13 01 00 00 00 00 00 05 [18:30:40]Write i2c OK [18:30:40]MH_I2C_Read... [18:30:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:30:41]Read from MH i2c: E2 [18:30:41]MH_I2C_Read... [18:30:41]Read from MH i2c: E2 0E 00 [18:30:41]MH_I2C_Read... [18:30:41]Read from MH i2c: E2 0E 00 0E 7A 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 D2 [18:30:41]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [18:30:41]wFMCommunicate OK [18:30:41]SAM_PROTO_GetShiftState done [18:30:41]FM_GetShiftState done [18:30:41]opened in 1729989044 [18:30:41]opened+sec_in_day 1730075444 [18:30:41]quantity*price = 50041 [18:30:41]sum+1 = 50042 [18:30:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 257 27.10.2024 18:30 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156706 ФПД: 231338600488850 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T183048&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156706&fm=231338600488850&tin=02508201610067®Number=0000000000091693&sum=50000 [18:30:42]StoreToDocumentArchive [18:30:42]shift 537 fd 156706 [18:30:42]save to /storage/0537/doc_00156706 [18:30:42]save last doc name /storage/0537/doc_00156706 to /storage/kkm_last_doc_name [18:30:42]save OK [18:30:42]Clear old archive folders... [18:30:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:30:42]tlvbuf is 01697DE0 [18:30:42]SAM_PROTO_ClearQueue [18:30:42]wFMCommunicate request_size=4 [18:30:42]MH_SAM_APDU [18:30:42]CAPDU: 80 09 00 00 [18:30:42]Write to MH i2c: E2 08 00 1B 7A 80 09 00 00 00 00 00 00 07 [18:30:42]Write i2c OK [18:30:42]MH_I2C_Read... [18:30:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:30:42]Read from MH i2c: E2 [18:30:42]MH_I2C_Read... [18:30:42]Read from MH i2c: E2 03 00 [18:30:42]MH_I2C_Read... [18:30:42]Read from MH i2c: E2 03 00 1B 7A 00 90 00 09 [18:30:42]RAPDU: 90 00 [18:30:42]wFMCommunicate OK [18:30:42]SAM_PROTO_ClearQueue done [18:30:42]KKMCreateOFDPacket [18:30:42]OFDProtocolAddRootSTLVToBuf [18:30:42]FM_MakeSignedData [18:30:42]FM_MakeSignedData [18:30:42]SAM_PROTO_SignData [18:30:42]wFMCommunicate request_size=4 [18:30:42]MH_SAM_APDU [18:30:42]CAPDU: 80 0D 01 02 [18:30:42]Write to MH i2c: E2 08 00 1C 7A 80 0D 01 02 00 00 00 00 0F [18:30:42]Write i2c OK [18:30:42]MH_I2C_Read... [18:30:42]OFD Sender: No OFD packet to send [18:30:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:30:42]Read from MH i2c: E2 [18:30:42]MH_I2C_Read... [18:30:42]Read from MH i2c: E2 03 00 [18:30:42]MH_I2C_Read... [18:30:42]Read from MH i2c: E2 03 00 1C 7A 00 90 00 0A [18:30:42]RAPDU: 90 00 [18:30:42]wFMCommunicate OK [18:30:42]wFMCommunicate request_size=255 [18:30:42]MH_SAM_APDU [18: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 D8 86 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 22 64 02 00 35 04 06 00 D2 [18:30:42]Write to MH i2c: E2 02 01 1D 7A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 D8 86 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 22 64 02 00 35 04 06 00 D2 00 00 FD [18:30:42]Write i2c OK [18:30:42]MH_I2C_Read... [18:30:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:30:42]Read from MH i2c: E2 [18:30:42]MH_I2C_Read... [18:30:42]Read from MH i2c: E2 03 00 [18:30:42]MH_I2C_Read... [18:30:42]Read from MH i2c: E2 03 00 1D 7A 00 90 00 0B [18:30:42]RAPDU: 90 00 [18:30:42]wFMCommunicate OK [18:30:42]wFMCommunicate request_size=10 [18:30:42]MH_SAM_APDU [18:30:42]CAPDU: 80 0D 02 02 05 66 B7 1A DF 92 [18:30:42]Write to MH i2c: E2 0D 00 1E 7A 80 0D 02 02 05 00 66 B7 1A DF 92 00 00 C4 [18:30:42]Write i2c OK [18:30:42]MH_I2C_Read... [18:30:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:30:42]Read from MH i2c: E2 [18:30:42]MH_I2C_Read... [18:30:42]Read from MH i2c: E2 03 00 [18:30:42]MH_I2C_Read... [18:30:42]Read from MH i2c: E2 03 00 1E 7A 00 90 00 0C [18:30:42]RAPDU: 90 00 [18:30:42]wFMCommunicate OK [18:30:42]wFMCommunicate request_size=4 [18:30:42]MH_SAM_APDU [18:30:42]CAPDU: 80 0D 03 02 [18:30:42]Write to MH i2c: E2 08 00 1F 7A 80 0D 03 02 00 00 00 00 14 [18:30:42]Write i2c OK [18:30:42]MH_I2C_Read... [18:30:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:30:42]Read from MH i2c: E2 [18:30:42]MH_I2C_Read... [18:30:42]Read from MH i2c: E2 0B 00 [18:30:42]MH_I2C_Read... [18:30:42]Read from MH i2c: E2 0B 00 1F 7A 00 00 E6 65 10 2A DB B5 50 90 00 7A [18:30:42]RAPDU: 00 E6 65 10 2A DB B5 50 90 00 [18:30:42]wFMCommunicate OK [18:30:42]SAM_PROTO_SignData done [18:30:42]FM_MakeSignedData done [18:30:42]CreateOFDProtocolMessage [18:30:42]wFMCommunicate request_size=4 [18:30:42]MH_SAM_APDU [18:30:42]CAPDU: 80 11 00 00 [18:30:42]Write to MH i2c: E2 08 00 20 7A 80 11 00 00 00 00 00 00 14 [18:30:42]Write i2c OK [18:30:42]MH_I2C_Read... [18:30:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:30:42]Read from MH i2c: E2 [18:30:42]MH_I2C_Read... [18:30:42]Read from MH i2c: E2 17 00 [18:30:42]MH_I2C_Read... [18:30:42]Read from MH i2c: E2 17 00 20 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 69 [18:30:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:30:42]wFMCommunicate OK [18:30:42]CreateOFDProtocolMessage done [18:30:42]OFDSenderStorePacket 156706 [18:30:42]StoreOFDPacket docnum=156706 [18:30:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 58 63 07 01 AB 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 D8 86 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 22 64 02 00 35 04 06 00 D2 66 B7 1A DF 92 00 E6 65 10 2A DB B5 50 [18:30:42]CheckFolder [18:30:42]dirname=/storage/ofd_packets [18:30:42]CheckFolder done [18:30:42]ProducePacketName [18:30:42]name=ofd_packets/00156706 [18:30:42]NVStorageSaveData ofd_packets/00156706 [18:30:42]File name is /storage/ofd_packets/00156706 [18:30:42]Write 301 bytes [18:30:42]NVStorageSaveData done [18:30:42]OFDSenderStorePacket done [18:30:42]KKMCreateOFDPacket done [18:30:42]NVStorageSaveData kkm_last_timestamp [18:30:42]File name is /storage/kkm_last_timestamp [18:30:42]Write 4 bytes [18:30:42]NVStorageSaveData done [18:30:42]ExternCall_PrintAddStr [18:30:42]wPrintStart [18:30:42]Write to MH i2c: 01 00 00 21 7A 9B [18:30:42]Write i2c OK [18:30:42]MH_I2C_Read... [18:30:42]Read from MH i2c: 01 [18:30:42]MH_I2C_Read... [18:30:42]Read from MH i2c: 01 07 00 [18:30:42]MH_I2C_Read... [18:30:42]Read from MH i2c: 01 07 00 21 7A 00 00 00 00 00 FF 0F B0 [18:30:42]RasterBufferAndPrint [18:30:42]line Счет N : (1)99520 [18:30:42]line ИНН: 02508201610067 [18:30:42]line Контрольно-Кассовый Чек [18:30:42]line ПРОДАЖА [18:30:42]line ТРК (МРК, ГНК) : 31 [18:30:42]line Товар: 2710124130 [18:30:42]line Аи-92-К-5 [18:30:42]line 7.480 * 66.90 [18:30:42]line = 500.41 [18:30:42]line НДС 12% НСП 1% [18:30:42]line > о реализуемом товаре [18:30:42]line ОКРУГЛЕНИЕ: -0.41 [18:30:42]line ИТОГО: 500.00 [18:30:42]line Внесено: 500.00 [18:30:42]line СДАЧА: 0.00 [18:30:42]line НСП 1% : 4.43 [18:30:42]line НДС 12% : 53.14 [18:30:42]line Наличными: 500.00 [18:30:42]line Безнал.: 0.00 [18:30:42]line Место: АЗС № 143 "Партнер Нефть" [18:30:42]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [18:30:42]line СНО: Общий режим [18:30:42]line Чек 257 27.10.2024 18:30 [18:30:42]line Смена: 537 ФФД: 1.0 [18:30:42]line ЗНМ: 0300000096 [18:30:42]line РНМ: 0000000000091693 [18:30:42]line Версия ККМ: 001 [18:30:42]line ФМ: 0000000000871792 [18:30:42]line ФД: 156706 [18:30:42]line ФПД: 231338600488850 [18:30:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T183048&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156706&fm=231338600488850&tin=02508201610067®Number=0000000000091693&sum=50000 [18:30:43]OFD Sender: Processing packet 156706 [packets to send 31, broken 30] [18:30:43]ProducePacketName [18:30:43]name=ofd_packets/00156706 [18:30:43]OFD Sender: To server: pG, [18:30:43]CommunicateWithHost lk.salyk.kg:30040 [18:30:43]ConnectInit lk.salyk.kg [18:30:43]written 0, free lines is 4095 [18:30:43]Connected sock=9 [18: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 31 37 39 32 0F 01 00 00 58 63 07 01 AB 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 D8 86 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 22 64 02 00 35 04 06 00 D2 66 B7 1A DF 92 00 E6 65 10 2A DB B5 50 [18:30:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 A8 0F 47 00 16 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 31 37 39 32 10 04 04 00 22 64 02 00 F4 03 04 00 46 2C 1E 67 B6 04 01 00 00 ED 93 C6 26 31 64 DE 2A [18:30:43]CommunicateWithHost err = 0 [18:30:43]CheckOFDResponse [18:30:43]1017 (14) - 77093643461234 [18:30:43]1041 (16) - 0000000000871792 [18:30:43]1040 (4) - 156706 [18:30:43]1012 (4) - 27.10.2024 12:04 [18:30:43]1206 (1) - 0 [18:30:43]OFD Sender: Remove packet 156706 [18:30:43]ProducePacketName [18:30:43]name=ofd_packets/00156706 [18:30:43]NVStorageDeleteData [18:30:43]Write to MH i2c: 01 00 00 4C 7A C6 [18:30:43]Write i2c OK [18:30:43]MH_I2C_Read... [18:30:43]Read from MH i2c: 01 [18:30:43]MH_I2C_Read... [18:30:43]Read from MH i2c: 01 07 00 [18:30:43]MH_I2C_Read... [18:30:43]Read from MH i2c: 01 07 00 4C 7A 00 00 00 00 00 F3 0C CC [18:30:43]RasterBufferAndPrint [18:30:43]line [18:30:43]line [18:30:43]line [18:30:43]line [18:30:43]line [18:30:43]written 0, free lines is 3324 [18:30:43]process_action close_receipt done [18:30:43]requested_data is exist [18:30:43]produce_requested_data [18:30:43]requested_item fm.sn is exist - process it [18:30:43]wFMCommunicate request_size=4 [18:30:43]MH_SAM_APDU [18:30:43]CAPDU: 80 11 00 00 [18:30:43]Write to MH i2c: E2 08 00 53 7A 80 11 00 00 00 00 00 00 47 [18:30:43]Write i2c OK [18:30:43]MH_I2C_Read... [18:30:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:30:43]Read from MH i2c: E2 [18:30:43]MH_I2C_Read... [18:30:43]Read from MH i2c: E2 17 00 [18:30:43]MH_I2C_Read... [18:30:43]Read from MH i2c: E2 17 00 53 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 9C [18:30:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:30:43]wFMCommunicate OK [18:30:43]requested_item fd.num is exist - process it [18:30:43]SAM_PROTO_GetFieldsCounters [18:30:43]wFMCommunicate request_size=4 [18:30:43]MH_SAM_APDU [18:30:43]CAPDU: 80 13 00 00 [18:30:43]Write to MH i2c: E2 08 00 54 7A 80 13 00 00 00 00 00 00 4A [18:30:43]Write i2c OK [18:30:43]MH_I2C_Read... [18:30:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:30:43]Read from MH i2c: E2 [18:30:43]MH_I2C_Read... [18:30:43]Read from MH i2c: E2 62 00 [18:30:43]MH_I2C_Read... [18:30:43]Read from MH i2c: E2 62 00 54 7A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 22 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 01 01 00 00 5E 04 04 00 01 01 00 00 57 04 04 00 02 01 00 00 19 04 04 00 00 00 00 00 90 00 19 [18:30:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 22 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 01 01 00 00 5E 04 04 00 01 01 00 00 57 04 04 00 02 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:30:43]wFMCommunicate OK [18:30:43]SAM_PROTO_GetFieldsCounters done [18:30:43]requested_item shift.num is exist - process it [18:30:43]requested_item shift.opened is exist - process it [18:30:43]req_shift_opened [18:30:43]FM_GetShiftState [18:30:43]SAM_PROTO_GetShiftState [18:30:43]wFMCommunicate request_size=4 [18:30:43]MH_SAM_APDU [18:30:43]CAPDU: 80 13 01 00 [18:30:43]Write to MH i2c: E2 08 00 55 7A 80 13 01 00 00 00 00 00 4C [18:30:43]Write i2c OK [18:30:43]MH_I2C_Read... [18:30:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:30:43]Read from MH i2c: E2 [18:30:43]MH_I2C_Read... [18:30:43]Read from MH i2c: E2 0E 00 [18:30:43]MH_I2C_Read... [18:30:43]Read from MH i2c: E2 0E 00 55 7A 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 19 [18:30:43]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [18:30:43]wFMCommunicate OK [18:30:43]SAM_PROTO_GetShiftState done [18:30:43]FM_GetShiftState done [18:30:43]req_shift_opened done [18:30:43]requested_item shift.open_date is exist - process it [18:30:43]req_shift_open_date [18:30:43]req_shift_open_date done [18:30:43]produce_requested_data done [18:30:43]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156706,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [18:30:43]process_action_free close_receipt [18:30:43]json_value_free [18:30:43]json_value_free done [18:30:43]process_json_proto returns [18:30:43]Send response to host [18:30:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156706,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [18:30:43]free response buf [18:30:43]execute_script done [18:30:43]execute_script returns [18:30:43]free content buf [18:30:43]Sock 8.Close socket [18:30:43]Sock 8.Thread stoped [18:30:43]OFD Sender: No OFD packet to send [18:30:48]OFD Sender: No OFD packet to send [18:30:53]OFD Sender: No OFD packet to send [18:30:58]OFD Sender: No OFD packet to send [18:31:03]OFD Sender: No OFD packet to send [18:31:08]OFD Sender: No OFD packet to send [18:31:13]OFD Sender: No OFD packet to send [18:31:18]OFD Sender: No OFD packet to send [18:31:23]OFD Sender: No OFD packet to send [18:31:28]OFD Sender: No OFD packet to send [18:31:33]OFD Sender: No OFD packet to send [18:31:38]OFD Sender: No OFD packet to send [18:31:43]OFD Sender: No OFD packet to send [18:31:48]OFD Sender: No OFD packet to send [18:31:53]OFD Sender: No OFD packet to send [18:31:58]OFD Sender: No OFD packet to send [18:32:03]OFD Sender: No OFD packet to send [18:32:08]OFD Sender: No OFD packet to send [18:32:13]OFD Sender: No OFD packet to send [18:32:15]accept exits with 10 [18:32:15]New connection [18:32:15]New thread 3066977636 created [18:32:15]Thread 3066834276 joined [18:32:15]Waiting for new connection... [18:32:15] Sock 10.Parse request [18:32:15]Sock 10.Check first char [18:32:15]Sock 10.First char is OK [18:32:15]request: POST /json_proto HTTP/1.0 [18:32:15]Method: POST [18:32:15]URL: /json_proto [18:32:15]Method is POST - this is cgi request [18:32:15]url: /json_proto [18:32:15]query_string will be loaded in cgi processing [18:32:15]execute_cgi json_proto POST (null) [18:32:15]execute_cgi path=json_proto method=POST [18:32:15]POST find Content-Length [18:32:15]Host: 172.17.63.3:8080 [18:32:15]Content-Length: 676 [18:32:15]Content-Type: application/json [18:32:15] [18:32:15]POST finish read [18:32:15]Found Content-Length = 676 [18:32:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99521", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "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" ] } } [18:32:15]execute_script... [18:32: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)99521", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "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" ] } } [18:32:15]POST & json_proto [18:32:15]process_json_proto [18:32:15]json parsed OK: [18:32:15]protocol is kg_v1.0 [18:32:15]action value=close_receipt [18:32:15]process_action close_receipt [18:32:15]cmd_close_receipt [18:32:15]MH_GetDate [18:32:15]Write to MH i2c: F0 00 00 56 7A BF [18:32:15]Write i2c OK [18:32:15]MH_I2C_Read... [18:32:15]Read from MH i2c: F0 [18:32:15]MH_I2C_Read... [18:32:15]Read from MH i2c: F0 09 00 [18:32:15]MH_I2C_Read... [18:32:15]Read from MH i2c: F0 09 00 56 7A 00 36 87 1E 67 50 D1 6C 64 FB [18:32:15]GetLastDocTimeStamp 1730053848 [18:32:15]current date 1730053942 [18:32:15]FM_GetShiftState [18:32:15]SAM_PROTO_GetShiftState [18:32:15]wFMCommunicate request_size=4 [18:32:15]MH_SAM_APDU [18:32:15]CAPDU: 80 13 01 00 [18:32:15]Write to MH i2c: E2 08 00 57 7A 80 13 01 00 00 00 00 00 4E [18:32:15]Write i2c OK [18:32:15]MH_I2C_Read... [18:32:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:32:15]Read from MH i2c: E2 [18:32:15]MH_I2C_Read... [18:32:15]Read from MH i2c: E2 0E 00 [18:32:15]MH_I2C_Read... [18:32:15]Read from MH i2c: E2 0E 00 57 7A 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 1B [18:32:15]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [18:32:15]wFMCommunicate OK [18:32:15]SAM_PROTO_GetShiftState done [18:32:15]FM_GetShiftState done [18:32:15]opened in 1729989044 [18:32:15]opened+sec_in_day 1730075444 [18:32:15]quantity*price = 60009 [18:32:15]sum+1 = 60010 [18:32:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 258 27.10.2024 18:32 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156707 ФПД: 216396927487146 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T183222&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156707&fm=216396927487146&tin=02508201610067®Number=0000000000091693&sum=60000 [18:32:17]StoreToDocumentArchive [18:32:17]shift 537 fd 156707 [18:32:17]save to /storage/0537/doc_00156707 [18:32:17]save last doc name /storage/0537/doc_00156707 to /storage/kkm_last_doc_name [18:32:17]save OK [18:32:17]Clear old archive folders... [18:32:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:32:17]tlvbuf is 0189CFD0 [18:32:17]SAM_PROTO_ClearQueue [18:32:17]wFMCommunicate request_size=4 [18:32:17]MH_SAM_APDU [18:32:17]CAPDU: 80 09 00 00 [18:32:17]Write to MH i2c: E2 08 00 64 7A 80 09 00 00 00 00 00 00 50 [18:32:17]Write i2c OK [18:32:17]MH_I2C_Read... [18:32:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:32:17]Read from MH i2c: E2 [18:32:17]MH_I2C_Read... [18:32:17]Read from MH i2c: E2 03 00 [18:32:17]MH_I2C_Read... [18:32:17]Read from MH i2c: E2 03 00 64 7A 00 90 00 52 [18:32:17]RAPDU: 90 00 [18:32:17]wFMCommunicate OK [18:32:17]SAM_PROTO_ClearQueue done [18:32:17]KKMCreateOFDPacket [18:32:17]OFDProtocolAddRootSTLVToBuf [18:32:17]FM_MakeSignedData [18:32:17]FM_MakeSignedData [18:32:17]SAM_PROTO_SignData [18:32:17]wFMCommunicate request_size=4 [18:32:17]MH_SAM_APDU [18:32:17]CAPDU: 80 0D 01 02 [18:32:17]Write to MH i2c: E2 08 00 65 7A 80 0D 01 02 00 00 00 00 58 [18:32:17]Write i2c OK [18:32:17]MH_I2C_Read... [18:32:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:32:17]Read from MH i2c: E2 [18:32:17]MH_I2C_Read... [18:32:17]Read from MH i2c: E2 03 00 [18:32:17]MH_I2C_Read... [18:32:17]Read from MH i2c: E2 03 00 65 7A 00 90 00 53 [18:32:17]RAPDU: 90 00 [18:32:17]wFMCommunicate OK [18:32:17]wFMCommunicate request_size=255 [18:32:17]MH_SAM_APDU [18:32: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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 36 87 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 23 64 02 00 35 04 06 00 C4 [18:32:17]Write to MH i2c: E2 02 01 66 7A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 36 87 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 23 64 02 00 35 04 06 00 C4 00 00 76 [18:32:17]Write i2c OK [18:32:17]MH_I2C_Read... [18:32:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:32:17]Read from MH i2c: E2 [18:32:17]MH_I2C_Read... [18:32:17]Read from MH i2c: E2 03 00 [18:32:17]MH_I2C_Read... [18:32:17]Read from MH i2c: E2 03 00 66 7A 00 90 00 54 [18:32:17]RAPDU: 90 00 [18:32:17]wFMCommunicate OK [18:32:17]wFMCommunicate request_size=10 [18:32:17]MH_SAM_APDU [18:32:17]CAPDU: 80 0D 02 02 05 CF D5 FE 4C AA [18:32:17]Write to MH i2c: E2 0D 00 67 7A 80 0D 02 02 05 00 CF D5 FE 4C AA 00 00 FD [18:32:17]Write i2c OK [18:32:17]MH_I2C_Read... [18:32:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:32:17]Read from MH i2c: E2 [18:32:17]MH_I2C_Read... [18:32:17]Read from MH i2c: E2 03 00 [18:32:17]MH_I2C_Read... [18:32:17]Read from MH i2c: E2 03 00 67 7A 00 90 00 55 [18:32:17]RAPDU: 90 00 [18:32:17]wFMCommunicate OK [18:32:17]wFMCommunicate request_size=4 [18:32:17]MH_SAM_APDU [18:32:17]CAPDU: 80 0D 03 02 [18:32:17]Write to MH i2c: E2 08 00 68 7A 80 0D 03 02 00 00 00 00 5D [18:32:17]Write i2c OK [18:32:17]MH_I2C_Read... [18:32:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:32:17]Read from MH i2c: E2 [18:32:17]MH_I2C_Read... [18:32:17]Read from MH i2c: E2 0B 00 [18:32:17]MH_I2C_Read... [18:32:17]Read from MH i2c: E2 0B 00 68 7A 00 23 B6 9F 42 91 A2 66 FC 90 00 AD [18:32:17]RAPDU: 23 B6 9F 42 91 A2 66 FC 90 00 [18:32:17]wFMCommunicate OK [18:32:17]SAM_PROTO_SignData done [18:32:17]FM_MakeSignedData done [18:32:17]CreateOFDProtocolMessage [18:32:17]wFMCommunicate request_size=4 [18:32:17]MH_SAM_APDU [18:32:17]CAPDU: 80 11 00 00 [18:32:17]Write to MH i2c: E2 08 00 69 7A 80 11 00 00 00 00 00 00 5D [18:32:17]Write i2c OK [18:32:17]MH_I2C_Read... [18:32:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:32:17]Read from MH i2c: E2 [18:32:17]MH_I2C_Read... [18:32:17]Read from MH i2c: E2 17 00 [18:32:17]MH_I2C_Read... [18:32:17]Read from MH i2c: E2 17 00 69 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 B2 [18:32:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:32:17]wFMCommunicate OK [18:32:17]CreateOFDProtocolMessage done [18:32:17]OFDSenderStorePacket 156707 [18:32:17]StoreOFDPacket docnum=156707 [18:32:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 69 73 07 01 89 83 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 36 87 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 23 64 02 00 35 04 06 00 C4 CF D5 FE 4C AA 23 B6 9F 42 91 A2 66 FC [18:32:17]CheckFolder [18:32:17]dirname=/storage/ofd_packets [18:32:17]CheckFolder done [18:32:17]ProducePacketName [18:32:17]name=ofd_packets/00156707 [18:32:17]NVStorageSaveData ofd_packets/00156707 [18:32:17]File name is /storage/ofd_packets/00156707 [18:32:17]Write 301 bytes [18:32:17]NVStorageSaveData done [18:32:17]OFDSenderStorePacket done [18:32:17]KKMCreateOFDPacket done [18:32:17]NVStorageSaveData kkm_last_timestamp [18:32:17]File name is /storage/kkm_last_timestamp [18:32:17]Write 4 bytes [18:32:17]NVStorageSaveData done [18:32:17]ExternCall_PrintAddStr [18:32:17]wPrintStart [18:32:17]Write to MH i2c: 01 00 00 6A 7A E4 [18:32:17]Write i2c OK [18:32:17]MH_I2C_Read... [18:32:17]Read from MH i2c: 01 [18:32:17]MH_I2C_Read... [18:32:17]Read from MH i2c: 01 07 00 [18:32:17]MH_I2C_Read... [18:32:17]Read from MH i2c: 01 07 00 6A 7A 00 00 00 00 00 FF 0F F9 [18:32:17]RasterBufferAndPrint [18:32:17]line Счет N : (1)99521 [18:32:17]line ИНН: 02508201610067 [18:32:17]line Контрольно-Кассовый Чек [18:32:17]line ПРОДАЖА [18:32:17]line ТРК (МРК, ГНК) : 31 [18:32:17]line Товар: 2710124130 [18:32:17]line Аи-92-К-5 [18:32:17]line 8.970 * 66.90 [18:32:17]line = 600.09 [18:32:17]line НДС 12% НСП 1% [18:32:17]line > о реализуемом товаре [18:32:17]line ОКРУГЛЕНИЕ: -0.09 [18:32:17]line ИТОГО: 600.00 [18:32:17]line Внесено: 600.00 [18:32:17]line СДАЧА: 0.00 [18:32:17]line НСП 1% : 5.31 [18:32:17]line НДС 12% : 63.73 [18:32:17]line Наличными: 600.00 [18:32:17]line Безнал.: 0.00 [18:32:17]line Место: АЗС № 143 "Партнер Нефть" [18:32:17]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [18:32:17]line СНО: Общий режим [18:32:17]line Чек 258 27.10.2024 18:32 [18:32:17]line Смена: 537 ФФД: 1.0 [18:32:17]line ЗНМ: 0300000096 [18:32:17]line РНМ: 0000000000091693 [18:32:17]line Версия ККМ: 001 [18:32:17]line ФМ: 0000000000871792 [18:32:17]line ФД: 156707 [18:32:17]line ФПД: 216396927487146 [18:32:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T183222&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156707&fm=216396927487146&tin=02508201610067®Number=0000000000091693&sum=60000 [18:32:17]OFD Sender: Processing packet 156707 [packets to send 31, broken 30] [18:32:17]ProducePacketName [18:32:17]name=ofd_packets/00156707 [18:32:17]OFD Sender: To server: pG, [18:32:17]CommunicateWithHost lk.salyk.kg:30040 [18:32:17]ConnectInit lk.salyk.kg [18:32:17]written 0, free lines is 4095 [18:32:18]Connected sock=9 [18:32:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 69 73 07 01 89 83 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 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 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 36 87 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 23 64 02 00 35 04 06 00 C4 CF D5 FE 4C AA 23 B6 9F 42 91 A2 66 FC [18:32:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 75 FF 47 00 F2 58 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 23 64 02 00 F4 03 04 00 A5 2C 1E 67 B6 04 01 00 00 95 38 57 9F E4 D0 D6 33 [18:32:18]CommunicateWithHost err = 0 [18:32:18]CheckOFDResponse [18:32:18]1017 (14) - 77093643461234 [18:32:18]1041 (16) - 0000000000871792 [18:32:18]1040 (4) - 156707 [18:32:18]1012 (4) - 27.10.2024 12:05 [18:32:18]1206 (1) - 0 [18:32:18]OFD Sender: Remove packet 156707 [18:32:18]ProducePacketName [18:32:18]name=ofd_packets/00156707 [18:32:18]NVStorageDeleteData [18:32:18]Write to MH i2c: 01 00 00 95 7A 0F [18:32:18]Write i2c OK [18:32:18]MH_I2C_Read... [18:32:18]Read from MH i2c: 01 [18:32:18]MH_I2C_Read... [18:32:18]Read from MH i2c: 01 07 00 [18:32:18]MH_I2C_Read... [18:32:18]Read from MH i2c: 01 07 00 95 7A 00 00 00 00 00 F3 0C 15 [18:32:18]RasterBufferAndPrint [18:32:18]line [18:32:18]line [18:32:18]line [18:32:18]line [18:32:18]line [18:32:18]written 0, free lines is 3321 [18:32:18]process_action close_receipt done [18:32:18]requested_data is exist [18:32:18]produce_requested_data [18:32:18]requested_item fm.sn is exist - process it [18:32:18]wFMCommunicate request_size=4 [18:32:18]MH_SAM_APDU [18:32:18]CAPDU: 80 11 00 00 [18:32:18]Write to MH i2c: E2 08 00 9C 7A 80 11 00 00 00 00 00 00 90 [18:32:18]Write i2c OK [18:32:18]MH_I2C_Read... [18:32:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:32:18]Read from MH i2c: E2 [18:32:18]MH_I2C_Read... [18:32:18]Read from MH i2c: E2 17 00 [18:32:18]MH_I2C_Read... [18:32:18]Read from MH i2c: E2 17 00 9C 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 E5 [18:32:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:32:18]wFMCommunicate OK [18:32:18]requested_item fd.num is exist - process it [18:32:18]SAM_PROTO_GetFieldsCounters [18:32:18]wFMCommunicate request_size=4 [18:32:18]MH_SAM_APDU [18:32:18]CAPDU: 80 13 00 00 [18:32:18]Write to MH i2c: E2 08 00 9D 7A 80 13 00 00 00 00 00 00 93 [18:32:18]Write i2c OK [18:32:18]MH_I2C_Read... [18:32:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:32:18]Read from MH i2c: E2 [18:32:18]MH_I2C_Read... [18:32:18]Read from MH i2c: E2 62 00 [18:32:18]MH_I2C_Read... [18:32:18]Read from MH i2c: E2 62 00 9D 7A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 23 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 66 [18:32: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 23 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:32:18]wFMCommunicate OK [18:32:18]SAM_PROTO_GetFieldsCounters done [18:32:18]requested_item shift.num is exist - process it [18:32:18]requested_item shift.opened is exist - process it [18:32:18]req_shift_opened [18:32:18]FM_GetShiftState [18:32:18]SAM_PROTO_GetShiftState [18:32:18]wFMCommunicate request_size=4 [18:32:18]MH_SAM_APDU [18:32:18]CAPDU: 80 13 01 00 [18:32:18]Write to MH i2c: E2 08 00 9E 7A 80 13 01 00 00 00 00 00 95 [18:32:18]Write i2c OK [18:32:18]MH_I2C_Read... [18:32:18]Read from MH i2c: E2 [18:32:18]MH_I2C_Read... [18:32:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:32:18]Read from MH i2c: E2 0E 00 [18:32:18]MH_I2C_Read... [18:32:18]Read from MH i2c: E2 0E 00 9E 7A 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 62 [18:32:18]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [18:32:18]wFMCommunicate OK [18:32:18]SAM_PROTO_GetShiftState done [18:32:18]FM_GetShiftState done [18:32:18]req_shift_opened done [18:32:18]requested_item shift.open_date is exist - process it [18:32:18]req_shift_open_date [18:32:18]req_shift_open_date done [18:32:18]produce_requested_data done [18:32:18]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156707,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [18:32:18]process_action_free close_receipt [18:32:18]json_value_free [18:32:18]json_value_free done [18:32:18]process_json_proto returns [18:32:18]Send response to host [18:32:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156707,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [18:32:18]free response buf [18:32:18]execute_script done [18:32:18]execute_script returns [18:32:18]free content buf [18:32:18]Sock 10.Close socket [18:32:18]Sock 10.Thread stoped [18:32:18]OFD Sender: No OFD packet to send [18:32:23]OFD Sender: No OFD packet to send [18:32:28]OFD Sender: No OFD packet to send [18:32:33]OFD Sender: No OFD packet to send [18:32:38]OFD Sender: No OFD packet to send [18:32:43]OFD Sender: No OFD packet to send [18:32:48]OFD Sender: No OFD packet to send [18:32:53]OFD Sender: No OFD packet to send [18:32:58]OFD Sender: No OFD packet to send [18:33:03]OFD Sender: No OFD packet to send [18:33:08]OFD Sender: No OFD packet to send [18:33:13]OFD Sender: No OFD packet to send [18:33:18]OFD Sender: No OFD packet to send [18:33:23]OFD Sender: No OFD packet to send [18:33:28]OFD Sender: No OFD packet to send [18:33:32]accept exits with 8 [18:33:32]New connection [18:33:32]New thread 3066834276 created [18:33:32]Thread 3066977636 joined [18:33:32]Waiting for new connection... [18:33:32] Sock 8.Parse request [18:33:32]Sock 8.Check first char [18:33:32]Sock 8.First char is OK [18:33:32]request: POST /json_proto HTTP/1.0 [18:33:32]Method: POST [18:33:32]URL: /json_proto [18:33:32]Method is POST - this is cgi request [18:33:32]url: /json_proto [18:33:32]query_string will be loaded in cgi processing [18:33:32]execute_cgi json_proto POST (null) [18:33:32]execute_cgi path=json_proto method=POST [18:33:32]POST find Content-Length [18:33:32]Host: 172.17.63.3:8080 [18:33:32]Content-Length: 681 [18:33:32]Content-Type: application/json [18:33:32] [18:33:32]POST finish read [18:33:32]Found Content-Length = 681 [18:33:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99522", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:33:32]execute_script... [18:33: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)99522", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:33:32]POST & json_proto [18:33:32]process_json_proto [18:33:32]json parsed OK: [18:33:32]protocol is kg_v1.0 [18:33:32]action value=close_receipt [18:33:32]process_action close_receipt [18:33:32]cmd_close_receipt [18:33:32]MH_GetDate [18:33:32]Write to MH i2c: F0 00 00 9F 7A 08 [18:33:32]Write i2c OK [18:33:32]MH_I2C_Read... [18:33:32]Read from MH i2c: F0 [18:33:32]MH_I2C_Read... [18:33:32]Read from MH i2c: F0 09 00 [18:33:32]MH_I2C_Read... [18:33:32]Read from MH i2c: F0 09 00 9F 7A 00 83 87 1E 67 50 D1 6C 64 91 [18:33:32]GetLastDocTimeStamp 1730053942 [18:33:32]current date 1730054019 [18:33:32]FM_GetShiftState [18:33:32]SAM_PROTO_GetShiftState [18:33:32]wFMCommunicate request_size=4 [18:33:32]MH_SAM_APDU [18:33:32]CAPDU: 80 13 01 00 [18:33:32]Write to MH i2c: E2 08 00 A0 7A 80 13 01 00 00 00 00 00 97 [18:33:32]Write i2c OK [18:33:32]MH_I2C_Read... [18:33:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:33:32]Read from MH i2c: E2 [18:33:32]MH_I2C_Read... [18:33:32]Read from MH i2c: E2 0E 00 [18:33:32]MH_I2C_Read... [18:33:32]Read from MH i2c: E2 0E 00 A0 7A 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 64 [18:33:32]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [18:33:32]wFMCommunicate OK [18:33:32]SAM_PROTO_GetShiftState done [18:33:32]FM_GetShiftState done [18:33:32]opened in 1729989044 [18:33:32]opened+sec_in_day 1730075444 [18:33:32]quantity*price = 100015 [18:33:32]sum+1 = 100017 [18:33:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 259 27.10.2024 18:33 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156708 ФПД: 242417905498606 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T183339&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156708&fm=242417905498606&tin=02508201610067®Number=0000000000091693&sum=100000 [18:33:33]StoreToDocumentArchive [18:33:33]shift 537 fd 156708 [18:33:33]save to /storage/0537/doc_00156708 [18:33:33]save last doc name /storage/0537/doc_00156708 to /storage/kkm_last_doc_name [18:33:33]save OK [18:33:33]Clear old archive folders... [18:33:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:33:33]tlvbuf is 0182B640 [18:33:33]SAM_PROTO_ClearQueue [18:33:33]wFMCommunicate request_size=4 [18:33:33]MH_SAM_APDU [18:33:33]CAPDU: 80 09 00 00 [18:33:33]Write to MH i2c: E2 08 00 AD 7A 80 09 00 00 00 00 00 00 99 [18:33:33]Write i2c OK [18:33:33]MH_I2C_Read... [18:33:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:33:33]Read from MH i2c: E2 [18:33:33]MH_I2C_Read... [18:33:33]Read from MH i2c: E2 03 00 [18:33:33]MH_I2C_Read... [18:33:33]Read from MH i2c: E2 03 00 AD 7A 00 90 00 9B [18:33:33]RAPDU: 90 00 [18:33:33]wFMCommunicate OK [18:33:33]SAM_PROTO_ClearQueue done [18:33:33]KKMCreateOFDPacket [18:33:33]OFDProtocolAddRootSTLVToBuf [18:33:33]FM_MakeSignedData [18:33:33]FM_MakeSignedData [18:33:33]SAM_PROTO_SignData [18:33:33]wFMCommunicate request_size=4 [18:33:33]MH_SAM_APDU [18:33:33]CAPDU: 80 0D 01 02 [18:33:33]Write to MH i2c: E2 08 00 AE 7A 80 0D 01 02 00 00 00 00 A1 [18:33:33]Write i2c OK [18:33:33]MH_I2C_Read... [18:33:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:33:33]Read from MH i2c: E2 [18:33:33]MH_I2C_Read... [18:33:33]Read from MH i2c: E2 03 00 [18:33:33]MH_I2C_Read... [18:33:33]Read from MH i2c: E2 03 00 AE 7A 00 90 00 9C [18:33:33]RAPDU: 90 00 [18:33:33]wFMCommunicate OK [18:33:33]wFMCommunicate request_size=255 [18:33:33]MH_SAM_APDU [18:33: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 83 87 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 24 64 02 00 35 04 06 00 DC [18:33:33]Write to MH i2c: E2 02 01 AF 7A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 83 87 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 24 64 02 00 35 04 06 00 DC 00 00 43 [18:33:33]Write i2c OK [18:33:33]MH_I2C_Read... [18:33:33]OFD Sender: No OFD packet to send [18:33:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:33:34]Read from MH i2c: E2 [18:33:34]MH_I2C_Read... [18:33:34]Read from MH i2c: E2 03 00 [18:33:34]MH_I2C_Read... [18:33:34]Read from MH i2c: E2 03 00 AF 7A 00 90 00 9D [18:33:34]RAPDU: 90 00 [18:33:34]wFMCommunicate OK [18:33:34]wFMCommunicate request_size=10 [18:33:34]MH_SAM_APDU [18:33:34]CAPDU: 80 0D 02 02 05 7A 51 24 F9 EE [18:33:34]Write to MH i2c: E2 0D 00 B0 7A 80 0D 02 02 05 00 7A 51 24 F9 EE 00 00 84 [18:33:34]Write i2c OK [18:33:34]MH_I2C_Read... [18:33:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:33:34]Read from MH i2c: E2 [18:33:34]MH_I2C_Read... [18:33:34]Read from MH i2c: E2 03 00 [18:33:34]MH_I2C_Read... [18:33:34]Read from MH i2c: E2 03 00 B0 7A 00 90 00 9E [18:33:34]RAPDU: 90 00 [18:33:34]wFMCommunicate OK [18:33:34]wFMCommunicate request_size=4 [18:33:34]MH_SAM_APDU [18:33:34]CAPDU: 80 0D 03 02 [18:33:34]Write to MH i2c: E2 08 00 B1 7A 80 0D 03 02 00 00 00 00 A6 [18:33:34]Write i2c OK [18:33:34]MH_I2C_Read... [18:33:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:33:34]Read from MH i2c: E2 [18:33:34]MH_I2C_Read... [18:33:34]Read from MH i2c: E2 0B 00 [18:33:34]MH_I2C_Read... [18:33:34]Read from MH i2c: E2 0B 00 B1 7A 00 9B B9 08 E9 FC E3 BC 22 90 00 A9 [18:33:34]RAPDU: 9B B9 08 E9 FC E3 BC 22 90 00 [18:33:34]wFMCommunicate OK [18:33:34]SAM_PROTO_SignData done [18:33:34]FM_MakeSignedData done [18:33:34]CreateOFDProtocolMessage [18:33:34]wFMCommunicate request_size=4 [18:33:34]MH_SAM_APDU [18:33:34]CAPDU: 80 11 00 00 [18:33:34]Write to MH i2c: E2 08 00 B2 7A 80 11 00 00 00 00 00 00 A6 [18:33:34]Write i2c OK [18:33:34]MH_I2C_Read... [18:33:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:33:34]Read from MH i2c: E2 [18:33:34]MH_I2C_Read... [18:33:34]Read from MH i2c: E2 17 00 [18:33:34]MH_I2C_Read... [18:33:34]Read from MH i2c: E2 17 00 B2 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 FB [18:33:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:33:34]wFMCommunicate OK [18:33:34]CreateOFDProtocolMessage done [18:33:34]OFDSenderStorePacket 156708 [18:33:34]StoreOFDPacket docnum=156708 [18:33:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 EA 21 07 01 D9 E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 83 87 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 24 64 02 00 35 04 06 00 DC 7A 51 24 F9 EE 9B B9 08 E9 FC E3 BC 22 [18:33:34]CheckFolder [18:33:34]dirname=/storage/ofd_packets [18:33:34]CheckFolder done [18:33:34]ProducePacketName [18:33:34]name=ofd_packets/00156708 [18:33:34]NVStorageSaveData ofd_packets/00156708 [18:33:34]File name is /storage/ofd_packets/00156708 [18:33:34]Write 301 bytes [18:33:34]NVStorageSaveData done [18:33:34]OFDSenderStorePacket done [18:33:34]KKMCreateOFDPacket done [18:33:34]NVStorageSaveData kkm_last_timestamp [18:33:34]File name is /storage/kkm_last_timestamp [18:33:34]Write 4 bytes [18:33:34]NVStorageSaveData done [18:33:34]ExternCall_PrintAddStr [18:33:34]wPrintStart [18:33:34]Write to MH i2c: 01 00 00 B3 7A 2D [18:33:34]Write i2c OK [18:33:34]MH_I2C_Read... [18:33:34]Read from MH i2c: 01 [18:33:34]MH_I2C_Read... [18:33:34]Read from MH i2c: 01 07 00 [18:33:34]MH_I2C_Read... [18:33:34]Read from MH i2c: 01 07 00 B3 7A 00 00 00 00 00 FF 0F 42 [18:33:34]RasterBufferAndPrint [18:33:34]line Счет N : (1)99522 [18:33:34]line ИНН: 02508201610067 [18:33:34]line Контрольно-Кассовый Чек [18:33:34]line ПРОДАЖА [18:33:34]line ТРК (МРК, ГНК) : 31 [18:33:34]line Товар: 2710124130 [18:33:34]line Аи-92-К-5 [18:33:34]line 14.950 * 66.90 [18:33:34]line = 1000.16 [18:33:34]line НДС 12% НСП 1% [18:33:34]line > о реализуемом товаре [18:33:34]line ОКРУГЛЕНИЕ: -0.16 [18:33:34]line ИТОГО: 1000.00 [18:33:34]line Внесено: 1000.00 [18:33:34]line СДАЧА: 0.00 [18:33:34]line НСП 1% : 8.85 [18:33:34]line НДС 12% : 106.21 [18:33:34]line Наличными: 1000.00 [18:33:34]line Безнал.: 0.00 [18:33:34]line Место: АЗС № 143 "Партнер Нефть" [18:33:34]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [18:33:34]line СНО: Общий режим [18:33:34]line Чек 259 27.10.2024 18:33 [18:33:34]line Смена: 537 ФФД: 1.0 [18:33:34]line ЗНМ: 0300000096 [18:33:34]line РНМ: 0000000000091693 [18:33:34]line Версия ККМ: 001 [18:33:34]line ФМ: 0000000000871792 [18:33:34]line ФД: 156708 [18:33:34]line ФПД: 242417905498606 [18:33:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T183339&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156708&fm=242417905498606&tin=02508201610067®Number=0000000000091693&sum=100000 [18:33:34]OFD Sender: Processing packet 156708 [packets to send 31, broken 30] [18:33:34]ProducePacketName [18:33:34]name=ofd_packets/00156708 [18:33:34]OFD Sender: To server: pG, [18:33:34]CommunicateWithHost lk.salyk.kg:30040 [18:33:34]ConnectInit lk.salyk.kg [18:33:34]written 0, free lines is 4095 [18:33:34]Connected sock=10 [18:33:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 EA 21 07 01 D9 E3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 83 87 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 24 64 02 00 35 04 06 00 DC 7A 51 24 F9 EE 9B B9 08 E9 FC E3 BC 22 [18:33:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 74 0B 47 00 44 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 31 37 39 32 10 04 04 00 24 64 02 00 F4 03 04 00 F2 2C 1E 67 B6 04 01 00 00 06 CC 4A A3 BB 6F 19 C1 [18:33:34]CommunicateWithHost err = 0 [18:33:34]CheckOFDResponse [18:33:34]1017 (14) - 77093643461234 [18:33:34]1041 (16) - 0000000000871792 [18:33:34]1040 (4) - 156708 [18:33:34]1012 (4) - 27.10.2024 12:07 [18:33:34]1206 (1) - 0 [18:33:34]OFD Sender: Remove packet 156708 [18:33:34]ProducePacketName [18:33:34]name=ofd_packets/00156708 [18:33:34]NVStorageDeleteData [18:33:35]Write to MH i2c: 01 00 00 DE 7A 58 [18:33:35]Write i2c OK [18:33:35]MH_I2C_Read... [18:33:35]Read from MH i2c: 01 [18:33:35]MH_I2C_Read... [18:33:35]Read from MH i2c: 01 07 00 [18:33:35]MH_I2C_Read... [18:33:35]Read from MH i2c: 01 07 00 DE 7A 00 00 00 00 00 F7 0C 62 [18:33:35]RasterBufferAndPrint [18:33:35]line [18:33:35]line [18:33:35]line [18:33:35]line [18:33:35]line [18:33:35]written 0, free lines is 3326 [18:33:35]process_action close_receipt done [18:33:35]requested_data is exist [18:33:35]produce_requested_data [18:33:35]requested_item fm.sn is exist - process it [18:33:35]wFMCommunicate request_size=4 [18:33:35]MH_SAM_APDU [18:33:35]CAPDU: 80 11 00 00 [18:33:35]Write to MH i2c: E2 08 00 E5 7A 80 11 00 00 00 00 00 00 D9 [18:33:35]Write i2c OK [18:33:35]MH_I2C_Read... [18:33:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:33:35]Read from MH i2c: E2 [18:33:35]MH_I2C_Read... [18:33:35]Read from MH i2c: E2 17 00 [18:33:35]MH_I2C_Read... [18:33:35]Read from MH i2c: E2 17 00 E5 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 2E [18:33:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:33:35]wFMCommunicate OK [18:33:35]requested_item fd.num is exist - process it [18:33:35]SAM_PROTO_GetFieldsCounters [18:33:35]wFMCommunicate request_size=4 [18:33:35]MH_SAM_APDU [18:33:35]CAPDU: 80 13 00 00 [18:33:35]Write to MH i2c: E2 08 00 E6 7A 80 13 00 00 00 00 00 00 DC [18:33:35]Write i2c OK [18:33:35]MH_I2C_Read... [18:33:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:33:35]Read from MH i2c: E2 [18:33:35]MH_I2C_Read... [18:33:35]Read from MH i2c: E2 62 00 [18:33:35]MH_I2C_Read... [18:33:35]Read from MH i2c: E2 62 00 E6 7A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 24 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 03 01 00 00 5E 04 04 00 03 01 00 00 57 04 04 00 04 01 00 00 19 04 04 00 00 00 00 00 90 00 B3 [18:33:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 24 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 03 01 00 00 5E 04 04 00 03 01 00 00 57 04 04 00 04 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:33:35]wFMCommunicate OK [18:33:35]SAM_PROTO_GetFieldsCounters done [18:33:35]requested_item shift.num is exist - process it [18:33:35]requested_item shift.opened is exist - process it [18:33:35]req_shift_opened [18:33:35]FM_GetShiftState [18:33:35]SAM_PROTO_GetShiftState [18:33:35]wFMCommunicate request_size=4 [18:33:35]MH_SAM_APDU [18:33:35]CAPDU: 80 13 01 00 [18:33:35]Write to MH i2c: E2 08 00 E7 7A 80 13 01 00 00 00 00 00 DE [18:33:35]Write i2c OK [18:33:35]MH_I2C_Read... [18:33:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:33:35]Read from MH i2c: E2 [18:33:35]MH_I2C_Read... [18:33:35]Read from MH i2c: E2 0E 00 [18:33:35]MH_I2C_Read... [18:33:35]Read from MH i2c: E2 0E 00 E7 7A 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 AB [18:33:35]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [18:33:35]wFMCommunicate OK [18:33:35]SAM_PROTO_GetShiftState done [18:33:35]FM_GetShiftState done [18:33:35]req_shift_opened done [18:33:35]requested_item shift.open_date is exist - process it [18:33:35]req_shift_open_date [18:33:35]req_shift_open_date done [18:33:35]produce_requested_data done [18:33:35]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156708,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [18:33:35]process_action_free close_receipt [18:33:35]json_value_free [18:33:35]json_value_free done [18:33:35]process_json_proto returns [18:33:35]Send response to host [18:33:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156708,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [18:33:35]free response buf [18:33:35]execute_script done [18:33:35]execute_script returns [18:33:35]free content buf [18:33:35]Sock 8.Close socket [18:33:35]Sock 8.Thread stoped [18:33:35]OFD Sender: No OFD packet to send [18:33:40]OFD Sender: No OFD packet to send [18:33:45]OFD Sender: No OFD packet to send [18:33:50]OFD Sender: No OFD packet to send [18:33:55]OFD Sender: No OFD packet to send [18:34:00]OFD Sender: No OFD packet to send [18:34:05]OFD Sender: No OFD packet to send [18:34:10]OFD Sender: No OFD packet to send [18:34:15]OFD Sender: No OFD packet to send [18:34:20]OFD Sender: No OFD packet to send [18:34:25]OFD Sender: No OFD packet to send [18:34:30]OFD Sender: No OFD packet to send [18:34:35]OFD Sender: No OFD packet to send [18:34:40]OFD Sender: No OFD packet to send [18:34:45]OFD Sender: No OFD packet to send [18:34:50]OFD Sender: No OFD packet to send [18:34:55]OFD Sender: No OFD packet to send [18:35:00]OFD Sender: No OFD packet to send [18:35:05]OFD Sender: No OFD packet to send [18:35:08]accept exits with 9 [18:35:08]New connection [18:35:08]New thread 3066977636 created [18:35:08]Thread 3066834276 joined [18:35:08]Waiting for new connection... [18:35:08] Sock 9.Parse request [18:35:08]Sock 9.Check first char [18:35:08]Sock 9.First char is OK [18:35:08]request: POST /json_proto HTTP/1.0 [18:35:08]Method: POST [18:35:08]URL: /json_proto [18:35:08]Method is POST - this is cgi request [18:35:08]url: /json_proto [18:35:08]query_string will be loaded in cgi processing [18:35:08]execute_cgi json_proto POST (null) [18:35:08]execute_cgi path=json_proto method=POST [18:35:08]POST find Content-Length [18:35:08]Host: 172.17.63.3:8080 [18:35:08]Content-Length: 676 [18:35:08]Content-Type: application/json [18:35:08] [18:35:08]POST finish read [18:35:08]Found Content-Length = 676 [18:35:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99523", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 6.280, "sum" : 420.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 420.00, "total" : 420.00, "payments": [ { "type": 0, "sum" : 420.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:35:08]execute_script... [18:35: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)99523", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 6.280, "sum" : 420.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 420.00, "total" : 420.00, "payments": [ { "type": 0, "sum" : 420.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:35:08]POST & json_proto [18:35:08]process_json_proto [18:35:08]json parsed OK: [18:35:08]protocol is kg_v1.0 [18:35:08]action value=close_receipt [18:35:08]process_action close_receipt [18:35:08]cmd_close_receipt [18:35:08]MH_GetDate [18:35:08]Write to MH i2c: F0 00 00 E8 7A 51 [18:35:08]Write i2c OK [18:35:08]MH_I2C_Read... [18:35:08]Read from MH i2c: F0 [18:35:08]MH_I2C_Read... [18:35:08]Read from MH i2c: F0 09 00 [18:35:08]MH_I2C_Read... [18:35:08]Read from MH i2c: F0 09 00 E8 7A 00 E3 87 1E 67 50 D1 6C 64 3A [18:35:08]GetLastDocTimeStamp 1730054019 [18:35:08]current date 1730054115 [18:35:08]FM_GetShiftState [18:35:08]SAM_PROTO_GetShiftState [18:35:08]wFMCommunicate request_size=4 [18:35:08]MH_SAM_APDU [18:35:08]CAPDU: 80 13 01 00 [18:35:08]Write to MH i2c: E2 08 00 E9 7A 80 13 01 00 00 00 00 00 E0 [18:35:08]Write i2c OK [18:35:08]MH_I2C_Read... [18:35:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:35:08]Read from MH i2c: E2 [18:35:08]MH_I2C_Read... [18:35:08]Read from MH i2c: E2 0E 00 [18:35:08]MH_I2C_Read... [18:35:08]Read from MH i2c: E2 0E 00 E9 7A 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 AD [18:35:08]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [18:35:08]wFMCommunicate OK [18:35:08]SAM_PROTO_GetShiftState done [18:35:08]FM_GetShiftState done [18:35:08]opened in 1729989044 [18:35:08]opened+sec_in_day 1730075444 [18:35:08]quantity*price = 42013 [18:35:08]sum+1 = 42014 [18:35:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 420.00 Внесено: 420.00 СДАЧА: 0.00 НСП 1% : 3.72 НДС 12% : 44.62 Наличными: 420.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 260 27.10.2024 18:35 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156709 ФПД: 62567924863616 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T183515&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156709&fm=62567924863616&tin=02508201610067®Number=0000000000091693&sum=42000 [18:35:09]StoreToDocumentArchive [18:35:09]shift 537 fd 156709 [18:35:09]save to /storage/0537/doc_00156709 [18:35:09]save last doc name /storage/0537/doc_00156709 to /storage/kkm_last_doc_name [18:35:09]save OK [18:35:09]Clear old archive folders... [18:35:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:35:09]tlvbuf is 01843090 [18:35:09]SAM_PROTO_ClearQueue [18:35:09]wFMCommunicate request_size=4 [18:35:09]MH_SAM_APDU [18:35:09]CAPDU: 80 09 00 00 [18:35:09]Write to MH i2c: E2 08 00 F6 7A 80 09 00 00 00 00 00 00 E2 [18:35:09]Write i2c OK [18:35:09]MH_I2C_Read... [18:35:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:35:09]Read from MH i2c: E2 [18:35:09]MH_I2C_Read... [18:35:09]Read from MH i2c: E2 03 00 [18:35:09]MH_I2C_Read... [18:35:09]Read from MH i2c: E2 03 00 F6 7A 00 90 00 E4 [18:35:09]RAPDU: 90 00 [18:35:09]wFMCommunicate OK [18:35:09]SAM_PROTO_ClearQueue done [18:35:09]KKMCreateOFDPacket [18:35:09]OFDProtocolAddRootSTLVToBuf [18:35:09]FM_MakeSignedData [18:35:09]FM_MakeSignedData [18:35:09]SAM_PROTO_SignData [18:35:09]wFMCommunicate request_size=4 [18:35:09]MH_SAM_APDU [18:35:09]CAPDU: 80 0D 01 02 [18:35:09]Write to MH i2c: E2 08 00 F7 7A 80 0D 01 02 00 00 00 00 EA [18:35:09]Write i2c OK [18:35:09]MH_I2C_Read... [18:35:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:35:09]Read from MH i2c: E2 [18:35:09]MH_I2C_Read... [18:35:09]Read from MH i2c: E2 03 00 [18:35:09]MH_I2C_Read... [18:35:09]Read from MH i2c: E2 03 00 F7 7A 00 90 00 E5 [18:35:09]RAPDU: 90 00 [18:35:09]wFMCommunicate OK [18:35:09]wFMCommunicate request_size=255 [18:35:09]MH_SAM_APDU [18:35:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 18 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 1D A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 E3 87 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 25 64 02 00 35 04 06 00 38 [18:35:09]Write to MH i2c: E2 02 01 F8 7A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 18 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 1D A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 E3 87 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 25 64 02 00 35 04 06 00 38 00 00 C4 [18:35:09]Write i2c OK [18:35:09]MH_I2C_Read... [18:35:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:35:10]Read from MH i2c: E2 [18:35:10]MH_I2C_Read... [18:35:10]Read from MH i2c: E2 03 00 [18:35:10]MH_I2C_Read... [18:35:10]Read from MH i2c: E2 03 00 F8 7A 00 90 00 E6 [18:35:10]RAPDU: 90 00 [18:35:10]wFMCommunicate OK [18:35:10]wFMCommunicate request_size=10 [18:35:10]MH_SAM_APDU [18:35:10]CAPDU: 80 0D 02 02 05 E7 BA EF 92 80 [18:35:10]Write to MH i2c: E2 0D 00 F9 7A 80 0D 02 02 05 00 E7 BA EF 92 80 00 00 99 [18:35:10]Write i2c OK [18:35:10]MH_I2C_Read... [18:35:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:35:10]Read from MH i2c: E2 [18:35:10]MH_I2C_Read... [18:35:10]Read from MH i2c: E2 03 00 [18:35:10]MH_I2C_Read... [18:35:10]Read from MH i2c: E2 03 00 F9 7A 00 90 00 E7 [18:35:10]RAPDU: 90 00 [18:35:10]wFMCommunicate OK [18:35:10]wFMCommunicate request_size=4 [18:35:10]MH_SAM_APDU [18:35:10]CAPDU: 80 0D 03 02 [18:35:10]Write to MH i2c: E2 08 00 FA 7A 80 0D 03 02 00 00 00 00 EF [18:35:10]Write i2c OK [18:35:10]MH_I2C_Read... [18:35:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:35:10]Read from MH i2c: E2 [18:35:10]MH_I2C_Read... [18:35:10]Read from MH i2c: E2 0B 00 [18:35:10]MH_I2C_Read... [18:35:10]Read from MH i2c: E2 0B 00 FA 7A 00 42 24 63 55 54 9B FA 8D 90 00 84 [18:35:10]RAPDU: 42 24 63 55 54 9B FA 8D 90 00 [18:35:10]wFMCommunicate OK [18:35:10]SAM_PROTO_SignData done [18:35:10]FM_MakeSignedData done [18:35:10]CreateOFDProtocolMessage [18:35:10]wFMCommunicate request_size=4 [18:35:10]MH_SAM_APDU [18:35:10]CAPDU: 80 11 00 00 [18:35:10]Write to MH i2c: E2 08 00 FB 7A 80 11 00 00 00 00 00 00 EF [18:35:10]Write i2c OK [18:35:10]MH_I2C_Read... [18:35:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:35:10]Read from MH i2c: E2 [18:35:10]MH_I2C_Read... [18:35:10]Read from MH i2c: E2 17 00 [18:35:10]MH_I2C_Read... [18:35:10]Read from MH i2c: E2 17 00 FB 7A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 44 [18:35:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:35:10]wFMCommunicate OK [18:35:10]CreateOFDProtocolMessage done [18:35:10]OFDSenderStorePacket 156709 [18:35:10]StoreOFDPacket docnum=156709 [18:35:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 29 06 07 01 67 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 18 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 1D A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 E3 87 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 25 64 02 00 35 04 06 00 38 E7 BA EF 92 80 42 24 63 55 54 9B FA 8D [18:35:10]CheckFolder [18:35:10]dirname=/storage/ofd_packets [18:35:10]CheckFolder done [18:35:10]ProducePacketName [18:35:10]name=ofd_packets/00156709 [18:35:10]NVStorageSaveData ofd_packets/00156709 [18:35:10]File name is /storage/ofd_packets/00156709 [18:35:10]Write 301 bytes [18:35:10]NVStorageSaveData done [18:35:10]OFDSenderStorePacket done [18:35:10]KKMCreateOFDPacket done [18:35:10]NVStorageSaveData kkm_last_timestamp [18:35:10]File name is /storage/kkm_last_timestamp [18:35:10]Write 4 bytes [18:35:10]NVStorageSaveData done [18:35:10]ExternCall_PrintAddStr [18:35:10]wPrintStart [18:35:10]Write to MH i2c: 01 00 00 FC 7A 76 [18:35:10]Write i2c OK [18:35:10]MH_I2C_Read... [18:35:10]Read from MH i2c: 01 [18:35:10]MH_I2C_Read... [18:35:10]Read from MH i2c: 01 07 00 [18:35:10]MH_I2C_Read... [18:35:10]Read from MH i2c: 01 07 00 FC 7A 00 00 00 00 00 FF 0F 8B [18:35:10]RasterBufferAndPrint [18:35:10]line Счет N : (1)99523 [18:35:10]line ИНН: 02508201610067 [18:35:10]line Контрольно-Кассовый Чек [18:35:10]line ПРОДАЖА [18:35:10]line ТРК (МРК, ГНК) : 31 [18:35:10]line Товар: 2710124130 [18:35:10]line Аи-92-К-5 [18:35:10]line 6.280 * 66.90 [18:35:10]line = 420.13 [18:35:10]line НДС 12% НСП 1% [18:35:10]line > о реализуемом товаре [18:35:10]line ОКРУГЛЕНИЕ: -0.13 [18:35:10]line ИТОГО: 420.00 [18:35:10]line Внесено: 420.00 [18:35:10]line СДАЧА: 0.00 [18:35:10]line НСП 1% : 3.72 [18:35:10]line НДС 12% : 44.62 [18:35:10]line Наличными: 420.00 [18:35:10]line Безнал.: 0.00 [18:35:10]line Место: АЗС № 143 "Партнер Нефть" [18:35:10]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [18:35:10]line СНО: Общий режим [18:35:10]line Чек 260 27.10.2024 18:35 [18:35:10]line Смена: 537 ФФД: 1.0 [18:35:10]line ЗНМ: 0300000096 [18:35:10]line РНМ: 0000000000091693 [18:35:10]line Версия ККМ: 001 [18:35:10]line ФМ: 0000000000871792 [18:35:10]line ФД: 156709 [18:35:10]line ФПД: 62567924863616 [18:35:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T183515&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156709&fm=62567924863616&tin=02508201610067®Number=0000000000091693&sum=42000 [18:35:10]OFD Sender: Processing packet 156709 [packets to send 31, broken 30] [18:35:10]ProducePacketName [18:35:10]name=ofd_packets/00156709 [18:35:10]OFD Sender: To server: pG, [18:35:10]CommunicateWithHost lk.salyk.kg:30040 [18:35:10]ConnectInit lk.salyk.kg [18:35:10]written 0, free lines is 4095 [18:35:10]Connected sock=10 [18:35:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 29 06 07 01 67 68 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 18 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 1D A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 E3 87 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 25 64 02 00 35 04 06 00 38 E7 BA EF 92 80 42 24 63 55 54 9B FA 8D [18:35:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 83 B7 47 00 3E 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 31 37 39 32 10 04 04 00 25 64 02 00 F4 03 04 00 52 2D 1E 67 B6 04 01 00 00 2C 2D A9 92 F6 C1 D0 DA [18:35:10]CommunicateWithHost err = 0 [18:35:10]CheckOFDResponse [18:35:10]1017 (14) - 77093643461234 [18:35:10]1041 (16) - 0000000000871792 [18:35:10]1040 (4) - 156709 [18:35:10]1012 (4) - 27.10.2024 12:08 [18:35:10]1206 (1) - 0 [18:35:10]OFD Sender: Remove packet 156709 [18:35:10]ProducePacketName [18:35:10]name=ofd_packets/00156709 [18:35:10]NVStorageDeleteData [18:35:11]Write to MH i2c: 01 00 00 27 7B A2 [18:35:11]Write i2c OK [18:35:11]MH_I2C_Read... [18:35:11]Read from MH i2c: 01 [18:35:11]MH_I2C_Read... [18:35:11]Read from MH i2c: 01 07 00 [18:35:11]MH_I2C_Read... [18:35:11]Read from MH i2c: 01 07 00 27 7B 00 00 00 00 00 EC 0C A1 [18:35:11]RasterBufferAndPrint [18:35:11]line [18:35:11]line [18:35:11]line [18:35:11]line [18:35:11]line [18:35:11]written 0, free lines is 3314 [18:35:11]process_action close_receipt done [18:35:11]requested_data is exist [18:35:11]produce_requested_data [18:35:11]requested_item fm.sn is exist - process it [18:35:11]wFMCommunicate request_size=4 [18:35:11]MH_SAM_APDU [18:35:11]CAPDU: 80 11 00 00 [18:35:11]Write to MH i2c: E2 08 00 2E 7B 80 11 00 00 00 00 00 00 23 [18:35:11]Write i2c OK [18:35:11]MH_I2C_Read... [18:35:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:35:11]Read from MH i2c: E2 [18:35:11]MH_I2C_Read... [18:35:11]Read from MH i2c: E2 17 00 [18:35:11]MH_I2C_Read... [18:35:11]Read from MH i2c: E2 17 00 2E 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 78 [18:35:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:35:11]wFMCommunicate OK [18:35:11]requested_item fd.num is exist - process it [18:35:11]SAM_PROTO_GetFieldsCounters [18:35:11]wFMCommunicate request_size=4 [18:35:11]MH_SAM_APDU [18:35:11]CAPDU: 80 13 00 00 [18:35:11]Write to MH i2c: E2 08 00 2F 7B 80 13 00 00 00 00 00 00 26 [18:35:11]Write i2c OK [18:35:11]MH_I2C_Read... [18:35:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:35:11]Read from MH i2c: E2 [18:35:11]MH_I2C_Read... [18:35:11]Read from MH i2c: E2 62 00 [18:35:11]MH_I2C_Read... [18:35:11]Read from MH i2c: E2 62 00 2F 7B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 25 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 01 [18:35:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 25 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:35:11]wFMCommunicate OK [18:35:11]SAM_PROTO_GetFieldsCounters done [18:35:11]requested_item shift.num is exist - process it [18:35:11]requested_item shift.opened is exist - process it [18:35:11]req_shift_opened [18:35:11]FM_GetShiftState [18:35:11]SAM_PROTO_GetShiftState [18:35:11]wFMCommunicate request_size=4 [18:35:11]MH_SAM_APDU [18:35:11]CAPDU: 80 13 01 00 [18:35:11]Write to MH i2c: E2 08 00 30 7B 80 13 01 00 00 00 00 00 28 [18:35:11]Write i2c OK [18:35:11]MH_I2C_Read... [18:35:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:35:11]Read from MH i2c: E2 [18:35:11]MH_I2C_Read... [18:35:11]Read from MH i2c: E2 0E 00 [18:35:11]MH_I2C_Read... [18:35:11]Read from MH i2c: E2 0E 00 30 7B 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 F5 [18:35:11]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [18:35:11]wFMCommunicate OK [18:35:11]SAM_PROTO_GetShiftState done [18:35:11]FM_GetShiftState done [18:35:11]req_shift_opened done [18:35:11]requested_item shift.open_date is exist - process it [18:35:11]req_shift_open_date [18:35:11]req_shift_open_date done [18:35:11]produce_requested_data done [18:35:11]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156709,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [18:35:11]process_action_free close_receipt [18:35:11]json_value_free [18:35:11]json_value_free done [18:35:11]process_json_proto returns [18:35:11]Send response to host [18:35:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156709,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [18:35:11]free response buf [18:35:11]execute_script done [18:35:11]execute_script returns [18:35:11]free content buf [18:35:11]Sock 9.Close socket [18:35:11]Sock 9.Thread stoped [18:35:11]OFD Sender: No OFD packet to send [18:35:16]OFD Sender: No OFD packet to send [18:35:21]OFD Sender: No OFD packet to send [18:35:26]OFD Sender: No OFD packet to send [18:35:31]OFD Sender: No OFD packet to send [18:35:36]OFD Sender: No OFD packet to send [18:35:41]OFD Sender: No OFD packet to send [18:35:46]OFD Sender: No OFD packet to send [18:35:51]OFD Sender: No OFD packet to send [18:35:56]OFD Sender: No OFD packet to send [18:36:01]OFD Sender: No OFD packet to send [18:36:06]OFD Sender: No OFD packet to send [18:36:11]OFD Sender: No OFD packet to send [18:36:16]OFD Sender: No OFD packet to send [18:36:21]OFD Sender: No OFD packet to send [18:36:26]OFD Sender: No OFD packet to send [18:36:31]OFD Sender: No OFD packet to send [18:36:36]OFD Sender: No OFD packet to send [18:36:41]OFD Sender: No OFD packet to send [18:36:46]OFD Sender: No OFD packet to send [18:36:51]OFD Sender: No OFD packet to send [18:36:56]OFD Sender: No OFD packet to send [18:37:01]OFD Sender: No OFD packet to send [18:37:06]OFD Sender: No OFD packet to send [18:37:11]OFD Sender: No OFD packet to send [18:37:16]OFD Sender: No OFD packet to send [18:37:21]OFD Sender: No OFD packet to send [18:37:26]OFD Sender: No OFD packet to send [18:37:31]OFD Sender: No OFD packet to send [18:37:36]OFD Sender: No OFD packet to send [18:37:41]OFD Sender: No OFD packet to send [18:37:46]OFD Sender: No OFD packet to send [18:37:51]OFD Sender: No OFD packet to send [18:37:56]OFD Sender: No OFD packet to send [18:38:01]OFD Sender: No OFD packet to send [18:38:06]OFD Sender: No OFD packet to send [18:38:11]OFD Sender: No OFD packet to send [18:38:16]OFD Sender: No OFD packet to send [18:38:21]OFD Sender: No OFD packet to send [18:38:26]OFD Sender: No OFD packet to send [18:38:31]OFD Sender: No OFD packet to send [18:38:36]OFD Sender: No OFD packet to send [18:38:41]OFD Sender: No OFD packet to send [18:38:46]OFD Sender: No OFD packet to send [18:38:51]OFD Sender: No OFD packet to send [18:38:56]OFD Sender: No OFD packet to send [18:39:01]OFD Sender: No OFD packet to send [18:39:06]OFD Sender: No OFD packet to send [18:39:11]OFD Sender: No OFD packet to send [18:39:16]OFD Sender: No OFD packet to send [18:39:21]OFD Sender: No OFD packet to send [18:39:26]OFD Sender: No OFD packet to send [18:39:31]OFD Sender: No OFD packet to send [18:39:36]OFD Sender: No OFD packet to send [18:39:41]OFD Sender: No OFD packet to send [18:39:46]OFD Sender: No OFD packet to send [18:39:51]OFD Sender: No OFD packet to send [18:39:56]OFD Sender: No OFD packet to send [18:40:01]OFD Sender: No OFD packet to send [18:40:06]OFD Sender: No OFD packet to send [18:40:11]OFD Sender: No OFD packet to send [18:40:16]OFD Sender: No OFD packet to send [18:40:21]OFD Sender: No OFD packet to send [18:40:26]OFD Sender: No OFD packet to send [18:40:31]OFD Sender: No OFD packet to send [18:40:36]OFD Sender: No OFD packet to send [18:40:41]OFD Sender: No OFD packet to send [18:40:46]OFD Sender: No OFD packet to send [18:40:51]OFD Sender: No OFD packet to send [18:40:56]OFD Sender: No OFD packet to send [18:41:01]OFD Sender: No OFD packet to send [18:41:06]OFD Sender: No OFD packet to send [18:41:11]OFD Sender: No OFD packet to send [18:41:16]OFD Sender: No OFD packet to send [18:41:21]OFD Sender: No OFD packet to send [18:41:26]OFD Sender: No OFD packet to send [18:41:31]OFD Sender: No OFD packet to send [18:41:36]OFD Sender: No OFD packet to send [18:41:41]OFD Sender: No OFD packet to send [18:41:46]OFD Sender: No OFD packet to send [18:41:51]OFD Sender: No OFD packet to send [18:41:56]OFD Sender: No OFD packet to send [18:42:01]OFD Sender: No OFD packet to send [18:42:06]OFD Sender: No OFD packet to send [18:42:11]OFD Sender: No OFD packet to send [18:42:16]OFD Sender: No OFD packet to send [18:42:21]OFD Sender: No OFD packet to send [18:42:24]accept exits with 8 [18:42:24]New connection [18:42:24]New thread 3066834276 created [18:42:24]Thread 3066977636 joined [18:42:24]Waiting for new connection... [18:42:24] Sock 8.Parse request [18:42:24]Sock 8.Check first char [18:42:24]Sock 8.First char is OK [18:42:24]request: POST /json_proto HTTP/1.0 [18:42:24]Method: POST [18:42:24]URL: /json_proto [18:42:24]Method is POST - this is cgi request [18:42:24]url: /json_proto [18:42:24]query_string will be loaded in cgi processing [18:42:24]execute_cgi json_proto POST (null) [18:42:24]execute_cgi path=json_proto method=POST [18:42:24]POST find Content-Length [18:42:24]Host: 172.17.63.3:8080 [18:42:24]Content-Length: 677 [18:42:24]Content-Type: application/json [18:42:24] [18:42:24]POST finish read [18:42:24]Found Content-Length = 677 [18:42:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99524", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.170, "sum" : 680.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 680.00, "total" : 680.00, "payments": [ { "type": 0, "sum" : 680.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:42:24]execute_script... [18:42: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)99524", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.170, "sum" : 680.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 680.00, "total" : 680.00, "payments": [ { "type": 0, "sum" : 680.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:42:24]POST & json_proto [18:42:24]process_json_proto [18:42:24]json parsed OK: [18:42:24]protocol is kg_v1.0 [18:42:24]action value=close_receipt [18:42:24]process_action close_receipt [18:42:24]cmd_close_receipt [18:42:24]MH_GetDate [18:42:24]Write to MH i2c: F0 00 00 31 7B 9B [18:42:24]Write i2c OK [18:42:24]MH_I2C_Read... [18:42:24]Read from MH i2c: F0 [18:42:24]MH_I2C_Read... [18:42:24]Read from MH i2c: F0 09 00 [18:42:24]MH_I2C_Read... [18:42:24]Read from MH i2c: F0 09 00 31 7B 00 97 89 1E 67 50 D1 6C 64 3A [18:42:24]GetLastDocTimeStamp 1730054115 [18:42:24]current date 1730054551 [18:42:24]FM_GetShiftState [18:42:24]SAM_PROTO_GetShiftState [18:42:24]wFMCommunicate request_size=4 [18:42:24]MH_SAM_APDU [18:42:24]CAPDU: 80 13 01 00 [18:42:24]Write to MH i2c: E2 08 00 32 7B 80 13 01 00 00 00 00 00 2A [18:42:24]Write i2c OK [18:42:24]MH_I2C_Read... [18:42:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:42:24]Read from MH i2c: E2 [18:42:24]MH_I2C_Read... [18:42:24]Read from MH i2c: E2 0E 00 [18:42:24]MH_I2C_Read... [18:42:24]Read from MH i2c: E2 0E 00 32 7B 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 F7 [18:42:24]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [18:42:24]wFMCommunicate OK [18:42:24]SAM_PROTO_GetShiftState done [18:42:24]FM_GetShiftState done [18:42:24]opened in 1729989044 [18:42:24]opened+sec_in_day 1730075444 [18:42:24]quantity*price = 68037 [18:42:24]sum+1 = 68038 [18:42:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 680.00 Внесено: 680.00 СДАЧА: 0.00 НСП 1% : 6.02 НДС 12% : 72.25 Наличными: 680.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 261 27.10.2024 18:42 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156710 ФПД: 268352366072263 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T184231&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156710&fm=268352366072263&tin=02508201610067®Number=0000000000091693&sum=68000 [18:42:25]StoreToDocumentArchive [18:42:25]shift 537 fd 156710 [18:42:25]save to /storage/0537/doc_00156710 [18:42:25]save last doc name /storage/0537/doc_00156710 to /storage/kkm_last_doc_name [18:42:25]save OK [18:42:25]Clear old archive folders... [18:42:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:42:26]tlvbuf is 01827E30 [18:42:26]SAM_PROTO_ClearQueue [18:42:26]wFMCommunicate request_size=4 [18:42:26]MH_SAM_APDU [18:42:26]CAPDU: 80 09 00 00 [18:42:26]Write to MH i2c: E2 08 00 3F 7B 80 09 00 00 00 00 00 00 2C [18:42:26]Write i2c OK [18:42:26]MH_I2C_Read... [18:42:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:42:26]Read from MH i2c: E2 [18:42:26]MH_I2C_Read... [18:42:26]Read from MH i2c: E2 03 00 [18:42:26]MH_I2C_Read... [18:42:26]Read from MH i2c: E2 03 00 3F 7B 00 90 00 2E [18:42:26]RAPDU: 90 00 [18:42:26]wFMCommunicate OK [18:42:26]SAM_PROTO_ClearQueue done [18:42:26]KKMCreateOFDPacket [18:42:26]OFDProtocolAddRootSTLVToBuf [18:42:26]FM_MakeSignedData [18:42:26]FM_MakeSignedData [18:42:26]SAM_PROTO_SignData [18:42:26]wFMCommunicate request_size=4 [18:42:26]MH_SAM_APDU [18:42:26]CAPDU: 80 0D 01 02 [18:42:26]Write to MH i2c: E2 08 00 40 7B 80 0D 01 02 00 00 00 00 34 [18:42:26]Write i2c OK [18:42:26]MH_I2C_Read... [18:42:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:42:26]Read from MH i2c: E2 [18:42:26]MH_I2C_Read... [18:42:26]Read from MH i2c: E2 03 00 [18:42:26]MH_I2C_Read... [18:42:26]Read from MH i2c: E2 03 00 40 7B 00 90 00 2F [18:42:26]RAPDU: 90 00 [18:42:26]wFMCommunicate OK [18:42:26]wFMCommunicate request_size=255 [18:42:26]MH_SAM_APDU [18:42:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C5 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 97 89 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 26 64 02 00 35 04 06 00 F4 [18:42:26]Write to MH i2c: E2 02 01 41 7B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C5 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 97 89 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 26 64 02 00 35 04 06 00 F4 00 00 7A [18:42:26]Write i2c OK [18:42:26]MH_I2C_Read... [18:42:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:42:26]Read from MH i2c: E2 [18:42:26]MH_I2C_Read... [18:42:26]Read from MH i2c: E2 03 00 [18:42:26]MH_I2C_Read... [18:42:26]Read from MH i2c: E2 03 00 41 7B 00 90 00 30 [18:42:26]RAPDU: 90 00 [18:42:26]wFMCommunicate OK [18:42:26]wFMCommunicate request_size=10 [18:42:26]MH_SAM_APDU [18:42:26]CAPDU: 80 0D 02 02 05 10 A7 74 51 C7 [18:42:26]Write to MH i2c: E2 0D 00 42 7B 80 0D 02 02 05 00 10 A7 74 51 C7 00 00 84 [18:42:26]Write i2c OK [18:42:26]MH_I2C_Read... [18:42:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:42:26]Read from MH i2c: E2 [18:42:26]MH_I2C_Read... [18:42:26]Read from MH i2c: E2 03 00 [18:42:26]MH_I2C_Read... [18:42:26]Read from MH i2c: E2 03 00 42 7B 00 90 00 31 [18:42:26]RAPDU: 90 00 [18:42:26]wFMCommunicate OK [18:42:26]wFMCommunicate request_size=4 [18:42:26]MH_SAM_APDU [18:42:26]CAPDU: 80 0D 03 02 [18:42:26]Write to MH i2c: E2 08 00 43 7B 80 0D 03 02 00 00 00 00 39 [18:42:26]Write i2c OK [18:42:26]MH_I2C_Read... [18:42:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:42:26]Read from MH i2c: E2 [18:42:26]MH_I2C_Read... [18:42:26]Read from MH i2c: E2 0B 00 [18:42:26]MH_I2C_Read... [18:42:26]Read from MH i2c: E2 0B 00 43 7B 00 37 3C D1 FC 58 22 17 24 90 00 2F [18:42:26]RAPDU: 37 3C D1 FC 58 22 17 24 90 00 [18:42:26]wFMCommunicate OK [18:42:26]SAM_PROTO_SignData done [18:42:26]FM_MakeSignedData done [18:42:26]CreateOFDProtocolMessage [18:42:26]wFMCommunicate request_size=4 [18:42:26]MH_SAM_APDU [18:42:26]CAPDU: 80 11 00 00 [18:42:26]Write to MH i2c: E2 08 00 44 7B 80 11 00 00 00 00 00 00 39 [18:42:26]Write i2c OK [18:42:26]MH_I2C_Read... [18:42:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:42:26]Read from MH i2c: E2 [18:42:26]MH_I2C_Read... [18:42:26]Read from MH i2c: E2 17 00 [18:42:26]MH_I2C_Read... [18:42:26]Read from MH i2c: E2 17 00 44 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 8E [18:42:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:42:26]wFMCommunicate OK [18:42:26]CreateOFDProtocolMessage done [18:42:26]OFDSenderStorePacket 156710 [18:42:26]StoreOFDPacket docnum=156710 [18:42:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 0D B2 07 01 AC E6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C5 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 97 89 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 26 64 02 00 35 04 06 00 F4 10 A7 74 51 C7 37 3C D1 FC 58 22 17 24 [18:42:26]CheckFolder [18:42:26]dirname=/storage/ofd_packets [18:42:26]CheckFolder done [18:42:26]ProducePacketName [18:42:26]name=ofd_packets/00156710 [18:42:26]NVStorageSaveData ofd_packets/00156710 [18:42:26]File name is /storage/ofd_packets/00156710 [18:42:26]Write 301 bytes [18:42:26]NVStorageSaveData done [18:42:26]OFDSenderStorePacket done [18:42:26]KKMCreateOFDPacket done [18:42:26]NVStorageSaveData kkm_last_timestamp [18:42:26]File name is /storage/kkm_last_timestamp [18:42:26]Write 4 bytes [18:42:26]NVStorageSaveData done [18:42:26]ExternCall_PrintAddStr [18:42:26]wPrintStart [18:42:26]Write to MH i2c: 01 00 00 45 7B C0 [18:42:26]Write i2c OK [18:42:26]MH_I2C_Read... [18:42:26]Read from MH i2c: 01 [18:42:26]MH_I2C_Read... [18:42:26]Read from MH i2c: 01 07 00 [18:42:26]MH_I2C_Read... [18:42:26]Read from MH i2c: 01 07 00 45 7B 00 00 00 00 00 FF 0F D5 [18:42:26]RasterBufferAndPrint [18:42:26]line Счет N : (1)99524 [18:42:26]line ИНН: 02508201610067 [18:42:26]line Контрольно-Кассовый Чек [18:42:26]line ПРОДАЖА [18:42:26]line ТРК (МРК, ГНК) : 31 [18:42:26]line Товар: 2710124130 [18:42:26]line Аи-92-К-5 [18:42:26]line 10.170 * 66.90 [18:42:26]line = 680.37 [18:42:26]line НДС 12% НСП 1% [18:42:26]line > о реализуемом товаре [18:42:26]line ОКРУГЛЕНИЕ: -0.37 [18:42:26]line ИТОГО: 680.00 [18:42:26]line Внесено: 680.00 [18:42:26]line СДАЧА: 0.00 [18:42:26]line НСП 1% : 6.02 [18:42:26]line НДС 12% : 72.25 [18:42:26]line Наличными: 680.00 [18:42:26]line Безнал.: 0.00 [18:42:26]line Место: АЗС № 143 "Партнер Нефть" [18:42:26]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [18:42:26]line СНО: Общий режим [18:42:26]line Чек 261 27.10.2024 18:42 [18:42:26]line Смена: 537 ФФД: 1.0 [18:42:26]line ЗНМ: 0300000096 [18:42:26]line РНМ: 0000000000091693 [18:42:26]line Версия ККМ: 001 [18:42:26]line ФМ: 0000000000871792 [18:42:26]line ФД: 156710 [18:42:26]line ФПД: 268352366072263 [18:42:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T184231&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156710&fm=268352366072263&tin=02508201610067®Number=0000000000091693&sum=68000 [18:42:26]OFD Sender: Processing packet 156710 [packets to send 31, broken 30] [18:42:26]ProducePacketName [18:42:26]name=ofd_packets/00156710 [18:42:26]OFD Sender: To server: pG, [18:42:26]CommunicateWithHost lk.salyk.kg:30040 [18:42:26]ConnectInit lk.salyk.kg [18:42:26]written 0, free lines is 4095 [18:42:26]Connected sock=10 [18:42:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 0D B2 07 01 AC E6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 BA 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 C5 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 97 89 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 26 64 02 00 35 04 06 00 F4 10 A7 74 51 C7 37 3C D1 FC 58 22 17 24 [18:42:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 3B AA 47 00 18 C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 26 64 02 00 F4 03 04 00 06 2F 1E 67 B6 04 01 00 00 25 F7 02 7B EA CE DD 46 [18:42:27]CommunicateWithHost err = 0 [18:42:27]CheckOFDResponse [18:42:27]1017 (14) - 77093643461234 [18:42:27]1041 (16) - 0000000000871792 [18:42:27]1040 (4) - 156710 [18:42:27]1012 (4) - 27.10.2024 12:16 [18:42:27]1206 (1) - 0 [18:42:27]OFD Sender: Remove packet 156710 [18:42:27]ProducePacketName [18:42:27]name=ofd_packets/00156710 [18:42:27]NVStorageDeleteData [18:42:27]Write to MH i2c: 01 00 00 70 7B EB [18:42:27]Write i2c OK [18:42:27]MH_I2C_Read... [18:42:27]Read from MH i2c: 01 [18:42:27]MH_I2C_Read... [18:42:27]Read from MH i2c: 01 07 00 [18:42:27]MH_I2C_Read... [18:42:27]Read from MH i2c: 01 07 00 70 7B 00 00 00 00 00 E6 0C E4 [18:42:27]RasterBufferAndPrint [18:42:27]line [18:42:27]line [18:42:27]line [18:42:27]line [18:42:27]line [18:42:27]written 0, free lines is 3308 [18:42:27]process_action close_receipt done [18:42:27]requested_data is exist [18:42:27]produce_requested_data [18:42:27]requested_item fm.sn is exist - process it [18:42:27]wFMCommunicate request_size=4 [18:42:27]MH_SAM_APDU [18:42:27]CAPDU: 80 11 00 00 [18:42:27]Write to MH i2c: E2 08 00 77 7B 80 11 00 00 00 00 00 00 6C [18:42:27]Write i2c OK [18:42:27]MH_I2C_Read... [18:42:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:42:27]Read from MH i2c: E2 [18:42:27]MH_I2C_Read... [18:42:27]Read from MH i2c: E2 17 00 [18:42:27]MH_I2C_Read... [18:42:27]Read from MH i2c: E2 17 00 77 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 C1 [18:42:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:42:27]wFMCommunicate OK [18:42:27]requested_item fd.num is exist - process it [18:42:27]SAM_PROTO_GetFieldsCounters [18:42:27]wFMCommunicate request_size=4 [18:42:27]MH_SAM_APDU [18:42:27]CAPDU: 80 13 00 00 [18:42:27]Write to MH i2c: E2 08 00 78 7B 80 13 00 00 00 00 00 00 6F [18:42:27]Write i2c OK [18:42:27]MH_I2C_Read... [18:42:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:42:27]Read from MH i2c: E2 [18:42:27]MH_I2C_Read... [18:42:27]Read from MH i2c: E2 62 00 [18:42:27]MH_I2C_Read... [18:42:27]Read from MH i2c: E2 62 00 78 7B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 26 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 05 01 00 00 5E 04 04 00 05 01 00 00 57 04 04 00 06 01 00 00 19 04 04 00 00 00 00 00 90 00 4E [18:42:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 26 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 05 01 00 00 5E 04 04 00 05 01 00 00 57 04 04 00 06 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:42:27]wFMCommunicate OK [18:42:27]SAM_PROTO_GetFieldsCounters done [18:42:27]requested_item shift.num is exist - process it [18:42:27]requested_item shift.opened is exist - process it [18:42:27]req_shift_opened [18:42:27]FM_GetShiftState [18:42:27]SAM_PROTO_GetShiftState [18:42:27]wFMCommunicate request_size=4 [18:42:27]MH_SAM_APDU [18:42:27]CAPDU: 80 13 01 00 [18:42:27]Write to MH i2c: E2 08 00 79 7B 80 13 01 00 00 00 00 00 71 [18:42:27]Write i2c OK [18:42:27]MH_I2C_Read... [18:42:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:42:27]Read from MH i2c: E2 [18:42:27]MH_I2C_Read... [18:42:27]Read from MH i2c: E2 0E 00 [18:42:27]MH_I2C_Read... [18:42:27]Read from MH i2c: E2 0E 00 79 7B 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 3E [18:42:27]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [18:42:27]wFMCommunicate OK [18:42:27]SAM_PROTO_GetShiftState done [18:42:27]FM_GetShiftState done [18:42:27]req_shift_opened done [18:42:27]requested_item shift.open_date is exist - process it [18:42:27]req_shift_open_date [18:42:27]req_shift_open_date done [18:42:27]produce_requested_data done [18:42:27]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156710,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [18:42:27]process_action_free close_receipt [18:42:27]json_value_free [18:42:27]json_value_free done [18:42:27]process_json_proto returns [18:42:27]Send response to host [18:42:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156710,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [18:42:27]free response buf [18:42:27]execute_script done [18:42:27]execute_script returns [18:42:27]free content buf [18:42:27]Sock 8.Close socket [18:42:27]Sock 8.Thread stoped [18:42:27]OFD Sender: No OFD packet to send [18:42:32]OFD Sender: No OFD packet to send [18:42:37]OFD Sender: No OFD packet to send [18:42:42]OFD Sender: No OFD packet to send [18:42:47]OFD Sender: No OFD packet to send [18:42:52]OFD Sender: No OFD packet to send [18:42:57]OFD Sender: No OFD packet to send [18:43:02]OFD Sender: No OFD packet to send [18:43:07]OFD Sender: No OFD packet to send [18:43:12]OFD Sender: No OFD packet to send [18:43:17]OFD Sender: No OFD packet to send [18:43:22]OFD Sender: No OFD packet to send [18:43:27]OFD Sender: No OFD packet to send [18:43:32]OFD Sender: No OFD packet to send [18:43:37]OFD Sender: No OFD packet to send [18:43:42]OFD Sender: No OFD packet to send [18:43:47]OFD Sender: No OFD packet to send [18:43:52]OFD Sender: No OFD packet to send [18:43:57]OFD Sender: No OFD packet to send [18:44:02]OFD Sender: No OFD packet to send [18:44:07]OFD Sender: No OFD packet to send [18:44:12]OFD Sender: No OFD packet to send [18:44:17]OFD Sender: No OFD packet to send [18:44:22]OFD Sender: No OFD packet to send [18:44:27]OFD Sender: No OFD packet to send [18:44:32]OFD Sender: No OFD packet to send [18:44:37]OFD Sender: No OFD packet to send [18:44:42]OFD Sender: No OFD packet to send [18:44:47]OFD Sender: No OFD packet to send [18:44:52]OFD Sender: No OFD packet to send [18:44:57]OFD Sender: No OFD packet to send [18:45:02]OFD Sender: No OFD packet to send [18:45:03]accept exits with 9 [18:45:03]New connection [18:45:03]New thread 3066977636 created [18:45:03]Thread 3066834276 joined [18:45:03]Waiting for new connection... [18:45:03] Sock 9.Parse request [18:45:03]Sock 9.Check first char [18:45:03]Sock 9.First char is OK [18:45:03]request: POST /json_proto HTTP/1.0 [18:45:03]Method: POST [18:45:03]URL: /json_proto [18:45:03]Method is POST - this is cgi request [18:45:03]url: /json_proto [18:45:03]query_string will be loaded in cgi processing [18:45:03]execute_cgi json_proto POST (null) [18:45:03]execute_cgi path=json_proto method=POST [18:45:03]POST find Content-Length [18:45:03]Host: 172.17.63.3:8080 [18:45:03]Content-Length: 765 [18:45:03]Content-Type: application/json [18:45:03] [18:45:03]POST finish read [18:45:03]Found Content-Length = 765 [18:45:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99525", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:45:03]execute_script... [18:45: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)99525", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:45:03]POST & json_proto [18:45:03]process_json_proto [18:45:03]json parsed OK: [18:45:03]protocol is kg_v1.0 [18:45:03]action value=close_receipt [18:45:03]process_action close_receipt [18:45:03]cmd_close_receipt [18:45:03]MH_GetDate [18:45:03]Write to MH i2c: F0 00 00 7A 7B E4 [18:45:03]Write i2c OK [18:45:03]MH_I2C_Read... [18:45:03]Read from MH i2c: F0 [18:45:03]MH_I2C_Read... [18:45:03]Read from MH i2c: F0 09 00 [18:45:03]MH_I2C_Read... [18:45:03]Read from MH i2c: F0 09 00 7A 7B 00 36 8A 1E 67 50 D1 6C 64 23 [18:45:03]GetLastDocTimeStamp 1730054551 [18:45:03]current date 1730054710 [18:45:03]FM_GetShiftState [18:45:03]SAM_PROTO_GetShiftState [18:45:03]wFMCommunicate request_size=4 [18:45:03]MH_SAM_APDU [18:45:03]CAPDU: 80 13 01 00 [18:45:03]Write to MH i2c: E2 08 00 7B 7B 80 13 01 00 00 00 00 00 73 [18:45:03]Write i2c OK [18:45:03]MH_I2C_Read... [18:45:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:45:03]Read from MH i2c: E2 [18:45:03]MH_I2C_Read... [18:45:03]Read from MH i2c: E2 0E 00 [18:45:03]MH_I2C_Read... [18:45:03]Read from MH i2c: E2 0E 00 7B 7B 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 40 [18:45:03]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [18:45:03]wFMCommunicate OK [18:45:03]SAM_PROTO_GetShiftState done [18:45:03]FM_GetShiftState done [18:45:03]opened in 1729989044 [18:45:03]opened+sec_in_day 1730075444 [18:45:03]quantity*price = 50041 [18:45:03]sum+1 = 50042 [18:45:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 262 27.10.2024 18:45 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 156711 ФПД: 89889274648518 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T184510&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156711&fm=89889274648518&tin=02508201610067®Number=0000000000091693&sum=50041 [18:45:04]StoreToDocumentArchive [18:45:04]shift 537 fd 156711 [18:45:04]save to /storage/0537/doc_00156711 [18:45:04]save last doc name /storage/0537/doc_00156711 to /storage/kkm_last_doc_name [18:45:04]save OK [18:45:04]Clear old archive folders... [18:45:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:45:04]tlvbuf is 016A3CC0 [18:45:04]SAM_PROTO_ClearQueue [18:45:04]wFMCommunicate request_size=4 [18:45:04]MH_SAM_APDU [18:45:04]CAPDU: 80 09 00 00 [18:45:04]Write to MH i2c: E2 08 00 88 7B 80 09 00 00 00 00 00 00 75 [18:45:04]Write i2c OK [18:45:04]MH_I2C_Read... [18:45:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:45:05]Read from MH i2c: E2 [18:45:05]MH_I2C_Read... [18:45:05]Read from MH i2c: E2 03 00 [18:45:05]MH_I2C_Read... [18:45:05]Read from MH i2c: E2 03 00 88 7B 00 90 00 77 [18:45:05]RAPDU: 90 00 [18:45:05]wFMCommunicate OK [18:45:05]SAM_PROTO_ClearQueue done [18:45:05]KKMCreateOFDPacket [18:45:05]OFDProtocolAddRootSTLVToBuf [18:45:05]FM_MakeSignedData [18:45:05]FM_MakeSignedData [18:45:05]SAM_PROTO_SignData [18:45:05]wFMCommunicate request_size=4 [18:45:05]MH_SAM_APDU [18:45:05]CAPDU: 80 0D 01 02 [18:45:05]Write to MH i2c: E2 08 00 89 7B 80 0D 01 02 00 00 00 00 7D [18:45:05]Write i2c OK [18:45:05]MH_I2C_Read... [18:45:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:45:05]Read from MH i2c: E2 [18:45:05]MH_I2C_Read... [18:45:05]Read from MH i2c: E2 03 00 [18:45:05]MH_I2C_Read... [18:45:05]Read from MH i2c: E2 03 00 89 7B 00 90 00 78 [18:45:05]RAPDU: 90 00 [18:45:05]wFMCommunicate OK [18:45:05]wFMCommunicate request_size=255 [18:45:05]MH_SAM_APDU [18:45: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 36 8A 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 27 64 02 00 35 04 06 00 51 [18:45:05]Write to MH i2c: E2 02 01 8A 7B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 36 8A 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 27 64 02 00 35 04 06 00 51 00 00 A8 [18:45:05]Write i2c OK [18:45:05]MH_I2C_Read... [18:45:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:45:05]Read from MH i2c: E2 [18:45:05]MH_I2C_Read... [18:45:05]Read from MH i2c: E2 03 00 [18:45:05]MH_I2C_Read... [18:45:05]Read from MH i2c: E2 03 00 8A 7B 00 90 00 79 [18:45:05]RAPDU: 90 00 [18:45:05]wFMCommunicate OK [18:45:05]wFMCommunicate request_size=10 [18:45:05]MH_SAM_APDU [18:45:05]CAPDU: 80 0D 02 02 05 C0 FA 48 D7 C6 [18:45:05]Write to MH i2c: E2 0D 00 8B 7B 80 0D 02 02 05 00 C0 FA 48 D7 C6 00 00 29 [18:45:05]Write i2c OK [18:45:05]MH_I2C_Read... [18:45:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:45:05]Read from MH i2c: E2 [18:45:05]MH_I2C_Read... [18:45:05]Read from MH i2c: E2 03 00 [18:45:05]MH_I2C_Read... [18:45:05]Read from MH i2c: E2 03 00 8B 7B 00 90 00 7A [18:45:05]RAPDU: 90 00 [18:45:05]wFMCommunicate OK [18:45:05]wFMCommunicate request_size=4 [18:45:05]MH_SAM_APDU [18:45:05]CAPDU: 80 0D 03 02 [18:45:05]Write to MH i2c: E2 08 00 8C 7B 80 0D 03 02 00 00 00 00 82 [18:45:05]Write i2c OK [18:45:05]MH_I2C_Read... [18:45:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:45:05]Read from MH i2c: E2 [18:45:05]MH_I2C_Read... [18:45:05]Read from MH i2c: E2 0B 00 [18:45:05]MH_I2C_Read... [18:45:05]Read from MH i2c: E2 0B 00 8C 7B 00 97 B3 1E B1 4E 43 D1 7D 90 00 7B [18:45:05]RAPDU: 97 B3 1E B1 4E 43 D1 7D 90 00 [18:45:05]wFMCommunicate OK [18:45:05]SAM_PROTO_SignData done [18:45:05]FM_MakeSignedData done [18:45:05]CreateOFDProtocolMessage [18:45:05]wFMCommunicate request_size=4 [18:45:05]MH_SAM_APDU [18:45:05]CAPDU: 80 11 00 00 [18:45:05]Write to MH i2c: E2 08 00 8D 7B 80 11 00 00 00 00 00 00 82 [18:45:05]Write i2c OK [18:45:05]MH_I2C_Read... [18:45:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:45:05]Read from MH i2c: E2 [18:45:05]MH_I2C_Read... [18:45:05]Read from MH i2c: E2 17 00 [18:45:05]MH_I2C_Read... [18:45:05]Read from MH i2c: E2 17 00 8D 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 D7 [18:45:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:45:05]wFMCommunicate OK [18:45:05]CreateOFDProtocolMessage done [18:45:05]OFDSenderStorePacket 156711 [18:45:05]StoreOFDPacket docnum=156711 [18:45:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 A7 69 07 01 52 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 36 8A 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 27 64 02 00 35 04 06 00 51 C0 FA 48 D7 C6 97 B3 1E B1 4E 43 D1 7D [18:45:05]CheckFolder [18:45:05]dirname=/storage/ofd_packets [18:45:05]CheckFolder done [18:45:05]ProducePacketName [18:45:05]name=ofd_packets/00156711 [18:45:05]NVStorageSaveData ofd_packets/00156711 [18:45:05]File name is /storage/ofd_packets/00156711 [18:45:05]Write 301 bytes [18:45:05]NVStorageSaveData done [18:45:05]OFDSenderStorePacket done [18:45:05]KKMCreateOFDPacket done [18:45:05]NVStorageSaveData kkm_last_timestamp [18:45:05]File name is /storage/kkm_last_timestamp [18:45:05]Write 4 bytes [18:45:05]NVStorageSaveData done [18:45:05]ExternCall_PrintAddStr [18:45:05]wPrintStart [18:45:05]Write to MH i2c: 01 00 00 8E 7B 09 [18:45:05]Write i2c OK [18:45:05]MH_I2C_Read... [18:45:05]Read from MH i2c: 01 [18:45:05]MH_I2C_Read... [18:45:05]Read from MH i2c: 01 07 00 [18:45:05]MH_I2C_Read... [18:45:05]Read from MH i2c: 01 07 00 8E 7B 00 00 00 00 00 FF 0F 1E [18:45:05]RasterBufferAndPrint [18:45:05]line Счет N : (1)99525 [18:45:05]line ИНН: 02508201610067 [18:45:05]line Контрольно-Кассовый Чек [18:45:05]line ПРОДАЖА [18:45:05]line ТРК (МРК, ГНК) : 31 [18:45:05]line Товар: 2710124130 [18:45:05]line Аи-92-К-5 [18:45:05]line 7.480 * 66.90 [18:45:05]line = 500.41 [18:45:05]line НДС 12% НСП 1% [18:45:05]line > о реализуемом товаре [18:45:05]line ИТОГО: 500.41 [18:45:05]line НСП 1% : 4.43 [18:45:05]line НДС 12% : 53.14 [18:45:05]line Наличными: 0.00 [18:45:05]line Безнал.: 500.41 [18:45:05]line Место: АЗС № 143 "Партнер Нефть" [18:45:05]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [18:45:05]line СНО: Общий режим [18:45:05]line Чек 262 27.10.2024 18:45 [18:45:05]line Смена: 537 ФФД: 1.0 [18:45:05]line ЗНМ: 0300000096 [18:45:05]line РНМ: 0000000000091693 [18:45:05]line Версия ККМ: 001 [18:45:05]line Платежная система: Mbank [18:45:05]line ФМ: 0000000000871792 [18:45:05]line ФД: 156711 [18:45:05]line ФПД: 89889274648518 [18:45:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T184510&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156711&fm=89889274648518&tin=02508201610067®Number=0000000000091693&sum=50041 [18:45:05]written 0, free lines is 4095 [18:45:05]OFD Sender: Processing packet 156711 [packets to send 31, broken 30] [18:45:05]ProducePacketName [18:45:05]name=ofd_packets/00156711 [18:45:05]OFD Sender: To server: pG, [18:45:05]CommunicateWithHost lk.salyk.kg:30040 [18:45:05]ConnectInit lk.salyk.kg [18:45:05]Connected sock=11 [18:45:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 A7 69 07 01 52 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 36 8A 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 27 64 02 00 35 04 06 00 51 C0 FA 48 D7 C6 97 B3 1E B1 4E 43 D1 7D [18:45:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 07 14 47 00 61 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 31 37 39 32 10 04 04 00 27 64 02 00 F4 03 04 00 A5 2F 1E 67 B6 04 01 00 00 C5 7C 2D A2 65 AD 26 A5 [18:45:05]CommunicateWithHost err = 0 [18:45:05]CheckOFDResponse [18:45:05]1017 (14) - 77093643461234 [18:45:05]1041 (16) - 0000000000871792 [18:45:05]1040 (4) - 156711 [18:45:05]1012 (4) - 27.10.2024 12:18 [18:45:05]1206 (1) - 0 [18:45:05]OFD Sender: Remove packet 156711 [18:45:05]ProducePacketName [18:45:05]name=ofd_packets/00156711 [18:45:05]NVStorageDeleteData [18:45:05]Write to MH i2c: 01 00 00 B7 7B 32 [18:45:05]Write i2c OK [18:45:05]MH_I2C_Read... [18:45:05]Read from MH i2c: 01 [18:45:05]MH_I2C_Read... [18:45:05]Read from MH i2c: 01 07 00 [18:45:05]MH_I2C_Read... [18:45:05]Read from MH i2c: 01 07 00 B7 7B 00 00 00 00 00 00 0D 46 [18:45:05]RasterBufferAndPrint [18:45:05]line [18:45:05]line [18:45:05]line [18:45:05]line [18:45:05]line [18:45:05]written 0, free lines is 3334 [18:45:05]process_action close_receipt done [18:45:05]requested_data is exist [18:45:05]produce_requested_data [18:45:05]requested_item fm.sn is exist - process it [18:45:05]wFMCommunicate request_size=4 [18:45:05]MH_SAM_APDU [18:45:05]CAPDU: 80 11 00 00 [18:45:05]Write to MH i2c: E2 08 00 BE 7B 80 11 00 00 00 00 00 00 B3 [18:45:05]Write i2c OK [18:45:05]MH_I2C_Read... [18:45:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:45:06]Read from MH i2c: E2 [18:45:06]MH_I2C_Read... [18:45:06]Read from MH i2c: E2 17 00 [18:45:06]MH_I2C_Read... [18:45:06]Read from MH i2c: E2 17 00 BE 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 08 [18:45:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:45:06]wFMCommunicate OK [18:45:06]requested_item fd.num is exist - process it [18:45:06]SAM_PROTO_GetFieldsCounters [18:45:06]wFMCommunicate request_size=4 [18:45:06]MH_SAM_APDU [18:45:06]CAPDU: 80 13 00 00 [18:45:06]Write to MH i2c: E2 08 00 BF 7B 80 13 00 00 00 00 00 00 B6 [18:45:06]Write i2c OK [18:45:06]MH_I2C_Read... [18:45:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:45:06]Read from MH i2c: E2 [18:45:06]MH_I2C_Read... [18:45:06]Read from MH i2c: E2 62 00 [18:45:06]MH_I2C_Read... [18:45:06]Read from MH i2c: E2 62 00 BF 7B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 27 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 06 01 00 00 5E 04 04 00 06 01 00 00 57 04 04 00 07 01 00 00 19 04 04 00 00 00 00 00 90 00 99 [18:45:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 27 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 06 01 00 00 5E 04 04 00 06 01 00 00 57 04 04 00 07 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:45:06]wFMCommunicate OK [18:45:06]SAM_PROTO_GetFieldsCounters done [18:45:06]requested_item shift.num is exist - process it [18:45:06]requested_item shift.opened is exist - process it [18:45:06]req_shift_opened [18:45:06]FM_GetShiftState [18:45:06]SAM_PROTO_GetShiftState [18:45:06]wFMCommunicate request_size=4 [18:45:06]MH_SAM_APDU [18:45:06]CAPDU: 80 13 01 00 [18:45:06]Write to MH i2c: E2 08 00 C0 7B 80 13 01 00 00 00 00 00 B8 [18:45:06]Write i2c OK [18:45:06]MH_I2C_Read... [18:45:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:45:06]Read from MH i2c: E2 [18:45:06]MH_I2C_Read... [18:45:06]Read from MH i2c: E2 0E 00 [18:45:06]MH_I2C_Read... [18:45:06]Read from MH i2c: E2 0E 00 C0 7B 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 85 [18:45:06]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [18:45:06]wFMCommunicate OK [18:45:06]SAM_PROTO_GetShiftState done [18:45:06]FM_GetShiftState done [18:45:06]req_shift_opened done [18:45:06]requested_item shift.open_date is exist - process it [18:45:06]req_shift_open_date [18:45:06]req_shift_open_date done [18:45:06]produce_requested_data done [18:45:06]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156711,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [18:45:06]process_action_free close_receipt [18:45:06]json_value_free [18:45:06]json_value_free done [18:45:06]process_json_proto returns [18:45:06]Send response to host [18:45:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156711,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [18:45:06]free response buf [18:45:06]execute_script done [18:45:06]execute_script returns [18:45:06]free content buf [18:45:06]Sock 9.Close socket [18:45:06]Sock 9.Thread stoped [18:45:06]OFD Sender: No OFD packet to send [18:45:11]OFD Sender: No OFD packet to send [18:45:16]OFD Sender: No OFD packet to send [18:45:21]OFD Sender: No OFD packet to send [18:45:26]OFD Sender: No OFD packet to send [18:45:31]OFD Sender: No OFD packet to send [18:45:36]OFD Sender: No OFD packet to send [18:45:41]OFD Sender: No OFD packet to send [18:45:46]OFD Sender: No OFD packet to send [18:45:51]OFD Sender: No OFD packet to send [18:45:56]OFD Sender: No OFD packet to send [18:46:01]OFD Sender: No OFD packet to send [18:46:06]OFD Sender: No OFD packet to send [18:46:11]OFD Sender: No OFD packet to send [18:46:16]OFD Sender: No OFD packet to send [18:46:21]OFD Sender: No OFD packet to send [18:46:26]OFD Sender: No OFD packet to send [18:46:30]accept exits with 8 [18:46:30]New connection [18:46:30]New thread 3066834276 created [18:46:30]Thread 3066977636 joined [18:46:30]Waiting for new connection... [18:46:30] Sock 8.Parse request [18:46:30]Sock 8.Check first char [18:46:30]Sock 8.First char is OK [18:46:30]request: POST /json_proto HTTP/1.0 [18:46:30]Method: POST [18:46:30]URL: /json_proto [18:46:30]Method is POST - this is cgi request [18:46:30]url: /json_proto [18:46:30]query_string will be loaded in cgi processing [18:46:30]execute_cgi json_proto POST (null) [18:46:30]execute_cgi path=json_proto method=POST [18:46:30]POST find Content-Length [18:46:30]Host: 172.17.63.3:8080 [18:46:30]Content-Length: 676 [18:46:30]Content-Type: application/json [18:46:30] [18:46:30]POST finish read [18:46:30]Found Content-Length = 676 [18:46:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99526", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:46:30]execute_script... [18:46: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)99526", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:46:30]POST & json_proto [18:46:30]process_json_proto [18:46:30]json parsed OK: [18:46:30]protocol is kg_v1.0 [18:46:30]action value=close_receipt [18:46:30]process_action close_receipt [18:46:30]cmd_close_receipt [18:46:30]MH_GetDate [18:46:30]Write to MH i2c: F0 00 00 C1 7B 2B [18:46:30]Write i2c OK [18:46:30]MH_I2C_Read... [18:46:30]Read from MH i2c: F0 [18:46:30]MH_I2C_Read... [18:46:30]Read from MH i2c: F0 09 00 [18:46:30]MH_I2C_Read... [18:46:30]Read from MH i2c: F0 09 00 C1 7B 00 8D 8A 1E 67 50 D1 6C 64 C1 [18:46:30]GetLastDocTimeStamp 1730054710 [18:46:30]current date 1730054797 [18:46:30]FM_GetShiftState [18:46:30]SAM_PROTO_GetShiftState [18:46:30]wFMCommunicate request_size=4 [18:46:30]MH_SAM_APDU [18:46:30]CAPDU: 80 13 01 00 [18:46:30]Write to MH i2c: E2 08 00 C2 7B 80 13 01 00 00 00 00 00 BA [18:46:30]Write i2c OK [18:46:30]MH_I2C_Read... [18:46:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:46:30]Read from MH i2c: E2 [18:46:30]MH_I2C_Read... [18:46:30]Read from MH i2c: E2 0E 00 [18:46:30]MH_I2C_Read... [18:46:30]Read from MH i2c: E2 0E 00 C2 7B 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 87 [18:46:30]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [18:46:30]wFMCommunicate OK [18:46:30]SAM_PROTO_GetShiftState done [18:46:30]FM_GetShiftState done [18:46:30]opened in 1729989044 [18:46:30]opened+sec_in_day 1730075444 [18:46:30]quantity*price = 50041 [18:46:30]sum+1 = 50042 [18:46:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 263 27.10.2024 18:46 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156712 ФПД: 65084067368909 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T184637&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156712&fm=65084067368909&tin=02508201610067®Number=0000000000091693&sum=50000 [18:46:31]StoreToDocumentArchive [18:46:31]shift 537 fd 156712 [18:46:31]save to /storage/0537/doc_00156712 [18:46:31]save last doc name /storage/0537/doc_00156712 to /storage/kkm_last_doc_name [18:46:31]save OK [18:46:31]Clear old archive folders... [18:46:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:46:31]tlvbuf is 01843020 [18:46:31]SAM_PROTO_ClearQueue [18:46:31]wFMCommunicate request_size=4 [18:46:31]MH_SAM_APDU [18:46:31]CAPDU: 80 09 00 00 [18:46:31]Write to MH i2c: E2 08 00 CF 7B 80 09 00 00 00 00 00 00 BC [18:46:31]Write i2c OK [18:46:31]MH_I2C_Read... [18:46:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:46:31]Read from MH i2c: E2 [18:46:31]MH_I2C_Read... [18:46:31]Read from MH i2c: E2 03 00 [18:46:31]MH_I2C_Read... [18:46:31]Read from MH i2c: E2 03 00 CF 7B 00 90 00 BE [18:46:31]RAPDU: 90 00 [18:46:31]wFMCommunicate OK [18:46:31]SAM_PROTO_ClearQueue done [18:46:31]KKMCreateOFDPacket [18:46:31]OFDProtocolAddRootSTLVToBuf [18:46:31]FM_MakeSignedData [18:46:31]FM_MakeSignedData [18:46:31]SAM_PROTO_SignData [18:46:31]wFMCommunicate request_size=4 [18:46:31]MH_SAM_APDU [18:46:31]CAPDU: 80 0D 01 02 [18:46:31]Write to MH i2c: E2 08 00 D0 7B 80 0D 01 02 00 00 00 00 C4 [18:46:31]Write i2c OK [18:46:31]MH_I2C_Read... [18:46:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:46:31]Read from MH i2c: E2 [18:46:31]MH_I2C_Read... [18:46:31]Read from MH i2c: E2 03 00 [18:46:31]MH_I2C_Read... [18:46:31]Read from MH i2c: E2 03 00 D0 7B 00 90 00 BF [18:46:31]RAPDU: 90 00 [18:46:31]wFMCommunicate OK [18:46:31]wFMCommunicate request_size=255 [18:46:31]MH_SAM_APDU [18:46: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 8D 8A 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 28 64 02 00 35 04 06 00 3B [18:46:31]Write to MH i2c: E2 02 01 D1 7B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 8D 8A 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 28 64 02 00 35 04 06 00 3B 00 00 E0 [18:46:31]Write i2c OK [18:46:31]MH_I2C_Read... [18:46:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:46:32]Read from MH i2c: E2 [18:46:32]MH_I2C_Read... [18:46:32]Read from MH i2c: E2 03 00 [18:46:32]MH_I2C_Read... [18:46:32]Read from MH i2c: E2 03 00 D1 7B 00 90 00 C0 [18:46:32]RAPDU: 90 00 [18:46:32]wFMCommunicate OK [18:46:32]wFMCommunicate request_size=10 [18:46:32]MH_SAM_APDU [18:46:32]CAPDU: 80 0D 02 02 05 31 90 B7 4F CD [18:46:32]Write to MH i2c: E2 0D 00 D2 7B 80 0D 02 02 05 00 31 90 B7 4F CD 00 00 65 [18:46:32]Write i2c OK [18:46:32]MH_I2C_Read... [18:46:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:46:32]Read from MH i2c: E2 [18:46:32]MH_I2C_Read... [18:46:32]Read from MH i2c: E2 03 00 [18:46:32]MH_I2C_Read... [18:46:32]Read from MH i2c: E2 03 00 D2 7B 00 90 00 C1 [18:46:32]RAPDU: 90 00 [18:46:32]wFMCommunicate OK [18:46:32]wFMCommunicate request_size=4 [18:46:32]MH_SAM_APDU [18:46:32]CAPDU: 80 0D 03 02 [18:46:32]Write to MH i2c: E2 08 00 D3 7B 80 0D 03 02 00 00 00 00 C9 [18:46:32]Write i2c OK [18:46:32]MH_I2C_Read... [18:46:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:46:32]Read from MH i2c: E2 [18:46:32]MH_I2C_Read... [18:46:32]Read from MH i2c: E2 0B 00 [18:46:32]MH_I2C_Read... [18:46:32]Read from MH i2c: E2 0B 00 D3 7B 00 F4 79 72 E6 CA 5B 6E D1 90 00 F3 [18:46:32]RAPDU: F4 79 72 E6 CA 5B 6E D1 90 00 [18:46:32]wFMCommunicate OK [18:46:32]SAM_PROTO_SignData done [18:46:32]FM_MakeSignedData done [18:46:32]CreateOFDProtocolMessage [18:46:32]wFMCommunicate request_size=4 [18:46:32]MH_SAM_APDU [18:46:32]CAPDU: 80 11 00 00 [18:46:32]Write to MH i2c: E2 08 00 D4 7B 80 11 00 00 00 00 00 00 C9 [18:46:32]Write i2c OK [18:46:32]MH_I2C_Read... [18:46:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:46:32]Read from MH i2c: E2 [18:46:32]MH_I2C_Read... [18:46:32]Read from MH i2c: E2 17 00 [18:46:32]MH_I2C_Read... [18:46:32]Read from MH i2c: E2 17 00 D4 7B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 1E [18:46:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:46:32]wFMCommunicate OK [18:46:32]CreateOFDProtocolMessage done [18:46:32]OFDSenderStorePacket 156712 [18:46:32]StoreOFDPacket docnum=156712 [18:46:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 5F 0D 07 01 6C 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 8D 8A 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 28 64 02 00 35 04 06 00 3B 31 90 B7 4F CD F4 79 72 E6 CA 5B 6E D1 [18:46:32]CheckFolder [18:46:32]dirname=/storage/ofd_packets [18:46:32]CheckFolder done [18:46:32]ProducePacketName [18:46:32]name=ofd_packets/00156712 [18:46:32]NVStorageSaveData ofd_packets/00156712 [18:46:32]File name is /storage/ofd_packets/00156712 [18:46:32]Write 301 bytes [18:46:32]NVStorageSaveData done [18:46:32]OFDSenderStorePacket done [18:46:32]KKMCreateOFDPacket done [18:46:32]NVStorageSaveData kkm_last_timestamp [18:46:32]File name is /storage/kkm_last_timestamp [18:46:32]Write 4 bytes [18:46:32]NVStorageSaveData done [18:46:32]ExternCall_PrintAddStr [18:46:32]wPrintStart [18:46:32]Write to MH i2c: 01 00 00 D5 7B 50 [18:46:32]Write i2c OK [18:46:32]MH_I2C_Read... [18:46:32]Read from MH i2c: 01 [18:46:32]MH_I2C_Read... [18:46:32]Read from MH i2c: 01 07 00 [18:46:32]MH_I2C_Read... [18:46:32]Read from MH i2c: 01 07 00 D5 7B 00 00 00 00 00 FF 0F 65 [18:46:32]RasterBufferAndPrint [18:46:32]line Счет N : (1)99526 [18:46:32]line ИНН: 02508201610067 [18:46:32]line Контрольно-Кассовый Чек [18:46:32]line ПРОДАЖА [18:46:32]line ТРК (МРК, ГНК) : 31 [18:46:32]line Товар: 2710124130 [18:46:32]line Аи-92-К-5 [18:46:32]line 7.480 * 66.90 [18:46:32]line = 500.41 [18:46:32]line НДС 12% НСП 1% [18:46:32]line > о реализуемом товаре [18:46:32]line ОКРУГЛЕНИЕ: -0.41 [18:46:32]line ИТОГО: 500.00 [18:46:32]line Внесено: 500.00 [18:46:32]line СДАЧА: 0.00 [18:46:32]line НСП 1% : 4.43 [18:46:32]line НДС 12% : 53.14 [18:46:32]line Наличными: 500.00 [18:46:32]line Безнал.: 0.00 [18:46:32]line Место: АЗС № 143 "Партнер Нефть" [18:46:32]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [18:46:32]line СНО: Общий режим [18:46:32]line Чек 263 27.10.2024 18:46 [18:46:32]line Смена: 537 ФФД: 1.0 [18:46:32]line ЗНМ: 0300000096 [18:46:32]line РНМ: 0000000000091693 [18:46:32]line Версия ККМ: 001 [18:46:32]line ФМ: 0000000000871792 [18:46:32]line ФД: 156712 [18:46:32]line ФПД: 65084067368909 [18:46:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T184637&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156712&fm=65084067368909&tin=02508201610067®Number=0000000000091693&sum=50000 [18:46:32]OFD Sender: Processing packet 156712 [packets to send 31, broken 30] [18:46:32]ProducePacketName [18:46:32]name=ofd_packets/00156712 [18:46:32]OFD Sender: To server: pG, [18:46:32]CommunicateWithHost lk.salyk.kg:30040 [18:46:32]ConnectInit lk.salyk.kg [18:46:32]written 0, free lines is 4095 [18:46:32]Connected sock=6 [18:46:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 5F 0D 07 01 6C 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 8D 8A 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 28 64 02 00 35 04 06 00 3B 31 90 B7 4F CD F4 79 72 E6 CA 5B 6E D1 [18:46:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 BE 07 47 00 DE B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 28 64 02 00 F4 03 04 00 FC 2F 1E 67 B6 04 01 00 00 45 B3 C9 1A 8B 87 7A 1B [18:46:32]CommunicateWithHost err = 0 [18:46:32]CheckOFDResponse [18:46:32]1017 (14) - 77093643461234 [18:46:32]1041 (16) - 0000000000871792 [18:46:32]1040 (4) - 156712 [18:46:32]1012 (4) - 27.10.2024 12:20 [18:46:32]1206 (1) - 0 [18:46:32]OFD Sender: Remove packet 156712 [18:46:32]ProducePacketName [18:46:32]name=ofd_packets/00156712 [18:46:32]NVStorageDeleteData [18:46:33]Write to MH i2c: 01 00 00 00 7C 7C [18:46:33]Write i2c OK [18:46:33]MH_I2C_Read... [18:46:33]Read from MH i2c: 01 [18:46:33]MH_I2C_Read... [18:46:33]Read from MH i2c: 01 07 00 [18:46:33]MH_I2C_Read... [18:46:33]Read from MH i2c: 01 07 00 00 7C 00 00 00 00 00 E4 0C 73 [18:46:33]RasterBufferAndPrint [18:46:33]line [18:46:33]line [18:46:33]line [18:46:33]line [18:46:33]line [18:46:33]written 0, free lines is 3306 [18:46:33]process_action close_receipt done [18:46:33]requested_data is exist [18:46:33]produce_requested_data [18:46:33]requested_item fm.sn is exist - process it [18:46:33]wFMCommunicate request_size=4 [18:46:33]MH_SAM_APDU [18:46:33]CAPDU: 80 11 00 00 [18:46:33]Write to MH i2c: E2 08 00 07 7C 80 11 00 00 00 00 00 00 FD [18:46:33]Write i2c OK [18:46:33]MH_I2C_Read... [18:46:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:46:33]Read from MH i2c: E2 [18:46:33]MH_I2C_Read... [18:46:33]Read from MH i2c: E2 17 00 [18:46:33]MH_I2C_Read... [18:46:33]Read from MH i2c: E2 17 00 07 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 52 [18:46:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:46:33]wFMCommunicate OK [18:46:33]requested_item fd.num is exist - process it [18:46:33]SAM_PROTO_GetFieldsCounters [18:46:33]wFMCommunicate request_size=4 [18:46:33]MH_SAM_APDU [18:46:33]CAPDU: 80 13 00 00 [18:46:33]Write to MH i2c: E2 08 00 08 7C 80 13 00 00 00 00 00 00 00 [18:46:33]Write i2c OK [18:46:33]MH_I2C_Read... [18:46:33]Read from MH i2c: E2 [18:46:33]MH_I2C_Read... [18:46:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:46:33]Read from MH i2c: E2 62 00 [18:46:33]MH_I2C_Read... [18:46:33]Read from MH i2c: E2 62 00 08 7C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 28 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 E7 [18:46:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 28 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:46:33]wFMCommunicate OK [18:46:33]SAM_PROTO_GetFieldsCounters done [18:46:33]requested_item shift.num is exist - process it [18:46:33]requested_item shift.opened is exist - process it [18:46:33]req_shift_opened [18:46:33]FM_GetShiftState [18:46:33]SAM_PROTO_GetShiftState [18:46:33]wFMCommunicate request_size=4 [18:46:33]MH_SAM_APDU [18:46:33]CAPDU: 80 13 01 00 [18:46:33]Write to MH i2c: E2 08 00 09 7C 80 13 01 00 00 00 00 00 02 [18:46:33]Write i2c OK [18:46:33]MH_I2C_Read... [18:46:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:46:33]Read from MH i2c: E2 [18:46:33]MH_I2C_Read... [18:46:33]Read from MH i2c: E2 0E 00 [18:46:33]MH_I2C_Read... [18:46:33]Read from MH i2c: E2 0E 00 09 7C 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 CF [18:46:33]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [18:46:33]wFMCommunicate OK [18:46:33]SAM_PROTO_GetShiftState done [18:46:33]FM_GetShiftState done [18:46:33]req_shift_opened done [18:46:33]requested_item shift.open_date is exist - process it [18:46:33]req_shift_open_date [18:46:33]req_shift_open_date done [18:46:33]produce_requested_data done [18:46:33]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156712,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [18:46:33]process_action_free close_receipt [18:46:33]json_value_free [18:46:33]json_value_free done [18:46:33]process_json_proto returns [18:46:33]Send response to host [18:46:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156712,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [18:46:33]free response buf [18:46:33]execute_script done [18:46:33]execute_script returns [18:46:33]free content buf [18:46:33]Sock 8.Close socket [18:46:33]Sock 8.Thread stoped [18:46:33]OFD Sender: No OFD packet to send [18:46:38]OFD Sender: No OFD packet to send [18:46:43]OFD Sender: No OFD packet to send [18:46:48]OFD Sender: No OFD packet to send [18:46:53]OFD Sender: No OFD packet to send [18:46:58]OFD Sender: No OFD packet to send [18:47:03]OFD Sender: No OFD packet to send [18:47:08]OFD Sender: No OFD packet to send [18:47:13]OFD Sender: No OFD packet to send [18:47:18]OFD Sender: No OFD packet to send [18:47:23]OFD Sender: No OFD packet to send [18:47:28]OFD Sender: No OFD packet to send [18:47:33]OFD Sender: No OFD packet to send [18:47:38]OFD Sender: No OFD packet to send [18:47:43]OFD Sender: No OFD packet to send [18:47:48]OFD Sender: No OFD packet to send [18:47:53]OFD Sender: No OFD packet to send [18:47:58]OFD Sender: No OFD packet to send [18:48:03]OFD Sender: No OFD packet to send [18:48:08]OFD Sender: No OFD packet to send [18:48:13]OFD Sender: No OFD packet to send [18:48:18]OFD Sender: No OFD packet to send [18:48:23]OFD Sender: No OFD packet to send [18:48:28]OFD Sender: No OFD packet to send [18:48:33]OFD Sender: No OFD packet to send [18:48:38]OFD Sender: No OFD packet to send [18:48:43]OFD Sender: No OFD packet to send [18:48:48]OFD Sender: No OFD packet to send [18:48:53]OFD Sender: No OFD packet to send [18:48:58]OFD Sender: No OFD packet to send [18:49:03]OFD Sender: No OFD packet to send [18:49:08]OFD Sender: No OFD packet to send [18:49:13]OFD Sender: No OFD packet to send [18:49:18]OFD Sender: No OFD packet to send [18:49:23]OFD Sender: No OFD packet to send [18:49:28]OFD Sender: No OFD packet to send [18:49:33]OFD Sender: No OFD packet to send [18:49:38]OFD Sender: No OFD packet to send [18:49:43]OFD Sender: No OFD packet to send [18:49:47]accept exits with 10 [18:49:47]New connection [18:49:47]New thread 3066977636 created [18:49:47]Thread 3066834276 joined [18:49:47]Waiting for new connection... [18:49:47] Sock 10.Parse request [18:49:47]Sock 10.Check first char [18:49:47]Sock 10.First char is OK [18:49:47]request: POST /json_proto HTTP/1.0 [18:49:47]Method: POST [18:49:47]URL: /json_proto [18:49:47]Method is POST - this is cgi request [18:49:47]url: /json_proto [18:49:47]query_string will be loaded in cgi processing [18:49:47]execute_cgi json_proto POST (null) [18:49:47]execute_cgi path=json_proto method=POST [18:49:47]POST find Content-Length [18:49:47]Host: 172.17.63.3:8080 [18:49:47]Content-Length: 765 [18:49:47]Content-Type: application/json [18:49:47] [18:49:47]POST finish read [18:49:47]Found Content-Length = 765 [18:49:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99527", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:49:47]execute_script... [18:49:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99527", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:49:47]POST & json_proto [18:49:47]process_json_proto [18:49:47]json parsed OK: [18:49:47]protocol is kg_v1.0 [18:49:47]action value=close_receipt [18:49:47]process_action close_receipt [18:49:47]cmd_close_receipt [18:49:47]MH_GetDate [18:49:47]Write to MH i2c: F0 00 00 0A 7C 75 [18:49:47]Write i2c OK [18:49:47]MH_I2C_Read... [18:49:47]Read from MH i2c: F0 [18:49:47]MH_I2C_Read... [18:49:47]Read from MH i2c: F0 09 00 [18:49:47]MH_I2C_Read... [18:49:47]Read from MH i2c: F0 09 00 0A 7C 00 52 8B 1E 67 50 D1 6C 64 D1 [18:49:47]GetLastDocTimeStamp 1730054797 [18:49:47]current date 1730054994 [18:49:47]FM_GetShiftState [18:49:47]SAM_PROTO_GetShiftState [18:49:47]wFMCommunicate request_size=4 [18:49:47]MH_SAM_APDU [18:49:47]CAPDU: 80 13 01 00 [18:49:47]Write to MH i2c: E2 08 00 0B 7C 80 13 01 00 00 00 00 00 04 [18:49:47]Write i2c OK [18:49:47]MH_I2C_Read... [18:49:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:49:47]Read from MH i2c: E2 [18:49:47]MH_I2C_Read... [18:49:47]Read from MH i2c: E2 0E 00 [18:49:47]MH_I2C_Read... [18:49:47]Read from MH i2c: E2 0E 00 0B 7C 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 D1 [18:49:47]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [18:49:47]wFMCommunicate OK [18:49:47]SAM_PROTO_GetShiftState done [18:49:47]FM_GetShiftState done [18:49:47]opened in 1729989044 [18:49:47]opened+sec_in_day 1730075444 [18:49:47]quantity*price = 40006 [18:49:47]sum+1 = 40007 [18:49:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.06 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 0.00 Безнал.: 400.06 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 264 27.10.2024 18:49 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 156713 ФПД: 154874174969946 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T184954&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156713&fm=154874174969946&tin=02508201610067®Number=0000000000091693&sum=40006 [18:49:48]StoreToDocumentArchive [18:49:48]shift 537 fd 156713 [18:49:48]save to /storage/0537/doc_00156713 [18:49:48]save last doc name /storage/0537/doc_00156713 to /storage/kkm_last_doc_name [18:49:48]save OK [18:49:48]Clear old archive folders... [18:49:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:49:48]tlvbuf is 0167F0D0 [18:49:48]SAM_PROTO_ClearQueue [18:49:48]wFMCommunicate request_size=4 [18:49:48]MH_SAM_APDU [18:49:48]CAPDU: 80 09 00 00 [18:49:48]Write to MH i2c: E2 08 00 18 7C 80 09 00 00 00 00 00 00 06 [18:49:48]Write i2c OK [18:49:48]MH_I2C_Read... [18:49:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:49:48]Read from MH i2c: E2 [18:49:48]MH_I2C_Read... [18:49:48]Read from MH i2c: E2 03 00 [18:49:48]MH_I2C_Read... [18:49:48]Read from MH i2c: E2 03 00 18 7C 00 90 00 08 [18:49:48]RAPDU: 90 00 [18:49:48]wFMCommunicate OK [18:49:48]SAM_PROTO_ClearQueue done [18:49:48]KKMCreateOFDPacket [18:49:48]OFDProtocolAddRootSTLVToBuf [18:49:48]FM_MakeSignedData [18:49:48]FM_MakeSignedData [18:49:48]SAM_PROTO_SignData [18:49:48]wFMCommunicate request_size=4 [18:49:48]MH_SAM_APDU [18:49:48]CAPDU: 80 0D 01 02 [18:49:48]Write to MH i2c: E2 08 00 19 7C 80 0D 01 02 00 00 00 00 0E [18:49:48]Write i2c OK [18:49:48]MH_I2C_Read... [18:49:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:49:48]Read from MH i2c: E2 [18:49:48]MH_I2C_Read... [18:49:48]Read from MH i2c: E2 03 00 [18:49:48]MH_I2C_Read... [18:49:48]Read from MH i2c: E2 03 00 19 7C 00 90 00 09 [18:49:48]RAPDU: 90 00 [18:49:48]wFMCommunicate OK [18:49:48]wFMCommunicate request_size=255 [18:49:48]MH_SAM_APDU [18: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 52 8B 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 29 64 02 00 35 04 06 00 8C [18:49:48]Write to MH i2c: E2 02 01 1A 7C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 52 8B 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 29 64 02 00 35 04 06 00 8C 00 00 1E [18:49:48]Write i2c OK [18:49:48]MH_I2C_Read... [18:49:48]OFD Sender: No OFD packet to send [18:49:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:49:48]Read from MH i2c: E2 [18:49:48]MH_I2C_Read... [18:49:48]Read from MH i2c: E2 03 00 [18:49:48]MH_I2C_Read... [18:49:48]Read from MH i2c: E2 03 00 1A 7C 00 90 00 0A [18:49:48]RAPDU: 90 00 [18:49:48]wFMCommunicate OK [18:49:48]wFMCommunicate request_size=10 [18:49:48]MH_SAM_APDU [18:49:48]CAPDU: 80 0D 02 02 05 DB 74 2F 18 5A [18:49:48]Write to MH i2c: E2 0D 00 1B 7C 80 0D 02 02 05 00 DB 74 2F 18 5A 00 00 0B [18:49:48]Write i2c OK [18:49:48]MH_I2C_Read... [18:49:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:49:48]Read from MH i2c: E2 [18:49:48]MH_I2C_Read... [18:49:48]Read from MH i2c: E2 03 00 [18:49:48]MH_I2C_Read... [18:49:48]Read from MH i2c: E2 03 00 1B 7C 00 90 00 0B [18:49:48]RAPDU: 90 00 [18:49:48]wFMCommunicate OK [18:49:48]wFMCommunicate request_size=4 [18:49:48]MH_SAM_APDU [18:49:48]CAPDU: 80 0D 03 02 [18:49:48]Write to MH i2c: E2 08 00 1C 7C 80 0D 03 02 00 00 00 00 13 [18:49:48]Write i2c OK [18:49:48]MH_I2C_Read... [18:49:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:49:48]Read from MH i2c: E2 [18:49:48]MH_I2C_Read... [18:49:48]Read from MH i2c: E2 0B 00 [18:49:48]MH_I2C_Read... [18:49:48]Read from MH i2c: E2 0B 00 1C 7C 00 B4 E4 30 1C CF DE CF 43 90 00 B7 [18:49:48]RAPDU: B4 E4 30 1C CF DE CF 43 90 00 [18:49:48]wFMCommunicate OK [18:49:48]SAM_PROTO_SignData done [18:49:48]FM_MakeSignedData done [18:49:48]CreateOFDProtocolMessage [18:49:48]wFMCommunicate request_size=4 [18:49:48]MH_SAM_APDU [18:49:48]CAPDU: 80 11 00 00 [18:49:48]Write to MH i2c: E2 08 00 1D 7C 80 11 00 00 00 00 00 00 13 [18:49:48]Write i2c OK [18:49:48]MH_I2C_Read... [18:49:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:49:48]Read from MH i2c: E2 [18:49:48]MH_I2C_Read... [18:49:48]Read from MH i2c: E2 17 00 [18:49:48]MH_I2C_Read... [18:49:48]Read from MH i2c: E2 17 00 1D 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 68 [18:49:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:49:48]wFMCommunicate OK [18:49:48]CreateOFDProtocolMessage done [18:49:48]OFDSenderStorePacket 156713 [18:49:48]StoreOFDPacket docnum=156713 [18:49:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 EA 84 07 01 81 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 52 8B 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 29 64 02 00 35 04 06 00 8C DB 74 2F 18 5A B4 E4 30 1C CF DE CF 43 [18:49:48]CheckFolder [18:49:48]dirname=/storage/ofd_packets [18:49:48]CheckFolder done [18:49:48]ProducePacketName [18:49:48]name=ofd_packets/00156713 [18:49:48]NVStorageSaveData ofd_packets/00156713 [18:49:48]File name is /storage/ofd_packets/00156713 [18:49:48]Write 301 bytes [18:49:48]NVStorageSaveData done [18:49:48]OFDSenderStorePacket done [18:49:48]KKMCreateOFDPacket done [18:49:48]NVStorageSaveData kkm_last_timestamp [18:49:48]File name is /storage/kkm_last_timestamp [18:49:48]Write 4 bytes [18:49:48]NVStorageSaveData done [18:49:48]ExternCall_PrintAddStr [18:49:48]wPrintStart [18:49:48]Write to MH i2c: 01 00 00 1E 7C 9A [18:49:48]Write i2c OK [18:49:48]MH_I2C_Read... [18:49:48]Read from MH i2c: 01 [18:49:48]MH_I2C_Read... [18:49:48]Read from MH i2c: 01 07 00 [18:49:48]MH_I2C_Read... [18:49:48]Read from MH i2c: 01 07 00 1E 7C 00 00 00 00 00 FF 0F AF [18:49:48]RasterBufferAndPrint [18:49:48]line Счет N : (1)99527 [18:49:48]line ИНН: 02508201610067 [18:49:48]line Контрольно-Кассовый Чек [18:49:48]line ПРОДАЖА [18:49:48]line ТРК (МРК, ГНК) : 31 [18:49:48]line Товар: 2710124130 [18:49:48]line Аи-92-К-5 [18:49:48]line 5.980 * 66.90 [18:49:48]line = 400.06 [18:49:48]line НДС 12% НСП 1% [18:49:48]line > о реализуемом товаре [18:49:48]line ИТОГО: 400.06 [18:49:48]line НСП 1% : 3.54 [18:49:48]line НДС 12% : 42.48 [18:49:48]line Наличными: 0.00 [18:49:48]line Безнал.: 400.06 [18:49:48]line Место: АЗС № 143 "Партнер Нефть" [18:49:48]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [18:49:48]line СНО: Общий режим [18:49:48]line Чек 264 27.10.2024 18:49 [18:49:48]line Смена: 537 ФФД: 1.0 [18:49:48]line ЗНМ: 0300000096 [18:49:48]line РНМ: 0000000000091693 [18:49:48]line Версия ККМ: 001 [18:49:48]line Платежная система: Mbank [18:49:48]line ФМ: 0000000000871792 [18:49:48]line ФД: 156713 [18:49:48]line ФПД: 154874174969946 [18:49:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T184954&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156713&fm=154874174969946&tin=02508201610067®Number=0000000000091693&sum=40006 [18:49:48]written 0, free lines is 4095 [18:49:48]OFD Sender: Processing packet 156713 [packets to send 31, broken 30] [18:49:48]ProducePacketName [18:49:48]name=ofd_packets/00156713 [18:49:48]OFD Sender: To server: pG, [18:49:48]CommunicateWithHost lk.salyk.kg:30040 [18:49:48]ConnectInit lk.salyk.kg [18:49:48]Connected sock=11 [18: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 31 37 39 32 0F 01 00 00 EA 84 07 01 81 61 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 01 00 00 F4 03 04 00 52 8B 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 29 64 02 00 35 04 06 00 8C DB 74 2F 18 5A B4 E4 30 1C CF DE CF 43 [18:49:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 1E E0 47 00 3E 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 31 37 39 32 10 04 04 00 29 64 02 00 F4 03 04 00 C0 30 1E 67 B6 04 01 00 00 1B 0A B0 A6 C0 FC 1C 72 [18:49:49]CommunicateWithHost err = 0 [18:49:49]CheckOFDResponse [18:49:49]1017 (14) - 77093643461234 [18:49:49]1041 (16) - 0000000000871792 [18:49:49]1040 (4) - 156713 [18:49:49]1012 (4) - 27.10.2024 12:23 [18:49:49]1206 (1) - 0 [18:49:49]OFD Sender: Remove packet 156713 [18:49:49]ProducePacketName [18:49:49]name=ofd_packets/00156713 [18:49:49]NVStorageDeleteData [18:49:49]Write to MH i2c: 01 00 00 47 7C C3 [18:49:49]Write i2c OK [18:49:49]MH_I2C_Read... [18:49:49]Read from MH i2c: 01 [18:49:49]MH_I2C_Read... [18:49:49]Read from MH i2c: 01 07 00 [18:49:49]MH_I2C_Read... [18:49:49]Read from MH i2c: 01 07 00 47 7C 00 00 00 00 00 09 0D E0 [18:49:49]RasterBufferAndPrint [18:49:49]line [18:49:49]line [18:49:49]line [18:49:49]line [18:49:49]line [18:49:49]written 0, free lines is 3343 [18:49:49]process_action close_receipt done [18:49:49]requested_data is exist [18:49:49]produce_requested_data [18:49:49]requested_item fm.sn is exist - process it [18:49:49]wFMCommunicate request_size=4 [18:49:49]MH_SAM_APDU [18:49:49]CAPDU: 80 11 00 00 [18:49:49]Write to MH i2c: E2 08 00 4E 7C 80 11 00 00 00 00 00 00 44 [18:49:49]Write i2c OK [18:49:49]MH_I2C_Read... [18:49:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:49:49]Read from MH i2c: E2 [18:49:49]MH_I2C_Read... [18:49:49]Read from MH i2c: E2 17 00 [18:49:49]MH_I2C_Read... [18:49:49]Read from MH i2c: E2 17 00 4E 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 99 [18:49:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:49:49]wFMCommunicate OK [18:49:49]requested_item fd.num is exist - process it [18:49:49]SAM_PROTO_GetFieldsCounters [18:49:49]wFMCommunicate request_size=4 [18:49:49]MH_SAM_APDU [18:49:49]CAPDU: 80 13 00 00 [18:49:49]Write to MH i2c: E2 08 00 4F 7C 80 13 00 00 00 00 00 00 47 [18:49:49]Write i2c OK [18:49:49]MH_I2C_Read... [18:49:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:49:49]Read from MH i2c: E2 [18:49:49]MH_I2C_Read... [18:49:49]Read from MH i2c: E2 62 00 [18:49:49]MH_I2C_Read... [18:49:49]Read from MH i2c: E2 62 00 4F 7C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 29 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 08 01 00 00 5E 04 04 00 08 01 00 00 57 04 04 00 09 01 00 00 19 04 04 00 00 00 00 00 90 00 32 [18: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 29 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 08 01 00 00 5E 04 04 00 08 01 00 00 57 04 04 00 09 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:49:49]wFMCommunicate OK [18:49:49]SAM_PROTO_GetFieldsCounters done [18:49:49]requested_item shift.num is exist - process it [18:49:49]requested_item shift.opened is exist - process it [18:49:49]req_shift_opened [18:49:49]FM_GetShiftState [18:49:49]SAM_PROTO_GetShiftState [18:49:49]wFMCommunicate request_size=4 [18:49:49]MH_SAM_APDU [18:49:49]CAPDU: 80 13 01 00 [18:49:49]Write to MH i2c: E2 08 00 50 7C 80 13 01 00 00 00 00 00 49 [18:49:49]Write i2c OK [18:49:49]MH_I2C_Read... [18:49:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:49:49]Read from MH i2c: E2 [18:49:49]MH_I2C_Read... [18:49:49]Read from MH i2c: E2 0E 00 [18:49:49]MH_I2C_Read... [18:49:49]Read from MH i2c: E2 0E 00 50 7C 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 16 [18:49:49]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [18:49:49]wFMCommunicate OK [18:49:49]SAM_PROTO_GetShiftState done [18:49:49]FM_GetShiftState done [18:49:49]req_shift_opened done [18:49:49]requested_item shift.open_date is exist - process it [18:49:49]req_shift_open_date [18:49:49]req_shift_open_date done [18:49:49]produce_requested_data done [18:49:49]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156713,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [18:49:49]process_action_free close_receipt [18:49:49]json_value_free [18:49:49]json_value_free done [18:49:49]process_json_proto returns [18:49:49]Send response to host [18:49:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156713,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [18:49:49]free response buf [18:49:49]execute_script done [18:49:49]execute_script returns [18:49:49]free content buf [18:49:49]Sock 10.Close socket [18:49:49]Sock 10.Thread stoped [18:49:49]OFD Sender: No OFD packet to send [18:49:54]OFD Sender: No OFD packet to send [18:49:59]OFD Sender: No OFD packet to send [18:50:04]OFD Sender: No OFD packet to send [18:50:09]OFD Sender: No OFD packet to send [18:50:14]OFD Sender: No OFD packet to send [18:50:19]OFD Sender: No OFD packet to send [18:50:24]OFD Sender: No OFD packet to send [18:50:29]OFD Sender: No OFD packet to send [18:50:31]accept exits with 9 [18:50:31]New connection [18:50:31]New thread 3066834276 created [18:50:31]Thread 3066977636 joined [18:50:31]Waiting for new connection... [18:50:31] Sock 9.Parse request [18:50:31]Sock 9.Check first char [18:50:31]Sock 9.First char is OK [18:50:31]request: POST /json_proto HTTP/1.0 [18:50:31]Method: POST [18:50:31]URL: /json_proto [18:50:31]Method is POST - this is cgi request [18:50:31]url: /json_proto [18:50:31]query_string will be loaded in cgi processing [18:50:31]execute_cgi json_proto POST (null) [18:50:31]execute_cgi path=json_proto method=POST [18:50:31]POST find Content-Length [18:50:31]Host: 172.17.63.3:8080 [18:50:31]Content-Length: 676 [18:50:31]Content-Type: application/json [18:50:31] [18:50:31]POST finish read [18:50:31]Found Content-Length = 676 [18:50:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99528", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:50:31]execute_script... [18:50:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99528", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:50:31]POST & json_proto [18:50:31]process_json_proto [18:50:31]json parsed OK: [18:50:31]protocol is kg_v1.0 [18:50:31]action value=close_receipt [18:50:31]process_action close_receipt [18:50:31]cmd_close_receipt [18:50:31]MH_GetDate [18:50:31]Write to MH i2c: F0 00 00 51 7C BC [18:50:31]Write i2c OK [18:50:31]MH_I2C_Read... [18:50:31]Read from MH i2c: F0 [18:50:31]MH_I2C_Read... [18:50:31]Read from MH i2c: F0 09 00 [18:50:31]MH_I2C_Read... [18:50:31]Read from MH i2c: F0 09 00 51 7C 00 7E 8B 1E 67 50 D1 6C 64 44 [18:50:31]GetLastDocTimeStamp 1730054994 [18:50:31]current date 1730055038 [18:50:31]FM_GetShiftState [18:50:31]SAM_PROTO_GetShiftState [18:50:31]wFMCommunicate request_size=4 [18:50:31]MH_SAM_APDU [18:50:31]CAPDU: 80 13 01 00 [18:50:31]Write to MH i2c: E2 08 00 52 7C 80 13 01 00 00 00 00 00 4B [18:50:31]Write i2c OK [18:50:31]MH_I2C_Read... [18:50:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:50:31]Read from MH i2c: E2 [18:50:31]MH_I2C_Read... [18:50:31]Read from MH i2c: E2 0E 00 [18:50:31]MH_I2C_Read... [18:50:31]Read from MH i2c: E2 0E 00 52 7C 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 18 [18:50:31]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [18:50:31]wFMCommunicate OK [18:50:31]SAM_PROTO_GetShiftState done [18:50:31]FM_GetShiftState done [18:50:31]opened in 1729989044 [18:50:31]opened+sec_in_day 1730075444 [18:50:31]quantity*price = 35055 [18:50:31]sum+1 = 35057 [18:50:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 265 27.10.2024 18:50 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156714 ФПД: 103623948409930 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T185038&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156714&fm=103623948409930&tin=02508201610067®Number=0000000000091693&sum=35000 [18:50:32]StoreToDocumentArchive [18:50:32]shift 537 fd 156714 [18:50:32]save to /storage/0537/doc_00156714 [18:50:32]save last doc name /storage/0537/doc_00156714 to /storage/kkm_last_doc_name [18:50:32]save OK [18:50:32]Clear old archive folders... [18:50:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:50:32]tlvbuf is 016C7C00 [18:50:32]SAM_PROTO_ClearQueue [18:50:32]wFMCommunicate request_size=4 [18:50:32]MH_SAM_APDU [18:50:32]CAPDU: 80 09 00 00 [18:50:32]Write to MH i2c: E2 08 00 5F 7C 80 09 00 00 00 00 00 00 4D [18:50:32]Write i2c OK [18:50:32]MH_I2C_Read... [18:50:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:50:32]Read from MH i2c: E2 [18:50:32]MH_I2C_Read... [18:50:32]Read from MH i2c: E2 03 00 [18:50:32]MH_I2C_Read... [18:50:32]Read from MH i2c: E2 03 00 5F 7C 00 90 00 4F [18:50:32]RAPDU: 90 00 [18:50:32]wFMCommunicate OK [18:50:32]SAM_PROTO_ClearQueue done [18:50:32]KKMCreateOFDPacket [18:50:32]OFDProtocolAddRootSTLVToBuf [18:50:32]FM_MakeSignedData [18:50:32]FM_MakeSignedData [18:50:32]SAM_PROTO_SignData [18:50:32]wFMCommunicate request_size=4 [18:50:32]MH_SAM_APDU [18:50:32]CAPDU: 80 0D 01 02 [18:50:32]Write to MH i2c: E2 08 00 60 7C 80 0D 01 02 00 00 00 00 55 [18:50:32]Write i2c OK [18:50:32]MH_I2C_Read... [18:50:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:50:32]Read from MH i2c: E2 [18:50:32]MH_I2C_Read... [18:50:32]Read from MH i2c: E2 03 00 [18:50:32]MH_I2C_Read... [18:50:32]Read from MH i2c: E2 03 00 60 7C 00 90 00 50 [18:50:32]RAPDU: 90 00 [18:50:32]wFMCommunicate OK [18:50:32]wFMCommunicate request_size=255 [18:50:32]MH_SAM_APDU [18:50: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 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 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 09 01 00 00 F4 03 04 00 7E 8B 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2A 64 02 00 35 04 06 00 5E [18:50:32]Write to MH i2c: E2 02 01 61 7C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 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 09 01 00 00 F4 03 04 00 7E 8B 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2A 64 02 00 35 04 06 00 5E 00 00 95 [18:50:32]Write i2c OK [18:50:32]MH_I2C_Read... [18:50:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:50:32]Read from MH i2c: E2 [18:50:32]MH_I2C_Read... [18:50:32]Read from MH i2c: E2 03 00 [18:50:32]MH_I2C_Read... [18:50:32]Read from MH i2c: E2 03 00 61 7C 00 90 00 51 [18:50:32]RAPDU: 90 00 [18:50:32]wFMCommunicate OK [18:50:32]wFMCommunicate request_size=10 [18:50:32]MH_SAM_APDU [18:50:32]CAPDU: 80 0D 02 02 05 3E D4 A2 9C 4A [18:50:32]Write to MH i2c: E2 0D 00 62 7C 80 0D 02 02 05 00 3E D4 A2 9C 4A 00 00 FC [18:50:32]Write i2c OK [18:50:32]MH_I2C_Read... [18:50:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:50:32]Read from MH i2c: E2 [18:50:32]MH_I2C_Read... [18:50:32]Read from MH i2c: E2 03 00 [18:50:32]MH_I2C_Read... [18:50:32]Read from MH i2c: E2 03 00 62 7C 00 90 00 52 [18:50:32]RAPDU: 90 00 [18:50:32]wFMCommunicate OK [18:50:32]wFMCommunicate request_size=4 [18:50:32]MH_SAM_APDU [18:50:32]CAPDU: 80 0D 03 02 [18:50:32]Write to MH i2c: E2 08 00 63 7C 80 0D 03 02 00 00 00 00 5A [18:50:32]Write i2c OK [18:50:32]MH_I2C_Read... [18:50:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:50:32]Read from MH i2c: E2 [18:50:32]MH_I2C_Read... [18:50:32]Read from MH i2c: E2 0B 00 [18:50:32]MH_I2C_Read... [18:50:32]Read from MH i2c: E2 0B 00 63 7C 00 56 95 0A E1 5A 5B B3 BD 90 00 56 [18:50:32]RAPDU: 56 95 0A E1 5A 5B B3 BD 90 00 [18:50:32]wFMCommunicate OK [18:50:32]SAM_PROTO_SignData done [18:50:32]FM_MakeSignedData done [18:50:32]CreateOFDProtocolMessage [18:50:32]wFMCommunicate request_size=4 [18:50:32]MH_SAM_APDU [18:50:32]CAPDU: 80 11 00 00 [18:50:32]Write to MH i2c: E2 08 00 64 7C 80 11 00 00 00 00 00 00 5A [18:50:32]Write i2c OK [18:50:32]MH_I2C_Read... [18:50:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:50:32]Read from MH i2c: E2 [18:50:32]MH_I2C_Read... [18:50:32]Read from MH i2c: E2 17 00 [18:50:32]MH_I2C_Read... [18:50:32]Read from MH i2c: E2 17 00 64 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 AF [18:50:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:50:32]wFMCommunicate OK [18:50:32]CreateOFDProtocolMessage done [18:50:32]OFDSenderStorePacket 156714 [18:50:32]StoreOFDPacket docnum=156714 [18:50:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 06 FB 07 01 05 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 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 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 09 01 00 00 F4 03 04 00 7E 8B 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2A 64 02 00 35 04 06 00 5E 3E D4 A2 9C 4A 56 95 0A E1 5A 5B B3 BD [18:50:32]CheckFolder [18:50:32]dirname=/storage/ofd_packets [18:50:32]CheckFolder done [18:50:32]ProducePacketName [18:50:32]name=ofd_packets/00156714 [18:50:32]NVStorageSaveData ofd_packets/00156714 [18:50:32]File name is /storage/ofd_packets/00156714 [18:50:32]Write 301 bytes [18:50:32]NVStorageSaveData done [18:50:33]OFDSenderStorePacket done [18:50:33]KKMCreateOFDPacket done [18:50:33]NVStorageSaveData kkm_last_timestamp [18:50:33]File name is /storage/kkm_last_timestamp [18:50:33]Write 4 bytes [18:50:33]NVStorageSaveData done [18:50:33]ExternCall_PrintAddStr [18:50:33]wPrintStart [18:50:33]Write to MH i2c: 01 00 00 65 7C E1 [18:50:33]Write i2c OK [18:50:33]MH_I2C_Read... [18:50:33]Read from MH i2c: 01 [18:50:33]MH_I2C_Read... [18:50:33]Read from MH i2c: 01 07 00 [18:50:33]MH_I2C_Read... [18:50:33]Read from MH i2c: 01 07 00 65 7C 00 00 00 00 00 FF 0F F6 [18:50:33]RasterBufferAndPrint [18:50:33]line Счет N : (1)99528 [18:50:33]line ИНН: 02508201610067 [18:50:33]line Контрольно-Кассовый Чек [18:50:33]line ПРОДАЖА [18:50:33]line ТРК (МРК, ГНК) : 31 [18:50:33]line Товар: 2710124130 [18:50:33]line Аи-92-К-5 [18:50:33]line 5.240 * 66.90 [18:50:33]line = 350.56 [18:50:33]line НДС 12% НСП 1% [18:50:33]line > о реализуемом товаре [18:50:33]line ОКРУГЛЕНИЕ: -0.56 [18:50:33]line ИТОГО: 350.00 [18:50:33]line Внесено: 350.00 [18:50:33]line СДАЧА: 0.00 [18:50:33]line НСП 1% : 3.10 [18:50:33]line НДС 12% : 37.23 [18:50:33]line Наличными: 350.00 [18:50:33]line Безнал.: 0.00 [18:50:33]line Место: АЗС № 143 "Партнер Нефть" [18:50:33]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [18:50:33]line СНО: Общий режим [18:50:33]line Чек 265 27.10.2024 18:50 [18:50:33]line Смена: 537 ФФД: 1.0 [18:50:33]line ЗНМ: 0300000096 [18:50:33]line РНМ: 0000000000091693 [18:50:33]line Версия ККМ: 001 [18:50:33]line ФМ: 0000000000871792 [18:50:33]line ФД: 156714 [18:50:33]line ФПД: 103623948409930 [18:50:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T185038&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156714&fm=103623948409930&tin=02508201610067®Number=0000000000091693&sum=35000 [18:50:33]written 0, free lines is 4095 [18:50:33]OFD Sender: Processing packet 156714 [packets to send 31, broken 30] [18:50:33]ProducePacketName [18:50:33]name=ofd_packets/00156714 [18:50:33]OFD Sender: To server: pG, [18:50:33]CommunicateWithHost lk.salyk.kg:30040 [18:50:33]ConnectInit lk.salyk.kg [18:50:33]Connected sock=11 [18:50:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 06 FB 07 01 05 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 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 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 09 01 00 00 F4 03 04 00 7E 8B 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2A 64 02 00 35 04 06 00 5E 3E D4 A2 9C 4A 56 95 0A E1 5A 5B B3 BD [18:50:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 E4 E6 47 00 4F 64 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2A 64 02 00 F4 03 04 00 ED 30 1E 67 B6 04 01 00 00 30 A4 2A 72 DC BE EE D4 [18:50:33]CommunicateWithHost err = 0 [18:50:33]CheckOFDResponse [18:50:33]1017 (14) - 77093643461234 [18:50:33]1041 (16) - 0000000000871792 [18:50:33]1040 (4) - 156714 [18:50:33]1012 (4) - 27.10.2024 12:24 [18:50:33]1206 (1) - 0 [18:50:33]OFD Sender: Remove packet 156714 [18:50:33]ProducePacketName [18:50:33]name=ofd_packets/00156714 [18:50:33]NVStorageDeleteData [18:50:33]Write to MH i2c: 01 00 00 90 7C 0C [18:50:33]Write i2c OK [18:50:33]MH_I2C_Read... [18:50:33]Read from MH i2c: 01 [18:50:33]MH_I2C_Read... [18:50:33]Read from MH i2c: 01 07 00 [18:50:33]MH_I2C_Read... [18:50:33]Read from MH i2c: 01 07 00 90 7C 00 00 00 00 00 F6 0C 15 [18:50:33]RasterBufferAndPrint [18:50:33]line [18:50:33]line [18:50:33]line [18:50:33]line [18:50:33]line [18:50:33]written 0, free lines is 3337 [18:50:33]process_action close_receipt done [18:50:33]requested_data is exist [18:50:33]produce_requested_data [18:50:33]requested_item fm.sn is exist - process it [18:50:33]wFMCommunicate request_size=4 [18:50:33]MH_SAM_APDU [18:50:33]CAPDU: 80 11 00 00 [18:50:33]Write to MH i2c: E2 08 00 97 7C 80 11 00 00 00 00 00 00 8D [18:50:33]Write i2c OK [18:50:33]MH_I2C_Read... [18:50:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:50:33]Read from MH i2c: E2 [18:50:33]MH_I2C_Read... [18:50:33]Read from MH i2c: E2 17 00 [18:50:33]MH_I2C_Read... [18:50:33]Read from MH i2c: E2 17 00 97 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 E2 [18:50:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:50:33]wFMCommunicate OK [18:50:33]requested_item fd.num is exist - process it [18:50:33]SAM_PROTO_GetFieldsCounters [18:50:33]wFMCommunicate request_size=4 [18:50:33]MH_SAM_APDU [18:50:33]CAPDU: 80 13 00 00 [18:50:33]Write to MH i2c: E2 08 00 98 7C 80 13 00 00 00 00 00 00 90 [18:50:33]Write i2c OK [18:50:33]MH_I2C_Read... [18:50:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:50:33]Read from MH i2c: E2 [18:50:33]MH_I2C_Read... [18:50:33]Read from MH i2c: E2 62 00 [18:50:33]MH_I2C_Read... [18:50:33]Read from MH i2c: E2 62 00 98 7C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 2A 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 09 01 00 00 5E 04 04 00 09 01 00 00 57 04 04 00 0A 01 00 00 19 04 04 00 00 00 00 00 90 00 7F [18:50:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 2A 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 09 01 00 00 5E 04 04 00 09 01 00 00 57 04 04 00 0A 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:50:33]wFMCommunicate OK [18:50:33]SAM_PROTO_GetFieldsCounters done [18:50:33]requested_item shift.num is exist - process it [18:50:33]requested_item shift.opened is exist - process it [18:50:33]req_shift_opened [18:50:33]FM_GetShiftState [18:50:33]SAM_PROTO_GetShiftState [18:50:33]wFMCommunicate request_size=4 [18:50:33]MH_SAM_APDU [18:50:33]CAPDU: 80 13 01 00 [18:50:33]Write to MH i2c: E2 08 00 99 7C 80 13 01 00 00 00 00 00 92 [18:50:33]Write i2c OK [18:50:33]MH_I2C_Read... [18:50:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:50:33]Read from MH i2c: E2 [18:50:33]MH_I2C_Read... [18:50:33]Read from MH i2c: E2 0E 00 [18:50:33]MH_I2C_Read... [18:50:33]Read from MH i2c: E2 0E 00 99 7C 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 5F [18:50:33]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [18:50:33]wFMCommunicate OK [18:50:33]SAM_PROTO_GetShiftState done [18:50:33]FM_GetShiftState done [18:50:33]req_shift_opened done [18:50:33]requested_item shift.open_date is exist - process it [18:50:33]req_shift_open_date [18:50:33]req_shift_open_date done [18:50:33]produce_requested_data done [18:50:33]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156714,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [18:50:33]process_action_free close_receipt [18:50:33]json_value_free [18:50:33]json_value_free done [18:50:33]process_json_proto returns [18:50:33]Send response to host [18:50:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156714,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [18:50:33]free response buf [18:50:33]execute_script done [18:50:33]execute_script returns [18:50:33]free content buf [18:50:33]Sock 9.Close socket [18:50:33]Sock 9.Thread stoped [18:50:33]OFD Sender: No OFD packet to send [18:50:38]OFD Sender: No OFD packet to send [18:50:43]OFD Sender: No OFD packet to send [18:50:48]OFD Sender: No OFD packet to send [18:50:53]OFD Sender: No OFD packet to send [18:50:58]OFD Sender: No OFD packet to send [18:51:04]OFD Sender: No OFD packet to send [18:51:09]OFD Sender: No OFD packet to send [18:51:12]accept exits with 10 [18:51:12]New connection [18:51:12]New thread 3066977636 created [18:51:12]Thread 3066834276 joined [18:51:12]Waiting for new connection... [18:51:12] Sock 10.Parse request [18:51:12]Sock 10.Check first char [18:51:12]Sock 10.First char is OK [18:51:12]request: POST /json_proto HTTP/1.0 [18:51:12]Method: POST [18:51:12]URL: /json_proto [18:51:12]Method is POST - this is cgi request [18:51:12]url: /json_proto [18:51:12]query_string will be loaded in cgi processing [18:51:12]execute_cgi json_proto POST (null) [18:51:12]execute_cgi path=json_proto method=POST [18:51:12]POST find Content-Length [18:51:12]Host: 172.17.63.3:8080 [18:51:12]Content-Length: 676 [18:51:12]Content-Type: application/json [18:51:12] [18:51:12]POST finish read [18:51:12]Found Content-Length = 676 [18:51:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99529", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "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" ] } } [18:51:12]execute_script... [18:51:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99529", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "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" ] } } [18:51:12]POST & json_proto [18:51:12]process_json_proto [18:51:12]json parsed OK: [18:51:12]protocol is kg_v1.0 [18:51:12]action value=close_receipt [18:51:12]process_action close_receipt [18:51:12]cmd_close_receipt [18:51:12]MH_GetDate [18:51:12]Write to MH i2c: F0 00 00 9A 7C 05 [18:51:12]Write i2c OK [18:51:12]MH_I2C_Read... [18:51:12]Read from MH i2c: F0 [18:51:12]MH_I2C_Read... [18:51:12]Read from MH i2c: F0 09 00 [18:51:12]MH_I2C_Read... [18:51:12]Read from MH i2c: F0 09 00 9A 7C 00 A7 8B 1E 67 50 D1 6C 64 B6 [18:51:12]GetLastDocTimeStamp 1730055038 [18:51:12]current date 1730055079 [18:51:12]FM_GetShiftState [18:51:12]SAM_PROTO_GetShiftState [18:51:12]wFMCommunicate request_size=4 [18:51:12]MH_SAM_APDU [18:51:12]CAPDU: 80 13 01 00 [18:51:12]Write to MH i2c: E2 08 00 9B 7C 80 13 01 00 00 00 00 00 94 [18:51:12]Write i2c OK [18:51:12]MH_I2C_Read... [18:51:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:51:12]Read from MH i2c: E2 [18:51:12]MH_I2C_Read... [18:51:12]Read from MH i2c: E2 0E 00 [18:51:12]MH_I2C_Read... [18:51:12]Read from MH i2c: E2 0E 00 9B 7C 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 61 [18:51:12]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [18:51:12]wFMCommunicate OK [18:51:12]SAM_PROTO_GetShiftState done [18:51:12]FM_GetShiftState done [18:51:12]opened in 1729989044 [18:51:12]opened+sec_in_day 1730075444 [18:51:12]quantity*price = 20003 [18:51:12]sum+1 = 20004 [18:51:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 266 27.10.2024 18:51 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156715 ФПД: 133024053370651 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T185119&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156715&fm=133024053370651&tin=02508201610067®Number=0000000000091693&sum=20000 [18:51:13]StoreToDocumentArchive [18:51:13]shift 537 fd 156715 [18:51:13]save to /storage/0537/doc_00156715 [18:51:13]save last doc name /storage/0537/doc_00156715 to /storage/kkm_last_doc_name [18:51:13]save OK [18:51:13]Clear old archive folders... [18:51:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:51:13]tlvbuf is 01735D80 [18:51:13]SAM_PROTO_ClearQueue [18:51:13]wFMCommunicate request_size=4 [18:51:13]MH_SAM_APDU [18:51:13]CAPDU: 80 09 00 00 [18:51:13]Write to MH i2c: E2 08 00 A8 7C 80 09 00 00 00 00 00 00 96 [18:51:13]Write i2c OK [18:51:13]MH_I2C_Read... [18:51:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:51:13]Read from MH i2c: E2 [18:51:13]MH_I2C_Read... [18:51:13]Read from MH i2c: E2 03 00 [18:51:13]MH_I2C_Read... [18:51:13]Read from MH i2c: E2 03 00 A8 7C 00 90 00 98 [18:51:13]RAPDU: 90 00 [18:51:13]wFMCommunicate OK [18:51:13]SAM_PROTO_ClearQueue done [18:51:13]KKMCreateOFDPacket [18:51:13]OFDProtocolAddRootSTLVToBuf [18:51:13]FM_MakeSignedData [18:51:13]FM_MakeSignedData [18:51:13]SAM_PROTO_SignData [18:51:13]wFMCommunicate request_size=4 [18:51:13]MH_SAM_APDU [18:51:13]CAPDU: 80 0D 01 02 [18:51:13]Write to MH i2c: E2 08 00 A9 7C 80 0D 01 02 00 00 00 00 9E [18:51:13]Write i2c OK [18:51:13]MH_I2C_Read... [18:51:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:51:13]Read from MH i2c: E2 [18:51:13]MH_I2C_Read... [18:51:13]Read from MH i2c: E2 03 00 [18:51:13]MH_I2C_Read... [18:51:13]Read from MH i2c: E2 03 00 A9 7C 00 90 00 99 [18:51:13]RAPDU: 90 00 [18:51:13]wFMCommunicate OK [18:51:13]wFMCommunicate request_size=255 [18:51:13]MH_SAM_APDU [18:51:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 0A 01 00 00 F4 03 04 00 A7 8B 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2B 64 02 00 35 04 06 00 78 [18:51:13]Write to MH i2c: E2 02 01 AA 7C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 0A 01 00 00 F4 03 04 00 A7 8B 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2B 64 02 00 35 04 06 00 78 00 00 DA [18:51:13]Write i2c OK [18:51:13]MH_I2C_Read... [18:51:14]OFD Sender: No OFD packet to send [18:51:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:51:14]Read from MH i2c: E2 [18:51:14]MH_I2C_Read... [18:51:14]Read from MH i2c: E2 03 00 [18:51:14]MH_I2C_Read... [18:51:14]Read from MH i2c: E2 03 00 AA 7C 00 90 00 9A [18:51:14]RAPDU: 90 00 [18:51:14]wFMCommunicate OK [18:51:14]wFMCommunicate request_size=10 [18:51:14]MH_SAM_APDU [18:51:14]CAPDU: 80 0D 02 02 05 FC 13 72 9F 1B [18:51:14]Write to MH i2c: E2 0D 00 AB 7C 80 0D 02 02 05 00 FC 13 72 9F 1B 00 00 E6 [18:51:14]Write i2c OK [18:51:14]MH_I2C_Read... [18:51:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:51:14]Read from MH i2c: E2 [18:51:14]MH_I2C_Read... [18:51:14]Read from MH i2c: E2 03 00 [18:51:14]MH_I2C_Read... [18:51:14]Read from MH i2c: E2 03 00 AB 7C 00 90 00 9B [18:51:14]RAPDU: 90 00 [18:51:14]wFMCommunicate OK [18:51:14]wFMCommunicate request_size=4 [18:51:14]MH_SAM_APDU [18:51:14]CAPDU: 80 0D 03 02 [18:51:14]Write to MH i2c: E2 08 00 AC 7C 80 0D 03 02 00 00 00 00 A3 [18:51:14]Write i2c OK [18:51:14]MH_I2C_Read... [18:51:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:51:14]Read from MH i2c: E2 [18:51:14]MH_I2C_Read... [18:51:14]Read from MH i2c: E2 0B 00 [18:51:14]MH_I2C_Read... [18:51:14]Read from MH i2c: E2 0B 00 AC 7C 00 F7 F9 EE D2 AA E3 99 1E 90 00 98 [18:51:14]RAPDU: F7 F9 EE D2 AA E3 99 1E 90 00 [18:51:14]wFMCommunicate OK [18:51:14]SAM_PROTO_SignData done [18:51:14]FM_MakeSignedData done [18:51:14]CreateOFDProtocolMessage [18:51:14]wFMCommunicate request_size=4 [18:51:14]MH_SAM_APDU [18:51:14]CAPDU: 80 11 00 00 [18:51:14]Write to MH i2c: E2 08 00 AD 7C 80 11 00 00 00 00 00 00 A3 [18:51:14]Write i2c OK [18:51:14]MH_I2C_Read... [18:51:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:51:14]Read from MH i2c: E2 [18:51:14]MH_I2C_Read... [18:51:14]Read from MH i2c: E2 17 00 [18:51:14]MH_I2C_Read... [18:51:14]Read from MH i2c: E2 17 00 AD 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 F8 [18:51:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:51:14]wFMCommunicate OK [18:51:14]CreateOFDProtocolMessage done [18:51:14]OFDSenderStorePacket 156715 [18:51:14]StoreOFDPacket docnum=156715 [18:51:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 98 FC 07 01 3C 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 0A 01 00 00 F4 03 04 00 A7 8B 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2B 64 02 00 35 04 06 00 78 FC 13 72 9F 1B F7 F9 EE D2 AA E3 99 1E [18:51:14]CheckFolder [18:51:14]dirname=/storage/ofd_packets [18:51:14]CheckFolder done [18:51:14]ProducePacketName [18:51:14]name=ofd_packets/00156715 [18:51:14]NVStorageSaveData ofd_packets/00156715 [18:51:14]File name is /storage/ofd_packets/00156715 [18:51:14]Write 301 bytes [18:51:14]NVStorageSaveData done [18:51:14]OFDSenderStorePacket done [18:51:14]KKMCreateOFDPacket done [18:51:14]NVStorageSaveData kkm_last_timestamp [18:51:14]File name is /storage/kkm_last_timestamp [18:51:14]Write 4 bytes [18:51:14]NVStorageSaveData done [18:51:14]ExternCall_PrintAddStr [18:51:14]wPrintStart [18:51:14]Write to MH i2c: 01 00 00 AE 7C 2A [18:51:14]Write i2c OK [18:51:14]MH_I2C_Read... [18:51:14]Read from MH i2c: 01 [18:51:14]MH_I2C_Read... [18:51:14]Read from MH i2c: 01 07 00 [18:51:14]MH_I2C_Read... [18:51:14]Read from MH i2c: 01 07 00 AE 7C 00 00 00 00 00 FF 0F 3F [18:51:14]RasterBufferAndPrint [18:51:14]line Счет N : (1)99529 [18:51:14]line ИНН: 02508201610067 [18:51:14]line Контрольно-Кассовый Чек [18:51:14]line ПРОДАЖА [18:51:14]line ТРК (МРК, ГНК) : 31 [18:51:14]line Товар: 2710124130 [18:51:14]line Аи-92-К-5 [18:51:14]line 2.990 * 66.90 [18:51:14]line = 200.03 [18:51:14]line НДС 12% НСП 1% [18:51:14]line > о реализуемом товаре [18:51:14]line ОКРУГЛЕНИЕ: -0.03 [18:51:14]line ИТОГО: 200.00 [18:51:14]line Внесено: 200.00 [18:51:14]line СДАЧА: 0.00 [18:51:14]line НСП 1% : 1.77 [18:51:14]line НДС 12% : 21.24 [18:51:14]line Наличными: 200.00 [18:51:14]line Безнал.: 0.00 [18:51:14]line Место: АЗС № 143 "Партнер Нефть" [18:51:14]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [18:51:14]line СНО: Общий режим [18:51:14]line Чек 266 27.10.2024 18:51 [18:51:14]line Смена: 537 ФФД: 1.0 [18:51:14]line ЗНМ: 0300000096 [18:51:14]line РНМ: 0000000000091693 [18:51:14]line Версия ККМ: 001 [18:51:14]line ФМ: 0000000000871792 [18:51:14]line ФД: 156715 [18:51:14]line ФПД: 133024053370651 [18:51:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T185119&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156715&fm=133024053370651&tin=02508201610067®Number=0000000000091693&sum=20000 [18:51:14]written 0, free lines is 4095 [18:51:14]OFD Sender: Processing packet 156715 [packets to send 31, broken 30] [18:51:14]ProducePacketName [18:51:14]name=ofd_packets/00156715 [18:51:14]OFD Sender: To server: pG, [18:51:14]CommunicateWithHost lk.salyk.kg:30040 [18:51:14]ConnectInit lk.salyk.kg [18:51:14]Connected sock=8 [18:51:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 98 FC 07 01 3C 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 0A 01 00 00 F4 03 04 00 A7 8B 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2B 64 02 00 35 04 06 00 78 FC 13 72 9F 1B F7 F9 EE D2 AA E3 99 1E [18:51:14]Write to MH i2c: 01 00 00 D9 7C 55 [18:51:14]Write i2c OK [18:51:14]MH_I2C_Read... [18:51:14]Read from MH i2c: 01 [18:51:14]MH_I2C_Read... [18:51:14]Read from MH i2c: 01 07 00 [18:51:14]MH_I2C_Read... [18:51:14]Read from MH i2c: 01 07 00 D9 7C 00 00 00 00 00 DE 0C 46 [18:51:14]RasterBufferAndPrint [18:51:14]line [18:51:14]line [18:51:14]line [18:51:14]line [18:51:14]line [18:51:14]written 0, free lines is 3300 [18:51:14]process_action close_receipt done [18:51:14]requested_data is exist [18:51:14]produce_requested_data [18:51:14]requested_item fm.sn is exist - process it [18:51:14]wFMCommunicate request_size=4 [18:51:14]MH_SAM_APDU [18:51:14]CAPDU: 80 11 00 00 [18:51:14]Write to MH i2c: E2 08 00 E0 7C 80 11 00 00 00 00 00 00 D6 [18:51:14]Write i2c OK [18:51:14]MH_I2C_Read... [18:51:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:51:14]Read from MH i2c: E2 [18:51:14]MH_I2C_Read... [18:51:14]Read from MH i2c: E2 17 00 [18:51:14]MH_I2C_Read... [18:51:14]Read from MH i2c: E2 17 00 E0 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 2B [18:51:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:51:14]wFMCommunicate OK [18:51:14]requested_item fd.num is exist - process it [18:51:14]SAM_PROTO_GetFieldsCounters [18:51:14]wFMCommunicate request_size=4 [18:51:14]MH_SAM_APDU [18:51:14]CAPDU: 80 13 00 00 [18:51:14]Write to MH i2c: E2 08 00 E1 7C 80 13 00 00 00 00 00 00 D9 [18:51:14]Write i2c OK [18:51:14]MH_I2C_Read... [18:51:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:51:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 14 32 47 00 D4 E7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2B 64 02 00 F4 03 04 00 16 31 1E 67 B6 04 01 00 00 A7 23 5B 7D 01 7B 8E F9 [18:51:14]CommunicateWithHost err = 0 [18:51:14]CheckOFDResponse [18:51:14]1017 (14) - 77093643461234 [18:51:14]1041 (16) - 0000000000871792 [18:51:14]1040 (4) - 156715 [18:51:14]1012 (4) - 27.10.2024 12:24 [18:51:14]1206 (1) - 0 [18:51:14]OFD Sender: Remove packet 156715 [18:51:14]ProducePacketName [18:51:14]name=ofd_packets/00156715 [18:51:14]NVStorageDeleteData [18:51:14]Read from MH i2c: E2 [18:51:14]MH_I2C_Read... [18:51:14]Read from MH i2c: E2 62 00 [18:51:14]MH_I2C_Read... [18:51:14]Read from MH i2c: E2 62 00 E1 7C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 2B 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 0A 01 00 00 5E 04 04 00 0A 01 00 00 57 04 04 00 0B 01 00 00 19 04 04 00 00 00 00 00 90 00 CC [18:51:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 2B 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 0A 01 00 00 5E 04 04 00 0A 01 00 00 57 04 04 00 0B 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:51:14]wFMCommunicate OK [18:51:14]SAM_PROTO_GetFieldsCounters done [18:51:14]requested_item shift.num is exist - process it [18:51:14]requested_item shift.opened is exist - process it [18:51:14]req_shift_opened [18:51:14]FM_GetShiftState [18:51:14]SAM_PROTO_GetShiftState [18:51:14]wFMCommunicate request_size=4 [18:51:14]MH_SAM_APDU [18:51:14]CAPDU: 80 13 01 00 [18:51:14]Write to MH i2c: E2 08 00 E2 7C 80 13 01 00 00 00 00 00 DB [18:51:14]Write i2c OK [18:51:14]MH_I2C_Read... [18:51:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:51:14]Read from MH i2c: E2 [18:51:14]MH_I2C_Read... [18:51:14]Read from MH i2c: E2 0E 00 [18:51:14]MH_I2C_Read... [18:51:14]Read from MH i2c: E2 0E 00 E2 7C 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 A8 [18:51:14]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [18:51:14]wFMCommunicate OK [18:51:14]SAM_PROTO_GetShiftState done [18:51:14]FM_GetShiftState done [18:51:14]req_shift_opened done [18:51:14]requested_item shift.open_date is exist - process it [18:51:14]req_shift_open_date [18:51:14]req_shift_open_date done [18:51:14]produce_requested_data done [18:51:14]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156715,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [18:51:14]process_action_free close_receipt [18:51:14]json_value_free [18:51:14]json_value_free done [18:51:14]process_json_proto returns [18:51:14]Send response to host [18:51:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156715,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [18:51:14]free response buf [18:51:14]execute_script done [18:51:14]execute_script returns [18:51:14]free content buf [18:51:14]Sock 10.Close socket [18:51:14]Sock 10.Thread stoped [18:51:15]OFD Sender: No OFD packet to send [18:51:20]OFD Sender: No OFD packet to send [18:51:25]OFD Sender: No OFD packet to send [18:51:30]OFD Sender: No OFD packet to send [18:51:35]OFD Sender: No OFD packet to send [18:51:40]OFD Sender: No OFD packet to send [18:51:45]OFD Sender: No OFD packet to send [18:51:50]OFD Sender: No OFD packet to send [18:51:55]OFD Sender: No OFD packet to send [18:52:00]OFD Sender: No OFD packet to send [18:52:05]OFD Sender: No OFD packet to send [18:52:10]OFD Sender: No OFD packet to send [18:52:15]OFD Sender: No OFD packet to send [18:52:20]OFD Sender: No OFD packet to send [18:52:25]OFD Sender: No OFD packet to send [18:52:30]OFD Sender: No OFD packet to send [18:52:35]OFD Sender: No OFD packet to send [18:52:40]OFD Sender: No OFD packet to send [18:52:45]OFD Sender: No OFD packet to send [18:52:47]accept exits with 9 [18:52:47]New connection [18:52:47]New thread 3066834276 created [18:52:47]Thread 3066977636 joined [18:52:47]Waiting for new connection... [18:52:47] Sock 9.Parse request [18:52:47]Sock 9.Check first char [18:52:47]Sock 9.First char is OK [18:52:47]request: POST /json_proto HTTP/1.0 [18:52:47]Method: POST [18:52:47]URL: /json_proto [18:52:47]Method is POST - this is cgi request [18:52:47]url: /json_proto [18:52:47]query_string will be loaded in cgi processing [18:52:47]execute_cgi json_proto POST (null) [18:52:47]execute_cgi path=json_proto method=POST [18:52:47]POST find Content-Length [18:52:47]Host: 172.17.63.3:8080 [18:52:47]Content-Length: 676 [18:52:47]Content-Type: application/json [18:52:47] [18:52:47]POST finish read [18:52:47]Found Content-Length = 676 [18:52:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99530", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:52:47]execute_script... [18:52:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99530", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:52:47]POST & json_proto [18:52:47]process_json_proto [18:52:47]json parsed OK: [18:52:47]protocol is kg_v1.0 [18:52:47]action value=close_receipt [18:52:47]process_action close_receipt [18:52:47]cmd_close_receipt [18:52:47]MH_GetDate [18:52:47]Write to MH i2c: F0 00 00 E3 7C 4E [18:52:47]Write i2c OK [18:52:47]MH_I2C_Read... [18:52:47]Read from MH i2c: F0 [18:52:47]MH_I2C_Read... [18:52:47]Read from MH i2c: F0 09 00 [18:52:47]MH_I2C_Read... [18:52:47]Read from MH i2c: F0 09 00 E3 7C 00 06 8C 1E 67 50 D1 6C 64 5F [18:52:47]GetLastDocTimeStamp 1730055079 [18:52:47]current date 1730055174 [18:52:47]FM_GetShiftState [18:52:47]SAM_PROTO_GetShiftState [18:52:47]wFMCommunicate request_size=4 [18:52:47]MH_SAM_APDU [18:52:47]CAPDU: 80 13 01 00 [18:52:47]Write to MH i2c: E2 08 00 E4 7C 80 13 01 00 00 00 00 00 DD [18:52:47]Write i2c OK [18:52:47]MH_I2C_Read... [18:52:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:52:47]Read from MH i2c: E2 [18:52:47]MH_I2C_Read... [18:52:47]Read from MH i2c: E2 0E 00 [18:52:47]MH_I2C_Read... [18:52:47]Read from MH i2c: E2 0E 00 E4 7C 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 AA [18:52:47]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [18:52:47]wFMCommunicate OK [18:52:47]SAM_PROTO_GetShiftState done [18:52:47]FM_GetShiftState done [18:52:47]opened in 1729989044 [18:52:47]opened+sec_in_day 1730075444 [18:52:47]quantity*price = 40006 [18:52:47]sum+1 = 40007 [18:52:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 267 27.10.2024 18:52 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156716 ФПД: 71010714542903 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T185254&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156716&fm=71010714542903&tin=02508201610067®Number=0000000000091693&sum=40000 [18:52:48]StoreToDocumentArchive [18:52:48]shift 537 fd 156716 [18:52:48]save to /storage/0537/doc_00156716 [18:52:48]save last doc name /storage/0537/doc_00156716 to /storage/kkm_last_doc_name [18:52:48]save OK [18:52:48]Clear old archive folders... [18:52:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:52:48]tlvbuf is 01906AD0 [18:52:48]SAM_PROTO_ClearQueue [18:52:48]wFMCommunicate request_size=4 [18:52:48]MH_SAM_APDU [18:52:48]CAPDU: 80 09 00 00 [18:52:48]Write to MH i2c: E2 08 00 F1 7C 80 09 00 00 00 00 00 00 DF [18:52:48]Write i2c OK [18:52:48]MH_I2C_Read... [18:52:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:52:48]Read from MH i2c: E2 [18:52:48]MH_I2C_Read... [18:52:48]Read from MH i2c: E2 03 00 [18:52:48]MH_I2C_Read... [18:52:48]Read from MH i2c: E2 03 00 F1 7C 00 90 00 E1 [18:52:48]RAPDU: 90 00 [18:52:48]wFMCommunicate OK [18:52:48]SAM_PROTO_ClearQueue done [18:52:48]KKMCreateOFDPacket [18:52:48]OFDProtocolAddRootSTLVToBuf [18:52:48]FM_MakeSignedData [18:52:48]FM_MakeSignedData [18:52:48]SAM_PROTO_SignData [18:52:48]wFMCommunicate request_size=4 [18:52:48]MH_SAM_APDU [18:52:48]CAPDU: 80 0D 01 02 [18:52:48]Write to MH i2c: E2 08 00 F2 7C 80 0D 01 02 00 00 00 00 E7 [18:52:48]Write i2c OK [18:52:48]MH_I2C_Read... [18:52:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:52:48]Read from MH i2c: E2 [18:52:48]MH_I2C_Read... [18:52:48]Read from MH i2c: E2 03 00 [18:52:48]MH_I2C_Read... [18:52:48]Read from MH i2c: E2 03 00 F2 7C 00 90 00 E2 [18:52:48]RAPDU: 90 00 [18:52:48]wFMCommunicate OK [18:52:48]wFMCommunicate request_size=255 [18:52:48]MH_SAM_APDU [18:52: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 06 8C 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2C 64 02 00 35 04 06 00 40 [18:52:48]Write to MH i2c: E2 02 01 F3 7C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 06 8C 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2C 64 02 00 35 04 06 00 40 00 00 5A [18:52:48]Write i2c OK [18:52:48]MH_I2C_Read... [18:52:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:52:48]Read from MH i2c: E2 [18:52:48]MH_I2C_Read... [18:52:48]Read from MH i2c: E2 03 00 [18:52:48]MH_I2C_Read... [18:52:48]Read from MH i2c: E2 03 00 F3 7C 00 90 00 E3 [18:52:48]RAPDU: 90 00 [18:52:48]wFMCommunicate OK [18:52:48]wFMCommunicate request_size=10 [18:52:48]MH_SAM_APDU [18:52:48]CAPDU: 80 0D 02 02 05 95 78 6A 63 37 [18:52:48]Write to MH i2c: E2 0D 00 F4 7C 80 0D 02 02 05 00 95 78 6A 63 37 00 00 05 [18:52:48]Write i2c OK [18:52:48]MH_I2C_Read... [18:52:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:52:49]Read from MH i2c: E2 [18:52:49]MH_I2C_Read... [18:52:49]Read from MH i2c: E2 03 00 [18:52:49]MH_I2C_Read... [18:52:49]Read from MH i2c: E2 03 00 F4 7C 00 90 00 E4 [18:52:49]RAPDU: 90 00 [18:52:49]wFMCommunicate OK [18:52:49]wFMCommunicate request_size=4 [18:52:49]MH_SAM_APDU [18:52:49]CAPDU: 80 0D 03 02 [18:52:49]Write to MH i2c: E2 08 00 F5 7C 80 0D 03 02 00 00 00 00 EC [18:52:49]Write i2c OK [18:52:49]MH_I2C_Read... [18:52:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:52:49]Read from MH i2c: E2 [18:52:49]MH_I2C_Read... [18:52:49]Read from MH i2c: E2 0B 00 [18:52:49]MH_I2C_Read... [18:52:49]Read from MH i2c: E2 0B 00 F5 7C 00 3E 83 67 31 BA FE CA BB 90 00 83 [18:52:49]RAPDU: 3E 83 67 31 BA FE CA BB 90 00 [18:52:49]wFMCommunicate OK [18:52:49]SAM_PROTO_SignData done [18:52:49]FM_MakeSignedData done [18:52:49]CreateOFDProtocolMessage [18:52:49]wFMCommunicate request_size=4 [18:52:49]MH_SAM_APDU [18:52:49]CAPDU: 80 11 00 00 [18:52:49]Write to MH i2c: E2 08 00 F6 7C 80 11 00 00 00 00 00 00 EC [18:52:49]Write i2c OK [18:52:49]MH_I2C_Read... [18:52:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:52:49]Read from MH i2c: E2 [18:52:49]MH_I2C_Read... [18:52:49]Read from MH i2c: E2 17 00 [18:52:49]MH_I2C_Read... [18:52:49]Read from MH i2c: E2 17 00 F6 7C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 41 [18:52:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:52:49]wFMCommunicate OK [18:52:49]CreateOFDProtocolMessage done [18:52:49]OFDSenderStorePacket 156716 [18:52:49]StoreOFDPacket docnum=156716 [18:52:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 5D BD 07 01 09 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 06 8C 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2C 64 02 00 35 04 06 00 40 95 78 6A 63 37 3E 83 67 31 BA FE CA BB [18:52:49]CheckFolder [18:52:49]dirname=/storage/ofd_packets [18:52:49]CheckFolder done [18:52:49]ProducePacketName [18:52:49]name=ofd_packets/00156716 [18:52:49]NVStorageSaveData ofd_packets/00156716 [18:52:49]File name is /storage/ofd_packets/00156716 [18:52:49]Write 301 bytes [18:52:49]NVStorageSaveData done [18:52:49]OFDSenderStorePacket done [18:52:49]KKMCreateOFDPacket done [18:52:49]NVStorageSaveData kkm_last_timestamp [18:52:49]File name is /storage/kkm_last_timestamp [18:52:49]Write 4 bytes [18:52:49]NVStorageSaveData done [18:52:49]ExternCall_PrintAddStr [18:52:49]wPrintStart [18:52:49]Write to MH i2c: 01 00 00 F7 7C 73 [18:52:49]Write i2c OK [18:52:49]MH_I2C_Read... [18:52:49]Read from MH i2c: 01 [18:52:49]MH_I2C_Read... [18:52:49]Read from MH i2c: 01 07 00 [18:52:49]MH_I2C_Read... [18:52:49]Read from MH i2c: 01 07 00 F7 7C 00 00 00 00 00 FF 0F 88 [18:52:49]RasterBufferAndPrint [18:52:49]line Счет N : (1)99530 [18:52:49]line ИНН: 02508201610067 [18:52:49]line Контрольно-Кассовый Чек [18:52:49]line ПРОДАЖА [18:52:49]line ТРК (МРК, ГНК) : 31 [18:52:49]line Товар: 2710124130 [18:52:49]line Аи-92-К-5 [18:52:49]line 5.980 * 66.90 [18:52:49]line = 400.06 [18:52:49]line НДС 12% НСП 1% [18:52:49]line > о реализуемом товаре [18:52:49]line ОКРУГЛЕНИЕ: -0.06 [18:52:49]line ИТОГО: 400.00 [18:52:49]line Внесено: 400.00 [18:52:49]line СДАЧА: 0.00 [18:52:49]line НСП 1% : 3.54 [18:52:49]line НДС 12% : 42.48 [18:52:49]line Наличными: 400.00 [18:52:49]line Безнал.: 0.00 [18:52:49]line Место: АЗС № 143 "Партнер Нефть" [18:52:49]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [18:52:49]line СНО: Общий режим [18:52:49]line Чек 267 27.10.2024 18:52 [18:52:49]line Смена: 537 ФФД: 1.0 [18:52:49]line ЗНМ: 0300000096 [18:52:49]line РНМ: 0000000000091693 [18:52:49]line Версия ККМ: 001 [18:52:49]line ФМ: 0000000000871792 [18:52:49]line ФД: 156716 [18:52:49]line ФПД: 71010714542903 [18:52:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T185254&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156716&fm=71010714542903&tin=02508201610067®Number=0000000000091693&sum=40000 [18:52:49]OFD Sender: Processing packet 156716 [packets to send 31, broken 30] [18:52:49]ProducePacketName [18:52:49]name=ofd_packets/00156716 [18:52:49]OFD Sender: To server: pG, [18:52:49]CommunicateWithHost lk.salyk.kg:30040 [18:52:49]ConnectInit lk.salyk.kg [18:52:49]written 0, free lines is 4095 [18:52:49]Connected sock=10 [18:52:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 5D BD 07 01 09 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 06 8C 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2C 64 02 00 35 04 06 00 40 95 78 6A 63 37 3E 83 67 31 BA FE CA BB [18:52:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 82 34 47 00 89 3E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2C 64 02 00 F4 03 04 00 75 31 1E 67 B6 04 01 00 00 25 7D 67 1F 4C 3C 7A C0 [18:52:49]CommunicateWithHost err = 0 [18:52:49]CheckOFDResponse [18:52:49]1017 (14) - 77093643461234 [18:52:49]1041 (16) - 0000000000871792 [18:52:49]1040 (4) - 156716 [18:52:49]1012 (4) - 27.10.2024 12:26 [18:52:49]1206 (1) - 0 [18:52:49]OFD Sender: Remove packet 156716 [18:52:49]ProducePacketName [18:52:49]name=ofd_packets/00156716 [18:52:49]NVStorageDeleteData [18:52:49]Write to MH i2c: 01 00 00 22 7D 9F [18:52:49]Write i2c OK [18:52:49]MH_I2C_Read... [18:52:49]Read from MH i2c: 01 [18:52:49]MH_I2C_Read... [18:52:49]Read from MH i2c: 01 07 00 [18:52:49]MH_I2C_Read... [18:52:49]Read from MH i2c: 01 07 00 22 7D 00 00 00 00 00 DE 0C 90 [18:52:49]RasterBufferAndPrint [18:52:49]line [18:52:49]line [18:52:49]line [18:52:49]line [18:52:49]line [18:52:49]written 0, free lines is 3300 [18:52:49]process_action close_receipt done [18:52:49]requested_data is exist [18:52:49]produce_requested_data [18:52:49]requested_item fm.sn is exist - process it [18:52:49]wFMCommunicate request_size=4 [18:52:49]MH_SAM_APDU [18:52:49]CAPDU: 80 11 00 00 [18:52:49]Write to MH i2c: E2 08 00 29 7D 80 11 00 00 00 00 00 00 20 [18:52:49]Write i2c OK [18:52:49]MH_I2C_Read... [18:52:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:52:50]Read from MH i2c: E2 [18:52:50]MH_I2C_Read... [18:52:50]Read from MH i2c: E2 17 00 [18:52:50]MH_I2C_Read... [18:52:50]Read from MH i2c: E2 17 00 29 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 75 [18:52:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:52:50]wFMCommunicate OK [18:52:50]requested_item fd.num is exist - process it [18:52:50]SAM_PROTO_GetFieldsCounters [18:52:50]wFMCommunicate request_size=4 [18:52:50]MH_SAM_APDU [18:52:50]CAPDU: 80 13 00 00 [18:52:50]Write to MH i2c: E2 08 00 2A 7D 80 13 00 00 00 00 00 00 23 [18:52:50]Write i2c OK [18:52:50]MH_I2C_Read... [18:52:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:52:50]Read from MH i2c: E2 [18:52:50]MH_I2C_Read... [18:52:50]Read from MH i2c: E2 62 00 [18:52:50]MH_I2C_Read... [18:52:50]Read from MH i2c: E2 62 00 2A 7D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 2C 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 0B 01 00 00 5E 04 04 00 0B 01 00 00 57 04 04 00 0C 01 00 00 19 04 04 00 00 00 00 00 90 00 1A [18:52:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 2C 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 0B 01 00 00 5E 04 04 00 0B 01 00 00 57 04 04 00 0C 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:52:50]wFMCommunicate OK [18:52:50]SAM_PROTO_GetFieldsCounters done [18:52:50]requested_item shift.num is exist - process it [18:52:50]requested_item shift.opened is exist - process it [18:52:50]req_shift_opened [18:52:50]FM_GetShiftState [18:52:50]SAM_PROTO_GetShiftState [18:52:50]wFMCommunicate request_size=4 [18:52:50]MH_SAM_APDU [18:52:50]CAPDU: 80 13 01 00 [18:52:50]Write to MH i2c: E2 08 00 2B 7D 80 13 01 00 00 00 00 00 25 [18:52:50]Write i2c OK [18:52:50]MH_I2C_Read... [18:52:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:52:50]Read from MH i2c: E2 [18:52:50]MH_I2C_Read... [18:52:50]Read from MH i2c: E2 0E 00 [18:52:50]MH_I2C_Read... [18:52:50]Read from MH i2c: E2 0E 00 2B 7D 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 F2 [18:52:50]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [18:52:50]wFMCommunicate OK [18:52:50]SAM_PROTO_GetShiftState done [18:52:50]FM_GetShiftState done [18:52:50]req_shift_opened done [18:52:50]requested_item shift.open_date is exist - process it [18:52:50]req_shift_open_date [18:52:50]req_shift_open_date done [18:52:50]produce_requested_data done [18:52:50]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156716,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [18:52:50]process_action_free close_receipt [18:52:50]json_value_free [18:52:50]json_value_free done [18:52:50]process_json_proto returns [18:52:50]Send response to host [18:52:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156716,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [18:52:50]free response buf [18:52:50]execute_script done [18:52:50]execute_script returns [18:52:50]free content buf [18:52:50]Sock 9.Close socket [18:52:50]Sock 9.Thread stoped [18:52:50]OFD Sender: No OFD packet to send [18:52:55]OFD Sender: No OFD packet to send [18:53:00]OFD Sender: No OFD packet to send [18:53:05]OFD Sender: No OFD packet to send [18:53:10]OFD Sender: No OFD packet to send [18:53:15]OFD Sender: No OFD packet to send [18:53:20]OFD Sender: No OFD packet to send [18:53:25]OFD Sender: No OFD packet to send [18:53:30]OFD Sender: No OFD packet to send [18:53:35]OFD Sender: No OFD packet to send [18:53:40]OFD Sender: No OFD packet to send [18:53:45]OFD Sender: No OFD packet to send [18:53:50]OFD Sender: No OFD packet to send [18:53:55]OFD Sender: No OFD packet to send [18:54:00]OFD Sender: No OFD packet to send [18:54:03]accept exits with 8 [18:54:03]New connection [18:54:03]New thread 3066977636 created [18:54:03]Thread 3066834276 joined [18:54:03]Waiting for new connection... [18:54:03] Sock 8.Parse request [18:54:03]Sock 8.Check first char [18:54:03]Sock 8.First char is OK [18:54:03]request: POST /json_proto HTTP/1.0 [18:54:03]Method: POST [18:54:03]URL: /json_proto [18:54:03]Method is POST - this is cgi request [18:54:03]url: /json_proto [18:54:03]query_string will be loaded in cgi processing [18:54:03]execute_cgi json_proto POST (null) [18:54:03]execute_cgi path=json_proto method=POST [18:54:03]POST find Content-Length [18:54:03]Host: 172.17.63.3:8080 [18:54:03]Content-Length: 639 [18:54:03]Content-Type: application/json [18:54:03] [18:54:03]POST finish read [18:54:03]Found Content-Length = 639 [18:54:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99531", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.000, "sum" : 669.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 669.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:54:03]execute_script... [18:54:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99531", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 10.000, "sum" : 669.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 669.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:54:03]POST & json_proto [18:54:03]process_json_proto [18:54:03]json parsed OK: [18:54:03]protocol is kg_v1.0 [18:54:03]action value=close_receipt [18:54:03]process_action close_receipt [18:54:03]cmd_close_receipt [18:54:03]MH_GetDate [18:54:03]Write to MH i2c: F0 00 00 2C 7D 98 [18:54:03]Write i2c OK [18:54:03]MH_I2C_Read... [18:54:03]Read from MH i2c: F0 [18:54:03]MH_I2C_Read... [18:54:03]Read from MH i2c: F0 09 00 [18:54:03]MH_I2C_Read... [18:54:03]Read from MH i2c: F0 09 00 2C 7D 00 52 8C 1E 67 50 D1 6C 64 F5 [18:54:03]GetLastDocTimeStamp 1730055174 [18:54:03]current date 1730055250 [18:54:03]FM_GetShiftState [18:54:03]SAM_PROTO_GetShiftState [18:54:03]wFMCommunicate request_size=4 [18:54:03]MH_SAM_APDU [18:54:03]CAPDU: 80 13 01 00 [18:54:03]Write to MH i2c: E2 08 00 2D 7D 80 13 01 00 00 00 00 00 27 [18:54:03]Write i2c OK [18:54:03]MH_I2C_Read... [18:54:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:54:03]Read from MH i2c: E2 [18:54:03]MH_I2C_Read... [18:54:03]Read from MH i2c: E2 0E 00 [18:54:03]MH_I2C_Read... [18:54:03]Read from MH i2c: E2 0E 00 2D 7D 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 F4 [18:54:03]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [18:54:03]wFMCommunicate OK [18:54:03]SAM_PROTO_GetShiftState done [18:54:03]FM_GetShiftState done [18:54:03]opened in 1729989044 [18:54:03]opened+sec_in_day 1730075444 [18:54:03]quantity*price = 66900 [18:54:03]sum+1 = 66901 [18:54:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 669.00 НСП 1% : 5.92 НДС 12% : 71.04 Наличными: 669.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 268 27.10.2024 18:54 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156717 ФПД: 260571955117286 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T185410&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156717&fm=260571955117286&tin=02508201610067®Number=0000000000091693&sum=66900 [18:54:04]StoreToDocumentArchive [18:54:04]shift 537 fd 156717 [18:54:04]save to /storage/0537/doc_00156717 [18:54:04]save last doc name /storage/0537/doc_00156717 to /storage/kkm_last_doc_name [18:54:04]save OK [18:54:04]Clear old archive folders... [18:54:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:54:04]tlvbuf is 01906CC0 [18:54:04]SAM_PROTO_ClearQueue [18:54:04]wFMCommunicate request_size=4 [18:54:04]MH_SAM_APDU [18:54:04]CAPDU: 80 09 00 00 [18:54:04]Write to MH i2c: E2 08 00 3A 7D 80 09 00 00 00 00 00 00 29 [18:54:04]Write i2c OK [18:54:04]MH_I2C_Read... [18:54:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:54:04]Read from MH i2c: E2 [18:54:04]MH_I2C_Read... [18:54:04]Read from MH i2c: E2 03 00 [18:54:04]MH_I2C_Read... [18:54:04]Read from MH i2c: E2 03 00 3A 7D 00 90 00 2B [18:54:04]RAPDU: 90 00 [18:54:04]wFMCommunicate OK [18:54:04]SAM_PROTO_ClearQueue done [18:54:04]KKMCreateOFDPacket [18:54:04]OFDProtocolAddRootSTLVToBuf [18:54:04]FM_MakeSignedData [18:54:04]FM_MakeSignedData [18:54:04]SAM_PROTO_SignData [18:54:04]wFMCommunicate request_size=4 [18:54:04]MH_SAM_APDU [18:54:04]CAPDU: 80 0D 01 02 [18:54:04]Write to MH i2c: E2 08 00 3B 7D 80 0D 01 02 00 00 00 00 31 [18:54:04]Write i2c OK [18:54:04]MH_I2C_Read... [18:54:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:54:04]Read from MH i2c: E2 [18:54:04]MH_I2C_Read... [18:54:04]Read from MH i2c: E2 03 00 [18:54:04]MH_I2C_Read... [18:54:04]Read from MH i2c: E2 03 00 3B 7D 00 90 00 2C [18:54:04]RAPDU: 90 00 [18:54:04]wFMCommunicate OK [18:54:04]wFMCommunicate request_size=255 [18:54:04]MH_SAM_APDU [18:54:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 54 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 52 8C 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2D 64 02 00 35 04 06 00 EC [18:54:04]Write to MH i2c: E2 02 01 3C 7D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 54 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 52 8C 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2D 64 02 00 35 04 06 00 EC 00 00 F8 [18:54:04]Write i2c OK [18:54:04]MH_I2C_Read... [18:54:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:54:04]Read from MH i2c: E2 [18:54:04]MH_I2C_Read... [18:54:04]Read from MH i2c: E2 03 00 [18:54:04]MH_I2C_Read... [18:54:04]Read from MH i2c: E2 03 00 3C 7D 00 90 00 2D [18:54:04]RAPDU: 90 00 [18:54:04]wFMCommunicate OK [18:54:04]wFMCommunicate request_size=10 [18:54:04]MH_SAM_APDU [18:54:04]CAPDU: 80 0D 02 02 05 FD 22 D2 BC E6 [18:54:04]Write to MH i2c: E2 0D 00 3D 7D 80 0D 02 02 05 00 FD 22 D2 BC E6 00 00 D1 [18:54:04]Write i2c OK [18:54:04]MH_I2C_Read... [18:54:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:54:05]Read from MH i2c: E2 [18:54:05]MH_I2C_Read... [18:54:05]Read from MH i2c: E2 03 00 [18:54:05]MH_I2C_Read... [18:54:05]Read from MH i2c: E2 03 00 3D 7D 00 90 00 2E [18:54:05]RAPDU: 90 00 [18:54:05]wFMCommunicate OK [18:54:05]wFMCommunicate request_size=4 [18:54:05]MH_SAM_APDU [18:54:05]CAPDU: 80 0D 03 02 [18:54:05]Write to MH i2c: E2 08 00 3E 7D 80 0D 03 02 00 00 00 00 36 [18:54:05]Write i2c OK [18:54:05]MH_I2C_Read... [18:54:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:54:05]Read from MH i2c: E2 [18:54:05]MH_I2C_Read... [18:54:05]Read from MH i2c: E2 0B 00 [18:54:05]MH_I2C_Read... [18:54:05]Read from MH i2c: E2 0B 00 3E 7D 00 89 34 56 4B D7 49 05 F4 90 00 AE [18:54:05]RAPDU: 89 34 56 4B D7 49 05 F4 90 00 [18:54:05]wFMCommunicate OK [18:54:05]SAM_PROTO_SignData done [18:54:05]FM_MakeSignedData done [18:54:05]CreateOFDProtocolMessage [18:54:05]wFMCommunicate request_size=4 [18:54:05]MH_SAM_APDU [18:54:05]CAPDU: 80 11 00 00 [18:54:05]Write to MH i2c: E2 08 00 3F 7D 80 11 00 00 00 00 00 00 36 [18:54:05]Write i2c OK [18:54:05]MH_I2C_Read... [18:54:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:54:05]Read from MH i2c: E2 [18:54:05]MH_I2C_Read... [18:54:05]Read from MH i2c: E2 17 00 [18:54:05]MH_I2C_Read... [18:54:05]Read from MH i2c: E2 17 00 3F 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 8B [18:54:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:54:05]wFMCommunicate OK [18:54:05]CreateOFDProtocolMessage done [18:54:05]OFDSenderStorePacket 156717 [18:54:05]StoreOFDPacket docnum=156717 [18:54:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 F0 85 07 01 35 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 54 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 52 8C 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2D 64 02 00 35 04 06 00 EC FD 22 D2 BC E6 89 34 56 4B D7 49 05 F4 [18:54:05]CheckFolder [18:54:05]dirname=/storage/ofd_packets [18:54:05]CheckFolder done [18:54:05]ProducePacketName [18:54:05]name=ofd_packets/00156717 [18:54:05]NVStorageSaveData ofd_packets/00156717 [18:54:05]File name is /storage/ofd_packets/00156717 [18:54:05]Write 301 bytes [18:54:05]NVStorageSaveData done [18:54:05]OFDSenderStorePacket done [18:54:05]KKMCreateOFDPacket done [18:54:05]NVStorageSaveData kkm_last_timestamp [18:54:05]File name is /storage/kkm_last_timestamp [18:54:05]Write 4 bytes [18:54:05]NVStorageSaveData done [18:54:05]ExternCall_PrintAddStr [18:54:05]wPrintStart [18:54:05]Write to MH i2c: 01 00 00 40 7D BD [18:54:05]Write i2c OK [18:54:05]MH_I2C_Read... [18:54:05]Read from MH i2c: 01 [18:54:05]MH_I2C_Read... [18:54:05]Read from MH i2c: 01 07 00 [18:54:05]MH_I2C_Read... [18:54:05]Read from MH i2c: 01 07 00 40 7D 00 00 00 00 00 FF 0F D2 [18:54:05]RasterBufferAndPrint [18:54:05]line Счет N : (1)99531 [18:54:05]line ИНН: 02508201610067 [18:54:05]line Контрольно-Кассовый Чек [18:54:05]line ПРОДАЖА [18:54:05]line ТРК (МРК, ГНК) : 31 [18:54:05]line Товар: 2710124130 [18:54:05]line Аи-92-К-5 [18:54:05]line 10.000 * 66.90 [18:54:05]line = 669.00 [18:54:05]line НДС 12% НСП 1% [18:54:05]line > о реализуемом товаре [18:54:05]line ИТОГО: 669.00 [18:54:05]line НСП 1% : 5.92 [18:54:05]line НДС 12% : 71.04 [18:54:05]line Наличными: 669.00 [18:54:05]line Безнал.: 0.00 [18:54:05]line Место: АЗС № 143 "Партнер Нефть" [18:54:05]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [18:54:05]line СНО: Общий режим [18:54:05]line Чек 268 27.10.2024 18:54 [18:54:05]line Смена: 537 ФФД: 1.0 [18:54:05]line ЗНМ: 0300000096 [18:54:05]line РНМ: 0000000000091693 [18:54:05]line Версия ККМ: 001 [18:54:05]line ФМ: 0000000000871792 [18:54:05]line ФД: 156717 [18:54:05]line ФПД: 260571955117286 [18:54:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T185410&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156717&fm=260571955117286&tin=02508201610067®Number=0000000000091693&sum=66900 [18:54:05]OFD Sender: Processing packet 156717 [packets to send 31, broken 30] [18:54:05]ProducePacketName [18:54:05]name=ofd_packets/00156717 [18:54:05]OFD Sender: To server: pG, [18:54:05]CommunicateWithHost lk.salyk.kg:30040 [18:54:05]ConnectInit lk.salyk.kg [18:54:05]written 0, free lines is 4095 [18:54:05]Connected sock=10 [18:54:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 F0 85 07 01 35 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 22 1A 00 00 00 00 13 04 06 00 54 05 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 05 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 1B 00 00 00 00 07 04 06 00 54 05 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 01 00 00 F4 03 04 00 52 8C 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2D 64 02 00 35 04 06 00 EC FD 22 D2 BC E6 89 34 56 4B D7 49 05 F4 [18:54:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 B5 35 47 00 E9 A7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2D 64 02 00 F4 03 04 00 C1 31 1E 67 B6 04 01 00 00 96 7B F1 3E FF FC 0F EE [18:54:05]CommunicateWithHost err = 0 [18:54:05]CheckOFDResponse [18:54:05]1017 (14) - 77093643461234 [18:54:05]1041 (16) - 0000000000871792 [18:54:05]1040 (4) - 156717 [18:54:05]1012 (4) - 27.10.2024 12:27 [18:54:05]1206 (1) - 0 [18:54:05]OFD Sender: Remove packet 156717 [18:54:05]ProducePacketName [18:54:05]name=ofd_packets/00156717 [18:54:05]NVStorageDeleteData [18:54:05]Write to MH i2c: 01 00 00 68 7D E5 [18:54:05]Write i2c OK [18:54:05]MH_I2C_Read... [18:54:05]Read from MH i2c: 01 [18:54:05]MH_I2C_Read... [18:54:05]Read from MH i2c: 01 07 00 [18:54:05]MH_I2C_Read... [18:54:05]Read from MH i2c: 01 07 00 68 7D 00 00 00 00 00 0C 0D 05 [18:54:05]RasterBufferAndPrint [18:54:05]line [18:54:05]line [18:54:05]line [18:54:05]line [18:54:05]line [18:54:05]written 0, free lines is 3349 [18:54:05]process_action close_receipt done [18:54:05]requested_data is exist [18:54:05]produce_requested_data [18:54:05]requested_item fm.sn is exist - process it [18:54:05]wFMCommunicate request_size=4 [18:54:05]MH_SAM_APDU [18:54:05]CAPDU: 80 11 00 00 [18:54:05]Write to MH i2c: E2 08 00 6F 7D 80 11 00 00 00 00 00 00 66 [18:54:05]Write i2c OK [18:54:05]MH_I2C_Read... [18:54:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:54:05]Read from MH i2c: E2 [18:54:05]MH_I2C_Read... [18:54:05]Read from MH i2c: E2 17 00 [18:54:05]MH_I2C_Read... [18:54:05]Read from MH i2c: E2 17 00 6F 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 BB [18:54:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [18:54:05]wFMCommunicate OK [18:54:05]requested_item fd.num is exist - process it [18:54:05]SAM_PROTO_GetFieldsCounters [18:54:05]wFMCommunicate request_size=4 [18:54:05]MH_SAM_APDU [18:54:05]CAPDU: 80 13 00 00 [18:54:05]Write to MH i2c: E2 08 00 70 7D 80 13 00 00 00 00 00 00 69 [18:54:05]Write i2c OK [18:54:05]MH_I2C_Read... [18:54:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:54:06]Read from MH i2c: E2 [18:54:06]MH_I2C_Read... [18:54:06]Read from MH i2c: E2 62 00 [18:54:06]MH_I2C_Read... [18:54:06]Read from MH i2c: E2 62 00 70 7D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 2D 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 0C 01 00 00 5E 04 04 00 0C 01 00 00 57 04 04 00 0D 01 00 00 19 04 04 00 00 00 00 00 90 00 64 [18:54:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 2D 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 0C 01 00 00 5E 04 04 00 0C 01 00 00 57 04 04 00 0D 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:54:06]wFMCommunicate OK [18:54:06]SAM_PROTO_GetFieldsCounters done [18:54:06]requested_item shift.num is exist - process it [18:54:06]requested_item shift.opened is exist - process it [18:54:06]req_shift_opened [18:54:06]FM_GetShiftState [18:54:06]SAM_PROTO_GetShiftState [18:54:06]wFMCommunicate request_size=4 [18:54:06]MH_SAM_APDU [18:54:06]CAPDU: 80 13 01 00 [18:54:06]Write to MH i2c: E2 08 00 71 7D 80 13 01 00 00 00 00 00 6B [18:54:06]Write i2c OK [18:54:06]MH_I2C_Read... [18:54:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:54:06]Read from MH i2c: E2 [18:54:06]MH_I2C_Read... [18:54:06]Read from MH i2c: E2 0E 00 [18:54:06]MH_I2C_Read... [18:54:06]Read from MH i2c: E2 0E 00 71 7D 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 38 [18:54:06]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [18:54:06]wFMCommunicate OK [18:54:06]SAM_PROTO_GetShiftState done [18:54:06]FM_GetShiftState done [18:54:06]req_shift_opened done [18:54:06]requested_item shift.open_date is exist - process it [18:54:06]req_shift_open_date [18:54:06]req_shift_open_date done [18:54:06]produce_requested_data done [18:54:06]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156717,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [18:54:06]process_action_free close_receipt [18:54:06]json_value_free [18:54:06]json_value_free done [18:54:06]process_json_proto returns [18:54:06]Send response to host [18:54:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156717,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [18:54:06]free response buf [18:54:06]execute_script done [18:54:06]execute_script returns [18:54:06]free content buf [18:54:06]Sock 8.Close socket [18:54:06]Sock 8.Thread stoped [18:54:06]OFD Sender: No OFD packet to send [18:54:11]OFD Sender: No OFD packet to send [18:54:16]OFD Sender: No OFD packet to send [18:54:21]OFD Sender: No OFD packet to send [18:54:26]OFD Sender: No OFD packet to send [18:54:31]OFD Sender: No OFD packet to send [18:54:36]OFD Sender: No OFD packet to send [18:54:41]OFD Sender: No OFD packet to send [18:54:46]OFD Sender: No OFD packet to send [18:54:51]OFD Sender: No OFD packet to send [18:54:56]OFD Sender: No OFD packet to send [18:55:01]OFD Sender: No OFD packet to send [18:55:06]OFD Sender: No OFD packet to send [18:55:11]OFD Sender: No OFD packet to send [18:55:16]OFD Sender: No OFD packet to send [18:55:21]OFD Sender: No OFD packet to send [18:55:26]OFD Sender: No OFD packet to send [18:55:31]OFD Sender: No OFD packet to send [18:55:36]OFD Sender: No OFD packet to send [18:55:41]OFD Sender: No OFD packet to send [18:55:46]OFD Sender: No OFD packet to send [18:55:51]OFD Sender: No OFD packet to send [18:55:56]OFD Sender: No OFD packet to send [18:56:01]OFD Sender: No OFD packet to send [18:56:06]OFD Sender: No OFD packet to send [18:56:11]OFD Sender: No OFD packet to send [18:56:16]OFD Sender: No OFD packet to send [18:56:21]OFD Sender: No OFD packet to send [18:56:26]OFD Sender: No OFD packet to send [18:56:31]OFD Sender: No OFD packet to send [18:56:36]OFD Sender: No OFD packet to send [18:56:41]OFD Sender: No OFD packet to send [18:56:46]OFD Sender: No OFD packet to send [18:56:51]OFD Sender: No OFD packet to send [18:56:56]OFD Sender: No OFD packet to send [18:57:01]OFD Sender: No OFD packet to send [18:57:06]OFD Sender: No OFD packet to send [18:57:11]OFD Sender: No OFD packet to send [18:57:16]OFD Sender: No OFD packet to send [18:57:21]OFD Sender: No OFD packet to send [18:57:26]OFD Sender: No OFD packet to send [18:57:31]OFD Sender: No OFD packet to send [18:57:36]OFD Sender: No OFD packet to send [18:57:41]OFD Sender: No OFD packet to send [18:57:46]OFD Sender: No OFD packet to send [18:57:51]OFD Sender: No OFD packet to send [18:57:56]OFD Sender: No OFD packet to send [18:58:01]OFD Sender: No OFD packet to send [18:58:06]OFD Sender: No OFD packet to send [18:58:11]OFD Sender: No OFD packet to send [18:58:16]OFD Sender: No OFD packet to send [18:58:21]OFD Sender: No OFD packet to send [18:58:26]OFD Sender: No OFD packet to send [18:58:31]OFD Sender: No OFD packet to send [18:58:36]OFD Sender: No OFD packet to send [18:58:41]OFD Sender: No OFD packet to send [18:58:46]OFD Sender: No OFD packet to send [18:58:51]OFD Sender: No OFD packet to send [18:58:56]OFD Sender: No OFD packet to send [18:59:01]OFD Sender: No OFD packet to send [18:59:06]OFD Sender: No OFD packet to send [18:59:11]OFD Sender: No OFD packet to send [18:59:16]OFD Sender: No OFD packet to send [18:59:21]OFD Sender: No OFD packet to send [18:59:26]OFD Sender: No OFD packet to send [18:59:31]OFD Sender: No OFD packet to send [18:59:36]OFD Sender: No OFD packet to send [18:59:41]OFD Sender: No OFD packet to send [18:59:46]OFD Sender: No OFD packet to send [18:59:51]OFD Sender: No OFD packet to send [18:59:56]OFD Sender: No OFD packet to send [19:00:01]OFD Sender: No OFD packet to send [19:00:06]OFD Sender: No OFD packet to send [19:00:11]OFD Sender: No OFD packet to send [19:00:16]OFD Sender: No OFD packet to send [19:00:21]OFD Sender: No OFD packet to send [19:00:26]OFD Sender: No OFD packet to send [19:00:31]OFD Sender: No OFD packet to send [19:00:36]OFD Sender: No OFD packet to send [19:00:41]OFD Sender: No OFD packet to send [19:00:46]OFD Sender: No OFD packet to send [19:00:50]accept exits with 9 [19:00:50]New connection [19:00:50]New thread 3066834276 created [19:00:50]Thread 3066977636 joined [19:00:50]Waiting for new connection... [19:00:50] Sock 9.Parse request [19:00:50]Sock 9.Check first char [19:00:50]Sock 9.First char is OK [19:00:50]request: POST /json_proto HTTP/1.0 [19:00:50]Method: POST [19:00:50]URL: /json_proto [19:00:50]Method is POST - this is cgi request [19:00:50]url: /json_proto [19:00:50]query_string will be loaded in cgi processing [19:00:50]execute_cgi json_proto POST (null) [19:00:51]execute_cgi path=json_proto method=POST [19:00:51]POST find Content-Length [19:00:51]Host: 172.17.63.3:8080 [19:00:51]Content-Length: 676 [19:00:51]Content-Type: application/json [19:00:51] [19:00:51]POST finish read [19:00:51]Found Content-Length = 676 [19:00:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99532", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:00:51]execute_script... [19:00: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)99532", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:00:51]POST & json_proto [19:00:51]process_json_proto [19:00:51]json parsed OK: [19:00:51]protocol is kg_v1.0 [19:00:51]action value=close_receipt [19:00:51]process_action close_receipt [19:00:51]cmd_close_receipt [19:00:51]MH_GetDate [19:00:51]Write to MH i2c: F0 00 00 72 7D DE [19:00:51]Write i2c OK [19:00:51]MH_I2C_Read... [19:00:51]Read from MH i2c: F0 [19:00:51]MH_I2C_Read... [19:00:51]Read from MH i2c: F0 09 00 [19:00:51]MH_I2C_Read... [19:00:51]Read from MH i2c: F0 09 00 72 7D 00 EA 8D 1E 67 50 D1 6C 64 D4 [19:00:51]GetLastDocTimeStamp 1730055250 [19:00:51]current date 1730055658 [19:00:51]FM_GetShiftState [19:00:51]SAM_PROTO_GetShiftState [19:00:51]wFMCommunicate request_size=4 [19:00:51]MH_SAM_APDU [19:00:51]CAPDU: 80 13 01 00 [19:00:51]Write to MH i2c: E2 08 00 73 7D 80 13 01 00 00 00 00 00 6D [19:00:51]Write i2c OK [19:00:51]MH_I2C_Read... [19:00:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:00:51]Read from MH i2c: E2 [19:00:51]MH_I2C_Read... [19:00:51]Read from MH i2c: E2 0E 00 [19:00:51]MH_I2C_Read... [19:00:51]Read from MH i2c: E2 0E 00 73 7D 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 3A [19:00:51]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [19:00:51]wFMCommunicate OK [19:00:51]SAM_PROTO_GetShiftState done [19:00:51]FM_GetShiftState done [19:00:51]opened in 1729989044 [19:00:51]opened+sec_in_day 1730075444 [19:00:51]quantity*price = 40006 [19:00:51]sum+1 = 40007 [19:00:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 269 27.10.2024 19:00 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156718 ФПД: 256481953345083 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T190058&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156718&fm=256481953345083&tin=02508201610067®Number=0000000000091693&sum=40000 [19:00:52]StoreToDocumentArchive [19:00:52]shift 537 fd 156718 [19:00:52]save to /storage/0537/doc_00156718 [19:00:52]save last doc name /storage/0537/doc_00156718 to /storage/kkm_last_doc_name [19:00:52]save OK [19:00:52]Clear old archive folders... [19:00:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:00:52]tlvbuf is 017ADEB0 [19:00:52]SAM_PROTO_ClearQueue [19:00:52]wFMCommunicate request_size=4 [19:00:52]MH_SAM_APDU [19:00:52]CAPDU: 80 09 00 00 [19:00:52]Write to MH i2c: E2 08 00 80 7D 80 09 00 00 00 00 00 00 6F [19:00:52]Write i2c OK [19:00:52]MH_I2C_Read... [19:00:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:00:52]Read from MH i2c: E2 [19:00:52]MH_I2C_Read... [19:00:52]Read from MH i2c: E2 03 00 [19:00:52]MH_I2C_Read... [19:00:52]Read from MH i2c: E2 03 00 80 7D 00 90 00 71 [19:00:52]RAPDU: 90 00 [19:00:52]wFMCommunicate OK [19:00:52]SAM_PROTO_ClearQueue done [19:00:52]KKMCreateOFDPacket [19:00:52]OFDProtocolAddRootSTLVToBuf [19:00:52]FM_MakeSignedData [19:00:52]FM_MakeSignedData [19:00:52]SAM_PROTO_SignData [19:00:52]wFMCommunicate request_size=4 [19:00:52]MH_SAM_APDU [19:00:52]CAPDU: 80 0D 01 02 [19:00:52]Write to MH i2c: E2 08 00 81 7D 80 0D 01 02 00 00 00 00 77 [19:00:52]Write i2c OK [19:00:52]MH_I2C_Read... [19:00:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:00:52]Read from MH i2c: E2 [19:00:52]MH_I2C_Read... [19:00:52]Read from MH i2c: E2 03 00 [19:00:52]MH_I2C_Read... [19:00:52]Read from MH i2c: E2 03 00 81 7D 00 90 00 72 [19:00:52]RAPDU: 90 00 [19:00:52]wFMCommunicate OK [19:00:52]wFMCommunicate request_size=255 [19:00:52]MH_SAM_APDU [19:00: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 EA 8D 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2E 64 02 00 35 04 06 00 E9 [19:00:52]Write to MH i2c: E2 02 01 82 7D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 EA 8D 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2E 64 02 00 35 04 06 00 E9 00 00 7C [19:00:52]Write i2c OK [19:00:52]MH_I2C_Read... [19:00:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:00:52]Read from MH i2c: E2 [19:00:52]MH_I2C_Read... [19:00:52]Read from MH i2c: E2 03 00 [19:00:52]MH_I2C_Read... [19:00:52]Read from MH i2c: E2 03 00 82 7D 00 90 00 73 [19:00:52]RAPDU: 90 00 [19:00:52]wFMCommunicate OK [19:00:52]wFMCommunicate request_size=10 [19:00:52]MH_SAM_APDU [19:00:52]CAPDU: 80 0D 02 02 05 44 DB B8 6E 3B [19:00:52]Write to MH i2c: E2 0D 00 83 7D 80 0D 02 02 05 00 44 DB B8 6E 3B 00 00 04 [19:00:52]Write i2c OK [19:00:52]MH_I2C_Read... [19:00:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:00:52]Read from MH i2c: E2 [19:00:52]MH_I2C_Read... [19:00:52]Read from MH i2c: E2 03 00 [19:00:52]MH_I2C_Read... [19:00:52]Read from MH i2c: E2 03 00 83 7D 00 90 00 74 [19:00:52]RAPDU: 90 00 [19:00:52]wFMCommunicate OK [19:00:52]wFMCommunicate request_size=4 [19:00:52]MH_SAM_APDU [19:00:52]CAPDU: 80 0D 03 02 [19:00:52]Write to MH i2c: E2 08 00 84 7D 80 0D 03 02 00 00 00 00 7C [19:00:52]Write i2c OK [19:00:52]MH_I2C_Read... [19:00:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:00:52]Read from MH i2c: E2 [19:00:52]MH_I2C_Read... [19:00:52]Read from MH i2c: E2 0B 00 [19:00:52]MH_I2C_Read... [19:00:52]Read from MH i2c: E2 0B 00 84 7D 00 B3 B2 B7 94 DA 27 3F 15 90 00 82 [19:00:52]RAPDU: B3 B2 B7 94 DA 27 3F 15 90 00 [19:00:52]wFMCommunicate OK [19:00:52]SAM_PROTO_SignData done [19:00:52]FM_MakeSignedData done [19:00:52]CreateOFDProtocolMessage [19:00:52]wFMCommunicate request_size=4 [19:00:52]MH_SAM_APDU [19:00:52]CAPDU: 80 11 00 00 [19:00:52]Write to MH i2c: E2 08 00 85 7D 80 11 00 00 00 00 00 00 7C [19:00:52]Write i2c OK [19:00:52]MH_I2C_Read... [19:00:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:00:52]Read from MH i2c: E2 [19:00:52]MH_I2C_Read... [19:00:52]Read from MH i2c: E2 17 00 [19:00:52]MH_I2C_Read... [19:00:52]Read from MH i2c: E2 17 00 85 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 D1 [19:00:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:00:52]wFMCommunicate OK [19:00:52]CreateOFDProtocolMessage done [19:00:52]OFDSenderStorePacket 156718 [19:00:52]StoreOFDPacket docnum=156718 [19:00:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 4E D9 07 01 2D 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 EA 8D 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2E 64 02 00 35 04 06 00 E9 44 DB B8 6E 3B B3 B2 B7 94 DA 27 3F 15 [19:00:52]CheckFolder [19:00:52]dirname=/storage/ofd_packets [19:00:52]CheckFolder done [19:00:52]ProducePacketName [19:00:52]name=ofd_packets/00156718 [19:00:52]NVStorageSaveData ofd_packets/00156718 [19:00:52]File name is /storage/ofd_packets/00156718 [19:00:52]Write 301 bytes [19:00:52]NVStorageSaveData done [19:00:52]OFDSenderStorePacket done [19:00:52]KKMCreateOFDPacket done [19:00:52]NVStorageSaveData kkm_last_timestamp [19:00:52]File name is /storage/kkm_last_timestamp [19:00:52]Write 4 bytes [19:00:52]NVStorageSaveData done [19:00:52]ExternCall_PrintAddStr [19:00:52]wPrintStart [19:00:52]Write to MH i2c: 01 00 00 86 7D 03 [19:00:52]Write i2c OK [19:00:52]MH_I2C_Read... [19:00:52]Read from MH i2c: 01 [19:00:52]MH_I2C_Read... [19:00:52]Read from MH i2c: 01 07 00 [19:00:52]MH_I2C_Read... [19:00:52]Read from MH i2c: 01 07 00 86 7D 00 00 00 00 00 FF 0F 18 [19:00:52]RasterBufferAndPrint [19:00:52]line Счет N : (1)99532 [19:00:52]line ИНН: 02508201610067 [19:00:52]line Контрольно-Кассовый Чек [19:00:52]line ПРОДАЖА [19:00:52]line ТРК (МРК, ГНК) : 31 [19:00:52]line Товар: 2710124130 [19:00:52]line Аи-92-К-5 [19:00:52]line 5.980 * 66.90 [19:00:52]line = 400.06 [19:00:52]line НДС 12% НСП 1% [19:00:52]line > о реализуемом товаре [19:00:52]line ОКРУГЛЕНИЕ: -0.06 [19:00:52]line ИТОГО: 400.00 [19:00:52]line Внесено: 400.00 [19:00:52]line СДАЧА: 0.00 [19:00:52]line НСП 1% : 3.54 [19:00:52]line НДС 12% : 42.48 [19:00:52]line Наличными: 400.00 [19:00:52]line Безнал.: 0.00 [19:00:52]line Место: АЗС № 143 "Партнер Нефть" [19:00:52]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [19:00:52]line СНО: Общий режим [19:00:52]line Чек 269 27.10.2024 19:00 [19:00:52]line Смена: 537 ФФД: 1.0 [19:00:52]line ЗНМ: 0300000096 [19:00:53]line РНМ: 0000000000091693 [19:00:53]line Версия ККМ: 001 [19:00:53]line ФМ: 0000000000871792 [19:00:53]line ФД: 156718 [19:00:53]line ФПД: 256481953345083 [19:00:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T190058&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156718&fm=256481953345083&tin=02508201610067®Number=0000000000091693&sum=40000 [19:00:53]OFD Sender: Processing packet 156718 [packets to send 31, broken 30] [19:00:53]ProducePacketName [19:00:53]name=ofd_packets/00156718 [19:00:53]OFD Sender: To server: pG, [19:00:53]CommunicateWithHost lk.salyk.kg:30040 [19:00:53]ConnectInit lk.salyk.kg [19:00:53]written 0, free lines is 4095 [19:00:53]Connected sock=10 [19:00:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 4E D9 07 01 2D 5E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 EA 8D 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2E 64 02 00 35 04 06 00 E9 44 DB B8 6E 3B B3 B2 B7 94 DA 27 3F 15 [19:00:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 95 8C 47 00 0B 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2E 64 02 00 F4 03 04 00 58 33 1E 67 B6 04 01 00 00 1A C9 71 3D 0B 6F 23 67 [19:00:53]CommunicateWithHost err = 0 [19:00:53]CheckOFDResponse [19:00:53]1017 (14) - 77093643461234 [19:00:53]1041 (16) - 0000000000871792 [19:00:53]1040 (4) - 156718 [19:00:53]1012 (4) - 27.10.2024 12:34 [19:00:53]1206 (1) - 0 [19:00:53]OFD Sender: Remove packet 156718 [19:00:53]ProducePacketName [19:00:53]name=ofd_packets/00156718 [19:00:53]NVStorageDeleteData [19:00:53]Write to MH i2c: 01 00 00 B1 7D 2E [19:00:53]Write i2c OK [19:00:53]MH_I2C_Read... [19:00:53]Read from MH i2c: 01 [19:00:53]MH_I2C_Read... [19:00:53]Read from MH i2c: 01 07 00 [19:00:53]MH_I2C_Read... [19:00:53]Read from MH i2c: 01 07 00 B1 7D 00 00 00 00 00 FB 0C 3C [19:00:53]RasterBufferAndPrint [19:00:53]line [19:00:53]line [19:00:53]line [19:00:53]line [19:00:53]line [19:00:53]written 0, free lines is 3332 [19:00:53]process_action close_receipt done [19:00:53]requested_data is exist [19:00:53]produce_requested_data [19:00:53]requested_item fm.sn is exist - process it [19:00:53]wFMCommunicate request_size=4 [19:00:53]MH_SAM_APDU [19:00:53]CAPDU: 80 11 00 00 [19:00:53]Write to MH i2c: E2 08 00 B8 7D 80 11 00 00 00 00 00 00 AF [19:00:53]Write i2c OK [19:00:53]MH_I2C_Read... [19:00:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:00:53]Read from MH i2c: E2 [19:00:53]MH_I2C_Read... [19:00:53]Read from MH i2c: E2 17 00 [19:00:53]MH_I2C_Read... [19:00:53]Read from MH i2c: E2 17 00 B8 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 04 [19:00:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:00:53]wFMCommunicate OK [19:00:53]requested_item fd.num is exist - process it [19:00:53]SAM_PROTO_GetFieldsCounters [19:00:53]wFMCommunicate request_size=4 [19:00:53]MH_SAM_APDU [19:00:53]CAPDU: 80 13 00 00 [19:00:53]Write to MH i2c: E2 08 00 B9 7D 80 13 00 00 00 00 00 00 B2 [19:00:53]Write i2c OK [19:00:53]MH_I2C_Read... [19:00:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:00:53]Read from MH i2c: E2 [19:00:53]MH_I2C_Read... [19:00:53]Read from MH i2c: E2 62 00 [19:00:53]MH_I2C_Read... [19:00:53]Read from MH i2c: E2 62 00 B9 7D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 2E 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0E 01 00 00 19 04 04 00 00 00 00 00 90 00 B1 [19:00:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 2E 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0E 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:00:53]wFMCommunicate OK [19:00:53]SAM_PROTO_GetFieldsCounters done [19:00:53]requested_item shift.num is exist - process it [19:00:53]requested_item shift.opened is exist - process it [19:00:53]req_shift_opened [19:00:53]FM_GetShiftState [19:00:53]SAM_PROTO_GetShiftState [19:00:53]wFMCommunicate request_size=4 [19:00:53]MH_SAM_APDU [19:00:53]CAPDU: 80 13 01 00 [19:00:53]Write to MH i2c: E2 08 00 BA 7D 80 13 01 00 00 00 00 00 B4 [19:00:53]Write i2c OK [19:00:53]MH_I2C_Read... [19:00:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:00:53]Read from MH i2c: E2 [19:00:53]MH_I2C_Read... [19:00:53]Read from MH i2c: E2 0E 00 [19:00:53]MH_I2C_Read... [19:00:53]Read from MH i2c: E2 0E 00 BA 7D 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 81 [19:00:53]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [19:00:53]wFMCommunicate OK [19:00:53]SAM_PROTO_GetShiftState done [19:00:53]FM_GetShiftState done [19:00:53]req_shift_opened done [19:00:53]requested_item shift.open_date is exist - process it [19:00:53]req_shift_open_date [19:00:53]req_shift_open_date done [19:00:53]produce_requested_data done [19:00:53]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156718,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [19:00:53]process_action_free close_receipt [19:00:53]json_value_free [19:00:53]json_value_free done [19:00:53]process_json_proto returns [19:00:53]Send response to host [19:00:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156718,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [19:00:53]free response buf [19:00:53]execute_script done [19:00:53]execute_script returns [19:00:53]free content buf [19:00:53]Sock 9.Close socket [19:00:53]Sock 9.Thread stoped [19:00:53]OFD Sender: No OFD packet to send [19:00:58]OFD Sender: No OFD packet to send [19:01:03]OFD Sender: No OFD packet to send [19:01:08]OFD Sender: No OFD packet to send [19:01:13]OFD Sender: No OFD packet to send [19:01:18]OFD Sender: No OFD packet to send [19:01:23]OFD Sender: No OFD packet to send [19:01:28]OFD Sender: No OFD packet to send [19:01:33]OFD Sender: No OFD packet to send [19:01:38]OFD Sender: No OFD packet to send [19:01:43]OFD Sender: No OFD packet to send [19:01:48]OFD Sender: No OFD packet to send [19:01:53]OFD Sender: No OFD packet to send [19:01:58]OFD Sender: No OFD packet to send [19:02:03]OFD Sender: No OFD packet to send [19:02:08]OFD Sender: No OFD packet to send [19:02:13]OFD Sender: No OFD packet to send [19:02:18]OFD Sender: No OFD packet to send [19:02:23]OFD Sender: No OFD packet to send [19:02:28]OFD Sender: No OFD packet to send [19:02:33]OFD Sender: No OFD packet to send [19:02:38]OFD Sender: No OFD packet to send [19:02:43]OFD Sender: No OFD packet to send [19:02:49]OFD Sender: No OFD packet to send [19:02:54]OFD Sender: No OFD packet to send [19:02:59]OFD Sender: No OFD packet to send [19:03:04]OFD Sender: No OFD packet to send [19:03:09]OFD Sender: No OFD packet to send [19:03:14]OFD Sender: No OFD packet to send [19:03:19]OFD Sender: No OFD packet to send [19:03:24]OFD Sender: No OFD packet to send [19:03:29]OFD Sender: No OFD packet to send [19:03:34]OFD Sender: No OFD packet to send [19:03:39]OFD Sender: No OFD packet to send [19:03:44]OFD Sender: No OFD packet to send [19:03:49]OFD Sender: No OFD packet to send [19:03:54]OFD Sender: No OFD packet to send [19:03:59]OFD Sender: No OFD packet to send [19:04:04]OFD Sender: No OFD packet to send [19:04:09]OFD Sender: No OFD packet to send [19:04:14]OFD Sender: No OFD packet to send [19:04:19]OFD Sender: No OFD packet to send [19:04:24]OFD Sender: No OFD packet to send [19:04:27]accept exits with 8 [19:04:27]New connection [19:04:27]New thread 3066977636 created [19:04:27]Thread 3066834276 joined [19:04:27]Waiting for new connection... [19:04:27] Sock 8.Parse request [19:04:27]Sock 8.Check first char [19:04:27]Sock 8.First char is OK [19:04:27]request: POST /json_proto HTTP/1.0 [19:04:27]Method: POST [19:04:27]URL: /json_proto [19:04:27]Method is POST - this is cgi request [19:04:27]url: /json_proto [19:04:27]query_string will be loaded in cgi processing [19:04:27]execute_cgi json_proto POST (null) [19:04:27]execute_cgi path=json_proto method=POST [19:04:27]POST find Content-Length [19:04:27]Host: 172.17.63.3:8080 [19:04:27]Content-Length: 676 [19:04:27]Content-Type: application/json [19:04:27] [19:04:27]POST finish read [19:04:27]Found Content-Length = 676 [19:04:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99533", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:04:27]execute_script... [19:04: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)99533", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:04:27]POST & json_proto [19:04:27]process_json_proto [19:04:27]json parsed OK: [19:04:27]protocol is kg_v1.0 [19:04:27]action value=close_receipt [19:04:27]process_action close_receipt [19:04:27]cmd_close_receipt [19:04:27]MH_GetDate [19:04:27]Write to MH i2c: F0 00 00 BB 7D 27 [19:04:27]Write i2c OK [19:04:27]MH_I2C_Read... [19:04:27]Read from MH i2c: F0 [19:04:27]MH_I2C_Read... [19:04:27]Read from MH i2c: F0 09 00 [19:04:27]MH_I2C_Read... [19:04:27]Read from MH i2c: F0 09 00 BB 7D 00 C2 8E 1E 67 50 D1 6C 64 F6 [19:04:27]GetLastDocTimeStamp 1730055658 [19:04:27]current date 1730055874 [19:04:27]FM_GetShiftState [19:04:27]SAM_PROTO_GetShiftState [19:04:27]wFMCommunicate request_size=4 [19:04:27]MH_SAM_APDU [19:04:27]CAPDU: 80 13 01 00 [19:04:27]Write to MH i2c: E2 08 00 BC 7D 80 13 01 00 00 00 00 00 B6 [19:04:27]Write i2c OK [19:04:27]MH_I2C_Read... [19:04:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:04:27]Read from MH i2c: E2 [19:04:27]MH_I2C_Read... [19:04:27]Read from MH i2c: E2 0E 00 [19:04:27]MH_I2C_Read... [19:04:27]Read from MH i2c: E2 0E 00 BC 7D 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 83 [19:04:27]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [19:04:27]wFMCommunicate OK [19:04:27]SAM_PROTO_GetShiftState done [19:04:27]FM_GetShiftState done [19:04:27]opened in 1729989044 [19:04:27]opened+sec_in_day 1730075444 [19:04:27]quantity*price = 30038 [19:04:27]sum+1 = 30039 [19:04:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 270 27.10.2024 19:04 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156719 ФПД: 66671310587880 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T190434&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156719&fm=66671310587880&tin=02508201610067®Number=0000000000091693&sum=30000 [19:04:28]StoreToDocumentArchive [19:04:28]shift 537 fd 156719 [19:04:28]save to /storage/0537/doc_00156719 [19:04:28]save last doc name /storage/0537/doc_00156719 to /storage/kkm_last_doc_name [19:04:28]save OK [19:04:28]Clear old archive folders... [19:04:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:04:28]tlvbuf is 01906930 [19:04:28]SAM_PROTO_ClearQueue [19:04:28]wFMCommunicate request_size=4 [19:04:28]MH_SAM_APDU [19:04:28]CAPDU: 80 09 00 00 [19:04:28]Write to MH i2c: E2 08 00 C9 7D 80 09 00 00 00 00 00 00 B8 [19:04:28]Write i2c OK [19:04:28]MH_I2C_Read... [19:04:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:04:28]Read from MH i2c: E2 [19:04:28]MH_I2C_Read... [19:04:28]Read from MH i2c: E2 03 00 [19:04:28]MH_I2C_Read... [19:04:28]Read from MH i2c: E2 03 00 C9 7D 00 90 00 BA [19:04:28]RAPDU: 90 00 [19:04:28]wFMCommunicate OK [19:04:28]SAM_PROTO_ClearQueue done [19:04:28]KKMCreateOFDPacket [19:04:28]OFDProtocolAddRootSTLVToBuf [19:04:28]FM_MakeSignedData [19:04:28]FM_MakeSignedData [19:04:28]SAM_PROTO_SignData [19:04:28]wFMCommunicate request_size=4 [19:04:28]MH_SAM_APDU [19:04:28]CAPDU: 80 0D 01 02 [19:04:28]Write to MH i2c: E2 08 00 CA 7D 80 0D 01 02 00 00 00 00 C0 [19:04:28]Write i2c OK [19:04:28]MH_I2C_Read... [19:04:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:04:28]Read from MH i2c: E2 [19:04:28]MH_I2C_Read... [19:04:28]Read from MH i2c: E2 03 00 [19:04:28]MH_I2C_Read... [19:04:28]Read from MH i2c: E2 03 00 CA 7D 00 90 00 BB [19:04:28]RAPDU: 90 00 [19:04:28]wFMCommunicate OK [19:04:28]wFMCommunicate request_size=255 [19:04:28]MH_SAM_APDU [19:04: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 C2 8E 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2F 64 02 00 35 04 06 00 3C [19:04:28]Write to MH i2c: E2 02 01 CB 7D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 C2 8E 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2F 64 02 00 35 04 06 00 3C 00 00 18 [19:04:28]Write i2c OK [19:04:28]MH_I2C_Read... [19:04:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:04:28]Read from MH i2c: E2 [19:04:28]MH_I2C_Read... [19:04:28]Read from MH i2c: E2 03 00 [19:04:28]MH_I2C_Read... [19:04:28]Read from MH i2c: E2 03 00 CB 7D 00 90 00 BC [19:04:28]RAPDU: 90 00 [19:04:28]wFMCommunicate OK [19:04:28]wFMCommunicate request_size=10 [19:04:28]MH_SAM_APDU [19:04:28]CAPDU: 80 0D 02 02 05 A3 1F C8 C7 E8 [19:04:28]Write to MH i2c: E2 0D 00 CC 7D 80 0D 02 02 05 00 A3 1F C8 C7 E8 00 00 06 [19:04:28]Write i2c OK [19:04:28]MH_I2C_Read... [19:04:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:04:28]Read from MH i2c: E2 [19:04:28]MH_I2C_Read... [19:04:28]Read from MH i2c: E2 03 00 [19:04:28]MH_I2C_Read... [19:04:28]Read from MH i2c: E2 03 00 CC 7D 00 90 00 BD [19:04:28]RAPDU: 90 00 [19:04:28]wFMCommunicate OK [19:04:28]wFMCommunicate request_size=4 [19:04:28]MH_SAM_APDU [19:04:28]CAPDU: 80 0D 03 02 [19:04:28]Write to MH i2c: E2 08 00 CD 7D 80 0D 03 02 00 00 00 00 C5 [19:04:28]Write i2c OK [19:04:28]MH_I2C_Read... [19:04:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:04:28]Read from MH i2c: E2 [19:04:28]MH_I2C_Read... [19:04:28]Read from MH i2c: E2 0B 00 [19:04:28]MH_I2C_Read... [19:04:28]Read from MH i2c: E2 0B 00 CD 7D 00 0F 3E A2 73 56 6D C1 14 90 00 C0 [19:04:28]RAPDU: 0F 3E A2 73 56 6D C1 14 90 00 [19:04:28]wFMCommunicate OK [19:04:28]SAM_PROTO_SignData done [19:04:28]FM_MakeSignedData done [19:04:28]CreateOFDProtocolMessage [19:04:28]wFMCommunicate request_size=4 [19:04:28]MH_SAM_APDU [19:04:28]CAPDU: 80 11 00 00 [19:04:28]Write to MH i2c: E2 08 00 CE 7D 80 11 00 00 00 00 00 00 C5 [19:04:28]Write i2c OK [19:04:28]MH_I2C_Read... [19:04:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:04:28]Read from MH i2c: E2 [19:04:28]MH_I2C_Read... [19:04:28]Read from MH i2c: E2 17 00 [19:04:28]MH_I2C_Read... [19:04:28]Read from MH i2c: E2 17 00 CE 7D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 1A [19:04:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:04:28]wFMCommunicate OK [19:04:28]CreateOFDProtocolMessage done [19:04:28]OFDSenderStorePacket 156719 [19:04:28]StoreOFDPacket docnum=156719 [19:04:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 DE 23 07 01 38 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 C2 8E 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2F 64 02 00 35 04 06 00 3C A3 1F C8 C7 E8 0F 3E A2 73 56 6D C1 14 [19:04:28]CheckFolder [19:04:28]dirname=/storage/ofd_packets [19:04:28]CheckFolder done [19:04:28]ProducePacketName [19:04:28]name=ofd_packets/00156719 [19:04:28]NVStorageSaveData ofd_packets/00156719 [19:04:28]File name is /storage/ofd_packets/00156719 [19:04:28]Write 301 bytes [19:04:28]NVStorageSaveData done [19:04:28]OFDSenderStorePacket done [19:04:28]KKMCreateOFDPacket done [19:04:28]NVStorageSaveData kkm_last_timestamp [19:04:28]File name is /storage/kkm_last_timestamp [19:04:28]Write 4 bytes [19:04:28]NVStorageSaveData done [19:04:28]ExternCall_PrintAddStr [19:04:28]wPrintStart [19:04:28]Write to MH i2c: 01 00 00 CF 7D 4C [19:04:28]Write i2c OK [19:04:28]MH_I2C_Read... [19:04:28]Read from MH i2c: 01 [19:04:28]MH_I2C_Read... [19:04:28]Read from MH i2c: 01 07 00 [19:04:28]MH_I2C_Read... [19:04:28]Read from MH i2c: 01 07 00 CF 7D 00 00 00 00 00 FF 0F 61 [19:04:28]RasterBufferAndPrint [19:04:28]line Счет N : (1)99533 [19:04:28]line ИНН: 02508201610067 [19:04:28]line Контрольно-Кассовый Чек [19:04:28]line ПРОДАЖА [19:04:28]line ТРК (МРК, ГНК) : 31 [19:04:28]line Товар: 2710124130 [19:04:28]line Аи-92-К-5 [19:04:28]line 4.490 * 66.90 [19:04:28]line = 300.38 [19:04:28]line НДС 12% НСП 1% [19:04:28]line > о реализуемом товаре [19:04:28]line ОКРУГЛЕНИЕ: -0.38 [19:04:28]line ИТОГО: 300.00 [19:04:28]line Внесено: 300.00 [19:04:28]line СДАЧА: 0.00 [19:04:28]line НСП 1% : 2.66 [19:04:28]line НДС 12% : 31.90 [19:04:28]line Наличными: 300.00 [19:04:28]line Безнал.: 0.00 [19:04:28]line Место: АЗС № 143 "Партнер Нефть" [19:04:28]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [19:04:28]line СНО: Общий режим [19:04:28]line Чек 270 27.10.2024 19:04 [19:04:28]line Смена: 537 ФФД: 1.0 [19:04:28]line ЗНМ: 0300000096 [19:04:28]line РНМ: 0000000000091693 [19:04:28]line Версия ККМ: 001 [19:04:28]line ФМ: 0000000000871792 [19:04:28]line ФД: 156719 [19:04:28]line ФПД: 66671310587880 [19:04:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T190434&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156719&fm=66671310587880&tin=02508201610067®Number=0000000000091693&sum=30000 [19:04:29]OFD Sender: Processing packet 156719 [packets to send 31, broken 30] [19:04:29]ProducePacketName [19:04:29]name=ofd_packets/00156719 [19:04:29]OFD Sender: To server: pG, [19:04:29]CommunicateWithHost lk.salyk.kg:30040 [19:04:29]ConnectInit lk.salyk.kg [19:04:29]written 0, free lines is 4095 [19:04:29]Connected sock=10 [19:04:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 DE 23 07 01 38 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 C2 8E 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2F 64 02 00 35 04 06 00 3C A3 1F C8 C7 E8 0F 3E A2 73 56 6D C1 14 [19:04:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 3A 51 47 00 24 A4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 2F 64 02 00 F4 03 04 00 31 34 1E 67 B6 04 01 00 00 DF C2 F0 53 74 18 80 C7 [19:04:29]CommunicateWithHost err = 0 [19:04:29]CheckOFDResponse [19:04:29]1017 (14) - 77093643461234 [19:04:29]1041 (16) - 0000000000871792 [19:04:29]1040 (4) - 156719 [19:04:29]1012 (4) - 27.10.2024 12:38 [19:04:29]1206 (1) - 0 [19:04:29]OFD Sender: Remove packet 156719 [19:04:29]ProducePacketName [19:04:29]name=ofd_packets/00156719 [19:04:29]NVStorageDeleteData [19:04:29]Write to MH i2c: 01 00 00 FA 7D 77 [19:04:29]Write i2c OK [19:04:29]MH_I2C_Read... [19:04:29]Read from MH i2c: 01 [19:04:29]MH_I2C_Read... [19:04:29]Read from MH i2c: 01 07 00 [19:04:29]MH_I2C_Read... [19:04:29]Read from MH i2c: 01 07 00 FA 7D 00 00 00 00 00 ED 0C 77 [19:04:29]RasterBufferAndPrint [19:04:29]line [19:04:29]line [19:04:29]line [19:04:29]line [19:04:29]line [19:04:29]written 0, free lines is 3315 [19:04:29]process_action close_receipt done [19:04:29]requested_data is exist [19:04:29]produce_requested_data [19:04:29]requested_item fm.sn is exist - process it [19:04:29]wFMCommunicate request_size=4 [19:04:29]MH_SAM_APDU [19:04:29]CAPDU: 80 11 00 00 [19:04:29]Write to MH i2c: E2 08 00 01 7E 80 11 00 00 00 00 00 00 F9 [19:04:29]Write i2c OK [19:04:29]MH_I2C_Read... [19:04:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:04:29]Read from MH i2c: E2 [19:04:29]MH_I2C_Read... [19:04:29]Read from MH i2c: E2 17 00 [19:04:29]MH_I2C_Read... [19:04:29]Read from MH i2c: E2 17 00 01 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 4E [19:04:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:04:29]wFMCommunicate OK [19:04:29]requested_item fd.num is exist - process it [19:04:29]SAM_PROTO_GetFieldsCounters [19:04:29]wFMCommunicate request_size=4 [19:04:29]MH_SAM_APDU [19:04:29]CAPDU: 80 13 00 00 [19:04:29]Write to MH i2c: E2 08 00 02 7E 80 13 00 00 00 00 00 00 FC [19:04:29]Write i2c OK [19:04:29]MH_I2C_Read... [19:04:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:04:29]Read from MH i2c: E2 [19:04:29]MH_I2C_Read... [19:04:29]Read from MH i2c: E2 62 00 [19:04:29]MH_I2C_Read... [19:04:29]Read from MH i2c: E2 62 00 02 7E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 2F 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 0E 01 00 00 5E 04 04 00 0E 01 00 00 57 04 04 00 0F 01 00 00 19 04 04 00 00 00 00 00 90 00 FF [19:04:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 2F 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 0E 01 00 00 5E 04 04 00 0E 01 00 00 57 04 04 00 0F 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:04:29]wFMCommunicate OK [19:04:29]SAM_PROTO_GetFieldsCounters done [19:04:29]requested_item shift.num is exist - process it [19:04:29]requested_item shift.opened is exist - process it [19:04:29]req_shift_opened [19:04:29]FM_GetShiftState [19:04:29]SAM_PROTO_GetShiftState [19:04:29]wFMCommunicate request_size=4 [19:04:29]MH_SAM_APDU [19:04:29]CAPDU: 80 13 01 00 [19:04:29]Write to MH i2c: E2 08 00 03 7E 80 13 01 00 00 00 00 00 FE [19:04:29]Write i2c OK [19:04:29]MH_I2C_Read... [19:04:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:04:30]Read from MH i2c: E2 [19:04:30]MH_I2C_Read... [19:04:30]Read from MH i2c: E2 0E 00 [19:04:30]MH_I2C_Read... [19:04:30]Read from MH i2c: E2 0E 00 03 7E 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 CB [19:04:30]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [19:04:30]wFMCommunicate OK [19:04:30]SAM_PROTO_GetShiftState done [19:04:30]FM_GetShiftState done [19:04:30]req_shift_opened done [19:04:30]requested_item shift.open_date is exist - process it [19:04:30]req_shift_open_date [19:04:30]req_shift_open_date done [19:04:30]produce_requested_data done [19:04:30]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156719,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [19:04:30]process_action_free close_receipt [19:04:30]json_value_free [19:04:30]json_value_free done [19:04:30]process_json_proto returns [19:04:30]Send response to host [19:04:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156719,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [19:04:30]free response buf [19:04:30]execute_script done [19:04:30]execute_script returns [19:04:30]free content buf [19:04:30]Sock 8.Close socket [19:04:30]Sock 8.Thread stoped [19:04:30]OFD Sender: No OFD packet to send [19:04:35]OFD Sender: No OFD packet to send [19:04:40]OFD Sender: No OFD packet to send [19:04:45]OFD Sender: No OFD packet to send [19:04:50]OFD Sender: No OFD packet to send [19:04:55]OFD Sender: No OFD packet to send [19:05:00]OFD Sender: No OFD packet to send [19:05:05]OFD Sender: No OFD packet to send [19:05:10]OFD Sender: No OFD packet to send [19:05:15]OFD Sender: No OFD packet to send [19:05:20]OFD Sender: No OFD packet to send [19:05:25]OFD Sender: No OFD packet to send [19:05:30]OFD Sender: No OFD packet to send [19:05:35]OFD Sender: No OFD packet to send [19:05:40]OFD Sender: No OFD packet to send [19:05:45]OFD Sender: No OFD packet to send [19:05:50]OFD Sender: No OFD packet to send [19:05:55]OFD Sender: No OFD packet to send [19:06:00]OFD Sender: No OFD packet to send [19:06:05]OFD Sender: No OFD packet to send [19:06:10]OFD Sender: No OFD packet to send [19:06:15]OFD Sender: No OFD packet to send [19:06:20]OFD Sender: No OFD packet to send [19:06:25]OFD Sender: No OFD packet to send [19:06:30]OFD Sender: No OFD packet to send [19:06:35]OFD Sender: No OFD packet to send [19:06:40]OFD Sender: No OFD packet to send [19:06:45]OFD Sender: No OFD packet to send [19:06:50]OFD Sender: No OFD packet to send [19:06:55]OFD Sender: No OFD packet to send [19:07:00]OFD Sender: No OFD packet to send [19:07:05]OFD Sender: No OFD packet to send [19:07:10]OFD Sender: No OFD packet to send [19:07:15]OFD Sender: No OFD packet to send [19:07:18]accept exits with 9 [19:07:18]New connection [19:07:18]New thread 3066834276 created [19:07:18]Thread 3066977636 joined [19:07:18]Waiting for new connection... [19:07:18] Sock 9.Parse request [19:07:18]Sock 9.Check first char [19:07:18]Sock 9.First char is OK [19:07:18]request: POST /json_proto HTTP/1.0 [19:07:18]Method: POST [19:07:18]URL: /json_proto [19:07:18]Method is POST - this is cgi request [19:07:18]url: /json_proto [19:07:18]query_string will be loaded in cgi processing [19:07:18]execute_cgi json_proto POST (null) [19:07:18]execute_cgi path=json_proto method=POST [19:07:18]POST find Content-Length [19:07:18]Host: 172.17.63.3:8080 [19:07:18]Content-Length: 678 [19:07:18]Content-Type: application/json [19:07:18] [19:07:18]POST finish read [19:07:18]Found Content-Length = 678 [19:07:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99534", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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" ] } } [19:07:18]execute_script... [19:07:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99534", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "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" ] } } [19:07:18]POST & json_proto [19:07:18]process_json_proto [19:07:18]json parsed OK: [19:07:18]protocol is kg_v1.0 [19:07:18]action value=close_receipt [19:07:18]process_action close_receipt [19:07:18]cmd_close_receipt [19:07:18]MH_GetDate [19:07:18]Write to MH i2c: F0 00 00 04 7E 71 [19:07:18]Write i2c OK [19:07:18]MH_I2C_Read... [19:07:18]Read from MH i2c: F0 [19:07:18]MH_I2C_Read... [19:07:18]Read from MH i2c: F0 09 00 [19:07:18]MH_I2C_Read... [19:07:18]Read from MH i2c: F0 09 00 04 7E 00 6D 8F 1E 67 50 D1 6C 64 EC [19:07:18]GetLastDocTimeStamp 1730055874 [19:07:18]current date 1730056045 [19:07:18]FM_GetShiftState [19:07:18]SAM_PROTO_GetShiftState [19:07:18]wFMCommunicate request_size=4 [19:07:18]MH_SAM_APDU [19:07:18]CAPDU: 80 13 01 00 [19:07:18]Write to MH i2c: E2 08 00 05 7E 80 13 01 00 00 00 00 00 00 [19:07:18]Write i2c OK [19:07:18]MH_I2C_Read... [19:07:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:07:18]Read from MH i2c: E2 [19:07:18]MH_I2C_Read... [19:07:18]Read from MH i2c: E2 0E 00 [19:07:18]MH_I2C_Read... [19:07:18]Read from MH i2c: E2 0E 00 05 7E 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 CD [19:07:18]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [19:07:18]wFMCommunicate OK [19:07:18]SAM_PROTO_GetShiftState done [19:07:18]FM_GetShiftState done [19:07:18]opened in 1729989044 [19:07:18]opened+sec_in_day 1730075444 [19:07:18]quantity*price = 100050 [19:07:18]sum+1 = 100052 [19:07:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 271 27.10.2024 19:07 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156720 ФПД: 127594544080789 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T190725&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156720&fm=127594544080789&tin=02508201610067®Number=0000000000091693&sum=100000 [19:07:19]StoreToDocumentArchive [19:07:19]shift 537 fd 156720 [19:07:19]save to /storage/0537/doc_00156720 [19:07:19]save last doc name /storage/0537/doc_00156720 to /storage/kkm_last_doc_name [19:07:19]save OK [19:07:19]Clear old archive folders... [19:07:19]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:07:19]tlvbuf is 018788D0 [19:07:19]SAM_PROTO_ClearQueue [19:07:19]wFMCommunicate request_size=4 [19:07:19]MH_SAM_APDU [19:07:19]CAPDU: 80 09 00 00 [19:07:19]Write to MH i2c: E2 08 00 12 7E 80 09 00 00 00 00 00 00 02 [19:07:19]Write i2c OK [19:07:19]MH_I2C_Read... [19:07:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:07:19]Read from MH i2c: E2 [19:07:19]MH_I2C_Read... [19:07:19]Read from MH i2c: E2 03 00 [19:07:19]MH_I2C_Read... [19:07:19]Read from MH i2c: E2 03 00 12 7E 00 90 00 04 [19:07:19]RAPDU: 90 00 [19:07:19]wFMCommunicate OK [19:07:19]SAM_PROTO_ClearQueue done [19:07:19]KKMCreateOFDPacket [19:07:19]OFDProtocolAddRootSTLVToBuf [19:07:19]FM_MakeSignedData [19:07:19]FM_MakeSignedData [19:07:19]SAM_PROTO_SignData [19:07:19]wFMCommunicate request_size=4 [19:07:19]MH_SAM_APDU [19:07:19]CAPDU: 80 0D 01 02 [19:07:19]Write to MH i2c: E2 08 00 13 7E 80 0D 01 02 00 00 00 00 0A [19:07:19]Write i2c OK [19:07:19]MH_I2C_Read... [19:07:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:07:19]Read from MH i2c: E2 [19:07:19]MH_I2C_Read... [19:07:19]Read from MH i2c: E2 03 00 [19:07:19]MH_I2C_Read... [19:07:19]Read from MH i2c: E2 03 00 13 7E 00 90 00 05 [19:07:19]RAPDU: 90 00 [19:07:19]wFMCommunicate OK [19:07:19]wFMCommunicate request_size=255 [19:07:19]MH_SAM_APDU [19:07:19]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 6D 8F 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 30 64 02 00 35 04 06 00 74 0B EB 79 [19:07:19]Write to MH i2c: E2 02 01 14 7E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 6D 8F 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 30 64 02 00 35 04 06 00 74 0B EB 79 00 00 B9 [19:07:19]Write i2c OK [19:07:19]MH_I2C_Read... [19:07:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:07:19]Read from MH i2c: E2 [19:07:19]MH_I2C_Read... [19:07:19]Read from MH i2c: E2 03 00 [19:07:19]MH_I2C_Read... [19:07:19]Read from MH i2c: E2 03 00 14 7E 00 90 00 06 [19:07:19]RAPDU: 90 00 [19:07:19]wFMCommunicate OK [19:07:19]wFMCommunicate request_size=7 [19:07:19]MH_SAM_APDU [19:07:19]CAPDU: 80 0D 02 02 02 A7 95 [19:07:19]Write to MH i2c: E2 0A 00 15 7E 80 0D 02 02 02 00 A7 95 00 00 4D [19:07:19]Write i2c OK [19:07:19]MH_I2C_Read... [19:07:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:07:20]Read from MH i2c: E2 [19:07:20]MH_I2C_Read... [19:07:20]Read from MH i2c: E2 03 00 [19:07:20]MH_I2C_Read... [19:07:20]Read from MH i2c: E2 03 00 15 7E 00 90 00 07 [19:07:20]RAPDU: 90 00 [19:07:20]wFMCommunicate OK [19:07:20]wFMCommunicate request_size=4 [19:07:20]MH_SAM_APDU [19:07:20]CAPDU: 80 0D 03 02 [19:07:20]Write to MH i2c: E2 08 00 16 7E 80 0D 03 02 00 00 00 00 0F [19:07:20]Write i2c OK [19:07:20]MH_I2C_Read... [19:07:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:07:20]Read from MH i2c: E2 [19:07:20]MH_I2C_Read... [19:07:20]Read from MH i2c: E2 0B 00 [19:07:20]MH_I2C_Read... [19:07:20]Read from MH i2c: E2 0B 00 16 7E 00 F0 6A 0F 85 E2 CF A3 0E 90 00 60 [19:07:20]RAPDU: F0 6A 0F 85 E2 CF A3 0E 90 00 [19:07:20]wFMCommunicate OK [19:07:20]SAM_PROTO_SignData done [19:07:20]FM_MakeSignedData done [19:07:20]CreateOFDProtocolMessage [19:07:20]wFMCommunicate request_size=4 [19:07:20]MH_SAM_APDU [19:07:20]CAPDU: 80 11 00 00 [19:07:20]Write to MH i2c: E2 08 00 17 7E 80 11 00 00 00 00 00 00 0F [19:07:20]Write i2c OK [19:07:20]MH_I2C_Read... [19:07:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:07:20]Read from MH i2c: E2 [19:07:20]MH_I2C_Read... [19:07:20]Read from MH i2c: E2 17 00 [19:07:20]MH_I2C_Read... [19:07:20]Read from MH i2c: E2 17 00 17 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 64 [19:07:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:07:20]wFMCommunicate OK [19:07:20]CreateOFDProtocolMessage done [19:07:20]OFDSenderStorePacket 156720 [19:07:20]StoreOFDPacket docnum=156720 [19:07:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 71 4F 04 01 29 C4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 6D 8F 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 30 64 02 00 35 04 06 00 74 0B EB 79 A7 95 F0 6A 0F 85 E2 CF A3 0E [19:07:20]CheckFolder [19:07:20]dirname=/storage/ofd_packets [19:07:20]CheckFolder done [19:07:20]ProducePacketName [19:07:20]name=ofd_packets/00156720 [19:07:20]NVStorageSaveData ofd_packets/00156720 [19:07:20]File name is /storage/ofd_packets/00156720 [19:07:20]Write 298 bytes [19:07:20]NVStorageSaveData done [19:07:20]OFDSenderStorePacket done [19:07:20]KKMCreateOFDPacket done [19:07:20]NVStorageSaveData kkm_last_timestamp [19:07:20]File name is /storage/kkm_last_timestamp [19:07:20]Write 4 bytes [19:07:20]NVStorageSaveData done [19:07:20]ExternCall_PrintAddStr [19:07:20]wPrintStart [19:07:20]Write to MH i2c: 01 00 00 18 7E 96 [19:07:20]Write i2c OK [19:07:20]MH_I2C_Read... [19:07:20]Read from MH i2c: 01 [19:07:20]MH_I2C_Read... [19:07:20]Read from MH i2c: 01 07 00 [19:07:20]MH_I2C_Read... [19:07:20]Read from MH i2c: 01 07 00 18 7E 00 00 00 00 00 FF 0F AB [19:07:20]RasterBufferAndPrint [19:07:20]line Счет N : (1)99534 [19:07:20]line ИНН: 02508201610067 [19:07:20]line Контрольно-Кассовый Чек [19:07:20]line ПРОДАЖА [19:07:20]line ТРК (МРК, ГНК) : 32 [19:07:20]line Товар: 2710194210 [19:07:20]line ДТ-К-5 [19:07:20]line 13.130 * 76.20 [19:07:20]line = 1000.51 [19:07:20]line НДС 12% НСП 1% [19:07:20]line > о реализуемом товаре [19:07:20]line ОКРУГЛЕНИЕ: -0.51 [19:07:20]line ИТОГО: 1000.00 [19:07:20]line Внесено: 1000.00 [19:07:20]line СДАЧА: 0.00 [19:07:20]line НСП 1% : 8.85 [19:07:20]line НДС 12% : 106.25 [19:07:20]line Наличными: 1000.00 [19:07:20]line Безнал.: 0.00 [19:07:20]line Место: АЗС № 143 "Партнер Нефть" [19:07:20]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [19:07:20]line СНО: Общий режим [19:07:20]line Чек 271 27.10.2024 19:07 [19:07:20]line Смена: 537 ФФД: 1.0 [19:07:20]line ЗНМ: 0300000096 [19:07:20]line РНМ: 0000000000091693 [19:07:20]line Версия ККМ: 001 [19:07:20]line ФМ: 0000000000871792 [19:07:20]line ФД: 156720 [19:07:20]line ФПД: 127594544080789 [19:07:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T190725&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156720&fm=127594544080789&tin=02508201610067®Number=0000000000091693&sum=100000 [19:07:20]OFD Sender: Processing packet 156720 [packets to send 31, broken 30] [19:07:20]ProducePacketName [19:07:20]name=ofd_packets/00156720 [19:07:20]OFD Sender: To server: pG, [19:07:20]CommunicateWithHost lk.salyk.kg:30040 [19:07:20]ConnectInit lk.salyk.kg [19:07:20]written 0, free lines is 4095 [19:07:20]Connected sock=10 [19:07:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 71 4F 04 01 29 C4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 6D 8F 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 30 64 02 00 35 04 06 00 74 0B EB 79 A7 95 F0 6A 0F 85 E2 CF A3 0E [19:07:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 06 31 47 00 56 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 31 37 39 32 10 04 04 00 30 64 02 00 F4 03 04 00 DC 34 1E 67 B6 04 01 00 00 88 9E 1B E5 70 98 7A 60 [19:07:20]CommunicateWithHost err = 0 [19:07:20]CheckOFDResponse [19:07:20]1017 (14) - 77093643461234 [19:07:20]1041 (16) - 0000000000871792 [19:07:20]1040 (4) - 156720 [19:07:20]1012 (4) - 27.10.2024 12:41 [19:07:20]1206 (1) - 0 [19:07:20]OFD Sender: Remove packet 156720 [19:07:20]ProducePacketName [19:07:20]name=ofd_packets/00156720 [19:07:20]NVStorageDeleteData [19:07:20]Write to MH i2c: 01 00 00 43 7E C1 [19:07:20]Write i2c OK [19:07:20]MH_I2C_Read... [19:07:20]Read from MH i2c: 01 [19:07:20]MH_I2C_Read... [19:07:20]Read from MH i2c: 01 07 00 [19:07:20]MH_I2C_Read... [19:07:20]Read from MH i2c: 01 07 00 43 7E 00 00 00 00 00 E4 0C B8 [19:07:20]RasterBufferAndPrint [19:07:20]line [19:07:20]line [19:07:20]line [19:07:20]line [19:07:20]line [19:07:20]written 0, free lines is 3306 [19:07:20]process_action close_receipt done [19:07:20]requested_data is exist [19:07:20]produce_requested_data [19:07:20]requested_item fm.sn is exist - process it [19:07:20]wFMCommunicate request_size=4 [19:07:20]MH_SAM_APDU [19:07:20]CAPDU: 80 11 00 00 [19:07:20]Write to MH i2c: E2 08 00 4A 7E 80 11 00 00 00 00 00 00 42 [19:07:20]Write i2c OK [19:07:20]MH_I2C_Read... [19:07:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:07:20]Read from MH i2c: E2 [19:07:20]MH_I2C_Read... [19:07:20]Read from MH i2c: E2 17 00 [19:07:20]MH_I2C_Read... [19:07:20]Read from MH i2c: E2 17 00 4A 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 97 [19:07:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:07:20]wFMCommunicate OK [19:07:20]requested_item fd.num is exist - process it [19:07:20]SAM_PROTO_GetFieldsCounters [19:07:20]wFMCommunicate request_size=4 [19:07:20]MH_SAM_APDU [19:07:20]CAPDU: 80 13 00 00 [19:07:20]Write to MH i2c: E2 08 00 4B 7E 80 13 00 00 00 00 00 00 45 [19:07:20]Write i2c OK [19:07:20]MH_I2C_Read... [19:07:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:07:21]Read from MH i2c: E2 [19:07:21]MH_I2C_Read... [19:07:21]Read from MH i2c: E2 62 00 [19:07:21]MH_I2C_Read... [19:07:21]Read from MH i2c: E2 62 00 4B 7E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 30 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 0F 01 00 00 5E 04 04 00 0F 01 00 00 57 04 04 00 10 01 00 00 19 04 04 00 00 00 00 00 90 00 4C [19:07: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 30 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 0F 01 00 00 5E 04 04 00 0F 01 00 00 57 04 04 00 10 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:07:21]wFMCommunicate OK [19:07:21]SAM_PROTO_GetFieldsCounters done [19:07:21]requested_item shift.num is exist - process it [19:07:21]requested_item shift.opened is exist - process it [19:07:21]req_shift_opened [19:07:21]FM_GetShiftState [19:07:21]SAM_PROTO_GetShiftState [19:07:21]wFMCommunicate request_size=4 [19:07:21]MH_SAM_APDU [19:07:21]CAPDU: 80 13 01 00 [19:07:21]Write to MH i2c: E2 08 00 4C 7E 80 13 01 00 00 00 00 00 47 [19:07:21]Write i2c OK [19:07:21]MH_I2C_Read... [19:07:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:07:21]Read from MH i2c: E2 [19:07:21]MH_I2C_Read... [19:07:21]Read from MH i2c: E2 0E 00 [19:07:21]MH_I2C_Read... [19:07:21]Read from MH i2c: E2 0E 00 4C 7E 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 14 [19:07:21]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [19:07:21]wFMCommunicate OK [19:07:21]SAM_PROTO_GetShiftState done [19:07:21]FM_GetShiftState done [19:07:21]req_shift_opened done [19:07:21]requested_item shift.open_date is exist - process it [19:07:21]req_shift_open_date [19:07:21]req_shift_open_date done [19:07:21]produce_requested_data done [19:07:21]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156720,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [19:07:21]process_action_free close_receipt [19:07:21]json_value_free [19:07:21]json_value_free done [19:07:21]process_json_proto returns [19:07:21]Send response to host [19:07:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156720,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [19:07:21]free response buf [19:07:21]execute_script done [19:07:21]execute_script returns [19:07:21]free content buf [19:07:21]Sock 9.Close socket [19:07:21]Sock 9.Thread stoped [19:07:21]OFD Sender: No OFD packet to send [19:07:26]OFD Sender: No OFD packet to send [19:07:31]OFD Sender: No OFD packet to send [19:07:36]OFD Sender: No OFD packet to send [19:07:41]OFD Sender: No OFD packet to send [19:07:46]OFD Sender: No OFD packet to send [19:07:51]OFD Sender: No OFD packet to send [19:07:56]OFD Sender: No OFD packet to send [19:08:01]OFD Sender: No OFD packet to send [19:08:06]OFD Sender: No OFD packet to send [19:08:11]OFD Sender: No OFD packet to send [19:08:16]OFD Sender: No OFD packet to send [19:08:21]OFD Sender: No OFD packet to send [19:08:26]OFD Sender: No OFD packet to send [19:08:31]OFD Sender: No OFD packet to send [19:08:36]OFD Sender: No OFD packet to send [19:08:41]OFD Sender: No OFD packet to send [19:08:46]OFD Sender: No OFD packet to send [19:08:51]OFD Sender: No OFD packet to send [19:08:56]OFD Sender: No OFD packet to send [19:09:01]OFD Sender: No OFD packet to send [19:09:06]OFD Sender: No OFD packet to send [19:09:11]OFD Sender: No OFD packet to send [19:09:16]OFD Sender: No OFD packet to send [19:09:21]OFD Sender: No OFD packet to send [19:09:26]OFD Sender: No OFD packet to send [19:09:31]OFD Sender: No OFD packet to send [19:09:36]OFD Sender: No OFD packet to send [19:09:41]OFD Sender: No OFD packet to send [19:09:46]OFD Sender: No OFD packet to send [19:09:51]OFD Sender: No OFD packet to send [19:09:56]OFD Sender: No OFD packet to send [19:10:01]OFD Sender: No OFD packet to send [19:10:06]OFD Sender: No OFD packet to send [19:10:10]accept exits with 8 [19:10:10]New connection [19:10:10]New thread 3066977636 created [19:10:10]Thread 3066834276 joined [19:10:10]Waiting for new connection... [19:10:10] Sock 8.Parse request [19:10:10]Sock 8.Check first char [19:10:10]Sock 8.First char is OK [19:10:10]request: POST /json_proto HTTP/1.0 [19:10:10]Method: POST [19:10:10]URL: /json_proto [19:10:10]Method is POST - this is cgi request [19:10:10]url: /json_proto [19:10:10]query_string will be loaded in cgi processing [19:10:10]execute_cgi json_proto POST (null) [19:10:10]execute_cgi path=json_proto method=POST [19:10:10]POST find Content-Length [19:10:10]Host: 172.17.63.3:8080 [19:10:10]Content-Length: 676 [19:10:10]Content-Type: application/json [19:10:10] [19:10:10]POST finish read [19:10:10]Found Content-Length = 676 [19:10:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99535", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:10:10]execute_script... [19:10: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)99535", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:10:10]POST & json_proto [19:10:10]process_json_proto [19:10:10]json parsed OK: [19:10:10]protocol is kg_v1.0 [19:10:10]action value=close_receipt [19:10:10]process_action close_receipt [19:10:10]cmd_close_receipt [19:10:10]MH_GetDate [19:10:10]Write to MH i2c: F0 00 00 4D 7E BA [19:10:10]Write i2c OK [19:10:10]MH_I2C_Read... [19:10:10]Read from MH i2c: F0 [19:10:10]MH_I2C_Read... [19:10:10]Read from MH i2c: F0 09 00 [19:10:10]MH_I2C_Read... [19:10:10]Read from MH i2c: F0 09 00 4D 7E 00 19 90 1E 67 50 D1 6C 64 E2 [19:10:10]GetLastDocTimeStamp 1730056045 [19:10:10]current date 1730056217 [19:10:10]FM_GetShiftState [19:10:10]SAM_PROTO_GetShiftState [19:10:10]wFMCommunicate request_size=4 [19:10:10]MH_SAM_APDU [19:10:10]CAPDU: 80 13 01 00 [19:10:10]Write to MH i2c: E2 08 00 4E 7E 80 13 01 00 00 00 00 00 49 [19:10:10]Write i2c OK [19:10:10]MH_I2C_Read... [19:10:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:10:10]Read from MH i2c: E2 [19:10:10]MH_I2C_Read... [19:10:10]Read from MH i2c: E2 0E 00 [19:10:10]MH_I2C_Read... [19:10:10]Read from MH i2c: E2 0E 00 4E 7E 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 16 [19:10:10]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [19:10:10]wFMCommunicate OK [19:10:10]SAM_PROTO_GetShiftState done [19:10:10]FM_GetShiftState done [19:10:10]opened in 1729989044 [19:10:10]opened+sec_in_day 1730075444 [19:10:10]quantity*price = 50041 [19:10:10]sum+1 = 50042 [19:10:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 272 27.10.2024 19:10 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156721 ФПД: 252932124873824 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T191017&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156721&fm=252932124873824&tin=02508201610067®Number=0000000000091693&sum=50000 [19:10:11]StoreToDocumentArchive [19:10:11]shift 537 fd 156721 [19:10:11]save to /storage/0537/doc_00156721 [19:10:11]save last doc name /storage/0537/doc_00156721 to /storage/kkm_last_doc_name [19:10:11]save OK [19:10:11]Clear old archive folders... [19:10:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:10:11]tlvbuf is 01888FE0 [19:10:11]SAM_PROTO_ClearQueue [19:10:11]wFMCommunicate request_size=4 [19:10:11]MH_SAM_APDU [19:10:11]CAPDU: 80 09 00 00 [19:10:11]Write to MH i2c: E2 08 00 5B 7E 80 09 00 00 00 00 00 00 4B [19:10:11]Write i2c OK [19:10:11]MH_I2C_Read... [19:10:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:10:11]Read from MH i2c: E2 [19:10:11]MH_I2C_Read... [19:10:11]Read from MH i2c: E2 03 00 [19:10:11]MH_I2C_Read... [19:10:11]Read from MH i2c: E2 03 00 5B 7E 00 90 00 4D [19:10:11]RAPDU: 90 00 [19:10:11]wFMCommunicate OK [19:10:11]SAM_PROTO_ClearQueue done [19:10:11]KKMCreateOFDPacket [19:10:11]OFDProtocolAddRootSTLVToBuf [19:10:11]FM_MakeSignedData [19:10:11]FM_MakeSignedData [19:10:11]SAM_PROTO_SignData [19:10:11]wFMCommunicate request_size=4 [19:10:11]MH_SAM_APDU [19:10:11]CAPDU: 80 0D 01 02 [19:10:11]Write to MH i2c: E2 08 00 5C 7E 80 0D 01 02 00 00 00 00 53 [19:10:11]Write i2c OK [19:10:11]MH_I2C_Read... [19:10:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:10:11]Read from MH i2c: E2 [19:10:11]MH_I2C_Read... [19:10:11]Read from MH i2c: E2 03 00 [19:10:11]MH_I2C_Read... [19:10:11]Read from MH i2c: E2 03 00 5C 7E 00 90 00 4E [19:10:11]RAPDU: 90 00 [19:10:11]wFMCommunicate OK [19:10:11]wFMCommunicate request_size=255 [19:10:11]MH_SAM_APDU [19:10:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 19 90 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 31 64 02 00 35 04 06 00 E6 [19:10:11]Write to MH i2c: E2 02 01 5D 7E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 19 90 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 31 64 02 00 35 04 06 00 E6 00 00 BE [19:10:11]Write i2c OK [19:10:11]MH_I2C_Read... [19:10:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:10:11]Read from MH i2c: E2 [19:10:11]MH_I2C_Read... [19:10:11]Read from MH i2c: E2 03 00 [19:10:11]MH_I2C_Read... [19:10:11]Read from MH i2c: E2 03 00 5D 7E 00 90 00 4F [19:10:11]RAPDU: 90 00 [19:10:11]wFMCommunicate OK [19:10:11]wFMCommunicate request_size=10 [19:10:11]MH_SAM_APDU [19:10:11]CAPDU: 80 0D 02 02 05 0A 59 74 94 60 [19:10:11]Write to MH i2c: E2 0D 00 5E 7E 80 0D 02 02 05 00 0A 59 74 94 60 00 00 2B [19:10:11]Write i2c OK [19:10:11]MH_I2C_Read... [19:10:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:10:12]Read from MH i2c: E2 [19:10:12]MH_I2C_Read... [19:10:12]Read from MH i2c: E2 03 00 [19:10:12]MH_I2C_Read... [19:10:12]Read from MH i2c: E2 03 00 5E 7E 00 90 00 50 [19:10:12]RAPDU: 90 00 [19:10:12]wFMCommunicate OK [19:10:12]wFMCommunicate request_size=4 [19:10:12]MH_SAM_APDU [19:10:12]CAPDU: 80 0D 03 02 [19:10:12]Write to MH i2c: E2 08 00 5F 7E 80 0D 03 02 00 00 00 00 58 [19:10:12]Write i2c OK [19:10:12]MH_I2C_Read... [19:10:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:10:12]Read from MH i2c: E2 [19:10:12]MH_I2C_Read... [19:10:12]Read from MH i2c: E2 0B 00 [19:10:12]MH_I2C_Read... [19:10:12]Read from MH i2c: E2 0B 00 5F 7E 00 4E 73 11 B3 88 38 D9 B7 90 00 2E [19:10:12]RAPDU: 4E 73 11 B3 88 38 D9 B7 90 00 [19:10:12]wFMCommunicate OK [19:10:12]SAM_PROTO_SignData done [19:10:12]FM_MakeSignedData done [19:10:12]CreateOFDProtocolMessage [19:10:12]wFMCommunicate request_size=4 [19:10:12]MH_SAM_APDU [19:10:12]CAPDU: 80 11 00 00 [19:10:12]Write to MH i2c: E2 08 00 60 7E 80 11 00 00 00 00 00 00 58 [19:10:12]Write i2c OK [19:10:12]MH_I2C_Read... [19:10:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:10:12]Read from MH i2c: E2 [19:10:12]MH_I2C_Read... [19:10:12]Read from MH i2c: E2 17 00 [19:10:12]MH_I2C_Read... [19:10:12]Read from MH i2c: E2 17 00 60 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 AD [19:10:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:10:12]wFMCommunicate OK [19:10:12]CreateOFDProtocolMessage done [19:10:12]OFDSenderStorePacket 156721 [19:10:12]StoreOFDPacket docnum=156721 [19:10:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 79 18 07 01 1C 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 19 90 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 31 64 02 00 35 04 06 00 E6 0A 59 74 94 60 4E 73 11 B3 88 38 D9 B7 [19:10:12]CheckFolder [19:10:12]dirname=/storage/ofd_packets [19:10:12]CheckFolder done [19:10:12]ProducePacketName [19:10:12]name=ofd_packets/00156721 [19:10:12]NVStorageSaveData ofd_packets/00156721 [19:10:12]File name is /storage/ofd_packets/00156721 [19:10:12]Write 301 bytes [19:10:12]NVStorageSaveData done [19:10:12]OFDSenderStorePacket done [19:10:12]KKMCreateOFDPacket done [19:10:12]NVStorageSaveData kkm_last_timestamp [19:10:12]File name is /storage/kkm_last_timestamp [19:10:12]Write 4 bytes [19:10:12]NVStorageSaveData done [19:10:12]ExternCall_PrintAddStr [19:10:12]wPrintStart [19:10:12]Write to MH i2c: 01 00 00 61 7E DF [19:10:12]Write i2c OK [19:10:12]MH_I2C_Read... [19:10:12]Read from MH i2c: 01 [19:10:12]MH_I2C_Read... [19:10:12]Read from MH i2c: 01 07 00 [19:10:12]MH_I2C_Read... [19:10:12]Read from MH i2c: 01 07 00 61 7E 00 00 00 00 00 FF 0F F4 [19:10:12]RasterBufferAndPrint [19:10:12]line Счет N : (1)99535 [19:10:12]line ИНН: 02508201610067 [19:10:12]line Контрольно-Кассовый Чек [19:10:12]line ПРОДАЖА [19:10:12]line ТРК (МРК, ГНК) : 31 [19:10:12]line Товар: 2710124130 [19:10:12]line Аи-92-К-5 [19:10:12]line 7.480 * 66.90 [19:10:12]line = 500.41 [19:10:12]line НДС 12% НСП 1% [19:10:12]line > о реализуемом товаре [19:10:12]line ОКРУГЛЕНИЕ: -0.41 [19:10:12]line ИТОГО: 500.00 [19:10:12]line Внесено: 500.00 [19:10:12]line СДАЧА: 0.00 [19:10:12]line НСП 1% : 4.43 [19:10:12]line НДС 12% : 53.14 [19:10:12]line Наличными: 500.00 [19:10:12]line Безнал.: 0.00 [19:10:12]line Место: АЗС № 143 "Партнер Нефть" [19:10:12]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [19:10:12]line СНО: Общий режим [19:10:12]line Чек 272 27.10.2024 19:10 [19:10:12]line Смена: 537 ФФД: 1.0 [19:10:12]line ЗНМ: 0300000096 [19:10:12]line РНМ: 0000000000091693 [19:10:12]line Версия ККМ: 001 [19:10:12]line ФМ: 0000000000871792 [19:10:12]line ФД: 156721 [19:10:12]line ФПД: 252932124873824 [19:10:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T191017&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156721&fm=252932124873824&tin=02508201610067®Number=0000000000091693&sum=50000 [19:10:12]OFD Sender: Processing packet 156721 [packets to send 31, broken 30] [19:10:12]ProducePacketName [19:10:12]name=ofd_packets/00156721 [19:10:12]OFD Sender: To server: pG, [19:10:12]CommunicateWithHost lk.salyk.kg:30040 [19:10:12]ConnectInit lk.salyk.kg [19:10:12]written 0, free lines is 4095 [19:10:12]Connected sock=10 [19:10:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 79 18 07 01 1C 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 19 90 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 31 64 02 00 35 04 06 00 E6 0A 59 74 94 60 4E 73 11 B3 88 38 D9 B7 [19:10:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 36 F1 47 00 9B AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 31 64 02 00 F4 03 04 00 88 35 1E 67 B6 04 01 00 00 0D 66 89 8A 0D AC 9A B2 [19:10:12]CommunicateWithHost err = 0 [19:10:12]CheckOFDResponse [19:10:12]1017 (14) - 77093643461234 [19:10:12]1041 (16) - 0000000000871792 [19:10:12]1040 (4) - 156721 [19:10:12]1012 (4) - 27.10.2024 12:43 [19:10:12]1206 (1) - 0 [19:10:12]OFD Sender: Remove packet 156721 [19:10:12]ProducePacketName [19:10:12]name=ofd_packets/00156721 [19:10:12]NVStorageDeleteData [19:10:12]Write to MH i2c: 01 00 00 8C 7E 0A [19:10:12]Write i2c OK [19:10:12]MH_I2C_Read... [19:10:12]Read from MH i2c: 01 [19:10:12]MH_I2C_Read... [19:10:12]Read from MH i2c: 01 07 00 [19:10:12]MH_I2C_Read... [19:10:12]Read from MH i2c: 01 07 00 8C 7E 00 00 00 00 00 F5 0C 12 [19:10:12]RasterBufferAndPrint [19:10:12]line [19:10:12]line [19:10:12]line [19:10:12]line [19:10:12]line [19:10:12]written 0, free lines is 3323 [19:10:12]process_action close_receipt done [19:10:12]requested_data is exist [19:10:12]produce_requested_data [19:10:12]requested_item fm.sn is exist - process it [19:10:12]wFMCommunicate request_size=4 [19:10:12]MH_SAM_APDU [19:10:12]CAPDU: 80 11 00 00 [19:10:12]Write to MH i2c: E2 08 00 93 7E 80 11 00 00 00 00 00 00 8B [19:10:12]Write i2c OK [19:10:12]MH_I2C_Read... [19:10:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:10:12]Read from MH i2c: E2 [19:10:12]MH_I2C_Read... [19:10:12]Read from MH i2c: E2 17 00 [19:10:12]MH_I2C_Read... [19:10:12]Read from MH i2c: E2 17 00 93 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 E0 [19:10:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:10:12]wFMCommunicate OK [19:10:12]requested_item fd.num is exist - process it [19:10:12]SAM_PROTO_GetFieldsCounters [19:10:12]wFMCommunicate request_size=4 [19:10:12]MH_SAM_APDU [19:10:12]CAPDU: 80 13 00 00 [19:10:12]Write to MH i2c: E2 08 00 94 7E 80 13 00 00 00 00 00 00 8E [19:10:12]Write i2c OK [19:10:12]MH_I2C_Read... [19:10:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:10:13]Read from MH i2c: E2 [19:10:13]MH_I2C_Read... [19:10:13]Read from MH i2c: E2 62 00 [19:10:13]MH_I2C_Read... [19:10:13]Read from MH i2c: E2 62 00 94 7E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 31 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 10 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 11 01 00 00 19 04 04 00 00 00 00 00 90 00 99 [19:10:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 31 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 10 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 11 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:10:13]wFMCommunicate OK [19:10:13]SAM_PROTO_GetFieldsCounters done [19:10:13]requested_item shift.num is exist - process it [19:10:13]requested_item shift.opened is exist - process it [19:10:13]req_shift_opened [19:10:13]FM_GetShiftState [19:10:13]SAM_PROTO_GetShiftState [19:10:13]wFMCommunicate request_size=4 [19:10:13]MH_SAM_APDU [19:10:13]CAPDU: 80 13 01 00 [19:10:13]Write to MH i2c: E2 08 00 95 7E 80 13 01 00 00 00 00 00 90 [19:10:13]Write i2c OK [19:10:13]MH_I2C_Read... [19:10:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:10:13]Read from MH i2c: E2 [19:10:13]MH_I2C_Read... [19:10:13]Read from MH i2c: E2 0E 00 [19:10:13]MH_I2C_Read... [19:10:13]Read from MH i2c: E2 0E 00 95 7E 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 5D [19:10:13]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [19:10:13]wFMCommunicate OK [19:10:13]SAM_PROTO_GetShiftState done [19:10:13]FM_GetShiftState done [19:10:13]req_shift_opened done [19:10:13]requested_item shift.open_date is exist - process it [19:10:13]req_shift_open_date [19:10:13]req_shift_open_date done [19:10:13]produce_requested_data done [19:10:13]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156721,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [19:10:13]process_action_free close_receipt [19:10:13]json_value_free [19:10:13]json_value_free done [19:10:13]process_json_proto returns [19:10:13]Send response to host [19:10:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156721,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [19:10:13]free response buf [19:10:13]execute_script done [19:10:13]execute_script returns [19:10:13]free content buf [19:10:13]Sock 8.Close socket [19:10:13]Sock 8.Thread stoped [19:10:13]OFD Sender: No OFD packet to send [19:10:18]OFD Sender: No OFD packet to send [19:10:23]OFD Sender: No OFD packet to send [19:10:28]OFD Sender: No OFD packet to send [19:10:33]OFD Sender: No OFD packet to send [19:10:38]OFD Sender: No OFD packet to send [19:10:43]OFD Sender: No OFD packet to send [19:10:48]OFD Sender: No OFD packet to send [19:10:53]OFD Sender: No OFD packet to send [19:10:58]OFD Sender: No OFD packet to send [19:11:03]OFD Sender: No OFD packet to send [19:11:08]OFD Sender: No OFD packet to send [19:11:13]OFD Sender: No OFD packet to send [19:11:18]OFD Sender: No OFD packet to send [19:11:23]OFD Sender: No OFD packet to send [19:11:28]accept exits with 9 [19:11:28]New connection [19:11:28]New thread 3066834276 created [19:11:28]Thread 3066977636 joined [19:11:28]Waiting for new connection... [19:11:28] Sock 9.Parse request [19:11:28]Sock 9.Check first char [19:11:28]Sock 9.First char is OK [19:11:28]request: POST /json_proto HTTP/1.0 [19:11:28]Method: POST [19:11:28]URL: /json_proto [19:11:28]Method is POST - this is cgi request [19:11:28]url: /json_proto [19:11:28]query_string will be loaded in cgi processing [19:11:28]execute_cgi json_proto POST (null) [19:11:28]execute_cgi path=json_proto method=POST [19:11:28]POST find Content-Length [19:11:28]Host: 172.17.63.3:8080 [19:11:28]Content-Length: 676 [19:11:28]Content-Type: application/json [19:11:28] [19:11:28]POST finish read [19:11:28]Found Content-Length = 676 [19:11:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99536", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:11:28]execute_script... [19: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)99536", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:11:28]POST & json_proto [19:11:28]process_json_proto [19:11:28]json parsed OK: [19:11:28]protocol is kg_v1.0 [19:11:28]action value=close_receipt [19:11:28]process_action close_receipt [19:11:28]cmd_close_receipt [19:11:28]MH_GetDate [19:11:28]Write to MH i2c: F0 00 00 96 7E 03 [19:11:28]Write i2c OK [19:11:28]MH_I2C_Read... [19:11:28]Read from MH i2c: F0 [19:11:28]MH_I2C_Read... [19:11:28]Read from MH i2c: F0 09 00 [19:11:28]MH_I2C_Read... [19:11:28]Read from MH i2c: F0 09 00 96 7E 00 67 90 1E 67 50 D1 6C 64 79 [19:11:28]GetLastDocTimeStamp 1730056217 [19:11:28]current date 1730056295 [19:11:28]FM_GetShiftState [19:11:28]SAM_PROTO_GetShiftState [19:11:28]wFMCommunicate request_size=4 [19:11:28]MH_SAM_APDU [19:11:28]CAPDU: 80 13 01 00 [19:11:28]Write to MH i2c: E2 08 00 97 7E 80 13 01 00 00 00 00 00 92 [19:11:28]Write i2c OK [19:11:28]MH_I2C_Read... [19:11:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:11:28]Read from MH i2c: E2 [19:11:28]MH_I2C_Read... [19:11:28]Read from MH i2c: E2 0E 00 [19:11:28]MH_I2C_Read... [19:11:28]Read from MH i2c: E2 0E 00 97 7E 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 5F [19:11:28]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [19:11:28]wFMCommunicate OK [19:11:28]SAM_PROTO_GetShiftState done [19:11:28]FM_GetShiftState done [19:11:28]opened in 1729989044 [19:11:28]opened+sec_in_day 1730075444 [19:11:28]quantity*price = 40006 [19:11:28]sum+1 = 40007 [19:11:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 273 27.10.2024 19:11 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156722 ФПД: 45105686016693 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T191135&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156722&fm=45105686016693&tin=02508201610067®Number=0000000000091693&sum=40000 [19:11:29]StoreToDocumentArchive [19:11:29]shift 537 fd 156722 [19:11:29]save to /storage/0537/doc_00156722 [19:11:29]save last doc name /storage/0537/doc_00156722 to /storage/kkm_last_doc_name [19:11:29]save OK [19:11:29]Clear old archive folders... [19:11:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:11:29]tlvbuf is 01827C50 [19:11:29]SAM_PROTO_ClearQueue [19:11:29]wFMCommunicate request_size=4 [19:11:29]MH_SAM_APDU [19:11:29]CAPDU: 80 09 00 00 [19:11:29]Write to MH i2c: E2 08 00 A4 7E 80 09 00 00 00 00 00 00 94 [19:11:29]Write i2c OK [19:11:29]MH_I2C_Read... [19:11:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:11:29]Read from MH i2c: E2 [19:11:29]MH_I2C_Read... [19:11:29]Read from MH i2c: E2 03 00 [19:11:29]MH_I2C_Read... [19:11:29]Read from MH i2c: E2 03 00 A4 7E 00 90 00 96 [19:11:29]RAPDU: 90 00 [19:11:29]wFMCommunicate OK [19:11:29]SAM_PROTO_ClearQueue done [19:11:29]KKMCreateOFDPacket [19:11:29]OFDProtocolAddRootSTLVToBuf [19:11:29]FM_MakeSignedData [19:11:29]FM_MakeSignedData [19:11:29]SAM_PROTO_SignData [19:11:29]wFMCommunicate request_size=4 [19:11:29]MH_SAM_APDU [19:11:29]CAPDU: 80 0D 01 02 [19:11:29]Write to MH i2c: E2 08 00 A5 7E 80 0D 01 02 00 00 00 00 9C [19:11:29]Write i2c OK [19:11:29]MH_I2C_Read... [19:11:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:11:29]Read from MH i2c: E2 [19:11:29]MH_I2C_Read... [19:11:29]Read from MH i2c: E2 03 00 [19:11:29]MH_I2C_Read... [19:11:29]Read from MH i2c: E2 03 00 A5 7E 00 90 00 97 [19:11:29]RAPDU: 90 00 [19:11:29]wFMCommunicate OK [19:11:29]wFMCommunicate request_size=255 [19:11:29]MH_SAM_APDU [19:11: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 67 90 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 32 64 02 00 35 04 06 00 29 [19:11:29]Write to MH i2c: E2 02 01 A6 7E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 67 90 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 32 64 02 00 35 04 06 00 29 00 00 69 [19:11:29]Write i2c OK [19:11:29]MH_I2C_Read... [19:11:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:11:29]Read from MH i2c: E2 [19:11:29]MH_I2C_Read... [19:11:29]Read from MH i2c: E2 03 00 [19:11:29]MH_I2C_Read... [19:11:29]Read from MH i2c: E2 03 00 A6 7E 00 90 00 98 [19:11:29]RAPDU: 90 00 [19:11:29]wFMCommunicate OK [19:11:29]wFMCommunicate request_size=10 [19:11:29]MH_SAM_APDU [19:11:29]CAPDU: 80 0D 02 02 05 05 FC 64 72 B5 [19:11:29]Write to MH i2c: E2 0D 00 A7 7E 80 0D 02 02 05 00 05 FC 64 72 B5 00 00 35 [19:11:29]Write i2c OK [19:11:29]MH_I2C_Read... [19:11:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:11:29]Read from MH i2c: E2 [19:11:29]MH_I2C_Read... [19:11:29]Read from MH i2c: E2 03 00 [19:11:29]MH_I2C_Read... [19:11:29]Read from MH i2c: E2 03 00 A7 7E 00 90 00 99 [19:11:29]RAPDU: 90 00 [19:11:29]wFMCommunicate OK [19:11:29]wFMCommunicate request_size=4 [19:11:29]MH_SAM_APDU [19:11:29]CAPDU: 80 0D 03 02 [19:11:29]Write to MH i2c: E2 08 00 A8 7E 80 0D 03 02 00 00 00 00 A1 [19:11:29]Write i2c OK [19:11:29]MH_I2C_Read... [19:11:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:11:29]Read from MH i2c: E2 [19:11:29]MH_I2C_Read... [19:11:29]Read from MH i2c: E2 0B 00 [19:11:29]MH_I2C_Read... [19:11:29]Read from MH i2c: E2 0B 00 A8 7E 00 47 BE A7 15 CE 66 FB 88 90 00 1A [19:11:29]RAPDU: 47 BE A7 15 CE 66 FB 88 90 00 [19:11:29]wFMCommunicate OK [19:11:29]SAM_PROTO_SignData done [19:11:29]FM_MakeSignedData done [19:11:29]CreateOFDProtocolMessage [19:11:29]wFMCommunicate request_size=4 [19:11:29]MH_SAM_APDU [19:11:29]CAPDU: 80 11 00 00 [19:11:29]Write to MH i2c: E2 08 00 A9 7E 80 11 00 00 00 00 00 00 A1 [19:11:29]Write i2c OK [19:11:29]MH_I2C_Read... [19:11:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:11:29]Read from MH i2c: E2 [19:11:29]MH_I2C_Read... [19:11:29]Read from MH i2c: E2 17 00 [19:11:29]MH_I2C_Read... [19:11:29]Read from MH i2c: E2 17 00 A9 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 F6 [19:11:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:11:29]wFMCommunicate OK [19:11:29]CreateOFDProtocolMessage done [19:11:29]OFDSenderStorePacket 156722 [19:11:29]StoreOFDPacket docnum=156722 [19:11:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 07 63 07 01 C6 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 67 90 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 32 64 02 00 35 04 06 00 29 05 FC 64 72 B5 47 BE A7 15 CE 66 FB 88 [19:11:29]CheckFolder [19:11:29]dirname=/storage/ofd_packets [19:11:29]CheckFolder done [19:11:29]ProducePacketName [19:11:29]name=ofd_packets/00156722 [19:11:29]NVStorageSaveData ofd_packets/00156722 [19:11:29]File name is /storage/ofd_packets/00156722 [19:11:29]Write 301 bytes [19:11:29]NVStorageSaveData done [19:11:29]OFDSenderStorePacket done [19:11:29]KKMCreateOFDPacket done [19:11:29]NVStorageSaveData kkm_last_timestamp [19:11:29]File name is /storage/kkm_last_timestamp [19:11:29]Write 4 bytes [19:11:29]NVStorageSaveData done [19:11:29]ExternCall_PrintAddStr [19:11:29]wPrintStart [19:11:29]Write to MH i2c: 01 00 00 AA 7E 28 [19:11:29]Write i2c OK [19:11:29]MH_I2C_Read... [19:11:29]Read from MH i2c: 01 [19:11:29]MH_I2C_Read... [19:11:29]Read from MH i2c: 01 07 00 [19:11:29]MH_I2C_Read... [19:11:29]Read from MH i2c: 01 07 00 AA 7E 00 00 00 00 00 FF 0F 3D [19:11:29]RasterBufferAndPrint [19:11:29]line Счет N : (1)99536 [19:11:29]line ИНН: 02508201610067 [19:11:29]line Контрольно-Кассовый Чек [19:11:29]line ПРОДАЖА [19:11:29]line ТРК (МРК, ГНК) : 31 [19:11:29]line Товар: 2710124130 [19:11:29]line Аи-92-К-5 [19:11:29]line 5.980 * 66.90 [19:11:29]line = 400.06 [19:11:29]line НДС 12% НСП 1% [19:11:29]line > о реализуемом товаре [19:11:29]line ОКРУГЛЕНИЕ: -0.06 [19:11:29]line ИТОГО: 400.00 [19:11:29]line Внесено: 400.00 [19:11:29]line СДАЧА: 0.00 [19:11:29]line НСП 1% : 3.54 [19:11:29]line НДС 12% : 42.48 [19:11:29]line Наличными: 400.00 [19:11:29]line Безнал.: 0.00 [19:11:29]line Место: АЗС № 143 "Партнер Нефть" [19:11:29]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [19:11:29]line СНО: Общий режим [19:11:29]line Чек 273 27.10.2024 19:11 [19:11:29]line Смена: 537 ФФД: 1.0 [19:11:29]line ЗНМ: 0300000096 [19:11:29]line РНМ: 0000000000091693 [19:11:29]line Версия ККМ: 001 [19:11:29]line ФМ: 0000000000871792 [19:11:29]line ФД: 156722 [19:11:29]line ФПД: 45105686016693 [19:11:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T191135&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156722&fm=45105686016693&tin=02508201610067®Number=0000000000091693&sum=40000 [19:11:30]OFD Sender: Processing packet 156722 [packets to send 31, broken 30] [19:11:30]ProducePacketName [19:11:30]name=ofd_packets/00156722 [19:11:30]OFD Sender: To server: pG, [19:11:30]CommunicateWithHost lk.salyk.kg:30040 [19:11:30]ConnectInit lk.salyk.kg [19:11:30]written 0, free lines is 4095 [19:11:30]Connected sock=10 [19: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 31 37 39 32 0F 01 00 00 07 63 07 01 C6 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 67 90 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 32 64 02 00 35 04 06 00 29 05 FC 64 72 B5 47 BE A7 15 CE 66 FB 88 [19:11:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 A5 E9 47 00 91 5F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 32 64 02 00 F4 03 04 00 D6 35 1E 67 B6 04 01 00 00 F4 92 0D C2 37 84 38 10 [19:11:30]CommunicateWithHost err = 0 [19:11:30]CheckOFDResponse [19:11:30]1017 (14) - 77093643461234 [19:11:30]1041 (16) - 0000000000871792 [19:11:30]1040 (4) - 156722 [19:11:30]1012 (4) - 27.10.2024 12:45 [19:11:30]1206 (1) - 0 [19:11:30]OFD Sender: Remove packet 156722 [19:11:30]ProducePacketName [19:11:30]name=ofd_packets/00156722 [19:11:30]NVStorageDeleteData [19:11:30]Write to MH i2c: 01 00 00 D5 7E 53 [19:11:30]Write i2c OK [19:11:30]MH_I2C_Read... [19:11:30]Read from MH i2c: 01 [19:11:30]MH_I2C_Read... [19:11:30]Read from MH i2c: 01 07 00 [19:11:30]MH_I2C_Read... [19:11:30]Read from MH i2c: 01 07 00 D5 7E 00 00 00 00 00 EC 0C 52 [19:11:30]RasterBufferAndPrint [19:11:30]line [19:11:30]line [19:11:30]line [19:11:30]line [19:11:30]line [19:11:30]written 0, free lines is 3314 [19:11:30]process_action close_receipt done [19:11:30]requested_data is exist [19:11:30]produce_requested_data [19:11:30]requested_item fm.sn is exist - process it [19:11:30]wFMCommunicate request_size=4 [19:11:30]MH_SAM_APDU [19:11:30]CAPDU: 80 11 00 00 [19:11:30]Write to MH i2c: E2 08 00 DC 7E 80 11 00 00 00 00 00 00 D4 [19:11:30]Write i2c OK [19:11:30]MH_I2C_Read... [19:11:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:11:30]Read from MH i2c: E2 [19:11:30]MH_I2C_Read... [19:11:30]Read from MH i2c: E2 17 00 [19:11:30]MH_I2C_Read... [19:11:30]Read from MH i2c: E2 17 00 DC 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 29 [19:11:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:11:30]wFMCommunicate OK [19:11:30]requested_item fd.num is exist - process it [19:11:30]SAM_PROTO_GetFieldsCounters [19:11:30]wFMCommunicate request_size=4 [19:11:30]MH_SAM_APDU [19:11:30]CAPDU: 80 13 00 00 [19:11:30]Write to MH i2c: E2 08 00 DD 7E 80 13 00 00 00 00 00 00 D7 [19:11:30]Write i2c OK [19:11:30]MH_I2C_Read... [19:11:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:11:30]Read from MH i2c: E2 [19:11:30]MH_I2C_Read... [19:11:30]Read from MH i2c: E2 62 00 [19:11:30]MH_I2C_Read... [19:11:30]Read from MH i2c: E2 62 00 DD 7E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 32 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 11 01 00 00 5E 04 04 00 11 01 00 00 57 04 04 00 12 01 00 00 19 04 04 00 00 00 00 00 90 00 E6 [19:11:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 32 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 11 01 00 00 5E 04 04 00 11 01 00 00 57 04 04 00 12 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:11:30]wFMCommunicate OK [19:11:30]SAM_PROTO_GetFieldsCounters done [19:11:30]requested_item shift.num is exist - process it [19:11:30]requested_item shift.opened is exist - process it [19:11:30]req_shift_opened [19:11:30]FM_GetShiftState [19:11:30]SAM_PROTO_GetShiftState [19:11:30]wFMCommunicate request_size=4 [19:11:30]MH_SAM_APDU [19:11:30]CAPDU: 80 13 01 00 [19:11:30]Write to MH i2c: E2 08 00 DE 7E 80 13 01 00 00 00 00 00 D9 [19:11:30]Write i2c OK [19:11:30]MH_I2C_Read... [19:11:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:11:30]Read from MH i2c: E2 [19:11:30]MH_I2C_Read... [19:11:30]Read from MH i2c: E2 0E 00 [19:11:30]MH_I2C_Read... [19:11:30]Read from MH i2c: E2 0E 00 DE 7E 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 A6 [19:11:30]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [19:11:30]wFMCommunicate OK [19:11:30]SAM_PROTO_GetShiftState done [19:11:30]FM_GetShiftState done [19:11:30]req_shift_opened done [19:11:30]requested_item shift.open_date is exist - process it [19:11:30]req_shift_open_date [19:11:30]req_shift_open_date done [19:11:30]produce_requested_data done [19:11:30]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156722,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [19:11:30]process_action_free close_receipt [19:11:30]json_value_free [19:11:30]json_value_free done [19:11:30]process_json_proto returns [19:11:30]Send response to host [19:11:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156722,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [19:11:30]free response buf [19:11:30]execute_script done [19:11:30]execute_script returns [19:11:30]free content buf [19:11:30]Sock 9.Close socket [19:11:30]Sock 9.Thread stoped [19:11:30]OFD Sender: No OFD packet to send [19:11:35]OFD Sender: No OFD packet to send [19:11:40]OFD Sender: No OFD packet to send [19:11:45]OFD Sender: No OFD packet to send [19:11:50]OFD Sender: No OFD packet to send [19:11:56]OFD Sender: No OFD packet to send [19:12:01]OFD Sender: No OFD packet to send [19:12:06]OFD Sender: No OFD packet to send [19:12:11]OFD Sender: No OFD packet to send [19:12:16]OFD Sender: No OFD packet to send [19:12:21]OFD Sender: No OFD packet to send [19:12:26]OFD Sender: No OFD packet to send [19:12:31]OFD Sender: No OFD packet to send [19:12:36]OFD Sender: No OFD packet to send [19:12:41]OFD Sender: No OFD packet to send [19:12:46]OFD Sender: No OFD packet to send [19:12:51]OFD Sender: No OFD packet to send [19:12:56]OFD Sender: No OFD packet to send [19:13:01]OFD Sender: No OFD packet to send [19:13:06]OFD Sender: No OFD packet to send [19:13:11]OFD Sender: No OFD packet to send [19:13:16]OFD Sender: No OFD packet to send [19:13:21]OFD Sender: No OFD packet to send [19:13:23]accept exits with 8 [19:13:23]New connection [19:13:23]New thread 3066977636 created [19:13:23]Thread 3066834276 joined [19:13:23]Waiting for new connection... [19:13:23] Sock 8.Parse request [19:13:23]Sock 8.Check first char [19:13:23]Sock 8.First char is OK [19:13:23]request: POST /json_proto HTTP/1.0 [19:13:23]Method: POST [19:13:23]URL: /json_proto [19:13:23]Method is POST - this is cgi request [19:13:23]url: /json_proto [19:13:23]query_string will be loaded in cgi processing [19:13:23]execute_cgi json_proto POST (null) [19:13:23]execute_cgi path=json_proto method=POST [19:13:23]POST find Content-Length [19:13:23]Host: 172.17.63.3:8080 [19:13:23]Content-Length: 765 [19:13:23]Content-Type: application/json [19:13:23] [19:13:23]POST finish read [19:13:23]Found Content-Length = 765 [19:13:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99537", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:13:23]execute_script... [19:13: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)99537", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:13:23]POST & json_proto [19:13:23]process_json_proto [19:13:23]json parsed OK: [19:13:23]protocol is kg_v1.0 [19:13:23]action value=close_receipt [19:13:23]process_action close_receipt [19:13:23]cmd_close_receipt [19:13:23]MH_GetDate [19:13:23]Write to MH i2c: F0 00 00 DF 7E 4C [19:13:23]Write i2c OK [19:13:23]MH_I2C_Read... [19:13:23]Read from MH i2c: F0 [19:13:23]MH_I2C_Read... [19:13:23]Read from MH i2c: F0 09 00 [19:13:23]MH_I2C_Read... [19:13:23]Read from MH i2c: F0 09 00 DF 7E 00 DA 90 1E 67 50 D1 6C 64 35 [19:13:23]GetLastDocTimeStamp 1730056295 [19:13:23]current date 1730056410 [19:13:23]FM_GetShiftState [19:13:23]SAM_PROTO_GetShiftState [19:13:23]wFMCommunicate request_size=4 [19:13:23]MH_SAM_APDU [19:13:23]CAPDU: 80 13 01 00 [19:13:23]Write to MH i2c: E2 08 00 E0 7E 80 13 01 00 00 00 00 00 DB [19:13:23]Write i2c OK [19:13:23]MH_I2C_Read... [19:13:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:13:23]Read from MH i2c: E2 [19:13:23]MH_I2C_Read... [19:13:23]Read from MH i2c: E2 0E 00 [19:13:23]MH_I2C_Read... [19:13:23]Read from MH i2c: E2 0E 00 E0 7E 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 A8 [19:13:23]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [19:13:23]wFMCommunicate OK [19:13:23]SAM_PROTO_GetShiftState done [19:13:23]FM_GetShiftState done [19:13:23]opened in 1729989044 [19:13:23]opened+sec_in_day 1730075444 [19:13:23]quantity*price = 50041 [19:13:23]sum+1 = 50042 [19:13:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 274 27.10.2024 19:13 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 156723 ФПД: 112707681621865 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T191330&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156723&fm=112707681621865&tin=02508201610067®Number=0000000000091693&sum=50041 [19:13:24]StoreToDocumentArchive [19:13:24]shift 537 fd 156723 [19:13:24]save to /storage/0537/doc_00156723 [19:13:24]save last doc name /storage/0537/doc_00156723 to /storage/kkm_last_doc_name [19:13:24]save OK [19:13:24]Clear old archive folders... [19:13:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:13:24]tlvbuf is 016E3D70 [19:13:24]SAM_PROTO_ClearQueue [19:13:24]wFMCommunicate request_size=4 [19:13:24]MH_SAM_APDU [19:13:24]CAPDU: 80 09 00 00 [19:13:24]Write to MH i2c: E2 08 00 ED 7E 80 09 00 00 00 00 00 00 DD [19:13:24]Write i2c OK [19:13:24]MH_I2C_Read... [19:13:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:13:24]Read from MH i2c: E2 [19:13:24]MH_I2C_Read... [19:13:24]Read from MH i2c: E2 03 00 [19:13:24]MH_I2C_Read... [19:13:24]Read from MH i2c: E2 03 00 ED 7E 00 90 00 DF [19:13:24]RAPDU: 90 00 [19:13:24]wFMCommunicate OK [19:13:24]SAM_PROTO_ClearQueue done [19:13:24]KKMCreateOFDPacket [19:13:24]OFDProtocolAddRootSTLVToBuf [19:13:24]FM_MakeSignedData [19:13:24]FM_MakeSignedData [19:13:24]SAM_PROTO_SignData [19:13:24]wFMCommunicate request_size=4 [19:13:24]MH_SAM_APDU [19:13:24]CAPDU: 80 0D 01 02 [19:13:24]Write to MH i2c: E2 08 00 EE 7E 80 0D 01 02 00 00 00 00 E5 [19:13:24]Write i2c OK [19:13:24]MH_I2C_Read... [19:13:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:13:24]Read from MH i2c: E2 [19:13:24]MH_I2C_Read... [19:13:24]Read from MH i2c: E2 03 00 [19:13:24]MH_I2C_Read... [19:13:24]Read from MH i2c: E2 03 00 EE 7E 00 90 00 E0 [19:13:24]RAPDU: 90 00 [19:13:24]wFMCommunicate OK [19:13:24]wFMCommunicate request_size=255 [19:13:24]MH_SAM_APDU [19:13: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 DA 90 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 33 64 02 00 35 04 06 00 66 [19:13:24]Write to MH i2c: E2 02 01 EF 7E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 DA 90 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 33 64 02 00 35 04 06 00 66 00 00 E7 [19:13:24]Write i2c OK [19:13:24]MH_I2C_Read... [19:13:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:13:25]Read from MH i2c: E2 [19:13:25]MH_I2C_Read... [19:13:25]Read from MH i2c: E2 03 00 [19:13:25]MH_I2C_Read... [19:13:25]Read from MH i2c: E2 03 00 EF 7E 00 90 00 E1 [19:13:25]RAPDU: 90 00 [19:13:25]wFMCommunicate OK [19:13:25]wFMCommunicate request_size=10 [19:13:25]MH_SAM_APDU [19:13:25]CAPDU: 80 0D 02 02 05 81 CD 53 97 69 [19:13:25]Write to MH i2c: E2 0D 00 F0 7E 80 0D 02 02 05 00 81 CD 53 97 69 00 00 93 [19:13:25]Write i2c OK [19:13:25]MH_I2C_Read... [19:13:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:13:25]Read from MH i2c: E2 [19:13:25]MH_I2C_Read... [19:13:25]Read from MH i2c: E2 03 00 [19:13:25]MH_I2C_Read... [19:13:25]Read from MH i2c: E2 03 00 F0 7E 00 90 00 E2 [19:13:25]RAPDU: 90 00 [19:13:25]wFMCommunicate OK [19:13:25]wFMCommunicate request_size=4 [19:13:25]MH_SAM_APDU [19:13:25]CAPDU: 80 0D 03 02 [19:13:25]Write to MH i2c: E2 08 00 F1 7E 80 0D 03 02 00 00 00 00 EA [19:13:25]Write i2c OK [19:13:25]MH_I2C_Read... [19:13:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:13:25]Read from MH i2c: E2 [19:13:25]MH_I2C_Read... [19:13:25]Read from MH i2c: E2 0B 00 [19:13:25]MH_I2C_Read... [19:13:25]Read from MH i2c: E2 0B 00 F1 7E 00 FF 95 DF E0 E2 C4 4C 08 90 00 38 [19:13:25]RAPDU: FF 95 DF E0 E2 C4 4C 08 90 00 [19:13:25]wFMCommunicate OK [19:13:25]SAM_PROTO_SignData done [19:13:25]FM_MakeSignedData done [19:13:25]CreateOFDProtocolMessage [19:13:25]wFMCommunicate request_size=4 [19:13:25]MH_SAM_APDU [19:13:25]CAPDU: 80 11 00 00 [19:13:25]Write to MH i2c: E2 08 00 F2 7E 80 11 00 00 00 00 00 00 EA [19:13:25]Write i2c OK [19:13:25]MH_I2C_Read... [19:13:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:13:25]Read from MH i2c: E2 [19:13:25]MH_I2C_Read... [19:13:25]Read from MH i2c: E2 17 00 [19:13:25]MH_I2C_Read... [19:13:25]Read from MH i2c: E2 17 00 F2 7E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 3F [19:13:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:13:25]wFMCommunicate OK [19:13:25]CreateOFDProtocolMessage done [19:13:25]OFDSenderStorePacket 156723 [19:13:25]StoreOFDPacket docnum=156723 [19:13:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 7C E2 07 01 30 2C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 DA 90 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 33 64 02 00 35 04 06 00 66 81 CD 53 97 69 FF 95 DF E0 E2 C4 4C 08 [19:13:25]CheckFolder [19:13:25]dirname=/storage/ofd_packets [19:13:25]CheckFolder done [19:13:25]ProducePacketName [19:13:25]name=ofd_packets/00156723 [19:13:25]NVStorageSaveData ofd_packets/00156723 [19:13:25]File name is /storage/ofd_packets/00156723 [19:13:25]Write 301 bytes [19:13:25]NVStorageSaveData done [19:13:25]OFDSenderStorePacket done [19:13:25]KKMCreateOFDPacket done [19:13:25]NVStorageSaveData kkm_last_timestamp [19:13:25]File name is /storage/kkm_last_timestamp [19:13:25]Write 4 bytes [19:13:25]NVStorageSaveData done [19:13:25]ExternCall_PrintAddStr [19:13:25]wPrintStart [19:13:25]Write to MH i2c: 01 00 00 F3 7E 71 [19:13:25]Write i2c OK [19:13:25]MH_I2C_Read... [19:13:25]Read from MH i2c: 01 [19:13:25]MH_I2C_Read... [19:13:25]Read from MH i2c: 01 07 00 [19:13:25]MH_I2C_Read... [19:13:25]Read from MH i2c: 01 07 00 F3 7E 00 00 00 00 00 FF 0F 86 [19:13:25]RasterBufferAndPrint [19:13:25]line Счет N : (1)99537 [19:13:25]line ИНН: 02508201610067 [19:13:25]line Контрольно-Кассовый Чек [19:13:25]line ПРОДАЖА [19:13:25]line ТРК (МРК, ГНК) : 31 [19:13:25]line Товар: 2710124130 [19:13:25]line Аи-92-К-5 [19:13:25]line 7.480 * 66.90 [19:13:25]line = 500.41 [19:13:25]line НДС 12% НСП 1% [19:13:25]line > о реализуемом товаре [19:13:25]line ИТОГО: 500.41 [19:13:25]line НСП 1% : 4.43 [19:13:25]line НДС 12% : 53.14 [19:13:25]line Наличными: 0.00 [19:13:25]line Безнал.: 500.41 [19:13:25]line Место: АЗС № 143 "Партнер Нефть" [19:13:25]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [19:13:25]line СНО: Общий режим [19:13:25]line Чек 274 27.10.2024 19:13 [19:13:25]line Смена: 537 ФФД: 1.0 [19:13:25]line ЗНМ: 0300000096 [19:13:25]line РНМ: 0000000000091693 [19:13:25]line Версия ККМ: 001 [19:13:25]line Платежная система: Mbank [19:13:25]line ФМ: 0000000000871792 [19:13:25]line ФД: 156723 [19:13:25]line ФПД: 112707681621865 [19:13:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T191330&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156723&fm=112707681621865&tin=02508201610067®Number=0000000000091693&sum=50041 [19:13:25]OFD Sender: Processing packet 156723 [packets to send 31, broken 30] [19:13:25]ProducePacketName [19:13:25]name=ofd_packets/00156723 [19:13:25]OFD Sender: To server: pG, [19:13:25]CommunicateWithHost lk.salyk.kg:30040 [19:13:25]ConnectInit lk.salyk.kg [19:13:25]written 0, free lines is 4095 [19:13:25]Connected sock=10 [19:13:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 7C E2 07 01 30 2C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 DA 90 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 33 64 02 00 35 04 06 00 66 81 CD 53 97 69 FF 95 DF E0 E2 C4 4C 08 [19:13:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 C2 D7 47 00 91 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 31 37 39 32 10 04 04 00 33 64 02 00 F4 03 04 00 49 36 1E 67 B6 04 01 00 00 0C F7 77 B9 4E 77 E4 3B [19:13:25]CommunicateWithHost err = 0 [19:13:25]CheckOFDResponse [19:13:25]1017 (14) - 77093643461234 [19:13:25]1041 (16) - 0000000000871792 [19:13:25]1040 (4) - 156723 [19:13:25]1012 (4) - 27.10.2024 12:47 [19:13:25]1206 (1) - 0 [19:13:25]OFD Sender: Remove packet 156723 [19:13:25]ProducePacketName [19:13:25]name=ofd_packets/00156723 [19:13:25]NVStorageDeleteData [19:13:26]Write to MH i2c: 01 00 00 1C 7F 9B [19:13:26]Write i2c OK [19:13:26]MH_I2C_Read... [19:13:26]Read from MH i2c: 01 [19:13:26]MH_I2C_Read... [19:13:26]Read from MH i2c: 01 07 00 [19:13:26]MH_I2C_Read... [19:13:26]Read from MH i2c: 01 07 00 1C 7F 00 00 00 00 00 04 0D B3 [19:13:26]RasterBufferAndPrint [19:13:26]line [19:13:26]line [19:13:26]line [19:13:26]line [19:13:26]line [19:13:26]written 0, free lines is 3339 [19:13:26]process_action close_receipt done [19:13:26]requested_data is exist [19:13:26]produce_requested_data [19:13:26]requested_item fm.sn is exist - process it [19:13:26]wFMCommunicate request_size=4 [19:13:26]MH_SAM_APDU [19:13:26]CAPDU: 80 11 00 00 [19:13:26]Write to MH i2c: E2 08 00 23 7F 80 11 00 00 00 00 00 00 1C [19:13:26]Write i2c OK [19:13:26]MH_I2C_Read... [19:13:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:13:26]Read from MH i2c: E2 [19:13:26]MH_I2C_Read... [19:13:26]Read from MH i2c: E2 17 00 [19:13:26]MH_I2C_Read... [19:13:26]Read from MH i2c: E2 17 00 23 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 71 [19:13:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:13:26]wFMCommunicate OK [19:13:26]requested_item fd.num is exist - process it [19:13:26]SAM_PROTO_GetFieldsCounters [19:13:26]wFMCommunicate request_size=4 [19:13:26]MH_SAM_APDU [19:13:26]CAPDU: 80 13 00 00 [19:13:26]Write to MH i2c: E2 08 00 24 7F 80 13 00 00 00 00 00 00 1F [19:13:26]Write i2c OK [19:13:26]MH_I2C_Read... [19:13:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:13:26]Read from MH i2c: E2 [19:13:26]MH_I2C_Read... [19:13:26]Read from MH i2c: E2 62 00 [19:13:26]MH_I2C_Read... [19:13:26]Read from MH i2c: E2 62 00 24 7F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 33 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 12 01 00 00 5E 04 04 00 12 01 00 00 57 04 04 00 13 01 00 00 19 04 04 00 00 00 00 00 90 00 32 [19:13:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 33 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 12 01 00 00 5E 04 04 00 12 01 00 00 57 04 04 00 13 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:13:26]wFMCommunicate OK [19:13:26]SAM_PROTO_GetFieldsCounters done [19:13:26]requested_item shift.num is exist - process it [19:13:26]requested_item shift.opened is exist - process it [19:13:26]req_shift_opened [19:13:26]FM_GetShiftState [19:13:26]SAM_PROTO_GetShiftState [19:13:26]wFMCommunicate request_size=4 [19:13:26]MH_SAM_APDU [19:13:26]CAPDU: 80 13 01 00 [19:13:26]Write to MH i2c: E2 08 00 25 7F 80 13 01 00 00 00 00 00 21 [19:13:26]Write i2c OK [19:13:26]MH_I2C_Read... [19:13:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:13:26]Read from MH i2c: E2 [19:13:26]MH_I2C_Read... [19:13:26]Read from MH i2c: E2 0E 00 [19:13:26]MH_I2C_Read... [19:13:26]Read from MH i2c: E2 0E 00 25 7F 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 EE [19:13:26]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [19:13:26]wFMCommunicate OK [19:13:26]SAM_PROTO_GetShiftState done [19:13:26]FM_GetShiftState done [19:13:26]req_shift_opened done [19:13:26]requested_item shift.open_date is exist - process it [19:13:26]req_shift_open_date [19:13:26]req_shift_open_date done [19:13:26]produce_requested_data done [19:13:26]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156723,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [19:13:26]process_action_free close_receipt [19:13:26]json_value_free [19:13:26]json_value_free done [19:13:26]process_json_proto returns [19:13:26]Send response to host [19:13:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156723,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [19:13:26]free response buf [19:13:26]execute_script done [19:13:26]execute_script returns [19:13:26]free content buf [19:13:26]Sock 8.Close socket [19:13:26]Sock 8.Thread stoped [19:13:26]OFD Sender: No OFD packet to send [19:13:31]OFD Sender: No OFD packet to send [19:13:36]OFD Sender: No OFD packet to send [19:13:41]OFD Sender: No OFD packet to send [19:13:46]OFD Sender: No OFD packet to send [19:13:51]OFD Sender: No OFD packet to send [19:13:56]OFD Sender: No OFD packet to send [19:14:01]OFD Sender: No OFD packet to send [19:14:06]OFD Sender: No OFD packet to send [19:14:11]OFD Sender: No OFD packet to send [19:14:16]OFD Sender: No OFD packet to send [19:14:21]OFD Sender: No OFD packet to send [19:14:23]accept exits with 9 [19:14:23]New connection [19:14:23]New thread 3066834276 created [19:14:23]Thread 3066977636 joined [19:14:23]Waiting for new connection... [19:14:23] Sock 9.Parse request [19:14:23]Sock 9.Check first char [19:14:23]Sock 9.First char is OK [19:14:23]request: POST /json_proto HTTP/1.0 [19:14:23]Method: POST [19:14:23]URL: /json_proto [19:14:23]Method is POST - this is cgi request [19:14:23]url: /json_proto [19:14:23]query_string will be loaded in cgi processing [19:14:23]execute_cgi json_proto POST (null) [19:14:23]execute_cgi path=json_proto method=POST [19:14:23]POST find Content-Length [19:14:23]Host: 172.17.63.3:8080 [19:14:23]Content-Length: 676 [19:14:23]Content-Type: application/json [19:14:23] [19:14:23]POST finish read [19:14:23]Found Content-Length = 676 [19:14:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99538", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "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" ] } } [19:14:23]execute_script... [19:14: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)99538", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "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" ] } } [19:14:23]POST & json_proto [19:14:23]process_json_proto [19:14:23]json parsed OK: [19:14:23]protocol is kg_v1.0 [19:14:23]action value=close_receipt [19:14:23]process_action close_receipt [19:14:23]cmd_close_receipt [19:14:23]MH_GetDate [19:14:23]Write to MH i2c: F0 00 00 26 7F 94 [19:14:23]Write i2c OK [19:14:23]MH_I2C_Read... [19:14:23]Read from MH i2c: F0 [19:14:23]MH_I2C_Read... [19:14:23]Read from MH i2c: F0 09 00 [19:14:23]MH_I2C_Read... [19:14:23]Read from MH i2c: F0 09 00 26 7F 00 16 91 1E 67 50 D1 6C 64 BA [19:14:23]GetLastDocTimeStamp 1730056410 [19:14:23]current date 1730056470 [19:14:23]FM_GetShiftState [19:14:23]SAM_PROTO_GetShiftState [19:14:23]wFMCommunicate request_size=4 [19:14:23]MH_SAM_APDU [19:14:23]CAPDU: 80 13 01 00 [19:14:23]Write to MH i2c: E2 08 00 27 7F 80 13 01 00 00 00 00 00 23 [19:14:23]Write i2c OK [19:14:23]MH_I2C_Read... [19:14:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:14:23]Read from MH i2c: E2 [19:14:23]MH_I2C_Read... [19:14:23]Read from MH i2c: E2 0E 00 [19:14:23]MH_I2C_Read... [19:14:23]Read from MH i2c: E2 0E 00 27 7F 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 F0 [19:14:23]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [19:14:23]wFMCommunicate OK [19:14:23]SAM_PROTO_GetShiftState done [19:14:23]FM_GetShiftState done [19:14:23]opened in 1729989044 [19:14:23]opened+sec_in_day 1730075444 [19:14:23]quantity*price = 20003 [19:14:23]sum+1 = 20004 [19:14:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 275 27.10.2024 19:14 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156724 ФПД: 247119813542913 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T191430&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156724&fm=247119813542913&tin=02508201610067®Number=0000000000091693&sum=20000 [19:14:24]StoreToDocumentArchive [19:14:24]shift 537 fd 156724 [19:14:24]save to /storage/0537/doc_00156724 [19:14:24]save last doc name /storage/0537/doc_00156724 to /storage/kkm_last_doc_name [19:14:24]save OK [19:14:24]Clear old archive folders... [19:14:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:14:24]tlvbuf is 0179A8E0 [19:14:24]SAM_PROTO_ClearQueue [19:14:24]wFMCommunicate request_size=4 [19:14:24]MH_SAM_APDU [19:14:24]CAPDU: 80 09 00 00 [19:14:24]Write to MH i2c: E2 08 00 34 7F 80 09 00 00 00 00 00 00 25 [19:14:24]Write i2c OK [19:14:24]MH_I2C_Read... [19:14:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:14:24]Read from MH i2c: E2 [19:14:24]MH_I2C_Read... [19:14:24]Read from MH i2c: E2 03 00 [19:14:24]MH_I2C_Read... [19:14:24]Read from MH i2c: E2 03 00 34 7F 00 90 00 27 [19:14:24]RAPDU: 90 00 [19:14:24]wFMCommunicate OK [19:14:24]SAM_PROTO_ClearQueue done [19:14:24]KKMCreateOFDPacket [19:14:24]OFDProtocolAddRootSTLVToBuf [19:14:24]FM_MakeSignedData [19:14:24]FM_MakeSignedData [19:14:24]SAM_PROTO_SignData [19:14:24]wFMCommunicate request_size=4 [19:14:24]MH_SAM_APDU [19:14:24]CAPDU: 80 0D 01 02 [19:14:24]Write to MH i2c: E2 08 00 35 7F 80 0D 01 02 00 00 00 00 2D [19:14:24]Write i2c OK [19:14:24]MH_I2C_Read... [19:14:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:14:24]Read from MH i2c: E2 [19:14:24]MH_I2C_Read... [19:14:24]Read from MH i2c: E2 03 00 [19:14:24]MH_I2C_Read... [19:14:24]Read from MH i2c: E2 03 00 35 7F 00 90 00 28 [19:14:24]RAPDU: 90 00 [19:14:24]wFMCommunicate OK [19:14:24]wFMCommunicate request_size=255 [19:14:24]MH_SAM_APDU [19:14: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 13 01 00 00 F4 03 04 00 16 91 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 34 64 02 00 35 04 06 00 E0 [19:14:24]Write to MH i2c: E2 02 01 36 7F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 13 01 00 00 F4 03 04 00 16 91 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 34 64 02 00 35 04 06 00 E0 00 00 58 [19:14:24]Write i2c OK [19:14:24]MH_I2C_Read... [19:14:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:14:24]Read from MH i2c: E2 [19:14:24]MH_I2C_Read... [19:14:24]Read from MH i2c: E2 03 00 [19:14:24]MH_I2C_Read... [19:14:24]Read from MH i2c: E2 03 00 36 7F 00 90 00 29 [19:14:24]RAPDU: 90 00 [19:14:24]wFMCommunicate OK [19:14:24]wFMCommunicate request_size=10 [19:14:24]MH_SAM_APDU [19:14:24]CAPDU: 80 0D 02 02 05 C1 10 B4 04 01 [19:14:24]Write to MH i2c: E2 0D 00 37 7F 80 0D 02 02 05 00 C1 10 B4 04 01 00 00 C4 [19:14:24]Write i2c OK [19:14:24]MH_I2C_Read... [19:14:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:14:24]Read from MH i2c: E2 [19:14:24]MH_I2C_Read... [19:14:24]Read from MH i2c: E2 03 00 [19:14:24]MH_I2C_Read... [19:14:24]Read from MH i2c: E2 03 00 37 7F 00 90 00 2A [19:14:24]RAPDU: 90 00 [19:14:24]wFMCommunicate OK [19:14:24]wFMCommunicate request_size=4 [19:14:24]MH_SAM_APDU [19:14:24]CAPDU: 80 0D 03 02 [19:14:24]Write to MH i2c: E2 08 00 38 7F 80 0D 03 02 00 00 00 00 32 [19:14:24]Write i2c OK [19:14:24]MH_I2C_Read... [19:14:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:14:24]Read from MH i2c: E2 [19:14:24]MH_I2C_Read... [19:14:24]Read from MH i2c: E2 0B 00 [19:14:24]MH_I2C_Read... [19:14:24]Read from MH i2c: E2 0B 00 38 7F 00 E0 F2 2C 03 7C 0C 5A 8B 90 00 A1 [19:14:24]RAPDU: E0 F2 2C 03 7C 0C 5A 8B 90 00 [19:14:24]wFMCommunicate OK [19:14:24]SAM_PROTO_SignData done [19:14:24]FM_MakeSignedData done [19:14:24]CreateOFDProtocolMessage [19:14:24]wFMCommunicate request_size=4 [19:14:24]MH_SAM_APDU [19:14:24]CAPDU: 80 11 00 00 [19:14:24]Write to MH i2c: E2 08 00 39 7F 80 11 00 00 00 00 00 00 32 [19:14:24]Write i2c OK [19:14:24]MH_I2C_Read... [19:14:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:14:24]Read from MH i2c: E2 [19:14:24]MH_I2C_Read... [19:14:24]Read from MH i2c: E2 17 00 [19:14:24]MH_I2C_Read... [19:14:24]Read from MH i2c: E2 17 00 39 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 87 [19:14:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:14:24]wFMCommunicate OK [19:14:24]CreateOFDProtocolMessage done [19:14:24]OFDSenderStorePacket 156724 [19:14:24]StoreOFDPacket docnum=156724 [19:14:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 5B B2 07 01 3C 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 13 01 00 00 F4 03 04 00 16 91 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 34 64 02 00 35 04 06 00 E0 C1 10 B4 04 01 E0 F2 2C 03 7C 0C 5A 8B [19:14:24]CheckFolder [19:14:24]dirname=/storage/ofd_packets [19:14:24]CheckFolder done [19:14:24]ProducePacketName [19:14:24]name=ofd_packets/00156724 [19:14:24]NVStorageSaveData ofd_packets/00156724 [19:14:24]File name is /storage/ofd_packets/00156724 [19:14:24]Write 301 bytes [19:14:24]NVStorageSaveData done [19:14:24]OFDSenderStorePacket done [19:14:24]KKMCreateOFDPacket done [19:14:24]NVStorageSaveData kkm_last_timestamp [19:14:24]File name is /storage/kkm_last_timestamp [19:14:24]Write 4 bytes [19:14:24]NVStorageSaveData done [19:14:24]ExternCall_PrintAddStr [19:14:24]wPrintStart [19:14:24]Write to MH i2c: 01 00 00 3A 7F B9 [19:14:24]Write i2c OK [19:14:24]MH_I2C_Read... [19:14:24]Read from MH i2c: 01 [19:14:24]MH_I2C_Read... [19:14:24]Read from MH i2c: 01 07 00 [19:14:24]MH_I2C_Read... [19:14:24]Read from MH i2c: 01 07 00 3A 7F 00 00 00 00 00 FF 0F CE [19:14:24]RasterBufferAndPrint [19:14:24]line Счет N : (1)99538 [19:14:24]line ИНН: 02508201610067 [19:14:24]line Контрольно-Кассовый Чек [19:14:24]line ПРОДАЖА [19:14:24]line ТРК (МРК, ГНК) : 31 [19:14:24]line Товар: 2710124130 [19:14:24]line Аи-92-К-5 [19:14:24]line 2.990 * 66.90 [19:14:24]line = 200.03 [19:14:24]line НДС 12% НСП 1% [19:14:24]line > о реализуемом товаре [19:14:24]line ОКРУГЛЕНИЕ: -0.03 [19:14:24]line ИТОГО: 200.00 [19:14:24]line Внесено: 200.00 [19:14:24]line СДАЧА: 0.00 [19:14:24]line НСП 1% : 1.77 [19:14:24]line НДС 12% : 21.24 [19:14:24]line Наличными: 200.00 [19:14:24]line Безнал.: 0.00 [19:14:24]line Место: АЗС № 143 "Партнер Нефть" [19:14:24]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [19:14:24]line СНО: Общий режим [19:14:24]line Чек 275 27.10.2024 19:14 [19:14:24]line Смена: 537 ФФД: 1.0 [19:14:24]line ЗНМ: 0300000096 [19:14:24]line РНМ: 0000000000091693 [19:14:24]line Версия ККМ: 001 [19:14:24]line ФМ: 0000000000871792 [19:14:24]line ФД: 156724 [19:14:24]line ФПД: 247119813542913 [19:14:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T191430&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156724&fm=247119813542913&tin=02508201610067®Number=0000000000091693&sum=20000 [19:14:25]OFD Sender: Processing packet 156724 [packets to send 31, broken 30] [19:14:25]ProducePacketName [19:14:25]name=ofd_packets/00156724 [19:14:25]OFD Sender: To server: pG, [19:14:25]CommunicateWithHost lk.salyk.kg:30040 [19:14:25]ConnectInit lk.salyk.kg [19:14:25]written 0, free lines is 4095 [19:14:25]Connected sock=10 [19:14:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 5B B2 07 01 3C 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 13 01 00 00 F4 03 04 00 16 91 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 34 64 02 00 35 04 06 00 E0 C1 10 B4 04 01 E0 F2 2C 03 7C 0C 5A 8B [19:14:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 32 8E 47 00 07 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 31 37 39 32 10 04 04 00 34 64 02 00 F4 03 04 00 85 36 1E 67 B6 04 01 00 00 91 1B 4B C6 F1 27 EB 32 [19:14:25]CommunicateWithHost err = 0 [19:14:25]CheckOFDResponse [19:14:25]1017 (14) - 77093643461234 [19:14:25]1041 (16) - 0000000000871792 [19:14:25]1040 (4) - 156724 [19:14:25]1012 (4) - 27.10.2024 12:48 [19:14:25]1206 (1) - 0 [19:14:25]OFD Sender: Remove packet 156724 [19:14:25]ProducePacketName [19:14:25]name=ofd_packets/00156724 [19:14:25]NVStorageDeleteData [19:14:25]Write to MH i2c: 01 00 00 65 7F E4 [19:14:25]Write i2c OK [19:14:25]MH_I2C_Read... [19:14:25]Read from MH i2c: 01 [19:14:25]MH_I2C_Read... [19:14:25]Read from MH i2c: 01 07 00 [19:14:25]MH_I2C_Read... [19:14:25]Read from MH i2c: 01 07 00 65 7F 00 00 00 00 00 E4 0C DB [19:14:25]RasterBufferAndPrint [19:14:25]line [19:14:25]line [19:14:25]line [19:14:25]line [19:14:25]line [19:14:25]written 0, free lines is 3306 [19:14:25]process_action close_receipt done [19:14:25]requested_data is exist [19:14:25]produce_requested_data [19:14:25]requested_item fm.sn is exist - process it [19:14:25]wFMCommunicate request_size=4 [19:14:25]MH_SAM_APDU [19:14:25]CAPDU: 80 11 00 00 [19:14:25]Write to MH i2c: E2 08 00 6C 7F 80 11 00 00 00 00 00 00 65 [19:14:25]Write i2c OK [19:14:25]MH_I2C_Read... [19:14:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:14:25]Read from MH i2c: E2 [19:14:25]MH_I2C_Read... [19:14:25]Read from MH i2c: E2 17 00 [19:14:25]MH_I2C_Read... [19:14:25]Read from MH i2c: E2 17 00 6C 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 BA [19:14:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:14:25]wFMCommunicate OK [19:14:25]requested_item fd.num is exist - process it [19:14:25]SAM_PROTO_GetFieldsCounters [19:14:25]wFMCommunicate request_size=4 [19:14:25]MH_SAM_APDU [19:14:25]CAPDU: 80 13 00 00 [19:14:25]Write to MH i2c: E2 08 00 6D 7F 80 13 00 00 00 00 00 00 68 [19:14:25]Write i2c OK [19:14:25]MH_I2C_Read... [19:14:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:14:25]Read from MH i2c: E2 [19:14:25]MH_I2C_Read... [19:14:25]Read from MH i2c: E2 62 00 [19:14:25]MH_I2C_Read... [19:14:25]Read from MH i2c: E2 62 00 6D 7F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 34 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 13 01 00 00 5E 04 04 00 13 01 00 00 57 04 04 00 14 01 00 00 19 04 04 00 00 00 00 00 90 00 7F [19:14:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 34 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 13 01 00 00 5E 04 04 00 13 01 00 00 57 04 04 00 14 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:14:25]wFMCommunicate OK [19:14:25]SAM_PROTO_GetFieldsCounters done [19:14:25]requested_item shift.num is exist - process it [19:14:25]requested_item shift.opened is exist - process it [19:14:25]req_shift_opened [19:14:25]FM_GetShiftState [19:14:25]SAM_PROTO_GetShiftState [19:14:25]wFMCommunicate request_size=4 [19:14:25]MH_SAM_APDU [19:14:25]CAPDU: 80 13 01 00 [19:14:25]Write to MH i2c: E2 08 00 6E 7F 80 13 01 00 00 00 00 00 6A [19:14:25]Write i2c OK [19:14:25]MH_I2C_Read... [19:14:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:14:26]Read from MH i2c: E2 [19:14:26]MH_I2C_Read... [19:14:26]Read from MH i2c: E2 0E 00 [19:14:26]MH_I2C_Read... [19:14:26]Read from MH i2c: E2 0E 00 6E 7F 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 37 [19:14:26]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [19:14:26]wFMCommunicate OK [19:14:26]SAM_PROTO_GetShiftState done [19:14:26]FM_GetShiftState done [19:14:26]req_shift_opened done [19:14:26]requested_item shift.open_date is exist - process it [19:14:26]req_shift_open_date [19:14:26]req_shift_open_date done [19:14:26]produce_requested_data done [19:14:26]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156724,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [19:14:26]process_action_free close_receipt [19:14:26]json_value_free [19:14:26]json_value_free done [19:14:26]process_json_proto returns [19:14:26]Send response to host [19:14:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156724,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [19:14:26]free response buf [19:14:26]execute_script done [19:14:26]execute_script returns [19:14:26]free content buf [19:14:26]Sock 9.Close socket [19:14:26]Sock 9.Thread stoped [19:14:26]OFD Sender: No OFD packet to send [19:14:31]OFD Sender: No OFD packet to send [19:14:36]OFD Sender: No OFD packet to send [19:14:41]OFD Sender: No OFD packet to send [19:14:46]OFD Sender: No OFD packet to send [19:14:51]OFD Sender: No OFD packet to send [19:14:56]OFD Sender: No OFD packet to send [19:15:01]OFD Sender: No OFD packet to send [19:15:06]OFD Sender: No OFD packet to send [19:15:11]OFD Sender: No OFD packet to send [19:15:16]OFD Sender: No OFD packet to send [19:15:21]OFD Sender: No OFD packet to send [19:15:26]OFD Sender: No OFD packet to send [19:15:31]OFD Sender: No OFD packet to send [19:15:36]OFD Sender: No OFD packet to send [19:15:41]OFD Sender: No OFD packet to send [19:15:46]OFD Sender: No OFD packet to send [19:15:51]OFD Sender: No OFD packet to send [19:15:56]OFD Sender: No OFD packet to send [19:15:57]accept exits with 8 [19:15:57]New connection [19:15:57]New thread 3066977636 created [19:15:57]Thread 3066834276 joined [19:15:57]Waiting for new connection... [19:15:57] Sock 8.Parse request [19:15:57]Sock 8.Check first char [19:15:57]Sock 8.First char is OK [19:15:57]request: POST /json_proto HTTP/1.0 [19:15:57]Method: POST [19:15:57]URL: /json_proto [19:15:57]Method is POST - this is cgi request [19:15:57]url: /json_proto [19:15:57]query_string will be loaded in cgi processing [19:15:57]execute_cgi json_proto POST (null) [19:15:57]execute_cgi path=json_proto method=POST [19:15:57]POST find Content-Length [19:15:57]Host: 172.17.63.3:8080 [19:15:57]Content-Length: 765 [19:15:57]Content-Type: application/json [19:15:57] [19:15:57]POST finish read [19:15:57]Found Content-Length = 765 [19:15:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99539", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.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: Mbank", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:15:57]execute_script... [19:15:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99539", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.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: Mbank", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:15:57]POST & json_proto [19:15:57]process_json_proto [19:15:57]json parsed OK: [19:15:57]protocol is kg_v1.0 [19:15:57]action value=close_receipt [19:15:57]process_action close_receipt [19:15:57]cmd_close_receipt [19:15:57]MH_GetDate [19:15:57]Write to MH i2c: F0 00 00 6F 7F DD [19:15:57]Write i2c OK [19:15:57]MH_I2C_Read... [19:15:57]Read from MH i2c: F0 [19:15:57]MH_I2C_Read... [19:15:57]Read from MH i2c: F0 09 00 [19:15:57]MH_I2C_Read... [19:15:57]Read from MH i2c: F0 09 00 6F 7F 00 75 91 1E 67 50 D1 6C 64 62 [19:15:57]GetLastDocTimeStamp 1730056470 [19:15:57]current date 1730056565 [19:15:57]FM_GetShiftState [19:15:57]SAM_PROTO_GetShiftState [19:15:57]wFMCommunicate request_size=4 [19:15:57]MH_SAM_APDU [19:15:57]CAPDU: 80 13 01 00 [19:15:57]Write to MH i2c: E2 08 00 70 7F 80 13 01 00 00 00 00 00 6C [19:15:57]Write i2c OK [19:15:57]MH_I2C_Read... [19:15:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:15:57]Read from MH i2c: E2 [19:15:57]MH_I2C_Read... [19:15:57]Read from MH i2c: E2 0E 00 [19:15:57]MH_I2C_Read... [19:15:57]Read from MH i2c: E2 0E 00 70 7F 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 39 [19:15:57]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [19:15:57]wFMCommunicate OK [19:15:57]SAM_PROTO_GetShiftState done [19:15:57]FM_GetShiftState done [19:15:57]opened in 1729989044 [19:15:57]opened+sec_in_day 1730075444 [19:15:57]quantity*price = 20003 [19:15:57]sum+1 = 20004 [19:15:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.03 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 0.00 Безнал.: 200.03 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 276 27.10.2024 19:16 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 156725 ФПД: 256841707089161 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T191605&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156725&fm=256841707089161&tin=02508201610067®Number=0000000000091693&sum=20003 [19:15:59]StoreToDocumentArchive [19:15:59]shift 537 fd 156725 [19:15:59]save to /storage/0537/doc_00156725 [19:15:59]save last doc name /storage/0537/doc_00156725 to /storage/kkm_last_doc_name [19:15:59]save OK [19:15:59]Clear old archive folders... [19:15:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:15:59]tlvbuf is 01827C30 [19:15:59]SAM_PROTO_ClearQueue [19:15:59]wFMCommunicate request_size=4 [19:15:59]MH_SAM_APDU [19:15:59]CAPDU: 80 09 00 00 [19:15:59]Write to MH i2c: E2 08 00 7D 7F 80 09 00 00 00 00 00 00 6E [19:15:59]Write i2c OK [19:15:59]MH_I2C_Read... [19:15:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:15:59]Read from MH i2c: E2 [19:15:59]MH_I2C_Read... [19:15:59]Read from MH i2c: E2 03 00 [19:15:59]MH_I2C_Read... [19:15:59]Read from MH i2c: E2 03 00 7D 7F 00 90 00 70 [19:15:59]RAPDU: 90 00 [19:15:59]wFMCommunicate OK [19:15:59]SAM_PROTO_ClearQueue done [19:15:59]KKMCreateOFDPacket [19:15:59]OFDProtocolAddRootSTLVToBuf [19:15:59]FM_MakeSignedData [19:15:59]FM_MakeSignedData [19:15:59]SAM_PROTO_SignData [19:15:59]wFMCommunicate request_size=4 [19:15:59]MH_SAM_APDU [19:15:59]CAPDU: 80 0D 01 02 [19:15:59]Write to MH i2c: E2 08 00 7E 7F 80 0D 01 02 00 00 00 00 76 [19:15:59]Write i2c OK [19:15:59]MH_I2C_Read... [19:15:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:15:59]Read from MH i2c: E2 [19:15:59]MH_I2C_Read... [19:15:59]Read from MH i2c: E2 03 00 [19:15:59]MH_I2C_Read... [19:15:59]Read from MH i2c: E2 03 00 7E 7F 00 90 00 71 [19:15:59]RAPDU: 90 00 [19:15:59]wFMCommunicate OK [19:15:59]wFMCommunicate request_size=255 [19:15:59]MH_SAM_APDU [19:15: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 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 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 75 91 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 35 64 02 00 35 04 06 00 E9 [19:15:59]Write to MH i2c: E2 02 01 7F 7F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 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 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 75 91 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 35 64 02 00 35 04 06 00 E9 00 00 11 [19:15:59]Write i2c OK [19:15:59]MH_I2C_Read... [19:15:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:15:59]Read from MH i2c: E2 [19:15:59]MH_I2C_Read... [19:15:59]Read from MH i2c: E2 03 00 [19:15:59]MH_I2C_Read... [19:15:59]Read from MH i2c: E2 03 00 7F 7F 00 90 00 72 [19:15:59]RAPDU: 90 00 [19:15:59]wFMCommunicate OK [19:15:59]wFMCommunicate request_size=10 [19:15:59]MH_SAM_APDU [19:15:59]CAPDU: 80 0D 02 02 05 98 9E B6 ED 09 [19:15:59]Write to MH i2c: E2 0D 00 80 7F 80 0D 02 02 05 00 98 9E B6 ED 09 00 00 65 [19:15:59]Write i2c OK [19:15:59]MH_I2C_Read... [19:15:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:15:59]Read from MH i2c: E2 [19:15:59]MH_I2C_Read... [19:15:59]Read from MH i2c: E2 03 00 [19:15:59]MH_I2C_Read... [19:15:59]Read from MH i2c: E2 03 00 80 7F 00 90 00 73 [19:15:59]RAPDU: 90 00 [19:15:59]wFMCommunicate OK [19:15:59]wFMCommunicate request_size=4 [19:15:59]MH_SAM_APDU [19:15:59]CAPDU: 80 0D 03 02 [19:15:59]Write to MH i2c: E2 08 00 81 7F 80 0D 03 02 00 00 00 00 7B [19:15:59]Write i2c OK [19:15:59]MH_I2C_Read... [19:15:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:15:59]Read from MH i2c: E2 [19:15:59]MH_I2C_Read... [19:15:59]Read from MH i2c: E2 0B 00 [19:15:59]MH_I2C_Read... [19:15:59]Read from MH i2c: E2 0B 00 81 7F 00 2B 78 DA E3 50 B0 1D 27 90 00 20 [19:15:59]RAPDU: 2B 78 DA E3 50 B0 1D 27 90 00 [19:15:59]wFMCommunicate OK [19:15:59]SAM_PROTO_SignData done [19:15:59]FM_MakeSignedData done [19:15:59]CreateOFDProtocolMessage [19:15:59]wFMCommunicate request_size=4 [19:15:59]MH_SAM_APDU [19:15:59]CAPDU: 80 11 00 00 [19:15:59]Write to MH i2c: E2 08 00 82 7F 80 11 00 00 00 00 00 00 7B [19:15:59]Write i2c OK [19:15:59]MH_I2C_Read... [19:15:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:15:59]Read from MH i2c: E2 [19:15:59]MH_I2C_Read... [19:15:59]Read from MH i2c: E2 17 00 [19:15:59]MH_I2C_Read... [19:15:59]Read from MH i2c: E2 17 00 82 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 D0 [19:15:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:15:59]wFMCommunicate OK [19:15:59]CreateOFDProtocolMessage done [19:15:59]OFDSenderStorePacket 156725 [19:15:59]StoreOFDPacket docnum=156725 [19:15:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 A5 D3 07 01 5F 45 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 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 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 75 91 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 35 64 02 00 35 04 06 00 E9 98 9E B6 ED 09 2B 78 DA E3 50 B0 1D 27 [19:15:59]CheckFolder [19:15:59]dirname=/storage/ofd_packets [19:15:59]CheckFolder done [19:15:59]ProducePacketName [19:15:59]name=ofd_packets/00156725 [19:15:59]NVStorageSaveData ofd_packets/00156725 [19:15:59]File name is /storage/ofd_packets/00156725 [19:15:59]Write 301 bytes [19:15:59]NVStorageSaveData done [19:15:59]OFDSenderStorePacket done [19:15:59]KKMCreateOFDPacket done [19:15:59]NVStorageSaveData kkm_last_timestamp [19:15:59]File name is /storage/kkm_last_timestamp [19:15:59]Write 4 bytes [19:15:59]NVStorageSaveData done [19:15:59]ExternCall_PrintAddStr [19:15:59]wPrintStart [19:15:59]Write to MH i2c: 01 00 00 83 7F 02 [19:15:59]Write i2c OK [19:15:59]MH_I2C_Read... [19:15:59]Read from MH i2c: 01 [19:15:59]MH_I2C_Read... [19:15:59]Read from MH i2c: 01 07 00 [19:15:59]MH_I2C_Read... [19:15:59]Read from MH i2c: 01 07 00 83 7F 00 00 00 00 00 FF 0F 17 [19:15:59]RasterBufferAndPrint [19:15:59]line Счет N : (1)99539 [19:15:59]line ИНН: 02508201610067 [19:15:59]line Контрольно-Кассовый Чек [19:15:59]line ПРОДАЖА [19:15:59]line ТРК (МРК, ГНК) : 31 [19:15:59]line Товар: 2710124130 [19:15:59]line Аи-92-К-5 [19:15:59]line 2.990 * 66.90 [19:15:59]line = 200.03 [19:15:59]line НДС 12% НСП 1% [19:15:59]line > о реализуемом товаре [19:15:59]line ИТОГО: 200.03 [19:15:59]line НСП 1% : 1.77 [19:15:59]line НДС 12% : 21.24 [19:15:59]line Наличными: 0.00 [19:15:59]line Безнал.: 200.03 [19:15:59]line Место: АЗС № 143 "Партнер Нефть" [19:15:59]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [19:15:59]line СНО: Общий режим [19:15:59]line Чек 276 27.10.2024 19:16 [19:15:59]line Смена: 537 ФФД: 1.0 [19:15:59]line ЗНМ: 0300000096 [19:15:59]line РНМ: 0000000000091693 [19:15:59]line Версия ККМ: 001 [19:15:59]line Платежная система: Mbank [19:15:59]line ФМ: 0000000000871792 [19:15:59]line ФД: 156725 [19:15:59]line ФПД: 256841707089161 [19:15:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T191605&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156725&fm=256841707089161&tin=02508201610067®Number=0000000000091693&sum=20003 [19:15:59]written 0, free lines is 4095 [19:15:59]OFD Sender: Processing packet 156725 [packets to send 31, broken 30] [19:15:59]ProducePacketName [19:15:59]name=ofd_packets/00156725 [19:15:59]OFD Sender: To server: pG, [19:15:59]CommunicateWithHost lk.salyk.kg:30040 [19:15:59]ConnectInit lk.salyk.kg [19:16:00]Connected sock=9 [19:16:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 A5 D3 07 01 5F 45 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 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 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 75 91 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 35 64 02 00 35 04 06 00 E9 98 9E B6 ED 09 2B 78 DA E3 50 B0 1D 27 [19:16:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 EE AE 47 00 52 7A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 35 64 02 00 F4 03 04 00 E3 36 1E 67 B6 04 01 00 00 FF 23 66 7B E6 3C 3B 65 [19:16:00]CommunicateWithHost err = 0 [19:16:00]CheckOFDResponse [19:16:00]1017 (14) - 77093643461234 [19:16:00]1041 (16) - 0000000000871792 [19:16:00]1040 (4) - 156725 [19:16:00]1012 (4) - 27.10.2024 12:49 [19:16:00]1206 (1) - 0 [19:16:00]OFD Sender: Remove packet 156725 [19:16:00]ProducePacketName [19:16:00]name=ofd_packets/00156725 [19:16:00]NVStorageDeleteData [19:16:00]Write to MH i2c: 01 00 00 AC 7F 2B [19:16:00]Write i2c OK [19:16:00]MH_I2C_Read... [19:16:00]Read from MH i2c: 01 [19:16:00]MH_I2C_Read... [19:16:00]Read from MH i2c: 01 07 00 [19:16:00]MH_I2C_Read... [19:16:00]Read from MH i2c: 01 07 00 AC 7F 00 00 00 00 00 FB 0C 39 [19:16:00]RasterBufferAndPrint [19:16:00]line [19:16:00]line [19:16:00]line [19:16:00]line [19:16:00]line [19:16:00]written 0, free lines is 3332 [19:16:00]process_action close_receipt done [19:16:00]requested_data is exist [19:16:00]produce_requested_data [19:16:00]requested_item fm.sn is exist - process it [19:16:00]wFMCommunicate request_size=4 [19:16:00]MH_SAM_APDU [19:16:00]CAPDU: 80 11 00 00 [19:16:00]Write to MH i2c: E2 08 00 B3 7F 80 11 00 00 00 00 00 00 AC [19:16:00]Write i2c OK [19:16:00]MH_I2C_Read... [19:16:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:16:00]Read from MH i2c: E2 [19:16:00]MH_I2C_Read... [19:16:00]Read from MH i2c: E2 17 00 [19:16:00]MH_I2C_Read... [19:16:00]Read from MH i2c: E2 17 00 B3 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 01 [19:16:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:16:00]wFMCommunicate OK [19:16:00]requested_item fd.num is exist - process it [19:16:00]SAM_PROTO_GetFieldsCounters [19:16:00]wFMCommunicate request_size=4 [19:16:00]MH_SAM_APDU [19:16:00]CAPDU: 80 13 00 00 [19:16:00]Write to MH i2c: E2 08 00 B4 7F 80 13 00 00 00 00 00 00 AF [19:16:00]Write i2c OK [19:16:00]MH_I2C_Read... [19:16:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:16:00]Read from MH i2c: E2 [19:16:00]MH_I2C_Read... [19:16:00]Read from MH i2c: E2 62 00 [19:16:00]MH_I2C_Read... [19:16:00]Read from MH i2c: E2 62 00 B4 7F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 35 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 14 01 00 00 5E 04 04 00 14 01 00 00 57 04 04 00 15 01 00 00 19 04 04 00 00 00 00 00 90 00 CA [19:16:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 35 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 14 01 00 00 5E 04 04 00 14 01 00 00 57 04 04 00 15 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:16:00]wFMCommunicate OK [19:16:00]SAM_PROTO_GetFieldsCounters done [19:16:00]requested_item shift.num is exist - process it [19:16:00]requested_item shift.opened is exist - process it [19:16:00]req_shift_opened [19:16:00]FM_GetShiftState [19:16:00]SAM_PROTO_GetShiftState [19:16:00]wFMCommunicate request_size=4 [19:16:00]MH_SAM_APDU [19:16:00]CAPDU: 80 13 01 00 [19:16:00]Write to MH i2c: E2 08 00 B5 7F 80 13 01 00 00 00 00 00 B1 [19:16:00]Write i2c OK [19:16:00]MH_I2C_Read... [19:16:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:16:00]Read from MH i2c: E2 [19:16:00]MH_I2C_Read... [19:16:00]Read from MH i2c: E2 0E 00 [19:16:00]MH_I2C_Read... [19:16:00]Read from MH i2c: E2 0E 00 B5 7F 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 7E [19:16:00]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [19:16:00]wFMCommunicate OK [19:16:00]SAM_PROTO_GetShiftState done [19:16:00]FM_GetShiftState done [19:16:00]req_shift_opened done [19:16:00]requested_item shift.open_date is exist - process it [19:16:00]req_shift_open_date [19:16:00]req_shift_open_date done [19:16:00]produce_requested_data done [19:16:00]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156725,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [19:16:00]process_action_free close_receipt [19:16:00]json_value_free [19:16:00]json_value_free done [19:16:00]process_json_proto returns [19:16:00]Send response to host [19:16:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156725,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [19:16:00]free response buf [19:16:00]execute_script done [19:16:00]execute_script returns [19:16:00]free content buf [19:16:00]Sock 8.Close socket [19:16:00]Sock 8.Thread stoped [19:16:00]OFD Sender: No OFD packet to send [19:16:05]OFD Sender: No OFD packet to send [19:16:10]OFD Sender: No OFD packet to send [19:16:15]OFD Sender: No OFD packet to send [19:16:20]OFD Sender: No OFD packet to send [19:16:25]OFD Sender: No OFD packet to send [19:16:30]OFD Sender: No OFD packet to send [19:16:35]OFD Sender: No OFD packet to send [19:16:40]OFD Sender: No OFD packet to send [19:16:45]OFD Sender: No OFD packet to send [19:16:50]OFD Sender: No OFD packet to send [19:16:55]OFD Sender: No OFD packet to send [19:17:00]OFD Sender: No OFD packet to send [19:17:05]OFD Sender: No OFD packet to send [19:17:10]OFD Sender: No OFD packet to send [19:17:15]OFD Sender: No OFD packet to send [19:17:20]OFD Sender: No OFD packet to send [19:17:25]OFD Sender: No OFD packet to send [19:17:30]OFD Sender: No OFD packet to send [19:17:35]OFD Sender: No OFD packet to send [19:17:40]OFD Sender: No OFD packet to send [19:17:45]OFD Sender: No OFD packet to send [19:17:50]OFD Sender: No OFD packet to send [19:17:55]OFD Sender: No OFD packet to send [19:18:00]OFD Sender: No OFD packet to send [19:18:05]OFD Sender: No OFD packet to send [19:18:10]OFD Sender: No OFD packet to send [19:18:15]OFD Sender: No OFD packet to send [19:18:20]OFD Sender: No OFD packet to send [19:18:25]OFD Sender: No OFD packet to send [19:18:30]OFD Sender: No OFD packet to send [19:18:35]OFD Sender: No OFD packet to send [19:18:40]OFD Sender: No OFD packet to send [19:18:45]OFD Sender: No OFD packet to send [19:18:50]OFD Sender: No OFD packet to send [19:18:55]OFD Sender: No OFD packet to send [19:19:00]accept exits with 10 [19:19:00]New connection [19:19:00]New thread 3066834276 created [19:19:00]Thread 3066977636 joined [19:19:00]Waiting for new connection... [19:19:00] Sock 10.Parse request [19:19:00]Sock 10.Check first char [19:19:00]Sock 10.First char is OK [19:19:00]request: POST /json_proto HTTP/1.0 [19:19:00]Method: POST [19:19:00]URL: /json_proto [19:19:00]Method is POST - this is cgi request [19:19:00]url: /json_proto [19:19:00]query_string will be loaded in cgi processing [19:19:00]execute_cgi json_proto POST (null) [19:19:00]execute_cgi path=json_proto method=POST [19:19:00]POST find Content-Length [19:19:00]Host: 172.17.63.3:8080 [19:19:00]Content-Length: 676 [19:19:00]Content-Type: application/json [19:19:00] [19:19:00]POST finish read [19:19:00]Found Content-Length = 676 [19:19:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99540", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:19:00]execute_script... [19:19: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)99540", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:19:00]POST & json_proto [19:19:00]process_json_proto [19:19:00]json parsed OK: [19:19:00]protocol is kg_v1.0 [19:19:00]action value=close_receipt [19:19:00]process_action close_receipt [19:19:00]cmd_close_receipt [19:19:00]MH_GetDate [19:19:00]Write to MH i2c: F0 00 00 B6 7F 24 [19:19:00]Write i2c OK [19:19:00]MH_I2C_Read... [19:19:00]Read from MH i2c: F0 [19:19:00]MH_I2C_Read... [19:19:00]Read from MH i2c: F0 09 00 [19:19:00]MH_I2C_Read... [19:19:00]Read from MH i2c: F0 09 00 B6 7F 00 2B 92 1E 67 50 D1 6C 64 60 [19:19:00]GetLastDocTimeStamp 1730056565 [19:19:00]current date 1730056747 [19:19:00]FM_GetShiftState [19:19:00]SAM_PROTO_GetShiftState [19:19:00]wFMCommunicate request_size=4 [19:19:00]MH_SAM_APDU [19:19:00]CAPDU: 80 13 01 00 [19:19:00]Write to MH i2c: E2 08 00 B7 7F 80 13 01 00 00 00 00 00 B3 [19:19:00]Write i2c OK [19:19:00]MH_I2C_Read... [19:19:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:19:00]Read from MH i2c: E2 [19:19:00]MH_I2C_Read... [19:19:00]Read from MH i2c: E2 0E 00 [19:19:00]MH_I2C_Read... [19:19:00]Read from MH i2c: E2 0E 00 B7 7F 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 80 [19:19:00]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [19:19:00]wFMCommunicate OK [19:19:00]SAM_PROTO_GetShiftState done [19:19:00]FM_GetShiftState done [19:19:00]opened in 1729989044 [19:19:00]opened+sec_in_day 1730075444 [19:19:00]quantity*price = 30038 [19:19:00]sum+1 = 30039 [19:19:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 277 27.10.2024 19:19 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156726 ФПД: 1474634848371 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T191907&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156726&fm=1474634848371&tin=02508201610067®Number=0000000000091693&sum=30000 [19:19:01]StoreToDocumentArchive [19:19:01]shift 537 fd 156726 [19:19:01]save to /storage/0537/doc_00156726 [19:19:01]save last doc name /storage/0537/doc_00156726 to /storage/kkm_last_doc_name [19:19:01]save OK [19:19:01]Clear old archive folders... [19:19:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:19:01]tlvbuf is 01906470 [19:19:01]SAM_PROTO_ClearQueue [19:19:01]wFMCommunicate request_size=4 [19:19:01]MH_SAM_APDU [19:19:01]CAPDU: 80 09 00 00 [19:19:01]Write to MH i2c: E2 08 00 C4 7F 80 09 00 00 00 00 00 00 B5 [19:19:01]Write i2c OK [19:19:01]MH_I2C_Read... [19:19:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:19:01]Read from MH i2c: E2 [19:19:01]MH_I2C_Read... [19:19:01]Read from MH i2c: E2 03 00 [19:19:01]MH_I2C_Read... [19:19:01]Read from MH i2c: E2 03 00 C4 7F 00 90 00 B7 [19:19:01]RAPDU: 90 00 [19:19:01]wFMCommunicate OK [19:19:01]SAM_PROTO_ClearQueue done [19:19:01]KKMCreateOFDPacket [19:19:01]OFDProtocolAddRootSTLVToBuf [19:19:01]FM_MakeSignedData [19:19:01]FM_MakeSignedData [19:19:01]SAM_PROTO_SignData [19:19:01]wFMCommunicate request_size=4 [19:19:01]MH_SAM_APDU [19:19:01]CAPDU: 80 0D 01 02 [19:19:01]Write to MH i2c: E2 08 00 C5 7F 80 0D 01 02 00 00 00 00 BD [19:19:01]Write i2c OK [19:19:01]MH_I2C_Read... [19:19:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:19:01]Read from MH i2c: E2 [19:19:01]MH_I2C_Read... [19:19:01]Read from MH i2c: E2 03 00 [19:19:01]MH_I2C_Read... [19:19:01]Read from MH i2c: E2 03 00 C5 7F 00 90 00 B8 [19:19:01]RAPDU: 90 00 [19:19:01]wFMCommunicate OK [19:19:01]wFMCommunicate request_size=255 [19:19:01]MH_SAM_APDU [19:19: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 2B 92 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 36 64 02 00 35 04 06 00 01 [19:19:01]Write to MH i2c: E2 02 01 C6 7F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 2B 92 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 36 64 02 00 35 04 06 00 01 00 00 55 [19:19:01]Write i2c OK [19:19:01]MH_I2C_Read... [19:19:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:19:01]Read from MH i2c: E2 [19:19:01]MH_I2C_Read... [19:19:01]Read from MH i2c: E2 03 00 [19:19:01]MH_I2C_Read... [19:19:01]Read from MH i2c: E2 03 00 C6 7F 00 90 00 B9 [19:19:01]RAPDU: 90 00 [19:19:01]wFMCommunicate OK [19:19:01]wFMCommunicate request_size=10 [19:19:01]MH_SAM_APDU [19:19:01]CAPDU: 80 0D 02 02 05 57 57 16 18 73 [19:19:01]Write to MH i2c: E2 0D 00 C7 7F 80 0D 02 02 05 00 57 57 16 18 73 00 00 19 [19:19:01]Write i2c OK [19:19:01]MH_I2C_Read... [19:19:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:19:01]Read from MH i2c: E2 [19:19:01]MH_I2C_Read... [19:19:01]Read from MH i2c: E2 03 00 [19:19:01]MH_I2C_Read... [19:19:01]Read from MH i2c: E2 03 00 C7 7F 00 90 00 BA [19:19:01]RAPDU: 90 00 [19:19:01]wFMCommunicate OK [19:19:01]wFMCommunicate request_size=4 [19:19:01]MH_SAM_APDU [19:19:01]CAPDU: 80 0D 03 02 [19:19:01]Write to MH i2c: E2 08 00 C8 7F 80 0D 03 02 00 00 00 00 C2 [19:19:01]Write i2c OK [19:19:01]MH_I2C_Read... [19:19:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:19:01]Read from MH i2c: E2 [19:19:01]MH_I2C_Read... [19:19:01]Read from MH i2c: E2 0B 00 [19:19:01]MH_I2C_Read... [19:19:01]Read from MH i2c: E2 0B 00 C8 7F 00 42 5A 2D BD 50 CB 04 BD 90 00 25 [19:19:01]RAPDU: 42 5A 2D BD 50 CB 04 BD 90 00 [19:19:01]wFMCommunicate OK [19:19:01]SAM_PROTO_SignData done [19:19:01]FM_MakeSignedData done [19:19:01]CreateOFDProtocolMessage [19:19:01]wFMCommunicate request_size=4 [19:19:01]MH_SAM_APDU [19:19:01]CAPDU: 80 11 00 00 [19:19:01]Write to MH i2c: E2 08 00 C9 7F 80 11 00 00 00 00 00 00 C2 [19:19:01]Write i2c OK [19:19:01]MH_I2C_Read... [19:19:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:19:01]Read from MH i2c: E2 [19:19:01]MH_I2C_Read... [19:19:01]Read from MH i2c: E2 17 00 [19:19:01]MH_I2C_Read... [19:19:01]Read from MH i2c: E2 17 00 C9 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 17 [19:19:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:19:01]wFMCommunicate OK [19:19:01]CreateOFDProtocolMessage done [19:19:01]OFDSenderStorePacket 156726 [19:19:01]StoreOFDPacket docnum=156726 [19:19:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 C5 EF 07 01 50 C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 2B 92 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 36 64 02 00 35 04 06 00 01 57 57 16 18 73 42 5A 2D BD 50 CB 04 BD [19:19:01]CheckFolder [19:19:01]dirname=/storage/ofd_packets [19:19:01]CheckFolder done [19:19:01]ProducePacketName [19:19:01]name=ofd_packets/00156726 [19:19:01]NVStorageSaveData ofd_packets/00156726 [19:19:01]File name is /storage/ofd_packets/00156726 [19:19:01]Write 301 bytes [19:19:01]NVStorageSaveData done [19:19:01]OFDSenderStorePacket done [19:19:01]KKMCreateOFDPacket done [19:19:01]NVStorageSaveData kkm_last_timestamp [19:19:01]File name is /storage/kkm_last_timestamp [19:19:01]Write 4 bytes [19:19:01]NVStorageSaveData done [19:19:01]ExternCall_PrintAddStr [19:19:01]wPrintStart [19:19:01]Write to MH i2c: 01 00 00 CA 7F 49 [19:19:01]Write i2c OK [19:19:01]MH_I2C_Read... [19:19:01]Read from MH i2c: 01 [19:19:01]MH_I2C_Read... [19:19:01]Read from MH i2c: 01 07 00 [19:19:01]MH_I2C_Read... [19:19:01]Read from MH i2c: 01 07 00 CA 7F 00 00 00 00 00 FF 0F 5E [19:19:01]RasterBufferAndPrint [19:19:01]line Счет N : (1)99540 [19:19:01]line ИНН: 02508201610067 [19:19:01]line Контрольно-Кассовый Чек [19:19:01]line ПРОДАЖА [19:19:01]line ТРК (МРК, ГНК) : 31 [19:19:01]line Товар: 2710124130 [19:19:01]line Аи-92-К-5 [19:19:01]line 4.490 * 66.90 [19:19:01]line = 300.38 [19:19:01]line НДС 12% НСП 1% [19:19:01]line > о реализуемом товаре [19:19:01]line ОКРУГЛЕНИЕ: -0.38 [19:19:01]line ИТОГО: 300.00 [19:19:01]line Внесено: 300.00 [19:19:01]line СДАЧА: 0.00 [19:19:01]line НСП 1% : 2.66 [19:19:01]line НДС 12% : 31.90 [19:19:01]line Наличными: 300.00 [19:19:01]line Безнал.: 0.00 [19:19:01]line Место: АЗС № 143 "Партнер Нефть" [19:19:01]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [19:19:01]line СНО: Общий режим [19:19:01]line Чек 277 27.10.2024 19:19 [19:19:01]line Смена: 537 ФФД: 1.0 [19:19:01]line ЗНМ: 0300000096 [19:19:01]line РНМ: 0000000000091693 [19:19:01]line Версия ККМ: 001 [19:19:01]line ФМ: 0000000000871792 [19:19:01]line ФД: 156726 [19:19:01]line ФПД: 1474634848371 [19:19:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T191907&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156726&fm=1474634848371&tin=02508201610067®Number=0000000000091693&sum=30000 [19:19:02]OFD Sender: Processing packet 156726 [packets to send 31, broken 30] [19:19:02]ProducePacketName [19:19:02]name=ofd_packets/00156726 [19:19:02]OFD Sender: To server: pG, [19:19:02]CommunicateWithHost lk.salyk.kg:30040 [19:19:02]ConnectInit lk.salyk.kg [19:19:02]written 0, free lines is 4095 [19:19:02]Connected sock=9 [19:19:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 C5 EF 07 01 50 C6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 2B 92 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 36 64 02 00 35 04 06 00 01 57 57 16 18 73 42 5A 2D BD 50 CB 04 BD [19:19:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 2A E2 47 00 6B 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 31 37 39 32 10 04 04 00 36 64 02 00 F4 03 04 00 9A 37 1E 67 B6 04 01 00 00 41 27 BA EB 0E 59 70 62 [19:19:02]CommunicateWithHost err = 0 [19:19:02]CheckOFDResponse [19:19:02]1017 (14) - 77093643461234 [19:19:02]1041 (16) - 0000000000871792 [19:19:02]1040 (4) - 156726 [19:19:02]1012 (4) - 27.10.2024 12:52 [19:19:02]1206 (1) - 0 [19:19:02]OFD Sender: Remove packet 156726 [19:19:02]ProducePacketName [19:19:02]name=ofd_packets/00156726 [19:19:02]NVStorageDeleteData [19:19:02]Write to MH i2c: 01 00 00 F5 7F 74 [19:19:02]Write i2c OK [19:19:02]MH_I2C_Read... [19:19:02]Read from MH i2c: 01 [19:19:02]MH_I2C_Read... [19:19:02]Read from MH i2c: 01 07 00 [19:19:02]MH_I2C_Read... [19:19:02]Read from MH i2c: 01 07 00 F5 7F 00 00 00 00 00 D9 0C 60 [19:19:02]RasterBufferAndPrint [19:19:02]line [19:19:02]line [19:19:02]line [19:19:02]line [19:19:02]line [19:19:02]written 0, free lines is 3296 [19:19:02]process_action close_receipt done [19:19:02]requested_data is exist [19:19:02]produce_requested_data [19:19:02]requested_item fm.sn is exist - process it [19:19:02]wFMCommunicate request_size=4 [19:19:02]MH_SAM_APDU [19:19:02]CAPDU: 80 11 00 00 [19:19:02]Write to MH i2c: E2 08 00 FC 7F 80 11 00 00 00 00 00 00 F5 [19:19:02]Write i2c OK [19:19:02]MH_I2C_Read... [19:19:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:19:02]Read from MH i2c: E2 [19:19:02]MH_I2C_Read... [19:19:02]Read from MH i2c: E2 17 00 [19:19:02]MH_I2C_Read... [19:19:02]Read from MH i2c: E2 17 00 FC 7F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 4A [19:19:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:19:02]wFMCommunicate OK [19:19:02]requested_item fd.num is exist - process it [19:19:02]SAM_PROTO_GetFieldsCounters [19:19:02]wFMCommunicate request_size=4 [19:19:02]MH_SAM_APDU [19:19:02]CAPDU: 80 13 00 00 [19:19:02]Write to MH i2c: E2 08 00 FD 7F 80 13 00 00 00 00 00 00 F8 [19:19:02]Write i2c OK [19:19:02]MH_I2C_Read... [19:19:02]Read from MH i2c: E2 [19:19:02]MH_I2C_Read... [19:19:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:19:02]Read from MH i2c: E2 62 00 [19:19:02]MH_I2C_Read... [19:19:02]Read from MH i2c: E2 62 00 FD 7F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 36 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 15 01 00 00 5E 04 04 00 15 01 00 00 57 04 04 00 16 01 00 00 19 04 04 00 00 00 00 00 90 00 17 [19:19:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 36 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 15 01 00 00 5E 04 04 00 15 01 00 00 57 04 04 00 16 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:19:02]wFMCommunicate OK [19:19:02]SAM_PROTO_GetFieldsCounters done [19:19:02]requested_item shift.num is exist - process it [19:19:02]requested_item shift.opened is exist - process it [19:19:02]req_shift_opened [19:19:02]FM_GetShiftState [19:19:02]SAM_PROTO_GetShiftState [19:19:02]wFMCommunicate request_size=4 [19:19:02]MH_SAM_APDU [19:19:02]CAPDU: 80 13 01 00 [19:19:02]Write to MH i2c: E2 08 00 FE 7F 80 13 01 00 00 00 00 00 FA [19:19:02]Write i2c OK [19:19:02]MH_I2C_Read... [19:19:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:19:02]Read from MH i2c: E2 [19:19:02]MH_I2C_Read... [19:19:02]Read from MH i2c: E2 0E 00 [19:19:02]MH_I2C_Read... [19:19:02]Read from MH i2c: E2 0E 00 FE 7F 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 C7 [19:19:02]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [19:19:02]wFMCommunicate OK [19:19:02]SAM_PROTO_GetShiftState done [19:19:02]FM_GetShiftState done [19:19:02]req_shift_opened done [19:19:02]requested_item shift.open_date is exist - process it [19:19:02]req_shift_open_date [19:19:02]req_shift_open_date done [19:19:02]produce_requested_data done [19:19:02]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156726,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [19:19:02]process_action_free close_receipt [19:19:02]json_value_free [19:19:02]json_value_free done [19:19:02]process_json_proto returns [19:19:02]Send response to host [19:19:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156726,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [19:19:02]free response buf [19:19:02]execute_script done [19:19:02]execute_script returns [19:19:02]free content buf [19:19:02]Sock 10.Close socket [19:19:02]Sock 10.Thread stoped [19:19:03]OFD Sender: No OFD packet to send [19:19:08]OFD Sender: No OFD packet to send [19:19:13]OFD Sender: No OFD packet to send [19:19:18]OFD Sender: No OFD packet to send [19:19:23]OFD Sender: No OFD packet to send [19:19:28]OFD Sender: No OFD packet to send [19:19:33]OFD Sender: No OFD packet to send [19:19:38]OFD Sender: No OFD packet to send [19:19:43]OFD Sender: No OFD packet to send [19:19:48]OFD Sender: No OFD packet to send [19:19:53]OFD Sender: No OFD packet to send [19:19:58]OFD Sender: No OFD packet to send [19:20:03]OFD Sender: No OFD packet to send [19:20:08]OFD Sender: No OFD packet to send [19:20:13]OFD Sender: No OFD packet to send [19:20:18]OFD Sender: No OFD packet to send [19:20:23]OFD Sender: No OFD packet to send [19:20:28]OFD Sender: No OFD packet to send [19:20:33]OFD Sender: No OFD packet to send [19:20:38]OFD Sender: No OFD packet to send [19:20:43]OFD Sender: No OFD packet to send [19:20:48]OFD Sender: No OFD packet to send [19:20:53]OFD Sender: No OFD packet to send [19:20:58]OFD Sender: No OFD packet to send [19:21:03]OFD Sender: No OFD packet to send [19:21:08]OFD Sender: No OFD packet to send [19:21:13]OFD Sender: No OFD packet to send [19:21:16]accept exits with 8 [19:21:16]New connection [19:21:16]New thread 3066977636 created [19:21:16]Thread 3066834276 joined [19:21:16]Waiting for new connection... [19:21:16] Sock 8.Parse request [19:21:16]Sock 8.Check first char [19:21:16]Sock 8.First char is OK [19:21:16]request: POST /json_proto HTTP/1.0 [19:21:16]Method: POST [19:21:16]URL: /json_proto [19:21:16]Method is POST - this is cgi request [19:21:16]url: /json_proto [19:21:16]query_string will be loaded in cgi processing [19:21:16]execute_cgi json_proto POST (null) [19:21:16]execute_cgi path=json_proto method=POST [19:21:16]POST find Content-Length [19:21:16]Host: 172.17.63.3:8080 [19:21:16]Content-Length: 676 [19:21:16]Content-Type: application/json [19:21:16] [19:21:16]POST finish read [19:21:16]Found Content-Length = 676 [19:21:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99541", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:21:16]execute_script... [19:21: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)99541", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:21:16]POST & json_proto [19:21:16]process_json_proto [19:21:16]json parsed OK: [19:21:16]protocol is kg_v1.0 [19:21:16]action value=close_receipt [19:21:16]process_action close_receipt [19:21:16]cmd_close_receipt [19:21:16]MH_GetDate [19:21:16]Write to MH i2c: F0 00 00 FF 7F 6D [19:21:16]Write i2c OK [19:21:16]MH_I2C_Read... [19:21:16]Read from MH i2c: F0 [19:21:16]MH_I2C_Read... [19:21:16]Read from MH i2c: F0 09 00 [19:21:16]MH_I2C_Read... [19:21:16]Read from MH i2c: F0 09 00 FF 7F 00 B3 92 1E 67 50 D1 6C 64 31 [19:21:16]GetLastDocTimeStamp 1730056747 [19:21:16]current date 1730056883 [19:21:16]FM_GetShiftState [19:21:16]SAM_PROTO_GetShiftState [19:21:16]wFMCommunicate request_size=4 [19:21:16]MH_SAM_APDU [19:21:16]CAPDU: 80 13 01 00 [19:21:16]Write to MH i2c: E2 08 00 00 80 80 13 01 00 00 00 00 00 FD [19:21:16]Write i2c OK [19:21:16]MH_I2C_Read... [19:21:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:21:16]Read from MH i2c: E2 [19:21:16]MH_I2C_Read... [19:21:16]Read from MH i2c: E2 0E 00 [19:21:16]MH_I2C_Read... [19:21:16]Read from MH i2c: E2 0E 00 00 80 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 CA [19:21:16]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [19:21:16]wFMCommunicate OK [19:21:16]SAM_PROTO_GetShiftState done [19:21:16]FM_GetShiftState done [19:21:16]opened in 1729989044 [19:21:16]opened+sec_in_day 1730075444 [19:21:16]quantity*price = 50041 [19:21:16]sum+1 = 50042 [19:21:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 278 27.10.2024 19:21 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156727 ФПД: 63462565238669 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T192123&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156727&fm=63462565238669&tin=02508201610067®Number=0000000000091693&sum=50000 [19:21:17]StoreToDocumentArchive [19:21:17]shift 537 fd 156727 [19:21:17]save to /storage/0537/doc_00156727 [19:21:17]save last doc name /storage/0537/doc_00156727 to /storage/kkm_last_doc_name [19:21:17]save OK [19:21:17]Clear old archive folders... [19:21:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:21:17]tlvbuf is 017721E0 [19:21:17]SAM_PROTO_ClearQueue [19:21:17]wFMCommunicate request_size=4 [19:21:17]MH_SAM_APDU [19:21:17]CAPDU: 80 09 00 00 [19:21:17]Write to MH i2c: E2 08 00 0D 80 80 09 00 00 00 00 00 00 FF [19:21:17]Write i2c OK [19:21:17]MH_I2C_Read... [19:21:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:21:17]Read from MH i2c: E2 [19:21:17]MH_I2C_Read... [19:21:17]Read from MH i2c: E2 03 00 [19:21:17]MH_I2C_Read... [19:21:17]Read from MH i2c: E2 03 00 0D 80 00 90 00 01 [19:21:17]RAPDU: 90 00 [19:21:17]wFMCommunicate OK [19:21:17]SAM_PROTO_ClearQueue done [19:21:17]KKMCreateOFDPacket [19:21:17]OFDProtocolAddRootSTLVToBuf [19:21:17]FM_MakeSignedData [19:21:17]FM_MakeSignedData [19:21:17]SAM_PROTO_SignData [19:21:17]wFMCommunicate request_size=4 [19:21:17]MH_SAM_APDU [19:21:17]CAPDU: 80 0D 01 02 [19:21:17]Write to MH i2c: E2 08 00 0E 80 80 0D 01 02 00 00 00 00 07 [19:21:17]Write i2c OK [19:21:17]MH_I2C_Read... [19:21:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:21:17]Read from MH i2c: E2 [19:21:17]MH_I2C_Read... [19:21:17]Read from MH i2c: E2 03 00 [19:21:17]MH_I2C_Read... [19:21:17]Read from MH i2c: E2 03 00 0E 80 00 90 00 02 [19:21:17]RAPDU: 90 00 [19:21:17]wFMCommunicate OK [19:21:17]wFMCommunicate request_size=255 [19:21:17]MH_SAM_APDU [19:21: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 B3 92 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 37 64 02 00 35 04 06 00 39 [19:21:17]Write to MH i2c: E2 02 01 0F 80 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 B3 92 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 37 64 02 00 35 04 06 00 39 00 00 6D [19:21:17]Write i2c OK [19:21:17]MH_I2C_Read... [19:21:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:21:18]Read from MH i2c: E2 [19:21:18]MH_I2C_Read... [19:21:18]Read from MH i2c: E2 03 00 [19:21:18]MH_I2C_Read... [19:21:18]Read from MH i2c: E2 03 00 0F 80 00 90 00 03 [19:21:18]RAPDU: 90 00 [19:21:18]wFMCommunicate OK [19:21:18]wFMCommunicate request_size=10 [19:21:18]MH_SAM_APDU [19:21:18]CAPDU: 80 0D 02 02 05 B8 07 A8 57 8D [19:21:18]Write to MH i2c: E2 0D 00 10 80 80 0D 02 02 05 00 B8 07 A8 57 8D 00 00 5F [19:21:18]Write i2c OK [19:21:18]MH_I2C_Read... [19:21:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:21:18]Read from MH i2c: E2 [19:21:18]MH_I2C_Read... [19:21:18]Read from MH i2c: E2 03 00 [19:21:18]MH_I2C_Read... [19:21:18]Read from MH i2c: E2 03 00 10 80 00 90 00 04 [19:21:18]RAPDU: 90 00 [19:21:18]wFMCommunicate OK [19:21:18]wFMCommunicate request_size=4 [19:21:18]MH_SAM_APDU [19:21:18]CAPDU: 80 0D 03 02 [19:21:18]Write to MH i2c: E2 08 00 11 80 80 0D 03 02 00 00 00 00 0C [19:21:18]Write i2c OK [19:21:18]MH_I2C_Read... [19:21:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:21:18]Read from MH i2c: E2 [19:21:18]MH_I2C_Read... [19:21:18]Read from MH i2c: E2 0B 00 [19:21:18]MH_I2C_Read... [19:21:18]Read from MH i2c: E2 0B 00 11 80 00 41 20 34 F1 4E 0E 6B 93 90 00 ED [19:21:18]RAPDU: 41 20 34 F1 4E 0E 6B 93 90 00 [19:21:18]wFMCommunicate OK [19:21:18]SAM_PROTO_SignData done [19:21:18]FM_MakeSignedData done [19:21:18]CreateOFDProtocolMessage [19:21:18]wFMCommunicate request_size=4 [19:21:18]MH_SAM_APDU [19:21:18]CAPDU: 80 11 00 00 [19:21:18]Write to MH i2c: E2 08 00 12 80 80 11 00 00 00 00 00 00 0C [19:21:18]Write i2c OK [19:21:18]MH_I2C_Read... [19:21:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:21:18]Read from MH i2c: E2 [19:21:18]MH_I2C_Read... [19:21:18]Read from MH i2c: E2 17 00 [19:21:18]MH_I2C_Read... [19:21:18]Read from MH i2c: E2 17 00 12 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 61 [19:21:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:21:18]wFMCommunicate OK [19:21:18]CreateOFDProtocolMessage done [19:21:18]OFDSenderStorePacket 156727 [19:21:18]StoreOFDPacket docnum=156727 [19:21:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 73 6C 07 01 2E 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 B3 92 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 37 64 02 00 35 04 06 00 39 B8 07 A8 57 8D 41 20 34 F1 4E 0E 6B 93 [19:21:18]CheckFolder [19:21:18]dirname=/storage/ofd_packets [19:21:18]CheckFolder done [19:21:18]ProducePacketName [19:21:18]name=ofd_packets/00156727 [19:21:18]NVStorageSaveData ofd_packets/00156727 [19:21:18]File name is /storage/ofd_packets/00156727 [19:21:18]Write 301 bytes [19:21:18]NVStorageSaveData done [19:21:18]OFDSenderStorePacket done [19:21:18]KKMCreateOFDPacket done [19:21:18]NVStorageSaveData kkm_last_timestamp [19:21:18]File name is /storage/kkm_last_timestamp [19:21:18]Write 4 bytes [19:21:18]NVStorageSaveData done [19:21:18]ExternCall_PrintAddStr [19:21:18]wPrintStart [19:21:18]Write to MH i2c: 01 00 00 13 80 93 [19:21:18]Write i2c OK [19:21:18]MH_I2C_Read... [19:21:18]Read from MH i2c: 01 [19:21:18]MH_I2C_Read... [19:21:18]Read from MH i2c: 01 07 00 [19:21:18]MH_I2C_Read... [19:21:18]Read from MH i2c: 01 07 00 13 80 00 00 00 00 00 FF 0F A8 [19:21:18]RasterBufferAndPrint [19:21:18]line Счет N : (1)99541 [19:21:18]line ИНН: 02508201610067 [19:21:18]line Контрольно-Кассовый Чек [19:21:18]line ПРОДАЖА [19:21:18]line ТРК (МРК, ГНК) : 31 [19:21:18]line Товар: 2710124130 [19:21:18]line Аи-92-К-5 [19:21:18]line 7.480 * 66.90 [19:21:18]line = 500.41 [19:21:18]line НДС 12% НСП 1% [19:21:18]line > о реализуемом товаре [19:21:18]line ОКРУГЛЕНИЕ: -0.41 [19:21:18]line ИТОГО: 500.00 [19:21:18]line Внесено: 500.00 [19:21:18]line СДАЧА: 0.00 [19:21:18]line НСП 1% : 4.43 [19:21:18]line НДС 12% : 53.14 [19:21:18]line Наличными: 500.00 [19:21:18]line Безнал.: 0.00 [19:21:18]line Место: АЗС № 143 "Партнер Нефть" [19:21:18]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [19:21:18]line СНО: Общий режим [19:21:18]line Чек 278 27.10.2024 19:21 [19:21:18]line Смена: 537 ФФД: 1.0 [19:21:18]line ЗНМ: 0300000096 [19:21:18]line РНМ: 0000000000091693 [19:21:18]line Версия ККМ: 001 [19:21:18]line ФМ: 0000000000871792 [19:21:18]line ФД: 156727 [19:21:18]line ФПД: 63462565238669 [19:21:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T192123&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156727&fm=63462565238669&tin=02508201610067®Number=0000000000091693&sum=50000 [19:21:18]OFD Sender: Processing packet 156727 [packets to send 31, broken 30] [19:21:18]ProducePacketName [19:21:18]name=ofd_packets/00156727 [19:21:18]OFD Sender: To server: pG, [19:21:18]CommunicateWithHost lk.salyk.kg:30040 [19:21:18]ConnectInit lk.salyk.kg [19:21:18]written 0, free lines is 4095 [19:21:18]Connected sock=10 [19:21:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 73 6C 07 01 2E 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 B3 92 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 37 64 02 00 35 04 06 00 39 B8 07 A8 57 8D 41 20 34 F1 4E 0E 6B 93 [19:21:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 82 64 47 00 1E 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 37 64 02 00 F4 03 04 00 22 38 1E 67 B6 04 01 00 00 EF C2 5F 38 F0 A8 99 0E [19:21:18]CommunicateWithHost err = 0 [19:21:18]CheckOFDResponse [19:21:18]1017 (14) - 77093643461234 [19:21:18]1041 (16) - 0000000000871792 [19:21:18]1040 (4) - 156727 [19:21:18]1012 (4) - 27.10.2024 12:54 [19:21:18]1206 (1) - 0 [19:21:18]OFD Sender: Remove packet 156727 [19:21:18]ProducePacketName [19:21:18]name=ofd_packets/00156727 [19:21:18]NVStorageDeleteData [19:21:18]Write to MH i2c: 01 00 00 3E 80 BE [19:21:18]Write i2c OK [19:21:18]MH_I2C_Read... [19:21:18]Read from MH i2c: 01 [19:21:18]MH_I2C_Read... [19:21:18]Read from MH i2c: 01 07 00 [19:21:18]MH_I2C_Read... [19:21:18]Read from MH i2c: 01 07 00 3E 80 00 00 00 00 00 D4 0C A5 [19:21:18]RasterBufferAndPrint [19:21:18]line [19:21:18]line [19:21:18]line [19:21:18]line [19:21:18]line [19:21:18]written 0, free lines is 3292 [19:21:18]process_action close_receipt done [19:21:18]requested_data is exist [19:21:18]produce_requested_data [19:21:18]requested_item fm.sn is exist - process it [19:21:18]wFMCommunicate request_size=4 [19:21:18]MH_SAM_APDU [19:21:18]CAPDU: 80 11 00 00 [19:21:18]Write to MH i2c: E2 08 00 45 80 80 11 00 00 00 00 00 00 3F [19:21:18]Write i2c OK [19:21:18]MH_I2C_Read... [19:21:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:21:19]Read from MH i2c: E2 [19:21:19]MH_I2C_Read... [19:21:19]Read from MH i2c: E2 17 00 [19:21:19]MH_I2C_Read... [19:21:19]Read from MH i2c: E2 17 00 45 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 94 [19:21:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:21:19]wFMCommunicate OK [19:21:19]requested_item fd.num is exist - process it [19:21:19]SAM_PROTO_GetFieldsCounters [19:21:19]wFMCommunicate request_size=4 [19:21:19]MH_SAM_APDU [19:21:19]CAPDU: 80 13 00 00 [19:21:19]Write to MH i2c: E2 08 00 46 80 80 13 00 00 00 00 00 00 42 [19:21:19]Write i2c OK [19:21:19]MH_I2C_Read... [19:21:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:21:19]Read from MH i2c: E2 [19:21:19]MH_I2C_Read... [19:21:19]Read from MH i2c: E2 62 00 [19:21:19]MH_I2C_Read... [19:21:19]Read from MH i2c: E2 62 00 46 80 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 37 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 16 01 00 00 5E 04 04 00 16 01 00 00 57 04 04 00 17 01 00 00 19 04 04 00 00 00 00 00 90 00 65 [19:21:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 37 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 16 01 00 00 5E 04 04 00 16 01 00 00 57 04 04 00 17 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:21:19]wFMCommunicate OK [19:21:19]SAM_PROTO_GetFieldsCounters done [19:21:19]requested_item shift.num is exist - process it [19:21:19]requested_item shift.opened is exist - process it [19:21:19]req_shift_opened [19:21:19]FM_GetShiftState [19:21:19]SAM_PROTO_GetShiftState [19:21:19]wFMCommunicate request_size=4 [19:21:19]MH_SAM_APDU [19:21:19]CAPDU: 80 13 01 00 [19:21:19]Write to MH i2c: E2 08 00 47 80 80 13 01 00 00 00 00 00 44 [19:21:19]Write i2c OK [19:21:19]MH_I2C_Read... [19:21:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:21:19]Read from MH i2c: E2 [19:21:19]MH_I2C_Read... [19:21:19]Read from MH i2c: E2 0E 00 [19:21:19]MH_I2C_Read... [19:21:19]Read from MH i2c: E2 0E 00 47 80 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 11 [19:21:19]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [19:21:19]wFMCommunicate OK [19:21:19]SAM_PROTO_GetShiftState done [19:21:19]FM_GetShiftState done [19:21:19]req_shift_opened done [19:21:19]requested_item shift.open_date is exist - process it [19:21:19]req_shift_open_date [19:21:19]req_shift_open_date done [19:21:19]produce_requested_data done [19:21:19]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156727,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [19:21:19]process_action_free close_receipt [19:21:19]json_value_free [19:21:19]json_value_free done [19:21:19]process_json_proto returns [19:21:19]Send response to host [19:21:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156727,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [19:21:19]free response buf [19:21:19]execute_script done [19:21:19]execute_script returns [19:21:19]free content buf [19:21:19]Sock 8.Close socket [19:21:19]Sock 8.Thread stoped [19:21:19]OFD Sender: No OFD packet to send [19:21:24]OFD Sender: No OFD packet to send [19:21:29]OFD Sender: No OFD packet to send [19:21:34]OFD Sender: No OFD packet to send [19:21:39]OFD Sender: No OFD packet to send [19:21:44]OFD Sender: No OFD packet to send [19:21:49]OFD Sender: No OFD packet to send [19:21:54]OFD Sender: No OFD packet to send [19:21:59]OFD Sender: No OFD packet to send [19:22:04]OFD Sender: No OFD packet to send [19:22:09]OFD Sender: No OFD packet to send [19:22:14]OFD Sender: No OFD packet to send [19:22:19]OFD Sender: No OFD packet to send [19:22:24]OFD Sender: No OFD packet to send [19:22:29]OFD Sender: No OFD packet to send [19:22:34]OFD Sender: No OFD packet to send [19:22:39]OFD Sender: No OFD packet to send [19:22:44]OFD Sender: No OFD packet to send [19:22:49]OFD Sender: No OFD packet to send [19:22:54]OFD Sender: No OFD packet to send [19:22:59]OFD Sender: No OFD packet to send [19:23:04]OFD Sender: No OFD packet to send [19:23:09]OFD Sender: No OFD packet to send [19:23:14]OFD Sender: No OFD packet to send [19:23:19]OFD Sender: No OFD packet to send [19:23:24]OFD Sender: No OFD packet to send [19:23:29]OFD Sender: No OFD packet to send [19:23:34]OFD Sender: No OFD packet to send [19:23:39]OFD Sender: No OFD packet to send [19:23:44]OFD Sender: No OFD packet to send [19:23:49]OFD Sender: No OFD packet to send [19:23:54]OFD Sender: No OFD packet to send [19:23:59]OFD Sender: No OFD packet to send [19:24:04]OFD Sender: No OFD packet to send [19:24:09]OFD Sender: No OFD packet to send [19:24:14]OFD Sender: No OFD packet to send [19:24:19]OFD Sender: No OFD packet to send [19:24:24]OFD Sender: No OFD packet to send [19:24:29]OFD Sender: No OFD packet to send [19:24:34]OFD Sender: No OFD packet to send [19:24:39]OFD Sender: No OFD packet to send [19:24:44]OFD Sender: No OFD packet to send [19:24:49]OFD Sender: No OFD packet to send [19:24:54]OFD Sender: No OFD packet to send [19:24:59]OFD Sender: No OFD packet to send [19:25:04]OFD Sender: No OFD packet to send [19:25:09]OFD Sender: No OFD packet to send [19:25:14]OFD Sender: No OFD packet to send [19:25:19]OFD Sender: No OFD packet to send [19:25:22]accept exits with 9 [19:25:22]New connection [19:25:22]New thread 3066834276 created [19:25:22]Thread 3066977636 joined [19:25:22]Waiting for new connection... [19:25:22] Sock 9.Parse request [19:25:22]Sock 9.Check first char [19:25:22]Sock 9.First char is OK [19:25:22]request: POST /json_proto HTTP/1.0 [19:25:22]Method: POST [19:25:22]URL: /json_proto [19:25:22]Method is POST - this is cgi request [19:25:22]url: /json_proto [19:25:22]query_string will be loaded in cgi processing [19:25:22]execute_cgi json_proto POST (null) [19:25:22]execute_cgi path=json_proto method=POST [19:25:22]POST find Content-Length [19:25:22]Host: 172.17.63.3:8080 [19:25:22]Content-Length: 676 [19:25:22]Content-Type: application/json [19:25:22] [19:25:22]POST finish read [19:25:22]Found Content-Length = 676 [19:25:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99542", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:25:22]execute_script... [19:25: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)99542", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:25:22]POST & json_proto [19:25:22]process_json_proto [19:25:22]json parsed OK: [19:25:22]protocol is kg_v1.0 [19:25:22]action value=close_receipt [19:25:22]process_action close_receipt [19:25:22]cmd_close_receipt [19:25:22]MH_GetDate [19:25:22]Write to MH i2c: F0 00 00 48 80 B7 [19:25:22]Write i2c OK [19:25:22]MH_I2C_Read... [19:25:22]Read from MH i2c: F0 [19:25:22]MH_I2C_Read... [19:25:22]Read from MH i2c: F0 09 00 [19:25:22]MH_I2C_Read... [19:25:22]Read from MH i2c: F0 09 00 48 80 00 A9 93 1E 67 50 D1 6C 64 72 [19:25:22]GetLastDocTimeStamp 1730056883 [19:25:22]current date 1730057129 [19:25:22]FM_GetShiftState [19:25:22]SAM_PROTO_GetShiftState [19:25:22]wFMCommunicate request_size=4 [19:25:22]MH_SAM_APDU [19:25:22]CAPDU: 80 13 01 00 [19:25:22]Write to MH i2c: E2 08 00 49 80 80 13 01 00 00 00 00 00 46 [19:25:22]Write i2c OK [19:25:22]MH_I2C_Read... [19:25:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:25:22]Read from MH i2c: E2 [19:25:22]MH_I2C_Read... [19:25:22]Read from MH i2c: E2 0E 00 [19:25:22]MH_I2C_Read... [19:25:22]Read from MH i2c: E2 0E 00 49 80 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 13 [19:25:22]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [19:25:22]wFMCommunicate OK [19:25:22]SAM_PROTO_GetShiftState done [19:25:22]FM_GetShiftState done [19:25:22]opened in 1729989044 [19:25:22]opened+sec_in_day 1730075444 [19:25:22]quantity*price = 50041 [19:25:22]sum+1 = 50042 [19:25:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 279 27.10.2024 19:25 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156728 ФПД: 254052684755584 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T192529&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156728&fm=254052684755584&tin=02508201610067®Number=0000000000091693&sum=50000 [19:25:23]StoreToDocumentArchive [19:25:23]shift 537 fd 156728 [19:25:23]save to /storage/0537/doc_00156728 [19:25:23]save last doc name /storage/0537/doc_00156728 to /storage/kkm_last_doc_name [19:25:23]save OK [19:25:23]Clear old archive folders... [19:25:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:25:23]tlvbuf is 018076C0 [19:25:23]SAM_PROTO_ClearQueue [19:25:23]wFMCommunicate request_size=4 [19:25:23]MH_SAM_APDU [19:25:23]CAPDU: 80 09 00 00 [19:25:23]Write to MH i2c: E2 08 00 56 80 80 09 00 00 00 00 00 00 48 [19:25:23]Write i2c OK [19:25:23]MH_I2C_Read... [19:25:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:25:23]Read from MH i2c: E2 [19:25:23]MH_I2C_Read... [19:25:23]Read from MH i2c: E2 03 00 [19:25:23]MH_I2C_Read... [19:25:23]Read from MH i2c: E2 03 00 56 80 00 90 00 4A [19:25:23]RAPDU: 90 00 [19:25:23]wFMCommunicate OK [19:25:23]SAM_PROTO_ClearQueue done [19:25:23]KKMCreateOFDPacket [19:25:23]OFDProtocolAddRootSTLVToBuf [19:25:23]FM_MakeSignedData [19:25:23]FM_MakeSignedData [19:25:23]SAM_PROTO_SignData [19:25:23]wFMCommunicate request_size=4 [19:25:23]MH_SAM_APDU [19:25:23]CAPDU: 80 0D 01 02 [19:25:23]Write to MH i2c: E2 08 00 57 80 80 0D 01 02 00 00 00 00 50 [19:25:23]Write i2c OK [19:25:23]MH_I2C_Read... [19:25:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:25:23]Read from MH i2c: E2 [19:25:23]MH_I2C_Read... [19:25:23]Read from MH i2c: E2 03 00 [19:25:23]MH_I2C_Read... [19:25:23]Read from MH i2c: E2 03 00 57 80 00 90 00 4B [19:25:23]RAPDU: 90 00 [19:25:23]wFMCommunicate OK [19:25:23]wFMCommunicate request_size=255 [19:25:23]MH_SAM_APDU [19:25: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 A9 93 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 38 64 02 00 35 04 06 00 E7 [19:25:23]Write to MH i2c: E2 02 01 58 80 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 A9 93 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 38 64 02 00 35 04 06 00 E7 00 00 5D [19:25:23]Write i2c OK [19:25:23]MH_I2C_Read... [19:25:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:25:23]Read from MH i2c: E2 [19:25:23]MH_I2C_Read... [19:25:23]Read from MH i2c: E2 03 00 [19:25:23]MH_I2C_Read... [19:25:23]Read from MH i2c: E2 03 00 58 80 00 90 00 4C [19:25:23]RAPDU: 90 00 [19:25:23]wFMCommunicate OK [19:25:23]wFMCommunicate request_size=10 [19:25:23]MH_SAM_APDU [19:25:23]CAPDU: 80 0D 02 02 05 0F 40 07 72 80 [19:25:23]Write to MH i2c: E2 0D 00 59 80 80 0D 02 02 05 00 0F 40 07 72 80 00 00 A5 [19:25:23]Write i2c OK [19:25:23]MH_I2C_Read... [19:25:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:25:23]Read from MH i2c: E2 [19:25:23]MH_I2C_Read... [19:25:23]Read from MH i2c: E2 03 00 [19:25:23]MH_I2C_Read... [19:25:23]Read from MH i2c: E2 03 00 59 80 00 90 00 4D [19:25:23]RAPDU: 90 00 [19:25:23]wFMCommunicate OK [19:25:23]wFMCommunicate request_size=4 [19:25:23]MH_SAM_APDU [19:25:23]CAPDU: 80 0D 03 02 [19:25:23]Write to MH i2c: E2 08 00 5A 80 80 0D 03 02 00 00 00 00 55 [19:25:23]Write i2c OK [19:25:23]MH_I2C_Read... [19:25:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:25:23]Read from MH i2c: E2 [19:25:23]MH_I2C_Read... [19:25:23]Read from MH i2c: E2 0B 00 [19:25:23]MH_I2C_Read... [19:25:23]Read from MH i2c: E2 0B 00 5A 80 00 80 E1 FB E9 88 57 74 12 90 00 00 [19:25:23]RAPDU: 80 E1 FB E9 88 57 74 12 90 00 [19:25:23]wFMCommunicate OK [19:25:23]SAM_PROTO_SignData done [19:25:23]FM_MakeSignedData done [19:25:23]CreateOFDProtocolMessage [19:25:23]wFMCommunicate request_size=4 [19:25:23]MH_SAM_APDU [19:25:23]CAPDU: 80 11 00 00 [19:25:23]Write to MH i2c: E2 08 00 5B 80 80 11 00 00 00 00 00 00 55 [19:25:23]Write i2c OK [19:25:23]MH_I2C_Read... [19:25:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:25:23]Read from MH i2c: E2 [19:25:23]MH_I2C_Read... [19:25:23]Read from MH i2c: E2 17 00 [19:25:23]MH_I2C_Read... [19:25:23]Read from MH i2c: E2 17 00 5B 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 AA [19:25:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:25:23]wFMCommunicate OK [19:25:23]CreateOFDProtocolMessage done [19:25:23]OFDSenderStorePacket 156728 [19:25:23]StoreOFDPacket docnum=156728 [19:25:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 EF 59 07 01 3D B1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 A9 93 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 38 64 02 00 35 04 06 00 E7 0F 40 07 72 80 80 E1 FB E9 88 57 74 12 [19:25:23]CheckFolder [19:25:23]dirname=/storage/ofd_packets [19:25:23]CheckFolder done [19:25:23]ProducePacketName [19:25:23]name=ofd_packets/00156728 [19:25:23]NVStorageSaveData ofd_packets/00156728 [19:25:23]File name is /storage/ofd_packets/00156728 [19:25:23]Write 301 bytes [19:25:23]NVStorageSaveData done [19:25:23]OFDSenderStorePacket done [19:25:23]KKMCreateOFDPacket done [19:25:23]NVStorageSaveData kkm_last_timestamp [19:25:23]File name is /storage/kkm_last_timestamp [19:25:23]Write 4 bytes [19:25:23]NVStorageSaveData done [19:25:23]ExternCall_PrintAddStr [19:25:23]wPrintStart [19:25:23]Write to MH i2c: 01 00 00 5C 80 DC [19:25:23]Write i2c OK [19:25:23]MH_I2C_Read... [19:25:23]Read from MH i2c: 01 [19:25:23]MH_I2C_Read... [19:25:23]Read from MH i2c: 01 07 00 [19:25:23]MH_I2C_Read... [19:25:23]Read from MH i2c: 01 07 00 5C 80 00 00 00 00 00 FF 0F F1 [19:25:23]RasterBufferAndPrint [19:25:23]line Счет N : (1)99542 [19:25:23]line ИНН: 02508201610067 [19:25:23]line Контрольно-Кассовый Чек [19:25:23]line ПРОДАЖА [19:25:23]line ТРК (МРК, ГНК) : 31 [19:25:23]line Товар: 2710124130 [19:25:23]line Аи-92-К-5 [19:25:23]line 7.480 * 66.90 [19:25:23]line = 500.41 [19:25:23]line НДС 12% НСП 1% [19:25:23]line > о реализуемом товаре [19:25:23]line ОКРУГЛЕНИЕ: -0.41 [19:25:23]line ИТОГО: 500.00 [19:25:23]line Внесено: 500.00 [19:25:23]line СДАЧА: 0.00 [19:25:23]line НСП 1% : 4.43 [19:25:23]line НДС 12% : 53.14 [19:25:23]line Наличными: 500.00 [19:25:23]line Безнал.: 0.00 [19:25:23]line Место: АЗС № 143 "Партнер Нефть" [19:25:23]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [19:25:23]line СНО: Общий режим [19:25:23]line Чек 279 27.10.2024 19:25 [19:25:23]line Смена: 537 ФФД: 1.0 [19:25:23]line ЗНМ: 0300000096 [19:25:23]line РНМ: 0000000000091693 [19:25:23]line Версия ККМ: 001 [19:25:23]line ФМ: 0000000000871792 [19:25:23]line ФД: 156728 [19:25:23]line ФПД: 254052684755584 [19:25:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T192529&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156728&fm=254052684755584&tin=02508201610067®Number=0000000000091693&sum=50000 [19:25:24]OFD Sender: Processing packet 156728 [packets to send 31, broken 30] [19:25:24]ProducePacketName [19:25:24]name=ofd_packets/00156728 [19:25:24]OFD Sender: To server: pG, [19:25:24]CommunicateWithHost lk.salyk.kg:30040 [19:25:24]ConnectInit lk.salyk.kg [19:25:24]written 0, free lines is 4095 [19:25:24]Connected sock=10 [19:25:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 EF 59 07 01 3D B1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 01 00 00 F4 03 04 00 A9 93 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 38 64 02 00 35 04 06 00 E7 0F 40 07 72 80 80 E1 FB E9 88 57 74 12 [19:25:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 2C 5A 47 00 7D BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 38 64 02 00 F4 03 04 00 18 39 1E 67 B6 04 01 00 00 84 93 05 CB 32 AA 97 EF [19:25:24]CommunicateWithHost err = 0 [19:25:24]CheckOFDResponse [19:25:24]1017 (14) - 77093643461234 [19:25:24]1041 (16) - 0000000000871792 [19:25:24]1040 (4) - 156728 [19:25:24]1012 (4) - 27.10.2024 12:59 [19:25:24]1206 (1) - 0 [19:25:24]OFD Sender: Remove packet 156728 [19:25:24]ProducePacketName [19:25:24]name=ofd_packets/00156728 [19:25:24]NVStorageDeleteData [19:25:24]Write to MH i2c: 01 00 00 87 80 07 [19:25:24]Write i2c OK [19:25:24]MH_I2C_Read... [19:25:24]Read from MH i2c: 01 [19:25:24]MH_I2C_Read... [19:25:24]Read from MH i2c: 01 07 00 [19:25:24]MH_I2C_Read... [19:25:24]Read from MH i2c: 01 07 00 87 80 00 00 00 00 00 0A 0D 25 [19:25:24]RasterBufferAndPrint [19:25:24]line [19:25:24]line [19:25:24]line [19:25:24]line [19:25:24]line [19:25:24]written 0, free lines is 3344 [19:25:24]process_action close_receipt done [19:25:24]requested_data is exist [19:25:24]produce_requested_data [19:25:24]requested_item fm.sn is exist - process it [19:25:24]wFMCommunicate request_size=4 [19:25:24]MH_SAM_APDU [19:25:24]CAPDU: 80 11 00 00 [19:25:24]Write to MH i2c: E2 08 00 8E 80 80 11 00 00 00 00 00 00 88 [19:25:24]Write i2c OK [19:25:24]MH_I2C_Read... [19:25:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:25:24]Read from MH i2c: E2 [19:25:24]MH_I2C_Read... [19:25:24]Read from MH i2c: E2 17 00 [19:25:24]MH_I2C_Read... [19:25:24]Read from MH i2c: E2 17 00 8E 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 DD [19:25:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:25:24]wFMCommunicate OK [19:25:24]requested_item fd.num is exist - process it [19:25:24]SAM_PROTO_GetFieldsCounters [19:25:24]wFMCommunicate request_size=4 [19:25:24]MH_SAM_APDU [19:25:24]CAPDU: 80 13 00 00 [19:25:24]Write to MH i2c: E2 08 00 8F 80 80 13 00 00 00 00 00 00 8B [19:25:24]Write i2c OK [19:25:24]MH_I2C_Read... [19:25:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:25:24]Read from MH i2c: E2 [19:25:24]MH_I2C_Read... [19:25:24]Read from MH i2c: E2 62 00 [19:25:24]MH_I2C_Read... [19:25:24]Read from MH i2c: E2 62 00 8F 80 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 38 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 17 01 00 00 5E 04 04 00 17 01 00 00 57 04 04 00 18 01 00 00 19 04 04 00 00 00 00 00 90 00 B2 [19: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 38 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 17 01 00 00 5E 04 04 00 17 01 00 00 57 04 04 00 18 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:25:24]wFMCommunicate OK [19:25:24]SAM_PROTO_GetFieldsCounters done [19:25:24]requested_item shift.num is exist - process it [19:25:24]requested_item shift.opened is exist - process it [19:25:24]req_shift_opened [19:25:24]FM_GetShiftState [19:25:24]SAM_PROTO_GetShiftState [19:25:24]wFMCommunicate request_size=4 [19:25:24]MH_SAM_APDU [19:25:24]CAPDU: 80 13 01 00 [19:25:24]Write to MH i2c: E2 08 00 90 80 80 13 01 00 00 00 00 00 8D [19:25:24]Write i2c OK [19:25:24]MH_I2C_Read... [19:25:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:25:24]Read from MH i2c: E2 [19:25:24]MH_I2C_Read... [19:25:24]Read from MH i2c: E2 0E 00 [19:25:24]MH_I2C_Read... [19:25:24]Read from MH i2c: E2 0E 00 90 80 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 5A [19:25:24]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [19:25:24]wFMCommunicate OK [19:25:24]SAM_PROTO_GetShiftState done [19:25:24]FM_GetShiftState done [19:25:24]req_shift_opened done [19:25:24]requested_item shift.open_date is exist - process it [19:25:24]req_shift_open_date [19:25:24]req_shift_open_date done [19:25:24]produce_requested_data done [19:25:24]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156728,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [19:25:24]process_action_free close_receipt [19:25:24]json_value_free [19:25:24]json_value_free done [19:25:24]process_json_proto returns [19:25:24]Send response to host [19:25:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156728,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [19:25:24]free response buf [19:25:24]execute_script done [19:25:24]execute_script returns [19:25:24]free content buf [19:25:24]Sock 9.Close socket [19:25:24]Sock 9.Thread stoped [19:25:25]OFD Sender: No OFD packet to send [19:25:30]OFD Sender: No OFD packet to send [19:25:35]OFD Sender: No OFD packet to send [19:25:40]OFD Sender: No OFD packet to send [19:25:45]OFD Sender: No OFD packet to send [19:25:50]OFD Sender: No OFD packet to send [19:25:55]OFD Sender: No OFD packet to send [19:26:00]OFD Sender: No OFD packet to send [19:26:05]OFD Sender: No OFD packet to send [19:26:10]OFD Sender: No OFD packet to send [19:26:15]OFD Sender: No OFD packet to send [19:26:20]OFD Sender: No OFD packet to send [19:26:25]OFD Sender: No OFD packet to send [19:26:30]OFD Sender: No OFD packet to send [19:26:35]OFD Sender: No OFD packet to send [19:26:40]OFD Sender: No OFD packet to send [19:26:45]OFD Sender: No OFD packet to send [19:26:50]OFD Sender: No OFD packet to send [19:26:55]OFD Sender: No OFD packet to send [19:27:00]OFD Sender: No OFD packet to send [19:27:05]OFD Sender: No OFD packet to send [19:27:10]OFD Sender: No OFD packet to send [19:27:15]OFD Sender: No OFD packet to send [19:27:20]OFD Sender: No OFD packet to send [19:27:25]OFD Sender: No OFD packet to send [19:27:30]OFD Sender: No OFD packet to send [19:27:35]OFD Sender: No OFD packet to send [19:27:40]OFD Sender: No OFD packet to send [19:27:45]OFD Sender: No OFD packet to send [19:27:50]OFD Sender: No OFD packet to send [19:27:55]OFD Sender: No OFD packet to send [19:28:00]OFD Sender: No OFD packet to send [19:28:05]OFD Sender: No OFD packet to send [19:28:10]OFD Sender: No OFD packet to send [19:28:15]OFD Sender: No OFD packet to send [19:28:20]OFD Sender: No OFD packet to send [19:28:25]OFD Sender: No OFD packet to send [19:28:30]OFD Sender: No OFD packet to send [19:28:35]OFD Sender: No OFD packet to send [19:28:40]OFD Sender: No OFD packet to send [19:28:45]OFD Sender: No OFD packet to send [19:28:50]OFD Sender: No OFD packet to send [19:28:55]OFD Sender: No OFD packet to send [19:29:00]OFD Sender: No OFD packet to send [19:29:05]OFD Sender: No OFD packet to send [19:29:10]OFD Sender: No OFD packet to send [19:29:15]OFD Sender: No OFD packet to send [19:29:20]OFD Sender: No OFD packet to send [19:29:25]OFD Sender: No OFD packet to send [19:29:30]OFD Sender: No OFD packet to send [19:29:35]OFD Sender: No OFD packet to send [19:29:40]OFD Sender: No OFD packet to send [19:29:45]OFD Sender: No OFD packet to send [19:29:50]OFD Sender: No OFD packet to send [19:29:55]OFD Sender: No OFD packet to send [19:30:00]OFD Sender: No OFD packet to send [19:30:05]OFD Sender: No OFD packet to send [19:30:10]OFD Sender: No OFD packet to send [19:30:15]OFD Sender: No OFD packet to send [19:30:20]OFD Sender: No OFD packet to send [19:30:25]OFD Sender: No OFD packet to send [19:30:30]OFD Sender: No OFD packet to send [19:30:35]OFD Sender: No OFD packet to send [19:30:40]OFD Sender: No OFD packet to send [19:30:45]OFD Sender: No OFD packet to send [19:30:50]OFD Sender: No OFD packet to send [19:30:55]OFD Sender: No OFD packet to send [19:31:00]OFD Sender: No OFD packet to send [19:31:05]OFD Sender: No OFD packet to send [19:31:10]OFD Sender: No OFD packet to send [19:31:13]accept exits with 8 [19:31:13]New connection [19:31:13]New thread 3066977636 created [19:31:13]Thread 3066834276 joined [19:31:13]Waiting for new connection... [19:31:13] Sock 8.Parse request [19:31:13]Sock 8.Check first char [19:31:13]Sock 8.First char is OK [19:31:13]request: POST /json_proto HTTP/1.0 [19:31:13]Method: POST [19:31:13]URL: /json_proto [19:31:13]Method is POST - this is cgi request [19:31:13]url: /json_proto [19:31:13]query_string will be loaded in cgi processing [19:31:13]execute_cgi json_proto POST (null) [19:31:13]execute_cgi path=json_proto method=POST [19:31:13]POST find Content-Length [19:31:13]Host: 172.17.63.3:8080 [19:31:13]Content-Length: 681 [19:31:13]Content-Type: application/json [19:31:13] [19:31:13]POST finish read [19:31:13]Found Content-Length = 681 [19:31:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99543", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:31:13]execute_script... [19:31: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)99543", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:31:13]POST & json_proto [19:31:13]process_json_proto [19:31:13]json parsed OK: [19:31:13]protocol is kg_v1.0 [19:31:13]action value=close_receipt [19:31:13]process_action close_receipt [19:31:13]cmd_close_receipt [19:31:13]MH_GetDate [19:31:13]Write to MH i2c: F0 00 00 91 80 00 [19:31:13]Write i2c OK [19:31:13]MH_I2C_Read... [19:31:13]Read from MH i2c: F0 [19:31:13]MH_I2C_Read... [19:31:13]Read from MH i2c: F0 09 00 [19:31:13]MH_I2C_Read... [19:31:13]Read from MH i2c: F0 09 00 91 80 00 09 95 1E 67 50 D1 6C 64 1D [19:31:13]GetLastDocTimeStamp 1730057129 [19:31:13]current date 1730057481 [19:31:13]FM_GetShiftState [19:31:13]SAM_PROTO_GetShiftState [19:31:13]wFMCommunicate request_size=4 [19:31:13]MH_SAM_APDU [19:31:13]CAPDU: 80 13 01 00 [19:31:13]Write to MH i2c: E2 08 00 92 80 80 13 01 00 00 00 00 00 8F [19:31:13]Write i2c OK [19:31:13]MH_I2C_Read... [19:31:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:31:13]Read from MH i2c: E2 [19:31:13]MH_I2C_Read... [19:31:13]Read from MH i2c: E2 0E 00 [19:31:13]MH_I2C_Read... [19:31:13]Read from MH i2c: E2 0E 00 92 80 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 5C [19:31:13]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [19:31:13]wFMCommunicate OK [19:31:13]SAM_PROTO_GetShiftState done [19:31:13]FM_GetShiftState done [19:31:13]opened in 1729989044 [19:31:13]opened+sec_in_day 1730075444 [19:31:13]quantity*price = 100015 [19:31:13]sum+1 = 100017 [19:31:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 280 27.10.2024 19:31 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156729 ФПД: 218234645020616 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T193121&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156729&fm=218234645020616&tin=02508201610067®Number=0000000000091693&sum=100000 [19:31:15]StoreToDocumentArchive [19:31:15]shift 537 fd 156729 [19:31:15]save to /storage/0537/doc_00156729 [19:31:15]save last doc name /storage/0537/doc_00156729 to /storage/kkm_last_doc_name [19:31:15]save OK [19:31:15]Clear old archive folders... [19:31:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:31:15]tlvbuf is 018F05C0 [19:31:15]SAM_PROTO_ClearQueue [19:31:15]wFMCommunicate request_size=4 [19:31:15]MH_SAM_APDU [19:31:15]CAPDU: 80 09 00 00 [19:31:15]Write to MH i2c: E2 08 00 9F 80 80 09 00 00 00 00 00 00 91 [19:31:15]Write i2c OK [19:31:15]MH_I2C_Read... [19:31:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:31:15]Read from MH i2c: E2 [19:31:15]MH_I2C_Read... [19:31:15]Read from MH i2c: E2 03 00 [19:31:15]MH_I2C_Read... [19:31:15]Read from MH i2c: E2 03 00 9F 80 00 90 00 93 [19:31:15]RAPDU: 90 00 [19:31:15]wFMCommunicate OK [19:31:15]SAM_PROTO_ClearQueue done [19:31:15]KKMCreateOFDPacket [19:31:15]OFDProtocolAddRootSTLVToBuf [19:31:15]FM_MakeSignedData [19:31:15]FM_MakeSignedData [19:31:15]SAM_PROTO_SignData [19:31:15]wFMCommunicate request_size=4 [19:31:15]MH_SAM_APDU [19:31:15]CAPDU: 80 0D 01 02 [19:31:15]Write to MH i2c: E2 08 00 A0 80 80 0D 01 02 00 00 00 00 99 [19:31:15]Write i2c OK [19:31:15]MH_I2C_Read... [19:31:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:31:15]Read from MH i2c: E2 [19:31:15]MH_I2C_Read... [19:31:15]Read from MH i2c: E2 03 00 [19:31:15]MH_I2C_Read... [19:31:15]Read from MH i2c: E2 03 00 A0 80 00 90 00 94 [19:31:15]RAPDU: 90 00 [19:31:15]wFMCommunicate OK [19:31:15]wFMCommunicate request_size=255 [19:31:15]MH_SAM_APDU [19:31: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 09 95 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 39 64 02 00 35 04 06 00 C6 [19:31:15]Write to MH i2c: E2 02 01 A1 80 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 09 95 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 39 64 02 00 35 04 06 00 C6 00 00 E3 [19:31:15]Write i2c OK [19:31:15]MH_I2C_Read... [19:31:15]OFD Sender: No OFD packet to send [19:31:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:31:15]Read from MH i2c: E2 [19:31:15]MH_I2C_Read... [19:31:15]Read from MH i2c: E2 03 00 [19:31:15]MH_I2C_Read... [19:31:15]Read from MH i2c: E2 03 00 A1 80 00 90 00 95 [19:31:15]RAPDU: 90 00 [19:31:15]wFMCommunicate OK [19:31:15]wFMCommunicate request_size=10 [19:31:15]MH_SAM_APDU [19:31:15]CAPDU: 80 0D 02 02 05 7B B6 7E 7F C8 [19:31:15]Write to MH i2c: E2 0D 00 A2 80 80 0D 02 02 05 00 7B B6 7E 7F C8 00 00 9C [19:31:15]Write i2c OK [19:31:15]MH_I2C_Read... [19:31:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:31:15]Read from MH i2c: E2 [19:31:15]MH_I2C_Read... [19:31:15]Read from MH i2c: E2 03 00 [19:31:15]MH_I2C_Read... [19:31:15]Read from MH i2c: E2 03 00 A2 80 00 90 00 96 [19:31:15]RAPDU: 90 00 [19:31:15]wFMCommunicate OK [19:31:15]wFMCommunicate request_size=4 [19:31:15]MH_SAM_APDU [19:31:15]CAPDU: 80 0D 03 02 [19:31:15]Write to MH i2c: E2 08 00 A3 80 80 0D 03 02 00 00 00 00 9E [19:31:15]Write i2c OK [19:31:15]MH_I2C_Read... [19:31:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:31:15]Read from MH i2c: E2 [19:31:15]MH_I2C_Read... [19:31:15]Read from MH i2c: E2 0B 00 [19:31:15]MH_I2C_Read... [19:31:15]Read from MH i2c: E2 0B 00 A3 80 00 7C 50 DB 22 FC 1C 23 DB 90 00 7E [19:31:15]RAPDU: 7C 50 DB 22 FC 1C 23 DB 90 00 [19:31:15]wFMCommunicate OK [19:31:15]SAM_PROTO_SignData done [19:31:15]FM_MakeSignedData done [19:31:15]CreateOFDProtocolMessage [19:31:15]wFMCommunicate request_size=4 [19:31:15]MH_SAM_APDU [19:31:15]CAPDU: 80 11 00 00 [19:31:15]Write to MH i2c: E2 08 00 A4 80 80 11 00 00 00 00 00 00 9E [19:31:15]Write i2c OK [19:31:15]MH_I2C_Read... [19:31:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:31:15]Read from MH i2c: E2 [19:31:15]MH_I2C_Read... [19:31:15]Read from MH i2c: E2 17 00 [19:31:15]MH_I2C_Read... [19:31:15]Read from MH i2c: E2 17 00 A4 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 F3 [19:31:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:31:15]wFMCommunicate OK [19:31:15]CreateOFDProtocolMessage done [19:31:15]OFDSenderStorePacket 156729 [19:31:15]StoreOFDPacket docnum=156729 [19:31:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 88 F2 07 01 43 C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 09 95 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 39 64 02 00 35 04 06 00 C6 7B B6 7E 7F C8 7C 50 DB 22 FC 1C 23 DB [19:31:15]CheckFolder [19:31:15]dirname=/storage/ofd_packets [19:31:15]CheckFolder done [19:31:15]ProducePacketName [19:31:15]name=ofd_packets/00156729 [19:31:15]NVStorageSaveData ofd_packets/00156729 [19:31:15]File name is /storage/ofd_packets/00156729 [19:31:15]Write 301 bytes [19:31:15]NVStorageSaveData done [19:31:15]OFDSenderStorePacket done [19:31:15]KKMCreateOFDPacket done [19:31:15]NVStorageSaveData kkm_last_timestamp [19:31:15]File name is /storage/kkm_last_timestamp [19:31:15]Write 4 bytes [19:31:15]NVStorageSaveData done [19:31:15]ExternCall_PrintAddStr [19:31:15]wPrintStart [19:31:15]Write to MH i2c: 01 00 00 A5 80 25 [19:31:15]Write i2c OK [19:31:15]MH_I2C_Read... [19:31:15]Read from MH i2c: 01 [19:31:15]MH_I2C_Read... [19:31:15]Read from MH i2c: 01 07 00 [19:31:15]MH_I2C_Read... [19:31:15]Read from MH i2c: 01 07 00 A5 80 00 00 00 00 00 FF 0F 3A [19:31:15]RasterBufferAndPrint [19:31:15]line Счет N : (1)99543 [19:31:15]line ИНН: 02508201610067 [19:31:15]line Контрольно-Кассовый Чек [19:31:15]line ПРОДАЖА [19:31:15]line ТРК (МРК, ГНК) : 31 [19:31:15]line Товар: 2710124130 [19:31:15]line Аи-92-К-5 [19:31:15]line 14.950 * 66.90 [19:31:15]line = 1000.16 [19:31:15]line НДС 12% НСП 1% [19:31:15]line > о реализуемом товаре [19:31:15]line ОКРУГЛЕНИЕ: -0.16 [19:31:15]line ИТОГО: 1000.00 [19:31:15]line Внесено: 1000.00 [19:31:15]line СДАЧА: 0.00 [19:31:15]line НСП 1% : 8.85 [19:31:15]line НДС 12% : 106.21 [19:31:15]line Наличными: 1000.00 [19:31:15]line Безнал.: 0.00 [19:31:15]line Место: АЗС № 143 "Партнер Нефть" [19:31:15]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [19:31:15]line СНО: Общий режим [19:31:15]line Чек 280 27.10.2024 19:31 [19:31:15]line Смена: 537 ФФД: 1.0 [19:31:15]line ЗНМ: 0300000096 [19:31:15]line РНМ: 0000000000091693 [19:31:15]line Версия ККМ: 001 [19:31:15]line ФМ: 0000000000871792 [19:31:15]line ФД: 156729 [19:31:15]line ФПД: 218234645020616 [19:31:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T193121&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156729&fm=218234645020616&tin=02508201610067®Number=0000000000091693&sum=100000 [19:31:15]OFD Sender: Processing packet 156729 [packets to send 31, broken 30] [19:31:15]ProducePacketName [19:31:15]name=ofd_packets/00156729 [19:31:15]OFD Sender: To server: pG, [19:31:15]CommunicateWithHost lk.salyk.kg:30040 [19:31:15]ConnectInit lk.salyk.kg [19:31:15]written 0, free lines is 4095 [19:31:16]Connected sock=10 [19:31:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 88 F2 07 01 43 C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 01 00 00 F4 03 04 00 09 95 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 39 64 02 00 35 04 06 00 C6 7B B6 7E 7F C8 7C 50 DB 22 FC 1C 23 DB [19:31:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 3D 11 47 00 BC 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 31 37 39 32 10 04 04 00 39 64 02 00 F4 03 04 00 77 3A 1E 67 B6 04 01 00 00 EA 13 CC E6 04 12 D6 1F [19:31:16]CommunicateWithHost err = 0 [19:31:16]CheckOFDResponse [19:31:16]1017 (14) - 77093643461234 [19:31:16]1041 (16) - 0000000000871792 [19:31:16]1040 (4) - 156729 [19:31:16]1012 (4) - 27.10.2024 13:04 [19:31:16]1206 (1) - 0 [19:31:16]OFD Sender: Remove packet 156729 [19:31:16]ProducePacketName [19:31:16]name=ofd_packets/00156729 [19:31:16]NVStorageDeleteData [19:31:16]Write to MH i2c: 01 00 00 D0 80 50 [19:31:16]Write i2c OK [19:31:16]MH_I2C_Read... [19:31:16]Read from MH i2c: 01 [19:31:16]MH_I2C_Read... [19:31:16]Read from MH i2c: 01 07 00 [19:31:16]MH_I2C_Read... [19:31:16]Read from MH i2c: 01 07 00 D0 80 00 00 00 00 00 DD 0C 40 [19:31:16]RasterBufferAndPrint [19:31:16]line [19:31:16]line [19:31:16]line [19:31:16]line [19:31:16]line [19:31:16]written 0, free lines is 3300 [19:31:16]process_action close_receipt done [19:31:16]requested_data is exist [19:31:16]produce_requested_data [19:31:16]requested_item fm.sn is exist - process it [19:31:16]wFMCommunicate request_size=4 [19:31:16]MH_SAM_APDU [19:31:16]CAPDU: 80 11 00 00 [19:31:16]Write to MH i2c: E2 08 00 D7 80 80 11 00 00 00 00 00 00 D1 [19:31:16]Write i2c OK [19:31:16]MH_I2C_Read... [19:31:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:31:16]Read from MH i2c: E2 [19:31:16]MH_I2C_Read... [19:31:16]Read from MH i2c: E2 17 00 [19:31:16]MH_I2C_Read... [19:31:16]Read from MH i2c: E2 17 00 D7 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 26 [19:31:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:31:16]wFMCommunicate OK [19:31:16]requested_item fd.num is exist - process it [19:31:16]SAM_PROTO_GetFieldsCounters [19:31:16]wFMCommunicate request_size=4 [19:31:16]MH_SAM_APDU [19:31:16]CAPDU: 80 13 00 00 [19:31:16]Write to MH i2c: E2 08 00 D8 80 80 13 00 00 00 00 00 00 D4 [19:31:16]Write i2c OK [19:31:16]MH_I2C_Read... [19:31:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:31:16]Read from MH i2c: E2 [19:31:16]MH_I2C_Read... [19:31:16]Read from MH i2c: E2 62 00 [19:31:16]MH_I2C_Read... [19:31:16]Read from MH i2c: E2 62 00 D8 80 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 39 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 18 01 00 00 5E 04 04 00 18 01 00 00 57 04 04 00 19 01 00 00 19 04 04 00 00 00 00 00 90 00 FF [19:31:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 39 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 18 01 00 00 5E 04 04 00 18 01 00 00 57 04 04 00 19 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:31:16]wFMCommunicate OK [19:31:16]SAM_PROTO_GetFieldsCounters done [19:31:16]requested_item shift.num is exist - process it [19:31:16]requested_item shift.opened is exist - process it [19:31:16]req_shift_opened [19:31:16]FM_GetShiftState [19:31:16]SAM_PROTO_GetShiftState [19:31:16]wFMCommunicate request_size=4 [19:31:16]MH_SAM_APDU [19:31:16]CAPDU: 80 13 01 00 [19:31:16]Write to MH i2c: E2 08 00 D9 80 80 13 01 00 00 00 00 00 D6 [19:31:16]Write i2c OK [19:31:16]MH_I2C_Read... [19:31:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:31:16]Read from MH i2c: E2 [19:31:16]MH_I2C_Read... [19:31:16]Read from MH i2c: E2 0E 00 [19:31:16]MH_I2C_Read... [19:31:16]Read from MH i2c: E2 0E 00 D9 80 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 A3 [19:31:16]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [19:31:16]wFMCommunicate OK [19:31:16]SAM_PROTO_GetShiftState done [19:31:16]FM_GetShiftState done [19:31:16]req_shift_opened done [19:31:16]requested_item shift.open_date is exist - process it [19:31:16]req_shift_open_date [19:31:16]req_shift_open_date done [19:31:16]produce_requested_data done [19:31:16]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156729,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [19:31:16]process_action_free close_receipt [19:31:16]json_value_free [19:31:16]json_value_free done [19:31:16]process_json_proto returns [19:31:16]Send response to host [19:31:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156729,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [19:31:16]free response buf [19:31:16]execute_script done [19:31:16]execute_script returns [19:31:16]free content buf [19:31:16]Sock 8.Close socket [19:31:16]Sock 8.Thread stoped [19:31:16]OFD Sender: No OFD packet to send [19:31:21]OFD Sender: No OFD packet to send [19:31:26]OFD Sender: No OFD packet to send [19:31:31]OFD Sender: No OFD packet to send [19:31:36]OFD Sender: No OFD packet to send [19:31:41]OFD Sender: No OFD packet to send [19:31:46]OFD Sender: No OFD packet to send [19:31:48]accept exits with 9 [19:31:48]New connection [19:31:48]New thread 3066834276 created [19:31:48]Thread 3066977636 joined [19:31:48]Waiting for new connection... [19:31:48] Sock 9.Parse request [19:31:48]Sock 9.Check first char [19:31:48]Sock 9.First char is OK [19:31:48]request: POST /json_proto HTTP/1.0 [19:31:48]Method: POST [19:31:48]URL: /json_proto [19:31:48]Method is POST - this is cgi request [19:31:48]url: /json_proto [19:31:48]query_string will be loaded in cgi processing [19:31:48]execute_cgi json_proto POST (null) [19:31:48]execute_cgi path=json_proto method=POST [19:31:48]POST find Content-Length [19:31:48]Host: 172.17.63.3:8080 [19:31:48]Content-Length: 676 [19:31:48]Content-Type: application/json [19:31:48] [19:31:48]POST finish read [19:31:48]Found Content-Length = 676 [19:31:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99544", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "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" ] } } [19:31:48]execute_script... [19:31:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99544", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "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" ] } } [19:31:48]POST & json_proto [19:31:48]process_json_proto [19:31:48]json parsed OK: [19:31:48]protocol is kg_v1.0 [19:31:48]action value=close_receipt [19:31:48]process_action close_receipt [19:31:48]cmd_close_receipt [19:31:48]MH_GetDate [19:31:48]Write to MH i2c: F0 00 00 DA 80 49 [19:31:48]Write i2c OK [19:31:48]MH_I2C_Read... [19:31:48]Read from MH i2c: F0 [19:31:48]MH_I2C_Read... [19:31:48]Read from MH i2c: F0 09 00 [19:31:48]MH_I2C_Read... [19:31:48]Read from MH i2c: F0 09 00 DA 80 00 2B 95 1E 67 50 D1 6C 64 88 [19:31:48]GetLastDocTimeStamp 1730057481 [19:31:48]current date 1730057515 [19:31:48]FM_GetShiftState [19:31:48]SAM_PROTO_GetShiftState [19:31:48]wFMCommunicate request_size=4 [19:31:48]MH_SAM_APDU [19:31:48]CAPDU: 80 13 01 00 [19:31:48]Write to MH i2c: E2 08 00 DB 80 80 13 01 00 00 00 00 00 D8 [19:31:48]Write i2c OK [19:31:48]MH_I2C_Read... [19:31:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:31:48]Read from MH i2c: E2 [19:31:48]MH_I2C_Read... [19:31:48]Read from MH i2c: E2 0E 00 [19:31:48]MH_I2C_Read... [19:31:48]Read from MH i2c: E2 0E 00 DB 80 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 A5 [19:31:48]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [19:31:48]wFMCommunicate OK [19:31:48]SAM_PROTO_GetShiftState done [19:31:48]FM_GetShiftState done [19:31:48]opened in 1729989044 [19:31:48]opened+sec_in_day 1730075444 [19:31:48]quantity*price = 20003 [19:31:48]sum+1 = 20004 [19:31:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 281 27.10.2024 19:31 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156730 ФПД: 40100725868586 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T193155&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156730&fm=40100725868586&tin=02508201610067®Number=0000000000091693&sum=20000 [19:31:49]StoreToDocumentArchive [19:31:49]shift 537 fd 156730 [19:31:49]save to /storage/0537/doc_00156730 [19:31:49]save last doc name /storage/0537/doc_00156730 to /storage/kkm_last_doc_name [19:31:49]save OK [19:31:49]Clear old archive folders... [19:31:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:31:49]tlvbuf is 01741F90 [19:31:49]SAM_PROTO_ClearQueue [19:31:49]wFMCommunicate request_size=4 [19:31:49]MH_SAM_APDU [19:31:49]CAPDU: 80 09 00 00 [19:31:49]Write to MH i2c: E2 08 00 E8 80 80 09 00 00 00 00 00 00 DA [19:31:49]Write i2c OK [19:31:49]MH_I2C_Read... [19:31:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:31:49]Read from MH i2c: E2 [19:31:49]MH_I2C_Read... [19:31:49]Read from MH i2c: E2 03 00 [19:31:49]MH_I2C_Read... [19:31:49]Read from MH i2c: E2 03 00 E8 80 00 90 00 DC [19:31:49]RAPDU: 90 00 [19:31:49]wFMCommunicate OK [19:31:49]SAM_PROTO_ClearQueue done [19:31:49]KKMCreateOFDPacket [19:31:49]OFDProtocolAddRootSTLVToBuf [19:31:49]FM_MakeSignedData [19:31:49]FM_MakeSignedData [19:31:49]SAM_PROTO_SignData [19:31:49]wFMCommunicate request_size=4 [19:31:49]MH_SAM_APDU [19:31:49]CAPDU: 80 0D 01 02 [19:31:49]Write to MH i2c: E2 08 00 E9 80 80 0D 01 02 00 00 00 00 E2 [19:31:49]Write i2c OK [19:31:49]MH_I2C_Read... [19:31:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:31:49]Read from MH i2c: E2 [19:31:49]MH_I2C_Read... [19:31:49]Read from MH i2c: E2 03 00 [19:31:49]MH_I2C_Read... [19:31:49]Read from MH i2c: E2 03 00 E9 80 00 90 00 DD [19:31:49]RAPDU: 90 00 [19:31:49]wFMCommunicate OK [19:31:49]wFMCommunicate request_size=255 [19:31:49]MH_SAM_APDU [19:31: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 19 01 00 00 F4 03 04 00 2B 95 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3A 64 02 00 35 04 06 00 24 [19:31:49]Write to MH i2c: E2 02 01 EA 80 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 19 01 00 00 F4 03 04 00 2B 95 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3A 64 02 00 35 04 06 00 24 00 00 76 [19:31:49]Write i2c OK [19:31:49]MH_I2C_Read... [19:31:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:31:49]Read from MH i2c: E2 [19:31:49]MH_I2C_Read... [19:31:49]Read from MH i2c: E2 03 00 [19:31:49]MH_I2C_Read... [19:31:49]Read from MH i2c: E2 03 00 EA 80 00 90 00 DE [19:31:49]RAPDU: 90 00 [19:31:49]wFMCommunicate OK [19:31:49]wFMCommunicate request_size=10 [19:31:49]MH_SAM_APDU [19:31:49]CAPDU: 80 0D 02 02 05 78 AD 85 48 2A [19:31:49]Write to MH i2c: E2 0D 00 EB 80 80 0D 02 02 05 00 78 AD 85 48 2A 00 00 0B [19:31:49]Write i2c OK [19:31:49]MH_I2C_Read... [19:31:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:31:49]Read from MH i2c: E2 [19:31:49]MH_I2C_Read... [19:31:49]Read from MH i2c: E2 03 00 [19:31:49]MH_I2C_Read... [19:31:49]Read from MH i2c: E2 03 00 EB 80 00 90 00 DF [19:31:49]RAPDU: 90 00 [19:31:49]wFMCommunicate OK [19:31:49]wFMCommunicate request_size=4 [19:31:49]MH_SAM_APDU [19:31:49]CAPDU: 80 0D 03 02 [19:31:49]Write to MH i2c: E2 08 00 EC 80 80 0D 03 02 00 00 00 00 E7 [19:31:49]Write i2c OK [19:31:49]MH_I2C_Read... [19:31:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:31:49]Read from MH i2c: E2 [19:31:49]MH_I2C_Read... [19:31:49]Read from MH i2c: E2 0B 00 [19:31:49]MH_I2C_Read... [19:31:49]Read from MH i2c: E2 0B 00 EC 80 00 A1 8B 8F 66 3C 10 7F 5F 90 00 33 [19:31:49]RAPDU: A1 8B 8F 66 3C 10 7F 5F 90 00 [19:31:49]wFMCommunicate OK [19:31:49]SAM_PROTO_SignData done [19:31:49]FM_MakeSignedData done [19:31:49]CreateOFDProtocolMessage [19:31:49]wFMCommunicate request_size=4 [19:31:49]MH_SAM_APDU [19:31:49]CAPDU: 80 11 00 00 [19:31:49]Write to MH i2c: E2 08 00 ED 80 80 11 00 00 00 00 00 00 E7 [19:31:49]Write i2c OK [19:31:49]MH_I2C_Read... [19:31:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:31:49]Read from MH i2c: E2 [19:31:49]MH_I2C_Read... [19:31:49]Read from MH i2c: E2 17 00 [19:31:49]MH_I2C_Read... [19:31:49]Read from MH i2c: E2 17 00 ED 80 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 3C [19:31:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:31:49]wFMCommunicate OK [19:31:49]CreateOFDProtocolMessage done [19:31:49]OFDSenderStorePacket 156730 [19:31:49]StoreOFDPacket docnum=156730 [19:31:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 4D 46 07 01 94 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 19 01 00 00 F4 03 04 00 2B 95 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3A 64 02 00 35 04 06 00 24 78 AD 85 48 2A A1 8B 8F 66 3C 10 7F 5F [19:31:49]CheckFolder [19:31:49]dirname=/storage/ofd_packets [19:31:49]CheckFolder done [19:31:49]ProducePacketName [19:31:49]name=ofd_packets/00156730 [19:31:49]NVStorageSaveData ofd_packets/00156730 [19:31:49]File name is /storage/ofd_packets/00156730 [19:31:49]Write 301 bytes [19:31:49]NVStorageSaveData done [19:31:49]OFDSenderStorePacket done [19:31:49]KKMCreateOFDPacket done [19:31:49]NVStorageSaveData kkm_last_timestamp [19:31:49]File name is /storage/kkm_last_timestamp [19:31:49]Write 4 bytes [19:31:49]NVStorageSaveData done [19:31:49]ExternCall_PrintAddStr [19:31:49]wPrintStart [19:31:49]Write to MH i2c: 01 00 00 EE 80 6E [19:31:49]Write i2c OK [19:31:49]MH_I2C_Read... [19:31:49]Read from MH i2c: 01 [19:31:49]MH_I2C_Read... [19:31:49]Read from MH i2c: 01 07 00 [19:31:49]MH_I2C_Read... [19:31:49]Read from MH i2c: 01 07 00 EE 80 00 00 00 00 00 FF 0F 83 [19:31:49]RasterBufferAndPrint [19:31:49]line Счет N : (1)99544 [19:31:49]line ИНН: 02508201610067 [19:31:49]line Контрольно-Кассовый Чек [19:31:49]line ПРОДАЖА [19:31:49]line ТРК (МРК, ГНК) : 31 [19:31:49]line Товар: 2710124130 [19:31:49]line Аи-92-К-5 [19:31:49]line 2.990 * 66.90 [19:31:49]line = 200.03 [19:31:49]line НДС 12% НСП 1% [19:31:49]line > о реализуемом товаре [19:31:49]line ОКРУГЛЕНИЕ: -0.03 [19:31:49]line ИТОГО: 200.00 [19:31:49]line Внесено: 200.00 [19:31:49]line СДАЧА: 0.00 [19:31:49]line НСП 1% : 1.77 [19:31:49]line НДС 12% : 21.24 [19:31:49]line Наличными: 200.00 [19:31:49]line Безнал.: 0.00 [19:31:49]line Место: АЗС № 143 "Партнер Нефть" [19:31:49]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [19:31:49]line СНО: Общий режим [19:31:49]line Чек 281 27.10.2024 19:31 [19:31:49]line Смена: 537 ФФД: 1.0 [19:31:49]line ЗНМ: 0300000096 [19:31:49]line РНМ: 0000000000091693 [19:31:49]line Версия ККМ: 001 [19:31:49]line ФМ: 0000000000871792 [19:31:49]line ФД: 156730 [19:31:49]line ФПД: 40100725868586 [19:31:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T193155&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156730&fm=40100725868586&tin=02508201610067®Number=0000000000091693&sum=20000 [19:31:50]OFD Sender: Processing packet 156730 [packets to send 31, broken 30] [19:31:50]ProducePacketName [19:31:50]name=ofd_packets/00156730 [19:31:50]OFD Sender: To server: pG, [19:31:50]CommunicateWithHost lk.salyk.kg:30040 [19:31:50]ConnectInit lk.salyk.kg [19:31:50]written 0, free lines is 4095 [19:31:50]Connected sock=10 [19:31:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 4D 46 07 01 94 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 19 01 00 00 F4 03 04 00 2B 95 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3A 64 02 00 35 04 06 00 24 78 AD 85 48 2A A1 8B 8F 66 3C 10 7F 5F [19:31:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 81 9D 47 00 61 88 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3A 64 02 00 F4 03 04 00 9A 3A 1E 67 B6 04 01 00 00 24 98 19 5F 6F F7 0A 0C [19:31:50]CommunicateWithHost err = 0 [19:31:50]CheckOFDResponse [19:31:50]1017 (14) - 77093643461234 [19:31:50]1041 (16) - 0000000000871792 [19:31:50]1040 (4) - 156730 [19:31:50]1012 (4) - 27.10.2024 13:05 [19:31:50]1206 (1) - 0 [19:31:50]OFD Sender: Remove packet 156730 [19:31:50]ProducePacketName [19:31:50]name=ofd_packets/00156730 [19:31:50]NVStorageDeleteData [19:31:50]Write to MH i2c: 01 00 00 19 81 9A [19:31:50]Write i2c OK [19:31:50]MH_I2C_Read... [19:31:50]Read from MH i2c: 01 [19:31:50]MH_I2C_Read... [19:31:50]Read from MH i2c: 01 07 00 [19:31:50]MH_I2C_Read... [19:31:50]Read from MH i2c: 01 07 00 19 81 00 00 00 00 00 E1 0C 8E [19:31:50]RasterBufferAndPrint [19:31:50]line [19:31:50]line [19:31:50]line [19:31:50]line [19:31:50]line [19:31:50]written 0, free lines is 3306 [19:31:50]process_action close_receipt done [19:31:50]requested_data is exist [19:31:50]produce_requested_data [19:31:50]requested_item fm.sn is exist - process it [19:31:50]wFMCommunicate request_size=4 [19:31:50]MH_SAM_APDU [19:31:50]CAPDU: 80 11 00 00 [19:31:50]Write to MH i2c: E2 08 00 20 81 80 11 00 00 00 00 00 00 1B [19:31:50]Write i2c OK [19:31:50]MH_I2C_Read... [19:31:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:31:50]Read from MH i2c: E2 [19:31:50]MH_I2C_Read... [19:31:50]Read from MH i2c: E2 17 00 [19:31:50]MH_I2C_Read... [19:31:50]Read from MH i2c: E2 17 00 20 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 70 [19:31:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:31:50]wFMCommunicate OK [19:31:50]requested_item fd.num is exist - process it [19:31:50]SAM_PROTO_GetFieldsCounters [19:31:50]wFMCommunicate request_size=4 [19:31:50]MH_SAM_APDU [19:31:50]CAPDU: 80 13 00 00 [19:31:50]Write to MH i2c: E2 08 00 21 81 80 13 00 00 00 00 00 00 1E [19:31:50]Write i2c OK [19:31:50]MH_I2C_Read... [19:31:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:31:50]Read from MH i2c: E2 [19:31:50]MH_I2C_Read... [19:31:50]Read from MH i2c: E2 62 00 [19:31:50]MH_I2C_Read... [19:31:50]Read from MH i2c: E2 62 00 21 81 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 3A 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 19 01 00 00 5E 04 04 00 19 01 00 00 57 04 04 00 1A 01 00 00 19 04 04 00 00 00 00 00 90 00 4D [19:31:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 3A 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 19 01 00 00 5E 04 04 00 19 01 00 00 57 04 04 00 1A 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:31:50]wFMCommunicate OK [19:31:50]SAM_PROTO_GetFieldsCounters done [19:31:50]requested_item shift.num is exist - process it [19:31:50]requested_item shift.opened is exist - process it [19:31:50]req_shift_opened [19:31:50]FM_GetShiftState [19:31:50]SAM_PROTO_GetShiftState [19:31:50]wFMCommunicate request_size=4 [19:31:50]MH_SAM_APDU [19:31:50]CAPDU: 80 13 01 00 [19:31:50]Write to MH i2c: E2 08 00 22 81 80 13 01 00 00 00 00 00 20 [19:31:50]Write i2c OK [19:31:50]MH_I2C_Read... [19:31:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:31:50]Read from MH i2c: E2 [19:31:50]MH_I2C_Read... [19:31:50]Read from MH i2c: E2 0E 00 [19:31:50]MH_I2C_Read... [19:31:50]Read from MH i2c: E2 0E 00 22 81 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 ED [19:31:50]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [19:31:50]wFMCommunicate OK [19:31:50]SAM_PROTO_GetShiftState done [19:31:50]FM_GetShiftState done [19:31:50]req_shift_opened done [19:31:50]requested_item shift.open_date is exist - process it [19:31:50]req_shift_open_date [19:31:50]req_shift_open_date done [19:31:50]produce_requested_data done [19:31:50]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156730,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [19:31:50]process_action_free close_receipt [19:31:50]json_value_free [19:31:50]json_value_free done [19:31:50]process_json_proto returns [19:31:50]Send response to host [19:31:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156730,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [19:31:50]free response buf [19:31:50]execute_script done [19:31:50]execute_script returns [19:31:50]free content buf [19:31:50]Sock 9.Close socket [19:31:50]Sock 9.Thread stoped [19:31:50]OFD Sender: No OFD packet to send [19:31:55]OFD Sender: No OFD packet to send [19:32:00]OFD Sender: No OFD packet to send [19:32:05]OFD Sender: No OFD packet to send [19:32:10]OFD Sender: No OFD packet to send [19:32:16]OFD Sender: No OFD packet to send [19:32:21]OFD Sender: No OFD packet to send [19:32:26]OFD Sender: No OFD packet to send [19:32:31]OFD Sender: No OFD packet to send [19:32:36]OFD Sender: No OFD packet to send [19:32:41]OFD Sender: No OFD packet to send [19:32:46]OFD Sender: No OFD packet to send [19:32:51]OFD Sender: No OFD packet to send [19:32:56]OFD Sender: No OFD packet to send [19:33:01]OFD Sender: No OFD packet to send [19:33:06]OFD Sender: No OFD packet to send [19:33:11]OFD Sender: No OFD packet to send [19:33:16]OFD Sender: No OFD packet to send [19:33:21]OFD Sender: No OFD packet to send [19:33:26]OFD Sender: No OFD packet to send [19:33:31]OFD Sender: No OFD packet to send [19:33:36]OFD Sender: No OFD packet to send [19:33:41]OFD Sender: No OFD packet to send [19:33:46]OFD Sender: No OFD packet to send [19:33:51]OFD Sender: No OFD packet to send [19:33:56]OFD Sender: No OFD packet to send [19:34:01]OFD Sender: No OFD packet to send [19:34:06]OFD Sender: No OFD packet to send [19:34:07]accept exits with 8 [19:34:07]New connection [19:34:07]New thread 3066977636 created [19:34:07]Thread 3066834276 joined [19:34:07]Waiting for new connection... [19:34:07] Sock 8.Parse request [19:34:07]Sock 8.Check first char [19:34:07]Sock 8.First char is OK [19:34:07]request: POST /json_proto HTTP/1.0 [19:34:07]Method: POST [19:34:07]URL: /json_proto [19:34:07]Method is POST - this is cgi request [19:34:07]url: /json_proto [19:34:07]query_string will be loaded in cgi processing [19:34:07]execute_cgi json_proto POST (null) [19:34:07]execute_cgi path=json_proto method=POST [19:34:07]POST find Content-Length [19:34:07]Host: 172.17.63.3:8080 [19:34:07]Content-Length: 676 [19:34:07]Content-Type: application/json [19:34:07] [19:34:07]POST finish read [19:34:07]Found Content-Length = 676 [19:34:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99545", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:34:07]execute_script... [19:34:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99545", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:34:07]POST & json_proto [19:34:07]process_json_proto [19:34:07]json parsed OK: [19:34:07]protocol is kg_v1.0 [19:34:07]action value=close_receipt [19:34:07]process_action close_receipt [19:34:07]cmd_close_receipt [19:34:07]MH_GetDate [19:34:07]Write to MH i2c: F0 00 00 23 81 93 [19:34:07]Write i2c OK [19:34:07]MH_I2C_Read... [19:34:07]Read from MH i2c: F0 [19:34:07]MH_I2C_Read... [19:34:07]Read from MH i2c: F0 09 00 [19:34:07]MH_I2C_Read... [19:34:07]Read from MH i2c: F0 09 00 23 81 00 B6 95 1E 67 50 D1 6C 64 5D [19:34:07]GetLastDocTimeStamp 1730057515 [19:34:07]current date 1730057654 [19:34:07]FM_GetShiftState [19:34:07]SAM_PROTO_GetShiftState [19:34:07]wFMCommunicate request_size=4 [19:34:07]MH_SAM_APDU [19:34:07]CAPDU: 80 13 01 00 [19:34:07]Write to MH i2c: E2 08 00 24 81 80 13 01 00 00 00 00 00 22 [19:34:07]Write i2c OK [19:34:07]MH_I2C_Read... [19:34:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:34:07]Read from MH i2c: E2 [19:34:07]MH_I2C_Read... [19:34:07]Read from MH i2c: E2 0E 00 [19:34:07]MH_I2C_Read... [19:34:07]Read from MH i2c: E2 0E 00 24 81 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 EF [19:34:07]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [19:34:07]wFMCommunicate OK [19:34:07]SAM_PROTO_GetShiftState done [19:34:07]FM_GetShiftState done [19:34:07]opened in 1729989044 [19:34:07]opened+sec_in_day 1730075444 [19:34:07]quantity*price = 30038 [19:34:07]sum+1 = 30039 [19:34:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 282 27.10.2024 19:34 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156731 ФПД: 161391150034968 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T193414&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156731&fm=161391150034968&tin=02508201610067®Number=0000000000091693&sum=30000 [19:34:08]StoreToDocumentArchive [19:34:08]shift 537 fd 156731 [19:34:08]save to /storage/0537/doc_00156731 [19:34:08]save last doc name /storage/0537/doc_00156731 to /storage/kkm_last_doc_name [19:34:08]save OK [19:34:08]Clear old archive folders... [19:34:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:34:08]tlvbuf is 01906C10 [19:34:08]SAM_PROTO_ClearQueue [19:34:08]wFMCommunicate request_size=4 [19:34:08]MH_SAM_APDU [19:34:08]CAPDU: 80 09 00 00 [19:34:08]Write to MH i2c: E2 08 00 31 81 80 09 00 00 00 00 00 00 24 [19:34:08]Write i2c OK [19:34:08]MH_I2C_Read... [19:34:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:34:08]Read from MH i2c: E2 [19:34:08]MH_I2C_Read... [19:34:08]Read from MH i2c: E2 03 00 [19:34:08]MH_I2C_Read... [19:34:08]Read from MH i2c: E2 03 00 31 81 00 90 00 26 [19:34:08]RAPDU: 90 00 [19:34:08]wFMCommunicate OK [19:34:08]SAM_PROTO_ClearQueue done [19:34:08]KKMCreateOFDPacket [19:34:08]OFDProtocolAddRootSTLVToBuf [19:34:08]FM_MakeSignedData [19:34:08]FM_MakeSignedData [19:34:08]SAM_PROTO_SignData [19:34:08]wFMCommunicate request_size=4 [19:34:08]MH_SAM_APDU [19:34:08]CAPDU: 80 0D 01 02 [19:34:08]Write to MH i2c: E2 08 00 32 81 80 0D 01 02 00 00 00 00 2C [19:34:08]Write i2c OK [19:34:08]MH_I2C_Read... [19:34:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:34:08]Read from MH i2c: E2 [19:34:08]MH_I2C_Read... [19:34:08]Read from MH i2c: E2 03 00 [19:34:08]MH_I2C_Read... [19:34:08]Read from MH i2c: E2 03 00 32 81 00 90 00 27 [19:34:08]RAPDU: 90 00 [19:34:08]wFMCommunicate OK [19:34:08]wFMCommunicate request_size=255 [19:34:08]MH_SAM_APDU [19:34: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 B6 95 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3B 64 02 00 35 04 06 00 92 [19:34:08]Write to MH i2c: E2 02 01 33 81 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 B6 95 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3B 64 02 00 35 04 06 00 92 00 00 ED [19:34:08]Write i2c OK [19:34:08]MH_I2C_Read... [19:34:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:34:08]Read from MH i2c: E2 [19:34:08]MH_I2C_Read... [19:34:08]Read from MH i2c: E2 03 00 [19:34:08]MH_I2C_Read... [19:34:08]Read from MH i2c: E2 03 00 33 81 00 90 00 28 [19:34:08]RAPDU: 90 00 [19:34:08]wFMCommunicate OK [19:34:08]wFMCommunicate request_size=10 [19:34:08]MH_SAM_APDU [19:34:08]CAPDU: 80 0D 02 02 05 C8 CE 2A F0 18 [19:34:08]Write to MH i2c: E2 0D 00 34 81 80 0D 02 02 05 00 C8 CE 2A F0 18 00 00 01 [19:34:08]Write i2c OK [19:34:08]MH_I2C_Read... [19:34:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:34:08]Read from MH i2c: E2 [19:34:08]MH_I2C_Read... [19:34:08]Read from MH i2c: E2 03 00 [19:34:08]MH_I2C_Read... [19:34:08]Read from MH i2c: E2 03 00 34 81 00 90 00 29 [19:34:08]RAPDU: 90 00 [19:34:08]wFMCommunicate OK [19:34:08]wFMCommunicate request_size=4 [19:34:08]MH_SAM_APDU [19:34:08]CAPDU: 80 0D 03 02 [19:34:08]Write to MH i2c: E2 08 00 35 81 80 0D 03 02 00 00 00 00 31 [19:34:08]Write i2c OK [19:34:08]MH_I2C_Read... [19:34:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:34:08]Read from MH i2c: E2 [19:34:08]MH_I2C_Read... [19:34:08]Read from MH i2c: E2 0B 00 [19:34:08]MH_I2C_Read... [19:34:08]Read from MH i2c: E2 0B 00 35 81 00 BC 2B C2 0F 23 29 76 DE 90 00 8A [19:34:08]RAPDU: BC 2B C2 0F 23 29 76 DE 90 00 [19:34:08]wFMCommunicate OK [19:34:08]SAM_PROTO_SignData done [19:34:08]FM_MakeSignedData done [19:34:08]CreateOFDProtocolMessage [19:34:08]wFMCommunicate request_size=4 [19:34:08]MH_SAM_APDU [19:34:08]CAPDU: 80 11 00 00 [19:34:08]Write to MH i2c: E2 08 00 36 81 80 11 00 00 00 00 00 00 31 [19:34:08]Write i2c OK [19:34:08]MH_I2C_Read... [19:34:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:34:09]Read from MH i2c: E2 [19:34:09]MH_I2C_Read... [19:34:09]Read from MH i2c: E2 17 00 [19:34:09]MH_I2C_Read... [19:34:09]Read from MH i2c: E2 17 00 36 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 86 [19:34:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:34:09]wFMCommunicate OK [19:34:09]CreateOFDProtocolMessage done [19:34:09]OFDSenderStorePacket 156731 [19:34:09]StoreOFDPacket docnum=156731 [19:34:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 FC E3 07 01 B8 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 B6 95 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3B 64 02 00 35 04 06 00 92 C8 CE 2A F0 18 BC 2B C2 0F 23 29 76 DE [19:34:09]CheckFolder [19:34:09]dirname=/storage/ofd_packets [19:34:09]CheckFolder done [19:34:09]ProducePacketName [19:34:09]name=ofd_packets/00156731 [19:34:09]NVStorageSaveData ofd_packets/00156731 [19:34:09]File name is /storage/ofd_packets/00156731 [19:34:09]Write 301 bytes [19:34:09]NVStorageSaveData done [19:34:09]OFDSenderStorePacket done [19:34:09]KKMCreateOFDPacket done [19:34:09]NVStorageSaveData kkm_last_timestamp [19:34:09]File name is /storage/kkm_last_timestamp [19:34:09]Write 4 bytes [19:34:09]NVStorageSaveData done [19:34:09]ExternCall_PrintAddStr [19:34:09]wPrintStart [19:34:09]Write to MH i2c: 01 00 00 37 81 B8 [19:34:09]Write i2c OK [19:34:09]MH_I2C_Read... [19:34:09]Read from MH i2c: 01 [19:34:09]MH_I2C_Read... [19:34:09]Read from MH i2c: 01 07 00 [19:34:09]MH_I2C_Read... [19:34:09]Read from MH i2c: 01 07 00 37 81 00 00 00 00 00 FF 0F CD [19:34:09]RasterBufferAndPrint [19:34:09]line Счет N : (1)99545 [19:34:09]line ИНН: 02508201610067 [19:34:09]line Контрольно-Кассовый Чек [19:34:09]line ПРОДАЖА [19:34:09]line ТРК (МРК, ГНК) : 31 [19:34:09]line Товар: 2710124130 [19:34:09]line Аи-92-К-5 [19:34:09]line 4.490 * 66.90 [19:34:09]line = 300.38 [19:34:09]line НДС 12% НСП 1% [19:34:09]line > о реализуемом товаре [19:34:09]line ОКРУГЛЕНИЕ: -0.38 [19:34:09]line ИТОГО: 300.00 [19:34:09]line Внесено: 300.00 [19:34:09]line СДАЧА: 0.00 [19:34:09]line НСП 1% : 2.66 [19:34:09]line НДС 12% : 31.90 [19:34:09]line Наличными: 300.00 [19:34:09]line Безнал.: 0.00 [19:34:09]line Место: АЗС № 143 "Партнер Нефть" [19:34:09]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [19:34:09]line СНО: Общий режим [19:34:09]line Чек 282 27.10.2024 19:34 [19:34:09]line Смена: 537 ФФД: 1.0 [19:34:09]line ЗНМ: 0300000096 [19:34:09]line РНМ: 0000000000091693 [19:34:09]line Версия ККМ: 001 [19:34:09]line ФМ: 0000000000871792 [19:34:09]line ФД: 156731 [19:34:09]line ФПД: 161391150034968 [19:34:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T193414&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156731&fm=161391150034968&tin=02508201610067®Number=0000000000091693&sum=30000 [19:34:09]OFD Sender: Processing packet 156731 [packets to send 31, broken 30] [19:34:09]ProducePacketName [19:34:09]name=ofd_packets/00156731 [19:34:09]OFD Sender: To server: pG, [19:34:09]CommunicateWithHost lk.salyk.kg:30040 [19:34:09]ConnectInit lk.salyk.kg [19:34:09]written 0, free lines is 4095 [19:34:09]Connected sock=10 [19:34:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 FC E3 07 01 B8 49 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 01 00 00 F4 03 04 00 B6 95 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3B 64 02 00 35 04 06 00 92 C8 CE 2A F0 18 BC 2B C2 0F 23 29 76 DE [19:34:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 5E 14 47 00 DC 36 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3B 64 02 00 F4 03 04 00 25 3B 1E 67 B6 04 01 00 00 69 1B 24 EC EC FF 98 BF [19:34:09]CommunicateWithHost err = 0 [19:34:09]CheckOFDResponse [19:34:09]1017 (14) - 77093643461234 [19:34:09]1041 (16) - 0000000000871792 [19:34:09]1040 (4) - 156731 [19:34:09]1012 (4) - 27.10.2024 13:07 [19:34:09]1206 (1) - 0 [19:34:09]OFD Sender: Remove packet 156731 [19:34:09]ProducePacketName [19:34:09]name=ofd_packets/00156731 [19:34:09]NVStorageDeleteData [19:34:09]Write to MH i2c: 01 00 00 62 81 E3 [19:34:09]Write i2c OK [19:34:09]MH_I2C_Read... [19:34:09]Read from MH i2c: 01 [19:34:09]MH_I2C_Read... [19:34:09]Read from MH i2c: 01 07 00 [19:34:09]MH_I2C_Read... [19:34:09]Read from MH i2c: 01 07 00 62 81 00 00 00 00 00 E4 0C DA [19:34:09]RasterBufferAndPrint [19:34:09]line [19:34:09]line [19:34:09]line [19:34:09]line [19:34:09]line [19:34:09]written 0, free lines is 3306 [19:34:09]process_action close_receipt done [19:34:09]requested_data is exist [19:34:09]produce_requested_data [19:34:09]requested_item fm.sn is exist - process it [19:34:09]wFMCommunicate request_size=4 [19:34:09]MH_SAM_APDU [19:34:09]CAPDU: 80 11 00 00 [19:34:09]Write to MH i2c: E2 08 00 69 81 80 11 00 00 00 00 00 00 64 [19:34:09]Write i2c OK [19:34:09]MH_I2C_Read... [19:34:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:34:09]Read from MH i2c: E2 [19:34:09]MH_I2C_Read... [19:34:09]Read from MH i2c: E2 17 00 [19:34:09]MH_I2C_Read... [19:34:09]Read from MH i2c: E2 17 00 69 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 B9 [19:34:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:34:09]wFMCommunicate OK [19:34:09]requested_item fd.num is exist - process it [19:34:09]SAM_PROTO_GetFieldsCounters [19:34:09]wFMCommunicate request_size=4 [19:34:09]MH_SAM_APDU [19:34:09]CAPDU: 80 13 00 00 [19:34:09]Write to MH i2c: E2 08 00 6A 81 80 13 00 00 00 00 00 00 67 [19:34:09]Write i2c OK [19:34:09]MH_I2C_Read... [19:34:10]Read from MH i2c: E2 [19:34:10]MH_I2C_Read... [19:34:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:34:10]Read from MH i2c: E2 62 00 [19:34:10]MH_I2C_Read... [19:34:10]Read from MH i2c: E2 62 00 6A 81 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 3B 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 1A 01 00 00 5E 04 04 00 1A 01 00 00 57 04 04 00 1B 01 00 00 19 04 04 00 00 00 00 00 90 00 9A [19:34:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 3B 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 1A 01 00 00 5E 04 04 00 1A 01 00 00 57 04 04 00 1B 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:34:10]wFMCommunicate OK [19:34:10]SAM_PROTO_GetFieldsCounters done [19:34:10]requested_item shift.num is exist - process it [19:34:10]requested_item shift.opened is exist - process it [19:34:10]req_shift_opened [19:34:10]FM_GetShiftState [19:34:10]SAM_PROTO_GetShiftState [19:34:10]wFMCommunicate request_size=4 [19:34:10]MH_SAM_APDU [19:34:10]CAPDU: 80 13 01 00 [19:34:10]Write to MH i2c: E2 08 00 6B 81 80 13 01 00 00 00 00 00 69 [19:34:10]Write i2c OK [19:34:10]MH_I2C_Read... [19:34:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:34:10]Read from MH i2c: E2 [19:34:10]MH_I2C_Read... [19:34:10]Read from MH i2c: E2 0E 00 [19:34:10]MH_I2C_Read... [19:34:10]Read from MH i2c: E2 0E 00 6B 81 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 36 [19:34:10]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [19:34:10]wFMCommunicate OK [19:34:10]SAM_PROTO_GetShiftState done [19:34:10]FM_GetShiftState done [19:34:10]req_shift_opened done [19:34:10]requested_item shift.open_date is exist - process it [19:34:10]req_shift_open_date [19:34:10]req_shift_open_date done [19:34:10]produce_requested_data done [19:34:10]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156731,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [19:34:10]process_action_free close_receipt [19:34:10]json_value_free [19:34:10]json_value_free done [19:34:10]process_json_proto returns [19:34:10]Send response to host [19:34:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156731,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [19:34:10]free response buf [19:34:10]execute_script done [19:34:10]execute_script returns [19:34:10]free content buf [19:34:10]Sock 8.Close socket [19:34:10]Sock 8.Thread stoped [19:34:10]OFD Sender: No OFD packet to send [19:34:15]OFD Sender: No OFD packet to send [19:34:20]OFD Sender: No OFD packet to send [19:34:25]OFD Sender: No OFD packet to send [19:34:30]OFD Sender: No OFD packet to send [19:34:35]OFD Sender: No OFD packet to send [19:34:40]OFD Sender: No OFD packet to send [19:34:45]OFD Sender: No OFD packet to send [19:34:50]OFD Sender: No OFD packet to send [19:34:55]OFD Sender: No OFD packet to send [19:35:00]OFD Sender: No OFD packet to send [19:35:05]OFD Sender: No OFD packet to send [19:35:10]OFD Sender: No OFD packet to send [19:35:15]OFD Sender: No OFD packet to send [19:35:18]accept exits with 9 [19:35:18]New connection [19:35:18]New thread 3066834276 created [19:35:18]Thread 3066977636 joined [19:35:18]Waiting for new connection... [19:35:18] Sock 9.Parse request [19:35:18]Sock 9.Check first char [19:35:18]Sock 9.First char is OK [19:35:18]request: POST /json_proto HTTP/1.0 [19:35:18]Method: POST [19:35:18]URL: /json_proto [19:35:18]Method is POST - this is cgi request [19:35:18]url: /json_proto [19:35:18]query_string will be loaded in cgi processing [19:35:18]execute_cgi json_proto POST (null) [19:35:18]execute_cgi path=json_proto method=POST [19:35:18]POST find Content-Length [19:35:18]Host: 172.17.63.3:8080 [19:35:18]Content-Length: 676 [19:35:18]Content-Type: application/json [19:35:18] [19:35:18]POST finish read [19:35:18]Found Content-Length = 676 [19:35:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99546", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:35:18]execute_script... [19:35:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99546", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:35:18]POST & json_proto [19:35:18]process_json_proto [19:35:18]json parsed OK: [19:35:18]protocol is kg_v1.0 [19:35:18]action value=close_receipt [19:35:18]process_action close_receipt [19:35:18]cmd_close_receipt [19:35:18]MH_GetDate [19:35:18]Write to MH i2c: F0 00 00 6C 81 DC [19:35:18]Write i2c OK [19:35:18]MH_I2C_Read... [19:35:18]Read from MH i2c: F0 [19:35:18]MH_I2C_Read... [19:35:18]Read from MH i2c: F0 09 00 [19:35:18]MH_I2C_Read... [19:35:18]Read from MH i2c: F0 09 00 6C 81 00 FD 95 1E 67 50 D1 6C 64 ED [19:35:18]GetLastDocTimeStamp 1730057654 [19:35:18]current date 1730057725 [19:35:18]FM_GetShiftState [19:35:18]SAM_PROTO_GetShiftState [19:35:18]wFMCommunicate request_size=4 [19:35:18]MH_SAM_APDU [19:35:18]CAPDU: 80 13 01 00 [19:35:18]Write to MH i2c: E2 08 00 6D 81 80 13 01 00 00 00 00 00 6B [19:35:18]Write i2c OK [19:35:18]MH_I2C_Read... [19:35:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:35:18]Read from MH i2c: E2 [19:35:18]MH_I2C_Read... [19:35:18]Read from MH i2c: E2 0E 00 [19:35:18]MH_I2C_Read... [19:35:18]Read from MH i2c: E2 0E 00 6D 81 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 38 [19:35:18]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [19:35:18]wFMCommunicate OK [19:35:18]SAM_PROTO_GetShiftState done [19:35:18]FM_GetShiftState done [19:35:18]opened in 1729989044 [19:35:18]opened+sec_in_day 1730075444 [19:35:18]quantity*price = 50041 [19:35:18]sum+1 = 50042 [19:35:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 283 27.10.2024 19:35 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156732 ФПД: 64530614340553 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T193525&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156732&fm=64530614340553&tin=02508201610067®Number=0000000000091693&sum=50000 [19:35:19]StoreToDocumentArchive [19:35:19]shift 537 fd 156732 [19:35:19]save to /storage/0537/doc_00156732 [19:35:19]save last doc name /storage/0537/doc_00156732 to /storage/kkm_last_doc_name [19:35:19]save OK [19:35:19]Clear old archive folders... [19:35:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:35:19]tlvbuf is 018279F0 [19:35:19]SAM_PROTO_ClearQueue [19:35:19]wFMCommunicate request_size=4 [19:35:19]MH_SAM_APDU [19:35:19]CAPDU: 80 09 00 00 [19:35:19]Write to MH i2c: E2 08 00 7A 81 80 09 00 00 00 00 00 00 6D [19:35:19]Write i2c OK [19:35:19]MH_I2C_Read... [19:35:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:35:19]Read from MH i2c: E2 [19:35:19]MH_I2C_Read... [19:35:19]Read from MH i2c: E2 03 00 [19:35:19]MH_I2C_Read... [19:35:19]Read from MH i2c: E2 03 00 7A 81 00 90 00 6F [19:35:19]RAPDU: 90 00 [19:35:19]wFMCommunicate OK [19:35:19]SAM_PROTO_ClearQueue done [19:35:19]KKMCreateOFDPacket [19:35:19]OFDProtocolAddRootSTLVToBuf [19:35:19]FM_MakeSignedData [19:35:19]FM_MakeSignedData [19:35:19]SAM_PROTO_SignData [19:35:19]wFMCommunicate request_size=4 [19:35:19]MH_SAM_APDU [19:35:19]CAPDU: 80 0D 01 02 [19:35:19]Write to MH i2c: E2 08 00 7B 81 80 0D 01 02 00 00 00 00 75 [19:35:19]Write i2c OK [19:35:19]MH_I2C_Read... [19:35:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:35:19]Read from MH i2c: E2 [19:35:19]MH_I2C_Read... [19:35:19]Read from MH i2c: E2 03 00 [19:35:19]MH_I2C_Read... [19:35:19]Read from MH i2c: E2 03 00 7B 81 00 90 00 70 [19:35:19]RAPDU: 90 00 [19:35:19]wFMCommunicate OK [19:35:19]wFMCommunicate request_size=255 [19:35:19]MH_SAM_APDU [19:35:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 FD 95 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3C 64 02 00 35 04 06 00 3A [19:35:19]Write to MH i2c: E2 02 01 7C 81 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 FD 95 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3C 64 02 00 35 04 06 00 3A 00 00 33 [19:35:19]Write i2c OK [19:35:19]MH_I2C_Read... [19:35:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:35:19]Read from MH i2c: E2 [19:35:19]MH_I2C_Read... [19:35:19]Read from MH i2c: E2 03 00 [19:35:19]MH_I2C_Read... [19:35:19]Read from MH i2c: E2 03 00 7C 81 00 90 00 71 [19:35:19]RAPDU: 90 00 [19:35:19]wFMCommunicate OK [19:35:19]wFMCommunicate request_size=10 [19:35:19]MH_SAM_APDU [19:35:19]CAPDU: 80 0D 02 02 05 B0 B4 58 4B C9 [19:35:19]Write to MH i2c: E2 0D 00 7D 81 80 0D 02 02 05 00 B0 B4 58 4B C9 00 00 52 [19:35:19]Write i2c OK [19:35:19]MH_I2C_Read... [19:35:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:35:19]Read from MH i2c: E2 [19:35:19]MH_I2C_Read... [19:35:19]Read from MH i2c: E2 03 00 [19:35:19]MH_I2C_Read... [19:35:19]Read from MH i2c: E2 03 00 7D 81 00 90 00 72 [19:35:19]RAPDU: 90 00 [19:35:19]wFMCommunicate OK [19:35:19]wFMCommunicate request_size=4 [19:35:19]MH_SAM_APDU [19:35:19]CAPDU: 80 0D 03 02 [19:35:19]Write to MH i2c: E2 08 00 7E 81 80 0D 03 02 00 00 00 00 7A [19:35:19]Write i2c OK [19:35:19]MH_I2C_Read... [19:35:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:35:19]Read from MH i2c: E2 [19:35:19]MH_I2C_Read... [19:35:19]Read from MH i2c: E2 0B 00 [19:35:19]MH_I2C_Read... [19:35:19]Read from MH i2c: E2 0B 00 7E 81 00 1A A6 59 51 3A A8 1C C1 90 00 A4 [19:35:19]RAPDU: 1A A6 59 51 3A A8 1C C1 90 00 [19:35:19]wFMCommunicate OK [19:35:19]SAM_PROTO_SignData done [19:35:19]FM_MakeSignedData done [19:35:19]CreateOFDProtocolMessage [19:35:19]wFMCommunicate request_size=4 [19:35:19]MH_SAM_APDU [19:35:19]CAPDU: 80 11 00 00 [19:35:19]Write to MH i2c: E2 08 00 7F 81 80 11 00 00 00 00 00 00 7A [19:35:19]Write i2c OK [19:35:19]MH_I2C_Read... [19:35:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:35:19]Read from MH i2c: E2 [19:35:19]MH_I2C_Read... [19:35:19]Read from MH i2c: E2 17 00 [19:35:19]MH_I2C_Read... [19:35:19]Read from MH i2c: E2 17 00 7F 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 CF [19:35:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:35:19]wFMCommunicate OK [19:35:19]CreateOFDProtocolMessage done [19:35:19]OFDSenderStorePacket 156732 [19:35:19]StoreOFDPacket docnum=156732 [19:35:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 0F DC 07 01 EF 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 FD 95 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3C 64 02 00 35 04 06 00 3A B0 B4 58 4B C9 1A A6 59 51 3A A8 1C C1 [19:35:19]CheckFolder [19:35:19]dirname=/storage/ofd_packets [19:35:19]CheckFolder done [19:35:19]ProducePacketName [19:35:19]name=ofd_packets/00156732 [19:35:19]NVStorageSaveData ofd_packets/00156732 [19:35:19]File name is /storage/ofd_packets/00156732 [19:35:19]Write 301 bytes [19:35:19]NVStorageSaveData done [19:35:19]OFDSenderStorePacket done [19:35:19]KKMCreateOFDPacket done [19:35:19]NVStorageSaveData kkm_last_timestamp [19:35:19]File name is /storage/kkm_last_timestamp [19:35:19]Write 4 bytes [19:35:19]NVStorageSaveData done [19:35:19]ExternCall_PrintAddStr [19:35:19]wPrintStart [19:35:19]Write to MH i2c: 01 00 00 80 81 01 [19:35:19]Write i2c OK [19:35:19]MH_I2C_Read... [19:35:19]Read from MH i2c: 01 [19:35:19]MH_I2C_Read... [19:35:19]Read from MH i2c: 01 07 00 [19:35:19]MH_I2C_Read... [19:35:20]Read from MH i2c: 01 07 00 80 81 00 00 00 00 00 FF 0F 16 [19:35:20]RasterBufferAndPrint [19:35:20]line Счет N : (1)99546 [19:35:20]line ИНН: 02508201610067 [19:35:20]line Контрольно-Кассовый Чек [19:35:20]line ПРОДАЖА [19:35:20]line ТРК (МРК, ГНК) : 31 [19:35:20]line Товар: 2710124130 [19:35:20]line Аи-92-К-5 [19:35:20]line 7.480 * 66.90 [19:35:20]line = 500.41 [19:35:20]line НДС 12% НСП 1% [19:35:20]line > о реализуемом товаре [19:35:20]line ОКРУГЛЕНИЕ: -0.41 [19:35:20]line ИТОГО: 500.00 [19:35:20]line Внесено: 500.00 [19:35:20]line СДАЧА: 0.00 [19:35:20]line НСП 1% : 4.43 [19:35:20]line НДС 12% : 53.14 [19:35:20]line Наличными: 500.00 [19:35:20]line Безнал.: 0.00 [19:35:20]line Место: АЗС № 143 "Партнер Нефть" [19:35:20]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [19:35:20]line СНО: Общий режим [19:35:20]line Чек 283 27.10.2024 19:35 [19:35:20]line Смена: 537 ФФД: 1.0 [19:35:20]line ЗНМ: 0300000096 [19:35:20]line РНМ: 0000000000091693 [19:35:20]line Версия ККМ: 001 [19:35:20]line ФМ: 0000000000871792 [19:35:20]line ФД: 156732 [19:35:20]line ФПД: 64530614340553 [19:35:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T193525&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156732&fm=64530614340553&tin=02508201610067®Number=0000000000091693&sum=50000 [19:35:20]OFD Sender: Processing packet 156732 [packets to send 31, broken 30] [19:35:20]ProducePacketName [19:35:20]name=ofd_packets/00156732 [19:35:20]OFD Sender: To server: pG, [19:35:20]CommunicateWithHost lk.salyk.kg:30040 [19:35:20]ConnectInit lk.salyk.kg [19:35:20]written 0, free lines is 4095 [19:35:20]Connected sock=10 [19:35:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 0F DC 07 01 EF 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 FD 95 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3C 64 02 00 35 04 06 00 3A B0 B4 58 4B C9 1A A6 59 51 3A A8 1C C1 [19:35:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 82 F2 47 00 F2 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 31 37 39 32 10 04 04 00 3C 64 02 00 F4 03 04 00 6C 3B 1E 67 B6 04 01 00 00 DF F5 A4 86 8C A2 57 6F [19:35:20]CommunicateWithHost err = 0 [19:35:20]CheckOFDResponse [19:35:20]1017 (14) - 77093643461234 [19:35:20]1041 (16) - 0000000000871792 [19:35:20]1040 (4) - 156732 [19:35:20]1012 (4) - 27.10.2024 13:09 [19:35:20]1206 (1) - 0 [19:35:20]OFD Sender: Remove packet 156732 [19:35:20]ProducePacketName [19:35:20]name=ofd_packets/00156732 [19:35:20]NVStorageDeleteData [19:35:20]Write to MH i2c: 01 00 00 AB 81 2C [19:35:20]Write i2c OK [19:35:20]MH_I2C_Read... [19:35:20]Read from MH i2c: 01 [19:35:20]MH_I2C_Read... [19:35:20]Read from MH i2c: 01 07 00 [19:35:20]MH_I2C_Read... [19:35:20]Read from MH i2c: 01 07 00 AB 81 00 00 00 00 00 E0 0C 1F [19:35:20]RasterBufferAndPrint [19:35:20]line [19:35:20]line [19:35:20]line [19:35:20]line [19:35:20]line [19:35:20]written 0, free lines is 3301 [19:35:20]process_action close_receipt done [19:35:20]requested_data is exist [19:35:20]produce_requested_data [19:35:20]requested_item fm.sn is exist - process it [19:35:20]wFMCommunicate request_size=4 [19:35:20]MH_SAM_APDU [19:35:20]CAPDU: 80 11 00 00 [19:35:20]Write to MH i2c: E2 08 00 B2 81 80 11 00 00 00 00 00 00 AD [19:35:20]Write i2c OK [19:35:20]MH_I2C_Read... [19:35:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:35:20]Read from MH i2c: E2 [19:35:20]MH_I2C_Read... [19:35:20]Read from MH i2c: E2 17 00 [19:35:20]MH_I2C_Read... [19:35:20]Read from MH i2c: E2 17 00 B2 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 02 [19:35:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:35:20]wFMCommunicate OK [19:35:20]requested_item fd.num is exist - process it [19:35:20]SAM_PROTO_GetFieldsCounters [19:35:20]wFMCommunicate request_size=4 [19:35:20]MH_SAM_APDU [19:35:20]CAPDU: 80 13 00 00 [19:35:20]Write to MH i2c: E2 08 00 B3 81 80 13 00 00 00 00 00 00 B0 [19:35:20]Write i2c OK [19:35:20]MH_I2C_Read... [19:35:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:35:20]Read from MH i2c: E2 [19:35:20]MH_I2C_Read... [19:35:20]Read from MH i2c: E2 62 00 [19:35:20]MH_I2C_Read... [19:35:20]Read from MH i2c: E2 62 00 B3 81 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 3C 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 1B 01 00 00 5E 04 04 00 1B 01 00 00 57 04 04 00 1C 01 00 00 19 04 04 00 00 00 00 00 90 00 E7 [19:35:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 3C 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 1B 01 00 00 5E 04 04 00 1B 01 00 00 57 04 04 00 1C 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:35:21]wFMCommunicate OK [19:35:21]SAM_PROTO_GetFieldsCounters done [19:35:21]requested_item shift.num is exist - process it [19:35:21]requested_item shift.opened is exist - process it [19:35:21]req_shift_opened [19:35:21]FM_GetShiftState [19:35:21]SAM_PROTO_GetShiftState [19:35:21]wFMCommunicate request_size=4 [19:35:21]MH_SAM_APDU [19:35:21]CAPDU: 80 13 01 00 [19:35:21]Write to MH i2c: E2 08 00 B4 81 80 13 01 00 00 00 00 00 B2 [19:35:21]Write i2c OK [19:35:21]MH_I2C_Read... [19:35:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:35:21]Read from MH i2c: E2 [19:35:21]MH_I2C_Read... [19:35:21]Read from MH i2c: E2 0E 00 [19:35:21]MH_I2C_Read... [19:35:21]Read from MH i2c: E2 0E 00 B4 81 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 7F [19:35:21]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [19:35:21]wFMCommunicate OK [19:35:21]SAM_PROTO_GetShiftState done [19:35:21]FM_GetShiftState done [19:35:21]req_shift_opened done [19:35:21]requested_item shift.open_date is exist - process it [19:35:21]req_shift_open_date [19:35:21]req_shift_open_date done [19:35:21]produce_requested_data done [19:35:21]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156732,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [19:35:21]process_action_free close_receipt [19:35:21]json_value_free [19:35:21]json_value_free done [19:35:21]process_json_proto returns [19:35:21]Send response to host [19:35:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156732,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [19:35:21]free response buf [19:35:21]execute_script done [19:35:21]execute_script returns [19:35:21]free content buf [19:35:21]Sock 9.Close socket [19:35:21]Sock 9.Thread stoped [19:35:21]OFD Sender: No OFD packet to send [19:35:26]OFD Sender: No OFD packet to send [19:35:31]OFD Sender: No OFD packet to send [19:35:36]OFD Sender: No OFD packet to send [19:35:41]OFD Sender: No OFD packet to send [19:35:46]OFD Sender: No OFD packet to send [19:35:51]OFD Sender: No OFD packet to send [19:35:56]OFD Sender: No OFD packet to send [19:36:01]OFD Sender: No OFD packet to send [19:36:04]accept exits with 8 [19:36:04]New connection [19:36:04]New thread 3066977636 created [19:36:04]Thread 3066834276 joined [19:36:04]Waiting for new connection... [19:36:04] Sock 8.Parse request [19:36:04]Sock 8.Check first char [19:36:04]Sock 8.First char is OK [19:36:04]request: POST /json_proto HTTP/1.0 [19:36:04]Method: POST [19:36:04]URL: /json_proto [19:36:04]Method is POST - this is cgi request [19:36:04]url: /json_proto [19:36:04]query_string will be loaded in cgi processing [19:36:04]execute_cgi json_proto POST (null) [19:36:04]execute_cgi path=json_proto method=POST [19:36:04]POST find Content-Length [19:36:04]Host: 172.17.63.3:8080 [19:36:04]Content-Length: 676 [19:36:04]Content-Type: application/json [19:36:04] [19:36:04]POST finish read [19:36:04]Found Content-Length = 676 [19:36:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99547", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:36:04]execute_script... [19:36: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)99547", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:36:04]POST & json_proto [19:36:04]process_json_proto [19:36:04]json parsed OK: [19:36:04]protocol is kg_v1.0 [19:36:04]action value=close_receipt [19:36:04]process_action close_receipt [19:36:04]cmd_close_receipt [19:36:04]MH_GetDate [19:36:04]Write to MH i2c: F0 00 00 B5 81 25 [19:36:04]Write i2c OK [19:36:04]MH_I2C_Read... [19:36:04]Read from MH i2c: F0 [19:36:04]MH_I2C_Read... [19:36:04]Read from MH i2c: F0 09 00 [19:36:04]MH_I2C_Read... [19:36:04]Read from MH i2c: F0 09 00 B5 81 00 2B 96 1E 67 50 D1 6C 64 65 [19:36:04]GetLastDocTimeStamp 1730057725 [19:36:04]current date 1730057771 [19:36:04]FM_GetShiftState [19:36:04]SAM_PROTO_GetShiftState [19:36:04]wFMCommunicate request_size=4 [19:36:04]MH_SAM_APDU [19:36:04]CAPDU: 80 13 01 00 [19:36:04]Write to MH i2c: E2 08 00 B6 81 80 13 01 00 00 00 00 00 B4 [19:36:04]Write i2c OK [19:36:04]MH_I2C_Read... [19:36:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:36:04]Read from MH i2c: E2 [19:36:04]MH_I2C_Read... [19:36:04]Read from MH i2c: E2 0E 00 [19:36:04]MH_I2C_Read... [19:36:04]Read from MH i2c: E2 0E 00 B6 81 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 81 [19:36:04]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [19:36:04]wFMCommunicate OK [19:36:04]SAM_PROTO_GetShiftState done [19:36:04]FM_GetShiftState done [19:36:04]opened in 1729989044 [19:36:04]opened+sec_in_day 1730075444 [19:36:04]quantity*price = 50041 [19:36:04]sum+1 = 50042 [19:36:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 284 27.10.2024 19:36 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156733 ФПД: 172932037574793 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T193611&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156733&fm=172932037574793&tin=02508201610067®Number=0000000000091693&sum=50000 [19:36:05]StoreToDocumentArchive [19:36:05]shift 537 fd 156733 [19:36:05]save to /storage/0537/doc_00156733 [19:36:05]save last doc name /storage/0537/doc_00156733 to /storage/kkm_last_doc_name [19:36:05]save OK [19:36:05]Clear old archive folders... [19:36:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:36:05]tlvbuf is 016A3C80 [19:36:05]SAM_PROTO_ClearQueue [19:36:05]wFMCommunicate request_size=4 [19:36:05]MH_SAM_APDU [19:36:05]CAPDU: 80 09 00 00 [19:36:05]Write to MH i2c: E2 08 00 C3 81 80 09 00 00 00 00 00 00 B6 [19:36:05]Write i2c OK [19:36:05]MH_I2C_Read... [19:36:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:36:05]Read from MH i2c: E2 [19:36:05]MH_I2C_Read... [19:36:05]Read from MH i2c: E2 03 00 [19:36:05]MH_I2C_Read... [19:36:05]Read from MH i2c: E2 03 00 C3 81 00 90 00 B8 [19:36:05]RAPDU: 90 00 [19:36:05]wFMCommunicate OK [19:36:05]SAM_PROTO_ClearQueue done [19:36:05]KKMCreateOFDPacket [19:36:05]OFDProtocolAddRootSTLVToBuf [19:36:05]FM_MakeSignedData [19:36:05]FM_MakeSignedData [19:36:05]SAM_PROTO_SignData [19:36:05]wFMCommunicate request_size=4 [19:36:05]MH_SAM_APDU [19:36:05]CAPDU: 80 0D 01 02 [19:36:05]Write to MH i2c: E2 08 00 C4 81 80 0D 01 02 00 00 00 00 BE [19:36:05]Write i2c OK [19:36:05]MH_I2C_Read... [19:36:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:36:05]Read from MH i2c: E2 [19:36:05]MH_I2C_Read... [19:36:05]Read from MH i2c: E2 03 00 [19:36:05]MH_I2C_Read... [19:36:05]Read from MH i2c: E2 03 00 C4 81 00 90 00 B9 [19:36:05]RAPDU: 90 00 [19:36:05]wFMCommunicate OK [19:36:05]wFMCommunicate request_size=255 [19:36:05]MH_SAM_APDU [19:36: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 2B 96 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3D 64 02 00 35 04 06 00 9D [19:36:05]Write to MH i2c: E2 02 01 C5 81 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 2B 96 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3D 64 02 00 35 04 06 00 9D 00 00 10 [19:36:05]Write i2c OK [19:36:05]MH_I2C_Read... [19:36:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:36:05]Read from MH i2c: E2 [19:36:05]MH_I2C_Read... [19:36:05]Read from MH i2c: E2 03 00 [19:36:05]MH_I2C_Read... [19:36:05]Read from MH i2c: E2 03 00 C5 81 00 90 00 BA [19:36:05]RAPDU: 90 00 [19:36:05]wFMCommunicate OK [19:36:05]wFMCommunicate request_size=10 [19:36:05]MH_SAM_APDU [19:36:05]CAPDU: 80 0D 02 02 05 47 E0 AB 80 89 [19:36:05]Write to MH i2c: E2 0D 00 C6 81 80 0D 02 02 05 00 47 E0 AB 80 89 00 00 A6 [19:36:05]Write i2c OK [19:36:05]MH_I2C_Read... [19:36:05]Read from MH i2c: E2 [19:36:05]MH_I2C_Read... [19:36:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:36:05]Read from MH i2c: E2 03 00 [19:36:05]MH_I2C_Read... [19:36:05]Read from MH i2c: E2 03 00 C6 81 00 90 00 BB [19:36:05]RAPDU: 90 00 [19:36:05]wFMCommunicate OK [19:36:05]wFMCommunicate request_size=4 [19:36:05]MH_SAM_APDU [19:36:05]CAPDU: 80 0D 03 02 [19:36:05]Write to MH i2c: E2 08 00 C7 81 80 0D 03 02 00 00 00 00 C3 [19:36:05]Write i2c OK [19:36:05]MH_I2C_Read... [19:36:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:36:05]Read from MH i2c: E2 [19:36:05]MH_I2C_Read... [19:36:05]Read from MH i2c: E2 0B 00 [19:36:05]MH_I2C_Read... [19:36:05]Read from MH i2c: E2 0B 00 C7 81 00 F6 79 42 67 D2 53 1E 0F 90 00 2E [19:36:05]RAPDU: F6 79 42 67 D2 53 1E 0F 90 00 [19:36:05]wFMCommunicate OK [19:36:05]SAM_PROTO_SignData done [19:36:05]FM_MakeSignedData done [19:36:05]CreateOFDProtocolMessage [19:36:05]wFMCommunicate request_size=4 [19:36:05]MH_SAM_APDU [19:36:05]CAPDU: 80 11 00 00 [19:36:05]Write to MH i2c: E2 08 00 C8 81 80 11 00 00 00 00 00 00 C3 [19:36:05]Write i2c OK [19:36:05]MH_I2C_Read... [19:36:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:36:05]Read from MH i2c: E2 [19:36:05]MH_I2C_Read... [19:36:05]Read from MH i2c: E2 17 00 [19:36:05]MH_I2C_Read... [19:36:05]Read from MH i2c: E2 17 00 C8 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 18 [19:36:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:36:05]wFMCommunicate OK [19:36:05]CreateOFDProtocolMessage done [19:36:05]OFDSenderStorePacket 156733 [19:36:05]StoreOFDPacket docnum=156733 [19:36:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 24 2A 07 01 DC 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 2B 96 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3D 64 02 00 35 04 06 00 9D 47 E0 AB 80 89 F6 79 42 67 D2 53 1E 0F [19:36:05]CheckFolder [19:36:05]dirname=/storage/ofd_packets [19:36:05]CheckFolder done [19:36:05]ProducePacketName [19:36:05]name=ofd_packets/00156733 [19:36:05]NVStorageSaveData ofd_packets/00156733 [19:36:05]File name is /storage/ofd_packets/00156733 [19:36:05]Write 301 bytes [19:36:05]NVStorageSaveData done [19:36:05]OFDSenderStorePacket done [19:36:05]KKMCreateOFDPacket done [19:36:05]NVStorageSaveData kkm_last_timestamp [19:36:05]File name is /storage/kkm_last_timestamp [19:36:05]Write 4 bytes [19:36:05]NVStorageSaveData done [19:36:05]ExternCall_PrintAddStr [19:36:05]wPrintStart [19:36:05]Write to MH i2c: 01 00 00 C9 81 4A [19:36:05]Write i2c OK [19:36:05]MH_I2C_Read... [19:36:05]Read from MH i2c: 01 [19:36:05]MH_I2C_Read... [19:36:05]Read from MH i2c: 01 07 00 [19:36:05]MH_I2C_Read... [19:36:05]Read from MH i2c: 01 07 00 C9 81 00 00 00 00 00 FF 0F 5F [19:36:05]RasterBufferAndPrint [19:36:05]line Счет N : (1)99547 [19:36:05]line ИНН: 02508201610067 [19:36:05]line Контрольно-Кассовый Чек [19:36:05]line ПРОДАЖА [19:36:05]line ТРК (МРК, ГНК) : 31 [19:36:05]line Товар: 2710124130 [19:36:05]line Аи-92-К-5 [19:36:05]line 7.480 * 66.90 [19:36:05]line = 500.41 [19:36:05]line НДС 12% НСП 1% [19:36:05]line > о реализуемом товаре [19:36:05]line ОКРУГЛЕНИЕ: -0.41 [19:36:05]line ИТОГО: 500.00 [19:36:05]line Внесено: 500.00 [19:36:05]line СДАЧА: 0.00 [19:36:05]line НСП 1% : 4.43 [19:36:05]line НДС 12% : 53.14 [19:36:05]line Наличными: 500.00 [19:36:05]line Безнал.: 0.00 [19:36:05]line Место: АЗС № 143 "Партнер Нефть" [19:36:05]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [19:36:05]line СНО: Общий режим [19:36:05]line Чек 284 27.10.2024 19:36 [19:36:05]line Смена: 537 ФФД: 1.0 [19:36:05]line ЗНМ: 0300000096 [19:36:05]line РНМ: 0000000000091693 [19:36:05]line Версия ККМ: 001 [19:36:05]line ФМ: 0000000000871792 [19:36:05]line ФД: 156733 [19:36:05]line ФПД: 172932037574793 [19:36:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T193611&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156733&fm=172932037574793&tin=02508201610067®Number=0000000000091693&sum=50000 [19:36:06]OFD Sender: Processing packet 156733 [packets to send 31, broken 30] [19:36:06]ProducePacketName [19:36:06]name=ofd_packets/00156733 [19:36:06]OFD Sender: To server: pG, [19:36:06]CommunicateWithHost lk.salyk.kg:30040 [19:36:06]ConnectInit lk.salyk.kg [19:36:06]written 0, free lines is 4095 [19:36:06]Connected sock=10 [19:36:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 24 2A 07 01 DC 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 2B 96 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3D 64 02 00 35 04 06 00 9D 47 E0 AB 80 89 F6 79 42 67 D2 53 1E 0F [19:36:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 0E 95 47 00 6F 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3D 64 02 00 F4 03 04 00 9A 3B 1E 67 B6 04 01 00 00 53 08 05 3A E9 A4 26 EB [19:36:06]CommunicateWithHost err = 0 [19:36:06]CheckOFDResponse [19:36:06]1017 (14) - 77093643461234 [19:36:06]1041 (16) - 0000000000871792 [19:36:06]1040 (4) - 156733 [19:36:06]1012 (4) - 27.10.2024 13:09 [19:36:06]1206 (1) - 0 [19:36:06]OFD Sender: Remove packet 156733 [19:36:06]ProducePacketName [19:36:06]name=ofd_packets/00156733 [19:36:06]NVStorageDeleteData [19:36:06]Write to MH i2c: 01 00 00 F4 81 75 [19:36:06]Write i2c OK [19:36:06]MH_I2C_Read... [19:36:06]Read from MH i2c: 01 [19:36:06]MH_I2C_Read... [19:36:06]Read from MH i2c: 01 07 00 [19:36:06]MH_I2C_Read... [19:36:06]Read from MH i2c: 01 07 00 F4 81 00 00 00 00 00 F9 0C 81 [19:36:06]RasterBufferAndPrint [19:36:06]line [19:36:06]line [19:36:06]line [19:36:06]line [19:36:06]line [19:36:06]written 0, free lines is 3332 [19:36:06]process_action close_receipt done [19:36:06]requested_data is exist [19:36:06]produce_requested_data [19:36:06]requested_item fm.sn is exist - process it [19:36:06]wFMCommunicate request_size=4 [19:36:06]MH_SAM_APDU [19:36:06]CAPDU: 80 11 00 00 [19:36:06]Write to MH i2c: E2 08 00 FB 81 80 11 00 00 00 00 00 00 F6 [19:36:06]Write i2c OK [19:36:06]MH_I2C_Read... [19:36:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:36:06]Read from MH i2c: E2 [19:36:06]MH_I2C_Read... [19:36:06]Read from MH i2c: E2 17 00 [19:36:06]MH_I2C_Read... [19:36:06]Read from MH i2c: E2 17 00 FB 81 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 4B [19:36:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:36:06]wFMCommunicate OK [19:36:06]requested_item fd.num is exist - process it [19:36:06]SAM_PROTO_GetFieldsCounters [19:36:06]wFMCommunicate request_size=4 [19:36:06]MH_SAM_APDU [19:36:06]CAPDU: 80 13 00 00 [19:36:06]Write to MH i2c: E2 08 00 FC 81 80 13 00 00 00 00 00 00 F9 [19:36:06]Write i2c OK [19:36:06]MH_I2C_Read... [19:36:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:36:07]Read from MH i2c: E2 [19:36:07]MH_I2C_Read... [19:36:07]Read from MH i2c: E2 62 00 [19:36:07]MH_I2C_Read... [19:36:07]Read from MH i2c: E2 62 00 FC 81 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 3D 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 1C 01 00 00 5E 04 04 00 1C 01 00 00 57 04 04 00 1D 01 00 00 19 04 04 00 00 00 00 00 90 00 34 [19:36:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 3D 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 1C 01 00 00 5E 04 04 00 1C 01 00 00 57 04 04 00 1D 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:36:07]wFMCommunicate OK [19:36:07]SAM_PROTO_GetFieldsCounters done [19:36:07]requested_item shift.num is exist - process it [19:36:07]requested_item shift.opened is exist - process it [19:36:07]req_shift_opened [19:36:07]FM_GetShiftState [19:36:07]SAM_PROTO_GetShiftState [19:36:07]wFMCommunicate request_size=4 [19:36:07]MH_SAM_APDU [19:36:07]CAPDU: 80 13 01 00 [19:36:07]Write to MH i2c: E2 08 00 FD 81 80 13 01 00 00 00 00 00 FB [19:36:07]Write i2c OK [19:36:07]MH_I2C_Read... [19:36:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:36:07]Read from MH i2c: E2 [19:36:07]MH_I2C_Read... [19:36:07]Read from MH i2c: E2 0E 00 [19:36:07]MH_I2C_Read... [19:36:07]Read from MH i2c: E2 0E 00 FD 81 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 C8 [19:36:07]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [19:36:07]wFMCommunicate OK [19:36:07]SAM_PROTO_GetShiftState done [19:36:07]FM_GetShiftState done [19:36:07]req_shift_opened done [19:36:07]requested_item shift.open_date is exist - process it [19:36:07]req_shift_open_date [19:36:07]req_shift_open_date done [19:36:07]produce_requested_data done [19:36:07]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156733,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [19:36:07]process_action_free close_receipt [19:36:07]json_value_free [19:36:07]json_value_free done [19:36:07]process_json_proto returns [19:36:07]Send response to host [19:36:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156733,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [19:36:07]free response buf [19:36:07]execute_script done [19:36:07]execute_script returns [19:36:07]free content buf [19:36:07]Sock 8.Close socket [19:36:07]Sock 8.Thread stoped [19:36:07]OFD Sender: No OFD packet to send [19:36:12]OFD Sender: No OFD packet to send [19:36:17]OFD Sender: No OFD packet to send [19:36:22]OFD Sender: No OFD packet to send [19:36:27]OFD Sender: No OFD packet to send [19:36:32]OFD Sender: No OFD packet to send [19:36:37]OFD Sender: No OFD packet to send [19:36:42]OFD Sender: No OFD packet to send [19:36:47]OFD Sender: No OFD packet to send [19:36:52]OFD Sender: No OFD packet to send [19:36:57]OFD Sender: No OFD packet to send [19:37:02]OFD Sender: No OFD packet to send [19:37:07]OFD Sender: No OFD packet to send [19:37:12]OFD Sender: No OFD packet to send [19:37:17]OFD Sender: No OFD packet to send [19:37:22]OFD Sender: No OFD packet to send [19:37:27]OFD Sender: No OFD packet to send [19:37:32]OFD Sender: No OFD packet to send [19:37:37]OFD Sender: No OFD packet to send [19:37:42]OFD Sender: No OFD packet to send [19:37:47]OFD Sender: No OFD packet to send [19:37:52]OFD Sender: No OFD packet to send [19:37:57]OFD Sender: No OFD packet to send [19:38:02]OFD Sender: No OFD packet to send [19:38:07]OFD Sender: No OFD packet to send [19:38:12]OFD Sender: No OFD packet to send [19:38:17]OFD Sender: No OFD packet to send [19:38:22]OFD Sender: No OFD packet to send [19:38:27]OFD Sender: No OFD packet to send [19:38:32]OFD Sender: No OFD packet to send [19:38:37]OFD Sender: No OFD packet to send [19:38:42]OFD Sender: No OFD packet to send [19:38:47]OFD Sender: No OFD packet to send [19:38:52]OFD Sender: No OFD packet to send [19:38:57]OFD Sender: No OFD packet to send [19:39:02]OFD Sender: No OFD packet to send [19:39:07]OFD Sender: No OFD packet to send [19:39:12]OFD Sender: No OFD packet to send [19:39:17]OFD Sender: No OFD packet to send [19:39:22]OFD Sender: No OFD packet to send [19:39:27]OFD Sender: No OFD packet to send [19:39:32]OFD Sender: No OFD packet to send [19:39:37]OFD Sender: No OFD packet to send [19:39:42]OFD Sender: No OFD packet to send [19:39:47]OFD Sender: No OFD packet to send [19:39:52]OFD Sender: No OFD packet to send [19:39:57]OFD Sender: No OFD packet to send [19:40:02]OFD Sender: No OFD packet to send [19:40:07]OFD Sender: No OFD packet to send [19:40:12]OFD Sender: No OFD packet to send [19:40:17]OFD Sender: No OFD packet to send [19:40:22]OFD Sender: No OFD packet to send [19:40:27]OFD Sender: No OFD packet to send [19:40:32]OFD Sender: No OFD packet to send [19:40:37]OFD Sender: No OFD packet to send [19:40:42]OFD Sender: No OFD packet to send [19:40:47]OFD Sender: No OFD packet to send [19:40:52]OFD Sender: No OFD packet to send [19:40:57]OFD Sender: No OFD packet to send [19:41:02]OFD Sender: No OFD packet to send [19:41:07]OFD Sender: No OFD packet to send [19:41:12]OFD Sender: No OFD packet to send [19:41:17]OFD Sender: No OFD packet to send [19:41:22]OFD Sender: No OFD packet to send [19:41:27]OFD Sender: No OFD packet to send [19:41:32]OFD Sender: No OFD packet to send [19:41:37]OFD Sender: No OFD packet to send [19:41:42]OFD Sender: No OFD packet to send [19:41:47]OFD Sender: No OFD packet to send [19:41:52]OFD Sender: No OFD packet to send [19:41:57]OFD Sender: No OFD packet to send [19:42:02]OFD Sender: No OFD packet to send [19:42:07]OFD Sender: No OFD packet to send [19:42:12]OFD Sender: No OFD packet to send [19:42:17]OFD Sender: No OFD packet to send [19:42:22]OFD Sender: No OFD packet to send [19:42:27]OFD Sender: No OFD packet to send [19:42:32]OFD Sender: No OFD packet to send [19:42:37]OFD Sender: No OFD packet to send [19:42:42]OFD Sender: No OFD packet to send [19:42:47]OFD Sender: No OFD packet to send [19:42:52]OFD Sender: No OFD packet to send [19:42:57]OFD Sender: No OFD packet to send [19:43:02]OFD Sender: No OFD packet to send [19:43:07]OFD Sender: No OFD packet to send [19:43:12]OFD Sender: No OFD packet to send [19:43:17]OFD Sender: No OFD packet to send [19:43:22]OFD Sender: No OFD packet to send [19:43:27]OFD Sender: No OFD packet to send [19:43:32]OFD Sender: No OFD packet to send [19:43:37]OFD Sender: No OFD packet to send [19:43:42]OFD Sender: No OFD packet to send [19:43:47]OFD Sender: No OFD packet to send [19:43:52]OFD Sender: No OFD packet to send [19:43:57]OFD Sender: No OFD packet to send [19:44:02]OFD Sender: No OFD packet to send [19:44:07]OFD Sender: No OFD packet to send [19:44:12]OFD Sender: No OFD packet to send [19:44:17]OFD Sender: No OFD packet to send [19:44:22]OFD Sender: No OFD packet to send [19:44:27]OFD Sender: No OFD packet to send [19:44:32]OFD Sender: No OFD packet to send [19:44:37]OFD Sender: No OFD packet to send [19:44:42]OFD Sender: No OFD packet to send [19:44:47]accept exits with 9 [19:44:47]New connection [19:44:47]New thread 3066834276 created [19:44:47]Thread 3066977636 joined [19:44:47]Waiting for new connection... [19:44:47] Sock 9.Parse request [19:44:47]Sock 9.Check first char [19:44:47]Sock 9.First char is OK [19:44:47]request: POST /json_proto HTTP/1.0 [19:44:47]Method: POST [19:44:47]URL: /json_proto [19:44:47]Method is POST - this is cgi request [19:44:47]url: /json_proto [19:44:47]query_string will be loaded in cgi processing [19:44:47]execute_cgi json_proto POST (null) [19:44:47]execute_cgi path=json_proto method=POST [19:44:47]POST find Content-Length [19:44:47]Host: 172.17.63.3:8080 [19:44:47]Content-Length: 681 [19:44:47]Content-Type: application/json [19:44:47] [19:44:47]POST finish read [19:44:47]Found Content-Length = 681 [19:44:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99548", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 20.930, "sum" : 1400.22, "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" ] } } [19:44:47]execute_script... [19:44:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99548", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 20.930, "sum" : 1400.22, "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" ] } } [19:44:47]POST & json_proto [19:44:47]process_json_proto [19:44:47]json parsed OK: [19:44:47]protocol is kg_v1.0 [19:44:47]action value=close_receipt [19:44:47]process_action close_receipt [19:44:47]cmd_close_receipt [19:44:47]MH_GetDate [19:44:47]Write to MH i2c: F0 00 00 FE 81 6E [19:44:47]Write i2c OK [19:44:47]MH_I2C_Read... [19:44:47]Read from MH i2c: F0 [19:44:47]MH_I2C_Read... [19:44:47]Read from MH i2c: F0 09 00 [19:44:47]MH_I2C_Read... [19:44:47]Read from MH i2c: F0 09 00 FE 81 00 36 98 1E 67 50 D1 6C 64 BB [19:44:47]GetLastDocTimeStamp 1730057771 [19:44:47]current date 1730058294 [19:44:47]FM_GetShiftState [19:44:47]SAM_PROTO_GetShiftState [19:44:47]wFMCommunicate request_size=4 [19:44:47]MH_SAM_APDU [19:44:47]CAPDU: 80 13 01 00 [19:44:47]Write to MH i2c: E2 08 00 FF 81 80 13 01 00 00 00 00 00 FD [19:44:47]Write i2c OK [19:44:47]MH_I2C_Read... [19:44:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:44:47]Read from MH i2c: E2 [19:44:47]MH_I2C_Read... [19:44:47]Read from MH i2c: E2 0E 00 [19:44:47]MH_I2C_Read... [19:44:47]Read from MH i2c: E2 0E 00 FF 81 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 CA [19:44:47]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [19:44:47]wFMCommunicate OK [19:44:47]SAM_PROTO_GetShiftState done [19:44:47]FM_GetShiftState done [19:44:47]opened in 1729989044 [19:44:47]opened+sec_in_day 1730075444 [19:44:47]quantity*price = 140021 [19:44:47]sum+1 = 140023 [19:44:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.70 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 285 27.10.2024 19:44 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156734 ФПД: 14431487952634 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T194454&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156734&fm=14431487952634&tin=02508201610067®Number=0000000000091693&sum=140000 [19:44:48]StoreToDocumentArchive [19:44:48]shift 537 fd 156734 [19:44:48]save to /storage/0537/doc_00156734 [19:44:48]save last doc name /storage/0537/doc_00156734 to /storage/kkm_last_doc_name [19:44:48]save OK [19:44:48]Clear old archive folders... [19:44:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:44:48]tlvbuf is 018781F0 [19:44:48]SAM_PROTO_ClearQueue [19:44:48]wFMCommunicate request_size=4 [19:44:48]MH_SAM_APDU [19:44:48]CAPDU: 80 09 00 00 [19:44:48]Write to MH i2c: E2 08 00 0C 82 80 09 00 00 00 00 00 00 00 [19:44:48]Write i2c OK [19:44:48]MH_I2C_Read... [19:44:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:44:48]Read from MH i2c: E2 [19:44:48]MH_I2C_Read... [19:44:48]Read from MH i2c: E2 03 00 [19:44:48]MH_I2C_Read... [19:44:48]Read from MH i2c: E2 03 00 0C 82 00 90 00 02 [19:44:48]RAPDU: 90 00 [19:44:48]wFMCommunicate OK [19:44:48]SAM_PROTO_ClearQueue done [19:44:48]KKMCreateOFDPacket [19:44:48]OFDProtocolAddRootSTLVToBuf [19:44:48]FM_MakeSignedData [19:44:48]FM_MakeSignedData [19:44:48]SAM_PROTO_SignData [19:44:48]wFMCommunicate request_size=4 [19:44:48]MH_SAM_APDU [19:44:48]CAPDU: 80 0D 01 02 [19:44:48]Write to MH i2c: E2 08 00 0D 82 80 0D 01 02 00 00 00 00 08 [19:44:48]Write i2c OK [19:44:48]MH_I2C_Read... [19:44:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:44:48]Read from MH i2c: E2 [19:44:48]MH_I2C_Read... [19:44:48]Read from MH i2c: E2 03 00 [19:44:48]MH_I2C_Read... [19:44:48]Read from MH i2c: E2 03 00 0D 82 00 90 00 03 [19:44:48]RAPDU: 90 00 [19:44:48]wFMCommunicate OK [19:44:48]wFMCommunicate request_size=255 [19:44:48]MH_SAM_APDU [19:44: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 C2 51 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 22 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 16 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 1D 01 00 00 F4 03 04 00 36 98 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3E 64 02 00 35 04 06 00 0D [19:44:48]Write to MH i2c: E2 02 01 0E 82 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C2 51 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 22 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 16 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 1D 01 00 00 F4 03 04 00 36 98 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3E 64 02 00 35 04 06 00 0D 00 00 F0 [19:44:48]Write i2c OK [19:44:48]MH_I2C_Read... [19:44:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:44:48]Read from MH i2c: E2 [19:44:48]MH_I2C_Read... [19:44:48]Read from MH i2c: E2 03 00 [19:44:48]MH_I2C_Read... [19:44:48]Read from MH i2c: E2 03 00 0E 82 00 90 00 04 [19:44:48]RAPDU: 90 00 [19:44:48]wFMCommunicate OK [19:44:48]wFMCommunicate request_size=10 [19:44:48]MH_SAM_APDU [19:44:48]CAPDU: 80 0D 02 02 05 20 17 B6 86 FA [19:44:48]Write to MH i2c: E2 0D 00 0F 82 80 0D 02 02 05 00 20 17 B6 86 FA 00 00 82 [19:44:48]Write i2c OK [19:44:48]MH_I2C_Read... [19:44:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:44:48]Read from MH i2c: E2 [19:44:48]MH_I2C_Read... [19:44:48]Read from MH i2c: E2 03 00 [19:44:48]MH_I2C_Read... [19:44:48]Read from MH i2c: E2 03 00 0F 82 00 90 00 05 [19:44:48]RAPDU: 90 00 [19:44:48]wFMCommunicate OK [19:44:48]wFMCommunicate request_size=4 [19:44:48]MH_SAM_APDU [19:44:48]CAPDU: 80 0D 03 02 [19:44:48]Write to MH i2c: E2 08 00 10 82 80 0D 03 02 00 00 00 00 0D [19:44:48]Write i2c OK [19:44:48]MH_I2C_Read... [19:44:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:44:48]Read from MH i2c: E2 [19:44:48]MH_I2C_Read... [19:44:48]Read from MH i2c: E2 0B 00 [19:44:48]MH_I2C_Read... [19:44:48]Read from MH i2c: E2 0B 00 10 82 00 4C F5 08 70 E2 9E 0F B5 90 00 0B [19:44:48]RAPDU: 4C F5 08 70 E2 9E 0F B5 90 00 [19:44:48]wFMCommunicate OK [19:44:48]SAM_PROTO_SignData done [19:44:48]FM_MakeSignedData done [19:44:48]CreateOFDProtocolMessage [19:44:48]wFMCommunicate request_size=4 [19:44:48]MH_SAM_APDU [19:44:48]CAPDU: 80 11 00 00 [19:44:48]Write to MH i2c: E2 08 00 11 82 80 11 00 00 00 00 00 00 0D [19:44:48]Write i2c OK [19:44:48]MH_I2C_Read... [19:44:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:44:48]Read from MH i2c: E2 [19:44:48]MH_I2C_Read... [19:44:48]Read from MH i2c: E2 17 00 [19:44:48]MH_I2C_Read... [19:44:48]Read from MH i2c: E2 17 00 11 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 62 [19:44:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:44:48]wFMCommunicate OK [19:44:48]CreateOFDProtocolMessage done [19:44:48]OFDSenderStorePacket 156734 [19:44:48]StoreOFDPacket docnum=156734 [19:44:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 9F AD 07 01 44 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 C2 51 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 22 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 16 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 1D 01 00 00 F4 03 04 00 36 98 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3E 64 02 00 35 04 06 00 0D 20 17 B6 86 FA 4C F5 08 70 E2 9E 0F B5 [19:44:48]CheckFolder [19:44:48]dirname=/storage/ofd_packets [19:44:48]CheckFolder done [19:44:48]ProducePacketName [19:44:48]name=ofd_packets/00156734 [19:44:48]NVStorageSaveData ofd_packets/00156734 [19:44:48]File name is /storage/ofd_packets/00156734 [19:44:48]Write 301 bytes [19:44:48]NVStorageSaveData done [19:44:48]OFDSenderStorePacket done [19:44:48]KKMCreateOFDPacket done [19:44:48]NVStorageSaveData kkm_last_timestamp [19:44:48]File name is /storage/kkm_last_timestamp [19:44:48]Write 4 bytes [19:44:48]NVStorageSaveData done [19:44:48]ExternCall_PrintAddStr [19:44:48]wPrintStart [19:44:48]Write to MH i2c: 01 00 00 12 82 94 [19:44:48]Write i2c OK [19:44:48]MH_I2C_Read... [19:44:48]Read from MH i2c: 01 [19:44:48]MH_I2C_Read... [19:44:48]Read from MH i2c: 01 07 00 [19:44:48]MH_I2C_Read... [19:44:48]Read from MH i2c: 01 07 00 12 82 00 00 00 00 00 FF 0F A9 [19:44:48]RasterBufferAndPrint [19:44:48]line Счет N : (1)99548 [19:44:48]line ИНН: 02508201610067 [19:44:48]line Контрольно-Кассовый Чек [19:44:48]line ПРОДАЖА [19:44:48]line ТРК (МРК, ГНК) : 31 [19:44:48]line Товар: 2710124130 [19:44:48]line Аи-92-К-5 [19:44:48]line 20.930 * 66.90 [19:44:48]line = 1400.22 [19:44:48]line НДС 12% НСП 1% [19:44:48]line > о реализуемом товаре [19:44:48]line ОКРУГЛЕНИЕ: -0.22 [19:44:48]line ИТОГО: 1400.00 [19:44:48]line Внесено: 1400.00 [19:44:48]line СДАЧА: 0.00 [19:44:48]line НСП 1% : 12.39 [19:44:48]line НДС 12% : 148.70 [19:44:48]line Наличными: 1400.00 [19:44:48]line Безнал.: 0.00 [19:44:48]line Место: АЗС № 143 "Партнер Нефть" [19:44:48]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [19:44:48]line СНО: Общий режим [19:44:48]line Чек 285 27.10.2024 19:44 [19:44:48]line Смена: 537 ФФД: 1.0 [19:44:48]line ЗНМ: 0300000096 [19:44:48]line РНМ: 0000000000091693 [19:44:48]line Версия ККМ: 001 [19:44:48]line ФМ: 0000000000871792 [19:44:48]line ФД: 156734 [19:44:48]line ФПД: 14431487952634 [19:44:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T194454&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156734&fm=14431487952634&tin=02508201610067®Number=0000000000091693&sum=140000 [19:44:49]OFD Sender: Processing packet 156734 [packets to send 31, broken 30] [19:44:49]ProducePacketName [19:44:49]name=ofd_packets/00156734 [19:44:49]OFD Sender: To server: pG, [19:44:49]CommunicateWithHost lk.salyk.kg:30040 [19:44:49]ConnectInit lk.salyk.kg [19:44:49]written 0, free lines is 4095 [19:44:49]Connected sock=8 [19:44:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 9F AD 07 01 44 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 C2 51 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F6 22 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 16 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 1D 01 00 00 F4 03 04 00 36 98 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3E 64 02 00 35 04 06 00 0D 20 17 B6 86 FA 4C F5 08 70 E2 9E 0F B5 [19:44:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 E3 27 47 00 C1 E1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3E 64 02 00 F4 03 04 00 A5 3D 1E 67 B6 04 01 00 00 4E E7 A1 74 D0 97 63 FF [19:44:49]CommunicateWithHost err = 0 [19:44:49]CheckOFDResponse [19:44:49]1017 (14) - 77093643461234 [19:44:49]1041 (16) - 0000000000871792 [19:44:49]1040 (4) - 156734 [19:44:49]1012 (4) - 27.10.2024 13:18 [19:44:49]1206 (1) - 0 [19:44:49]OFD Sender: Remove packet 156734 [19:44:49]ProducePacketName [19:44:49]name=ofd_packets/00156734 [19:44:49]NVStorageDeleteData [19:44:49]Write to MH i2c: 01 00 00 3D 82 BF [19:44:49]Write i2c OK [19:44:49]MH_I2C_Read... [19:44:49]Read from MH i2c: 01 [19:44:49]MH_I2C_Read... [19:44:49]Read from MH i2c: 01 07 00 [19:44:49]MH_I2C_Read... [19:44:49]Read from MH i2c: 01 07 00 3D 82 00 00 00 00 00 F5 0C C7 [19:44:49]RasterBufferAndPrint [19:44:49]line [19:44:49]line [19:44:49]line [19:44:49]line [19:44:49]line [19:44:49]written 0, free lines is 3327 [19:44:49]process_action close_receipt done [19:44:49]requested_data is exist [19:44:49]produce_requested_data [19:44:49]requested_item fm.sn is exist - process it [19:44:49]wFMCommunicate request_size=4 [19:44:49]MH_SAM_APDU [19:44:49]CAPDU: 80 11 00 00 [19:44:49]Write to MH i2c: E2 08 00 44 82 80 11 00 00 00 00 00 00 40 [19:44:49]Write i2c OK [19:44:49]MH_I2C_Read... [19:44:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:44:49]Read from MH i2c: E2 [19:44:49]MH_I2C_Read... [19:44:49]Read from MH i2c: E2 17 00 [19:44:49]MH_I2C_Read... [19:44:49]Read from MH i2c: E2 17 00 44 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 95 [19:44:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:44:49]wFMCommunicate OK [19:44:49]requested_item fd.num is exist - process it [19:44:49]SAM_PROTO_GetFieldsCounters [19:44:49]wFMCommunicate request_size=4 [19:44:49]MH_SAM_APDU [19:44:49]CAPDU: 80 13 00 00 [19:44:49]Write to MH i2c: E2 08 00 45 82 80 13 00 00 00 00 00 00 43 [19:44:49]Write i2c OK [19:44:49]MH_I2C_Read... [19:44:49]Read from MH i2c: E2 [19:44:49]MH_I2C_Read... [19:44:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:44:49]Read from MH i2c: E2 62 00 [19:44:49]MH_I2C_Read... [19:44:49]Read from MH i2c: E2 62 00 45 82 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 3E 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 1D 01 00 00 5E 04 04 00 1D 01 00 00 57 04 04 00 1E 01 00 00 19 04 04 00 00 00 00 00 90 00 82 [19:44:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 3E 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 1D 01 00 00 5E 04 04 00 1D 01 00 00 57 04 04 00 1E 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:44:49]wFMCommunicate OK [19:44:49]SAM_PROTO_GetFieldsCounters done [19:44:49]requested_item shift.num is exist - process it [19:44:49]requested_item shift.opened is exist - process it [19:44:49]req_shift_opened [19:44:49]FM_GetShiftState [19:44:49]SAM_PROTO_GetShiftState [19:44:49]wFMCommunicate request_size=4 [19:44:49]MH_SAM_APDU [19:44:49]CAPDU: 80 13 01 00 [19:44:49]Write to MH i2c: E2 08 00 46 82 80 13 01 00 00 00 00 00 45 [19:44:49]Write i2c OK [19:44:49]MH_I2C_Read... [19:44:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:44:49]Read from MH i2c: E2 [19:44:49]MH_I2C_Read... [19:44:49]Read from MH i2c: E2 0E 00 [19:44:49]MH_I2C_Read... [19:44:49]Read from MH i2c: E2 0E 00 46 82 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 12 [19:44:49]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [19:44:49]wFMCommunicate OK [19:44:49]SAM_PROTO_GetShiftState done [19:44:49]FM_GetShiftState done [19:44:49]req_shift_opened done [19:44:49]requested_item shift.open_date is exist - process it [19:44:49]req_shift_open_date [19:44:49]req_shift_open_date done [19:44:49]produce_requested_data done [19:44:49]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156734,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [19:44:49]process_action_free close_receipt [19:44:49]json_value_free [19:44:49]json_value_free done [19:44:49]process_json_proto returns [19:44:49]Send response to host [19:44:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156734,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [19:44:49]free response buf [19:44:49]execute_script done [19:44:49]execute_script returns [19:44:49]free content buf [19:44:49]Sock 9.Close socket [19:44:49]Sock 9.Thread stoped [19:44:50]OFD Sender: No OFD packet to send [19:44:55]OFD Sender: No OFD packet to send [19:45:00]OFD Sender: No OFD packet to send [19:45:05]OFD Sender: No OFD packet to send [19:45:10]OFD Sender: No OFD packet to send [19:45:15]OFD Sender: No OFD packet to send [19:45:20]OFD Sender: No OFD packet to send [19:45:25]OFD Sender: No OFD packet to send [19:45:30]OFD Sender: No OFD packet to send [19:45:35]OFD Sender: No OFD packet to send [19:45:40]OFD Sender: No OFD packet to send [19:45:45]OFD Sender: No OFD packet to send [19:45:50]OFD Sender: No OFD packet to send [19:45:55]OFD Sender: No OFD packet to send [19:46:00]OFD Sender: No OFD packet to send [19:46:05]OFD Sender: No OFD packet to send [19:46:06]accept exits with 10 [19:46:06]New connection [19:46:06]New thread 3066977636 created [19:46:06]Thread 3066834276 joined [19:46:06]Waiting for new connection... [19:46:06] Sock 10.Parse request [19:46:06]Sock 10.Check first char [19:46:06]Sock 10.First char is OK [19:46:06]request: POST /json_proto HTTP/1.0 [19:46:06]Method: POST [19:46:06]URL: /json_proto [19:46:06]Method is POST - this is cgi request [19:46:06]url: /json_proto [19:46:06]query_string will be loaded in cgi processing [19:46:06]execute_cgi json_proto POST (null) [19:46:06]execute_cgi path=json_proto method=POST [19:46:06]POST find Content-Length [19:46:06]Host: 172.17.63.3:8080 [19:46:06]Content-Length: 762 [19:46:06]Content-Type: application/json [19:46:06] [19:46:06]POST finish read [19:46:06]Found Content-Length = 762 [19:46:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99549", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:46:06]execute_script... [19:46: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)99549", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 6.570, "sum" : 500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:46:06]POST & json_proto [19:46:06]process_json_proto [19:46:06]json parsed OK: [19:46:06]protocol is kg_v1.0 [19:46:06]action value=close_receipt [19:46:06]process_action close_receipt [19:46:06]cmd_close_receipt [19:46:06]MH_GetDate [19:46:06]Write to MH i2c: F0 00 00 47 82 B8 [19:46:06]Write i2c OK [19:46:06]MH_I2C_Read... [19:46:06]Read from MH i2c: F0 [19:46:06]MH_I2C_Read... [19:46:06]Read from MH i2c: F0 09 00 [19:46:06]MH_I2C_Read... [19:46:06]Read from MH i2c: F0 09 00 47 82 00 86 98 1E 67 50 D1 6C 64 55 [19:46:06]GetLastDocTimeStamp 1730058294 [19:46:06]current date 1730058374 [19:46:06]FM_GetShiftState [19:46:06]SAM_PROTO_GetShiftState [19:46:06]wFMCommunicate request_size=4 [19:46:06]MH_SAM_APDU [19:46:06]CAPDU: 80 13 01 00 [19:46:06]Write to MH i2c: E2 08 00 48 82 80 13 01 00 00 00 00 00 47 [19:46:06]Write i2c OK [19:46:06]MH_I2C_Read... [19:46:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:46:06]Read from MH i2c: E2 [19:46:06]MH_I2C_Read... [19:46:06]Read from MH i2c: E2 0E 00 [19:46:06]MH_I2C_Read... [19:46:06]Read from MH i2c: E2 0E 00 48 82 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 14 [19:46:06]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [19:46:06]wFMCommunicate OK [19:46:06]SAM_PROTO_GetShiftState done [19:46:06]FM_GetShiftState done [19:46:06]opened in 1729989044 [19:46:06]opened+sec_in_day 1730075444 [19:46:06]quantity*price = 50063 [19:46:06]sum+1 = 50064 [19:46:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.63 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 0.00 Безнал.: 500.63 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 286 27.10.2024 19:46 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 156735 ФПД: 217498947793660 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T194614&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156735&fm=217498947793660&tin=02508201610067®Number=0000000000091693&sum=50063 [19:46:07]StoreToDocumentArchive [19:46:07]shift 537 fd 156735 [19:46:07]save to /storage/0537/doc_00156735 [19:46:07]save last doc name /storage/0537/doc_00156735 to /storage/kkm_last_doc_name [19:46:07]save OK [19:46:07]Clear old archive folders... [19:46:07]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:46:07]tlvbuf is 018F0730 [19:46:07]SAM_PROTO_ClearQueue [19:46:07]wFMCommunicate request_size=4 [19:46:07]MH_SAM_APDU [19:46:07]CAPDU: 80 09 00 00 [19:46:07]Write to MH i2c: E2 08 00 55 82 80 09 00 00 00 00 00 00 49 [19:46:07]Write i2c OK [19:46:07]MH_I2C_Read... [19:46:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:46:07]Read from MH i2c: E2 [19:46:07]MH_I2C_Read... [19:46:07]Read from MH i2c: E2 03 00 [19:46:07]MH_I2C_Read... [19:46:07]Read from MH i2c: E2 03 00 55 82 00 90 00 4B [19:46:07]RAPDU: 90 00 [19:46:07]wFMCommunicate OK [19:46:07]SAM_PROTO_ClearQueue done [19:46:07]KKMCreateOFDPacket [19:46:07]OFDProtocolAddRootSTLVToBuf [19:46:07]FM_MakeSignedData [19:46:07]FM_MakeSignedData [19:46:07]SAM_PROTO_SignData [19:46:07]wFMCommunicate request_size=4 [19:46:07]MH_SAM_APDU [19:46:07]CAPDU: 80 0D 01 02 [19:46:07]Write to MH i2c: E2 08 00 56 82 80 0D 01 02 00 00 00 00 51 [19:46:07]Write i2c OK [19:46:07]MH_I2C_Read... [19:46:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:46:07]Read from MH i2c: E2 [19:46:07]MH_I2C_Read... [19:46:07]Read from MH i2c: E2 03 00 [19:46:07]MH_I2C_Read... [19:46:07]Read from MH i2c: E2 03 00 56 82 00 90 00 4C [19:46:07]RAPDU: 90 00 [19:46:07]wFMCommunicate OK [19:46:07]wFMCommunicate request_size=255 [19:46:07]MH_SAM_APDU [19:46:07]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 86 98 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3F 64 02 00 35 04 06 00 C5 D0 6B 85 [19:46:07]Write to MH i2c: E2 02 01 57 82 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 86 98 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3F 64 02 00 35 04 06 00 C5 D0 6B 85 00 00 E8 [19:46:08]Write i2c OK [19:46:08]MH_I2C_Read... [19:46:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:46:08]Read from MH i2c: E2 [19:46:08]MH_I2C_Read... [19:46:08]Read from MH i2c: E2 03 00 [19:46:08]MH_I2C_Read... [19:46:08]Read from MH i2c: E2 03 00 57 82 00 90 00 4D [19:46:08]RAPDU: 90 00 [19:46:08]wFMCommunicate OK [19:46:08]wFMCommunicate request_size=7 [19:46:08]MH_SAM_APDU [19:46:08]CAPDU: 80 0D 02 02 02 B2 FC [19:46:08]Write to MH i2c: E2 0A 00 58 82 80 0D 02 02 02 00 B2 FC 00 00 06 [19:46:08]Write i2c OK [19:46:08]MH_I2C_Read... [19:46:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:46:08]Read from MH i2c: E2 [19:46:08]MH_I2C_Read... [19:46:08]Read from MH i2c: E2 03 00 [19:46:08]MH_I2C_Read... [19:46:08]Read from MH i2c: E2 03 00 58 82 00 90 00 4E [19:46:08]RAPDU: 90 00 [19:46:08]wFMCommunicate OK [19:46:08]wFMCommunicate request_size=4 [19:46:08]MH_SAM_APDU [19:46:08]CAPDU: 80 0D 03 02 [19:46:08]Write to MH i2c: E2 08 00 59 82 80 0D 03 02 00 00 00 00 56 [19:46:08]Write i2c OK [19:46:08]MH_I2C_Read... [19:46:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:46:08]Read from MH i2c: E2 [19:46:08]MH_I2C_Read... [19:46:08]Read from MH i2c: E2 0B 00 [19:46:08]MH_I2C_Read... [19:46:08]Read from MH i2c: E2 0B 00 59 82 00 58 AF BD 37 65 52 B1 36 90 00 F0 [19:46:08]RAPDU: 58 AF BD 37 65 52 B1 36 90 00 [19:46:08]wFMCommunicate OK [19:46:08]SAM_PROTO_SignData done [19:46:08]FM_MakeSignedData done [19:46:08]CreateOFDProtocolMessage [19:46:08]wFMCommunicate request_size=4 [19:46:08]MH_SAM_APDU [19:46:08]CAPDU: 80 11 00 00 [19:46:08]Write to MH i2c: E2 08 00 5A 82 80 11 00 00 00 00 00 00 56 [19:46:08]Write i2c OK [19:46:08]MH_I2C_Read... [19:46:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:46:08]Read from MH i2c: E2 [19:46:08]MH_I2C_Read... [19:46:08]Read from MH i2c: E2 17 00 [19:46:08]MH_I2C_Read... [19:46:08]Read from MH i2c: E2 17 00 5A 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 AB [19:46:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:46:08]wFMCommunicate OK [19:46:08]CreateOFDProtocolMessage done [19:46:08]OFDSenderStorePacket 156735 [19:46:08]StoreOFDPacket docnum=156735 [19:46:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 6F 29 04 01 0E C5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 86 98 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3F 64 02 00 35 04 06 00 C5 D0 6B 85 B2 FC 58 AF BD 37 65 52 B1 36 [19:46:08]CheckFolder [19:46:08]dirname=/storage/ofd_packets [19:46:08]CheckFolder done [19:46:08]ProducePacketName [19:46:08]name=ofd_packets/00156735 [19:46:08]NVStorageSaveData ofd_packets/00156735 [19:46:08]File name is /storage/ofd_packets/00156735 [19:46:08]Write 298 bytes [19:46:08]NVStorageSaveData done [19:46:08]OFDSenderStorePacket done [19:46:08]KKMCreateOFDPacket done [19:46:08]NVStorageSaveData kkm_last_timestamp [19:46:08]File name is /storage/kkm_last_timestamp [19:46:08]Write 4 bytes [19:46:08]NVStorageSaveData done [19:46:08]ExternCall_PrintAddStr [19:46:08]wPrintStart [19:46:08]Write to MH i2c: 01 00 00 5B 82 DD [19:46:08]Write i2c OK [19:46:08]MH_I2C_Read... [19:46:08]Read from MH i2c: 01 [19:46:08]MH_I2C_Read... [19:46:08]Read from MH i2c: 01 07 00 [19:46:08]MH_I2C_Read... [19:46:08]Read from MH i2c: 01 07 00 5B 82 00 00 00 00 00 FF 0F F2 [19:46:08]RasterBufferAndPrint [19:46:08]line Счет N : (1)99549 [19:46:08]line ИНН: 02508201610067 [19:46:08]line Контрольно-Кассовый Чек [19:46:08]line ПРОДАЖА [19:46:08]line ТРК (МРК, ГНК) : 32 [19:46:08]line Товар: 2710194210 [19:46:08]line ДТ-К-5 [19:46:08]line 6.570 * 76.20 [19:46:08]line = 500.63 [19:46:08]line НДС 12% НСП 1% [19:46:08]line > о реализуемом товаре [19:46:08]line ИТОГО: 500.63 [19:46:08]line НСП 1% : 4.43 [19:46:08]line НДС 12% : 53.16 [19:46:08]line Наличными: 0.00 [19:46:08]line Безнал.: 500.63 [19:46:08]line Место: АЗС № 143 "Партнер Нефть" [19:46:08]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [19:46:08]line СНО: Общий режим [19:46:08]line Чек 286 27.10.2024 19:46 [19:46:08]line Смена: 537 ФФД: 1.0 [19:46:08]line ЗНМ: 0300000096 [19:46:08]line РНМ: 0000000000091693 [19:46:08]line Версия ККМ: 001 [19:46:08]line Платежная система: Mbank [19:46:08]line ФМ: 0000000000871792 [19:46:08]line ФД: 156735 [19:46:08]line ФПД: 217498947793660 [19:46:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T194614&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156735&fm=217498947793660&tin=02508201610067®Number=0000000000091693&sum=50063 [19:46:08]OFD Sender: Processing packet 156735 [packets to send 31, broken 30] [19:46:08]ProducePacketName [19:46:08]name=ofd_packets/00156735 [19:46:08]OFD Sender: To server: pG, [19:46:08]CommunicateWithHost lk.salyk.kg:30040 [19:46:08]ConnectInit lk.salyk.kg [19:46:08]written 0, free lines is 4095 [19:46:08]Connected sock=8 [19:46:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 6F 29 04 01 0E C5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8F C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 86 98 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3F 64 02 00 35 04 06 00 C5 D0 6B 85 B2 FC 58 AF BD 37 65 52 B1 36 [19:46:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 56 FB 47 00 D5 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 3F 64 02 00 F4 03 04 00 F4 3D 1E 67 B6 04 01 00 00 A8 69 FB 2E A6 EA 6B 64 [19:46:09]CommunicateWithHost err = 0 [19:46:09]CheckOFDResponse [19:46:09]1017 (14) - 77093643461234 [19:46:09]1041 (16) - 0000000000871792 [19:46:09]1040 (4) - 156735 [19:46:09]1012 (4) - 27.10.2024 13:19 [19:46:09]1206 (1) - 0 [19:46:09]OFD Sender: Remove packet 156735 [19:46:09]ProducePacketName [19:46:09]name=ofd_packets/00156735 [19:46:09]NVStorageDeleteData [19:46:09]Write to MH i2c: 01 00 00 84 82 06 [19:46:09]Write i2c OK [19:46:09]MH_I2C_Read... [19:46:09]Read from MH i2c: 01 [19:46:09]MH_I2C_Read... [19:46:09]Read from MH i2c: 01 07 00 [19:46:09]MH_I2C_Read... [19:46:09]Read from MH i2c: 01 07 00 84 82 00 00 00 00 00 1F 0D 39 [19:46:09]RasterBufferAndPrint [19:46:09]line [19:46:09]line [19:46:09]line [19:46:09]line [19:46:09]line [19:46:09]written 0, free lines is 3368 [19:46:09]process_action close_receipt done [19:46:09]requested_data is exist [19:46:09]produce_requested_data [19:46:09]requested_item fm.sn is exist - process it [19:46:09]wFMCommunicate request_size=4 [19:46:09]MH_SAM_APDU [19:46:09]CAPDU: 80 11 00 00 [19:46:09]Write to MH i2c: E2 08 00 8B 82 80 11 00 00 00 00 00 00 87 [19:46:09]Write i2c OK [19:46:09]MH_I2C_Read... [19:46:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:46:09]Read from MH i2c: E2 [19:46:09]MH_I2C_Read... [19:46:09]Read from MH i2c: E2 17 00 [19:46:09]MH_I2C_Read... [19:46:09]Read from MH i2c: E2 17 00 8B 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 DC [19:46:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:46:09]wFMCommunicate OK [19:46:09]requested_item fd.num is exist - process it [19:46:09]SAM_PROTO_GetFieldsCounters [19:46:09]wFMCommunicate request_size=4 [19:46:09]MH_SAM_APDU [19:46:09]CAPDU: 80 13 00 00 [19:46:09]Write to MH i2c: E2 08 00 8C 82 80 13 00 00 00 00 00 00 8A [19:46:09]Write i2c OK [19:46:09]MH_I2C_Read... [19:46:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:46:09]Read from MH i2c: E2 [19:46:09]MH_I2C_Read... [19:46:09]Read from MH i2c: E2 62 00 [19:46:09]MH_I2C_Read... [19:46:09]Read from MH i2c: E2 62 00 8C 82 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 3F 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 1E 01 00 00 5E 04 04 00 1E 01 00 00 57 04 04 00 1F 01 00 00 19 04 04 00 00 00 00 00 90 00 CD [19:46:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 3F 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 1E 01 00 00 5E 04 04 00 1E 01 00 00 57 04 04 00 1F 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:46:09]wFMCommunicate OK [19:46:09]SAM_PROTO_GetFieldsCounters done [19:46:09]requested_item shift.num is exist - process it [19:46:09]requested_item shift.opened is exist - process it [19:46:09]req_shift_opened [19:46:09]FM_GetShiftState [19:46:09]SAM_PROTO_GetShiftState [19:46:09]wFMCommunicate request_size=4 [19:46:09]MH_SAM_APDU [19:46:09]CAPDU: 80 13 01 00 [19:46:09]Write to MH i2c: E2 08 00 8D 82 80 13 01 00 00 00 00 00 8C [19:46:09]Write i2c OK [19:46:09]MH_I2C_Read... [19:46:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:46:09]Read from MH i2c: E2 [19:46:09]MH_I2C_Read... [19:46:09]Read from MH i2c: E2 0E 00 [19:46:09]MH_I2C_Read... [19:46:09]Read from MH i2c: E2 0E 00 8D 82 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 59 [19:46:09]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [19:46:09]wFMCommunicate OK [19:46:09]SAM_PROTO_GetShiftState done [19:46:09]FM_GetShiftState done [19:46:09]req_shift_opened done [19:46:09]requested_item shift.open_date is exist - process it [19:46:09]req_shift_open_date [19:46:09]req_shift_open_date done [19:46:09]produce_requested_data done [19:46:09]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156735,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [19:46:09]process_action_free close_receipt [19:46:09]json_value_free [19:46:09]json_value_free done [19:46:09]process_json_proto returns [19:46:09]Send response to host [19:46:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156735,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [19:46:09]free response buf [19:46:09]execute_script done [19:46:09]execute_script returns [19:46:09]free content buf [19:46:09]Sock 10.Close socket [19:46:09]Sock 10.Thread stoped [19:46:09]OFD Sender: No OFD packet to send [19:46:14]OFD Sender: No OFD packet to send [19:46:19]OFD Sender: No OFD packet to send [19:46:24]OFD Sender: No OFD packet to send [19:46:29]OFD Sender: No OFD packet to send [19:46:34]OFD Sender: No OFD packet to send [19:46:39]OFD Sender: No OFD packet to send [19:46:44]OFD Sender: No OFD packet to send [19:46:49]OFD Sender: No OFD packet to send [19:46:54]OFD Sender: No OFD packet to send [19:46:59]OFD Sender: No OFD packet to send [19:47:04]OFD Sender: No OFD packet to send [19:47:09]OFD Sender: No OFD packet to send [19:47:14]OFD Sender: No OFD packet to send [19:47:19]accept exits with 9 [19:47:19]New connection [19:47:19]New thread 3066834276 created [19:47:19]Thread 3066977636 joined [19:47:19]Waiting for new connection... [19:47:19] Sock 9.Parse request [19:47:19]Sock 9.Check first char [19:47:19]Sock 9.First char is OK [19:47:19]request: POST /json_proto HTTP/1.0 [19:47:19]Method: POST [19:47:19]URL: /json_proto [19:47:19]Method is POST - this is cgi request [19:47:19]url: /json_proto [19:47:19]query_string will be loaded in cgi processing [19:47:19]execute_cgi json_proto POST (null) [19:47:19]execute_cgi path=json_proto method=POST [19:47:19]POST find Content-Length [19:47:19]Host: 172.17.63.3:8080 [19:47:19]Content-Length: 676 [19:47:19]Content-Type: application/json [19:47:19] [19:47:19]POST finish read [19:47:19]Found Content-Length = 676 [19:47:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99551", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "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" ] } } [19:47:19]execute_script... [19:47: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)99551", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "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" ] } } [19:47:19]POST & json_proto [19:47:19]process_json_proto [19:47:19]json parsed OK: [19:47:19]protocol is kg_v1.0 [19:47:19]action value=close_receipt [19:47:19]process_action close_receipt [19:47:19]cmd_close_receipt [19:47:19]MH_GetDate [19:47:19]Write to MH i2c: F0 00 00 8E 82 FF [19:47:19]Write i2c OK [19:47:19]MH_I2C_Read... [19:47:19]Read from MH i2c: F0 [19:47:19]MH_I2C_Read... [19:47:19]Read from MH i2c: F0 09 00 [19:47:19]MH_I2C_Read... [19:47:19]Read from MH i2c: F0 09 00 8E 82 00 CE 98 1E 67 50 D1 6C 64 E4 [19:47:19]GetLastDocTimeStamp 1730058374 [19:47:19]current date 1730058446 [19:47:19]FM_GetShiftState [19:47:19]SAM_PROTO_GetShiftState [19:47:19]wFMCommunicate request_size=4 [19:47:19]MH_SAM_APDU [19:47:19]CAPDU: 80 13 01 00 [19:47:19]Write to MH i2c: E2 08 00 8F 82 80 13 01 00 00 00 00 00 8E [19:47:19]Write i2c OK [19:47:19]MH_I2C_Read... [19:47:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:47:19]Read from MH i2c: E2 [19:47:19]MH_I2C_Read... [19:47:19]Read from MH i2c: E2 0E 00 [19:47:19]MH_I2C_Read... [19:47:19]Read from MH i2c: E2 0E 00 8F 82 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 5B [19:47:19]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [19:47:19]wFMCommunicate OK [19:47:19]SAM_PROTO_GetShiftState done [19:47:19]FM_GetShiftState done [19:47:19]opened in 1729989044 [19:47:19]opened+sec_in_day 1730075444 [19:47:19]quantity*price = 20003 [19:47:19]sum+1 = 20004 [19:47:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 287 27.10.2024 19:47 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156736 ФПД: 133414361935999 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T194726&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156736&fm=133414361935999&tin=02508201610067®Number=0000000000091693&sum=20000 [19:47:20]StoreToDocumentArchive [19:47:20]shift 537 fd 156736 [19:47:20]save to /storage/0537/doc_00156736 [19:47:20]save last doc name /storage/0537/doc_00156736 to /storage/kkm_last_doc_name [19:47:20]save OK [19:47:20]Clear old archive folders... [19:47:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:47:20]tlvbuf is 01888FF0 [19:47:20]SAM_PROTO_ClearQueue [19:47:20]wFMCommunicate request_size=4 [19:47:20]MH_SAM_APDU [19:47:20]CAPDU: 80 09 00 00 [19:47:20]Write to MH i2c: E2 08 00 9C 82 80 09 00 00 00 00 00 00 90 [19:47:20]Write i2c OK [19:47:20]MH_I2C_Read... [19:47:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:47:20]Read from MH i2c: E2 [19:47:20]MH_I2C_Read... [19:47:20]Read from MH i2c: E2 03 00 [19:47:20]MH_I2C_Read... [19:47:20]Read from MH i2c: E2 03 00 9C 82 00 90 00 92 [19:47:20]RAPDU: 90 00 [19:47:20]wFMCommunicate OK [19:47:20]SAM_PROTO_ClearQueue done [19:47:20]KKMCreateOFDPacket [19:47:20]OFDProtocolAddRootSTLVToBuf [19:47:20]FM_MakeSignedData [19:47:20]FM_MakeSignedData [19:47:20]SAM_PROTO_SignData [19:47:20]wFMCommunicate request_size=4 [19:47:20]MH_SAM_APDU [19:47:20]CAPDU: 80 0D 01 02 [19:47:20]Write to MH i2c: E2 08 00 9D 82 80 0D 01 02 00 00 00 00 98 [19:47:20]Write i2c OK [19:47:20]MH_I2C_Read... [19:47:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:47:20]Read from MH i2c: E2 [19:47:20]MH_I2C_Read... [19:47:20]Read from MH i2c: E2 03 00 [19:47:20]MH_I2C_Read... [19:47:20]Read from MH i2c: E2 03 00 9D 82 00 90 00 93 [19:47:20]RAPDU: 90 00 [19:47:20]wFMCommunicate OK [19:47:20]wFMCommunicate request_size=255 [19:47:20]MH_SAM_APDU [19:47: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 1F 01 00 00 F4 03 04 00 CE 98 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 40 64 02 00 35 04 06 00 79 [19:47:20]Write to MH i2c: E2 02 01 9E 82 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 1F 01 00 00 F4 03 04 00 CE 98 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 40 64 02 00 35 04 06 00 79 00 00 33 [19:47:20]Write i2c OK [19:47:20]MH_I2C_Read... [19:47:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:47:20]Read from MH i2c: E2 [19:47:20]MH_I2C_Read... [19:47:20]Read from MH i2c: E2 03 00 [19:47:20]MH_I2C_Read... [19:47:20]Read from MH i2c: E2 03 00 9E 82 00 90 00 94 [19:47:20]RAPDU: 90 00 [19:47:20]wFMCommunicate OK [19:47:20]wFMCommunicate request_size=10 [19:47:20]MH_SAM_APDU [19:47:20]CAPDU: 80 0D 02 02 05 56 F3 A6 B0 7F [19:47:20]Write to MH i2c: E2 0D 00 9F 82 80 0D 02 02 05 00 56 F3 A6 B0 7F 00 00 C3 [19:47:20]Write i2c OK [19:47:20]MH_I2C_Read... [19:47:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:47:20]Read from MH i2c: E2 [19:47:20]MH_I2C_Read... [19:47:20]Read from MH i2c: E2 03 00 [19:47:20]MH_I2C_Read... [19:47:20]Read from MH i2c: E2 03 00 9F 82 00 90 00 95 [19:47:20]RAPDU: 90 00 [19:47:20]wFMCommunicate OK [19:47:20]wFMCommunicate request_size=4 [19:47:20]MH_SAM_APDU [19:47:20]CAPDU: 80 0D 03 02 [19:47:20]Write to MH i2c: E2 08 00 A0 82 80 0D 03 02 00 00 00 00 9D [19:47:20]Write i2c OK [19:47:20]MH_I2C_Read... [19:47:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:47:21]Read from MH i2c: E2 [19:47:21]MH_I2C_Read... [19:47:21]Read from MH i2c: E2 0B 00 [19:47:21]MH_I2C_Read... [19:47:21]Read from MH i2c: E2 0B 00 A0 82 00 91 22 57 FC 1D 44 DB 42 90 00 22 [19:47:21]RAPDU: 91 22 57 FC 1D 44 DB 42 90 00 [19:47:21]wFMCommunicate OK [19:47:21]SAM_PROTO_SignData done [19:47:21]FM_MakeSignedData done [19:47:21]CreateOFDProtocolMessage [19:47:21]wFMCommunicate request_size=4 [19:47:21]MH_SAM_APDU [19:47:21]CAPDU: 80 11 00 00 [19:47:21]Write to MH i2c: E2 08 00 A1 82 80 11 00 00 00 00 00 00 9D [19:47:21]Write i2c OK [19:47:21]MH_I2C_Read... [19:47:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:47:21]Read from MH i2c: E2 [19:47:21]MH_I2C_Read... [19:47:21]Read from MH i2c: E2 17 00 [19:47:21]MH_I2C_Read... [19:47:21]Read from MH i2c: E2 17 00 A1 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 F2 [19:47:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:47:21]wFMCommunicate OK [19:47:21]CreateOFDProtocolMessage done [19:47:21]OFDSenderStorePacket 156736 [19:47:21]StoreOFDPacket docnum=156736 [19:47:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 47 3D 07 01 EC B4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 1F 01 00 00 F4 03 04 00 CE 98 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 40 64 02 00 35 04 06 00 79 56 F3 A6 B0 7F 91 22 57 FC 1D 44 DB 42 [19:47:21]CheckFolder [19:47:21]dirname=/storage/ofd_packets [19:47:21]CheckFolder done [19:47:21]ProducePacketName [19:47:21]name=ofd_packets/00156736 [19:47:21]NVStorageSaveData ofd_packets/00156736 [19:47:21]File name is /storage/ofd_packets/00156736 [19:47:21]Write 301 bytes [19:47:21]NVStorageSaveData done [19:47:21]OFDSenderStorePacket done [19:47:21]KKMCreateOFDPacket done [19:47:21]NVStorageSaveData kkm_last_timestamp [19:47:21]File name is /storage/kkm_last_timestamp [19:47:21]Write 4 bytes [19:47:21]NVStorageSaveData done [19:47:21]ExternCall_PrintAddStr [19:47:21]wPrintStart [19:47:21]Write to MH i2c: 01 00 00 A2 82 24 [19:47:21]Write i2c OK [19:47:21]MH_I2C_Read... [19:47:21]Read from MH i2c: 01 [19:47:21]MH_I2C_Read... [19:47:21]Read from MH i2c: 01 07 00 [19:47:21]MH_I2C_Read... [19:47:21]Read from MH i2c: 01 07 00 A2 82 00 00 00 00 00 FF 0F 39 [19:47:21]RasterBufferAndPrint [19:47:21]line Счет N : (1)99551 [19:47:21]line ИНН: 02508201610067 [19:47:21]line Контрольно-Кассовый Чек [19:47:21]line ПРОДАЖА [19:47:21]line ТРК (МРК, ГНК) : 11 [19:47:21]line Товар: 2710124130 [19:47:21]line Аи-92-К-5 [19:47:21]line 2.990 * 66.90 [19:47:21]line = 200.03 [19:47:21]line НДС 12% НСП 1% [19:47:21]line > о реализуемом товаре [19:47:21]line ОКРУГЛЕНИЕ: -0.03 [19:47:21]line ИТОГО: 200.00 [19:47:21]line Внесено: 200.00 [19:47:21]line СДАЧА: 0.00 [19:47:21]line НСП 1% : 1.77 [19:47:21]line НДС 12% : 21.24 [19:47:21]line Наличными: 200.00 [19:47:21]line Безнал.: 0.00 [19:47:21]line Место: АЗС № 143 "Партнер Нефть" [19:47:21]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [19:47:21]line СНО: Общий режим [19:47:21]line Чек 287 27.10.2024 19:47 [19:47:21]line Смена: 537 ФФД: 1.0 [19:47:21]line ЗНМ: 0300000096 [19:47:21]line РНМ: 0000000000091693 [19:47:21]line Версия ККМ: 001 [19:47:21]line ФМ: 0000000000871792 [19:47:21]line ФД: 156736 [19:47:21]line ФПД: 133414361935999 [19:47:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T194726&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156736&fm=133414361935999&tin=02508201610067®Number=0000000000091693&sum=20000 [19:47:21]OFD Sender: Processing packet 156736 [packets to send 31, broken 30] [19:47:21]ProducePacketName [19:47:21]name=ofd_packets/00156736 [19:47:21]OFD Sender: To server: pG, [19:47:21]CommunicateWithHost lk.salyk.kg:30040 [19:47:21]ConnectInit lk.salyk.kg [19:47:21]written 0, free lines is 4095 [19:47:21]Connected sock=10 [19:47:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 47 3D 07 01 EC B4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 1F 01 00 00 F4 03 04 00 CE 98 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 40 64 02 00 35 04 06 00 79 56 F3 A6 B0 7F 91 22 57 FC 1D 44 DB 42 [19:47:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 3E C3 47 00 2B 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 31 37 39 32 10 04 04 00 40 64 02 00 F4 03 04 00 3D 3E 1E 67 B6 04 01 00 00 3D 98 EE E1 AD D3 B1 2F [19:47:21]CommunicateWithHost err = 0 [19:47:21]CheckOFDResponse [19:47:21]1017 (14) - 77093643461234 [19:47:21]1041 (16) - 0000000000871792 [19:47:21]1040 (4) - 156736 [19:47:21]1012 (4) - 27.10.2024 13:21 [19:47:21]1206 (1) - 0 [19:47:21]OFD Sender: Remove packet 156736 [19:47:21]ProducePacketName [19:47:21]name=ofd_packets/00156736 [19:47:21]NVStorageDeleteData [19:47:21]Write to MH i2c: 01 00 00 CD 82 4F [19:47:21]Write i2c OK [19:47:21]MH_I2C_Read... [19:47:21]Read from MH i2c: 01 [19:47:21]MH_I2C_Read... [19:47:21]Read from MH i2c: 01 07 00 [19:47:21]MH_I2C_Read... [19:47:21]Read from MH i2c: 01 07 00 CD 82 00 00 00 00 00 DC 0C 3E [19:47:21]RasterBufferAndPrint [19:47:21]line [19:47:21]line [19:47:21]line [19:47:21]line [19:47:21]line [19:47:21]written 0, free lines is 3298 [19:47:21]process_action close_receipt done [19:47:21]requested_data is exist [19:47:21]produce_requested_data [19:47:21]requested_item fm.sn is exist - process it [19:47:21]wFMCommunicate request_size=4 [19:47:21]MH_SAM_APDU [19:47:21]CAPDU: 80 11 00 00 [19:47:21]Write to MH i2c: E2 08 00 D4 82 80 11 00 00 00 00 00 00 D0 [19:47:21]Write i2c OK [19:47:21]MH_I2C_Read... [19:47:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:47:21]Read from MH i2c: E2 [19:47:21]MH_I2C_Read... [19:47:21]Read from MH i2c: E2 17 00 [19:47:21]MH_I2C_Read... [19:47:21]Read from MH i2c: E2 17 00 D4 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 25 [19:47:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:47:21]wFMCommunicate OK [19:47:21]requested_item fd.num is exist - process it [19:47:21]SAM_PROTO_GetFieldsCounters [19:47:21]wFMCommunicate request_size=4 [19:47:21]MH_SAM_APDU [19:47:21]CAPDU: 80 13 00 00 [19:47:21]Write to MH i2c: E2 08 00 D5 82 80 13 00 00 00 00 00 00 D3 [19:47:21]Write i2c OK [19:47:21]MH_I2C_Read... [19:47:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:47:22]Read from MH i2c: E2 [19:47:22]MH_I2C_Read... [19:47:22]Read from MH i2c: E2 62 00 [19:47:22]MH_I2C_Read... [19:47:22]Read from MH i2c: E2 62 00 D5 82 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 40 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 1F 01 00 00 5E 04 04 00 1F 01 00 00 57 04 04 00 20 01 00 00 19 04 04 00 00 00 00 00 90 00 1A [19: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 40 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 1F 01 00 00 5E 04 04 00 1F 01 00 00 57 04 04 00 20 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:47:22]wFMCommunicate OK [19:47:22]SAM_PROTO_GetFieldsCounters done [19:47:22]requested_item shift.num is exist - process it [19:47:22]requested_item shift.opened is exist - process it [19:47:22]req_shift_opened [19:47:22]FM_GetShiftState [19:47:22]SAM_PROTO_GetShiftState [19:47:22]wFMCommunicate request_size=4 [19:47:22]MH_SAM_APDU [19:47:22]CAPDU: 80 13 01 00 [19:47:22]Write to MH i2c: E2 08 00 D6 82 80 13 01 00 00 00 00 00 D5 [19:47:22]Write i2c OK [19:47:22]MH_I2C_Read... [19:47:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:47:22]Read from MH i2c: E2 [19:47:22]MH_I2C_Read... [19:47:22]Read from MH i2c: E2 0E 00 [19:47:22]MH_I2C_Read... [19:47:22]Read from MH i2c: E2 0E 00 D6 82 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 A2 [19:47:22]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [19:47:22]wFMCommunicate OK [19:47:22]SAM_PROTO_GetShiftState done [19:47:22]FM_GetShiftState done [19:47:22]req_shift_opened done [19:47:22]requested_item shift.open_date is exist - process it [19:47:22]req_shift_open_date [19:47:22]req_shift_open_date done [19:47:22]produce_requested_data done [19:47:22]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156736,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [19:47:22]process_action_free close_receipt [19:47:22]json_value_free [19:47:22]json_value_free done [19:47:22]process_json_proto returns [19:47:22]Send response to host [19:47:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156736,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [19:47:22]free response buf [19:47:22]execute_script done [19:47:22]execute_script returns [19:47:22]free content buf [19:47:22]Sock 9.Close socket [19:47:22]Sock 9.Thread stoped [19:47:22]OFD Sender: No OFD packet to send [19:47:27]OFD Sender: No OFD packet to send [19:47:32]OFD Sender: No OFD packet to send [19:47:37]OFD Sender: No OFD packet to send [19:47:42]OFD Sender: No OFD packet to send [19:47:47]OFD Sender: No OFD packet to send [19:47:52]OFD Sender: No OFD packet to send [19:47:55]accept exits with 8 [19:47:55]New connection [19:47:55]New thread 3066977636 created [19:47:55]Thread 3066834276 joined [19:47:55]Waiting for new connection... [19:47:55] Sock 8.Parse request [19:47:55]Sock 8.Check first char [19:47:55]Sock 8.First char is OK [19:47:55]request: POST /json_proto HTTP/1.0 [19:47:55]Method: POST [19:47:55]URL: /json_proto [19:47:55]Method is POST - this is cgi request [19:47:55]url: /json_proto [19:47:55]query_string will be loaded in cgi processing [19:47:55]execute_cgi json_proto POST (null) [19:47:55]execute_cgi path=json_proto method=POST [19:47:55]POST find Content-Length [19:47:55]Host: 172.17.63.3:8080 [19:47:55]Content-Length: 681 [19:47:55]Content-Type: application/json [19:47:55] [19:47:55]POST finish read [19:47:55]Found Content-Length = 681 [19:47:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99550", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "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" ] } } [19:47:55]execute_script... [19: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)99550", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "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" ] } } [19:47:55]POST & json_proto [19:47:55]process_json_proto [19:47:55]json parsed OK: [19:47:55]protocol is kg_v1.0 [19:47:55]action value=close_receipt [19:47:55]process_action close_receipt [19:47:55]cmd_close_receipt [19:47:55]MH_GetDate [19:47:55]Write to MH i2c: F0 00 00 D7 82 48 [19:47:55]Write i2c OK [19:47:55]MH_I2C_Read... [19:47:55]Read from MH i2c: F0 [19:47:55]MH_I2C_Read... [19:47:55]Read from MH i2c: F0 09 00 [19:47:55]MH_I2C_Read... [19:47:55]Read from MH i2c: F0 09 00 D7 82 00 F3 98 1E 67 50 D1 6C 64 52 [19:47:55]GetLastDocTimeStamp 1730058446 [19:47:55]current date 1730058483 [19:47:55]FM_GetShiftState [19:47:55]SAM_PROTO_GetShiftState [19:47:55]wFMCommunicate request_size=4 [19:47:55]MH_SAM_APDU [19:47:55]CAPDU: 80 13 01 00 [19:47:55]Write to MH i2c: E2 08 00 D8 82 80 13 01 00 00 00 00 00 D7 [19:47:55]Write i2c OK [19:47:55]MH_I2C_Read... [19:47:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:47:55]Read from MH i2c: E2 [19:47:55]MH_I2C_Read... [19:47:55]Read from MH i2c: E2 0E 00 [19:47:55]MH_I2C_Read... [19:47:55]Read from MH i2c: E2 0E 00 D8 82 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 A4 [19:47:55]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [19:47:55]wFMCommunicate OK [19:47:55]SAM_PROTO_GetShiftState done [19:47:55]FM_GetShiftState done [19:47:55]opened in 1729989044 [19:47:55]opened+sec_in_day 1730075444 [19:47:55]quantity*price = 200031 [19:47:55]sum+1 = 200032 [19:47:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 288 27.10.2024 19:48 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156737 ФПД: 4372553850838 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T194803&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156737&fm=4372553850838&tin=02508201610067®Number=0000000000091693&sum=200000 [19:47:57]StoreToDocumentArchive [19:47:57]shift 537 fd 156737 [19:47:57]save to /storage/0537/doc_00156737 [19:47:57]save last doc name /storage/0537/doc_00156737 to /storage/kkm_last_doc_name [19:47:57]save OK [19:47:57]Clear old archive folders... [19:47:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:47:57]tlvbuf is 01763750 [19:47:57]SAM_PROTO_ClearQueue [19:47:57]wFMCommunicate request_size=4 [19:47:57]MH_SAM_APDU [19:47:57]CAPDU: 80 09 00 00 [19:47:57]Write to MH i2c: E2 08 00 E5 82 80 09 00 00 00 00 00 00 D9 [19:47:57]Write i2c OK [19:47:57]MH_I2C_Read... [19:47:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:47:57]Read from MH i2c: E2 [19:47:57]MH_I2C_Read... [19:47:57]Read from MH i2c: E2 03 00 [19:47:57]MH_I2C_Read... [19:47:57]Read from MH i2c: E2 03 00 E5 82 00 90 00 DB [19:47:57]RAPDU: 90 00 [19:47:57]wFMCommunicate OK [19:47:57]SAM_PROTO_ClearQueue done [19:47:57]KKMCreateOFDPacket [19:47:57]OFDProtocolAddRootSTLVToBuf [19:47:57]FM_MakeSignedData [19:47:57]FM_MakeSignedData [19:47:57]SAM_PROTO_SignData [19:47:57]wFMCommunicate request_size=4 [19:47:57]MH_SAM_APDU [19:47:57]CAPDU: 80 0D 01 02 [19:47:57]Write to MH i2c: E2 08 00 E6 82 80 0D 01 02 00 00 00 00 E1 [19:47:57]Write i2c OK [19:47:57]MH_I2C_Read... [19:47:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:47:57]Read from MH i2c: E2 [19:47:57]MH_I2C_Read... [19:47:57]Read from MH i2c: E2 03 00 [19:47:57]MH_I2C_Read... [19:47:57]Read from MH i2c: E2 03 00 E6 82 00 90 00 DC [19:47:57]RAPDU: 90 00 [19:47:57]wFMCommunicate OK [19:47:57]wFMCommunicate request_size=255 [19:47:57]MH_SAM_APDU [19:47: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 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 F3 98 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 41 64 02 00 35 04 06 00 03 [19:47:57]Write to MH i2c: E2 02 01 E7 82 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 F3 98 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 41 64 02 00 35 04 06 00 03 00 00 AD [19:47:57]Write i2c OK [19:47:57]MH_I2C_Read... [19:47:57]OFD Sender: No OFD packet to send [19:47:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:47:57]Read from MH i2c: E2 [19:47:57]MH_I2C_Read... [19:47:57]Read from MH i2c: E2 03 00 [19:47:57]MH_I2C_Read... [19:47:57]Read from MH i2c: E2 03 00 E7 82 00 90 00 DD [19:47:57]RAPDU: 90 00 [19:47:57]wFMCommunicate OK [19:47:57]wFMCommunicate request_size=10 [19:47:57]MH_SAM_APDU [19:47:57]CAPDU: 80 0D 02 02 05 FA 10 84 DF D6 [19:47:57]Write to MH i2c: E2 0D 00 E8 82 80 0D 02 02 05 00 FA 10 84 DF D6 00 00 31 [19:47:57]Write i2c OK [19:47:57]MH_I2C_Read... [19:47:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:47:57]Read from MH i2c: E2 [19:47:57]MH_I2C_Read... [19:47:57]Read from MH i2c: E2 03 00 [19:47:57]MH_I2C_Read... [19:47:57]Read from MH i2c: E2 03 00 E8 82 00 90 00 DE [19:47:57]RAPDU: 90 00 [19:47:57]wFMCommunicate OK [19:47:57]wFMCommunicate request_size=4 [19:47:57]MH_SAM_APDU [19:47:57]CAPDU: 80 0D 03 02 [19:47:57]Write to MH i2c: E2 08 00 E9 82 80 0D 03 02 00 00 00 00 E6 [19:47:57]Write i2c OK [19:47:57]MH_I2C_Read... [19:47:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:47:57]Read from MH i2c: E2 [19:47:57]MH_I2C_Read... [19:47:57]Read from MH i2c: E2 0B 00 [19:47:57]MH_I2C_Read... [19:47:57]Read from MH i2c: E2 0B 00 E9 82 00 02 0F E2 DC C7 8A DD 5B 90 00 3F [19:47:57]RAPDU: 02 0F E2 DC C7 8A DD 5B 90 00 [19:47:57]wFMCommunicate OK [19:47:57]SAM_PROTO_SignData done [19:47:57]FM_MakeSignedData done [19:47:57]CreateOFDProtocolMessage [19:47:57]wFMCommunicate request_size=4 [19:47:57]MH_SAM_APDU [19:47:57]CAPDU: 80 11 00 00 [19:47:57]Write to MH i2c: E2 08 00 EA 82 80 11 00 00 00 00 00 00 E6 [19:47:57]Write i2c OK [19:47:57]MH_I2C_Read... [19:47:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:47:57]Read from MH i2c: E2 [19:47:57]MH_I2C_Read... [19:47:57]Read from MH i2c: E2 17 00 [19:47:57]MH_I2C_Read... [19:47:57]Read from MH i2c: E2 17 00 EA 82 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 3B [19:47:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:47:57]wFMCommunicate OK [19:47:57]CreateOFDProtocolMessage done [19:47:57]OFDSenderStorePacket 156737 [19:47:57]StoreOFDPacket docnum=156737 [19:47:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 F7 24 07 01 0A 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 F3 98 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 41 64 02 00 35 04 06 00 03 FA 10 84 DF D6 02 0F E2 DC C7 8A DD 5B [19:47:57]CheckFolder [19:47:57]dirname=/storage/ofd_packets [19:47:57]CheckFolder done [19:47:57]ProducePacketName [19:47:57]name=ofd_packets/00156737 [19:47:57]NVStorageSaveData ofd_packets/00156737 [19:47:57]File name is /storage/ofd_packets/00156737 [19:47:57]Write 301 bytes [19:47:57]NVStorageSaveData done [19:47:57]OFDSenderStorePacket done [19:47:57]KKMCreateOFDPacket done [19:47:57]NVStorageSaveData kkm_last_timestamp [19:47:57]File name is /storage/kkm_last_timestamp [19:47:57]Write 4 bytes [19:47:57]NVStorageSaveData done [19:47:57]ExternCall_PrintAddStr [19:47:57]wPrintStart [19:47:57]Write to MH i2c: 01 00 00 EB 82 6D [19:47:57]OFD Sender: Processing packet 156737 [packets to send 31, broken 30] [19:47:57]ProducePacketName [19:47:57]name=ofd_packets/00156737 [19:47:57]OFD Sender: To server: pG, [19:47:57]CommunicateWithHost lk.salyk.kg:30040 [19:47:57]ConnectInit lk.salyk.kg [19:47:57]Write i2c OK [19:47:57]MH_I2C_Read... [19:47:57]Read from MH i2c: 01 [19:47:57]MH_I2C_Read... [19:47:57]Read from MH i2c: 01 07 00 [19:47:57]MH_I2C_Read... [19:47:57]Read from MH i2c: 01 07 00 EB 82 00 00 00 00 00 FF 0F 82 [19:47:57]RasterBufferAndPrint [19:47:57]line Счет N : (1)99550 [19:47:57]line ИНН: 02508201610067 [19:47:57]line Контрольно-Кассовый Чек [19:47:57]line ПРОДАЖА [19:47:57]line ТРК (МРК, ГНК) : 31 [19:47:57]line Товар: 2710124130 [19:47:57]line Аи-92-К-5 [19:47:57]line 29.900 * 66.90 [19:47:57]line = 2000.31 [19:47:57]line НДС 12% НСП 1% [19:47:57]line > о реализуемом товаре [19:47:57]line ОКРУГЛЕНИЕ: -0.31 [19:47:57]line ИТОГО: 2000.00 [19:47:57]line Внесено: 2000.00 [19:47:57]line СДАЧА: 0.00 [19:47:57]line НСП 1% : 17.70 [19:47:57]line НДС 12% : 212.42 [19:47:57]line Наличными: 2000.00 [19:47:57]line Безнал.: 0.00 [19:47:57]line Место: АЗС № 143 "Партнер Нефть" [19:47:57]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [19:47:57]line СНО: Общий режим [19:47:57]line Чек 288 27.10.2024 19:48 [19:47:57]line Смена: 537 ФФД: 1.0 [19:47:57]line ЗНМ: 0300000096 [19:47:57]line РНМ: 0000000000091693 [19:47:57]line Версия ККМ: 001 [19:47:57]line ФМ: 0000000000871792 [19:47:57]line ФД: 156737 [19:47:57]line ФПД: 4372553850838 [19:47:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T194803&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156737&fm=4372553850838&tin=02508201610067®Number=0000000000091693&sum=200000 [19:47:57]written 0, free lines is 4095 [19:47:57]Connected sock=10 [19: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 31 37 39 32 0F 01 00 00 F7 24 07 01 0A 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 F3 98 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 41 64 02 00 35 04 06 00 03 FA 10 84 DF D6 02 0F E2 DC C7 8A DD 5B [19:47:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 73 E2 47 00 90 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 31 37 39 32 10 04 04 00 41 64 02 00 F4 03 04 00 61 3E 1E 67 B6 04 01 00 00 53 27 96 83 4A 15 A1 6F [19:47:58]CommunicateWithHost err = 0 [19:47:58]CheckOFDResponse [19:47:58]1017 (14) - 77093643461234 [19:47:58]1041 (16) - 0000000000871792 [19:47:58]1040 (4) - 156737 [19:47:58]1012 (4) - 27.10.2024 13:21 [19:47:58]1206 (1) - 0 [19:47:58]OFD Sender: Remove packet 156737 [19:47:58]ProducePacketName [19:47:58]name=ofd_packets/00156737 [19:47:58]NVStorageDeleteData [19:47:58]Write to MH i2c: 01 00 00 16 83 99 [19:47:58]Write i2c OK [19:47:58]MH_I2C_Read... [19:47:58]Read from MH i2c: 01 [19:47:58]MH_I2C_Read... [19:47:58]Read from MH i2c: 01 07 00 [19:47:58]MH_I2C_Read... [19:47:58]Read from MH i2c: 01 07 00 16 83 00 00 00 00 00 EE 0C 9A [19:47:58]RasterBufferAndPrint [19:47:58]line [19:47:58]line [19:47:58]line [19:47:58]line [19:47:58]line [19:47:58]written 0, free lines is 3316 [19:47:58]process_action close_receipt done [19:47:58]requested_data is exist [19:47:58]produce_requested_data [19:47:58]requested_item fm.sn is exist - process it [19:47:58]wFMCommunicate request_size=4 [19:47:58]MH_SAM_APDU [19:47:58]CAPDU: 80 11 00 00 [19:47:58]Write to MH i2c: E2 08 00 1D 83 80 11 00 00 00 00 00 00 1A [19:47:58]Write i2c OK [19:47:58]MH_I2C_Read... [19:47:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:47:58]Read from MH i2c: E2 [19:47:58]MH_I2C_Read... [19:47:58]Read from MH i2c: E2 17 00 [19:47:58]MH_I2C_Read... [19:47:58]Read from MH i2c: E2 17 00 1D 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 6F [19:47:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:47:58]wFMCommunicate OK [19:47:58]requested_item fd.num is exist - process it [19:47:58]SAM_PROTO_GetFieldsCounters [19:47:58]wFMCommunicate request_size=4 [19:47:58]MH_SAM_APDU [19:47:58]CAPDU: 80 13 00 00 [19:47:58]Write to MH i2c: E2 08 00 1E 83 80 13 00 00 00 00 00 00 1D [19:47:58]Write i2c OK [19:47:58]MH_I2C_Read... [19:47:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:47:58]Read from MH i2c: E2 [19:47:58]MH_I2C_Read... [19:47:58]Read from MH i2c: E2 62 00 [19:47:58]MH_I2C_Read... [19:47:58]Read from MH i2c: E2 62 00 1E 83 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 41 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 20 01 00 00 5E 04 04 00 20 01 00 00 57 04 04 00 21 01 00 00 19 04 04 00 00 00 00 00 90 00 68 [19:47:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 41 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 20 01 00 00 5E 04 04 00 20 01 00 00 57 04 04 00 21 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:47:58]wFMCommunicate OK [19:47:58]SAM_PROTO_GetFieldsCounters done [19:47:58]requested_item shift.num is exist - process it [19:47:58]requested_item shift.opened is exist - process it [19:47:58]req_shift_opened [19:47:58]FM_GetShiftState [19:47:58]SAM_PROTO_GetShiftState [19:47:58]wFMCommunicate request_size=4 [19:47:58]MH_SAM_APDU [19:47:58]CAPDU: 80 13 01 00 [19:47:58]Write to MH i2c: E2 08 00 1F 83 80 13 01 00 00 00 00 00 1F [19:47:58]Write i2c OK [19:47:58]MH_I2C_Read... [19:47:58]OFD Sender: No OFD packet to send [19:47:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:47:58]Read from MH i2c: E2 [19:47:58]MH_I2C_Read... [19:47:58]Read from MH i2c: E2 0E 00 [19:47:58]MH_I2C_Read... [19:47:58]Read from MH i2c: E2 0E 00 1F 83 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 EC [19:47:58]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [19:47:58]wFMCommunicate OK [19:47:58]SAM_PROTO_GetShiftState done [19:47:58]FM_GetShiftState done [19:47:58]req_shift_opened done [19:47:58]requested_item shift.open_date is exist - process it [19:47:58]req_shift_open_date [19:47:58]req_shift_open_date done [19:47:58]produce_requested_data done [19:47:58]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156737,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [19:47:58]process_action_free close_receipt [19:47:58]json_value_free [19:47:58]json_value_free done [19:47:58]process_json_proto returns [19:47:58]Send response to host [19:47:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156737,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [19:47:58]free response buf [19:47:58]execute_script done [19:47:58]execute_script returns [19:47:58]free content buf [19:47:58]Sock 8.Close socket [19:47:58]Sock 8.Thread stoped [19:48:03]OFD Sender: No OFD packet to send [19:48:08]OFD Sender: No OFD packet to send [19:48:13]OFD Sender: No OFD packet to send [19:48:18]OFD Sender: No OFD packet to send [19:48:23]OFD Sender: No OFD packet to send [19:48:28]OFD Sender: No OFD packet to send [19:48:33]OFD Sender: No OFD packet to send [19:48:38]OFD Sender: No OFD packet to send [19:48:43]OFD Sender: No OFD packet to send [19:48:48]OFD Sender: No OFD packet to send [19:48:53]OFD Sender: No OFD packet to send [19:48:58]OFD Sender: No OFD packet to send [19:49:03]OFD Sender: No OFD packet to send [19:49:08]OFD Sender: No OFD packet to send [19:49:13]OFD Sender: No OFD packet to send [19:49:18]OFD Sender: No OFD packet to send [19:49:23]OFD Sender: No OFD packet to send [19:49:28]OFD Sender: No OFD packet to send [19:49:33]OFD Sender: No OFD packet to send [19:49:38]OFD Sender: No OFD packet to send [19:49:43]OFD Sender: No OFD packet to send [19:49:48]OFD Sender: No OFD packet to send [19:49:53]OFD Sender: No OFD packet to send [19:49:58]OFD Sender: No OFD packet to send [19:50:03]OFD Sender: No OFD packet to send [19:50:08]OFD Sender: No OFD packet to send [19:50:13]OFD Sender: No OFD packet to send [19:50:18]OFD Sender: No OFD packet to send [19:50:23]OFD Sender: No OFD packet to send [19:50:28]OFD Sender: No OFD packet to send [19:50:33]OFD Sender: No OFD packet to send [19:50:38]OFD Sender: No OFD packet to send [19:50:43]OFD Sender: No OFD packet to send [19:50:48]OFD Sender: No OFD packet to send [19:50:53]OFD Sender: No OFD packet to send [19:50:58]OFD Sender: No OFD packet to send [19:51:03]OFD Sender: No OFD packet to send [19:51:08]OFD Sender: No OFD packet to send [19:51:13]OFD Sender: No OFD packet to send [19:51:18]OFD Sender: No OFD packet to send [19:51:23]OFD Sender: No OFD packet to send [19:51:28]OFD Sender: No OFD packet to send [19:51:33]OFD Sender: No OFD packet to send [19:51:38]OFD Sender: No OFD packet to send [19:51:43]OFD Sender: No OFD packet to send [19:51:48]OFD Sender: No OFD packet to send [19:51:53]OFD Sender: No OFD packet to send [19:51:58]OFD Sender: No OFD packet to send [19:52:03]OFD Sender: No OFD packet to send [19:52:08]OFD Sender: No OFD packet to send [19:52:13]OFD Sender: No OFD packet to send [19:52:18]OFD Sender: No OFD packet to send [19:52:23]OFD Sender: No OFD packet to send [19:52:28]OFD Sender: No OFD packet to send [19:52:33]OFD Sender: No OFD packet to send [19:52:38]OFD Sender: No OFD packet to send [19:52:43]OFD Sender: No OFD packet to send [19:52:48]OFD Sender: No OFD packet to send [19:52:53]OFD Sender: No OFD packet to send [19:52:58]OFD Sender: No OFD packet to send [19:53:03]OFD Sender: No OFD packet to send [19:53:08]OFD Sender: No OFD packet to send [19:53:13]OFD Sender: No OFD packet to send [19:53:18]OFD Sender: No OFD packet to send [19:53:23]OFD Sender: No OFD packet to send [19:53:28]OFD Sender: No OFD packet to send [19:53:33]OFD Sender: No OFD packet to send [19:53:38]OFD Sender: No OFD packet to send [19:53:43]OFD Sender: No OFD packet to send [19:53:48]OFD Sender: No OFD packet to send [19:53:53]OFD Sender: No OFD packet to send [19:53:58]OFD Sender: No OFD packet to send [19:54:03]OFD Sender: No OFD packet to send [19:54:05]accept exits with 9 [19:54:05]New connection [19:54:05]New thread 3066834276 created [19:54:05]Thread 3066977636 joined [19:54:05]Waiting for new connection... [19:54:05] Sock 9.Parse request [19:54:05]Sock 9.Check first char [19:54:05]Sock 9.First char is OK [19:54:05]request: POST /json_proto HTTP/1.0 [19:54:05]Method: POST [19:54:05]URL: /json_proto [19:54:05]Method is POST - this is cgi request [19:54:05]url: /json_proto [19:54:05]query_string will be loaded in cgi processing [19:54:05]execute_cgi json_proto POST (null) [19:54:05]execute_cgi path=json_proto method=POST [19:54:05]POST find Content-Length [19:54:05]Host: 172.17.63.3:8080 [19:54:05]Content-Length: 676 [19:54:05]Content-Type: application/json [19:54:05] [19:54:05]POST finish read [19:54:05]Found Content-Length = 676 [19:54:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99552", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.290, "sum" : 220.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:54:05]execute_script... [19:54: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)99552", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 3.290, "sum" : 220.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 220.00, "total" : 220.00, "payments": [ { "type": 0, "sum" : 220.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:54:05]POST & json_proto [19:54:05]process_json_proto [19:54:05]json parsed OK: [19:54:05]protocol is kg_v1.0 [19:54:05]action value=close_receipt [19:54:05]process_action close_receipt [19:54:05]cmd_close_receipt [19:54:05]MH_GetDate [19:54:05]Write to MH i2c: F0 00 00 20 83 92 [19:54:05]Write i2c OK [19:54:05]MH_I2C_Read... [19:54:05]Read from MH i2c: F0 [19:54:05]MH_I2C_Read... [19:54:05]Read from MH i2c: F0 09 00 [19:54:05]MH_I2C_Read... [19:54:05]Read from MH i2c: F0 09 00 20 83 00 64 9A 1E 67 50 D1 6C 64 0F [19:54:05]GetLastDocTimeStamp 1730058483 [19:54:05]current date 1730058852 [19:54:05]FM_GetShiftState [19:54:05]SAM_PROTO_GetShiftState [19:54:05]wFMCommunicate request_size=4 [19:54:05]MH_SAM_APDU [19:54:05]CAPDU: 80 13 01 00 [19:54:05]Write to MH i2c: E2 08 00 21 83 80 13 01 00 00 00 00 00 21 [19:54:05]Write i2c OK [19:54:05]MH_I2C_Read... [19:54:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:54:05]Read from MH i2c: E2 [19:54:05]MH_I2C_Read... [19:54:05]Read from MH i2c: E2 0E 00 [19:54:05]MH_I2C_Read... [19:54:05]Read from MH i2c: E2 0E 00 21 83 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 EE [19:54:05]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [19:54:05]wFMCommunicate OK [19:54:05]SAM_PROTO_GetShiftState done [19:54:05]FM_GetShiftState done [19:54:05]opened in 1729989044 [19:54:05]opened+sec_in_day 1730075444 [19:54:05]quantity*price = 22010 [19:54:05]sum+1 = 22011 [19:54:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 220.00 Внесено: 220.00 СДАЧА: 0.00 НСП 1% : 1.95 НДС 12% : 23.37 Наличными: 220.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 289 27.10.2024 19:54 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156738 ФПД: 222192148952094 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T195412&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156738&fm=222192148952094&tin=02508201610067®Number=0000000000091693&sum=22000 [19:54:06]StoreToDocumentArchive [19:54:06]shift 537 fd 156738 [19:54:06]save to /storage/0537/doc_00156738 [19:54:06]save last doc name /storage/0537/doc_00156738 to /storage/kkm_last_doc_name [19:54:06]save OK [19:54:06]Clear old archive folders... [19:54:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:54:06]tlvbuf is 018D3810 [19:54:06]SAM_PROTO_ClearQueue [19:54:06]wFMCommunicate request_size=4 [19:54:06]MH_SAM_APDU [19:54:06]CAPDU: 80 09 00 00 [19:54:06]Write to MH i2c: E2 08 00 2E 83 80 09 00 00 00 00 00 00 23 [19:54:06]Write i2c OK [19:54:06]MH_I2C_Read... [19:54:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:54:06]Read from MH i2c: E2 [19:54:06]MH_I2C_Read... [19:54:06]Read from MH i2c: E2 03 00 [19:54:06]MH_I2C_Read... [19:54:06]Read from MH i2c: E2 03 00 2E 83 00 90 00 25 [19:54:06]RAPDU: 90 00 [19:54:06]wFMCommunicate OK [19:54:06]SAM_PROTO_ClearQueue done [19:54:06]KKMCreateOFDPacket [19:54:06]OFDProtocolAddRootSTLVToBuf [19:54:06]FM_MakeSignedData [19:54:06]FM_MakeSignedData [19:54:06]SAM_PROTO_SignData [19:54:06]wFMCommunicate request_size=4 [19:54:06]MH_SAM_APDU [19:54:06]CAPDU: 80 0D 01 02 [19:54:06]Write to MH i2c: E2 08 00 2F 83 80 0D 01 02 00 00 00 00 2B [19:54:06]Write i2c OK [19:54:06]MH_I2C_Read... [19:54:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:54:06]Read from MH i2c: E2 [19:54:06]MH_I2C_Read... [19:54:06]Read from MH i2c: E2 03 00 [19:54:06]MH_I2C_Read... [19:54:06]Read from MH i2c: E2 03 00 2F 83 00 90 00 26 [19:54:06]RAPDU: 90 00 [19:54:06]wFMCommunicate OK [19:54:06]wFMCommunicate request_size=255 [19:54:06]MH_SAM_APDU [19:54: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 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 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 01 00 00 F4 03 04 00 64 9A 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 42 64 02 00 35 04 06 00 CA [19:54:06]Write to MH i2c: E2 02 01 30 83 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 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 01 00 00 F4 03 04 00 64 9A 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 42 64 02 00 35 04 06 00 CA 00 00 54 [19:54:06]Write i2c OK [19:54:06]MH_I2C_Read... [19:54:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:54:06]Read from MH i2c: E2 [19:54:06]MH_I2C_Read... [19:54:06]Read from MH i2c: E2 03 00 [19:54:06]MH_I2C_Read... [19:54:06]Read from MH i2c: E2 03 00 30 83 00 90 00 27 [19:54:06]RAPDU: 90 00 [19:54:06]wFMCommunicate OK [19:54:06]wFMCommunicate request_size=10 [19:54:06]MH_SAM_APDU [19:54:06]CAPDU: 80 0D 02 02 05 15 24 1C 34 1E [19:54:06]Write to MH i2c: E2 0D 00 31 83 80 0D 02 02 05 00 15 24 1C 34 1E 00 00 DF [19:54:06]Write i2c OK [19:54:06]MH_I2C_Read... [19:54:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:54:06]Read from MH i2c: E2 [19:54:06]MH_I2C_Read... [19:54:06]Read from MH i2c: E2 03 00 [19:54:06]MH_I2C_Read... [19:54:06]Read from MH i2c: E2 03 00 31 83 00 90 00 28 [19:54:06]RAPDU: 90 00 [19:54:06]wFMCommunicate OK [19:54:06]wFMCommunicate request_size=4 [19:54:06]MH_SAM_APDU [19:54:06]CAPDU: 80 0D 03 02 [19:54:06]Write to MH i2c: E2 08 00 32 83 80 0D 03 02 00 00 00 00 30 [19:54:06]Write i2c OK [19:54:06]MH_I2C_Read... [19:54:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:54:06]Read from MH i2c: E2 [19:54:06]MH_I2C_Read... [19:54:06]Read from MH i2c: E2 0B 00 [19:54:06]MH_I2C_Read... [19:54:06]Read from MH i2c: E2 0B 00 32 83 00 B1 8E D8 DC 83 0C A4 18 90 00 6F [19:54:06]RAPDU: B1 8E D8 DC 83 0C A4 18 90 00 [19:54:06]wFMCommunicate OK [19:54:06]SAM_PROTO_SignData done [19:54:06]FM_MakeSignedData done [19:54:06]CreateOFDProtocolMessage [19:54:06]wFMCommunicate request_size=4 [19:54:06]MH_SAM_APDU [19:54:06]CAPDU: 80 11 00 00 [19:54:06]Write to MH i2c: E2 08 00 33 83 80 11 00 00 00 00 00 00 30 [19:54:06]Write i2c OK [19:54:06]MH_I2C_Read... [19:54:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:54:06]Read from MH i2c: E2 [19:54:06]MH_I2C_Read... [19:54:06]Read from MH i2c: E2 17 00 [19:54:06]MH_I2C_Read... [19:54:06]Read from MH i2c: E2 17 00 33 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 85 [19:54:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:54:06]wFMCommunicate OK [19:54:06]CreateOFDProtocolMessage done [19:54:06]OFDSenderStorePacket 156738 [19:54:06]StoreOFDPacket docnum=156738 [19:54:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 EE 04 07 01 6E 44 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 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 01 00 00 F4 03 04 00 64 9A 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 42 64 02 00 35 04 06 00 CA 15 24 1C 34 1E B1 8E D8 DC 83 0C A4 18 [19:54:06]CheckFolder [19:54:06]dirname=/storage/ofd_packets [19:54:06]CheckFolder done [19:54:06]ProducePacketName [19:54:06]name=ofd_packets/00156738 [19:54:06]NVStorageSaveData ofd_packets/00156738 [19:54:06]File name is /storage/ofd_packets/00156738 [19:54:06]Write 301 bytes [19:54:06]NVStorageSaveData done [19:54:06]OFDSenderStorePacket done [19:54:06]KKMCreateOFDPacket done [19:54:06]NVStorageSaveData kkm_last_timestamp [19:54:06]File name is /storage/kkm_last_timestamp [19:54:06]Write 4 bytes [19:54:06]NVStorageSaveData done [19:54:06]ExternCall_PrintAddStr [19:54:06]wPrintStart [19:54:06]Write to MH i2c: 01 00 00 34 83 B7 [19:54:06]Write i2c OK [19:54:06]MH_I2C_Read... [19:54:06]Read from MH i2c: 01 [19:54:06]MH_I2C_Read... [19:54:06]Read from MH i2c: 01 07 00 [19:54:06]MH_I2C_Read... [19:54:06]Read from MH i2c: 01 07 00 34 83 00 00 00 00 00 FF 0F CC [19:54:06]RasterBufferAndPrint [19:54:06]line Счет N : (1)99552 [19:54:06]line ИНН: 02508201610067 [19:54:06]line Контрольно-Кассовый Чек [19:54:06]line ПРОДАЖА [19:54:06]line ТРК (МРК, ГНК) : 21 [19:54:06]line Товар: 2710124130 [19:54:06]line Аи-92-К-5 [19:54:06]line 3.290 * 66.90 [19:54:06]line = 220.10 [19:54:06]line НДС 12% НСП 1% [19:54:06]line > о реализуемом товаре [19:54:06]line ОКРУГЛЕНИЕ: -0.10 [19:54:06]line ИТОГО: 220.00 [19:54:06]line Внесено: 220.00 [19:54:06]line СДАЧА: 0.00 [19:54:06]line НСП 1% : 1.95 [19:54:06]line НДС 12% : 23.37 [19:54:06]line Наличными: 220.00 [19:54:06]line Безнал.: 0.00 [19:54:06]line Место: АЗС № 143 "Партнер Нефть" [19:54:06]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [19:54:06]line СНО: Общий режим [19:54:06]line Чек 289 27.10.2024 19:54 [19:54:06]line Смена: 537 ФФД: 1.0 [19:54:06]line ЗНМ: 0300000096 [19:54:06]line РНМ: 0000000000091693 [19:54:06]line Версия ККМ: 001 [19:54:06]line ФМ: 0000000000871792 [19:54:06]line ФД: 156738 [19:54:06]line ФПД: 222192148952094 [19:54:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T195412&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156738&fm=222192148952094&tin=02508201610067®Number=0000000000091693&sum=22000 [19:54:06]written 0, free lines is 4095 [19:54:06]OFD Sender: Processing packet 156738 [packets to send 31, broken 30] [19:54:06]ProducePacketName [19:54:06]name=ofd_packets/00156738 [19:54:07]OFD Sender: To server: pG, [19:54:07]CommunicateWithHost lk.salyk.kg:30040 [19:54:07]ConnectInit lk.salyk.kg [19:54:07]Connected sock=10 [19:54:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 EE 04 07 01 6E 44 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 0C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 FA 55 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 21 09 00 00 00 00 07 04 06 00 F0 55 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 01 00 00 F4 03 04 00 64 9A 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 42 64 02 00 35 04 06 00 CA 15 24 1C 34 1E B1 8E D8 DC 83 0C A4 18 [19:54:07]Write to MH i2c: 01 00 00 5F 83 E2 [19:54:07]Write i2c OK [19:54:07]MH_I2C_Read... [19:54:07]Read from MH i2c: 01 [19:54:07]MH_I2C_Read... [19:54:07]Read from MH i2c: 01 07 00 [19:54:07]MH_I2C_Read... [19:54:07]Read from MH i2c: 01 07 00 5F 83 00 00 00 00 00 ED 0C E2 [19:54:07]RasterBufferAndPrint [19:54:07]line [19:54:07]line [19:54:07]line [19:54:07]line [19:54:07]line [19:54:07]written 0, free lines is 3315 [19:54:07]process_action close_receipt done [19:54:07]requested_data is exist [19:54:07]produce_requested_data [19:54:07]requested_item fm.sn is exist - process it [19:54:07]wFMCommunicate request_size=4 [19:54:07]MH_SAM_APDU [19:54:07]CAPDU: 80 11 00 00 [19:54:07]Write to MH i2c: E2 08 00 66 83 80 11 00 00 00 00 00 00 63 [19:54:07]Write i2c OK [19:54:07]MH_I2C_Read... [19:54:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:54:07]Read from MH i2c: E2 [19:54:07]MH_I2C_Read... [19:54:07]Read from MH i2c: E2 17 00 [19:54:07]MH_I2C_Read... [19:54:07]Read from MH i2c: E2 17 00 66 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 B8 [19:54:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:54:07]wFMCommunicate OK [19:54:07]requested_item fd.num is exist - process it [19:54:07]SAM_PROTO_GetFieldsCounters [19:54:07]wFMCommunicate request_size=4 [19:54:07]MH_SAM_APDU [19:54:07]CAPDU: 80 13 00 00 [19:54:07]Write to MH i2c: E2 08 00 67 83 80 13 00 00 00 00 00 00 66 [19:54:07]Write i2c OK [19:54:07]MH_I2C_Read... [19:54:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:54:07]Read from MH i2c: E2 [19:54:07]MH_I2C_Read... [19:54:07]Read from MH i2c: E2 62 00 [19:54:07]MH_I2C_Read... [19:54:07]Read from MH i2c: E2 62 00 67 83 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 42 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 21 01 00 00 5E 04 04 00 21 01 00 00 57 04 04 00 22 01 00 00 19 04 04 00 00 00 00 00 90 00 B5 [19:54:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 42 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 21 01 00 00 5E 04 04 00 21 01 00 00 57 04 04 00 22 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:54:07]wFMCommunicate OK [19:54:07]SAM_PROTO_GetFieldsCounters done [19:54:07]requested_item shift.num is exist - process it [19:54:07]requested_item shift.opened is exist - process it [19:54:07]req_shift_opened [19:54:07]FM_GetShiftState [19:54:07]SAM_PROTO_GetShiftState [19:54:07]wFMCommunicate request_size=4 [19:54:07]MH_SAM_APDU [19:54:07]CAPDU: 80 13 01 00 [19:54:07]Write to MH i2c: E2 08 00 68 83 80 13 01 00 00 00 00 00 68 [19:54:07]Write i2c OK [19:54:07]MH_I2C_Read... [19:54:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 DA 59 47 00 E4 A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 42 64 02 00 F4 03 04 00 D3 3F 1E 67 B6 04 01 00 00 16 28 E5 61 F2 E1 8B B8 [19:54:07]CommunicateWithHost err = 0 [19:54:07]CheckOFDResponse [19:54:07]1017 (14) - 77093643461234 [19:54:07]1041 (16) - 0000000000871792 [19:54:07]1040 (4) - 156738 [19:54:07]1012 (4) - 27.10.2024 13:27 [19:54:07]1206 (1) - 0 [19:54:07]OFD Sender: Remove packet 156738 [19:54:07]ProducePacketName [19:54:07]name=ofd_packets/00156738 [19:54:07]NVStorageDeleteData [19:54:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:54:07]Read from MH i2c: E2 [19:54:07]MH_I2C_Read... [19:54:07]Read from MH i2c: E2 0E 00 [19:54:07]MH_I2C_Read... [19:54:07]Read from MH i2c: E2 0E 00 68 83 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 35 [19:54:07]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [19:54:07]wFMCommunicate OK [19:54:07]SAM_PROTO_GetShiftState done [19:54:07]FM_GetShiftState done [19:54:07]req_shift_opened done [19:54:07]requested_item shift.open_date is exist - process it [19:54:07]req_shift_open_date [19:54:07]req_shift_open_date done [19:54:07]produce_requested_data done [19:54:07]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156738,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [19:54:07]process_action_free close_receipt [19:54:07]json_value_free [19:54:07]json_value_free done [19:54:07]process_json_proto returns [19:54:07]Send response to host [19:54:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156738,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [19:54:07]free response buf [19:54:07]execute_script done [19:54:07]execute_script returns [19:54:07]free content buf [19:54:07]Sock 9.Close socket [19:54:07]Sock 9.Thread stoped [19:54:08]OFD Sender: No OFD packet to send [19:54:13]OFD Sender: No OFD packet to send [19:54:18]OFD Sender: No OFD packet to send [19:54:23]OFD Sender: No OFD packet to send [19:54:28]OFD Sender: No OFD packet to send [19:54:33]OFD Sender: No OFD packet to send [19:54:38]OFD Sender: No OFD packet to send [19:54:43]OFD Sender: No OFD packet to send [19:54:48]OFD Sender: No OFD packet to send [19:54:53]OFD Sender: No OFD packet to send [19:54:58]OFD Sender: No OFD packet to send [19:55:03]OFD Sender: No OFD packet to send [19:55:08]OFD Sender: No OFD packet to send [19:55:13]OFD Sender: No OFD packet to send [19:55:18]OFD Sender: No OFD packet to send [19:55:23]OFD Sender: No OFD packet to send [19:55:28]OFD Sender: No OFD packet to send [19:55:33]OFD Sender: No OFD packet to send [19:55:38]OFD Sender: No OFD packet to send [19:55:43]OFD Sender: No OFD packet to send [19:55:48]OFD Sender: No OFD packet to send [19:55:53]OFD Sender: No OFD packet to send [19:55:58]OFD Sender: No OFD packet to send [19:56:03]OFD Sender: No OFD packet to send [19:56:08]OFD Sender: No OFD packet to send [19:56:13]OFD Sender: No OFD packet to send [19:56:18]OFD Sender: No OFD packet to send [19:56:23]OFD Sender: No OFD packet to send [19:56:28]OFD Sender: No OFD packet to send [19:56:33]OFD Sender: No OFD packet to send [19:56:38]OFD Sender: No OFD packet to send [19:56:43]OFD Sender: No OFD packet to send [19:56:48]OFD Sender: No OFD packet to send [19:56:53]OFD Sender: No OFD packet to send [19:56:58]OFD Sender: No OFD packet to send [19:57:03]OFD Sender: No OFD packet to send [19:57:08]OFD Sender: No OFD packet to send [19:57:13]OFD Sender: No OFD packet to send [19:57:18]OFD Sender: No OFD packet to send [19:57:23]OFD Sender: No OFD packet to send [19:57:28]OFD Sender: No OFD packet to send [19:57:29]accept exits with 8 [19:57:29]New connection [19:57:29]New thread 3066977636 created [19:57:29]Thread 3066834276 joined [19:57:29]Waiting for new connection... [19:57:29] Sock 8.Parse request [19:57:29]Sock 8.Check first char [19:57:29]Sock 8.First char is OK [19:57:29]request: POST /json_proto HTTP/1.0 [19:57:29]Method: POST [19:57:29]URL: /json_proto [19:57:29]Method is POST - this is cgi request [19:57:29]url: /json_proto [19:57:29]query_string will be loaded in cgi processing [19:57:29]execute_cgi json_proto POST (null) [19:57:29]execute_cgi path=json_proto method=POST [19:57:29]POST find Content-Length [19:57:29]Host: 172.17.63.3:8080 [19:57:29]Content-Length: 765 [19:57:29]Content-Type: application/json [19:57:29] [19:57:29]POST finish read [19:57:29]Found Content-Length = 765 [19:57:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99553", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:57:29]execute_script... [19:57: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)99553", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:57:29]POST & json_proto [19:57:29]process_json_proto [19:57:29]json parsed OK: [19:57:29]protocol is kg_v1.0 [19:57:29]action value=close_receipt [19:57:29]process_action close_receipt [19:57:29]cmd_close_receipt [19:57:29]MH_GetDate [19:57:29]Write to MH i2c: F0 00 00 69 83 DB [19:57:29]Write i2c OK [19:57:29]MH_I2C_Read... [19:57:29]Read from MH i2c: F0 [19:57:29]MH_I2C_Read... [19:57:29]Read from MH i2c: F0 09 00 [19:57:29]MH_I2C_Read... [19:57:29]Read from MH i2c: F0 09 00 69 83 00 30 9B 1E 67 50 D1 6C 64 25 [19:57:29]GetLastDocTimeStamp 1730058852 [19:57:29]current date 1730059056 [19:57:29]FM_GetShiftState [19:57:29]SAM_PROTO_GetShiftState [19:57:29]wFMCommunicate request_size=4 [19:57:29]MH_SAM_APDU [19:57:29]CAPDU: 80 13 01 00 [19:57:29]Write to MH i2c: E2 08 00 6A 83 80 13 01 00 00 00 00 00 6A [19:57:29]Write i2c OK [19:57:29]MH_I2C_Read... [19:57:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:57:29]Read from MH i2c: E2 [19:57:29]MH_I2C_Read... [19:57:29]Read from MH i2c: E2 0E 00 [19:57:29]MH_I2C_Read... [19:57:29]Read from MH i2c: E2 0E 00 6A 83 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 37 [19:57:29]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [19:57:29]wFMCommunicate OK [19:57:29]SAM_PROTO_GetShiftState done [19:57:29]FM_GetShiftState done [19:57:29]opened in 1729989044 [19:57:29]opened+sec_in_day 1730075444 [19:57:29]quantity*price = 50041 [19:57:29]sum+1 = 50042 [19:57:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 290 27.10.2024 19:57 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 156739 ФПД: 79304718383604 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T195736&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156739&fm=79304718383604&tin=02508201610067®Number=0000000000091693&sum=50041 [19:57:30]StoreToDocumentArchive [19:57:30]shift 537 fd 156739 [19:57:30]save to /storage/0537/doc_00156739 [19:57:30]save last doc name /storage/0537/doc_00156739 to /storage/kkm_last_doc_name [19:57:30]save OK [19:57:30]Clear old archive folders... [19:57:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:57:30]tlvbuf is 01807770 [19:57:30]SAM_PROTO_ClearQueue [19:57:30]wFMCommunicate request_size=4 [19:57:30]MH_SAM_APDU [19:57:30]CAPDU: 80 09 00 00 [19:57:30]Write to MH i2c: E2 08 00 77 83 80 09 00 00 00 00 00 00 6C [19:57:30]Write i2c OK [19:57:30]MH_I2C_Read... [19:57:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:57:30]Read from MH i2c: E2 [19:57:30]MH_I2C_Read... [19:57:30]Read from MH i2c: E2 03 00 [19:57:30]MH_I2C_Read... [19:57:30]Read from MH i2c: E2 03 00 77 83 00 90 00 6E [19:57:30]RAPDU: 90 00 [19:57:30]wFMCommunicate OK [19:57:30]SAM_PROTO_ClearQueue done [19:57:30]KKMCreateOFDPacket [19:57:30]OFDProtocolAddRootSTLVToBuf [19:57:30]FM_MakeSignedData [19:57:30]FM_MakeSignedData [19:57:30]SAM_PROTO_SignData [19:57:30]wFMCommunicate request_size=4 [19:57:30]MH_SAM_APDU [19:57:30]CAPDU: 80 0D 01 02 [19:57:30]Write to MH i2c: E2 08 00 78 83 80 0D 01 02 00 00 00 00 74 [19:57:30]Write i2c OK [19:57:30]MH_I2C_Read... [19:57:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:57:30]Read from MH i2c: E2 [19:57:30]MH_I2C_Read... [19:57:30]Read from MH i2c: E2 03 00 [19:57:30]MH_I2C_Read... [19:57:30]Read from MH i2c: E2 03 00 78 83 00 90 00 6F [19:57:30]RAPDU: 90 00 [19:57:30]wFMCommunicate OK [19:57:30]wFMCommunicate request_size=255 [19:57:30]MH_SAM_APDU [19:57: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 30 9B 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 43 64 02 00 35 04 06 00 48 [19:57:30]Write to MH i2c: E2 02 01 79 83 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 30 9B 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 43 64 02 00 35 04 06 00 48 00 00 D9 [19:57:30]Write i2c OK [19:57:30]MH_I2C_Read... [19:57:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:57:30]Read from MH i2c: E2 [19:57:30]MH_I2C_Read... [19:57:30]Read from MH i2c: E2 03 00 [19:57:30]MH_I2C_Read... [19:57:30]Read from MH i2c: E2 03 00 79 83 00 90 00 70 [19:57:30]RAPDU: 90 00 [19:57:30]wFMCommunicate OK [19:57:30]wFMCommunicate request_size=10 [19:57:30]MH_SAM_APDU [19:57:30]CAPDU: 80 0D 02 02 05 20 91 91 79 F4 [19:57:30]Write to MH i2c: E2 0D 00 7A 83 80 0D 02 02 05 00 20 91 91 79 F4 00 00 30 [19:57:30]Write i2c OK [19:57:30]MH_I2C_Read... [19:57:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:57:30]Read from MH i2c: E2 [19:57:30]MH_I2C_Read... [19:57:30]Read from MH i2c: E2 03 00 [19:57:30]MH_I2C_Read... [19:57:30]Read from MH i2c: E2 03 00 7A 83 00 90 00 71 [19:57:30]RAPDU: 90 00 [19:57:30]wFMCommunicate OK [19:57:30]wFMCommunicate request_size=4 [19:57:30]MH_SAM_APDU [19:57:30]CAPDU: 80 0D 03 02 [19:57:30]Write to MH i2c: E2 08 00 7B 83 80 0D 03 02 00 00 00 00 79 [19:57:30]Write i2c OK [19:57:30]MH_I2C_Read... [19:57:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:57:30]Read from MH i2c: E2 [19:57:30]MH_I2C_Read... [19:57:30]Read from MH i2c: E2 0B 00 [19:57:30]MH_I2C_Read... [19:57:30]Read from MH i2c: E2 0B 00 7B 83 00 6F 47 44 D5 DC 30 0A F0 90 00 4F [19:57:30]RAPDU: 6F 47 44 D5 DC 30 0A F0 90 00 [19:57:30]wFMCommunicate OK [19:57:30]SAM_PROTO_SignData done [19:57:30]FM_MakeSignedData done [19:57:30]CreateOFDProtocolMessage [19:57:30]wFMCommunicate request_size=4 [19:57:30]MH_SAM_APDU [19:57:30]CAPDU: 80 11 00 00 [19:57:30]Write to MH i2c: E2 08 00 7C 83 80 11 00 00 00 00 00 00 79 [19:57:30]Write i2c OK [19:57:30]MH_I2C_Read... [19:57:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:57:30]Read from MH i2c: E2 [19:57:30]MH_I2C_Read... [19:57:30]Read from MH i2c: E2 17 00 [19:57:30]MH_I2C_Read... [19:57:30]Read from MH i2c: E2 17 00 7C 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 CE [19:57:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:57:30]wFMCommunicate OK [19:57:30]CreateOFDProtocolMessage done [19:57:30]OFDSenderStorePacket 156739 [19:57:30]StoreOFDPacket docnum=156739 [19:57:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 D5 F3 07 01 68 AB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 30 9B 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 43 64 02 00 35 04 06 00 48 20 91 91 79 F4 6F 47 44 D5 DC 30 0A F0 [19:57:30]CheckFolder [19:57:30]dirname=/storage/ofd_packets [19:57:30]CheckFolder done [19:57:30]ProducePacketName [19:57:30]name=ofd_packets/00156739 [19:57:30]NVStorageSaveData ofd_packets/00156739 [19:57:30]File name is /storage/ofd_packets/00156739 [19:57:30]Write 301 bytes [19:57:30]NVStorageSaveData done [19:57:30]OFDSenderStorePacket done [19:57:30]KKMCreateOFDPacket done [19:57:30]NVStorageSaveData kkm_last_timestamp [19:57:30]File name is /storage/kkm_last_timestamp [19:57:30]Write 4 bytes [19:57:30]NVStorageSaveData done [19:57:30]ExternCall_PrintAddStr [19:57:30]wPrintStart [19:57:30]Write to MH i2c: 01 00 00 7D 83 00 [19:57:30]Write i2c OK [19:57:30]MH_I2C_Read... [19:57:30]Read from MH i2c: 01 [19:57:30]MH_I2C_Read... [19:57:30]Read from MH i2c: 01 07 00 [19:57:30]MH_I2C_Read... [19:57:30]Read from MH i2c: 01 07 00 7D 83 00 00 00 00 00 FF 0F 15 [19:57:30]RasterBufferAndPrint [19:57:30]line Счет N : (1)99553 [19:57:30]line ИНН: 02508201610067 [19:57:30]line Контрольно-Кассовый Чек [19:57:30]line ПРОДАЖА [19:57:30]line ТРК (МРК, ГНК) : 21 [19:57:30]line Товар: 2710124130 [19:57:30]line Аи-92-К-5 [19:57:30]line 7.480 * 66.90 [19:57:30]line = 500.41 [19:57:30]line НДС 12% НСП 1% [19:57:30]line > о реализуемом товаре [19:57:30]line ИТОГО: 500.41 [19:57:30]line НСП 1% : 4.43 [19:57:30]line НДС 12% : 53.14 [19:57:30]line Наличными: 0.00 [19:57:30]line Безнал.: 500.41 [19:57:30]line Место: АЗС № 143 "Партнер Нефть" [19:57:30]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [19:57:30]line СНО: Общий режим [19:57:30]line Чек 290 27.10.2024 19:57 [19:57:30]line Смена: 537 ФФД: 1.0 [19:57:30]line ЗНМ: 0300000096 [19:57:30]line РНМ: 0000000000091693 [19:57:30]line Версия ККМ: 001 [19:57:30]line Платежная система: Mbank [19:57:30]line ФМ: 0000000000871792 [19:57:30]line ФД: 156739 [19:57:30]line ФПД: 79304718383604 [19:57:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T195736&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156739&fm=79304718383604&tin=02508201610067®Number=0000000000091693&sum=50041 [19:57:30]written 0, free lines is 4095 [19:57:30]OFD Sender: Processing packet 156739 [packets to send 31, broken 30] [19:57:30]ProducePacketName [19:57:30]name=ofd_packets/00156739 [19:57:30]OFD Sender: To server: pG, [19:57:30]CommunicateWithHost lk.salyk.kg:30040 [19:57:30]ConnectInit lk.salyk.kg [19:57:31]Connected sock=10 [19:57:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 D5 F3 07 01 68 AB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 30 9B 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 43 64 02 00 35 04 06 00 48 20 91 91 79 F4 6F 47 44 D5 DC 30 0A F0 [19:57:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 C6 F7 47 00 10 D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 43 64 02 00 F4 03 04 00 9E 40 1E 67 B6 04 01 00 00 64 51 F4 8B 09 DE FB 3C [19:57:31]CommunicateWithHost err = 0 [19:57:31]CheckOFDResponse [19:57:31]1017 (14) - 77093643461234 [19:57:31]1041 (16) - 0000000000871792 [19:57:31]1040 (4) - 156739 [19:57:31]1012 (4) - 27.10.2024 13:31 [19:57:31]1206 (1) - 0 [19:57:31]OFD Sender: Remove packet 156739 [19:57:31]ProducePacketName [19:57:31]name=ofd_packets/00156739 [19:57:31]NVStorageDeleteData [19:57:31]Write to MH i2c: 01 00 00 A6 83 29 [19:57:31]Write i2c OK [19:57:31]MH_I2C_Read... [19:57:31]Read from MH i2c: 01 [19:57:31]MH_I2C_Read... [19:57:31]Read from MH i2c: 01 07 00 [19:57:31]MH_I2C_Read... [19:57:31]Read from MH i2c: 01 07 00 A6 83 00 00 00 00 00 08 0D 45 [19:57:31]RasterBufferAndPrint [19:57:31]line [19:57:31]line [19:57:31]line [19:57:31]line [19:57:31]line [19:57:31]written 0, free lines is 3342 [19:57:31]process_action close_receipt done [19:57:31]requested_data is exist [19:57:31]produce_requested_data [19:57:31]requested_item fm.sn is exist - process it [19:57:31]wFMCommunicate request_size=4 [19:57:31]MH_SAM_APDU [19:57:31]CAPDU: 80 11 00 00 [19:57:31]Write to MH i2c: E2 08 00 AD 83 80 11 00 00 00 00 00 00 AA [19:57:31]Write i2c OK [19:57:31]MH_I2C_Read... [19:57:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:57:31]Read from MH i2c: E2 [19:57:31]MH_I2C_Read... [19:57:31]Read from MH i2c: E2 17 00 [19:57:31]MH_I2C_Read... [19:57:31]Read from MH i2c: E2 17 00 AD 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 FF [19:57:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:57:31]wFMCommunicate OK [19:57:31]requested_item fd.num is exist - process it [19:57:31]SAM_PROTO_GetFieldsCounters [19:57:31]wFMCommunicate request_size=4 [19:57:31]MH_SAM_APDU [19:57:31]CAPDU: 80 13 00 00 [19:57:31]Write to MH i2c: E2 08 00 AE 83 80 13 00 00 00 00 00 00 AD [19:57:31]Write i2c OK [19:57:31]MH_I2C_Read... [19:57:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:57:31]Read from MH i2c: E2 [19:57:31]MH_I2C_Read... [19:57:31]Read from MH i2c: E2 62 00 [19:57:31]MH_I2C_Read... [19:57:31]Read from MH i2c: E2 62 00 AE 83 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 43 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 22 01 00 00 5E 04 04 00 22 01 00 00 57 04 04 00 23 01 00 00 19 04 04 00 00 00 00 00 90 00 00 [19:57:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 43 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 22 01 00 00 5E 04 04 00 22 01 00 00 57 04 04 00 23 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:57:31]wFMCommunicate OK [19:57:31]SAM_PROTO_GetFieldsCounters done [19:57:31]requested_item shift.num is exist - process it [19:57:31]requested_item shift.opened is exist - process it [19:57:31]req_shift_opened [19:57:31]FM_GetShiftState [19:57:31]SAM_PROTO_GetShiftState [19:57:31]wFMCommunicate request_size=4 [19:57:31]MH_SAM_APDU [19:57:31]CAPDU: 80 13 01 00 [19:57:31]Write to MH i2c: E2 08 00 AF 83 80 13 01 00 00 00 00 00 AF [19:57:31]Write i2c OK [19:57:31]MH_I2C_Read... [19:57:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:57:31]Read from MH i2c: E2 [19:57:31]MH_I2C_Read... [19:57:31]Read from MH i2c: E2 0E 00 [19:57:31]MH_I2C_Read... [19:57:31]Read from MH i2c: E2 0E 00 AF 83 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 7C [19:57:31]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [19:57:31]wFMCommunicate OK [19:57:31]SAM_PROTO_GetShiftState done [19:57:31]FM_GetShiftState done [19:57:31]req_shift_opened done [19:57:31]requested_item shift.open_date is exist - process it [19:57:31]req_shift_open_date [19:57:31]req_shift_open_date done [19:57:31]produce_requested_data done [19:57:31]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156739,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [19:57:31]process_action_free close_receipt [19:57:31]json_value_free [19:57:31]json_value_free done [19:57:31]process_json_proto returns [19:57:31]Send response to host [19:57:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156739,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [19:57:31]free response buf [19:57:31]execute_script done [19:57:31]execute_script returns [19:57:31]free content buf [19:57:31]Sock 8.Close socket [19:57:31]Sock 8.Thread stoped [19:57:31]OFD Sender: No OFD packet to send [19:57:36]OFD Sender: No OFD packet to send [19:57:41]OFD Sender: No OFD packet to send [19:57:46]OFD Sender: No OFD packet to send [19:57:51]OFD Sender: No OFD packet to send [19:57:56]OFD Sender: No OFD packet to send [19:58:01]OFD Sender: No OFD packet to send [19:58:06]OFD Sender: No OFD packet to send [19:58:11]OFD Sender: No OFD packet to send [19:58:16]OFD Sender: No OFD packet to send [19:58:21]OFD Sender: No OFD packet to send [19:58:25]accept exits with 9 [19:58:25]New connection [19:58:25]New thread 3066834276 created [19:58:25]Thread 3066977636 joined [19:58:25]Waiting for new connection... [19:58:25] Sock 9.Parse request [19:58:25]Sock 9.Check first char [19:58:25]Sock 9.First char is OK [19:58:25]request: POST /json_proto HTTP/1.0 [19:58:25]Method: POST [19:58:25]URL: /json_proto [19:58:25]Method is POST - this is cgi request [19:58:25]url: /json_proto [19:58:25]query_string will be loaded in cgi processing [19:58:25]execute_cgi json_proto POST (null) [19:58:25]execute_cgi path=json_proto method=POST [19:58:25]POST find Content-Length [19:58:25]Host: 172.17.63.3:8080 [19:58:25]Content-Length: 676 [19:58:25]Content-Type: application/json [19:58:25] [19:58:25]POST finish read [19:58:25]Found Content-Length = 676 [19:58:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99554", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:58:25]execute_script... [19:58: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)99554", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:58:25]POST & json_proto [19:58:25]process_json_proto [19:58:25]json parsed OK: [19:58:25]protocol is kg_v1.0 [19:58:25]action value=close_receipt [19:58:25]process_action close_receipt [19:58:25]cmd_close_receipt [19:58:25]MH_GetDate [19:58:25]Write to MH i2c: F0 00 00 B0 83 22 [19:58:25]Write i2c OK [19:58:25]MH_I2C_Read... [19:58:25]Read from MH i2c: F0 [19:58:25]MH_I2C_Read... [19:58:25]Read from MH i2c: F0 09 00 [19:58:25]MH_I2C_Read... [19:58:25]Read from MH i2c: F0 09 00 B0 83 00 69 9B 1E 67 50 D1 6C 64 A5 [19:58:25]GetLastDocTimeStamp 1730059056 [19:58:25]current date 1730059113 [19:58:25]FM_GetShiftState [19:58:25]SAM_PROTO_GetShiftState [19:58:25]wFMCommunicate request_size=4 [19:58:25]MH_SAM_APDU [19:58:25]CAPDU: 80 13 01 00 [19:58:25]Write to MH i2c: E2 08 00 B1 83 80 13 01 00 00 00 00 00 B1 [19:58:25]Write i2c OK [19:58:25]MH_I2C_Read... [19:58:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:58:25]Read from MH i2c: E2 [19:58:25]MH_I2C_Read... [19:58:25]Read from MH i2c: E2 0E 00 [19:58:25]MH_I2C_Read... [19:58:25]Read from MH i2c: E2 0E 00 B1 83 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 7E [19:58:25]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [19:58:25]wFMCommunicate OK [19:58:25]SAM_PROTO_GetShiftState done [19:58:25]FM_GetShiftState done [19:58:25]opened in 1729989044 [19:58:25]opened+sec_in_day 1730075444 [19:58:25]quantity*price = 50041 [19:58:25]sum+1 = 50042 [19:58:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 291 27.10.2024 19:58 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156740 ФПД: 224899752078605 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T195833&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156740&fm=224899752078605&tin=02508201610067®Number=0000000000091693&sum=50000 [19:58:27]StoreToDocumentArchive [19:58:27]shift 537 fd 156740 [19:58:27]save to /storage/0537/doc_00156740 [19:58:27]save last doc name /storage/0537/doc_00156740 to /storage/kkm_last_doc_name [19:58:27]save OK [19:58:27]Clear old archive folders... [19:58:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:58:27]tlvbuf is 017634D0 [19:58:27]SAM_PROTO_ClearQueue [19:58:27]wFMCommunicate request_size=4 [19:58:27]MH_SAM_APDU [19:58:27]CAPDU: 80 09 00 00 [19:58:27]Write to MH i2c: E2 08 00 BE 83 80 09 00 00 00 00 00 00 B3 [19:58:27]Write i2c OK [19:58:27]MH_I2C_Read... [19:58:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:58:27]Read from MH i2c: E2 [19:58:27]MH_I2C_Read... [19:58:27]Read from MH i2c: E2 03 00 [19:58:27]MH_I2C_Read... [19:58:27]Read from MH i2c: E2 03 00 BE 83 00 90 00 B5 [19:58:27]RAPDU: 90 00 [19:58:27]wFMCommunicate OK [19:58:27]SAM_PROTO_ClearQueue done [19:58:27]KKMCreateOFDPacket [19:58:27]OFDProtocolAddRootSTLVToBuf [19:58:27]FM_MakeSignedData [19:58:27]FM_MakeSignedData [19:58:27]SAM_PROTO_SignData [19:58:27]wFMCommunicate request_size=4 [19:58:27]MH_SAM_APDU [19:58:27]CAPDU: 80 0D 01 02 [19:58:27]Write to MH i2c: E2 08 00 BF 83 80 0D 01 02 00 00 00 00 BB [19:58:27]Write i2c OK [19:58:27]MH_I2C_Read... [19:58:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:58:27]Read from MH i2c: E2 [19:58:27]MH_I2C_Read... [19:58:27]Read from MH i2c: E2 03 00 [19:58:27]MH_I2C_Read... [19:58:27]Read from MH i2c: E2 03 00 BF 83 00 90 00 B6 [19:58:27]RAPDU: 90 00 [19:58:27]wFMCommunicate OK [19:58:27]wFMCommunicate request_size=255 [19:58:27]MH_SAM_APDU [19:58:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 69 9B 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 44 64 02 00 35 04 06 00 CC [19:58:27]Write to MH i2c: E2 02 01 C0 83 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 69 9B 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 44 64 02 00 35 04 06 00 CC 00 00 8D [19:58:27]Write i2c OK [19:58:27]MH_I2C_Read... [19:58:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:58:27]Read from MH i2c: E2 [19:58:27]MH_I2C_Read... [19:58:27]Read from MH i2c: E2 03 00 [19:58:27]MH_I2C_Read... [19:58:27]Read from MH i2c: E2 03 00 C0 83 00 90 00 B7 [19:58:27]RAPDU: 90 00 [19:58:27]wFMCommunicate OK [19:58:27]wFMCommunicate request_size=10 [19:58:27]MH_SAM_APDU [19:58:27]CAPDU: 80 0D 02 02 05 8B 8D D5 2D 0D [19:58:27]Write to MH i2c: E2 0D 00 C1 83 80 0D 02 02 05 00 8B 8D D5 2D 0D 00 00 EF [19:58:27]Write i2c OK [19:58:27]MH_I2C_Read... [19:58:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:58:27]Read from MH i2c: E2 [19:58:27]MH_I2C_Read... [19:58:27]Read from MH i2c: E2 03 00 [19:58:27]MH_I2C_Read... [19:58:27]Read from MH i2c: E2 03 00 C1 83 00 90 00 B8 [19:58:27]RAPDU: 90 00 [19:58:27]wFMCommunicate OK [19:58:27]wFMCommunicate request_size=4 [19:58:27]MH_SAM_APDU [19:58:27]CAPDU: 80 0D 03 02 [19:58:27]Write to MH i2c: E2 08 00 C2 83 80 0D 03 02 00 00 00 00 C0 [19:58:27]Write i2c OK [19:58:27]MH_I2C_Read... [19:58:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:58:27]Read from MH i2c: E2 [19:58:27]MH_I2C_Read... [19:58:27]Read from MH i2c: E2 0B 00 [19:58:27]MH_I2C_Read... [19:58:27]Read from MH i2c: E2 0B 00 C2 83 00 44 F8 FC 0B E4 D5 FC E4 90 00 9D [19:58:27]RAPDU: 44 F8 FC 0B E4 D5 FC E4 90 00 [19:58:27]wFMCommunicate OK [19:58:27]SAM_PROTO_SignData done [19:58:27]FM_MakeSignedData done [19:58:27]CreateOFDProtocolMessage [19:58:27]wFMCommunicate request_size=4 [19:58:27]MH_SAM_APDU [19:58:27]CAPDU: 80 11 00 00 [19:58:27]Write to MH i2c: E2 08 00 C3 83 80 11 00 00 00 00 00 00 C0 [19:58:27]Write i2c OK [19:58:27]MH_I2C_Read... [19:58:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:58:27]Read from MH i2c: E2 [19:58:27]MH_I2C_Read... [19:58:27]Read from MH i2c: E2 17 00 [19:58:27]MH_I2C_Read... [19:58:27]Read from MH i2c: E2 17 00 C3 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 15 [19:58:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:58:27]wFMCommunicate OK [19:58:27]CreateOFDProtocolMessage done [19:58:27]OFDSenderStorePacket 156740 [19:58:27]StoreOFDPacket docnum=156740 [19:58:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 41 25 07 01 3B 40 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 69 9B 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 44 64 02 00 35 04 06 00 CC 8B 8D D5 2D 0D 44 F8 FC 0B E4 D5 FC E4 [19:58:27]CheckFolder [19:58:27]dirname=/storage/ofd_packets [19:58:27]CheckFolder done [19:58:27]ProducePacketName [19:58:27]name=ofd_packets/00156740 [19:58:27]NVStorageSaveData ofd_packets/00156740 [19:58:27]File name is /storage/ofd_packets/00156740 [19:58:27]Write 301 bytes [19:58:27]NVStorageSaveData done [19:58:27]OFDSenderStorePacket done [19:58:27]KKMCreateOFDPacket done [19:58:27]NVStorageSaveData kkm_last_timestamp [19:58:27]File name is /storage/kkm_last_timestamp [19:58:27]Write 4 bytes [19:58:27]NVStorageSaveData done [19:58:27]ExternCall_PrintAddStr [19:58:27]wPrintStart [19:58:27]Write to MH i2c: 01 00 00 C4 83 47 [19:58:27]Write i2c OK [19:58:27]MH_I2C_Read... [19:58:27]Read from MH i2c: 01 [19:58:27]MH_I2C_Read... [19:58:27]Read from MH i2c: 01 07 00 [19:58:27]MH_I2C_Read... [19:58:27]Read from MH i2c: 01 07 00 C4 83 00 00 00 00 00 FF 0F 5C [19:58:27]RasterBufferAndPrint [19:58:27]line Счет N : (1)99554 [19:58:27]line ИНН: 02508201610067 [19:58:27]line Контрольно-Кассовый Чек [19:58:27]line ПРОДАЖА [19:58:27]line ТРК (МРК, ГНК) : 11 [19:58:27]line Товар: 2710124130 [19:58:27]line Аи-92-К-5 [19:58:27]line 7.480 * 66.90 [19:58:27]line = 500.41 [19:58:27]line НДС 12% НСП 1% [19:58:27]line > о реализуемом товаре [19:58:27]line ОКРУГЛЕНИЕ: -0.41 [19:58:27]line ИТОГО: 500.00 [19:58:27]line Внесено: 500.00 [19:58:27]line СДАЧА: 0.00 [19:58:27]line НСП 1% : 4.43 [19:58:27]line НДС 12% : 53.14 [19:58:27]line Наличными: 500.00 [19:58:27]line Безнал.: 0.00 [19:58:27]line Место: АЗС № 143 "Партнер Нефть" [19:58:27]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [19:58:27]line СНО: Общий режим [19:58:27]line Чек 291 27.10.2024 19:58 [19:58:27]line Смена: 537 ФФД: 1.0 [19:58:27]line ЗНМ: 0300000096 [19:58:27]line РНМ: 0000000000091693 [19:58:27]line Версия ККМ: 001 [19:58:27]line ФМ: 0000000000871792 [19:58:27]line ФД: 156740 [19:58:27]line ФПД: 224899752078605 [19:58:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T195833&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156740&fm=224899752078605&tin=02508201610067®Number=0000000000091693&sum=50000 [19:58:27]OFD Sender: Processing packet 156740 [packets to send 31, broken 30] [19:58:27]ProducePacketName [19:58:27]name=ofd_packets/00156740 [19:58:27]OFD Sender: To server: pG, [19:58:27]CommunicateWithHost lk.salyk.kg:30040 [19:58:27]ConnectInit lk.salyk.kg [19:58:27]written 0, free lines is 4095 [19:58:28]Connected sock=10 [19:58:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 41 25 07 01 3B 40 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 01 00 00 F4 03 04 00 69 9B 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 44 64 02 00 35 04 06 00 CC 8B 8D D5 2D 0D 44 F8 FC 0B E4 D5 FC E4 [19:58:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 BF 7E 47 00 23 64 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 44 64 02 00 F4 03 04 00 D7 40 1E 67 B6 04 01 00 00 79 FD DE CB BD 04 3E 9C [19:58:28]CommunicateWithHost err = 0 [19:58:28]CheckOFDResponse [19:58:28]1017 (14) - 77093643461234 [19:58:28]1041 (16) - 0000000000871792 [19:58:28]1040 (4) - 156740 [19:58:28]1012 (4) - 27.10.2024 13:32 [19:58:28]1206 (1) - 0 [19:58:28]OFD Sender: Remove packet 156740 [19:58:28]ProducePacketName [19:58:28]name=ofd_packets/00156740 [19:58:28]NVStorageDeleteData [19:58:28]Write to MH i2c: 01 00 00 EF 83 72 [19:58:28]Write i2c OK [19:58:28]MH_I2C_Read... [19:58:28]Read from MH i2c: 01 [19:58:28]MH_I2C_Read... [19:58:28]Read from MH i2c: 01 07 00 [19:58:28]MH_I2C_Read... [19:58:28]Read from MH i2c: 01 07 00 EF 83 00 00 00 00 00 E9 0C 6E [19:58:28]RasterBufferAndPrint [19:58:28]line [19:58:28]line [19:58:28]line [19:58:28]line [19:58:28]line [19:58:28]written 0, free lines is 3314 [19:58:28]process_action close_receipt done [19:58:28]requested_data is exist [19:58:28]produce_requested_data [19:58:28]requested_item fm.sn is exist - process it [19:58:28]wFMCommunicate request_size=4 [19:58:28]MH_SAM_APDU [19:58:28]CAPDU: 80 11 00 00 [19:58:28]Write to MH i2c: E2 08 00 F6 83 80 11 00 00 00 00 00 00 F3 [19:58:28]Write i2c OK [19:58:28]MH_I2C_Read... [19:58:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:58:28]Read from MH i2c: E2 [19:58:28]MH_I2C_Read... [19:58:28]Read from MH i2c: E2 17 00 [19:58:28]MH_I2C_Read... [19:58:28]Read from MH i2c: E2 17 00 F6 83 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 48 [19:58:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:58:28]wFMCommunicate OK [19:58:28]requested_item fd.num is exist - process it [19:58:28]SAM_PROTO_GetFieldsCounters [19:58:28]wFMCommunicate request_size=4 [19:58:28]MH_SAM_APDU [19:58:28]CAPDU: 80 13 00 00 [19:58:28]Write to MH i2c: E2 08 00 F7 83 80 13 00 00 00 00 00 00 F6 [19:58:28]Write i2c OK [19:58:28]MH_I2C_Read... [19:58:28]Read from MH i2c: E2 [19:58:28]MH_I2C_Read... [19:58:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:58:28]Read from MH i2c: E2 62 00 [19:58:28]MH_I2C_Read... [19:58:28]Read from MH i2c: E2 62 00 F7 83 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 44 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 23 01 00 00 5E 04 04 00 23 01 00 00 57 04 04 00 24 01 00 00 19 04 04 00 00 00 00 00 90 00 4D [19:58:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 44 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 23 01 00 00 5E 04 04 00 23 01 00 00 57 04 04 00 24 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:58:28]wFMCommunicate OK [19:58:28]SAM_PROTO_GetFieldsCounters done [19:58:28]requested_item shift.num is exist - process it [19:58:28]requested_item shift.opened is exist - process it [19:58:28]req_shift_opened [19:58:28]FM_GetShiftState [19:58:28]SAM_PROTO_GetShiftState [19:58:28]wFMCommunicate request_size=4 [19:58:28]MH_SAM_APDU [19:58:28]CAPDU: 80 13 01 00 [19:58:28]Write to MH i2c: E2 08 00 F8 83 80 13 01 00 00 00 00 00 F8 [19:58:28]Write i2c OK [19:58:28]MH_I2C_Read... [19:58:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:58:28]Read from MH i2c: E2 [19:58:28]MH_I2C_Read... [19:58:28]Read from MH i2c: E2 0E 00 [19:58:28]MH_I2C_Read... [19:58:28]Read from MH i2c: E2 0E 00 F8 83 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 C5 [19:58:28]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [19:58:28]wFMCommunicate OK [19:58:28]SAM_PROTO_GetShiftState done [19:58:28]FM_GetShiftState done [19:58:28]req_shift_opened done [19:58:28]requested_item shift.open_date is exist - process it [19:58:28]req_shift_open_date [19:58:28]req_shift_open_date done [19:58:28]produce_requested_data done [19:58:28]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156740,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [19:58:28]process_action_free close_receipt [19:58:28]json_value_free [19:58:28]json_value_free done [19:58:28]process_json_proto returns [19:58:28]Send response to host [19:58:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156740,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [19:58:28]free response buf [19:58:28]execute_script done [19:58:28]execute_script returns [19:58:28]free content buf [19:58:28]Sock 9.Close socket [19:58:28]Sock 9.Thread stoped [19:58:28]OFD Sender: No OFD packet to send [19:58:33]OFD Sender: No OFD packet to send [19:58:38]OFD Sender: No OFD packet to send [19:58:43]OFD Sender: No OFD packet to send [19:58:48]OFD Sender: No OFD packet to send [19:58:53]OFD Sender: No OFD packet to send [19:58:58]accept exits with 8 [19:58:58]New connection [19:58:58]New thread 3066977636 created [19:58:58]Thread 3066834276 joined [19:58:58]Waiting for new connection... [19:58:58] Sock 8.Parse request [19:58:58]Sock 8.Check first char [19:58:58]Sock 8.First char is OK [19:58:58]request: POST /json_proto HTTP/1.0 [19:58:58]Method: POST [19:58:58]URL: /json_proto [19:58:58]Method is POST - this is cgi request [19:58:58]url: /json_proto [19:58:58]query_string will be loaded in cgi processing [19:58:58]execute_cgi json_proto POST (null) [19:58:58]execute_cgi path=json_proto method=POST [19:58:58]POST find Content-Length [19:58:58]Host: 172.17.63.3:8080 [19:58:58]Content-Length: 765 [19:58:58]Content-Type: application/json [19:58:58] [19:58:58]POST finish read [19:58:58]Found Content-Length = 765 [19:58:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99555", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:58:58]execute_script... [19:58: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)99555", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:58:58]POST & json_proto [19:58:58]process_json_proto [19:58:58]json parsed OK: [19:58:58]protocol is kg_v1.0 [19:58:58]action value=close_receipt [19:58:58]process_action close_receipt [19:58:58]cmd_close_receipt [19:58:58]MH_GetDate [19:58:58]Write to MH i2c: F0 00 00 F9 83 6B [19:58:58]Write i2c OK [19:58:58]MH_I2C_Read... [19:58:58]Read from MH i2c: F0 [19:58:58]MH_I2C_Read... [19:58:58]Read from MH i2c: F0 09 00 [19:58:58]MH_I2C_Read... [19:58:58]Read from MH i2c: F0 09 00 F9 83 00 8A 9B 1E 67 50 D1 6C 64 0F [19:58:58]GetLastDocTimeStamp 1730059113 [19:58:58]current date 1730059146 [19:58:58]FM_GetShiftState [19:58:58]SAM_PROTO_GetShiftState [19:58:58]wFMCommunicate request_size=4 [19:58:58]MH_SAM_APDU [19:58:58]CAPDU: 80 13 01 00 [19:58:58]Write to MH i2c: E2 08 00 FA 83 80 13 01 00 00 00 00 00 FA [19:58:58]Write i2c OK [19:58:58]MH_I2C_Read... [19:58:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:58:58]Read from MH i2c: E2 [19:58:58]MH_I2C_Read... [19:58:58]Read from MH i2c: E2 0E 00 [19:58:58]MH_I2C_Read... [19:58:58]Read from MH i2c: E2 0E 00 FA 83 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 C7 [19:58:58]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [19:58:58]wFMCommunicate OK [19:58:58]SAM_PROTO_GetShiftState done [19:58:58]FM_GetShiftState done [19:58:58]opened in 1729989044 [19:58:58]opened+sec_in_day 1730075444 [19:58:58]quantity*price = 50041 [19:58:58]sum+1 = 50042 [19:58:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 292 27.10.2024 19:59 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 156741 ФПД: 133670693923687 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T195906&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156741&fm=133670693923687&tin=02508201610067®Number=0000000000091693&sum=50041 [19:58:59]StoreToDocumentArchive [19:58:59]shift 537 fd 156741 [19:58:59]save to /storage/0537/doc_00156741 [19:58:59]save last doc name /storage/0537/doc_00156741 to /storage/kkm_last_doc_name [19:58:59]save OK [19:58:59]Clear old archive folders... [19:58:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:58:59]tlvbuf is 0190D810 [19:58:59]SAM_PROTO_ClearQueue [19:58:59]wFMCommunicate request_size=4 [19:58:59]MH_SAM_APDU [19:58:59]CAPDU: 80 09 00 00 [19:58:59]Write to MH i2c: E2 08 00 07 84 80 09 00 00 00 00 00 00 FD [19:58:59]Write i2c OK [19:58:59]MH_I2C_Read... [19:58:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:58:59]Read from MH i2c: E2 [19:58:59]MH_I2C_Read... [19:58:59]Read from MH i2c: E2 03 00 [19:58:59]MH_I2C_Read... [19:58:59]Read from MH i2c: E2 03 00 07 84 00 90 00 FF [19:58:59]RAPDU: 90 00 [19:58:59]wFMCommunicate OK [19:58:59]SAM_PROTO_ClearQueue done [19:58:59]KKMCreateOFDPacket [19:58:59]OFDProtocolAddRootSTLVToBuf [19:58:59]FM_MakeSignedData [19:58:59]FM_MakeSignedData [19:58:59]SAM_PROTO_SignData [19:58:59]wFMCommunicate request_size=4 [19:58:59]MH_SAM_APDU [19:58:59]CAPDU: 80 0D 01 02 [19:58:59]Write to MH i2c: E2 08 00 08 84 80 0D 01 02 00 00 00 00 05 [19:58:59]Write i2c OK [19:58:59]MH_I2C_Read... [19:58:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:58:59]Read from MH i2c: E2 [19:58:59]MH_I2C_Read... [19:58:59]Read from MH i2c: E2 03 00 [19:58:59]MH_I2C_Read... [19:58:59]Read from MH i2c: E2 03 00 08 84 00 90 00 00 [19:58:59]RAPDU: 90 00 [19:58:59]wFMCommunicate OK [19:58:59]wFMCommunicate request_size=255 [19:58:59]MH_SAM_APDU [19:58: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 8A 9B 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 45 64 02 00 35 04 06 00 79 [19:58:59]Write to MH i2c: E2 02 01 09 84 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 8A 9B 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 45 64 02 00 35 04 06 00 79 00 00 F9 [19:58:59]Write i2c OK [19:58:59]MH_I2C_Read... [19:59:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:59:00]Read from MH i2c: E2 [19:59:00]MH_I2C_Read... [19:59:00]Read from MH i2c: E2 03 00 [19:59:00]MH_I2C_Read... [19:59:00]Read from MH i2c: E2 03 00 09 84 00 90 00 01 [19:59:00]RAPDU: 90 00 [19:59:00]wFMCommunicate OK [19:59:00]wFMCommunicate request_size=10 [19:59:00]MH_SAM_APDU [19:59:00]CAPDU: 80 0D 02 02 05 92 A2 3A 6B 67 [19:59:00]Write to MH i2c: E2 0D 00 0A 84 80 0D 02 02 05 00 92 A2 3A 6B 67 00 00 52 [19:59:00]Write i2c OK [19:59:00]MH_I2C_Read... [19:59:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:59:00]Read from MH i2c: E2 [19:59:00]MH_I2C_Read... [19:59:00]Read from MH i2c: E2 03 00 [19:59:00]MH_I2C_Read... [19:59:00]Read from MH i2c: E2 03 00 0A 84 00 90 00 02 [19:59:00]RAPDU: 90 00 [19:59:00]wFMCommunicate OK [19:59:00]wFMCommunicate request_size=4 [19:59:00]MH_SAM_APDU [19:59:00]CAPDU: 80 0D 03 02 [19:59:00]Write to MH i2c: E2 08 00 0B 84 80 0D 03 02 00 00 00 00 0A [19:59:00]Write i2c OK [19:59:00]MH_I2C_Read... [19:59:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:59:00]Read from MH i2c: E2 [19:59:00]MH_I2C_Read... [19:59:00]Read from MH i2c: E2 0B 00 [19:59:00]MH_I2C_Read... [19:59:00]Read from MH i2c: E2 0B 00 0B 84 00 6F 43 91 6A 77 6A E4 A7 90 00 24 [19:59:00]RAPDU: 6F 43 91 6A 77 6A E4 A7 90 00 [19:59:00]wFMCommunicate OK [19:59:00]SAM_PROTO_SignData done [19:59:00]FM_MakeSignedData done [19:59:00]CreateOFDProtocolMessage [19:59:00]wFMCommunicate request_size=4 [19:59:00]MH_SAM_APDU [19:59:00]CAPDU: 80 11 00 00 [19:59:00]Write to MH i2c: E2 08 00 0C 84 80 11 00 00 00 00 00 00 0A [19:59:00]Write i2c OK [19:59:00]MH_I2C_Read... [19:59:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:59:00]Read from MH i2c: E2 [19:59:00]MH_I2C_Read... [19:59:00]Read from MH i2c: E2 17 00 [19:59:00]MH_I2C_Read... [19:59:00]Read from MH i2c: E2 17 00 0C 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 5F [19:59:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:59:00]wFMCommunicate OK [19:59:00]CreateOFDProtocolMessage done [19:59:00]OFDSenderStorePacket 156741 [19:59:00]StoreOFDPacket docnum=156741 [19:59:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 10 E7 07 01 42 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 8A 9B 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 45 64 02 00 35 04 06 00 79 92 A2 3A 6B 67 6F 43 91 6A 77 6A E4 A7 [19:59:00]CheckFolder [19:59:00]dirname=/storage/ofd_packets [19:59:00]CheckFolder done [19:59:00]ProducePacketName [19:59:00]name=ofd_packets/00156741 [19:59:00]NVStorageSaveData ofd_packets/00156741 [19:59:00]File name is /storage/ofd_packets/00156741 [19:59:00]Write 301 bytes [19:59:00]NVStorageSaveData done [19:59:00]OFDSenderStorePacket done [19:59:00]KKMCreateOFDPacket done [19:59:00]NVStorageSaveData kkm_last_timestamp [19:59:00]File name is /storage/kkm_last_timestamp [19:59:00]Write 4 bytes [19:59:00]NVStorageSaveData done [19:59:00]ExternCall_PrintAddStr [19:59:00]wPrintStart [19:59:00]Write to MH i2c: 01 00 00 0D 84 91 [19:59:00]Write i2c OK [19:59:00]MH_I2C_Read... [19:59:00]Read from MH i2c: 01 [19:59:00]MH_I2C_Read... [19:59:00]Read from MH i2c: 01 07 00 [19:59:00]MH_I2C_Read... [19:59:00]Read from MH i2c: 01 07 00 0D 84 00 00 00 00 00 FF 0F A6 [19:59:00]RasterBufferAndPrint [19:59:00]line Счет N : (1)99555 [19:59:00]line ИНН: 02508201610067 [19:59:00]line Контрольно-Кассовый Чек [19:59:00]line ПРОДАЖА [19:59:00]line ТРК (МРК, ГНК) : 11 [19:59:00]line Товар: 2710124130 [19:59:00]line Аи-92-К-5 [19:59:00]line 7.480 * 66.90 [19:59:00]line = 500.41 [19:59:00]line НДС 12% НСП 1% [19:59:00]line > о реализуемом товаре [19:59:00]line ИТОГО: 500.41 [19:59:00]line НСП 1% : 4.43 [19:59:00]line НДС 12% : 53.14 [19:59:00]line Наличными: 0.00 [19:59:00]line Безнал.: 500.41 [19:59:00]line Место: АЗС № 143 "Партнер Нефть" [19:59:00]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [19:59:00]line СНО: Общий режим [19:59:00]line Чек 292 27.10.2024 19:59 [19:59:00]line Смена: 537 ФФД: 1.0 [19:59:00]line ЗНМ: 0300000096 [19:59:00]line РНМ: 0000000000091693 [19:59:00]line Версия ККМ: 001 [19:59:00]line Платежная система: Mbank [19:59:00]line ФМ: 0000000000871792 [19:59:00]line ФД: 156741 [19:59:00]line ФПД: 133670693923687 [19:59:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T195906&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156741&fm=133670693923687&tin=02508201610067®Number=0000000000091693&sum=50041 [19:59:00]OFD Sender: Processing packet 156741 [packets to send 31, broken 30] [19:59:00]ProducePacketName [19:59:00]name=ofd_packets/00156741 [19:59:00]OFD Sender: To server: pG, [19:59:00]CommunicateWithHost lk.salyk.kg:30040 [19:59:00]ConnectInit lk.salyk.kg [19:59:00]written 0, free lines is 4095 [19:59:00]Connected sock=10 [19:59:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 10 E7 07 01 42 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 8A 9B 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 45 64 02 00 35 04 06 00 79 92 A2 3A 6B 67 6F 43 91 6A 77 6A E4 A7 [19:59:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 46 C5 47 00 97 EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 45 64 02 00 F4 03 04 00 F8 40 1E 67 B6 04 01 00 00 18 2E EF A8 27 64 32 D3 [19:59:01]CommunicateWithHost err = 0 [19:59:01]CheckOFDResponse [19:59:01]1017 (14) - 77093643461234 [19:59:01]1041 (16) - 0000000000871792 [19:59:01]1040 (4) - 156741 [19:59:01]1012 (4) - 27.10.2024 13:32 [19:59:01]1206 (1) - 0 [19:59:01]OFD Sender: Remove packet 156741 [19:59:01]ProducePacketName [19:59:01]name=ofd_packets/00156741 [19:59:01]NVStorageDeleteData [19:59:01]Write to MH i2c: 01 00 00 36 84 BA [19:59:01]Write i2c OK [19:59:01]MH_I2C_Read... [19:59:01]Read from MH i2c: 01 [19:59:01]MH_I2C_Read... [19:59:01]Read from MH i2c: 01 07 00 [19:59:01]MH_I2C_Read... [19:59:01]Read from MH i2c: 01 07 00 36 84 00 00 00 00 00 1D 0D EB [19:59:01]RasterBufferAndPrint [19:59:01]line [19:59:01]line [19:59:01]line [19:59:01]line [19:59:01]line [19:59:01]written 0, free lines is 3366 [19:59:01]process_action close_receipt done [19:59:01]requested_data is exist [19:59:01]produce_requested_data [19:59:01]requested_item fm.sn is exist - process it [19:59:01]wFMCommunicate request_size=4 [19:59:01]MH_SAM_APDU [19:59:01]CAPDU: 80 11 00 00 [19:59:01]Write to MH i2c: E2 08 00 3D 84 80 11 00 00 00 00 00 00 3B [19:59:01]Write i2c OK [19:59:01]MH_I2C_Read... [19:59:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:59:01]Read from MH i2c: E2 [19:59:01]MH_I2C_Read... [19:59:01]Read from MH i2c: E2 17 00 [19:59:01]MH_I2C_Read... [19:59:01]Read from MH i2c: E2 17 00 3D 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 90 [19:59:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [19:59:01]wFMCommunicate OK [19:59:01]requested_item fd.num is exist - process it [19:59:01]SAM_PROTO_GetFieldsCounters [19:59:01]wFMCommunicate request_size=4 [19:59:01]MH_SAM_APDU [19:59:01]CAPDU: 80 13 00 00 [19:59:01]Write to MH i2c: E2 08 00 3E 84 80 13 00 00 00 00 00 00 3E [19:59:01]Write i2c OK [19:59:01]MH_I2C_Read... [19:59:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:59:01]Read from MH i2c: E2 [19:59:01]MH_I2C_Read... [19:59:01]Read from MH i2c: E2 62 00 [19:59:01]MH_I2C_Read... [19:59:01]Read from MH i2c: E2 62 00 3E 84 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 45 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 24 01 00 00 5E 04 04 00 24 01 00 00 57 04 04 00 25 01 00 00 19 04 04 00 00 00 00 00 90 00 99 [19:59:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 45 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 24 01 00 00 5E 04 04 00 24 01 00 00 57 04 04 00 25 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:59:01]wFMCommunicate OK [19:59:01]SAM_PROTO_GetFieldsCounters done [19:59:01]requested_item shift.num is exist - process it [19:59:01]requested_item shift.opened is exist - process it [19:59:01]req_shift_opened [19:59:01]FM_GetShiftState [19:59:01]SAM_PROTO_GetShiftState [19:59:01]wFMCommunicate request_size=4 [19:59:01]MH_SAM_APDU [19:59:01]CAPDU: 80 13 01 00 [19:59:01]Write to MH i2c: E2 08 00 3F 84 80 13 01 00 00 00 00 00 40 [19:59:01]Write i2c OK [19:59:01]MH_I2C_Read... [19:59:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:59:01]Read from MH i2c: E2 [19:59:01]MH_I2C_Read... [19:59:01]Read from MH i2c: E2 0E 00 [19:59:01]MH_I2C_Read... [19:59:01]Read from MH i2c: E2 0E 00 3F 84 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 0D [19:59:01]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [19:59:01]wFMCommunicate OK [19:59:01]SAM_PROTO_GetShiftState done [19:59:01]FM_GetShiftState done [19:59:01]req_shift_opened done [19:59:01]requested_item shift.open_date is exist - process it [19:59:01]req_shift_open_date [19:59:01]req_shift_open_date done [19:59:01]produce_requested_data done [19:59:01]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156741,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [19:59:01]process_action_free close_receipt [19:59:01]json_value_free [19:59:01]json_value_free done [19:59:01]process_json_proto returns [19:59:01]Send response to host [19:59:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156741,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [19:59:01]free response buf [19:59:01]execute_script done [19:59:01]execute_script returns [19:59:01]free content buf [19:59:01]Sock 8.Close socket [19:59:01]Sock 8.Thread stoped [19:59:01]OFD Sender: No OFD packet to send [19:59:06]OFD Sender: No OFD packet to send [19:59:11]OFD Sender: No OFD packet to send [19:59:16]OFD Sender: No OFD packet to send [19:59:21]OFD Sender: No OFD packet to send [19:59:26]OFD Sender: No OFD packet to send [19:59:31]OFD Sender: No OFD packet to send [19:59:36]OFD Sender: No OFD packet to send [19:59:41]OFD Sender: No OFD packet to send [19:59:46]OFD Sender: No OFD packet to send [19:59:51]OFD Sender: No OFD packet to send [19:59:56]OFD Sender: No OFD packet to send [20:00:01]OFD Sender: No OFD packet to send [20:00:06]OFD Sender: No OFD packet to send [20:00:11]OFD Sender: No OFD packet to send [20:00:16]OFD Sender: No OFD packet to send [20:00:21]OFD Sender: No OFD packet to send [20:00:26]OFD Sender: No OFD packet to send [20:00:31]OFD Sender: No OFD packet to send [20:00:36]OFD Sender: No OFD packet to send [20:00:41]OFD Sender: No OFD packet to send [20:00:46]OFD Sender: No OFD packet to send [20:00:51]OFD Sender: No OFD packet to send [20:00:56]OFD Sender: No OFD packet to send [20:01:01]OFD Sender: No OFD packet to send [20:01:06]accept exits with 9 [20:01:06]New connection [20:01:06]New thread 3066834276 created [20:01:06]Thread 3066977636 joined [20:01:06]Waiting for new connection... [20:01:06] Sock 9.Parse request [20:01:06]Sock 9.Check first char [20:01:06]Sock 9.First char is OK [20:01:06]request: POST /json_proto HTTP/1.0 [20:01:06]Method: POST [20:01:06]URL: /json_proto [20:01:06]Method is POST - this is cgi request [20:01:06]url: /json_proto [20:01:06]query_string will be loaded in cgi processing [20:01:06]execute_cgi json_proto POST (null) [20:01:06]execute_cgi path=json_proto method=POST [20:01:06]POST find Content-Length [20:01:06]Host: 172.17.63.3:8080 [20:01:06]Content-Length: 681 [20:01:06]Content-Type: application/json [20:01:06] [20:01:06]POST finish read [20:01:06]Found Content-Length = 681 [20:01:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99556", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:01:06]execute_script... [20:01: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)99556", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:01:06]POST & json_proto [20:01:06]process_json_proto [20:01:06]json parsed OK: [20:01:06]protocol is kg_v1.0 [20:01:06]action value=close_receipt [20:01:06]process_action close_receipt [20:01:06]cmd_close_receipt [20:01:06]MH_GetDate [20:01:06]Write to MH i2c: F0 00 00 40 84 B3 [20:01:06]Write i2c OK [20:01:06]MH_I2C_Read... [20:01:06]Read from MH i2c: F0 [20:01:06]MH_I2C_Read... [20:01:06]Read from MH i2c: F0 09 00 [20:01:06]MH_I2C_Read... [20:01:06]Read from MH i2c: F0 09 00 40 84 00 09 9C 1E 67 50 D1 6C 64 D7 [20:01:06]GetLastDocTimeStamp 1730059146 [20:01:06]current date 1730059273 [20:01:06]FM_GetShiftState [20:01:06]SAM_PROTO_GetShiftState [20:01:06]wFMCommunicate request_size=4 [20:01:06]MH_SAM_APDU [20:01:06]CAPDU: 80 13 01 00 [20:01:06]Write to MH i2c: E2 08 00 41 84 80 13 01 00 00 00 00 00 42 [20:01:06]Write i2c OK [20:01:06]MH_I2C_Read... [20:01:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:01:06]Read from MH i2c: E2 [20:01:06]MH_I2C_Read... [20:01:06]Read from MH i2c: E2 0E 00 [20:01:06]MH_I2C_Read... [20:01:06]Read from MH i2c: E2 0E 00 41 84 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 0F [20:01:06]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [20:01:06]wFMCommunicate OK [20:01:06]SAM_PROTO_GetShiftState done [20:01:06]FM_GetShiftState done [20:01:06]opened in 1729989044 [20:01:06]opened+sec_in_day 1730075444 [20:01:06]quantity*price = 100015 [20:01:06]sum+1 = 100017 [20:01:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 293 27.10.2024 20:01 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156742 ФПД: 158715672498761 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T200113&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156742&fm=158715672498761&tin=02508201610067®Number=0000000000091693&sum=100000 [20:01:07]StoreToDocumentArchive [20:01:07]shift 537 fd 156742 [20:01:07]save to /storage/0537/doc_00156742 [20:01:07]save last doc name /storage/0537/doc_00156742 to /storage/kkm_last_doc_name [20:01:07]save OK [20:01:07]Clear old archive folders... [20:01:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:01:07]tlvbuf is 0179AB70 [20:01:07]SAM_PROTO_ClearQueue [20:01:07]wFMCommunicate request_size=4 [20:01:07]MH_SAM_APDU [20:01:07]CAPDU: 80 09 00 00 [20:01:07]Write to MH i2c: E2 08 00 4E 84 80 09 00 00 00 00 00 00 44 [20:01:07]Write i2c OK [20:01:07]MH_I2C_Read... [20:01:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:01:07]Read from MH i2c: E2 [20:01:07]MH_I2C_Read... [20:01:07]Read from MH i2c: E2 03 00 [20:01:07]MH_I2C_Read... [20:01:07]Read from MH i2c: E2 03 00 4E 84 00 90 00 46 [20:01:07]RAPDU: 90 00 [20:01:07]wFMCommunicate OK [20:01:07]SAM_PROTO_ClearQueue done [20:01:07]KKMCreateOFDPacket [20:01:07]OFDProtocolAddRootSTLVToBuf [20:01:07]FM_MakeSignedData [20:01:07]FM_MakeSignedData [20:01:07]SAM_PROTO_SignData [20:01:07]wFMCommunicate request_size=4 [20:01:07]MH_SAM_APDU [20:01:07]CAPDU: 80 0D 01 02 [20:01:07]Write to MH i2c: E2 08 00 4F 84 80 0D 01 02 00 00 00 00 4C [20:01:07]Write i2c OK [20:01:07]MH_I2C_Read... [20:01:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:01:07]Read from MH i2c: E2 [20:01:07]MH_I2C_Read... [20:01:07]Read from MH i2c: E2 03 00 [20:01:07]MH_I2C_Read... [20:01:07]Read from MH i2c: E2 03 00 4F 84 00 90 00 47 [20:01:07]RAPDU: 90 00 [20:01:07]wFMCommunicate OK [20:01:07]wFMCommunicate request_size=255 [20:01:07]MH_SAM_APDU [20:01: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 09 9C 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 46 64 02 00 35 04 06 00 90 [20:01:07]Write to MH i2c: E2 02 01 50 84 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 09 9C 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 46 64 02 00 35 04 06 00 90 00 00 81 [20:01:07]Write i2c OK [20:01:07]MH_I2C_Read... [20:01:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:01:07]Read from MH i2c: E2 [20:01:07]MH_I2C_Read... [20:01:07]Read from MH i2c: E2 03 00 [20:01:07]MH_I2C_Read... [20:01:07]Read from MH i2c: E2 03 00 50 84 00 90 00 48 [20:01:07]RAPDU: 90 00 [20:01:07]wFMCommunicate OK [20:01:07]wFMCommunicate request_size=10 [20:01:07]MH_SAM_APDU [20:01:07]CAPDU: 80 0D 02 02 05 59 DF 47 92 49 [20:01:07]Write to MH i2c: E2 0D 00 51 84 80 0D 02 02 05 00 59 DF 47 92 49 00 00 B3 [20:01:07]Write i2c OK [20:01:07]MH_I2C_Read... [20:01:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:01:07]Read from MH i2c: E2 [20:01:07]MH_I2C_Read... [20:01:07]Read from MH i2c: E2 03 00 [20:01:07]MH_I2C_Read... [20:01:07]Read from MH i2c: E2 03 00 51 84 00 90 00 49 [20:01:07]RAPDU: 90 00 [20:01:07]wFMCommunicate OK [20:01:07]wFMCommunicate request_size=4 [20:01:07]MH_SAM_APDU [20:01:07]CAPDU: 80 0D 03 02 [20:01:07]Write to MH i2c: E2 08 00 52 84 80 0D 03 02 00 00 00 00 51 [20:01:07]Write i2c OK [20:01:07]MH_I2C_Read... [20:01:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:01:07]Read from MH i2c: E2 [20:01:07]MH_I2C_Read... [20:01:07]Read from MH i2c: E2 0B 00 [20:01:07]MH_I2C_Read... [20:01:07]Read from MH i2c: E2 0B 00 52 84 00 86 6A 2D 92 62 2B 82 A6 90 00 B6 [20:01:07]RAPDU: 86 6A 2D 92 62 2B 82 A6 90 00 [20:01:07]wFMCommunicate OK [20:01:07]SAM_PROTO_SignData done [20:01:07]FM_MakeSignedData done [20:01:07]CreateOFDProtocolMessage [20:01:07]wFMCommunicate request_size=4 [20:01:07]MH_SAM_APDU [20:01:07]CAPDU: 80 11 00 00 [20:01:07]Write to MH i2c: E2 08 00 53 84 80 11 00 00 00 00 00 00 51 [20:01:07]Write i2c OK [20:01:07]MH_I2C_Read... [20:01:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:01:07]Read from MH i2c: E2 [20:01:07]MH_I2C_Read... [20:01:07]Read from MH i2c: E2 17 00 [20:01:07]MH_I2C_Read... [20:01:07]Read from MH i2c: E2 17 00 53 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 A6 [20:01:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [20:01:07]wFMCommunicate OK [20:01:07]CreateOFDProtocolMessage done [20:01:07]OFDSenderStorePacket 156742 [20:01:07]StoreOFDPacket docnum=156742 [20:01:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 64 88 07 01 62 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 09 9C 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 46 64 02 00 35 04 06 00 90 59 DF 47 92 49 86 6A 2D 92 62 2B 82 A6 [20:01:07]CheckFolder [20:01:07]dirname=/storage/ofd_packets [20:01:07]CheckFolder done [20:01:07]ProducePacketName [20:01:07]name=ofd_packets/00156742 [20:01:07]NVStorageSaveData ofd_packets/00156742 [20:01:07]File name is /storage/ofd_packets/00156742 [20:01:07]Write 301 bytes [20:01:07]NVStorageSaveData done [20:01:07]OFDSenderStorePacket done [20:01:07]KKMCreateOFDPacket done [20:01:07]NVStorageSaveData kkm_last_timestamp [20:01:07]File name is /storage/kkm_last_timestamp [20:01:07]Write 4 bytes [20:01:07]NVStorageSaveData done [20:01:07]ExternCall_PrintAddStr [20:01:07]wPrintStart [20:01:07]Write to MH i2c: 01 00 00 54 84 D8 [20:01:07]Write i2c OK [20:01:07]MH_I2C_Read... [20:01:07]Read from MH i2c: 01 [20:01:07]MH_I2C_Read... [20:01:07]Read from MH i2c: 01 07 00 [20:01:07]MH_I2C_Read... [20:01:07]Read from MH i2c: 01 07 00 54 84 00 00 00 00 00 FF 0F ED [20:01:07]RasterBufferAndPrint [20:01:07]line Счет N : (1)99556 [20:01:07]line ИНН: 02508201610067 [20:01:07]line Контрольно-Кассовый Чек [20:01:07]line ПРОДАЖА [20:01:07]line ТРК (МРК, ГНК) : 31 [20:01:07]line Товар: 2710124130 [20:01:07]line Аи-92-К-5 [20:01:07]line 14.950 * 66.90 [20:01:07]line = 1000.16 [20:01:07]line НДС 12% НСП 1% [20:01:08]line > о реализуемом товаре [20:01:08]line ОКРУГЛЕНИЕ: -0.16 [20:01:08]line ИТОГО: 1000.00 [20:01:08]line Внесено: 1000.00 [20:01:08]line СДАЧА: 0.00 [20:01:08]line НСП 1% : 8.85 [20:01:08]line НДС 12% : 106.21 [20:01:08]line Наличными: 1000.00 [20:01:08]line Безнал.: 0.00 [20:01:08]line Место: АЗС № 143 "Партнер Нефть" [20:01:08]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [20:01:08]line СНО: Общий режим [20:01:08]line Чек 293 27.10.2024 20:01 [20:01:08]line Смена: 537 ФФД: 1.0 [20:01:08]line ЗНМ: 0300000096 [20:01:08]line РНМ: 0000000000091693 [20:01:08]line Версия ККМ: 001 [20:01:08]line ФМ: 0000000000871792 [20:01:08]line ФД: 156742 [20:01:08]line ФПД: 158715672498761 [20:01:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T200113&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156742&fm=158715672498761&tin=02508201610067®Number=0000000000091693&sum=100000 [20:01:08]OFD Sender: Processing packet 156742 [packets to send 31, broken 30] [20:01:08]ProducePacketName [20:01:08]name=ofd_packets/00156742 [20:01:08]OFD Sender: To server: pG, [20:01:08]CommunicateWithHost lk.salyk.kg:30040 [20:01:08]ConnectInit lk.salyk.kg [20:01:08]written 0, free lines is 4095 [20:01:08]Connected sock=10 [20:01:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 64 88 07 01 62 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 09 9C 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 46 64 02 00 35 04 06 00 90 59 DF 47 92 49 86 6A 2D 92 62 2B 82 A6 [20:01:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 81 0B 47 00 CB 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 31 37 39 32 10 04 04 00 46 64 02 00 F4 03 04 00 78 41 1E 67 B6 04 01 00 00 41 31 B6 ED 2A EA 9B D2 [20:01:08]CommunicateWithHost err = 0 [20:01:08]CheckOFDResponse [20:01:08]1017 (14) - 77093643461234 [20:01:08]1041 (16) - 0000000000871792 [20:01:08]1040 (4) - 156742 [20:01:08]1012 (4) - 27.10.2024 13:34 [20:01:08]1206 (1) - 0 [20:01:08]OFD Sender: Remove packet 156742 [20:01:08]ProducePacketName [20:01:08]name=ofd_packets/00156742 [20:01:08]NVStorageDeleteData [20:01:08]Write to MH i2c: 01 00 00 7F 84 03 [20:01:08]Write i2c OK [20:01:08]MH_I2C_Read... [20:01:08]Read from MH i2c: 01 [20:01:08]MH_I2C_Read... [20:01:08]Read from MH i2c: 01 07 00 [20:01:08]MH_I2C_Read... [20:01:08]Read from MH i2c: 01 07 00 7F 84 00 00 00 00 00 DD 0C F3 [20:01:08]RasterBufferAndPrint [20:01:08]line [20:01:08]line [20:01:08]line [20:01:08]line [20:01:08]line [20:01:08]written 0, free lines is 3299 [20:01:08]process_action close_receipt done [20:01:08]requested_data is exist [20:01:08]produce_requested_data [20:01:08]requested_item fm.sn is exist - process it [20:01:08]wFMCommunicate request_size=4 [20:01:08]MH_SAM_APDU [20:01:08]CAPDU: 80 11 00 00 [20:01:08]Write to MH i2c: E2 08 00 86 84 80 11 00 00 00 00 00 00 84 [20:01:08]Write i2c OK [20:01:08]MH_I2C_Read... [20:01:08]Read from MH i2c: E2 [20:01:08]MH_I2C_Read... [20:01:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:01:08]Read from MH i2c: E2 17 00 [20:01:08]MH_I2C_Read... [20:01:08]Read from MH i2c: E2 17 00 86 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 D9 [20:01:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [20:01:08]wFMCommunicate OK [20:01:08]requested_item fd.num is exist - process it [20:01:08]SAM_PROTO_GetFieldsCounters [20:01:08]wFMCommunicate request_size=4 [20:01:08]MH_SAM_APDU [20:01:08]CAPDU: 80 13 00 00 [20:01:08]Write to MH i2c: E2 08 00 87 84 80 13 00 00 00 00 00 00 87 [20:01:08]Write i2c OK [20:01:08]MH_I2C_Read... [20:01:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:01:09]Read from MH i2c: E2 [20:01:09]MH_I2C_Read... [20:01:09]Read from MH i2c: E2 62 00 [20:01:09]MH_I2C_Read... [20:01:09]Read from MH i2c: E2 62 00 87 84 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 46 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 25 01 00 00 5E 04 04 00 25 01 00 00 57 04 04 00 26 01 00 00 19 04 04 00 00 00 00 00 90 00 E6 [20:01:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 46 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 25 01 00 00 5E 04 04 00 25 01 00 00 57 04 04 00 26 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:01:09]wFMCommunicate OK [20:01:09]SAM_PROTO_GetFieldsCounters done [20:01:09]requested_item shift.num is exist - process it [20:01:09]requested_item shift.opened is exist - process it [20:01:09]req_shift_opened [20:01:09]FM_GetShiftState [20:01:09]SAM_PROTO_GetShiftState [20:01:09]wFMCommunicate request_size=4 [20:01:09]MH_SAM_APDU [20:01:09]CAPDU: 80 13 01 00 [20:01:09]Write to MH i2c: E2 08 00 88 84 80 13 01 00 00 00 00 00 89 [20:01:09]Write i2c OK [20:01:09]MH_I2C_Read... [20:01:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:01:09]Read from MH i2c: E2 [20:01:09]MH_I2C_Read... [20:01:09]Read from MH i2c: E2 0E 00 [20:01:09]MH_I2C_Read... [20:01:09]Read from MH i2c: E2 0E 00 88 84 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 56 [20:01:09]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [20:01:09]wFMCommunicate OK [20:01:09]SAM_PROTO_GetShiftState done [20:01:09]FM_GetShiftState done [20:01:09]req_shift_opened done [20:01:09]requested_item shift.open_date is exist - process it [20:01:09]req_shift_open_date [20:01:09]req_shift_open_date done [20:01:09]produce_requested_data done [20:01:09]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156742,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [20:01:09]process_action_free close_receipt [20:01:09]json_value_free [20:01:09]json_value_free done [20:01:09]process_json_proto returns [20:01:09]Send response to host [20:01:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156742,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [20:01:09]free response buf [20:01:09]execute_script done [20:01:09]execute_script returns [20:01:09]free content buf [20:01:09]Sock 9.Close socket [20:01:09]Sock 9.Thread stoped [20:01:09]OFD Sender: No OFD packet to send [20:01:14]OFD Sender: No OFD packet to send [20:01:19]OFD Sender: No OFD packet to send [20:01:24]OFD Sender: No OFD packet to send [20:01:29]OFD Sender: No OFD packet to send [20:01:34]OFD Sender: No OFD packet to send [20:01:39]OFD Sender: No OFD packet to send [20:01:44]OFD Sender: No OFD packet to send [20:01:49]OFD Sender: No OFD packet to send [20:01:54]OFD Sender: No OFD packet to send [20:01:59]OFD Sender: No OFD packet to send [20:02:04]OFD Sender: No OFD packet to send [20:02:09]OFD Sender: No OFD packet to send [20:02:14]OFD Sender: No OFD packet to send [20:02:19]OFD Sender: No OFD packet to send [20:02:24]OFD Sender: No OFD packet to send [20:02:29]OFD Sender: No OFD packet to send [20:02:34]OFD Sender: No OFD packet to send [20:02:39]OFD Sender: No OFD packet to send [20:02:44]OFD Sender: No OFD packet to send [20:02:49]OFD Sender: No OFD packet to send [20:02:54]OFD Sender: No OFD packet to send [20:02:59]OFD Sender: No OFD packet to send [20:03:04]OFD Sender: No OFD packet to send [20:03:09]OFD Sender: No OFD packet to send [20:03:14]OFD Sender: No OFD packet to send [20:03:19]OFD Sender: No OFD packet to send [20:03:24]OFD Sender: No OFD packet to send [20:03:29]OFD Sender: No OFD packet to send [20:03:34]OFD Sender: No OFD packet to send [20:03:39]OFD Sender: No OFD packet to send [20:03:44]OFD Sender: No OFD packet to send [20:03:49]OFD Sender: No OFD packet to send [20:03:54]OFD Sender: No OFD packet to send [20:03:59]OFD Sender: No OFD packet to send [20:04:04]OFD Sender: No OFD packet to send [20:04:09]OFD Sender: No OFD packet to send [20:04:14]OFD Sender: No OFD packet to send [20:04:19]OFD Sender: No OFD packet to send [20:04:21]accept exits with 8 [20:04:21]New connection [20:04:21]New thread 3066977636 created [20:04:21]Thread 3066834276 joined [20:04:21]Waiting for new connection... [20:04:21] Sock 8.Parse request [20:04:21]Sock 8.Check first char [20:04:21]Sock 8.First char is OK [20:04:21]request: POST /json_proto HTTP/1.0 [20:04:21]Method: POST [20:04:21]URL: /json_proto [20:04:21]Method is POST - this is cgi request [20:04:21]url: /json_proto [20:04:21]query_string will be loaded in cgi processing [20:04:21]execute_cgi json_proto POST (null) [20:04:21]execute_cgi path=json_proto method=POST [20:04:21]POST find Content-Length [20:04:21]Host: 172.17.63.3:8080 [20:04:21]Content-Length: 676 [20:04:21]Content-Type: application/json [20:04:21] [20:04:21]POST finish read [20:04:21]Found Content-Length = 676 [20:04:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99557", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:04:21]execute_script... [20:04: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)99557", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:04:21]POST & json_proto [20:04:21]process_json_proto [20:04:21]json parsed OK: [20:04:21]protocol is kg_v1.0 [20:04:21]action value=close_receipt [20:04:21]process_action close_receipt [20:04:21]cmd_close_receipt [20:04:21]MH_GetDate [20:04:21]Write to MH i2c: F0 00 00 89 84 FC [20:04:21]Write i2c OK [20:04:21]MH_I2C_Read... [20:04:21]Read from MH i2c: F0 [20:04:21]MH_I2C_Read... [20:04:21]Read from MH i2c: F0 09 00 [20:04:21]MH_I2C_Read... [20:04:21]Read from MH i2c: F0 09 00 89 84 00 CC 9C 1E 67 50 D1 6C 64 E3 [20:04:21]GetLastDocTimeStamp 1730059273 [20:04:21]current date 1730059468 [20:04:21]FM_GetShiftState [20:04:21]SAM_PROTO_GetShiftState [20:04:21]wFMCommunicate request_size=4 [20:04:21]MH_SAM_APDU [20:04:21]CAPDU: 80 13 01 00 [20:04:21]Write to MH i2c: E2 08 00 8A 84 80 13 01 00 00 00 00 00 8B [20:04:21]Write i2c OK [20:04:21]MH_I2C_Read... [20:04:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:04:21]Read from MH i2c: E2 [20:04:21]MH_I2C_Read... [20:04:21]Read from MH i2c: E2 0E 00 [20:04:21]MH_I2C_Read... [20:04:21]Read from MH i2c: E2 0E 00 8A 84 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 58 [20:04:21]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [20:04:21]wFMCommunicate OK [20:04:21]SAM_PROTO_GetShiftState done [20:04:21]FM_GetShiftState done [20:04:21]opened in 1729989044 [20:04:21]opened+sec_in_day 1730075444 [20:04:21]quantity*price = 30038 [20:04:21]sum+1 = 30039 [20:04:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 294 27.10.2024 20:04 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156743 ФПД: 5702152409982 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T200428&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156743&fm=5702152409982&tin=02508201610067®Number=0000000000091693&sum=30000 [20:04:22]StoreToDocumentArchive [20:04:22]shift 537 fd 156743 [20:04:22]save to /storage/0537/doc_00156743 [20:04:22]save last doc name /storage/0537/doc_00156743 to /storage/kkm_last_doc_name [20:04:22]save OK [20:04:22]Clear old archive folders... [20:04:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:04:22]tlvbuf is 01878900 [20:04:22]SAM_PROTO_ClearQueue [20:04:22]wFMCommunicate request_size=4 [20:04:22]MH_SAM_APDU [20:04:22]CAPDU: 80 09 00 00 [20:04:22]Write to MH i2c: E2 08 00 97 84 80 09 00 00 00 00 00 00 8D [20:04:22]Write i2c OK [20:04:22]MH_I2C_Read... [20:04:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:04:22]Read from MH i2c: E2 [20:04:22]MH_I2C_Read... [20:04:22]Read from MH i2c: E2 03 00 [20:04:22]MH_I2C_Read... [20:04:22]Read from MH i2c: E2 03 00 97 84 00 90 00 8F [20:04:22]RAPDU: 90 00 [20:04:22]wFMCommunicate OK [20:04:22]SAM_PROTO_ClearQueue done [20:04:22]KKMCreateOFDPacket [20:04:22]OFDProtocolAddRootSTLVToBuf [20:04:22]FM_MakeSignedData [20:04:22]FM_MakeSignedData [20:04:22]SAM_PROTO_SignData [20:04:22]wFMCommunicate request_size=4 [20:04:22]MH_SAM_APDU [20:04:22]CAPDU: 80 0D 01 02 [20:04:22]Write to MH i2c: E2 08 00 98 84 80 0D 01 02 00 00 00 00 95 [20:04:22]Write i2c OK [20:04:22]MH_I2C_Read... [20:04:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:04:22]Read from MH i2c: E2 [20:04:22]MH_I2C_Read... [20:04:22]Read from MH i2c: E2 03 00 [20:04:22]MH_I2C_Read... [20:04:22]Read from MH i2c: E2 03 00 98 84 00 90 00 90 [20:04:22]RAPDU: 90 00 [20:04:22]wFMCommunicate OK [20:04:22]wFMCommunicate request_size=255 [20:04:22]MH_SAM_APDU [20:04: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 CC 9C 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 47 64 02 00 35 04 06 00 05 [20:04:22]Write to MH i2c: E2 02 01 99 84 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 CC 9C 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 47 64 02 00 35 04 06 00 05 00 00 FE [20:04:22]Write i2c OK [20:04:22]MH_I2C_Read... [20:04:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:04:22]Read from MH i2c: E2 [20:04:22]MH_I2C_Read... [20:04:22]Read from MH i2c: E2 03 00 [20:04:22]MH_I2C_Read... [20:04:22]Read from MH i2c: E2 03 00 99 84 00 90 00 91 [20:04:22]RAPDU: 90 00 [20:04:22]wFMCommunicate OK [20:04:22]wFMCommunicate request_size=10 [20:04:22]MH_SAM_APDU [20:04:22]CAPDU: 80 0D 02 02 05 2F A2 C4 D3 7E [20:04:22]Write to MH i2c: E2 0D 00 9A 84 80 0D 02 02 05 00 2F A2 C4 D3 7E 00 00 88 [20:04:22]Write i2c OK [20:04:22]MH_I2C_Read... [20:04:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:04:22]Read from MH i2c: E2 [20:04:22]MH_I2C_Read... [20:04:22]Read from MH i2c: E2 03 00 [20:04:22]MH_I2C_Read... [20:04:22]Read from MH i2c: E2 03 00 9A 84 00 90 00 92 [20:04:22]RAPDU: 90 00 [20:04:22]wFMCommunicate OK [20:04:22]wFMCommunicate request_size=4 [20:04:22]MH_SAM_APDU [20:04:22]CAPDU: 80 0D 03 02 [20:04:22]Write to MH i2c: E2 08 00 9B 84 80 0D 03 02 00 00 00 00 9A [20:04:22]Write i2c OK [20:04:22]MH_I2C_Read... [20:04:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:04:22]Read from MH i2c: E2 [20:04:22]MH_I2C_Read... [20:04:22]Read from MH i2c: E2 0B 00 [20:04:22]MH_I2C_Read... [20:04:22]Read from MH i2c: E2 0B 00 9B 84 00 A6 82 29 F1 3F FC 8C C5 90 00 69 [20:04:22]RAPDU: A6 82 29 F1 3F FC 8C C5 90 00 [20:04:22]wFMCommunicate OK [20:04:22]SAM_PROTO_SignData done [20:04:22]FM_MakeSignedData done [20:04:22]CreateOFDProtocolMessage [20:04:22]wFMCommunicate request_size=4 [20:04:22]MH_SAM_APDU [20:04:22]CAPDU: 80 11 00 00 [20:04:22]Write to MH i2c: E2 08 00 9C 84 80 11 00 00 00 00 00 00 9A [20:04:22]Write i2c OK [20:04:22]MH_I2C_Read... [20:04:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:04:22]Read from MH i2c: E2 [20:04:22]MH_I2C_Read... [20:04:22]Read from MH i2c: E2 17 00 [20:04:22]MH_I2C_Read... [20:04:22]Read from MH i2c: E2 17 00 9C 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 EF [20:04:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [20:04:22]wFMCommunicate OK [20:04:22]CreateOFDProtocolMessage done [20:04:22]OFDSenderStorePacket 156743 [20:04:22]StoreOFDPacket docnum=156743 [20:04:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 2F 28 07 01 79 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 CC 9C 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 47 64 02 00 35 04 06 00 05 2F A2 C4 D3 7E A6 82 29 F1 3F FC 8C C5 [20:04:22]CheckFolder [20:04:22]dirname=/storage/ofd_packets [20:04:22]CheckFolder done [20:04:22]ProducePacketName [20:04:22]name=ofd_packets/00156743 [20:04:22]NVStorageSaveData ofd_packets/00156743 [20:04:22]File name is /storage/ofd_packets/00156743 [20:04:22]Write 301 bytes [20:04:22]NVStorageSaveData done [20:04:22]OFDSenderStorePacket done [20:04:22]KKMCreateOFDPacket done [20:04:22]NVStorageSaveData kkm_last_timestamp [20:04:22]File name is /storage/kkm_last_timestamp [20:04:22]Write 4 bytes [20:04:22]NVStorageSaveData done [20:04:22]ExternCall_PrintAddStr [20:04:22]wPrintStart [20:04:22]Write to MH i2c: 01 00 00 9D 84 21 [20:04:22]Write i2c OK [20:04:22]MH_I2C_Read... [20:04:22]Read from MH i2c: 01 [20:04:22]MH_I2C_Read... [20:04:22]Read from MH i2c: 01 07 00 [20:04:22]MH_I2C_Read... [20:04:22]Read from MH i2c: 01 07 00 9D 84 00 00 00 00 00 FF 0F 36 [20:04:22]RasterBufferAndPrint [20:04:22]line Счет N : (1)99557 [20:04:22]line ИНН: 02508201610067 [20:04:22]line Контрольно-Кассовый Чек [20:04:22]line ПРОДАЖА [20:04:22]line ТРК (МРК, ГНК) : 11 [20:04:22]line Товар: 2710124130 [20:04:22]line Аи-92-К-5 [20:04:22]line 4.490 * 66.90 [20:04:22]line = 300.38 [20:04:22]line НДС 12% НСП 1% [20:04:22]line > о реализуемом товаре [20:04:22]line ОКРУГЛЕНИЕ: -0.38 [20:04:22]line ИТОГО: 300.00 [20:04:22]line Внесено: 300.00 [20:04:22]line СДАЧА: 0.00 [20:04:22]line НСП 1% : 2.66 [20:04:22]line НДС 12% : 31.90 [20:04:22]line Наличными: 300.00 [20:04:22]line Безнал.: 0.00 [20:04:22]line Место: АЗС № 143 "Партнер Нефть" [20:04:22]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [20:04:22]line СНО: Общий режим [20:04:22]line Чек 294 27.10.2024 20:04 [20:04:22]line Смена: 537 ФФД: 1.0 [20:04:22]line ЗНМ: 0300000096 [20:04:22]line РНМ: 0000000000091693 [20:04:22]line Версия ККМ: 001 [20:04:22]line ФМ: 0000000000871792 [20:04:22]line ФД: 156743 [20:04:22]line ФПД: 5702152409982 [20:04:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T200428&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156743&fm=5702152409982&tin=02508201610067®Number=0000000000091693&sum=30000 [20:04:23]OFD Sender: Processing packet 156743 [packets to send 31, broken 30] [20:04:23]ProducePacketName [20:04:23]name=ofd_packets/00156743 [20:04:23]OFD Sender: To server: pG, [20:04:23]CommunicateWithHost lk.salyk.kg:30040 [20:04:23]ConnectInit lk.salyk.kg [20:04:23]written 0, free lines is 4095 [20:04:23]Connected sock=10 [20:04:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 2F 28 07 01 79 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 01 00 00 F4 03 04 00 CC 9C 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 47 64 02 00 35 04 06 00 05 2F A2 C4 D3 7E A6 82 29 F1 3F FC 8C C5 [20:04:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 79 E1 47 00 FB B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 47 64 02 00 F4 03 04 00 3B 42 1E 67 B6 04 01 00 00 EE B0 B8 AE 7C 0A 61 07 [20:04:23]CommunicateWithHost err = 0 [20:04:23]CheckOFDResponse [20:04:23]1017 (14) - 77093643461234 [20:04:23]1041 (16) - 0000000000871792 [20:04:23]1040 (4) - 156743 [20:04:23]1012 (4) - 27.10.2024 13:38 [20:04:23]1206 (1) - 0 [20:04:23]OFD Sender: Remove packet 156743 [20:04:23]ProducePacketName [20:04:23]name=ofd_packets/00156743 [20:04:23]NVStorageDeleteData [20:04:23]Write to MH i2c: 01 00 00 C8 84 4C [20:04:23]Write i2c OK [20:04:23]MH_I2C_Read... [20:04:23]Read from MH i2c: 01 [20:04:23]MH_I2C_Read... [20:04:23]Read from MH i2c: 01 07 00 [20:04:23]MH_I2C_Read... [20:04:23]Read from MH i2c: 01 07 00 C8 84 00 00 00 00 00 F7 0C 56 [20:04:23]RasterBufferAndPrint [20:04:23]line [20:04:23]line [20:04:23]line [20:04:23]line [20:04:23]line [20:04:23]written 0, free lines is 3326 [20:04:23]process_action close_receipt done [20:04:23]requested_data is exist [20:04:23]produce_requested_data [20:04:23]requested_item fm.sn is exist - process it [20:04:23]wFMCommunicate request_size=4 [20:04:23]MH_SAM_APDU [20:04:23]CAPDU: 80 11 00 00 [20:04:23]Write to MH i2c: E2 08 00 CF 84 80 11 00 00 00 00 00 00 CD [20:04:23]Write i2c OK [20:04:23]MH_I2C_Read... [20:04:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:04:23]Read from MH i2c: E2 [20:04:23]MH_I2C_Read... [20:04:23]Read from MH i2c: E2 17 00 [20:04:23]MH_I2C_Read... [20:04:23]Read from MH i2c: E2 17 00 CF 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 22 [20:04:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [20:04:23]wFMCommunicate OK [20:04:23]requested_item fd.num is exist - process it [20:04:23]SAM_PROTO_GetFieldsCounters [20:04:23]wFMCommunicate request_size=4 [20:04:23]MH_SAM_APDU [20:04:23]CAPDU: 80 13 00 00 [20:04:23]Write to MH i2c: E2 08 00 D0 84 80 13 00 00 00 00 00 00 D0 [20:04:23]Write i2c OK [20:04:23]MH_I2C_Read... [20:04:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:04:23]Read from MH i2c: E2 [20:04:23]MH_I2C_Read... [20:04:23]Read from MH i2c: E2 62 00 [20:04:23]MH_I2C_Read... [20:04:23]Read from MH i2c: E2 62 00 D0 84 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 47 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 27 01 00 00 19 04 04 00 00 00 00 00 90 00 33 [20:04:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 47 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 27 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:04:23]wFMCommunicate OK [20:04:23]SAM_PROTO_GetFieldsCounters done [20:04:23]requested_item shift.num is exist - process it [20:04:23]requested_item shift.opened is exist - process it [20:04:23]req_shift_opened [20:04:23]FM_GetShiftState [20:04:23]SAM_PROTO_GetShiftState [20:04:23]wFMCommunicate request_size=4 [20:04:23]MH_SAM_APDU [20:04:23]CAPDU: 80 13 01 00 [20:04:23]Write to MH i2c: E2 08 00 D1 84 80 13 01 00 00 00 00 00 D2 [20:04:23]Write i2c OK [20:04:23]MH_I2C_Read... [20:04:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:04:23]Read from MH i2c: E2 [20:04:23]MH_I2C_Read... [20:04:23]Read from MH i2c: E2 0E 00 [20:04:23]MH_I2C_Read... [20:04:23]Read from MH i2c: E2 0E 00 D1 84 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 9F [20:04:23]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [20:04:23]wFMCommunicate OK [20:04:23]SAM_PROTO_GetShiftState done [20:04:23]FM_GetShiftState done [20:04:23]req_shift_opened done [20:04:23]requested_item shift.open_date is exist - process it [20:04:23]req_shift_open_date [20:04:23]req_shift_open_date done [20:04:23]produce_requested_data done [20:04:23]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156743,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [20:04:23]process_action_free close_receipt [20:04:23]json_value_free [20:04:23]json_value_free done [20:04:23]process_json_proto returns [20:04:23]Send response to host [20:04:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156743,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [20:04:23]free response buf [20:04:23]execute_script done [20:04:23]execute_script returns [20:04:23]free content buf [20:04:23]Sock 8.Close socket [20:04:23]Sock 8.Thread stoped [20:04:24]OFD Sender: No OFD packet to send [20:04:29]OFD Sender: No OFD packet to send [20:04:34]OFD Sender: No OFD packet to send [20:04:39]OFD Sender: No OFD packet to send [20:04:44]OFD Sender: No OFD packet to send [20:04:49]OFD Sender: No OFD packet to send [20:04:54]OFD Sender: No OFD packet to send [20:04:59]OFD Sender: No OFD packet to send [20:05:04]OFD Sender: No OFD packet to send [20:05:09]OFD Sender: No OFD packet to send [20:05:14]OFD Sender: No OFD packet to send [20:05:19]OFD Sender: No OFD packet to send [20:05:24]OFD Sender: No OFD packet to send [20:05:29]OFD Sender: No OFD packet to send [20:05:34]OFD Sender: No OFD packet to send [20:05:39]OFD Sender: No OFD packet to send [20:05:44]OFD Sender: No OFD packet to send [20:05:49]OFD Sender: No OFD packet to send [20:05:54]OFD Sender: No OFD packet to send [20:05:59]OFD Sender: No OFD packet to send [20:06:04]OFD Sender: No OFD packet to send [20:06:09]OFD Sender: No OFD packet to send [20:06:14]OFD Sender: No OFD packet to send [20:06:19]OFD Sender: No OFD packet to send [20:06:24]OFD Sender: No OFD packet to send [20:06:29]OFD Sender: No OFD packet to send [20:06:34]OFD Sender: No OFD packet to send [20:06:39]OFD Sender: No OFD packet to send [20:06:44]OFD Sender: No OFD packet to send [20:06:49]OFD Sender: No OFD packet to send [20:06:54]OFD Sender: No OFD packet to send [20:06:59]OFD Sender: No OFD packet to send [20:07:04]OFD Sender: No OFD packet to send [20:07:09]OFD Sender: No OFD packet to send [20:07:14]OFD Sender: No OFD packet to send [20:07:19]OFD Sender: No OFD packet to send [20:07:24]OFD Sender: No OFD packet to send [20:07:29]OFD Sender: No OFD packet to send [20:07:34]OFD Sender: No OFD packet to send [20:07:39]OFD Sender: No OFD packet to send [20:07:44]OFD Sender: No OFD packet to send [20:07:49]OFD Sender: No OFD packet to send [20:07:54]OFD Sender: No OFD packet to send [20:07:59]OFD Sender: No OFD packet to send [20:08:04]OFD Sender: No OFD packet to send [20:08:09]OFD Sender: No OFD packet to send [20:08:14]OFD Sender: No OFD packet to send [20:08:19]OFD Sender: No OFD packet to send [20:08:24]OFD Sender: No OFD packet to send [20:08:29]OFD Sender: No OFD packet to send [20:08:34]OFD Sender: No OFD packet to send [20:08:39]OFD Sender: No OFD packet to send [20:08:44]OFD Sender: No OFD packet to send [20:08:49]OFD Sender: No OFD packet to send [20:08:54]OFD Sender: No OFD packet to send [20:08:59]OFD Sender: No OFD packet to send [20:09:04]OFD Sender: No OFD packet to send [20:09:09]OFD Sender: No OFD packet to send [20:09:14]OFD Sender: No OFD packet to send [20:09:19]OFD Sender: No OFD packet to send [20:09:24]OFD Sender: No OFD packet to send [20:09:29]OFD Sender: No OFD packet to send [20:09:34]OFD Sender: No OFD packet to send [20:09:39]OFD Sender: No OFD packet to send [20:09:44]OFD Sender: No OFD packet to send [20:09:49]OFD Sender: No OFD packet to send [20:09:54]OFD Sender: No OFD packet to send [20:09:59]OFD Sender: No OFD packet to send [20:10:04]OFD Sender: No OFD packet to send [20:10:09]OFD Sender: No OFD packet to send [20:10:14]OFD Sender: No OFD packet to send [20:10:19]OFD Sender: No OFD packet to send [20:10:24]OFD Sender: No OFD packet to send [20:10:29]OFD Sender: No OFD packet to send [20:10:34]OFD Sender: No OFD packet to send [20:10:39]OFD Sender: No OFD packet to send [20:10:44]OFD Sender: No OFD packet to send [20:10:49]OFD Sender: No OFD packet to send [20:10:54]OFD Sender: No OFD packet to send [20:10:59]OFD Sender: No OFD packet to send [20:11:04]OFD Sender: No OFD packet to send [20:11:09]OFD Sender: No OFD packet to send [20:11:14]OFD Sender: No OFD packet to send [20:11:19]OFD Sender: No OFD packet to send [20:11:24]OFD Sender: No OFD packet to send [20:11:29]OFD Sender: No OFD packet to send [20:11:34]OFD Sender: No OFD packet to send [20:11:39]OFD Sender: No OFD packet to send [20:11:44]OFD Sender: No OFD packet to send [20:11:49]OFD Sender: No OFD packet to send [20:11:54]OFD Sender: No OFD packet to send [20:11:59]OFD Sender: No OFD packet to send [20:12:04]OFD Sender: No OFD packet to send [20:12:09]OFD Sender: No OFD packet to send [20:12:14]OFD Sender: No OFD packet to send [20:12:19]OFD Sender: No OFD packet to send [20:12:24]OFD Sender: No OFD packet to send [20:12:29]OFD Sender: No OFD packet to send [20:12:34]OFD Sender: No OFD packet to send [20:12:39]OFD Sender: No OFD packet to send [20:12:44]OFD Sender: No OFD packet to send [20:12:49]OFD Sender: No OFD packet to send [20:12:54]OFD Sender: No OFD packet to send [20:12:59]OFD Sender: No OFD packet to send [20:13:04]OFD Sender: No OFD packet to send [20:13:09]OFD Sender: No OFD packet to send [20:13:14]OFD Sender: No OFD packet to send [20:13:19]OFD Sender: No OFD packet to send [20:13:24]OFD Sender: No OFD packet to send [20:13:29]OFD Sender: No OFD packet to send [20:13:34]OFD Sender: No OFD packet to send [20:13:39]OFD Sender: No OFD packet to send [20:13:44]OFD Sender: No OFD packet to send [20:13:49]OFD Sender: No OFD packet to send [20:13:54]OFD Sender: No OFD packet to send [20:13:59]OFD Sender: No OFD packet to send [20:14:04]OFD Sender: No OFD packet to send [20:14:09]OFD Sender: No OFD packet to send [20:14:14]OFD Sender: No OFD packet to send [20:14:19]OFD Sender: No OFD packet to send [20:14:21]accept exits with 9 [20:14:21]New connection [20:14:21]New thread 3066834276 created [20:14:21]Thread 3066977636 joined [20:14:21]Waiting for new connection... [20:14:21] Sock 9.Parse request [20:14:21]Sock 9.Check first char [20:14:21]Sock 9.First char is OK [20:14:21]request: POST /json_proto HTTP/1.0 [20:14:21]Method: POST [20:14:21]URL: /json_proto [20:14:21]Method is POST - this is cgi request [20:14:21]url: /json_proto [20:14:21]query_string will be loaded in cgi processing [20:14:21]execute_cgi json_proto POST (null) [20:14:21]execute_cgi path=json_proto method=POST [20:14:21]POST find Content-Length [20:14:21]Host: 172.17.63.3:8080 [20:14:21]Content-Length: 765 [20:14:21]Content-Type: application/json [20:14:21] [20:14:21]POST finish read [20:14:21]Found Content-Length = 765 [20:14:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99558", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.040, "sum" : 270.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: Mbank", "payments": [ { "type": 1, "sum" : 270.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:14:21]execute_script... [20:14: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)99558", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.040, "sum" : 270.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: Mbank", "payments": [ { "type": 1, "sum" : 270.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:14:21]POST & json_proto [20:14:21]process_json_proto [20:14:21]json parsed OK: [20:14:21]protocol is kg_v1.0 [20:14:21]action value=close_receipt [20:14:21]process_action close_receipt [20:14:21]cmd_close_receipt [20:14:21]MH_GetDate [20:14:21]Write to MH i2c: F0 00 00 D2 84 45 [20:14:21]Write i2c OK [20:14:21]MH_I2C_Read... [20:14:21]Read from MH i2c: F0 [20:14:21]MH_I2C_Read... [20:14:21]Read from MH i2c: F0 09 00 [20:14:21]MH_I2C_Read... [20:14:21]Read from MH i2c: F0 09 00 D2 84 00 24 9F 1E 67 50 D1 6C 64 87 [20:14:21]GetLastDocTimeStamp 1730059468 [20:14:21]current date 1730060068 [20:14:21]FM_GetShiftState [20:14:21]SAM_PROTO_GetShiftState [20:14:21]wFMCommunicate request_size=4 [20:14:21]MH_SAM_APDU [20:14:21]CAPDU: 80 13 01 00 [20:14:21]Write to MH i2c: E2 08 00 D3 84 80 13 01 00 00 00 00 00 D4 [20:14:21]Write i2c OK [20:14:21]MH_I2C_Read... [20:14:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:14:21]Read from MH i2c: E2 [20:14:21]MH_I2C_Read... [20:14:21]Read from MH i2c: E2 0E 00 [20:14:21]MH_I2C_Read... [20:14:21]Read from MH i2c: E2 0E 00 D3 84 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 A1 [20:14:21]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [20:14:21]wFMCommunicate OK [20:14:21]SAM_PROTO_GetShiftState done [20:14:21]FM_GetShiftState done [20:14:21]opened in 1729989044 [20:14:21]opened+sec_in_day 1730075444 [20:14:21]quantity*price = 27027 [20:14:21]sum+1 = 27029 [20:14:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 270.28 НСП 1% : 2.39 НДС 12% : 28.70 Наличными: 0.00 Безнал.: 270.28 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 295 27.10.2024 20:14 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 156744 ФПД: 254017268372277 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T201428&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156744&fm=254017268372277&tin=02508201610067®Number=0000000000091693&sum=27028 [20:14:22]StoreToDocumentArchive [20:14:22]shift 537 fd 156744 [20:14:22]save to /storage/0537/doc_00156744 [20:14:22]save last doc name /storage/0537/doc_00156744 to /storage/kkm_last_doc_name [20:14:22]save OK [20:14:22]Clear old archive folders... [20:14:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:14:22]tlvbuf is 01827ED0 [20:14:22]SAM_PROTO_ClearQueue [20:14:22]wFMCommunicate request_size=4 [20:14:22]MH_SAM_APDU [20:14:22]CAPDU: 80 09 00 00 [20:14:22]Write to MH i2c: E2 08 00 E0 84 80 09 00 00 00 00 00 00 D6 [20:14:22]Write i2c OK [20:14:22]MH_I2C_Read... [20:14:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:14:22]Read from MH i2c: E2 [20:14:22]MH_I2C_Read... [20:14:22]Read from MH i2c: E2 03 00 [20:14:22]MH_I2C_Read... [20:14:22]Read from MH i2c: E2 03 00 E0 84 00 90 00 D8 [20:14:22]RAPDU: 90 00 [20:14:22]wFMCommunicate OK [20:14:22]SAM_PROTO_ClearQueue done [20:14:22]KKMCreateOFDPacket [20:14:22]OFDProtocolAddRootSTLVToBuf [20:14:22]FM_MakeSignedData [20:14:22]FM_MakeSignedData [20:14:22]SAM_PROTO_SignData [20:14:22]wFMCommunicate request_size=4 [20:14:22]MH_SAM_APDU [20:14:22]CAPDU: 80 0D 01 02 [20:14:22]Write to MH i2c: E2 08 00 E1 84 80 0D 01 02 00 00 00 00 DE [20:14:22]Write i2c OK [20:14:22]MH_I2C_Read... [20:14:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:14:22]Read from MH i2c: E2 [20:14:22]MH_I2C_Read... [20:14:22]Read from MH i2c: E2 03 00 [20:14:22]MH_I2C_Read... [20:14:22]Read from MH i2c: E2 03 00 E1 84 00 90 00 D9 [20:14:22]RAPDU: 90 00 [20:14:22]wFMCommunicate OK [20:14:22]wFMCommunicate request_size=255 [20:14:22]MH_SAM_APDU [20:14: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 C8 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 94 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 94 69 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 24 9F 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 48 64 02 00 35 04 06 00 E7 [20:14:22]Write to MH i2c: E2 02 01 E2 84 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 94 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 94 69 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 24 9F 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 48 64 02 00 35 04 06 00 E7 00 00 47 [20:14:22]Write i2c OK [20:14:22]MH_I2C_Read... [20:14:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:14:22]Read from MH i2c: E2 [20:14:22]MH_I2C_Read... [20:14:22]Read from MH i2c: E2 03 00 [20:14:22]MH_I2C_Read... [20:14:22]Read from MH i2c: E2 03 00 E2 84 00 90 00 DA [20:14:22]RAPDU: 90 00 [20:14:22]wFMCommunicate OK [20:14:22]wFMCommunicate request_size=10 [20:14:22]MH_SAM_APDU [20:14:22]CAPDU: 80 0D 02 02 05 07 01 0C 53 35 [20:14:22]Write to MH i2c: E2 0D 00 E3 84 80 0D 02 02 05 00 07 01 0C 53 35 00 00 87 [20:14:22]Write i2c OK [20:14:22]MH_I2C_Read... [20:14:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:14:22]Read from MH i2c: E2 [20:14:22]MH_I2C_Read... [20:14:22]Read from MH i2c: E2 03 00 [20:14:22]MH_I2C_Read... [20:14:22]Read from MH i2c: E2 03 00 E3 84 00 90 00 DB [20:14:22]RAPDU: 90 00 [20:14:22]wFMCommunicate OK [20:14:22]wFMCommunicate request_size=4 [20:14:22]MH_SAM_APDU [20:14:22]CAPDU: 80 0D 03 02 [20:14:22]Write to MH i2c: E2 08 00 E4 84 80 0D 03 02 00 00 00 00 E3 [20:14:22]Write i2c OK [20:14:22]MH_I2C_Read... [20:14:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:14:22]Read from MH i2c: E2 [20:14:22]MH_I2C_Read... [20:14:22]Read from MH i2c: E2 0B 00 [20:14:22]MH_I2C_Read... [20:14:22]Read from MH i2c: E2 0B 00 E4 84 00 00 B9 AC D8 4F 49 B8 DA 90 00 4B [20:14:22]RAPDU: 00 B9 AC D8 4F 49 B8 DA 90 00 [20:14:22]wFMCommunicate OK [20:14:22]SAM_PROTO_SignData done [20:14:22]FM_MakeSignedData done [20:14:22]CreateOFDProtocolMessage [20:14:22]wFMCommunicate request_size=4 [20:14:22]MH_SAM_APDU [20:14:22]CAPDU: 80 11 00 00 [20:14:22]Write to MH i2c: E2 08 00 E5 84 80 11 00 00 00 00 00 00 E3 [20:14:22]Write i2c OK [20:14:22]MH_I2C_Read... [20:14:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:14:22]Read from MH i2c: E2 [20:14:22]MH_I2C_Read... [20:14:22]Read from MH i2c: E2 17 00 [20:14:22]MH_I2C_Read... [20:14:22]Read from MH i2c: E2 17 00 E5 84 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 38 [20:14:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [20:14:22]wFMCommunicate OK [20:14:22]CreateOFDProtocolMessage done [20:14:22]OFDSenderStorePacket 156744 [20:14:22]StoreOFDPacket docnum=156744 [20:14:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 0F 26 07 01 C0 46 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 94 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 94 69 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 24 9F 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 48 64 02 00 35 04 06 00 E7 07 01 0C 53 35 00 B9 AC D8 4F 49 B8 DA [20:14:22]CheckFolder [20:14:22]dirname=/storage/ofd_packets [20:14:22]CheckFolder done [20:14:22]ProducePacketName [20:14:22]name=ofd_packets/00156744 [20:14:22]NVStorageSaveData ofd_packets/00156744 [20:14:22]File name is /storage/ofd_packets/00156744 [20:14:22]Write 301 bytes [20:14:22]NVStorageSaveData done [20:14:22]OFDSenderStorePacket done [20:14:22]KKMCreateOFDPacket done [20:14:22]NVStorageSaveData kkm_last_timestamp [20:14:22]File name is /storage/kkm_last_timestamp [20:14:22]Write 4 bytes [20:14:22]NVStorageSaveData done [20:14:22]ExternCall_PrintAddStr [20:14:22]wPrintStart [20:14:22]Write to MH i2c: 01 00 00 E6 84 6A [20:14:22]Write i2c OK [20:14:22]MH_I2C_Read... [20:14:22]Read from MH i2c: 01 [20:14:22]MH_I2C_Read... [20:14:22]Read from MH i2c: 01 07 00 [20:14:22]MH_I2C_Read... [20:14:22]Read from MH i2c: 01 07 00 E6 84 00 00 00 00 00 FF 0F 7F [20:14:22]RasterBufferAndPrint [20:14:22]line Счет N : (1)99558 [20:14:22]line ИНН: 02508201610067 [20:14:22]line Контрольно-Кассовый Чек [20:14:22]line ПРОДАЖА [20:14:22]line ТРК (МРК, ГНК) : 11 [20:14:22]line Товар: 2710124130 [20:14:22]line Аи-92-К-5 [20:14:22]line 4.040 * 66.90 [20:14:22]line = 270.28 [20:14:22]line НДС 12% НСП 1% [20:14:22]line > о реализуемом товаре [20:14:22]line ИТОГО: 270.28 [20:14:22]line НСП 1% : 2.39 [20:14:22]line НДС 12% : 28.70 [20:14:22]line Наличными: 0.00 [20:14:22]line Безнал.: 270.28 [20:14:22]line Место: АЗС № 143 "Партнер Нефть" [20:14:22]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [20:14:22]line СНО: Общий режим [20:14:22]line Чек 295 27.10.2024 20:14 [20:14:22]line Смена: 537 ФФД: 1.0 [20:14:22]line ЗНМ: 0300000096 [20:14:22]line РНМ: 0000000000091693 [20:14:22]line Версия ККМ: 001 [20:14:22]line Платежная система: Mbank [20:14:22]line ФМ: 0000000000871792 [20:14:22]line ФД: 156744 [20:14:22]line ФПД: 254017268372277 [20:14:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T201428&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156744&fm=254017268372277&tin=02508201610067®Number=0000000000091693&sum=27028 [20:14:22]written 0, free lines is 4095 [20:14:22]OFD Sender: Processing packet 156744 [packets to send 31, broken 30] [20:14:22]ProducePacketName [20:14:22]name=ofd_packets/00156744 [20:14:23]OFD Sender: To server: pG, [20:14:23]CommunicateWithHost lk.salyk.kg:30040 [20:14:23]ConnectInit lk.salyk.kg [20:14:23]Connected sock=10 [20:14:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 0F 26 07 01 C0 46 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 94 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 94 69 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 24 9F 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 48 64 02 00 35 04 06 00 E7 07 01 0C 53 35 00 B9 AC D8 4F 49 B8 DA [20:14:23]Write to MH i2c: 01 00 00 0F 85 94 [20:14:23]Write i2c OK [20:14:23]MH_I2C_Read... [20:14:23]Read from MH i2c: 01 [20:14:23]MH_I2C_Read... [20:14:23]Read from MH i2c: 01 07 00 [20:14:23]MH_I2C_Read... [20:14:23]Read from MH i2c: 01 07 00 0F 85 00 00 00 00 00 20 0D C8 [20:14:23]RasterBufferAndPrint [20:14:23]line [20:14:23]line [20:14:23]line [20:14:23]line [20:14:23]line [20:14:23]written 0, free lines is 3366 [20:14:23]process_action close_receipt done [20:14:23]requested_data is exist [20:14:23]produce_requested_data [20:14:23]requested_item fm.sn is exist - process it [20:14:23]wFMCommunicate request_size=4 [20:14:23]MH_SAM_APDU [20:14:23]CAPDU: 80 11 00 00 [20:14:23]Write to MH i2c: E2 08 00 16 85 80 11 00 00 00 00 00 00 15 [20:14:23]Write i2c OK [20:14:23]MH_I2C_Read... [20:14:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:14:23]Read from MH i2c: E2 [20:14:23]MH_I2C_Read... [20:14:23]Read from MH i2c: E2 17 00 [20:14:23]MH_I2C_Read... [20:14:23]Read from MH i2c: E2 17 00 16 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 6A [20:14:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [20:14:23]wFMCommunicate OK [20:14:23]requested_item fd.num is exist - process it [20:14:23]SAM_PROTO_GetFieldsCounters [20:14:23]wFMCommunicate request_size=4 [20:14:23]MH_SAM_APDU [20:14:23]CAPDU: 80 13 00 00 [20:14:23]Write to MH i2c: E2 08 00 17 85 80 13 00 00 00 00 00 00 18 [20:14:23]Write i2c OK [20:14:23]MH_I2C_Read... [20:14:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:14:23]Read from MH i2c: E2 [20:14:23]MH_I2C_Read... [20:14:23]Read from MH i2c: E2 62 00 [20:14:23]MH_I2C_Read... [20:14:23]Read from MH i2c: E2 62 00 17 85 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 48 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 27 01 00 00 5E 04 04 00 27 01 00 00 57 04 04 00 28 01 00 00 19 04 04 00 00 00 00 00 90 00 7F [20:14:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 48 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 27 01 00 00 5E 04 04 00 27 01 00 00 57 04 04 00 28 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:14:23]wFMCommunicate OK [20:14:23]SAM_PROTO_GetFieldsCounters done [20:14:23]requested_item shift.num is exist - process it [20:14:23]requested_item shift.opened is exist - process it [20:14:23]req_shift_opened [20:14:23]FM_GetShiftState [20:14:23]SAM_PROTO_GetShiftState [20:14:23]wFMCommunicate request_size=4 [20:14:23]MH_SAM_APDU [20:14:23]CAPDU: 80 13 01 00 [20:14:23]Write to MH i2c: E2 08 00 18 85 80 13 01 00 00 00 00 00 1A [20:14:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 76 FC 47 00 C7 C4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 48 64 02 00 F4 03 04 00 93 44 1E 67 B6 04 01 00 00 5D 9E 6E A9 85 D1 53 82 [20:14:23]CommunicateWithHost err = 0 [20:14:23]CheckOFDResponse [20:14:23]1017 (14) - 77093643461234 [20:14:23]1041 (16) - 0000000000871792 [20:14:23]1040 (4) - 156744 [20:14:23]1012 (4) - 27.10.2024 13:48 [20:14:23]1206 (1) - 0 [20:14:23]OFD Sender: Remove packet 156744 [20:14:23]ProducePacketName [20:14:23]name=ofd_packets/00156744 [20:14:23]NVStorageDeleteData [20:14:23]Write i2c OK [20:14:23]MH_I2C_Read... [20:14:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:14:23]Read from MH i2c: E2 [20:14:23]MH_I2C_Read... [20:14:23]Read from MH i2c: E2 0E 00 [20:14:23]MH_I2C_Read... [20:14:23]Read from MH i2c: E2 0E 00 18 85 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 E7 [20:14:23]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [20:14:23]wFMCommunicate OK [20:14:23]SAM_PROTO_GetShiftState done [20:14:23]FM_GetShiftState done [20:14:23]req_shift_opened done [20:14:23]requested_item shift.open_date is exist - process it [20:14:23]req_shift_open_date [20:14:23]req_shift_open_date done [20:14:23]produce_requested_data done [20:14:23]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156744,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [20:14:23]process_action_free close_receipt [20:14:23]json_value_free [20:14:23]json_value_free done [20:14:23]process_json_proto returns [20:14:23]Send response to host [20:14:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156744,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [20:14:23]free response buf [20:14:23]execute_script done [20:14:23]execute_script returns [20:14:23]free content buf [20:14:23]Sock 9.Close socket [20:14:23]Sock 9.Thread stoped [20:14:23]OFD Sender: No OFD packet to send [20:14:28]OFD Sender: No OFD packet to send [20:14:34]OFD Sender: No OFD packet to send [20:14:39]OFD Sender: No OFD packet to send [20:14:44]OFD Sender: No OFD packet to send [20:14:49]OFD Sender: No OFD packet to send [20:14:54]OFD Sender: No OFD packet to send [20:14:59]OFD Sender: No OFD packet to send [20:15:04]OFD Sender: No OFD packet to send [20:15:09]OFD Sender: No OFD packet to send [20:15:14]OFD Sender: No OFD packet to send [20:15:19]OFD Sender: No OFD packet to send [20:15:24]OFD Sender: No OFD packet to send [20:15:29]OFD Sender: No OFD packet to send [20:15:34]OFD Sender: No OFD packet to send [20:15:39]OFD Sender: No OFD packet to send [20:15:44]OFD Sender: No OFD packet to send [20:15:49]OFD Sender: No OFD packet to send [20:15:54]OFD Sender: No OFD packet to send [20:15:59]OFD Sender: No OFD packet to send [20:16:04]OFD Sender: No OFD packet to send [20:16:09]OFD Sender: No OFD packet to send [20:16:14]OFD Sender: No OFD packet to send [20:16:19]OFD Sender: No OFD packet to send [20:16:24]OFD Sender: No OFD packet to send [20:16:29]OFD Sender: No OFD packet to send [20:16:34]OFD Sender: No OFD packet to send [20:16:39]OFD Sender: No OFD packet to send [20:16:44]OFD Sender: No OFD packet to send [20:16:49]OFD Sender: No OFD packet to send [20:16:54]OFD Sender: No OFD packet to send [20:16:59]OFD Sender: No OFD packet to send [20:17:04]OFD Sender: No OFD packet to send [20:17:09]OFD Sender: No OFD packet to send [20:17:14]OFD Sender: No OFD packet to send [20:17:19]OFD Sender: No OFD packet to send [20:17:24]OFD Sender: No OFD packet to send [20:17:29]OFD Sender: No OFD packet to send [20:17:34]OFD Sender: No OFD packet to send [20:17:39]OFD Sender: No OFD packet to send [20:17:44]OFD Sender: No OFD packet to send [20:17:49]OFD Sender: No OFD packet to send [20:17:54]OFD Sender: No OFD packet to send [20:17:59]OFD Sender: No OFD packet to send [20:18:04]OFD Sender: No OFD packet to send [20:18:09]OFD Sender: No OFD packet to send [20:18:14]OFD Sender: No OFD packet to send [20:18:19]OFD Sender: No OFD packet to send [20:18:24]OFD Sender: No OFD packet to send [20:18:29]OFD Sender: No OFD packet to send [20:18:34]OFD Sender: No OFD packet to send [20:18:39]OFD Sender: No OFD packet to send [20:18:44]OFD Sender: No OFD packet to send [20:18:49]OFD Sender: No OFD packet to send [20:18:54]OFD Sender: No OFD packet to send [20:18:59]OFD Sender: No OFD packet to send [20:19:04]OFD Sender: No OFD packet to send [20:19:09]OFD Sender: No OFD packet to send [20:19:14]OFD Sender: No OFD packet to send [20:19:19]OFD Sender: No OFD packet to send [20:19:24]OFD Sender: No OFD packet to send [20:19:29]OFD Sender: No OFD packet to send [20:19:34]OFD Sender: No OFD packet to send [20:19:39]OFD Sender: No OFD packet to send [20:19:44]OFD Sender: No OFD packet to send [20:19:49]OFD Sender: No OFD packet to send [20:19:54]OFD Sender: No OFD packet to send [20:19:59]OFD Sender: No OFD packet to send [20:20:04]OFD Sender: No OFD packet to send [20:20:09]OFD Sender: No OFD packet to send [20:20:14]OFD Sender: No OFD packet to send [20:20:19]OFD Sender: No OFD packet to send [20:20:24]OFD Sender: No OFD packet to send [20:20:29]OFD Sender: No OFD packet to send [20:20:34]OFD Sender: No OFD packet to send [20:20:39]OFD Sender: No OFD packet to send [20:20:44]OFD Sender: No OFD packet to send [20:20:49]OFD Sender: No OFD packet to send [20:20:54]OFD Sender: No OFD packet to send [20:20:59]OFD Sender: No OFD packet to send [20:21:04]OFD Sender: No OFD packet to send [20:21:09]OFD Sender: No OFD packet to send [20:21:14]OFD Sender: No OFD packet to send [20:21:19]OFD Sender: No OFD packet to send [20:21:24]OFD Sender: No OFD packet to send [20:21:29]OFD Sender: No OFD packet to send [20:21:34]OFD Sender: No OFD packet to send [20:21:39]OFD Sender: No OFD packet to send [20:21:44]OFD Sender: No OFD packet to send [20:21:49]OFD Sender: No OFD packet to send [20:21:54]OFD Sender: No OFD packet to send [20:21:59]OFD Sender: No OFD packet to send [20:22:04]OFD Sender: No OFD packet to send [20:22:09]OFD Sender: No OFD packet to send [20:22:14]OFD Sender: No OFD packet to send [20:22:19]OFD Sender: No OFD packet to send [20:22:24]OFD Sender: No OFD packet to send [20:22:29]OFD Sender: No OFD packet to send [20:22:34]accept exits with 8 [20:22:34]New connection [20:22:34]New thread 3066977636 created [20:22:34]Thread 3066834276 joined [20:22:34]Waiting for new connection... [20:22:34] Sock 8.Parse request [20:22:34]Sock 8.Check first char [20:22:34]Sock 8.First char is OK [20:22:34]request: POST /json_proto HTTP/1.0 [20:22:34]Method: POST [20:22:34]URL: /json_proto [20:22:34]Method is POST - this is cgi request [20:22:34]url: /json_proto [20:22:34]query_string will be loaded in cgi processing [20:22:34]execute_cgi json_proto POST (null) [20:22:34]execute_cgi path=json_proto method=POST [20:22:34]POST find Content-Length [20:22:34]Host: 172.17.63.3:8080 [20:22:34]Content-Length: 676 [20:22:34]Content-Type: application/json [20:22:34] [20:22:34]POST finish read [20:22:34]Found Content-Length = 676 [20:22:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99559", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:22:34]execute_script... [20:22: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)99559", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:22:34]POST & json_proto [20:22:34]process_json_proto [20:22:34]json parsed OK: [20:22:34]protocol is kg_v1.0 [20:22:34]action value=close_receipt [20:22:34]process_action close_receipt [20:22:34]cmd_close_receipt [20:22:34]MH_GetDate [20:22:34]Write to MH i2c: F0 00 00 19 85 8D [20:22:34]Write i2c OK [20:22:34]MH_I2C_Read... [20:22:34]Read from MH i2c: F0 [20:22:34]MH_I2C_Read... [20:22:34]Read from MH i2c: F0 09 00 [20:22:34]MH_I2C_Read... [20:22:34]Read from MH i2c: F0 09 00 19 85 00 11 A1 1E 67 50 D1 6C 64 BE [20:22:34]GetLastDocTimeStamp 1730060068 [20:22:34]current date 1730060561 [20:22:34]FM_GetShiftState [20:22:34]SAM_PROTO_GetShiftState [20:22:34]wFMCommunicate request_size=4 [20:22:34]MH_SAM_APDU [20:22:34]CAPDU: 80 13 01 00 [20:22:34]Write to MH i2c: E2 08 00 1A 85 80 13 01 00 00 00 00 00 1C [20:22:34]Write i2c OK [20:22:34]MH_I2C_Read... [20:22:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:22:34]Read from MH i2c: E2 [20:22:34]MH_I2C_Read... [20:22:34]Read from MH i2c: E2 0E 00 [20:22:34]MH_I2C_Read... [20:22:34]Read from MH i2c: E2 0E 00 1A 85 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 E9 [20:22:34]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [20:22:34]wFMCommunicate OK [20:22:34]SAM_PROTO_GetShiftState done [20:22:34]FM_GetShiftState done [20:22:34]opened in 1729989044 [20:22:34]opened+sec_in_day 1730075444 [20:22:34]quantity*price = 30038 [20:22:34]sum+1 = 30039 [20:22:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 296 27.10.2024 20:22 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156745 ФПД: 135347572670364 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T202241&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156745&fm=135347572670364&tin=02508201610067®Number=0000000000091693&sum=30000 [20:22:35]StoreToDocumentArchive [20:22:35]shift 537 fd 156745 [20:22:35]save to /storage/0537/doc_00156745 [20:22:35]save last doc name /storage/0537/doc_00156745 to /storage/kkm_last_doc_name [20:22:35]save OK [20:22:35]Clear old archive folders... [20:22:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:22:35]tlvbuf is 01772040 [20:22:35]SAM_PROTO_ClearQueue [20:22:35]wFMCommunicate request_size=4 [20:22:35]MH_SAM_APDU [20:22:35]CAPDU: 80 09 00 00 [20:22:35]Write to MH i2c: E2 08 00 27 85 80 09 00 00 00 00 00 00 1E [20:22:35]Write i2c OK [20:22:35]MH_I2C_Read... [20:22:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:22:35]Read from MH i2c: E2 [20:22:35]MH_I2C_Read... [20:22:35]Read from MH i2c: E2 03 00 [20:22:35]MH_I2C_Read... [20:22:35]Read from MH i2c: E2 03 00 27 85 00 90 00 20 [20:22:35]RAPDU: 90 00 [20:22:35]wFMCommunicate OK [20:22:35]SAM_PROTO_ClearQueue done [20:22:35]KKMCreateOFDPacket [20:22:35]OFDProtocolAddRootSTLVToBuf [20:22:35]FM_MakeSignedData [20:22:35]FM_MakeSignedData [20:22:35]SAM_PROTO_SignData [20:22:35]wFMCommunicate request_size=4 [20:22:35]MH_SAM_APDU [20:22:35]CAPDU: 80 0D 01 02 [20:22:35]Write to MH i2c: E2 08 00 28 85 80 0D 01 02 00 00 00 00 26 [20:22:35]Write i2c OK [20:22:35]MH_I2C_Read... [20:22:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:22:35]Read from MH i2c: E2 [20:22:35]MH_I2C_Read... [20:22:35]Read from MH i2c: E2 03 00 [20:22:35]MH_I2C_Read... [20:22:35]Read from MH i2c: E2 03 00 28 85 00 90 00 21 [20:22:35]RAPDU: 90 00 [20:22:35]wFMCommunicate OK [20:22:35]wFMCommunicate request_size=255 [20:22:35]MH_SAM_APDU [20:22: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 11 A1 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 49 64 02 00 35 04 06 00 7B [20:22:35]Write to MH i2c: E2 02 01 29 85 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 11 A1 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 49 64 02 00 35 04 06 00 7B 00 00 53 [20:22:35]Write i2c OK [20:22:35]MH_I2C_Read... [20:22:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:22:35]Read from MH i2c: E2 [20:22:35]MH_I2C_Read... [20:22:35]Read from MH i2c: E2 03 00 [20:22:35]MH_I2C_Read... [20:22:35]Read from MH i2c: E2 03 00 29 85 00 90 00 22 [20:22:35]RAPDU: 90 00 [20:22:35]wFMCommunicate OK [20:22:35]wFMCommunicate request_size=10 [20:22:35]MH_SAM_APDU [20:22:35]CAPDU: 80 0D 02 02 05 19 0F FD 7F 9C [20:22:35]Write to MH i2c: E2 0D 00 2A 85 80 0D 02 02 05 00 19 0F FD 7F 9C 00 00 73 [20:22:35]Write i2c OK [20:22:35]MH_I2C_Read... [20:22:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:22:35]Read from MH i2c: E2 [20:22:35]MH_I2C_Read... [20:22:35]Read from MH i2c: E2 03 00 [20:22:35]MH_I2C_Read... [20:22:35]Read from MH i2c: E2 03 00 2A 85 00 90 00 23 [20:22:35]RAPDU: 90 00 [20:22:35]wFMCommunicate OK [20:22:35]wFMCommunicate request_size=4 [20:22:35]MH_SAM_APDU [20:22:35]CAPDU: 80 0D 03 02 [20:22:35]Write to MH i2c: E2 08 00 2B 85 80 0D 03 02 00 00 00 00 2B [20:22:35]Write i2c OK [20:22:35]MH_I2C_Read... [20:22:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:22:35]Read from MH i2c: E2 [20:22:35]MH_I2C_Read... [20:22:35]Read from MH i2c: E2 0B 00 [20:22:35]MH_I2C_Read... [20:22:35]Read from MH i2c: E2 0B 00 2B 85 00 B4 89 70 3C 36 87 F5 EE 90 00 B5 [20:22:35]RAPDU: B4 89 70 3C 36 87 F5 EE 90 00 [20:22:35]wFMCommunicate OK [20:22:35]SAM_PROTO_SignData done [20:22:35]FM_MakeSignedData done [20:22:35]CreateOFDProtocolMessage [20:22:35]wFMCommunicate request_size=4 [20:22:35]MH_SAM_APDU [20:22:35]CAPDU: 80 11 00 00 [20:22:35]Write to MH i2c: E2 08 00 2C 85 80 11 00 00 00 00 00 00 2B [20:22:35]Write i2c OK [20:22:35]MH_I2C_Read... [20:22:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:22:35]Read from MH i2c: E2 [20:22:35]MH_I2C_Read... [20:22:35]Read from MH i2c: E2 17 00 [20:22:35]MH_I2C_Read... [20:22:35]Read from MH i2c: E2 17 00 2C 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 80 [20:22:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [20:22:35]wFMCommunicate OK [20:22:35]CreateOFDProtocolMessage done [20:22:35]OFDSenderStorePacket 156745 [20:22:35]StoreOFDPacket docnum=156745 [20:22:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 A4 42 07 01 6D 62 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 11 A1 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 49 64 02 00 35 04 06 00 7B 19 0F FD 7F 9C B4 89 70 3C 36 87 F5 EE [20:22:35]CheckFolder [20:22:35]dirname=/storage/ofd_packets [20:22:35]CheckFolder done [20:22:35]ProducePacketName [20:22:35]name=ofd_packets/00156745 [20:22:35]NVStorageSaveData ofd_packets/00156745 [20:22:35]File name is /storage/ofd_packets/00156745 [20:22:35]Write 301 bytes [20:22:35]NVStorageSaveData done [20:22:35]OFDSenderStorePacket done [20:22:35]KKMCreateOFDPacket done [20:22:35]NVStorageSaveData kkm_last_timestamp [20:22:35]File name is /storage/kkm_last_timestamp [20:22:35]Write 4 bytes [20:22:35]NVStorageSaveData done [20:22:35]ExternCall_PrintAddStr [20:22:35]wPrintStart [20:22:35]Write to MH i2c: 01 00 00 2D 85 B2 [20:22:35]OFD Sender: Processing packet 156745 [packets to send 31, broken 30] [20:22:35]ProducePacketName [20:22:35]name=ofd_packets/00156745 [20:22:35]OFD Sender: To server: pG, [20:22:35]CommunicateWithHost lk.salyk.kg:30040 [20:22:35]ConnectInit lk.salyk.kg [20:22:35]Write i2c OK [20:22:35]MH_I2C_Read... [20:22:35]Read from MH i2c: 01 [20:22:35]MH_I2C_Read... [20:22:35]Read from MH i2c: 01 07 00 [20:22:35]MH_I2C_Read... [20:22:35]Read from MH i2c: 01 07 00 2D 85 00 00 00 00 00 FF 0F C7 [20:22:35]RasterBufferAndPrint [20:22:35]line Счет N : (1)99559 [20:22:35]line ИНН: 02508201610067 [20:22:35]line Контрольно-Кассовый Чек [20:22:35]line ПРОДАЖА [20:22:35]line ТРК (МРК, ГНК) : 31 [20:22:35]line Товар: 2710124130 [20:22:35]line Аи-92-К-5 [20:22:35]line 4.490 * 66.90 [20:22:35]line = 300.38 [20:22:35]line НДС 12% НСП 1% [20:22:35]line > о реализуемом товаре [20:22:35]line ОКРУГЛЕНИЕ: -0.38 [20:22:35]line ИТОГО: 300.00 [20:22:35]line Внесено: 300.00 [20:22:35]line СДАЧА: 0.00 [20:22:35]line НСП 1% : 2.66 [20:22:35]line НДС 12% : 31.90 [20:22:35]line Наличными: 300.00 [20:22:35]line Безнал.: 0.00 [20:22:35]line Место: АЗС № 143 "Партнер Нефть" [20:22:35]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [20:22:35]line СНО: Общий режим [20:22:35]line Чек 296 27.10.2024 20:22 [20:22:35]line Смена: 537 ФФД: 1.0 [20:22:35]line ЗНМ: 0300000096 [20:22:35]line РНМ: 0000000000091693 [20:22:35]line Версия ККМ: 001 [20:22:35]line ФМ: 0000000000871792 [20:22:35]line ФД: 156745 [20:22:35]line ФПД: 135347572670364 [20:22:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T202241&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156745&fm=135347572670364&tin=02508201610067®Number=0000000000091693&sum=30000 [20:22:35]written 0, free lines is 4095 [20:22:35]Connected sock=10 [20:22:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 A4 42 07 01 6D 62 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 01 00 00 F4 03 04 00 11 A1 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 49 64 02 00 35 04 06 00 7B 19 0F FD 7F 9C B4 89 70 3C 36 87 F5 EE [20:22:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 6B 74 47 00 95 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 49 64 02 00 F4 03 04 00 7F 46 1E 67 B6 04 01 00 00 77 CC A6 F1 7E 0D 02 16 [20:22:36]CommunicateWithHost err = 0 [20:22:36]CheckOFDResponse [20:22:36]1017 (14) - 77093643461234 [20:22:36]1041 (16) - 0000000000871792 [20:22:36]1040 (4) - 156745 [20:22:36]1012 (4) - 27.10.2024 13:56 [20:22:36]1206 (1) - 0 [20:22:36]OFD Sender: Remove packet 156745 [20:22:36]ProducePacketName [20:22:36]name=ofd_packets/00156745 [20:22:36]NVStorageDeleteData [20:22:36]Write to MH i2c: 01 00 00 58 85 DD [20:22:36]Write i2c OK [20:22:36]MH_I2C_Read... [20:22:36]Read from MH i2c: 01 [20:22:36]MH_I2C_Read... [20:22:36]Read from MH i2c: 01 07 00 [20:22:36]MH_I2C_Read... [20:22:36]Read from MH i2c: 01 07 00 58 85 00 00 00 00 00 EF 0C DF [20:22:36]RasterBufferAndPrint [20:22:36]line [20:22:36]line [20:22:36]line [20:22:36]line [20:22:36]line [20:22:36]written 0, free lines is 3317 [20:22:36]process_action close_receipt done [20:22:36]requested_data is exist [20:22:36]produce_requested_data [20:22:36]requested_item fm.sn is exist - process it [20:22:36]wFMCommunicate request_size=4 [20:22:36]MH_SAM_APDU [20:22:36]CAPDU: 80 11 00 00 [20:22:36]Write to MH i2c: E2 08 00 5F 85 80 11 00 00 00 00 00 00 5E [20:22:36]Write i2c OK [20:22:36]MH_I2C_Read... [20:22:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:22:36]Read from MH i2c: E2 [20:22:36]MH_I2C_Read... [20:22:36]Read from MH i2c: E2 17 00 [20:22:36]MH_I2C_Read... [20:22:36]Read from MH i2c: E2 17 00 5F 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 B3 [20:22:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [20:22:36]wFMCommunicate OK [20:22:36]requested_item fd.num is exist - process it [20:22:36]SAM_PROTO_GetFieldsCounters [20:22:36]wFMCommunicate request_size=4 [20:22:36]MH_SAM_APDU [20:22:36]CAPDU: 80 13 00 00 [20:22:36]Write to MH i2c: E2 08 00 60 85 80 13 00 00 00 00 00 00 61 [20:22:36]Write i2c OK [20:22:36]MH_I2C_Read... [20:22:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:22:36]Read from MH i2c: E2 [20:22:36]MH_I2C_Read... [20:22:36]Read from MH i2c: E2 62 00 [20:22:36]MH_I2C_Read... [20:22:36]Read from MH i2c: E2 62 00 60 85 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 49 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 28 01 00 00 5E 04 04 00 28 01 00 00 57 04 04 00 29 01 00 00 19 04 04 00 00 00 00 00 90 00 CC [20:22:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 49 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 28 01 00 00 5E 04 04 00 28 01 00 00 57 04 04 00 29 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:22:36]wFMCommunicate OK [20:22:36]SAM_PROTO_GetFieldsCounters done [20:22:36]requested_item shift.num is exist - process it [20:22:36]requested_item shift.opened is exist - process it [20:22:36]req_shift_opened [20:22:36]FM_GetShiftState [20:22:36]SAM_PROTO_GetShiftState [20:22:36]wFMCommunicate request_size=4 [20:22:36]MH_SAM_APDU [20:22:36]CAPDU: 80 13 01 00 [20:22:36]Write to MH i2c: E2 08 00 61 85 80 13 01 00 00 00 00 00 63 [20:22:36]Write i2c OK [20:22:36]MH_I2C_Read... [20:22:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:22:36]Read from MH i2c: E2 [20:22:36]MH_I2C_Read... [20:22:36]Read from MH i2c: E2 0E 00 [20:22:36]MH_I2C_Read... [20:22:36]Read from MH i2c: E2 0E 00 61 85 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 30 [20:22:36]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [20:22:36]wFMCommunicate OK [20:22:36]SAM_PROTO_GetShiftState done [20:22:36]FM_GetShiftState done [20:22:36]req_shift_opened done [20:22:36]requested_item shift.open_date is exist - process it [20:22:36]req_shift_open_date [20:22:36]req_shift_open_date done [20:22:36]produce_requested_data done [20:22:36]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156745,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [20:22:36]process_action_free close_receipt [20:22:36]json_value_free [20:22:36]json_value_free done [20:22:36]process_json_proto returns [20:22:36]Send response to host [20:22:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156745,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [20:22:36]free response buf [20:22:36]execute_script done [20:22:36]execute_script returns [20:22:36]free content buf [20:22:36]Sock 8.Close socket [20:22:36]Sock 8.Thread stoped [20:22:36]OFD Sender: No OFD packet to send [20:22:41]OFD Sender: No OFD packet to send [20:22:46]OFD Sender: No OFD packet to send [20:22:51]OFD Sender: No OFD packet to send [20:22:56]OFD Sender: No OFD packet to send [20:23:01]OFD Sender: No OFD packet to send [20:23:06]OFD Sender: No OFD packet to send [20:23:11]OFD Sender: No OFD packet to send [20:23:16]OFD Sender: No OFD packet to send [20:23:21]OFD Sender: No OFD packet to send [20:23:26]OFD Sender: No OFD packet to send [20:23:31]OFD Sender: No OFD packet to send [20:23:36]OFD Sender: No OFD packet to send [20:23:41]OFD Sender: No OFD packet to send [20:23:46]OFD Sender: No OFD packet to send [20:23:51]OFD Sender: No OFD packet to send [20:23:56]OFD Sender: No OFD packet to send [20:24:01]OFD Sender: No OFD packet to send [20:24:06]OFD Sender: No OFD packet to send [20:24:11]accept exits with 9 [20:24:11]New connection [20:24:11]New thread 3066834276 created [20:24:11]Thread 3066977636 joined [20:24:11]Waiting for new connection... [20:24:11] Sock 9.Parse request [20:24:11]Sock 9.Check first char [20:24:11]Sock 9.First char is OK [20:24:11]request: POST /json_proto HTTP/1.0 [20:24:11]Method: POST [20:24:11]URL: /json_proto [20:24:11]Method is POST - this is cgi request [20:24:11]url: /json_proto [20:24:11]query_string will be loaded in cgi processing [20:24:11]execute_cgi json_proto POST (null) [20:24:11]execute_cgi path=json_proto method=POST [20:24:11]POST find Content-Length [20:24:11]Host: 172.17.63.3:8080 [20:24:11]Content-Length: 799 [20:24:11]Content-Type: application/json [20:24:11] [20:24:11]POST finish read [20:24:11]Found Content-Length = 799 [20:24:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99560", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4234997", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:24:11]execute_script... [20:24: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)99560", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4234997", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:24:11]POST & json_proto [20:24:11]process_json_proto [20:24:11]json parsed OK: [20:24:11]protocol is kg_v1.0 [20:24:11]action value=close_receipt [20:24:11]process_action close_receipt [20:24:11]cmd_close_receipt [20:24:11]MH_GetDate [20:24:11]Write to MH i2c: F0 00 00 62 85 D6 [20:24:11]Write i2c OK [20:24:11]MH_I2C_Read... [20:24:11]Read from MH i2c: F0 [20:24:11]MH_I2C_Read... [20:24:11]Read from MH i2c: F0 09 00 [20:24:11]MH_I2C_Read... [20:24:11]Read from MH i2c: F0 09 00 62 85 00 72 A1 1E 67 50 D1 6C 64 68 [20:24:11]GetLastDocTimeStamp 1730060561 [20:24:11]current date 1730060658 [20:24:11]FM_GetShiftState [20:24:11]SAM_PROTO_GetShiftState [20:24:11]wFMCommunicate request_size=4 [20:24:11]MH_SAM_APDU [20:24:11]CAPDU: 80 13 01 00 [20:24:11]Write to MH i2c: E2 08 00 63 85 80 13 01 00 00 00 00 00 65 [20:24:11]Write i2c OK [20:24:11]MH_I2C_Read... [20:24:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:24:11]Read from MH i2c: E2 [20:24:11]MH_I2C_Read... [20:24:11]Read from MH i2c: E2 0E 00 [20:24:11]MH_I2C_Read... [20:24:11]Read from MH i2c: E2 0E 00 63 85 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 32 [20:24:11]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [20:24:11]wFMCommunicate OK [20:24:11]SAM_PROTO_GetShiftState done [20:24:11]FM_GetShiftState done [20:24:11]opened in 1729989044 [20:24:11]opened+sec_in_day 1730075444 [20:24:11]quantity*price = 0 [20:24:11]sum+1 = 1 [20:24:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 297 27.10.2024 20:24 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Талоны: Топливные Талоны 4234997 ФМ: 0000000000871792 ФД: 156746 ФПД: 251097234371153 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T202418&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156746&fm=251097234371153&tin=02508201610067®Number=0000000000091693&sum=0 [20:24:12]StoreToDocumentArchive [20:24:12]shift 537 fd 156746 [20:24:12]save to /storage/0537/doc_00156746 [20:24:12]save last doc name /storage/0537/doc_00156746 to /storage/kkm_last_doc_name [20:24:12]save OK [20:24:12]Clear old archive folders... [20:24:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:24:12]tlvbuf is 01697D30 [20:24:12]SAM_PROTO_ClearQueue [20:24:12]wFMCommunicate request_size=4 [20:24:12]MH_SAM_APDU [20:24:12]CAPDU: 80 09 00 00 [20:24:12]Write to MH i2c: E2 08 00 70 85 80 09 00 00 00 00 00 00 67 [20:24:12]Write i2c OK [20:24:12]MH_I2C_Read... [20:24:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:24:12]Read from MH i2c: E2 [20:24:12]MH_I2C_Read... [20:24:12]Read from MH i2c: E2 03 00 [20:24:12]MH_I2C_Read... [20:24:12]Read from MH i2c: E2 03 00 70 85 00 90 00 69 [20:24:12]RAPDU: 90 00 [20:24:12]wFMCommunicate OK [20:24:12]SAM_PROTO_ClearQueue done [20:24:12]KKMCreateOFDPacket [20:24:12]OFDProtocolAddRootSTLVToBuf [20:24:12]FM_MakeSignedData [20:24:12]FM_MakeSignedData [20:24:12]SAM_PROTO_SignData [20:24:12]wFMCommunicate request_size=4 [20:24:12]MH_SAM_APDU [20:24:12]CAPDU: 80 0D 01 02 [20:24:12]Write to MH i2c: E2 08 00 71 85 80 0D 01 02 00 00 00 00 6F [20:24:12]Write i2c OK [20:24:12]MH_I2C_Read... [20:24:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:24:12]Read from MH i2c: E2 [20:24:12]MH_I2C_Read... [20:24:12]Read from MH i2c: E2 03 00 [20:24:12]MH_I2C_Read... [20:24:12]Read from MH i2c: E2 03 00 71 85 00 90 00 6A [20:24:12]RAPDU: 90 00 [20:24:12]wFMCommunicate OK [20:24:12]wFMCommunicate request_size=255 [20:24:12]MH_SAM_APDU [20:24: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 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 72 A1 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4A 64 02 00 35 04 06 00 E4 [20:24:12]Write to MH i2c: E2 02 01 72 85 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 72 A1 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4A 64 02 00 35 04 06 00 E4 00 00 26 [20:24:12]Write i2c OK [20:24:12]MH_I2C_Read... [20:24:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:24:12]Read from MH i2c: E2 [20:24:12]MH_I2C_Read... [20:24:12]Read from MH i2c: E2 03 00 [20:24:12]MH_I2C_Read... [20:24:12]Read from MH i2c: E2 03 00 72 85 00 90 00 6B [20:24:12]RAPDU: 90 00 [20:24:12]wFMCommunicate OK [20:24:12]wFMCommunicate request_size=10 [20:24:12]MH_SAM_APDU [20:24:12]CAPDU: 80 0D 02 02 05 5F 21 75 72 51 [20:24:12]Write to MH i2c: E2 0D 00 73 85 80 0D 02 02 05 00 5F 21 75 72 51 00 00 34 [20:24:12]Write i2c OK [20:24:12]MH_I2C_Read... [20:24:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:24:12]Read from MH i2c: E2 [20:24:12]MH_I2C_Read... [20:24:12]Read from MH i2c: E2 03 00 [20:24:12]MH_I2C_Read... [20:24:12]Read from MH i2c: E2 03 00 73 85 00 90 00 6C [20:24:12]RAPDU: 90 00 [20:24:12]wFMCommunicate OK [20:24:12]wFMCommunicate request_size=4 [20:24:12]MH_SAM_APDU [20:24:12]CAPDU: 80 0D 03 02 [20:24:12]Write to MH i2c: E2 08 00 74 85 80 0D 03 02 00 00 00 00 74 [20:24:12]Write i2c OK [20:24:12]MH_I2C_Read... [20:24:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:24:12]Read from MH i2c: E2 [20:24:12]MH_I2C_Read... [20:24:12]Read from MH i2c: E2 0B 00 [20:24:12]MH_I2C_Read... [20:24:12]Read from MH i2c: E2 0B 00 74 85 00 56 34 37 D0 8F 31 96 DD 90 00 39 [20:24:12]RAPDU: 56 34 37 D0 8F 31 96 DD 90 00 [20:24:12]wFMCommunicate OK [20:24:12]SAM_PROTO_SignData done [20:24:12]FM_MakeSignedData done [20:24:12]CreateOFDProtocolMessage [20:24:12]wFMCommunicate request_size=4 [20:24:12]MH_SAM_APDU [20:24:12]CAPDU: 80 11 00 00 [20:24:12]Write to MH i2c: E2 08 00 75 85 80 11 00 00 00 00 00 00 74 [20:24:12]Write i2c OK [20:24:12]MH_I2C_Read... [20:24:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:24:13]Read from MH i2c: E2 [20:24:13]MH_I2C_Read... [20:24:13]Read from MH i2c: E2 17 00 [20:24:13]MH_I2C_Read... [20:24:13]Read from MH i2c: E2 17 00 75 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 C9 [20:24:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [20:24:13]wFMCommunicate OK [20:24:13]CreateOFDProtocolMessage done [20:24:13]OFDSenderStorePacket 156746 [20:24:13]StoreOFDPacket docnum=156746 [20:24:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 48 70 07 01 5E BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 72 A1 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4A 64 02 00 35 04 06 00 E4 5F 21 75 72 51 56 34 37 D0 8F 31 96 DD [20:24:13]CheckFolder [20:24:13]dirname=/storage/ofd_packets [20:24:13]CheckFolder done [20:24:13]ProducePacketName [20:24:13]name=ofd_packets/00156746 [20:24:13]NVStorageSaveData ofd_packets/00156746 [20:24:13]File name is /storage/ofd_packets/00156746 [20:24:13]Write 301 bytes [20:24:13]NVStorageSaveData done [20:24:13]OFDSenderStorePacket done [20:24:13]KKMCreateOFDPacket done [20:24:13]NVStorageSaveData kkm_last_timestamp [20:24:13]File name is /storage/kkm_last_timestamp [20:24:13]Write 4 bytes [20:24:13]NVStorageSaveData done [20:24:13]ExternCall_PrintAddStr [20:24:13]wPrintStart [20:24:13]Write to MH i2c: 01 00 00 76 85 FB [20:24:13]Write i2c OK [20:24:13]MH_I2C_Read... [20:24:13]Read from MH i2c: 01 [20:24:13]MH_I2C_Read... [20:24:13]Read from MH i2c: 01 07 00 [20:24:13]MH_I2C_Read... [20:24:13]Read from MH i2c: 01 07 00 76 85 00 00 00 00 00 FF 0F 10 [20:24:13]RasterBufferAndPrint [20:24:13]line Счет N : (1)99560 [20:24:13]line ИНН: 02508201610067 [20:24:13]line Контрольно-Кассовый Чек [20:24:13]line ПРОДАЖА [20:24:13]line ТРК (МРК, ГНК) : 31 [20:24:13]line Товар: 2710124130 [20:24:13]line Аи-92-К-5 [20:24:13]line 10.000 * 0.00 [20:24:13]line = 0.00 [20:24:13]line НДС 12% НСП 1% [20:24:13]line > о реализуемом товаре [20:24:13]line ИТОГО: 0.00 [20:24:13]line НСП 1% : 0.00 [20:24:13]line НДС 12% : 0.00 [20:24:13]line Наличными: 0.00 [20:24:13]line Безнал.: 0.00 [20:24:13]line Место: АЗС № 143 "Партнер Нефть" [20:24:13]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [20:24:13]line СНО: Общий режим [20:24:13]line Чек 297 27.10.2024 20:24 [20:24:13]line Смена: 537 ФФД: 1.0 [20:24:13]line ЗНМ: 0300000096 [20:24:13]line РНМ: 0000000000091693 [20:24:13]line Версия ККМ: 001 [20:24:13]line Талоны: Топливные Талоны [20:24:13]line 4234997 [20:24:13]line ФМ: 0000000000871792 [20:24:13]line ФД: 156746 [20:24:13]line ФПД: 251097234371153 [20:24:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T202418&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156746&fm=251097234371153&tin=02508201610067®Number=0000000000091693&sum=0 [20:24:13]written 0, free lines is 4095 [20:24:13]OFD Sender: Processing packet 156746 [packets to send 31, broken 30] [20:24:13]ProducePacketName [20:24:13]name=ofd_packets/00156746 [20:24:13]OFD Sender: To server: pG, [20:24:13]CommunicateWithHost lk.salyk.kg:30040 [20:24:13]ConnectInit lk.salyk.kg [20:24:13]Write to MH i2c: 01 00 00 A0 85 25 [20:24:13]Write i2c OK [20:24:13]MH_I2C_Read... [20:24:13]Read from MH i2c: 01 [20:24:13]MH_I2C_Read... [20:24:13]Read from MH i2c: 01 07 00 [20:24:13]MH_I2C_Read... [20:24:13]Read from MH i2c: 01 07 00 A0 85 00 00 00 00 00 E9 0C 21 [20:24:13]RasterBufferAndPrint [20:24:13]line [20:24:13]line [20:24:13]line [20:24:13]line [20:24:13]line [20:24:13]written 0, free lines is 3310 [20:24:13]process_action close_receipt done [20:24:13]requested_data is exist [20:24:13]produce_requested_data [20:24:13]requested_item fm.sn is exist - process it [20:24:13]wFMCommunicate request_size=4 [20:24:13]MH_SAM_APDU [20:24:13]CAPDU: 80 11 00 00 [20:24:13]Write to MH i2c: E2 08 00 A7 85 80 11 00 00 00 00 00 00 A6 [20:24:13]Write i2c OK [20:24:13]MH_I2C_Read... [20:24:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:24:13]Read from MH i2c: E2 [20:24:13]MH_I2C_Read... [20:24:13]Read from MH i2c: E2 17 00 [20:24:13]MH_I2C_Read... [20:24:13]Read from MH i2c: E2 17 00 A7 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 FB [20:24:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [20:24:13]wFMCommunicate OK [20:24:13]requested_item fd.num is exist - process it [20:24:13]SAM_PROTO_GetFieldsCounters [20:24:13]wFMCommunicate request_size=4 [20:24:13]MH_SAM_APDU [20:24:13]CAPDU: 80 13 00 00 [20:24:13]Write to MH i2c: E2 08 00 A8 85 80 13 00 00 00 00 00 00 A9 [20:24:13]Write i2c OK [20:24:13]MH_I2C_Read... [20:24:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:24:13]Read from MH i2c: E2 [20:24:13]MH_I2C_Read... [20:24:13]Read from MH i2c: E2 62 00 [20:24:13]MH_I2C_Read... [20:24:13]Read from MH i2c: E2 62 00 A8 85 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 4A 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 29 01 00 00 5E 04 04 00 29 01 00 00 57 04 04 00 2A 01 00 00 19 04 04 00 00 00 00 00 90 00 18 [20:24:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 4A 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 29 01 00 00 5E 04 04 00 29 01 00 00 57 04 04 00 2A 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:24:13]wFMCommunicate OK [20:24:13]SAM_PROTO_GetFieldsCounters done [20:24:13]requested_item shift.num is exist - process it [20:24:13]requested_item shift.opened is exist - process it [20:24:13]req_shift_opened [20:24:13]FM_GetShiftState [20:24:13]SAM_PROTO_GetShiftState [20:24:13]wFMCommunicate request_size=4 [20:24:13]MH_SAM_APDU [20:24:13]CAPDU: 80 13 01 00 [20:24:13]Write to MH i2c: E2 08 00 A9 85 80 13 01 00 00 00 00 00 AB [20:24:14]Write i2c OK [20:24:14]MH_I2C_Read... [20:24:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:24:14]Read from MH i2c: E2 [20:24:14]MH_I2C_Read... [20:24:14]Read from MH i2c: E2 0E 00 [20:24:14]MH_I2C_Read... [20:24:14]Read from MH i2c: E2 0E 00 A9 85 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 78 [20:24:14]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [20:24:14]wFMCommunicate OK [20:24:14]SAM_PROTO_GetShiftState done [20:24:14]FM_GetShiftState done [20:24:14]req_shift_opened done [20:24:14]requested_item shift.open_date is exist - process it [20:24:14]req_shift_open_date [20:24:14]req_shift_open_date done [20:24:14]produce_requested_data done [20:24:14]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156746,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [20:24:14]process_action_free close_receipt [20:24:14]json_value_free [20:24:14]json_value_free done [20:24:14]process_json_proto returns [20:24:14]Send response to host [20:24:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156746,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [20:24:14]free response buf [20:24:14]execute_script done [20:24:14]execute_script returns [20:24:14]free content buf [20:24:14]Sock 9.Close socket [20:24:14]Sock 9.Thread stoped [20:24:26]int [20:24:26]Write to MH i2c: 01 00 00 AA 85 2F [20:24:26]*** FLAG_PRN_KEY set [20:24:26]Write i2c OK [20:24:26]MH_I2C_Read... [20:24:26]Read from MH i2c: 01 [20:24:26]MH_I2C_Read... [20:24:26]Read from MH i2c: 01 07 00 [20:24:26]MH_I2C_Read... [20:24:26]Read from MH i2c: 01 07 00 AA 85 00 08 00 00 00 FF 0F 4C [20:24:26]state=0 [20:24:26]Key pressed [20:24:26]Feed [20:24:26]Write to MH i2c: D8 00 00 AB 85 07 [20:24:26]Write i2c OK [20:24:26]MH_I2C_Read... [20:24:26]Read from MH i2c: D8 [20:24:26]MH_I2C_Read... [20:24:26]Read from MH i2c: D8 01 00 [20:24:26]MH_I2C_Read... [20:24:26]Read from MH i2c: D8 01 00 AB 85 00 08 [20:24:26]int [20:24:26]Write to MH i2c: 01 00 00 AC 85 31 [20:24:26]Write i2c OK [20:24:26]MH_I2C_Read... [20:24:26]Read from MH i2c: 01 [20:24:26]MH_I2C_Read... [20:24:26]Read from MH i2c: 01 07 00 [20:24:26]MH_I2C_Read... [20:24:26]Read from MH i2c: 01 07 00 AC 85 00 48 00 00 00 3D 00 BD [20:24:26]state=2 [20:24:26]Key pressed [20:24:27]int [20:24:27]Write to MH i2c: 01 00 00 AD 85 32 [20:24:27]*** FLAG_PRN_KEY reset [20:24:27]Write i2c OK [20:24:27]MH_I2C_Read... [20:24:27]Read from MH i2c: 01 [20:24:27]MH_I2C_Read... [20:24:27]Read from MH i2c: 01 07 00 [20:24:27]MH_I2C_Read... [20:24:27]Read from MH i2c: 01 07 00 AD 85 00 00 00 00 00 F6 0F 3E [20:24:27]state=2 [20:24:27]Stop feed [20:25:54]accept exits with 8 [20:25:54]New connection [20:25:54]New thread 3066977636 created [20:25:54]Thread 3066834276 joined [20:25:54]Waiting for new connection... [20:25:54] Sock 8.Parse request [20:25:54]Sock 8.Check first char [20:25:54]Sock 8.First char is OK [20:25:54]request: POST /json_proto HTTP/1.0 [20:25:54]Method: POST [20:25:54]URL: /json_proto [20:25:54]Method is POST - this is cgi request [20:25:54]url: /json_proto [20:25:54]query_string will be loaded in cgi processing [20:25:54]execute_cgi json_proto POST (null) [20:25:54]execute_cgi path=json_proto method=POST [20:25:54]POST find Content-Length [20:25:54]Host: 172.17.63.3:8080 [20:25:54]Content-Length: 676 [20:25:54]Content-Type: application/json [20:25:54] [20:25:54]POST finish read [20:25:54]Found Content-Length = 676 [20:25:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99561", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:25:54]execute_script... [20:25:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99561", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:25:54]POST & json_proto [20:25:54]process_json_proto [20:25:54]json parsed OK: [20:25:54]protocol is kg_v1.0 [20:25:54]action value=close_receipt [20:25:54]process_action close_receipt [20:25:54]cmd_close_receipt [20:25:54]MH_GetDate [20:25:54]Write to MH i2c: F0 00 00 AE 85 22 [20:25:54]Write i2c OK [20:25:54]MH_I2C_Read... [20:25:54]Read from MH i2c: F0 [20:25:54]MH_I2C_Read... [20:25:54]Read from MH i2c: F0 09 00 [20:25:54]MH_I2C_Read... [20:25:54]Read from MH i2c: F0 09 00 AE 85 00 DA A1 1E 67 50 D1 6C 64 1C [20:25:54]GetLastDocTimeStamp 1730060658 [20:25:54]current date 1730060762 [20:25:54]FM_GetShiftState [20:25:54]SAM_PROTO_GetShiftState [20:25:54]wFMCommunicate request_size=4 [20:25:54]MH_SAM_APDU [20:25:54]CAPDU: 80 13 01 00 [20:25:54]Write to MH i2c: E2 08 00 AF 85 80 13 01 00 00 00 00 00 B1 [20:25:54]Write i2c OK [20:25:54]MH_I2C_Read... [20:25:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:25:54]Read from MH i2c: E2 [20:25:54]MH_I2C_Read... [20:25:54]Read from MH i2c: E2 0E 00 [20:25:54]MH_I2C_Read... [20:25:54]Read from MH i2c: E2 0E 00 AF 85 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 7E [20:25:54]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [20:25:54]wFMCommunicate OK [20:25:54]SAM_PROTO_GetShiftState done [20:25:54]FM_GetShiftState done [20:25:54]opened in 1729989044 [20:25:54]opened+sec_in_day 1730075444 [20:25:54]quantity*price = 40006 [20:25:54]sum+1 = 40007 [20:25:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 298 27.10.2024 20:26 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156747 ФПД: 83884586072214 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T202602&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156747&fm=83884586072214&tin=02508201610067®Number=0000000000091693&sum=40000 [20:25:55]StoreToDocumentArchive [20:25:55]shift 537 fd 156747 [20:25:55]save to /storage/0537/doc_00156747 [20:25:55]save last doc name /storage/0537/doc_00156747 to /storage/kkm_last_doc_name [20:25:55]save OK [20:25:55]Clear old archive folders... [20:25:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:25:55]tlvbuf is 019B1750 [20:25:55]SAM_PROTO_ClearQueue [20:25:55]wFMCommunicate request_size=4 [20:25:55]MH_SAM_APDU [20:25:55]CAPDU: 80 09 00 00 [20:25:55]Write to MH i2c: E2 08 00 BC 85 80 09 00 00 00 00 00 00 B3 [20:25:55]Write i2c OK [20:25:55]MH_I2C_Read... [20:25:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:25:55]Read from MH i2c: E2 [20:25:55]MH_I2C_Read... [20:25:55]Read from MH i2c: E2 03 00 [20:25:55]MH_I2C_Read... [20:25:55]Read from MH i2c: E2 03 00 BC 85 00 90 00 B5 [20:25:55]RAPDU: 90 00 [20:25:55]wFMCommunicate OK [20:25:55]SAM_PROTO_ClearQueue done [20:25:55]KKMCreateOFDPacket [20:25:55]OFDProtocolAddRootSTLVToBuf [20:25:55]FM_MakeSignedData [20:25:55]FM_MakeSignedData [20:25:55]SAM_PROTO_SignData [20:25:55]wFMCommunicate request_size=4 [20:25:55]MH_SAM_APDU [20:25:55]CAPDU: 80 0D 01 02 [20:25:55]Write to MH i2c: E2 08 00 BD 85 80 0D 01 02 00 00 00 00 BB [20:25:55]Write i2c OK [20:25:55]MH_I2C_Read... [20:25:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:25:55]Read from MH i2c: E2 [20:25:55]MH_I2C_Read... [20:25:55]Read from MH i2c: E2 03 00 [20:25:55]MH_I2C_Read... [20:25:55]Read from MH i2c: E2 03 00 BD 85 00 90 00 B6 [20:25:55]RAPDU: 90 00 [20:25:55]wFMCommunicate OK [20:25:55]wFMCommunicate request_size=255 [20:25:55]MH_SAM_APDU [20:25: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 DA A1 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4B 64 02 00 35 04 06 00 4C [20:25:55]Write to MH i2c: E2 02 01 BE 85 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 DA A1 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4B 64 02 00 35 04 06 00 4C 00 00 61 [20:25:55]Write i2c OK [20:25:55]MH_I2C_Read... [20:25:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:25:56]Read from MH i2c: E2 [20:25:56]MH_I2C_Read... [20:25:56]Read from MH i2c: E2 03 00 [20:25:56]MH_I2C_Read... [20:25:56]Read from MH i2c: E2 03 00 BE 85 00 90 00 B7 [20:25:56]RAPDU: 90 00 [20:25:56]wFMCommunicate OK [20:25:56]wFMCommunicate request_size=10 [20:25:56]MH_SAM_APDU [20:25:56]CAPDU: 80 0D 02 02 05 4A E6 F4 78 96 [20:25:56]Write to MH i2c: E2 0D 00 BF 85 80 0D 02 02 05 00 4A E6 F4 78 96 00 00 FA [20:25:56]Write i2c OK [20:25:56]MH_I2C_Read... [20:25:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:25:56]Read from MH i2c: E2 [20:25:56]MH_I2C_Read... [20:25:56]Read from MH i2c: E2 03 00 [20:25:56]MH_I2C_Read... [20:25:56]Read from MH i2c: E2 03 00 BF 85 00 90 00 B8 [20:25:56]RAPDU: 90 00 [20:25:56]wFMCommunicate OK [20:25:56]wFMCommunicate request_size=4 [20:25:56]MH_SAM_APDU [20:25:56]CAPDU: 80 0D 03 02 [20:25:56]Write to MH i2c: E2 08 00 C0 85 80 0D 03 02 00 00 00 00 C0 [20:25:56]Write i2c OK [20:25:56]MH_I2C_Read... [20:25:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:25:56]Read from MH i2c: E2 [20:25:56]MH_I2C_Read... [20:25:56]Read from MH i2c: E2 0B 00 [20:25:56]MH_I2C_Read... [20:25:56]Read from MH i2c: E2 0B 00 C0 85 00 CB 4B 41 6E C7 00 B6 0D 90 00 10 [20:25:56]RAPDU: CB 4B 41 6E C7 00 B6 0D 90 00 [20:25:56]wFMCommunicate OK [20:25:56]SAM_PROTO_SignData done [20:25:56]FM_MakeSignedData done [20:25:56]CreateOFDProtocolMessage [20:25:56]wFMCommunicate request_size=4 [20:25:56]MH_SAM_APDU [20:25:56]CAPDU: 80 11 00 00 [20:25:56]Write to MH i2c: E2 08 00 C1 85 80 11 00 00 00 00 00 00 C0 [20:25:56]Write i2c OK [20:25:56]MH_I2C_Read... [20:25:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:25:56]Read from MH i2c: E2 [20:25:56]MH_I2C_Read... [20:25:56]Read from MH i2c: E2 17 00 [20:25:56]MH_I2C_Read... [20:25:56]Read from MH i2c: E2 17 00 C1 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 15 [20:25:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [20:25:56]wFMCommunicate OK [20:25:56]CreateOFDProtocolMessage done [20:25:56]OFDSenderStorePacket 156747 [20:25:56]StoreOFDPacket docnum=156747 [20:25:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 8A 1B 07 01 EA A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 01 00 00 F4 03 04 00 DA A1 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4B 64 02 00 35 04 06 00 4C 4A E6 F4 78 96 CB 4B 41 6E C7 00 B6 0D [20:25:56]CheckFolder [20:25:56]dirname=/storage/ofd_packets [20:25:56]CheckFolder done [20:25:56]ProducePacketName [20:25:56]name=ofd_packets/00156747 [20:25:56]NVStorageSaveData ofd_packets/00156747 [20:25:56]File name is /storage/ofd_packets/00156747 [20:25:56]Write 301 bytes [20:25:56]NVStorageSaveData done [20:25:56]OFDSenderStorePacket done [20:25:56]KKMCreateOFDPacket done [20:25:56]NVStorageSaveData kkm_last_timestamp [20:25:56]File name is /storage/kkm_last_timestamp [20:25:56]Write 4 bytes [20:25:56]NVStorageSaveData done [20:25:56]ExternCall_PrintAddStr [20:25:56]wPrintStart [20:25:56]Write to MH i2c: 01 00 00 C2 85 47 [20:25:56]Write i2c OK [20:25:56]MH_I2C_Read... [20:25:56]Read from MH i2c: 01 [20:25:56]MH_I2C_Read... [20:25:56]Read from MH i2c: 01 07 00 [20:25:56]MH_I2C_Read... [20:25:56]Read from MH i2c: 01 07 00 C2 85 00 00 00 00 00 FF 0F 5C [20:25:56]RasterBufferAndPrint [20:25:56]line Счет N : (1)99561 [20:25:56]line ИНН: 02508201610067 [20:25:56]line Контрольно-Кассовый Чек [20:25:56]line ПРОДАЖА [20:25:56]line ТРК (МРК, ГНК) : 31 [20:25:56]line Товар: 2710124130 [20:25:56]line Аи-92-К-5 [20:25:56]line 5.980 * 66.90 [20:25:56]line = 400.06 [20:25:56]line НДС 12% НСП 1% [20:25:56]line > о реализуемом товаре [20:25:56]line ОКРУГЛЕНИЕ: -0.06 [20:25:56]line ИТОГО: 400.00 [20:25:56]line Внесено: 400.00 [20:25:56]line СДАЧА: 0.00 [20:25:56]line НСП 1% : 3.54 [20:25:56]line НДС 12% : 42.48 [20:25:56]line Наличными: 400.00 [20:25:56]line Безнал.: 0.00 [20:25:56]line Место: АЗС № 143 "Партнер Нефть" [20:25:56]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [20:25:56]line СНО: Общий режим [20:25:56]line Чек 298 27.10.2024 20:26 [20:25:56]line Смена: 537 ФФД: 1.0 [20:25:56]line ЗНМ: 0300000096 [20:25:56]line РНМ: 0000000000091693 [20:25:56]line Версия ККМ: 001 [20:25:56]line ФМ: 0000000000871792 [20:25:56]line ФД: 156747 [20:25:56]line ФПД: 83884586072214 [20:25:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T202602&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156747&fm=83884586072214&tin=02508201610067®Number=0000000000091693&sum=40000 [20:25:56]written 0, free lines is 4095 [20:25:57]Write to MH i2c: 01 00 00 ED 85 72 [20:25:57]Write i2c OK [20:25:57]MH_I2C_Read... [20:25:57]Read from MH i2c: 01 [20:25:57]MH_I2C_Read... [20:25:57]Read from MH i2c: 01 07 00 [20:25:57]MH_I2C_Read... [20:25:57]Read from MH i2c: 01 07 00 ED 85 00 00 00 00 00 E4 0C 69 [20:25:57]RasterBufferAndPrint [20:25:57]line [20:25:57]line [20:25:57]line [20:25:57]line [20:25:57]line [20:25:57]written 0, free lines is 3306 [20:25:57]process_action close_receipt done [20:25:57]requested_data is exist [20:25:57]produce_requested_data [20:25:57]requested_item fm.sn is exist - process it [20:25:57]wFMCommunicate request_size=4 [20:25:57]MH_SAM_APDU [20:25:57]CAPDU: 80 11 00 00 [20:25:57]Write to MH i2c: E2 08 00 F4 85 80 11 00 00 00 00 00 00 F3 [20:25:57]Write i2c OK [20:25:57]MH_I2C_Read... [20:25:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:25:57]Read from MH i2c: E2 [20:25:57]MH_I2C_Read... [20:25:57]Read from MH i2c: E2 17 00 [20:25:57]MH_I2C_Read... [20:25:57]Read from MH i2c: E2 17 00 F4 85 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 48 [20:25:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [20:25:57]wFMCommunicate OK [20:25:57]requested_item fd.num is exist - process it [20:25:57]SAM_PROTO_GetFieldsCounters [20:25:57]wFMCommunicate request_size=4 [20:25:57]MH_SAM_APDU [20:25:57]CAPDU: 80 13 00 00 [20:25:57]Write to MH i2c: E2 08 00 F5 85 80 13 00 00 00 00 00 00 F6 [20:25:57]Write i2c OK [20:25:57]MH_I2C_Read... [20:25:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:25:57]Read from MH i2c: E2 [20:25:57]MH_I2C_Read... [20:25:57]Read from MH i2c: E2 62 00 [20:25:57]MH_I2C_Read... [20:25:57]Read from MH i2c: E2 62 00 F5 85 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 4B 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 2A 01 00 00 5E 04 04 00 2A 01 00 00 57 04 04 00 2B 01 00 00 19 04 04 00 00 00 00 00 90 00 69 [20:25:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 4B 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 2A 01 00 00 5E 04 04 00 2A 01 00 00 57 04 04 00 2B 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:25:57]wFMCommunicate OK [20:25:57]SAM_PROTO_GetFieldsCounters done [20:25:57]requested_item shift.num is exist - process it [20:25:57]requested_item shift.opened is exist - process it [20:25:57]req_shift_opened [20:25:57]FM_GetShiftState [20:25:57]SAM_PROTO_GetShiftState [20:25:57]wFMCommunicate request_size=4 [20:25:57]MH_SAM_APDU [20:25:57]CAPDU: 80 13 01 00 [20:25:57]Write to MH i2c: E2 08 00 F6 85 80 13 01 00 00 00 00 00 F8 [20:25:57]Write i2c OK [20:25:57]MH_I2C_Read... [20:25:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:25:57]Read from MH i2c: E2 [20:25:57]MH_I2C_Read... [20:25:57]Read from MH i2c: E2 0E 00 [20:25:57]MH_I2C_Read... [20:25:57]Read from MH i2c: E2 0E 00 F6 85 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 C5 [20:25:57]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [20:25:57]wFMCommunicate OK [20:25:57]SAM_PROTO_GetShiftState done [20:25:57]FM_GetShiftState done [20:25:57]req_shift_opened done [20:25:57]requested_item shift.open_date is exist - process it [20:25:57]req_shift_open_date [20:25:57]req_shift_open_date done [20:25:57]produce_requested_data done [20:25:57]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156747,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [20:25:57]process_action_free close_receipt [20:25:57]json_value_free [20:25:57]json_value_free done [20:25:57]process_json_proto returns [20:25:57]Send response to host [20:25:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156747,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [20:25:57]free response buf [20:25:57]execute_script done [20:25:57]execute_script returns [20:25:57]free content buf [20:25:57]Sock 8.Close socket [20:25:57]Sock 8.Thread stoped [20:26:24]ConnectInit Can't connect to host [20:26:24]CommunicateWithHost connect error [20:26:24]CommunicateWithHost err = -1 [20:26:24]OFD Sender: Server communicate error [20:26:24]OFD Sender: Processing packet 156746 [packets to send 32, broken 30] [20:26:24]ProducePacketName [20:26:24]name=ofd_packets/00156746 [20:26:24]OFD Sender: To server: pG, [20:26:24]CommunicateWithHost lk.salyk.kg:30040 [20:26:24]ConnectInit lk.salyk.kg [20:26:24]accept exits with 9 [20:26:24]New connection [20:26:24]New thread 3066834276 created [20:26:24]Thread 3066977636 joined [20:26:24]Waiting for new connection... [20:26:24] Sock 9.Parse request [20:26:24]Sock 9.Check first char [20:26:24]Sock 9.First char is OK [20:26:24]request: POST /json_proto HTTP/1.0 [20:26:24]Method: POST [20:26:24]URL: /json_proto [20:26:24]Method is POST - this is cgi request [20:26:24]url: /json_proto [20:26:24]query_string will be loaded in cgi processing [20:26:24]execute_cgi json_proto POST (null) [20:26:24]execute_cgi path=json_proto method=POST [20:26:24]POST find Content-Length [20:26:24]Host: 172.17.63.3:8080 [20:26:24]Content-Length: 676 [20:26:24]Content-Type: application/json [20:26:24] [20:26:24]POST finish read [20:26:24]Found Content-Length = 676 [20:26:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99562", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.800, "sum" : 120.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 120.00, "total" : 120.00, "payments": [ { "type": 0, "sum" : 120.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:26:24]execute_script... [20:26:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99562", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.800, "sum" : 120.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 120.00, "total" : 120.00, "payments": [ { "type": 0, "sum" : 120.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:26:24]POST & json_proto [20:26:24]process_json_proto [20:26:24]json parsed OK: [20:26:24]protocol is kg_v1.0 [20:26:24]action value=close_receipt [20:26:24]process_action close_receipt [20:26:24]cmd_close_receipt [20:26:24]MH_GetDate [20:26:24]Write to MH i2c: F0 00 00 F7 85 6B [20:26:24]Write i2c OK [20:26:24]MH_I2C_Read... [20:26:24]Read from MH i2c: F0 [20:26:24]MH_I2C_Read... [20:26:24]Read from MH i2c: F0 09 00 [20:26:24]MH_I2C_Read... [20:26:24]Read from MH i2c: F0 09 00 F7 85 00 F8 A1 1E 67 50 D1 6C 64 83 [20:26:24]GetLastDocTimeStamp 1730060762 [20:26:24]current date 1730060792 [20:26:24]FM_GetShiftState [20:26:24]SAM_PROTO_GetShiftState [20:26:24]wFMCommunicate request_size=4 [20:26:24]MH_SAM_APDU [20:26:24]CAPDU: 80 13 01 00 [20:26:24]Write to MH i2c: E2 08 00 F8 85 80 13 01 00 00 00 00 00 FA [20:26:24]Write i2c OK [20:26:24]MH_I2C_Read... [20:26:24]Connected sock=8 [20:26:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 48 70 07 01 5E BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 72 A1 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4A 64 02 00 35 04 06 00 E4 5F 21 75 72 51 56 34 37 D0 8F 31 96 DD [20:26:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:26:24]Read from MH i2c: E2 [20:26:24]MH_I2C_Read... [20:26:24]Read from MH i2c: E2 0E 00 [20:26:24]MH_I2C_Read... [20:26:24]Read from MH i2c: E2 0E 00 F8 85 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 C7 [20:26:24]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [20:26:24]wFMCommunicate OK [20:26:24]SAM_PROTO_GetShiftState done [20:26:24]FM_GetShiftState done [20:26:24]opened in 1729989044 [20:26:24]opened+sec_in_day 1730075444 [20:26:24]quantity*price = 12042 [20:26:24]sum+1 = 12043 [20:26:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 120.00 Внесено: 120.00 СДАЧА: 0.00 НСП 1% : 1.07 НДС 12% : 12.79 Наличными: 120.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 299 27.10.2024 20:26 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156748 ФПД: 113268594452826 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T202632&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156748&fm=113268594452826&tin=02508201610067®Number=0000000000091693&sum=12000 [20:26:25]StoreToDocumentArchive [20:26:25]shift 537 fd 156748 [20:26:25]save to /storage/0537/doc_00156748 [20:26:25]save last doc name /storage/0537/doc_00156748 to /storage/kkm_last_doc_name [20:26:25]save OK [20:26:25]Clear old archive folders... [20:26:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:26:25]tlvbuf is 017417A0 [20:26:25]SAM_PROTO_ClearQueue [20:26:25]wFMCommunicate request_size=4 [20:26:25]MH_SAM_APDU [20:26:25]CAPDU: 80 09 00 00 [20:26:25]Write to MH i2c: E2 08 00 05 86 80 09 00 00 00 00 00 00 FD [20:26:25]Write i2c OK [20:26:25]MH_I2C_Read... [20:26:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:26:25]Read from MH i2c: E2 [20:26:25]MH_I2C_Read... [20:26:25]Read from MH i2c: E2 03 00 [20:26:25]MH_I2C_Read... [20:26:25]Read from MH i2c: E2 03 00 05 86 00 90 00 FF [20:26:25]RAPDU: 90 00 [20:26:25]wFMCommunicate OK [20:26:25]SAM_PROTO_ClearQueue done [20:26:25]KKMCreateOFDPacket [20:26:25]OFDProtocolAddRootSTLVToBuf [20:26:25]FM_MakeSignedData [20:26:25]FM_MakeSignedData [20:26:25]SAM_PROTO_SignData [20:26:25]wFMCommunicate request_size=4 [20:26:25]MH_SAM_APDU [20:26:25]CAPDU: 80 0D 01 02 [20:26:25]Write to MH i2c: E2 08 00 06 86 80 0D 01 02 00 00 00 00 05 [20:26:25]Write i2c OK [20:26:25]MH_I2C_Read... [20:26:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 15 5C 47 00 D3 DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4B 64 02 00 F4 03 04 00 65 47 1E 67 B6 04 01 00 00 21 E0 9A 4F D5 9B 7A 8B [20:26:25]CommunicateWithHost err = 0 [20:26:25]CheckOFDResponse [20:26:25]1017 (14) - 77093643461234 [20:26:25]1041 (16) - 0000000000871792 [20:26:25]1040 (4) - 156747 [20:26:25]1012 (4) - 27.10.2024 14:00 [20:26:25]1206 (1) - 0 [20:26:25]OFD Sender: Remove packet 156747 [20:26:25]ProducePacketName [20:26:25]name=ofd_packets/00156747 [20:26:25]NVStorageDeleteData [20:26:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:26:25]Read from MH i2c: E2 [20:26:25]MH_I2C_Read... [20:26:25]Read from MH i2c: E2 03 00 [20:26:25]MH_I2C_Read... [20:26:25]Read from MH i2c: E2 03 00 06 86 00 90 00 00 [20:26:25]RAPDU: 90 00 [20:26:25]wFMCommunicate OK [20:26:25]wFMCommunicate request_size=255 [20:26:25]MH_SAM_APDU [20:26:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 08 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0A 2F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 F8 A1 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4C 64 02 00 35 04 06 00 67 [20:26:26]Write to MH i2c: E2 02 01 07 86 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 08 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0A 2F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 F8 A1 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4C 64 02 00 35 04 06 00 67 00 00 A0 [20:26:26]Write i2c OK [20:26:26]MH_I2C_Read... [20:26:26]OFD Sender: No OFD packet to send [20:26:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:26:26]Read from MH i2c: E2 [20:26:26]MH_I2C_Read... [20:26:26]Read from MH i2c: E2 03 00 [20:26:26]MH_I2C_Read... [20:26:26]Read from MH i2c: E2 03 00 07 86 00 90 00 01 [20:26:26]RAPDU: 90 00 [20:26:26]wFMCommunicate OK [20:26:26]wFMCommunicate request_size=10 [20:26:26]MH_SAM_APDU [20:26:26]CAPDU: 80 0D 02 02 05 04 66 56 29 5A [20:26:26]Write to MH i2c: E2 0D 00 08 86 80 0D 02 02 05 00 04 66 56 29 5A 00 00 55 [20:26:26]Write i2c OK [20:26:26]MH_I2C_Read... [20:26:26]Read from MH i2c: E2 [20:26:26]MH_I2C_Read... [20:26:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:26:26]Read from MH i2c: E2 03 00 [20:26:26]MH_I2C_Read... [20:26:26]Read from MH i2c: E2 03 00 08 86 00 90 00 02 [20:26:26]RAPDU: 90 00 [20:26:26]wFMCommunicate OK [20:26:26]wFMCommunicate request_size=4 [20:26:26]MH_SAM_APDU [20:26:26]CAPDU: 80 0D 03 02 [20:26:26]Write to MH i2c: E2 08 00 09 86 80 0D 03 02 00 00 00 00 0A [20:26:26]Write i2c OK [20:26:26]MH_I2C_Read... [20:26:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:26:26]Read from MH i2c: E2 [20:26:26]MH_I2C_Read... [20:26:26]Read from MH i2c: E2 0B 00 [20:26:26]MH_I2C_Read... [20:26:26]Read from MH i2c: E2 0B 00 09 86 00 C0 6B B2 34 06 F8 D7 B1 90 00 A2 [20:26:26]RAPDU: C0 6B B2 34 06 F8 D7 B1 90 00 [20:26:26]wFMCommunicate OK [20:26:26]SAM_PROTO_SignData done [20:26:26]FM_MakeSignedData done [20:26:26]CreateOFDProtocolMessage [20:26:26]wFMCommunicate request_size=4 [20:26:26]MH_SAM_APDU [20:26:26]CAPDU: 80 11 00 00 [20:26:26]Write to MH i2c: E2 08 00 0A 86 80 11 00 00 00 00 00 00 0A [20:26:26]Write i2c OK [20:26:26]MH_I2C_Read... [20:26:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:26:26]Read from MH i2c: E2 [20:26:26]MH_I2C_Read... [20:26:26]Read from MH i2c: E2 17 00 [20:26:26]MH_I2C_Read... [20:26:26]Read from MH i2c: E2 17 00 0A 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 5F [20:26:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [20:26:26]wFMCommunicate OK [20:26:26]CreateOFDProtocolMessage done [20:26:26]OFDSenderStorePacket 156748 [20:26:26]StoreOFDPacket docnum=156748 [20:26:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 A7 5F 07 01 1C 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 08 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0A 2F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 F8 A1 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4C 64 02 00 35 04 06 00 67 04 66 56 29 5A C0 6B B2 34 06 F8 D7 B1 [20:26:26]CheckFolder [20:26:26]dirname=/storage/ofd_packets [20:26:26]CheckFolder done [20:26:26]ProducePacketName [20:26:26]name=ofd_packets/00156748 [20:26:26]NVStorageSaveData ofd_packets/00156748 [20:26:26]File name is /storage/ofd_packets/00156748 [20:26:26]Write 301 bytes [20:26:26]NVStorageSaveData done [20:26:26]OFDSenderStorePacket done [20:26:26]KKMCreateOFDPacket done [20:26:26]NVStorageSaveData kkm_last_timestamp [20:26:26]File name is /storage/kkm_last_timestamp [20:26:26]Write 4 bytes [20:26:26]NVStorageSaveData done [20:26:26]ExternCall_PrintAddStr [20:26:26]wPrintStart [20:26:26]Write to MH i2c: 01 00 00 0B 86 91 [20:26:26]Write i2c OK [20:26:26]MH_I2C_Read... [20:26:26]Read from MH i2c: 01 [20:26:26]MH_I2C_Read... [20:26:26]Read from MH i2c: 01 07 00 [20:26:26]MH_I2C_Read... [20:26:26]Read from MH i2c: 01 07 00 0B 86 00 00 00 00 00 FF 0F A6 [20:26:26]RasterBufferAndPrint [20:26:26]line Счет N : (1)99562 [20:26:26]line ИНН: 02508201610067 [20:26:26]line Контрольно-Кассовый Чек [20:26:26]line ПРОДАЖА [20:26:26]line ТРК (МРК, ГНК) : 31 [20:26:26]line Товар: 2710124130 [20:26:26]line Аи-92-К-5 [20:26:26]line 1.800 * 66.90 [20:26:26]line = 120.42 [20:26:26]line НДС 12% НСП 1% [20:26:26]line > о реализуемом товаре [20:26:26]line ОКРУГЛЕНИЕ: -0.42 [20:26:26]line ИТОГО: 120.00 [20:26:26]line Внесено: 120.00 [20:26:26]line СДАЧА: 0.00 [20:26:26]line НСП 1% : 1.07 [20:26:26]line НДС 12% : 12.79 [20:26:26]line Наличными: 120.00 [20:26:26]line Безнал.: 0.00 [20:26:26]line Место: АЗС № 143 "Партнер Нефть" [20:26:26]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [20:26:26]line СНО: Общий режим [20:26:26]line Чек 299 27.10.2024 20:26 [20:26:26]line Смена: 537 ФФД: 1.0 [20:26:26]line ЗНМ: 0300000096 [20:26:26]line РНМ: 0000000000091693 [20:26:26]line Версия ККМ: 001 [20:26:26]line ФМ: 0000000000871792 [20:26:26]line ФД: 156748 [20:26:26]line ФПД: 113268594452826 [20:26:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T202632&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156748&fm=113268594452826&tin=02508201610067®Number=0000000000091693&sum=12000 [20:26:26]written 0, free lines is 4095 [20:26:26]OFD Sender: Processing packet 156748 [packets to send 31, broken 30] [20:26:26]ProducePacketName [20:26:26]name=ofd_packets/00156748 [20:26:26]OFD Sender: To server: pG, [20:26:26]CommunicateWithHost lk.salyk.kg:30040 [20:26:26]ConnectInit lk.salyk.kg [20:26:26]Connected sock=8 [20:26:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 A7 5F 07 01 1C 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 08 07 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0A 2F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FF 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 F8 A1 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4C 64 02 00 35 04 06 00 67 04 66 56 29 5A C0 6B B2 34 06 F8 D7 B1 [20:26:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 54 4B 47 00 7D 3F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4C 64 02 00 F4 03 04 00 66 47 1E 67 B6 04 01 00 00 CC 1D D0 06 FF 5A 48 1B [20:26:27]CommunicateWithHost err = 0 [20:26:27]CheckOFDResponse [20:26:27]1017 (14) - 77093643461234 [20:26:27]1041 (16) - 0000000000871792 [20:26:27]1040 (4) - 156748 [20:26:27]1012 (4) - 27.10.2024 14:00 [20:26:27]1206 (1) - 0 [20:26:27]OFD Sender: Remove packet 156748 [20:26:27]ProducePacketName [20:26:27]name=ofd_packets/00156748 [20:26:27]NVStorageDeleteData [20:26:27]Write to MH i2c: 01 00 00 36 86 BC [20:26:27]Write i2c OK [20:26:27]MH_I2C_Read... [20:26:27]Read from MH i2c: 01 [20:26:27]MH_I2C_Read... [20:26:27]Read from MH i2c: 01 07 00 [20:26:27]MH_I2C_Read... [20:26:27]Read from MH i2c: 01 07 00 36 86 00 00 00 00 00 F7 0C C6 [20:26:27]RasterBufferAndPrint [20:26:27]line [20:26:27]line [20:26:27]line [20:26:27]line [20:26:27]line [20:26:27]written 0, free lines is 3326 [20:26:27]process_action close_receipt done [20:26:27]requested_data is exist [20:26:27]produce_requested_data [20:26:27]requested_item fm.sn is exist - process it [20:26:27]wFMCommunicate request_size=4 [20:26:27]MH_SAM_APDU [20:26:27]CAPDU: 80 11 00 00 [20:26:27]Write to MH i2c: E2 08 00 3D 86 80 11 00 00 00 00 00 00 3D [20:26:27]Write i2c OK [20:26:27]MH_I2C_Read... [20:26:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:26:27]Read from MH i2c: E2 [20:26:27]MH_I2C_Read... [20:26:27]Read from MH i2c: E2 17 00 [20:26:27]MH_I2C_Read... [20:26:27]Read from MH i2c: E2 17 00 3D 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 92 [20:26:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [20:26:27]wFMCommunicate OK [20:26:27]requested_item fd.num is exist - process it [20:26:27]SAM_PROTO_GetFieldsCounters [20:26:27]wFMCommunicate request_size=4 [20:26:27]MH_SAM_APDU [20:26:27]CAPDU: 80 13 00 00 [20:26:27]Write to MH i2c: E2 08 00 3E 86 80 13 00 00 00 00 00 00 40 [20:26:27]Write i2c OK [20:26:27]MH_I2C_Read... [20:26:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:26:27]Read from MH i2c: E2 [20:26:27]MH_I2C_Read... [20:26:27]Read from MH i2c: E2 62 00 [20:26:27]MH_I2C_Read... [20:26:27]Read from MH i2c: E2 62 00 3E 86 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 4C 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 2B 01 00 00 5E 04 04 00 2B 01 00 00 57 04 04 00 2C 01 00 00 19 04 04 00 00 00 00 00 90 00 B7 [20:26:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 4C 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 2B 01 00 00 5E 04 04 00 2B 01 00 00 57 04 04 00 2C 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:26:27]wFMCommunicate OK [20:26:27]SAM_PROTO_GetFieldsCounters done [20:26:27]requested_item shift.num is exist - process it [20:26:27]requested_item shift.opened is exist - process it [20:26:27]req_shift_opened [20:26:27]FM_GetShiftState [20:26:27]SAM_PROTO_GetShiftState [20:26:27]wFMCommunicate request_size=4 [20:26:27]MH_SAM_APDU [20:26:27]CAPDU: 80 13 01 00 [20:26:27]Write to MH i2c: E2 08 00 3F 86 80 13 01 00 00 00 00 00 42 [20:26:27]Write i2c OK [20:26:27]MH_I2C_Read... [20:26:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:26:27]Read from MH i2c: E2 [20:26:27]MH_I2C_Read... [20:26:27]Read from MH i2c: E2 0E 00 [20:26:27]MH_I2C_Read... [20:26:27]Read from MH i2c: E2 0E 00 3F 86 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 0F [20:26:27]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [20:26:27]wFMCommunicate OK [20:26:27]SAM_PROTO_GetShiftState done [20:26:27]FM_GetShiftState done [20:26:27]req_shift_opened done [20:26:27]requested_item shift.open_date is exist - process it [20:26:27]req_shift_open_date [20:26:27]req_shift_open_date done [20:26:27]produce_requested_data done [20:26:27]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156748,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [20:26:27]process_action_free close_receipt [20:26:27]json_value_free [20:26:27]json_value_free done [20:26:27]process_json_proto returns [20:26:27]Send response to host [20:26:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156748,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [20:26:27]free response buf [20:26:27]execute_script done [20:26:27]execute_script returns [20:26:27]free content buf [20:26:27]Sock 9.Close socket [20:26:27]Sock 9.Thread stoped [20:26:27]OFD Sender: No OFD packet to send [20:26:32]OFD Sender: No OFD packet to send [20:26:37]OFD Sender: No OFD packet to send [20:26:42]OFD Sender: No OFD packet to send [20:26:47]OFD Sender: No OFD packet to send [20:26:52]OFD Sender: No OFD packet to send [20:26:57]OFD Sender: No OFD packet to send [20:27:02]OFD Sender: No OFD packet to send [20:27:07]OFD Sender: No OFD packet to send [20:27:12]OFD Sender: No OFD packet to send [20:27:17]OFD Sender: No OFD packet to send [20:27:22]OFD Sender: No OFD packet to send [20:27:27]OFD Sender: No OFD packet to send [20:27:32]OFD Sender: No OFD packet to send [20:27:37]OFD Sender: No OFD packet to send [20:27:40]accept exits with 11 [20:27:40]New connection [20:27:40]New thread 3066977636 created [20:27:40]Thread 3066834276 joined [20:27:40]Waiting for new connection... [20:27:40] Sock 11.Parse request [20:27:40]Sock 11.Check first char [20:27:40]Sock 11.First char is OK [20:27:40]request: POST /json_proto HTTP/1.0 [20:27:40]Method: POST [20:27:40]URL: /json_proto [20:27:40]Method is POST - this is cgi request [20:27:40]url: /json_proto [20:27:40]query_string will be loaded in cgi processing [20:27:40]execute_cgi json_proto POST (null) [20:27:40]execute_cgi path=json_proto method=POST [20:27:40]POST find Content-Length [20:27:40]Host: 172.17.63.3:8080 [20:27:40]Content-Length: 676 [20:27:40]Content-Type: application/json [20:27:40] [20:27:40]POST finish read [20:27:40]Found Content-Length = 676 [20:27:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99563", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:27:40]execute_script... [20:27:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99563", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:27:40]POST & json_proto [20:27:40]process_json_proto [20:27:40]json parsed OK: [20:27:40]protocol is kg_v1.0 [20:27:40]action value=close_receipt [20:27:40]process_action close_receipt [20:27:40]cmd_close_receipt [20:27:40]MH_GetDate [20:27:40]Write to MH i2c: F0 00 00 40 86 B5 [20:27:40]Write i2c OK [20:27:40]MH_I2C_Read... [20:27:40]Read from MH i2c: F0 [20:27:40]MH_I2C_Read... [20:27:40]Read from MH i2c: F0 09 00 [20:27:40]MH_I2C_Read... [20:27:40]Read from MH i2c: F0 09 00 40 86 00 43 A2 1E 67 50 D1 6C 64 19 [20:27:40]GetLastDocTimeStamp 1730060792 [20:27:40]current date 1730060867 [20:27:40]FM_GetShiftState [20:27:40]SAM_PROTO_GetShiftState [20:27:40]wFMCommunicate request_size=4 [20:27:40]MH_SAM_APDU [20:27:40]CAPDU: 80 13 01 00 [20:27:40]Write to MH i2c: E2 08 00 41 86 80 13 01 00 00 00 00 00 44 [20:27:40]Write i2c OK [20:27:40]MH_I2C_Read... [20:27:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:27:40]Read from MH i2c: E2 [20:27:40]MH_I2C_Read... [20:27:40]Read from MH i2c: E2 0E 00 [20:27:40]MH_I2C_Read... [20:27:40]Read from MH i2c: E2 0E 00 41 86 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 11 [20:27:40]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [20:27:40]wFMCommunicate OK [20:27:40]SAM_PROTO_GetShiftState done [20:27:40]FM_GetShiftState done [20:27:40]opened in 1729989044 [20:27:40]opened+sec_in_day 1730075444 [20:27:40]quantity*price = 20003 [20:27:40]sum+1 = 20004 [20:27:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 300 27.10.2024 20:27 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156749 ФПД: 168617869089637 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T202747&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156749&fm=168617869089637&tin=02508201610067®Number=0000000000091693&sum=20000 [20:27:41]StoreToDocumentArchive [20:27:41]shift 537 fd 156749 [20:27:41]save to /storage/0537/doc_00156749 [20:27:41]save last doc name /storage/0537/doc_00156749 to /storage/kkm_last_doc_name [20:27:41]save OK [20:27:41]Clear old archive folders... [20:27:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:27:41]tlvbuf is 01842E50 [20:27:41]SAM_PROTO_ClearQueue [20:27:41]wFMCommunicate request_size=4 [20:27:41]MH_SAM_APDU [20:27:41]CAPDU: 80 09 00 00 [20:27:41]Write to MH i2c: E2 08 00 4E 86 80 09 00 00 00 00 00 00 46 [20:27:41]Write i2c OK [20:27:41]MH_I2C_Read... [20:27:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:27:41]Read from MH i2c: E2 [20:27:41]MH_I2C_Read... [20:27:41]Read from MH i2c: E2 03 00 [20:27:41]MH_I2C_Read... [20:27:41]Read from MH i2c: E2 03 00 4E 86 00 90 00 48 [20:27:41]RAPDU: 90 00 [20:27:41]wFMCommunicate OK [20:27:41]SAM_PROTO_ClearQueue done [20:27:41]KKMCreateOFDPacket [20:27:41]OFDProtocolAddRootSTLVToBuf [20:27:41]FM_MakeSignedData [20:27:41]FM_MakeSignedData [20:27:41]SAM_PROTO_SignData [20:27:41]wFMCommunicate request_size=4 [20:27:41]MH_SAM_APDU [20:27:41]CAPDU: 80 0D 01 02 [20:27:41]Write to MH i2c: E2 08 00 4F 86 80 0D 01 02 00 00 00 00 4E [20:27:41]Write i2c OK [20:27:41]MH_I2C_Read... [20:27:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:27:41]Read from MH i2c: E2 [20:27:41]MH_I2C_Read... [20:27:41]Read from MH i2c: E2 03 00 [20:27:41]MH_I2C_Read... [20:27:41]Read from MH i2c: E2 03 00 4F 86 00 90 00 49 [20:27:41]RAPDU: 90 00 [20:27:41]wFMCommunicate OK [20:27:41]wFMCommunicate request_size=255 [20:27:41]MH_SAM_APDU [20:27: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 2C 01 00 00 F4 03 04 00 43 A2 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4D 64 02 00 35 04 06 00 99 [20:27:41]Write to MH i2c: E2 02 01 50 86 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 2C 01 00 00 F4 03 04 00 43 A2 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4D 64 02 00 35 04 06 00 99 00 00 A2 [20:27:41]Write i2c OK [20:27:41]MH_I2C_Read... [20:27:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:27:41]Read from MH i2c: E2 [20:27:41]MH_I2C_Read... [20:27:41]Read from MH i2c: E2 03 00 [20:27:41]MH_I2C_Read... [20:27:41]Read from MH i2c: E2 03 00 50 86 00 90 00 4A [20:27:41]RAPDU: 90 00 [20:27:41]wFMCommunicate OK [20:27:41]wFMCommunicate request_size=10 [20:27:41]MH_SAM_APDU [20:27:41]CAPDU: 80 0D 02 02 05 5B 68 30 9B 65 [20:27:41]Write to MH i2c: E2 0D 00 51 86 80 0D 02 02 05 00 5B 68 30 9B 65 00 00 4E [20:27:41]Write i2c OK [20:27:41]MH_I2C_Read... [20:27:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:27:41]Read from MH i2c: E2 [20:27:41]MH_I2C_Read... [20:27:41]Read from MH i2c: E2 03 00 [20:27:41]MH_I2C_Read... [20:27:41]Read from MH i2c: E2 03 00 51 86 00 90 00 4B [20:27:41]RAPDU: 90 00 [20:27:41]wFMCommunicate OK [20:27:41]wFMCommunicate request_size=4 [20:27:41]MH_SAM_APDU [20:27:41]CAPDU: 80 0D 03 02 [20:27:41]Write to MH i2c: E2 08 00 52 86 80 0D 03 02 00 00 00 00 53 [20:27:41]Write i2c OK [20:27:41]MH_I2C_Read... [20:27:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:27:41]Read from MH i2c: E2 [20:27:41]MH_I2C_Read... [20:27:41]Read from MH i2c: E2 0B 00 [20:27:41]MH_I2C_Read... [20:27:41]Read from MH i2c: E2 0B 00 52 86 00 C0 8F 89 7A 5D 55 E1 4A 90 00 83 [20:27:41]RAPDU: C0 8F 89 7A 5D 55 E1 4A 90 00 [20:27:41]wFMCommunicate OK [20:27:41]SAM_PROTO_SignData done [20:27:41]FM_MakeSignedData done [20:27:41]CreateOFDProtocolMessage [20:27:41]wFMCommunicate request_size=4 [20:27:41]MH_SAM_APDU [20:27:41]CAPDU: 80 11 00 00 [20:27:41]Write to MH i2c: E2 08 00 53 86 80 11 00 00 00 00 00 00 53 [20:27:41]Write i2c OK [20:27:41]MH_I2C_Read... [20:27:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:27:41]Read from MH i2c: E2 [20:27:41]MH_I2C_Read... [20:27:41]Read from MH i2c: E2 17 00 [20:27:41]MH_I2C_Read... [20:27:41]Read from MH i2c: E2 17 00 53 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 A8 [20:27:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [20:27:41]wFMCommunicate OK [20:27:41]CreateOFDProtocolMessage done [20:27:41]OFDSenderStorePacket 156749 [20:27:41]StoreOFDPacket docnum=156749 [20:27:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 92 53 07 01 8D A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 2C 01 00 00 F4 03 04 00 43 A2 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4D 64 02 00 35 04 06 00 99 5B 68 30 9B 65 C0 8F 89 7A 5D 55 E1 4A [20:27:41]CheckFolder [20:27:41]dirname=/storage/ofd_packets [20:27:41]CheckFolder done [20:27:41]ProducePacketName [20:27:41]name=ofd_packets/00156749 [20:27:41]NVStorageSaveData ofd_packets/00156749 [20:27:41]File name is /storage/ofd_packets/00156749 [20:27:41]Write 301 bytes [20:27:41]NVStorageSaveData done [20:27:41]OFDSenderStorePacket done [20:27:41]KKMCreateOFDPacket done [20:27:41]NVStorageSaveData kkm_last_timestamp [20:27:41]File name is /storage/kkm_last_timestamp [20:27:41]Write 4 bytes [20:27:41]NVStorageSaveData done [20:27:41]ExternCall_PrintAddStr [20:27:41]wPrintStart [20:27:41]Write to MH i2c: 01 00 00 54 86 DA [20:27:41]Write i2c OK [20:27:41]MH_I2C_Read... [20:27:41]Read from MH i2c: 01 [20:27:41]MH_I2C_Read... [20:27:41]Read from MH i2c: 01 07 00 [20:27:41]MH_I2C_Read... [20:27:41]Read from MH i2c: 01 07 00 54 86 00 00 00 00 00 FF 0F EF [20:27:41]RasterBufferAndPrint [20:27:41]line Счет N : (1)99563 [20:27:41]line ИНН: 02508201610067 [20:27:41]line Контрольно-Кассовый Чек [20:27:41]line ПРОДАЖА [20:27:41]line ТРК (МРК, ГНК) : 31 [20:27:41]line Товар: 2710124130 [20:27:41]line Аи-92-К-5 [20:27:41]line 2.990 * 66.90 [20:27:41]line = 200.03 [20:27:41]line НДС 12% НСП 1% [20:27:41]line > о реализуемом товаре [20:27:41]line ОКРУГЛЕНИЕ: -0.03 [20:27:41]line ИТОГО: 200.00 [20:27:41]line Внесено: 200.00 [20:27:41]line СДАЧА: 0.00 [20:27:41]line НСП 1% : 1.77 [20:27:41]line НДС 12% : 21.24 [20:27:41]line Наличными: 200.00 [20:27:41]line Безнал.: 0.00 [20:27:41]line Место: АЗС № 143 "Партнер Нефть" [20:27:41]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [20:27:41]line СНО: Общий режим [20:27:41]line Чек 300 27.10.2024 20:27 [20:27:41]line Смена: 537 ФФД: 1.0 [20:27:41]line ЗНМ: 0300000096 [20:27:41]line РНМ: 0000000000091693 [20:27:41]line Версия ККМ: 001 [20:27:41]line ФМ: 0000000000871792 [20:27:41]line ФД: 156749 [20:27:41]line ФПД: 168617869089637 [20:27:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T202747&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156749&fm=168617869089637&tin=02508201610067®Number=0000000000091693&sum=20000 [20:27:42]OFD Sender: Processing packet 156749 [packets to send 31, broken 30] [20:27:42]ProducePacketName [20:27:42]name=ofd_packets/00156749 [20:27:42]OFD Sender: To server: pG, [20:27:42]CommunicateWithHost lk.salyk.kg:30040 [20:27:42]ConnectInit lk.salyk.kg [20:27:42]written 0, free lines is 4095 [20:27:42]Connected sock=9 [20:27:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 92 53 07 01 8D A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 2C 01 00 00 F4 03 04 00 43 A2 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4D 64 02 00 35 04 06 00 99 5B 68 30 9B 65 C0 8F 89 7A 5D 55 E1 4A [20:27:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 3B 44 47 00 39 9D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4D 64 02 00 F4 03 04 00 B2 47 1E 67 B6 04 01 00 00 47 C8 AE FA 75 FE 43 5A [20:27:42]CommunicateWithHost err = 0 [20:27:42]CheckOFDResponse [20:27:42]1017 (14) - 77093643461234 [20:27:42]1041 (16) - 0000000000871792 [20:27:42]1040 (4) - 156749 [20:27:42]1012 (4) - 27.10.2024 14:01 [20:27:42]1206 (1) - 0 [20:27:42]OFD Sender: Remove packet 156749 [20:27:42]ProducePacketName [20:27:42]name=ofd_packets/00156749 [20:27:42]NVStorageDeleteData [20:27:42]Write to MH i2c: 01 00 00 7F 86 05 [20:27:42]Write i2c OK [20:27:42]MH_I2C_Read... [20:27:42]Read from MH i2c: 01 [20:27:42]MH_I2C_Read... [20:27:42]Read from MH i2c: 01 07 00 [20:27:42]MH_I2C_Read... [20:27:42]Read from MH i2c: 01 07 00 7F 86 00 00 00 00 00 F0 0C 08 [20:27:42]RasterBufferAndPrint [20:27:42]line [20:27:42]line [20:27:42]line [20:27:42]line [20:27:42]line [20:27:42]written 0, free lines is 3321 [20:27:42]process_action close_receipt done [20:27:42]requested_data is exist [20:27:42]produce_requested_data [20:27:42]requested_item fm.sn is exist - process it [20:27:42]wFMCommunicate request_size=4 [20:27:42]MH_SAM_APDU [20:27:42]CAPDU: 80 11 00 00 [20:27:42]Write to MH i2c: E2 08 00 86 86 80 11 00 00 00 00 00 00 86 [20:27:42]Write i2c OK [20:27:42]MH_I2C_Read... [20:27:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:27:42]Read from MH i2c: E2 [20:27:42]MH_I2C_Read... [20:27:42]Read from MH i2c: E2 17 00 [20:27:42]MH_I2C_Read... [20:27:42]Read from MH i2c: E2 17 00 86 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 DB [20:27:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [20:27:42]wFMCommunicate OK [20:27:42]requested_item fd.num is exist - process it [20:27:42]SAM_PROTO_GetFieldsCounters [20:27:42]wFMCommunicate request_size=4 [20:27:42]MH_SAM_APDU [20:27:42]CAPDU: 80 13 00 00 [20:27:42]Write to MH i2c: E2 08 00 87 86 80 13 00 00 00 00 00 00 89 [20:27:42]Write i2c OK [20:27:42]MH_I2C_Read... [20:27:42]Read from MH i2c: E2 [20:27:42]MH_I2C_Read... [20:27:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:27:43]Read from MH i2c: E2 62 00 [20:27:43]MH_I2C_Read... [20:27:43]Read from MH i2c: E2 62 00 87 86 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 4D 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 2C 01 00 00 5E 04 04 00 2C 01 00 00 57 04 04 00 2D 01 00 00 19 04 04 00 00 00 00 00 90 00 04 [20:27:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 4D 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 2C 01 00 00 5E 04 04 00 2C 01 00 00 57 04 04 00 2D 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:27:43]wFMCommunicate OK [20:27:43]SAM_PROTO_GetFieldsCounters done [20:27:43]requested_item shift.num is exist - process it [20:27:43]requested_item shift.opened is exist - process it [20:27:43]req_shift_opened [20:27:43]FM_GetShiftState [20:27:43]SAM_PROTO_GetShiftState [20:27:43]wFMCommunicate request_size=4 [20:27:43]MH_SAM_APDU [20:27:43]CAPDU: 80 13 01 00 [20:27:43]Write to MH i2c: E2 08 00 88 86 80 13 01 00 00 00 00 00 8B [20:27:43]Write i2c OK [20:27:43]MH_I2C_Read... [20:27:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:27:43]Read from MH i2c: E2 [20:27:43]MH_I2C_Read... [20:27:43]Read from MH i2c: E2 0E 00 [20:27:43]MH_I2C_Read... [20:27:43]Read from MH i2c: E2 0E 00 88 86 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 58 [20:27:43]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [20:27:43]wFMCommunicate OK [20:27:43]SAM_PROTO_GetShiftState done [20:27:43]FM_GetShiftState done [20:27:43]req_shift_opened done [20:27:43]requested_item shift.open_date is exist - process it [20:27:43]req_shift_open_date [20:27:43]req_shift_open_date done [20:27:43]produce_requested_data done [20:27:43]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156749,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [20:27:43]process_action_free close_receipt [20:27:43]json_value_free [20:27:43]json_value_free done [20:27:43]process_json_proto returns [20:27:43]Send response to host [20:27:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156749,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [20:27:43]free response buf [20:27:43]execute_script done [20:27:43]execute_script returns [20:27:43]free content buf [20:27:43]Sock 11.Close socket [20:27:43]Sock 11.Thread stoped [20:27:43]OFD Sender: No OFD packet to send [20:27:48]OFD Sender: No OFD packet to send [20:27:53]OFD Sender: No OFD packet to send [20:27:58]OFD Sender: No OFD packet to send [20:28:03]OFD Sender: No OFD packet to send [20:28:08]OFD Sender: No OFD packet to send [20:28:13]OFD Sender: No OFD packet to send [20:28:18]OFD Sender: No OFD packet to send [20:28:23]OFD Sender: No OFD packet to send [20:28:28]OFD Sender: No OFD packet to send [20:28:33]OFD Sender: No OFD packet to send [20:28:38]OFD Sender: No OFD packet to send [20:28:40]accept exits with 8 [20:28:40]New connection [20:28:40]New thread 3066834276 created [20:28:40]Thread 3066977636 joined [20:28:40]Waiting for new connection... [20:28:40] Sock 8.Parse request [20:28:40]Sock 8.Check first char [20:28:40]Sock 8.First char is OK [20:28:40]request: POST /json_proto HTTP/1.0 [20:28:40]Method: POST [20:28:40]URL: /json_proto [20:28:40]Method is POST - this is cgi request [20:28:40]url: /json_proto [20:28:40]query_string will be loaded in cgi processing [20:28:40]execute_cgi json_proto POST (null) [20:28:40]execute_cgi path=json_proto method=POST [20:28:40]POST find Content-Length [20:28:40]Host: 172.17.63.3:8080 [20:28:40]Content-Length: 676 [20:28:40]Content-Type: application/json [20:28:40] [20:28:40]POST finish read [20:28:40]Found Content-Length = 676 [20:28:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99564", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:28:40]execute_script... [20:28:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99564", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:28:40]POST & json_proto [20:28:40]process_json_proto [20:28:40]json parsed OK: [20:28:40]protocol is kg_v1.0 [20:28:40]action value=close_receipt [20:28:40]process_action close_receipt [20:28:40]cmd_close_receipt [20:28:40]MH_GetDate [20:28:40]Write to MH i2c: F0 00 00 89 86 FE [20:28:40]Write i2c OK [20:28:40]MH_I2C_Read... [20:28:40]Read from MH i2c: F0 [20:28:40]MH_I2C_Read... [20:28:40]Read from MH i2c: F0 09 00 [20:28:40]MH_I2C_Read... [20:28:40]Read from MH i2c: F0 09 00 89 86 00 80 A2 1E 67 50 D1 6C 64 9F [20:28:40]GetLastDocTimeStamp 1730060867 [20:28:40]current date 1730060928 [20:28:40]FM_GetShiftState [20:28:40]SAM_PROTO_GetShiftState [20:28:40]wFMCommunicate request_size=4 [20:28:40]MH_SAM_APDU [20:28:40]CAPDU: 80 13 01 00 [20:28:40]Write to MH i2c: E2 08 00 8A 86 80 13 01 00 00 00 00 00 8D [20:28:40]Write i2c OK [20:28:40]MH_I2C_Read... [20:28:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:28:40]Read from MH i2c: E2 [20:28:40]MH_I2C_Read... [20:28:40]Read from MH i2c: E2 0E 00 [20:28:40]MH_I2C_Read... [20:28:40]Read from MH i2c: E2 0E 00 8A 86 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 5A [20:28:40]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [20:28:40]wFMCommunicate OK [20:28:40]SAM_PROTO_GetShiftState done [20:28:40]FM_GetShiftState done [20:28:40]opened in 1729989044 [20:28:40]opened+sec_in_day 1730075444 [20:28:40]quantity*price = 30038 [20:28:40]sum+1 = 30039 [20:28:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 301 27.10.2024 20:28 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156750 ФПД: 193511835160313 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T202848&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156750&fm=193511835160313&tin=02508201610067®Number=0000000000091693&sum=30000 [20:28:42]StoreToDocumentArchive [20:28:42]shift 537 fd 156750 [20:28:42]save to /storage/0537/doc_00156750 [20:28:42]save last doc name /storage/0537/doc_00156750 to /storage/kkm_last_doc_name [20:28:42]save OK [20:28:42]Clear old archive folders... [20:28:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:28:42]tlvbuf is 019B1140 [20:28:42]SAM_PROTO_ClearQueue [20:28:42]wFMCommunicate request_size=4 [20:28:42]MH_SAM_APDU [20:28:42]CAPDU: 80 09 00 00 [20:28:42]Write to MH i2c: E2 08 00 97 86 80 09 00 00 00 00 00 00 8F [20:28:42]Write i2c OK [20:28:42]MH_I2C_Read... [20:28:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:28:42]Read from MH i2c: E2 [20:28:42]MH_I2C_Read... [20:28:42]Read from MH i2c: E2 03 00 [20:28:42]MH_I2C_Read... [20:28:42]Read from MH i2c: E2 03 00 97 86 00 90 00 91 [20:28:42]RAPDU: 90 00 [20:28:42]wFMCommunicate OK [20:28:42]SAM_PROTO_ClearQueue done [20:28:42]KKMCreateOFDPacket [20:28:42]OFDProtocolAddRootSTLVToBuf [20:28:42]FM_MakeSignedData [20:28:42]FM_MakeSignedData [20:28:42]SAM_PROTO_SignData [20:28:42]wFMCommunicate request_size=4 [20:28:42]MH_SAM_APDU [20:28:42]CAPDU: 80 0D 01 02 [20:28:42]Write to MH i2c: E2 08 00 98 86 80 0D 01 02 00 00 00 00 97 [20:28:42]Write i2c OK [20:28:42]MH_I2C_Read... [20:28:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:28:42]Read from MH i2c: E2 [20:28:42]MH_I2C_Read... [20:28:42]Read from MH i2c: E2 03 00 [20:28:42]MH_I2C_Read... [20:28:42]Read from MH i2c: E2 03 00 98 86 00 90 00 92 [20:28:42]RAPDU: 90 00 [20:28:42]wFMCommunicate OK [20:28:42]wFMCommunicate request_size=255 [20:28:42]MH_SAM_APDU [20:28: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 80 A2 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4E 64 02 00 35 04 06 00 AF [20:28:42]Write to MH i2c: E2 02 01 99 86 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 80 A2 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4E 64 02 00 35 04 06 00 AF 00 00 72 [20:28:42]Write i2c OK [20:28:42]MH_I2C_Read... [20:28:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:28:42]Read from MH i2c: E2 [20:28:42]MH_I2C_Read... [20:28:42]Read from MH i2c: E2 03 00 [20:28:42]MH_I2C_Read... [20:28:42]Read from MH i2c: E2 03 00 99 86 00 90 00 93 [20:28:42]RAPDU: 90 00 [20:28:42]wFMCommunicate OK [20:28:42]wFMCommunicate request_size=10 [20:28:42]MH_SAM_APDU [20:28:42]CAPDU: 80 0D 02 02 05 FF 7C 31 CE F9 [20:28:42]Write to MH i2c: E2 0D 00 9A 86 80 0D 02 02 05 00 FF 7C 31 CE F9 00 00 17 [20:28:42]Write i2c OK [20:28:42]MH_I2C_Read... [20:28:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:28:42]Read from MH i2c: E2 [20:28:42]MH_I2C_Read... [20:28:42]Read from MH i2c: E2 03 00 [20:28:42]MH_I2C_Read... [20:28:42]Read from MH i2c: E2 03 00 9A 86 00 90 00 94 [20:28:42]RAPDU: 90 00 [20:28:42]wFMCommunicate OK [20:28:42]wFMCommunicate request_size=4 [20:28:42]MH_SAM_APDU [20:28:42]CAPDU: 80 0D 03 02 [20:28:42]Write to MH i2c: E2 08 00 9B 86 80 0D 03 02 00 00 00 00 9C [20:28:42]Write i2c OK [20:28:42]MH_I2C_Read... [20:28:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:28:42]Read from MH i2c: E2 [20:28:42]MH_I2C_Read... [20:28:42]Read from MH i2c: E2 0B 00 [20:28:42]MH_I2C_Read... [20:28:42]Read from MH i2c: E2 0B 00 9B 86 00 F3 E5 FD EA FA 3F 34 1A 90 00 E3 [20:28:42]RAPDU: F3 E5 FD EA FA 3F 34 1A 90 00 [20:28:42]wFMCommunicate OK [20:28:42]SAM_PROTO_SignData done [20:28:42]FM_MakeSignedData done [20:28:42]CreateOFDProtocolMessage [20:28:42]wFMCommunicate request_size=4 [20:28:42]MH_SAM_APDU [20:28:42]CAPDU: 80 11 00 00 [20:28:42]Write to MH i2c: E2 08 00 9C 86 80 11 00 00 00 00 00 00 9C [20:28:42]Write i2c OK [20:28:42]MH_I2C_Read... [20:28:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:28:42]Read from MH i2c: E2 [20:28:42]MH_I2C_Read... [20:28:42]Read from MH i2c: E2 17 00 [20:28:42]MH_I2C_Read... [20:28:42]Read from MH i2c: E2 17 00 9C 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 F1 [20:28:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [20:28:42]wFMCommunicate OK [20:28:42]CreateOFDProtocolMessage done [20:28:42]OFDSenderStorePacket 156750 [20:28:42]StoreOFDPacket docnum=156750 [20:28:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 76 3A 07 01 AB 03 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 80 A2 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4E 64 02 00 35 04 06 00 AF FF 7C 31 CE F9 F3 E5 FD EA FA 3F 34 1A [20:28:42]CheckFolder [20:28:42]dirname=/storage/ofd_packets [20:28:42]CheckFolder done [20:28:42]ProducePacketName [20:28:42]name=ofd_packets/00156750 [20:28:42]NVStorageSaveData ofd_packets/00156750 [20:28:42]File name is /storage/ofd_packets/00156750 [20:28:42]Write 301 bytes [20:28:42]NVStorageSaveData done [20:28:42]OFDSenderStorePacket done [20:28:42]KKMCreateOFDPacket done [20:28:42]NVStorageSaveData kkm_last_timestamp [20:28:42]File name is /storage/kkm_last_timestamp [20:28:42]Write 4 bytes [20:28:42]NVStorageSaveData done [20:28:42]ExternCall_PrintAddStr [20:28:42]wPrintStart [20:28:42]Write to MH i2c: 01 00 00 9D 86 23 [20:28:42]Write i2c OK [20:28:42]MH_I2C_Read... [20:28:42]Read from MH i2c: 01 [20:28:42]MH_I2C_Read... [20:28:42]Read from MH i2c: 01 07 00 [20:28:42]MH_I2C_Read... [20:28:42]Read from MH i2c: 01 07 00 9D 86 00 00 00 00 00 FF 0F 38 [20:28:42]RasterBufferAndPrint [20:28:42]line Счет N : (1)99564 [20:28:42]line ИНН: 02508201610067 [20:28:42]line Контрольно-Кассовый Чек [20:28:42]line ПРОДАЖА [20:28:42]line ТРК (МРК, ГНК) : 31 [20:28:42]line Товар: 2710124130 [20:28:42]line Аи-92-К-5 [20:28:42]line 4.490 * 66.90 [20:28:42]line = 300.38 [20:28:42]line НДС 12% НСП 1% [20:28:42]line > о реализуемом товаре [20:28:42]line ОКРУГЛЕНИЕ: -0.38 [20:28:42]line ИТОГО: 300.00 [20:28:42]line Внесено: 300.00 [20:28:42]line СДАЧА: 0.00 [20:28:42]line НСП 1% : 2.66 [20:28:42]line НДС 12% : 31.90 [20:28:42]line Наличными: 300.00 [20:28:42]line Безнал.: 0.00 [20:28:42]line Место: АЗС № 143 "Партнер Нефть" [20:28:42]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [20:28:42]line СНО: Общий режим [20:28:42]line Чек 301 27.10.2024 20:28 [20:28:42]line Смена: 537 ФФД: 1.0 [20:28:42]line ЗНМ: 0300000096 [20:28:42]line РНМ: 0000000000091693 [20:28:42]line Версия ККМ: 001 [20:28:42]line ФМ: 0000000000871792 [20:28:42]line ФД: 156750 [20:28:42]line ФПД: 193511835160313 [20:28:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T202848&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156750&fm=193511835160313&tin=02508201610067®Number=0000000000091693&sum=30000 [20:28:42]OFD Sender: Processing packet 156750 [packets to send 31, broken 30] [20:28:42]ProducePacketName [20:28:42]name=ofd_packets/00156750 [20:28:42]OFD Sender: To server: pG, [20:28:42]CommunicateWithHost lk.salyk.kg:30040 [20:28:42]ConnectInit lk.salyk.kg [20:28:42]written 0, free lines is 4095 [20:28:43]Connected sock=10 [20:28:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 76 3A 07 01 AB 03 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 80 A2 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4E 64 02 00 35 04 06 00 AF FF 7C 31 CE F9 F3 E5 FD EA FA 3F 34 1A [20:28:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 9F BC 47 00 BE 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4E 64 02 00 F4 03 04 00 EF 47 1E 67 B6 04 01 00 00 72 F3 AA 70 AA 92 CA 03 [20:28:43]CommunicateWithHost err = 0 [20:28:43]CheckOFDResponse [20:28:43]1017 (14) - 77093643461234 [20:28:43]1041 (16) - 0000000000871792 [20:28:43]1040 (4) - 156750 [20:28:43]1012 (4) - 27.10.2024 14:02 [20:28:43]1206 (1) - 0 [20:28:43]OFD Sender: Remove packet 156750 [20:28:43]ProducePacketName [20:28:43]name=ofd_packets/00156750 [20:28:43]NVStorageDeleteData [20:28:43]Write to MH i2c: 01 00 00 C8 86 4E [20:28:43]Write i2c OK [20:28:43]MH_I2C_Read... [20:28:43]Read from MH i2c: 01 [20:28:43]MH_I2C_Read... [20:28:43]Read from MH i2c: 01 07 00 [20:28:43]MH_I2C_Read... [20:28:43]Read from MH i2c: 01 07 00 C8 86 00 00 00 00 00 F5 0C 56 [20:28:43]RasterBufferAndPrint [20:28:43]line [20:28:43]line [20:28:43]line [20:28:43]line [20:28:43]line [20:28:43]written 0, free lines is 3323 [20:28:43]process_action close_receipt done [20:28:43]requested_data is exist [20:28:43]produce_requested_data [20:28:43]requested_item fm.sn is exist - process it [20:28:43]wFMCommunicate request_size=4 [20:28:43]MH_SAM_APDU [20:28:43]CAPDU: 80 11 00 00 [20:28:43]Write to MH i2c: E2 08 00 CF 86 80 11 00 00 00 00 00 00 CF [20:28:43]Write i2c OK [20:28:43]MH_I2C_Read... [20:28:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:28:43]Read from MH i2c: E2 [20:28:43]MH_I2C_Read... [20:28:43]Read from MH i2c: E2 17 00 [20:28:43]MH_I2C_Read... [20:28:43]Read from MH i2c: E2 17 00 CF 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 24 [20:28:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [20:28:43]wFMCommunicate OK [20:28:43]requested_item fd.num is exist - process it [20:28:43]SAM_PROTO_GetFieldsCounters [20:28:43]wFMCommunicate request_size=4 [20:28:43]MH_SAM_APDU [20:28:43]CAPDU: 80 13 00 00 [20:28:43]Write to MH i2c: E2 08 00 D0 86 80 13 00 00 00 00 00 00 D2 [20:28:43]Write i2c OK [20:28:43]MH_I2C_Read... [20:28:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:28:43]Read from MH i2c: E2 [20:28:43]MH_I2C_Read... [20:28:43]Read from MH i2c: E2 62 00 [20:28:43]MH_I2C_Read... [20:28:43]Read from MH i2c: E2 62 00 D0 86 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 4E 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 2D 01 00 00 5E 04 04 00 2D 01 00 00 57 04 04 00 2E 01 00 00 19 04 04 00 00 00 00 00 90 00 51 [20:28:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 4E 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 2D 01 00 00 5E 04 04 00 2D 01 00 00 57 04 04 00 2E 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:28:43]wFMCommunicate OK [20:28:43]SAM_PROTO_GetFieldsCounters done [20:28:43]requested_item shift.num is exist - process it [20:28:43]requested_item shift.opened is exist - process it [20:28:43]req_shift_opened [20:28:43]FM_GetShiftState [20:28:43]SAM_PROTO_GetShiftState [20:28:43]wFMCommunicate request_size=4 [20:28:43]MH_SAM_APDU [20:28:43]CAPDU: 80 13 01 00 [20:28:43]Write to MH i2c: E2 08 00 D1 86 80 13 01 00 00 00 00 00 D4 [20:28:43]Write i2c OK [20:28:43]MH_I2C_Read... [20:28:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:28:43]Read from MH i2c: E2 [20:28:43]MH_I2C_Read... [20:28:43]Read from MH i2c: E2 0E 00 [20:28:43]MH_I2C_Read... [20:28:43]Read from MH i2c: E2 0E 00 D1 86 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 A1 [20:28:43]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [20:28:43]wFMCommunicate OK [20:28:43]SAM_PROTO_GetShiftState done [20:28:43]FM_GetShiftState done [20:28:43]req_shift_opened done [20:28:43]requested_item shift.open_date is exist - process it [20:28:43]req_shift_open_date [20:28:43]req_shift_open_date done [20:28:43]produce_requested_data done [20:28:43]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156750,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [20:28:43]process_action_free close_receipt [20:28:43]json_value_free [20:28:43]json_value_free done [20:28:43]process_json_proto returns [20:28:43]Send response to host [20:28:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156750,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [20:28:43]free response buf [20:28:43]execute_script done [20:28:43]execute_script returns [20:28:43]free content buf [20:28:43]Sock 8.Close socket [20:28:43]Sock 8.Thread stoped [20:28:43]OFD Sender: No OFD packet to send [20:28:48]OFD Sender: No OFD packet to send [20:28:53]OFD Sender: No OFD packet to send [20:28:58]OFD Sender: No OFD packet to send [20:29:03]OFD Sender: No OFD packet to send [20:29:08]OFD Sender: No OFD packet to send [20:29:13]OFD Sender: No OFD packet to send [20:29:18]OFD Sender: No OFD packet to send [20:29:23]OFD Sender: No OFD packet to send [20:29:28]OFD Sender: No OFD packet to send [20:29:33]OFD Sender: No OFD packet to send [20:29:38]OFD Sender: No OFD packet to send [20:29:43]OFD Sender: No OFD packet to send [20:29:48]OFD Sender: No OFD packet to send [20:29:53]OFD Sender: No OFD packet to send [20:29:58]OFD Sender: No OFD packet to send [20:30:03]OFD Sender: No OFD packet to send [20:30:08]OFD Sender: No OFD packet to send [20:30:13]OFD Sender: No OFD packet to send [20:30:18]OFD Sender: No OFD packet to send [20:30:23]OFD Sender: No OFD packet to send [20:30:28]OFD Sender: No OFD packet to send [20:30:33]OFD Sender: No OFD packet to send [20:30:38]OFD Sender: No OFD packet to send [20:30:43]OFD Sender: No OFD packet to send [20:30:48]OFD Sender: No OFD packet to send [20:30:53]OFD Sender: No OFD packet to send [20:30:58]OFD Sender: No OFD packet to send [20:31:03]OFD Sender: No OFD packet to send [20:31:08]OFD Sender: No OFD packet to send [20:31:13]OFD Sender: No OFD packet to send [20:31:18]OFD Sender: No OFD packet to send [20:31:23]OFD Sender: No OFD packet to send [20:31:28]OFD Sender: No OFD packet to send [20:31:33]OFD Sender: No OFD packet to send [20:31:38]OFD Sender: No OFD packet to send [20:31:43]OFD Sender: No OFD packet to send [20:31:48]OFD Sender: No OFD packet to send [20:31:53]OFD Sender: No OFD packet to send [20:31:58]OFD Sender: No OFD packet to send [20:32:04]OFD Sender: No OFD packet to send [20:32:09]OFD Sender: No OFD packet to send [20:32:14]OFD Sender: No OFD packet to send [20:32:19]OFD Sender: No OFD packet to send [20:32:24]OFD Sender: No OFD packet to send [20:32:29]OFD Sender: No OFD packet to send [20:32:34]OFD Sender: No OFD packet to send [20:32:39]OFD Sender: No OFD packet to send [20:32:44]OFD Sender: No OFD packet to send [20:32:49]OFD Sender: No OFD packet to send [20:32:51]accept exits with 9 [20:32:51]New connection [20:32:51]New thread 3066977636 created [20:32:51]Thread 3066834276 joined [20:32:51]Waiting for new connection... [20:32:51] Sock 9.Parse request [20:32:51]Sock 9.Check first char [20:32:51]Sock 9.First char is OK [20:32:51]request: POST /json_proto HTTP/1.0 [20:32:51]Method: POST [20:32:51]URL: /json_proto [20:32:51]Method is POST - this is cgi request [20:32:51]url: /json_proto [20:32:51]query_string will be loaded in cgi processing [20:32:51]execute_cgi json_proto POST (null) [20:32:51]execute_cgi path=json_proto method=POST [20:32:51]POST find Content-Length [20:32:51]Host: 172.17.63.3:8080 [20:32:51]Content-Length: 765 [20:32:51]Content-Type: application/json [20:32:51] [20:32:51]POST finish read [20:32:51]Found Content-Length = 765 [20:32:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99565", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:32:51]execute_script... [20:32:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99565", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:32:51]POST & json_proto [20:32:51]process_json_proto [20:32:51]json parsed OK: [20:32:51]protocol is kg_v1.0 [20:32:51]action value=close_receipt [20:32:51]process_action close_receipt [20:32:51]cmd_close_receipt [20:32:51]MH_GetDate [20:32:51]Write to MH i2c: F0 00 00 D2 86 47 [20:32:51]Write i2c OK [20:32:51]MH_I2C_Read... [20:32:51]Read from MH i2c: F0 [20:32:51]MH_I2C_Read... [20:32:51]Read from MH i2c: F0 09 00 [20:32:51]MH_I2C_Read... [20:32:51]Read from MH i2c: F0 09 00 D2 86 00 7B A3 1E 67 50 D1 6C 64 E4 [20:32:51]GetLastDocTimeStamp 1730060928 [20:32:51]current date 1730061179 [20:32:51]FM_GetShiftState [20:32:51]SAM_PROTO_GetShiftState [20:32:51]wFMCommunicate request_size=4 [20:32:51]MH_SAM_APDU [20:32:51]CAPDU: 80 13 01 00 [20:32:51]Write to MH i2c: E2 08 00 D3 86 80 13 01 00 00 00 00 00 D6 [20:32:51]Write i2c OK [20:32:51]MH_I2C_Read... [20:32:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:32:51]Read from MH i2c: E2 [20:32:51]MH_I2C_Read... [20:32:51]Read from MH i2c: E2 0E 00 [20:32:51]MH_I2C_Read... [20:32:51]Read from MH i2c: E2 0E 00 D3 86 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 A3 [20:32:51]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [20:32:51]wFMCommunicate OK [20:32:51]SAM_PROTO_GetShiftState done [20:32:51]FM_GetShiftState done [20:32:51]opened in 1729989044 [20:32:51]opened+sec_in_day 1730075444 [20:32:51]quantity*price = 30038 [20:32:51]sum+1 = 30039 [20:32:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.38 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 0.00 Безнал.: 300.38 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 302 27.10.2024 20:32 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 156751 ФПД: 106557413505647 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T203259&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156751&fm=106557413505647&tin=02508201610067®Number=0000000000091693&sum=30038 [20:32:52]StoreToDocumentArchive [20:32:52]shift 537 fd 156751 [20:32:52]save to /storage/0537/doc_00156751 [20:32:52]save last doc name /storage/0537/doc_00156751 to /storage/kkm_last_doc_name [20:32:52]save OK [20:32:52]Clear old archive folders... [20:32:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:32:52]tlvbuf is 017417A0 [20:32:52]SAM_PROTO_ClearQueue [20:32:52]wFMCommunicate request_size=4 [20:32:52]MH_SAM_APDU [20:32:52]CAPDU: 80 09 00 00 [20:32:52]Write to MH i2c: E2 08 00 E0 86 80 09 00 00 00 00 00 00 D8 [20:32:52]Write i2c OK [20:32:52]MH_I2C_Read... [20:32:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:32:52]Read from MH i2c: E2 [20:32:52]MH_I2C_Read... [20:32:52]Read from MH i2c: E2 03 00 [20:32:52]MH_I2C_Read... [20:32:52]Read from MH i2c: E2 03 00 E0 86 00 90 00 DA [20:32:52]RAPDU: 90 00 [20:32:52]wFMCommunicate OK [20:32:52]SAM_PROTO_ClearQueue done [20:32:52]KKMCreateOFDPacket [20:32:52]OFDProtocolAddRootSTLVToBuf [20:32:52]FM_MakeSignedData [20:32:52]FM_MakeSignedData [20:32:52]SAM_PROTO_SignData [20:32:52]wFMCommunicate request_size=4 [20:32:52]MH_SAM_APDU [20:32:52]CAPDU: 80 0D 01 02 [20:32:52]Write to MH i2c: E2 08 00 E1 86 80 0D 01 02 00 00 00 00 E0 [20:32:52]Write i2c OK [20:32:52]MH_I2C_Read... [20:32:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:32:52]Read from MH i2c: E2 [20:32:52]MH_I2C_Read... [20:32:52]Read from MH i2c: E2 03 00 [20:32:52]MH_I2C_Read... [20:32:52]Read from MH i2c: E2 03 00 E1 86 00 90 00 DB [20:32:52]RAPDU: 90 00 [20:32:52]wFMCommunicate OK [20:32:52]wFMCommunicate request_size=255 [20:32:52]MH_SAM_APDU [20:32: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 7B A3 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4F 64 02 00 35 04 06 00 60 [20:32:52]Write to MH i2c: E2 02 01 E2 86 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 7B A3 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4F 64 02 00 35 04 06 00 60 00 00 B6 [20:32:52]Write i2c OK [20:32:52]MH_I2C_Read... [20:32:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:32:53]Read from MH i2c: E2 [20:32:53]MH_I2C_Read... [20:32:53]Read from MH i2c: E2 03 00 [20:32:53]MH_I2C_Read... [20:32:53]Read from MH i2c: E2 03 00 E2 86 00 90 00 DC [20:32:53]RAPDU: 90 00 [20:32:53]wFMCommunicate OK [20:32:53]wFMCommunicate request_size=10 [20:32:53]MH_SAM_APDU [20:32:53]CAPDU: 80 0D 02 02 05 E9 D4 C7 BA 6F [20:32:53]Write to MH i2c: E2 0D 00 E3 86 80 0D 02 02 05 00 E9 D4 C7 BA 6F 00 00 9A [20:32:53]Write i2c OK [20:32:53]MH_I2C_Read... [20:32:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:32:53]Read from MH i2c: E2 [20:32:53]MH_I2C_Read... [20:32:53]Read from MH i2c: E2 03 00 [20:32:53]MH_I2C_Read... [20:32:53]Read from MH i2c: E2 03 00 E3 86 00 90 00 DD [20:32:53]RAPDU: 90 00 [20:32:53]wFMCommunicate OK [20:32:53]wFMCommunicate request_size=4 [20:32:53]MH_SAM_APDU [20:32:53]CAPDU: 80 0D 03 02 [20:32:53]Write to MH i2c: E2 08 00 E4 86 80 0D 03 02 00 00 00 00 E5 [20:32:53]Write i2c OK [20:32:53]MH_I2C_Read... [20:32:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:32:53]Read from MH i2c: E2 [20:32:53]MH_I2C_Read... [20:32:53]Read from MH i2c: E2 0B 00 [20:32:53]MH_I2C_Read... [20:32:53]Read from MH i2c: E2 0B 00 E4 86 00 FE 4D F9 37 63 A1 13 0B 90 00 83 [20:32:53]RAPDU: FE 4D F9 37 63 A1 13 0B 90 00 [20:32:53]wFMCommunicate OK [20:32:53]SAM_PROTO_SignData done [20:32:53]FM_MakeSignedData done [20:32:53]CreateOFDProtocolMessage [20:32:53]wFMCommunicate request_size=4 [20:32:53]MH_SAM_APDU [20:32:53]CAPDU: 80 11 00 00 [20:32:53]Write to MH i2c: E2 08 00 E5 86 80 11 00 00 00 00 00 00 E5 [20:32:53]Write i2c OK [20:32:53]MH_I2C_Read... [20:32:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:32:53]Read from MH i2c: E2 [20:32:53]MH_I2C_Read... [20:32:53]Read from MH i2c: E2 17 00 [20:32:53]MH_I2C_Read... [20:32:53]Read from MH i2c: E2 17 00 E5 86 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 3A [20:32:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [20:32:53]wFMCommunicate OK [20:32:53]CreateOFDProtocolMessage done [20:32:53]OFDSenderStorePacket 156751 [20:32:53]StoreOFDPacket docnum=156751 [20:32:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 B4 94 07 01 08 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 7B A3 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4F 64 02 00 35 04 06 00 60 E9 D4 C7 BA 6F FE 4D F9 37 63 A1 13 0B [20:32:53]CheckFolder [20:32:53]dirname=/storage/ofd_packets [20:32:53]CheckFolder done [20:32:53]ProducePacketName [20:32:53]name=ofd_packets/00156751 [20:32:53]NVStorageSaveData ofd_packets/00156751 [20:32:53]File name is /storage/ofd_packets/00156751 [20:32:53]Write 301 bytes [20:32:53]NVStorageSaveData done [20:32:53]OFDSenderStorePacket done [20:32:53]KKMCreateOFDPacket done [20:32:53]NVStorageSaveData kkm_last_timestamp [20:32:53]File name is /storage/kkm_last_timestamp [20:32:53]Write 4 bytes [20:32:53]NVStorageSaveData done [20:32:53]ExternCall_PrintAddStr [20:32:53]wPrintStart [20:32:53]Write to MH i2c: 01 00 00 E6 86 6C [20:32:53]Write i2c OK [20:32:53]MH_I2C_Read... [20:32:53]Read from MH i2c: 01 [20:32:53]MH_I2C_Read... [20:32:53]Read from MH i2c: 01 07 00 [20:32:53]MH_I2C_Read... [20:32:53]Read from MH i2c: 01 07 00 E6 86 00 00 00 00 00 FF 0F 81 [20:32:53]RasterBufferAndPrint [20:32:53]line Счет N : (1)99565 [20:32:53]line ИНН: 02508201610067 [20:32:53]line Контрольно-Кассовый Чек [20:32:53]line ПРОДАЖА [20:32:53]line ТРК (МРК, ГНК) : 31 [20:32:53]line Товар: 2710124130 [20:32:53]line Аи-92-К-5 [20:32:53]line 4.490 * 66.90 [20:32:53]line = 300.38 [20:32:53]line НДС 12% НСП 1% [20:32:53]line > о реализуемом товаре [20:32:53]line ИТОГО: 300.38 [20:32:53]line НСП 1% : 2.66 [20:32:53]line НДС 12% : 31.90 [20:32:53]line Наличными: 0.00 [20:32:53]line Безнал.: 300.38 [20:32:53]line Место: АЗС № 143 "Партнер Нефть" [20:32:53]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [20:32:53]line СНО: Общий режим [20:32:53]line Чек 302 27.10.2024 20:32 [20:32:53]line Смена: 537 ФФД: 1.0 [20:32:53]line ЗНМ: 0300000096 [20:32:53]line РНМ: 0000000000091693 [20:32:53]line Версия ККМ: 001 [20:32:53]line Платежная система: Mbank [20:32:53]line ФМ: 0000000000871792 [20:32:53]line ФД: 156751 [20:32:53]line ФПД: 106557413505647 [20:32:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T203259&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156751&fm=106557413505647&tin=02508201610067®Number=0000000000091693&sum=30038 [20:32:53]OFD Sender: Processing packet 156751 [packets to send 31, broken 30] [20:32:53]ProducePacketName [20:32:53]name=ofd_packets/00156751 [20:32:53]OFD Sender: To server: pG, [20:32:53]CommunicateWithHost lk.salyk.kg:30040 [20:32:53]ConnectInit lk.salyk.kg [20:32:53]written 0, free lines is 4095 [20:32:53]Connected sock=10 [20:32:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 B4 94 07 01 08 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 7B A3 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 4F 64 02 00 35 04 06 00 60 E9 D4 C7 BA 6F FE 4D F9 37 63 A1 13 0B [20:32:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 4D F8 47 00 2A 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 31 37 39 32 10 04 04 00 4F 64 02 00 F4 03 04 00 E9 48 1E 67 B6 04 01 00 00 5D F7 EB DF 56 5A BC CE [20:32:54]CommunicateWithHost err = 0 [20:32:54]CheckOFDResponse [20:32:54]1017 (14) - 77093643461234 [20:32:54]1041 (16) - 0000000000871792 [20:32:54]1040 (4) - 156751 [20:32:54]1012 (4) - 27.10.2024 14:06 [20:32:54]1206 (1) - 0 [20:32:54]OFD Sender: Remove packet 156751 [20:32:54]ProducePacketName [20:32:54]name=ofd_packets/00156751 [20:32:54]NVStorageDeleteData [20:32:54]Write to MH i2c: 01 00 00 0F 87 96 [20:32:54]Write i2c OK [20:32:54]MH_I2C_Read... [20:32:54]Read from MH i2c: 01 [20:32:54]MH_I2C_Read... [20:32:54]Read from MH i2c: 01 07 00 [20:32:54]MH_I2C_Read... [20:32:54]Read from MH i2c: 01 07 00 0F 87 00 00 00 00 00 02 0D AC [20:32:54]RasterBufferAndPrint [20:32:54]line [20:32:54]line [20:32:54]line [20:32:54]line [20:32:54]line [20:32:54]written 0, free lines is 3337 [20:32:54]process_action close_receipt done [20:32:54]requested_data is exist [20:32:54]produce_requested_data [20:32:54]requested_item fm.sn is exist - process it [20:32:54]wFMCommunicate request_size=4 [20:32:54]MH_SAM_APDU [20:32:54]CAPDU: 80 11 00 00 [20:32:54]Write to MH i2c: E2 08 00 16 87 80 11 00 00 00 00 00 00 17 [20:32:54]Write i2c OK [20:32:54]MH_I2C_Read... [20:32:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:32:54]Read from MH i2c: E2 [20:32:54]MH_I2C_Read... [20:32:54]Read from MH i2c: E2 17 00 [20:32:54]MH_I2C_Read... [20:32:54]Read from MH i2c: E2 17 00 16 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 6C [20:32:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [20:32:54]wFMCommunicate OK [20:32:54]requested_item fd.num is exist - process it [20:32:54]SAM_PROTO_GetFieldsCounters [20:32:54]wFMCommunicate request_size=4 [20:32:54]MH_SAM_APDU [20:32:54]CAPDU: 80 13 00 00 [20:32:54]Write to MH i2c: E2 08 00 17 87 80 13 00 00 00 00 00 00 1A [20:32:54]Write i2c OK [20:32:54]MH_I2C_Read... [20:32:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:32:54]Read from MH i2c: E2 [20:32:54]MH_I2C_Read... [20:32:54]Read from MH i2c: E2 62 00 [20:32:54]MH_I2C_Read... [20:32:54]Read from MH i2c: E2 62 00 17 87 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 4F 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 2E 01 00 00 5E 04 04 00 2E 01 00 00 57 04 04 00 2F 01 00 00 19 04 04 00 00 00 00 00 90 00 9D [20:32:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 4F 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 2E 01 00 00 5E 04 04 00 2E 01 00 00 57 04 04 00 2F 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:32:54]wFMCommunicate OK [20:32:54]SAM_PROTO_GetFieldsCounters done [20:32:54]requested_item shift.num is exist - process it [20:32:54]requested_item shift.opened is exist - process it [20:32:54]req_shift_opened [20:32:54]FM_GetShiftState [20:32:54]SAM_PROTO_GetShiftState [20:32:54]wFMCommunicate request_size=4 [20:32:54]MH_SAM_APDU [20:32:54]CAPDU: 80 13 01 00 [20:32:54]Write to MH i2c: E2 08 00 18 87 80 13 01 00 00 00 00 00 1C [20:32:54]Write i2c OK [20:32:54]MH_I2C_Read... [20:32:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:32:54]Read from MH i2c: E2 [20:32:54]MH_I2C_Read... [20:32:54]Read from MH i2c: E2 0E 00 [20:32:54]MH_I2C_Read... [20:32:54]Read from MH i2c: E2 0E 00 18 87 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 E9 [20:32:54]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [20:32:54]wFMCommunicate OK [20:32:54]SAM_PROTO_GetShiftState done [20:32:54]FM_GetShiftState done [20:32:54]req_shift_opened done [20:32:54]requested_item shift.open_date is exist - process it [20:32:54]req_shift_open_date [20:32:54]req_shift_open_date done [20:32:54]produce_requested_data done [20:32:54]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156751,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [20:32:54]process_action_free close_receipt [20:32:54]json_value_free [20:32:54]json_value_free done [20:32:54]process_json_proto returns [20:32:54]Send response to host [20:32:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156751,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [20:32:54]free response buf [20:32:54]execute_script done [20:32:54]execute_script returns [20:32:54]free content buf [20:32:54]Sock 9.Close socket [20:32:54]Sock 9.Thread stoped [20:32:54]OFD Sender: No OFD packet to send [20:32:59]OFD Sender: No OFD packet to send [20:33:04]OFD Sender: No OFD packet to send [20:33:09]OFD Sender: No OFD packet to send [20:33:14]OFD Sender: No OFD packet to send [20:33:19]OFD Sender: No OFD packet to send [20:33:24]OFD Sender: No OFD packet to send [20:33:29]OFD Sender: No OFD packet to send [20:33:34]OFD Sender: No OFD packet to send [20:33:39]OFD Sender: No OFD packet to send [20:33:44]OFD Sender: No OFD packet to send [20:33:49]OFD Sender: No OFD packet to send [20:33:54]OFD Sender: No OFD packet to send [20:33:59]OFD Sender: No OFD packet to send [20:34:04]OFD Sender: No OFD packet to send [20:34:09]OFD Sender: No OFD packet to send [20:34:14]OFD Sender: No OFD packet to send [20:34:19]OFD Sender: No OFD packet to send [20:34:24]OFD Sender: No OFD packet to send [20:34:29]OFD Sender: No OFD packet to send [20:34:34]OFD Sender: No OFD packet to send [20:34:39]OFD Sender: No OFD packet to send [20:34:44]OFD Sender: No OFD packet to send [20:34:49]OFD Sender: No OFD packet to send [20:34:54]OFD Sender: No OFD packet to send [20:34:59]OFD Sender: No OFD packet to send [20:35:04]OFD Sender: No OFD packet to send [20:35:09]OFD Sender: No OFD packet to send [20:35:14]OFD Sender: No OFD packet to send [20:35:19]OFD Sender: No OFD packet to send [20:35:24]OFD Sender: No OFD packet to send [20:35:29]OFD Sender: No OFD packet to send [20:35:34]OFD Sender: No OFD packet to send [20:35:39]OFD Sender: No OFD packet to send [20:35:44]OFD Sender: No OFD packet to send [20:35:49]OFD Sender: No OFD packet to send [20:35:54]OFD Sender: No OFD packet to send [20:35:59]OFD Sender: No OFD packet to send [20:36:04]OFD Sender: No OFD packet to send [20:36:09]OFD Sender: No OFD packet to send [20:36:14]OFD Sender: No OFD packet to send [20:36:19]accept exits with 8 [20:36:19]New connection [20:36:19]New thread 3066834276 created [20:36:19]Thread 3066977636 joined [20:36:19]Waiting for new connection... [20:36:19] Sock 8.Parse request [20:36:19]Sock 8.Check first char [20:36:19]Sock 8.First char is OK [20:36:19]request: POST /json_proto HTTP/1.0 [20:36:19]Method: POST [20:36:19]URL: /json_proto [20:36:19]Method is POST - this is cgi request [20:36:19]url: /json_proto [20:36:19]query_string will be loaded in cgi processing [20:36:19]execute_cgi json_proto POST (null) [20:36:19]execute_cgi path=json_proto method=POST [20:36:19]POST find Content-Length [20:36:19]Host: 172.17.63.3:8080 [20:36:19]Content-Length: 676 [20:36:19]Content-Type: application/json [20:36:19] [20:36:19]POST finish read [20:36:19]Found Content-Length = 676 [20:36:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99566", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:36:19]execute_script... [20:36: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)99566", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:36:19]POST & json_proto [20:36:19]process_json_proto [20:36:19]json parsed OK: [20:36:19]protocol is kg_v1.0 [20:36:19]action value=close_receipt [20:36:19]process_action close_receipt [20:36:19]cmd_close_receipt [20:36:19]MH_GetDate [20:36:19]Write to MH i2c: F0 00 00 19 87 8F [20:36:19]Write i2c OK [20:36:19]MH_I2C_Read... [20:36:19]Read from MH i2c: F0 [20:36:19]MH_I2C_Read... [20:36:19]Read from MH i2c: F0 09 00 [20:36:19]MH_I2C_Read... [20:36:19]Read from MH i2c: F0 09 00 19 87 00 4A A4 1E 67 50 D1 6C 64 FC [20:36:19]GetLastDocTimeStamp 1730061179 [20:36:19]current date 1730061386 [20:36:19]FM_GetShiftState [20:36:19]SAM_PROTO_GetShiftState [20:36:19]wFMCommunicate request_size=4 [20:36:19]MH_SAM_APDU [20:36:19]CAPDU: 80 13 01 00 [20:36:19]Write to MH i2c: E2 08 00 1A 87 80 13 01 00 00 00 00 00 1E [20:36:19]Write i2c OK [20:36:19]MH_I2C_Read... [20:36:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:36:19]Read from MH i2c: E2 [20:36:19]MH_I2C_Read... [20:36:19]Read from MH i2c: E2 0E 00 [20:36:19]MH_I2C_Read... [20:36:19]Read from MH i2c: E2 0E 00 1A 87 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 EB [20:36:19]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [20:36:19]wFMCommunicate OK [20:36:19]SAM_PROTO_GetShiftState done [20:36:19]FM_GetShiftState done [20:36:19]opened in 1729989044 [20:36:19]opened+sec_in_day 1730075444 [20:36:19]quantity*price = 30038 [20:36:19]sum+1 = 30039 [20:36:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 303 27.10.2024 20:36 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156752 ФПД: 24871763558046 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T203626&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156752&fm=24871763558046&tin=02508201610067®Number=0000000000091693&sum=30000 [20:36:20]StoreToDocumentArchive [20:36:20]shift 537 fd 156752 [20:36:20]save to /storage/0537/doc_00156752 [20:36:20]save last doc name /storage/0537/doc_00156752 to /storage/kkm_last_doc_name [20:36:20]save OK [20:36:20]Clear old archive folders... [20:36:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:36:20]tlvbuf is 018897F0 [20:36:20]SAM_PROTO_ClearQueue [20:36:20]wFMCommunicate request_size=4 [20:36:20]MH_SAM_APDU [20:36:20]CAPDU: 80 09 00 00 [20:36:20]Write to MH i2c: E2 08 00 27 87 80 09 00 00 00 00 00 00 20 [20:36:20]Write i2c OK [20:36:20]MH_I2C_Read... [20:36:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:36:20]Read from MH i2c: E2 [20:36:20]MH_I2C_Read... [20:36:20]Read from MH i2c: E2 03 00 [20:36:20]MH_I2C_Read... [20:36:20]Read from MH i2c: E2 03 00 27 87 00 90 00 22 [20:36:20]RAPDU: 90 00 [20:36:20]wFMCommunicate OK [20:36:20]SAM_PROTO_ClearQueue done [20:36:20]KKMCreateOFDPacket [20:36:20]OFDProtocolAddRootSTLVToBuf [20:36:20]FM_MakeSignedData [20:36:20]FM_MakeSignedData [20:36:20]SAM_PROTO_SignData [20:36:20]wFMCommunicate request_size=4 [20:36:20]MH_SAM_APDU [20:36:20]CAPDU: 80 0D 01 02 [20:36:20]Write to MH i2c: E2 08 00 28 87 80 0D 01 02 00 00 00 00 28 [20:36:20]Write i2c OK [20:36:20]MH_I2C_Read... [20:36:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:36:20]Read from MH i2c: E2 [20:36:20]MH_I2C_Read... [20:36:20]Read from MH i2c: E2 03 00 [20:36:20]MH_I2C_Read... [20:36:20]Read from MH i2c: E2 03 00 28 87 00 90 00 23 [20:36:20]RAPDU: 90 00 [20:36:20]wFMCommunicate OK [20:36:20]wFMCommunicate request_size=255 [20:36:20]MH_SAM_APDU [20:36: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 4A A4 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 50 64 02 00 35 04 06 00 16 [20:36:20]Write to MH i2c: E2 02 01 29 87 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 4A A4 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 50 64 02 00 35 04 06 00 16 00 00 3A [20:36:20]Write i2c OK [20:36:20]MH_I2C_Read... [20:36:20]Read from MH i2c: E2 [20:36:20]MH_I2C_Read... [20:36:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:36:20]Read from MH i2c: E2 03 00 [20:36:20]MH_I2C_Read... [20:36:20]Read from MH i2c: E2 03 00 29 87 00 90 00 24 [20:36:20]RAPDU: 90 00 [20:36:20]wFMCommunicate OK [20:36:20]wFMCommunicate request_size=10 [20:36:20]MH_SAM_APDU [20:36:20]CAPDU: 80 0D 02 02 05 9E E8 A1 BE 9E [20:36:20]Write to MH i2c: E2 0D 00 2A 87 80 0D 02 02 05 00 9E E8 A1 BE 9E 00 00 B8 [20:36:20]Write i2c OK [20:36:20]MH_I2C_Read... [20:36:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:36:20]Read from MH i2c: E2 [20:36:20]MH_I2C_Read... [20:36:20]Read from MH i2c: E2 03 00 [20:36:20]MH_I2C_Read... [20:36:20]Read from MH i2c: E2 03 00 2A 87 00 90 00 25 [20:36:20]RAPDU: 90 00 [20:36:20]wFMCommunicate OK [20:36:20]wFMCommunicate request_size=4 [20:36:20]MH_SAM_APDU [20:36:20]CAPDU: 80 0D 03 02 [20:36:20]Write to MH i2c: E2 08 00 2B 87 80 0D 03 02 00 00 00 00 2D [20:36:20]Write i2c OK [20:36:20]MH_I2C_Read... [20:36:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:36:20]Read from MH i2c: E2 [20:36:20]MH_I2C_Read... [20:36:20]Read from MH i2c: E2 0B 00 [20:36:20]MH_I2C_Read... [20:36:20]Read from MH i2c: E2 0B 00 2B 87 00 D2 8B 62 36 8C FD 13 B2 90 00 71 [20:36:20]RAPDU: D2 8B 62 36 8C FD 13 B2 90 00 [20:36:20]wFMCommunicate OK [20:36:20]SAM_PROTO_SignData done [20:36:20]FM_MakeSignedData done [20:36:20]CreateOFDProtocolMessage [20:36:20]wFMCommunicate request_size=4 [20:36:20]MH_SAM_APDU [20:36:20]CAPDU: 80 11 00 00 [20:36:20]Write to MH i2c: E2 08 00 2C 87 80 11 00 00 00 00 00 00 2D [20:36:20]Write i2c OK [20:36:20]MH_I2C_Read... [20:36:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:36:21]Read from MH i2c: E2 [20:36:21]MH_I2C_Read... [20:36:21]Read from MH i2c: E2 17 00 [20:36:21]MH_I2C_Read... [20:36:21]Read from MH i2c: E2 17 00 2C 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 82 [20:36:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [20:36:21]wFMCommunicate OK [20:36:21]CreateOFDProtocolMessage done [20:36:21]OFDSenderStorePacket 156752 [20:36:21]StoreOFDPacket docnum=156752 [20:36:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 D9 9F 07 01 8D 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 4A A4 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 50 64 02 00 35 04 06 00 16 9E E8 A1 BE 9E D2 8B 62 36 8C FD 13 B2 [20:36:21]CheckFolder [20:36:21]dirname=/storage/ofd_packets [20:36:21]CheckFolder done [20:36:21]ProducePacketName [20:36:21]name=ofd_packets/00156752 [20:36:21]NVStorageSaveData ofd_packets/00156752 [20:36:21]File name is /storage/ofd_packets/00156752 [20:36:21]Write 301 bytes [20:36:21]NVStorageSaveData done [20:36:21]OFDSenderStorePacket done [20:36:21]KKMCreateOFDPacket done [20:36:21]NVStorageSaveData kkm_last_timestamp [20:36:21]File name is /storage/kkm_last_timestamp [20:36:21]Write 4 bytes [20:36:21]NVStorageSaveData done [20:36:21]ExternCall_PrintAddStr [20:36:21]wPrintStart [20:36:21]Write to MH i2c: 01 00 00 2D 87 B4 [20:36:21]Write i2c OK [20:36:21]MH_I2C_Read... [20:36:21]Read from MH i2c: 01 [20:36:21]MH_I2C_Read... [20:36:21]Read from MH i2c: 01 07 00 [20:36:21]MH_I2C_Read... [20:36:21]Read from MH i2c: 01 07 00 2D 87 00 00 00 00 00 FF 0F C9 [20:36:21]RasterBufferAndPrint [20:36:21]line Счет N : (1)99566 [20:36:21]line ИНН: 02508201610067 [20:36:21]line Контрольно-Кассовый Чек [20:36:21]line ПРОДАЖА [20:36:21]line ТРК (МРК, ГНК) : 31 [20:36:21]line Товар: 2710124130 [20:36:21]line Аи-92-К-5 [20:36:21]line 4.490 * 66.90 [20:36:21]line = 300.38 [20:36:21]line НДС 12% НСП 1% [20:36:21]line > о реализуемом товаре [20:36:21]line ОКРУГЛЕНИЕ: -0.38 [20:36:21]line ИТОГО: 300.00 [20:36:21]line Внесено: 300.00 [20:36:21]line СДАЧА: 0.00 [20:36:21]line НСП 1% : 2.66 [20:36:21]line НДС 12% : 31.90 [20:36:21]line Наличными: 300.00 [20:36:21]line Безнал.: 0.00 [20:36:21]line Место: АЗС № 143 "Партнер Нефть" [20:36:21]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [20:36:21]line СНО: Общий режим [20:36:21]line Чек 303 27.10.2024 20:36 [20:36:21]line Смена: 537 ФФД: 1.0 [20:36:21]line ЗНМ: 0300000096 [20:36:21]line РНМ: 0000000000091693 [20:36:21]line Версия ККМ: 001 [20:36:21]line ФМ: 0000000000871792 [20:36:21]line ФД: 156752 [20:36:21]line ФПД: 24871763558046 [20:36:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T203626&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156752&fm=24871763558046&tin=02508201610067®Number=0000000000091693&sum=30000 [20:36:21]OFD Sender: Processing packet 156752 [packets to send 31, broken 30] [20:36:21]ProducePacketName [20:36:21]name=ofd_packets/00156752 [20:36:21]OFD Sender: To server: pG, [20:36:21]CommunicateWithHost lk.salyk.kg:30040 [20:36:21]ConnectInit lk.salyk.kg [20:36:21]written 0, free lines is 4095 [20:36:21]Connected sock=10 [20:36:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 D9 9F 07 01 8D 71 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 4A A4 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 50 64 02 00 35 04 06 00 16 9E E8 A1 BE 9E D2 8B 62 36 8C FD 13 B2 [20:36:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 5C D3 47 00 33 B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 50 64 02 00 F4 03 04 00 B9 49 1E 67 B6 04 01 00 00 C0 96 84 F1 83 42 37 39 [20:36:21]CommunicateWithHost err = 0 [20:36:21]CheckOFDResponse [20:36:21]1017 (14) - 77093643461234 [20:36:21]1041 (16) - 0000000000871792 [20:36:21]1040 (4) - 156752 [20:36:21]1012 (4) - 27.10.2024 14:10 [20:36:21]1206 (1) - 0 [20:36:21]OFD Sender: Remove packet 156752 [20:36:21]ProducePacketName [20:36:21]name=ofd_packets/00156752 [20:36:21]NVStorageDeleteData [20:36:21]Write to MH i2c: 01 00 00 58 87 DF [20:36:21]Write i2c OK [20:36:21]MH_I2C_Read... [20:36:21]Read from MH i2c: 01 [20:36:21]MH_I2C_Read... [20:36:21]Read from MH i2c: 01 07 00 [20:36:21]MH_I2C_Read... [20:36:21]Read from MH i2c: 01 07 00 58 87 00 00 00 00 00 F0 0C E2 [20:36:21]RasterBufferAndPrint [20:36:21]line [20:36:21]line [20:36:21]line [20:36:21]line [20:36:21]line [20:36:21]written 0, free lines is 3318 [20:36:21]process_action close_receipt done [20:36:21]requested_data is exist [20:36:21]produce_requested_data [20:36:21]requested_item fm.sn is exist - process it [20:36:21]wFMCommunicate request_size=4 [20:36:21]MH_SAM_APDU [20:36:21]CAPDU: 80 11 00 00 [20:36:21]Write to MH i2c: E2 08 00 5F 87 80 11 00 00 00 00 00 00 60 [20:36:21]Write i2c OK [20:36:21]MH_I2C_Read... [20:36:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:36:21]Read from MH i2c: E2 [20:36:21]MH_I2C_Read... [20:36:21]Read from MH i2c: E2 17 00 [20:36:21]MH_I2C_Read... [20:36:21]Read from MH i2c: E2 17 00 5F 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 B5 [20:36:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [20:36:21]wFMCommunicate OK [20:36:21]requested_item fd.num is exist - process it [20:36:21]SAM_PROTO_GetFieldsCounters [20:36:21]wFMCommunicate request_size=4 [20:36:21]MH_SAM_APDU [20:36:21]CAPDU: 80 13 00 00 [20:36:21]Write to MH i2c: E2 08 00 60 87 80 13 00 00 00 00 00 00 63 [20:36:21]Write i2c OK [20:36:21]MH_I2C_Read... [20:36:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:36:22]Read from MH i2c: E2 [20:36:22]MH_I2C_Read... [20:36:22]Read from MH i2c: E2 62 00 [20:36:22]MH_I2C_Read... [20:36:22]Read from MH i2c: E2 62 00 60 87 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 50 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 2F 01 00 00 5E 04 04 00 2F 01 00 00 57 04 04 00 30 01 00 00 19 04 04 00 00 00 00 00 90 00 EA [20:36:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 50 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 2F 01 00 00 5E 04 04 00 2F 01 00 00 57 04 04 00 30 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:36:22]wFMCommunicate OK [20:36:22]SAM_PROTO_GetFieldsCounters done [20:36:22]requested_item shift.num is exist - process it [20:36:22]requested_item shift.opened is exist - process it [20:36:22]req_shift_opened [20:36:22]FM_GetShiftState [20:36:22]SAM_PROTO_GetShiftState [20:36:22]wFMCommunicate request_size=4 [20:36:22]MH_SAM_APDU [20:36:22]CAPDU: 80 13 01 00 [20:36:22]Write to MH i2c: E2 08 00 61 87 80 13 01 00 00 00 00 00 65 [20:36:22]Write i2c OK [20:36:22]MH_I2C_Read... [20:36:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:36:22]Read from MH i2c: E2 [20:36:22]MH_I2C_Read... [20:36:22]Read from MH i2c: E2 0E 00 [20:36:22]MH_I2C_Read... [20:36:22]Read from MH i2c: E2 0E 00 61 87 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 32 [20:36:22]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [20:36:22]wFMCommunicate OK [20:36:22]SAM_PROTO_GetShiftState done [20:36:22]FM_GetShiftState done [20:36:22]req_shift_opened done [20:36:22]requested_item shift.open_date is exist - process it [20:36:22]req_shift_open_date [20:36:22]req_shift_open_date done [20:36:22]produce_requested_data done [20:36:22]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156752,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [20:36:22]process_action_free close_receipt [20:36:22]json_value_free [20:36:22]json_value_free done [20:36:22]process_json_proto returns [20:36:22]Send response to host [20:36:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156752,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [20:36:22]free response buf [20:36:22]execute_script done [20:36:22]execute_script returns [20:36:22]free content buf [20:36:22]Sock 8.Close socket [20:36:22]Sock 8.Thread stoped [20:36:22]OFD Sender: No OFD packet to send [20:36:27]OFD Sender: No OFD packet to send [20:36:32]OFD Sender: No OFD packet to send [20:36:37]OFD Sender: No OFD packet to send [20:36:42]OFD Sender: No OFD packet to send [20:36:47]OFD Sender: No OFD packet to send [20:36:52]OFD Sender: No OFD packet to send [20:36:57]OFD Sender: No OFD packet to send [20:37:02]OFD Sender: No OFD packet to send [20:37:07]OFD Sender: No OFD packet to send [20:37:12]OFD Sender: No OFD packet to send [20:37:17]OFD Sender: No OFD packet to send [20:37:22]OFD Sender: No OFD packet to send [20:37:27]OFD Sender: No OFD packet to send [20:37:32]OFD Sender: No OFD packet to send [20:37:37]OFD Sender: No OFD packet to send [20:37:42]OFD Sender: No OFD packet to send [20:37:47]OFD Sender: No OFD packet to send [20:37:52]OFD Sender: No OFD packet to send [20:37:57]OFD Sender: No OFD packet to send [20:38:02]OFD Sender: No OFD packet to send [20:38:07]OFD Sender: No OFD packet to send [20:38:12]OFD Sender: No OFD packet to send [20:38:17]OFD Sender: No OFD packet to send [20:38:22]OFD Sender: No OFD packet to send [20:38:27]OFD Sender: No OFD packet to send [20:38:32]OFD Sender: No OFD packet to send [20:38:37]OFD Sender: No OFD packet to send [20:38:42]OFD Sender: No OFD packet to send [20:38:47]OFD Sender: No OFD packet to send [20:38:52]OFD Sender: No OFD packet to send [20:38:57]OFD Sender: No OFD packet to send [20:39:02]OFD Sender: No OFD packet to send [20:39:07]OFD Sender: No OFD packet to send [20:39:12]OFD Sender: No OFD packet to send [20:39:17]OFD Sender: No OFD packet to send [20:39:22]OFD Sender: No OFD packet to send [20:39:27]OFD Sender: No OFD packet to send [20:39:32]OFD Sender: No OFD packet to send [20:39:37]OFD Sender: No OFD packet to send [20:39:42]OFD Sender: No OFD packet to send [20:39:47]OFD Sender: No OFD packet to send [20:39:52]OFD Sender: No OFD packet to send [20:39:57]OFD Sender: No OFD packet to send [20:40:02]OFD Sender: No OFD packet to send [20:40:07]OFD Sender: No OFD packet to send [20:40:12]OFD Sender: No OFD packet to send [20:40:17]OFD Sender: No OFD packet to send [20:40:22]OFD Sender: No OFD packet to send [20:40:27]OFD Sender: No OFD packet to send [20:40:32]OFD Sender: No OFD packet to send [20:40:37]OFD Sender: No OFD packet to send [20:40:42]OFD Sender: No OFD packet to send [20:40:47]OFD Sender: No OFD packet to send [20:40:52]OFD Sender: No OFD packet to send [20:40:57]OFD Sender: No OFD packet to send [20:41:02]OFD Sender: No OFD packet to send [20:41:07]OFD Sender: No OFD packet to send [20:41:12]OFD Sender: No OFD packet to send [20:41:17]OFD Sender: No OFD packet to send [20:41:22]OFD Sender: No OFD packet to send [20:41:27]OFD Sender: No OFD packet to send [20:41:32]OFD Sender: No OFD packet to send [20:41:37]OFD Sender: No OFD packet to send [20:41:42]OFD Sender: No OFD packet to send [20:41:47]OFD Sender: No OFD packet to send [20:41:52]OFD Sender: No OFD packet to send [20:41:57]OFD Sender: No OFD packet to send [20:42:02]OFD Sender: No OFD packet to send [20:42:07]OFD Sender: No OFD packet to send [20:42:12]OFD Sender: No OFD packet to send [20:42:17]OFD Sender: No OFD packet to send [20:42:22]OFD Sender: No OFD packet to send [20:42:27]OFD Sender: No OFD packet to send [20:42:32]OFD Sender: No OFD packet to send [20:42:37]OFD Sender: No OFD packet to send [20:42:42]OFD Sender: No OFD packet to send [20:42:47]OFD Sender: No OFD packet to send [20:42:52]OFD Sender: No OFD packet to send [20:42:57]OFD Sender: No OFD packet to send [20:42:58]accept exits with 9 [20:42:58]New connection [20:42:58]New thread 3066977636 created [20:42:58]Thread 3066834276 joined [20:42:58]Waiting for new connection... [20:42:58] Sock 9.Parse request [20:42:58]Sock 9.Check first char [20:42:58]Sock 9.First char is OK [20:42:58]request: POST /json_proto HTTP/1.0 [20:42:58]Method: POST [20:42:58]URL: /json_proto [20:42:58]Method is POST - this is cgi request [20:42:58]url: /json_proto [20:42:58]query_string will be loaded in cgi processing [20:42:58]execute_cgi json_proto POST (null) [20:42:58]execute_cgi path=json_proto method=POST [20:42:58]POST find Content-Length [20:42:58]Host: 172.17.63.3:8080 [20:42:58]Content-Length: 673 [20:42:58]Content-Type: application/json [20:42:58] [20:42:58]POST finish read [20:42:58]Found Content-Length = 673 [20:42:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99567", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 0.150, "sum" : 10.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 10.00, "payments": [ { "type": 0, "sum" : 10.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:42:58]execute_script... [20:42: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)99567", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 0.150, "sum" : 10.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 10.00, "payments": [ { "type": 0, "sum" : 10.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:42:58]POST & json_proto [20:42:58]process_json_proto [20:42:58]json parsed OK: [20:42:58]protocol is kg_v1.0 [20:42:58]action value=close_receipt [20:42:58]process_action close_receipt [20:42:58]cmd_close_receipt [20:42:58]MH_GetDate [20:42:58]Write to MH i2c: F0 00 00 62 87 D8 [20:42:58]Write i2c OK [20:42:58]MH_I2C_Read... [20:42:58]Read from MH i2c: F0 [20:42:58]MH_I2C_Read... [20:42:58]Read from MH i2c: F0 09 00 [20:42:58]MH_I2C_Read... [20:42:58]Read from MH i2c: F0 09 00 62 87 00 D9 A5 1E 67 50 D1 6C 64 D5 [20:42:58]GetLastDocTimeStamp 1730061386 [20:42:58]current date 1730061785 [20:42:58]FM_GetShiftState [20:42:58]SAM_PROTO_GetShiftState [20:42:58]wFMCommunicate request_size=4 [20:42:58]MH_SAM_APDU [20:42:58]CAPDU: 80 13 01 00 [20:42:58]Write to MH i2c: E2 08 00 63 87 80 13 01 00 00 00 00 00 67 [20:42:58]Write i2c OK [20:42:58]MH_I2C_Read... [20:42:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:42:58]Read from MH i2c: E2 [20:42:58]MH_I2C_Read... [20:42:58]Read from MH i2c: E2 0E 00 [20:42:58]MH_I2C_Read... [20:42:58]Read from MH i2c: E2 0E 00 63 87 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 34 [20:42:58]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [20:42:58]wFMCommunicate OK [20:42:58]SAM_PROTO_GetShiftState done [20:42:58]FM_GetShiftState done [20:42:58]opened in 1729989044 [20:42:58]opened+sec_in_day 1730075444 [20:42:58]quantity*price = 1003 [20:42:58]sum+1 = 1005 [20:42:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 10.00 Внесено: 700.00 СДАЧА: 690.00 НСП 1% : 0.09 НДС 12% : 1.07 Наличными: 10.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 304 27.10.2024 20:43 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156753 ФПД: 58980091182762 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T204305&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156753&fm=58980091182762&tin=02508201610067®Number=0000000000091693&sum=1000 [20:42:59]StoreToDocumentArchive [20:42:59]shift 537 fd 156753 [20:42:59]save to /storage/0537/doc_00156753 [20:42:59]save last doc name /storage/0537/doc_00156753 to /storage/kkm_last_doc_name [20:42:59]save OK [20:42:59]Clear old archive folders... [20:42:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:42:59]tlvbuf is 01827CB0 [20:42:59]SAM_PROTO_ClearQueue [20:42:59]wFMCommunicate request_size=4 [20:42:59]MH_SAM_APDU [20:42:59]CAPDU: 80 09 00 00 [20:42:59]Write to MH i2c: E2 08 00 70 87 80 09 00 00 00 00 00 00 69 [20:42:59]Write i2c OK [20:42:59]MH_I2C_Read... [20:42:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:42:59]Read from MH i2c: E2 [20:42:59]MH_I2C_Read... [20:42:59]Read from MH i2c: E2 03 00 [20:42:59]MH_I2C_Read... [20:42:59]Read from MH i2c: E2 03 00 70 87 00 90 00 6B [20:42:59]RAPDU: 90 00 [20:42:59]wFMCommunicate OK [20:42:59]SAM_PROTO_ClearQueue done [20:42:59]KKMCreateOFDPacket [20:42:59]OFDProtocolAddRootSTLVToBuf [20:42:59]FM_MakeSignedData [20:42:59]FM_MakeSignedData [20:42:59]SAM_PROTO_SignData [20:42:59]wFMCommunicate request_size=4 [20:42:59]MH_SAM_APDU [20:42:59]CAPDU: 80 0D 01 02 [20:42:59]Write to MH i2c: E2 08 00 71 87 80 0D 01 02 00 00 00 00 71 [20:42:59]Write i2c OK [20:42:59]MH_I2C_Read... [20:42:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:42:59]Read from MH i2c: E2 [20:42:59]MH_I2C_Read... [20:42:59]Read from MH i2c: E2 03 00 [20:42:59]MH_I2C_Read... [20:42:59]Read from MH i2c: E2 03 00 71 87 00 90 00 6C [20:42:59]RAPDU: 90 00 [20:42:59]wFMCommunicate OK [20:42:59]wFMCommunicate request_size=255 [20:42:59]MH_SAM_APDU [20:42: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 96 00 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 EC 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6B 00 00 00 00 00 07 04 06 00 E8 03 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 D9 A5 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 51 64 02 00 35 04 06 00 35 [20:42:59]Write to MH i2c: E2 02 01 72 87 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 96 00 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 EC 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6B 00 00 00 00 00 07 04 06 00 E8 03 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 D9 A5 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 51 64 02 00 35 04 06 00 35 00 00 C6 [20:42:59]Write i2c OK [20:42:59]MH_I2C_Read... [20:42:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:42:59]Read from MH i2c: E2 [20:42:59]MH_I2C_Read... [20:42:59]Read from MH i2c: E2 03 00 [20:42:59]MH_I2C_Read... [20:42:59]Read from MH i2c: E2 03 00 72 87 00 90 00 6D [20:42:59]RAPDU: 90 00 [20:42:59]wFMCommunicate OK [20:42:59]wFMCommunicate request_size=10 [20:42:59]MH_SAM_APDU [20:42:59]CAPDU: 80 0D 02 02 05 A4 5F 62 3E AA [20:42:59]Write to MH i2c: E2 0D 00 73 87 80 0D 02 02 05 00 A4 5F 62 3E AA 00 00 CB [20:42:59]Write i2c OK [20:42:59]MH_I2C_Read... [20:42:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:42:59]Read from MH i2c: E2 [20:42:59]MH_I2C_Read... [20:42:59]Read from MH i2c: E2 03 00 [20:42:59]MH_I2C_Read... [20:42:59]Read from MH i2c: E2 03 00 73 87 00 90 00 6E [20:42:59]RAPDU: 90 00 [20:42:59]wFMCommunicate OK [20:42:59]wFMCommunicate request_size=4 [20:42:59]MH_SAM_APDU [20:42:59]CAPDU: 80 0D 03 02 [20:42:59]Write to MH i2c: E2 08 00 74 87 80 0D 03 02 00 00 00 00 76 [20:42:59]Write i2c OK [20:42:59]MH_I2C_Read... [20:42:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:42:59]Read from MH i2c: E2 [20:42:59]MH_I2C_Read... [20:42:59]Read from MH i2c: E2 0B 00 [20:42:59]MH_I2C_Read... [20:42:59]Read from MH i2c: E2 0B 00 74 87 00 8B 6A A2 FD 38 0B 0E A4 90 00 00 [20:42:59]RAPDU: 8B 6A A2 FD 38 0B 0E A4 90 00 [20:42:59]wFMCommunicate OK [20:42:59]SAM_PROTO_SignData done [20:42:59]FM_MakeSignedData done [20:42:59]CreateOFDProtocolMessage [20:42:59]wFMCommunicate request_size=4 [20:42:59]MH_SAM_APDU [20:42:59]CAPDU: 80 11 00 00 [20:42:59]Write to MH i2c: E2 08 00 75 87 80 11 00 00 00 00 00 00 76 [20:42:59]Write i2c OK [20:42:59]MH_I2C_Read... [20:42:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:42:59]Read from MH i2c: E2 [20:42:59]MH_I2C_Read... [20:42:59]Read from MH i2c: E2 17 00 [20:42:59]MH_I2C_Read... [20:42:59]Read from MH i2c: E2 17 00 75 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 CB [20:42:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [20:42:59]wFMCommunicate OK [20:42:59]CreateOFDProtocolMessage done [20:42:59]OFDSenderStorePacket 156753 [20:42:59]StoreOFDPacket docnum=156753 [20:42:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 56 52 07 01 E6 CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 96 00 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 EC 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6B 00 00 00 00 00 07 04 06 00 E8 03 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 D9 A5 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 51 64 02 00 35 04 06 00 35 A4 5F 62 3E AA 8B 6A A2 FD 38 0B 0E A4 [20:42:59]CheckFolder [20:42:59]dirname=/storage/ofd_packets [20:42:59]CheckFolder done [20:42:59]ProducePacketName [20:42:59]name=ofd_packets/00156753 [20:42:59]NVStorageSaveData ofd_packets/00156753 [20:42:59]File name is /storage/ofd_packets/00156753 [20:42:59]Write 301 bytes [20:42:59]NVStorageSaveData done [20:42:59]OFDSenderStorePacket done [20:42:59]KKMCreateOFDPacket done [20:42:59]NVStorageSaveData kkm_last_timestamp [20:42:59]File name is /storage/kkm_last_timestamp [20:42:59]Write 4 bytes [20:42:59]NVStorageSaveData done [20:43:00]ExternCall_PrintAddStr [20:43:00]wPrintStart [20:43:00]Write to MH i2c: 01 00 00 76 87 FD [20:43:00]Write i2c OK [20:43:00]MH_I2C_Read... [20:43:00]Read from MH i2c: 01 [20:43:00]MH_I2C_Read... [20:43:00]Read from MH i2c: 01 07 00 [20:43:00]MH_I2C_Read... [20:43:00]Read from MH i2c: 01 07 00 76 87 00 00 00 00 00 FF 0F 12 [20:43:00]RasterBufferAndPrint [20:43:00]line Счет N : (1)99567 [20:43:00]line ИНН: 02508201610067 [20:43:00]line Контрольно-Кассовый Чек [20:43:00]line ПРОДАЖА [20:43:00]line ТРК (МРК, ГНК) : 31 [20:43:00]line Товар: 2710124130 [20:43:00]line Аи-92-К-5 [20:43:00]line 0.150 * 66.90 [20:43:00]line = 10.04 [20:43:00]line НДС 12% НСП 1% [20:43:00]line > о реализуемом товаре [20:43:00]line ОКРУГЛЕНИЕ: -0.04 [20:43:00]line ИТОГО: 10.00 [20:43:00]line Внесено: 700.00 [20:43:00]line СДАЧА: 690.00 [20:43:00]line НСП 1% : 0.09 [20:43:00]line НДС 12% : 1.07 [20:43:00]line Наличными: 10.00 [20:43:00]line Безнал.: 0.00 [20:43:00]line Место: АЗС № 143 "Партнер Нефть" [20:43:00]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [20:43:00]line СНО: Общий режим [20:43:00]line Чек 304 27.10.2024 20:43 [20:43:00]line Смена: 537 ФФД: 1.0 [20:43:00]line ЗНМ: 0300000096 [20:43:00]line РНМ: 0000000000091693 [20:43:00]line Версия ККМ: 001 [20:43:00]line ФМ: 0000000000871792 [20:43:00]line ФД: 156753 [20:43:00]line ФПД: 58980091182762 [20:43:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T204305&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156753&fm=58980091182762&tin=02508201610067®Number=0000000000091693&sum=1000 [20:43:00]OFD Sender: Processing packet 156753 [packets to send 31, broken 30] [20:43:00]ProducePacketName [20:43:00]name=ofd_packets/00156753 [20:43:00]OFD Sender: To server: pG, [20:43:00]CommunicateWithHost lk.salyk.kg:30040 [20:43:00]ConnectInit lk.salyk.kg [20:43:00]written 0, free lines is 4095 [20:43:00]Connected sock=10 [20:43:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 56 52 07 01 E6 CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 96 00 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 EC 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6B 00 00 00 00 00 07 04 06 00 E8 03 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 D9 A5 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 51 64 02 00 35 04 06 00 35 A4 5F 62 3E AA 8B 6A A2 FD 38 0B 0E A4 [20:43:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 C7 96 47 00 9D D6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 51 64 02 00 F4 03 04 00 48 4B 1E 67 B6 04 01 00 00 2B 62 90 C5 6F A4 97 17 [20:43:00]CommunicateWithHost err = 0 [20:43:00]CheckOFDResponse [20:43:00]1017 (14) - 77093643461234 [20:43:00]1041 (16) - 0000000000871792 [20:43:00]1040 (4) - 156753 [20:43:00]1012 (4) - 27.10.2024 14:16 [20:43:00]1206 (1) - 0 [20:43:00]OFD Sender: Remove packet 156753 [20:43:00]ProducePacketName [20:43:00]name=ofd_packets/00156753 [20:43:00]NVStorageDeleteData [20:43:00]Write to MH i2c: 01 00 00 A1 87 28 [20:43:00]Write i2c OK [20:43:00]MH_I2C_Read... [20:43:00]Read from MH i2c: 01 [20:43:00]MH_I2C_Read... [20:43:00]Read from MH i2c: 01 07 00 [20:43:00]MH_I2C_Read... [20:43:00]Read from MH i2c: 01 07 00 A1 87 00 00 00 00 00 D7 0C 12 [20:43:00]RasterBufferAndPrint [20:43:00]line [20:43:00]line [20:43:00]line [20:43:00]line [20:43:00]line [20:43:00]written 0, free lines is 3294 [20:43:00]process_action close_receipt done [20:43:00]requested_data is exist [20:43:00]produce_requested_data [20:43:00]requested_item fm.sn is exist - process it [20:43:00]wFMCommunicate request_size=4 [20:43:00]MH_SAM_APDU [20:43:00]CAPDU: 80 11 00 00 [20:43:00]Write to MH i2c: E2 08 00 A8 87 80 11 00 00 00 00 00 00 A9 [20:43:00]Write i2c OK [20:43:00]MH_I2C_Read... [20:43:00]Read from MH i2c: E2 [20:43:00]MH_I2C_Read... [20:43:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:43:00]Read from MH i2c: E2 17 00 [20:43:00]MH_I2C_Read... [20:43:00]Read from MH i2c: E2 17 00 A8 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 FE [20:43:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [20:43:00]wFMCommunicate OK [20:43:00]requested_item fd.num is exist - process it [20:43:00]SAM_PROTO_GetFieldsCounters [20:43:00]wFMCommunicate request_size=4 [20:43:00]MH_SAM_APDU [20:43:00]CAPDU: 80 13 00 00 [20:43:00]Write to MH i2c: E2 08 00 A9 87 80 13 00 00 00 00 00 00 AC [20:43:00]Write i2c OK [20:43:00]MH_I2C_Read... [20:43:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:43:00]Read from MH i2c: E2 [20:43:00]MH_I2C_Read... [20:43:00]Read from MH i2c: E2 62 00 [20:43:00]MH_I2C_Read... [20:43:00]Read from MH i2c: E2 62 00 A9 87 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 51 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 30 01 00 00 5E 04 04 00 30 01 00 00 57 04 04 00 31 01 00 00 19 04 04 00 00 00 00 00 90 00 37 [20:43:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 51 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 30 01 00 00 5E 04 04 00 30 01 00 00 57 04 04 00 31 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:43:01]wFMCommunicate OK [20:43:01]SAM_PROTO_GetFieldsCounters done [20:43:01]requested_item shift.num is exist - process it [20:43:01]requested_item shift.opened is exist - process it [20:43:01]req_shift_opened [20:43:01]FM_GetShiftState [20:43:01]SAM_PROTO_GetShiftState [20:43:01]wFMCommunicate request_size=4 [20:43:01]MH_SAM_APDU [20:43:01]CAPDU: 80 13 01 00 [20:43:01]Write to MH i2c: E2 08 00 AA 87 80 13 01 00 00 00 00 00 AE [20:43:01]Write i2c OK [20:43:01]MH_I2C_Read... [20:43:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:43:01]Read from MH i2c: E2 [20:43:01]MH_I2C_Read... [20:43:01]Read from MH i2c: E2 0E 00 [20:43:01]MH_I2C_Read... [20:43:01]Read from MH i2c: E2 0E 00 AA 87 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 7B [20:43:01]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [20:43:01]wFMCommunicate OK [20:43:01]SAM_PROTO_GetShiftState done [20:43:01]FM_GetShiftState done [20:43:01]req_shift_opened done [20:43:01]requested_item shift.open_date is exist - process it [20:43:01]req_shift_open_date [20:43:01]req_shift_open_date done [20:43:01]produce_requested_data done [20:43:01]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156753,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [20:43:01]process_action_free close_receipt [20:43:01]json_value_free [20:43:01]json_value_free done [20:43:01]process_json_proto returns [20:43:01]Send response to host [20:43:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156753,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [20:43:01]free response buf [20:43:01]execute_script done [20:43:01]execute_script returns [20:43:01]free content buf [20:43:01]Sock 9.Close socket [20:43:01]Sock 9.Thread stoped [20:43:01]OFD Sender: No OFD packet to send [20:43:06]OFD Sender: No OFD packet to send [20:43:11]OFD Sender: No OFD packet to send [20:43:16]OFD Sender: No OFD packet to send [20:43:21]OFD Sender: No OFD packet to send [20:43:26]OFD Sender: No OFD packet to send [20:43:31]OFD Sender: No OFD packet to send [20:43:36]OFD Sender: No OFD packet to send [20:43:41]OFD Sender: No OFD packet to send [20:43:46]OFD Sender: No OFD packet to send [20:43:51]OFD Sender: No OFD packet to send [20:43:56]OFD Sender: No OFD packet to send [20:44:01]OFD Sender: No OFD packet to send [20:44:03]accept exits with 8 [20:44:03]New connection [20:44:03]New thread 3066834276 created [20:44:03]Thread 3066977636 joined [20:44:03]Waiting for new connection... [20:44:03] Sock 8.Parse request [20:44:03]Sock 8.Check first char [20:44:03]Sock 8.First char is OK [20:44:03]request: POST /json_proto HTTP/1.0 [20:44:03]Method: POST [20:44:03]URL: /json_proto [20:44:03]Method is POST - this is cgi request [20:44:03]url: /json_proto [20:44:03]query_string will be loaded in cgi processing [20:44:03]execute_cgi json_proto POST (null) [20:44:03]execute_cgi path=json_proto method=POST [20:44:03]POST find Content-Length [20:44:03]Host: 172.17.63.3:8080 [20:44:03]Content-Length: 676 [20:44:03]Content-Type: application/json [20:44:03] [20:44:03]POST finish read [20:44:03]Found Content-Length = 676 [20:44:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99568", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.090, "sum" : 340.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 340.00, "total" : 340.00, "payments": [ { "type": 0, "sum" : 340.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:44:03]execute_script... [20:44:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99568", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.090, "sum" : 340.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 340.00, "total" : 340.00, "payments": [ { "type": 0, "sum" : 340.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:44:03]POST & json_proto [20:44:03]process_json_proto [20:44:03]json parsed OK: [20:44:03]protocol is kg_v1.0 [20:44:03]action value=close_receipt [20:44:03]process_action close_receipt [20:44:03]cmd_close_receipt [20:44:03]MH_GetDate [20:44:03]Write to MH i2c: F0 00 00 AB 87 21 [20:44:03]Write i2c OK [20:44:03]MH_I2C_Read... [20:44:03]Read from MH i2c: F0 [20:44:03]MH_I2C_Read... [20:44:03]Read from MH i2c: F0 09 00 [20:44:03]MH_I2C_Read... [20:44:03]Read from MH i2c: F0 09 00 AB 87 00 1B A6 1E 67 50 D1 6C 64 61 [20:44:03]GetLastDocTimeStamp 1730061785 [20:44:03]current date 1730061851 [20:44:03]FM_GetShiftState [20:44:03]SAM_PROTO_GetShiftState [20:44:03]wFMCommunicate request_size=4 [20:44:03]MH_SAM_APDU [20:44:03]CAPDU: 80 13 01 00 [20:44:03]Write to MH i2c: E2 08 00 AC 87 80 13 01 00 00 00 00 00 B0 [20:44:03]Write i2c OK [20:44:03]MH_I2C_Read... [20:44:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:44:03]Read from MH i2c: E2 [20:44:03]MH_I2C_Read... [20:44:03]Read from MH i2c: E2 0E 00 [20:44:03]MH_I2C_Read... [20:44:03]Read from MH i2c: E2 0E 00 AC 87 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 7D [20:44:03]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [20:44:03]wFMCommunicate OK [20:44:03]SAM_PROTO_GetShiftState done [20:44:03]FM_GetShiftState done [20:44:03]opened in 1729989044 [20:44:03]opened+sec_in_day 1730075444 [20:44:03]quantity*price = 34052 [20:44:03]sum+1 = 34053 [20:44:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 340.00 Внесено: 340.00 СДАЧА: 0.00 НСП 1% : 3.01 НДС 12% : 36.16 Наличными: 340.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 305 27.10.2024 20:44 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156754 ФПД: 34902219814556 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T204411&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156754&fm=34902219814556&tin=02508201610067®Number=0000000000091693&sum=34000 [20:44:04]StoreToDocumentArchive [20:44:04]shift 537 fd 156754 [20:44:04]save to /storage/0537/doc_00156754 [20:44:04]save last doc name /storage/0537/doc_00156754 to /storage/kkm_last_doc_name [20:44:04]save OK [20:44:04]Clear old archive folders... [20:44:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:44:04]tlvbuf is 018EFFA0 [20:44:04]SAM_PROTO_ClearQueue [20:44:04]wFMCommunicate request_size=4 [20:44:04]MH_SAM_APDU [20:44:04]CAPDU: 80 09 00 00 [20:44:04]Write to MH i2c: E2 08 00 B9 87 80 09 00 00 00 00 00 00 B2 [20:44:04]Write i2c OK [20:44:04]MH_I2C_Read... [20:44:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:44:04]Read from MH i2c: E2 [20:44:04]MH_I2C_Read... [20:44:04]Read from MH i2c: E2 03 00 [20:44:04]MH_I2C_Read... [20:44:04]Read from MH i2c: E2 03 00 B9 87 00 90 00 B4 [20:44:04]RAPDU: 90 00 [20:44:04]wFMCommunicate OK [20:44:04]SAM_PROTO_ClearQueue done [20:44:04]KKMCreateOFDPacket [20:44:04]OFDProtocolAddRootSTLVToBuf [20:44:04]FM_MakeSignedData [20:44:04]FM_MakeSignedData [20:44:04]SAM_PROTO_SignData [20:44:04]wFMCommunicate request_size=4 [20:44:04]MH_SAM_APDU [20:44:04]CAPDU: 80 0D 01 02 [20:44:04]Write to MH i2c: E2 08 00 BA 87 80 0D 01 02 00 00 00 00 BA [20:44:04]Write i2c OK [20:44:04]MH_I2C_Read... [20:44:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:44:04]Read from MH i2c: E2 [20:44:04]MH_I2C_Read... [20:44:04]Read from MH i2c: E2 03 00 [20:44:04]MH_I2C_Read... [20:44:04]Read from MH i2c: E2 03 00 BA 87 00 90 00 B5 [20:44:04]RAPDU: 90 00 [20:44:04]wFMCommunicate OK [20:44:04]wFMCommunicate request_size=255 [20:44:04]MH_SAM_APDU [20:44: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 E2 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 1B A6 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 52 64 02 00 35 04 06 00 1F [20:44:04]Write to MH i2c: E2 02 01 BB 87 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 1B A6 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 52 64 02 00 35 04 06 00 1F 00 00 F1 [20:44:04]Write i2c OK [20:44:04]MH_I2C_Read... [20:44:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:44:05]Read from MH i2c: E2 [20:44:05]MH_I2C_Read... [20:44:05]Read from MH i2c: E2 03 00 [20:44:05]MH_I2C_Read... [20:44:05]Read from MH i2c: E2 03 00 BB 87 00 90 00 B6 [20:44:05]RAPDU: 90 00 [20:44:05]wFMCommunicate OK [20:44:05]wFMCommunicate request_size=10 [20:44:05]MH_SAM_APDU [20:44:05]CAPDU: 80 0D 02 02 05 BE 4E 69 F6 9C [20:44:05]Write to MH i2c: E2 0D 00 BC 87 80 0D 02 02 05 00 BE 4E 69 F6 9C 00 00 CE [20:44:05]Write i2c OK [20:44:05]MH_I2C_Read... [20:44:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:44:05]Read from MH i2c: E2 [20:44:05]MH_I2C_Read... [20:44:05]Read from MH i2c: E2 03 00 [20:44:05]MH_I2C_Read... [20:44:05]Read from MH i2c: E2 03 00 BC 87 00 90 00 B7 [20:44:05]RAPDU: 90 00 [20:44:05]wFMCommunicate OK [20:44:05]wFMCommunicate request_size=4 [20:44:05]MH_SAM_APDU [20:44:05]CAPDU: 80 0D 03 02 [20:44:05]Write to MH i2c: E2 08 00 BD 87 80 0D 03 02 00 00 00 00 BF [20:44:05]Write i2c OK [20:44:05]MH_I2C_Read... [20:44:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:44:05]Read from MH i2c: E2 [20:44:05]MH_I2C_Read... [20:44:05]Read from MH i2c: E2 0B 00 [20:44:05]MH_I2C_Read... [20:44:05]Read from MH i2c: E2 0B 00 BD 87 00 FA 18 CA C7 41 ED 81 E7 90 00 F9 [20:44:05]RAPDU: FA 18 CA C7 41 ED 81 E7 90 00 [20:44:05]wFMCommunicate OK [20:44:05]SAM_PROTO_SignData done [20:44:05]FM_MakeSignedData done [20:44:05]CreateOFDProtocolMessage [20:44:05]wFMCommunicate request_size=4 [20:44:05]MH_SAM_APDU [20:44:05]CAPDU: 80 11 00 00 [20:44:05]Write to MH i2c: E2 08 00 BE 87 80 11 00 00 00 00 00 00 BF [20:44:05]Write i2c OK [20:44:05]MH_I2C_Read... [20:44:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:44:05]Read from MH i2c: E2 [20:44:05]MH_I2C_Read... [20:44:05]Read from MH i2c: E2 17 00 [20:44:05]MH_I2C_Read... [20:44:05]Read from MH i2c: E2 17 00 BE 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 14 [20:44:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [20:44:05]wFMCommunicate OK [20:44:05]CreateOFDProtocolMessage done [20:44:05]OFDSenderStorePacket 156754 [20:44:05]StoreOFDPacket docnum=156754 [20:44:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 D2 34 07 01 24 4C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 1B A6 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 52 64 02 00 35 04 06 00 1F BE 4E 69 F6 9C FA 18 CA C7 41 ED 81 E7 [20:44:05]CheckFolder [20:44:05]dirname=/storage/ofd_packets [20:44:05]CheckFolder done [20:44:05]ProducePacketName [20:44:05]name=ofd_packets/00156754 [20:44:05]NVStorageSaveData ofd_packets/00156754 [20:44:05]File name is /storage/ofd_packets/00156754 [20:44:05]Write 301 bytes [20:44:05]NVStorageSaveData done [20:44:05]OFDSenderStorePacket done [20:44:05]KKMCreateOFDPacket done [20:44:05]NVStorageSaveData kkm_last_timestamp [20:44:05]File name is /storage/kkm_last_timestamp [20:44:05]Write 4 bytes [20:44:05]NVStorageSaveData done [20:44:05]ExternCall_PrintAddStr [20:44:05]wPrintStart [20:44:05]Write to MH i2c: 01 00 00 BF 87 46 [20:44:05]Write i2c OK [20:44:05]MH_I2C_Read... [20:44:05]Read from MH i2c: 01 [20:44:05]MH_I2C_Read... [20:44:05]Read from MH i2c: 01 07 00 [20:44:05]MH_I2C_Read... [20:44:05]Read from MH i2c: 01 07 00 BF 87 00 00 00 00 00 FF 0F 5B [20:44:05]RasterBufferAndPrint [20:44:05]line Счет N : (1)99568 [20:44:05]line ИНН: 02508201610067 [20:44:05]line Контрольно-Кассовый Чек [20:44:05]line ПРОДАЖА [20:44:05]line ТРК (МРК, ГНК) : 31 [20:44:05]line Товар: 2710124130 [20:44:05]line Аи-92-К-5 [20:44:05]line 5.090 * 66.90 [20:44:05]line = 340.52 [20:44:05]line НДС 12% НСП 1% [20:44:05]line > о реализуемом товаре [20:44:05]line ОКРУГЛЕНИЕ: -0.52 [20:44:05]line ИТОГО: 340.00 [20:44:05]line Внесено: 340.00 [20:44:05]line СДАЧА: 0.00 [20:44:05]line НСП 1% : 3.01 [20:44:05]line НДС 12% : 36.16 [20:44:05]line Наличными: 340.00 [20:44:05]line Безнал.: 0.00 [20:44:05]line Место: АЗС № 143 "Партнер Нефть" [20:44:05]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [20:44:05]line СНО: Общий режим [20:44:05]line Чек 305 27.10.2024 20:44 [20:44:05]line Смена: 537 ФФД: 1.0 [20:44:05]line ЗНМ: 0300000096 [20:44:05]line РНМ: 0000000000091693 [20:44:05]line Версия ККМ: 001 [20:44:05]line ФМ: 0000000000871792 [20:44:05]line ФД: 156754 [20:44:05]line ФПД: 34902219814556 [20:44:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T204411&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156754&fm=34902219814556&tin=02508201610067®Number=0000000000091693&sum=34000 [20:44:05]OFD Sender: Processing packet 156754 [packets to send 31, broken 30] [20:44:05]ProducePacketName [20:44:05]name=ofd_packets/00156754 [20:44:05]OFD Sender: To server: pG, [20:44:05]CommunicateWithHost lk.salyk.kg:30040 [20:44:05]ConnectInit lk.salyk.kg [20:44:05]written 0, free lines is 4095 [20:44:05]Connected sock=10 [20:44:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 D2 34 07 01 24 4C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E2 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 04 85 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 1B A6 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 52 64 02 00 35 04 06 00 1F BE 4E 69 F6 9C FA 18 CA C7 41 ED 81 E7 [20:44:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 C9 20 47 00 4C 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 52 64 02 00 F4 03 04 00 89 4B 1E 67 B6 04 01 00 00 70 93 A5 19 02 7D 17 C6 [20:44:05]CommunicateWithHost err = 0 [20:44:05]CheckOFDResponse [20:44:05]1017 (14) - 77093643461234 [20:44:05]1041 (16) - 0000000000871792 [20:44:05]1040 (4) - 156754 [20:44:05]1012 (4) - 27.10.2024 14:17 [20:44:05]1206 (1) - 0 [20:44:05]OFD Sender: Remove packet 156754 [20:44:05]ProducePacketName [20:44:05]name=ofd_packets/00156754 [20:44:05]NVStorageDeleteData [20:44:06]Write to MH i2c: 01 00 00 EA 87 71 [20:44:06]Write i2c OK [20:44:06]MH_I2C_Read... [20:44:06]Read from MH i2c: 01 [20:44:06]MH_I2C_Read... [20:44:06]Read from MH i2c: 01 07 00 [20:44:06]MH_I2C_Read... [20:44:06]Read from MH i2c: 01 07 00 EA 87 00 00 00 00 00 D7 0C 5B [20:44:06]RasterBufferAndPrint [20:44:06]line [20:44:06]line [20:44:06]line [20:44:06]line [20:44:06]line [20:44:06]written 0, free lines is 3294 [20:44:06]process_action close_receipt done [20:44:06]requested_data is exist [20:44:06]produce_requested_data [20:44:06]requested_item fm.sn is exist - process it [20:44:06]wFMCommunicate request_size=4 [20:44:06]MH_SAM_APDU [20:44:06]CAPDU: 80 11 00 00 [20:44:06]Write to MH i2c: E2 08 00 F1 87 80 11 00 00 00 00 00 00 F2 [20:44:06]Write i2c OK [20:44:06]MH_I2C_Read... [20:44:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:44:06]Read from MH i2c: E2 [20:44:06]MH_I2C_Read... [20:44:06]Read from MH i2c: E2 17 00 [20:44:06]MH_I2C_Read... [20:44:06]Read from MH i2c: E2 17 00 F1 87 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 47 [20:44:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [20:44:06]wFMCommunicate OK [20:44:06]requested_item fd.num is exist - process it [20:44:06]SAM_PROTO_GetFieldsCounters [20:44:06]wFMCommunicate request_size=4 [20:44:06]MH_SAM_APDU [20:44:06]CAPDU: 80 13 00 00 [20:44:06]Write to MH i2c: E2 08 00 F2 87 80 13 00 00 00 00 00 00 F5 [20:44:06]Write i2c OK [20:44:06]MH_I2C_Read... [20:44:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:44:06]Read from MH i2c: E2 [20:44:06]MH_I2C_Read... [20:44:06]Read from MH i2c: E2 62 00 [20:44:06]MH_I2C_Read... [20:44:06]Read from MH i2c: E2 62 00 F2 87 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 52 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 31 01 00 00 5E 04 04 00 31 01 00 00 57 04 04 00 32 01 00 00 19 04 04 00 00 00 00 00 90 00 84 [20:44:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 52 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 31 01 00 00 5E 04 04 00 31 01 00 00 57 04 04 00 32 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:44:06]wFMCommunicate OK [20:44:06]SAM_PROTO_GetFieldsCounters done [20:44:06]requested_item shift.num is exist - process it [20:44:06]requested_item shift.opened is exist - process it [20:44:06]req_shift_opened [20:44:06]FM_GetShiftState [20:44:06]SAM_PROTO_GetShiftState [20:44:06]wFMCommunicate request_size=4 [20:44:06]MH_SAM_APDU [20:44:06]CAPDU: 80 13 01 00 [20:44:06]Write to MH i2c: E2 08 00 F3 87 80 13 01 00 00 00 00 00 F7 [20:44:06]Write i2c OK [20:44:06]MH_I2C_Read... [20:44:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:44:06]Read from MH i2c: E2 [20:44:06]MH_I2C_Read... [20:44:06]Read from MH i2c: E2 0E 00 [20:44:06]MH_I2C_Read... [20:44:06]Read from MH i2c: E2 0E 00 F3 87 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 C4 [20:44:06]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [20:44:06]wFMCommunicate OK [20:44:06]SAM_PROTO_GetShiftState done [20:44:06]FM_GetShiftState done [20:44:06]req_shift_opened done [20:44:06]requested_item shift.open_date is exist - process it [20:44:06]req_shift_open_date [20:44:06]req_shift_open_date done [20:44:06]produce_requested_data done [20:44:06]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156754,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [20:44:06]process_action_free close_receipt [20:44:06]json_value_free [20:44:06]json_value_free done [20:44:06]process_json_proto returns [20:44:06]Send response to host [20:44:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156754,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [20:44:06]free response buf [20:44:06]execute_script done [20:44:06]execute_script returns [20:44:06]free content buf [20:44:06]Sock 8.Close socket [20:44:06]Sock 8.Thread stoped [20:44:06]OFD Sender: No OFD packet to send [20:44:11]OFD Sender: No OFD packet to send [20:44:16]OFD Sender: No OFD packet to send [20:44:21]OFD Sender: No OFD packet to send [20:44:26]OFD Sender: No OFD packet to send [20:44:31]OFD Sender: No OFD packet to send [20:44:36]OFD Sender: No OFD packet to send [20:44:41]OFD Sender: No OFD packet to send [20:44:46]OFD Sender: No OFD packet to send [20:44:51]OFD Sender: No OFD packet to send [20:44:56]OFD Sender: No OFD packet to send [20:45:01]OFD Sender: No OFD packet to send [20:45:06]OFD Sender: No OFD packet to send [20:45:11]OFD Sender: No OFD packet to send [20:45:16]OFD Sender: No OFD packet to send [20:45:21]OFD Sender: No OFD packet to send [20:45:26]OFD Sender: No OFD packet to send [20:45:31]OFD Sender: No OFD packet to send [20:45:36]OFD Sender: No OFD packet to send [20:45:41]OFD Sender: No OFD packet to send [20:45:46]OFD Sender: No OFD packet to send [20:45:51]OFD Sender: No OFD packet to send [20:45:56]OFD Sender: No OFD packet to send [20:46:01]OFD Sender: No OFD packet to send [20:46:06]OFD Sender: No OFD packet to send [20:46:11]OFD Sender: No OFD packet to send [20:46:16]OFD Sender: No OFD packet to send [20:46:21]OFD Sender: No OFD packet to send [20:46:26]OFD Sender: No OFD packet to send [20:46:31]OFD Sender: No OFD packet to send [20:46:36]OFD Sender: No OFD packet to send [20:46:41]OFD Sender: No OFD packet to send [20:46:46]OFD Sender: No OFD packet to send [20:46:51]OFD Sender: No OFD packet to send [20:46:56]OFD Sender: No OFD packet to send [20:47:01]OFD Sender: No OFD packet to send [20:47:06]OFD Sender: No OFD packet to send [20:47:11]OFD Sender: No OFD packet to send [20:47:16]OFD Sender: No OFD packet to send [20:47:21]OFD Sender: No OFD packet to send [20:47:26]OFD Sender: No OFD packet to send [20:47:31]OFD Sender: No OFD packet to send [20:47:36]OFD Sender: No OFD packet to send [20:47:41]OFD Sender: No OFD packet to send [20:47:46]OFD Sender: No OFD packet to send [20:47:51]OFD Sender: No OFD packet to send [20:47:56]OFD Sender: No OFD packet to send [20:48:01]OFD Sender: No OFD packet to send [20:48:06]OFD Sender: No OFD packet to send [20:48:11]OFD Sender: No OFD packet to send [20:48:16]OFD Sender: No OFD packet to send [20:48:21]OFD Sender: No OFD packet to send [20:48:26]OFD Sender: No OFD packet to send [20:48:31]OFD Sender: No OFD packet to send [20:48:36]OFD Sender: No OFD packet to send [20:48:41]OFD Sender: No OFD packet to send [20:48:46]OFD Sender: No OFD packet to send [20:48:51]OFD Sender: No OFD packet to send [20:48:56]OFD Sender: No OFD packet to send [20:49:01]OFD Sender: No OFD packet to send [20:49:06]OFD Sender: No OFD packet to send [20:49:11]OFD Sender: No OFD packet to send [20:49:14]int [20:49:14]Write to MH i2c: 01 00 00 F4 87 7B [20:49:14]*** FLAG_PRN_KEY set [20:49:14]Write i2c OK [20:49:14]MH_I2C_Read... [20:49:14]Read from MH i2c: 01 [20:49:14]MH_I2C_Read... [20:49:14]Read from MH i2c: 01 07 00 [20:49:14]MH_I2C_Read... [20:49:14]Read from MH i2c: 01 07 00 F4 87 00 08 00 00 00 FF 0F 98 [20:49:14]state=0 [20:49:14]Key pressed [20:49:14]Feed [20:49:14]Write to MH i2c: D8 00 00 F5 87 53 [20:49:14]Write i2c OK [20:49:14]MH_I2C_Read... [20:49:14]Read from MH i2c: D8 [20:49:14]MH_I2C_Read... [20:49:14]Read from MH i2c: D8 01 00 [20:49:14]MH_I2C_Read... [20:49:14]Read from MH i2c: D8 01 00 F5 87 00 54 [20:49:14]int [20:49:14]Write to MH i2c: 01 00 00 F6 87 7D [20:49:14]Write i2c OK [20:49:14]MH_I2C_Read... [20:49:14]Read from MH i2c: 01 [20:49:14]MH_I2C_Read... [20:49:14]Read from MH i2c: 01 07 00 [20:49:14]MH_I2C_Read... [20:49:14]Read from MH i2c: 01 07 00 F6 87 00 48 00 00 00 3D 00 09 [20:49:14]state=2 [20:49:14]Key pressed [20:49:14]int [20:49:14]Write to MH i2c: 01 00 00 F7 87 7E [20:49:14]*** FLAG_PRN_KEY reset [20:49:14]Write i2c OK [20:49:14]MH_I2C_Read... [20:49:14]Read from MH i2c: 01 [20:49:14]MH_I2C_Read... [20:49:14]Read from MH i2c: 01 07 00 [20:49:14]MH_I2C_Read... [20:49:14]Read from MH i2c: 01 07 00 F7 87 00 00 00 00 00 F6 0F 8A [20:49:14]state=2 [20:49:14]Stop feed [20:49:16]OFD Sender: No OFD packet to send [20:49:21]OFD Sender: No OFD packet to send [20:49:26]OFD Sender: No OFD packet to send [20:49:31]OFD Sender: No OFD packet to send [20:49:36]OFD Sender: No OFD packet to send [20:49:41]OFD Sender: No OFD packet to send [20:49:46]OFD Sender: No OFD packet to send [20:49:51]OFD Sender: No OFD packet to send [20:49:56]OFD Sender: No OFD packet to send [20:50:01]OFD Sender: No OFD packet to send [20:50:06]OFD Sender: No OFD packet to send [20:50:11]OFD Sender: No OFD packet to send [20:50:16]OFD Sender: No OFD packet to send [20:50:21]OFD Sender: No OFD packet to send [20:50:26]OFD Sender: No OFD packet to send [20:50:31]OFD Sender: No OFD packet to send [20:50:36]OFD Sender: No OFD packet to send [20:50:41]OFD Sender: No OFD packet to send [20:50:46]OFD Sender: No OFD packet to send [20:50:51]OFD Sender: No OFD packet to send [20:50:56]OFD Sender: No OFD packet to send [20:51:01]OFD Sender: No OFD packet to send [20:51:06]OFD Sender: No OFD packet to send [20:51:11]OFD Sender: No OFD packet to send [20:51:16]OFD Sender: No OFD packet to send [20:51:21]OFD Sender: No OFD packet to send [20:51:26]OFD Sender: No OFD packet to send [20:51:31]OFD Sender: No OFD packet to send [20:51:36]OFD Sender: No OFD packet to send [20:51:41]OFD Sender: No OFD packet to send [20:51:46]OFD Sender: No OFD packet to send [20:51:51]OFD Sender: No OFD packet to send [20:51:56]OFD Sender: No OFD packet to send [20:52:01]OFD Sender: No OFD packet to send [20:52:06]OFD Sender: No OFD packet to send [20:52:11]OFD Sender: No OFD packet to send [20:52:16]OFD Sender: No OFD packet to send [20:52:21]OFD Sender: No OFD packet to send [20:52:26]OFD Sender: No OFD packet to send [20:52:31]OFD Sender: No OFD packet to send [20:52:36]OFD Sender: No OFD packet to send [20:52:41]OFD Sender: No OFD packet to send [20:52:46]OFD Sender: No OFD packet to send [20:52:51]OFD Sender: No OFD packet to send [20:52:56]OFD Sender: No OFD packet to send [20:53:01]OFD Sender: No OFD packet to send [20:53:06]OFD Sender: No OFD packet to send [20:53:11]OFD Sender: No OFD packet to send [20:53:16]OFD Sender: No OFD packet to send [20:53:18]accept exits with 9 [20:53:18]New connection [20:53:18]New thread 3066977636 created [20:53:18]Thread 3066834276 joined [20:53:18]Waiting for new connection... [20:53:18] Sock 9.Parse request [20:53:18]Sock 9.Check first char [20:53:18]Sock 9.First char is OK [20:53:18]request: POST /json_proto HTTP/1.0 [20:53:18]Method: POST [20:53:18]URL: /json_proto [20:53:18]Method is POST - this is cgi request [20:53:18]url: /json_proto [20:53:18]query_string will be loaded in cgi processing [20:53:18]execute_cgi json_proto POST (null) [20:53:18]execute_cgi path=json_proto method=POST [20:53:18]POST find Content-Length [20:53:18]Host: 172.17.63.3:8080 [20:53:18]Content-Length: 676 [20:53:18]Content-Type: application/json [20:53:18] [20:53:18]POST finish read [20:53:18]Found Content-Length = 676 [20:53:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99569", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:53:18]execute_script... [20:53:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99569", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:53:18]POST & json_proto [20:53:18]process_json_proto [20:53:18]json parsed OK: [20:53:18]protocol is kg_v1.0 [20:53:18]action value=close_receipt [20:53:18]process_action close_receipt [20:53:18]cmd_close_receipt [20:53:18]MH_GetDate [20:53:18]Write to MH i2c: F0 00 00 F8 87 6E [20:53:18]Write i2c OK [20:53:18]MH_I2C_Read... [20:53:18]Read from MH i2c: F0 [20:53:18]MH_I2C_Read... [20:53:18]Read from MH i2c: F0 09 00 [20:53:18]MH_I2C_Read... [20:53:18]Read from MH i2c: F0 09 00 F8 87 00 46 A8 1E 67 50 D1 6C 64 DB [20:53:18]GetLastDocTimeStamp 1730061851 [20:53:18]current date 1730062406 [20:53:18]FM_GetShiftState [20:53:18]SAM_PROTO_GetShiftState [20:53:18]wFMCommunicate request_size=4 [20:53:18]MH_SAM_APDU [20:53:18]CAPDU: 80 13 01 00 [20:53:18]Write to MH i2c: E2 08 00 F9 87 80 13 01 00 00 00 00 00 FD [20:53:18]Write i2c OK [20:53:18]MH_I2C_Read... [20:53:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:53:18]Read from MH i2c: E2 [20:53:18]MH_I2C_Read... [20:53:18]Read from MH i2c: E2 0E 00 [20:53:18]MH_I2C_Read... [20:53:18]Read from MH i2c: E2 0E 00 F9 87 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 CA [20:53:18]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [20:53:18]wFMCommunicate OK [20:53:18]SAM_PROTO_GetShiftState done [20:53:18]FM_GetShiftState done [20:53:18]opened in 1729989044 [20:53:18]opened+sec_in_day 1730075444 [20:53:18]quantity*price = 50041 [20:53:18]sum+1 = 50042 [20:53:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 306 27.10.2024 20:53 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156755 ФПД: 5130887550862 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T205326&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156755&fm=5130887550862&tin=02508201610067®Number=0000000000091693&sum=50000 [20:53:19]StoreToDocumentArchive [20:53:19]shift 537 fd 156755 [20:53:19]save to /storage/0537/doc_00156755 [20:53:19]save last doc name /storage/0537/doc_00156755 to /storage/kkm_last_doc_name [20:53:19]save OK [20:53:19]Clear old archive folders... [20:53:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:53:19]tlvbuf is 01735C80 [20:53:19]SAM_PROTO_ClearQueue [20:53:19]wFMCommunicate request_size=4 [20:53:19]MH_SAM_APDU [20:53:19]CAPDU: 80 09 00 00 [20:53:19]Write to MH i2c: E2 08 00 06 88 80 09 00 00 00 00 00 00 00 [20:53:19]Write i2c OK [20:53:19]MH_I2C_Read... [20:53:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:53:19]Read from MH i2c: E2 [20:53:19]MH_I2C_Read... [20:53:19]Read from MH i2c: E2 03 00 [20:53:19]MH_I2C_Read... [20:53:19]Read from MH i2c: E2 03 00 06 88 00 90 00 02 [20:53:19]RAPDU: 90 00 [20:53:19]wFMCommunicate OK [20:53:19]SAM_PROTO_ClearQueue done [20:53:19]KKMCreateOFDPacket [20:53:19]OFDProtocolAddRootSTLVToBuf [20:53:19]FM_MakeSignedData [20:53:19]FM_MakeSignedData [20:53:19]SAM_PROTO_SignData [20:53:19]wFMCommunicate request_size=4 [20:53:19]MH_SAM_APDU [20:53:19]CAPDU: 80 0D 01 02 [20:53:19]Write to MH i2c: E2 08 00 07 88 80 0D 01 02 00 00 00 00 08 [20:53:19]Write i2c OK [20:53:19]MH_I2C_Read... [20:53:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:53:19]Read from MH i2c: E2 [20:53:19]MH_I2C_Read... [20:53:19]Read from MH i2c: E2 03 00 [20:53:19]MH_I2C_Read... [20:53:19]Read from MH i2c: E2 03 00 07 88 00 90 00 03 [20:53:19]RAPDU: 90 00 [20:53:19]wFMCommunicate OK [20:53:19]wFMCommunicate request_size=255 [20:53:19]MH_SAM_APDU [20:53:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 46 A8 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 53 64 02 00 35 04 06 00 04 [20:53:19]Write to MH i2c: E2 02 01 08 88 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 46 A8 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 53 64 02 00 35 04 06 00 04 00 00 1A [20:53:19]Write i2c OK [20:53:19]MH_I2C_Read... [20:53:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:53:20]Read from MH i2c: E2 [20:53:20]MH_I2C_Read... [20:53:20]Read from MH i2c: E2 03 00 [20:53:20]MH_I2C_Read... [20:53:20]Read from MH i2c: E2 03 00 08 88 00 90 00 04 [20:53:20]RAPDU: 90 00 [20:53:20]wFMCommunicate OK [20:53:20]wFMCommunicate request_size=10 [20:53:20]MH_SAM_APDU [20:53:20]CAPDU: 80 0D 02 02 05 AA A0 BA D7 8E [20:53:20]Write to MH i2c: E2 0D 00 09 88 80 0D 02 02 05 00 AA A0 BA D7 8E 00 00 7E [20:53:20]Write i2c OK [20:53:20]MH_I2C_Read... [20:53:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:53:20]Read from MH i2c: E2 [20:53:20]MH_I2C_Read... [20:53:20]Read from MH i2c: E2 03 00 [20:53:20]MH_I2C_Read... [20:53:20]Read from MH i2c: E2 03 00 09 88 00 90 00 05 [20:53:20]RAPDU: 90 00 [20:53:20]wFMCommunicate OK [20:53:20]wFMCommunicate request_size=4 [20:53:20]MH_SAM_APDU [20:53:20]CAPDU: 80 0D 03 02 [20:53:20]Write to MH i2c: E2 08 00 0A 88 80 0D 03 02 00 00 00 00 0D [20:53:20]Write i2c OK [20:53:20]MH_I2C_Read... [20:53:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:53:20]Read from MH i2c: E2 [20:53:20]MH_I2C_Read... [20:53:20]Read from MH i2c: E2 0B 00 [20:53:20]MH_I2C_Read... [20:53:20]Read from MH i2c: E2 0B 00 0A 88 00 9C 87 B6 A8 1B F3 F0 32 90 00 BF [20:53:20]RAPDU: 9C 87 B6 A8 1B F3 F0 32 90 00 [20:53:20]wFMCommunicate OK [20:53:20]SAM_PROTO_SignData done [20:53:20]FM_MakeSignedData done [20:53:20]CreateOFDProtocolMessage [20:53:20]wFMCommunicate request_size=4 [20:53:20]MH_SAM_APDU [20:53:20]CAPDU: 80 11 00 00 [20:53:20]Write to MH i2c: E2 08 00 0B 88 80 11 00 00 00 00 00 00 0D [20:53:20]Write i2c OK [20:53:20]MH_I2C_Read... [20:53:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:53:20]Read from MH i2c: E2 [20:53:20]MH_I2C_Read... [20:53:20]Read from MH i2c: E2 17 00 [20:53:20]MH_I2C_Read... [20:53:20]Read from MH i2c: E2 17 00 0B 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 62 [20:53:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [20:53:20]wFMCommunicate OK [20:53:20]CreateOFDProtocolMessage done [20:53:20]OFDSenderStorePacket 156755 [20:53:20]StoreOFDPacket docnum=156755 [20:53:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 77 31 07 01 F9 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 46 A8 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 53 64 02 00 35 04 06 00 04 AA A0 BA D7 8E 9C 87 B6 A8 1B F3 F0 32 [20:53:20]CheckFolder [20:53:20]dirname=/storage/ofd_packets [20:53:20]CheckFolder done [20:53:20]ProducePacketName [20:53:20]name=ofd_packets/00156755 [20:53:20]NVStorageSaveData ofd_packets/00156755 [20:53:20]File name is /storage/ofd_packets/00156755 [20:53:20]Write 301 bytes [20:53:20]NVStorageSaveData done [20:53:20]OFDSenderStorePacket done [20:53:20]KKMCreateOFDPacket done [20:53:20]NVStorageSaveData kkm_last_timestamp [20:53:20]File name is /storage/kkm_last_timestamp [20:53:20]Write 4 bytes [20:53:20]NVStorageSaveData done [20:53:20]ExternCall_PrintAddStr [20:53:20]wPrintStart [20:53:20]Write to MH i2c: 01 00 00 0C 88 94 [20:53:20]Write i2c OK [20:53:20]MH_I2C_Read... [20:53:20]Read from MH i2c: 01 [20:53:20]MH_I2C_Read... [20:53:20]Read from MH i2c: 01 07 00 [20:53:20]MH_I2C_Read... [20:53:20]Read from MH i2c: 01 07 00 0C 88 00 00 00 00 00 FF 0F A9 [20:53:20]RasterBufferAndPrint [20:53:20]line Счет N : (1)99569 [20:53:20]line ИНН: 02508201610067 [20:53:20]line Контрольно-Кассовый Чек [20:53:20]line ПРОДАЖА [20:53:20]line ТРК (МРК, ГНК) : 31 [20:53:20]line Товар: 2710124130 [20:53:20]line Аи-92-К-5 [20:53:20]line 7.480 * 66.90 [20:53:20]line = 500.41 [20:53:20]line НДС 12% НСП 1% [20:53:20]line > о реализуемом товаре [20:53:20]line ОКРУГЛЕНИЕ: -0.41 [20:53:20]line ИТОГО: 500.00 [20:53:20]line Внесено: 500.00 [20:53:20]line СДАЧА: 0.00 [20:53:20]line НСП 1% : 4.43 [20:53:20]line НДС 12% : 53.14 [20:53:20]line Наличными: 500.00 [20:53:20]line Безнал.: 0.00 [20:53:20]line Место: АЗС № 143 "Партнер Нефть" [20:53:20]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [20:53:20]line СНО: Общий режим [20:53:20]line Чек 306 27.10.2024 20:53 [20:53:20]line Смена: 537 ФФД: 1.0 [20:53:20]line ЗНМ: 0300000096 [20:53:20]line РНМ: 0000000000091693 [20:53:20]line Версия ККМ: 001 [20:53:20]line ФМ: 0000000000871792 [20:53:20]line ФД: 156755 [20:53:20]line ФПД: 5130887550862 [20:53:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T205326&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156755&fm=5130887550862&tin=02508201610067®Number=0000000000091693&sum=50000 [20:53:20]OFD Sender: Processing packet 156755 [packets to send 31, broken 30] [20:53:20]ProducePacketName [20:53:20]name=ofd_packets/00156755 [20:53:20]OFD Sender: To server: pG, [20:53:20]CommunicateWithHost lk.salyk.kg:30040 [20:53:20]ConnectInit lk.salyk.kg [20:53:20]written 0, free lines is 4095 [20:53:20]Connected sock=8 [20:53:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 77 31 07 01 F9 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 46 A8 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 53 64 02 00 35 04 06 00 04 AA A0 BA D7 8E 9C 87 B6 A8 1B F3 F0 32 [20:53:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 D6 53 47 00 A5 FD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 53 64 02 00 F4 03 04 00 B4 4D 1E 67 B6 04 01 00 00 67 C1 42 AB D6 C6 E1 DF [20:53:20]CommunicateWithHost err = 0 [20:53:20]CheckOFDResponse [20:53:20]1017 (14) - 77093643461234 [20:53:20]1041 (16) - 0000000000871792 [20:53:20]1040 (4) - 156755 [20:53:20]1012 (4) - 27.10.2024 14:27 [20:53:20]1206 (1) - 0 [20:53:20]OFD Sender: Remove packet 156755 [20:53:20]ProducePacketName [20:53:20]name=ofd_packets/00156755 [20:53:20]NVStorageDeleteData [20:53:21]Write to MH i2c: 01 00 00 37 88 BF [20:53:21]Write i2c OK [20:53:21]MH_I2C_Read... [20:53:21]Read from MH i2c: 01 [20:53:21]MH_I2C_Read... [20:53:21]Read from MH i2c: 01 07 00 [20:53:21]MH_I2C_Read... [20:53:21]Read from MH i2c: 01 07 00 37 88 00 00 00 00 00 CD 0C 9F [20:53:21]RasterBufferAndPrint [20:53:21]line [20:53:21]line [20:53:21]line [20:53:21]line [20:53:21]line [20:53:21]written 0, free lines is 3284 [20:53:21]process_action close_receipt done [20:53:21]requested_data is exist [20:53:21]produce_requested_data [20:53:21]requested_item fm.sn is exist - process it [20:53:21]wFMCommunicate request_size=4 [20:53:21]MH_SAM_APDU [20:53:21]CAPDU: 80 11 00 00 [20:53:21]Write to MH i2c: E2 08 00 3E 88 80 11 00 00 00 00 00 00 40 [20:53:21]Write i2c OK [20:53:21]MH_I2C_Read... [20:53:21]Read from MH i2c: E2 [20:53:21]MH_I2C_Read... [20:53:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:53:21]Read from MH i2c: E2 17 00 [20:53:21]MH_I2C_Read... [20:53:21]Read from MH i2c: E2 17 00 3E 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 95 [20:53:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [20:53:21]wFMCommunicate OK [20:53:21]requested_item fd.num is exist - process it [20:53:21]SAM_PROTO_GetFieldsCounters [20:53:21]wFMCommunicate request_size=4 [20:53:21]MH_SAM_APDU [20:53:21]CAPDU: 80 13 00 00 [20:53:21]Write to MH i2c: E2 08 00 3F 88 80 13 00 00 00 00 00 00 43 [20:53:21]Write i2c OK [20:53:21]MH_I2C_Read... [20:53:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:53:21]Read from MH i2c: E2 [20:53:21]MH_I2C_Read... [20:53:21]Read from MH i2c: E2 62 00 [20:53:21]MH_I2C_Read... [20:53:21]Read from MH i2c: E2 62 00 3F 88 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 53 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 32 01 00 00 5E 04 04 00 32 01 00 00 57 04 04 00 33 01 00 00 19 04 04 00 00 00 00 00 90 00 D6 [20:53: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 53 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 32 01 00 00 5E 04 04 00 32 01 00 00 57 04 04 00 33 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:53:21]wFMCommunicate OK [20:53:21]SAM_PROTO_GetFieldsCounters done [20:53:21]requested_item shift.num is exist - process it [20:53:21]requested_item shift.opened is exist - process it [20:53:21]req_shift_opened [20:53:21]FM_GetShiftState [20:53:21]SAM_PROTO_GetShiftState [20:53:21]wFMCommunicate request_size=4 [20:53:21]MH_SAM_APDU [20:53:21]CAPDU: 80 13 01 00 [20:53:21]Write to MH i2c: E2 08 00 40 88 80 13 01 00 00 00 00 00 45 [20:53:21]Write i2c OK [20:53:21]MH_I2C_Read... [20:53:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:53:21]Read from MH i2c: E2 [20:53:21]MH_I2C_Read... [20:53:21]Read from MH i2c: E2 0E 00 [20:53:21]MH_I2C_Read... [20:53:21]Read from MH i2c: E2 0E 00 40 88 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 12 [20:53:21]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [20:53:21]wFMCommunicate OK [20:53:21]SAM_PROTO_GetShiftState done [20:53:21]FM_GetShiftState done [20:53:21]req_shift_opened done [20:53:21]requested_item shift.open_date is exist - process it [20:53:21]req_shift_open_date [20:53:21]req_shift_open_date done [20:53:21]produce_requested_data done [20:53:21]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156755,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [20:53:21]process_action_free close_receipt [20:53:21]json_value_free [20:53:21]json_value_free done [20:53:21]process_json_proto returns [20:53:21]Send response to host [20:53:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156755,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [20:53:21]free response buf [20:53:21]execute_script done [20:53:21]execute_script returns [20:53:21]free content buf [20:53:21]Sock 9.Close socket [20:53:21]Sock 9.Thread stoped [20:53:21]OFD Sender: No OFD packet to send [20:53:26]OFD Sender: No OFD packet to send [20:53:31]OFD Sender: No OFD packet to send [20:53:36]OFD Sender: No OFD packet to send [20:53:41]OFD Sender: No OFD packet to send [20:53:46]OFD Sender: No OFD packet to send [20:53:51]OFD Sender: No OFD packet to send [20:53:56]OFD Sender: No OFD packet to send [20:54:01]OFD Sender: No OFD packet to send [20:54:06]OFD Sender: No OFD packet to send [20:54:11]OFD Sender: No OFD packet to send [20:54:16]OFD Sender: No OFD packet to send [20:54:21]OFD Sender: No OFD packet to send [20:54:26]OFD Sender: No OFD packet to send [20:54:31]OFD Sender: No OFD packet to send [20:54:36]OFD Sender: No OFD packet to send [20:54:41]OFD Sender: No OFD packet to send [20:54:46]OFD Sender: No OFD packet to send [20:54:51]OFD Sender: No OFD packet to send [20:54:56]OFD Sender: No OFD packet to send [20:55:01]OFD Sender: No OFD packet to send [20:55:06]OFD Sender: No OFD packet to send [20:55:11]OFD Sender: No OFD packet to send [20:55:16]OFD Sender: No OFD packet to send [20:55:21]OFD Sender: No OFD packet to send [20:55:26]OFD Sender: No OFD packet to send [20:55:31]OFD Sender: No OFD packet to send [20:55:36]OFD Sender: No OFD packet to send [20:55:41]OFD Sender: No OFD packet to send [20:55:46]OFD Sender: No OFD packet to send [20:55:51]OFD Sender: No OFD packet to send [20:55:56]OFD Sender: No OFD packet to send [20:56:01]OFD Sender: No OFD packet to send [20:56:06]OFD Sender: No OFD packet to send [20:56:11]OFD Sender: No OFD packet to send [20:56:16]OFD Sender: No OFD packet to send [20:56:21]OFD Sender: No OFD packet to send [20:56:26]OFD Sender: No OFD packet to send [20:56:31]OFD Sender: No OFD packet to send [20:56:36]OFD Sender: No OFD packet to send [20:56:41]OFD Sender: No OFD packet to send [20:56:46]OFD Sender: No OFD packet to send [20:56:51]OFD Sender: No OFD packet to send [20:56:56]OFD Sender: No OFD packet to send [20:57:01]OFD Sender: No OFD packet to send [20:57:06]OFD Sender: No OFD packet to send [20:57:11]OFD Sender: No OFD packet to send [20:57:16]OFD Sender: No OFD packet to send [20:57:21]OFD Sender: No OFD packet to send [20:57:26]OFD Sender: No OFD packet to send [20:57:31]OFD Sender: No OFD packet to send [20:57:36]OFD Sender: No OFD packet to send [20:57:41]OFD Sender: No OFD packet to send [20:57:46]OFD Sender: No OFD packet to send [20:57:51]OFD Sender: No OFD packet to send [20:57:56]OFD Sender: No OFD packet to send [20:58:01]OFD Sender: No OFD packet to send [20:58:06]OFD Sender: No OFD packet to send [20:58:11]OFD Sender: No OFD packet to send [20:58:16]OFD Sender: No OFD packet to send [20:58:21]OFD Sender: No OFD packet to send [20:58:26]OFD Sender: No OFD packet to send [20:58:31]OFD Sender: No OFD packet to send [20:58:36]OFD Sender: No OFD packet to send [20:58:41]OFD Sender: No OFD packet to send [20:58:46]OFD Sender: No OFD packet to send [20:58:51]OFD Sender: No OFD packet to send [20:58:53]accept exits with 10 [20:58:53]New connection [20:58:53]New thread 3066834276 created [20:58:53]Thread 3066977636 joined [20:58:53]Waiting for new connection... [20:58:53] Sock 10.Parse request [20:58:53]Sock 10.Check first char [20:58:53]Sock 10.First char is OK [20:58:53]request: POST /json_proto HTTP/1.0 [20:58:53]Method: POST [20:58:53]URL: /json_proto [20:58:53]Method is POST - this is cgi request [20:58:53]url: /json_proto [20:58:53]query_string will be loaded in cgi processing [20:58:53]execute_cgi json_proto POST (null) [20:58:53]execute_cgi path=json_proto method=POST [20:58:53]POST find Content-Length [20:58:53]Host: 172.17.63.3:8080 [20:58:53]Content-Length: 676 [20:58:53]Content-Type: application/json [20:58:53] [20:58:53]POST finish read [20:58:53]Found Content-Length = 676 [20:58:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99570", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:58:53]execute_script... [20: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)99570", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:58:53]POST & json_proto [20:58:53]process_json_proto [20:58:53]json parsed OK: [20:58:53]protocol is kg_v1.0 [20:58:53]action value=close_receipt [20:58:53]process_action close_receipt [20:58:53]cmd_close_receipt [20:58:53]MH_GetDate [20:58:53]Write to MH i2c: F0 00 00 41 88 B8 [20:58:53]Write i2c OK [20:58:53]MH_I2C_Read... [20:58:53]Read from MH i2c: F0 [20:58:53]MH_I2C_Read... [20:58:53]Read from MH i2c: F0 09 00 [20:58:53]MH_I2C_Read... [20:58:53]Read from MH i2c: F0 09 00 41 88 00 94 A9 1E 67 50 D1 6C 64 74 [20:58:53]GetLastDocTimeStamp 1730062406 [20:58:53]current date 1730062740 [20:58:53]FM_GetShiftState [20:58:53]SAM_PROTO_GetShiftState [20:58:53]wFMCommunicate request_size=4 [20:58:53]MH_SAM_APDU [20:58:53]CAPDU: 80 13 01 00 [20:58:53]Write to MH i2c: E2 08 00 42 88 80 13 01 00 00 00 00 00 47 [20:58:53]Write i2c OK [20:58:53]MH_I2C_Read... [20:58:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:58:53]Read from MH i2c: E2 [20:58:53]MH_I2C_Read... [20:58:53]Read from MH i2c: E2 0E 00 [20:58:53]MH_I2C_Read... [20:58:53]Read from MH i2c: E2 0E 00 42 88 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 14 [20:58:53]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [20:58:53]wFMCommunicate OK [20:58:53]SAM_PROTO_GetShiftState done [20:58:53]FM_GetShiftState done [20:58:53]opened in 1729989044 [20:58:53]opened+sec_in_day 1730075444 [20:58:53]quantity*price = 20003 [20:58:53]sum+1 = 20004 [20:58:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 307 27.10.2024 20:59 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156756 ФПД: 95938604337405 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T205900&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156756&fm=95938604337405&tin=02508201610067®Number=0000000000091693&sum=20000 [20:58:54]StoreToDocumentArchive [20:58:54]shift 537 fd 156756 [20:58:54]save to /storage/0537/doc_00156756 [20:58:54]save last doc name /storage/0537/doc_00156756 to /storage/kkm_last_doc_name [20:58:54]save OK [20:58:54]Clear old archive folders... [20:58:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:58:54]tlvbuf is 01771CF0 [20:58:54]SAM_PROTO_ClearQueue [20:58:54]wFMCommunicate request_size=4 [20:58:54]MH_SAM_APDU [20:58:54]CAPDU: 80 09 00 00 [20:58:54]Write to MH i2c: E2 08 00 4F 88 80 09 00 00 00 00 00 00 49 [20:58:54]Write i2c OK [20:58:54]MH_I2C_Read... [20:58:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:58:54]Read from MH i2c: E2 [20:58:54]MH_I2C_Read... [20:58:54]Read from MH i2c: E2 03 00 [20:58:54]MH_I2C_Read... [20:58:54]Read from MH i2c: E2 03 00 4F 88 00 90 00 4B [20:58:54]RAPDU: 90 00 [20:58:54]wFMCommunicate OK [20:58:54]SAM_PROTO_ClearQueue done [20:58:54]KKMCreateOFDPacket [20:58:54]OFDProtocolAddRootSTLVToBuf [20:58:54]FM_MakeSignedData [20:58:54]FM_MakeSignedData [20:58:54]SAM_PROTO_SignData [20:58:54]wFMCommunicate request_size=4 [20:58:54]MH_SAM_APDU [20:58:54]CAPDU: 80 0D 01 02 [20:58:54]Write to MH i2c: E2 08 00 50 88 80 0D 01 02 00 00 00 00 51 [20:58:54]Write i2c OK [20:58:54]MH_I2C_Read... [20:58:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:58:54]Read from MH i2c: E2 [20:58:54]MH_I2C_Read... [20:58:54]Read from MH i2c: E2 03 00 [20:58:54]MH_I2C_Read... [20:58:54]Read from MH i2c: E2 03 00 50 88 00 90 00 4C [20:58:54]RAPDU: 90 00 [20:58:54]wFMCommunicate OK [20:58:54]wFMCommunicate request_size=255 [20:58:54]MH_SAM_APDU [20:58: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 33 01 00 00 F4 03 04 00 94 A9 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 54 64 02 00 35 04 06 00 57 [20:58:54]Write to MH i2c: E2 02 01 51 88 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 33 01 00 00 F4 03 04 00 94 A9 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 54 64 02 00 35 04 06 00 57 00 00 C9 [20:58:54]Write i2c OK [20:58:54]MH_I2C_Read... [20:58:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:58:54]Read from MH i2c: E2 [20:58:54]MH_I2C_Read... [20:58:54]Read from MH i2c: E2 03 00 [20:58:54]MH_I2C_Read... [20:58:54]Read from MH i2c: E2 03 00 51 88 00 90 00 4D [20:58:54]RAPDU: 90 00 [20:58:54]wFMCommunicate OK [20:58:54]wFMCommunicate request_size=10 [20:58:54]MH_SAM_APDU [20:58:54]CAPDU: 80 0D 02 02 05 41 72 6E 88 FD [20:58:54]Write to MH i2c: E2 0D 00 52 88 80 0D 02 02 05 00 41 72 6E 88 FD 00 00 04 [20:58:54]Write i2c OK [20:58:54]MH_I2C_Read... [20:58:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:58:54]Read from MH i2c: E2 [20:58:54]MH_I2C_Read... [20:58:54]Read from MH i2c: E2 03 00 [20:58:54]MH_I2C_Read... [20:58:54]Read from MH i2c: E2 03 00 52 88 00 90 00 4E [20:58:54]RAPDU: 90 00 [20:58:54]wFMCommunicate OK [20:58:54]wFMCommunicate request_size=4 [20:58:54]MH_SAM_APDU [20:58:54]CAPDU: 80 0D 03 02 [20:58:54]Write to MH i2c: E2 08 00 53 88 80 0D 03 02 00 00 00 00 56 [20:58:54]Write i2c OK [20:58:54]MH_I2C_Read... [20:58:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:58:54]Read from MH i2c: E2 [20:58:54]MH_I2C_Read... [20:58:54]Read from MH i2c: E2 0B 00 [20:58:54]MH_I2C_Read... [20:58:54]Read from MH i2c: E2 0B 00 53 88 00 FA 7D 14 2D DE F9 CB C3 90 00 74 [20:58:54]RAPDU: FA 7D 14 2D DE F9 CB C3 90 00 [20:58:54]wFMCommunicate OK [20:58:54]SAM_PROTO_SignData done [20:58:54]FM_MakeSignedData done [20:58:54]CreateOFDProtocolMessage [20:58:54]wFMCommunicate request_size=4 [20:58:54]MH_SAM_APDU [20:58:54]CAPDU: 80 11 00 00 [20:58:54]Write to MH i2c: E2 08 00 54 88 80 11 00 00 00 00 00 00 56 [20:58:54]Write i2c OK [20:58:54]MH_I2C_Read... [20:58:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:58:54]Read from MH i2c: E2 [20:58:54]MH_I2C_Read... [20:58:54]Read from MH i2c: E2 17 00 [20:58:54]MH_I2C_Read... [20:58:54]Read from MH i2c: E2 17 00 54 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 AB [20:58:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [20:58:54]wFMCommunicate OK [20:58:54]CreateOFDProtocolMessage done [20:58:54]OFDSenderStorePacket 156756 [20:58:54]StoreOFDPacket docnum=156756 [20:58:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 8E 23 07 01 D7 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 33 01 00 00 F4 03 04 00 94 A9 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 54 64 02 00 35 04 06 00 57 41 72 6E 88 FD FA 7D 14 2D DE F9 CB C3 [20:58:54]CheckFolder [20:58:54]dirname=/storage/ofd_packets [20:58:54]CheckFolder done [20:58:54]ProducePacketName [20:58:54]name=ofd_packets/00156756 [20:58:54]NVStorageSaveData ofd_packets/00156756 [20:58:54]File name is /storage/ofd_packets/00156756 [20:58:54]Write 301 bytes [20:58:54]NVStorageSaveData done [20:58:54]OFDSenderStorePacket done [20:58:54]KKMCreateOFDPacket done [20:58:54]NVStorageSaveData kkm_last_timestamp [20:58:54]File name is /storage/kkm_last_timestamp [20:58:54]Write 4 bytes [20:58:54]NVStorageSaveData done [20:58:54]ExternCall_PrintAddStr [20:58:54]wPrintStart [20:58:54]Write to MH i2c: 01 00 00 55 88 DD [20:58:54]Write i2c OK [20:58:54]MH_I2C_Read... [20:58:54]Read from MH i2c: 01 [20:58:54]MH_I2C_Read... [20:58:54]Read from MH i2c: 01 07 00 [20:58:54]MH_I2C_Read... [20:58:54]Read from MH i2c: 01 07 00 55 88 00 00 00 00 00 FF 0F F2 [20:58:54]RasterBufferAndPrint [20:58:54]line Счет N : (1)99570 [20:58:54]line ИНН: 02508201610067 [20:58:54]line Контрольно-Кассовый Чек [20:58:54]line ПРОДАЖА [20:58:54]line ТРК (МРК, ГНК) : 31 [20:58:54]line Товар: 2710124130 [20:58:54]line Аи-92-К-5 [20:58:54]line 2.990 * 66.90 [20:58:54]line = 200.03 [20:58:54]line НДС 12% НСП 1% [20:58:54]line > о реализуемом товаре [20:58:54]line ОКРУГЛЕНИЕ: -0.03 [20:58:54]line ИТОГО: 200.00 [20:58:54]line Внесено: 200.00 [20:58:54]line СДАЧА: 0.00 [20:58:54]line НСП 1% : 1.77 [20:58:54]line НДС 12% : 21.24 [20:58:54]line Наличными: 200.00 [20:58:54]line Безнал.: 0.00 [20:58:54]line Место: АЗС № 143 "Партнер Нефть" [20:58:54]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [20:58:54]line СНО: Общий режим [20:58:54]line Чек 307 27.10.2024 20:59 [20:58:54]line Смена: 537 ФФД: 1.0 [20:58:55]line ЗНМ: 0300000096 [20:58:55]line РНМ: 0000000000091693 [20:58:55]line Версия ККМ: 001 [20:58:55]line ФМ: 0000000000871792 [20:58:55]line ФД: 156756 [20:58:55]line ФПД: 95938604337405 [20:58:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T205900&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156756&fm=95938604337405&tin=02508201610067®Number=0000000000091693&sum=20000 [20:58:55]OFD Sender: Processing packet 156756 [packets to send 31, broken 30] [20:58:55]ProducePacketName [20:58:55]name=ofd_packets/00156756 [20:58:55]OFD Sender: To server: pG, [20:58:55]CommunicateWithHost lk.salyk.kg:30040 [20:58:55]ConnectInit lk.salyk.kg [20:58:55]written 0, free lines is 4095 [20:58:55]Connected sock=9 [20: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 31 37 39 32 0F 01 00 00 8E 23 07 01 D7 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 33 01 00 00 F4 03 04 00 94 A9 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 54 64 02 00 35 04 06 00 57 41 72 6E 88 FD FA 7D 14 2D DE F9 CB C3 [20:58:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 C6 7A 47 00 3E D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 54 64 02 00 F4 03 04 00 03 4F 1E 67 B6 04 01 00 00 BE 22 5C C3 43 AD 8D 37 [20:58:55]CommunicateWithHost err = 0 [20:58:55]CheckOFDResponse [20:58:55]1017 (14) - 77093643461234 [20:58:55]1041 (16) - 0000000000871792 [20:58:55]1040 (4) - 156756 [20:58:55]1012 (4) - 27.10.2024 14:32 [20:58:55]1206 (1) - 0 [20:58:55]OFD Sender: Remove packet 156756 [20:58:55]ProducePacketName [20:58:55]name=ofd_packets/00156756 [20:58:55]NVStorageDeleteData [20:58:55]Write to MH i2c: 01 00 00 80 88 08 [20:58:55]Write i2c OK [20:58:55]MH_I2C_Read... [20:58:55]Read from MH i2c: 01 [20:58:55]MH_I2C_Read... [20:58:55]Read from MH i2c: 01 07 00 [20:58:55]MH_I2C_Read... [20:58:55]Read from MH i2c: 01 07 00 80 88 00 00 00 00 00 DA 0C F5 [20:58:55]RasterBufferAndPrint [20:58:55]line [20:58:55]line [20:58:55]line [20:58:55]line [20:58:55]line [20:58:55]written 0, free lines is 3297 [20:58:55]process_action close_receipt done [20:58:55]requested_data is exist [20:58:55]produce_requested_data [20:58:55]requested_item fm.sn is exist - process it [20:58:55]wFMCommunicate request_size=4 [20:58:55]MH_SAM_APDU [20:58:55]CAPDU: 80 11 00 00 [20:58:55]Write to MH i2c: E2 08 00 87 88 80 11 00 00 00 00 00 00 89 [20:58:55]Write i2c OK [20:58:55]MH_I2C_Read... [20:58:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:58:55]Read from MH i2c: E2 [20:58:55]MH_I2C_Read... [20:58:55]Read from MH i2c: E2 17 00 [20:58:55]MH_I2C_Read... [20:58:55]Read from MH i2c: E2 17 00 87 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 DE [20:58:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [20:58:55]wFMCommunicate OK [20:58:55]requested_item fd.num is exist - process it [20:58:55]SAM_PROTO_GetFieldsCounters [20:58:55]wFMCommunicate request_size=4 [20:58:55]MH_SAM_APDU [20:58:55]CAPDU: 80 13 00 00 [20:58:55]Write to MH i2c: E2 08 00 88 88 80 13 00 00 00 00 00 00 8C [20:58:55]Write i2c OK [20:58:55]MH_I2C_Read... [20:58:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:58:55]Read from MH i2c: E2 [20:58:55]MH_I2C_Read... [20:58:55]Read from MH i2c: E2 62 00 [20:58:55]MH_I2C_Read... [20:58:55]Read from MH i2c: E2 62 00 88 88 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 54 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 33 01 00 00 5E 04 04 00 33 01 00 00 57 04 04 00 34 01 00 00 19 04 04 00 00 00 00 00 90 00 23 [20:58:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 54 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 33 01 00 00 5E 04 04 00 33 01 00 00 57 04 04 00 34 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:58:56]wFMCommunicate OK [20:58:56]SAM_PROTO_GetFieldsCounters done [20:58:56]requested_item shift.num is exist - process it [20:58:56]requested_item shift.opened is exist - process it [20:58:56]req_shift_opened [20:58:56]FM_GetShiftState [20:58:56]SAM_PROTO_GetShiftState [20:58:56]wFMCommunicate request_size=4 [20:58:56]MH_SAM_APDU [20:58:56]CAPDU: 80 13 01 00 [20:58:56]Write to MH i2c: E2 08 00 89 88 80 13 01 00 00 00 00 00 8E [20:58:56]Write i2c OK [20:58:56]MH_I2C_Read... [20:58:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:58:56]Read from MH i2c: E2 [20:58:56]MH_I2C_Read... [20:58:56]Read from MH i2c: E2 0E 00 [20:58:56]MH_I2C_Read... [20:58:56]Read from MH i2c: E2 0E 00 89 88 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 5B [20:58:56]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [20:58:56]wFMCommunicate OK [20:58:56]SAM_PROTO_GetShiftState done [20:58:56]FM_GetShiftState done [20:58:56]req_shift_opened done [20:58:56]requested_item shift.open_date is exist - process it [20:58:56]req_shift_open_date [20:58:56]req_shift_open_date done [20:58:56]produce_requested_data done [20:58:56]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156756,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [20:58:56]process_action_free close_receipt [20:58:56]json_value_free [20:58:56]json_value_free done [20:58:56]process_json_proto returns [20:58:56]Send response to host [20:58:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156756,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [20:58:56]free response buf [20:58:56]execute_script done [20:58:56]execute_script returns [20:58:56]free content buf [20:58:56]Sock 10.Close socket [20:58:56]Sock 10.Thread stoped [20:58:56]OFD Sender: No OFD packet to send [20:59:01]OFD Sender: No OFD packet to send [20:59:06]OFD Sender: No OFD packet to send [20:59:11]OFD Sender: No OFD packet to send [20:59:16]OFD Sender: No OFD packet to send [20:59:21]OFD Sender: No OFD packet to send [20:59:26]OFD Sender: No OFD packet to send [20:59:31]OFD Sender: No OFD packet to send [20:59:36]OFD Sender: No OFD packet to send [20:59:41]OFD Sender: No OFD packet to send [20:59:46]OFD Sender: No OFD packet to send [20:59:51]OFD Sender: No OFD packet to send [20:59:56]OFD Sender: No OFD packet to send [21:00:01]OFD Sender: No OFD packet to send [21:00:06]OFD Sender: No OFD packet to send [21:00:11]OFD Sender: No OFD packet to send [21:00:16]OFD Sender: No OFD packet to send [21:00:21]OFD Sender: No OFD packet to send [21:00:26]OFD Sender: No OFD packet to send [21:00:31]OFD Sender: No OFD packet to send [21:00:36]OFD Sender: No OFD packet to send [21:00:41]OFD Sender: No OFD packet to send [21:00:46]OFD Sender: No OFD packet to send [21:00:51]OFD Sender: No OFD packet to send [21:00:56]OFD Sender: No OFD packet to send [21:01:01]OFD Sender: No OFD packet to send [21:01:06]OFD Sender: No OFD packet to send [21:01:11]OFD Sender: No OFD packet to send [21:01:16]OFD Sender: No OFD packet to send [21:01:21]OFD Sender: No OFD packet to send [21:01:26]OFD Sender: No OFD packet to send [21:01:31]OFD Sender: No OFD packet to send [21:01:36]OFD Sender: No OFD packet to send [21:01:41]OFD Sender: No OFD packet to send [21:01:46]OFD Sender: No OFD packet to send [21:01:51]OFD Sender: No OFD packet to send [21:01:56]OFD Sender: No OFD packet to send [21:02:01]OFD Sender: No OFD packet to send [21:02:06]OFD Sender: No OFD packet to send [21:02:11]OFD Sender: No OFD packet to send [21:02:16]OFD Sender: No OFD packet to send [21:02:21]OFD Sender: No OFD packet to send [21:02:26]OFD Sender: No OFD packet to send [21:02:31]OFD Sender: No OFD packet to send [21:02:36]OFD Sender: No OFD packet to send [21:02:41]OFD Sender: No OFD packet to send [21:02:46]OFD Sender: No OFD packet to send [21:02:51]OFD Sender: No OFD packet to send [21:02:56]OFD Sender: No OFD packet to send [21:03:01]OFD Sender: No OFD packet to send [21:03:06]OFD Sender: No OFD packet to send [21:03:11]OFD Sender: No OFD packet to send [21:03:16]OFD Sender: No OFD packet to send [21:03:21]OFD Sender: No OFD packet to send [21:03:26]OFD Sender: No OFD packet to send [21:03:31]OFD Sender: No OFD packet to send [21:03:36]OFD Sender: No OFD packet to send [21:03:41]OFD Sender: No OFD packet to send [21:03:46]OFD Sender: No OFD packet to send [21:03:51]OFD Sender: No OFD packet to send [21:03:56]OFD Sender: No OFD packet to send [21:04:01]OFD Sender: No OFD packet to send [21:04:06]OFD Sender: No OFD packet to send [21:04:11]OFD Sender: No OFD packet to send [21:04:16]OFD Sender: No OFD packet to send [21:04:21]OFD Sender: No OFD packet to send [21:04:26]OFD Sender: No OFD packet to send [21:04:31]OFD Sender: No OFD packet to send [21:04:36]OFD Sender: No OFD packet to send [21:04:41]OFD Sender: No OFD packet to send [21:04:46]OFD Sender: No OFD packet to send [21:04:51]OFD Sender: No OFD packet to send [21:04:56]OFD Sender: No OFD packet to send [21:05:01]OFD Sender: No OFD packet to send [21:05:06]OFD Sender: No OFD packet to send [21:05:11]OFD Sender: No OFD packet to send [21:05:16]OFD Sender: No OFD packet to send [21:05:21]OFD Sender: No OFD packet to send [21:05:26]OFD Sender: No OFD packet to send [21:05:31]OFD Sender: No OFD packet to send [21:05:36]OFD Sender: No OFD packet to send [21:05:41]OFD Sender: No OFD packet to send [21:05:46]OFD Sender: No OFD packet to send [21:05:51]OFD Sender: No OFD packet to send [21:05:56]OFD Sender: No OFD packet to send [21:06:01]OFD Sender: No OFD packet to send [21:06:06]OFD Sender: No OFD packet to send [21:06:11]OFD Sender: No OFD packet to send [21:06:16]OFD Sender: No OFD packet to send [21:06:21]OFD Sender: No OFD packet to send [21:06:26]OFD Sender: No OFD packet to send [21:06:31]OFD Sender: No OFD packet to send [21:06:36]OFD Sender: No OFD packet to send [21:06:41]OFD Sender: No OFD packet to send [21:06:46]OFD Sender: No OFD packet to send [21:06:51]OFD Sender: No OFD packet to send [21:06:56]OFD Sender: No OFD packet to send [21:07:01]OFD Sender: No OFD packet to send [21:07:06]OFD Sender: No OFD packet to send [21:07:11]OFD Sender: No OFD packet to send [21:07:16]OFD Sender: No OFD packet to send [21:07:21]OFD Sender: No OFD packet to send [21:07:26]OFD Sender: No OFD packet to send [21:07:31]OFD Sender: No OFD packet to send [21:07:36]OFD Sender: No OFD packet to send [21:07:41]OFD Sender: No OFD packet to send [21:07:46]OFD Sender: No OFD packet to send [21:07:51]OFD Sender: No OFD packet to send [21:07:56]OFD Sender: No OFD packet to send [21:08:01]OFD Sender: No OFD packet to send [21:08:06]OFD Sender: No OFD packet to send [21:08:07]accept exits with 8 [21:08:07]New connection [21:08:07]New thread 3066977636 created [21:08:07]Thread 3066834276 joined [21:08:07]Waiting for new connection... [21:08:07] Sock 8.Parse request [21:08:07]Sock 8.Check first char [21:08:07]Sock 8.First char is OK [21:08:07]request: POST /json_proto HTTP/1.0 [21:08:07]Method: POST [21:08:07]URL: /json_proto [21:08:07]Method is POST - this is cgi request [21:08:07]url: /json_proto [21:08:07]query_string will be loaded in cgi processing [21:08:07]execute_cgi json_proto POST (null) [21:08:07]execute_cgi path=json_proto method=POST [21:08:07]POST find Content-Length [21:08:07]Host: 172.17.63.3:8080 [21:08:07]Content-Length: 765 [21:08:07]Content-Type: application/json [21:08:07] [21:08:07]POST finish read [21:08:07]Found Content-Length = 765 [21:08:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99571", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:08:07]execute_script... [21:08:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99571", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:08:07]POST & json_proto [21:08:07]process_json_proto [21:08:07]json parsed OK: [21:08:07]protocol is kg_v1.0 [21:08:07]action value=close_receipt [21:08:07]process_action close_receipt [21:08:07]cmd_close_receipt [21:08:07]MH_GetDate [21:08:07]Write to MH i2c: F0 00 00 8A 88 01 [21:08:07]Write i2c OK [21:08:07]MH_I2C_Read... [21:08:07]Read from MH i2c: F0 [21:08:07]MH_I2C_Read... [21:08:07]Read from MH i2c: F0 09 00 [21:08:07]MH_I2C_Read... [21:08:07]Read from MH i2c: F0 09 00 8A 88 00 BF AB 1E 67 50 D1 6C 64 EA [21:08:07]GetLastDocTimeStamp 1730062740 [21:08:07]current date 1730063295 [21:08:07]FM_GetShiftState [21:08:07]SAM_PROTO_GetShiftState [21:08:07]wFMCommunicate request_size=4 [21:08:07]MH_SAM_APDU [21:08:07]CAPDU: 80 13 01 00 [21:08:07]Write to MH i2c: E2 08 00 8B 88 80 13 01 00 00 00 00 00 90 [21:08:07]Write i2c OK [21:08:07]MH_I2C_Read... [21:08:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:08:07]Read from MH i2c: E2 [21:08:07]MH_I2C_Read... [21:08:07]Read from MH i2c: E2 0E 00 [21:08:07]MH_I2C_Read... [21:08:07]Read from MH i2c: E2 0E 00 8B 88 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 5D [21:08:07]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [21:08:07]wFMCommunicate OK [21:08:07]SAM_PROTO_GetShiftState done [21:08:07]FM_GetShiftState done [21:08:07]opened in 1729989044 [21:08:07]opened+sec_in_day 1730075444 [21:08:07]quantity*price = 40006 [21:08:07]sum+1 = 40007 [21:08:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.06 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 0.00 Безнал.: 400.06 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 308 27.10.2024 21:08 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 156757 ФПД: 102310855606265 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T210815&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156757&fm=102310855606265&tin=02508201610067®Number=0000000000091693&sum=40006 [21:08:08]StoreToDocumentArchive [21:08:08]shift 537 fd 156757 [21:08:08]save to /storage/0537/doc_00156757 [21:08:08]save last doc name /storage/0537/doc_00156757 to /storage/kkm_last_doc_name [21:08:08]save OK [21:08:08]Clear old archive folders... [21:08:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:08:08]tlvbuf is 01889370 [21:08:08]SAM_PROTO_ClearQueue [21:08:08]wFMCommunicate request_size=4 [21:08:08]MH_SAM_APDU [21:08:08]CAPDU: 80 09 00 00 [21:08:08]Write to MH i2c: E2 08 00 98 88 80 09 00 00 00 00 00 00 92 [21:08:08]Write i2c OK [21:08:08]MH_I2C_Read... [21:08:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:08:08]Read from MH i2c: E2 [21:08:08]MH_I2C_Read... [21:08:08]Read from MH i2c: E2 03 00 [21:08:08]MH_I2C_Read... [21:08:08]Read from MH i2c: E2 03 00 98 88 00 90 00 94 [21:08:08]RAPDU: 90 00 [21:08:08]wFMCommunicate OK [21:08:08]SAM_PROTO_ClearQueue done [21:08:08]KKMCreateOFDPacket [21:08:08]OFDProtocolAddRootSTLVToBuf [21:08:08]FM_MakeSignedData [21:08:08]FM_MakeSignedData [21:08:08]SAM_PROTO_SignData [21:08:08]wFMCommunicate request_size=4 [21:08:08]MH_SAM_APDU [21:08:08]CAPDU: 80 0D 01 02 [21:08:08]Write to MH i2c: E2 08 00 99 88 80 0D 01 02 00 00 00 00 9A [21:08:08]Write i2c OK [21:08:08]MH_I2C_Read... [21:08:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:08:08]Read from MH i2c: E2 [21:08:08]MH_I2C_Read... [21:08:08]Read from MH i2c: E2 03 00 [21:08:08]MH_I2C_Read... [21:08:08]Read from MH i2c: E2 03 00 99 88 00 90 00 95 [21:08:08]RAPDU: 90 00 [21:08:08]wFMCommunicate OK [21:08:08]wFMCommunicate request_size=255 [21:08:08]MH_SAM_APDU [21:08: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 BF AB 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 55 64 02 00 35 04 06 00 5D [21:08:08]Write to MH i2c: E2 02 01 9A 88 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 BF AB 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 55 64 02 00 35 04 06 00 5D 00 00 60 [21:08:08]Write i2c OK [21:08:08]MH_I2C_Read... [21:08:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:08:09]Read from MH i2c: E2 [21:08:09]MH_I2C_Read... [21:08:09]Read from MH i2c: E2 03 00 [21:08:09]MH_I2C_Read... [21:08:09]Read from MH i2c: E2 03 00 9A 88 00 90 00 96 [21:08:09]RAPDU: 90 00 [21:08:09]wFMCommunicate OK [21:08:09]wFMCommunicate request_size=10 [21:08:09]MH_SAM_APDU [21:08:09]CAPDU: 80 0D 02 02 05 0D 1A 34 7F F9 [21:08:09]Write to MH i2c: E2 0D 00 9B 88 80 0D 02 02 05 00 0D 1A 34 7F F9 00 00 7A [21:08:09]Write i2c OK [21:08:09]MH_I2C_Read... [21:08:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:08:09]Read from MH i2c: E2 [21:08:09]MH_I2C_Read... [21:08:09]Read from MH i2c: E2 03 00 [21:08:09]MH_I2C_Read... [21:08:09]Read from MH i2c: E2 03 00 9B 88 00 90 00 97 [21:08:09]RAPDU: 90 00 [21:08:09]wFMCommunicate OK [21:08:09]wFMCommunicate request_size=4 [21:08:09]MH_SAM_APDU [21:08:09]CAPDU: 80 0D 03 02 [21:08:09]Write to MH i2c: E2 08 00 9C 88 80 0D 03 02 00 00 00 00 9F [21:08:09]Write i2c OK [21:08:09]MH_I2C_Read... [21:08:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:08:09]Read from MH i2c: E2 [21:08:09]MH_I2C_Read... [21:08:09]Read from MH i2c: E2 0B 00 [21:08:09]MH_I2C_Read... [21:08:09]Read from MH i2c: E2 0B 00 9C 88 00 AE 17 02 80 EE 1E 63 11 90 00 67 [21:08:09]RAPDU: AE 17 02 80 EE 1E 63 11 90 00 [21:08:09]wFMCommunicate OK [21:08:09]SAM_PROTO_SignData done [21:08:09]FM_MakeSignedData done [21:08:09]CreateOFDProtocolMessage [21:08:09]wFMCommunicate request_size=4 [21:08:09]MH_SAM_APDU [21:08:09]CAPDU: 80 11 00 00 [21:08:09]Write to MH i2c: E2 08 00 9D 88 80 11 00 00 00 00 00 00 9F [21:08:09]Write i2c OK [21:08:09]MH_I2C_Read... [21:08:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:08:09]Read from MH i2c: E2 [21:08:09]MH_I2C_Read... [21:08:09]Read from MH i2c: E2 17 00 [21:08:09]MH_I2C_Read... [21:08:09]Read from MH i2c: E2 17 00 9D 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 F4 [21:08:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [21:08:09]wFMCommunicate OK [21:08:09]CreateOFDProtocolMessage done [21:08:09]OFDSenderStorePacket 156757 [21:08:09]StoreOFDPacket docnum=156757 [21:08:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 86 9F 07 01 E0 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 BF AB 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 55 64 02 00 35 04 06 00 5D 0D 1A 34 7F F9 AE 17 02 80 EE 1E 63 11 [21:08:09]CheckFolder [21:08:09]dirname=/storage/ofd_packets [21:08:09]CheckFolder done [21:08:09]ProducePacketName [21:08:09]name=ofd_packets/00156757 [21:08:09]NVStorageSaveData ofd_packets/00156757 [21:08:09]File name is /storage/ofd_packets/00156757 [21:08:09]Write 301 bytes [21:08:09]NVStorageSaveData done [21:08:09]OFDSenderStorePacket done [21:08:09]KKMCreateOFDPacket done [21:08:09]NVStorageSaveData kkm_last_timestamp [21:08:09]File name is /storage/kkm_last_timestamp [21:08:09]Write 4 bytes [21:08:09]NVStorageSaveData done [21:08:09]ExternCall_PrintAddStr [21:08:09]wPrintStart [21:08:09]Write to MH i2c: 01 00 00 9E 88 26 [21:08:09]Write i2c OK [21:08:09]MH_I2C_Read... [21:08:09]Read from MH i2c: 01 [21:08:09]MH_I2C_Read... [21:08:09]Read from MH i2c: 01 07 00 [21:08:09]MH_I2C_Read... [21:08:09]Read from MH i2c: 01 07 00 9E 88 00 00 00 00 00 FF 0F 3B [21:08:09]RasterBufferAndPrint [21:08:09]line Счет N : (1)99571 [21:08:09]line ИНН: 02508201610067 [21:08:09]line Контрольно-Кассовый Чек [21:08:09]line ПРОДАЖА [21:08:09]line ТРК (МРК, ГНК) : 31 [21:08:09]line Товар: 2710124130 [21:08:09]line Аи-92-К-5 [21:08:09]line 5.980 * 66.90 [21:08:09]line = 400.06 [21:08:09]line НДС 12% НСП 1% [21:08:09]line > о реализуемом товаре [21:08:09]line ИТОГО: 400.06 [21:08:09]line НСП 1% : 3.54 [21:08:09]line НДС 12% : 42.48 [21:08:09]line Наличными: 0.00 [21:08:09]line Безнал.: 400.06 [21:08:09]line Место: АЗС № 143 "Партнер Нефть" [21:08:09]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [21:08:09]line СНО: Общий режим [21:08:09]line Чек 308 27.10.2024 21:08 [21:08:09]line Смена: 537 ФФД: 1.0 [21:08:09]line ЗНМ: 0300000096 [21:08:09]line РНМ: 0000000000091693 [21:08:09]line Версия ККМ: 001 [21:08:09]line Платежная система: Mbank [21:08:09]line ФМ: 0000000000871792 [21:08:09]line ФД: 156757 [21:08:09]line ФПД: 102310855606265 [21:08:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T210815&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156757&fm=102310855606265&tin=02508201610067®Number=0000000000091693&sum=40006 [21:08:09]written 0, free lines is 4095 [21:08:09]OFD Sender: Processing packet 156757 [packets to send 31, broken 30] [21:08:09]ProducePacketName [21:08:09]name=ofd_packets/00156757 [21:08:09]OFD Sender: To server: pG, [21:08:09]CommunicateWithHost lk.salyk.kg:30040 [21:08:09]ConnectInit lk.salyk.kg [21:08:09]Write to MH i2c: 01 00 00 C7 88 4F [21:08:09]Write i2c OK [21:08:09]MH_I2C_Read... [21:08:09]Read from MH i2c: 01 [21:08:09]MH_I2C_Read... [21:08:09]Read from MH i2c: 01 07 00 [21:08:09]MH_I2C_Read... [21:08:09]Read from MH i2c: 01 07 00 C7 88 00 00 00 00 00 02 0D 65 [21:08:09]RasterBufferAndPrint [21:08:09]line [21:08:09]line [21:08:09]line [21:08:09]line [21:08:09]line [21:08:09]written 0, free lines is 3333 [21:08:09]process_action close_receipt done [21:08:09]requested_data is exist [21:08:09]produce_requested_data [21:08:09]requested_item fm.sn is exist - process it [21:08:09]wFMCommunicate request_size=4 [21:08:09]MH_SAM_APDU [21:08:09]CAPDU: 80 11 00 00 [21:08:09]Write to MH i2c: E2 08 00 CE 88 80 11 00 00 00 00 00 00 D0 [21:08:09]Write i2c OK [21:08:09]MH_I2C_Read... [21:08:09]Connected sock=11 [21:08:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 86 9F 07 01 E0 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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 BF AB 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 55 64 02 00 35 04 06 00 5D 0D 1A 34 7F F9 AE 17 02 80 EE 1E 63 11 [21:08:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:08:09]Read from MH i2c: E2 [21:08:09]MH_I2C_Read... [21:08:09]Read from MH i2c: E2 17 00 [21:08:09]MH_I2C_Read... [21:08:09]Read from MH i2c: E2 17 00 CE 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 25 [21:08:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [21:08:09]wFMCommunicate OK [21:08:09]requested_item fd.num is exist - process it [21:08:09]SAM_PROTO_GetFieldsCounters [21:08:09]wFMCommunicate request_size=4 [21:08:09]MH_SAM_APDU [21:08:09]CAPDU: 80 13 00 00 [21:08:09]Write to MH i2c: E2 08 00 CF 88 80 13 00 00 00 00 00 00 D3 [21:08:09]Write i2c OK [21:08:09]MH_I2C_Read... [21:08:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:08:10]Read from MH i2c: E2 [21:08:10]MH_I2C_Read... [21:08:10]Read from MH i2c: E2 62 00 [21:08:10]MH_I2C_Read... [21:08:10]Read from MH i2c: E2 62 00 CF 88 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 55 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 34 01 00 00 5E 04 04 00 34 01 00 00 57 04 04 00 35 01 00 00 19 04 04 00 00 00 00 00 90 00 6E [21:08:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 55 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 34 01 00 00 5E 04 04 00 34 01 00 00 57 04 04 00 35 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:08:10]wFMCommunicate OK [21:08:10]SAM_PROTO_GetFieldsCounters done [21:08:10]requested_item shift.num is exist - process it [21:08:10]requested_item shift.opened is exist - process it [21:08:10]req_shift_opened [21:08:10]FM_GetShiftState [21:08:10]SAM_PROTO_GetShiftState [21:08:10]wFMCommunicate request_size=4 [21:08:10]MH_SAM_APDU [21:08:10]CAPDU: 80 13 01 00 [21:08:10]Write to MH i2c: E2 08 00 D0 88 80 13 01 00 00 00 00 00 D5 [21:08:10]Write i2c OK [21:08:10]MH_I2C_Read... [21:08:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:08:10]Read from MH i2c: E2 [21:08:10]MH_I2C_Read... [21:08:10]Read from MH i2c: E2 0E 00 [21:08:10]MH_I2C_Read... [21:08:10]Read from MH i2c: E2 0E 00 D0 88 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 A2 [21:08:10]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [21:08:10]wFMCommunicate OK [21:08:10]SAM_PROTO_GetShiftState done [21:08:10]FM_GetShiftState done [21:08:10]req_shift_opened done [21:08:10]requested_item shift.open_date is exist - process it [21:08:10]req_shift_open_date [21:08:10]req_shift_open_date done [21:08:10]produce_requested_data done [21:08:10]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156757,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [21:08:10]process_action_free close_receipt [21:08:10]json_value_free [21:08:10]json_value_free done [21:08:10]process_json_proto returns [21:08:10]Send response to host [21:08:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156757,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [21:08:10]free response buf [21:08:10]execute_script done [21:08:10]execute_script returns [21:08:10]free content buf [21:08:10]Sock 8.Close socket [21:08:10]Sock 8.Thread stoped [21:08:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 15 6C 47 00 F9 64 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 55 64 02 00 F4 03 04 00 2D 51 1E 67 B6 04 01 00 00 8A F0 F6 11 94 41 05 36 [21:08:10]CommunicateWithHost err = 0 [21:08:10]CheckOFDResponse [21:08:10]1017 (14) - 77093643461234 [21:08:10]1041 (16) - 0000000000871792 [21:08:10]1040 (4) - 156757 [21:08:10]1012 (4) - 27.10.2024 14:41 [21:08:10]1206 (1) - 0 [21:08:10]OFD Sender: Remove packet 156757 [21:08:10]ProducePacketName [21:08:10]name=ofd_packets/00156757 [21:08:10]NVStorageDeleteData [21:08:10]OFD Sender: No OFD packet to send [21:08:15]OFD Sender: No OFD packet to send [21:08:20]OFD Sender: No OFD packet to send [21:08:25]OFD Sender: No OFD packet to send [21:08:30]OFD Sender: No OFD packet to send [21:08:35]OFD Sender: No OFD packet to send [21:08:40]OFD Sender: No OFD packet to send [21:08:45]OFD Sender: No OFD packet to send [21:08:50]OFD Sender: No OFD packet to send [21:08:55]OFD Sender: No OFD packet to send [21:09:00]OFD Sender: No OFD packet to send [21:09:05]OFD Sender: No OFD packet to send [21:09:10]OFD Sender: No OFD packet to send [21:09:15]OFD Sender: No OFD packet to send [21:09:20]OFD Sender: No OFD packet to send [21:09:25]OFD Sender: No OFD packet to send [21:09:30]OFD Sender: No OFD packet to send [21:09:35]OFD Sender: No OFD packet to send [21:09:40]OFD Sender: No OFD packet to send [21:09:45]OFD Sender: No OFD packet to send [21:09:50]OFD Sender: No OFD packet to send [21:09:55]OFD Sender: No OFD packet to send [21:10:00]OFD Sender: No OFD packet to send [21:10:05]OFD Sender: No OFD packet to send [21:10:10]OFD Sender: No OFD packet to send [21:10:15]OFD Sender: No OFD packet to send [21:10:20]OFD Sender: No OFD packet to send [21:10:25]OFD Sender: No OFD packet to send [21:10:30]OFD Sender: No OFD packet to send [21:10:35]OFD Sender: No OFD packet to send [21:10:40]OFD Sender: No OFD packet to send [21:10:45]OFD Sender: No OFD packet to send [21:10:50]OFD Sender: No OFD packet to send [21:10:55]OFD Sender: No OFD packet to send [21:11:00]OFD Sender: No OFD packet to send [21:11:05]OFD Sender: No OFD packet to send [21:11:10]OFD Sender: No OFD packet to send [21:11:15]OFD Sender: No OFD packet to send [21:11:20]OFD Sender: No OFD packet to send [21:11:25]OFD Sender: No OFD packet to send [21:11:30]OFD Sender: No OFD packet to send [21:11:35]OFD Sender: No OFD packet to send [21:11:40]OFD Sender: No OFD packet to send [21:11:45]OFD Sender: No OFD packet to send [21:11:50]OFD Sender: No OFD packet to send [21:11:55]OFD Sender: No OFD packet to send [21:12:00]OFD Sender: No OFD packet to send [21:12:05]OFD Sender: No OFD packet to send [21:12:10]OFD Sender: No OFD packet to send [21:12:15]OFD Sender: No OFD packet to send [21:12:20]OFD Sender: No OFD packet to send [21:12:25]OFD Sender: No OFD packet to send [21:12:30]OFD Sender: No OFD packet to send [21:12:35]OFD Sender: No OFD packet to send [21:12:40]OFD Sender: No OFD packet to send [21:12:45]OFD Sender: No OFD packet to send [21:12:50]OFD Sender: No OFD packet to send [21:12:55]OFD Sender: No OFD packet to send [21:13:00]OFD Sender: No OFD packet to send [21:13:05]OFD Sender: No OFD packet to send [21:13:10]OFD Sender: No OFD packet to send [21:13:15]OFD Sender: No OFD packet to send [21:13:20]OFD Sender: No OFD packet to send [21:13:25]OFD Sender: No OFD packet to send [21:13:30]OFD Sender: No OFD packet to send [21:13:35]OFD Sender: No OFD packet to send [21:13:40]OFD Sender: No OFD packet to send [21:13:45]OFD Sender: No OFD packet to send [21:13:50]OFD Sender: No OFD packet to send [21:13:55]OFD Sender: No OFD packet to send [21:14:00]OFD Sender: No OFD packet to send [21:14:05]OFD Sender: No OFD packet to send [21:14:10]OFD Sender: No OFD packet to send [21:14:15]OFD Sender: No OFD packet to send [21:14:20]OFD Sender: No OFD packet to send [21:14:25]OFD Sender: No OFD packet to send [21:14:30]OFD Sender: No OFD packet to send [21:14:35]OFD Sender: No OFD packet to send [21:14:40]OFD Sender: No OFD packet to send [21:14:45]OFD Sender: No OFD packet to send [21:14:50]OFD Sender: No OFD packet to send [21:14:55]OFD Sender: No OFD packet to send [21:15:00]OFD Sender: No OFD packet to send [21:15:05]OFD Sender: No OFD packet to send [21:15:10]OFD Sender: No OFD packet to send [21:15:15]OFD Sender: No OFD packet to send [21:15:20]OFD Sender: No OFD packet to send [21:15:25]OFD Sender: No OFD packet to send [21:15:30]OFD Sender: No OFD packet to send [21:15:35]OFD Sender: No OFD packet to send [21:15:40]OFD Sender: No OFD packet to send [21:15:45]OFD Sender: No OFD packet to send [21:15:50]OFD Sender: No OFD packet to send [21:15:55]OFD Sender: No OFD packet to send [21:16:00]OFD Sender: No OFD packet to send [21:16:05]OFD Sender: No OFD packet to send [21:16:10]OFD Sender: No OFD packet to send [21:16:16]OFD Sender: No OFD packet to send [21:16:21]OFD Sender: No OFD packet to send [21:16:26]OFD Sender: No OFD packet to send [21:16:31]OFD Sender: No OFD packet to send [21:16:36]OFD Sender: No OFD packet to send [21:16:41]OFD Sender: No OFD packet to send [21:16:46]OFD Sender: No OFD packet to send [21:16:51]OFD Sender: No OFD packet to send [21:16:56]OFD Sender: No OFD packet to send [21:17:01]OFD Sender: No OFD packet to send [21:17:06]OFD Sender: No OFD packet to send [21:17:11]OFD Sender: No OFD packet to send [21:17:16]OFD Sender: No OFD packet to send [21:17:21]OFD Sender: No OFD packet to send [21:17:26]OFD Sender: No OFD packet to send [21:17:31]OFD Sender: No OFD packet to send [21:17:36]OFD Sender: No OFD packet to send [21:17:41]OFD Sender: No OFD packet to send [21:17:46]OFD Sender: No OFD packet to send [21:17:51]OFD Sender: No OFD packet to send [21:17:56]OFD Sender: No OFD packet to send [21:17:59]accept exits with 9 [21:17:59]New connection [21:17:59]New thread 3066834276 created [21:17:59]Thread 3066977636 joined [21:17:59]Waiting for new connection... [21:17:59] Sock 9.Parse request [21:17:59]Sock 9.Check first char [21:17:59]Sock 9.First char is OK [21:17:59]request: POST /json_proto HTTP/1.0 [21:17:59]Method: POST [21:17:59]URL: /json_proto [21:17:59]Method is POST - this is cgi request [21:17:59]url: /json_proto [21:17:59]query_string will be loaded in cgi processing [21:17:59]execute_cgi json_proto POST (null) [21:17:59]execute_cgi path=json_proto method=POST [21:17:59]POST find Content-Length [21:17:59]Host: 172.17.63.3:8080 [21:17:59]Content-Length: 676 [21:17:59]Content-Type: application/json [21:17:59] [21:17:59]POST finish read [21:17:59]Found Content-Length = 676 [21:17:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99572", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:17:59]execute_script... [21:17: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)99572", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:17:59]POST & json_proto [21:17:59]process_json_proto [21:17:59]json parsed OK: [21:17:59]protocol is kg_v1.0 [21:17:59]action value=close_receipt [21:17:59]process_action close_receipt [21:17:59]cmd_close_receipt [21:17:59]MH_GetDate [21:17:59]Write to MH i2c: F0 00 00 D1 88 48 [21:17:59]Write i2c OK [21:17:59]MH_I2C_Read... [21:17:59]Read from MH i2c: F0 [21:17:59]MH_I2C_Read... [21:17:59]Read from MH i2c: F0 09 00 [21:17:59]MH_I2C_Read... [21:17:59]Read from MH i2c: F0 09 00 D1 88 00 0F AE 1E 67 50 D1 6C 64 84 [21:17:59]GetLastDocTimeStamp 1730063295 [21:17:59]current date 1730063887 [21:17:59]FM_GetShiftState [21:17:59]SAM_PROTO_GetShiftState [21:17:59]wFMCommunicate request_size=4 [21:17:59]MH_SAM_APDU [21:17:59]CAPDU: 80 13 01 00 [21:17:59]Write to MH i2c: E2 08 00 D2 88 80 13 01 00 00 00 00 00 D7 [21:17:59]Write i2c OK [21:17:59]MH_I2C_Read... [21:17:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:17:59]Read from MH i2c: E2 [21:17:59]MH_I2C_Read... [21:17:59]Read from MH i2c: E2 0E 00 [21:17:59]MH_I2C_Read... [21:17:59]Read from MH i2c: E2 0E 00 D2 88 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 A4 [21:17:59]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [21:17:59]wFMCommunicate OK [21:17:59]SAM_PROTO_GetShiftState done [21:17:59]FM_GetShiftState done [21:17:59]opened in 1729989044 [21:17:59]opened+sec_in_day 1730075444 [21:17:59]quantity*price = 40006 [21:17:59]sum+1 = 40007 [21:17:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 309 27.10.2024 21:18 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156758 ФПД: 48765111301734 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T211807&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156758&fm=48765111301734&tin=02508201610067®Number=0000000000091693&sum=40000 [21:18:00]StoreToDocumentArchive [21:18:00]shift 537 fd 156758 [21:18:00]save to /storage/0537/doc_00156758 [21:18:00]save last doc name /storage/0537/doc_00156758 to /storage/kkm_last_doc_name [21:18:00]save OK [21:18:00]Clear old archive folders... [21:18:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:18:00]tlvbuf is 01878640 [21:18:00]SAM_PROTO_ClearQueue [21:18:00]wFMCommunicate request_size=4 [21:18:00]MH_SAM_APDU [21:18:00]CAPDU: 80 09 00 00 [21:18:00]Write to MH i2c: E2 08 00 DF 88 80 09 00 00 00 00 00 00 D9 [21:18:00]Write i2c OK [21:18:00]MH_I2C_Read... [21:18:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:18:00]Read from MH i2c: E2 [21:18:00]MH_I2C_Read... [21:18:00]Read from MH i2c: E2 03 00 [21:18:00]MH_I2C_Read... [21:18:00]Read from MH i2c: E2 03 00 DF 88 00 90 00 DB [21:18:00]RAPDU: 90 00 [21:18:00]wFMCommunicate OK [21:18:00]SAM_PROTO_ClearQueue done [21:18:00]KKMCreateOFDPacket [21:18:00]OFDProtocolAddRootSTLVToBuf [21:18:00]FM_MakeSignedData [21:18:00]FM_MakeSignedData [21:18:00]SAM_PROTO_SignData [21:18:00]wFMCommunicate request_size=4 [21:18:00]MH_SAM_APDU [21:18:00]CAPDU: 80 0D 01 02 [21:18:00]Write to MH i2c: E2 08 00 E0 88 80 0D 01 02 00 00 00 00 E1 [21:18:00]Write i2c OK [21:18:00]MH_I2C_Read... [21:18:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:18:00]Read from MH i2c: E2 [21:18:00]MH_I2C_Read... [21:18:00]Read from MH i2c: E2 03 00 [21:18:00]MH_I2C_Read... [21:18:00]Read from MH i2c: E2 03 00 E0 88 00 90 00 DC [21:18:00]RAPDU: 90 00 [21:18:00]wFMCommunicate OK [21:18:00]wFMCommunicate request_size=255 [21:18:00]MH_SAM_APDU [21:18: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 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 0F AE 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 56 64 02 00 35 04 06 00 2C [21:18:00]Write to MH i2c: E2 02 01 E1 88 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 0F AE 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 56 64 02 00 35 04 06 00 2C 00 00 BF [21:18:00]Write i2c OK [21:18:00]MH_I2C_Read... [21:18:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:18:00]Read from MH i2c: E2 [21:18:00]MH_I2C_Read... [21:18:00]Read from MH i2c: E2 03 00 [21:18:00]MH_I2C_Read... [21:18:00]Read from MH i2c: E2 03 00 E1 88 00 90 00 DD [21:18:00]RAPDU: 90 00 [21:18:00]wFMCommunicate OK [21:18:00]wFMCommunicate request_size=10 [21:18:00]MH_SAM_APDU [21:18:00]CAPDU: 80 0D 02 02 05 5A 03 22 F6 66 [21:18:00]Write to MH i2c: E2 0D 00 E2 88 80 0D 02 02 05 00 5A 03 22 F6 66 00 00 C9 [21:18:00]Write i2c OK [21:18:00]MH_I2C_Read... [21:18:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:18:00]Read from MH i2c: E2 [21:18:00]MH_I2C_Read... [21:18:00]Read from MH i2c: E2 03 00 [21:18:00]MH_I2C_Read... [21:18:00]Read from MH i2c: E2 03 00 E2 88 00 90 00 DE [21:18:00]RAPDU: 90 00 [21:18:00]wFMCommunicate OK [21:18:00]wFMCommunicate request_size=4 [21:18:00]MH_SAM_APDU [21:18:00]CAPDU: 80 0D 03 02 [21:18:00]Write to MH i2c: E2 08 00 E3 88 80 0D 03 02 00 00 00 00 E6 [21:18:00]Write i2c OK [21:18:00]MH_I2C_Read... [21:18:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:18:01]Read from MH i2c: E2 [21:18:01]MH_I2C_Read... [21:18:01]Read from MH i2c: E2 0B 00 [21:18:01]MH_I2C_Read... [21:18:01]Read from MH i2c: E2 0B 00 E3 88 00 19 AE AA 78 DE 84 5A C0 90 00 4C [21:18:01]RAPDU: 19 AE AA 78 DE 84 5A C0 90 00 [21:18:01]wFMCommunicate OK [21:18:01]SAM_PROTO_SignData done [21:18:01]FM_MakeSignedData done [21:18:01]CreateOFDProtocolMessage [21:18:01]wFMCommunicate request_size=4 [21:18:01]MH_SAM_APDU [21:18:01]CAPDU: 80 11 00 00 [21:18:01]Write to MH i2c: E2 08 00 E4 88 80 11 00 00 00 00 00 00 E6 [21:18:01]Write i2c OK [21:18:01]MH_I2C_Read... [21:18:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:18:01]Read from MH i2c: E2 [21:18:01]MH_I2C_Read... [21:18:01]Read from MH i2c: E2 17 00 [21:18:01]MH_I2C_Read... [21:18:01]Read from MH i2c: E2 17 00 E4 88 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 3B [21:18:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [21:18:01]wFMCommunicate OK [21:18:01]CreateOFDProtocolMessage done [21:18:01]OFDSenderStorePacket 156758 [21:18:01]StoreOFDPacket docnum=156758 [21:18:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 49 9A 07 01 12 CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 0F AE 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 56 64 02 00 35 04 06 00 2C 5A 03 22 F6 66 19 AE AA 78 DE 84 5A C0 [21:18:01]CheckFolder [21:18:01]dirname=/storage/ofd_packets [21:18:01]CheckFolder done [21:18:01]ProducePacketName [21:18:01]name=ofd_packets/00156758 [21:18:01]NVStorageSaveData ofd_packets/00156758 [21:18:01]File name is /storage/ofd_packets/00156758 [21:18:01]Write 301 bytes [21:18:01]NVStorageSaveData done [21:18:01]OFDSenderStorePacket done [21:18:01]KKMCreateOFDPacket done [21:18:01]NVStorageSaveData kkm_last_timestamp [21:18:01]File name is /storage/kkm_last_timestamp [21:18:01]Write 4 bytes [21:18:01]NVStorageSaveData done [21:18:01]ExternCall_PrintAddStr [21:18:01]wPrintStart [21:18:01]Write to MH i2c: 01 00 00 E5 88 6D [21:18:01]Write i2c OK [21:18:01]MH_I2C_Read... [21:18:01]Read from MH i2c: 01 [21:18:01]MH_I2C_Read... [21:18:01]Read from MH i2c: 01 07 00 [21:18:01]MH_I2C_Read... [21:18:01]Read from MH i2c: 01 07 00 E5 88 00 00 00 00 00 FF 0F 82 [21:18:01]RasterBufferAndPrint [21:18:01]line Счет N : (1)99572 [21:18:01]line ИНН: 02508201610067 [21:18:01]line Контрольно-Кассовый Чек [21:18:01]line ПРОДАЖА [21:18:01]line ТРК (МРК, ГНК) : 31 [21:18:01]line Товар: 2710124130 [21:18:01]line Аи-92-К-5 [21:18:01]line 5.980 * 66.90 [21:18:01]line = 400.06 [21:18:01]line НДС 12% НСП 1% [21:18:01]line > о реализуемом товаре [21:18:01]line ОКРУГЛЕНИЕ: -0.06 [21:18:01]line ИТОГО: 400.00 [21:18:01]line Внесено: 400.00 [21:18:01]line СДАЧА: 0.00 [21:18:01]line НСП 1% : 3.54 [21:18:01]line НДС 12% : 42.48 [21:18:01]line Наличными: 400.00 [21:18:01]line Безнал.: 0.00 [21:18:01]line Место: АЗС № 143 "Партнер Нефть" [21:18:01]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [21:18:01]line СНО: Общий режим [21:18:01]line Чек 309 27.10.2024 21:18 [21:18:01]line Смена: 537 ФФД: 1.0 [21:18:01]line ЗНМ: 0300000096 [21:18:01]line РНМ: 0000000000091693 [21:18:01]line Версия ККМ: 001 [21:18:01]line ФМ: 0000000000871792 [21:18:01]line ФД: 156758 [21:18:01]line ФПД: 48765111301734 [21:18:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T211807&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156758&fm=48765111301734&tin=02508201610067®Number=0000000000091693&sum=40000 [21:18:01]OFD Sender: Processing packet 156758 [packets to send 31, broken 30] [21:18:01]ProducePacketName [21:18:01]name=ofd_packets/00156758 [21:18:01]OFD Sender: To server: pG, [21:18:01]CommunicateWithHost lk.salyk.kg:30040 [21:18:01]ConnectInit lk.salyk.kg [21:18:01]written 0, free lines is 4095 [21:18:01]Connected sock=10 [21:18:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 49 9A 07 01 12 CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 0F AE 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 56 64 02 00 35 04 06 00 2C 5A 03 22 F6 66 19 AE AA 78 DE 84 5A C0 [21:18:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 E7 10 47 00 BA 58 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 56 64 02 00 F4 03 04 00 7D 53 1E 67 B6 04 01 00 00 1C 59 71 74 87 C3 EA F3 [21:18:01]CommunicateWithHost err = 0 [21:18:01]CheckOFDResponse [21:18:01]1017 (14) - 77093643461234 [21:18:01]1041 (16) - 0000000000871792 [21:18:01]1040 (4) - 156758 [21:18:01]1012 (4) - 27.10.2024 14:51 [21:18:01]1206 (1) - 0 [21:18:01]OFD Sender: Remove packet 156758 [21:18:01]ProducePacketName [21:18:01]name=ofd_packets/00156758 [21:18:01]NVStorageDeleteData [21:18:01]Write to MH i2c: 01 00 00 10 89 99 [21:18:01]Write i2c OK [21:18:01]MH_I2C_Read... [21:18:01]Read from MH i2c: 01 [21:18:01]MH_I2C_Read... [21:18:01]Read from MH i2c: 01 07 00 [21:18:01]MH_I2C_Read... [21:18:01]Read from MH i2c: 01 07 00 10 89 00 00 00 00 00 D4 0C 80 [21:18:01]RasterBufferAndPrint [21:18:01]line [21:18:01]line [21:18:01]line [21:18:01]line [21:18:01]line [21:18:01]written 0, free lines is 3292 [21:18:01]process_action close_receipt done [21:18:01]requested_data is exist [21:18:01]produce_requested_data [21:18:01]requested_item fm.sn is exist - process it [21:18:01]wFMCommunicate request_size=4 [21:18:01]MH_SAM_APDU [21:18:01]CAPDU: 80 11 00 00 [21:18:01]Write to MH i2c: E2 08 00 17 89 80 11 00 00 00 00 00 00 1A [21:18:01]Write i2c OK [21:18:01]MH_I2C_Read... [21:18:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:18:01]Read from MH i2c: E2 [21:18:01]MH_I2C_Read... [21:18:01]Read from MH i2c: E2 17 00 [21:18:01]MH_I2C_Read... [21:18:01]Read from MH i2c: E2 17 00 17 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 6F [21:18:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [21:18:01]wFMCommunicate OK [21:18:01]requested_item fd.num is exist - process it [21:18:01]SAM_PROTO_GetFieldsCounters [21:18:01]wFMCommunicate request_size=4 [21:18:01]MH_SAM_APDU [21:18:01]CAPDU: 80 13 00 00 [21:18:01]Write to MH i2c: E2 08 00 18 89 80 13 00 00 00 00 00 00 1D [21:18:01]Write i2c OK [21:18:01]MH_I2C_Read... [21:18:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:18:02]Read from MH i2c: E2 [21:18:02]MH_I2C_Read... [21:18:02]Read from MH i2c: E2 62 00 [21:18:02]MH_I2C_Read... [21:18:02]Read from MH i2c: E2 62 00 18 89 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 56 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 35 01 00 00 5E 04 04 00 35 01 00 00 57 04 04 00 36 01 00 00 19 04 04 00 00 00 00 00 90 00 BC [21:18:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 56 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 35 01 00 00 5E 04 04 00 35 01 00 00 57 04 04 00 36 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:18:02]wFMCommunicate OK [21:18:02]SAM_PROTO_GetFieldsCounters done [21:18:02]requested_item shift.num is exist - process it [21:18:02]requested_item shift.opened is exist - process it [21:18:02]req_shift_opened [21:18:02]FM_GetShiftState [21:18:02]SAM_PROTO_GetShiftState [21:18:02]wFMCommunicate request_size=4 [21:18:02]MH_SAM_APDU [21:18:02]CAPDU: 80 13 01 00 [21:18:02]Write to MH i2c: E2 08 00 19 89 80 13 01 00 00 00 00 00 1F [21:18:02]Write i2c OK [21:18:02]MH_I2C_Read... [21:18:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:18:02]Read from MH i2c: E2 [21:18:02]MH_I2C_Read... [21:18:02]Read from MH i2c: E2 0E 00 [21:18:02]MH_I2C_Read... [21:18:02]Read from MH i2c: E2 0E 00 19 89 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 EC [21:18:02]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [21:18:02]wFMCommunicate OK [21:18:02]SAM_PROTO_GetShiftState done [21:18:02]FM_GetShiftState done [21:18:02]req_shift_opened done [21:18:02]requested_item shift.open_date is exist - process it [21:18:02]req_shift_open_date [21:18:02]req_shift_open_date done [21:18:02]produce_requested_data done [21:18:02]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156758,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [21:18:02]process_action_free close_receipt [21:18:02]json_value_free [21:18:02]json_value_free done [21:18:02]process_json_proto returns [21:18:02]Send response to host [21:18:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156758,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [21:18:02]free response buf [21:18:02]execute_script done [21:18:02]execute_script returns [21:18:02]free content buf [21:18:02]Sock 9.Close socket [21:18:02]Sock 9.Thread stoped [21:18:02]OFD Sender: No OFD packet to send [21:18:07]OFD Sender: No OFD packet to send [21:18:12]OFD Sender: No OFD packet to send [21:18:17]OFD Sender: No OFD packet to send [21:18:22]OFD Sender: No OFD packet to send [21:18:27]OFD Sender: No OFD packet to send [21:18:32]OFD Sender: No OFD packet to send [21:18:37]OFD Sender: No OFD packet to send [21:18:42]OFD Sender: No OFD packet to send [21:18:47]OFD Sender: No OFD packet to send [21:18:52]OFD Sender: No OFD packet to send [21:18:57]OFD Sender: No OFD packet to send [21:19:02]OFD Sender: No OFD packet to send [21:19:07]OFD Sender: No OFD packet to send [21:19:12]OFD Sender: No OFD packet to send [21:19:17]OFD Sender: No OFD packet to send [21:19:22]OFD Sender: No OFD packet to send [21:19:27]OFD Sender: No OFD packet to send [21:19:32]OFD Sender: No OFD packet to send [21:19:37]OFD Sender: No OFD packet to send [21:19:38]accept exits with 8 [21:19:38]New connection [21:19:38]New thread 3066977636 created [21:19:38]Thread 3066834276 joined [21:19:38]Waiting for new connection... [21:19:38] Sock 8.Parse request [21:19:38]Sock 8.Check first char [21:19:38]Sock 8.First char is OK [21:19:38]request: POST /json_proto HTTP/1.0 [21:19:38]Method: POST [21:19:38]URL: /json_proto [21:19:38]Method is POST - this is cgi request [21:19:38]url: /json_proto [21:19:38]query_string will be loaded in cgi processing [21:19:38]execute_cgi json_proto POST (null) [21:19:38]execute_cgi path=json_proto method=POST [21:19:38]POST find Content-Length [21:19:38]Host: 172.17.63.3:8080 [21:19:38]Content-Length: 681 [21:19:38]Content-Type: application/json [21:19:38] [21:19:38]POST finish read [21:19:38]Found Content-Length = 681 [21:19:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99573", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:19:38]execute_script... [21:19: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)99573", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:19:38]POST & json_proto [21:19:38]process_json_proto [21:19:38]json parsed OK: [21:19:38]protocol is kg_v1.0 [21:19:38]action value=close_receipt [21:19:38]process_action close_receipt [21:19:38]cmd_close_receipt [21:19:38]MH_GetDate [21:19:38]Write to MH i2c: F0 00 00 1A 89 92 [21:19:38]Write i2c OK [21:19:38]MH_I2C_Read... [21:19:38]Read from MH i2c: F0 [21:19:38]MH_I2C_Read... [21:19:38]Read from MH i2c: F0 09 00 [21:19:38]MH_I2C_Read... [21:19:38]Read from MH i2c: F0 09 00 1A 89 00 72 AE 1E 67 50 D1 6C 64 31 [21:19:38]GetLastDocTimeStamp 1730063887 [21:19:38]current date 1730063986 [21:19:38]FM_GetShiftState [21:19:38]SAM_PROTO_GetShiftState [21:19:38]wFMCommunicate request_size=4 [21:19:38]MH_SAM_APDU [21:19:38]CAPDU: 80 13 01 00 [21:19:38]Write to MH i2c: E2 08 00 1B 89 80 13 01 00 00 00 00 00 21 [21:19:38]Write i2c OK [21:19:38]MH_I2C_Read... [21:19:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:19:38]Read from MH i2c: E2 [21:19:38]MH_I2C_Read... [21:19:38]Read from MH i2c: E2 0E 00 [21:19:38]MH_I2C_Read... [21:19:38]Read from MH i2c: E2 0E 00 1B 89 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 EE [21:19:38]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [21:19:38]wFMCommunicate OK [21:19:38]SAM_PROTO_GetShiftState done [21:19:38]FM_GetShiftState done [21:19:38]opened in 1729989044 [21:19:38]opened+sec_in_day 1730075444 [21:19:38]quantity*price = 150056 [21:19:38]sum+1 = 150058 [21:19:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 310 27.10.2024 21:19 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156759 ФПД: 136821055580917 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T211946&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156759&fm=136821055580917&tin=02508201610067®Number=0000000000091693&sum=150000 [21:19:40]StoreToDocumentArchive [21:19:40]shift 537 fd 156759 [21:19:40]save to /storage/0537/doc_00156759 [21:19:40]save last doc name /storage/0537/doc_00156759 to /storage/kkm_last_doc_name [21:19:40]save OK [21:19:40]Clear old archive folders... [21:19:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:19:40]tlvbuf is 0183DB40 [21:19:40]SAM_PROTO_ClearQueue [21:19:40]wFMCommunicate request_size=4 [21:19:40]MH_SAM_APDU [21:19:40]CAPDU: 80 09 00 00 [21:19:40]Write to MH i2c: E2 08 00 28 89 80 09 00 00 00 00 00 00 23 [21:19:40]Write i2c OK [21:19:40]MH_I2C_Read... [21:19:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:19:40]Read from MH i2c: E2 [21:19:40]MH_I2C_Read... [21:19:40]Read from MH i2c: E2 03 00 [21:19:40]MH_I2C_Read... [21:19:40]Read from MH i2c: E2 03 00 28 89 00 90 00 25 [21:19:40]RAPDU: 90 00 [21:19:40]wFMCommunicate OK [21:19:40]SAM_PROTO_ClearQueue done [21:19:40]KKMCreateOFDPacket [21:19:40]OFDProtocolAddRootSTLVToBuf [21:19:40]FM_MakeSignedData [21:19:40]FM_MakeSignedData [21:19:40]SAM_PROTO_SignData [21:19:40]wFMCommunicate request_size=4 [21:19:40]MH_SAM_APDU [21:19:40]CAPDU: 80 0D 01 02 [21:19:40]Write to MH i2c: E2 08 00 29 89 80 0D 01 02 00 00 00 00 2B [21:19:40]Write i2c OK [21:19:40]MH_I2C_Read... [21:19:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:19:40]Read from MH i2c: E2 [21:19:40]MH_I2C_Read... [21:19:40]Read from MH i2c: E2 03 00 [21:19:40]MH_I2C_Read... [21:19:40]Read from MH i2c: E2 03 00 29 89 00 90 00 26 [21:19:40]RAPDU: 90 00 [21:19:40]wFMCommunicate OK [21:19:40]wFMCommunicate request_size=255 [21:19:40]MH_SAM_APDU [21:19: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 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 72 AE 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 57 64 02 00 35 04 06 00 7C [21:19:40]Write to MH i2c: E2 02 01 2A 89 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 72 AE 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 57 64 02 00 35 04 06 00 7C 00 00 38 [21:19:40]Write i2c OK [21:19:40]MH_I2C_Read... [21:19:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:19:40]Read from MH i2c: E2 [21:19:40]MH_I2C_Read... [21:19:40]Read from MH i2c: E2 03 00 [21:19:40]MH_I2C_Read... [21:19:40]Read from MH i2c: E2 03 00 2A 89 00 90 00 27 [21:19:40]RAPDU: 90 00 [21:19:40]wFMCommunicate OK [21:19:40]wFMCommunicate request_size=10 [21:19:40]MH_SAM_APDU [21:19:40]CAPDU: 80 0D 02 02 05 70 22 6A 6A F5 [21:19:40]Write to MH i2c: E2 0D 00 2B 89 80 0D 02 02 05 00 70 22 6A 6A F5 00 00 93 [21:19:40]Write i2c OK [21:19:40]MH_I2C_Read... [21:19:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:19:40]Read from MH i2c: E2 [21:19:40]MH_I2C_Read... [21:19:40]Read from MH i2c: E2 03 00 [21:19:40]MH_I2C_Read... [21:19:40]Read from MH i2c: E2 03 00 2B 89 00 90 00 28 [21:19:40]RAPDU: 90 00 [21:19:40]wFMCommunicate OK [21:19:40]wFMCommunicate request_size=4 [21:19:40]MH_SAM_APDU [21:19:40]CAPDU: 80 0D 03 02 [21:19:40]Write to MH i2c: E2 08 00 2C 89 80 0D 03 02 00 00 00 00 30 [21:19:40]Write i2c OK [21:19:40]MH_I2C_Read... [21:19:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:19:40]Read from MH i2c: E2 [21:19:40]MH_I2C_Read... [21:19:40]Read from MH i2c: E2 0B 00 [21:19:40]MH_I2C_Read... [21:19:40]Read from MH i2c: E2 0B 00 2C 89 00 AC E7 02 07 23 5E 1B 3B 90 00 A4 [21:19:40]RAPDU: AC E7 02 07 23 5E 1B 3B 90 00 [21:19:40]wFMCommunicate OK [21:19:40]SAM_PROTO_SignData done [21:19:40]FM_MakeSignedData done [21:19:40]CreateOFDProtocolMessage [21:19:40]wFMCommunicate request_size=4 [21:19:40]MH_SAM_APDU [21:19:40]CAPDU: 80 11 00 00 [21:19:40]Write to MH i2c: E2 08 00 2D 89 80 11 00 00 00 00 00 00 30 [21:19:40]Write i2c OK [21:19:40]MH_I2C_Read... [21:19:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:19:40]Read from MH i2c: E2 [21:19:40]MH_I2C_Read... [21:19:40]Read from MH i2c: E2 17 00 [21:19:40]MH_I2C_Read... [21:19:40]Read from MH i2c: E2 17 00 2D 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 85 [21:19:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [21:19:40]wFMCommunicate OK [21:19:40]CreateOFDProtocolMessage done [21:19:40]OFDSenderStorePacket 156759 [21:19:40]StoreOFDPacket docnum=156759 [21:19:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 90 64 07 01 02 16 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 72 AE 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 57 64 02 00 35 04 06 00 7C 70 22 6A 6A F5 AC E7 02 07 23 5E 1B 3B [21:19:40]CheckFolder [21:19:40]dirname=/storage/ofd_packets [21:19:40]CheckFolder done [21:19:40]ProducePacketName [21:19:40]name=ofd_packets/00156759 [21:19:40]NVStorageSaveData ofd_packets/00156759 [21:19:40]File name is /storage/ofd_packets/00156759 [21:19:40]Write 301 bytes [21:19:40]NVStorageSaveData done [21:19:40]OFDSenderStorePacket done [21:19:40]KKMCreateOFDPacket done [21:19:40]NVStorageSaveData kkm_last_timestamp [21:19:40]File name is /storage/kkm_last_timestamp [21:19:40]Write 4 bytes [21:19:40]NVStorageSaveData done [21:19:40]ExternCall_PrintAddStr [21:19:40]wPrintStart [21:19:40]Write to MH i2c: 01 00 00 2E 89 B7 [21:19:40]Write i2c OK [21:19:40]MH_I2C_Read... [21:19:40]Read from MH i2c: 01 [21:19:40]MH_I2C_Read... [21:19:40]Read from MH i2c: 01 07 00 [21:19:40]MH_I2C_Read... [21:19:40]Read from MH i2c: 01 07 00 2E 89 00 00 00 00 00 FF 0F CC [21:19:40]RasterBufferAndPrint [21:19:40]line Счет N : (1)99573 [21:19:40]line ИНН: 02508201610067 [21:19:40]line Контрольно-Кассовый Чек [21:19:40]line ПРОДАЖА [21:19:40]line ТРК (МРК, ГНК) : 31 [21:19:40]line Товар: 2710124130 [21:19:40]line Аи-92-К-5 [21:19:40]line 22.430 * 66.90 [21:19:40]line = 1500.57 [21:19:40]line НДС 12% НСП 1% [21:19:40]line > о реализуемом товаре [21:19:40]line ОКРУГЛЕНИЕ: -0.57 [21:19:40]line ИТОГО: 1500.00 [21:19:40]line Внесено: 1500.00 [21:19:40]line СДАЧА: 0.00 [21:19:40]line НСП 1% : 13.28 [21:19:40]line НДС 12% : 159.35 [21:19:40]line Наличными: 1500.00 [21:19:40]line Безнал.: 0.00 [21:19:40]line Место: АЗС № 143 "Партнер Нефть" [21:19:40]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [21:19:40]line СНО: Общий режим [21:19:40]line Чек 310 27.10.2024 21:19 [21:19:40]line Смена: 537 ФФД: 1.0 [21:19:40]line ЗНМ: 0300000096 [21:19:40]line РНМ: 0000000000091693 [21:19:40]line Версия ККМ: 001 [21:19:40]line ФМ: 0000000000871792 [21:19:40]line ФД: 156759 [21:19:40]line ФПД: 136821055580917 [21:19:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T211946&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156759&fm=136821055580917&tin=02508201610067®Number=0000000000091693&sum=150000 [21:19:40]OFD Sender: Processing packet 156759 [packets to send 31, broken 30] [21:19:40]ProducePacketName [21:19:40]name=ofd_packets/00156759 [21:19:40]OFD Sender: To server: pG, [21:19:40]CommunicateWithHost lk.salyk.kg:30040 [21:19:40]ConnectInit lk.salyk.kg [21:19:40]written 0, free lines is 4095 [21:19:41]Connected sock=10 [21:19:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 90 64 07 01 02 16 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 01 00 00 F4 03 04 00 72 AE 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 57 64 02 00 35 04 06 00 7C 70 22 6A 6A F5 AC E7 02 07 23 5E 1B 3B [21:19:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 0C 6E 47 00 92 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 57 64 02 00 F4 03 04 00 E1 53 1E 67 B6 04 01 00 00 AD D6 6A B8 0F 04 E6 C7 [21:19:41]CommunicateWithHost err = 0 [21:19:41]CheckOFDResponse [21:19:41]1017 (14) - 77093643461234 [21:19:41]1041 (16) - 0000000000871792 [21:19:41]1040 (4) - 156759 [21:19:41]1012 (4) - 27.10.2024 14:53 [21:19:41]1206 (1) - 0 [21:19:41]OFD Sender: Remove packet 156759 [21:19:41]ProducePacketName [21:19:41]name=ofd_packets/00156759 [21:19:41]NVStorageDeleteData [21:19:41]Write to MH i2c: 01 00 00 59 89 E2 [21:19:41]Write i2c OK [21:19:41]MH_I2C_Read... [21:19:41]Read from MH i2c: 01 [21:19:41]MH_I2C_Read... [21:19:41]Read from MH i2c: 01 07 00 [21:19:41]MH_I2C_Read... [21:19:41]Read from MH i2c: 01 07 00 59 89 00 00 00 00 00 E1 0C D6 [21:19:41]RasterBufferAndPrint [21:19:41]line [21:19:41]line [21:19:41]line [21:19:41]line [21:19:41]line [21:19:41]written 0, free lines is 3302 [21:19:41]process_action close_receipt done [21:19:41]requested_data is exist [21:19:41]produce_requested_data [21:19:41]requested_item fm.sn is exist - process it [21:19:41]wFMCommunicate request_size=4 [21:19:41]MH_SAM_APDU [21:19:41]CAPDU: 80 11 00 00 [21:19:41]Write to MH i2c: E2 08 00 60 89 80 11 00 00 00 00 00 00 63 [21:19:41]Write i2c OK [21:19:41]MH_I2C_Read... [21:19:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:19:41]Read from MH i2c: E2 [21:19:41]MH_I2C_Read... [21:19:41]Read from MH i2c: E2 17 00 [21:19:41]MH_I2C_Read... [21:19:41]Read from MH i2c: E2 17 00 60 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 B8 [21:19:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [21:19:41]wFMCommunicate OK [21:19:41]requested_item fd.num is exist - process it [21:19:41]SAM_PROTO_GetFieldsCounters [21:19:41]wFMCommunicate request_size=4 [21:19:41]MH_SAM_APDU [21:19:41]CAPDU: 80 13 00 00 [21:19:41]Write to MH i2c: E2 08 00 61 89 80 13 00 00 00 00 00 00 66 [21:19:41]Write i2c OK [21:19:41]MH_I2C_Read... [21:19:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:19:41]Read from MH i2c: E2 [21:19:41]MH_I2C_Read... [21:19:41]Read from MH i2c: E2 62 00 [21:19:41]MH_I2C_Read... [21:19:41]Read from MH i2c: E2 62 00 61 89 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 57 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 36 01 00 00 5E 04 04 00 36 01 00 00 57 04 04 00 37 01 00 00 19 04 04 00 00 00 00 00 90 00 09 [21:19:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 57 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 36 01 00 00 5E 04 04 00 36 01 00 00 57 04 04 00 37 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:19:41]wFMCommunicate OK [21:19:41]SAM_PROTO_GetFieldsCounters done [21:19:41]requested_item shift.num is exist - process it [21:19:41]requested_item shift.opened is exist - process it [21:19:41]req_shift_opened [21:19:41]FM_GetShiftState [21:19:41]SAM_PROTO_GetShiftState [21:19:41]wFMCommunicate request_size=4 [21:19:41]MH_SAM_APDU [21:19:41]CAPDU: 80 13 01 00 [21:19:41]Write to MH i2c: E2 08 00 62 89 80 13 01 00 00 00 00 00 68 [21:19:41]Write i2c OK [21:19:41]MH_I2C_Read... [21:19:41]Read from MH i2c: E2 [21:19:41]MH_I2C_Read... [21:19:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:19:41]Read from MH i2c: E2 0E 00 [21:19:41]MH_I2C_Read... [21:19:41]Read from MH i2c: E2 0E 00 62 89 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 35 [21:19:41]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [21:19:41]wFMCommunicate OK [21:19:41]SAM_PROTO_GetShiftState done [21:19:41]FM_GetShiftState done [21:19:41]req_shift_opened done [21:19:41]requested_item shift.open_date is exist - process it [21:19:41]req_shift_open_date [21:19:41]req_shift_open_date done [21:19:41]produce_requested_data done [21:19:41]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156759,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [21:19:41]process_action_free close_receipt [21:19:41]json_value_free [21:19:41]json_value_free done [21:19:41]process_json_proto returns [21:19:41]Send response to host [21:19:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156759,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [21:19:41]free response buf [21:19:41]execute_script done [21:19:41]execute_script returns [21:19:41]free content buf [21:19:41]Sock 8.Close socket [21:19:41]Sock 8.Thread stoped [21:19:41]OFD Sender: No OFD packet to send [21:19:46]OFD Sender: No OFD packet to send [21:19:51]OFD Sender: No OFD packet to send [21:19:56]OFD Sender: No OFD packet to send [21:20:01]OFD Sender: No OFD packet to send [21:20:06]OFD Sender: No OFD packet to send [21:20:11]OFD Sender: No OFD packet to send [21:20:16]OFD Sender: No OFD packet to send [21:20:21]OFD Sender: No OFD packet to send [21:20:26]OFD Sender: No OFD packet to send [21:20:31]OFD Sender: No OFD packet to send [21:20:36]OFD Sender: No OFD packet to send [21:20:41]OFD Sender: No OFD packet to send [21:20:46]OFD Sender: No OFD packet to send [21:20:51]OFD Sender: No OFD packet to send [21:20:56]OFD Sender: No OFD packet to send [21:21:01]OFD Sender: No OFD packet to send [21:21:06]OFD Sender: No OFD packet to send [21:21:11]OFD Sender: No OFD packet to send [21:21:16]OFD Sender: No OFD packet to send [21:21:21]OFD Sender: No OFD packet to send [21:21:26]OFD Sender: No OFD packet to send [21:21:31]OFD Sender: No OFD packet to send [21:21:36]OFD Sender: No OFD packet to send [21:21:41]OFD Sender: No OFD packet to send [21:21:46]OFD Sender: No OFD packet to send [21:21:51]OFD Sender: No OFD packet to send [21:21:56]OFD Sender: No OFD packet to send [21:22:01]OFD Sender: No OFD packet to send [21:22:06]OFD Sender: No OFD packet to send [21:22:11]OFD Sender: No OFD packet to send [21:22:16]OFD Sender: No OFD packet to send [21:22:21]OFD Sender: No OFD packet to send [21:22:26]OFD Sender: No OFD packet to send [21:22:31]OFD Sender: No OFD packet to send [21:22:36]OFD Sender: No OFD packet to send [21:22:41]OFD Sender: No OFD packet to send [21:22:46]OFD Sender: No OFD packet to send [21:22:51]OFD Sender: No OFD packet to send [21:22:56]OFD Sender: No OFD packet to send [21:23:01]OFD Sender: No OFD packet to send [21:23:06]OFD Sender: No OFD packet to send [21:23:11]OFD Sender: No OFD packet to send [21:23:16]OFD Sender: No OFD packet to send [21:23:21]OFD Sender: No OFD packet to send [21:23:26]OFD Sender: No OFD packet to send [21:23:31]OFD Sender: No OFD packet to send [21:23:36]OFD Sender: No OFD packet to send [21:23:41]OFD Sender: No OFD packet to send [21:23:47]OFD Sender: No OFD packet to send [21:23:52]OFD Sender: No OFD packet to send [21:23:57]OFD Sender: No OFD packet to send [21:24:02]OFD Sender: No OFD packet to send [21:24:07]OFD Sender: No OFD packet to send [21:24:12]OFD Sender: No OFD packet to send [21:24:17]OFD Sender: No OFD packet to send [21:24:22]OFD Sender: No OFD packet to send [21:24:27]OFD Sender: No OFD packet to send [21:24:32]OFD Sender: No OFD packet to send [21:24:37]OFD Sender: No OFD packet to send [21:24:42]OFD Sender: No OFD packet to send [21:24:47]OFD Sender: No OFD packet to send [21:24:52]OFD Sender: No OFD packet to send [21:24:57]OFD Sender: No OFD packet to send [21:25:02]OFD Sender: No OFD packet to send [21:25:07]OFD Sender: No OFD packet to send [21:25:12]OFD Sender: No OFD packet to send [21:25:17]OFD Sender: No OFD packet to send [21:25:22]OFD Sender: No OFD packet to send [21:25:27]OFD Sender: No OFD packet to send [21:25:32]OFD Sender: No OFD packet to send [21:25:37]OFD Sender: No OFD packet to send [21:25:42]OFD Sender: No OFD packet to send [21:25:47]OFD Sender: No OFD packet to send [21:25:50]accept exits with 9 [21:25:50]New connection [21:25:50]New thread 3066834276 created [21:25:50]Thread 3066977636 joined [21:25:50]Waiting for new connection... [21:25:50] Sock 9.Parse request [21:25:50]Sock 9.Check first char [21:25:50]Sock 9.First char is OK [21:25:50]request: POST /json_proto HTTP/1.0 [21:25:50]Method: POST [21:25:50]URL: /json_proto [21:25:50]Method is POST - this is cgi request [21:25:50]url: /json_proto [21:25:50]query_string will be loaded in cgi processing [21:25:50]execute_cgi json_proto POST (null) [21:25:50]execute_cgi path=json_proto method=POST [21:25:50]POST find Content-Length [21:25:50]Host: 172.17.63.3:8080 [21:25:50]Content-Length: 674 [21:25:50]Content-Type: application/json [21:25:50] [21:25:50]POST finish read [21:25:50]Found Content-Length = 674 [21:25:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99574", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:25:50]execute_script... [21:25: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)99574", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:25:50]POST & json_proto [21:25:50]process_json_proto [21:25:50]json parsed OK: [21:25:50]protocol is kg_v1.0 [21:25:50]action value=close_receipt [21:25:50]process_action close_receipt [21:25:50]cmd_close_receipt [21:25:50]MH_GetDate [21:25:50]Write to MH i2c: F0 00 00 63 89 DB [21:25:50]Write i2c OK [21:25:50]MH_I2C_Read... [21:25:50]Read from MH i2c: F0 [21:25:50]MH_I2C_Read... [21:25:50]Read from MH i2c: F0 09 00 [21:25:50]MH_I2C_Read... [21:25:50]Read from MH i2c: F0 09 00 63 89 00 E6 AF 1E 67 50 D1 6C 64 EF [21:25:50]GetLastDocTimeStamp 1730063986 [21:25:50]current date 1730064358 [21:25:50]FM_GetShiftState [21:25:50]SAM_PROTO_GetShiftState [21:25:50]wFMCommunicate request_size=4 [21:25:50]MH_SAM_APDU [21:25:50]CAPDU: 80 13 01 00 [21:25:50]Write to MH i2c: E2 08 00 64 89 80 13 01 00 00 00 00 00 6A [21:25:50]Write i2c OK [21:25:50]MH_I2C_Read... [21:25:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:25:50]Read from MH i2c: E2 [21:25:50]MH_I2C_Read... [21:25:50]Read from MH i2c: E2 0E 00 [21:25:50]MH_I2C_Read... [21:25:50]Read from MH i2c: E2 0E 00 64 89 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 37 [21:25:50]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [21:25:50]wFMCommunicate OK [21:25:50]SAM_PROTO_GetShiftState done [21:25:50]FM_GetShiftState done [21:25:50]opened in 1729989044 [21:25:50]opened+sec_in_day 1730075444 [21:25:50]quantity*price = 80010 [21:25:50]sum+1 = 80011 [21:25:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 311 27.10.2024 21:25 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156760 ФПД: 26457040736337 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T212558&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156760&fm=26457040736337&tin=02508201610067®Number=0000000000091693&sum=80000 [21:25:51]StoreToDocumentArchive [21:25:51]shift 537 fd 156760 [21:25:51]save to /storage/0537/doc_00156760 [21:25:51]save last doc name /storage/0537/doc_00156760 to /storage/kkm_last_doc_name [21:25:51]save OK [21:25:51]Clear old archive folders... [21:25:51]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:25:51]tlvbuf is 019B11D0 [21:25:51]SAM_PROTO_ClearQueue [21:25:51]wFMCommunicate request_size=4 [21:25:51]MH_SAM_APDU [21:25:51]CAPDU: 80 09 00 00 [21:25:51]Write to MH i2c: E2 08 00 71 89 80 09 00 00 00 00 00 00 6C [21:25:51]Write i2c OK [21:25:51]MH_I2C_Read... [21:25:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:25:51]Read from MH i2c: E2 [21:25:51]MH_I2C_Read... [21:25:51]Read from MH i2c: E2 03 00 [21:25:51]MH_I2C_Read... [21:25:51]Read from MH i2c: E2 03 00 71 89 00 90 00 6E [21:25:51]RAPDU: 90 00 [21:25:51]wFMCommunicate OK [21:25:51]SAM_PROTO_ClearQueue done [21:25:51]KKMCreateOFDPacket [21:25:51]OFDProtocolAddRootSTLVToBuf [21:25:51]FM_MakeSignedData [21:25:51]FM_MakeSignedData [21:25:51]SAM_PROTO_SignData [21:25:51]wFMCommunicate request_size=4 [21:25:51]MH_SAM_APDU [21:25:51]CAPDU: 80 0D 01 02 [21:25:51]Write to MH i2c: E2 08 00 72 89 80 0D 01 02 00 00 00 00 74 [21:25:51]Write i2c OK [21:25:51]MH_I2C_Read... [21:25:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:25:51]Read from MH i2c: E2 [21:25:51]MH_I2C_Read... [21:25:51]Read from MH i2c: E2 03 00 [21:25:51]MH_I2C_Read... [21:25:51]Read from MH i2c: E2 03 00 72 89 00 90 00 6F [21:25:51]RAPDU: 90 00 [21:25:51]wFMCommunicate OK [21:25:51]wFMCommunicate request_size=255 [21:25:51]MH_SAM_APDU [21:25:51]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 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 37 01 00 00 F4 03 04 00 E6 AF 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 58 64 02 00 35 04 06 00 18 10 02 83 [21:25:51]Write to MH i2c: E2 02 01 73 89 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 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 37 01 00 00 F4 03 04 00 E6 AF 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 58 64 02 00 35 04 06 00 18 10 02 83 00 00 09 [21:25:51]Write i2c OK [21:25:51]MH_I2C_Read... [21:25:52]OFD Sender: No OFD packet to send [21:25:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:25:52]Read from MH i2c: E2 [21:25:52]MH_I2C_Read... [21:25:52]Read from MH i2c: E2 03 00 [21:25:52]MH_I2C_Read... [21:25:52]Read from MH i2c: E2 03 00 73 89 00 90 00 70 [21:25:52]RAPDU: 90 00 [21:25:52]wFMCommunicate OK [21:25:52]wFMCommunicate request_size=7 [21:25:52]MH_SAM_APDU [21:25:52]CAPDU: 80 0D 02 02 02 D0 51 [21:25:52]Write to MH i2c: E2 0A 00 74 89 80 0D 02 02 02 00 D0 51 00 00 9C [21:25:52]Write i2c OK [21:25:52]MH_I2C_Read... [21:25:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:25:52]Read from MH i2c: E2 [21:25:52]MH_I2C_Read... [21:25:52]Read from MH i2c: E2 03 00 [21:25:52]MH_I2C_Read... [21:25:52]Read from MH i2c: E2 03 00 74 89 00 90 00 71 [21:25:52]RAPDU: 90 00 [21:25:52]wFMCommunicate OK [21:25:52]wFMCommunicate request_size=4 [21:25:52]MH_SAM_APDU [21:25:52]CAPDU: 80 0D 03 02 [21:25:52]Write to MH i2c: E2 08 00 75 89 80 0D 03 02 00 00 00 00 79 [21:25:52]Write i2c OK [21:25:52]MH_I2C_Read... [21:25:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:25:52]Read from MH i2c: E2 [21:25:52]MH_I2C_Read... [21:25:52]Read from MH i2c: E2 0B 00 [21:25:52]MH_I2C_Read... [21:25:52]Read from MH i2c: E2 0B 00 75 89 00 D7 D3 AD 7B BD 7C F8 CE 90 00 4B [21:25:52]RAPDU: D7 D3 AD 7B BD 7C F8 CE 90 00 [21:25:52]wFMCommunicate OK [21:25:52]SAM_PROTO_SignData done [21:25:52]FM_MakeSignedData done [21:25:52]CreateOFDProtocolMessage [21:25:52]wFMCommunicate request_size=4 [21:25:52]MH_SAM_APDU [21:25:52]CAPDU: 80 11 00 00 [21:25:52]Write to MH i2c: E2 08 00 76 89 80 11 00 00 00 00 00 00 79 [21:25:52]Write i2c OK [21:25:52]MH_I2C_Read... [21:25:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:25:52]Read from MH i2c: E2 [21:25:52]MH_I2C_Read... [21:25:52]Read from MH i2c: E2 17 00 [21:25:52]MH_I2C_Read... [21:25:52]Read from MH i2c: E2 17 00 76 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 CE [21:25:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [21:25:52]wFMCommunicate OK [21:25:52]CreateOFDProtocolMessage done [21:25:52]OFDSenderStorePacket 156760 [21:25:52]StoreOFDPacket docnum=156760 [21:25:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 51 28 04 01 AD 89 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 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 37 01 00 00 F4 03 04 00 E6 AF 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 58 64 02 00 35 04 06 00 18 10 02 83 D0 51 D7 D3 AD 7B BD 7C F8 CE [21:25:52]CheckFolder [21:25:52]dirname=/storage/ofd_packets [21:25:52]CheckFolder done [21:25:52]ProducePacketName [21:25:52]name=ofd_packets/00156760 [21:25:52]NVStorageSaveData ofd_packets/00156760 [21:25:52]File name is /storage/ofd_packets/00156760 [21:25:52]Write 298 bytes [21:25:52]NVStorageSaveData done [21:25:52]OFDSenderStorePacket done [21:25:52]KKMCreateOFDPacket done [21:25:52]NVStorageSaveData kkm_last_timestamp [21:25:52]File name is /storage/kkm_last_timestamp [21:25:52]Write 4 bytes [21:25:52]NVStorageSaveData done [21:25:52]ExternCall_PrintAddStr [21:25:52]wPrintStart [21:25:52]Write to MH i2c: 01 00 00 77 89 00 [21:25:52]Write i2c OK [21:25:52]MH_I2C_Read... [21:25:52]Read from MH i2c: 01 [21:25:52]MH_I2C_Read... [21:25:52]Read from MH i2c: 01 07 00 [21:25:52]MH_I2C_Read... [21:25:52]Read from MH i2c: 01 07 00 77 89 00 00 00 00 00 FF 0F 15 [21:25:52]RasterBufferAndPrint [21:25:52]line Счет N : (1)99574 [21:25:52]line ИНН: 02508201610067 [21:25:52]line Контрольно-Кассовый Чек [21:25:52]line ПРОДАЖА [21:25:52]line ТРК (МРК, ГНК) : 32 [21:25:52]line Товар: 2710194210 [21:25:52]line ДТ-К-5 [21:25:52]line 10.500 * 76.20 [21:25:52]line = 800.10 [21:25:52]line НДС 12% НСП 1% [21:25:52]line > о реализуемом товаре [21:25:52]line ОКРУГЛЕНИЕ: -0.10 [21:25:52]line ИТОГО: 800.00 [21:25:52]line Внесено: 800.00 [21:25:52]line СДАЧА: 0.00 [21:25:52]line НСП 1% : 7.08 [21:25:52]line НДС 12% : 84.97 [21:25:52]line Наличными: 800.00 [21:25:52]line Безнал.: 0.00 [21:25:52]line Место: АЗС № 143 "Партнер Нефть" [21:25:52]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [21:25:52]line СНО: Общий режим [21:25:52]line Чек 311 27.10.2024 21:25 [21:25:52]line Смена: 537 ФФД: 1.0 [21:25:52]line ЗНМ: 0300000096 [21:25:52]line РНМ: 0000000000091693 [21:25:52]line Версия ККМ: 001 [21:25:52]line ФМ: 0000000000871792 [21:25:52]line ФД: 156760 [21:25:52]line ФПД: 26457040736337 [21:25:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T212558&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156760&fm=26457040736337&tin=02508201610067®Number=0000000000091693&sum=80000 [21:25:52]OFD Sender: Processing packet 156760 [packets to send 31, broken 30] [21:25:52]ProducePacketName [21:25:52]name=ofd_packets/00156760 [21:25:52]OFD Sender: To server: pG, [21:25:52]CommunicateWithHost lk.salyk.kg:30040 [21:25:52]ConnectInit lk.salyk.kg [21:25:52]written 0, free lines is 4095 [21:25:52]Connected sock=10 [21:25:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 51 28 04 01 AD 89 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 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 37 01 00 00 F4 03 04 00 E6 AF 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 58 64 02 00 35 04 06 00 18 10 02 83 D0 51 D7 D3 AD 7B BD 7C F8 CE [21:25:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 6F 57 47 00 E0 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 31 37 39 32 10 04 04 00 58 64 02 00 F4 03 04 00 54 55 1E 67 B6 04 01 00 00 7E 50 39 04 D3 73 37 97 [21:25:52]CommunicateWithHost err = 0 [21:25:52]CheckOFDResponse [21:25:52]1017 (14) - 77093643461234 [21:25:52]1041 (16) - 0000000000871792 [21:25:52]1040 (4) - 156760 [21:25:52]1012 (4) - 27.10.2024 14:59 [21:25:52]1206 (1) - 0 [21:25:52]OFD Sender: Remove packet 156760 [21:25:52]ProducePacketName [21:25:52]name=ofd_packets/00156760 [21:25:52]NVStorageDeleteData [21:25:53]Write to MH i2c: 01 00 00 A2 89 2B [21:25:53]Write i2c OK [21:25:53]MH_I2C_Read... [21:25:53]Read from MH i2c: 01 [21:25:53]MH_I2C_Read... [21:25:53]Read from MH i2c: 01 07 00 [21:25:53]MH_I2C_Read... [21:25:53]Read from MH i2c: 01 07 00 A2 89 00 00 00 00 00 E6 0C 24 [21:25:53]RasterBufferAndPrint [21:25:53]line [21:25:53]line [21:25:53]line [21:25:53]line [21:25:53]line [21:25:53]written 0, free lines is 3308 [21:25:53]process_action close_receipt done [21:25:53]requested_data is exist [21:25:53]produce_requested_data [21:25:53]requested_item fm.sn is exist - process it [21:25:53]wFMCommunicate request_size=4 [21:25:53]MH_SAM_APDU [21:25:53]CAPDU: 80 11 00 00 [21:25:53]Write to MH i2c: E2 08 00 A9 89 80 11 00 00 00 00 00 00 AC [21:25:53]Write i2c OK [21:25:53]MH_I2C_Read... [21:25:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:25:53]Read from MH i2c: E2 [21:25:53]MH_I2C_Read... [21:25:53]Read from MH i2c: E2 17 00 [21:25:53]MH_I2C_Read... [21:25:53]Read from MH i2c: E2 17 00 A9 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 01 [21:25:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [21:25:53]wFMCommunicate OK [21:25:53]requested_item fd.num is exist - process it [21:25:53]SAM_PROTO_GetFieldsCounters [21:25:53]wFMCommunicate request_size=4 [21:25:53]MH_SAM_APDU [21:25:53]CAPDU: 80 13 00 00 [21:25:53]Write to MH i2c: E2 08 00 AA 89 80 13 00 00 00 00 00 00 AF [21:25:53]Write i2c OK [21:25:53]MH_I2C_Read... [21:25:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:25:53]Read from MH i2c: E2 [21:25:53]MH_I2C_Read... [21:25:53]Read from MH i2c: E2 62 00 [21:25:53]MH_I2C_Read... [21:25:53]Read from MH i2c: E2 62 00 AA 89 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 58 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 37 01 00 00 5E 04 04 00 37 01 00 00 57 04 04 00 38 01 00 00 19 04 04 00 00 00 00 00 90 00 56 [21:25:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 58 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 37 01 00 00 5E 04 04 00 37 01 00 00 57 04 04 00 38 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:25:53]wFMCommunicate OK [21:25:53]SAM_PROTO_GetFieldsCounters done [21:25:53]requested_item shift.num is exist - process it [21:25:53]requested_item shift.opened is exist - process it [21:25:53]req_shift_opened [21:25:53]FM_GetShiftState [21:25:53]SAM_PROTO_GetShiftState [21:25:53]wFMCommunicate request_size=4 [21:25:53]MH_SAM_APDU [21:25:53]CAPDU: 80 13 01 00 [21:25:53]Write to MH i2c: E2 08 00 AB 89 80 13 01 00 00 00 00 00 B1 [21:25:53]Write i2c OK [21:25:53]MH_I2C_Read... [21:25:53]Read from MH i2c: E2 [21:25:53]MH_I2C_Read... [21:25:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:25:53]Read from MH i2c: E2 0E 00 [21:25:53]MH_I2C_Read... [21:25:53]Read from MH i2c: E2 0E 00 AB 89 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 7E [21:25:53]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [21:25:53]wFMCommunicate OK [21:25:53]SAM_PROTO_GetShiftState done [21:25:53]FM_GetShiftState done [21:25:53]req_shift_opened done [21:25:53]requested_item shift.open_date is exist - process it [21:25:53]req_shift_open_date [21:25:53]req_shift_open_date done [21:25:53]produce_requested_data done [21:25:53]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156760,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [21:25:53]process_action_free close_receipt [21:25:53]json_value_free [21:25:53]json_value_free done [21:25:53]process_json_proto returns [21:25:53]Send response to host [21:25:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156760,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [21:25:53]free response buf [21:25:53]execute_script done [21:25:53]execute_script returns [21:25:53]free content buf [21:25:53]Sock 9.Close socket [21:25:53]Sock 9.Thread stoped [21:25:53]OFD Sender: No OFD packet to send [21:25:58]OFD Sender: No OFD packet to send [21:26:03]OFD Sender: No OFD packet to send [21:26:08]OFD Sender: No OFD packet to send [21:26:13]OFD Sender: No OFD packet to send [21:26:18]OFD Sender: No OFD packet to send [21:26:23]OFD Sender: No OFD packet to send [21:26:28]OFD Sender: No OFD packet to send [21:26:33]OFD Sender: No OFD packet to send [21:26:38]OFD Sender: No OFD packet to send [21:26:43]OFD Sender: No OFD packet to send [21:26:48]OFD Sender: No OFD packet to send [21:26:53]OFD Sender: No OFD packet to send [21:26:58]OFD Sender: No OFD packet to send [21:27:03]OFD Sender: No OFD packet to send [21:27:08]OFD Sender: No OFD packet to send [21:27:13]OFD Sender: No OFD packet to send [21:27:18]accept exits with 8 [21:27:18]New connection [21:27:18]New thread 3066977636 created [21:27:18]Thread 3066834276 joined [21:27:18]Waiting for new connection... [21:27:18] Sock 8.Parse request [21:27:18]Sock 8.Check first char [21:27:18]Sock 8.First char is OK [21:27:18]request: POST /json_proto HTTP/1.0 [21:27:18]Method: POST [21:27:18]URL: /json_proto [21:27:18]Method is POST - this is cgi request [21:27:18]url: /json_proto [21:27:18]query_string will be loaded in cgi processing [21:27:18]execute_cgi json_proto POST (null) [21:27:18]execute_cgi path=json_proto method=POST [21:27:18]POST find Content-Length [21:27:18]Host: 172.17.63.3:8080 [21:27:18]Content-Length: 762 [21:27:18]Content-Type: application/json [21:27:18] [21:27:18]POST finish read [21:27:18]Found Content-Length = 762 [21:27:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99575", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.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: Mbank", "payments": [ { "type": 1, "sum" : 700.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:27:18]execute_script... [21:27:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99575", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.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: Mbank", "payments": [ { "type": 1, "sum" : 700.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:27:18]POST & json_proto [21:27:18]process_json_proto [21:27:18]json parsed OK: [21:27:18]protocol is kg_v1.0 [21:27:18]action value=close_receipt [21:27:18]process_action close_receipt [21:27:18]cmd_close_receipt [21:27:18]MH_GetDate [21:27:18]Write to MH i2c: F0 00 00 AC 89 24 [21:27:18]Write i2c OK [21:27:18]MH_I2C_Read... [21:27:18]Read from MH i2c: F0 [21:27:18]MH_I2C_Read... [21:27:18]Read from MH i2c: F0 09 00 [21:27:18]MH_I2C_Read... [21:27:18]Read from MH i2c: F0 09 00 AC 89 00 3E B0 1E 67 50 D1 6C 64 91 [21:27:18]GetLastDocTimeStamp 1730064358 [21:27:18]current date 1730064446 [21:27:18]FM_GetShiftState [21:27:18]SAM_PROTO_GetShiftState [21:27:18]wFMCommunicate request_size=4 [21:27:18]MH_SAM_APDU [21:27:18]CAPDU: 80 13 01 00 [21:27:18]Write to MH i2c: E2 08 00 AD 89 80 13 01 00 00 00 00 00 B3 [21:27:18]Write i2c OK [21:27:18]MH_I2C_Read... [21:27:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:27:18]Read from MH i2c: E2 [21:27:18]MH_I2C_Read... [21:27:18]Read from MH i2c: E2 0E 00 [21:27:18]MH_I2C_Read... [21:27:18]Read from MH i2c: E2 0E 00 AD 89 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 80 [21:27:18]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [21:27:18]wFMCommunicate OK [21:27:18]SAM_PROTO_GetShiftState done [21:27:18]FM_GetShiftState done [21:27:18]opened in 1729989044 [21:27:18]opened+sec_in_day 1730075444 [21:27:18]quantity*price = 70027 [21:27:18]sum+1 = 70029 [21:27:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.28 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 0.00 Безнал.: 700.28 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 312 27.10.2024 21:27 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 156761 ФПД: 51529709092932 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T212726&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156761&fm=51529709092932&tin=02508201610067®Number=0000000000091693&sum=70028 [21:27:19]StoreToDocumentArchive [21:27:19]shift 537 fd 156761 [21:27:19]save to /storage/0537/doc_00156761 [21:27:19]save last doc name /storage/0537/doc_00156761 to /storage/kkm_last_doc_name [21:27:19]save OK [21:27:19]Clear old archive folders... [21:27:19]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:27:19]tlvbuf is 017723A0 [21:27:19]SAM_PROTO_ClearQueue [21:27:19]wFMCommunicate request_size=4 [21:27:19]MH_SAM_APDU [21:27:19]CAPDU: 80 09 00 00 [21:27:19]Write to MH i2c: E2 08 00 BA 89 80 09 00 00 00 00 00 00 B5 [21:27:19]Write i2c OK [21:27:19]MH_I2C_Read... [21:27:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:27:19]Read from MH i2c: E2 [21:27:19]MH_I2C_Read... [21:27:19]Read from MH i2c: E2 03 00 [21:27:19]MH_I2C_Read... [21:27:19]Read from MH i2c: E2 03 00 BA 89 00 90 00 B7 [21:27:19]RAPDU: 90 00 [21:27:19]wFMCommunicate OK [21:27:19]SAM_PROTO_ClearQueue done [21:27:19]KKMCreateOFDPacket [21:27:19]OFDProtocolAddRootSTLVToBuf [21:27:19]FM_MakeSignedData [21:27:19]FM_MakeSignedData [21:27:19]SAM_PROTO_SignData [21:27:19]wFMCommunicate request_size=4 [21:27:19]MH_SAM_APDU [21:27:19]CAPDU: 80 0D 01 02 [21:27:19]Write to MH i2c: E2 08 00 BB 89 80 0D 01 02 00 00 00 00 BD [21:27:19]Write i2c OK [21:27:19]MH_I2C_Read... [21:27:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:27:19]Read from MH i2c: E2 [21:27:19]MH_I2C_Read... [21:27:19]Read from MH i2c: E2 03 00 [21:27:19]MH_I2C_Read... [21:27:19]Read from MH i2c: E2 03 00 BB 89 00 90 00 B8 [21:27:19]RAPDU: 90 00 [21:27:19]wFMCommunicate OK [21:27:19]wFMCommunicate request_size=255 [21:27:19]MH_SAM_APDU [21:27:19]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 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 0D 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 3E B0 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 59 64 02 00 35 04 06 00 2E DD B2 01 [21:27:19]Write to MH i2c: E2 02 01 BC 89 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 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 0D 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 3E B0 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 59 64 02 00 35 04 06 00 2E DD B2 01 00 00 BF [21:27:19]Write i2c OK [21:27:19]MH_I2C_Read... [21:27:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:27:19]Read from MH i2c: E2 [21:27:19]MH_I2C_Read... [21:27:19]Read from MH i2c: E2 03 00 [21:27:19]MH_I2C_Read... [21:27:19]Read from MH i2c: E2 03 00 BC 89 00 90 00 B9 [21:27:19]RAPDU: 90 00 [21:27:19]wFMCommunicate OK [21:27:19]wFMCommunicate request_size=7 [21:27:19]MH_SAM_APDU [21:27:19]CAPDU: 80 0D 02 02 02 80 44 [21:27:19]Write to MH i2c: E2 0A 00 BD 89 80 0D 02 02 02 00 80 44 00 00 88 [21:27:19]Write i2c OK [21:27:19]MH_I2C_Read... [21:27:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:27:19]Read from MH i2c: E2 [21:27:19]MH_I2C_Read... [21:27:19]Read from MH i2c: E2 03 00 [21:27:19]MH_I2C_Read... [21:27:19]Read from MH i2c: E2 03 00 BD 89 00 90 00 BA [21:27:19]RAPDU: 90 00 [21:27:19]wFMCommunicate OK [21:27:19]wFMCommunicate request_size=4 [21:27:19]MH_SAM_APDU [21:27:19]CAPDU: 80 0D 03 02 [21:27:19]Write to MH i2c: E2 08 00 BE 89 80 0D 03 02 00 00 00 00 C2 [21:27:19]Write i2c OK [21:27:19]MH_I2C_Read... [21:27:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:27:19]Read from MH i2c: E2 [21:27:19]MH_I2C_Read... [21:27:19]Read from MH i2c: E2 0B 00 [21:27:19]MH_I2C_Read... [21:27:19]Read from MH i2c: E2 0B 00 BE 89 00 45 4D EE 99 48 D3 0F CB 90 00 D1 [21:27:19]RAPDU: 45 4D EE 99 48 D3 0F CB 90 00 [21:27:19]wFMCommunicate OK [21:27:19]SAM_PROTO_SignData done [21:27:19]FM_MakeSignedData done [21:27:19]CreateOFDProtocolMessage [21:27:19]wFMCommunicate request_size=4 [21:27:19]MH_SAM_APDU [21:27:19]CAPDU: 80 11 00 00 [21:27:19]Write to MH i2c: E2 08 00 BF 89 80 11 00 00 00 00 00 00 C2 [21:27:19]Write i2c OK [21:27:19]MH_I2C_Read... [21:27:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:27:20]Read from MH i2c: E2 [21:27:20]MH_I2C_Read... [21:27:20]Read from MH i2c: E2 17 00 [21:27:20]MH_I2C_Read... [21:27:20]Read from MH i2c: E2 17 00 BF 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 17 [21:27:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [21:27:20]wFMCommunicate OK [21:27:20]CreateOFDProtocolMessage done [21:27:20]OFDSenderStorePacket 156761 [21:27:20]StoreOFDPacket docnum=156761 [21:27:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 86 39 04 01 D2 29 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 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 0D 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 3E B0 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 59 64 02 00 35 04 06 00 2E DD B2 01 80 44 45 4D EE 99 48 D3 0F CB [21:27:20]CheckFolder [21:27:20]dirname=/storage/ofd_packets [21:27:20]CheckFolder done [21:27:20]ProducePacketName [21:27:20]name=ofd_packets/00156761 [21:27:20]NVStorageSaveData ofd_packets/00156761 [21:27:20]File name is /storage/ofd_packets/00156761 [21:27:20]Write 298 bytes [21:27:20]NVStorageSaveData done [21:27:20]OFDSenderStorePacket done [21:27:20]KKMCreateOFDPacket done [21:27:20]NVStorageSaveData kkm_last_timestamp [21:27:20]File name is /storage/kkm_last_timestamp [21:27:20]Write 4 bytes [21:27:20]NVStorageSaveData done [21:27:20]ExternCall_PrintAddStr [21:27:20]wPrintStart [21:27:20]Write to MH i2c: 01 00 00 C0 89 49 [21:27:20]Write i2c OK [21:27:20]MH_I2C_Read... [21:27:20]Read from MH i2c: 01 [21:27:20]MH_I2C_Read... [21:27:20]Read from MH i2c: 01 07 00 [21:27:20]MH_I2C_Read... [21:27:20]Read from MH i2c: 01 07 00 C0 89 00 00 00 00 00 FF 0F 5E [21:27:20]RasterBufferAndPrint [21:27:20]line Счет N : (1)99575 [21:27:20]line ИНН: 02508201610067 [21:27:20]line Контрольно-Кассовый Чек [21:27:20]line ПРОДАЖА [21:27:20]line ТРК (МРК, ГНК) : 32 [21:27:20]line Товар: 2710194210 [21:27:20]line ДТ-К-5 [21:27:20]line 9.190 * 76.20 [21:27:20]line = 700.28 [21:27:20]line НДС 12% НСП 1% [21:27:20]line > о реализуемом товаре [21:27:20]line ИТОГО: 700.28 [21:27:20]line НСП 1% : 6.20 [21:27:20]line НДС 12% : 74.37 [21:27:20]line Наличными: 0.00 [21:27:20]line Безнал.: 700.28 [21:27:20]line Место: АЗС № 143 "Партнер Нефть" [21:27:20]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [21:27:20]line СНО: Общий режим [21:27:20]line Чек 312 27.10.2024 21:27 [21:27:20]line Смена: 537 ФФД: 1.0 [21:27:20]line ЗНМ: 0300000096 [21:27:20]line РНМ: 0000000000091693 [21:27:20]line Версия ККМ: 001 [21:27:20]line Платежная система: Mbank [21:27:20]line ФМ: 0000000000871792 [21:27:20]line ФД: 156761 [21:27:20]line ФПД: 51529709092932 [21:27:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T212726&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156761&fm=51529709092932&tin=02508201610067®Number=0000000000091693&sum=70028 [21:27:20]OFD Sender: Processing packet 156761 [packets to send 31, broken 30] [21:27:20]ProducePacketName [21:27:20]name=ofd_packets/00156761 [21:27:20]OFD Sender: To server: pG, [21:27:20]CommunicateWithHost lk.salyk.kg:30040 [21:27:20]ConnectInit lk.salyk.kg [21:27:20]written 0, free lines is 4095 [21:27:20]Connected sock=10 [21:27:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 86 39 04 01 D2 29 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 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 0D 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 3E B0 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 59 64 02 00 35 04 06 00 2E DD B2 01 80 44 45 4D EE 99 48 D3 0F CB [21:27:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 C0 9E 47 00 C1 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 59 64 02 00 F4 03 04 00 AC 55 1E 67 B6 04 01 00 00 86 BA C9 CA 91 82 9C 99 [21:27:20]CommunicateWithHost err = 0 [21:27:20]CheckOFDResponse [21:27:20]1017 (14) - 77093643461234 [21:27:20]1041 (16) - 0000000000871792 [21:27:20]1040 (4) - 156761 [21:27:20]1012 (4) - 27.10.2024 15:01 [21:27:20]1206 (1) - 0 [21:27:20]OFD Sender: Remove packet 156761 [21:27:20]ProducePacketName [21:27:20]name=ofd_packets/00156761 [21:27:20]NVStorageDeleteData [21:27:20]Write to MH i2c: 01 00 00 E9 89 72 [21:27:20]Write i2c OK [21:27:20]MH_I2C_Read... [21:27:20]Read from MH i2c: 01 [21:27:20]MH_I2C_Read... [21:27:20]Read from MH i2c: 01 07 00 [21:27:20]MH_I2C_Read... [21:27:20]Read from MH i2c: 01 07 00 E9 89 00 00 00 00 00 0E 0D 94 [21:27:20]RasterBufferAndPrint [21:27:20]line [21:27:20]line [21:27:20]line [21:27:20]line [21:27:20]line [21:27:20]written 0, free lines is 3349 [21:27:20]process_action close_receipt done [21:27:20]requested_data is exist [21:27:20]produce_requested_data [21:27:20]requested_item fm.sn is exist - process it [21:27:20]wFMCommunicate request_size=4 [21:27:20]MH_SAM_APDU [21:27:20]CAPDU: 80 11 00 00 [21:27:20]Write to MH i2c: E2 08 00 F0 89 80 11 00 00 00 00 00 00 F3 [21:27:20]Write i2c OK [21:27:20]MH_I2C_Read... [21:27:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:27:20]Read from MH i2c: E2 [21:27:20]MH_I2C_Read... [21:27:20]Read from MH i2c: E2 17 00 [21:27:20]MH_I2C_Read... [21:27:20]Read from MH i2c: E2 17 00 F0 89 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 48 [21:27:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [21:27:20]wFMCommunicate OK [21:27:20]requested_item fd.num is exist - process it [21:27:20]SAM_PROTO_GetFieldsCounters [21:27:20]wFMCommunicate request_size=4 [21:27:20]MH_SAM_APDU [21:27:20]CAPDU: 80 13 00 00 [21:27:20]Write to MH i2c: E2 08 00 F1 89 80 13 00 00 00 00 00 00 F6 [21:27:20]Write i2c OK [21:27:20]MH_I2C_Read... [21:27:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:27:21]Read from MH i2c: E2 [21:27:21]MH_I2C_Read... [21:27:21]Read from MH i2c: E2 62 00 [21:27:21]MH_I2C_Read... [21:27:21]Read from MH i2c: E2 62 00 F1 89 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 59 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 38 01 00 00 5E 04 04 00 38 01 00 00 57 04 04 00 39 01 00 00 19 04 04 00 00 00 00 00 90 00 A1 [21:27: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 59 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 38 01 00 00 5E 04 04 00 38 01 00 00 57 04 04 00 39 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:27:21]wFMCommunicate OK [21:27:21]SAM_PROTO_GetFieldsCounters done [21:27:21]requested_item shift.num is exist - process it [21:27:21]requested_item shift.opened is exist - process it [21:27:21]req_shift_opened [21:27:21]FM_GetShiftState [21:27:21]SAM_PROTO_GetShiftState [21:27:21]wFMCommunicate request_size=4 [21:27:21]MH_SAM_APDU [21:27:21]CAPDU: 80 13 01 00 [21:27:21]Write to MH i2c: E2 08 00 F2 89 80 13 01 00 00 00 00 00 F8 [21:27:21]Write i2c OK [21:27:21]MH_I2C_Read... [21:27:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:27:21]Read from MH i2c: E2 [21:27:21]MH_I2C_Read... [21:27:21]Read from MH i2c: E2 0E 00 [21:27:21]MH_I2C_Read... [21:27:21]Read from MH i2c: E2 0E 00 F2 89 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 C5 [21:27:21]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [21:27:21]wFMCommunicate OK [21:27:21]SAM_PROTO_GetShiftState done [21:27:21]FM_GetShiftState done [21:27:21]req_shift_opened done [21:27:21]requested_item shift.open_date is exist - process it [21:27:21]req_shift_open_date [21:27:21]req_shift_open_date done [21:27:21]produce_requested_data done [21:27:21]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156761,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [21:27:21]process_action_free close_receipt [21:27:21]json_value_free [21:27:21]json_value_free done [21:27:21]process_json_proto returns [21:27:21]Send response to host [21:27:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156761,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [21:27:21]free response buf [21:27:21]execute_script done [21:27:21]execute_script returns [21:27:21]free content buf [21:27:21]Sock 8.Close socket [21:27:21]Sock 8.Thread stoped [21:27:21]OFD Sender: No OFD packet to send [21:27:26]OFD Sender: No OFD packet to send [21:27:31]OFD Sender: No OFD packet to send [21:27:36]OFD Sender: No OFD packet to send [21:27:41]OFD Sender: No OFD packet to send [21:27:46]OFD Sender: No OFD packet to send [21:27:51]OFD Sender: No OFD packet to send [21:27:56]OFD Sender: No OFD packet to send [21:28:01]OFD Sender: No OFD packet to send [21:28:06]OFD Sender: No OFD packet to send [21:28:11]OFD Sender: No OFD packet to send [21:28:16]OFD Sender: No OFD packet to send [21:28:21]OFD Sender: No OFD packet to send [21:28:26]OFD Sender: No OFD packet to send [21:28:31]OFD Sender: No OFD packet to send [21:28:36]OFD Sender: No OFD packet to send [21:28:41]OFD Sender: No OFD packet to send [21:28:46]OFD Sender: No OFD packet to send [21:28:51]OFD Sender: No OFD packet to send [21:28:56]OFD Sender: No OFD packet to send [21:29:01]OFD Sender: No OFD packet to send [21:29:06]OFD Sender: No OFD packet to send [21:29:11]OFD Sender: No OFD packet to send [21:29:16]OFD Sender: No OFD packet to send [21:29:21]OFD Sender: No OFD packet to send [21:29:26]OFD Sender: No OFD packet to send [21:29:31]OFD Sender: No OFD packet to send [21:29:36]OFD Sender: No OFD packet to send [21:29:41]OFD Sender: No OFD packet to send [21:29:46]OFD Sender: No OFD packet to send [21:29:51]OFD Sender: No OFD packet to send [21:29:56]OFD Sender: No OFD packet to send [21:30:01]OFD Sender: No OFD packet to send [21:30:06]OFD Sender: No OFD packet to send [21:30:11]OFD Sender: No OFD packet to send [21:30:16]OFD Sender: No OFD packet to send [21:30:21]OFD Sender: No OFD packet to send [21:30:26]OFD Sender: No OFD packet to send [21:30:31]OFD Sender: No OFD packet to send [21:30:36]OFD Sender: No OFD packet to send [21:30:41]OFD Sender: No OFD packet to send [21:30:43]accept exits with 9 [21:30:43]New connection [21:30:43]New thread 3066834276 created [21:30:43]Thread 3066977636 joined [21:30:43]Waiting for new connection... [21:30:43] Sock 9.Parse request [21:30:43]Sock 9.Check first char [21:30:43]Sock 9.First char is OK [21:30:43]request: POST /json_proto HTTP/1.0 [21:30:43]Method: POST [21:30:43]URL: /json_proto [21:30:43]Method is POST - this is cgi request [21:30:43]url: /json_proto [21:30:43]query_string will be loaded in cgi processing [21:30:43]execute_cgi json_proto POST (null) [21:30:43]execute_cgi path=json_proto method=POST [21:30:43]POST find Content-Length [21:30:43]Host: 172.17.63.3:8080 [21:30:43]Content-Length: 676 [21:30:43]Content-Type: application/json [21:30:43] [21:30:43]POST finish read [21:30:43]Found Content-Length = 676 [21:30:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99576", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:30:43]execute_script... [21:30: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)99576", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:30:43]POST & json_proto [21:30:43]process_json_proto [21:30:43]json parsed OK: [21:30:43]protocol is kg_v1.0 [21:30:43]action value=close_receipt [21:30:43]process_action close_receipt [21:30:43]cmd_close_receipt [21:30:43]MH_GetDate [21:30:43]Write to MH i2c: F0 00 00 F3 89 6B [21:30:43]Write i2c OK [21:30:43]MH_I2C_Read... [21:30:43]Read from MH i2c: F0 [21:30:43]MH_I2C_Read... [21:30:43]Read from MH i2c: F0 09 00 [21:30:43]MH_I2C_Read... [21:30:43]Read from MH i2c: F0 09 00 F3 89 00 0B B1 1E 67 50 D1 6C 64 A6 [21:30:43]GetLastDocTimeStamp 1730064446 [21:30:43]current date 1730064651 [21:30:43]FM_GetShiftState [21:30:43]SAM_PROTO_GetShiftState [21:30:43]wFMCommunicate request_size=4 [21:30:43]MH_SAM_APDU [21:30:43]CAPDU: 80 13 01 00 [21:30:43]Write to MH i2c: E2 08 00 F4 89 80 13 01 00 00 00 00 00 FA [21:30:43]Write i2c OK [21:30:43]MH_I2C_Read... [21:30:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:30:43]Read from MH i2c: E2 [21:30:43]MH_I2C_Read... [21:30:43]Read from MH i2c: E2 0E 00 [21:30:43]MH_I2C_Read... [21:30:43]Read from MH i2c: E2 0E 00 F4 89 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 C7 [21:30:43]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [21:30:43]wFMCommunicate OK [21:30:43]SAM_PROTO_GetShiftState done [21:30:43]FM_GetShiftState done [21:30:43]opened in 1729989044 [21:30:43]opened+sec_in_day 1730075444 [21:30:43]quantity*price = 50041 [21:30:43]sum+1 = 50042 [21:30:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 313 27.10.2024 21:30 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156762 ФПД: 236134449348914 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T213051&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156762&fm=236134449348914&tin=02508201610067®Number=0000000000091693&sum=50000 [21:30:45]StoreToDocumentArchive [21:30:45]shift 537 fd 156762 [21:30:45]save to /storage/0537/doc_00156762 [21:30:45]save last doc name /storage/0537/doc_00156762 to /storage/kkm_last_doc_name [21:30:45]save OK [21:30:45]Clear old archive folders... [21:30:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:30:45]tlvbuf is 016A3C10 [21:30:45]SAM_PROTO_ClearQueue [21:30:45]wFMCommunicate request_size=4 [21:30:45]MH_SAM_APDU [21:30:45]CAPDU: 80 09 00 00 [21:30:45]Write to MH i2c: E2 08 00 01 8A 80 09 00 00 00 00 00 00 FD [21:30:45]Write i2c OK [21:30:45]MH_I2C_Read... [21:30:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:30:45]Read from MH i2c: E2 [21:30:45]MH_I2C_Read... [21:30:45]Read from MH i2c: E2 03 00 [21:30:45]MH_I2C_Read... [21:30:45]Read from MH i2c: E2 03 00 01 8A 00 90 00 FF [21:30:45]RAPDU: 90 00 [21:30:45]wFMCommunicate OK [21:30:45]SAM_PROTO_ClearQueue done [21:30:45]KKMCreateOFDPacket [21:30:45]OFDProtocolAddRootSTLVToBuf [21:30:45]FM_MakeSignedData [21:30:45]FM_MakeSignedData [21:30:45]SAM_PROTO_SignData [21:30:45]wFMCommunicate request_size=4 [21:30:45]MH_SAM_APDU [21:30:45]CAPDU: 80 0D 01 02 [21:30:45]Write to MH i2c: E2 08 00 02 8A 80 0D 01 02 00 00 00 00 05 [21:30:45]Write i2c OK [21:30:45]MH_I2C_Read... [21:30:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:30:45]Read from MH i2c: E2 [21:30:45]MH_I2C_Read... [21:30:45]Read from MH i2c: E2 03 00 [21:30:45]MH_I2C_Read... [21:30:45]Read from MH i2c: E2 03 00 02 8A 00 90 00 00 [21:30:45]RAPDU: 90 00 [21:30:45]wFMCommunicate OK [21:30:45]wFMCommunicate request_size=255 [21:30:45]MH_SAM_APDU [21:30: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 0B B1 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 5A 64 02 00 35 04 06 00 D6 [21:30:45]Write to MH i2c: E2 02 01 03 8A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 0B B1 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 5A 64 02 00 35 04 06 00 D6 00 00 C5 [21:30:45]Write i2c OK [21:30:45]MH_I2C_Read... [21:30:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:30:45]Read from MH i2c: E2 [21:30:45]MH_I2C_Read... [21:30:45]Read from MH i2c: E2 03 00 [21:30:45]MH_I2C_Read... [21:30:45]Read from MH i2c: E2 03 00 03 8A 00 90 00 01 [21:30:45]RAPDU: 90 00 [21:30:45]wFMCommunicate OK [21:30:45]wFMCommunicate request_size=10 [21:30:45]MH_SAM_APDU [21:30:45]CAPDU: 80 0D 02 02 05 C3 55 F9 01 32 [21:30:45]Write to MH i2c: E2 0D 00 04 8A 80 0D 02 02 05 00 C3 55 F9 01 32 00 00 56 [21:30:45]Write i2c OK [21:30:45]MH_I2C_Read... [21:30:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:30:45]Read from MH i2c: E2 [21:30:45]MH_I2C_Read... [21:30:45]Read from MH i2c: E2 03 00 [21:30:45]MH_I2C_Read... [21:30:45]Read from MH i2c: E2 03 00 04 8A 00 90 00 02 [21:30:45]RAPDU: 90 00 [21:30:45]wFMCommunicate OK [21:30:45]wFMCommunicate request_size=4 [21:30:45]MH_SAM_APDU [21:30:45]CAPDU: 80 0D 03 02 [21:30:45]Write to MH i2c: E2 08 00 05 8A 80 0D 03 02 00 00 00 00 0A [21:30:45]Write i2c OK [21:30:45]MH_I2C_Read... [21:30:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:30:45]Read from MH i2c: E2 [21:30:45]MH_I2C_Read... [21:30:45]Read from MH i2c: E2 0B 00 [21:30:45]MH_I2C_Read... [21:30:45]Read from MH i2c: E2 0B 00 05 8A 00 6C 96 5E 45 E7 5C 6C F9 90 00 58 [21:30:45]RAPDU: 6C 96 5E 45 E7 5C 6C F9 90 00 [21:30:45]wFMCommunicate OK [21:30:45]SAM_PROTO_SignData done [21:30:45]FM_MakeSignedData done [21:30:45]CreateOFDProtocolMessage [21:30:45]wFMCommunicate request_size=4 [21:30:45]MH_SAM_APDU [21:30:45]CAPDU: 80 11 00 00 [21:30:45]Write to MH i2c: E2 08 00 06 8A 80 11 00 00 00 00 00 00 0A [21:30:45]Write i2c OK [21:30:45]MH_I2C_Read... [21:30:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:30:45]Read from MH i2c: E2 [21:30:45]MH_I2C_Read... [21:30:45]Read from MH i2c: E2 17 00 [21:30:45]MH_I2C_Read... [21:30:45]Read from MH i2c: E2 17 00 06 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 5F [21:30:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [21:30:45]wFMCommunicate OK [21:30:45]CreateOFDProtocolMessage done [21:30:45]OFDSenderStorePacket 156762 [21:30:45]StoreOFDPacket docnum=156762 [21:30:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 31 56 07 01 2F 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 0B B1 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 5A 64 02 00 35 04 06 00 D6 C3 55 F9 01 32 6C 96 5E 45 E7 5C 6C F9 [21:30:45]CheckFolder [21:30:45]dirname=/storage/ofd_packets [21:30:45]CheckFolder done [21:30:45]ProducePacketName [21:30:45]name=ofd_packets/00156762 [21:30:45]NVStorageSaveData ofd_packets/00156762 [21:30:45]File name is /storage/ofd_packets/00156762 [21:30:45]Write 301 bytes [21:30:45]NVStorageSaveData done [21:30:45]OFDSenderStorePacket done [21:30:45]KKMCreateOFDPacket done [21:30:45]NVStorageSaveData kkm_last_timestamp [21:30:45]File name is /storage/kkm_last_timestamp [21:30:45]Write 4 bytes [21:30:45]NVStorageSaveData done [21:30:45]ExternCall_PrintAddStr [21:30:45]wPrintStart [21:30:45]Write to MH i2c: 01 00 00 07 8A 91 [21:30:45]Write i2c OK [21:30:45]MH_I2C_Read... [21:30:45]Read from MH i2c: 01 [21:30:45]MH_I2C_Read... [21:30:45]Read from MH i2c: 01 07 00 [21:30:45]MH_I2C_Read... [21:30:45]Read from MH i2c: 01 07 00 07 8A 00 00 00 00 00 FF 0F A6 [21:30:45]RasterBufferAndPrint [21:30:45]line Счет N : (1)99576 [21:30:45]line ИНН: 02508201610067 [21:30:45]line Контрольно-Кассовый Чек [21:30:45]line ПРОДАЖА [21:30:45]line ТРК (МРК, ГНК) : 31 [21:30:45]line Товар: 2710124130 [21:30:45]line Аи-92-К-5 [21:30:45]line 7.480 * 66.90 [21:30:45]line = 500.41 [21:30:45]line НДС 12% НСП 1% [21:30:45]line > о реализуемом товаре [21:30:45]line ОКРУГЛЕНИЕ: -0.41 [21:30:45]line ИТОГО: 500.00 [21:30:45]line Внесено: 500.00 [21:30:45]line СДАЧА: 0.00 [21:30:45]line НСП 1% : 4.43 [21:30:45]line НДС 12% : 53.14 [21:30:45]line Наличными: 500.00 [21:30:45]line Безнал.: 0.00 [21:30:45]line Место: АЗС № 143 "Партнер Нефть" [21:30:45]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [21:30:45]line СНО: Общий режим [21:30:45]line Чек 313 27.10.2024 21:30 [21:30:45]line Смена: 537 ФФД: 1.0 [21:30:45]line ЗНМ: 0300000096 [21:30:45]line РНМ: 0000000000091693 [21:30:45]line Версия ККМ: 001 [21:30:45]line ФМ: 0000000000871792 [21:30:45]line ФД: 156762 [21:30:45]line ФПД: 236134449348914 [21:30:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T213051&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156762&fm=236134449348914&tin=02508201610067®Number=0000000000091693&sum=50000 [21:30:45]OFD Sender: Processing packet 156762 [packets to send 31, broken 30] [21:30:45]ProducePacketName [21:30:45]name=ofd_packets/00156762 [21:30:45]OFD Sender: To server: pG, [21:30:45]CommunicateWithHost lk.salyk.kg:30040 [21:30:45]ConnectInit lk.salyk.kg [21:30:45]written 0, free lines is 4095 [21:30:46]Connected sock=8 [21:30:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 31 56 07 01 2F 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 0B B1 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 5A 64 02 00 35 04 06 00 D6 C3 55 F9 01 32 6C 96 5E 45 E7 5C 6C F9 [21:30:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 E0 7B 47 00 AF 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 5A 64 02 00 F4 03 04 00 7A 56 1E 67 B6 04 01 00 00 72 71 B9 A1 E3 BF E9 C2 [21:30:46]CommunicateWithHost err = 0 [21:30:46]CheckOFDResponse [21:30:46]1017 (14) - 77093643461234 [21:30:46]1041 (16) - 0000000000871792 [21:30:46]1040 (4) - 156762 [21:30:46]1012 (4) - 27.10.2024 15:04 [21:30:46]1206 (1) - 0 [21:30:46]OFD Sender: Remove packet 156762 [21:30:46]ProducePacketName [21:30:46]name=ofd_packets/00156762 [21:30:46]NVStorageDeleteData [21:30:46]Write to MH i2c: 01 00 00 32 8A BC [21:30:46]Write i2c OK [21:30:46]MH_I2C_Read... [21:30:46]Read from MH i2c: 01 [21:30:46]MH_I2C_Read... [21:30:46]Read from MH i2c: 01 07 00 [21:30:46]MH_I2C_Read... [21:30:46]Read from MH i2c: 01 07 00 32 8A 00 00 00 00 00 F3 0C C2 [21:30:46]RasterBufferAndPrint [21:30:46]line [21:30:46]line [21:30:46]line [21:30:46]line [21:30:46]line [21:30:46]written 0, free lines is 3321 [21:30:46]process_action close_receipt done [21:30:46]requested_data is exist [21:30:46]produce_requested_data [21:30:46]requested_item fm.sn is exist - process it [21:30:46]wFMCommunicate request_size=4 [21:30:46]MH_SAM_APDU [21:30:46]CAPDU: 80 11 00 00 [21:30:46]Write to MH i2c: E2 08 00 39 8A 80 11 00 00 00 00 00 00 3D [21:30:46]Write i2c OK [21:30:46]MH_I2C_Read... [21:30:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:30:46]Read from MH i2c: E2 [21:30:46]MH_I2C_Read... [21:30:46]Read from MH i2c: E2 17 00 [21:30:46]MH_I2C_Read... [21:30:46]Read from MH i2c: E2 17 00 39 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 92 [21:30:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [21:30:46]wFMCommunicate OK [21:30:46]requested_item fd.num is exist - process it [21:30:46]SAM_PROTO_GetFieldsCounters [21:30:46]wFMCommunicate request_size=4 [21:30:46]MH_SAM_APDU [21:30:46]CAPDU: 80 13 00 00 [21:30:46]Write to MH i2c: E2 08 00 3A 8A 80 13 00 00 00 00 00 00 40 [21:30:46]Write i2c OK [21:30:46]MH_I2C_Read... [21:30:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:30:46]Read from MH i2c: E2 [21:30:46]MH_I2C_Read... [21:30:46]Read from MH i2c: E2 62 00 [21:30:46]MH_I2C_Read... [21:30:46]Read from MH i2c: E2 62 00 3A 8A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 5A 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 39 01 00 00 5E 04 04 00 39 01 00 00 57 04 04 00 3A 01 00 00 19 04 04 00 00 00 00 00 90 00 EF [21:30:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 5A 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 39 01 00 00 5E 04 04 00 39 01 00 00 57 04 04 00 3A 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:30:46]wFMCommunicate OK [21:30:46]SAM_PROTO_GetFieldsCounters done [21:30:46]requested_item shift.num is exist - process it [21:30:46]requested_item shift.opened is exist - process it [21:30:46]req_shift_opened [21:30:46]FM_GetShiftState [21:30:46]SAM_PROTO_GetShiftState [21:30:46]wFMCommunicate request_size=4 [21:30:46]MH_SAM_APDU [21:30:46]CAPDU: 80 13 01 00 [21:30:46]Write to MH i2c: E2 08 00 3B 8A 80 13 01 00 00 00 00 00 42 [21:30:46]Write i2c OK [21:30:46]MH_I2C_Read... [21:30:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:30:46]Read from MH i2c: E2 [21:30:46]MH_I2C_Read... [21:30:46]Read from MH i2c: E2 0E 00 [21:30:46]MH_I2C_Read... [21:30:46]Read from MH i2c: E2 0E 00 3B 8A 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 0F [21:30:46]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [21:30:46]wFMCommunicate OK [21:30:46]SAM_PROTO_GetShiftState done [21:30:46]FM_GetShiftState done [21:30:46]req_shift_opened done [21:30:46]requested_item shift.open_date is exist - process it [21:30:46]req_shift_open_date [21:30:46]req_shift_open_date done [21:30:46]produce_requested_data done [21:30:46]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156762,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [21:30:46]process_action_free close_receipt [21:30:46]json_value_free [21:30:46]json_value_free done [21:30:46]process_json_proto returns [21:30:46]Send response to host [21:30:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156762,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [21:30:46]free response buf [21:30:46]execute_script done [21:30:46]execute_script returns [21:30:46]free content buf [21:30:46]Sock 9.Close socket [21:30:46]Sock 9.Thread stoped [21:30:46]OFD Sender: No OFD packet to send [21:30:51]OFD Sender: No OFD packet to send [21:30:56]OFD Sender: No OFD packet to send [21:31:01]OFD Sender: No OFD packet to send [21:31:06]OFD Sender: No OFD packet to send [21:31:11]OFD Sender: No OFD packet to send [21:31:16]OFD Sender: No OFD packet to send [21:31:21]OFD Sender: No OFD packet to send [21:31:26]OFD Sender: No OFD packet to send [21:31:31]OFD Sender: No OFD packet to send [21:31:36]OFD Sender: No OFD packet to send [21:31:41]OFD Sender: No OFD packet to send [21:31:46]OFD Sender: No OFD packet to send [21:31:51]OFD Sender: No OFD packet to send [21:31:56]OFD Sender: No OFD packet to send [21:32:01]OFD Sender: No OFD packet to send [21:32:06]OFD Sender: No OFD packet to send [21:32:11]OFD Sender: No OFD packet to send [21:32:16]OFD Sender: No OFD packet to send [21:32:21]OFD Sender: No OFD packet to send [21:32:26]OFD Sender: No OFD packet to send [21:32:31]OFD Sender: No OFD packet to send [21:32:36]OFD Sender: No OFD packet to send [21:32:41]OFD Sender: No OFD packet to send [21:32:46]OFD Sender: No OFD packet to send [21:32:51]OFD Sender: No OFD packet to send [21:32:56]OFD Sender: No OFD packet to send [21:33:01]OFD Sender: No OFD packet to send [21:33:06]OFD Sender: No OFD packet to send [21:33:11]OFD Sender: No OFD packet to send [21:33:16]OFD Sender: No OFD packet to send [21:33:21]OFD Sender: No OFD packet to send [21:33:26]OFD Sender: No OFD packet to send [21:33:31]OFD Sender: No OFD packet to send [21:33:36]OFD Sender: No OFD packet to send [21:33:41]OFD Sender: No OFD packet to send [21:33:46]OFD Sender: No OFD packet to send [21:33:51]OFD Sender: No OFD packet to send [21:33:56]OFD Sender: No OFD packet to send [21:33:59]accept exits with 10 [21:33:59]New connection [21:33:59]New thread 3066977636 created [21:33:59]Thread 3066834276 joined [21:33:59]Waiting for new connection... [21:33:59] Sock 10.Parse request [21:33:59]Sock 10.Check first char [21:33:59]Sock 10.First char is OK [21:33:59]request: POST /json_proto HTTP/1.0 [21:33:59]Method: POST [21:33:59]URL: /json_proto [21:33:59]Method is POST - this is cgi request [21:33:59]url: /json_proto [21:33:59]query_string will be loaded in cgi processing [21:33:59]execute_cgi json_proto POST (null) [21:33:59]execute_cgi path=json_proto method=POST [21:33:59]POST find Content-Length [21:33:59]Host: 172.17.63.3:8080 [21:33:59]Content-Length: 673 [21:33:59]Content-Type: application/json [21:33:59] [21:33:59]POST finish read [21:33:59]Found Content-Length = 673 [21:33:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99577", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 5.250, "sum" : 400.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:33:59]execute_script... [21:33:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99577", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 5.250, "sum" : 400.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:33:59]POST & json_proto [21:33:59]process_json_proto [21:33:59]json parsed OK: [21:33:59]protocol is kg_v1.0 [21:33:59]action value=close_receipt [21:33:59]process_action close_receipt [21:33:59]cmd_close_receipt [21:33:59]MH_GetDate [21:33:59]Write to MH i2c: F0 00 00 3C 8A B5 [21:33:59]Write i2c OK [21:33:59]MH_I2C_Read... [21:33:59]Read from MH i2c: F0 [21:33:59]MH_I2C_Read... [21:33:59]Read from MH i2c: F0 09 00 [21:33:59]MH_I2C_Read... [21:33:59]Read from MH i2c: F0 09 00 3C 8A 00 CF B1 1E 67 50 D1 6C 64 B4 [21:33:59]GetLastDocTimeStamp 1730064651 [21:33:59]current date 1730064847 [21:33:59]FM_GetShiftState [21:33:59]SAM_PROTO_GetShiftState [21:33:59]wFMCommunicate request_size=4 [21:33:59]MH_SAM_APDU [21:33:59]CAPDU: 80 13 01 00 [21:33:59]Write to MH i2c: E2 08 00 3D 8A 80 13 01 00 00 00 00 00 44 [21:33:59]Write i2c OK [21:33:59]MH_I2C_Read... [21:33:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:33:59]Read from MH i2c: E2 [21:33:59]MH_I2C_Read... [21:33:59]Read from MH i2c: E2 0E 00 [21:33:59]MH_I2C_Read... [21:33:59]Read from MH i2c: E2 0E 00 3D 8A 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 11 [21:33:59]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [21:33:59]wFMCommunicate OK [21:33:59]SAM_PROTO_GetShiftState done [21:33:59]FM_GetShiftState done [21:33:59]opened in 1729989044 [21:33:59]opened+sec_in_day 1730075444 [21:33:59]quantity*price = 40005 [21:33:59]sum+1 = 40006 [21:33:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 314 27.10.2024 21:34 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156763 ФПД: 238505765360934 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T213407&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156763&fm=238505765360934&tin=02508201610067®Number=0000000000091693&sum=40000 [21:34:00]StoreToDocumentArchive [21:34:00]shift 537 fd 156763 [21:34:00]save to /storage/0537/doc_00156763 [21:34:00]save last doc name /storage/0537/doc_00156763 to /storage/kkm_last_doc_name [21:34:00]save OK [21:34:00]Clear old archive folders... [21:34:00]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:34:00]tlvbuf is 019B1640 [21:34:00]SAM_PROTO_ClearQueue [21:34:00]wFMCommunicate request_size=4 [21:34:00]MH_SAM_APDU [21:34:00]CAPDU: 80 09 00 00 [21:34:00]Write to MH i2c: E2 08 00 4A 8A 80 09 00 00 00 00 00 00 46 [21:34:01]Write i2c OK [21:34:01]MH_I2C_Read... [21:34:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:34:01]Read from MH i2c: E2 [21:34:01]MH_I2C_Read... [21:34:01]Read from MH i2c: E2 03 00 [21:34:01]MH_I2C_Read... [21:34:01]Read from MH i2c: E2 03 00 4A 8A 00 90 00 48 [21:34:01]RAPDU: 90 00 [21:34:01]wFMCommunicate OK [21:34:01]SAM_PROTO_ClearQueue done [21:34:01]KKMCreateOFDPacket [21:34:01]OFDProtocolAddRootSTLVToBuf [21:34:01]FM_MakeSignedData [21:34:01]FM_MakeSignedData [21:34:01]SAM_PROTO_SignData [21:34:01]wFMCommunicate request_size=4 [21:34:01]MH_SAM_APDU [21:34:01]CAPDU: 80 0D 01 02 [21:34:01]Write to MH i2c: E2 08 00 4B 8A 80 0D 01 02 00 00 00 00 4E [21:34:01]Write i2c OK [21:34:01]MH_I2C_Read... [21:34:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:34:01]Read from MH i2c: E2 [21:34:01]MH_I2C_Read... [21:34:01]Read from MH i2c: E2 03 00 [21:34:01]MH_I2C_Read... [21:34:01]Read from MH i2c: E2 03 00 4B 8A 00 90 00 49 [21:34:01]RAPDU: 90 00 [21:34:01]wFMCommunicate OK [21:34:01]wFMCommunicate request_size=255 [21:34:01]MH_SAM_APDU [21:34:01]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 CF B1 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 5B 64 02 00 35 04 06 00 D8 EB 73 6B [21:34:01]Write to MH i2c: E2 02 01 4C 8A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 CF B1 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 5B 64 02 00 35 04 06 00 D8 EB 73 6B 00 00 88 [21:34:01]Write i2c OK [21:34:01]MH_I2C_Read... [21:34:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:34:01]Read from MH i2c: E2 [21:34:01]MH_I2C_Read... [21:34:01]Read from MH i2c: E2 03 00 [21:34:01]MH_I2C_Read... [21:34:01]Read from MH i2c: E2 03 00 4C 8A 00 90 00 4A [21:34:01]RAPDU: 90 00 [21:34:01]wFMCommunicate OK [21:34:01]wFMCommunicate request_size=7 [21:34:01]MH_SAM_APDU [21:34:01]CAPDU: 80 0D 02 02 02 D5 26 [21:34:01]Write to MH i2c: E2 0A 00 4D 8A 80 0D 02 02 02 00 D5 26 00 00 50 [21:34:01]Write i2c OK [21:34:01]MH_I2C_Read... [21:34:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:34:01]Read from MH i2c: E2 [21:34:01]MH_I2C_Read... [21:34:01]Read from MH i2c: E2 03 00 [21:34:01]MH_I2C_Read... [21:34:01]Read from MH i2c: E2 03 00 4D 8A 00 90 00 4B [21:34:01]RAPDU: 90 00 [21:34:01]wFMCommunicate OK [21:34:01]wFMCommunicate request_size=4 [21:34:01]MH_SAM_APDU [21:34:01]CAPDU: 80 0D 03 02 [21:34:01]Write to MH i2c: E2 08 00 4E 8A 80 0D 03 02 00 00 00 00 53 [21:34:01]Write i2c OK [21:34:01]MH_I2C_Read... [21:34:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:34:01]Read from MH i2c: E2 [21:34:01]MH_I2C_Read... [21:34:01]Read from MH i2c: E2 0B 00 [21:34:01]MH_I2C_Read... [21:34:01]Read from MH i2c: E2 0B 00 4E 8A 00 98 DB 53 25 7E 59 92 C7 90 00 6F [21:34:01]RAPDU: 98 DB 53 25 7E 59 92 C7 90 00 [21:34:01]wFMCommunicate OK [21:34:01]SAM_PROTO_SignData done [21:34:01]FM_MakeSignedData done [21:34:01]CreateOFDProtocolMessage [21:34:01]wFMCommunicate request_size=4 [21:34:01]MH_SAM_APDU [21:34:01]CAPDU: 80 11 00 00 [21:34:01]Write to MH i2c: E2 08 00 4F 8A 80 11 00 00 00 00 00 00 53 [21:34:01]Write i2c OK [21:34:01]MH_I2C_Read... [21:34:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:34:01]Read from MH i2c: E2 [21:34:01]MH_I2C_Read... [21:34:01]Read from MH i2c: E2 17 00 [21:34:01]MH_I2C_Read... [21:34:01]Read from MH i2c: E2 17 00 4F 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 A8 [21:34:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [21:34:01]wFMCommunicate OK [21:34:01]CreateOFDProtocolMessage done [21:34:01]OFDSenderStorePacket 156763 [21:34:01]StoreOFDPacket docnum=156763 [21:34:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 91 FC 04 01 3F 92 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 CF B1 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 5B 64 02 00 35 04 06 00 D8 EB 73 6B D5 26 98 DB 53 25 7E 59 92 C7 [21:34:01]CheckFolder [21:34:01]dirname=/storage/ofd_packets [21:34:01]CheckFolder done [21:34:01]ProducePacketName [21:34:01]name=ofd_packets/00156763 [21:34:01]NVStorageSaveData ofd_packets/00156763 [21:34:01]File name is /storage/ofd_packets/00156763 [21:34:01]Write 298 bytes [21:34:01]NVStorageSaveData done [21:34:01]OFDSenderStorePacket done [21:34:01]KKMCreateOFDPacket done [21:34:01]NVStorageSaveData kkm_last_timestamp [21:34:01]File name is /storage/kkm_last_timestamp [21:34:01]Write 4 bytes [21:34:01]NVStorageSaveData done [21:34:01]ExternCall_PrintAddStr [21:34:01]wPrintStart [21:34:01]Write to MH i2c: 01 00 00 50 8A DA [21:34:01]Write i2c OK [21:34:01]MH_I2C_Read... [21:34:01]Read from MH i2c: 01 [21:34:01]MH_I2C_Read... [21:34:01]Read from MH i2c: 01 07 00 [21:34:01]MH_I2C_Read... [21:34:01]Read from MH i2c: 01 07 00 50 8A 00 00 00 00 00 FF 0F EF [21:34:01]RasterBufferAndPrint [21:34:01]line Счет N : (1)99577 [21:34:01]line ИНН: 02508201610067 [21:34:01]line Контрольно-Кассовый Чек [21:34:01]line ПРОДАЖА [21:34:01]line ТРК (МРК, ГНК) : 32 [21:34:01]line Товар: 2710194210 [21:34:01]line ДТ-К-5 [21:34:01]line 5.250 * 76.20 [21:34:01]line = 400.05 [21:34:01]line НДС 12% НСП 1% [21:34:01]line > о реализуемом товаре [21:34:01]line ОКРУГЛЕНИЕ: -0.05 [21:34:01]line ИТОГО: 400.00 [21:34:01]line Внесено: 400.00 [21:34:01]line СДАЧА: 0.00 [21:34:01]line НСП 1% : 3.54 [21:34:01]line НДС 12% : 42.48 [21:34:01]line Наличными: 400.00 [21:34:01]line Безнал.: 0.00 [21:34:01]line Место: АЗС № 143 "Партнер Нефть" [21:34:01]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [21:34:01]line СНО: Общий режим [21:34:01]line Чек 314 27.10.2024 21:34 [21:34:01]line Смена: 537 ФФД: 1.0 [21:34:01]line ЗНМ: 0300000096 [21:34:01]line РНМ: 0000000000091693 [21:34:01]line Версия ККМ: 001 [21:34:01]line ФМ: 0000000000871792 [21:34:01]line ФД: 156763 [21:34:01]line ФПД: 238505765360934 [21:34:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T213407&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156763&fm=238505765360934&tin=02508201610067®Number=0000000000091693&sum=40000 [21:34:01]OFD Sender: Processing packet 156763 [packets to send 31, broken 30] [21:34:01]ProducePacketName [21:34:01]name=ofd_packets/00156763 [21:34:01]OFD Sender: To server: pG, [21:34:01]CommunicateWithHost lk.salyk.kg:30040 [21:34:01]ConnectInit lk.salyk.kg [21:34:01]written 0, free lines is 4095 [21:34:01]Connected sock=9 [21:34:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 91 FC 04 01 3F 92 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 14 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 45 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 CF B1 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 5B 64 02 00 35 04 06 00 D8 EB 73 6B D5 26 98 DB 53 25 7E 59 92 C7 [21:34:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 3D F0 47 00 72 A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 5B 64 02 00 F4 03 04 00 3E 57 1E 67 B6 04 01 00 00 1E F0 3A C8 CF EA 82 E4 [21:34:02]CommunicateWithHost err = 0 [21:34:02]CheckOFDResponse [21:34:02]1017 (14) - 77093643461234 [21:34:02]1041 (16) - 0000000000871792 [21:34:02]1040 (4) - 156763 [21:34:02]1012 (4) - 27.10.2024 15:07 [21:34:02]1206 (1) - 0 [21:34:02]OFD Sender: Remove packet 156763 [21:34:02]ProducePacketName [21:34:02]name=ofd_packets/00156763 [21:34:02]NVStorageDeleteData [21:34:02]Write to MH i2c: 01 00 00 7B 8A 05 [21:34:02]Write i2c OK [21:34:02]MH_I2C_Read... [21:34:02]Read from MH i2c: 01 [21:34:02]MH_I2C_Read... [21:34:02]Read from MH i2c: 01 07 00 [21:34:02]MH_I2C_Read... [21:34:02]Read from MH i2c: 01 07 00 7B 8A 00 00 00 00 00 EA 0C 02 [21:34:02]RasterBufferAndPrint [21:34:02]line [21:34:02]line [21:34:02]line [21:34:02]line [21:34:02]line [21:34:02]written 0, free lines is 3312 [21:34:02]process_action close_receipt done [21:34:02]requested_data is exist [21:34:02]produce_requested_data [21:34:02]requested_item fm.sn is exist - process it [21:34:02]wFMCommunicate request_size=4 [21:34:02]MH_SAM_APDU [21:34:02]CAPDU: 80 11 00 00 [21:34:02]Write to MH i2c: E2 08 00 82 8A 80 11 00 00 00 00 00 00 86 [21:34:02]Write i2c OK [21:34:02]MH_I2C_Read... [21:34:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:34:02]Read from MH i2c: E2 [21:34:02]MH_I2C_Read... [21:34:02]Read from MH i2c: E2 17 00 [21:34:02]MH_I2C_Read... [21:34:02]Read from MH i2c: E2 17 00 82 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 DB [21:34:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [21:34:02]wFMCommunicate OK [21:34:02]requested_item fd.num is exist - process it [21:34:02]SAM_PROTO_GetFieldsCounters [21:34:02]wFMCommunicate request_size=4 [21:34:02]MH_SAM_APDU [21:34:02]CAPDU: 80 13 00 00 [21:34:02]Write to MH i2c: E2 08 00 83 8A 80 13 00 00 00 00 00 00 89 [21:34:02]Write i2c OK [21:34:02]MH_I2C_Read... [21:34:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:34:02]Read from MH i2c: E2 [21:34:02]MH_I2C_Read... [21:34:02]Read from MH i2c: E2 62 00 [21:34:02]MH_I2C_Read... [21:34:02]Read from MH i2c: E2 62 00 83 8A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 5B 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 3A 01 00 00 5E 04 04 00 3A 01 00 00 57 04 04 00 3B 01 00 00 19 04 04 00 00 00 00 00 90 00 3C [21:34:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 5B 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 3A 01 00 00 5E 04 04 00 3A 01 00 00 57 04 04 00 3B 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:34:02]wFMCommunicate OK [21:34:02]SAM_PROTO_GetFieldsCounters done [21:34:02]requested_item shift.num is exist - process it [21:34:02]requested_item shift.opened is exist - process it [21:34:02]req_shift_opened [21:34:02]FM_GetShiftState [21:34:02]SAM_PROTO_GetShiftState [21:34:02]wFMCommunicate request_size=4 [21:34:02]MH_SAM_APDU [21:34:02]CAPDU: 80 13 01 00 [21:34:02]Write to MH i2c: E2 08 00 84 8A 80 13 01 00 00 00 00 00 8B [21:34:02]Write i2c OK [21:34:02]MH_I2C_Read... [21:34:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:34:02]Read from MH i2c: E2 [21:34:02]MH_I2C_Read... [21:34:02]Read from MH i2c: E2 0E 00 [21:34:02]MH_I2C_Read... [21:34:02]Read from MH i2c: E2 0E 00 84 8A 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 58 [21:34:02]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [21:34:02]wFMCommunicate OK [21:34:02]SAM_PROTO_GetShiftState done [21:34:02]FM_GetShiftState done [21:34:02]req_shift_opened done [21:34:02]requested_item shift.open_date is exist - process it [21:34:02]req_shift_open_date [21:34:02]req_shift_open_date done [21:34:02]produce_requested_data done [21:34:02]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156763,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [21:34:02]process_action_free close_receipt [21:34:02]json_value_free [21:34:02]json_value_free done [21:34:02]process_json_proto returns [21:34:02]Send response to host [21:34:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156763,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [21:34:02]free response buf [21:34:02]execute_script done [21:34:02]execute_script returns [21:34:02]free content buf [21:34:02]Sock 10.Close socket [21:34:02]Sock 10.Thread stoped [21:34:02]OFD Sender: No OFD packet to send [21:34:07]OFD Sender: No OFD packet to send [21:34:12]OFD Sender: No OFD packet to send [21:34:17]OFD Sender: No OFD packet to send [21:34:22]OFD Sender: No OFD packet to send [21:34:27]OFD Sender: No OFD packet to send [21:34:32]OFD Sender: No OFD packet to send [21:34:37]OFD Sender: No OFD packet to send [21:34:42]OFD Sender: No OFD packet to send [21:34:47]OFD Sender: No OFD packet to send [21:34:52]OFD Sender: No OFD packet to send [21:34:57]OFD Sender: No OFD packet to send [21:35:02]OFD Sender: No OFD packet to send [21:35:07]OFD Sender: No OFD packet to send [21:35:12]OFD Sender: No OFD packet to send [21:35:17]OFD Sender: No OFD packet to send [21:35:22]OFD Sender: No OFD packet to send [21:35:27]OFD Sender: No OFD packet to send [21:35:32]OFD Sender: No OFD packet to send [21:35:37]OFD Sender: No OFD packet to send [21:35:42]OFD Sender: No OFD packet to send [21:35:47]OFD Sender: No OFD packet to send [21:35:52]OFD Sender: No OFD packet to send [21:35:57]OFD Sender: No OFD packet to send [21:36:02]OFD Sender: No OFD packet to send [21:36:07]OFD Sender: No OFD packet to send [21:36:12]OFD Sender: No OFD packet to send [21:36:17]OFD Sender: No OFD packet to send [21:36:22]OFD Sender: No OFD packet to send [21:36:27]OFD Sender: No OFD packet to send [21:36:32]OFD Sender: No OFD packet to send [21:36:37]OFD Sender: No OFD packet to send [21:36:42]OFD Sender: No OFD packet to send [21:36:47]OFD Sender: No OFD packet to send [21:36:52]OFD Sender: No OFD packet to send [21:36:57]OFD Sender: No OFD packet to send [21:37:02]OFD Sender: No OFD packet to send [21:37:07]OFD Sender: No OFD packet to send [21:37:12]OFD Sender: No OFD packet to send [21:37:17]OFD Sender: No OFD packet to send [21:37:22]OFD Sender: No OFD packet to send [21:37:27]OFD Sender: No OFD packet to send [21:37:32]OFD Sender: No OFD packet to send [21:37:37]OFD Sender: No OFD packet to send [21:37:42]OFD Sender: No OFD packet to send [21:37:47]OFD Sender: No OFD packet to send [21:37:52]OFD Sender: No OFD packet to send [21:37:57]OFD Sender: No OFD packet to send [21:38:02]OFD Sender: No OFD packet to send [21:38:07]OFD Sender: No OFD packet to send [21:38:12]OFD Sender: No OFD packet to send [21:38:17]OFD Sender: No OFD packet to send [21:38:22]OFD Sender: No OFD packet to send [21:38:27]OFD Sender: No OFD packet to send [21:38:32]OFD Sender: No OFD packet to send [21:38:37]OFD Sender: No OFD packet to send [21:38:42]OFD Sender: No OFD packet to send [21:38:47]OFD Sender: No OFD packet to send [21:38:52]OFD Sender: No OFD packet to send [21:38:55]accept exits with 8 [21:38:55]New connection [21:38:55]New thread 3066834276 created [21:38:55]Thread 3066977636 joined [21:38:55]Waiting for new connection... [21:38:55] Sock 8.Parse request [21:38:55]Sock 8.Check first char [21:38:55]Sock 8.First char is OK [21:38:55]request: POST /json_proto HTTP/1.0 [21:38:55]Method: POST [21:38:55]URL: /json_proto [21:38:55]Method is POST - this is cgi request [21:38:55]url: /json_proto [21:38:55]query_string will be loaded in cgi processing [21:38:55]execute_cgi json_proto POST (null) [21:38:55]execute_cgi path=json_proto method=POST [21:38:55]POST find Content-Length [21:38:55]Host: 172.17.63.3:8080 [21:38:55]Content-Length: 676 [21:38:55]Content-Type: application/json [21:38:55] [21:38:55]POST finish read [21:38:55]Found Content-Length = 676 [21:38:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99578", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.100, "sum" : 140.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 140.00, "total" : 140.00, "payments": [ { "type": 0, "sum" : 140.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:38:55]execute_script... [21:38:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99578", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.100, "sum" : 140.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 140.00, "total" : 140.00, "payments": [ { "type": 0, "sum" : 140.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:38:55]POST & json_proto [21:38:55]process_json_proto [21:38:55]json parsed OK: [21:38:55]protocol is kg_v1.0 [21:38:55]action value=close_receipt [21:38:55]process_action close_receipt [21:38:55]cmd_close_receipt [21:38:55]MH_GetDate [21:38:55]Write to MH i2c: F0 00 00 85 8A FE [21:38:55]Write i2c OK [21:38:55]MH_I2C_Read... [21:38:55]Read from MH i2c: F0 [21:38:55]MH_I2C_Read... [21:38:55]Read from MH i2c: F0 09 00 [21:38:55]MH_I2C_Read... [21:38:55]Read from MH i2c: F0 09 00 85 8A 00 F7 B2 1E 67 50 D1 6C 64 26 [21:38:55]GetLastDocTimeStamp 1730064847 [21:38:55]current date 1730065143 [21:38:55]FM_GetShiftState [21:38:55]SAM_PROTO_GetShiftState [21:38:55]wFMCommunicate request_size=4 [21:38:55]MH_SAM_APDU [21:38:55]CAPDU: 80 13 01 00 [21:38:55]Write to MH i2c: E2 08 00 86 8A 80 13 01 00 00 00 00 00 8D [21:38:55]Write i2c OK [21:38:55]MH_I2C_Read... [21:38:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:38:55]Read from MH i2c: E2 [21:38:55]MH_I2C_Read... [21:38:55]Read from MH i2c: E2 0E 00 [21:38:55]MH_I2C_Read... [21:38:55]Read from MH i2c: E2 0E 00 86 8A 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 5A [21:38:55]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [21:38:55]wFMCommunicate OK [21:38:55]SAM_PROTO_GetShiftState done [21:38:55]FM_GetShiftState done [21:38:55]opened in 1729989044 [21:38:55]opened+sec_in_day 1730075444 [21:38:55]quantity*price = 14049 [21:38:55]sum+1 = 14050 [21:38:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 140.00 Внесено: 140.00 СДАЧА: 0.00 НСП 1% : 1.24 НДС 12% : 14.92 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 315 27.10.2024 21:39 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156764 ФПД: 22296338781342 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T213903&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156764&fm=22296338781342&tin=02508201610067®Number=0000000000091693&sum=14000 [21:38:56]StoreToDocumentArchive [21:38:56]shift 537 fd 156764 [21:38:56]save to /storage/0537/doc_00156764 [21:38:56]save last doc name /storage/0537/doc_00156764 to /storage/kkm_last_doc_name [21:38:56]save OK [21:38:56]Clear old archive folders... [21:38:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:38:56]tlvbuf is 018F05B0 [21:38:56]SAM_PROTO_ClearQueue [21:38:56]wFMCommunicate request_size=4 [21:38:56]MH_SAM_APDU [21:38:56]CAPDU: 80 09 00 00 [21:38:56]Write to MH i2c: E2 08 00 93 8A 80 09 00 00 00 00 00 00 8F [21:38:56]Write i2c OK [21:38:56]MH_I2C_Read... [21:38:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:38:56]Read from MH i2c: E2 [21:38:56]MH_I2C_Read... [21:38:56]Read from MH i2c: E2 03 00 [21:38:56]MH_I2C_Read... [21:38:56]Read from MH i2c: E2 03 00 93 8A 00 90 00 91 [21:38:56]RAPDU: 90 00 [21:38:56]wFMCommunicate OK [21:38:56]SAM_PROTO_ClearQueue done [21:38:56]KKMCreateOFDPacket [21:38:56]OFDProtocolAddRootSTLVToBuf [21:38:56]FM_MakeSignedData [21:38:56]FM_MakeSignedData [21:38:56]SAM_PROTO_SignData [21:38:56]wFMCommunicate request_size=4 [21:38:56]MH_SAM_APDU [21:38:56]CAPDU: 80 0D 01 02 [21:38:56]Write to MH i2c: E2 08 00 94 8A 80 0D 01 02 00 00 00 00 97 [21:38:56]Write i2c OK [21:38:56]MH_I2C_Read... [21:38:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:38:56]Read from MH i2c: E2 [21:38:56]MH_I2C_Read... [21:38:56]Read from MH i2c: E2 03 00 [21:38:56]MH_I2C_Read... [21:38:56]Read from MH i2c: E2 03 00 94 8A 00 90 00 92 [21:38:56]RAPDU: 90 00 [21:38:56]wFMCommunicate OK [21:38:56]wFMCommunicate request_size=255 [21:38:56]MH_SAM_APDU [21:38: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 34 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E1 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 F7 B2 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 5C 64 02 00 35 04 06 00 14 [21:38:56]Write to MH i2c: E2 02 01 95 8A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 34 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E1 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 F7 B2 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 5C 64 02 00 35 04 06 00 14 00 00 B1 [21:38:56]Write i2c OK [21:38:56]MH_I2C_Read... [21:38:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:38:57]Read from MH i2c: E2 [21:38:57]MH_I2C_Read... [21:38:57]Read from MH i2c: E2 03 00 [21:38:57]MH_I2C_Read... [21:38:57]Read from MH i2c: E2 03 00 95 8A 00 90 00 93 [21:38:57]RAPDU: 90 00 [21:38:57]wFMCommunicate OK [21:38:57]wFMCommunicate request_size=10 [21:38:57]MH_SAM_APDU [21:38:57]CAPDU: 80 0D 02 02 05 47 45 5A 54 9E [21:38:57]Write to MH i2c: E2 0D 00 96 8A 80 0D 02 02 05 00 47 45 5A 54 9E 00 00 7C [21:38:57]Write i2c OK [21:38:57]MH_I2C_Read... [21:38:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:38:57]Read from MH i2c: E2 [21:38:57]MH_I2C_Read... [21:38:57]Read from MH i2c: E2 03 00 [21:38:57]MH_I2C_Read... [21:38:57]Read from MH i2c: E2 03 00 96 8A 00 90 00 94 [21:38:57]RAPDU: 90 00 [21:38:57]wFMCommunicate OK [21:38:57]wFMCommunicate request_size=4 [21:38:57]MH_SAM_APDU [21:38:57]CAPDU: 80 0D 03 02 [21:38:57]Write to MH i2c: E2 08 00 97 8A 80 0D 03 02 00 00 00 00 9C [21:38:57]Write i2c OK [21:38:57]MH_I2C_Read... [21:38:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:38:57]Read from MH i2c: E2 [21:38:57]MH_I2C_Read... [21:38:57]Read from MH i2c: E2 0B 00 [21:38:57]MH_I2C_Read... [21:38:57]Read from MH i2c: E2 0B 00 97 8A 00 A6 D4 D5 89 91 F6 B0 C8 90 00 74 [21:38:57]RAPDU: A6 D4 D5 89 91 F6 B0 C8 90 00 [21:38:57]wFMCommunicate OK [21:38:57]SAM_PROTO_SignData done [21:38:57]FM_MakeSignedData done [21:38:57]CreateOFDProtocolMessage [21:38:57]wFMCommunicate request_size=4 [21:38:57]MH_SAM_APDU [21:38:57]CAPDU: 80 11 00 00 [21:38:57]Write to MH i2c: E2 08 00 98 8A 80 11 00 00 00 00 00 00 9C [21:38:57]Write i2c OK [21:38:57]MH_I2C_Read... [21:38:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:38:57]Read from MH i2c: E2 [21:38:57]MH_I2C_Read... [21:38:57]Read from MH i2c: E2 17 00 [21:38:57]MH_I2C_Read... [21:38:57]Read from MH i2c: E2 17 00 98 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 F1 [21:38:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [21:38:57]wFMCommunicate OK [21:38:57]CreateOFDProtocolMessage done [21:38:57]OFDSenderStorePacket 156764 [21:38:57]StoreOFDPacket docnum=156764 [21:38:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 80 E2 07 01 DD 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 34 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E1 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 F7 B2 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 5C 64 02 00 35 04 06 00 14 47 45 5A 54 9E A6 D4 D5 89 91 F6 B0 C8 [21:38:57]CheckFolder [21:38:57]dirname=/storage/ofd_packets [21:38:57]CheckFolder done [21:38:57]ProducePacketName [21:38:57]name=ofd_packets/00156764 [21:38:57]NVStorageSaveData ofd_packets/00156764 [21:38:57]File name is /storage/ofd_packets/00156764 [21:38:57]Write 301 bytes [21:38:57]NVStorageSaveData done [21:38:57]OFDSenderStorePacket done [21:38:57]KKMCreateOFDPacket done [21:38:57]NVStorageSaveData kkm_last_timestamp [21:38:57]File name is /storage/kkm_last_timestamp [21:38:57]Write 4 bytes [21:38:57]NVStorageSaveData done [21:38:57]ExternCall_PrintAddStr [21:38:57]wPrintStart [21:38:57]Write to MH i2c: 01 00 00 99 8A 23 [21:38:57]Write i2c OK [21:38:57]MH_I2C_Read... [21:38:57]Read from MH i2c: 01 [21:38:57]MH_I2C_Read... [21:38:57]Read from MH i2c: 01 07 00 [21:38:57]MH_I2C_Read... [21:38:57]Read from MH i2c: 01 07 00 99 8A 00 00 00 00 00 FF 0F 38 [21:38:57]RasterBufferAndPrint [21:38:57]line Счет N : (1)99578 [21:38:57]line ИНН: 02508201610067 [21:38:57]line Контрольно-Кассовый Чек [21:38:57]line ПРОДАЖА [21:38:57]line ТРК (МРК, ГНК) : 31 [21:38:57]line Товар: 2710124130 [21:38:57]line Аи-92-К-5 [21:38:57]line 2.100 * 66.90 [21:38:57]line = 140.49 [21:38:57]line НДС 12% НСП 1% [21:38:57]line > о реализуемом товаре [21:38:57]line ОКРУГЛЕНИЕ: -0.49 [21:38:57]line ИТОГО: 140.00 [21:38:57]line Внесено: 140.00 [21:38:57]line СДАЧА: 0.00 [21:38:57]line НСП 1% : 1.24 [21:38:57]line НДС 12% : 14.92 [21:38:57]line Наличными: 140.00 [21:38:57]line Безнал.: 0.00 [21:38:57]line Место: АЗС № 143 "Партнер Нефть" [21:38:57]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [21:38:57]line СНО: Общий режим [21:38:57]line Чек 315 27.10.2024 21:39 [21:38:57]line Смена: 537 ФФД: 1.0 [21:38:57]line ЗНМ: 0300000096 [21:38:57]line РНМ: 0000000000091693 [21:38:57]line Версия ККМ: 001 [21:38:57]line ФМ: 0000000000871792 [21:38:57]line ФД: 156764 [21:38:57]line ФПД: 22296338781342 [21:38:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T213903&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156764&fm=22296338781342&tin=02508201610067®Number=0000000000091693&sum=14000 [21:38:57]OFD Sender: Processing packet 156764 [packets to send 31, broken 30] [21:38:57]ProducePacketName [21:38:57]name=ofd_packets/00156764 [21:38:57]OFD Sender: To server: pG, [21:38:57]CommunicateWithHost lk.salyk.kg:30040 [21:38:57]ConnectInit lk.salyk.kg [21:38:57]written 0, free lines is 4095 [21:38:57]Connected sock=10 [21:38:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 80 E2 07 01 DD 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 34 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E1 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 F7 B2 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 5C 64 02 00 35 04 06 00 14 47 45 5A 54 9E A6 D4 D5 89 91 F6 B0 C8 [21:38:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 FB 78 47 00 35 1F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 5C 64 02 00 F4 03 04 00 65 58 1E 67 B6 04 01 00 00 C5 C5 80 2E 3E 96 5D CB [21:38:58]CommunicateWithHost err = 0 [21:38:58]CheckOFDResponse [21:38:58]1017 (14) - 77093643461234 [21:38:58]1041 (16) - 0000000000871792 [21:38:58]1040 (4) - 156764 [21:38:58]1012 (4) - 27.10.2024 15:12 [21:38:58]1206 (1) - 0 [21:38:58]OFD Sender: Remove packet 156764 [21:38:58]ProducePacketName [21:38:58]name=ofd_packets/00156764 [21:38:58]NVStorageDeleteData [21:38:58]Write to MH i2c: 01 00 00 C4 8A 4E [21:38:58]Write i2c OK [21:38:58]MH_I2C_Read... [21:38:58]Read from MH i2c: 01 [21:38:58]MH_I2C_Read... [21:38:58]Read from MH i2c: 01 07 00 [21:38:58]MH_I2C_Read... [21:38:58]Read from MH i2c: 01 07 00 C4 8A 00 00 00 00 00 E1 0C 42 [21:38:58]RasterBufferAndPrint [21:38:58]line [21:38:58]line [21:38:58]line [21:38:58]line [21:38:58]line [21:38:58]written 0, free lines is 3303 [21:38:58]process_action close_receipt done [21:38:58]requested_data is exist [21:38:58]produce_requested_data [21:38:58]requested_item fm.sn is exist - process it [21:38:58]wFMCommunicate request_size=4 [21:38:58]MH_SAM_APDU [21:38:58]CAPDU: 80 11 00 00 [21:38:58]Write to MH i2c: E2 08 00 CB 8A 80 11 00 00 00 00 00 00 CF [21:38:58]Write i2c OK [21:38:58]MH_I2C_Read... [21:38:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:38:58]Read from MH i2c: E2 [21:38:58]MH_I2C_Read... [21:38:58]Read from MH i2c: E2 17 00 [21:38:58]MH_I2C_Read... [21:38:58]Read from MH i2c: E2 17 00 CB 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 24 [21:38:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [21:38:58]wFMCommunicate OK [21:38:58]requested_item fd.num is exist - process it [21:38:58]SAM_PROTO_GetFieldsCounters [21:38:58]wFMCommunicate request_size=4 [21:38:58]MH_SAM_APDU [21:38:58]CAPDU: 80 13 00 00 [21:38:58]Write to MH i2c: E2 08 00 CC 8A 80 13 00 00 00 00 00 00 D2 [21:38:58]Write i2c OK [21:38:58]MH_I2C_Read... [21:38:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:38:58]Read from MH i2c: E2 [21:38:58]MH_I2C_Read... [21:38:58]Read from MH i2c: E2 62 00 [21:38:58]MH_I2C_Read... [21:38:58]Read from MH i2c: E2 62 00 CC 8A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 5C 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 3B 01 00 00 5E 04 04 00 3B 01 00 00 57 04 04 00 3C 01 00 00 19 04 04 00 00 00 00 00 90 00 89 [21:38:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 5C 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 3B 01 00 00 5E 04 04 00 3B 01 00 00 57 04 04 00 3C 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:38:58]wFMCommunicate OK [21:38:58]SAM_PROTO_GetFieldsCounters done [21:38:58]requested_item shift.num is exist - process it [21:38:58]requested_item shift.opened is exist - process it [21:38:58]req_shift_opened [21:38:58]FM_GetShiftState [21:38:58]SAM_PROTO_GetShiftState [21:38:58]wFMCommunicate request_size=4 [21:38:58]MH_SAM_APDU [21:38:58]CAPDU: 80 13 01 00 [21:38:58]Write to MH i2c: E2 08 00 CD 8A 80 13 01 00 00 00 00 00 D4 [21:38:58]Write i2c OK [21:38:58]MH_I2C_Read... [21:38:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:38:58]Read from MH i2c: E2 [21:38:58]MH_I2C_Read... [21:38:58]Read from MH i2c: E2 0E 00 [21:38:58]MH_I2C_Read... [21:38:58]Read from MH i2c: E2 0E 00 CD 8A 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 A1 [21:38:58]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [21:38:58]wFMCommunicate OK [21:38:58]SAM_PROTO_GetShiftState done [21:38:58]FM_GetShiftState done [21:38:58]req_shift_opened done [21:38:58]requested_item shift.open_date is exist - process it [21:38:58]req_shift_open_date [21:38:58]req_shift_open_date done [21:38:58]produce_requested_data done [21:38:58]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156764,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [21:38:58]process_action_free close_receipt [21:38:58]json_value_free [21:38:58]json_value_free done [21:38:58]process_json_proto returns [21:38:58]Send response to host [21:38:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156764,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [21:38:58]free response buf [21:38:58]execute_script done [21:38:58]execute_script returns [21:38:58]free content buf [21:38:58]Sock 8.Close socket [21:38:58]Sock 8.Thread stoped [21:38:58]OFD Sender: No OFD packet to send [21:39:03]OFD Sender: No OFD packet to send [21:39:08]OFD Sender: No OFD packet to send [21:39:13]OFD Sender: No OFD packet to send [21:39:18]OFD Sender: No OFD packet to send [21:39:23]OFD Sender: No OFD packet to send [21:39:28]OFD Sender: No OFD packet to send [21:39:33]OFD Sender: No OFD packet to send [21:39:38]OFD Sender: No OFD packet to send [21:39:43]OFD Sender: No OFD packet to send [21:39:48]OFD Sender: No OFD packet to send [21:39:53]OFD Sender: No OFD packet to send [21:39:58]OFD Sender: No OFD packet to send [21:40:03]OFD Sender: No OFD packet to send [21:40:08]OFD Sender: No OFD packet to send [21:40:13]OFD Sender: No OFD packet to send [21:40:18]OFD Sender: No OFD packet to send [21:40:23]OFD Sender: No OFD packet to send [21:40:28]OFD Sender: No OFD packet to send [21:40:33]OFD Sender: No OFD packet to send [21:40:38]OFD Sender: No OFD packet to send [21:40:43]OFD Sender: No OFD packet to send [21:40:48]OFD Sender: No OFD packet to send [21:40:53]OFD Sender: No OFD packet to send [21:40:58]OFD Sender: No OFD packet to send [21:41:03]OFD Sender: No OFD packet to send [21:41:08]OFD Sender: No OFD packet to send [21:41:13]OFD Sender: No OFD packet to send [21:41:18]OFD Sender: No OFD packet to send [21:41:23]OFD Sender: No OFD packet to send [21:41:28]OFD Sender: No OFD packet to send [21:41:33]OFD Sender: No OFD packet to send [21:41:38]OFD Sender: No OFD packet to send [21:41:43]OFD Sender: No OFD packet to send [21:41:48]OFD Sender: No OFD packet to send [21:41:53]OFD Sender: No OFD packet to send [21:41:58]OFD Sender: No OFD packet to send [21:42:03]OFD Sender: No OFD packet to send [21:42:08]OFD Sender: No OFD packet to send [21:42:13]OFD Sender: No OFD packet to send [21:42:18]OFD Sender: No OFD packet to send [21:42:23]OFD Sender: No OFD packet to send [21:42:28]OFD Sender: No OFD packet to send [21:42:33]OFD Sender: No OFD packet to send [21:42:38]OFD Sender: No OFD packet to send [21:42:43]OFD Sender: No OFD packet to send [21:42:48]OFD Sender: No OFD packet to send [21:42:53]OFD Sender: No OFD packet to send [21:42:58]OFD Sender: No OFD packet to send [21:43:03]OFD Sender: No OFD packet to send [21:43:08]OFD Sender: No OFD packet to send [21:43:13]OFD Sender: No OFD packet to send [21:43:18]OFD Sender: No OFD packet to send [21:43:23]OFD Sender: No OFD packet to send [21:43:28]OFD Sender: No OFD packet to send [21:43:33]OFD Sender: No OFD packet to send [21:43:38]OFD Sender: No OFD packet to send [21:43:43]OFD Sender: No OFD packet to send [21:43:48]OFD Sender: No OFD packet to send [21:43:53]OFD Sender: No OFD packet to send [21:43:58]OFD Sender: No OFD packet to send [21:44:03]OFD Sender: No OFD packet to send [21:44:08]OFD Sender: No OFD packet to send [21:44:13]OFD Sender: No OFD packet to send [21:44:18]OFD Sender: No OFD packet to send [21:44:23]OFD Sender: No OFD packet to send [21:44:28]OFD Sender: No OFD packet to send [21:44:33]OFD Sender: No OFD packet to send [21:44:38]OFD Sender: No OFD packet to send [21:44:43]OFD Sender: No OFD packet to send [21:44:48]OFD Sender: No OFD packet to send [21:44:53]OFD Sender: No OFD packet to send [21:44:58]OFD Sender: No OFD packet to send [21:45:03]OFD Sender: No OFD packet to send [21:45:08]OFD Sender: No OFD packet to send [21:45:13]OFD Sender: No OFD packet to send [21:45:18]OFD Sender: No OFD packet to send [21:45:23]OFD Sender: No OFD packet to send [21:45:28]OFD Sender: No OFD packet to send [21:45:33]OFD Sender: No OFD packet to send [21:45:38]OFD Sender: No OFD packet to send [21:45:43]OFD Sender: No OFD packet to send [21:45:48]OFD Sender: No OFD packet to send [21:45:53]OFD Sender: No OFD packet to send [21:45:58]OFD Sender: No OFD packet to send [21:46:03]OFD Sender: No OFD packet to send [21:46:08]OFD Sender: No OFD packet to send [21:46:13]OFD Sender: No OFD packet to send [21:46:18]OFD Sender: No OFD packet to send [21:46:23]OFD Sender: No OFD packet to send [21:46:28]OFD Sender: No OFD packet to send [21:46:33]OFD Sender: No OFD packet to send [21:46:38]OFD Sender: No OFD packet to send [21:46:43]OFD Sender: No OFD packet to send [21:46:48]OFD Sender: No OFD packet to send [21:46:53]OFD Sender: No OFD packet to send [21:46:58]OFD Sender: No OFD packet to send [21:47:03]OFD Sender: No OFD packet to send [21:47:08]OFD Sender: No OFD packet to send [21:47:13]OFD Sender: No OFD packet to send [21:47:18]OFD Sender: No OFD packet to send [21:47:23]OFD Sender: No OFD packet to send [21:47:28]OFD Sender: No OFD packet to send [21:47:33]OFD Sender: No OFD packet to send [21:47:39]OFD Sender: No OFD packet to send [21:47:44]OFD Sender: No OFD packet to send [21:47:49]OFD Sender: No OFD packet to send [21:47:54]OFD Sender: No OFD packet to send [21:47:59]OFD Sender: No OFD packet to send [21:48:04]OFD Sender: No OFD packet to send [21:48:09]OFD Sender: No OFD packet to send [21:48:14]OFD Sender: No OFD packet to send [21:48:19]OFD Sender: No OFD packet to send [21:48:24]OFD Sender: No OFD packet to send [21:48:29]OFD Sender: No OFD packet to send [21:48:34]OFD Sender: No OFD packet to send [21:48:39]OFD Sender: No OFD packet to send [21:48:44]OFD Sender: No OFD packet to send [21:48:49]OFD Sender: No OFD packet to send [21:48:54]OFD Sender: No OFD packet to send [21:48:57]accept exits with 9 [21:48:57]New connection [21:48:57]New thread 3066977636 created [21:48:57]Thread 3066834276 joined [21:48:57]Waiting for new connection... [21:48:57] Sock 9.Parse request [21:48:57]Sock 9.Check first char [21:48:57]Sock 9.First char is OK [21:48:57]request: POST /json_proto HTTP/1.0 [21:48:57]Method: POST [21:48:57]URL: /json_proto [21:48:57]Method is POST - this is cgi request [21:48:57]url: /json_proto [21:48:57]query_string will be loaded in cgi processing [21:48:57]execute_cgi json_proto POST (null) [21:48:57]execute_cgi path=json_proto method=POST [21:48:57]POST find Content-Length [21:48:57]Host: 172.17.63.3:8080 [21:48:57]Content-Length: 676 [21:48:57]Content-Type: application/json [21:48:57] [21:48:57]POST finish read [21:48:57]Found Content-Length = 676 [21:48:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99579", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "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" ] } } [21:48:57]execute_script... [21:48:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99579", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "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" ] } } [21:48:57]POST & json_proto [21:48:57]process_json_proto [21:48:57]json parsed OK: [21:48:57]protocol is kg_v1.0 [21:48:57]action value=close_receipt [21:48:57]process_action close_receipt [21:48:57]cmd_close_receipt [21:48:57]MH_GetDate [21:48:57]Write to MH i2c: F0 00 00 CE 8A 47 [21:48:57]Write i2c OK [21:48:57]MH_I2C_Read... [21:48:57]Read from MH i2c: F0 [21:48:57]MH_I2C_Read... [21:48:57]Read from MH i2c: F0 09 00 [21:48:57]MH_I2C_Read... [21:48:57]Read from MH i2c: F0 09 00 CE 8A 00 50 B5 1E 67 50 D1 6C 64 CB [21:48:57]GetLastDocTimeStamp 1730065143 [21:48:57]current date 1730065744 [21:48:57]FM_GetShiftState [21:48:57]SAM_PROTO_GetShiftState [21:48:57]wFMCommunicate request_size=4 [21:48:57]MH_SAM_APDU [21:48:57]CAPDU: 80 13 01 00 [21:48:57]Write to MH i2c: E2 08 00 CF 8A 80 13 01 00 00 00 00 00 D6 [21:48:57]Write i2c OK [21:48:57]MH_I2C_Read... [21:48:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:48:57]Read from MH i2c: E2 [21:48:57]MH_I2C_Read... [21:48:57]Read from MH i2c: E2 0E 00 [21:48:57]MH_I2C_Read... [21:48:57]Read from MH i2c: E2 0E 00 CF 8A 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 A3 [21:48:57]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [21:48:57]wFMCommunicate OK [21:48:57]SAM_PROTO_GetShiftState done [21:48:57]FM_GetShiftState done [21:48:57]opened in 1729989044 [21:48:57]opened+sec_in_day 1730075444 [21:48:57]quantity*price = 20003 [21:48:57]sum+1 = 20004 [21:48:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 316 27.10.2024 21:49 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156765 ФПД: 124588966755785 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T214904&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156765&fm=124588966755785&tin=02508201610067®Number=0000000000091693&sum=20000 [21:48:58]StoreToDocumentArchive [21:48:58]shift 537 fd 156765 [21:48:58]save to /storage/0537/doc_00156765 [21:48:58]save last doc name /storage/0537/doc_00156765 to /storage/kkm_last_doc_name [21:48:58]save OK [21:48:58]Clear old archive folders... [21:48:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:48:58]tlvbuf is 016A3940 [21:48:58]SAM_PROTO_ClearQueue [21:48:58]wFMCommunicate request_size=4 [21:48:58]MH_SAM_APDU [21:48:58]CAPDU: 80 09 00 00 [21:48:58]Write to MH i2c: E2 08 00 DC 8A 80 09 00 00 00 00 00 00 D8 [21:48:58]Write i2c OK [21:48:58]MH_I2C_Read... [21:48:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:48:58]Read from MH i2c: E2 [21:48:58]MH_I2C_Read... [21:48:58]Read from MH i2c: E2 03 00 [21:48:58]MH_I2C_Read... [21:48:58]Read from MH i2c: E2 03 00 DC 8A 00 90 00 DA [21:48:58]RAPDU: 90 00 [21:48:58]wFMCommunicate OK [21:48:58]SAM_PROTO_ClearQueue done [21:48:58]KKMCreateOFDPacket [21:48:58]OFDProtocolAddRootSTLVToBuf [21:48:58]FM_MakeSignedData [21:48:58]FM_MakeSignedData [21:48:58]SAM_PROTO_SignData [21:48:58]wFMCommunicate request_size=4 [21:48:58]MH_SAM_APDU [21:48:58]CAPDU: 80 0D 01 02 [21:48:58]Write to MH i2c: E2 08 00 DD 8A 80 0D 01 02 00 00 00 00 E0 [21:48:58]Write i2c OK [21:48:58]MH_I2C_Read... [21:48:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:48:58]Read from MH i2c: E2 [21:48:58]MH_I2C_Read... [21:48:58]Read from MH i2c: E2 03 00 [21:48:58]MH_I2C_Read... [21:48:58]Read from MH i2c: E2 03 00 DD 8A 00 90 00 DB [21:48:58]RAPDU: 90 00 [21:48:58]wFMCommunicate OK [21:48:58]wFMCommunicate request_size=255 [21:48:58]MH_SAM_APDU [21:48: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 3C 01 00 00 F4 03 04 00 50 B5 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 5D 64 02 00 35 04 06 00 71 [21:48:58]Write to MH i2c: E2 02 01 DE 8A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 3C 01 00 00 F4 03 04 00 50 B5 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 5D 64 02 00 35 04 06 00 71 00 00 4C [21:48:58]Write i2c OK [21:48:58]MH_I2C_Read... [21:48:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:48:58]Read from MH i2c: E2 [21:48:58]MH_I2C_Read... [21:48:58]Read from MH i2c: E2 03 00 [21:48:58]MH_I2C_Read... [21:48:58]Read from MH i2c: E2 03 00 DE 8A 00 90 00 DC [21:48:58]RAPDU: 90 00 [21:48:58]wFMCommunicate OK [21:48:58]wFMCommunicate request_size=10 [21:48:58]MH_SAM_APDU [21:48:58]CAPDU: 80 0D 02 02 05 50 21 1B 3D C9 [21:48:58]Write to MH i2c: E2 0D 00 DF 8A 80 0D 02 02 05 00 50 21 1B 3D C9 00 00 7F [21:48:58]Write i2c OK [21:48:58]MH_I2C_Read... [21:48:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:48:58]Read from MH i2c: E2 [21:48:58]MH_I2C_Read... [21:48:58]Read from MH i2c: E2 03 00 [21:48:58]MH_I2C_Read... [21:48:58]Read from MH i2c: E2 03 00 DF 8A 00 90 00 DD [21:48:58]RAPDU: 90 00 [21:48:58]wFMCommunicate OK [21:48:58]wFMCommunicate request_size=4 [21:48:58]MH_SAM_APDU [21:48:58]CAPDU: 80 0D 03 02 [21:48:58]Write to MH i2c: E2 08 00 E0 8A 80 0D 03 02 00 00 00 00 E5 [21:48:58]Write i2c OK [21:48:58]MH_I2C_Read... [21:48:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:48:58]Read from MH i2c: E2 [21:48:58]MH_I2C_Read... [21:48:58]Read from MH i2c: E2 0B 00 [21:48:58]MH_I2C_Read... [21:48:58]Read from MH i2c: E2 0B 00 E0 8A 00 23 17 3E B6 6B 72 E0 98 90 00 69 [21:48:58]RAPDU: 23 17 3E B6 6B 72 E0 98 90 00 [21:48:58]wFMCommunicate OK [21:48:58]SAM_PROTO_SignData done [21:48:58]FM_MakeSignedData done [21:48:58]CreateOFDProtocolMessage [21:48:58]wFMCommunicate request_size=4 [21:48:58]MH_SAM_APDU [21:48:58]CAPDU: 80 11 00 00 [21:48:58]Write to MH i2c: E2 08 00 E1 8A 80 11 00 00 00 00 00 00 E5 [21:48:58]Write i2c OK [21:48:58]MH_I2C_Read... [21:48:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:48:58]Read from MH i2c: E2 [21:48:58]MH_I2C_Read... [21:48:58]Read from MH i2c: E2 17 00 [21:48:58]MH_I2C_Read... [21:48:58]Read from MH i2c: E2 17 00 E1 8A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 3A [21:48:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [21:48:58]wFMCommunicate OK [21:48:58]CreateOFDProtocolMessage done [21:48:58]OFDSenderStorePacket 156765 [21:48:58]StoreOFDPacket docnum=156765 [21:48:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 08 3F 07 01 AA 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 3C 01 00 00 F4 03 04 00 50 B5 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 5D 64 02 00 35 04 06 00 71 50 21 1B 3D C9 23 17 3E B6 6B 72 E0 98 [21:48:58]CheckFolder [21:48:58]dirname=/storage/ofd_packets [21:48:58]CheckFolder done [21:48:58]ProducePacketName [21:48:58]name=ofd_packets/00156765 [21:48:58]NVStorageSaveData ofd_packets/00156765 [21:48:58]File name is /storage/ofd_packets/00156765 [21:48:58]Write 301 bytes [21:48:58]NVStorageSaveData done [21:48:58]OFDSenderStorePacket done [21:48:58]KKMCreateOFDPacket done [21:48:58]NVStorageSaveData kkm_last_timestamp [21:48:58]File name is /storage/kkm_last_timestamp [21:48:58]Write 4 bytes [21:48:58]NVStorageSaveData done [21:48:58]ExternCall_PrintAddStr [21:48:58]wPrintStart [21:48:58]Write to MH i2c: 01 00 00 E2 8A 6C [21:48:58]Write i2c OK [21:48:58]MH_I2C_Read... [21:48:58]Read from MH i2c: 01 [21:48:58]MH_I2C_Read... [21:48:58]Read from MH i2c: 01 07 00 [21:48:58]MH_I2C_Read... [21:48:58]Read from MH i2c: 01 07 00 E2 8A 00 00 00 00 00 FF 0F 81 [21:48:58]RasterBufferAndPrint [21:48:58]line Счет N : (1)99579 [21:48:58]line ИНН: 02508201610067 [21:48:58]line Контрольно-Кассовый Чек [21:48:58]line ПРОДАЖА [21:48:58]line ТРК (МРК, ГНК) : 31 [21:48:58]line Товар: 2710124130 [21:48:58]line Аи-92-К-5 [21:48:58]line 2.990 * 66.90 [21:48:58]line = 200.03 [21:48:58]line НДС 12% НСП 1% [21:48:58]line > о реализуемом товаре [21:48:58]line ОКРУГЛЕНИЕ: -0.03 [21:48:58]line ИТОГО: 200.00 [21:48:58]line Внесено: 200.00 [21:48:58]line СДАЧА: 0.00 [21:48:58]line НСП 1% : 1.77 [21:48:58]line НДС 12% : 21.24 [21:48:58]line Наличными: 200.00 [21:48:58]line Безнал.: 0.00 [21:48:58]line Место: АЗС № 143 "Партнер Нефть" [21:48:58]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [21:48:58]line СНО: Общий режим [21:48:58]line Чек 316 27.10.2024 21:49 [21:48:58]line Смена: 537 ФФД: 1.0 [21:48:58]line ЗНМ: 0300000096 [21:48:58]line РНМ: 0000000000091693 [21:48:58]line Версия ККМ: 001 [21:48:58]line ФМ: 0000000000871792 [21:48:58]line ФД: 156765 [21:48:58]line ФПД: 124588966755785 [21:48:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T214904&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156765&fm=124588966755785&tin=02508201610067®Number=0000000000091693&sum=20000 [21:48:59]OFD Sender: Processing packet 156765 [packets to send 31, broken 30] [21:48:59]ProducePacketName [21:48:59]name=ofd_packets/00156765 [21:48:59]OFD Sender: To server: pG, [21:48:59]CommunicateWithHost lk.salyk.kg:30040 [21:48:59]ConnectInit lk.salyk.kg [21:48:59]written 0, free lines is 4095 [21:48:59]Connected sock=10 [21:48:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 08 3F 07 01 AA 70 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 3C 01 00 00 F4 03 04 00 50 B5 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 5D 64 02 00 35 04 06 00 71 50 21 1B 3D C9 23 17 3E B6 6B 72 E0 98 [21:48:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 40 D4 47 00 EE 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 5D 64 02 00 F4 03 04 00 BF 5A 1E 67 B6 04 01 00 00 68 12 63 D3 75 D0 F0 E9 [21:48:59]CommunicateWithHost err = 0 [21:48:59]CheckOFDResponse [21:48:59]1017 (14) - 77093643461234 [21:48:59]1041 (16) - 0000000000871792 [21:48:59]1040 (4) - 156765 [21:48:59]1012 (4) - 27.10.2024 15:22 [21:48:59]1206 (1) - 0 [21:48:59]OFD Sender: Remove packet 156765 [21:48:59]ProducePacketName [21:48:59]name=ofd_packets/00156765 [21:48:59]NVStorageDeleteData [21:48:59]Write to MH i2c: 01 00 00 0D 8B 98 [21:48:59]Write i2c OK [21:48:59]MH_I2C_Read... [21:48:59]Read from MH i2c: 01 [21:48:59]MH_I2C_Read... [21:48:59]Read from MH i2c: 01 07 00 [21:48:59]MH_I2C_Read... [21:48:59]Read from MH i2c: 01 07 00 0D 8B 00 00 00 00 00 E4 0C 8F [21:48:59]RasterBufferAndPrint [21:48:59]line [21:48:59]line [21:48:59]line [21:48:59]line [21:48:59]line [21:48:59]written 0, free lines is 3309 [21:48:59]process_action close_receipt done [21:48:59]requested_data is exist [21:48:59]produce_requested_data [21:48:59]requested_item fm.sn is exist - process it [21:48:59]wFMCommunicate request_size=4 [21:48:59]MH_SAM_APDU [21:48:59]CAPDU: 80 11 00 00 [21:48:59]Write to MH i2c: E2 08 00 14 8B 80 11 00 00 00 00 00 00 19 [21:48:59]Write i2c OK [21:48:59]MH_I2C_Read... [21:48:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:48:59]Read from MH i2c: E2 [21:48:59]MH_I2C_Read... [21:48:59]Read from MH i2c: E2 17 00 [21:48:59]MH_I2C_Read... [21:48:59]Read from MH i2c: E2 17 00 14 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 6E [21:48:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [21:48:59]wFMCommunicate OK [21:48:59]requested_item fd.num is exist - process it [21:48:59]SAM_PROTO_GetFieldsCounters [21:48:59]wFMCommunicate request_size=4 [21:48:59]MH_SAM_APDU [21:48:59]CAPDU: 80 13 00 00 [21:48:59]Write to MH i2c: E2 08 00 15 8B 80 13 00 00 00 00 00 00 1C [21:48:59]Write i2c OK [21:48:59]MH_I2C_Read... [21:48:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:48:59]Read from MH i2c: E2 [21:48:59]MH_I2C_Read... [21:48:59]Read from MH i2c: E2 62 00 [21:48:59]MH_I2C_Read... [21:48:59]Read from MH i2c: E2 62 00 15 8B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 5D 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 3C 01 00 00 5E 04 04 00 3C 01 00 00 57 04 04 00 3D 01 00 00 19 04 04 00 00 00 00 00 90 00 D7 [21:48:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 5D 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 3C 01 00 00 5E 04 04 00 3C 01 00 00 57 04 04 00 3D 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:48:59]wFMCommunicate OK [21:48:59]SAM_PROTO_GetFieldsCounters done [21:48:59]requested_item shift.num is exist - process it [21:48:59]requested_item shift.opened is exist - process it [21:48:59]req_shift_opened [21:48:59]FM_GetShiftState [21:48:59]SAM_PROTO_GetShiftState [21:48:59]wFMCommunicate request_size=4 [21:48:59]MH_SAM_APDU [21:48:59]CAPDU: 80 13 01 00 [21:48:59]Write to MH i2c: E2 08 00 16 8B 80 13 01 00 00 00 00 00 1E [21:48:59]Write i2c OK [21:48:59]MH_I2C_Read... [21:48:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:48:59]Read from MH i2c: E2 [21:48:59]MH_I2C_Read... [21:48:59]Read from MH i2c: E2 0E 00 [21:48:59]MH_I2C_Read... [21:48:59]Read from MH i2c: E2 0E 00 16 8B 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 EB [21:48:59]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [21:48:59]wFMCommunicate OK [21:48:59]SAM_PROTO_GetShiftState done [21:48:59]FM_GetShiftState done [21:48:59]req_shift_opened done [21:48:59]requested_item shift.open_date is exist - process it [21:48:59]req_shift_open_date [21:48:59]req_shift_open_date done [21:48:59]produce_requested_data done [21:48:59]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156765,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [21:48:59]process_action_free close_receipt [21:48:59]json_value_free [21:48:59]json_value_free done [21:48:59]process_json_proto returns [21:48:59]Send response to host [21:48:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156765,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [21:48:59]free response buf [21:48:59]execute_script done [21:48:59]execute_script returns [21:48:59]free content buf [21:48:59]Sock 9.Close socket [21:48:59]Sock 9.Thread stoped [21:48:59]OFD Sender: No OFD packet to send [21:49:04]OFD Sender: No OFD packet to send [21:49:09]OFD Sender: No OFD packet to send [21:49:14]OFD Sender: No OFD packet to send [21:49:19]OFD Sender: No OFD packet to send [21:49:24]OFD Sender: No OFD packet to send [21:49:29]OFD Sender: No OFD packet to send [21:49:34]OFD Sender: No OFD packet to send [21:49:39]OFD Sender: No OFD packet to send [21:49:44]OFD Sender: No OFD packet to send [21:49:49]OFD Sender: No OFD packet to send [21:49:54]OFD Sender: No OFD packet to send [21:50:00]OFD Sender: No OFD packet to send [21:50:05]OFD Sender: No OFD packet to send [21:50:10]OFD Sender: No OFD packet to send [21:50:15]OFD Sender: No OFD packet to send [21:50:20]OFD Sender: No OFD packet to send [21:50:25]OFD Sender: No OFD packet to send [21:50:30]OFD Sender: No OFD packet to send [21:50:35]OFD Sender: No OFD packet to send [21:50:40]OFD Sender: No OFD packet to send [21:50:45]OFD Sender: No OFD packet to send [21:50:50]OFD Sender: No OFD packet to send [21:50:55]OFD Sender: No OFD packet to send [21:51:00]OFD Sender: No OFD packet to send [21:51:05]OFD Sender: No OFD packet to send [21:51:10]OFD Sender: No OFD packet to send [21:51:15]OFD Sender: No OFD packet to send [21:51:20]OFD Sender: No OFD packet to send [21:51:25]OFD Sender: No OFD packet to send [21:51:30]OFD Sender: No OFD packet to send [21:51:35]OFD Sender: No OFD packet to send [21:51:40]OFD Sender: No OFD packet to send [21:51:45]OFD Sender: No OFD packet to send [21:51:50]OFD Sender: No OFD packet to send [21:51:55]OFD Sender: No OFD packet to send [21:52:00]OFD Sender: No OFD packet to send [21:52:05]OFD Sender: No OFD packet to send [21:52:10]OFD Sender: No OFD packet to send [21:52:15]OFD Sender: No OFD packet to send [21:52:20]OFD Sender: No OFD packet to send [21:52:25]OFD Sender: No OFD packet to send [21:52:30]OFD Sender: No OFD packet to send [21:52:35]OFD Sender: No OFD packet to send [21:52:40]OFD Sender: No OFD packet to send [21:52:45]OFD Sender: No OFD packet to send [21:52:50]OFD Sender: No OFD packet to send [21:52:55]OFD Sender: No OFD packet to send [21:53:00]OFD Sender: No OFD packet to send [21:53:05]OFD Sender: No OFD packet to send [21:53:10]OFD Sender: No OFD packet to send [21:53:15]OFD Sender: No OFD packet to send [21:53:20]OFD Sender: No OFD packet to send [21:53:25]OFD Sender: No OFD packet to send [21:53:30]OFD Sender: No OFD packet to send [21:53:35]OFD Sender: No OFD packet to send [21:53:40]OFD Sender: No OFD packet to send [21:53:45]OFD Sender: No OFD packet to send [21:53:50]OFD Sender: No OFD packet to send [21:53:55]OFD Sender: No OFD packet to send [21:54:00]OFD Sender: No OFD packet to send [21:54:05]OFD Sender: No OFD packet to send [21:54:10]OFD Sender: No OFD packet to send [21:54:15]OFD Sender: No OFD packet to send [21:54:20]OFD Sender: No OFD packet to send [21:54:25]OFD Sender: No OFD packet to send [21:54:30]OFD Sender: No OFD packet to send [21:54:35]OFD Sender: No OFD packet to send [21:54:40]OFD Sender: No OFD packet to send [21:54:45]OFD Sender: No OFD packet to send [21:54:50]OFD Sender: No OFD packet to send [21:54:55]OFD Sender: No OFD packet to send [21:55:00]OFD Sender: No OFD packet to send [21:55:05]OFD Sender: No OFD packet to send [21:55:10]OFD Sender: No OFD packet to send [21:55:15]OFD Sender: No OFD packet to send [21:55:20]OFD Sender: No OFD packet to send [21:55:25]OFD Sender: No OFD packet to send [21:55:30]OFD Sender: No OFD packet to send [21:55:35]OFD Sender: No OFD packet to send [21:55:40]OFD Sender: No OFD packet to send [21:55:45]OFD Sender: No OFD packet to send [21:55:50]OFD Sender: No OFD packet to send [21:55:55]OFD Sender: No OFD packet to send [21:56:00]OFD Sender: No OFD packet to send [21:56:05]OFD Sender: No OFD packet to send [21:56:10]OFD Sender: No OFD packet to send [21:56:15]OFD Sender: No OFD packet to send [21:56:20]OFD Sender: No OFD packet to send [21:56:25]OFD Sender: No OFD packet to send [21:56:30]OFD Sender: No OFD packet to send [21:56:35]OFD Sender: No OFD packet to send [21:56:40]OFD Sender: No OFD packet to send [21:56:45]OFD Sender: No OFD packet to send [21:56:50]OFD Sender: No OFD packet to send [21:56:55]OFD Sender: No OFD packet to send [21:57:00]OFD Sender: No OFD packet to send [21:57:05]OFD Sender: No OFD packet to send [21:57:10]OFD Sender: No OFD packet to send [21:57:15]OFD Sender: No OFD packet to send [21:57:20]OFD Sender: No OFD packet to send [21:57:25]OFD Sender: No OFD packet to send [21:57:30]OFD Sender: No OFD packet to send [21:57:35]OFD Sender: No OFD packet to send [21:57:40]OFD Sender: No OFD packet to send [21:57:45]OFD Sender: No OFD packet to send [21:57:50]OFD Sender: No OFD packet to send [21:57:55]OFD Sender: No OFD packet to send [21:58:00]OFD Sender: No OFD packet to send [21:58:05]OFD Sender: No OFD packet to send [21:58:10]OFD Sender: No OFD packet to send [21:58:15]OFD Sender: No OFD packet to send [21:58:20]OFD Sender: No OFD packet to send [21:58:25]OFD Sender: No OFD packet to send [21:58:30]OFD Sender: No OFD packet to send [21:58:35]OFD Sender: No OFD packet to send [21:58:40]OFD Sender: No OFD packet to send [21:58:45]OFD Sender: No OFD packet to send [21:58:50]OFD Sender: No OFD packet to send [21:58:55]OFD Sender: No OFD packet to send [21:59:00]OFD Sender: No OFD packet to send [21:59:05]OFD Sender: No OFD packet to send [21:59:10]OFD Sender: No OFD packet to send [21:59:15]OFD Sender: No OFD packet to send [21:59:20]OFD Sender: No OFD packet to send [21:59:25]OFD Sender: No OFD packet to send [21:59:28]accept exits with 8 [21:59:28]New connection [21:59:28]New thread 3066834276 created [21:59:28]Thread 3066977636 joined [21:59:28]Waiting for new connection... [21:59:28] Sock 8.Parse request [21:59:28]Sock 8.Check first char [21:59:28]Sock 8.First char is OK [21:59:28]request: POST /json_proto HTTP/1.0 [21:59:28]Method: POST [21:59:28]URL: /json_proto [21:59:28]Method is POST - this is cgi request [21:59:28]url: /json_proto [21:59:28]query_string will be loaded in cgi processing [21:59:28]execute_cgi json_proto POST (null) [21:59:28]execute_cgi path=json_proto method=POST [21:59:28]POST find Content-Length [21:59:28]Host: 172.17.63.3:8080 [21:59:28]Content-Length: 765 [21:59:28]Content-Type: application/json [21:59:28] [21:59:28]POST finish read [21:59:28]Found Content-Length = 765 [21:59:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99580", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:59:28]execute_script... [21:59: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)99580", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:59:28]POST & json_proto [21:59:28]process_json_proto [21:59:28]json parsed OK: [21:59:28]protocol is kg_v1.0 [21:59:28]action value=close_receipt [21:59:28]process_action close_receipt [21:59:28]cmd_close_receipt [21:59:28]MH_GetDate [21:59:28]Write to MH i2c: F0 00 00 17 8B 91 [21:59:28]Write i2c OK [21:59:28]MH_I2C_Read... [21:59:28]Read from MH i2c: F0 [21:59:28]MH_I2C_Read... [21:59:28]Read from MH i2c: F0 09 00 [21:59:28]MH_I2C_Read... [21:59:28]Read from MH i2c: F0 09 00 17 8B 00 C8 B7 1E 67 50 D1 6C 64 8F [21:59:28]GetLastDocTimeStamp 1730065744 [21:59:28]current date 1730066376 [21:59:28]FM_GetShiftState [21:59:28]SAM_PROTO_GetShiftState [21:59:28]wFMCommunicate request_size=4 [21:59:28]MH_SAM_APDU [21:59:28]CAPDU: 80 13 01 00 [21:59:28]Write to MH i2c: E2 08 00 18 8B 80 13 01 00 00 00 00 00 20 [21:59:28]Write i2c OK [21:59:28]MH_I2C_Read... [21:59:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:59:28]Read from MH i2c: E2 [21:59:28]MH_I2C_Read... [21:59:28]Read from MH i2c: E2 0E 00 [21:59:28]MH_I2C_Read... [21:59:28]Read from MH i2c: E2 0E 00 18 8B 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 ED [21:59:28]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [21:59:28]wFMCommunicate OK [21:59:28]SAM_PROTO_GetShiftState done [21:59:28]FM_GetShiftState done [21:59:28]opened in 1729989044 [21:59:28]opened+sec_in_day 1730075444 [21:59:28]quantity*price = 200025 [21:59:28]sum+1 = 200026 [21:59:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.25 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.25 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 317 27.10.2024 21:59 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000871792 ФД: 156766 ФПД: 28906019085694 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T215936&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156766&fm=28906019085694&tin=02508201610067®Number=0000000000091693&sum=200025 [21:59:29]StoreToDocumentArchive [21:59:29]shift 537 fd 156766 [21:59:29]save to /storage/0537/doc_00156766 [21:59:29]save last doc name /storage/0537/doc_00156766 to /storage/kkm_last_doc_name [21:59:29]save OK [21:59:29]Clear old archive folders... [21:59:29]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:59:29]tlvbuf is 01697F90 [21:59:29]SAM_PROTO_ClearQueue [21:59:29]wFMCommunicate request_size=4 [21:59:29]MH_SAM_APDU [21:59:29]CAPDU: 80 09 00 00 [21:59:29]Write to MH i2c: E2 08 00 25 8B 80 09 00 00 00 00 00 00 22 [21:59:29]Write i2c OK [21:59:29]MH_I2C_Read... [21:59:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:59:29]Read from MH i2c: E2 [21:59:29]MH_I2C_Read... [21:59:29]Read from MH i2c: E2 03 00 [21:59:29]MH_I2C_Read... [21:59:29]Read from MH i2c: E2 03 00 25 8B 00 90 00 24 [21:59:29]RAPDU: 90 00 [21:59:29]wFMCommunicate OK [21:59:29]SAM_PROTO_ClearQueue done [21:59:29]KKMCreateOFDPacket [21:59:29]OFDProtocolAddRootSTLVToBuf [21:59:29]FM_MakeSignedData [21:59:29]FM_MakeSignedData [21:59:29]SAM_PROTO_SignData [21:59:29]wFMCommunicate request_size=4 [21:59:29]MH_SAM_APDU [21:59:29]CAPDU: 80 0D 01 02 [21:59:29]Write to MH i2c: E2 08 00 26 8B 80 0D 01 02 00 00 00 00 2A [21:59:29]Write i2c OK [21:59:29]MH_I2C_Read... [21:59:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:59:29]Read from MH i2c: E2 [21:59:29]MH_I2C_Read... [21:59:29]Read from MH i2c: E2 03 00 [21:59:29]MH_I2C_Read... [21:59:29]Read from MH i2c: E2 03 00 26 8B 00 90 00 25 [21:59:29]RAPDU: 90 00 [21:59:29]wFMCommunicate OK [21:59:29]wFMCommunicate request_size=255 [21:59:29]MH_SAM_APDU [21:59:29]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 01 00 00 F4 03 04 00 C8 B7 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 5E 64 02 00 35 04 06 00 1A 4A 34 FF [21:59:29]Write to MH i2c: E2 02 01 27 8B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 01 00 00 F4 03 04 00 C8 B7 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 5E 64 02 00 35 04 06 00 1A 4A 34 FF 00 00 8C [21:59:29]Write i2c OK [21:59:29]MH_I2C_Read... [21:59:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:59:29]Read from MH i2c: E2 [21:59:29]MH_I2C_Read... [21:59:29]Read from MH i2c: E2 03 00 [21:59:29]MH_I2C_Read... [21:59:29]Read from MH i2c: E2 03 00 27 8B 00 90 00 26 [21:59:29]RAPDU: 90 00 [21:59:29]wFMCommunicate OK [21:59:29]wFMCommunicate request_size=7 [21:59:29]MH_SAM_APDU [21:59:29]CAPDU: 80 0D 02 02 02 DD 7E [21:59:29]Write to MH i2c: E2 0A 00 28 8B 80 0D 02 02 02 00 DD 7E 00 00 8C [21:59:29]Write i2c OK [21:59:29]MH_I2C_Read... [21:59:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:59:29]Read from MH i2c: E2 [21:59:29]MH_I2C_Read... [21:59:29]Read from MH i2c: E2 03 00 [21:59:29]MH_I2C_Read... [21:59:29]Read from MH i2c: E2 03 00 28 8B 00 90 00 27 [21:59:29]RAPDU: 90 00 [21:59:29]wFMCommunicate OK [21:59:29]wFMCommunicate request_size=4 [21:59:29]MH_SAM_APDU [21:59:29]CAPDU: 80 0D 03 02 [21:59:29]Write to MH i2c: E2 08 00 29 8B 80 0D 03 02 00 00 00 00 2F [21:59:29]Write i2c OK [21:59:29]MH_I2C_Read... [21:59:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:59:29]Read from MH i2c: E2 [21:59:29]MH_I2C_Read... [21:59:29]Read from MH i2c: E2 0B 00 [21:59:29]MH_I2C_Read... [21:59:29]Read from MH i2c: E2 0B 00 29 8B 00 8C 51 6E 0A D2 97 FA 52 90 00 3A [21:59:29]RAPDU: 8C 51 6E 0A D2 97 FA 52 90 00 [21:59:29]wFMCommunicate OK [21:59:29]SAM_PROTO_SignData done [21:59:29]FM_MakeSignedData done [21:59:29]CreateOFDProtocolMessage [21:59:29]wFMCommunicate request_size=4 [21:59:29]MH_SAM_APDU [21:59:29]CAPDU: 80 11 00 00 [21:59:29]Write to MH i2c: E2 08 00 2A 8B 80 11 00 00 00 00 00 00 2F [21:59:29]Write i2c OK [21:59:29]MH_I2C_Read... [21:59:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:59:29]Read from MH i2c: E2 [21:59:29]MH_I2C_Read... [21:59:29]Read from MH i2c: E2 17 00 [21:59:29]MH_I2C_Read... [21:59:29]Read from MH i2c: E2 17 00 2A 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 84 [21:59:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [21:59:29]wFMCommunicate OK [21:59:29]CreateOFDProtocolMessage done [21:59:29]OFDSenderStorePacket 156766 [21:59:29]StoreOFDPacket docnum=156766 [21:59:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 E8 94 04 01 FF 4D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 01 00 00 F4 03 04 00 C8 B7 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 5E 64 02 00 35 04 06 00 1A 4A 34 FF DD 7E 8C 51 6E 0A D2 97 FA 52 [21:59:29]CheckFolder [21:59:29]dirname=/storage/ofd_packets [21:59:29]CheckFolder done [21:59:29]ProducePacketName [21:59:29]name=ofd_packets/00156766 [21:59:29]NVStorageSaveData ofd_packets/00156766 [21:59:29]File name is /storage/ofd_packets/00156766 [21:59:29]Write 298 bytes [21:59:29]NVStorageSaveData done [21:59:29]OFDSenderStorePacket done [21:59:29]KKMCreateOFDPacket done [21:59:29]NVStorageSaveData kkm_last_timestamp [21:59:29]File name is /storage/kkm_last_timestamp [21:59:29]Write 4 bytes [21:59:29]NVStorageSaveData done [21:59:29]ExternCall_PrintAddStr [21:59:29]wPrintStart [21:59:29]Write to MH i2c: 01 00 00 2B 8B B6 [21:59:29]Write i2c OK [21:59:29]MH_I2C_Read... [21:59:29]Read from MH i2c: 01 [21:59:29]MH_I2C_Read... [21:59:29]Read from MH i2c: 01 07 00 [21:59:29]MH_I2C_Read... [21:59:29]Read from MH i2c: 01 07 00 2B 8B 00 00 00 00 00 FF 0F CB [21:59:29]RasterBufferAndPrint [21:59:29]line Счет N : (1)99580 [21:59:29]line ИНН: 02508201610067 [21:59:29]line Контрольно-Кассовый Чек [21:59:29]line ПРОДАЖА [21:59:29]line ТРК (МРК, ГНК) : 32 [21:59:29]line Товар: 2710194210 [21:59:29]line ДТ-К-5 [21:59:29]line 26.250 * 76.20 [21:59:29]line = 2000.25 [21:59:29]line НДС 12% НСП 1% [21:59:29]line > о реализуемом товаре [21:59:29]line ИТОГО: 2000.25 [21:59:29]line НСП 1% : 17.70 [21:59:29]line НДС 12% : 212.42 [21:59:29]line Наличными: 0.00 [21:59:29]line Безнал.: 2000.25 [21:59:29]line Место: АЗС № 143 "Партнер Нефть" [21:59:29]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [21:59:29]line СНО: Общий режим [21:59:29]line Чек 317 27.10.2024 21:59 [21:59:29]line Смена: 537 ФФД: 1.0 [21:59:29]line ЗНМ: 0300000096 [21:59:29]line РНМ: 0000000000091693 [21:59:29]line Версия ККМ: 001 [21:59:29]line Платежная система: Mbank [21:59:29]line ФМ: 0000000000871792 [21:59:29]line ФД: 156766 [21:59:29]line ФПД: 28906019085694 [21:59:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T215936&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156766&fm=28906019085694&tin=02508201610067®Number=0000000000091693&sum=200025 [21:59:30]OFD Sender: Processing packet 156766 [packets to send 31, broken 30] [21:59:30]ProducePacketName [21:59:30]name=ofd_packets/00156766 [21:59:30]OFD Sender: To server: pG, [21:59:30]CommunicateWithHost lk.salyk.kg:30040 [21:59:30]ConnectInit lk.salyk.kg [21:59:30]written 0, free lines is 4095 [21:59:30]Connected sock=9 [21:59:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 E8 94 04 01 FF 4D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 01 00 00 F4 03 04 00 C8 B7 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 5E 64 02 00 35 04 06 00 1A 4A 34 FF DD 7E 8C 51 6E 0A D2 97 FA 52 [21:59:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 DE 0E 47 00 64 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 31 37 39 32 10 04 04 00 5E 64 02 00 F4 03 04 00 36 5D 1E 67 B6 04 01 00 00 CA BD FE 84 85 12 C2 98 [21:59:30]CommunicateWithHost err = 0 [21:59:30]CheckOFDResponse [21:59:30]1017 (14) - 77093643461234 [21:59:30]1041 (16) - 0000000000871792 [21:59:30]1040 (4) - 156766 [21:59:30]1012 (4) - 27.10.2024 15:33 [21:59:30]1206 (1) - 0 [21:59:30]OFD Sender: Remove packet 156766 [21:59:30]ProducePacketName [21:59:30]name=ofd_packets/00156766 [21:59:30]NVStorageDeleteData [21:59:30]Write to MH i2c: 01 00 00 54 8B DF [21:59:30]Write i2c OK [21:59:30]MH_I2C_Read... [21:59:30]Read from MH i2c: 01 [21:59:30]MH_I2C_Read... [21:59:30]Read from MH i2c: 01 07 00 [21:59:30]MH_I2C_Read... [21:59:30]Read from MH i2c: 01 07 00 54 8B 00 00 00 00 00 1C 0D 0F [21:59:30]RasterBufferAndPrint [21:59:30]line [21:59:30]line [21:59:30]line [21:59:30]line [21:59:30]line [21:59:30]written 0, free lines is 3365 [21:59:30]process_action close_receipt done [21:59:30]requested_data is exist [21:59:30]produce_requested_data [21:59:30]requested_item fm.sn is exist - process it [21:59:30]wFMCommunicate request_size=4 [21:59:30]MH_SAM_APDU [21:59:30]CAPDU: 80 11 00 00 [21:59:30]Write to MH i2c: E2 08 00 5B 8B 80 11 00 00 00 00 00 00 60 [21:59:30]Write i2c OK [21:59:30]MH_I2C_Read... [21:59:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:59:30]Read from MH i2c: E2 [21:59:30]MH_I2C_Read... [21:59:30]Read from MH i2c: E2 17 00 [21:59:30]MH_I2C_Read... [21:59:30]Read from MH i2c: E2 17 00 5B 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 B5 [21:59:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [21:59:30]wFMCommunicate OK [21:59:30]requested_item fd.num is exist - process it [21:59:30]SAM_PROTO_GetFieldsCounters [21:59:30]wFMCommunicate request_size=4 [21:59:30]MH_SAM_APDU [21:59:30]CAPDU: 80 13 00 00 [21:59:30]Write to MH i2c: E2 08 00 5C 8B 80 13 00 00 00 00 00 00 63 [21:59:30]Write i2c OK [21:59:30]MH_I2C_Read... [21:59:30]Read from MH i2c: E2 [21:59:30]MH_I2C_Read... [21:59:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:59:30]Read from MH i2c: E2 62 00 [21:59:30]MH_I2C_Read... [21:59:31]Read from MH i2c: E2 62 00 5C 8B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 5E 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 3D 01 00 00 5E 04 04 00 3D 01 00 00 57 04 04 00 3E 01 00 00 19 04 04 00 00 00 00 00 90 00 22 [21:59:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 5E 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 3D 01 00 00 5E 04 04 00 3D 01 00 00 57 04 04 00 3E 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:59:31]wFMCommunicate OK [21:59:31]SAM_PROTO_GetFieldsCounters done [21:59:31]requested_item shift.num is exist - process it [21:59:31]requested_item shift.opened is exist - process it [21:59:31]req_shift_opened [21:59:31]FM_GetShiftState [21:59:31]SAM_PROTO_GetShiftState [21:59:31]wFMCommunicate request_size=4 [21:59:31]MH_SAM_APDU [21:59:31]CAPDU: 80 13 01 00 [21:59:31]Write to MH i2c: E2 08 00 5D 8B 80 13 01 00 00 00 00 00 65 [21:59:31]Write i2c OK [21:59:31]MH_I2C_Read... [21:59:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:59:31]Read from MH i2c: E2 [21:59:31]MH_I2C_Read... [21:59:31]Read from MH i2c: E2 0E 00 [21:59:31]MH_I2C_Read... [21:59:31]Read from MH i2c: E2 0E 00 5D 8B 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 32 [21:59:31]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [21:59:31]wFMCommunicate OK [21:59:31]SAM_PROTO_GetShiftState done [21:59:31]FM_GetShiftState done [21:59:31]req_shift_opened done [21:59:31]requested_item shift.open_date is exist - process it [21:59:31]req_shift_open_date [21:59:31]req_shift_open_date done [21:59:31]produce_requested_data done [21:59:31]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156766,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [21:59:31]process_action_free close_receipt [21:59:31]json_value_free [21:59:31]json_value_free done [21:59:31]process_json_proto returns [21:59:31]Send response to host [21:59:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156766,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [21:59:31]free response buf [21:59:31]execute_script done [21:59:31]execute_script returns [21:59:31]free content buf [21:59:31]Sock 8.Close socket [21:59:31]Sock 8.Thread stoped [21:59:31]OFD Sender: No OFD packet to send [21:59:36]OFD Sender: No OFD packet to send [21:59:41]OFD Sender: No OFD packet to send [21:59:46]OFD Sender: No OFD packet to send [21:59:51]OFD Sender: No OFD packet to send [21:59:56]OFD Sender: No OFD packet to send [22:00:01]OFD Sender: No OFD packet to send [22:00:06]OFD Sender: No OFD packet to send [22:00:11]OFD Sender: No OFD packet to send [22:00:16]OFD Sender: No OFD packet to send [22:00:21]OFD Sender: No OFD packet to send [22:00:26]OFD Sender: No OFD packet to send [22:00:31]OFD Sender: No OFD packet to send [22:00:36]OFD Sender: No OFD packet to send [22:00:41]OFD Sender: No OFD packet to send [22:00:46]OFD Sender: No OFD packet to send [22:00:51]OFD Sender: No OFD packet to send [22:00:56]OFD Sender: No OFD packet to send [22:01:01]OFD Sender: No OFD packet to send [22:01:06]OFD Sender: No OFD packet to send [22:01:11]OFD Sender: No OFD packet to send [22:01:16]OFD Sender: No OFD packet to send [22:01:21]OFD Sender: No OFD packet to send [22:01:26]OFD Sender: No OFD packet to send [22:01:31]OFD Sender: No OFD packet to send [22:01:36]OFD Sender: No OFD packet to send [22:01:41]OFD Sender: No OFD packet to send [22:01:46]OFD Sender: No OFD packet to send [22:01:51]OFD Sender: No OFD packet to send [22:01:56]OFD Sender: No OFD packet to send [22:02:01]OFD Sender: No OFD packet to send [22:02:06]OFD Sender: No OFD packet to send [22:02:11]OFD Sender: No OFD packet to send [22:02:16]OFD Sender: No OFD packet to send [22:02:21]OFD Sender: No OFD packet to send [22:02:26]OFD Sender: No OFD packet to send [22:02:31]OFD Sender: No OFD packet to send [22:02:36]OFD Sender: No OFD packet to send [22:02:41]OFD Sender: No OFD packet to send [22:02:46]OFD Sender: No OFD packet to send [22:02:51]OFD Sender: No OFD packet to send [22:02:56]OFD Sender: No OFD packet to send [22:03:01]OFD Sender: No OFD packet to send [22:03:06]OFD Sender: No OFD packet to send [22:03:11]OFD Sender: No OFD packet to send [22:03:16]OFD Sender: No OFD packet to send [22:03:21]OFD Sender: No OFD packet to send [22:03:26]OFD Sender: No OFD packet to send [22:03:31]OFD Sender: No OFD packet to send [22:03:36]OFD Sender: No OFD packet to send [22:03:41]OFD Sender: No OFD packet to send [22:03:46]OFD Sender: No OFD packet to send [22:03:51]OFD Sender: No OFD packet to send [22:03:56]OFD Sender: No OFD packet to send [22:04:01]OFD Sender: No OFD packet to send [22:04:06]OFD Sender: No OFD packet to send [22:04:11]OFD Sender: No OFD packet to send [22:04:16]OFD Sender: No OFD packet to send [22:04:21]OFD Sender: No OFD packet to send [22:04:26]OFD Sender: No OFD packet to send [22:04:31]OFD Sender: No OFD packet to send [22:04:36]OFD Sender: No OFD packet to send [22:04:41]OFD Sender: No OFD packet to send [22:04:46]OFD Sender: No OFD packet to send [22:04:51]OFD Sender: No OFD packet to send [22:04:56]OFD Sender: No OFD packet to send [22:05:01]OFD Sender: No OFD packet to send [22:05:06]OFD Sender: No OFD packet to send [22:05:11]OFD Sender: No OFD packet to send [22:05:16]OFD Sender: No OFD packet to send [22:05:21]OFD Sender: No OFD packet to send [22:05:26]OFD Sender: No OFD packet to send [22:05:31]OFD Sender: No OFD packet to send [22:05:36]OFD Sender: No OFD packet to send [22:05:41]OFD Sender: No OFD packet to send [22:05:46]OFD Sender: No OFD packet to send [22:05:51]OFD Sender: No OFD packet to send [22:05:56]OFD Sender: No OFD packet to send [22:06:01]OFD Sender: No OFD packet to send [22:06:06]OFD Sender: No OFD packet to send [22:06:11]OFD Sender: No OFD packet to send [22:06:14]accept exits with 10 [22:06:14]New connection [22:06:14]New thread 3066977636 created [22:06:14]Thread 3066834276 joined [22:06:14]Waiting for new connection... [22:06:14] Sock 10.Parse request [22:06:14]Sock 10.Check first char [22:06:14]Sock 10.First char is OK [22:06:14]request: POST /json_proto HTTP/1.0 [22:06:14]Method: POST [22:06:14]URL: /json_proto [22:06:14]Method is POST - this is cgi request [22:06:14]url: /json_proto [22:06:14]query_string will be loaded in cgi processing [22:06:14]execute_cgi json_proto POST (null) [22:06:14]execute_cgi path=json_proto method=POST [22:06:14]POST find Content-Length [22:06:14]Host: 172.17.63.3:8080 [22:06:14]Content-Length: 681 [22:06:14]Content-Type: application/json [22:06:14] [22:06:14]POST finish read [22:06:14]Found Content-Length = 681 [22:06:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99581", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:06:14]execute_script... [22:06: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)99581", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:06:14]POST & json_proto [22:06:14]process_json_proto [22:06:14]json parsed OK: [22:06:14]protocol is kg_v1.0 [22:06:14]action value=close_receipt [22:06:14]process_action close_receipt [22:06:14]cmd_close_receipt [22:06:14]MH_GetDate [22:06:14]Write to MH i2c: F0 00 00 5E 8B D8 [22:06:14]Write i2c OK [22:06:14]MH_I2C_Read... [22:06:14]Read from MH i2c: F0 [22:06:14]MH_I2C_Read... [22:06:14]Read from MH i2c: F0 09 00 [22:06:14]MH_I2C_Read... [22:06:14]Read from MH i2c: F0 09 00 5E 8B 00 5E B9 1E 67 50 D1 6C 64 6E [22:06:14]GetLastDocTimeStamp 1730066376 [22:06:14]current date 1730066782 [22:06:14]FM_GetShiftState [22:06:14]SAM_PROTO_GetShiftState [22:06:14]wFMCommunicate request_size=4 [22:06:14]MH_SAM_APDU [22:06:14]CAPDU: 80 13 01 00 [22:06:14]Write to MH i2c: E2 08 00 5F 8B 80 13 01 00 00 00 00 00 67 [22:06:14]Write i2c OK [22:06:14]MH_I2C_Read... [22:06:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:06:14]Read from MH i2c: E2 [22:06:14]MH_I2C_Read... [22:06:14]Read from MH i2c: E2 0E 00 [22:06:14]MH_I2C_Read... [22:06:14]Read from MH i2c: E2 0E 00 5F 8B 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 34 [22:06:14]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [22:06:14]wFMCommunicate OK [22:06:14]SAM_PROTO_GetShiftState done [22:06:14]FM_GetShiftState done [22:06:14]opened in 1729989044 [22:06:14]opened+sec_in_day 1730075444 [22:06:14]quantity*price = 100015 [22:06:14]sum+1 = 100017 [22:06:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 318 27.10.2024 22:06 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156767 ФПД: 154751829219247 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T220622&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156767&fm=154751829219247&tin=02508201610067®Number=0000000000091693&sum=100000 [22:06:15]StoreToDocumentArchive [22:06:15]shift 537 fd 156767 [22:06:15]save to /storage/0537/doc_00156767 [22:06:15]save last doc name /storage/0537/doc_00156767 to /storage/kkm_last_doc_name [22:06:15]save OK [22:06:15]Clear old archive folders... [22:06:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:06:15]tlvbuf is 017418A0 [22:06:15]SAM_PROTO_ClearQueue [22:06:15]wFMCommunicate request_size=4 [22:06:15]MH_SAM_APDU [22:06:15]CAPDU: 80 09 00 00 [22:06:15]Write to MH i2c: E2 08 00 6C 8B 80 09 00 00 00 00 00 00 69 [22:06:15]Write i2c OK [22:06:15]MH_I2C_Read... [22:06:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:06:15]Read from MH i2c: E2 [22:06:15]MH_I2C_Read... [22:06:15]Read from MH i2c: E2 03 00 [22:06:15]MH_I2C_Read... [22:06:15]Read from MH i2c: E2 03 00 6C 8B 00 90 00 6B [22:06:15]RAPDU: 90 00 [22:06:15]wFMCommunicate OK [22:06:15]SAM_PROTO_ClearQueue done [22:06:15]KKMCreateOFDPacket [22:06:15]OFDProtocolAddRootSTLVToBuf [22:06:15]FM_MakeSignedData [22:06:15]FM_MakeSignedData [22:06:15]SAM_PROTO_SignData [22:06:15]wFMCommunicate request_size=4 [22:06:15]MH_SAM_APDU [22:06:15]CAPDU: 80 0D 01 02 [22:06:15]Write to MH i2c: E2 08 00 6D 8B 80 0D 01 02 00 00 00 00 71 [22:06:15]Write i2c OK [22:06:15]MH_I2C_Read... [22:06:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:06:15]Read from MH i2c: E2 [22:06:15]MH_I2C_Read... [22:06:15]Read from MH i2c: E2 03 00 [22:06:15]MH_I2C_Read... [22:06:15]Read from MH i2c: E2 03 00 6D 8B 00 90 00 6C [22:06:15]RAPDU: 90 00 [22:06:15]wFMCommunicate OK [22:06:15]wFMCommunicate request_size=255 [22:06:15]MH_SAM_APDU [22:06: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 5E B9 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 5F 64 02 00 35 04 06 00 8C [22:06:15]Write to MH i2c: E2 02 01 6E 8B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 5E B9 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 5F 64 02 00 35 04 06 00 8C 00 00 46 [22:06:15]Write i2c OK [22:06:15]MH_I2C_Read... [22:06:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:06:15]Read from MH i2c: E2 [22:06:15]MH_I2C_Read... [22:06:15]Read from MH i2c: E2 03 00 [22:06:15]MH_I2C_Read... [22:06:15]Read from MH i2c: E2 03 00 6E 8B 00 90 00 6D [22:06:15]RAPDU: 90 00 [22:06:15]wFMCommunicate OK [22:06:15]wFMCommunicate request_size=10 [22:06:15]MH_SAM_APDU [22:06:15]CAPDU: 80 0D 02 02 05 BE F7 CF 17 AF [22:06:15]Write to MH i2c: E2 0D 00 6F 8B 80 0D 02 02 05 00 BE F7 CF 17 AF 00 00 C8 [22:06:15]Write i2c OK [22:06:15]MH_I2C_Read... [22:06:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:06:15]Read from MH i2c: E2 [22:06:15]MH_I2C_Read... [22:06:15]Read from MH i2c: E2 03 00 [22:06:15]MH_I2C_Read... [22:06:15]Read from MH i2c: E2 03 00 6F 8B 00 90 00 6E [22:06:15]RAPDU: 90 00 [22:06:15]wFMCommunicate OK [22:06:15]wFMCommunicate request_size=4 [22:06:15]MH_SAM_APDU [22:06:15]CAPDU: 80 0D 03 02 [22:06:15]Write to MH i2c: E2 08 00 70 8B 80 0D 03 02 00 00 00 00 76 [22:06:16]Write i2c OK [22:06:16]MH_I2C_Read... [22:06:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:06:16]Read from MH i2c: E2 [22:06:16]MH_I2C_Read... [22:06:16]Read from MH i2c: E2 0B 00 [22:06:16]MH_I2C_Read... [22:06:16]Read from MH i2c: E2 0B 00 70 8B 00 A4 59 86 4A 5F 44 5F 30 90 00 76 [22:06:16]RAPDU: A4 59 86 4A 5F 44 5F 30 90 00 [22:06:16]wFMCommunicate OK [22:06:16]SAM_PROTO_SignData done [22:06:16]FM_MakeSignedData done [22:06:16]CreateOFDProtocolMessage [22:06:16]wFMCommunicate request_size=4 [22:06:16]MH_SAM_APDU [22:06:16]CAPDU: 80 11 00 00 [22:06:16]Write to MH i2c: E2 08 00 71 8B 80 11 00 00 00 00 00 00 76 [22:06:16]Write i2c OK [22:06:16]MH_I2C_Read... [22:06:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:06:16]Read from MH i2c: E2 [22:06:16]MH_I2C_Read... [22:06:16]Read from MH i2c: E2 17 00 [22:06:16]MH_I2C_Read... [22:06:16]Read from MH i2c: E2 17 00 71 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 CB [22:06:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [22:06:16]wFMCommunicate OK [22:06:16]CreateOFDProtocolMessage done [22:06:16]OFDSenderStorePacket 156767 [22:06:16]StoreOFDPacket docnum=156767 [22:06:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 0E A5 07 01 B5 62 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 5E B9 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 5F 64 02 00 35 04 06 00 8C BE F7 CF 17 AF A4 59 86 4A 5F 44 5F 30 [22:06:16]CheckFolder [22:06:16]dirname=/storage/ofd_packets [22:06:16]CheckFolder done [22:06:16]ProducePacketName [22:06:16]name=ofd_packets/00156767 [22:06:16]NVStorageSaveData ofd_packets/00156767 [22:06:16]File name is /storage/ofd_packets/00156767 [22:06:16]Write 301 bytes [22:06:16]NVStorageSaveData done [22:06:16]OFDSenderStorePacket done [22:06:16]KKMCreateOFDPacket done [22:06:16]NVStorageSaveData kkm_last_timestamp [22:06:16]File name is /storage/kkm_last_timestamp [22:06:16]Write 4 bytes [22:06:16]NVStorageSaveData done [22:06:16]ExternCall_PrintAddStr [22:06:16]wPrintStart [22:06:16]Write to MH i2c: 01 00 00 72 8B FD [22:06:16]Write i2c OK [22:06:16]MH_I2C_Read... [22:06:16]Read from MH i2c: 01 [22:06:16]MH_I2C_Read... [22:06:16]Read from MH i2c: 01 07 00 [22:06:16]MH_I2C_Read... [22:06:16]Read from MH i2c: 01 07 00 72 8B 00 00 00 00 00 FF 0F 12 [22:06:16]RasterBufferAndPrint [22:06:16]line Счет N : (1)99581 [22:06:16]line ИНН: 02508201610067 [22:06:16]line Контрольно-Кассовый Чек [22:06:16]line ПРОДАЖА [22:06:16]line ТРК (МРК, ГНК) : 31 [22:06:16]line Товар: 2710124130 [22:06:16]line Аи-92-К-5 [22:06:16]line 14.950 * 66.90 [22:06:16]line = 1000.16 [22:06:16]line НДС 12% НСП 1% [22:06:16]line > о реализуемом товаре [22:06:16]line ОКРУГЛЕНИЕ: -0.16 [22:06:16]line ИТОГО: 1000.00 [22:06:16]line Внесено: 1000.00 [22:06:16]line СДАЧА: 0.00 [22:06:16]line НСП 1% : 8.85 [22:06:16]line НДС 12% : 106.21 [22:06:16]line Наличными: 1000.00 [22:06:16]line Безнал.: 0.00 [22:06:16]line Место: АЗС № 143 "Партнер Нефть" [22:06:16]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [22:06:16]line СНО: Общий режим [22:06:16]line Чек 318 27.10.2024 22:06 [22:06:16]line Смена: 537 ФФД: 1.0 [22:06:16]line ЗНМ: 0300000096 [22:06:16]line РНМ: 0000000000091693 [22:06:16]line Версия ККМ: 001 [22:06:16]line ФМ: 0000000000871792 [22:06:16]line ФД: 156767 [22:06:16]line ФПД: 154751829219247 [22:06:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T220622&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156767&fm=154751829219247&tin=02508201610067®Number=0000000000091693&sum=100000 [22:06:16]OFD Sender: Processing packet 156767 [packets to send 31, broken 30] [22:06:16]ProducePacketName [22:06:16]name=ofd_packets/00156767 [22:06:16]OFD Sender: To server: pG, [22:06:16]CommunicateWithHost lk.salyk.kg:30040 [22:06:16]ConnectInit lk.salyk.kg [22:06:16]written 0, free lines is 4095 [22:06:16]Write to MH i2c: 01 00 00 9D 8B 28 [22:06:16]Write i2c OK [22:06:16]MH_I2C_Read... [22:06:16]Read from MH i2c: 01 [22:06:16]MH_I2C_Read... [22:06:16]Read from MH i2c: 01 07 00 [22:06:16]MH_I2C_Read... [22:06:16]Read from MH i2c: 01 07 00 9D 8B 00 00 00 00 00 DE 0C 19 [22:06:16]RasterBufferAndPrint [22:06:16]line [22:06:16]line [22:06:16]line [22:06:16]line [22:06:16]line [22:06:16]written 0, free lines is 3300 [22:06:16]process_action close_receipt done [22:06:16]requested_data is exist [22:06:16]produce_requested_data [22:06:16]requested_item fm.sn is exist - process it [22:06:16]wFMCommunicate request_size=4 [22:06:16]MH_SAM_APDU [22:06:16]CAPDU: 80 11 00 00 [22:06:16]Write to MH i2c: E2 08 00 A4 8B 80 11 00 00 00 00 00 00 A9 [22:06:16]Write i2c OK [22:06:16]MH_I2C_Read... [22:06:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:06:16]Read from MH i2c: E2 [22:06:16]MH_I2C_Read... [22:06:16]Read from MH i2c: E2 17 00 [22:06:16]MH_I2C_Read... [22:06:16]Read from MH i2c: E2 17 00 A4 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 FE [22:06:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [22:06:16]wFMCommunicate OK [22:06:16]requested_item fd.num is exist - process it [22:06:16]SAM_PROTO_GetFieldsCounters [22:06:16]wFMCommunicate request_size=4 [22:06:16]MH_SAM_APDU [22:06:16]CAPDU: 80 13 00 00 [22:06:16]Write to MH i2c: E2 08 00 A5 8B 80 13 00 00 00 00 00 00 AC [22:06:16]Write i2c OK [22:06:16]MH_I2C_Read... [22:06:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:06:17]Read from MH i2c: E2 [22:06:17]MH_I2C_Read... [22:06:17]Read from MH i2c: E2 62 00 [22:06:17]MH_I2C_Read... [22:06:17]Read from MH i2c: E2 62 00 A5 8B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 5F 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 3E 01 00 00 5E 04 04 00 3E 01 00 00 57 04 04 00 3F 01 00 00 19 04 04 00 00 00 00 00 90 00 6F [22:06:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 5F 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 3E 01 00 00 5E 04 04 00 3E 01 00 00 57 04 04 00 3F 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:06:17]wFMCommunicate OK [22:06:17]SAM_PROTO_GetFieldsCounters done [22:06:17]requested_item shift.num is exist - process it [22:06:17]requested_item shift.opened is exist - process it [22:06:17]req_shift_opened [22:06:17]FM_GetShiftState [22:06:17]SAM_PROTO_GetShiftState [22:06:17]wFMCommunicate request_size=4 [22:06:17]MH_SAM_APDU [22:06:17]CAPDU: 80 13 01 00 [22:06:17]Write to MH i2c: E2 08 00 A6 8B 80 13 01 00 00 00 00 00 AE [22:06:17]Write i2c OK [22:06:17]MH_I2C_Read... [22:06:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:06:17]Read from MH i2c: E2 [22:06:17]MH_I2C_Read... [22:06:17]Read from MH i2c: E2 0E 00 [22:06:17]MH_I2C_Read... [22:06:17]Read from MH i2c: E2 0E 00 A6 8B 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 7B [22:06:17]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [22:06:17]wFMCommunicate OK [22:06:17]SAM_PROTO_GetShiftState done [22:06:17]FM_GetShiftState done [22:06:17]req_shift_opened done [22:06:17]requested_item shift.open_date is exist - process it [22:06:17]req_shift_open_date [22:06:17]req_shift_open_date done [22:06:17]produce_requested_data done [22:06:17]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156767,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [22:06:17]process_action_free close_receipt [22:06:17]json_value_free [22:06:17]json_value_free done [22:06:17]process_json_proto returns [22:06:17]Send response to host [22:06:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156767,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [22:06:17]free response buf [22:06:17]execute_script done [22:06:17]execute_script returns [22:06:17]free content buf [22:06:17]Sock 10.Close socket [22:06:17]Sock 10.Thread stoped [22:08:27]ConnectInit Can't connect to host [22:08:27]CommunicateWithHost connect error [22:08:27]CommunicateWithHost err = -1 [22:08:27]OFD Sender: Server communicate error [22:08:32]OFD Sender: Processing packet 156767 [packets to send 31, broken 30] [22:08:32]ProducePacketName [22:08:32]name=ofd_packets/00156767 [22:08:32]OFD Sender: To server: pG, [22:08:32]CommunicateWithHost lk.salyk.kg:30040 [22:08:32]ConnectInit lk.salyk.kg [22:08:33]Connected sock=9 [22:08:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 0E A5 07 01 B5 62 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 5E B9 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 5F 64 02 00 35 04 06 00 8C BE F7 CF 17 AF A4 59 86 4A 5F 44 5F 30 [22:08:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 41 70 47 00 AA 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 31 37 39 32 10 04 04 00 5F 64 02 00 F4 03 04 00 55 5F 1E 67 B6 04 01 00 00 83 0A EB 40 0F 9C 7C D7 [22:08:33]CommunicateWithHost err = 0 [22:08:33]CheckOFDResponse [22:08:33]1017 (14) - 77093643461234 [22:08:33]1041 (16) - 0000000000871792 [22:08:33]1040 (4) - 156767 [22:08:33]1012 (4) - 27.10.2024 15:42 [22:08:33]1206 (1) - 0 [22:08:33]OFD Sender: Remove packet 156767 [22:08:33]ProducePacketName [22:08:33]name=ofd_packets/00156767 [22:08:33]NVStorageDeleteData [22:08:33]OFD Sender: No OFD packet to send [22:08:38]OFD Sender: No OFD packet to send [22:08:43]OFD Sender: No OFD packet to send [22:08:48]OFD Sender: No OFD packet to send [22:08:53]OFD Sender: No OFD packet to send [22:08:58]OFD Sender: No OFD packet to send [22:09:03]OFD Sender: No OFD packet to send [22:09:08]OFD Sender: No OFD packet to send [22:09:13]OFD Sender: No OFD packet to send [22:09:18]OFD Sender: No OFD packet to send [22:09:23]OFD Sender: No OFD packet to send [22:09:28]OFD Sender: No OFD packet to send [22:09:33]OFD Sender: No OFD packet to send [22:09:38]OFD Sender: No OFD packet to send [22:09:43]OFD Sender: No OFD packet to send [22:09:48]OFD Sender: No OFD packet to send [22:09:53]OFD Sender: No OFD packet to send [22:09:58]OFD Sender: No OFD packet to send [22:10:03]OFD Sender: No OFD packet to send [22:10:08]OFD Sender: No OFD packet to send [22:10:13]OFD Sender: No OFD packet to send [22:10:18]OFD Sender: No OFD packet to send [22:10:23]OFD Sender: No OFD packet to send [22:10:28]OFD Sender: No OFD packet to send [22:10:33]OFD Sender: No OFD packet to send [22:10:38]OFD Sender: No OFD packet to send [22:10:43]OFD Sender: No OFD packet to send [22:10:48]OFD Sender: No OFD packet to send [22:10:53]OFD Sender: No OFD packet to send [22:10:58]OFD Sender: No OFD packet to send [22:11:03]OFD Sender: No OFD packet to send [22:11:08]OFD Sender: No OFD packet to send [22:11:13]OFD Sender: No OFD packet to send [22:11:18]OFD Sender: No OFD packet to send [22:11:23]OFD Sender: No OFD packet to send [22:11:28]OFD Sender: No OFD packet to send [22:11:33]OFD Sender: No OFD packet to send [22:11:38]OFD Sender: No OFD packet to send [22:11:43]OFD Sender: No OFD packet to send [22:11:48]OFD Sender: No OFD packet to send [22:11:53]OFD Sender: No OFD packet to send [22:11:59]OFD Sender: No OFD packet to send [22:12:04]OFD Sender: No OFD packet to send [22:12:09]OFD Sender: No OFD packet to send [22:12:12]accept exits with 8 [22:12:12]New connection [22:12:12]New thread 3066834276 created [22:12:12]Thread 3066977636 joined [22:12:12]Waiting for new connection... [22:12:12] Sock 8.Parse request [22:12:12]Sock 8.Check first char [22:12:12]Sock 8.First char is OK [22:12:12]request: POST /json_proto HTTP/1.0 [22:12:12]Method: POST [22:12:12]URL: /json_proto [22:12:12]Method is POST - this is cgi request [22:12:12]url: /json_proto [22:12:12]query_string will be loaded in cgi processing [22:12:12]execute_cgi json_proto POST (null) [22:12:12]execute_cgi path=json_proto method=POST [22:12:12]POST find Content-Length [22:12:12]Host: 172.17.63.3:8080 [22:12:12]Content-Length: 676 [22:12:12]Content-Type: application/json [22:12:12] [22:12:12]POST finish read [22:12:12]Found Content-Length = 676 [22:12:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99582", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:12:12]execute_script... [22:12:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99582", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:12:12]POST & json_proto [22:12:12]process_json_proto [22:12:12]json parsed OK: [22:12:12]protocol is kg_v1.0 [22:12:12]action value=close_receipt [22:12:12]process_action close_receipt [22:12:12]cmd_close_receipt [22:12:12]MH_GetDate [22:12:12]Write to MH i2c: F0 00 00 A7 8B 21 [22:12:12]Write i2c OK [22:12:12]MH_I2C_Read... [22:12:12]Read from MH i2c: F0 [22:12:12]MH_I2C_Read... [22:12:12]Read from MH i2c: F0 09 00 [22:12:12]MH_I2C_Read... [22:12:12]Read from MH i2c: F0 09 00 A7 8B 00 C4 BA 1E 67 50 D1 6C 64 1E [22:12:12]GetLastDocTimeStamp 1730066782 [22:12:12]current date 1730067140 [22:12:12]FM_GetShiftState [22:12:12]SAM_PROTO_GetShiftState [22:12:12]wFMCommunicate request_size=4 [22:12:12]MH_SAM_APDU [22:12:12]CAPDU: 80 13 01 00 [22:12:12]Write to MH i2c: E2 08 00 A8 8B 80 13 01 00 00 00 00 00 B0 [22:12:12]Write i2c OK [22:12:12]MH_I2C_Read... [22:12:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:12:12]Read from MH i2c: E2 [22:12:12]MH_I2C_Read... [22:12:12]Read from MH i2c: E2 0E 00 [22:12:12]MH_I2C_Read... [22:12:12]Read from MH i2c: E2 0E 00 A8 8B 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 7D [22:12:12]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [22:12:12]wFMCommunicate OK [22:12:12]SAM_PROTO_GetShiftState done [22:12:12]FM_GetShiftState done [22:12:12]opened in 1729989044 [22:12:12]opened+sec_in_day 1730075444 [22:12:12]quantity*price = 40006 [22:12:12]sum+1 = 40007 [22:12:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 319 27.10.2024 22:12 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156768 ФПД: 36588920103995 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T221220&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156768&fm=36588920103995&tin=02508201610067®Number=0000000000091693&sum=40000 [22:12:13]StoreToDocumentArchive [22:12:13]shift 537 fd 156768 [22:12:13]save to /storage/0537/doc_00156768 [22:12:13]save last doc name /storage/0537/doc_00156768 to /storage/kkm_last_doc_name [22:12:13]save OK [22:12:13]Clear old archive folders... [22:12:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:12:13]tlvbuf is 01742130 [22:12:13]SAM_PROTO_ClearQueue [22:12:13]wFMCommunicate request_size=4 [22:12:13]MH_SAM_APDU [22:12:13]CAPDU: 80 09 00 00 [22:12:13]Write to MH i2c: E2 08 00 B5 8B 80 09 00 00 00 00 00 00 B2 [22:12:13]Write i2c OK [22:12:13]MH_I2C_Read... [22:12:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:12:13]Read from MH i2c: E2 [22:12:13]MH_I2C_Read... [22:12:13]Read from MH i2c: E2 03 00 [22:12:13]MH_I2C_Read... [22:12:13]Read from MH i2c: E2 03 00 B5 8B 00 90 00 B4 [22:12:13]RAPDU: 90 00 [22:12:13]wFMCommunicate OK [22:12:13]SAM_PROTO_ClearQueue done [22:12:13]KKMCreateOFDPacket [22:12:13]OFDProtocolAddRootSTLVToBuf [22:12:13]FM_MakeSignedData [22:12:13]FM_MakeSignedData [22:12:13]SAM_PROTO_SignData [22:12:13]wFMCommunicate request_size=4 [22:12:13]MH_SAM_APDU [22:12:13]CAPDU: 80 0D 01 02 [22:12:13]Write to MH i2c: E2 08 00 B6 8B 80 0D 01 02 00 00 00 00 BA [22:12:13]Write i2c OK [22:12:13]MH_I2C_Read... [22:12:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:12:13]Read from MH i2c: E2 [22:12:13]MH_I2C_Read... [22:12:13]Read from MH i2c: E2 03 00 [22:12:13]MH_I2C_Read... [22:12:13]Read from MH i2c: E2 03 00 B6 8B 00 90 00 B5 [22:12:13]RAPDU: 90 00 [22:12:13]wFMCommunicate OK [22:12:13]wFMCommunicate request_size=255 [22:12:13]MH_SAM_APDU [22:12:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 01 00 00 F4 03 04 00 C4 BA 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 60 64 02 00 35 04 06 00 21 [22:12:13]Write to MH i2c: E2 02 01 B7 8B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 01 00 00 F4 03 04 00 C4 BA 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 60 64 02 00 35 04 06 00 21 00 00 62 [22:12:13]Write i2c OK [22:12:13]MH_I2C_Read... [22:12:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:12:13]Read from MH i2c: E2 [22:12:13]MH_I2C_Read... [22:12:13]Read from MH i2c: E2 03 00 [22:12:13]MH_I2C_Read... [22:12:13]Read from MH i2c: E2 03 00 B7 8B 00 90 00 B6 [22:12:13]RAPDU: 90 00 [22:12:13]wFMCommunicate OK [22:12:13]wFMCommunicate request_size=10 [22:12:13]MH_SAM_APDU [22:12:13]CAPDU: 80 0D 02 02 05 47 05 95 E4 3B [22:12:13]Write to MH i2c: E2 0D 00 B8 8B 80 0D 02 02 05 00 47 05 95 E4 3B 00 00 C7 [22:12:13]Write i2c OK [22:12:13]MH_I2C_Read... [22:12:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:12:13]Read from MH i2c: E2 [22:12:13]MH_I2C_Read... [22:12:13]Read from MH i2c: E2 03 00 [22:12:13]MH_I2C_Read... [22:12:13]Read from MH i2c: E2 03 00 B8 8B 00 90 00 B7 [22:12:13]RAPDU: 90 00 [22:12:13]wFMCommunicate OK [22:12:13]wFMCommunicate request_size=4 [22:12:13]MH_SAM_APDU [22:12:13]CAPDU: 80 0D 03 02 [22:12:13]Write to MH i2c: E2 08 00 B9 8B 80 0D 03 02 00 00 00 00 BF [22:12:13]Write i2c OK [22:12:13]MH_I2C_Read... [22:12:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:12:13]Read from MH i2c: E2 [22:12:13]MH_I2C_Read... [22:12:13]Read from MH i2c: E2 0B 00 [22:12:13]MH_I2C_Read... [22:12:13]Read from MH i2c: E2 0B 00 B9 8B 00 03 1A 93 84 53 98 7D 16 90 00 72 [22:12:13]RAPDU: 03 1A 93 84 53 98 7D 16 90 00 [22:12:13]wFMCommunicate OK [22:12:13]SAM_PROTO_SignData done [22:12:13]FM_MakeSignedData done [22:12:13]CreateOFDProtocolMessage [22:12:13]wFMCommunicate request_size=4 [22:12:13]MH_SAM_APDU [22:12:13]CAPDU: 80 11 00 00 [22:12:13]Write to MH i2c: E2 08 00 BA 8B 80 11 00 00 00 00 00 00 BF [22:12:13]Write i2c OK [22:12:13]MH_I2C_Read... [22:12:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:12:13]Read from MH i2c: E2 [22:12:13]MH_I2C_Read... [22:12:13]Read from MH i2c: E2 17 00 [22:12:13]MH_I2C_Read... [22:12:13]Read from MH i2c: E2 17 00 BA 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 14 [22:12:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [22:12:13]wFMCommunicate OK [22:12:13]CreateOFDProtocolMessage done [22:12:13]OFDSenderStorePacket 156768 [22:12:13]StoreOFDPacket docnum=156768 [22:12:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 27 68 07 01 DA 67 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 01 00 00 F4 03 04 00 C4 BA 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 60 64 02 00 35 04 06 00 21 47 05 95 E4 3B 03 1A 93 84 53 98 7D 16 [22:12:13]CheckFolder [22:12:13]dirname=/storage/ofd_packets [22:12:13]CheckFolder done [22:12:13]ProducePacketName [22:12:13]name=ofd_packets/00156768 [22:12:13]NVStorageSaveData ofd_packets/00156768 [22:12:13]File name is /storage/ofd_packets/00156768 [22:12:13]Write 301 bytes [22:12:13]NVStorageSaveData done [22:12:13]OFDSenderStorePacket done [22:12:13]KKMCreateOFDPacket done [22:12:13]NVStorageSaveData kkm_last_timestamp [22:12:13]File name is /storage/kkm_last_timestamp [22:12:13]Write 4 bytes [22:12:13]NVStorageSaveData done [22:12:13]ExternCall_PrintAddStr [22:12:13]wPrintStart [22:12:13]Write to MH i2c: 01 00 00 BB 8B 46 [22:12:13]Write i2c OK [22:12:13]MH_I2C_Read... [22:12:13]Read from MH i2c: 01 [22:12:13]MH_I2C_Read... [22:12:13]Read from MH i2c: 01 07 00 [22:12:13]MH_I2C_Read... [22:12:13]Read from MH i2c: 01 07 00 BB 8B 00 00 00 00 00 FF 0F 5B [22:12:13]RasterBufferAndPrint [22:12:13]line Счет N : (1)99582 [22:12:13]line ИНН: 02508201610067 [22:12:13]line Контрольно-Кассовый Чек [22:12:13]line ПРОДАЖА [22:12:13]line ТРК (МРК, ГНК) : 31 [22:12:13]line Товар: 2710124130 [22:12:13]line Аи-92-К-5 [22:12:13]line 5.980 * 66.90 [22:12:13]line = 400.06 [22:12:13]line НДС 12% НСП 1% [22:12:13]line > о реализуемом товаре [22:12:13]line ОКРУГЛЕНИЕ: -0.06 [22:12:13]line ИТОГО: 400.00 [22:12:13]line Внесено: 400.00 [22:12:13]line СДАЧА: 0.00 [22:12:13]line НСП 1% : 3.54 [22:12:13]line НДС 12% : 42.48 [22:12:13]line Наличными: 400.00 [22:12:13]line Безнал.: 0.00 [22:12:13]line Место: АЗС № 143 "Партнер Нефть" [22:12:13]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [22:12:13]line СНО: Общий режим [22:12:13]line Чек 319 27.10.2024 22:12 [22:12:13]line Смена: 537 ФФД: 1.0 [22:12:13]line ЗНМ: 0300000096 [22:12:13]line РНМ: 0000000000091693 [22:12:13]line Версия ККМ: 001 [22:12:13]line ФМ: 0000000000871792 [22:12:13]line ФД: 156768 [22:12:13]line ФПД: 36588920103995 [22:12:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T221220&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156768&fm=36588920103995&tin=02508201610067®Number=0000000000091693&sum=40000 [22:12:14]OFD Sender: Processing packet 156768 [packets to send 31, broken 30] [22:12:14]ProducePacketName [22:12:14]name=ofd_packets/00156768 [22:12:14]OFD Sender: To server: pG, [22:12:14]CommunicateWithHost lk.salyk.kg:30040 [22:12:14]ConnectInit lk.salyk.kg [22:12:14]written 0, free lines is 4095 [22:12:14]Connected sock=10 [22:12:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 27 68 07 01 DA 67 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 01 00 00 F4 03 04 00 C4 BA 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 60 64 02 00 35 04 06 00 21 47 05 95 E4 3B 03 1A 93 84 53 98 7D 16 [22:12:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 CB B7 47 00 34 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 31 37 39 32 10 04 04 00 60 64 02 00 F4 03 04 00 32 60 1E 67 B6 04 01 00 00 EC A4 42 BC 54 75 21 CA [22:12:14]CommunicateWithHost err = 0 [22:12:14]CheckOFDResponse [22:12:14]1017 (14) - 77093643461234 [22:12:14]1041 (16) - 0000000000871792 [22:12:14]1040 (4) - 156768 [22:12:14]1012 (4) - 27.10.2024 15:45 [22:12:14]1206 (1) - 0 [22:12:14]OFD Sender: Remove packet 156768 [22:12:14]ProducePacketName [22:12:14]name=ofd_packets/00156768 [22:12:14]NVStorageDeleteData [22:12:14]Write to MH i2c: 01 00 00 E6 8B 71 [22:12:14]Write i2c OK [22:12:14]MH_I2C_Read... [22:12:14]Read from MH i2c: 01 [22:12:14]MH_I2C_Read... [22:12:14]Read from MH i2c: 01 07 00 [22:12:14]MH_I2C_Read... [22:12:14]Read from MH i2c: 01 07 00 E6 8B 00 00 00 00 00 E5 0C 69 [22:12:14]RasterBufferAndPrint [22:12:14]line [22:12:14]line [22:12:14]line [22:12:14]line [22:12:14]line [22:12:14]written 0, free lines is 3307 [22:12:14]process_action close_receipt done [22:12:14]requested_data is exist [22:12:14]produce_requested_data [22:12:14]requested_item fm.sn is exist - process it [22:12:14]wFMCommunicate request_size=4 [22:12:14]MH_SAM_APDU [22:12:14]CAPDU: 80 11 00 00 [22:12:14]Write to MH i2c: E2 08 00 ED 8B 80 11 00 00 00 00 00 00 F2 [22:12:14]Write i2c OK [22:12:14]MH_I2C_Read... [22:12:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:12:14]Read from MH i2c: E2 [22:12:14]MH_I2C_Read... [22:12:14]Read from MH i2c: E2 17 00 [22:12:14]MH_I2C_Read... [22:12:14]Read from MH i2c: E2 17 00 ED 8B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 47 [22:12:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [22:12:14]wFMCommunicate OK [22:12:14]requested_item fd.num is exist - process it [22:12:14]SAM_PROTO_GetFieldsCounters [22:12:14]wFMCommunicate request_size=4 [22:12:14]MH_SAM_APDU [22:12:14]CAPDU: 80 13 00 00 [22:12:14]Write to MH i2c: E2 08 00 EE 8B 80 13 00 00 00 00 00 00 F5 [22:12:14]Write i2c OK [22:12:14]MH_I2C_Read... [22:12:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:12:14]Read from MH i2c: E2 [22:12:14]MH_I2C_Read... [22:12:14]Read from MH i2c: E2 62 00 [22:12:14]MH_I2C_Read... [22:12:14]Read from MH i2c: E2 62 00 EE 8B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 60 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 3F 01 00 00 5E 04 04 00 3F 01 00 00 57 04 04 00 40 01 00 00 19 04 04 00 00 00 00 00 90 00 BC [22:12:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 60 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 3F 01 00 00 5E 04 04 00 3F 01 00 00 57 04 04 00 40 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:12:14]wFMCommunicate OK [22:12:14]SAM_PROTO_GetFieldsCounters done [22:12:14]requested_item shift.num is exist - process it [22:12:14]requested_item shift.opened is exist - process it [22:12:14]req_shift_opened [22:12:14]FM_GetShiftState [22:12:14]SAM_PROTO_GetShiftState [22:12:14]wFMCommunicate request_size=4 [22:12:14]MH_SAM_APDU [22:12:14]CAPDU: 80 13 01 00 [22:12:14]Write to MH i2c: E2 08 00 EF 8B 80 13 01 00 00 00 00 00 F7 [22:12:14]Write i2c OK [22:12:14]MH_I2C_Read... [22:12:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:12:14]Read from MH i2c: E2 [22:12:14]MH_I2C_Read... [22:12:14]Read from MH i2c: E2 0E 00 [22:12:14]MH_I2C_Read... [22:12:14]Read from MH i2c: E2 0E 00 EF 8B 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 C4 [22:12:14]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [22:12:14]wFMCommunicate OK [22:12:14]SAM_PROTO_GetShiftState done [22:12:14]FM_GetShiftState done [22:12:14]req_shift_opened done [22:12:14]requested_item shift.open_date is exist - process it [22:12:14]req_shift_open_date [22:12:14]req_shift_open_date done [22:12:14]produce_requested_data done [22:12:14]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156768,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [22:12:14]process_action_free close_receipt [22:12:14]json_value_free [22:12:14]json_value_free done [22:12:14]process_json_proto returns [22:12:14]Send response to host [22:12:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156768,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [22:12:14]free response buf [22:12:14]execute_script done [22:12:14]execute_script returns [22:12:14]free content buf [22:12:14]Sock 8.Close socket [22:12:14]Sock 8.Thread stoped [22:12:15]OFD Sender: No OFD packet to send [22:12:20]OFD Sender: No OFD packet to send [22:12:25]OFD Sender: No OFD packet to send [22:12:30]OFD Sender: No OFD packet to send [22:12:35]OFD Sender: No OFD packet to send [22:12:40]OFD Sender: No OFD packet to send [22:12:45]OFD Sender: No OFD packet to send [22:12:50]OFD Sender: No OFD packet to send [22:12:55]OFD Sender: No OFD packet to send [22:13:00]OFD Sender: No OFD packet to send [22:13:05]OFD Sender: No OFD packet to send [22:13:10]OFD Sender: No OFD packet to send [22:13:15]OFD Sender: No OFD packet to send [22:13:20]OFD Sender: No OFD packet to send [22:13:25]OFD Sender: No OFD packet to send [22:13:30]OFD Sender: No OFD packet to send [22:13:35]OFD Sender: No OFD packet to send [22:13:40]OFD Sender: No OFD packet to send [22:13:45]OFD Sender: No OFD packet to send [22:13:50]OFD Sender: No OFD packet to send [22:13:55]OFD Sender: No OFD packet to send [22:14:00]OFD Sender: No OFD packet to send [22:14:05]OFD Sender: No OFD packet to send [22:14:10]OFD Sender: No OFD packet to send [22:14:15]OFD Sender: No OFD packet to send [22:14:20]OFD Sender: No OFD packet to send [22:14:25]OFD Sender: No OFD packet to send [22:14:30]OFD Sender: No OFD packet to send [22:14:35]OFD Sender: No OFD packet to send [22:14:40]OFD Sender: No OFD packet to send [22:14:45]OFD Sender: No OFD packet to send [22:14:50]OFD Sender: No OFD packet to send [22:14:55]OFD Sender: No OFD packet to send [22:15:00]OFD Sender: No OFD packet to send [22:15:05]OFD Sender: No OFD packet to send [22:15:10]OFD Sender: No OFD packet to send [22:15:15]OFD Sender: No OFD packet to send [22:15:20]OFD Sender: No OFD packet to send [22:15:25]OFD Sender: No OFD packet to send [22:15:30]OFD Sender: No OFD packet to send [22:15:35]OFD Sender: No OFD packet to send [22:15:40]OFD Sender: No OFD packet to send [22:15:45]OFD Sender: No OFD packet to send [22:15:50]OFD Sender: No OFD packet to send [22:15:55]OFD Sender: No OFD packet to send [22:16:00]OFD Sender: No OFD packet to send [22:16:05]OFD Sender: No OFD packet to send [22:16:10]OFD Sender: No OFD packet to send [22:16:15]OFD Sender: No OFD packet to send [22:16:20]OFD Sender: No OFD packet to send [22:16:25]OFD Sender: No OFD packet to send [22:16:30]OFD Sender: No OFD packet to send [22:16:35]OFD Sender: No OFD packet to send [22:16:40]OFD Sender: No OFD packet to send [22:16:45]OFD Sender: No OFD packet to send [22:16:50]OFD Sender: No OFD packet to send [22:16:55]OFD Sender: No OFD packet to send [22:17:00]OFD Sender: No OFD packet to send [22:17:05]OFD Sender: No OFD packet to send [22:17:10]OFD Sender: No OFD packet to send [22:17:15]OFD Sender: No OFD packet to send [22:17:20]OFD Sender: No OFD packet to send [22:17:25]OFD Sender: No OFD packet to send [22:17:30]OFD Sender: No OFD packet to send [22:17:35]OFD Sender: No OFD packet to send [22:17:40]OFD Sender: No OFD packet to send [22:17:45]OFD Sender: No OFD packet to send [22:17:50]OFD Sender: No OFD packet to send [22:17:55]OFD Sender: No OFD packet to send [22:18:00]OFD Sender: No OFD packet to send [22:18:05]OFD Sender: No OFD packet to send [22:18:10]OFD Sender: No OFD packet to send [22:18:15]OFD Sender: No OFD packet to send [22:18:20]OFD Sender: No OFD packet to send [22:18:25]OFD Sender: No OFD packet to send [22:18:30]OFD Sender: No OFD packet to send [22:18:35]OFD Sender: No OFD packet to send [22:18:40]OFD Sender: No OFD packet to send [22:18:45]OFD Sender: No OFD packet to send [22:18:50]OFD Sender: No OFD packet to send [22:18:55]OFD Sender: No OFD packet to send [22:19:00]OFD Sender: No OFD packet to send [22:19:05]OFD Sender: No OFD packet to send [22:19:10]OFD Sender: No OFD packet to send [22:19:15]OFD Sender: No OFD packet to send [22:19:20]OFD Sender: No OFD packet to send [22:19:25]OFD Sender: No OFD packet to send [22:19:30]OFD Sender: No OFD packet to send [22:19:35]OFD Sender: No OFD packet to send [22:19:40]OFD Sender: No OFD packet to send [22:19:45]OFD Sender: No OFD packet to send [22:19:50]OFD Sender: No OFD packet to send [22:19:55]OFD Sender: No OFD packet to send [22:20:00]OFD Sender: No OFD packet to send [22:20:05]OFD Sender: No OFD packet to send [22:20:10]OFD Sender: No OFD packet to send [22:20:15]OFD Sender: No OFD packet to send [22:20:20]OFD Sender: No OFD packet to send [22:20:25]OFD Sender: No OFD packet to send [22:20:30]OFD Sender: No OFD packet to send [22:20:30]accept exits with 9 [22:20:30]New connection [22:20:30]New thread 3066977636 created [22:20:30]Thread 3066834276 joined [22:20:30]Waiting for new connection... [22:20:30] Sock 9.Parse request [22:20:30]Sock 9.Check first char [22:20:30]Sock 9.First char is OK [22:20:30]request: POST /json_proto HTTP/1.0 [22:20:30]Method: POST [22:20:30]URL: /json_proto [22:20:30]Method is POST - this is cgi request [22:20:30]url: /json_proto [22:20:30]query_string will be loaded in cgi processing [22:20:30]execute_cgi json_proto POST (null) [22:20:30]execute_cgi path=json_proto method=POST [22:20:30]POST find Content-Length [22:20:30]Host: 172.17.63.3:8080 [22:20:30]Content-Length: 676 [22:20:30]Content-Type: application/json [22:20:30] [22:20:30]POST finish read [22:20:30]Found Content-Length = 676 [22:20:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99583", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:20:30]execute_script... [22:20: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)99583", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:20:30]POST & json_proto [22:20:30]process_json_proto [22:20:30]json parsed OK: [22:20:30]protocol is kg_v1.0 [22:20:30]action value=close_receipt [22:20:30]process_action close_receipt [22:20:30]cmd_close_receipt [22:20:30]MH_GetDate [22:20:30]Write to MH i2c: F0 00 00 F0 8B 6A [22:20:30]Write i2c OK [22:20:30]MH_I2C_Read... [22:20:30]Read from MH i2c: F0 [22:20:30]MH_I2C_Read... [22:20:30]Read from MH i2c: F0 09 00 [22:20:30]MH_I2C_Read... [22:20:30]Read from MH i2c: F0 09 00 F0 8B 00 B6 BC 1E 67 50 D1 6C 64 5B [22:20:30]GetLastDocTimeStamp 1730067140 [22:20:30]current date 1730067638 [22:20:30]FM_GetShiftState [22:20:30]SAM_PROTO_GetShiftState [22:20:30]wFMCommunicate request_size=4 [22:20:30]MH_SAM_APDU [22:20:30]CAPDU: 80 13 01 00 [22:20:30]Write to MH i2c: E2 08 00 F1 8B 80 13 01 00 00 00 00 00 F9 [22:20:30]Write i2c OK [22:20:30]MH_I2C_Read... [22:20:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:20:30]Read from MH i2c: E2 [22:20:30]MH_I2C_Read... [22:20:30]Read from MH i2c: E2 0E 00 [22:20:30]MH_I2C_Read... [22:20:30]Read from MH i2c: E2 0E 00 F1 8B 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 C6 [22:20:30]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [22:20:30]wFMCommunicate OK [22:20:30]SAM_PROTO_GetShiftState done [22:20:30]FM_GetShiftState done [22:20:30]opened in 1729989044 [22:20:30]opened+sec_in_day 1730075444 [22:20:30]quantity*price = 30038 [22:20:30]sum+1 = 30039 [22:20:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 320 27.10.2024 22:20 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156769 ФПД: 190288948500494 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T222038&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156769&fm=190288948500494&tin=02508201610067®Number=0000000000091693&sum=30000 [22:20:31]StoreToDocumentArchive [22:20:31]shift 537 fd 156769 [22:20:31]save to /storage/0537/doc_00156769 [22:20:31]save last doc name /storage/0537/doc_00156769 to /storage/kkm_last_doc_name [22:20:31]save OK [22:20:31]Clear old archive folders... [22:20:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:20:31]tlvbuf is 01735EC0 [22:20:31]SAM_PROTO_ClearQueue [22:20:31]wFMCommunicate request_size=4 [22:20:31]MH_SAM_APDU [22:20:31]CAPDU: 80 09 00 00 [22:20:31]Write to MH i2c: E2 08 00 FE 8B 80 09 00 00 00 00 00 00 FB [22:20:31]Write i2c OK [22:20:31]MH_I2C_Read... [22:20:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:20:31]Read from MH i2c: E2 [22:20:31]MH_I2C_Read... [22:20:31]Read from MH i2c: E2 03 00 [22:20:31]MH_I2C_Read... [22:20:31]Read from MH i2c: E2 03 00 FE 8B 00 90 00 FD [22:20:31]RAPDU: 90 00 [22:20:31]wFMCommunicate OK [22:20:31]SAM_PROTO_ClearQueue done [22:20:31]KKMCreateOFDPacket [22:20:31]OFDProtocolAddRootSTLVToBuf [22:20:31]FM_MakeSignedData [22:20:31]FM_MakeSignedData [22:20:31]SAM_PROTO_SignData [22:20:31]wFMCommunicate request_size=4 [22:20:31]MH_SAM_APDU [22:20:31]CAPDU: 80 0D 01 02 [22:20:31]Write to MH i2c: E2 08 00 FF 8B 80 0D 01 02 00 00 00 00 03 [22:20:31]Write i2c OK [22:20:31]MH_I2C_Read... [22:20:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:20:31]Read from MH i2c: E2 [22:20:31]MH_I2C_Read... [22:20:31]Read from MH i2c: E2 03 00 [22:20:31]MH_I2C_Read... [22:20:31]Read from MH i2c: E2 03 00 FF 8B 00 90 00 FE [22:20:31]RAPDU: 90 00 [22:20:31]wFMCommunicate OK [22:20:31]wFMCommunicate request_size=255 [22:20:31]MH_SAM_APDU [22:20: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 B6 BC 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 61 64 02 00 35 04 06 00 AD [22:20:31]Write to MH i2c: E2 02 01 00 8C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 B6 BC 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 61 64 02 00 35 04 06 00 AD 00 00 53 [22:20:31]Write i2c OK [22:20:31]MH_I2C_Read... [22:20:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:20:32]Read from MH i2c: E2 [22:20:32]MH_I2C_Read... [22:20:32]Read from MH i2c: E2 03 00 [22:20:32]MH_I2C_Read... [22:20:32]Read from MH i2c: E2 03 00 00 8C 00 90 00 00 [22:20:32]RAPDU: 90 00 [22:20:32]wFMCommunicate OK [22:20:32]wFMCommunicate request_size=10 [22:20:32]MH_SAM_APDU [22:20:32]CAPDU: 80 0D 02 02 05 11 19 2E 18 0E [22:20:32]Write to MH i2c: E2 0D 00 01 8C 80 0D 02 02 05 00 11 19 2E 18 0E 00 00 8F [22:20:32]Write i2c OK [22:20:32]MH_I2C_Read... [22:20:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:20:32]Read from MH i2c: E2 [22:20:32]MH_I2C_Read... [22:20:32]Read from MH i2c: E2 03 00 [22:20:32]MH_I2C_Read... [22:20:32]Read from MH i2c: E2 03 00 01 8C 00 90 00 01 [22:20:32]RAPDU: 90 00 [22:20:32]wFMCommunicate OK [22:20:32]wFMCommunicate request_size=4 [22:20:32]MH_SAM_APDU [22:20:32]CAPDU: 80 0D 03 02 [22:20:32]Write to MH i2c: E2 08 00 02 8C 80 0D 03 02 00 00 00 00 09 [22:20:32]Write i2c OK [22:20:32]MH_I2C_Read... [22:20:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:20:32]Read from MH i2c: E2 [22:20:32]MH_I2C_Read... [22:20:32]Read from MH i2c: E2 0B 00 [22:20:32]MH_I2C_Read... [22:20:32]Read from MH i2c: E2 0B 00 02 8C 00 91 8F C7 AF 1A C2 E5 F6 90 00 57 [22:20:32]RAPDU: 91 8F C7 AF 1A C2 E5 F6 90 00 [22:20:32]wFMCommunicate OK [22:20:32]SAM_PROTO_SignData done [22:20:32]FM_MakeSignedData done [22:20:32]CreateOFDProtocolMessage [22:20:32]wFMCommunicate request_size=4 [22:20:32]MH_SAM_APDU [22:20:32]CAPDU: 80 11 00 00 [22:20:32]Write to MH i2c: E2 08 00 03 8C 80 11 00 00 00 00 00 00 09 [22:20:32]Write i2c OK [22:20:32]MH_I2C_Read... [22:20:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:20:32]Read from MH i2c: E2 [22:20:32]MH_I2C_Read... [22:20:32]Read from MH i2c: E2 17 00 [22:20:32]MH_I2C_Read... [22:20:32]Read from MH i2c: E2 17 00 03 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 5E [22:20:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [22:20:32]wFMCommunicate OK [22:20:32]CreateOFDProtocolMessage done [22:20:32]OFDSenderStorePacket 156769 [22:20:32]StoreOFDPacket docnum=156769 [22:20:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 26 BD 07 01 29 C1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 B6 BC 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 61 64 02 00 35 04 06 00 AD 11 19 2E 18 0E 91 8F C7 AF 1A C2 E5 F6 [22:20:32]CheckFolder [22:20:32]dirname=/storage/ofd_packets [22:20:32]CheckFolder done [22:20:32]ProducePacketName [22:20:32]name=ofd_packets/00156769 [22:20:32]NVStorageSaveData ofd_packets/00156769 [22:20:32]File name is /storage/ofd_packets/00156769 [22:20:32]Write 301 bytes [22:20:32]NVStorageSaveData done [22:20:32]OFDSenderStorePacket done [22:20:32]KKMCreateOFDPacket done [22:20:32]NVStorageSaveData kkm_last_timestamp [22:20:32]File name is /storage/kkm_last_timestamp [22:20:32]Write 4 bytes [22:20:32]NVStorageSaveData done [22:20:32]ExternCall_PrintAddStr [22:20:32]wPrintStart [22:20:32]Write to MH i2c: 01 00 00 04 8C 90 [22:20:32]Write i2c OK [22:20:32]MH_I2C_Read... [22:20:32]Read from MH i2c: 01 [22:20:32]MH_I2C_Read... [22:20:32]Read from MH i2c: 01 07 00 [22:20:32]MH_I2C_Read... [22:20:32]Read from MH i2c: 01 07 00 04 8C 00 00 00 00 00 FF 0F A5 [22:20:32]RasterBufferAndPrint [22:20:32]line Счет N : (1)99583 [22:20:32]line ИНН: 02508201610067 [22:20:32]line Контрольно-Кассовый Чек [22:20:32]line ПРОДАЖА [22:20:32]line ТРК (МРК, ГНК) : 31 [22:20:32]line Товар: 2710124130 [22:20:32]line Аи-92-К-5 [22:20:32]line 4.490 * 66.90 [22:20:32]line = 300.38 [22:20:32]line НДС 12% НСП 1% [22:20:32]line > о реализуемом товаре [22:20:32]line ОКРУГЛЕНИЕ: -0.38 [22:20:32]line ИТОГО: 300.00 [22:20:32]line Внесено: 300.00 [22:20:32]line СДАЧА: 0.00 [22:20:32]line НСП 1% : 2.66 [22:20:32]line НДС 12% : 31.90 [22:20:32]line Наличными: 300.00 [22:20:32]line Безнал.: 0.00 [22:20:32]line Место: АЗС № 143 "Партнер Нефть" [22:20:32]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [22:20:32]line СНО: Общий режим [22:20:32]line Чек 320 27.10.2024 22:20 [22:20:32]line Смена: 537 ФФД: 1.0 [22:20:32]line ЗНМ: 0300000096 [22:20:32]line РНМ: 0000000000091693 [22:20:32]line Версия ККМ: 001 [22:20:32]line ФМ: 0000000000871792 [22:20:32]line ФД: 156769 [22:20:32]line ФПД: 190288948500494 [22:20:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T222038&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156769&fm=190288948500494&tin=02508201610067®Number=0000000000091693&sum=30000 [22:20:32]OFD Sender: Processing packet 156769 [packets to send 31, broken 30] [22:20:32]ProducePacketName [22:20:32]name=ofd_packets/00156769 [22:20:32]OFD Sender: To server: pG, [22:20:32]CommunicateWithHost lk.salyk.kg:30040 [22:20:32]ConnectInit lk.salyk.kg [22:20:32]written 0, free lines is 4095 [22:20:32]Connected sock=10 [22:20:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 26 BD 07 01 29 C1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 B6 BC 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 61 64 02 00 35 04 06 00 AD 11 19 2E 18 0E 91 8F C7 AF 1A C2 E5 F6 [22:20:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 1D 0D 47 00 2A A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 61 64 02 00 F4 03 04 00 25 62 1E 67 B6 04 01 00 00 99 07 A6 C1 1C EB 9A AA [22:20:33]CommunicateWithHost err = 0 [22:20:33]CheckOFDResponse [22:20:33]1017 (14) - 77093643461234 [22:20:33]1041 (16) - 0000000000871792 [22:20:33]1040 (4) - 156769 [22:20:33]1012 (4) - 27.10.2024 15:54 [22:20:33]1206 (1) - 0 [22:20:33]OFD Sender: Remove packet 156769 [22:20:33]ProducePacketName [22:20:33]name=ofd_packets/00156769 [22:20:33]NVStorageDeleteData [22:20:33]Write to MH i2c: 01 00 00 2F 8C BB [22:20:33]Write i2c OK [22:20:33]MH_I2C_Read... [22:20:33]Read from MH i2c: 01 [22:20:33]MH_I2C_Read... [22:20:33]Read from MH i2c: 01 07 00 [22:20:33]MH_I2C_Read... [22:20:33]Read from MH i2c: 01 07 00 2F 8C 00 00 00 00 00 E4 0C B2 [22:20:33]RasterBufferAndPrint [22:20:33]line [22:20:33]line [22:20:33]line [22:20:33]line [22:20:33]line [22:20:33]written 0, free lines is 3309 [22:20:33]process_action close_receipt done [22:20:33]requested_data is exist [22:20:33]produce_requested_data [22:20:33]requested_item fm.sn is exist - process it [22:20:33]wFMCommunicate request_size=4 [22:20:33]MH_SAM_APDU [22:20:33]CAPDU: 80 11 00 00 [22:20:33]Write to MH i2c: E2 08 00 36 8C 80 11 00 00 00 00 00 00 3C [22:20:33]Write i2c OK [22:20:33]MH_I2C_Read... [22:20:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:20:33]Read from MH i2c: E2 [22:20:33]MH_I2C_Read... [22:20:33]Read from MH i2c: E2 17 00 [22:20:33]MH_I2C_Read... [22:20:33]Read from MH i2c: E2 17 00 36 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 91 [22:20:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [22:20:33]wFMCommunicate OK [22:20:33]requested_item fd.num is exist - process it [22:20:33]SAM_PROTO_GetFieldsCounters [22:20:33]wFMCommunicate request_size=4 [22:20:33]MH_SAM_APDU [22:20:33]CAPDU: 80 13 00 00 [22:20:33]Write to MH i2c: E2 08 00 37 8C 80 13 00 00 00 00 00 00 3F [22:20:33]Write i2c OK [22:20:33]MH_I2C_Read... [22:20:33]Read from MH i2c: E2 [22:20:33]MH_I2C_Read... [22:20:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:20:33]Read from MH i2c: E2 62 00 [22:20:33]MH_I2C_Read... [22:20:33]Read from MH i2c: E2 62 00 37 8C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 61 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 40 01 00 00 5E 04 04 00 40 01 00 00 57 04 04 00 41 01 00 00 19 04 04 00 00 00 00 00 90 00 0A [22:20:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 61 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 40 01 00 00 5E 04 04 00 40 01 00 00 57 04 04 00 41 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:20:33]wFMCommunicate OK [22:20:33]SAM_PROTO_GetFieldsCounters done [22:20:33]requested_item shift.num is exist - process it [22:20:33]requested_item shift.opened is exist - process it [22:20:33]req_shift_opened [22:20:33]FM_GetShiftState [22:20:33]SAM_PROTO_GetShiftState [22:20:33]wFMCommunicate request_size=4 [22:20:33]MH_SAM_APDU [22:20:33]CAPDU: 80 13 01 00 [22:20:33]Write to MH i2c: E2 08 00 38 8C 80 13 01 00 00 00 00 00 41 [22:20:33]Write i2c OK [22:20:33]MH_I2C_Read... [22:20:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:20:33]Read from MH i2c: E2 [22:20:33]MH_I2C_Read... [22:20:33]Read from MH i2c: E2 0E 00 [22:20:33]MH_I2C_Read... [22:20:33]Read from MH i2c: E2 0E 00 38 8C 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 0E [22:20:33]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [22:20:33]wFMCommunicate OK [22:20:33]SAM_PROTO_GetShiftState done [22:20:33]FM_GetShiftState done [22:20:33]req_shift_opened done [22:20:33]requested_item shift.open_date is exist - process it [22:20:33]req_shift_open_date [22:20:33]req_shift_open_date done [22:20:33]produce_requested_data done [22:20:33]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156769,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [22:20:33]process_action_free close_receipt [22:20:33]json_value_free [22:20:33]json_value_free done [22:20:33]process_json_proto returns [22:20:33]Send response to host [22:20:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156769,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [22:20:33]free response buf [22:20:33]execute_script done [22:20:33]execute_script returns [22:20:33]free content buf [22:20:33]Sock 9.Close socket [22:20:33]Sock 9.Thread stoped [22:20:33]OFD Sender: No OFD packet to send [22:20:38]OFD Sender: No OFD packet to send [22:20:43]OFD Sender: No OFD packet to send [22:20:48]OFD Sender: No OFD packet to send [22:20:53]OFD Sender: No OFD packet to send [22:20:58]OFD Sender: No OFD packet to send [22:21:03]OFD Sender: No OFD packet to send [22:21:08]OFD Sender: No OFD packet to send [22:21:13]OFD Sender: No OFD packet to send [22:21:18]OFD Sender: No OFD packet to send [22:21:23]OFD Sender: No OFD packet to send [22:21:28]OFD Sender: No OFD packet to send [22:21:33]OFD Sender: No OFD packet to send [22:21:38]OFD Sender: No OFD packet to send [22:21:43]OFD Sender: No OFD packet to send [22:21:43]accept exits with 8 [22:21:43]New connection [22:21:43]New thread 3066834276 created [22:21:43]Thread 3066977636 joined [22:21:43]Waiting for new connection... [22:21:43] Sock 8.Parse request [22:21:43]Sock 8.Check first char [22:21:43]Sock 8.First char is OK [22:21:43]request: POST /json_proto HTTP/1.0 [22:21:43]Method: POST [22:21:43]URL: /json_proto [22:21:43]Method is POST - this is cgi request [22:21:43]url: /json_proto [22:21:43]query_string will be loaded in cgi processing [22:21:43]execute_cgi json_proto POST (null) [22:21:43]execute_cgi path=json_proto method=POST [22:21:43]POST find Content-Length [22:21:43]Host: 172.17.63.3:8080 [22:21:43]Content-Length: 676 [22:21:43]Content-Type: application/json [22:21:43] [22:21:43]POST finish read [22:21:43]Found Content-Length = 676 [22:21:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99584", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:21:43]execute_script... [22:21: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)99584", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:21:43]POST & json_proto [22:21:43]process_json_proto [22:21:43]json parsed OK: [22:21:43]protocol is kg_v1.0 [22:21:43]action value=close_receipt [22:21:43]process_action close_receipt [22:21:43]cmd_close_receipt [22:21:43]MH_GetDate [22:21:43]Write to MH i2c: F0 00 00 39 8C B4 [22:21:43]Write i2c OK [22:21:43]MH_I2C_Read... [22:21:43]Read from MH i2c: F0 [22:21:43]MH_I2C_Read... [22:21:43]Read from MH i2c: F0 09 00 [22:21:43]MH_I2C_Read... [22:21:43]Read from MH i2c: F0 09 00 39 8C 00 FF BC 1E 67 50 D1 6C 64 EE [22:21:43]GetLastDocTimeStamp 1730067638 [22:21:43]current date 1730067711 [22:21:43]FM_GetShiftState [22:21:43]SAM_PROTO_GetShiftState [22:21:43]wFMCommunicate request_size=4 [22:21:43]MH_SAM_APDU [22:21:43]CAPDU: 80 13 01 00 [22:21:43]Write to MH i2c: E2 08 00 3A 8C 80 13 01 00 00 00 00 00 43 [22:21:43]Write i2c OK [22:21:43]MH_I2C_Read... [22:21:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:21:43]Read from MH i2c: E2 [22:21:43]MH_I2C_Read... [22:21:43]Read from MH i2c: E2 0E 00 [22:21:43]MH_I2C_Read... [22:21:43]Read from MH i2c: E2 0E 00 3A 8C 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 10 [22:21:43]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [22:21:43]wFMCommunicate OK [22:21:43]SAM_PROTO_GetShiftState done [22:21:43]FM_GetShiftState done [22:21:43]opened in 1729989044 [22:21:43]opened+sec_in_day 1730075444 [22:21:43]quantity*price = 50041 [22:21:43]sum+1 = 50042 [22:21:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 321 27.10.2024 22:21 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156770 ФПД: 49220648922690 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T222151&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156770&fm=49220648922690&tin=02508201610067®Number=0000000000091693&sum=50000 [22:21:44]StoreToDocumentArchive [22:21:44]shift 537 fd 156770 [22:21:44]save to /storage/0537/doc_00156770 [22:21:44]save last doc name /storage/0537/doc_00156770 to /storage/kkm_last_doc_name [22:21:44]save OK [22:21:44]Clear old archive folders... [22:21:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:21:44]tlvbuf is 017ABB60 [22:21:44]SAM_PROTO_ClearQueue [22:21:44]wFMCommunicate request_size=4 [22:21:44]MH_SAM_APDU [22:21:44]CAPDU: 80 09 00 00 [22:21:44]Write to MH i2c: E2 08 00 47 8C 80 09 00 00 00 00 00 00 45 [22:21:44]Write i2c OK [22:21:44]MH_I2C_Read... [22:21:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:21:44]Read from MH i2c: E2 [22:21:44]MH_I2C_Read... [22:21:44]Read from MH i2c: E2 03 00 [22:21:44]MH_I2C_Read... [22:21:44]Read from MH i2c: E2 03 00 47 8C 00 90 00 47 [22:21:44]RAPDU: 90 00 [22:21:44]wFMCommunicate OK [22:21:44]SAM_PROTO_ClearQueue done [22:21:44]KKMCreateOFDPacket [22:21:44]OFDProtocolAddRootSTLVToBuf [22:21:44]FM_MakeSignedData [22:21:44]FM_MakeSignedData [22:21:44]SAM_PROTO_SignData [22:21:44]wFMCommunicate request_size=4 [22:21:44]MH_SAM_APDU [22:21:44]CAPDU: 80 0D 01 02 [22:21:44]Write to MH i2c: E2 08 00 48 8C 80 0D 01 02 00 00 00 00 4D [22:21:44]Write i2c OK [22:21:44]MH_I2C_Read... [22:21:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:21:45]Read from MH i2c: E2 [22:21:45]MH_I2C_Read... [22:21:45]Read from MH i2c: E2 03 00 [22:21:45]MH_I2C_Read... [22:21:45]Read from MH i2c: E2 03 00 48 8C 00 90 00 48 [22:21:45]RAPDU: 90 00 [22:21:45]wFMCommunicate OK [22:21:45]wFMCommunicate request_size=255 [22:21:45]MH_SAM_APDU [22:21: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 FF BC 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 62 64 02 00 35 04 06 00 2C [22:21:45]Write to MH i2c: E2 02 01 49 8C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 FF BC 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 62 64 02 00 35 04 06 00 2C 00 00 72 [22:21:45]Write i2c OK [22:21:45]MH_I2C_Read... [22:21:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:21:45]Read from MH i2c: E2 [22:21:45]MH_I2C_Read... [22:21:45]Read from MH i2c: E2 03 00 [22:21:45]MH_I2C_Read... [22:21:45]Read from MH i2c: E2 03 00 49 8C 00 90 00 49 [22:21:45]RAPDU: 90 00 [22:21:45]wFMCommunicate OK [22:21:45]wFMCommunicate request_size=10 [22:21:45]MH_SAM_APDU [22:21:45]CAPDU: 80 0D 02 02 05 C4 13 4B 6E 42 [22:21:45]Write to MH i2c: E2 0D 00 4A 8C 80 0D 02 02 05 00 C4 13 4B 6E 42 00 00 2C [22:21:45]Write i2c OK [22:21:45]MH_I2C_Read... [22:21:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:21:45]Read from MH i2c: E2 [22:21:45]MH_I2C_Read... [22:21:45]Read from MH i2c: E2 03 00 [22:21:45]MH_I2C_Read... [22:21:45]Read from MH i2c: E2 03 00 4A 8C 00 90 00 4A [22:21:45]RAPDU: 90 00 [22:21:45]wFMCommunicate OK [22:21:45]wFMCommunicate request_size=4 [22:21:45]MH_SAM_APDU [22:21:45]CAPDU: 80 0D 03 02 [22:21:45]Write to MH i2c: E2 08 00 4B 8C 80 0D 03 02 00 00 00 00 52 [22:21:45]Write i2c OK [22:21:45]MH_I2C_Read... [22:21:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:21:45]Read from MH i2c: E2 [22:21:45]MH_I2C_Read... [22:21:45]Read from MH i2c: E2 0B 00 [22:21:45]MH_I2C_Read... [22:21:45]Read from MH i2c: E2 0B 00 4B 8C 00 DD DF 01 56 8E 49 B6 A3 90 00 96 [22:21:45]RAPDU: DD DF 01 56 8E 49 B6 A3 90 00 [22:21:45]wFMCommunicate OK [22:21:45]SAM_PROTO_SignData done [22:21:45]FM_MakeSignedData done [22:21:45]CreateOFDProtocolMessage [22:21:45]wFMCommunicate request_size=4 [22:21:45]MH_SAM_APDU [22:21:45]CAPDU: 80 11 00 00 [22:21:45]Write to MH i2c: E2 08 00 4C 8C 80 11 00 00 00 00 00 00 52 [22:21:45]Write i2c OK [22:21:45]MH_I2C_Read... [22:21:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:21:45]Read from MH i2c: E2 [22:21:45]MH_I2C_Read... [22:21:45]Read from MH i2c: E2 17 00 [22:21:45]MH_I2C_Read... [22:21:45]Read from MH i2c: E2 17 00 4C 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 A7 [22:21:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [22:21:45]wFMCommunicate OK [22:21:45]CreateOFDProtocolMessage done [22:21:45]OFDSenderStorePacket 156770 [22:21:45]StoreOFDPacket docnum=156770 [22:21:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 97 4D 07 01 9D 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 FF BC 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 62 64 02 00 35 04 06 00 2C C4 13 4B 6E 42 DD DF 01 56 8E 49 B6 A3 [22:21:45]CheckFolder [22:21:45]dirname=/storage/ofd_packets [22:21:45]CheckFolder done [22:21:45]ProducePacketName [22:21:45]name=ofd_packets/00156770 [22:21:45]NVStorageSaveData ofd_packets/00156770 [22:21:45]File name is /storage/ofd_packets/00156770 [22:21:45]Write 301 bytes [22:21:45]NVStorageSaveData done [22:21:45]OFDSenderStorePacket done [22:21:45]KKMCreateOFDPacket done [22:21:45]NVStorageSaveData kkm_last_timestamp [22:21:45]File name is /storage/kkm_last_timestamp [22:21:45]Write 4 bytes [22:21:45]NVStorageSaveData done [22:21:45]ExternCall_PrintAddStr [22:21:45]wPrintStart [22:21:45]Write to MH i2c: 01 00 00 4D 8C D9 [22:21:45]Write i2c OK [22:21:45]MH_I2C_Read... [22:21:45]Read from MH i2c: 01 [22:21:45]MH_I2C_Read... [22:21:45]Read from MH i2c: 01 07 00 [22:21:45]MH_I2C_Read... [22:21:45]Read from MH i2c: 01 07 00 4D 8C 00 00 00 00 00 FF 0F EE [22:21:45]RasterBufferAndPrint [22:21:45]line Счет N : (1)99584 [22:21:45]line ИНН: 02508201610067 [22:21:45]line Контрольно-Кассовый Чек [22:21:45]line ПРОДАЖА [22:21:45]line ТРК (МРК, ГНК) : 31 [22:21:45]line Товар: 2710124130 [22:21:45]line Аи-92-К-5 [22:21:45]line 7.480 * 66.90 [22:21:45]line = 500.41 [22:21:45]line НДС 12% НСП 1% [22:21:45]line > о реализуемом товаре [22:21:45]line ОКРУГЛЕНИЕ: -0.41 [22:21:45]line ИТОГО: 500.00 [22:21:45]line Внесено: 500.00 [22:21:45]line СДАЧА: 0.00 [22:21:45]line НСП 1% : 4.43 [22:21:45]line НДС 12% : 53.14 [22:21:45]line Наличными: 500.00 [22:21:45]line Безнал.: 0.00 [22:21:45]line Место: АЗС № 143 "Партнер Нефть" [22:21:45]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [22:21:45]line СНО: Общий режим [22:21:45]line Чек 321 27.10.2024 22:21 [22:21:45]line Смена: 537 ФФД: 1.0 [22:21:45]line ЗНМ: 0300000096 [22:21:45]line РНМ: 0000000000091693 [22:21:45]line Версия ККМ: 001 [22:21:45]line ФМ: 0000000000871792 [22:21:45]line ФД: 156770 [22:21:45]line ФПД: 49220648922690 [22:21:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T222151&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156770&fm=49220648922690&tin=02508201610067®Number=0000000000091693&sum=50000 [22:21:45]OFD Sender: Processing packet 156770 [packets to send 31, broken 30] [22:21:45]ProducePacketName [22:21:45]name=ofd_packets/00156770 [22:21:45]OFD Sender: To server: pG, [22:21:45]CommunicateWithHost lk.salyk.kg:30040 [22:21:45]ConnectInit lk.salyk.kg [22:21:45]written 0, free lines is 4095 [22:21:45]Connected sock=10 [22:21:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 97 4D 07 01 9D 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 FF BC 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 62 64 02 00 35 04 06 00 2C C4 13 4B 6E 42 DD DF 01 56 8E 49 B6 A3 [22:21:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 07 D1 47 00 A8 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 62 64 02 00 F4 03 04 00 6E 62 1E 67 B6 04 01 00 00 16 6F 97 A7 CF CB 56 C1 [22:21:46]CommunicateWithHost err = 0 [22:21:46]CheckOFDResponse [22:21:46]1017 (14) - 77093643461234 [22:21:46]1041 (16) - 0000000000871792 [22:21:46]1040 (4) - 156770 [22:21:46]1012 (4) - 27.10.2024 15:55 [22:21:46]1206 (1) - 0 [22:21:46]OFD Sender: Remove packet 156770 [22:21:46]ProducePacketName [22:21:46]name=ofd_packets/00156770 [22:21:46]NVStorageDeleteData [22:21:46]Write to MH i2c: 01 00 00 78 8C 04 [22:21:46]Write i2c OK [22:21:46]MH_I2C_Read... [22:21:46]Read from MH i2c: 01 [22:21:46]MH_I2C_Read... [22:21:46]Read from MH i2c: 01 07 00 [22:21:46]MH_I2C_Read... [22:21:46]Read from MH i2c: 01 07 00 78 8C 00 00 00 00 00 F1 0C 08 [22:21:46]RasterBufferAndPrint [22:21:46]line [22:21:46]line [22:21:46]line [22:21:46]line [22:21:46]line [22:21:46]written 0, free lines is 3323 [22:21:46]process_action close_receipt done [22:21:46]requested_data is exist [22:21:46]produce_requested_data [22:21:46]requested_item fm.sn is exist - process it [22:21:46]wFMCommunicate request_size=4 [22:21:46]MH_SAM_APDU [22:21:46]CAPDU: 80 11 00 00 [22:21:46]Write to MH i2c: E2 08 00 7F 8C 80 11 00 00 00 00 00 00 85 [22:21:46]Write i2c OK [22:21:46]MH_I2C_Read... [22:21:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:21:46]Read from MH i2c: E2 [22:21:46]MH_I2C_Read... [22:21:46]Read from MH i2c: E2 17 00 [22:21:46]MH_I2C_Read... [22:21:46]Read from MH i2c: E2 17 00 7F 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 DA [22:21:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [22:21:46]wFMCommunicate OK [22:21:46]requested_item fd.num is exist - process it [22:21:46]SAM_PROTO_GetFieldsCounters [22:21:46]wFMCommunicate request_size=4 [22:21:46]MH_SAM_APDU [22:21:46]CAPDU: 80 13 00 00 [22:21:46]Write to MH i2c: E2 08 00 80 8C 80 13 00 00 00 00 00 00 88 [22:21:46]Write i2c OK [22:21:46]MH_I2C_Read... [22:21:46]Read from MH i2c: E2 [22:21:46]MH_I2C_Read... [22:21:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:21:46]Read from MH i2c: E2 62 00 [22:21:46]MH_I2C_Read... [22:21:46]Read from MH i2c: E2 62 00 80 8C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 62 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 41 01 00 00 5E 04 04 00 41 01 00 00 57 04 04 00 42 01 00 00 19 04 04 00 00 00 00 00 90 00 57 [22:21:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 62 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 41 01 00 00 5E 04 04 00 41 01 00 00 57 04 04 00 42 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:21:46]wFMCommunicate OK [22:21:46]SAM_PROTO_GetFieldsCounters done [22:21:46]requested_item shift.num is exist - process it [22:21:46]requested_item shift.opened is exist - process it [22:21:46]req_shift_opened [22:21:46]FM_GetShiftState [22:21:46]SAM_PROTO_GetShiftState [22:21:46]wFMCommunicate request_size=4 [22:21:46]MH_SAM_APDU [22:21:46]CAPDU: 80 13 01 00 [22:21:46]Write to MH i2c: E2 08 00 81 8C 80 13 01 00 00 00 00 00 8A [22:21:46]Write i2c OK [22:21:46]MH_I2C_Read... [22:21:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:21:46]Read from MH i2c: E2 [22:21:46]MH_I2C_Read... [22:21:46]Read from MH i2c: E2 0E 00 [22:21:46]MH_I2C_Read... [22:21:46]Read from MH i2c: E2 0E 00 81 8C 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 57 [22:21:46]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [22:21:46]wFMCommunicate OK [22:21:46]SAM_PROTO_GetShiftState done [22:21:46]FM_GetShiftState done [22:21:46]req_shift_opened done [22:21:46]requested_item shift.open_date is exist - process it [22:21:46]req_shift_open_date [22:21:46]req_shift_open_date done [22:21:46]produce_requested_data done [22:21:46]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156770,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [22:21:46]process_action_free close_receipt [22:21:46]json_value_free [22:21:46]json_value_free done [22:21:46]process_json_proto returns [22:21:46]Send response to host [22:21:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156770,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [22:21:46]free response buf [22:21:46]execute_script done [22:21:46]execute_script returns [22:21:46]free content buf [22:21:46]Sock 8.Close socket [22:21:46]Sock 8.Thread stoped [22:21:46]OFD Sender: No OFD packet to send [22:21:51]OFD Sender: No OFD packet to send [22:21:56]OFD Sender: No OFD packet to send [22:22:01]OFD Sender: No OFD packet to send [22:22:06]OFD Sender: No OFD packet to send [22:22:11]OFD Sender: No OFD packet to send [22:22:16]OFD Sender: No OFD packet to send [22:22:21]OFD Sender: No OFD packet to send [22:22:26]OFD Sender: No OFD packet to send [22:22:31]OFD Sender: No OFD packet to send [22:22:36]OFD Sender: No OFD packet to send [22:22:41]OFD Sender: No OFD packet to send [22:22:46]OFD Sender: No OFD packet to send [22:22:51]OFD Sender: No OFD packet to send [22:22:56]OFD Sender: No OFD packet to send [22:23:01]OFD Sender: No OFD packet to send [22:23:06]OFD Sender: No OFD packet to send [22:23:11]OFD Sender: No OFD packet to send [22:23:16]OFD Sender: No OFD packet to send [22:23:21]OFD Sender: No OFD packet to send [22:23:26]OFD Sender: No OFD packet to send [22:23:31]OFD Sender: No OFD packet to send [22:23:36]OFD Sender: No OFD packet to send [22:23:41]OFD Sender: No OFD packet to send [22:23:46]OFD Sender: No OFD packet to send [22:23:51]OFD Sender: No OFD packet to send [22:23:56]OFD Sender: No OFD packet to send [22:24:01]OFD Sender: No OFD packet to send [22:24:06]OFD Sender: No OFD packet to send [22:24:11]OFD Sender: No OFD packet to send [22:24:16]OFD Sender: No OFD packet to send [22:24:21]OFD Sender: No OFD packet to send [22:24:26]OFD Sender: No OFD packet to send [22:24:31]OFD Sender: No OFD packet to send [22:24:36]OFD Sender: No OFD packet to send [22:24:41]OFD Sender: No OFD packet to send [22:24:46]OFD Sender: No OFD packet to send [22:24:51]OFD Sender: No OFD packet to send [22:24:56]OFD Sender: No OFD packet to send [22:25:01]OFD Sender: No OFD packet to send [22:25:06]OFD Sender: No OFD packet to send [22:25:11]accept exits with 9 [22:25:11]New connection [22:25:11]New thread 3066977636 created [22:25:11]Thread 3066834276 joined [22:25:11]Waiting for new connection... [22:25:11] Sock 9.Parse request [22:25:11]Sock 9.Check first char [22:25:11]Sock 9.First char is OK [22:25:11]request: POST /json_proto HTTP/1.0 [22:25:11]Method: POST [22:25:11]URL: /json_proto [22:25:11]Method is POST - this is cgi request [22:25:11]url: /json_proto [22:25:11]query_string will be loaded in cgi processing [22:25:11]execute_cgi json_proto POST (null) [22:25:11]execute_cgi path=json_proto method=POST [22:25:11]POST find Content-Length [22:25:11]Host: 172.17.63.3:8080 [22:25:11]Content-Length: 678 [22:25:11]Content-Type: application/json [22:25:11] [22:25:11]POST finish read [22:25:11]Found Content-Length = 678 [22:25:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99585", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:25:11]execute_script... [22:25: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)99585", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:25:11]POST & json_proto [22:25:11]process_json_proto [22:25:11]json parsed OK: [22:25:11]protocol is kg_v1.0 [22:25:11]action value=close_receipt [22:25:11]process_action close_receipt [22:25:11]cmd_close_receipt [22:25:11]MH_GetDate [22:25:11]Write to MH i2c: F0 00 00 82 8C FD [22:25:11]Write i2c OK [22:25:11]MH_I2C_Read... [22:25:11]Read from MH i2c: F0 [22:25:11]MH_I2C_Read... [22:25:11]Read from MH i2c: F0 09 00 [22:25:11]MH_I2C_Read... [22:25:11]Read from MH i2c: F0 09 00 82 8C 00 CF BD 1E 67 50 D1 6C 64 08 [22:25:11]GetLastDocTimeStamp 1730067711 [22:25:11]current date 1730067919 [22:25:11]FM_GetShiftState [22:25:11]SAM_PROTO_GetShiftState [22:25:11]wFMCommunicate request_size=4 [22:25:11]MH_SAM_APDU [22:25:11]CAPDU: 80 13 01 00 [22:25:11]Write to MH i2c: E2 08 00 83 8C 80 13 01 00 00 00 00 00 8C [22:25:11]Write i2c OK [22:25:11]MH_I2C_Read... [22:25:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:25:11]Read from MH i2c: E2 [22:25:11]MH_I2C_Read... [22:25:11]Read from MH i2c: E2 0E 00 [22:25:11]MH_I2C_Read... [22:25:11]Read from MH i2c: E2 0E 00 83 8C 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 59 [22:25:11]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [22:25:11]wFMCommunicate OK [22:25:11]SAM_PROTO_GetShiftState done [22:25:11]FM_GetShiftState done [22:25:11]opened in 1729989044 [22:25:11]opened+sec_in_day 1730075444 [22:25:11]quantity*price = 100050 [22:25:11]sum+1 = 100052 [22:25:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 322 27.10.2024 22:25 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156771 ФПД: 126214661198243 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T222519&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156771&fm=126214661198243&tin=02508201610067®Number=0000000000091693&sum=100000 [22:25:12]StoreToDocumentArchive [22:25:12]shift 537 fd 156771 [22:25:12]save to /storage/0537/doc_00156771 [22:25:12]save last doc name /storage/0537/doc_00156771 to /storage/kkm_last_doc_name [22:25:12]save OK [22:25:12]Clear old archive folders... [22:25:12]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:25:12]tlvbuf is 01763640 [22:25:12]SAM_PROTO_ClearQueue [22:25:12]wFMCommunicate request_size=4 [22:25:12]MH_SAM_APDU [22:25:12]CAPDU: 80 09 00 00 [22:25:12]Write to MH i2c: E2 08 00 90 8C 80 09 00 00 00 00 00 00 8E [22:25:12]Write i2c OK [22:25:12]MH_I2C_Read... [22:25:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:25:12]Read from MH i2c: E2 [22:25:12]MH_I2C_Read... [22:25:12]Read from MH i2c: E2 03 00 [22:25:12]MH_I2C_Read... [22:25:12]Read from MH i2c: E2 03 00 90 8C 00 90 00 90 [22:25:12]RAPDU: 90 00 [22:25:12]wFMCommunicate OK [22:25:12]SAM_PROTO_ClearQueue done [22:25:12]KKMCreateOFDPacket [22:25:12]OFDProtocolAddRootSTLVToBuf [22:25:12]FM_MakeSignedData [22:25:12]FM_MakeSignedData [22:25:12]SAM_PROTO_SignData [22:25:12]wFMCommunicate request_size=4 [22:25:12]MH_SAM_APDU [22:25:12]CAPDU: 80 0D 01 02 [22:25:12]Write to MH i2c: E2 08 00 91 8C 80 0D 01 02 00 00 00 00 96 [22:25:12]Write i2c OK [22:25:12]MH_I2C_Read... [22:25:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:25:12]Read from MH i2c: E2 [22:25:12]MH_I2C_Read... [22:25:12]Read from MH i2c: E2 03 00 [22:25:12]MH_I2C_Read... [22:25:12]Read from MH i2c: E2 03 00 91 8C 00 90 00 91 [22:25:12]RAPDU: 90 00 [22:25:12]wFMCommunicate OK [22:25:12]wFMCommunicate request_size=255 [22:25:12]MH_SAM_APDU [22:25:12]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 CF BD 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 63 64 02 00 35 04 06 00 72 CA A4 0B [22:25:12]Write to MH i2c: E2 02 01 92 8C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 CF BD 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 63 64 02 00 35 04 06 00 72 CA A4 0B 00 00 43 [22:25:12]Write i2c OK [22:25:12]MH_I2C_Read... [22:25:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:25:12]Read from MH i2c: E2 [22:25:12]MH_I2C_Read... [22:25:12]Read from MH i2c: E2 03 00 [22:25:12]MH_I2C_Read... [22:25:12]Read from MH i2c: E2 03 00 92 8C 00 90 00 92 [22:25:12]RAPDU: 90 00 [22:25:12]wFMCommunicate OK [22:25:12]wFMCommunicate request_size=7 [22:25:12]MH_SAM_APDU [22:25:12]CAPDU: 80 0D 02 02 02 D1 A3 [22:25:12]Write to MH i2c: E2 0A 00 93 8C 80 0D 02 02 02 00 D1 A3 00 00 11 [22:25:13]Write i2c OK [22:25:13]MH_I2C_Read... [22:25:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:25:13]Read from MH i2c: E2 [22:25:13]MH_I2C_Read... [22:25:13]Read from MH i2c: E2 03 00 [22:25:13]MH_I2C_Read... [22:25:13]Read from MH i2c: E2 03 00 93 8C 00 90 00 93 [22:25:13]RAPDU: 90 00 [22:25:13]wFMCommunicate OK [22:25:13]wFMCommunicate request_size=4 [22:25:13]MH_SAM_APDU [22:25:13]CAPDU: 80 0D 03 02 [22:25:13]Write to MH i2c: E2 08 00 94 8C 80 0D 03 02 00 00 00 00 9B [22:25:13]Write i2c OK [22:25:13]MH_I2C_Read... [22:25:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:25:13]Read from MH i2c: E2 [22:25:13]MH_I2C_Read... [22:25:13]Read from MH i2c: E2 0B 00 [22:25:13]MH_I2C_Read... [22:25:13]Read from MH i2c: E2 0B 00 94 8C 00 26 57 C4 08 67 C1 24 AE 90 00 DF [22:25:13]RAPDU: 26 57 C4 08 67 C1 24 AE 90 00 [22:25:13]wFMCommunicate OK [22:25:13]SAM_PROTO_SignData done [22:25:13]FM_MakeSignedData done [22:25:13]CreateOFDProtocolMessage [22:25:13]wFMCommunicate request_size=4 [22:25:13]MH_SAM_APDU [22:25:13]CAPDU: 80 11 00 00 [22:25:13]Write to MH i2c: E2 08 00 95 8C 80 11 00 00 00 00 00 00 9B [22:25:13]Write i2c OK [22:25:13]MH_I2C_Read... [22:25:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:25:13]Read from MH i2c: E2 [22:25:13]MH_I2C_Read... [22:25:13]Read from MH i2c: E2 17 00 [22:25:13]MH_I2C_Read... [22:25:13]Read from MH i2c: E2 17 00 95 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 F0 [22:25:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [22:25:13]wFMCommunicate OK [22:25:13]CreateOFDProtocolMessage done [22:25:13]OFDSenderStorePacket 156771 [22:25:13]StoreOFDPacket docnum=156771 [22:25:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 49 36 04 01 3D A8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 CF BD 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 63 64 02 00 35 04 06 00 72 CA A4 0B D1 A3 26 57 C4 08 67 C1 24 AE [22:25:13]CheckFolder [22:25:13]dirname=/storage/ofd_packets [22:25:13]CheckFolder done [22:25:13]ProducePacketName [22:25:13]name=ofd_packets/00156771 [22:25:13]NVStorageSaveData ofd_packets/00156771 [22:25:13]File name is /storage/ofd_packets/00156771 [22:25:13]Write 298 bytes [22:25:13]NVStorageSaveData done [22:25:13]OFDSenderStorePacket done [22:25:13]KKMCreateOFDPacket done [22:25:13]NVStorageSaveData kkm_last_timestamp [22:25:13]File name is /storage/kkm_last_timestamp [22:25:13]Write 4 bytes [22:25:13]NVStorageSaveData done [22:25:13]ExternCall_PrintAddStr [22:25:13]wPrintStart [22:25:13]Write to MH i2c: 01 00 00 96 8C 22 [22:25:13]Write i2c OK [22:25:13]MH_I2C_Read... [22:25:13]Read from MH i2c: 01 [22:25:13]MH_I2C_Read... [22:25:13]Read from MH i2c: 01 07 00 [22:25:13]MH_I2C_Read... [22:25:13]Read from MH i2c: 01 07 00 96 8C 00 00 00 00 00 FF 0F 37 [22:25:13]RasterBufferAndPrint [22:25:13]line Счет N : (1)99585 [22:25:13]line ИНН: 02508201610067 [22:25:13]line Контрольно-Кассовый Чек [22:25:13]line ПРОДАЖА [22:25:13]line ТРК (МРК, ГНК) : 32 [22:25:13]line Товар: 2710194210 [22:25:13]line ДТ-К-5 [22:25:13]line 13.130 * 76.20 [22:25:13]line = 1000.51 [22:25:13]line НДС 12% НСП 1% [22:25:13]line > о реализуемом товаре [22:25:13]line ОКРУГЛЕНИЕ: -0.51 [22:25:13]line ИТОГО: 1000.00 [22:25:13]line Внесено: 1000.00 [22:25:13]line СДАЧА: 0.00 [22:25:13]line НСП 1% : 8.85 [22:25:13]line НДС 12% : 106.25 [22:25:13]line Наличными: 1000.00 [22:25:13]line Безнал.: 0.00 [22:25:13]line Место: АЗС № 143 "Партнер Нефть" [22:25:13]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [22:25:13]line СНО: Общий режим [22:25:13]line Чек 322 27.10.2024 22:25 [22:25:13]line Смена: 537 ФФД: 1.0 [22:25:13]line ЗНМ: 0300000096 [22:25:13]line РНМ: 0000000000091693 [22:25:13]line Версия ККМ: 001 [22:25:13]line ФМ: 0000000000871792 [22:25:13]line ФД: 156771 [22:25:13]line ФПД: 126214661198243 [22:25:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T222519&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156771&fm=126214661198243&tin=02508201610067®Number=0000000000091693&sum=100000 [22:25:13]OFD Sender: Processing packet 156771 [packets to send 31, broken 30] [22:25:13]ProducePacketName [22:25:13]name=ofd_packets/00156771 [22:25:13]OFD Sender: To server: pG, [22:25:13]CommunicateWithHost lk.salyk.kg:30040 [22:25:13]ConnectInit lk.salyk.kg [22:25:13]written 0, free lines is 4095 [22:25:13]Connected sock=10 [22:25:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 49 36 04 01 3D A8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 CF BD 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 63 64 02 00 35 04 06 00 72 CA A4 0B D1 A3 26 57 C4 08 67 C1 24 AE [22:25:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 AF FD 47 00 65 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 63 64 02 00 F4 03 04 00 3D 63 1E 67 B6 04 01 00 00 8D 9B EA 73 12 BE 83 21 [22:25:13]CommunicateWithHost err = 0 [22:25:13]CheckOFDResponse [22:25:13]1017 (14) - 77093643461234 [22:25:13]1041 (16) - 0000000000871792 [22:25:13]1040 (4) - 156771 [22:25:13]1012 (4) - 27.10.2024 15:58 [22:25:13]1206 (1) - 0 [22:25:13]OFD Sender: Remove packet 156771 [22:25:13]ProducePacketName [22:25:13]name=ofd_packets/00156771 [22:25:13]NVStorageDeleteData [22:25:13]Write to MH i2c: 01 00 00 C1 8C 4D [22:25:13]Write i2c OK [22:25:13]MH_I2C_Read... [22:25:13]Read from MH i2c: 01 [22:25:13]MH_I2C_Read... [22:25:13]Read from MH i2c: 01 07 00 [22:25:13]MH_I2C_Read... [22:25:13]Read from MH i2c: 01 07 00 C1 8C 00 00 00 00 00 F3 0C 53 [22:25:13]RasterBufferAndPrint [22:25:13]line [22:25:13]line [22:25:13]line [22:25:13]line [22:25:13]line [22:25:13]written 0, free lines is 3321 [22:25:13]process_action close_receipt done [22:25:13]requested_data is exist [22:25:13]produce_requested_data [22:25:13]requested_item fm.sn is exist - process it [22:25:13]wFMCommunicate request_size=4 [22:25:13]MH_SAM_APDU [22:25:13]CAPDU: 80 11 00 00 [22:25:13]Write to MH i2c: E2 08 00 C8 8C 80 11 00 00 00 00 00 00 CE [22:25:13]Write i2c OK [22:25:13]MH_I2C_Read... [22:25:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:25:14]Read from MH i2c: E2 [22:25:14]MH_I2C_Read... [22:25:14]Read from MH i2c: E2 17 00 [22:25:14]MH_I2C_Read... [22:25:14]Read from MH i2c: E2 17 00 C8 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 23 [22:25:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [22:25:14]wFMCommunicate OK [22:25:14]requested_item fd.num is exist - process it [22:25:14]SAM_PROTO_GetFieldsCounters [22:25:14]wFMCommunicate request_size=4 [22:25:14]MH_SAM_APDU [22:25:14]CAPDU: 80 13 00 00 [22:25:14]Write to MH i2c: E2 08 00 C9 8C 80 13 00 00 00 00 00 00 D1 [22:25:14]Write i2c OK [22:25:14]MH_I2C_Read... [22:25:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:25:14]Read from MH i2c: E2 [22:25:14]MH_I2C_Read... [22:25:14]Read from MH i2c: E2 62 00 [22:25:14]MH_I2C_Read... [22:25:14]Read from MH i2c: E2 62 00 C9 8C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 63 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 42 01 00 00 5E 04 04 00 42 01 00 00 57 04 04 00 43 01 00 00 19 04 04 00 00 00 00 00 90 00 A4 [22:25:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 63 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 42 01 00 00 5E 04 04 00 42 01 00 00 57 04 04 00 43 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:25:14]wFMCommunicate OK [22:25:14]SAM_PROTO_GetFieldsCounters done [22:25:14]requested_item shift.num is exist - process it [22:25:14]requested_item shift.opened is exist - process it [22:25:14]req_shift_opened [22:25:14]FM_GetShiftState [22:25:14]SAM_PROTO_GetShiftState [22:25:14]wFMCommunicate request_size=4 [22:25:14]MH_SAM_APDU [22:25:14]CAPDU: 80 13 01 00 [22:25:14]Write to MH i2c: E2 08 00 CA 8C 80 13 01 00 00 00 00 00 D3 [22:25:14]Write i2c OK [22:25:14]MH_I2C_Read... [22:25:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:25:14]Read from MH i2c: E2 [22:25:14]MH_I2C_Read... [22:25:14]Read from MH i2c: E2 0E 00 [22:25:14]MH_I2C_Read... [22:25:14]Read from MH i2c: E2 0E 00 CA 8C 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 A0 [22:25:14]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [22:25:14]wFMCommunicate OK [22:25:14]SAM_PROTO_GetShiftState done [22:25:14]FM_GetShiftState done [22:25:14]req_shift_opened done [22:25:14]requested_item shift.open_date is exist - process it [22:25:14]req_shift_open_date [22:25:14]req_shift_open_date done [22:25:14]produce_requested_data done [22:25:14]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156771,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [22:25:14]process_action_free close_receipt [22:25:14]json_value_free [22:25:14]json_value_free done [22:25:14]process_json_proto returns [22:25:14]Send response to host [22:25:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156771,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [22:25:14]free response buf [22:25:14]execute_script done [22:25:14]execute_script returns [22:25:14]free content buf [22:25:14]Sock 9.Close socket [22:25:14]Sock 9.Thread stoped [22:25:14]OFD Sender: No OFD packet to send [22:25:19]OFD Sender: No OFD packet to send [22:25:24]OFD Sender: No OFD packet to send [22:25:29]OFD Sender: No OFD packet to send [22:25:34]OFD Sender: No OFD packet to send [22:25:39]OFD Sender: No OFD packet to send [22:25:44]OFD Sender: No OFD packet to send [22:25:49]OFD Sender: No OFD packet to send [22:25:54]OFD Sender: No OFD packet to send [22:25:59]OFD Sender: No OFD packet to send [22:26:04]OFD Sender: No OFD packet to send [22:26:09]OFD Sender: No OFD packet to send [22:26:14]OFD Sender: No OFD packet to send [22:26:19]OFD Sender: No OFD packet to send [22:26:24]OFD Sender: No OFD packet to send [22:26:29]OFD Sender: No OFD packet to send [22:26:34]OFD Sender: No OFD packet to send [22:26:39]OFD Sender: No OFD packet to send [22:26:44]OFD Sender: No OFD packet to send [22:26:49]OFD Sender: No OFD packet to send [22:26:54]OFD Sender: No OFD packet to send [22:26:59]OFD Sender: No OFD packet to send [22:27:04]OFD Sender: No OFD packet to send [22:27:09]OFD Sender: No OFD packet to send [22:27:14]OFD Sender: No OFD packet to send [22:27:19]OFD Sender: No OFD packet to send [22:27:24]OFD Sender: No OFD packet to send [22:27:29]OFD Sender: No OFD packet to send [22:27:34]OFD Sender: No OFD packet to send [22:27:39]OFD Sender: No OFD packet to send [22:27:44]OFD Sender: No OFD packet to send [22:27:49]OFD Sender: No OFD packet to send [22:27:54]OFD Sender: No OFD packet to send [22:27:59]OFD Sender: No OFD packet to send [22:28:04]OFD Sender: No OFD packet to send [22:28:09]OFD Sender: No OFD packet to send [22:28:14]OFD Sender: No OFD packet to send [22:28:19]OFD Sender: No OFD packet to send [22:28:24]OFD Sender: No OFD packet to send [22:28:29]OFD Sender: No OFD packet to send [22:28:34]OFD Sender: No OFD packet to send [22:28:39]OFD Sender: No OFD packet to send [22:28:44]OFD Sender: No OFD packet to send [22:28:49]OFD Sender: No OFD packet to send [22:28:54]OFD Sender: No OFD packet to send [22:28:59]OFD Sender: No OFD packet to send [22:29:04]OFD Sender: No OFD packet to send [22:29:09]OFD Sender: No OFD packet to send [22:29:14]OFD Sender: No OFD packet to send [22:29:19]OFD Sender: No OFD packet to send [22:29:24]OFD Sender: No OFD packet to send [22:29:29]OFD Sender: No OFD packet to send [22:29:34]OFD Sender: No OFD packet to send [22:29:39]OFD Sender: No OFD packet to send [22:29:44]OFD Sender: No OFD packet to send [22:29:49]OFD Sender: No OFD packet to send [22:29:54]OFD Sender: No OFD packet to send [22:29:59]OFD Sender: No OFD packet to send [22:30:04]OFD Sender: No OFD packet to send [22:30:09]OFD Sender: No OFD packet to send [22:30:14]OFD Sender: No OFD packet to send [22:30:19]OFD Sender: No OFD packet to send [22:30:24]OFD Sender: No OFD packet to send [22:30:29]OFD Sender: No OFD packet to send [22:30:34]OFD Sender: No OFD packet to send [22:30:39]OFD Sender: No OFD packet to send [22:30:44]OFD Sender: No OFD packet to send [22:30:49]OFD Sender: No OFD packet to send [22:30:54]OFD Sender: No OFD packet to send [22:30:59]OFD Sender: No OFD packet to send [22:31:04]OFD Sender: No OFD packet to send [22:31:09]OFD Sender: No OFD packet to send [22:31:14]OFD Sender: No OFD packet to send [22:31:19]OFD Sender: No OFD packet to send [22:31:24]OFD Sender: No OFD packet to send [22:31:29]OFD Sender: No OFD packet to send [22:31:34]OFD Sender: No OFD packet to send [22:31:39]OFD Sender: No OFD packet to send [22:31:44]OFD Sender: No OFD packet to send [22:31:49]OFD Sender: No OFD packet to send [22:31:54]OFD Sender: No OFD packet to send [22:31:59]OFD Sender: No OFD packet to send [22:32:04]OFD Sender: No OFD packet to send [22:32:09]OFD Sender: No OFD packet to send [22:32:14]OFD Sender: No OFD packet to send [22:32:19]OFD Sender: No OFD packet to send [22:32:24]OFD Sender: No OFD packet to send [22:32:29]OFD Sender: No OFD packet to send [22:32:34]OFD Sender: No OFD packet to send [22:32:39]OFD Sender: No OFD packet to send [22:32:44]OFD Sender: No OFD packet to send [22:32:49]OFD Sender: No OFD packet to send [22:32:54]OFD Sender: No OFD packet to send [22:32:59]OFD Sender: No OFD packet to send [22:33:04]OFD Sender: No OFD packet to send [22:33:09]OFD Sender: No OFD packet to send [22:33:14]OFD Sender: No OFD packet to send [22:33:19]OFD Sender: No OFD packet to send [22:33:24]OFD Sender: No OFD packet to send [22:33:29]OFD Sender: No OFD packet to send [22:33:34]OFD Sender: No OFD packet to send [22:33:39]OFD Sender: No OFD packet to send [22:33:44]OFD Sender: No OFD packet to send [22:33:49]OFD Sender: No OFD packet to send [22:33:54]OFD Sender: No OFD packet to send [22:33:59]OFD Sender: No OFD packet to send [22:34:04]OFD Sender: No OFD packet to send [22:34:09]OFD Sender: No OFD packet to send [22:34:14]OFD Sender: No OFD packet to send [22:34:19]OFD Sender: No OFD packet to send [22:34:24]OFD Sender: No OFD packet to send [22:34:29]OFD Sender: No OFD packet to send [22:34:34]OFD Sender: No OFD packet to send [22:34:39]OFD Sender: No OFD packet to send [22:34:44]OFD Sender: No OFD packet to send [22:34:49]OFD Sender: No OFD packet to send [22:34:54]OFD Sender: No OFD packet to send [22:34:59]OFD Sender: No OFD packet to send [22:35:04]OFD Sender: No OFD packet to send [22:35:09]OFD Sender: No OFD packet to send [22:35:14]OFD Sender: No OFD packet to send [22:35:19]OFD Sender: No OFD packet to send [22:35:24]OFD Sender: No OFD packet to send [22:35:29]OFD Sender: No OFD packet to send [22:35:34]OFD Sender: No OFD packet to send [22:35:39]OFD Sender: No OFD packet to send [22:35:44]OFD Sender: No OFD packet to send [22:35:49]OFD Sender: No OFD packet to send [22:35:54]OFD Sender: No OFD packet to send [22:35:59]OFD Sender: No OFD packet to send [22:36:04]OFD Sender: No OFD packet to send [22:36:09]OFD Sender: No OFD packet to send [22:36:14]OFD Sender: No OFD packet to send [22:36:19]OFD Sender: No OFD packet to send [22:36:24]OFD Sender: No OFD packet to send [22:36:29]OFD Sender: No OFD packet to send [22:36:34]OFD Sender: No OFD packet to send [22:36:39]OFD Sender: No OFD packet to send [22:36:44]OFD Sender: No OFD packet to send [22:36:49]OFD Sender: No OFD packet to send [22:36:54]OFD Sender: No OFD packet to send [22:36:59]OFD Sender: No OFD packet to send [22:37:04]OFD Sender: No OFD packet to send [22:37:09]OFD Sender: No OFD packet to send [22:37:14]OFD Sender: No OFD packet to send [22:37:19]OFD Sender: No OFD packet to send [22:37:24]OFD Sender: No OFD packet to send [22:37:29]OFD Sender: No OFD packet to send [22:37:34]OFD Sender: No OFD packet to send [22:37:39]OFD Sender: No OFD packet to send [22:37:44]OFD Sender: No OFD packet to send [22:37:49]OFD Sender: No OFD packet to send [22:37:54]OFD Sender: No OFD packet to send [22:37:59]OFD Sender: No OFD packet to send [22:38:04]OFD Sender: No OFD packet to send [22:38:09]OFD Sender: No OFD packet to send [22:38:14]OFD Sender: No OFD packet to send [22:38:19]OFD Sender: No OFD packet to send [22:38:24]OFD Sender: No OFD packet to send [22:38:30]OFD Sender: No OFD packet to send [22:38:35]OFD Sender: No OFD packet to send [22:38:40]OFD Sender: No OFD packet to send [22:38:45]OFD Sender: No OFD packet to send [22:38:50]OFD Sender: No OFD packet to send [22:38:55]OFD Sender: No OFD packet to send [22:39:00]OFD Sender: No OFD packet to send [22:39:05]OFD Sender: No OFD packet to send [22:39:10]OFD Sender: No OFD packet to send [22:39:15]OFD Sender: No OFD packet to send [22:39:20]OFD Sender: No OFD packet to send [22:39:25]OFD Sender: No OFD packet to send [22:39:30]OFD Sender: No OFD packet to send [22:39:35]OFD Sender: No OFD packet to send [22:39:40]OFD Sender: No OFD packet to send [22:39:45]OFD Sender: No OFD packet to send [22:39:50]OFD Sender: No OFD packet to send [22:39:55]OFD Sender: No OFD packet to send [22:40:00]OFD Sender: No OFD packet to send [22:40:05]OFD Sender: No OFD packet to send [22:40:10]OFD Sender: No OFD packet to send [22:40:15]OFD Sender: No OFD packet to send [22:40:20]OFD Sender: No OFD packet to send [22:40:25]OFD Sender: No OFD packet to send [22:40:30]OFD Sender: No OFD packet to send [22:40:35]OFD Sender: No OFD packet to send [22:40:40]OFD Sender: No OFD packet to send [22:40:45]OFD Sender: No OFD packet to send [22:40:50]OFD Sender: No OFD packet to send [22:40:52]accept exits with 8 [22:40:52]New connection [22:40:52]New thread 3066834276 created [22:40:52]Thread 3066977636 joined [22:40:52]Waiting for new connection... [22:40:52] Sock 8.Parse request [22:40:52]Sock 8.Check first char [22:40:52]Sock 8.First char is OK [22:40:52]request: POST /json_proto HTTP/1.0 [22:40:52]Method: POST [22:40:52]URL: /json_proto [22:40:52]Method is POST - this is cgi request [22:40:52]url: /json_proto [22:40:52]query_string will be loaded in cgi processing [22:40:52]execute_cgi json_proto POST (null) [22:40:52]execute_cgi path=json_proto method=POST [22:40:52]POST find Content-Length [22:40:52]Host: 172.17.63.3:8080 [22:40:52]Content-Length: 676 [22:40:52]Content-Type: application/json [22:40:52] [22:40:52]POST finish read [22:40:52]Found Content-Length = 676 [22:40:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99586", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:40:52]execute_script... [22:40: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)99586", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:40:52]POST & json_proto [22:40:52]process_json_proto [22:40:52]json parsed OK: [22:40:52]protocol is kg_v1.0 [22:40:52]action value=close_receipt [22:40:52]process_action close_receipt [22:40:52]cmd_close_receipt [22:40:52]MH_GetDate [22:40:52]Write to MH i2c: F0 00 00 CB 8C 46 [22:40:52]Write i2c OK [22:40:52]MH_I2C_Read... [22:40:52]Read from MH i2c: F0 [22:40:52]MH_I2C_Read... [22:40:52]Read from MH i2c: F0 09 00 [22:40:52]MH_I2C_Read... [22:40:52]Read from MH i2c: F0 09 00 CB 8C 00 7C C1 1E 67 50 D1 6C 64 02 [22:40:52]GetLastDocTimeStamp 1730067919 [22:40:52]current date 1730068860 [22:40:52]FM_GetShiftState [22:40:52]SAM_PROTO_GetShiftState [22:40:52]wFMCommunicate request_size=4 [22:40:52]MH_SAM_APDU [22:40:52]CAPDU: 80 13 01 00 [22:40:52]Write to MH i2c: E2 08 00 CC 8C 80 13 01 00 00 00 00 00 D5 [22:40:52]Write i2c OK [22:40:52]MH_I2C_Read... [22:40:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:40:52]Read from MH i2c: E2 [22:40:52]MH_I2C_Read... [22:40:52]Read from MH i2c: E2 0E 00 [22:40:52]MH_I2C_Read... [22:40:52]Read from MH i2c: E2 0E 00 CC 8C 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 A2 [22:40:52]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [22:40:52]wFMCommunicate OK [22:40:52]SAM_PROTO_GetShiftState done [22:40:52]FM_GetShiftState done [22:40:52]opened in 1729989044 [22:40:52]opened+sec_in_day 1730075444 [22:40:52]quantity*price = 50041 [22:40:52]sum+1 = 50042 [22:40:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 323 27.10.2024 22:41 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156772 ФПД: 86890205815749 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T224100&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156772&fm=86890205815749&tin=02508201610067®Number=0000000000091693&sum=50000 [22:40:53]StoreToDocumentArchive [22:40:53]shift 537 fd 156772 [22:40:53]save to /storage/0537/doc_00156772 [22:40:53]save last doc name /storage/0537/doc_00156772 to /storage/kkm_last_doc_name [22:40:53]save OK [22:40:53]Clear old archive folders... [22:40:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:40:53]tlvbuf is 01906A40 [22:40:53]SAM_PROTO_ClearQueue [22:40:53]wFMCommunicate request_size=4 [22:40:53]MH_SAM_APDU [22:40:53]CAPDU: 80 09 00 00 [22:40:53]Write to MH i2c: E2 08 00 D9 8C 80 09 00 00 00 00 00 00 D7 [22:40:53]Write i2c OK [22:40:53]MH_I2C_Read... [22:40:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:40:54]Read from MH i2c: E2 [22:40:54]MH_I2C_Read... [22:40:54]Read from MH i2c: E2 03 00 [22:40:54]MH_I2C_Read... [22:40:54]Read from MH i2c: E2 03 00 D9 8C 00 90 00 D9 [22:40:54]RAPDU: 90 00 [22:40:54]wFMCommunicate OK [22:40:54]SAM_PROTO_ClearQueue done [22:40:54]KKMCreateOFDPacket [22:40:54]OFDProtocolAddRootSTLVToBuf [22:40:54]FM_MakeSignedData [22:40:54]FM_MakeSignedData [22:40:54]SAM_PROTO_SignData [22:40:54]wFMCommunicate request_size=4 [22:40:54]MH_SAM_APDU [22:40:54]CAPDU: 80 0D 01 02 [22:40:54]Write to MH i2c: E2 08 00 DA 8C 80 0D 01 02 00 00 00 00 DF [22:40:54]Write i2c OK [22:40:54]MH_I2C_Read... [22:40:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:40:54]Read from MH i2c: E2 [22:40:54]MH_I2C_Read... [22:40:54]Read from MH i2c: E2 03 00 [22:40:54]MH_I2C_Read... [22:40:54]Read from MH i2c: E2 03 00 DA 8C 00 90 00 DA [22:40:54]RAPDU: 90 00 [22:40:54]wFMCommunicate OK [22:40:54]wFMCommunicate request_size=255 [22:40:54]MH_SAM_APDU [22:40:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 01 00 00 F4 03 04 00 7C C1 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 64 64 02 00 35 04 06 00 4F [22:40:54]Write to MH i2c: E2 02 01 DB 8C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 01 00 00 F4 03 04 00 7C C1 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 64 64 02 00 35 04 06 00 4F 00 00 AD [22:40:54]Write i2c OK [22:40:54]MH_I2C_Read... [22:40:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:40:54]Read from MH i2c: E2 [22:40:54]MH_I2C_Read... [22:40:54]Read from MH i2c: E2 03 00 [22:40:54]MH_I2C_Read... [22:40:54]Read from MH i2c: E2 03 00 DB 8C 00 90 00 DB [22:40:54]RAPDU: 90 00 [22:40:54]wFMCommunicate OK [22:40:54]wFMCommunicate request_size=10 [22:40:54]MH_SAM_APDU [22:40:54]CAPDU: 80 0D 02 02 05 06 B3 DA 23 C5 [22:40:54]Write to MH i2c: E2 0D 00 DC 8C 80 0D 02 02 05 00 06 B3 DA 23 C5 00 00 67 [22:40:54]Write i2c OK [22:40:54]MH_I2C_Read... [22:40:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:40:54]Read from MH i2c: E2 [22:40:54]MH_I2C_Read... [22:40:54]Read from MH i2c: E2 03 00 [22:40:54]MH_I2C_Read... [22:40:54]Read from MH i2c: E2 03 00 DC 8C 00 90 00 DC [22:40:54]RAPDU: 90 00 [22:40:54]wFMCommunicate OK [22:40:54]wFMCommunicate request_size=4 [22:40:54]MH_SAM_APDU [22:40:54]CAPDU: 80 0D 03 02 [22:40:54]Write to MH i2c: E2 08 00 DD 8C 80 0D 03 02 00 00 00 00 E4 [22:40:54]Write i2c OK [22:40:54]MH_I2C_Read... [22:40:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:40:54]Read from MH i2c: E2 [22:40:54]MH_I2C_Read... [22:40:54]Read from MH i2c: E2 0B 00 [22:40:54]MH_I2C_Read... [22:40:54]Read from MH i2c: E2 0B 00 DD 8C 00 00 99 9D 3B 16 F0 F2 E6 90 00 34 [22:40:54]RAPDU: 00 99 9D 3B 16 F0 F2 E6 90 00 [22:40:54]wFMCommunicate OK [22:40:54]SAM_PROTO_SignData done [22:40:54]FM_MakeSignedData done [22:40:54]CreateOFDProtocolMessage [22:40:54]wFMCommunicate request_size=4 [22:40:54]MH_SAM_APDU [22:40:54]CAPDU: 80 11 00 00 [22:40:54]Write to MH i2c: E2 08 00 DE 8C 80 11 00 00 00 00 00 00 E4 [22:40:54]Write i2c OK [22:40:54]MH_I2C_Read... [22:40:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:40:54]Read from MH i2c: E2 [22:40:54]MH_I2C_Read... [22:40:54]Read from MH i2c: E2 17 00 [22:40:54]MH_I2C_Read... [22:40:54]Read from MH i2c: E2 17 00 DE 8C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 39 [22:40:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [22:40:54]wFMCommunicate OK [22:40:54]CreateOFDProtocolMessage done [22:40:54]OFDSenderStorePacket 156772 [22:40:54]StoreOFDPacket docnum=156772 [22:40:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 CD 11 07 01 1D 3A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 01 00 00 F4 03 04 00 7C C1 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 64 64 02 00 35 04 06 00 4F 06 B3 DA 23 C5 00 99 9D 3B 16 F0 F2 E6 [22:40:54]CheckFolder [22:40:54]dirname=/storage/ofd_packets [22:40:54]CheckFolder done [22:40:54]ProducePacketName [22:40:54]name=ofd_packets/00156772 [22:40:54]NVStorageSaveData ofd_packets/00156772 [22:40:54]File name is /storage/ofd_packets/00156772 [22:40:54]Write 301 bytes [22:40:54]NVStorageSaveData done [22:40:54]OFDSenderStorePacket done [22:40:54]KKMCreateOFDPacket done [22:40:54]NVStorageSaveData kkm_last_timestamp [22:40:54]File name is /storage/kkm_last_timestamp [22:40:54]Write 4 bytes [22:40:54]NVStorageSaveData done [22:40:54]ExternCall_PrintAddStr [22:40:54]wPrintStart [22:40:54]Write to MH i2c: 01 00 00 DF 8C 6B [22:40:54]Write i2c OK [22:40:54]MH_I2C_Read... [22:40:54]Read from MH i2c: 01 [22:40:54]MH_I2C_Read... [22:40:54]Read from MH i2c: 01 07 00 [22:40:54]MH_I2C_Read... [22:40:54]Read from MH i2c: 01 07 00 DF 8C 00 00 00 00 00 FF 0F 80 [22:40:54]RasterBufferAndPrint [22:40:54]line Счет N : (1)99586 [22:40:54]line ИНН: 02508201610067 [22:40:54]line Контрольно-Кассовый Чек [22:40:54]line ПРОДАЖА [22:40:54]line ТРК (МРК, ГНК) : 31 [22:40:54]line Товар: 2710124130 [22:40:54]line Аи-92-К-5 [22:40:54]line 7.480 * 66.90 [22:40:54]line = 500.41 [22:40:54]line НДС 12% НСП 1% [22:40:54]line > о реализуемом товаре [22:40:54]line ОКРУГЛЕНИЕ: -0.41 [22:40:54]line ИТОГО: 500.00 [22:40:54]line Внесено: 500.00 [22:40:54]line СДАЧА: 0.00 [22:40:54]line НСП 1% : 4.43 [22:40:54]line НДС 12% : 53.14 [22:40:54]line Наличными: 500.00 [22:40:54]line Безнал.: 0.00 [22:40:54]line Место: АЗС № 143 "Партнер Нефть" [22:40:54]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [22:40:54]line СНО: Общий режим [22:40:54]line Чек 323 27.10.2024 22:41 [22:40:54]line Смена: 537 ФФД: 1.0 [22:40:54]line ЗНМ: 0300000096 [22:40:54]line РНМ: 0000000000091693 [22:40:54]line Версия ККМ: 001 [22:40:54]line ФМ: 0000000000871792 [22:40:54]line ФД: 156772 [22:40:54]line ФПД: 86890205815749 [22:40:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T224100&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156772&fm=86890205815749&tin=02508201610067®Number=0000000000091693&sum=50000 [22:40:54]OFD Sender: Processing packet 156772 [packets to send 31, broken 30] [22:40:54]ProducePacketName [22:40:54]name=ofd_packets/00156772 [22:40:54]OFD Sender: To server: pG, [22:40:54]CommunicateWithHost lk.salyk.kg:30040 [22:40:54]ConnectInit lk.salyk.kg [22:40:54]written 0, free lines is 4095 [22:40:54]Connected sock=10 [22:40:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 CD 11 07 01 1D 3A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 01 00 00 F4 03 04 00 7C C1 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 64 64 02 00 35 04 06 00 4F 06 B3 DA 23 C5 00 99 9D 3B 16 F0 F2 E6 [22:40:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 7D D9 47 00 29 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 64 64 02 00 F4 03 04 00 EB 66 1E 67 B6 04 01 00 00 F7 A1 82 DF B3 E5 4C 26 [22:40:55]CommunicateWithHost err = 0 [22:40:55]CheckOFDResponse [22:40:55]1017 (14) - 77093643461234 [22:40:55]1041 (16) - 0000000000871792 [22:40:55]1040 (4) - 156772 [22:40:55]1012 (4) - 27.10.2024 16:14 [22:40:55]1206 (1) - 0 [22:40:55]OFD Sender: Remove packet 156772 [22:40:55]ProducePacketName [22:40:55]name=ofd_packets/00156772 [22:40:55]NVStorageDeleteData [22:40:55]Write to MH i2c: 01 00 00 0A 8D 97 [22:40:55]Write i2c OK [22:40:55]MH_I2C_Read... [22:40:55]Read from MH i2c: 01 [22:40:55]MH_I2C_Read... [22:40:55]Read from MH i2c: 01 07 00 [22:40:55]MH_I2C_Read... [22:40:55]Read from MH i2c: 01 07 00 0A 8D 00 00 00 00 00 EB 0C 95 [22:40:55]RasterBufferAndPrint [22:40:55]line [22:40:55]line [22:40:55]line [22:40:55]line [22:40:55]line [22:40:55]written 0, free lines is 3313 [22:40:55]process_action close_receipt done [22:40:55]requested_data is exist [22:40:55]produce_requested_data [22:40:55]requested_item fm.sn is exist - process it [22:40:55]wFMCommunicate request_size=4 [22:40:55]MH_SAM_APDU [22:40:55]CAPDU: 80 11 00 00 [22:40:55]Write to MH i2c: E2 08 00 11 8D 80 11 00 00 00 00 00 00 18 [22:40:55]Write i2c OK [22:40:55]MH_I2C_Read... [22:40:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:40:55]Read from MH i2c: E2 [22:40:55]MH_I2C_Read... [22:40:55]Read from MH i2c: E2 17 00 [22:40:55]MH_I2C_Read... [22:40:55]Read from MH i2c: E2 17 00 11 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 6D [22:40:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [22:40:55]wFMCommunicate OK [22:40:55]requested_item fd.num is exist - process it [22:40:55]SAM_PROTO_GetFieldsCounters [22:40:55]wFMCommunicate request_size=4 [22:40:55]MH_SAM_APDU [22:40:55]CAPDU: 80 13 00 00 [22:40:55]Write to MH i2c: E2 08 00 12 8D 80 13 00 00 00 00 00 00 1B [22:40:55]Write i2c OK [22:40:55]MH_I2C_Read... [22:40:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:40:55]Read from MH i2c: E2 [22:40:55]MH_I2C_Read... [22:40:55]Read from MH i2c: E2 62 00 [22:40:55]MH_I2C_Read... [22:40:55]Read from MH i2c: E2 62 00 12 8D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 64 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 43 01 00 00 5E 04 04 00 43 01 00 00 57 04 04 00 44 01 00 00 19 04 04 00 00 00 00 00 90 00 F2 [22:40:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 64 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 43 01 00 00 5E 04 04 00 43 01 00 00 57 04 04 00 44 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:40:55]wFMCommunicate OK [22:40:55]SAM_PROTO_GetFieldsCounters done [22:40:55]requested_item shift.num is exist - process it [22:40:55]requested_item shift.opened is exist - process it [22:40:55]req_shift_opened [22:40:55]FM_GetShiftState [22:40:55]SAM_PROTO_GetShiftState [22:40:55]wFMCommunicate request_size=4 [22:40:55]MH_SAM_APDU [22:40:55]CAPDU: 80 13 01 00 [22:40:55]Write to MH i2c: E2 08 00 13 8D 80 13 01 00 00 00 00 00 1D [22:40:55]Write i2c OK [22:40:55]MH_I2C_Read... [22:40:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:40:55]Read from MH i2c: E2 [22:40:55]MH_I2C_Read... [22:40:55]Read from MH i2c: E2 0E 00 [22:40:55]MH_I2C_Read... [22:40:55]Read from MH i2c: E2 0E 00 13 8D 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 EA [22:40:55]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [22:40:55]wFMCommunicate OK [22:40:55]SAM_PROTO_GetShiftState done [22:40:55]FM_GetShiftState done [22:40:55]req_shift_opened done [22:40:55]requested_item shift.open_date is exist - process it [22:40:55]req_shift_open_date [22:40:55]req_shift_open_date done [22:40:55]produce_requested_data done [22:40:55]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156772,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [22:40:55]process_action_free close_receipt [22:40:55]json_value_free [22:40:55]json_value_free done [22:40:55]process_json_proto returns [22:40:55]Send response to host [22:40:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156772,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [22:40:55]free response buf [22:40:55]execute_script done [22:40:55]execute_script returns [22:40:55]free content buf [22:40:55]Sock 8.Close socket [22:40:55]Sock 8.Thread stoped [22:40:55]OFD Sender: No OFD packet to send [22:41:00]OFD Sender: No OFD packet to send [22:41:05]OFD Sender: No OFD packet to send [22:41:10]OFD Sender: No OFD packet to send [22:41:15]OFD Sender: No OFD packet to send [22:41:20]OFD Sender: No OFD packet to send [22:41:25]OFD Sender: No OFD packet to send [22:41:30]OFD Sender: No OFD packet to send [22:41:35]OFD Sender: No OFD packet to send [22:41:40]OFD Sender: No OFD packet to send [22:41:45]OFD Sender: No OFD packet to send [22:41:50]OFD Sender: No OFD packet to send [22:41:55]OFD Sender: No OFD packet to send [22:42:00]OFD Sender: No OFD packet to send [22:42:05]OFD Sender: No OFD packet to send [22:42:10]OFD Sender: No OFD packet to send [22:42:15]OFD Sender: No OFD packet to send [22:42:20]OFD Sender: No OFD packet to send [22:42:25]OFD Sender: No OFD packet to send [22:42:30]OFD Sender: No OFD packet to send [22:42:35]OFD Sender: No OFD packet to send [22:42:40]OFD Sender: No OFD packet to send [22:42:45]OFD Sender: No OFD packet to send [22:42:50]OFD Sender: No OFD packet to send [22:42:55]OFD Sender: No OFD packet to send [22:43:00]OFD Sender: No OFD packet to send [22:43:05]OFD Sender: No OFD packet to send [22:43:10]OFD Sender: No OFD packet to send [22:43:15]OFD Sender: No OFD packet to send [22:43:20]OFD Sender: No OFD packet to send [22:43:25]OFD Sender: No OFD packet to send [22:43:30]OFD Sender: No OFD packet to send [22:43:35]OFD Sender: No OFD packet to send [22:43:40]OFD Sender: No OFD packet to send [22:43:45]OFD Sender: No OFD packet to send [22:43:50]OFD Sender: No OFD packet to send [22:43:55]OFD Sender: No OFD packet to send [22:44:00]OFD Sender: No OFD packet to send [22:44:05]OFD Sender: No OFD packet to send [22:44:10]OFD Sender: No OFD packet to send [22:44:15]OFD Sender: No OFD packet to send [22:44:20]OFD Sender: No OFD packet to send [22:44:25]OFD Sender: No OFD packet to send [22:44:30]OFD Sender: No OFD packet to send [22:44:35]OFD Sender: No OFD packet to send [22:44:40]OFD Sender: No OFD packet to send [22:44:45]OFD Sender: No OFD packet to send [22:44:50]OFD Sender: No OFD packet to send [22:44:55]OFD Sender: No OFD packet to send [22:45:00]OFD Sender: No OFD packet to send [22:45:05]OFD Sender: No OFD packet to send [22:45:10]OFD Sender: No OFD packet to send [22:45:15]OFD Sender: No OFD packet to send [22:45:20]OFD Sender: No OFD packet to send [22:45:25]OFD Sender: No OFD packet to send [22:45:30]OFD Sender: No OFD packet to send [22:45:35]OFD Sender: No OFD packet to send [22:45:40]OFD Sender: No OFD packet to send [22:45:45]OFD Sender: No OFD packet to send [22:45:50]OFD Sender: No OFD packet to send [22:45:55]OFD Sender: No OFD packet to send [22:46:00]OFD Sender: No OFD packet to send [22:46:05]OFD Sender: No OFD packet to send [22:46:10]OFD Sender: No OFD packet to send [22:46:15]OFD Sender: No OFD packet to send [22:46:20]OFD Sender: No OFD packet to send [22:46:25]OFD Sender: No OFD packet to send [22:46:30]OFD Sender: No OFD packet to send [22:46:35]OFD Sender: No OFD packet to send [22:46:40]OFD Sender: No OFD packet to send [22:46:45]OFD Sender: No OFD packet to send [22:46:50]OFD Sender: No OFD packet to send [22:46:55]OFD Sender: No OFD packet to send [22:47:00]OFD Sender: No OFD packet to send [22:47:05]OFD Sender: No OFD packet to send [22:47:10]OFD Sender: No OFD packet to send [22:47:16]OFD Sender: No OFD packet to send [22:47:21]OFD Sender: No OFD packet to send [22:47:26]OFD Sender: No OFD packet to send [22:47:31]OFD Sender: No OFD packet to send [22:47:36]OFD Sender: No OFD packet to send [22:47:41]OFD Sender: No OFD packet to send [22:47:46]OFD Sender: No OFD packet to send [22:47:51]OFD Sender: No OFD packet to send [22:47:56]OFD Sender: No OFD packet to send [22:48:01]OFD Sender: No OFD packet to send [22:48:06]OFD Sender: No OFD packet to send [22:48:11]OFD Sender: No OFD packet to send [22:48:16]OFD Sender: No OFD packet to send [22:48:21]OFD Sender: No OFD packet to send [22:48:26]OFD Sender: No OFD packet to send [22:48:31]OFD Sender: No OFD packet to send [22:48:36]OFD Sender: No OFD packet to send [22:48:41]OFD Sender: No OFD packet to send [22:48:46]OFD Sender: No OFD packet to send [22:48:51]OFD Sender: No OFD packet to send [22:48:56]OFD Sender: No OFD packet to send [22:49:01]OFD Sender: No OFD packet to send [22:49:06]OFD Sender: No OFD packet to send [22:49:11]OFD Sender: No OFD packet to send [22:49:16]OFD Sender: No OFD packet to send [22:49:21]OFD Sender: No OFD packet to send [22:49:26]OFD Sender: No OFD packet to send [22:49:31]OFD Sender: No OFD packet to send [22:49:36]OFD Sender: No OFD packet to send [22:49:41]OFD Sender: No OFD packet to send [22:49:46]OFD Sender: No OFD packet to send [22:49:51]OFD Sender: No OFD packet to send [22:49:56]OFD Sender: No OFD packet to send [22:50:01]OFD Sender: No OFD packet to send [22:50:06]OFD Sender: No OFD packet to send [22:50:11]OFD Sender: No OFD packet to send [22:50:16]OFD Sender: No OFD packet to send [22:50:21]OFD Sender: No OFD packet to send [22:50:26]OFD Sender: No OFD packet to send [22:50:31]OFD Sender: No OFD packet to send [22:50:36]OFD Sender: No OFD packet to send [22:50:41]OFD Sender: No OFD packet to send [22:50:46]OFD Sender: No OFD packet to send [22:50:49]accept exits with 9 [22:50:49]New connection [22:50:49]New thread 3066977636 created [22:50:49]Thread 3066834276 joined [22:50:49]Waiting for new connection... [22:50:49] Sock 9.Parse request [22:50:49]Sock 9.Check first char [22:50:49]Sock 9.First char is OK [22:50:49]request: POST /json_proto HTTP/1.0 [22:50:49]Method: POST [22:50:49]URL: /json_proto [22:50:49]Method is POST - this is cgi request [22:50:49]url: /json_proto [22:50:49]query_string will be loaded in cgi processing [22:50:49]execute_cgi json_proto POST (null) [22:50:49]execute_cgi path=json_proto method=POST [22:50:49]POST find Content-Length [22:50:49]Host: 172.17.63.3:8080 [22:50:49]Content-Length: 681 [22:50:49]Content-Type: application/json [22:50:49] [22:50:49]POST finish read [22:50:49]Found Content-Length = 681 [22:50:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99587", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 17.940, "sum" : 1200.19, "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" ] } } [22:50:49]execute_script... [22:50: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)99587", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 17.940, "sum" : 1200.19, "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" ] } } [22:50:49]POST & json_proto [22:50:49]process_json_proto [22:50:49]json parsed OK: [22:50:49]protocol is kg_v1.0 [22:50:49]action value=close_receipt [22:50:49]process_action close_receipt [22:50:49]cmd_close_receipt [22:50:49]MH_GetDate [22:50:49]Write to MH i2c: F0 00 00 14 8D 90 [22:50:49]Write i2c OK [22:50:49]MH_I2C_Read... [22:50:49]Read from MH i2c: F0 [22:50:49]MH_I2C_Read... [22:50:49]Read from MH i2c: F0 09 00 [22:50:49]MH_I2C_Read... [22:50:49]Read from MH i2c: F0 09 00 14 8D 00 D1 C3 1E 67 50 D1 6C 64 A3 [22:50:49]GetLastDocTimeStamp 1730068860 [22:50:49]current date 1730069457 [22:50:49]FM_GetShiftState [22:50:49]SAM_PROTO_GetShiftState [22:50:49]wFMCommunicate request_size=4 [22:50:49]MH_SAM_APDU [22:50:49]CAPDU: 80 13 01 00 [22:50:49]Write to MH i2c: E2 08 00 15 8D 80 13 01 00 00 00 00 00 1F [22:50:49]Write i2c OK [22:50:49]MH_I2C_Read... [22:50:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:50:49]Read from MH i2c: E2 [22:50:49]MH_I2C_Read... [22:50:49]Read from MH i2c: E2 0E 00 [22:50:49]MH_I2C_Read... [22:50:49]Read from MH i2c: E2 0E 00 15 8D 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 EC [22:50:49]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [22:50:49]wFMCommunicate OK [22:50:49]SAM_PROTO_GetShiftState done [22:50:49]FM_GetShiftState done [22:50:49]opened in 1729989044 [22:50:49]opened+sec_in_day 1730075444 [22:50:49]quantity*price = 120018 [22:50:49]sum+1 = 120020 [22:50:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 324 27.10.2024 22:50 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156773 ФПД: 228457514905413 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T225057&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156773&fm=228457514905413&tin=02508201610067®Number=0000000000091693&sum=120000 [22:50:50]StoreToDocumentArchive [22:50:50]shift 537 fd 156773 [22:50:50]save to /storage/0537/doc_00156773 [22:50:50]save last doc name /storage/0537/doc_00156773 to /storage/kkm_last_doc_name [22:50:50]save OK [22:50:50]Clear old archive folders... [22:50:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:50:50]tlvbuf is 019C0830 [22:50:50]SAM_PROTO_ClearQueue [22:50:50]wFMCommunicate request_size=4 [22:50:50]MH_SAM_APDU [22:50:50]CAPDU: 80 09 00 00 [22:50:50]Write to MH i2c: E2 08 00 22 8D 80 09 00 00 00 00 00 00 21 [22:50:50]Write i2c OK [22:50:50]MH_I2C_Read... [22:50:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:50:50]Read from MH i2c: E2 [22:50:50]MH_I2C_Read... [22:50:50]Read from MH i2c: E2 03 00 [22:50:50]MH_I2C_Read... [22:50:50]Read from MH i2c: E2 03 00 22 8D 00 90 00 23 [22:50:50]RAPDU: 90 00 [22:50:50]wFMCommunicate OK [22:50:50]SAM_PROTO_ClearQueue done [22:50:50]KKMCreateOFDPacket [22:50:50]OFDProtocolAddRootSTLVToBuf [22:50:50]FM_MakeSignedData [22:50:50]FM_MakeSignedData [22:50:50]SAM_PROTO_SignData [22:50:50]wFMCommunicate request_size=4 [22:50:50]MH_SAM_APDU [22:50:50]CAPDU: 80 0D 01 02 [22:50:50]Write to MH i2c: E2 08 00 23 8D 80 0D 01 02 00 00 00 00 29 [22:50:50]Write i2c OK [22:50:50]MH_I2C_Read... [22:50:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:50:50]Read from MH i2c: E2 [22:50:50]MH_I2C_Read... [22:50:50]Read from MH i2c: E2 03 00 [22:50:50]MH_I2C_Read... [22:50:50]Read from MH i2c: E2 03 00 23 8D 00 90 00 24 [22:50:50]RAPDU: 90 00 [22:50:50]wFMCommunicate OK [22:50:50]wFMCommunicate request_size=255 [22:50:50]MH_SAM_APDU [22:50: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 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 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 C9 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 44 01 00 00 F4 03 04 00 D1 C3 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 65 64 02 00 35 04 06 00 CF [22:50:50]Write to MH i2c: E2 02 01 24 8D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 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 C9 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 44 01 00 00 F4 03 04 00 D1 C3 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 65 64 02 00 35 04 06 00 CF 00 00 D7 [22:50:50]Write i2c OK [22:50:50]MH_I2C_Read... [22:50:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:50:50]Read from MH i2c: E2 [22:50:50]MH_I2C_Read... [22:50:50]Read from MH i2c: E2 03 00 [22:50:50]MH_I2C_Read... [22:50:50]Read from MH i2c: E2 03 00 24 8D 00 90 00 25 [22:50:50]RAPDU: 90 00 [22:50:50]wFMCommunicate OK [22:50:50]wFMCommunicate request_size=10 [22:50:50]MH_SAM_APDU [22:50:50]CAPDU: 80 0D 02 02 05 C7 E9 05 AF 45 [22:50:50]Write to MH i2c: E2 0D 00 25 8D 80 0D 02 02 05 00 C7 E9 05 AF 45 00 00 DF [22:50:50]Write i2c OK [22:50:50]MH_I2C_Read... [22:50:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:50:50]Read from MH i2c: E2 [22:50:50]MH_I2C_Read... [22:50:50]Read from MH i2c: E2 03 00 [22:50:50]MH_I2C_Read... [22:50:50]Read from MH i2c: E2 03 00 25 8D 00 90 00 26 [22:50:50]RAPDU: 90 00 [22:50:50]wFMCommunicate OK [22:50:50]wFMCommunicate request_size=4 [22:50:50]MH_SAM_APDU [22:50:50]CAPDU: 80 0D 03 02 [22:50:50]Write to MH i2c: E2 08 00 26 8D 80 0D 03 02 00 00 00 00 2E [22:50:50]Write i2c OK [22:50:50]MH_I2C_Read... [22:50:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:50:50]Read from MH i2c: E2 [22:50:50]MH_I2C_Read... [22:50:50]Read from MH i2c: E2 0B 00 [22:50:50]MH_I2C_Read... [22:50:50]Read from MH i2c: E2 0B 00 26 8D 00 2B F4 D7 4B DB 4F E0 B2 90 00 2C [22:50:50]RAPDU: 2B F4 D7 4B DB 4F E0 B2 90 00 [22:50:50]wFMCommunicate OK [22:50:50]SAM_PROTO_SignData done [22:50:50]FM_MakeSignedData done [22:50:50]CreateOFDProtocolMessage [22:50:50]wFMCommunicate request_size=4 [22:50:50]MH_SAM_APDU [22:50:50]CAPDU: 80 11 00 00 [22:50:50]Write to MH i2c: E2 08 00 27 8D 80 11 00 00 00 00 00 00 2E [22:50:50]Write i2c OK [22:50:50]MH_I2C_Read... [22:50:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:50:50]Read from MH i2c: E2 [22:50:50]MH_I2C_Read... [22:50:50]Read from MH i2c: E2 17 00 [22:50:50]MH_I2C_Read... [22:50:50]Read from MH i2c: E2 17 00 27 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 83 [22:50:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [22:50:50]wFMCommunicate OK [22:50:50]CreateOFDProtocolMessage done [22:50:50]OFDSenderStorePacket 156773 [22:50:50]StoreOFDPacket docnum=156773 [22:50:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 44 16 07 01 D3 D4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 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 C9 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 44 01 00 00 F4 03 04 00 D1 C3 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 65 64 02 00 35 04 06 00 CF C7 E9 05 AF 45 2B F4 D7 4B DB 4F E0 B2 [22:50:50]CheckFolder [22:50:50]dirname=/storage/ofd_packets [22:50:50]CheckFolder done [22:50:50]ProducePacketName [22:50:50]name=ofd_packets/00156773 [22:50:50]NVStorageSaveData ofd_packets/00156773 [22:50:50]File name is /storage/ofd_packets/00156773 [22:50:50]Write 301 bytes [22:50:50]NVStorageSaveData done [22:50:50]OFDSenderStorePacket done [22:50:50]KKMCreateOFDPacket done [22:50:50]NVStorageSaveData kkm_last_timestamp [22:50:50]File name is /storage/kkm_last_timestamp [22:50:50]Write 4 bytes [22:50:50]NVStorageSaveData done [22:50:50]ExternCall_PrintAddStr [22:50:50]wPrintStart [22:50:50]Write to MH i2c: 01 00 00 28 8D B5 [22:50:50]Write i2c OK [22:50:50]MH_I2C_Read... [22:50:50]Read from MH i2c: 01 [22:50:50]MH_I2C_Read... [22:50:50]Read from MH i2c: 01 07 00 [22:50:50]MH_I2C_Read... [22:50:50]Read from MH i2c: 01 07 00 28 8D 00 00 00 00 00 FF 0F CA [22:50:50]RasterBufferAndPrint [22:50:50]line Счет N : (1)99587 [22:50:50]line ИНН: 02508201610067 [22:50:50]line Контрольно-Кассовый Чек [22:50:50]line ПРОДАЖА [22:50:50]line ТРК (МРК, ГНК) : 31 [22:50:50]line Товар: 2710124130 [22:50:50]line Аи-92-К-5 [22:50:50]line 17.940 * 66.90 [22:50:50]line = 1200.19 [22:50:50]line НДС 12% НСП 1% [22:50:50]line > о реализуемом товаре [22:50:50]line ОКРУГЛЕНИЕ: -0.19 [22:50:50]line ИТОГО: 1200.00 [22:50:50]line Внесено: 1200.00 [22:50:50]line СДАЧА: 0.00 [22:50:50]line НСП 1% : 10.62 [22:50:50]line НДС 12% : 127.45 [22:50:50]line Наличными: 1200.00 [22:50:50]line Безнал.: 0.00 [22:50:50]line Место: АЗС № 143 "Партнер Нефть" [22:50:50]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [22:50:50]line СНО: Общий режим [22:50:50]line Чек 324 27.10.2024 22:50 [22:50:50]line Смена: 537 ФФД: 1.0 [22:50:50]line ЗНМ: 0300000096 [22:50:50]line РНМ: 0000000000091693 [22:50:50]line Версия ККМ: 001 [22:50:50]line ФМ: 0000000000871792 [22:50:50]line ФД: 156773 [22:50:50]line ФПД: 228457514905413 [22:50:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T225057&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156773&fm=228457514905413&tin=02508201610067®Number=0000000000091693&sum=120000 [22:50:51]OFD Sender: Processing packet 156773 [packets to send 31, broken 30] [22:50:51]ProducePacketName [22:50:51]name=ofd_packets/00156773 [22:50:51]OFD Sender: To server: pG, [22:50:51]CommunicateWithHost lk.salyk.kg:30040 [22:50:51]ConnectInit lk.salyk.kg [22:50:51]written 0, free lines is 4095 [22:50:51]Connected sock=10 [22:50:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 44 16 07 01 D3 D4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 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 C9 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 44 01 00 00 F4 03 04 00 D1 C3 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 65 64 02 00 35 04 06 00 CF C7 E9 05 AF 45 2B F4 D7 4B DB 4F E0 B2 [22:50:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 4B 9D 47 00 E0 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 65 64 02 00 F4 03 04 00 3F 69 1E 67 B6 04 01 00 00 5A 21 D1 58 BE 51 1C C8 [22:50:51]CommunicateWithHost err = 0 [22:50:51]CheckOFDResponse [22:50:51]1017 (14) - 77093643461234 [22:50:51]1041 (16) - 0000000000871792 [22:50:51]1040 (4) - 156773 [22:50:51]1012 (4) - 27.10.2024 16:24 [22:50:51]1206 (1) - 0 [22:50:51]OFD Sender: Remove packet 156773 [22:50:51]ProducePacketName [22:50:51]name=ofd_packets/00156773 [22:50:51]NVStorageDeleteData [22:50:51]Write to MH i2c: 01 00 00 53 8D E0 [22:50:51]Write i2c OK [22:50:51]MH_I2C_Read... [22:50:51]Read from MH i2c: 01 [22:50:51]MH_I2C_Read... [22:50:51]Read from MH i2c: 01 07 00 [22:50:51]MH_I2C_Read... [22:50:51]Read from MH i2c: 01 07 00 53 8D 00 00 00 00 00 EF 0C E2 [22:50:51]RasterBufferAndPrint [22:50:51]line [22:50:51]line [22:50:51]line [22:50:51]line [22:50:51]line [22:50:51]written 0, free lines is 3317 [22:50:51]process_action close_receipt done [22:50:51]requested_data is exist [22:50:51]produce_requested_data [22:50:51]requested_item fm.sn is exist - process it [22:50:51]wFMCommunicate request_size=4 [22:50:51]MH_SAM_APDU [22:50:51]CAPDU: 80 11 00 00 [22:50:51]Write to MH i2c: E2 08 00 5A 8D 80 11 00 00 00 00 00 00 61 [22:50:51]Write i2c OK [22:50:51]MH_I2C_Read... [22:50:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:50:51]Read from MH i2c: E2 [22:50:51]MH_I2C_Read... [22:50:51]Read from MH i2c: E2 17 00 [22:50:51]MH_I2C_Read... [22:50:51]Read from MH i2c: E2 17 00 5A 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 B6 [22:50:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [22:50:51]wFMCommunicate OK [22:50:51]requested_item fd.num is exist - process it [22:50:51]SAM_PROTO_GetFieldsCounters [22:50:51]wFMCommunicate request_size=4 [22:50:51]MH_SAM_APDU [22:50:51]CAPDU: 80 13 00 00 [22:50:51]Write to MH i2c: E2 08 00 5B 8D 80 13 00 00 00 00 00 00 64 [22:50:51]Write i2c OK [22:50:51]MH_I2C_Read... [22:50:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:50:51]Read from MH i2c: E2 [22:50:51]MH_I2C_Read... [22:50:51]Read from MH i2c: E2 62 00 [22:50:51]MH_I2C_Read... [22:50:51]Read from MH i2c: E2 62 00 5B 8D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 65 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 44 01 00 00 5E 04 04 00 44 01 00 00 57 04 04 00 45 01 00 00 19 04 04 00 00 00 00 00 90 00 3F [22:50:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 65 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 44 01 00 00 5E 04 04 00 44 01 00 00 57 04 04 00 45 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:50:51]wFMCommunicate OK [22:50:51]SAM_PROTO_GetFieldsCounters done [22:50:51]requested_item shift.num is exist - process it [22:50:51]requested_item shift.opened is exist - process it [22:50:51]req_shift_opened [22:50:51]FM_GetShiftState [22:50:51]SAM_PROTO_GetShiftState [22:50:51]wFMCommunicate request_size=4 [22:50:51]MH_SAM_APDU [22:50:51]CAPDU: 80 13 01 00 [22:50:51]Write to MH i2c: E2 08 00 5C 8D 80 13 01 00 00 00 00 00 66 [22:50:51]Write i2c OK [22:50:51]MH_I2C_Read... [22:50:51]Read from MH i2c: E2 [22:50:51]MH_I2C_Read... [22:50:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:50:51]Read from MH i2c: E2 0E 00 [22:50:51]MH_I2C_Read... [22:50:51]Read from MH i2c: E2 0E 00 5C 8D 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 33 [22:50:51]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [22:50:51]wFMCommunicate OK [22:50:51]SAM_PROTO_GetShiftState done [22:50:51]FM_GetShiftState done [22:50:51]req_shift_opened done [22:50:51]requested_item shift.open_date is exist - process it [22:50:51]req_shift_open_date [22:50:51]req_shift_open_date done [22:50:51]produce_requested_data done [22:50:51]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156773,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [22:50:51]process_action_free close_receipt [22:50:51]json_value_free [22:50:51]json_value_free done [22:50:51]process_json_proto returns [22:50:51]Send response to host [22:50:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156773,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [22:50:51]free response buf [22:50:51]execute_script done [22:50:51]execute_script returns [22:50:51]free content buf [22:50:51]Sock 9.Close socket [22:50:51]Sock 9.Thread stoped [22:50:52]OFD Sender: No OFD packet to send [22:50:57]OFD Sender: No OFD packet to send [22:51:02]OFD Sender: No OFD packet to send [22:51:07]OFD Sender: No OFD packet to send [22:51:12]OFD Sender: No OFD packet to send [22:51:17]OFD Sender: No OFD packet to send [22:51:22]OFD Sender: No OFD packet to send [22:51:27]OFD Sender: No OFD packet to send [22:51:32]OFD Sender: No OFD packet to send [22:51:37]OFD Sender: No OFD packet to send [22:51:42]OFD Sender: No OFD packet to send [22:51:47]OFD Sender: No OFD packet to send [22:51:52]OFD Sender: No OFD packet to send [22:51:57]OFD Sender: No OFD packet to send [22:52:02]OFD Sender: No OFD packet to send [22:52:07]OFD Sender: No OFD packet to send [22:52:12]OFD Sender: No OFD packet to send [22:52:17]OFD Sender: No OFD packet to send [22:52:22]OFD Sender: No OFD packet to send [22:52:27]OFD Sender: No OFD packet to send [22:52:32]OFD Sender: No OFD packet to send [22:52:37]OFD Sender: No OFD packet to send [22:52:42]OFD Sender: No OFD packet to send [22:52:47]OFD Sender: No OFD packet to send [22:52:52]OFD Sender: No OFD packet to send [22:52:57]OFD Sender: No OFD packet to send [22:53:02]OFD Sender: No OFD packet to send [22:53:07]OFD Sender: No OFD packet to send [22:53:12]OFD Sender: No OFD packet to send [22:53:17]OFD Sender: No OFD packet to send [22:53:22]OFD Sender: No OFD packet to send [22:53:27]OFD Sender: No OFD packet to send [22:53:32]OFD Sender: No OFD packet to send [22:53:37]OFD Sender: No OFD packet to send [22:53:42]OFD Sender: No OFD packet to send [22:53:47]OFD Sender: No OFD packet to send [22:53:52]OFD Sender: No OFD packet to send [22:53:57]OFD Sender: No OFD packet to send [22:54:02]OFD Sender: No OFD packet to send [22:54:07]OFD Sender: No OFD packet to send [22:54:12]OFD Sender: No OFD packet to send [22:54:17]OFD Sender: No OFD packet to send [22:54:22]OFD Sender: No OFD packet to send [22:54:27]OFD Sender: No OFD packet to send [22:54:32]OFD Sender: No OFD packet to send [22:54:37]OFD Sender: No OFD packet to send [22:54:42]OFD Sender: No OFD packet to send [22:54:47]OFD Sender: No OFD packet to send [22:54:52]OFD Sender: No OFD packet to send [22:54:57]OFD Sender: No OFD packet to send [22:55:02]OFD Sender: No OFD packet to send [22:55:07]OFD Sender: No OFD packet to send [22:55:12]OFD Sender: No OFD packet to send [22:55:17]OFD Sender: No OFD packet to send [22:55:22]OFD Sender: No OFD packet to send [22:55:27]OFD Sender: No OFD packet to send [22:55:32]OFD Sender: No OFD packet to send [22:55:37]OFD Sender: No OFD packet to send [22:55:42]OFD Sender: No OFD packet to send [22:55:47]OFD Sender: No OFD packet to send [22:55:52]OFD Sender: No OFD packet to send [22:55:57]OFD Sender: No OFD packet to send [22:56:02]OFD Sender: No OFD packet to send [22:56:07]OFD Sender: No OFD packet to send [22:56:12]OFD Sender: No OFD packet to send [22:56:17]OFD Sender: No OFD packet to send [22:56:22]OFD Sender: No OFD packet to send [22:56:27]OFD Sender: No OFD packet to send [22:56:32]OFD Sender: No OFD packet to send [22:56:37]OFD Sender: No OFD packet to send [22:56:42]OFD Sender: No OFD packet to send [22:56:47]OFD Sender: No OFD packet to send [22:56:52]OFD Sender: No OFD packet to send [22:56:57]OFD Sender: No OFD packet to send [22:57:02]OFD Sender: No OFD packet to send [22:57:07]OFD Sender: No OFD packet to send [22:57:12]OFD Sender: No OFD packet to send [22:57:17]OFD Sender: No OFD packet to send [22:57:22]OFD Sender: No OFD packet to send [22:57:27]OFD Sender: No OFD packet to send [22:57:32]OFD Sender: No OFD packet to send [22:57:37]OFD Sender: No OFD packet to send [22:57:42]OFD Sender: No OFD packet to send [22:57:47]OFD Sender: No OFD packet to send [22:57:52]OFD Sender: No OFD packet to send [22:57:57]OFD Sender: No OFD packet to send [22:58:02]OFD Sender: No OFD packet to send [22:58:07]OFD Sender: No OFD packet to send [22:58:12]OFD Sender: No OFD packet to send [22:58:17]OFD Sender: No OFD packet to send [22:58:22]OFD Sender: No OFD packet to send [22:58:27]OFD Sender: No OFD packet to send [22:58:32]OFD Sender: No OFD packet to send [22:58:37]OFD Sender: No OFD packet to send [22:58:42]OFD Sender: No OFD packet to send [22:58:47]OFD Sender: No OFD packet to send [22:58:52]OFD Sender: No OFD packet to send [22:58:57]OFD Sender: No OFD packet to send [22:59:02]OFD Sender: No OFD packet to send [22:59:07]OFD Sender: No OFD packet to send [22:59:12]OFD Sender: No OFD packet to send [22:59:17]OFD Sender: No OFD packet to send [22:59:22]OFD Sender: No OFD packet to send [22:59:27]OFD Sender: No OFD packet to send [22:59:32]OFD Sender: No OFD packet to send [22:59:37]OFD Sender: No OFD packet to send [22:59:42]OFD Sender: No OFD packet to send [22:59:47]OFD Sender: No OFD packet to send [22:59:52]OFD Sender: No OFD packet to send [22:59:57]OFD Sender: No OFD packet to send [23:00:02]OFD Sender: No OFD packet to send [23:00:07]OFD Sender: No OFD packet to send [23:00:12]OFD Sender: No OFD packet to send [23:00:17]OFD Sender: No OFD packet to send [23:00:22]OFD Sender: No OFD packet to send [23:00:27]OFD Sender: No OFD packet to send [23:00:32]OFD Sender: No OFD packet to send [23:00:37]OFD Sender: No OFD packet to send [23:00:42]OFD Sender: No OFD packet to send [23:00:47]OFD Sender: No OFD packet to send [23:00:52]OFD Sender: No OFD packet to send [23:00:57]OFD Sender: No OFD packet to send [23:01:02]OFD Sender: No OFD packet to send [23:01:07]OFD Sender: No OFD packet to send [23:01:12]OFD Sender: No OFD packet to send [23:01:17]OFD Sender: No OFD packet to send [23:01:22]OFD Sender: No OFD packet to send [23:01:27]OFD Sender: No OFD packet to send [23:01:32]OFD Sender: No OFD packet to send [23:01:37]OFD Sender: No OFD packet to send [23:01:40]accept exits with 8 [23:01:40]New connection [23:01:40]New thread 3066834276 created [23:01:40]Thread 3066977636 joined [23:01:40]Waiting for new connection... [23:01:40] Sock 8.Parse request [23:01:40]Sock 8.Check first char [23:01:40]Sock 8.First char is OK [23:01:40]request: POST /json_proto HTTP/1.0 [23:01:40]Method: POST [23:01:40]URL: /json_proto [23:01:40]Method is POST - this is cgi request [23:01:40]url: /json_proto [23:01:40]query_string will be loaded in cgi processing [23:01:40]execute_cgi json_proto POST (null) [23:01:40]execute_cgi path=json_proto method=POST [23:01:40]POST find Content-Length [23:01:40]Host: 172.17.63.3:8080 [23:01:40]Content-Length: 681 [23:01:40]Content-Type: application/json [23:01:40] [23:01:40]POST finish read [23:01:40]Found Content-Length = 681 [23:01:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99588", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:01:40]execute_script... [23:01:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99588", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:01:40]POST & json_proto [23:01:40]process_json_proto [23:01:40]json parsed OK: [23:01:40]protocol is kg_v1.0 [23:01:40]action value=close_receipt [23:01:40]process_action close_receipt [23:01:40]cmd_close_receipt [23:01:40]MH_GetDate [23:01:40]Write to MH i2c: F0 00 00 5D 8D D9 [23:01:40]Write i2c OK [23:01:40]MH_I2C_Read... [23:01:40]Read from MH i2c: F0 [23:01:40]MH_I2C_Read... [23:01:40]Read from MH i2c: F0 09 00 [23:01:40]MH_I2C_Read... [23:01:40]Read from MH i2c: F0 09 00 5D 8D 00 5C C6 1E 67 50 D1 6C 64 7A [23:01:40]GetLastDocTimeStamp 1730069457 [23:01:40]current date 1730070108 [23:01:40]FM_GetShiftState [23:01:40]SAM_PROTO_GetShiftState [23:01:40]wFMCommunicate request_size=4 [23:01:40]MH_SAM_APDU [23:01:40]CAPDU: 80 13 01 00 [23:01:40]Write to MH i2c: E2 08 00 5E 8D 80 13 01 00 00 00 00 00 68 [23:01:40]Write i2c OK [23:01:40]MH_I2C_Read... [23:01:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:01:40]Read from MH i2c: E2 [23:01:40]MH_I2C_Read... [23:01:40]Read from MH i2c: E2 0E 00 [23:01:40]MH_I2C_Read... [23:01:40]Read from MH i2c: E2 0E 00 5E 8D 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 35 [23:01:40]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [23:01:40]wFMCommunicate OK [23:01:40]SAM_PROTO_GetShiftState done [23:01:40]FM_GetShiftState done [23:01:40]opened in 1729989044 [23:01:40]opened+sec_in_day 1730075444 [23:01:40]quantity*price = 100015 [23:01:40]sum+1 = 100017 [23:01:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 325 27.10.2024 23:01 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156774 ФПД: 113497592809125 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T230148&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156774&fm=113497592809125&tin=02508201610067®Number=0000000000091693&sum=100000 [23:01:41]StoreToDocumentArchive [23:01:41]shift 537 fd 156774 [23:01:41]save to /storage/0537/doc_00156774 [23:01:41]save last doc name /storage/0537/doc_00156774 to /storage/kkm_last_doc_name [23:01:41]save OK [23:01:41]Clear old archive folders... [23:01:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:01:41]tlvbuf is 01878790 [23:01:41]SAM_PROTO_ClearQueue [23:01:41]wFMCommunicate request_size=4 [23:01:41]MH_SAM_APDU [23:01:41]CAPDU: 80 09 00 00 [23:01:41]Write to MH i2c: E2 08 00 6B 8D 80 09 00 00 00 00 00 00 6A [23:01:41]Write i2c OK [23:01:41]MH_I2C_Read... [23:01:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:01:41]Read from MH i2c: E2 [23:01:41]MH_I2C_Read... [23:01:41]Read from MH i2c: E2 03 00 [23:01:41]MH_I2C_Read... [23:01:41]Read from MH i2c: E2 03 00 6B 8D 00 90 00 6C [23:01:41]RAPDU: 90 00 [23:01:41]wFMCommunicate OK [23:01:41]SAM_PROTO_ClearQueue done [23:01:41]KKMCreateOFDPacket [23:01:41]OFDProtocolAddRootSTLVToBuf [23:01:41]FM_MakeSignedData [23:01:41]FM_MakeSignedData [23:01:41]SAM_PROTO_SignData [23:01:41]wFMCommunicate request_size=4 [23:01:41]MH_SAM_APDU [23:01:41]CAPDU: 80 0D 01 02 [23:01:41]Write to MH i2c: E2 08 00 6C 8D 80 0D 01 02 00 00 00 00 72 [23:01:41]Write i2c OK [23:01:41]MH_I2C_Read... [23:01:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:01:41]Read from MH i2c: E2 [23:01:41]MH_I2C_Read... [23:01:41]Read from MH i2c: E2 03 00 [23:01:41]MH_I2C_Read... [23:01:41]Read from MH i2c: E2 03 00 6C 8D 00 90 00 6D [23:01:41]RAPDU: 90 00 [23:01:41]wFMCommunicate OK [23:01:41]wFMCommunicate request_size=255 [23:01:41]MH_SAM_APDU [23:01:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 01 00 00 F4 03 04 00 5C C6 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 66 64 02 00 35 04 06 00 67 [23:01:41]Write to MH i2c: E2 02 01 6D 8D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 01 00 00 F4 03 04 00 5C C6 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 66 64 02 00 35 04 06 00 67 00 00 3B [23:01:41]Write i2c OK [23:01:41]MH_I2C_Read... [23:01:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:01:41]Read from MH i2c: E2 [23:01:41]MH_I2C_Read... [23:01:41]Read from MH i2c: E2 03 00 [23:01:41]MH_I2C_Read... [23:01:41]Read from MH i2c: E2 03 00 6D 8D 00 90 00 6E [23:01:41]RAPDU: 90 00 [23:01:41]wFMCommunicate OK [23:01:41]wFMCommunicate request_size=10 [23:01:41]MH_SAM_APDU [23:01:41]CAPDU: 80 0D 02 02 05 39 B7 B3 C6 A5 [23:01:41]Write to MH i2c: E2 0D 00 6E 8D 80 0D 02 02 05 00 39 B7 B3 C6 A5 00 00 8D [23:01:41]Write i2c OK [23:01:41]MH_I2C_Read... [23:01:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:01:41]Read from MH i2c: E2 [23:01:41]MH_I2C_Read... [23:01:41]Read from MH i2c: E2 03 00 [23:01:41]MH_I2C_Read... [23:01:41]Read from MH i2c: E2 03 00 6E 8D 00 90 00 6F [23:01:41]RAPDU: 90 00 [23:01:41]wFMCommunicate OK [23:01:41]wFMCommunicate request_size=4 [23:01:41]MH_SAM_APDU [23:01:41]CAPDU: 80 0D 03 02 [23:01:41]Write to MH i2c: E2 08 00 6F 8D 80 0D 03 02 00 00 00 00 77 [23:01:41]Write i2c OK [23:01:41]MH_I2C_Read... [23:01:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:01:41]Read from MH i2c: E2 [23:01:41]MH_I2C_Read... [23:01:41]Read from MH i2c: E2 0B 00 [23:01:41]MH_I2C_Read... [23:01:41]Read from MH i2c: E2 0B 00 6F 8D 00 B4 ED 34 58 9B BD 69 53 90 00 B9 [23:01:41]RAPDU: B4 ED 34 58 9B BD 69 53 90 00 [23:01:41]wFMCommunicate OK [23:01:41]SAM_PROTO_SignData done [23:01:41]FM_MakeSignedData done [23:01:41]CreateOFDProtocolMessage [23:01:41]wFMCommunicate request_size=4 [23:01:41]MH_SAM_APDU [23:01:41]CAPDU: 80 11 00 00 [23:01:41]Write to MH i2c: E2 08 00 70 8D 80 11 00 00 00 00 00 00 77 [23:01:41]Write i2c OK [23:01:41]MH_I2C_Read... [23:01:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:01:42]Read from MH i2c: E2 [23:01:42]MH_I2C_Read... [23:01:42]Read from MH i2c: E2 17 00 [23:01:42]MH_I2C_Read... [23:01:42]Read from MH i2c: E2 17 00 70 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 CC [23:01:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [23:01:42]wFMCommunicate OK [23:01:42]CreateOFDProtocolMessage done [23:01:42]OFDSenderStorePacket 156774 [23:01:42]StoreOFDPacket docnum=156774 [23:01:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 06 20 07 01 86 CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 01 00 00 F4 03 04 00 5C C6 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 66 64 02 00 35 04 06 00 67 39 B7 B3 C6 A5 B4 ED 34 58 9B BD 69 53 [23:01:42]CheckFolder [23:01:42]dirname=/storage/ofd_packets [23:01:42]CheckFolder done [23:01:42]ProducePacketName [23:01:42]name=ofd_packets/00156774 [23:01:42]NVStorageSaveData ofd_packets/00156774 [23:01:42]File name is /storage/ofd_packets/00156774 [23:01:42]Write 301 bytes [23:01:42]NVStorageSaveData done [23:01:42]OFDSenderStorePacket done [23:01:42]KKMCreateOFDPacket done [23:01:42]NVStorageSaveData kkm_last_timestamp [23:01:42]File name is /storage/kkm_last_timestamp [23:01:42]Write 4 bytes [23:01:42]NVStorageSaveData done [23:01:42]ExternCall_PrintAddStr [23:01:42]wPrintStart [23:01:42]Write to MH i2c: 01 00 00 71 8D FE [23:01:42]Write i2c OK [23:01:42]MH_I2C_Read... [23:01:42]Read from MH i2c: 01 [23:01:42]MH_I2C_Read... [23:01:42]Read from MH i2c: 01 07 00 [23:01:42]MH_I2C_Read... [23:01:42]Read from MH i2c: 01 07 00 71 8D 00 00 00 00 00 FF 0F 13 [23:01:42]RasterBufferAndPrint [23:01:42]line Счет N : (1)99588 [23:01:42]line ИНН: 02508201610067 [23:01:42]line Контрольно-Кассовый Чек [23:01:42]line ПРОДАЖА [23:01:42]line ТРК (МРК, ГНК) : 31 [23:01:42]line Товар: 2710124130 [23:01:42]line Аи-92-К-5 [23:01:42]line 14.950 * 66.90 [23:01:42]line = 1000.16 [23:01:42]line НДС 12% НСП 1% [23:01:42]line > о реализуемом товаре [23:01:42]line ОКРУГЛЕНИЕ: -0.16 [23:01:42]line ИТОГО: 1000.00 [23:01:42]line Внесено: 1000.00 [23:01:42]line СДАЧА: 0.00 [23:01:42]line НСП 1% : 8.85 [23:01:42]line НДС 12% : 106.21 [23:01:42]line Наличными: 1000.00 [23:01:42]line Безнал.: 0.00 [23:01:42]line Место: АЗС № 143 "Партнер Нефть" [23:01:42]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [23:01:42]line СНО: Общий режим [23:01:42]line Чек 325 27.10.2024 23:01 [23:01:42]line Смена: 537 ФФД: 1.0 [23:01:42]line ЗНМ: 0300000096 [23:01:42]line РНМ: 0000000000091693 [23:01:42]line Версия ККМ: 001 [23:01:42]line ФМ: 0000000000871792 [23:01:42]line ФД: 156774 [23:01:42]line ФПД: 113497592809125 [23:01:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T230148&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156774&fm=113497592809125&tin=02508201610067®Number=0000000000091693&sum=100000 [23:01:42]OFD Sender: Processing packet 156774 [packets to send 31, broken 30] [23:01:42]ProducePacketName [23:01:42]name=ofd_packets/00156774 [23:01:42]OFD Sender: To server: pG, [23:01:42]CommunicateWithHost lk.salyk.kg:30040 [23:01:42]ConnectInit lk.salyk.kg [23:01:42]written 0, free lines is 4095 [23:01:42]Connected sock=11 [23:01:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 06 20 07 01 86 CD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 01 00 00 F4 03 04 00 5C C6 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 66 64 02 00 35 04 06 00 67 39 B7 B3 C6 A5 B4 ED 34 58 9B BD 69 53 [23:01:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 FF 8A 47 00 87 C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 66 64 02 00 F4 03 04 00 CA 6B 1E 67 B6 04 01 00 00 E3 F9 07 DB B7 8D C8 13 [23:01:42]CommunicateWithHost err = 0 [23:01:42]CheckOFDResponse [23:01:42]1017 (14) - 77093643461234 [23:01:42]1041 (16) - 0000000000871792 [23:01:42]1040 (4) - 156774 [23:01:42]1012 (4) - 27.10.2024 16:35 [23:01:42]1206 (1) - 0 [23:01:42]OFD Sender: Remove packet 156774 [23:01:42]ProducePacketName [23:01:42]name=ofd_packets/00156774 [23:01:42]NVStorageDeleteData [23:01:42]Write to MH i2c: 01 00 00 9C 8D 29 [23:01:42]Write i2c OK [23:01:42]MH_I2C_Read... [23:01:42]Read from MH i2c: 01 [23:01:42]MH_I2C_Read... [23:01:42]Read from MH i2c: 01 07 00 [23:01:42]MH_I2C_Read... [23:01:42]Read from MH i2c: 01 07 00 9C 8D 00 00 00 00 00 EF 0C 2B [23:01:42]RasterBufferAndPrint [23:01:42]line [23:01:42]line [23:01:42]line [23:01:42]line [23:01:42]line [23:01:42]written 0, free lines is 3317 [23:01:42]process_action close_receipt done [23:01:42]requested_data is exist [23:01:42]produce_requested_data [23:01:42]requested_item fm.sn is exist - process it [23:01:42]wFMCommunicate request_size=4 [23:01:42]MH_SAM_APDU [23:01:42]CAPDU: 80 11 00 00 [23:01:42]Write to MH i2c: E2 08 00 A3 8D 80 11 00 00 00 00 00 00 AA [23:01:42]Write i2c OK [23:01:42]MH_I2C_Read... [23:01:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:01:42]Read from MH i2c: E2 [23:01:42]MH_I2C_Read... [23:01:42]Read from MH i2c: E2 17 00 [23:01:42]MH_I2C_Read... [23:01:42]Read from MH i2c: E2 17 00 A3 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 FF [23:01:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [23:01:42]wFMCommunicate OK [23:01:42]requested_item fd.num is exist - process it [23:01:42]SAM_PROTO_GetFieldsCounters [23:01:42]wFMCommunicate request_size=4 [23:01:42]MH_SAM_APDU [23:01:42]CAPDU: 80 13 00 00 [23:01:42]Write to MH i2c: E2 08 00 A4 8D 80 13 00 00 00 00 00 00 AD [23:01:42]Write i2c OK [23:01:42]MH_I2C_Read... [23:01:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:01:43]Read from MH i2c: E2 [23:01:43]MH_I2C_Read... [23:01:43]Read from MH i2c: E2 62 00 [23:01:43]MH_I2C_Read... [23:01:43]Read from MH i2c: E2 62 00 A4 8D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 66 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 45 01 00 00 5E 04 04 00 45 01 00 00 57 04 04 00 46 01 00 00 19 04 04 00 00 00 00 00 90 00 8C [23:01:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 66 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 45 01 00 00 5E 04 04 00 45 01 00 00 57 04 04 00 46 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:01:43]wFMCommunicate OK [23:01:43]SAM_PROTO_GetFieldsCounters done [23:01:43]requested_item shift.num is exist - process it [23:01:43]requested_item shift.opened is exist - process it [23:01:43]req_shift_opened [23:01:43]FM_GetShiftState [23:01:43]SAM_PROTO_GetShiftState [23:01:43]wFMCommunicate request_size=4 [23:01:43]MH_SAM_APDU [23:01:43]CAPDU: 80 13 01 00 [23:01:43]Write to MH i2c: E2 08 00 A5 8D 80 13 01 00 00 00 00 00 AF [23:01:43]Write i2c OK [23:01:43]MH_I2C_Read... [23:01:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:01:43]Read from MH i2c: E2 [23:01:43]MH_I2C_Read... [23:01:43]Read from MH i2c: E2 0E 00 [23:01:43]MH_I2C_Read... [23:01:43]Read from MH i2c: E2 0E 00 A5 8D 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 7C [23:01:43]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [23:01:43]wFMCommunicate OK [23:01:43]SAM_PROTO_GetShiftState done [23:01:43]FM_GetShiftState done [23:01:43]req_shift_opened done [23:01:43]requested_item shift.open_date is exist - process it [23:01:43]req_shift_open_date [23:01:43]req_shift_open_date done [23:01:43]produce_requested_data done [23:01:43]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156774,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [23:01:43]process_action_free close_receipt [23:01:43]json_value_free [23:01:43]json_value_free done [23:01:43]process_json_proto returns [23:01:43]Send response to host [23:01:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156774,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [23:01:43]free response buf [23:01:43]execute_script done [23:01:43]execute_script returns [23:01:43]free content buf [23:01:43]Sock 8.Close socket [23:01:43]Sock 8.Thread stoped [23:01:43]OFD Sender: No OFD packet to send [23:01:48]OFD Sender: No OFD packet to send [23:01:53]OFD Sender: No OFD packet to send [23:01:58]OFD Sender: No OFD packet to send [23:02:03]OFD Sender: No OFD packet to send [23:02:08]OFD Sender: No OFD packet to send [23:02:13]OFD Sender: No OFD packet to send [23:02:18]OFD Sender: No OFD packet to send [23:02:23]OFD Sender: No OFD packet to send [23:02:28]OFD Sender: No OFD packet to send [23:02:33]OFD Sender: No OFD packet to send [23:02:38]OFD Sender: No OFD packet to send [23:02:43]OFD Sender: No OFD packet to send [23:02:48]OFD Sender: No OFD packet to send [23:02:53]OFD Sender: No OFD packet to send [23:02:58]OFD Sender: No OFD packet to send [23:03:03]OFD Sender: No OFD packet to send [23:03:08]OFD Sender: No OFD packet to send [23:03:13]OFD Sender: No OFD packet to send [23:03:18]OFD Sender: No OFD packet to send [23:03:23]OFD Sender: No OFD packet to send [23:03:28]OFD Sender: No OFD packet to send [23:03:33]OFD Sender: No OFD packet to send [23:03:38]OFD Sender: No OFD packet to send [23:03:43]OFD Sender: No OFD packet to send [23:03:48]OFD Sender: No OFD packet to send [23:03:58]OFD Sender: No OFD packet to send [23:04:03]OFD Sender: No OFD packet to send [23:04:08]OFD Sender: No OFD packet to send [23:04:13]OFD Sender: No OFD packet to send [23:04:18]OFD Sender: No OFD packet to send [23:04:23]OFD Sender: No OFD packet to send [23:04:28]OFD Sender: No OFD packet to send [23:04:33]OFD Sender: No OFD packet to send [23:04:38]OFD Sender: No OFD packet to send [23:04:43]OFD Sender: No OFD packet to send [23:04:48]OFD Sender: No OFD packet to send [23:04:53]OFD Sender: No OFD packet to send [23:04:58]OFD Sender: No OFD packet to send [23:05:02]accept exits with 9 [23:05:02]New connection [23:05:02]New thread 3066977636 created [23:05:02]Thread 3066834276 joined [23:05:02]Waiting for new connection... [23:05:02] Sock 9.Parse request [23:05:02]Sock 9.Check first char [23:05:02]Sock 9.First char is OK [23:05:02]request: POST /json_proto HTTP/1.0 [23:05:02]Method: POST [23:05:02]URL: /json_proto [23:05:02]Method is POST - this is cgi request [23:05:02]url: /json_proto [23:05:02]query_string will be loaded in cgi processing [23:05:02]execute_cgi json_proto POST (null) [23:05:02]execute_cgi path=json_proto method=POST [23:05:02]POST find Content-Length [23:05:02]Host: 172.17.63.3:8080 [23:05:02]Content-Length: 676 [23:05:02]Content-Type: application/json [23:05:02] [23:05:02]POST finish read [23:05:02]Found Content-Length = 676 [23:05:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99589", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "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" ] } } [23:05:02]execute_script... [23:05: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)99589", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "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" ] } } [23:05:02]POST & json_proto [23:05:02]process_json_proto [23:05:02]json parsed OK: [23:05:02]protocol is kg_v1.0 [23:05:02]action value=close_receipt [23:05:02]process_action close_receipt [23:05:02]cmd_close_receipt [23:05:02]MH_GetDate [23:05:02]Write to MH i2c: F0 00 00 A6 8D 22 [23:05:02]Write i2c OK [23:05:02]MH_I2C_Read... [23:05:02]Read from MH i2c: F0 [23:05:02]MH_I2C_Read... [23:05:02]Read from MH i2c: F0 09 00 [23:05:02]MH_I2C_Read... [23:05:02]Read from MH i2c: F0 09 00 A6 8D 00 26 C7 1E 67 50 D1 6C 64 8E [23:05:02]GetLastDocTimeStamp 1730070108 [23:05:02]current date 1730070310 [23:05:02]FM_GetShiftState [23:05:02]SAM_PROTO_GetShiftState [23:05:02]wFMCommunicate request_size=4 [23:05:02]MH_SAM_APDU [23:05:02]CAPDU: 80 13 01 00 [23:05:02]Write to MH i2c: E2 08 00 A7 8D 80 13 01 00 00 00 00 00 B1 [23:05:02]Write i2c OK [23:05:02]MH_I2C_Read... [23:05:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:05:02]Read from MH i2c: E2 [23:05:02]MH_I2C_Read... [23:05:02]Read from MH i2c: E2 0E 00 [23:05:02]MH_I2C_Read... [23:05:02]Read from MH i2c: E2 0E 00 A7 8D 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 7E [23:05:02]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [23:05:02]wFMCommunicate OK [23:05:02]SAM_PROTO_GetShiftState done [23:05:02]FM_GetShiftState done [23:05:02]opened in 1729989044 [23:05:02]opened+sec_in_day 1730075444 [23:05:02]quantity*price = 20003 [23:05:02]sum+1 = 20004 [23:05:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 326 27.10.2024 23:05 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156775 ФПД: 16793638656831 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T230510&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156775&fm=16793638656831&tin=02508201610067®Number=0000000000091693&sum=20000 [23:05:03]StoreToDocumentArchive [23:05:03]shift 537 fd 156775 [23:05:03]save to /storage/0537/doc_00156775 [23:05:03]save last doc name /storage/0537/doc_00156775 to /storage/kkm_last_doc_name [23:05:03]save OK [23:05:03]Clear old archive folders... [23:05:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:05:03]tlvbuf is 019B1870 [23:05:03]SAM_PROTO_ClearQueue [23:05:03]wFMCommunicate request_size=4 [23:05:03]MH_SAM_APDU [23:05:03]CAPDU: 80 09 00 00 [23:05:03]Write to MH i2c: E2 08 00 B4 8D 80 09 00 00 00 00 00 00 B3 [23:05:03]Write i2c OK [23:05:03]MH_I2C_Read... [23:05:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:05:03]Read from MH i2c: E2 [23:05:03]MH_I2C_Read... [23:05:03]Read from MH i2c: E2 03 00 [23:05:03]MH_I2C_Read... [23:05:03]Read from MH i2c: E2 03 00 B4 8D 00 90 00 B5 [23:05:03]RAPDU: 90 00 [23:05:03]wFMCommunicate OK [23:05:03]SAM_PROTO_ClearQueue done [23:05:03]KKMCreateOFDPacket [23:05:03]OFDProtocolAddRootSTLVToBuf [23:05:03]FM_MakeSignedData [23:05:03]FM_MakeSignedData [23:05:03]SAM_PROTO_SignData [23:05:03]wFMCommunicate request_size=4 [23:05:03]MH_SAM_APDU [23:05:03]CAPDU: 80 0D 01 02 [23:05:03]Write to MH i2c: E2 08 00 B5 8D 80 0D 01 02 00 00 00 00 BB [23:05:03]Write i2c OK [23:05:03]MH_I2C_Read... [23:05:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:05:03]Read from MH i2c: E2 [23:05:03]MH_I2C_Read... [23:05:03]Read from MH i2c: E2 03 00 [23:05:03]MH_I2C_Read... [23:05:03]Read from MH i2c: E2 03 00 B5 8D 00 90 00 B6 [23:05:03]RAPDU: 90 00 [23:05:03]wFMCommunicate OK [23:05:03]wFMCommunicate request_size=255 [23:05:03]MH_SAM_APDU [23:05: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 46 01 00 00 F4 03 04 00 26 C7 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 67 64 02 00 35 04 06 00 0F [23:05:03]Write to MH i2c: E2 02 01 B6 8D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 46 01 00 00 F4 03 04 00 26 C7 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 67 64 02 00 35 04 06 00 0F 00 00 C1 [23:05:03]Write i2c OK [23:05:03]MH_I2C_Read... [23:05:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:05:04]Read from MH i2c: E2 [23:05:04]MH_I2C_Read... [23:05:04]Read from MH i2c: E2 03 00 [23:05:04]MH_I2C_Read... [23:05:04]Read from MH i2c: E2 03 00 B6 8D 00 90 00 B7 [23:05:04]RAPDU: 90 00 [23:05:04]wFMCommunicate OK [23:05:04]wFMCommunicate request_size=10 [23:05:04]MH_SAM_APDU [23:05:04]CAPDU: 80 0D 02 02 05 46 12 DD DB 3F [23:05:04]Write to MH i2c: E2 0D 00 B7 8D 80 0D 02 02 05 00 46 12 DD DB 3F 00 00 17 [23:05:04]Write i2c OK [23:05:04]MH_I2C_Read... [23:05:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:05:04]Read from MH i2c: E2 [23:05:04]MH_I2C_Read... [23:05:04]Read from MH i2c: E2 03 00 [23:05:04]MH_I2C_Read... [23:05:04]Read from MH i2c: E2 03 00 B7 8D 00 90 00 B8 [23:05:04]RAPDU: 90 00 [23:05:04]wFMCommunicate OK [23:05:04]wFMCommunicate request_size=4 [23:05:04]MH_SAM_APDU [23:05:04]CAPDU: 80 0D 03 02 [23:05:04]Write to MH i2c: E2 08 00 B8 8D 80 0D 03 02 00 00 00 00 C0 [23:05:04]Write i2c OK [23:05:04]MH_I2C_Read... [23:05:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:05:04]Read from MH i2c: E2 [23:05:04]MH_I2C_Read... [23:05:04]Read from MH i2c: E2 0B 00 [23:05:04]MH_I2C_Read... [23:05:04]Read from MH i2c: E2 0B 00 B8 8D 00 36 16 86 CA A7 42 68 DB 90 00 89 [23:05:04]RAPDU: 36 16 86 CA A7 42 68 DB 90 00 [23:05:04]wFMCommunicate OK [23:05:04]SAM_PROTO_SignData done [23:05:04]FM_MakeSignedData done [23:05:04]CreateOFDProtocolMessage [23:05:04]wFMCommunicate request_size=4 [23:05:04]MH_SAM_APDU [23:05:04]CAPDU: 80 11 00 00 [23:05:04]Write to MH i2c: E2 08 00 B9 8D 80 11 00 00 00 00 00 00 C0 [23:05:04]Write i2c OK [23:05:04]MH_I2C_Read... [23:05:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:05:04]Read from MH i2c: E2 [23:05:04]MH_I2C_Read... [23:05:04]Read from MH i2c: E2 17 00 [23:05:04]MH_I2C_Read... [23:05:04]Read from MH i2c: E2 17 00 B9 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 15 [23:05:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [23:05:04]wFMCommunicate OK [23:05:04]CreateOFDProtocolMessage done [23:05:04]OFDSenderStorePacket 156775 [23:05:04]StoreOFDPacket docnum=156775 [23:05:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 D0 D8 07 01 AF 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 46 01 00 00 F4 03 04 00 26 C7 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 67 64 02 00 35 04 06 00 0F 46 12 DD DB 3F 36 16 86 CA A7 42 68 DB [23:05:04]CheckFolder [23:05:04]dirname=/storage/ofd_packets [23:05:04]CheckFolder done [23:05:04]ProducePacketName [23:05:04]name=ofd_packets/00156775 [23:05:04]NVStorageSaveData ofd_packets/00156775 [23:05:04]File name is /storage/ofd_packets/00156775 [23:05:04]Write 301 bytes [23:05:04]NVStorageSaveData done [23:05:04]OFDSenderStorePacket done [23:05:04]KKMCreateOFDPacket done [23:05:04]NVStorageSaveData kkm_last_timestamp [23:05:04]File name is /storage/kkm_last_timestamp [23:05:04]Write 4 bytes [23:05:04]NVStorageSaveData done [23:05:04]ExternCall_PrintAddStr [23:05:04]wPrintStart [23:05:04]Write to MH i2c: 01 00 00 BA 8D 47 [23:05:04]Write i2c OK [23:05:04]MH_I2C_Read... [23:05:04]Read from MH i2c: 01 [23:05:04]MH_I2C_Read... [23:05:04]Read from MH i2c: 01 07 00 [23:05:04]MH_I2C_Read... [23:05:04]Read from MH i2c: 01 07 00 BA 8D 00 00 00 00 00 FF 0F 5C [23:05:04]RasterBufferAndPrint [23:05:04]line Счет N : (1)99589 [23:05:04]line ИНН: 02508201610067 [23:05:04]line Контрольно-Кассовый Чек [23:05:04]line ПРОДАЖА [23:05:04]line ТРК (МРК, ГНК) : 31 [23:05:04]line Товар: 2710124130 [23:05:04]line Аи-92-К-5 [23:05:04]line 2.990 * 66.90 [23:05:04]line = 200.03 [23:05:04]line НДС 12% НСП 1% [23:05:04]line > о реализуемом товаре [23:05:04]line ОКРУГЛЕНИЕ: -0.03 [23:05:04]line ИТОГО: 200.00 [23:05:04]line Внесено: 200.00 [23:05:04]line СДАЧА: 0.00 [23:05:04]line НСП 1% : 1.77 [23:05:04]line НДС 12% : 21.24 [23:05:04]line Наличными: 200.00 [23:05:04]line Безнал.: 0.00 [23:05:04]line Место: АЗС № 143 "Партнер Нефть" [23:05:04]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [23:05:04]line СНО: Общий режим [23:05:04]line Чек 326 27.10.2024 23:05 [23:05:04]line Смена: 537 ФФД: 1.0 [23:05:04]line ЗНМ: 0300000096 [23:05:04]line РНМ: 0000000000091693 [23:05:04]line Версия ККМ: 001 [23:05:04]line ФМ: 0000000000871792 [23:05:04]line ФД: 156775 [23:05:04]line ФПД: 16793638656831 [23:05:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T230510&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156775&fm=16793638656831&tin=02508201610067®Number=0000000000091693&sum=20000 [23:05:04]OFD Sender: Processing packet 156775 [packets to send 31, broken 30] [23:05:04]ProducePacketName [23:05:04]name=ofd_packets/00156775 [23:05:04]OFD Sender: To server: pG, [23:05:04]CommunicateWithHost lk.salyk.kg:30040 [23:05:04]ConnectInit lk.salyk.kg [23:05:04]written 0, free lines is 4095 [23:05:04]Connected sock=11 [23:05:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 D0 D8 07 01 AF 89 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 46 01 00 00 F4 03 04 00 26 C7 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 67 64 02 00 35 04 06 00 0F 46 12 DD DB 3F 36 16 86 CA A7 42 68 DB [23:05:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 5E 33 47 00 2F 1C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 67 64 02 00 F4 03 04 00 94 6C 1E 67 B6 04 01 00 00 92 32 75 23 5E 2B 41 0B [23:05:04]CommunicateWithHost err = 0 [23:05:04]CheckOFDResponse [23:05:04]1017 (14) - 77093643461234 [23:05:04]1041 (16) - 0000000000871792 [23:05:04]1040 (4) - 156775 [23:05:04]1012 (4) - 27.10.2024 16:38 [23:05:04]1206 (1) - 0 [23:05:04]OFD Sender: Remove packet 156775 [23:05:04]ProducePacketName [23:05:04]name=ofd_packets/00156775 [23:05:04]NVStorageDeleteData [23:05:05]Write to MH i2c: 01 00 00 E5 8D 72 [23:05:05]Write i2c OK [23:05:05]MH_I2C_Read... [23:05:05]Read from MH i2c: 01 [23:05:05]MH_I2C_Read... [23:05:05]Read from MH i2c: 01 07 00 [23:05:05]MH_I2C_Read... [23:05:05]Read from MH i2c: 01 07 00 E5 8D 00 00 00 00 00 EE 0C 73 [23:05:05]RasterBufferAndPrint [23:05:05]line [23:05:05]line [23:05:05]line [23:05:05]line [23:05:05]line [23:05:05]written 0, free lines is 3319 [23:05:05]process_action close_receipt done [23:05:05]requested_data is exist [23:05:05]produce_requested_data [23:05:05]requested_item fm.sn is exist - process it [23:05:05]wFMCommunicate request_size=4 [23:05:05]MH_SAM_APDU [23:05:05]CAPDU: 80 11 00 00 [23:05:05]Write to MH i2c: E2 08 00 EC 8D 80 11 00 00 00 00 00 00 F3 [23:05:05]Write i2c OK [23:05:05]MH_I2C_Read... [23:05:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:05:05]Read from MH i2c: E2 [23:05:05]MH_I2C_Read... [23:05:05]Read from MH i2c: E2 17 00 [23:05:05]MH_I2C_Read... [23:05:05]Read from MH i2c: E2 17 00 EC 8D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 48 [23:05:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [23:05:05]wFMCommunicate OK [23:05:05]requested_item fd.num is exist - process it [23:05:05]SAM_PROTO_GetFieldsCounters [23:05:05]wFMCommunicate request_size=4 [23:05:05]MH_SAM_APDU [23:05:05]CAPDU: 80 13 00 00 [23:05:05]Write to MH i2c: E2 08 00 ED 8D 80 13 00 00 00 00 00 00 F6 [23:05:05]Write i2c OK [23:05:05]MH_I2C_Read... [23:05:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:05:05]Read from MH i2c: E2 [23:05:05]MH_I2C_Read... [23:05:05]Read from MH i2c: E2 62 00 [23:05:05]MH_I2C_Read... [23:05:05]Read from MH i2c: E2 62 00 ED 8D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 67 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 46 01 00 00 5E 04 04 00 46 01 00 00 57 04 04 00 47 01 00 00 19 04 04 00 00 00 00 00 90 00 D9 [23:05:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 67 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 46 01 00 00 5E 04 04 00 46 01 00 00 57 04 04 00 47 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:05:05]wFMCommunicate OK [23:05:05]SAM_PROTO_GetFieldsCounters done [23:05:05]requested_item shift.num is exist - process it [23:05:05]requested_item shift.opened is exist - process it [23:05:05]req_shift_opened [23:05:05]FM_GetShiftState [23:05:05]SAM_PROTO_GetShiftState [23:05:05]wFMCommunicate request_size=4 [23:05:05]MH_SAM_APDU [23:05:05]CAPDU: 80 13 01 00 [23:05:05]Write to MH i2c: E2 08 00 EE 8D 80 13 01 00 00 00 00 00 F8 [23:05:05]Write i2c OK [23:05:05]MH_I2C_Read... [23:05:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:05:05]Read from MH i2c: E2 [23:05:05]MH_I2C_Read... [23:05:05]Read from MH i2c: E2 0E 00 [23:05:05]MH_I2C_Read... [23:05:05]Read from MH i2c: E2 0E 00 EE 8D 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 C5 [23:05:05]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [23:05:05]wFMCommunicate OK [23:05:05]SAM_PROTO_GetShiftState done [23:05:05]FM_GetShiftState done [23:05:05]req_shift_opened done [23:05:05]requested_item shift.open_date is exist - process it [23:05:05]req_shift_open_date [23:05:05]req_shift_open_date done [23:05:05]produce_requested_data done [23:05:05]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156775,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [23:05:05]process_action_free close_receipt [23:05:05]json_value_free [23:05:05]json_value_free done [23:05:05]process_json_proto returns [23:05:05]Send response to host [23:05:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156775,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [23:05:05]free response buf [23:05:05]execute_script done [23:05:05]execute_script returns [23:05:05]free content buf [23:05:05]Sock 9.Close socket [23:05:05]Sock 9.Thread stoped [23:05:05]OFD Sender: No OFD packet to send [23:05:10]OFD Sender: No OFD packet to send [23:05:15]OFD Sender: No OFD packet to send [23:05:20]OFD Sender: No OFD packet to send [23:05:25]OFD Sender: No OFD packet to send [23:05:30]OFD Sender: No OFD packet to send [23:05:35]OFD Sender: No OFD packet to send [23:05:40]OFD Sender: No OFD packet to send [23:05:45]OFD Sender: No OFD packet to send [23:05:50]OFD Sender: No OFD packet to send [23:05:55]OFD Sender: No OFD packet to send [23:06:00]OFD Sender: No OFD packet to send [23:06:03]ConnectInit Can't connect to host [23:06:05]OFD Sender: No OFD packet to send [23:06:10]OFD Sender: No OFD packet to send [23:06:15]OFD Sender: No OFD packet to send [23:06:20]OFD Sender: No OFD packet to send [23:06:25]OFD Sender: No OFD packet to send [23:06:30]OFD Sender: No OFD packet to send [23:06:35]OFD Sender: No OFD packet to send [23:06:40]OFD Sender: No OFD packet to send [23:06:45]OFD Sender: No OFD packet to send [23:06:50]OFD Sender: No OFD packet to send [23:06:52]accept exits with 10 [23:06:52]New connection [23:06:52]New thread 3066834276 created [23:06:52]Thread 3066977636 joined [23:06:52]Waiting for new connection... [23:06:52] Sock 10.Parse request [23:06:52]Sock 10.Check first char [23:06:52]Sock 10.First char is OK [23:06:52]request: POST /json_proto HTTP/1.0 [23:06:52]Method: POST [23:06:52]URL: /json_proto [23:06:52]Method is POST - this is cgi request [23:06:52]url: /json_proto [23:06:52]query_string will be loaded in cgi processing [23:06:52]execute_cgi json_proto POST (null) [23:06:52]execute_cgi path=json_proto method=POST [23:06:52]POST find Content-Length [23:06:52]Host: 172.17.63.3:8080 [23:06:52]Content-Length: 676 [23:06:52]Content-Type: application/json [23:06:52] [23:06:52]POST finish read [23:06:52]Found Content-Length = 676 [23:06:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99590", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:06:52]execute_script... [23:06: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)99590", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:06:52]POST & json_proto [23:06:52]process_json_proto [23:06:52]json parsed OK: [23:06:52]protocol is kg_v1.0 [23:06:52]action value=close_receipt [23:06:52]process_action close_receipt [23:06:52]cmd_close_receipt [23:06:52]MH_GetDate [23:06:52]Write to MH i2c: F0 00 00 EF 8D 6B [23:06:52]Write i2c OK [23:06:52]MH_I2C_Read... [23:06:52]Read from MH i2c: F0 [23:06:52]MH_I2C_Read... [23:06:52]Read from MH i2c: F0 09 00 [23:06:52]MH_I2C_Read... [23:06:52]Read from MH i2c: F0 09 00 EF 8D 00 94 C7 1E 67 50 D1 6C 64 45 [23:06:52]GetLastDocTimeStamp 1730070310 [23:06:52]current date 1730070420 [23:06:52]FM_GetShiftState [23:06:52]SAM_PROTO_GetShiftState [23:06:52]wFMCommunicate request_size=4 [23:06:52]MH_SAM_APDU [23:06:52]CAPDU: 80 13 01 00 [23:06:52]Write to MH i2c: E2 08 00 F0 8D 80 13 01 00 00 00 00 00 FA [23:06:52]Write i2c OK [23:06:52]MH_I2C_Read... [23:06:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:06:52]Read from MH i2c: E2 [23:06:52]MH_I2C_Read... [23:06:52]Read from MH i2c: E2 0E 00 [23:06:52]MH_I2C_Read... [23:06:52]Read from MH i2c: E2 0E 00 F0 8D 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 C7 [23:06:52]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [23:06:52]wFMCommunicate OK [23:06:52]SAM_PROTO_GetShiftState done [23:06:52]FM_GetShiftState done [23:06:52]opened in 1729989044 [23:06:52]opened+sec_in_day 1730075444 [23:06:52]quantity*price = 50041 [23:06:52]sum+1 = 50042 [23:06:52]Check (price>sum+1) || (price+1 о реализуемом товаре [23:06:54]line ОКРУГЛЕНИЕ: -0.41 [23:06:54]line ИТОГО: 500.00 [23:06:54]line Внесено: 500.00 [23:06:54]line СДАЧА: 0.00 [23:06:54]line НСП 1% : 4.43 [23:06:54]line НДС 12% : 53.14 [23:06:54]line Наличными: 500.00 [23:06:54]line Безнал.: 0.00 [23:06:54]line Место: АЗС № 143 "Партнер Нефть" [23:06:54]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [23:06:54]line СНО: Общий режим [23:06:54]line Чек 327 27.10.2024 23:07 [23:06:54]line Смена: 537 ФФД: 1.0 [23:06:54]line ЗНМ: 0300000096 [23:06:54]line РНМ: 0000000000091693 [23:06:54]line Версия ККМ: 001 [23:06:54]line ФМ: 0000000000871792 [23:06:54]line ФД: 156776 [23:06:54]line ФПД: 45920118762005 [23:06:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T230700&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156776&fm=45920118762005&tin=02508201610067®Number=0000000000091693&sum=50000 [23:06:54]written 0, free lines is 4095 [23:06:54]OFD Sender: Processing packet 156776 [packets to send 31, broken 30] [23:06:54]ProducePacketName [23:06:54]name=ofd_packets/00156776 [23:06:54]OFD Sender: To server: pG, [23:06:54]CommunicateWithHost lk.salyk.kg:30040 [23:06:54]ConnectInit lk.salyk.kg [23:06:54]Connected sock=11 [23:06:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 8A 22 07 01 EE E6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 01 00 00 F4 03 04 00 94 C7 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 68 64 02 00 35 04 06 00 29 C3 9C 5D EA 15 1E F0 63 A2 75 F7 87 72 [23:06:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 DB 4F 47 00 68 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 31 37 39 32 10 04 04 00 68 64 02 00 F4 03 04 00 02 6D 1E 67 B6 04 01 00 00 5A 63 CC 85 7B 5A 13 79 [23:06:54]CommunicateWithHost err = 0 [23:06:54]CheckOFDResponse [23:06:54]1017 (14) - 77093643461234 [23:06:54]1041 (16) - 0000000000871792 [23:06:54]1040 (4) - 156776 [23:06:54]1012 (4) - 27.10.2024 16:40 [23:06:54]1206 (1) - 0 [23:06:54]OFD Sender: Remove packet 156776 [23:06:54]ProducePacketName [23:06:54]name=ofd_packets/00156776 [23:06:54]NVStorageDeleteData [23:06:54]Write to MH i2c: 01 00 00 2E 8E BC [23:06:54]Write i2c OK [23:06:54]MH_I2C_Read... [23:06:54]Read from MH i2c: 01 [23:06:54]MH_I2C_Read... [23:06:54]Read from MH i2c: 01 07 00 [23:06:54]MH_I2C_Read... [23:06:54]Read from MH i2c: 01 07 00 2E 8E 00 00 00 00 00 E7 0C B6 [23:06:54]RasterBufferAndPrint [23:06:54]line [23:06:54]line [23:06:54]line [23:06:54]line [23:06:54]line [23:06:54]written 0, free lines is 3315 [23:06:54]process_action close_receipt done [23:06:54]requested_data is exist [23:06:54]produce_requested_data [23:06:54]requested_item fm.sn is exist - process it [23:06:54]wFMCommunicate request_size=4 [23:06:54]MH_SAM_APDU [23:06:54]CAPDU: 80 11 00 00 [23:06:54]Write to MH i2c: E2 08 00 35 8E 80 11 00 00 00 00 00 00 3D [23:06:54]Write i2c OK [23:06:54]MH_I2C_Read... [23:06:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:06:54]Read from MH i2c: E2 [23:06:54]MH_I2C_Read... [23:06:54]Read from MH i2c: E2 17 00 [23:06:54]MH_I2C_Read... [23:06:54]Read from MH i2c: E2 17 00 35 8E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 92 [23:06:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [23:06:54]wFMCommunicate OK [23:06:54]requested_item fd.num is exist - process it [23:06:54]SAM_PROTO_GetFieldsCounters [23:06:54]wFMCommunicate request_size=4 [23:06:54]MH_SAM_APDU [23:06:54]CAPDU: 80 13 00 00 [23:06:54]Write to MH i2c: E2 08 00 36 8E 80 13 00 00 00 00 00 00 40 [23:06:54]Write i2c OK [23:06:54]MH_I2C_Read... [23:06:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:06:54]Read from MH i2c: E2 [23:06:54]MH_I2C_Read... [23:06:54]Read from MH i2c: E2 62 00 [23:06:54]MH_I2C_Read... [23:06:54]Read from MH i2c: E2 62 00 36 8E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 68 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 47 01 00 00 5E 04 04 00 47 01 00 00 57 04 04 00 48 01 00 00 19 04 04 00 00 00 00 00 90 00 27 [23:06:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 68 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 47 01 00 00 5E 04 04 00 47 01 00 00 57 04 04 00 48 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:06:54]wFMCommunicate OK [23:06:54]SAM_PROTO_GetFieldsCounters done [23:06:54]requested_item shift.num is exist - process it [23:06:54]requested_item shift.opened is exist - process it [23:06:54]req_shift_opened [23:06:54]FM_GetShiftState [23:06:54]SAM_PROTO_GetShiftState [23:06:54]wFMCommunicate request_size=4 [23:06:54]MH_SAM_APDU [23:06:54]CAPDU: 80 13 01 00 [23:06:54]Write to MH i2c: E2 08 00 37 8E 80 13 01 00 00 00 00 00 42 [23:06:54]Write i2c OK [23:06:54]MH_I2C_Read... [23:06:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:06:55]Read from MH i2c: E2 [23:06:55]MH_I2C_Read... [23:06:55]Read from MH i2c: E2 0E 00 [23:06:55]MH_I2C_Read... [23:06:55]Read from MH i2c: E2 0E 00 37 8E 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 0F [23:06:55]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [23:06:55]wFMCommunicate OK [23:06:55]SAM_PROTO_GetShiftState done [23:06:55]FM_GetShiftState done [23:06:55]req_shift_opened done [23:06:55]requested_item shift.open_date is exist - process it [23:06:55]req_shift_open_date [23:06:55]req_shift_open_date done [23:06:55]produce_requested_data done [23:06:55]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156776,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [23:06:55]process_action_free close_receipt [23:06:55]json_value_free [23:06:55]json_value_free done [23:06:55]process_json_proto returns [23:06:55]Send response to host [23:06:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156776,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [23:06:55]free response buf [23:06:55]execute_script done [23:06:55]execute_script returns [23:06:55]free content buf [23:06:55]Sock 10.Close socket [23:06:55]Sock 10.Thread stoped [23:06:55]OFD Sender: No OFD packet to send [23:07:00]OFD Sender: No OFD packet to send [23:07:05]OFD Sender: No OFD packet to send [23:07:10]OFD Sender: No OFD packet to send [23:07:15]OFD Sender: No OFD packet to send [23:07:20]OFD Sender: No OFD packet to send [23:07:25]OFD Sender: No OFD packet to send [23:07:30]OFD Sender: No OFD packet to send [23:07:35]OFD Sender: No OFD packet to send [23:07:40]OFD Sender: No OFD packet to send [23:07:45]OFD Sender: No OFD packet to send [23:07:50]OFD Sender: No OFD packet to send [23:07:55]OFD Sender: No OFD packet to send [23:08:00]OFD Sender: No OFD packet to send [23:08:05]OFD Sender: No OFD packet to send [23:08:10]OFD Sender: No OFD packet to send [23:08:15]OFD Sender: No OFD packet to send [23:08:20]OFD Sender: No OFD packet to send [23:08:25]OFD Sender: No OFD packet to send [23:08:25]accept exits with 9 [23:08:25]New connection [23:08:25]New thread 3066977636 created [23:08:25]Thread 3066834276 joined [23:08:25]Waiting for new connection... [23:08:25] Sock 9.Parse request [23:08:25]Sock 9.Check first char [23:08:25]Sock 9.First char is OK [23:08:25]request: POST /json_proto HTTP/1.0 [23:08:25]Method: POST [23:08:25]URL: /json_proto [23:08:25]Method is POST - this is cgi request [23:08:25]url: /json_proto [23:08:25]query_string will be loaded in cgi processing [23:08:25]execute_cgi json_proto POST (null) [23:08:25]execute_cgi path=json_proto method=POST [23:08:25]POST find Content-Length [23:08:25]Host: 172.17.63.3:8080 [23:08:25]Content-Length: 681 [23:08:25]Content-Type: application/json [23:08:25] [23:08:25]POST finish read [23:08:25]Found Content-Length = 681 [23:08:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99591", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:08:25]execute_script... [23:08: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)99591", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:08:25]POST & json_proto [23:08:25]process_json_proto [23:08:25]json parsed OK: [23:08:25]protocol is kg_v1.0 [23:08:25]action value=close_receipt [23:08:25]process_action close_receipt [23:08:25]cmd_close_receipt [23:08:25]MH_GetDate [23:08:25]Write to MH i2c: F0 00 00 38 8E B5 [23:08:25]Write i2c OK [23:08:25]MH_I2C_Read... [23:08:25]Read from MH i2c: F0 [23:08:25]MH_I2C_Read... [23:08:25]Read from MH i2c: F0 09 00 [23:08:25]MH_I2C_Read... [23:08:25]Read from MH i2c: F0 09 00 38 8E 00 F2 C7 1E 67 50 D1 6C 64 ED [23:08:25]GetLastDocTimeStamp 1730070420 [23:08:25]current date 1730070514 [23:08:25]FM_GetShiftState [23:08:25]SAM_PROTO_GetShiftState [23:08:25]wFMCommunicate request_size=4 [23:08:25]MH_SAM_APDU [23:08:25]CAPDU: 80 13 01 00 [23:08:25]Write to MH i2c: E2 08 00 39 8E 80 13 01 00 00 00 00 00 44 [23:08:25]Write i2c OK [23:08:25]MH_I2C_Read... [23:08:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:08:26]Read from MH i2c: E2 [23:08:26]MH_I2C_Read... [23:08:26]Read from MH i2c: E2 0E 00 [23:08:26]MH_I2C_Read... [23:08:26]Read from MH i2c: E2 0E 00 39 8E 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 11 [23:08:26]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [23:08:26]wFMCommunicate OK [23:08:26]SAM_PROTO_GetShiftState done [23:08:26]FM_GetShiftState done [23:08:26]opened in 1729989044 [23:08:26]opened+sec_in_day 1730075444 [23:08:26]quantity*price = 100015 [23:08:26]sum+1 = 100017 [23:08:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 328 27.10.2024 23:08 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156777 ФПД: 277002738482689 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T230834&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156777&fm=277002738482689&tin=02508201610067®Number=0000000000091693&sum=100000 [23:08:27]StoreToDocumentArchive [23:08:27]shift 537 fd 156777 [23:08:27]save to /storage/0537/doc_00156777 [23:08:27]save last doc name /storage/0537/doc_00156777 to /storage/kkm_last_doc_name [23:08:27]save OK [23:08:27]Clear old archive folders... [23:08:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:08:27]tlvbuf is 01906950 [23:08:27]SAM_PROTO_ClearQueue [23:08:27]wFMCommunicate request_size=4 [23:08:27]MH_SAM_APDU [23:08:27]CAPDU: 80 09 00 00 [23:08:27]Write to MH i2c: E2 08 00 46 8E 80 09 00 00 00 00 00 00 46 [23:08:27]Write i2c OK [23:08:27]MH_I2C_Read... [23:08:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:08:27]Read from MH i2c: E2 [23:08:27]MH_I2C_Read... [23:08:27]Read from MH i2c: E2 03 00 [23:08:27]MH_I2C_Read... [23:08:27]Read from MH i2c: E2 03 00 46 8E 00 90 00 48 [23:08:27]RAPDU: 90 00 [23:08:27]wFMCommunicate OK [23:08:27]SAM_PROTO_ClearQueue done [23:08:27]KKMCreateOFDPacket [23:08:27]OFDProtocolAddRootSTLVToBuf [23:08:27]FM_MakeSignedData [23:08:27]FM_MakeSignedData [23:08:27]SAM_PROTO_SignData [23:08:27]wFMCommunicate request_size=4 [23:08:27]MH_SAM_APDU [23:08:27]CAPDU: 80 0D 01 02 [23:08:27]Write to MH i2c: E2 08 00 47 8E 80 0D 01 02 00 00 00 00 4E [23:08:27]Write i2c OK [23:08:27]MH_I2C_Read... [23:08:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:08:27]Read from MH i2c: E2 [23:08:27]MH_I2C_Read... [23:08:27]Read from MH i2c: E2 03 00 [23:08:27]MH_I2C_Read... [23:08:27]Read from MH i2c: E2 03 00 47 8E 00 90 00 49 [23:08:27]RAPDU: 90 00 [23:08:27]wFMCommunicate OK [23:08:27]wFMCommunicate request_size=255 [23:08:27]MH_SAM_APDU [23:08:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 01 00 00 F4 03 04 00 F2 C7 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 69 64 02 00 35 04 06 00 FB [23:08:27]Write to MH i2c: E2 02 01 48 8E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 01 00 00 F4 03 04 00 F2 C7 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 69 64 02 00 35 04 06 00 FB 00 00 48 [23:08:27]Write i2c OK [23:08:27]MH_I2C_Read... [23:08:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:08:27]Read from MH i2c: E2 [23:08:27]MH_I2C_Read... [23:08:27]Read from MH i2c: E2 03 00 [23:08:27]MH_I2C_Read... [23:08:27]Read from MH i2c: E2 03 00 48 8E 00 90 00 4A [23:08:27]RAPDU: 90 00 [23:08:27]wFMCommunicate OK [23:08:27]wFMCommunicate request_size=10 [23:08:27]MH_SAM_APDU [23:08:27]CAPDU: 80 0D 02 02 05 EE B9 D4 3E 01 [23:08:27]Write to MH i2c: E2 0D 00 49 8E 80 0D 02 02 05 00 EE B9 D4 3E 01 00 00 15 [23:08:27]Write i2c OK [23:08:27]MH_I2C_Read... [23:08:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:08:27]Read from MH i2c: E2 [23:08:27]MH_I2C_Read... [23:08:27]Read from MH i2c: E2 03 00 [23:08:27]MH_I2C_Read... [23:08:27]Read from MH i2c: E2 03 00 49 8E 00 90 00 4B [23:08:27]RAPDU: 90 00 [23:08:27]wFMCommunicate OK [23:08:27]wFMCommunicate request_size=4 [23:08:27]MH_SAM_APDU [23:08:27]CAPDU: 80 0D 03 02 [23:08:27]Write to MH i2c: E2 08 00 4A 8E 80 0D 03 02 00 00 00 00 53 [23:08:27]Write i2c OK [23:08:27]MH_I2C_Read... [23:08:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:08:27]Read from MH i2c: E2 [23:08:27]MH_I2C_Read... [23:08:27]Read from MH i2c: E2 0B 00 [23:08:27]MH_I2C_Read... [23:08:27]Read from MH i2c: E2 0B 00 4A 8E 00 82 EC B7 83 1E FF 3F 02 90 00 5A [23:08:27]RAPDU: 82 EC B7 83 1E FF 3F 02 90 00 [23:08:27]wFMCommunicate OK [23:08:27]SAM_PROTO_SignData done [23:08:27]FM_MakeSignedData done [23:08:27]CreateOFDProtocolMessage [23:08:27]wFMCommunicate request_size=4 [23:08:27]MH_SAM_APDU [23:08:27]CAPDU: 80 11 00 00 [23:08:27]Write to MH i2c: E2 08 00 4B 8E 80 11 00 00 00 00 00 00 53 [23:08:27]Write i2c OK [23:08:27]MH_I2C_Read... [23:08:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:08:27]Read from MH i2c: E2 [23:08:27]MH_I2C_Read... [23:08:27]Read from MH i2c: E2 17 00 [23:08:27]MH_I2C_Read... [23:08:27]Read from MH i2c: E2 17 00 4B 8E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 A8 [23:08:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [23:08:27]wFMCommunicate OK [23:08:27]CreateOFDProtocolMessage done [23:08:27]OFDSenderStorePacket 156777 [23:08:27]StoreOFDPacket docnum=156777 [23:08:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 FE 65 07 01 93 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 01 00 00 F4 03 04 00 F2 C7 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 69 64 02 00 35 04 06 00 FB EE B9 D4 3E 01 82 EC B7 83 1E FF 3F 02 [23:08:27]CheckFolder [23:08:27]dirname=/storage/ofd_packets [23:08:27]CheckFolder done [23:08:27]ProducePacketName [23:08:27]name=ofd_packets/00156777 [23:08:27]NVStorageSaveData ofd_packets/00156777 [23:08:27]File name is /storage/ofd_packets/00156777 [23:08:27]Write 301 bytes [23:08:27]NVStorageSaveData done [23:08:27]OFDSenderStorePacket done [23:08:27]KKMCreateOFDPacket done [23:08:27]NVStorageSaveData kkm_last_timestamp [23:08:27]File name is /storage/kkm_last_timestamp [23:08:27]Write 4 bytes [23:08:27]NVStorageSaveData done [23:08:27]ExternCall_PrintAddStr [23:08:27]wPrintStart [23:08:27]Write to MH i2c: 01 00 00 4C 8E DA [23:08:27]Write i2c OK [23:08:27]MH_I2C_Read... [23:08:27]Read from MH i2c: 01 [23:08:27]MH_I2C_Read... [23:08:27]Read from MH i2c: 01 07 00 [23:08:27]MH_I2C_Read... [23:08:27]Read from MH i2c: 01 07 00 4C 8E 00 00 00 00 00 FF 0F EF [23:08:27]RasterBufferAndPrint [23:08:27]line Счет N : (1)99591 [23:08:27]line ИНН: 02508201610067 [23:08:27]line Контрольно-Кассовый Чек [23:08:27]line ПРОДАЖА [23:08:27]line ТРК (МРК, ГНК) : 31 [23:08:27]line Товар: 2710124130 [23:08:27]line Аи-92-К-5 [23:08:27]line 14.950 * 66.90 [23:08:27]line = 1000.16 [23:08:27]line НДС 12% НСП 1% [23:08:27]line > о реализуемом товаре [23:08:27]line ОКРУГЛЕНИЕ: -0.16 [23:08:27]line ИТОГО: 1000.00 [23:08:27]line Внесено: 1000.00 [23:08:27]line СДАЧА: 0.00 [23:08:27]line НСП 1% : 8.85 [23:08:27]line НДС 12% : 106.21 [23:08:27]line Наличными: 1000.00 [23:08:27]line Безнал.: 0.00 [23:08:27]line Место: АЗС № 143 "Партнер Нефть" [23:08:27]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [23:08:27]line СНО: Общий режим [23:08:27]line Чек 328 27.10.2024 23:08 [23:08:27]line Смена: 537 ФФД: 1.0 [23:08:27]line ЗНМ: 0300000096 [23:08:27]line РНМ: 0000000000091693 [23:08:27]line Версия ККМ: 001 [23:08:27]line ФМ: 0000000000871792 [23:08:27]line ФД: 156777 [23:08:27]line ФПД: 277002738482689 [23:08:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T230834&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156777&fm=277002738482689&tin=02508201610067®Number=0000000000091693&sum=100000 [23:08:27]written 0, free lines is 4095 [23:08:27]OFD Sender: Processing packet 156777 [packets to send 31, broken 30] [23:08:27]ProducePacketName [23:08:27]name=ofd_packets/00156777 [23:08:27]OFD Sender: To server: pG, [23:08:27]CommunicateWithHost lk.salyk.kg:30040 [23:08:27]ConnectInit lk.salyk.kg [23:08:27]Connected sock=11 [23:08:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 FE 65 07 01 93 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 01 00 00 F4 03 04 00 F2 C7 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 69 64 02 00 35 04 06 00 FB EE B9 D4 3E 01 82 EC B7 83 1E FF 3F 02 [23:08:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 2F 55 47 00 53 36 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 69 64 02 00 F4 03 04 00 60 6D 1E 67 B6 04 01 00 00 63 45 83 EC 14 3C 96 59 [23:08:28]CommunicateWithHost err = 0 [23:08:28]CheckOFDResponse [23:08:28]1017 (14) - 77093643461234 [23:08:28]1041 (16) - 0000000000871792 [23:08:28]1040 (4) - 156777 [23:08:28]1012 (4) - 27.10.2024 16:42 [23:08:28]1206 (1) - 0 [23:08:28]OFD Sender: Remove packet 156777 [23:08:28]ProducePacketName [23:08:28]name=ofd_packets/00156777 [23:08:28]NVStorageDeleteData [23:08:28]Write to MH i2c: 01 00 00 77 8E 05 [23:08:28]Write i2c OK [23:08:28]MH_I2C_Read... [23:08:28]Read from MH i2c: 01 [23:08:28]MH_I2C_Read... [23:08:28]Read from MH i2c: 01 07 00 [23:08:28]MH_I2C_Read... [23:08:28]Read from MH i2c: 01 07 00 77 8E 00 00 00 00 00 02 0D 1B [23:08:28]RasterBufferAndPrint [23:08:28]line [23:08:28]line [23:08:28]line [23:08:28]line [23:08:28]line [23:08:28]written 0, free lines is 3343 [23:08:28]process_action close_receipt done [23:08:28]requested_data is exist [23:08:28]produce_requested_data [23:08:28]requested_item fm.sn is exist - process it [23:08:28]wFMCommunicate request_size=4 [23:08:28]MH_SAM_APDU [23:08:28]CAPDU: 80 11 00 00 [23:08:28]Write to MH i2c: E2 08 00 7E 8E 80 11 00 00 00 00 00 00 86 [23:08:28]Write i2c OK [23:08:28]MH_I2C_Read... [23:08:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:08:28]Read from MH i2c: E2 [23:08:28]MH_I2C_Read... [23:08:28]Read from MH i2c: E2 17 00 [23:08:28]MH_I2C_Read... [23:08:28]Read from MH i2c: E2 17 00 7E 8E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 DB [23:08:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [23:08:28]wFMCommunicate OK [23:08:28]requested_item fd.num is exist - process it [23:08:28]SAM_PROTO_GetFieldsCounters [23:08:28]wFMCommunicate request_size=4 [23:08:28]MH_SAM_APDU [23:08:28]CAPDU: 80 13 00 00 [23:08:28]Write to MH i2c: E2 08 00 7F 8E 80 13 00 00 00 00 00 00 89 [23:08:28]Write i2c OK [23:08:28]MH_I2C_Read... [23:08:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:08:28]Read from MH i2c: E2 [23:08:28]MH_I2C_Read... [23:08:28]Read from MH i2c: E2 62 00 [23:08:28]MH_I2C_Read... [23:08:28]Read from MH i2c: E2 62 00 7F 8E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 69 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 48 01 00 00 5E 04 04 00 48 01 00 00 57 04 04 00 49 01 00 00 19 04 04 00 00 00 00 00 90 00 74 [23:08:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 69 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 48 01 00 00 5E 04 04 00 48 01 00 00 57 04 04 00 49 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:08:28]wFMCommunicate OK [23:08:28]SAM_PROTO_GetFieldsCounters done [23:08:28]requested_item shift.num is exist - process it [23:08:28]requested_item shift.opened is exist - process it [23:08:28]req_shift_opened [23:08:28]FM_GetShiftState [23:08:28]SAM_PROTO_GetShiftState [23:08:28]wFMCommunicate request_size=4 [23:08:28]MH_SAM_APDU [23:08:28]CAPDU: 80 13 01 00 [23:08:28]Write to MH i2c: E2 08 00 80 8E 80 13 01 00 00 00 00 00 8B [23:08:28]Write i2c OK [23:08:28]MH_I2C_Read... [23:08:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:08:28]Read from MH i2c: E2 [23:08:28]MH_I2C_Read... [23:08:28]Read from MH i2c: E2 0E 00 [23:08:28]MH_I2C_Read... [23:08:28]Read from MH i2c: E2 0E 00 80 8E 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 58 [23:08:28]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [23:08:28]wFMCommunicate OK [23:08:28]SAM_PROTO_GetShiftState done [23:08:28]FM_GetShiftState done [23:08:28]req_shift_opened done [23:08:28]requested_item shift.open_date is exist - process it [23:08:28]req_shift_open_date [23:08:28]req_shift_open_date done [23:08:28]produce_requested_data done [23:08:28]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156777,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [23:08:28]process_action_free close_receipt [23:08:28]json_value_free [23:08:28]json_value_free done [23:08:28]process_json_proto returns [23:08:28]Send response to host [23:08:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156777,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [23:08:28]free response buf [23:08:28]execute_script done [23:08:28]execute_script returns [23:08:28]free content buf [23:08:28]Sock 9.Close socket [23:08:28]Sock 9.Thread stoped [23:08:28]OFD Sender: No OFD packet to send [23:08:33]OFD Sender: No OFD packet to send [23:08:38]OFD Sender: No OFD packet to send [23:08:43]OFD Sender: No OFD packet to send [23:08:48]OFD Sender: No OFD packet to send [23:08:53]OFD Sender: No OFD packet to send [23:08:58]OFD Sender: No OFD packet to send [23:09:03]OFD Sender: No OFD packet to send [23:09:08]OFD Sender: No OFD packet to send [23:09:13]OFD Sender: No OFD packet to send [23:09:18]OFD Sender: No OFD packet to send [23:09:23]OFD Sender: No OFD packet to send [23:09:28]OFD Sender: No OFD packet to send [23:09:33]OFD Sender: No OFD packet to send [23:09:38]OFD Sender: No OFD packet to send [23:09:43]OFD Sender: No OFD packet to send [23:09:48]OFD Sender: No OFD packet to send [23:09:49]ConnectInit Can't connect to host [23:09:53]OFD Sender: No OFD packet to send [23:09:58]OFD Sender: No OFD packet to send [23:10:03]OFD Sender: No OFD packet to send [23:10:08]OFD Sender: No OFD packet to send [23:10:13]OFD Sender: No OFD packet to send [23:10:18]OFD Sender: No OFD packet to send [23:10:23]OFD Sender: No OFD packet to send [23:10:28]OFD Sender: No OFD packet to send [23:10:33]OFD Sender: No OFD packet to send [23:10:38]OFD Sender: No OFD packet to send [23:10:43]OFD Sender: No OFD packet to send [23:10:44]accept exits with 10 [23:10:44]New connection [23:10:44]New thread 3066834276 created [23:10:44]Thread 3066977636 joined [23:10:44]Waiting for new connection... [23:10:44] Sock 10.Parse request [23:10:44]Sock 10.Check first char [23:10:44]Sock 10.First char is OK [23:10:44]request: POST /json_proto HTTP/1.0 [23:10:44]Method: POST [23:10:44]URL: /json_proto [23:10:44]Method is POST - this is cgi request [23:10:44]url: /json_proto [23:10:44]query_string will be loaded in cgi processing [23:10:44]execute_cgi json_proto POST (null) [23:10:44]execute_cgi path=json_proto method=POST [23:10:44]POST find Content-Length [23:10:44]Host: 172.17.63.3:8080 [23:10:44]Content-Length: 676 [23:10:44]Content-Type: application/json [23:10:44] [23:10:44]POST finish read [23:10:44]Found Content-Length = 676 [23:10:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99592", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 9.720, "sum" : 650.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:10:44]execute_script... [23:10: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)99592", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 9.720, "sum" : 650.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:10:44]POST & json_proto [23:10:44]process_json_proto [23:10:44]json parsed OK: [23:10:44]protocol is kg_v1.0 [23:10:44]action value=close_receipt [23:10:44]process_action close_receipt [23:10:44]cmd_close_receipt [23:10:44]MH_GetDate [23:10:44]Write to MH i2c: F0 00 00 81 8E FE [23:10:44]Write i2c OK [23:10:44]MH_I2C_Read... [23:10:44]Read from MH i2c: F0 [23:10:44]MH_I2C_Read... [23:10:44]Read from MH i2c: F0 09 00 [23:10:44]MH_I2C_Read... [23:10:44]Read from MH i2c: F0 09 00 81 8E 00 7C C8 1E 67 50 D1 6C 64 C1 [23:10:44]GetLastDocTimeStamp 1730070514 [23:10:44]current date 1730070652 [23:10:44]FM_GetShiftState [23:10:44]SAM_PROTO_GetShiftState [23:10:44]wFMCommunicate request_size=4 [23:10:44]MH_SAM_APDU [23:10:44]CAPDU: 80 13 01 00 [23:10:44]Write to MH i2c: E2 08 00 82 8E 80 13 01 00 00 00 00 00 8D [23:10:44]Write i2c OK [23:10:44]MH_I2C_Read... [23:10:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:10:44]Read from MH i2c: E2 [23:10:44]MH_I2C_Read... [23:10:44]Read from MH i2c: E2 0E 00 [23:10:44]MH_I2C_Read... [23:10:44]Read from MH i2c: E2 0E 00 82 8E 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 5A [23:10:44]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [23:10:44]wFMCommunicate OK [23:10:44]SAM_PROTO_GetShiftState done [23:10:44]FM_GetShiftState done [23:10:44]opened in 1729989044 [23:10:44]opened+sec_in_day 1730075444 [23:10:44]quantity*price = 65026 [23:10:44]sum+1 = 65028 [23:10:44]Check (price>sum+1) || (price+1 о реализуемом товаре [23:10:46]line ОКРУГЛЕНИЕ: -0.27 [23:10:46]line ИТОГО: 650.00 [23:10:46]line Внесено: 650.00 [23:10:46]line СДАЧА: 0.00 [23:10:46]line НСП 1% : 5.75 [23:10:46]line НДС 12% : 69.05 [23:10:46]line Наличными: 650.00 [23:10:46]line Безнал.: 0.00 [23:10:46]line Место: АЗС № 143 "Партнер Нефть" [23:10:46]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [23:10:46]line СНО: Общий режим [23:10:46]line Чек 329 27.10.2024 23:10 [23:10:46]line Смена: 537 ФФД: 1.0 [23:10:46]line ЗНМ: 0300000096 [23:10:46]line РНМ: 0000000000091693 [23:10:46]line Версия ККМ: 001 [23:10:46]line ФМ: 0000000000871792 [23:10:46]line ФД: 156778 [23:10:46]line ФПД: 181308295033603 [23:10:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T231052&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156778&fm=181308295033603&tin=02508201610067®Number=0000000000091693&sum=65000 [23:10:46]written 0, free lines is 4095 [23:10:46]OFD Sender: Processing packet 156778 [packets to send 31, broken 30] [23:10:46]ProducePacketName [23:10:46]name=ofd_packets/00156778 [23:10:46]OFD Sender: To server: pG, [23:10:46]CommunicateWithHost lk.salyk.kg:30040 [23:10:46]ConnectInit lk.salyk.kg [23:10:46]Connected sock=11 [23:10:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 C9 94 07 01 57 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 F8 25 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 03 FE 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 01 00 00 F4 03 04 00 7C C8 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 6A 64 02 00 35 04 06 00 A4 E6 20 85 33 03 04 1F 46 87 75 1D AE 0E [23:10:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 A6 0B 47 00 0F A9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 6A 64 02 00 F4 03 04 00 EB 6D 1E 67 B6 04 01 00 00 F0 19 49 A1 BA 2C 57 51 [23:10:47]CommunicateWithHost err = 0 [23:10:47]CheckOFDResponse [23:10:47]1017 (14) - 77093643461234 [23:10:47]1041 (16) - 0000000000871792 [23:10:47]1040 (4) - 156778 [23:10:47]1012 (4) - 27.10.2024 16:44 [23:10:47]1206 (1) - 0 [23:10:47]OFD Sender: Remove packet 156778 [23:10:47]ProducePacketName [23:10:47]name=ofd_packets/00156778 [23:10:47]NVStorageDeleteData [23:10:47]Write to MH i2c: 01 00 00 C0 8E 4E [23:10:47]Write i2c OK [23:10:47]MH_I2C_Read... [23:10:47]Read from MH i2c: 01 [23:10:47]MH_I2C_Read... [23:10:47]Read from MH i2c: 01 07 00 [23:10:47]MH_I2C_Read... [23:10:47]Read from MH i2c: 01 07 00 C0 8E 00 00 00 00 00 08 0D 6A [23:10:47]RasterBufferAndPrint [23:10:47]line [23:10:47]line [23:10:47]line [23:10:47]line [23:10:47]line [23:10:47]written 0, free lines is 3354 [23:10:47]process_action close_receipt done [23:10:47]requested_data is exist [23:10:47]produce_requested_data [23:10:47]requested_item fm.sn is exist - process it [23:10:47]wFMCommunicate request_size=4 [23:10:47]MH_SAM_APDU [23:10:47]CAPDU: 80 11 00 00 [23:10:47]Write to MH i2c: E2 08 00 C7 8E 80 11 00 00 00 00 00 00 CF [23:10:47]Write i2c OK [23:10:47]MH_I2C_Read... [23:10:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:10:47]Read from MH i2c: E2 [23:10:47]MH_I2C_Read... [23:10:47]Read from MH i2c: E2 17 00 [23:10:47]MH_I2C_Read... [23:10:47]Read from MH i2c: E2 17 00 C7 8E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 24 [23:10:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [23:10:47]wFMCommunicate OK [23:10:47]requested_item fd.num is exist - process it [23:10:47]SAM_PROTO_GetFieldsCounters [23:10:47]wFMCommunicate request_size=4 [23:10:47]MH_SAM_APDU [23:10:47]CAPDU: 80 13 00 00 [23:10:47]Write to MH i2c: E2 08 00 C8 8E 80 13 00 00 00 00 00 00 D2 [23:10:47]Write i2c OK [23:10:47]MH_I2C_Read... [23:10:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:10:47]Read from MH i2c: E2 [23:10:47]MH_I2C_Read... [23:10:47]Read from MH i2c: E2 62 00 [23:10:47]MH_I2C_Read... [23:10:47]Read from MH i2c: E2 62 00 C8 8E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 6A 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 49 01 00 00 5E 04 04 00 49 01 00 00 57 04 04 00 4A 01 00 00 19 04 04 00 00 00 00 00 90 00 C1 [23:10:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 6A 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 49 01 00 00 5E 04 04 00 49 01 00 00 57 04 04 00 4A 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:10:47]wFMCommunicate OK [23:10:47]SAM_PROTO_GetFieldsCounters done [23:10:47]requested_item shift.num is exist - process it [23:10:47]requested_item shift.opened is exist - process it [23:10:47]req_shift_opened [23:10:47]FM_GetShiftState [23:10:47]SAM_PROTO_GetShiftState [23:10:47]wFMCommunicate request_size=4 [23:10:47]MH_SAM_APDU [23:10:47]CAPDU: 80 13 01 00 [23:10:47]Write to MH i2c: E2 08 00 C9 8E 80 13 01 00 00 00 00 00 D4 [23:10:47]Write i2c OK [23:10:47]MH_I2C_Read... [23:10:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:10:47]Read from MH i2c: E2 [23:10:47]MH_I2C_Read... [23:10:47]Read from MH i2c: E2 0E 00 [23:10:47]MH_I2C_Read... [23:10:47]Read from MH i2c: E2 0E 00 C9 8E 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 A1 [23:10:47]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [23:10:47]wFMCommunicate OK [23:10:47]SAM_PROTO_GetShiftState done [23:10:47]FM_GetShiftState done [23:10:47]req_shift_opened done [23:10:47]requested_item shift.open_date is exist - process it [23:10:47]req_shift_open_date [23:10:47]req_shift_open_date done [23:10:47]produce_requested_data done [23:10:47]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156778,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [23:10:47]process_action_free close_receipt [23:10:47]json_value_free [23:10:47]json_value_free done [23:10:47]process_json_proto returns [23:10:47]Send response to host [23:10:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156778,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [23:10:47]free response buf [23:10:47]execute_script done [23:10:47]execute_script returns [23:10:47]free content buf [23:10:47]Sock 10.Close socket [23:10:47]Sock 10.Thread stoped [23:10:47]OFD Sender: No OFD packet to send [23:10:52]OFD Sender: No OFD packet to send [23:10:57]OFD Sender: No OFD packet to send [23:11:02]OFD Sender: No OFD packet to send [23:11:07]OFD Sender: No OFD packet to send [23:11:12]OFD Sender: No OFD packet to send [23:11:17]OFD Sender: No OFD packet to send [23:11:22]OFD Sender: No OFD packet to send [23:11:27]OFD Sender: No OFD packet to send [23:11:32]OFD Sender: No OFD packet to send [23:11:37]OFD Sender: No OFD packet to send [23:11:42]OFD Sender: No OFD packet to send [23:11:47]OFD Sender: No OFD packet to send [23:11:52]OFD Sender: No OFD packet to send [23:11:57]OFD Sender: No OFD packet to send [23:12:02]OFD Sender: No OFD packet to send [23:12:07]OFD Sender: No OFD packet to send [23:12:12]OFD Sender: No OFD packet to send [23:12:17]OFD Sender: No OFD packet to send [23:12:22]OFD Sender: No OFD packet to send [23:12:27]OFD Sender: No OFD packet to send [23:12:32]OFD Sender: No OFD packet to send [23:12:37]OFD Sender: No OFD packet to send [23:12:42]OFD Sender: No OFD packet to send [23:12:47]OFD Sender: No OFD packet to send [23:12:52]OFD Sender: No OFD packet to send [23:12:57]OFD Sender: No OFD packet to send [23:13:02]OFD Sender: No OFD packet to send [23:13:07]OFD Sender: No OFD packet to send [23:13:12]OFD Sender: No OFD packet to send [23:13:17]OFD Sender: No OFD packet to send [23:13:22]OFD Sender: No OFD packet to send [23:13:27]OFD Sender: No OFD packet to send [23:13:32]OFD Sender: No OFD packet to send [23:13:37]OFD Sender: No OFD packet to send [23:13:42]OFD Sender: No OFD packet to send [23:13:47]OFD Sender: No OFD packet to send [23:13:52]OFD Sender: No OFD packet to send [23:13:57]OFD Sender: No OFD packet to send [23:14:02]OFD Sender: No OFD packet to send [23:14:07]OFD Sender: No OFD packet to send [23:14:12]OFD Sender: No OFD packet to send [23:14:17]OFD Sender: No OFD packet to send [23:14:22]OFD Sender: No OFD packet to send [23:14:27]OFD Sender: No OFD packet to send [23:14:32]OFD Sender: No OFD packet to send [23:14:37]OFD Sender: No OFD packet to send [23:14:42]OFD Sender: No OFD packet to send [23:14:47]OFD Sender: No OFD packet to send [23:14:52]OFD Sender: No OFD packet to send [23:14:57]OFD Sender: No OFD packet to send [23:15:02]OFD Sender: No OFD packet to send [23:15:07]OFD Sender: No OFD packet to send [23:15:12]OFD Sender: No OFD packet to send [23:15:16]ConnectInit Can't connect to host [23:15:17]OFD Sender: No OFD packet to send [23:15:22]OFD Sender: No OFD packet to send [23:15:27]OFD Sender: No OFD packet to send [23:15:32]OFD Sender: No OFD packet to send [23:15:37]OFD Sender: No OFD packet to send [23:15:42]OFD Sender: No OFD packet to send [23:15:47]OFD Sender: No OFD packet to send [23:15:52]OFD Sender: No OFD packet to send [23:15:57]OFD Sender: No OFD packet to send [23:16:02]OFD Sender: No OFD packet to send [23:16:07]OFD Sender: No OFD packet to send [23:16:12]OFD Sender: No OFD packet to send [23:16:17]OFD Sender: No OFD packet to send [23:16:22]OFD Sender: No OFD packet to send [23:16:27]OFD Sender: No OFD packet to send [23:16:32]OFD Sender: No OFD packet to send [23:16:37]OFD Sender: No OFD packet to send [23:16:42]OFD Sender: No OFD packet to send [23:16:47]OFD Sender: No OFD packet to send [23:16:52]OFD Sender: No OFD packet to send [23:16:57]OFD Sender: No OFD packet to send [23:17:02]OFD Sender: No OFD packet to send [23:17:12]OFD Sender: No OFD packet to send [23:17:14]accept exits with 9 [23:17:14]New connection [23:17:14]New thread 3066977636 created [23:17:14]Thread 3066834276 joined [23:17:14]Waiting for new connection... [23:17:14] Sock 9.Parse request [23:17:14]Sock 9.Check first char [23:17:14]Sock 9.First char is OK [23:17:14]request: POST /json_proto HTTP/1.0 [23:17:14]Method: POST [23:17:14]URL: /json_proto [23:17:14]Method is POST - this is cgi request [23:17:14]url: /json_proto [23:17:14]query_string will be loaded in cgi processing [23:17:14]execute_cgi json_proto POST (null) [23:17:14]execute_cgi path=json_proto method=POST [23:17:14]POST find Content-Length [23:17:14]Host: 172.17.63.3:8080 [23:17:14]Content-Length: 796 [23:17:14]Content-Type: application/json [23:17:14] [23:17:14]POST finish read [23:17:14]Found Content-Length = 796 [23:17:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99593", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4295941", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:17:14]execute_script... [23:17: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)99593", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4295941", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:17:14]POST & json_proto [23:17:14]process_json_proto [23:17:14]json parsed OK: [23:17:14]protocol is kg_v1.0 [23:17:14]action value=close_receipt [23:17:14]process_action close_receipt [23:17:14]cmd_close_receipt [23:17:14]MH_GetDate [23:17:14]Write to MH i2c: F0 00 00 CA 8E 47 [23:17:14]Write i2c OK [23:17:14]MH_I2C_Read... [23:17:14]Read from MH i2c: F0 [23:17:14]MH_I2C_Read... [23:17:14]Read from MH i2c: F0 09 00 [23:17:14]MH_I2C_Read... [23:17:14]Read from MH i2c: F0 09 00 CA 8E 00 02 CA 1E 67 50 D1 6C 64 92 [23:17:14]GetLastDocTimeStamp 1730070652 [23:17:14]current date 1730071042 [23:17:14]FM_GetShiftState [23:17:14]SAM_PROTO_GetShiftState [23:17:14]wFMCommunicate request_size=4 [23:17:14]MH_SAM_APDU [23:17:14]CAPDU: 80 13 01 00 [23:17:14]Write to MH i2c: E2 08 00 CB 8E 80 13 01 00 00 00 00 00 D6 [23:17:14]Write i2c OK [23:17:14]MH_I2C_Read... [23:17:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:17:14]Read from MH i2c: E2 [23:17:14]MH_I2C_Read... [23:17:14]Read from MH i2c: E2 0E 00 [23:17:14]MH_I2C_Read... [23:17:14]Read from MH i2c: E2 0E 00 CB 8E 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 A3 [23:17:14]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [23:17:14]wFMCommunicate OK [23:17:14]SAM_PROTO_GetShiftState done [23:17:14]FM_GetShiftState done [23:17:14]opened in 1729989044 [23:17:14]opened+sec_in_day 1730075444 [23:17:14]quantity*price = 0 [23:17:14]sum+1 = 1 [23:17:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 330 27.10.2024 23:17 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 Талоны: Топливные Талоны 4295941 ФМ: 0000000000871792 ФД: 156779 ФПД: 88109280840933 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T231722&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156779&fm=88109280840933&tin=02508201610067®Number=0000000000091693&sum=0 [23:17:15]StoreToDocumentArchive [23:17:15]shift 537 fd 156779 [23:17:15]save to /storage/0537/doc_00156779 [23:17:15]save last doc name /storage/0537/doc_00156779 to /storage/kkm_last_doc_name [23:17:15]save OK [23:17:15]Clear old archive folders... [23:17:15]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:17:15]tlvbuf is 01827980 [23:17:15]SAM_PROTO_ClearQueue [23:17:15]wFMCommunicate request_size=4 [23:17:15]MH_SAM_APDU [23:17:15]CAPDU: 80 09 00 00 [23:17:15]Write to MH i2c: E2 08 00 D8 8E 80 09 00 00 00 00 00 00 D8 [23:17:15]Write i2c OK [23:17:15]MH_I2C_Read... [23:17:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:17:15]Read from MH i2c: E2 [23:17:15]MH_I2C_Read... [23:17:15]Read from MH i2c: E2 03 00 [23:17:15]MH_I2C_Read... [23:17:15]Read from MH i2c: E2 03 00 D8 8E 00 90 00 DA [23:17:15]RAPDU: 90 00 [23:17:15]wFMCommunicate OK [23:17:15]SAM_PROTO_ClearQueue done [23:17:15]KKMCreateOFDPacket [23:17:15]OFDProtocolAddRootSTLVToBuf [23:17:15]FM_MakeSignedData [23:17:15]FM_MakeSignedData [23:17:15]SAM_PROTO_SignData [23:17:15]wFMCommunicate request_size=4 [23:17:15]MH_SAM_APDU [23:17:15]CAPDU: 80 0D 01 02 [23:17:15]Write to MH i2c: E2 08 00 D9 8E 80 0D 01 02 00 00 00 00 E0 [23:17:15]Write i2c OK [23:17:15]MH_I2C_Read... [23:17:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:17:15]Read from MH i2c: E2 [23:17:15]MH_I2C_Read... [23:17:15]Read from MH i2c: E2 03 00 [23:17:15]MH_I2C_Read... [23:17:15]Read from MH i2c: E2 03 00 D9 8E 00 90 00 DB [23:17:15]RAPDU: 90 00 [23:17:15]wFMCommunicate OK [23:17:15]wFMCommunicate request_size=255 [23:17:15]MH_SAM_APDU [23:17:15]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 01 00 00 F4 03 04 00 02 CA 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 6B 64 02 00 35 04 06 00 50 22 8A 62 [23:17:15]Write to MH i2c: E2 02 01 DA 8E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 01 00 00 F4 03 04 00 02 CA 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 6B 64 02 00 35 04 06 00 50 22 8A 62 00 00 5F [23:17:16]Write i2c OK [23:17:16]MH_I2C_Read... [23:17:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:17:16]Read from MH i2c: E2 [23:17:16]MH_I2C_Read... [23:17:16]Read from MH i2c: E2 03 00 [23:17:16]MH_I2C_Read... [23:17:16]Read from MH i2c: E2 03 00 DA 8E 00 90 00 DC [23:17:16]RAPDU: 90 00 [23:17:16]wFMCommunicate OK [23:17:16]wFMCommunicate request_size=7 [23:17:16]MH_SAM_APDU [23:17:16]CAPDU: 80 0D 02 02 02 CC E5 [23:17:16]Write to MH i2c: E2 0A 00 DB 8E 80 0D 02 02 02 00 CC E5 00 00 98 [23:17:16]Write i2c OK [23:17:16]MH_I2C_Read... [23:17:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:17:16]Read from MH i2c: E2 [23:17:16]MH_I2C_Read... [23:17:16]Read from MH i2c: E2 03 00 [23:17:16]MH_I2C_Read... [23:17:16]Read from MH i2c: E2 03 00 DB 8E 00 90 00 DD [23:17:16]RAPDU: 90 00 [23:17:16]wFMCommunicate OK [23:17:16]wFMCommunicate request_size=4 [23:17:16]MH_SAM_APDU [23:17:16]CAPDU: 80 0D 03 02 [23:17:16]Write to MH i2c: E2 08 00 DC 8E 80 0D 03 02 00 00 00 00 E5 [23:17:16]Write i2c OK [23:17:16]MH_I2C_Read... [23:17:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:17:16]Read from MH i2c: E2 [23:17:16]MH_I2C_Read... [23:17:16]Read from MH i2c: E2 0B 00 [23:17:16]MH_I2C_Read... [23:17:16]Read from MH i2c: E2 0B 00 DC 8E 00 D4 92 A0 DA 43 92 55 D4 90 00 C4 [23:17:16]RAPDU: D4 92 A0 DA 43 92 55 D4 90 00 [23:17:16]wFMCommunicate OK [23:17:16]SAM_PROTO_SignData done [23:17:16]FM_MakeSignedData done [23:17:16]CreateOFDProtocolMessage [23:17:16]wFMCommunicate request_size=4 [23:17:16]MH_SAM_APDU [23:17:16]CAPDU: 80 11 00 00 [23:17:16]Write to MH i2c: E2 08 00 DD 8E 80 11 00 00 00 00 00 00 E5 [23:17:16]Write i2c OK [23:17:16]MH_I2C_Read... [23:17:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:17:16]Read from MH i2c: E2 [23:17:16]MH_I2C_Read... [23:17:16]Read from MH i2c: E2 17 00 [23:17:16]MH_I2C_Read... [23:17:16]Read from MH i2c: E2 17 00 DD 8E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 3A [23:17:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [23:17:16]wFMCommunicate OK [23:17:16]CreateOFDProtocolMessage done [23:17:16]OFDSenderStorePacket 156779 [23:17:16]StoreOFDPacket docnum=156779 [23:17:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 9E A3 04 01 A7 F5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 01 00 00 F4 03 04 00 02 CA 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 6B 64 02 00 35 04 06 00 50 22 8A 62 CC E5 D4 92 A0 DA 43 92 55 D4 [23:17:16]CheckFolder [23:17:16]dirname=/storage/ofd_packets [23:17:16]CheckFolder done [23:17:16]ProducePacketName [23:17:16]name=ofd_packets/00156779 [23:17:16]NVStorageSaveData ofd_packets/00156779 [23:17:16]File name is /storage/ofd_packets/00156779 [23:17:16]Write 298 bytes [23:17:16]NVStorageSaveData done [23:17:16]OFDSenderStorePacket done [23:17:16]KKMCreateOFDPacket done [23:17:16]NVStorageSaveData kkm_last_timestamp [23:17:16]File name is /storage/kkm_last_timestamp [23:17:16]Write 4 bytes [23:17:16]NVStorageSaveData done [23:17:16]ExternCall_PrintAddStr [23:17:16]wPrintStart [23:17:16]Write to MH i2c: 01 00 00 DE 8E 6C [23:17:16]Write i2c OK [23:17:16]MH_I2C_Read... [23:17:16]Read from MH i2c: 01 [23:17:16]MH_I2C_Read... [23:17:16]Read from MH i2c: 01 07 00 [23:17:16]MH_I2C_Read... [23:17:16]Read from MH i2c: 01 07 00 DE 8E 00 00 00 00 00 FF 0F 81 [23:17:16]RasterBufferAndPrint [23:17:16]line Счет N : (1)99593 [23:17:16]line ИНН: 02508201610067 [23:17:16]line Контрольно-Кассовый Чек [23:17:16]line ПРОДАЖА [23:17:16]line ТРК (МРК, ГНК) : 32 [23:17:16]line Товар: 2710194210 [23:17:16]line ДТ-К-5 [23:17:16]line 10.000 * 0.00 [23:17:16]line = 0.00 [23:17:16]line НДС 12% НСП 1% [23:17:16]line > о реализуемом товаре [23:17:16]line ИТОГО: 0.00 [23:17:16]line НСП 1% : 0.00 [23:17:16]line НДС 12% : 0.00 [23:17:16]line Наличными: 0.00 [23:17:16]line Безнал.: 0.00 [23:17:16]line Место: АЗС № 143 "Партнер Нефть" [23:17:16]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [23:17:16]line СНО: Общий режим [23:17:16]line Чек 330 27.10.2024 23:17 [23:17:16]line Смена: 537 ФФД: 1.0 [23:17:16]line ЗНМ: 0300000096 [23:17:16]line РНМ: 0000000000091693 [23:17:16]line Версия ККМ: 001 [23:17:16]line Талоны: Топливные Талоны [23:17:16]line 4295941 [23:17:16]line ФМ: 0000000000871792 [23:17:16]line ФД: 156779 [23:17:16]line ФПД: 88109280840933 [23:17:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T231722&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156779&fm=88109280840933&tin=02508201610067®Number=0000000000091693&sum=0 [23:17:16]OFD Sender: Processing packet 156779 [packets to send 31, broken 30] [23:17:16]ProducePacketName [23:17:16]name=ofd_packets/00156779 [23:17:16]OFD Sender: To server: pG, [23:17:16]CommunicateWithHost lk.salyk.kg:30040 [23:17:16]ConnectInit lk.salyk.kg [23:17:16]written 0, free lines is 4095 [23:17:16]Connected sock=11 [23:17:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0C 01 00 00 9E A3 04 01 A7 F5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 01 00 00 F4 03 04 00 02 CA 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 6B 64 02 00 35 04 06 00 50 22 8A 62 CC E5 D4 92 A0 DA 43 92 55 D4 [23:17:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 50 FE 47 00 E4 4B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 6B 64 02 00 F4 03 04 00 71 6F 1E 67 B6 04 01 00 00 4D 00 7F 2B F9 6B 1B B5 [23:17:17]CommunicateWithHost err = 0 [23:17:17]CheckOFDResponse [23:17:17]1017 (14) - 77093643461234 [23:17:17]1041 (16) - 0000000000871792 [23:17:17]1040 (4) - 156779 [23:17:17]1012 (4) - 27.10.2024 16:50 [23:17:17]1206 (1) - 0 [23:17:17]OFD Sender: Remove packet 156779 [23:17:17]ProducePacketName [23:17:17]name=ofd_packets/00156779 [23:17:17]NVStorageDeleteData [23:17:17]Write to MH i2c: 01 00 00 08 8F 97 [23:17:17]Write i2c OK [23:17:17]MH_I2C_Read... [23:17:17]Read from MH i2c: 01 [23:17:17]MH_I2C_Read... [23:17:17]Read from MH i2c: 01 07 00 [23:17:17]MH_I2C_Read... [23:17:17]Read from MH i2c: 01 07 00 08 8F 00 00 00 00 00 FD 0C A7 [23:17:17]RasterBufferAndPrint [23:17:17]line [23:17:17]line [23:17:17]line [23:17:17]line [23:17:17]line [23:17:17]written 0, free lines is 3334 [23:17:17]process_action close_receipt done [23:17:17]requested_data is exist [23:17:17]produce_requested_data [23:17:17]requested_item fm.sn is exist - process it [23:17:17]wFMCommunicate request_size=4 [23:17:17]MH_SAM_APDU [23:17:17]CAPDU: 80 11 00 00 [23:17:17]Write to MH i2c: E2 08 00 0F 8F 80 11 00 00 00 00 00 00 18 [23:17:17]Write i2c OK [23:17:17]MH_I2C_Read... [23:17:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:17:17]Read from MH i2c: E2 [23:17:17]MH_I2C_Read... [23:17:17]Read from MH i2c: E2 17 00 [23:17:17]MH_I2C_Read... [23:17:17]Read from MH i2c: E2 17 00 0F 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 6D [23:17:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [23:17:17]wFMCommunicate OK [23:17:17]requested_item fd.num is exist - process it [23:17:17]SAM_PROTO_GetFieldsCounters [23:17:17]wFMCommunicate request_size=4 [23:17:17]MH_SAM_APDU [23:17:17]CAPDU: 80 13 00 00 [23:17:17]Write to MH i2c: E2 08 00 10 8F 80 13 00 00 00 00 00 00 1B [23:17:17]Write i2c OK [23:17:17]MH_I2C_Read... [23:17:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:17:17]Read from MH i2c: E2 [23:17:17]MH_I2C_Read... [23:17:17]Read from MH i2c: E2 62 00 [23:17:17]MH_I2C_Read... [23:17:17]Read from MH i2c: E2 62 00 10 8F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 6B 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 4A 01 00 00 5E 04 04 00 4A 01 00 00 57 04 04 00 4B 01 00 00 19 04 04 00 00 00 00 00 90 00 0E [23:17:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 6B 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 4A 01 00 00 5E 04 04 00 4A 01 00 00 57 04 04 00 4B 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:17:17]wFMCommunicate OK [23:17:17]SAM_PROTO_GetFieldsCounters done [23:17:17]requested_item shift.num is exist - process it [23:17:17]requested_item shift.opened is exist - process it [23:17:17]req_shift_opened [23:17:17]FM_GetShiftState [23:17:17]SAM_PROTO_GetShiftState [23:17:17]wFMCommunicate request_size=4 [23:17:17]MH_SAM_APDU [23:17:17]CAPDU: 80 13 01 00 [23:17:17]Write to MH i2c: E2 08 00 11 8F 80 13 01 00 00 00 00 00 1D [23:17:17]Write i2c OK [23:17:17]MH_I2C_Read... [23:17:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:17:17]Read from MH i2c: E2 [23:17:17]MH_I2C_Read... [23:17:17]Read from MH i2c: E2 0E 00 [23:17:17]MH_I2C_Read... [23:17:17]Read from MH i2c: E2 0E 00 11 8F 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 EA [23:17:17]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [23:17:17]wFMCommunicate OK [23:17:17]SAM_PROTO_GetShiftState done [23:17:17]FM_GetShiftState done [23:17:17]req_shift_opened done [23:17:17]requested_item shift.open_date is exist - process it [23:17:17]req_shift_open_date [23:17:17]req_shift_open_date done [23:17:17]produce_requested_data done [23:17:17]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156779,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [23:17:17]process_action_free close_receipt [23:17:17]json_value_free [23:17:17]json_value_free done [23:17:17]process_json_proto returns [23:17:17]Send response to host [23:17:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156779,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [23:17:17]free response buf [23:17:17]execute_script done [23:17:17]execute_script returns [23:17:17]free content buf [23:17:17]Sock 9.Close socket [23:17:17]Sock 9.Thread stoped [23:17:17]OFD Sender: No OFD packet to send [23:17:22]OFD Sender: No OFD packet to send [23:17:27]OFD Sender: No OFD packet to send [23:17:32]OFD Sender: No OFD packet to send [23:17:37]OFD Sender: No OFD packet to send [23:17:42]OFD Sender: No OFD packet to send [23:17:47]OFD Sender: No OFD packet to send [23:17:52]OFD Sender: No OFD packet to send [23:17:57]OFD Sender: No OFD packet to send [23:18:02]OFD Sender: No OFD packet to send [23:18:07]OFD Sender: No OFD packet to send [23:18:12]OFD Sender: No OFD packet to send [23:18:17]OFD Sender: No OFD packet to send [23:18:22]OFD Sender: No OFD packet to send [23:18:27]OFD Sender: No OFD packet to send [23:18:32]OFD Sender: No OFD packet to send [23:18:37]OFD Sender: No OFD packet to send [23:18:42]OFD Sender: No OFD packet to send [23:18:47]OFD Sender: No OFD packet to send [23:18:52]OFD Sender: No OFD packet to send [23:18:57]OFD Sender: No OFD packet to send [23:19:02]OFD Sender: No OFD packet to send [23:19:07]OFD Sender: No OFD packet to send [23:19:12]OFD Sender: No OFD packet to send [23:19:17]OFD Sender: No OFD packet to send [23:19:22]OFD Sender: No OFD packet to send [23:19:22]ConnectInit Can't connect to host [23:19:27]OFD Sender: No OFD packet to send [23:19:32]OFD Sender: No OFD packet to send [23:19:37]OFD Sender: No OFD packet to send [23:19:42]OFD Sender: No OFD packet to send [23:19:47]OFD Sender: No OFD packet to send [23:19:52]OFD Sender: No OFD packet to send [23:19:57]OFD Sender: No OFD packet to send [23:20:02]OFD Sender: No OFD packet to send [23:20:07]OFD Sender: No OFD packet to send [23:20:12]OFD Sender: No OFD packet to send [23:20:17]OFD Sender: No OFD packet to send [23:20:22]OFD Sender: No OFD packet to send [23:20:27]OFD Sender: No OFD packet to send [23:20:32]OFD Sender: No OFD packet to send [23:20:37]OFD Sender: No OFD packet to send [23:20:42]OFD Sender: No OFD packet to send [23:20:47]OFD Sender: No OFD packet to send [23:20:52]OFD Sender: No OFD packet to send [23:20:57]OFD Sender: No OFD packet to send [23:21:02]OFD Sender: No OFD packet to send [23:21:07]OFD Sender: No OFD packet to send [23:21:12]OFD Sender: No OFD packet to send [23:21:17]OFD Sender: No OFD packet to send [23:21:22]OFD Sender: No OFD packet to send [23:21:27]OFD Sender: No OFD packet to send [23:21:32]OFD Sender: No OFD packet to send [23:21:37]OFD Sender: No OFD packet to send [23:21:42]OFD Sender: No OFD packet to send [23:21:47]OFD Sender: No OFD packet to send [23:21:52]OFD Sender: No OFD packet to send [23:21:57]OFD Sender: No OFD packet to send [23:22:02]OFD Sender: No OFD packet to send [23:22:07]OFD Sender: No OFD packet to send [23:22:12]OFD Sender: No OFD packet to send [23:22:17]OFD Sender: No OFD packet to send [23:22:22]OFD Sender: No OFD packet to send [23:22:27]OFD Sender: No OFD packet to send [23:22:32]OFD Sender: No OFD packet to send [23:22:37]OFD Sender: No OFD packet to send [23:22:42]OFD Sender: No OFD packet to send [23:22:47]OFD Sender: No OFD packet to send [23:22:52]OFD Sender: No OFD packet to send [23:22:57]OFD Sender: No OFD packet to send [23:23:02]OFD Sender: No OFD packet to send [23:23:07]OFD Sender: No OFD packet to send [23:23:12]OFD Sender: No OFD packet to send [23:23:17]OFD Sender: No OFD packet to send [23:23:22]OFD Sender: No OFD packet to send [23:23:27]OFD Sender: No OFD packet to send [23:23:32]OFD Sender: No OFD packet to send [23:23:37]OFD Sender: No OFD packet to send [23:23:42]OFD Sender: No OFD packet to send [23:23:47]OFD Sender: No OFD packet to send [23:23:52]OFD Sender: No OFD packet to send [23:23:57]OFD Sender: No OFD packet to send [23:24:02]OFD Sender: No OFD packet to send [23:24:07]OFD Sender: No OFD packet to send [23:24:12]OFD Sender: No OFD packet to send [23:24:17]OFD Sender: No OFD packet to send [23:24:22]OFD Sender: No OFD packet to send [23:24:27]OFD Sender: No OFD packet to send [23:24:32]OFD Sender: No OFD packet to send [23:24:37]OFD Sender: No OFD packet to send [23:24:42]OFD Sender: No OFD packet to send [23:24:47]OFD Sender: No OFD packet to send [23:24:52]OFD Sender: No OFD packet to send [23:24:57]OFD Sender: No OFD packet to send [23:25:02]OFD Sender: No OFD packet to send [23:25:07]OFD Sender: No OFD packet to send [23:25:12]OFD Sender: No OFD packet to send [23:25:17]OFD Sender: No OFD packet to send [23:25:22]OFD Sender: No OFD packet to send [23:25:28]OFD Sender: No OFD packet to send [23:25:33]OFD Sender: No OFD packet to send [23:25:38]OFD Sender: No OFD packet to send [23:25:43]OFD Sender: No OFD packet to send [23:25:48]OFD Sender: No OFD packet to send [23:25:53]OFD Sender: No OFD packet to send [23:25:58]OFD Sender: No OFD packet to send [23:26:03]OFD Sender: No OFD packet to send [23:26:08]OFD Sender: No OFD packet to send [23:26:13]OFD Sender: No OFD packet to send [23:26:18]OFD Sender: No OFD packet to send [23:26:23]OFD Sender: No OFD packet to send [23:26:28]OFD Sender: No OFD packet to send [23:26:33]OFD Sender: No OFD packet to send [23:26:38]OFD Sender: No OFD packet to send [23:26:43]OFD Sender: No OFD packet to send [23:26:48]OFD Sender: No OFD packet to send [23:26:53]OFD Sender: No OFD packet to send [23:26:58]OFD Sender: No OFD packet to send [23:27:03]OFD Sender: No OFD packet to send [23:27:08]OFD Sender: No OFD packet to send [23:27:13]OFD Sender: No OFD packet to send [23:27:18]OFD Sender: No OFD packet to send [23:27:23]OFD Sender: No OFD packet to send [23:27:28]OFD Sender: No OFD packet to send [23:27:33]OFD Sender: No OFD packet to send [23:27:38]OFD Sender: No OFD packet to send [23:27:43]OFD Sender: No OFD packet to send [23:27:48]OFD Sender: No OFD packet to send [23:27:53]OFD Sender: No OFD packet to send [23:27:58]OFD Sender: No OFD packet to send [23:28:03]OFD Sender: No OFD packet to send [23:28:08]OFD Sender: No OFD packet to send [23:28:13]OFD Sender: No OFD packet to send [23:28:18]OFD Sender: No OFD packet to send [23:28:23]OFD Sender: No OFD packet to send [23:28:28]OFD Sender: No OFD packet to send [23:28:33]OFD Sender: No OFD packet to send [23:28:38]OFD Sender: No OFD packet to send [23:28:43]OFD Sender: No OFD packet to send [23:28:48]OFD Sender: No OFD packet to send [23:28:53]OFD Sender: No OFD packet to send [23:28:58]OFD Sender: No OFD packet to send [23:29:03]OFD Sender: No OFD packet to send [23:29:08]OFD Sender: No OFD packet to send [23:29:13]OFD Sender: No OFD packet to send [23:29:18]OFD Sender: No OFD packet to send [23:29:23]OFD Sender: No OFD packet to send [23:29:28]OFD Sender: No OFD packet to send [23:29:33]OFD Sender: No OFD packet to send [23:29:38]OFD Sender: No OFD packet to send [23:29:43]OFD Sender: No OFD packet to send [23:29:48]OFD Sender: No OFD packet to send [23:29:53]OFD Sender: No OFD packet to send [23:29:58]OFD Sender: No OFD packet to send [23:30:03]OFD Sender: No OFD packet to send [23:30:08]OFD Sender: No OFD packet to send [23:30:13]OFD Sender: No OFD packet to send [23:30:18]OFD Sender: No OFD packet to send [23:30:23]OFD Sender: No OFD packet to send [23:30:28]OFD Sender: No OFD packet to send [23:30:33]OFD Sender: No OFD packet to send [23:30:38]OFD Sender: No OFD packet to send [23:30:43]OFD Sender: No OFD packet to send [23:30:48]OFD Sender: No OFD packet to send [23:30:53]OFD Sender: No OFD packet to send [23:30:58]OFD Sender: No OFD packet to send [23:31:03]OFD Sender: No OFD packet to send [23:31:08]OFD Sender: No OFD packet to send [23:31:13]OFD Sender: No OFD packet to send [23:31:18]OFD Sender: No OFD packet to send [23:31:23]OFD Sender: No OFD packet to send [23:31:28]OFD Sender: No OFD packet to send [23:31:33]OFD Sender: No OFD packet to send [23:31:38]OFD Sender: No OFD packet to send [23:31:43]OFD Sender: No OFD packet to send [23:31:48]OFD Sender: No OFD packet to send [23:31:53]OFD Sender: No OFD packet to send [23:31:58]OFD Sender: No OFD packet to send [23:32:03]OFD Sender: No OFD packet to send [23:32:08]OFD Sender: No OFD packet to send [23:32:13]OFD Sender: No OFD packet to send [23:32:18]OFD Sender: No OFD packet to send [23:32:23]OFD Sender: No OFD packet to send [23:32:28]OFD Sender: No OFD packet to send [23:32:33]OFD Sender: No OFD packet to send [23:32:38]OFD Sender: No OFD packet to send [23:32:43]OFD Sender: No OFD packet to send [23:32:48]OFD Sender: No OFD packet to send [23:32:53]OFD Sender: No OFD packet to send [23:32:58]OFD Sender: No OFD packet to send [23:33:03]OFD Sender: No OFD packet to send [23:33:08]OFD Sender: No OFD packet to send [23:33:13]OFD Sender: No OFD packet to send [23:33:18]OFD Sender: No OFD packet to send [23:33:23]OFD Sender: No OFD packet to send [23:33:28]OFD Sender: No OFD packet to send [23:33:33]OFD Sender: No OFD packet to send [23:33:38]OFD Sender: No OFD packet to send [23:33:43]OFD Sender: No OFD packet to send [23:33:48]OFD Sender: No OFD packet to send [23:33:53]OFD Sender: No OFD packet to send [23:33:58]OFD Sender: No OFD packet to send [23:34:03]OFD Sender: No OFD packet to send [23:34:08]OFD Sender: No OFD packet to send [23:34:13]OFD Sender: No OFD packet to send [23:34:18]OFD Sender: No OFD packet to send [23:34:23]OFD Sender: No OFD packet to send [23:34:25]accept exits with 10 [23:34:25]New connection [23:34:25]New thread 3066834276 created [23:34:25]Thread 3066977636 joined [23:34:25]Waiting for new connection... [23:34:25] Sock 10.Parse request [23:34:25]Sock 10.Check first char [23:34:25]Sock 10.First char is OK [23:34:25]request: POST /json_proto HTTP/1.0 [23:34:25]Method: POST [23:34:25]URL: /json_proto [23:34:25]Method is POST - this is cgi request [23:34:25]url: /json_proto [23:34:25]query_string will be loaded in cgi processing [23:34:25]execute_cgi json_proto POST (null) [23:34:25]execute_cgi path=json_proto method=POST [23:34:25]POST find Content-Length [23:34:25]Host: 172.17.63.3:8080 [23:34:25]Content-Length: 676 [23:34:25]Content-Type: application/json [23:34:25] [23:34:25]POST finish read [23:34:25]Found Content-Length = 676 [23:34:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99594", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:34:25]execute_script... [23:34: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)99594", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:34:25]POST & json_proto [23:34:25]process_json_proto [23:34:25]json parsed OK: [23:34:25]protocol is kg_v1.0 [23:34:25]action value=close_receipt [23:34:25]process_action close_receipt [23:34:25]cmd_close_receipt [23:34:25]MH_GetDate [23:34:25]Write to MH i2c: F0 00 00 12 8F 90 [23:34:25]Write i2c OK [23:34:25]MH_I2C_Read... [23:34:25]Read from MH i2c: F0 [23:34:25]MH_I2C_Read... [23:34:25]Read from MH i2c: F0 09 00 [23:34:25]MH_I2C_Read... [23:34:25]Read from MH i2c: F0 09 00 12 8F 00 09 CE 1E 67 50 D1 6C 64 E6 [23:34:25]GetLastDocTimeStamp 1730071042 [23:34:25]current date 1730072073 [23:34:25]FM_GetShiftState [23:34:25]SAM_PROTO_GetShiftState [23:34:25]wFMCommunicate request_size=4 [23:34:25]MH_SAM_APDU [23:34:25]CAPDU: 80 13 01 00 [23:34:25]Write to MH i2c: E2 08 00 13 8F 80 13 01 00 00 00 00 00 1F [23:34:25]Write i2c OK [23:34:25]MH_I2C_Read... [23:34:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:34:25]Read from MH i2c: E2 [23:34:25]MH_I2C_Read... [23:34:25]Read from MH i2c: E2 0E 00 [23:34:25]MH_I2C_Read... [23:34:25]Read from MH i2c: E2 0E 00 13 8F 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 EC [23:34:25]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [23:34:25]wFMCommunicate OK [23:34:25]SAM_PROTO_GetShiftState done [23:34:25]FM_GetShiftState done [23:34:25]opened in 1729989044 [23:34:25]opened+sec_in_day 1730075444 [23:34:25]quantity*price = 50041 [23:34:25]sum+1 = 50042 [23:34:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 331 27.10.2024 23:34 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156780 ФПД: 207039083506528 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T233433&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156780&fm=207039083506528&tin=02508201610067®Number=0000000000091693&sum=50000 [23:34:26]StoreToDocumentArchive [23:34:26]shift 537 fd 156780 [23:34:26]save to /storage/0537/doc_00156780 [23:34:26]save last doc name /storage/0537/doc_00156780 to /storage/kkm_last_doc_name [23:34:26]save OK [23:34:26]Clear old archive folders... [23:34:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:34:26]tlvbuf is 018F00C0 [23:34:26]SAM_PROTO_ClearQueue [23:34:26]wFMCommunicate request_size=4 [23:34:26]MH_SAM_APDU [23:34:26]CAPDU: 80 09 00 00 [23:34:26]Write to MH i2c: E2 08 00 20 8F 80 09 00 00 00 00 00 00 21 [23:34:26]Write i2c OK [23:34:26]MH_I2C_Read... [23:34:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:34:26]Read from MH i2c: E2 [23:34:26]MH_I2C_Read... [23:34:26]Read from MH i2c: E2 03 00 [23:34:26]MH_I2C_Read... [23:34:26]Read from MH i2c: E2 03 00 20 8F 00 90 00 23 [23:34:26]RAPDU: 90 00 [23:34:26]wFMCommunicate OK [23:34:26]SAM_PROTO_ClearQueue done [23:34:26]KKMCreateOFDPacket [23:34:26]OFDProtocolAddRootSTLVToBuf [23:34:26]FM_MakeSignedData [23:34:26]FM_MakeSignedData [23:34:26]SAM_PROTO_SignData [23:34:26]wFMCommunicate request_size=4 [23:34:26]MH_SAM_APDU [23:34:26]CAPDU: 80 0D 01 02 [23:34:26]Write to MH i2c: E2 08 00 21 8F 80 0D 01 02 00 00 00 00 29 [23:34:26]Write i2c OK [23:34:26]MH_I2C_Read... [23:34:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:34:26]Read from MH i2c: E2 [23:34:26]MH_I2C_Read... [23:34:26]Read from MH i2c: E2 03 00 [23:34:26]MH_I2C_Read... [23:34:26]Read from MH i2c: E2 03 00 21 8F 00 90 00 24 [23:34:26]RAPDU: 90 00 [23:34:26]wFMCommunicate OK [23:34:26]wFMCommunicate request_size=255 [23:34:26]MH_SAM_APDU [23:34: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 01 00 00 F4 03 04 00 09 CE 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 6C 64 02 00 35 04 06 00 BC [23:34:26]Write to MH i2c: E2 02 01 22 8F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 01 00 00 F4 03 04 00 09 CE 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 6C 64 02 00 35 04 06 00 BC 00 00 0E [23:34:26]Write i2c OK [23:34:26]MH_I2C_Read... [23:34:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:34:26]Read from MH i2c: E2 [23:34:26]MH_I2C_Read... [23:34:26]Read from MH i2c: E2 03 00 [23:34:26]MH_I2C_Read... [23:34:26]Read from MH i2c: E2 03 00 22 8F 00 90 00 25 [23:34:26]RAPDU: 90 00 [23:34:26]wFMCommunicate OK [23:34:26]wFMCommunicate request_size=10 [23:34:26]MH_SAM_APDU [23:34:26]CAPDU: 80 0D 02 02 05 4D 0B 06 EB 60 [23:34:26]Write to MH i2c: E2 0D 00 23 8F 80 0D 02 02 05 00 4D 0B 06 EB 60 00 00 DF [23:34:26]Write i2c OK [23:34:26]MH_I2C_Read... [23:34:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:34:26]Read from MH i2c: E2 [23:34:26]MH_I2C_Read... [23:34:26]Read from MH i2c: E2 03 00 [23:34:26]MH_I2C_Read... [23:34:26]Read from MH i2c: E2 03 00 23 8F 00 90 00 26 [23:34:26]RAPDU: 90 00 [23:34:26]wFMCommunicate OK [23:34:26]wFMCommunicate request_size=4 [23:34:26]MH_SAM_APDU [23:34:26]CAPDU: 80 0D 03 02 [23:34:26]Write to MH i2c: E2 08 00 24 8F 80 0D 03 02 00 00 00 00 2E [23:34:26]Write i2c OK [23:34:26]MH_I2C_Read... [23:34:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:34:26]Read from MH i2c: E2 [23:34:26]MH_I2C_Read... [23:34:26]Read from MH i2c: E2 0B 00 [23:34:26]MH_I2C_Read... [23:34:26]Read from MH i2c: E2 0B 00 24 8F 00 99 D0 F2 B8 5F 85 1B C1 90 00 02 [23:34:26]RAPDU: 99 D0 F2 B8 5F 85 1B C1 90 00 [23:34:26]wFMCommunicate OK [23:34:26]SAM_PROTO_SignData done [23:34:26]FM_MakeSignedData done [23:34:26]CreateOFDProtocolMessage [23:34:26]wFMCommunicate request_size=4 [23:34:26]MH_SAM_APDU [23:34:26]CAPDU: 80 11 00 00 [23:34:26]Write to MH i2c: E2 08 00 25 8F 80 11 00 00 00 00 00 00 2E [23:34:26]Write i2c OK [23:34:26]MH_I2C_Read... [23:34:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:34:27]Read from MH i2c: E2 [23:34:27]MH_I2C_Read... [23:34:27]Read from MH i2c: E2 17 00 [23:34:27]MH_I2C_Read... [23:34:27]Read from MH i2c: E2 17 00 25 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 83 [23:34:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [23:34:27]wFMCommunicate OK [23:34:27]CreateOFDProtocolMessage done [23:34:27]OFDSenderStorePacket 156780 [23:34:27]StoreOFDPacket docnum=156780 [23:34:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 0E 4B 07 01 66 72 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 01 00 00 F4 03 04 00 09 CE 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 6C 64 02 00 35 04 06 00 BC 4D 0B 06 EB 60 99 D0 F2 B8 5F 85 1B C1 [23:34:27]CheckFolder [23:34:27]dirname=/storage/ofd_packets [23:34:27]CheckFolder done [23:34:27]ProducePacketName [23:34:27]name=ofd_packets/00156780 [23:34:27]NVStorageSaveData ofd_packets/00156780 [23:34:27]File name is /storage/ofd_packets/00156780 [23:34:27]Write 301 bytes [23:34:27]NVStorageSaveData done [23:34:27]OFDSenderStorePacket done [23:34:27]KKMCreateOFDPacket done [23:34:27]NVStorageSaveData kkm_last_timestamp [23:34:27]File name is /storage/kkm_last_timestamp [23:34:27]Write 4 bytes [23:34:27]NVStorageSaveData done [23:34:27]ExternCall_PrintAddStr [23:34:27]wPrintStart [23:34:27]Write to MH i2c: 01 00 00 26 8F B5 [23:34:27]Write i2c OK [23:34:27]MH_I2C_Read... [23:34:27]Read from MH i2c: 01 [23:34:27]MH_I2C_Read... [23:34:27]Read from MH i2c: 01 07 00 [23:34:27]MH_I2C_Read... [23:34:27]Read from MH i2c: 01 07 00 26 8F 00 00 00 00 00 FF 0F CA [23:34:27]RasterBufferAndPrint [23:34:27]line Счет N : (1)99594 [23:34:27]line ИНН: 02508201610067 [23:34:27]line Контрольно-Кассовый Чек [23:34:27]line ПРОДАЖА [23:34:27]line ТРК (МРК, ГНК) : 31 [23:34:27]line Товар: 2710124130 [23:34:27]line Аи-92-К-5 [23:34:27]line 7.480 * 66.90 [23:34:27]line = 500.41 [23:34:27]line НДС 12% НСП 1% [23:34:27]line > о реализуемом товаре [23:34:27]line ОКРУГЛЕНИЕ: -0.41 [23:34:27]line ИТОГО: 500.00 [23:34:27]line Внесено: 500.00 [23:34:27]line СДАЧА: 0.00 [23:34:27]line НСП 1% : 4.43 [23:34:27]line НДС 12% : 53.14 [23:34:27]line Наличными: 500.00 [23:34:27]line Безнал.: 0.00 [23:34:27]line Место: АЗС № 143 "Партнер Нефть" [23:34:27]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [23:34:27]line СНО: Общий режим [23:34:27]line Чек 331 27.10.2024 23:34 [23:34:27]line Смена: 537 ФФД: 1.0 [23:34:27]line ЗНМ: 0300000096 [23:34:27]line РНМ: 0000000000091693 [23:34:27]line Версия ККМ: 001 [23:34:27]line ФМ: 0000000000871792 [23:34:27]line ФД: 156780 [23:34:27]line ФПД: 207039083506528 [23:34:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T233433&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156780&fm=207039083506528&tin=02508201610067®Number=0000000000091693&sum=50000 [23:34:27]OFD Sender: Processing packet 156780 [packets to send 31, broken 30] [23:34:27]ProducePacketName [23:34:27]name=ofd_packets/00156780 [23:34:27]OFD Sender: To server: pG, [23:34:27]CommunicateWithHost lk.salyk.kg:30040 [23:34:27]ConnectInit lk.salyk.kg [23:34:27]written 0, free lines is 4095 [23:34:27]Connected sock=9 [23:34:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 0E 4B 07 01 66 72 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 01 00 00 F4 03 04 00 09 CE 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 6C 64 02 00 35 04 06 00 BC 4D 0B 06 EB 60 99 D0 F2 B8 5F 85 1B C1 [23:34:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 DD 98 47 00 0F A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 6C 64 02 00 F4 03 04 00 77 73 1E 67 B6 04 01 00 00 CE 0D EB 0D E4 C5 1E 6C [23:34:27]CommunicateWithHost err = 0 [23:34:27]CheckOFDResponse [23:34:27]1017 (14) - 77093643461234 [23:34:27]1041 (16) - 0000000000871792 [23:34:27]1040 (4) - 156780 [23:34:27]1012 (4) - 27.10.2024 17:08 [23:34:27]1206 (1) - 0 [23:34:27]OFD Sender: Remove packet 156780 [23:34:27]ProducePacketName [23:34:27]name=ofd_packets/00156780 [23:34:27]NVStorageDeleteData [23:34:27]Write to MH i2c: 01 00 00 51 8F E0 [23:34:27]Write i2c OK [23:34:27]MH_I2C_Read... [23:34:27]Read from MH i2c: 01 [23:34:27]MH_I2C_Read... [23:34:27]Read from MH i2c: 01 07 00 [23:34:27]MH_I2C_Read... [23:34:27]Read from MH i2c: 01 07 00 51 8F 00 00 00 00 00 E4 0C D7 [23:34:27]RasterBufferAndPrint [23:34:27]line [23:34:27]line [23:34:27]line [23:34:27]line [23:34:27]line [23:34:27]written 0, free lines is 3309 [23:34:27]process_action close_receipt done [23:34:27]requested_data is exist [23:34:27]produce_requested_data [23:34:27]requested_item fm.sn is exist - process it [23:34:27]wFMCommunicate request_size=4 [23:34:27]MH_SAM_APDU [23:34:27]CAPDU: 80 11 00 00 [23:34:27]Write to MH i2c: E2 08 00 58 8F 80 11 00 00 00 00 00 00 61 [23:34:27]Write i2c OK [23:34:27]MH_I2C_Read... [23:34:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:34:27]Read from MH i2c: E2 [23:34:27]MH_I2C_Read... [23:34:27]Read from MH i2c: E2 17 00 [23:34:27]MH_I2C_Read... [23:34:27]Read from MH i2c: E2 17 00 58 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 B6 [23:34:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [23:34:27]wFMCommunicate OK [23:34:27]requested_item fd.num is exist - process it [23:34:27]SAM_PROTO_GetFieldsCounters [23:34:27]wFMCommunicate request_size=4 [23:34:27]MH_SAM_APDU [23:34:27]CAPDU: 80 13 00 00 [23:34:27]Write to MH i2c: E2 08 00 59 8F 80 13 00 00 00 00 00 00 64 [23:34:27]Write i2c OK [23:34:27]MH_I2C_Read... [23:34:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:34:28]Read from MH i2c: E2 [23:34:28]MH_I2C_Read... [23:34:28]Read from MH i2c: E2 62 00 [23:34:28]MH_I2C_Read... [23:34:28]Read from MH i2c: E2 62 00 59 8F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 6C 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 4B 01 00 00 5E 04 04 00 4B 01 00 00 57 04 04 00 4C 01 00 00 19 04 04 00 00 00 00 00 90 00 5B [23:34:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 6C 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 4B 01 00 00 5E 04 04 00 4B 01 00 00 57 04 04 00 4C 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:34:28]wFMCommunicate OK [23:34:28]SAM_PROTO_GetFieldsCounters done [23:34:28]requested_item shift.num is exist - process it [23:34:28]requested_item shift.opened is exist - process it [23:34:28]req_shift_opened [23:34:28]FM_GetShiftState [23:34:28]SAM_PROTO_GetShiftState [23:34:28]wFMCommunicate request_size=4 [23:34:28]MH_SAM_APDU [23:34:28]CAPDU: 80 13 01 00 [23:34:28]Write to MH i2c: E2 08 00 5A 8F 80 13 01 00 00 00 00 00 66 [23:34:28]Write i2c OK [23:34:28]MH_I2C_Read... [23:34:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:34:28]Read from MH i2c: E2 [23:34:28]MH_I2C_Read... [23:34:28]Read from MH i2c: E2 0E 00 [23:34:28]MH_I2C_Read... [23:34:28]Read from MH i2c: E2 0E 00 5A 8F 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 33 [23:34:28]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [23:34:28]wFMCommunicate OK [23:34:28]SAM_PROTO_GetShiftState done [23:34:28]FM_GetShiftState done [23:34:28]req_shift_opened done [23:34:28]requested_item shift.open_date is exist - process it [23:34:28]req_shift_open_date [23:34:28]req_shift_open_date done [23:34:28]produce_requested_data done [23:34:28]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156780,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [23:34:28]process_action_free close_receipt [23:34:28]json_value_free [23:34:28]json_value_free done [23:34:28]process_json_proto returns [23:34:28]Send response to host [23:34:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156780,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [23:34:28]free response buf [23:34:28]execute_script done [23:34:28]execute_script returns [23:34:28]free content buf [23:34:28]Sock 10.Close socket [23:34:28]Sock 10.Thread stoped [23:34:28]OFD Sender: No OFD packet to send [23:34:33]OFD Sender: No OFD packet to send [23:34:38]OFD Sender: No OFD packet to send [23:34:43]OFD Sender: No OFD packet to send [23:34:48]OFD Sender: No OFD packet to send [23:34:53]OFD Sender: No OFD packet to send [23:34:58]OFD Sender: No OFD packet to send [23:35:03]OFD Sender: No OFD packet to send [23:35:08]OFD Sender: No OFD packet to send [23:35:13]OFD Sender: No OFD packet to send [23:35:18]OFD Sender: No OFD packet to send [23:35:23]OFD Sender: No OFD packet to send [23:35:28]OFD Sender: No OFD packet to send [23:35:33]OFD Sender: No OFD packet to send [23:35:38]OFD Sender: No OFD packet to send [23:35:43]OFD Sender: No OFD packet to send [23:35:48]OFD Sender: No OFD packet to send [23:35:53]OFD Sender: No OFD packet to send [23:35:58]OFD Sender: No OFD packet to send [23:36:03]OFD Sender: No OFD packet to send [23:36:08]OFD Sender: No OFD packet to send [23:36:13]OFD Sender: No OFD packet to send [23:36:18]OFD Sender: No OFD packet to send [23:36:23]OFD Sender: No OFD packet to send [23:36:28]OFD Sender: No OFD packet to send [23:36:33]OFD Sender: No OFD packet to send [23:36:38]OFD Sender: No OFD packet to send [23:36:43]OFD Sender: No OFD packet to send [23:36:48]OFD Sender: No OFD packet to send [23:36:53]OFD Sender: No OFD packet to send [23:36:58]OFD Sender: No OFD packet to send [23:37:03]OFD Sender: No OFD packet to send [23:37:08]OFD Sender: No OFD packet to send [23:37:13]OFD Sender: No OFD packet to send [23:37:18]OFD Sender: No OFD packet to send [23:37:23]OFD Sender: No OFD packet to send [23:37:28]OFD Sender: No OFD packet to send [23:37:33]OFD Sender: No OFD packet to send [23:37:38]OFD Sender: No OFD packet to send [23:37:43]OFD Sender: No OFD packet to send [23:37:48]OFD Sender: No OFD packet to send [23:37:53]OFD Sender: No OFD packet to send [23:37:58]OFD Sender: No OFD packet to send [23:38:03]OFD Sender: No OFD packet to send [23:38:08]OFD Sender: No OFD packet to send [23:38:13]OFD Sender: No OFD packet to send [23:38:18]OFD Sender: No OFD packet to send [23:38:23]OFD Sender: No OFD packet to send [23:38:28]OFD Sender: No OFD packet to send [23:38:33]OFD Sender: No OFD packet to send [23:38:38]OFD Sender: No OFD packet to send [23:38:43]OFD Sender: No OFD packet to send [23:38:48]OFD Sender: No OFD packet to send [23:38:53]OFD Sender: No OFD packet to send [23:38:58]OFD Sender: No OFD packet to send [23:39:03]OFD Sender: No OFD packet to send [23:39:08]OFD Sender: No OFD packet to send [23:39:13]OFD Sender: No OFD packet to send [23:39:18]OFD Sender: No OFD packet to send [23:39:23]OFD Sender: No OFD packet to send [23:39:28]OFD Sender: No OFD packet to send [23:39:33]OFD Sender: No OFD packet to send [23:39:38]OFD Sender: No OFD packet to send [23:39:43]OFD Sender: No OFD packet to send [23:39:48]OFD Sender: No OFD packet to send [23:39:53]OFD Sender: No OFD packet to send [23:39:58]OFD Sender: No OFD packet to send [23:40:03]OFD Sender: No OFD packet to send [23:40:08]OFD Sender: No OFD packet to send [23:40:13]OFD Sender: No OFD packet to send [23:40:18]OFD Sender: No OFD packet to send [23:40:23]OFD Sender: No OFD packet to send [23:40:28]OFD Sender: No OFD packet to send [23:40:33]OFD Sender: No OFD packet to send [23:40:38]OFD Sender: No OFD packet to send [23:40:43]OFD Sender: No OFD packet to send [23:40:48]OFD Sender: No OFD packet to send [23:40:53]OFD Sender: No OFD packet to send [23:40:58]OFD Sender: No OFD packet to send [23:41:03]OFD Sender: No OFD packet to send [23:41:08]OFD Sender: No OFD packet to send [23:41:13]OFD Sender: No OFD packet to send [23:41:18]OFD Sender: No OFD packet to send [23:41:23]OFD Sender: No OFD packet to send [23:41:28]OFD Sender: No OFD packet to send [23:41:33]OFD Sender: No OFD packet to send [23:41:38]OFD Sender: No OFD packet to send [23:41:43]OFD Sender: No OFD packet to send [23:41:48]OFD Sender: No OFD packet to send [23:41:53]OFD Sender: No OFD packet to send [23:41:58]OFD Sender: No OFD packet to send [23:42:03]OFD Sender: No OFD packet to send [23:42:08]OFD Sender: No OFD packet to send [23:42:13]OFD Sender: No OFD packet to send [23:42:18]OFD Sender: No OFD packet to send [23:42:23]OFD Sender: No OFD packet to send [23:42:28]OFD Sender: No OFD packet to send [23:42:33]OFD Sender: No OFD packet to send [23:42:38]OFD Sender: No OFD packet to send [23:42:38]accept exits with 8 [23:42:38]New connection [23:42:38]New thread 3066977636 created [23:42:38]Thread 3066834276 joined [23:42:38]Waiting for new connection... [23:42:38] Sock 8.Parse request [23:42:38]Sock 8.Check first char [23:42:38]Sock 8.First char is OK [23:42:38]request: POST /json_proto HTTP/1.0 [23:42:38]Method: POST [23:42:38]URL: /json_proto [23:42:38]Method is POST - this is cgi request [23:42:38]url: /json_proto [23:42:38]query_string will be loaded in cgi processing [23:42:38]execute_cgi json_proto POST (null) [23:42:38]execute_cgi path=json_proto method=POST [23:42:38]POST find Content-Length [23:42:38]Host: 172.17.63.3:8080 [23:42:38]Content-Length: 676 [23:42:38]Content-Type: application/json [23:42:38] [23:42:38]POST finish read [23:42:38]Found Content-Length = 676 [23:42:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99595", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "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" ] } } [23:42:38]execute_script... [23:42: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)99595", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "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" ] } } [23:42:38]POST & json_proto [23:42:38]process_json_proto [23:42:38]json parsed OK: [23:42:38]protocol is kg_v1.0 [23:42:38]action value=close_receipt [23:42:38]process_action close_receipt [23:42:38]cmd_close_receipt [23:42:38]MH_GetDate [23:42:38]Write to MH i2c: F0 00 00 5B 8F D9 [23:42:38]Write i2c OK [23:42:38]MH_I2C_Read... [23:42:38]Read from MH i2c: F0 [23:42:38]MH_I2C_Read... [23:42:38]Read from MH i2c: F0 09 00 [23:42:38]MH_I2C_Read... [23:42:38]Read from MH i2c: F0 09 00 5B 8F 00 F7 CF 1E 67 50 D1 6C 64 1E [23:42:38]GetLastDocTimeStamp 1730072073 [23:42:38]current date 1730072567 [23:42:38]FM_GetShiftState [23:42:38]SAM_PROTO_GetShiftState [23:42:38]wFMCommunicate request_size=4 [23:42:38]MH_SAM_APDU [23:42:38]CAPDU: 80 13 01 00 [23:42:38]Write to MH i2c: E2 08 00 5C 8F 80 13 01 00 00 00 00 00 68 [23:42:38]Write i2c OK [23:42:38]MH_I2C_Read... [23:42:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:42:38]Read from MH i2c: E2 [23:42:38]MH_I2C_Read... [23:42:38]Read from MH i2c: E2 0E 00 [23:42:38]MH_I2C_Read... [23:42:38]Read from MH i2c: E2 0E 00 5C 8F 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 35 [23:42:38]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [23:42:38]wFMCommunicate OK [23:42:38]SAM_PROTO_GetShiftState done [23:42:38]FM_GetShiftState done [23:42:38]opened in 1729989044 [23:42:38]opened+sec_in_day 1730075444 [23:42:38]quantity*price = 20003 [23:42:38]sum+1 = 20004 [23:42:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 332 27.10.2024 23:42 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156781 ФПД: 141799223128662 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T234247&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156781&fm=141799223128662&tin=02508201610067®Number=0000000000091693&sum=20000 [23:42:39]StoreToDocumentArchive [23:42:39]shift 537 fd 156781 [23:42:39]save to /storage/0537/doc_00156781 [23:42:39]save last doc name /storage/0537/doc_00156781 to /storage/kkm_last_doc_name [23:42:39]save OK [23:42:39]Clear old archive folders... [23:42:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:42:39]tlvbuf is 018F00E0 [23:42:39]SAM_PROTO_ClearQueue [23:42:39]wFMCommunicate request_size=4 [23:42:39]MH_SAM_APDU [23:42:39]CAPDU: 80 09 00 00 [23:42:39]Write to MH i2c: E2 08 00 69 8F 80 09 00 00 00 00 00 00 6A [23:42:39]Write i2c OK [23:42:39]MH_I2C_Read... [23:42:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:42:39]Read from MH i2c: E2 [23:42:39]MH_I2C_Read... [23:42:39]Read from MH i2c: E2 03 00 [23:42:39]MH_I2C_Read... [23:42:39]Read from MH i2c: E2 03 00 69 8F 00 90 00 6C [23:42:39]RAPDU: 90 00 [23:42:39]wFMCommunicate OK [23:42:39]SAM_PROTO_ClearQueue done [23:42:39]KKMCreateOFDPacket [23:42:39]OFDProtocolAddRootSTLVToBuf [23:42:39]FM_MakeSignedData [23:42:39]FM_MakeSignedData [23:42:39]SAM_PROTO_SignData [23:42:39]wFMCommunicate request_size=4 [23:42:39]MH_SAM_APDU [23:42:39]CAPDU: 80 0D 01 02 [23:42:39]Write to MH i2c: E2 08 00 6A 8F 80 0D 01 02 00 00 00 00 72 [23:42:39]Write i2c OK [23:42:39]MH_I2C_Read... [23:42:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:42:40]Read from MH i2c: E2 [23:42:40]MH_I2C_Read... [23:42:40]Read from MH i2c: E2 03 00 [23:42:40]MH_I2C_Read... [23:42:40]Read from MH i2c: E2 03 00 6A 8F 00 90 00 6D [23:42:40]RAPDU: 90 00 [23:42:40]wFMCommunicate OK [23:42:40]wFMCommunicate request_size=255 [23:42:40]MH_SAM_APDU [23:42: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 4C 01 00 00 F4 03 04 00 F7 CF 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 6D 64 02 00 35 04 06 00 80 [23:42:40]Write to MH i2c: E2 02 01 6B 8F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 4C 01 00 00 F4 03 04 00 F7 CF 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 6D 64 02 00 35 04 06 00 80 00 00 CE [23:42:40]Write i2c OK [23:42:40]MH_I2C_Read... [23:42:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:42:40]Read from MH i2c: E2 [23:42:40]MH_I2C_Read... [23:42:40]Read from MH i2c: E2 03 00 [23:42:40]MH_I2C_Read... [23:42:40]Read from MH i2c: E2 03 00 6B 8F 00 90 00 6E [23:42:40]RAPDU: 90 00 [23:42:40]wFMCommunicate OK [23:42:40]wFMCommunicate request_size=10 [23:42:40]MH_SAM_APDU [23:42:40]CAPDU: 80 0D 02 02 05 F7 34 52 F2 56 [23:42:40]Write to MH i2c: E2 0D 00 6C 8F 80 0D 02 02 05 00 F7 34 52 F2 56 00 00 44 [23:42:40]Write i2c OK [23:42:40]MH_I2C_Read... [23:42:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:42:40]Read from MH i2c: E2 [23:42:40]MH_I2C_Read... [23:42:40]Read from MH i2c: E2 03 00 [23:42:40]MH_I2C_Read... [23:42:40]Read from MH i2c: E2 03 00 6C 8F 00 90 00 6F [23:42:40]RAPDU: 90 00 [23:42:40]wFMCommunicate OK [23:42:40]wFMCommunicate request_size=4 [23:42:40]MH_SAM_APDU [23:42:40]CAPDU: 80 0D 03 02 [23:42:40]Write to MH i2c: E2 08 00 6D 8F 80 0D 03 02 00 00 00 00 77 [23:42:40]Write i2c OK [23:42:40]MH_I2C_Read... [23:42:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:42:40]Read from MH i2c: E2 [23:42:40]MH_I2C_Read... [23:42:40]Read from MH i2c: E2 0B 00 [23:42:40]MH_I2C_Read... [23:42:40]Read from MH i2c: E2 0B 00 6D 8F 00 0B FF F9 D4 03 57 88 B8 90 00 E9 [23:42:40]RAPDU: 0B FF F9 D4 03 57 88 B8 90 00 [23:42:40]wFMCommunicate OK [23:42:40]SAM_PROTO_SignData done [23:42:40]FM_MakeSignedData done [23:42:40]CreateOFDProtocolMessage [23:42:40]wFMCommunicate request_size=4 [23:42:40]MH_SAM_APDU [23:42:40]CAPDU: 80 11 00 00 [23:42:40]Write to MH i2c: E2 08 00 6E 8F 80 11 00 00 00 00 00 00 77 [23:42:40]Write i2c OK [23:42:40]MH_I2C_Read... [23:42:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:42:40]Read from MH i2c: E2 [23:42:40]MH_I2C_Read... [23:42:40]Read from MH i2c: E2 17 00 [23:42:40]MH_I2C_Read... [23:42:40]Read from MH i2c: E2 17 00 6E 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 CC [23:42:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [23:42:40]wFMCommunicate OK [23:42:40]CreateOFDProtocolMessage done [23:42:40]OFDSenderStorePacket 156781 [23:42:40]StoreOFDPacket docnum=156781 [23:42:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 6B C5 07 01 D0 B5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 4C 01 00 00 F4 03 04 00 F7 CF 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 6D 64 02 00 35 04 06 00 80 F7 34 52 F2 56 0B FF F9 D4 03 57 88 B8 [23:42:40]CheckFolder [23:42:40]dirname=/storage/ofd_packets [23:42:40]CheckFolder done [23:42:40]ProducePacketName [23:42:40]name=ofd_packets/00156781 [23:42:40]NVStorageSaveData ofd_packets/00156781 [23:42:40]File name is /storage/ofd_packets/00156781 [23:42:40]Write 301 bytes [23:42:40]NVStorageSaveData done [23:42:40]OFDSenderStorePacket done [23:42:40]KKMCreateOFDPacket done [23:42:40]NVStorageSaveData kkm_last_timestamp [23:42:40]File name is /storage/kkm_last_timestamp [23:42:40]Write 4 bytes [23:42:40]NVStorageSaveData done [23:42:40]ExternCall_PrintAddStr [23:42:40]wPrintStart [23:42:40]Write to MH i2c: 01 00 00 6F 8F FE [23:42:40]Write i2c OK [23:42:40]MH_I2C_Read... [23:42:40]Read from MH i2c: 01 [23:42:40]MH_I2C_Read... [23:42:40]Read from MH i2c: 01 07 00 [23:42:40]MH_I2C_Read... [23:42:40]Read from MH i2c: 01 07 00 6F 8F 00 00 00 00 00 FF 0F 13 [23:42:40]RasterBufferAndPrint [23:42:40]line Счет N : (1)99595 [23:42:40]line ИНН: 02508201610067 [23:42:40]line Контрольно-Кассовый Чек [23:42:40]line ПРОДАЖА [23:42:40]line ТРК (МРК, ГНК) : 31 [23:42:40]line Товар: 2710124130 [23:42:40]line Аи-92-К-5 [23:42:40]line 2.990 * 66.90 [23:42:40]line = 200.03 [23:42:40]line НДС 12% НСП 1% [23:42:40]line > о реализуемом товаре [23:42:40]line ОКРУГЛЕНИЕ: -0.03 [23:42:40]line ИТОГО: 200.00 [23:42:40]line Внесено: 200.00 [23:42:40]line СДАЧА: 0.00 [23:42:40]line НСП 1% : 1.77 [23:42:40]line НДС 12% : 21.24 [23:42:40]line Наличными: 200.00 [23:42:40]line Безнал.: 0.00 [23:42:40]line Место: АЗС № 143 "Партнер Нефть" [23:42:40]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [23:42:40]line СНО: Общий режим [23:42:40]line Чек 332 27.10.2024 23:42 [23:42:40]line Смена: 537 ФФД: 1.0 [23:42:40]line ЗНМ: 0300000096 [23:42:40]line РНМ: 0000000000091693 [23:42:40]line Версия ККМ: 001 [23:42:40]line ФМ: 0000000000871792 [23:42:40]line ФД: 156781 [23:42:40]line ФПД: 141799223128662 [23:42:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T234247&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156781&fm=141799223128662&tin=02508201610067®Number=0000000000091693&sum=20000 [23:42:40]OFD Sender: Processing packet 156781 [packets to send 31, broken 30] [23:42:40]ProducePacketName [23:42:40]name=ofd_packets/00156781 [23:42:40]OFD Sender: To server: pG, [23:42:40]CommunicateWithHost lk.salyk.kg:30040 [23:42:40]ConnectInit lk.salyk.kg [23:42:40]written 0, free lines is 4095 [23:42:40]Connected sock=10 [23:42:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 6B C5 07 01 D0 B5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 4C 01 00 00 F4 03 04 00 F7 CF 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 6D 64 02 00 35 04 06 00 80 F7 34 52 F2 56 0B FF F9 D4 03 57 88 B8 [23:42:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 CF 51 47 00 88 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 31 37 39 32 10 04 04 00 6D 64 02 00 F4 03 04 00 65 75 1E 67 B6 04 01 00 00 29 DC 8B 84 D6 7F 4F 48 [23:42:41]CommunicateWithHost err = 0 [23:42:41]CheckOFDResponse [23:42:41]1017 (14) - 77093643461234 [23:42:41]1041 (16) - 0000000000871792 [23:42:41]1040 (4) - 156781 [23:42:41]1012 (4) - 27.10.2024 17:16 [23:42:41]1206 (1) - 0 [23:42:41]OFD Sender: Remove packet 156781 [23:42:41]ProducePacketName [23:42:41]name=ofd_packets/00156781 [23:42:41]NVStorageDeleteData [23:42:41]Write to MH i2c: 01 00 00 9A 8F 29 [23:42:41]Write i2c OK [23:42:41]MH_I2C_Read... [23:42:41]Read from MH i2c: 01 [23:42:41]MH_I2C_Read... [23:42:41]Read from MH i2c: 01 07 00 [23:42:41]MH_I2C_Read... [23:42:41]Read from MH i2c: 01 07 00 9A 8F 00 00 00 00 00 D4 0C 10 [23:42:41]RasterBufferAndPrint [23:42:41]line [23:42:41]line [23:42:41]line [23:42:41]line [23:42:41]line [23:42:41]written 0, free lines is 3292 [23:42:41]process_action close_receipt done [23:42:41]requested_data is exist [23:42:41]produce_requested_data [23:42:41]requested_item fm.sn is exist - process it [23:42:41]wFMCommunicate request_size=4 [23:42:41]MH_SAM_APDU [23:42:41]CAPDU: 80 11 00 00 [23:42:41]Write to MH i2c: E2 08 00 A1 8F 80 11 00 00 00 00 00 00 AA [23:42:41]Write i2c OK [23:42:41]MH_I2C_Read... [23:42:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:42:41]Read from MH i2c: E2 [23:42:41]MH_I2C_Read... [23:42:41]Read from MH i2c: E2 17 00 [23:42:41]MH_I2C_Read... [23:42:41]Read from MH i2c: E2 17 00 A1 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 FF [23:42:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [23:42:41]wFMCommunicate OK [23:42:41]requested_item fd.num is exist - process it [23:42:41]SAM_PROTO_GetFieldsCounters [23:42:41]wFMCommunicate request_size=4 [23:42:41]MH_SAM_APDU [23:42:41]CAPDU: 80 13 00 00 [23:42:41]Write to MH i2c: E2 08 00 A2 8F 80 13 00 00 00 00 00 00 AD [23:42:41]Write i2c OK [23:42:41]MH_I2C_Read... [23:42:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:42:41]Read from MH i2c: E2 [23:42:41]MH_I2C_Read... [23:42:41]Read from MH i2c: E2 62 00 [23:42:41]MH_I2C_Read... [23:42:41]Read from MH i2c: E2 62 00 A2 8F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 6D 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 4C 01 00 00 5E 04 04 00 4C 01 00 00 57 04 04 00 4D 01 00 00 19 04 04 00 00 00 00 00 90 00 A8 [23:42:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 6D 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 4C 01 00 00 5E 04 04 00 4C 01 00 00 57 04 04 00 4D 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:42:41]wFMCommunicate OK [23:42:41]SAM_PROTO_GetFieldsCounters done [23:42:41]requested_item shift.num is exist - process it [23:42:41]requested_item shift.opened is exist - process it [23:42:41]req_shift_opened [23:42:41]FM_GetShiftState [23:42:41]SAM_PROTO_GetShiftState [23:42:41]wFMCommunicate request_size=4 [23:42:41]MH_SAM_APDU [23:42:41]CAPDU: 80 13 01 00 [23:42:41]Write to MH i2c: E2 08 00 A3 8F 80 13 01 00 00 00 00 00 AF [23:42:41]Write i2c OK [23:42:41]MH_I2C_Read... [23:42:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:42:41]Read from MH i2c: E2 [23:42:41]MH_I2C_Read... [23:42:41]Read from MH i2c: E2 0E 00 [23:42:41]MH_I2C_Read... [23:42:41]Read from MH i2c: E2 0E 00 A3 8F 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 7C [23:42:41]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [23:42:41]wFMCommunicate OK [23:42:41]SAM_PROTO_GetShiftState done [23:42:41]FM_GetShiftState done [23:42:41]req_shift_opened done [23:42:41]requested_item shift.open_date is exist - process it [23:42:41]req_shift_open_date [23:42:41]req_shift_open_date done [23:42:41]produce_requested_data done [23:42:41]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156781,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [23:42:41]process_action_free close_receipt [23:42:41]json_value_free [23:42:41]json_value_free done [23:42:41]process_json_proto returns [23:42:41]Send response to host [23:42:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156781,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [23:42:41]free response buf [23:42:41]execute_script done [23:42:41]execute_script returns [23:42:41]free content buf [23:42:41]Sock 8.Close socket [23:42:41]Sock 8.Thread stoped [23:42:41]OFD Sender: No OFD packet to send [23:42:46]OFD Sender: No OFD packet to send [23:42:51]OFD Sender: No OFD packet to send [23:42:56]OFD Sender: No OFD packet to send [23:43:01]OFD Sender: No OFD packet to send [23:43:06]OFD Sender: No OFD packet to send [23:43:11]OFD Sender: No OFD packet to send [23:43:16]OFD Sender: No OFD packet to send [23:43:21]OFD Sender: No OFD packet to send [23:43:26]OFD Sender: No OFD packet to send [23:43:31]OFD Sender: No OFD packet to send [23:43:36]OFD Sender: No OFD packet to send [23:43:41]OFD Sender: No OFD packet to send [23:43:46]OFD Sender: No OFD packet to send [23:43:51]OFD Sender: No OFD packet to send [23:43:56]OFD Sender: No OFD packet to send [23:44:01]OFD Sender: No OFD packet to send [23:44:06]OFD Sender: No OFD packet to send [23:44:11]OFD Sender: No OFD packet to send [23:44:16]OFD Sender: No OFD packet to send [23:44:21]OFD Sender: No OFD packet to send [23:44:26]OFD Sender: No OFD packet to send [23:44:31]OFD Sender: No OFD packet to send [23:44:36]OFD Sender: No OFD packet to send [23:44:41]OFD Sender: No OFD packet to send [23:44:46]OFD Sender: No OFD packet to send [23:44:51]OFD Sender: No OFD packet to send [23:44:56]OFD Sender: No OFD packet to send [23:45:01]OFD Sender: No OFD packet to send [23:45:06]OFD Sender: No OFD packet to send [23:45:11]OFD Sender: No OFD packet to send [23:45:16]OFD Sender: No OFD packet to send [23:45:21]OFD Sender: No OFD packet to send [23:45:26]OFD Sender: No OFD packet to send [23:45:31]OFD Sender: No OFD packet to send [23:45:36]OFD Sender: No OFD packet to send [23:45:41]OFD Sender: No OFD packet to send [23:45:46]OFD Sender: No OFD packet to send [23:45:51]OFD Sender: No OFD packet to send [23:45:56]OFD Sender: No OFD packet to send [23:46:01]OFD Sender: No OFD packet to send [23:46:06]OFD Sender: No OFD packet to send [23:46:11]OFD Sender: No OFD packet to send [23:46:16]OFD Sender: No OFD packet to send [23:46:21]OFD Sender: No OFD packet to send [23:46:26]OFD Sender: No OFD packet to send [23:46:31]OFD Sender: No OFD packet to send [23:46:36]OFD Sender: No OFD packet to send [23:46:41]OFD Sender: No OFD packet to send [23:46:46]OFD Sender: No OFD packet to send [23:46:51]OFD Sender: No OFD packet to send [23:46:56]OFD Sender: No OFD packet to send [23:47:01]OFD Sender: No OFD packet to send [23:47:06]OFD Sender: No OFD packet to send [23:47:11]OFD Sender: No OFD packet to send [23:47:16]OFD Sender: No OFD packet to send [23:47:21]OFD Sender: No OFD packet to send [23:47:26]OFD Sender: No OFD packet to send [23:47:31]OFD Sender: No OFD packet to send [23:47:36]OFD Sender: No OFD packet to send [23:47:41]OFD Sender: No OFD packet to send [23:47:46]OFD Sender: No OFD packet to send [23:47:51]OFD Sender: No OFD packet to send [23:47:56]OFD Sender: No OFD packet to send [23:48:01]OFD Sender: No OFD packet to send [23:48:06]OFD Sender: No OFD packet to send [23:48:11]OFD Sender: No OFD packet to send [23:48:16]OFD Sender: No OFD packet to send [23:48:21]OFD Sender: No OFD packet to send [23:48:26]OFD Sender: No OFD packet to send [23:48:31]OFD Sender: No OFD packet to send [23:48:36]OFD Sender: No OFD packet to send [23:48:41]OFD Sender: No OFD packet to send [23:48:46]OFD Sender: No OFD packet to send [23:48:51]OFD Sender: No OFD packet to send [23:48:56]OFD Sender: No OFD packet to send [23:49:01]OFD Sender: No OFD packet to send [23:49:06]OFD Sender: No OFD packet to send [23:49:11]OFD Sender: No OFD packet to send [23:49:16]OFD Sender: No OFD packet to send [23:49:21]OFD Sender: No OFD packet to send [23:49:27]OFD Sender: No OFD packet to send [23:49:32]OFD Sender: No OFD packet to send [23:49:37]OFD Sender: No OFD packet to send [23:49:42]OFD Sender: No OFD packet to send [23:49:44]accept exits with 9 [23:49:44]New connection [23:49:44]New thread 3066834276 created [23:49:44]Thread 3066977636 joined [23:49:44]Waiting for new connection... [23:49:44] Sock 9.Parse request [23:49:44]Sock 9.Check first char [23:49:44]Sock 9.First char is OK [23:49:44]request: POST /json_proto HTTP/1.0 [23:49:44]Method: POST [23:49:44]URL: /json_proto [23:49:44]Method is POST - this is cgi request [23:49:44]url: /json_proto [23:49:44]query_string will be loaded in cgi processing [23:49:44]execute_cgi json_proto POST (null) [23:49:44]execute_cgi path=json_proto method=POST [23:49:44]POST find Content-Length [23:49:44]Host: 172.17.63.3:8080 [23:49:44]Content-Length: 676 [23:49:44]Content-Type: application/json [23:49:44] [23:49:44]POST finish read [23:49:44]Found Content-Length = 676 [23:49:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99596", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:49:44]execute_script... [23:49: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)99596", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:49:44]POST & json_proto [23:49:44]process_json_proto [23:49:44]json parsed OK: [23:49:44]protocol is kg_v1.0 [23:49:44]action value=close_receipt [23:49:44]process_action close_receipt [23:49:44]cmd_close_receipt [23:49:44]MH_GetDate [23:49:44]Write to MH i2c: F0 00 00 A4 8F 22 [23:49:44]Write i2c OK [23:49:44]MH_I2C_Read... [23:49:44]Read from MH i2c: F0 [23:49:44]MH_I2C_Read... [23:49:44]Read from MH i2c: F0 09 00 [23:49:44]MH_I2C_Read... [23:49:44]Read from MH i2c: F0 09 00 A4 8F 00 A0 D1 1E 67 50 D1 6C 64 12 [23:49:44]GetLastDocTimeStamp 1730072567 [23:49:44]current date 1730072992 [23:49:44]FM_GetShiftState [23:49:44]SAM_PROTO_GetShiftState [23:49:44]wFMCommunicate request_size=4 [23:49:44]MH_SAM_APDU [23:49:44]CAPDU: 80 13 01 00 [23:49:44]Write to MH i2c: E2 08 00 A5 8F 80 13 01 00 00 00 00 00 B1 [23:49:44]Write i2c OK [23:49:44]MH_I2C_Read... [23:49:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:49:44]Read from MH i2c: E2 [23:49:44]MH_I2C_Read... [23:49:44]Read from MH i2c: E2 0E 00 [23:49:44]MH_I2C_Read... [23:49:44]Read from MH i2c: E2 0E 00 A5 8F 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 7E [23:49:44]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [23:49:44]wFMCommunicate OK [23:49:44]SAM_PROTO_GetShiftState done [23:49:44]FM_GetShiftState done [23:49:44]opened in 1729989044 [23:49:44]opened+sec_in_day 1730075444 [23:49:44]quantity*price = 50041 [23:49:44]sum+1 = 50042 [23:49:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 333 27.10.2024 23:49 Смена: 537 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156782 ФПД: 219171566002899 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T234952&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156782&fm=219171566002899&tin=02508201610067®Number=0000000000091693&sum=50000 [23:49:45]StoreToDocumentArchive [23:49:45]shift 537 fd 156782 [23:49:45]save to /storage/0537/doc_00156782 [23:49:45]save last doc name /storage/0537/doc_00156782 to /storage/kkm_last_doc_name [23:49:45]save OK [23:49:45]Clear old archive folders... [23:49:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:49:45]tlvbuf is 018D33B0 [23:49:45]SAM_PROTO_ClearQueue [23:49:45]wFMCommunicate request_size=4 [23:49:45]MH_SAM_APDU [23:49:45]CAPDU: 80 09 00 00 [23:49:45]Write to MH i2c: E2 08 00 B2 8F 80 09 00 00 00 00 00 00 B3 [23:49:45]Write i2c OK [23:49:45]MH_I2C_Read... [23:49:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:49:45]Read from MH i2c: E2 [23:49:45]MH_I2C_Read... [23:49:45]Read from MH i2c: E2 03 00 [23:49:45]MH_I2C_Read... [23:49:45]Read from MH i2c: E2 03 00 B2 8F 00 90 00 B5 [23:49:45]RAPDU: 90 00 [23:49:45]wFMCommunicate OK [23:49:45]SAM_PROTO_ClearQueue done [23:49:45]KKMCreateOFDPacket [23:49:45]OFDProtocolAddRootSTLVToBuf [23:49:45]FM_MakeSignedData [23:49:45]FM_MakeSignedData [23:49:45]SAM_PROTO_SignData [23:49:45]wFMCommunicate request_size=4 [23:49:45]MH_SAM_APDU [23:49:45]CAPDU: 80 0D 01 02 [23:49:45]Write to MH i2c: E2 08 00 B3 8F 80 0D 01 02 00 00 00 00 BB [23:49:45]Write i2c OK [23:49:45]MH_I2C_Read... [23:49:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:49:45]Read from MH i2c: E2 [23:49:45]MH_I2C_Read... [23:49:45]Read from MH i2c: E2 03 00 [23:49:45]MH_I2C_Read... [23:49:45]Read from MH i2c: E2 03 00 B3 8F 00 90 00 B6 [23:49:45]RAPDU: 90 00 [23:49:45]wFMCommunicate OK [23:49:45]wFMCommunicate request_size=255 [23:49:45]MH_SAM_APDU [23:49: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 01 00 00 F4 03 04 00 A0 D1 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 6E 64 02 00 35 04 06 00 C7 [23:49:45]Write to MH i2c: E2 02 01 B4 8F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 01 00 00 F4 03 04 00 A0 D1 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 6E 64 02 00 35 04 06 00 C7 00 00 49 [23:49:45]Write i2c OK [23:49:45]MH_I2C_Read... [23:49:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:49:46]Read from MH i2c: E2 [23:49:46]MH_I2C_Read... [23:49:46]Read from MH i2c: E2 03 00 [23:49:46]MH_I2C_Read... [23:49:46]Read from MH i2c: E2 03 00 B4 8F 00 90 00 B7 [23:49:46]RAPDU: 90 00 [23:49:46]wFMCommunicate OK [23:49:46]wFMCommunicate request_size=10 [23:49:46]MH_SAM_APDU [23:49:46]CAPDU: 80 0D 02 02 05 55 DB 56 22 D3 [23:49:46]Write to MH i2c: E2 0D 00 B5 8F 80 0D 02 02 05 00 55 DB 56 22 D3 00 00 43 [23:49:46]Write i2c OK [23:49:46]MH_I2C_Read... [23:49:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:49:46]Read from MH i2c: E2 [23:49:46]MH_I2C_Read... [23:49:46]Read from MH i2c: E2 03 00 [23:49:46]MH_I2C_Read... [23:49:46]Read from MH i2c: E2 03 00 B5 8F 00 90 00 B8 [23:49:46]RAPDU: 90 00 [23:49:46]wFMCommunicate OK [23:49:46]wFMCommunicate request_size=4 [23:49:46]MH_SAM_APDU [23:49:46]CAPDU: 80 0D 03 02 [23:49:46]Write to MH i2c: E2 08 00 B6 8F 80 0D 03 02 00 00 00 00 C0 [23:49:46]Write i2c OK [23:49:46]MH_I2C_Read... [23:49:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:49:46]Read from MH i2c: E2 [23:49:46]MH_I2C_Read... [23:49:46]Read from MH i2c: E2 0B 00 [23:49:46]MH_I2C_Read... [23:49:46]Read from MH i2c: E2 0B 00 B6 8F 00 28 D6 34 F8 55 9E 75 9B 90 00 EE [23:49:46]RAPDU: 28 D6 34 F8 55 9E 75 9B 90 00 [23:49:46]wFMCommunicate OK [23:49:46]SAM_PROTO_SignData done [23:49:46]FM_MakeSignedData done [23:49:46]CreateOFDProtocolMessage [23:49:46]wFMCommunicate request_size=4 [23:49:46]MH_SAM_APDU [23:49:46]CAPDU: 80 11 00 00 [23:49:46]Write to MH i2c: E2 08 00 B7 8F 80 11 00 00 00 00 00 00 C0 [23:49:46]Write i2c OK [23:49:46]MH_I2C_Read... [23:49:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:49:46]Read from MH i2c: E2 [23:49:46]MH_I2C_Read... [23:49:46]Read from MH i2c: E2 17 00 [23:49:46]MH_I2C_Read... [23:49:46]Read from MH i2c: E2 17 00 B7 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 15 [23:49:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [23:49:46]wFMCommunicate OK [23:49:46]CreateOFDProtocolMessage done [23:49:46]OFDSenderStorePacket 156782 [23:49:46]StoreOFDPacket docnum=156782 [23:49:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 25 7B 07 01 5C 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 01 00 00 F4 03 04 00 A0 D1 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 6E 64 02 00 35 04 06 00 C7 55 DB 56 22 D3 28 D6 34 F8 55 9E 75 9B [23:49:46]CheckFolder [23:49:46]dirname=/storage/ofd_packets [23:49:46]CheckFolder done [23:49:46]ProducePacketName [23:49:46]name=ofd_packets/00156782 [23:49:46]NVStorageSaveData ofd_packets/00156782 [23:49:46]File name is /storage/ofd_packets/00156782 [23:49:46]Write 301 bytes [23:49:46]NVStorageSaveData done [23:49:46]OFDSenderStorePacket done [23:49:46]KKMCreateOFDPacket done [23:49:46]NVStorageSaveData kkm_last_timestamp [23:49:46]File name is /storage/kkm_last_timestamp [23:49:46]Write 4 bytes [23:49:46]NVStorageSaveData done [23:49:46]ExternCall_PrintAddStr [23:49:46]wPrintStart [23:49:46]Write to MH i2c: 01 00 00 B8 8F 47 [23:49:46]Write i2c OK [23:49:46]MH_I2C_Read... [23:49:46]Read from MH i2c: 01 [23:49:46]MH_I2C_Read... [23:49:46]Read from MH i2c: 01 07 00 [23:49:46]MH_I2C_Read... [23:49:46]Read from MH i2c: 01 07 00 B8 8F 00 00 00 00 00 FF 0F 5C [23:49:46]RasterBufferAndPrint [23:49:46]line Счет N : (1)99596 [23:49:46]line ИНН: 02508201610067 [23:49:46]line Контрольно-Кассовый Чек [23:49:46]line ПРОДАЖА [23:49:46]line ТРК (МРК, ГНК) : 31 [23:49:46]line Товар: 2710124130 [23:49:46]line Аи-92-К-5 [23:49:46]line 7.480 * 66.90 [23:49:46]line = 500.41 [23:49:46]line НДС 12% НСП 1% [23:49:46]line > о реализуемом товаре [23:49:46]line ОКРУГЛЕНИЕ: -0.41 [23:49:46]line ИТОГО: 500.00 [23:49:46]line Внесено: 500.00 [23:49:46]line СДАЧА: 0.00 [23:49:46]line НСП 1% : 4.43 [23:49:46]line НДС 12% : 53.14 [23:49:46]line Наличными: 500.00 [23:49:46]line Безнал.: 0.00 [23:49:46]line Место: АЗС № 143 "Партнер Нефть" [23:49:46]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [23:49:46]line СНО: Общий режим [23:49:46]line Чек 333 27.10.2024 23:49 [23:49:46]line Смена: 537 ФФД: 1.0 [23:49:46]line ЗНМ: 0300000096 [23:49:46]line РНМ: 0000000000091693 [23:49:46]line Версия ККМ: 001 [23:49:46]line ФМ: 0000000000871792 [23:49:46]line ФД: 156782 [23:49:46]line ФПД: 219171566002899 [23:49:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241027T234952&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156782&fm=219171566002899&tin=02508201610067®Number=0000000000091693&sum=50000 [23:49:46]OFD Sender: Processing packet 156782 [packets to send 31, broken 30] [23:49:46]ProducePacketName [23:49:46]name=ofd_packets/00156782 [23:49:46]OFD Sender: To server: pG, [23:49:46]CommunicateWithHost lk.salyk.kg:30040 [23:49:46]ConnectInit lk.salyk.kg [23:49:46]written 0, free lines is 4095 [23:49:46]Connected sock=10 [23:49:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 25 7B 07 01 5C 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 01 00 00 F4 03 04 00 A0 D1 1E 67 0E 04 04 00 19 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 6E 64 02 00 35 04 06 00 C7 55 DB 56 22 D3 28 D6 34 F8 55 9E 75 9B [23:49:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 C2 F3 47 00 96 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 6E 64 02 00 F4 03 04 00 0F 77 1E 67 B6 04 01 00 00 32 BB 27 3C 00 10 C6 E6 [23:49:47]CommunicateWithHost err = 0 [23:49:47]CheckOFDResponse [23:49:47]1017 (14) - 77093643461234 [23:49:47]1041 (16) - 0000000000871792 [23:49:47]1040 (4) - 156782 [23:49:47]1012 (4) - 27.10.2024 17:23 [23:49:47]1206 (1) - 0 [23:49:47]OFD Sender: Remove packet 156782 [23:49:47]ProducePacketName [23:49:47]name=ofd_packets/00156782 [23:49:47]NVStorageDeleteData [23:49:47]Write to MH i2c: 01 00 00 E3 8F 72 [23:49:47]Write i2c OK [23:49:47]MH_I2C_Read... [23:49:47]Read from MH i2c: 01 [23:49:47]MH_I2C_Read... [23:49:47]Read from MH i2c: 01 07 00 [23:49:47]MH_I2C_Read... [23:49:47]Read from MH i2c: 01 07 00 E3 8F 00 00 00 00 00 D1 0C 56 [23:49:47]RasterBufferAndPrint [23:49:47]line [23:49:47]line [23:49:47]line [23:49:47]line [23:49:47]line [23:49:47]written 0, free lines is 3289 [23:49:47]process_action close_receipt done [23:49:47]requested_data is exist [23:49:47]produce_requested_data [23:49:47]requested_item fm.sn is exist - process it [23:49:47]wFMCommunicate request_size=4 [23:49:47]MH_SAM_APDU [23:49:47]CAPDU: 80 11 00 00 [23:49:47]Write to MH i2c: E2 08 00 EA 8F 80 11 00 00 00 00 00 00 F3 [23:49:47]Write i2c OK [23:49:47]MH_I2C_Read... [23:49:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:49:47]Read from MH i2c: E2 [23:49:47]MH_I2C_Read... [23:49:47]Read from MH i2c: E2 17 00 [23:49:47]MH_I2C_Read... [23:49:47]Read from MH i2c: E2 17 00 EA 8F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 48 [23:49:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [23:49:47]wFMCommunicate OK [23:49:47]requested_item fd.num is exist - process it [23:49:47]SAM_PROTO_GetFieldsCounters [23:49:47]wFMCommunicate request_size=4 [23:49:47]MH_SAM_APDU [23:49:47]CAPDU: 80 13 00 00 [23:49:47]Write to MH i2c: E2 08 00 EB 8F 80 13 00 00 00 00 00 00 F6 [23:49:47]Write i2c OK [23:49:47]MH_I2C_Read... [23:49:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:49:47]Read from MH i2c: E2 [23:49:47]MH_I2C_Read... [23:49:47]Read from MH i2c: E2 62 00 [23:49:47]MH_I2C_Read... [23:49:47]Read from MH i2c: E2 62 00 EB 8F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 6E 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 4D 01 00 00 5E 04 04 00 4D 01 00 00 57 04 04 00 4E 01 00 00 19 04 04 00 00 00 00 00 90 00 F5 [23: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 6E 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 4D 01 00 00 5E 04 04 00 4D 01 00 00 57 04 04 00 4E 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:49:47]wFMCommunicate OK [23:49:47]SAM_PROTO_GetFieldsCounters done [23:49:47]requested_item shift.num is exist - process it [23:49:47]requested_item shift.opened is exist - process it [23:49:47]req_shift_opened [23:49:47]FM_GetShiftState [23:49:47]SAM_PROTO_GetShiftState [23:49:47]wFMCommunicate request_size=4 [23:49:47]MH_SAM_APDU [23:49:47]CAPDU: 80 13 01 00 [23:49:47]Write to MH i2c: E2 08 00 EC 8F 80 13 01 00 00 00 00 00 F8 [23:49:47]Write i2c OK [23:49:47]MH_I2C_Read... [23:49:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:49:47]Read from MH i2c: E2 [23:49:47]MH_I2C_Read... [23:49:47]Read from MH i2c: E2 0E 00 [23:49:47]MH_I2C_Read... [23:49:47]Read from MH i2c: E2 0E 00 EC 8F 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 C5 [23:49:47]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [23:49:47]wFMCommunicate OK [23:49:47]SAM_PROTO_GetShiftState done [23:49:47]FM_GetShiftState done [23:49:47]req_shift_opened done [23:49:47]requested_item shift.open_date is exist - process it [23:49:47]req_shift_open_date [23:49:47]req_shift_open_date done [23:49:47]produce_requested_data done [23:49:47]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156782,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [23:49:47]process_action_free close_receipt [23:49:47]json_value_free [23:49:47]json_value_free done [23:49:47]process_json_proto returns [23:49:47]Send response to host [23:49:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156782,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [23:49:47]free response buf [23:49:47]execute_script done [23:49:47]execute_script returns [23:49:47]free content buf [23:49:47]Sock 9.Close socket [23:49:47]Sock 9.Thread stoped [23:49:47]OFD Sender: No OFD packet to send [23:49:52]OFD Sender: No OFD packet to send [23:49:57]OFD Sender: No OFD packet to send [23:50:02]OFD Sender: No OFD packet to send [23:50:07]OFD Sender: No OFD packet to send [23:50:12]OFD Sender: No OFD packet to send [23:50:17]OFD Sender: No OFD packet to send [23:50:22]OFD Sender: No OFD packet to send [23:50:27]OFD Sender: No OFD packet to send [23:50:32]OFD Sender: No OFD packet to send [23:50:37]OFD Sender: No OFD packet to send [23:50:42]OFD Sender: No OFD packet to send [23:50:47]OFD Sender: No OFD packet to send [23:50:52]OFD Sender: No OFD packet to send [23:50:57]OFD Sender: No OFD packet to send [23:51:02]OFD Sender: No OFD packet to send [23:51:07]OFD Sender: No OFD packet to send [23:51:12]OFD Sender: No OFD packet to send [23:51:17]OFD Sender: No OFD packet to send [23:51:22]OFD Sender: No OFD packet to send [23:51:27]OFD Sender: No OFD packet to send [23:51:32]OFD Sender: No OFD packet to send [23:51:37]OFD Sender: No OFD packet to send [23:51:42]OFD Sender: No OFD packet to send [23:51:47]OFD Sender: No OFD packet to send [23:51:52]OFD Sender: No OFD packet to send [23:51:57]OFD Sender: No OFD packet to send [23:52:02]OFD Sender: No OFD packet to send [23:52:07]OFD Sender: No OFD packet to send [23:52:12]OFD Sender: No OFD packet to send [23:52:17]OFD Sender: No OFD packet to send [23:52:22]OFD Sender: No OFD packet to send [23:52:27]OFD Sender: No OFD packet to send [23:52:32]OFD Sender: No OFD packet to send [23:52:37]OFD Sender: No OFD packet to send [23:52:42]OFD Sender: No OFD packet to send [23:52:47]OFD Sender: No OFD packet to send [23:52:52]OFD Sender: No OFD packet to send [23:52:57]OFD Sender: No OFD packet to send [23:53:02]OFD Sender: No OFD packet to send [23:53:07]OFD Sender: No OFD packet to send [23:53:12]OFD Sender: No OFD packet to send [23:53:17]OFD Sender: No OFD packet to send [23:53:22]OFD Sender: No OFD packet to send [23:53:27]OFD Sender: No OFD packet to send [23:53:32]OFD Sender: No OFD packet to send [23:53:37]OFD Sender: No OFD packet to send [23:53:42]OFD Sender: No OFD packet to send [23:53:47]OFD Sender: No OFD packet to send [23:53:52]OFD Sender: No OFD packet to send [23:53:57]OFD Sender: No OFD packet to send [23:54:02]OFD Sender: No OFD packet to send [23:54:07]OFD Sender: No OFD packet to send [23:54:12]OFD Sender: No OFD packet to send [23:54:17]OFD Sender: No OFD packet to send [23:54:22]OFD Sender: No OFD packet to send [23:54:27]OFD Sender: No OFD packet to send [23:54:32]OFD Sender: No OFD packet to send [23:54:37]OFD Sender: No OFD packet to send [23:54:42]OFD Sender: No OFD packet to send [23:54:47]OFD Sender: No OFD packet to send [23:54:52]OFD Sender: No OFD packet to send [23:54:57]OFD Sender: No OFD packet to send [23:55:02]OFD Sender: No OFD packet to send [23:55:07]OFD Sender: No OFD packet to send [23:55:12]OFD Sender: No OFD packet to send [23:55:17]OFD Sender: No OFD packet to send [23:55:22]OFD Sender: No OFD packet to send [23:55:27]OFD Sender: No OFD packet to send [23:55:32]OFD Sender: No OFD packet to send [23:55:37]OFD Sender: No OFD packet to send [23:55:42]OFD Sender: No OFD packet to send [23:55:47]OFD Sender: No OFD packet to send [23:55:52]OFD Sender: No OFD packet to send [23:55:57]OFD Sender: No OFD packet to send [23:56:02]OFD Sender: No OFD packet to send [23:56:07]OFD Sender: No OFD packet to send [23:56:12]OFD Sender: No OFD packet to send [23:56:17]OFD Sender: No OFD packet to send [23:56:22]OFD Sender: No OFD packet to send [23:56:27]OFD Sender: No OFD packet to send [23:56:32]OFD Sender: No OFD packet to send [23:56:37]OFD Sender: No OFD packet to send [23:56:42]OFD Sender: No OFD packet to send [23:56:47]OFD Sender: No OFD packet to send [23:56:52]OFD Sender: No OFD packet to send [23:56:57]OFD Sender: No OFD packet to send [23:57:02]OFD Sender: No OFD packet to send [23:57:07]OFD Sender: No OFD packet to send [23:57:12]OFD Sender: No OFD packet to send [23:57:17]OFD Sender: No OFD packet to send [23:57:22]OFD Sender: No OFD packet to send [23:57:27]OFD Sender: No OFD packet to send [23:57:32]OFD Sender: No OFD packet to send [23:57:37]OFD Sender: No OFD packet to send [23:57:42]OFD Sender: No OFD packet to send [23:57:47]OFD Sender: No OFD packet to send [23:57:52]OFD Sender: No OFD packet to send [23:57:57]OFD Sender: No OFD packet to send [23:58:02]OFD Sender: No OFD packet to send [23:58:07]OFD Sender: No OFD packet to send [23:58:12]OFD Sender: No OFD packet to send [23:58:17]OFD Sender: No OFD packet to send [23:58:22]OFD Sender: No OFD packet to send [23:58:27]OFD Sender: No OFD packet to send [23:58:32]OFD Sender: No OFD packet to send [23:58:37]OFD Sender: No OFD packet to send [23:59:52]MH_I2C_Read... [23:59:52]Read from MH i2c: E2 FD 00 [23:59:52]MH_I2C_Read... [23:59:52]Read from MH i2c: E2 FD 00 F6 8F 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 1E [23:59:52]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 [23:59:52]wFMCommunicate OK [23:59:52]wFMCommunicate request_size=4 [23:59:52]MH_SAM_APDU [23:59:52]CAPDU: 80 17 00 00 [23:59:52]Write to MH i2c: E2 08 00 F7 8F 80 17 00 00 00 00 00 00 06 [23:59:52]Write i2c OK [23:59:52]MH_I2C_Read... [23:59:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:52]Read from MH i2c: E2 [23:59:52]MH_I2C_Read... [23:59:52]Read from MH i2c: E2 FD 00 [23:59:52]MH_I2C_Read... [23:59:52]Read from MH i2c: E2 FD 00 F7 8F 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 BF [23:59:53]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [23:59:53]wFMCommunicate OK [23:59:53]wFMCommunicate request_size=4 [23:59:53]MH_SAM_APDU [23:59:53]CAPDU: 80 17 00 00 [23:59:53]Write to MH i2c: E2 08 00 F8 8F 80 17 00 00 00 00 00 00 07 [23:59:53]Write i2c OK [23:59:53]MH_I2C_Read... [23:59:53]OFD Sender: No OFD packet to send [23:59:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:53]Read from MH i2c: E2 [23:59:53]MH_I2C_Read... [23:59:53]Read from MH i2c: E2 FD 00 [23:59:53]MH_I2C_Read... [23:59:53]Read from MH i2c: E2 FD 00 F8 8F 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 90 00 7F [23:59:53]RAPDU: 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 90 00 [23:59:53]wFMCommunicate OK [23:59:53]wFMCommunicate request_size=4 [23:59:53]MH_SAM_APDU [23:59:53]CAPDU: 80 17 00 00 [23:59:53]Write to MH i2c: E2 08 00 F9 8F 80 17 00 00 00 00 00 00 08 [23:59:53]Write i2c OK [23:59:53]MH_I2C_Read... [23:59:53]ConnectInit Can't connect to host [23:59:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [23:59:53]Read from MH i2c: E2 [23:59:53]MH_I2C_Read... [23:59:53]Read from MH i2c: E2 CE 00 [23:59:53]MH_I2C_Read... [23:59:53]Read from MH i2c: E2 CE 00 F9 8F 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 ED [23:59:53]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:59:53]wFMCommunicate OK [23:59:53]SAM_PROTO_GetShiftData done [23:59:53]requested_item shift.sale.total_cash is exist - process it [23:59:53]requested_item shift.sale_refund.total is exist - process it [23:59:53]requested_item shift.sale_refund.total_cash is exist - process it [23:59:53]requested_item shift.buy.total is exist - process it [23:59:53]requested_item shift.buy.total_cash is exist - process it [23:59:53]produce_requested_data done [23:59:53]produce_requested_data return {"fm.sale.total":105166579.39,"fm.sale_refund.total":119944.00,"fm.buy.total":0.00,"shift.sale.total":222756.94,"shift.sale.total_cash":198565.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [23:59:53]process_action_free get_value [23:59:53]json_value_free [23:59:53]json_value_free done [23:59:53]process_json_proto returns [23:59:53]Send response to host [23:59:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":105166579.39,"fm.sale_refund.total":119944.00,"fm.buy.total":0.00,"shift.sale.total":222756.94,"shift.sale.total_cash":198565.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [23:59:53]free response buf [23:59:53]execute_script done [23:59:53]execute_script returns [23:59:53]free content buf [23:59:53]Sock 9.Close socket [23:59:53]Sock 9.Thread stoped [23:59:58]OFD Sender: No OFD packet to send [23:59:58]ConnectInit Can't connect to host [00:00:03]OFD Sender: No OFD packet to send [00:00:08]OFD Sender: No OFD packet to send [00:00:13]OFD Sender: No OFD packet to send [00:00:18]OFD Sender: No OFD packet to send [00:00:23]OFD Sender: No OFD packet to send [00:00:28]OFD Sender: No OFD packet to send [00:00:33]OFD Sender: No OFD packet to send [00:00:38]OFD Sender: No OFD packet to send [00:00:43]OFD Sender: No OFD packet to send [00:00:48]OFD Sender: No OFD packet to send [00:00:53]OFD Sender: No OFD packet to send [00:00:58]OFD Sender: No OFD packet to send [00:01:03]OFD Sender: No OFD packet to send [00:01:08]OFD Sender: No OFD packet to send [00:01:13]OFD Sender: No OFD packet to send [00:01:18]OFD Sender: No OFD packet to send [00:01:23]OFD Sender: No OFD packet to send [00:01:28]OFD Sender: No OFD packet to send [00:01:33]OFD Sender: No OFD packet to send [00:01:38]OFD Sender: No OFD packet to send [00:01:43]OFD Sender: No OFD packet to send [00:01:48]OFD Sender: No OFD packet to send [00:01:53]OFD Sender: No OFD packet to send [00:01:58]OFD Sender: No OFD packet to send [00:02:03]OFD Sender: No OFD packet to send [00:02:08]OFD Sender: No OFD packet to send [00:02:13]OFD Sender: No OFD packet to send [00:02:18]OFD Sender: No OFD packet to send [00:02:23]OFD Sender: No OFD packet to send [00:02:28]OFD Sender: No OFD packet to send [00:02:33]OFD Sender: No OFD packet to send [00:02:38]OFD Sender: No OFD packet to send [00:02:43]OFD Sender: No OFD packet to send [00:02:48]OFD Sender: No OFD packet to send [00:02:53]OFD Sender: No OFD packet to send [00:02:58]OFD Sender: No OFD packet to send [00:03:03]OFD Sender: No OFD packet to send [00:03:08]OFD Sender: No OFD packet to send [00:03:13]OFD Sender: No OFD packet to send [00:03:18]OFD Sender: No OFD packet to send [00:03:23]OFD Sender: No OFD packet to send [00:03:28]OFD Sender: No OFD packet to send [00:03:33]OFD Sender: No OFD packet to send [00:03:38]OFD Sender: No OFD packet to send [00:03:43]OFD Sender: No OFD packet to send [00:03:48]OFD Sender: No OFD packet to send [00:03:53]OFD Sender: No OFD packet to send [00:03:58]OFD Sender: No OFD packet to send [00:04:03]OFD Sender: No OFD packet to send [00:04:08]OFD Sender: No OFD packet to send [00:04:13]OFD Sender: No OFD packet to send [00:04:18]OFD Sender: No OFD packet to send [00:04:23]OFD Sender: No OFD packet to send [00:04:28]OFD Sender: No OFD packet to send [00:04:33]OFD Sender: No OFD packet to send [00:04:38]OFD Sender: No OFD packet to send [00:04:43]OFD Sender: No OFD packet to send [00:25:36]Malloc new data [00:25:36]Processing tag 1015 (03F7) [00:25:36]Malloc new data [00:25:36]SetTLVBufToDocument err=0 [00:25:36]Processing tag 1007 (03EF) [00:25:36]Load OK [00:25:36]SetTLVBufToDocument [00:25:36]Processing tag 1014 (03F6) [00:25:36]Malloc new data [00:25:36]Processing tag 1015 (03F7) [00:25:36]Malloc new data [00:25:36]SetTLVBufToDocument err=0 [00:25:36]Processing tag 1007 (03EF) [00:25:36]Load OK [00:25:36]SetTLVBufToDocument [00:25:36]Processing tag 1014 (03F6) [00:25:36]Malloc new data [00:25:36]Processing tag 1015 (03F7) [00:25:36]Malloc new data [00:25:36]SetTLVBufToDocument err=0 [00:25:36]Processing tag 1007 (03EF) [00:25:36]Load OK [00:25:36]SetTLVBufToDocument [00:25:36]Processing tag 1014 (03F6) [00:25:36]Malloc new data [00:25:36]Processing tag 1015 (03F7) [00:25:36]Malloc new data [00:25:36]SetTLVBufToDocument err=0 [00:25:36]Processing tag 1007 (03EF) [00:25:36]Load OK [00:25:36]SetTLVBufToDocument [00:25:36]Processing tag 1014 (03F6) [00:25:36]Malloc new data [00:25:36]Processing tag 1015 (03F7) [00:25:36]Malloc new data [00:25:36]SetTLVBufToDocument err=0 [00:25:36]Processing tag 1007 (03EF) [00:25:36]Load OK [00:25:36]SetTLVBufToDocument [00:25:36]Processing tag 1014 (03F6) [00:25:36]Malloc new data [00:25:36]Processing tag 1015 (03F7) [00:25:36]Malloc new data [00:25:36]SetTLVBufToDocument err=0 [00:25:36]Processing tag 1007 (03EF) [00:25:36]Load OK [00:25:36]SetTLVBufToDocument [00:25:36]Processing tag 1014 (03F6) [00:25:36]Malloc new data [00:25:36]Processing tag 1015 (03F7) [00:25:36]Malloc new data [00:25:36]SetTLVBufToDocument err=0 [00:25:36]SetTLVBufToDocument err=0 [00:25:36]SetTLVBufToDocument err=0 [00:25:36]Processing tag 1131 (046B) [00:25:36]Load OK [00:25:36]SetTLVBufToDocument [00:25:36]Processing tag 1135 (046F) [00:25:36]Malloc new data [00:25:36]Processing tag 1201 (04B1) [00:25:36]Malloc new data [00:25:36]Processing tag 1136 (0470) [00:25:36]Malloc new data [00:25:36]Processing tag 1138 (0472) [00:25:36]Malloc new data [00:25:36]Processing tag 1024 (0400) [00:25:36]Load OK [00:25:36]SetTLVBufToDocument [00:25:36]Processing tag 1006 (03EE) [00:25:36]Load OK [00:25:36]SetTLVBufToDocument [00:25:36]Processing tag 1010 (03F2) [00:25:36]Malloc new data [00:25:36]Processing tag 1011 (03F3) [00:25:36]Malloc new data [00:25:36]SetTLVBufToDocument err=0 [00:25:36]Processing tag 1006 (03EE) [00:25:36]Load OK [00:25:36]SetTLVBufToDocument [00:25:36]Processing tag 1010 (03F2) [00:25:36]Malloc new data [00:25:36]Processing tag 1011 (03F3) [00:25:36]Malloc new data [00:25:36]SetTLVBufToDocument err=0 [00:25:36]Processing tag 1007 (03EF) [00:25:36]Load OK [00:25:36]SetTLVBufToDocument [00:25:36]Processing tag 1014 (03F6) [00:25:36]Malloc new data [00:25:36]Processing tag 1015 (03F7) [00:25:36]Malloc new data [00:25:36]SetTLVBufToDocument err=0 [00:25:36]Processing tag 1007 (03EF) [00:25:36]Load OK [00:25:36]SetTLVBufToDocument [00:25:36]Processing tag 1014 (03F6) [00:25:36]Malloc new data [00:25:36]Processing tag 1015 (03F7) [00:25:36]Malloc new data [00:25:36]SetTLVBufToDocument err=0 [00:25:36]Processing tag 1007 (03EF) [00:25:36]Load OK [00:25:36]SetTLVBufToDocument [00:25:36]Processing tag 1014 (03F6) [00:25:36]Malloc new data [00:25:36]Processing tag 1015 (03F7) [00:25:36]Malloc new data [00:25:36]SetTLVBufToDocument err=0 [00:25:36]Processing tag 1007 (03EF) [00:25:36]Load OK [00:25:36]SetTLVBufToDocument [00:25:37]Processing tag 1014 (03F6) [00:25:37]Malloc new data [00:25:37]Processing tag 1015 (03F7) [00:25:37]Malloc new data [00:25:37]SetTLVBufToDocument err=0 [00:25:37]Processing tag 1007 (03EF) [00:25:37]Load OK [00:25:37]SetTLVBufToDocument [00:25:37]Processing tag 1014 (03F6) [00:25:37]Malloc new data [00:25:37]Processing tag 1015 (03F7) [00:25:37]Malloc new data [00:25:37]SetTLVBufToDocument err=0 [00:25:37]Processing tag 1007 (03EF) [00:25:37]Load OK [00:25:37]SetTLVBufToDocument [00:25:37]Processing tag 1014 (03F6) [00:25:37]Malloc new data [00:25:37]Processing tag 1015 (03F7) [00:25:37]Malloc new data [00:25:37]SetTLVBufToDocument err=0 [00:25:37]Processing tag 1007 (03EF) [00:25:37]Load OK [00:25:37]SetTLVBufToDocument [00:25:37]Processing tag 1014 (03F6) [00:25:37]Malloc new data [00:25:37]Processing tag 1015 (03F7) [00:25:37]Malloc new data [00:25:37]SetTLVBufToDocument err=0 [00:25:37]SetTLVBufToDocument err=0 [00:25:37]SetTLVBufToDocument err=0 [00:25:37]Processing tag 1132 (046C) [00:25:37]Load OK [00:25:37]SetTLVBufToDocument [00:25:37]Processing tag 1135 (046F) [00:25:37]Malloc new data [00:25:37]Processing tag 1201 (04B1) [00:25:37]Malloc new data [00:25:37]Processing tag 1136 (0470) [00:25:37]Malloc new data [00:25:37]Processing tag 1138 (0472) [00:25:37]Malloc new data [00:25:37]Processing tag 1024 (0400) [00:25:37]Load OK [00:25:37]SetTLVBufToDocument [00:25:37]Processing tag 1006 (03EE) [00:25:37]Load OK [00:25:37]SetTLVBufToDocument [00:25:37]Processing tag 1010 (03F2) [00:25:37]Malloc new data [00:25:37]Processing tag 1011 (03F3) [00:25:37]Malloc new data [00:25:37]SetTLVBufToDocument err=0 [00:25:37]Processing tag 1006 (03EE) [00:25:37]Load OK [00:25:37]SetTLVBufToDocument [00:25:37]Processing tag 1010 (03F2) [00:25:37]Malloc new data [00:25:37]Processing tag 1011 (03F3) [00:25:37]Malloc new data [00:25:37]SetTLVBufToDocument err=0 [00:25:37]Processing tag 1007 (03EF) [00:25:37]Load OK [00:25:37]SetTLVBufToDocument [00:25:37]Processing tag 1014 (03F6) [00:25:37]Malloc new data [00:25:37]Processing tag 1015 (03F7) [00:25:37]Malloc new data [00:25:37]SetTLVBufToDocument err=0 [00:25:37]Processing tag 1007 (03EF) [00:25:37]Load OK [00:25:37]SetTLVBufToDocument [00:25:37]Processing tag 1014 (03F6) [00:25:37]Malloc new data [00:25:37]Processing tag 1015 (03F7) [00:25:37]Malloc new data [00:25:37]SetTLVBufToDocument err=0 [00:25:37]Processing tag 1007 (03EF) [00:25:37]Load OK [00:25:37]SetTLVBufToDocument [00:25:37]Processing tag 1014 (03F6) [00:25:37]Malloc new data [00:25:37]Processing tag 1015 (03F7) [00:25:37]Malloc new data [00:25:37]SetTLVBufToDocument err=0 [00:25:37]Processing tag 1007 (03EF) [00:25:37]Load OK [00:25:37]SetTLVBufToDocument [00:25:37]Processing tag 1014 (03F6) [00:25:37]Malloc new data [00:25:37]Processing tag 1015 (03F7) [00:25:37]Malloc new data [00:25:37]SetTLVBufToDocument err=0 [00:25:37]Processing tag 1007 (03EF) [00:25:37]Load OK [00:25:37]SetTLVBufToDocument [00:25:37]Processing tag 1014 (03F6) [00:25:37]Malloc new data [00:25:37]Processing tag 1015 (03F7) [00:25:37]Malloc new data [00:25:37]SetTLVBufToDocument err=0 [00:25:37]Processing tag 1007 (03EF) [00:25:37]Load OK [00:25:37]SetTLVBufToDocument [00:25:37]Processing tag 1014 (03F6) [00:25:37]Malloc new data [00:25:37]Processing tag 1015 (03F7) [00:25:37]Malloc new data [00:25:37]SetTLVBufToDocument err=0 [00:25:37]Processing tag 1007 (03EF) [00:25:37]Load OK [00:25:37]SetTLVBufToDocument [00:25:37]Processing tag 1014 (03F6) [00:25:37]Malloc new data [00:25:37]Processing tag 1015 (03F7) [00:25:37]Malloc new data [00:25:37]SetTLVBufToDocument err=0 [00:25:37]SetTLVBufToDocument err=0 [00:25:37]SetTLVBufToDocument err=0 [00:25:37]Processing tag 1133 (046D) [00:25:37]Malloc new data [00:25:37]SetTLVBufToDocument err=0 [00:25:37]SetTLVBufToDocument err=0 [00:25:37]Malloc new data [00:25:37]SAM_PROTO_GetFMData [00:25:37]wFMCommunicate request_size=4 [00:25:37]MH_SAM_APDU [00:25:37]CAPDU: 80 13 03 00 [00:25:37]Write to MH i2c: E2 08 00 4B 00 80 13 03 00 00 00 00 00 CA [00:25:37]Write i2c OK [00:25:37]MH_I2C_Read... [00:25:37]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:25:37]Read from MH i2c: E2 [00:25:37]MH_I2C_Read... [00:25:37]Read from MH i2c: E2 FD 00 [00:25:37]MH_I2C_Read... [00:25:37]Read from MH i2c: E2 FD 00 4B 00 00 C2 04 85 04 BE 04 6E 04 04 00 3C 60 02 00 69 04 A3 00 6F 04 04 00 2D 60 02 00 B1 04 05 00 13 77 D7 72 02 70 04 05 00 B0 4F 86 31 02 72 04 04 00 63 27 51 41 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 11 A1 98 42 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 FC 9B 8C 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 99 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 20 05 B7 70 04 03 00 20 05 B7 72 04 00 00 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 B0 6F 13 EF 03 09 00 F6 03 90 00 5C [00:25:37]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 3C 60 02 00 69 04 A3 00 6F 04 04 00 2D 60 02 00 B1 04 05 00 13 77 D7 72 02 70 04 05 00 B0 4F 86 31 02 72 04 04 00 63 27 51 41 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 11 A1 98 42 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 FC 9B 8C 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 99 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 20 05 B7 70 04 03 00 20 05 B7 72 04 00 00 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 B0 6F 13 EF 03 09 00 F6 03 90 00 [00:25:37]wFMCommunicate OK [00:25:37]wFMCommunicate request_size=4 [00:25:37]MH_SAM_APDU [00:25:37]CAPDU: 80 17 00 00 [00:25:37]Write to MH i2c: E2 08 00 4C 00 80 17 00 00 00 00 00 00 CC [00:25:37]Write i2c OK [00:25:37]MH_I2C_Read... [00:25:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:38]Read from MH i2c: E2 [00:25:38]MH_I2C_Read... [00:25:38]Read from MH i2c: E2 FD 00 [00:25:38]MH_I2C_Read... [00:25:38]Read from MH i2c: E2 FD 00 4C 00 00 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 9E 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 3B [00:25:38]RAPDU: 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 9E 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 OFD Sender: No OFD packet to send [00:25:38]01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 [00:25:38]wFMCommunicate OK [00:25:38]wFMCommunicate request_size=4 [00:25:38]MH_SAM_APDU [00:25:38]CAPDU: 80 17 00 00 [00:25:38]Write to MH i2c: E2 08 00 4D 00 80 17 00 00 00 00 00 00 CD [00:25:38]Write i2c OK [00:25:38]MH_I2C_Read... [00:25:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:38]Read from MH i2c: E2 [00:25:38]MH_I2C_Read... [00:25:38]Read from MH i2c: E2 FD 00 [00:25:38]MH_I2C_Read... [00:25:38]Read from MH i2c: E2 FD 00 4D 00 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 90 00 7B [00:25:38]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 90 00 [00:25:38]wFMCommunicate OK [00:25:38]wFMCommunicate request_size=4 [00:25:38]MH_SAM_APDU [00:25:38]CAPDU: 80 17 00 00 [00:25:38]Write to MH i2c: E2 08 00 4E 00 80 17 00 00 00 00 00 00 CE [00:25:38]Write i2c OK [00:25:38]MH_I2C_Read... [00:25:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:39]Read from MH i2c: E2 [00:25:39]MH_I2C_Read... [00:25:39]Read from MH i2c: E2 FD 00 [00:25:39]MH_I2C_Read... [00:25:39]Read from MH i2c: E2 FD 00 4E 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 90 00 49 [00:25:39]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:25:39]wFMCommunicate OK [00:25:39]wFMCommunicate request_size=4 [00:25:39]MH_SAM_APDU [00:25:39]CAPDU: 80 17 00 00 [00:25:39]Write to MH i2c: E2 08 00 4F 00 80 17 00 00 00 00 00 00 CF [00:25:39]Write i2c OK [00:25:39]MH_I2C_Read... [00:25:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [00:25:39]Read from MH i2c: E2 [00:25:39]MH_I2C_Read... [00:25:39]Read from MH i2c: E2 DF 00 [00:25:39]MH_I2C_Read... [00:25:39]Read from MH i2c: E2 DF 00 4F 00 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 AF [00:25:39]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:25:39]wFMCommunicate OK [00:25:39]SAM_PROTO_GetFMData done [00:25:39]FM_GetFMData:85 04 BE 04 6E 04 04 00 3C 60 02 00 69 04 A3 00 6F 04 04 00 2D 60 02 00 B1 04 05 00 13 77 D7 72 02 70 04 05 00 B0 4F 86 31 02 72 04 04 00 63 27 51 41 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 11 A1 98 42 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 FC 9B 8C 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 ConnectInit Can't connect to host [00:25:39]01 00 06 F7 03 00 00 6A 04 99 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 20 05 B7 70 04 03 00 20 05 B7 72 04 00 00 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 B0 6F 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 9E 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:25:40]oper:6F 04 04 00 2D 60 02 00 B1 04 05 00 13 77 D7 72 02 70 04 05 00 B0 4F 86 31 02 72 04 04 00 63 27 51 41 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 11 A1 98 42 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 FC 9B 8C 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 [00:25:40]total:13 77 D7 72 02 [00:25:40]Malloc new data [00:25:40]oper:6F 04 04 00 0F 00 00 00 B1 04 03 00 20 05 B7 70 04 03 00 20 05 B7 72 04 00 00 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 B0 6F 13 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 9E 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:25:40]total:20 05 B7 [00:25:40]Malloc new data [00:25:40]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:25:40]total: [00:25:40]Malloc new data [00:25:40]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:25:40]total: [00:25:40]Malloc new data [00:25:40]KKMPrepareXReportFMData err=0 [00:25:40]Х отчет ИНН: 02508201610067 Кассир: Куранбаева Н. 28.10.2024 00:25 Смена: 522 РНМ: 0000000000091693 ЗНМ: 0300000096 СНО: Общий режим Всего чеков: 333 ИТОГИ ПРИХОД Чеков: 333 Общий итог: 222756.94 Итого наличными: 198565.00 Итого безнал.: 24191.94 НДС 0% : 0.00 НДС 12% : 23664.16 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 1972.08 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 Сумма внесений: 0.00 Сумма выплат: 0.00 Нал. в кассе: 198565.00 НС Приход: 105166579.39 НС Возвр.Прихода: 119944.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000871792 [00:25:40]StoreToDocumentArchive [00:25:40]MH_GetDate [00:25:40]Write to MH i2c: F0 00 00 50 00 3F [00:25:40]Write i2c OK [00:25:40]MH_I2C_Read... [00:25:40]Read from MH i2c: F0 [00:25:40]MH_I2C_Read... [00:25:40]Read from MH i2c: F0 09 00 [00:25:40]MH_I2C_Read... [00:25:40]Read from MH i2c: F0 09 00 50 00 00 04 DA 1E 67 50 D1 6C 64 9C [00:25:40]shift 522 fd 1730075140 [00:25:40]Create dir for shift 0522 [00:25:40]save to /storage/0522/doc_1730075140 [00:25:40]save last doc name /storage/0522/doc_1730075140 to /storage/kkm_last_doc_name [00:25:40]save OK [00:25:40]Clear old archive folders... [00:25:40]NVStorageSaveData kkm_last_timestamp [00:25:40]File name is /storage/kkm_last_timestamp [00:25:40]Write 4 bytes [00:25:40]NVStorageSaveData done [00:25:40]ExternCall_PrintAddStr [00:25:40]wPrintStart [00:25:40]Write to MH i2c: 01 00 00 51 00 51 [00:25:40]Write i2c OK [00:25:40]MH_I2C_Read... [00:25:40]Read from MH i2c: 01 [00:25:40]MH_I2C_Read... [00:25:40]Read from MH i2c: 01 07 00 [00:25:40]MH_I2C_Read... [00:25:40]Read from MH i2c: 01 07 00 51 00 00 00 00 00 00 FF 0F 66 [00:25:40]RasterBufferAndPrint [00:25:40]line Х отчет [00:25:40]line ИНН: 02508201610067 [00:25:40]line Кассир: Куранбаева Н. [00:25:40]line 28.10.2024 00:25 [00:25:40]line Смена: 522 [00:25:40]line РНМ: 0000000000091693 [00:25:40]line ЗНМ: 0300000096 [00:25:40]line СНО: Общий режим [00:25:40]line Всего чеков: 333 [00:25:40]line ИТОГИ ПРИХОД [00:25:40]line Чеков: 333 [00:25:40]line Общий итог: 222756.94 [00:25:40]line Итого наличными: 198565.00 [00:25:40]line Итого безнал.: 24191.94 [00:25:40]line НДС 0% : 0.00 [00:25:40]line НДС 12% : 23664.16 [00:25:40]line НСП 0% : 0.00 [00:25:40]line НСП 1,50% : 0.00 [00:25:40]line НСП 0,50% : 0.00 [00:25:40]line НСП 5% : 0.00 [00:25:40]line НСП 3% : 0.00 [00:25:40]line НСП 2% : 0.00 [00:25:40]line НСП 1% : 1972.08 [00:25:40]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:25:40]line Чеков: 0 [00:25:40]line Общий итог: 0.00 [00:25:40]line Итого наличными: 0.00 [00:25:40]line Итого безнал.: 0.00 [00:25:40]line НДС 0% : 0.00 [00:25:40]line НДС 12% : 0.00 [00:25:40]line НСП 0% : 0.00 [00:25:40]line НСП 1,50% : 0.00 [00:25:40]line НСП 0,50% : 0.00 [00:25:40]line НСП 5% : 0.00 [00:25:40]line НСП 3% : 0.00 [00:25:40]line НСП 2% : 0.00 [00:25:40]line НСП 1% : 0.00 [00:25:40]line ИТОГИ РАСХОД [00:25:40]line Чеков: 0 [00:25:40]line Общий итог: 0.00 [00:25:40]line Итого наличными: 0.00 [00:25:40]line Итого безнал.: 0.00 [00:25:40]line НДС 0% : 0.00 [00:25:40]line НДС 12% : 0.00 [00:25:40]line НСП 0% : 0.00 [00:25:40]line НСП 1,50% : 0.00 [00:25:40]line НСП 0,50% : 0.00 [00:25:40]line НСП 5% : 0.00 [00:25:40]line НСП 3% : 0.00 [00:25:40]line НСП 2% : 0.00 [00:25:40]line НСП 1% : 0.00 [00:25:40]line ИТОГИ ВОЗВРАТ РАСХОДА [00:25:40]line Чеков: 0 [00:25:40]line Общий итог: 0.00 [00:25:40]line Итого наличными: 0.00 [00:25:40]line Итого безнал.: 0.00 [00:25:40]line НДС 0% : 0.00 [00:25:40]line НДС 12% : 0.00 [00:25:40]line НСП 0% : 0.00 [00:25:40]line НСП 1,50% : 0.00 [00:25:40]line НСП 0,50% : 0.00 [00:25:40]line НСП 5% : 0.00 [00:25:40]line НСП 3% : 0.00 [00:25:40]line НСП 2% : 0.00 [00:25:40]line НСП 1% : 0.00 [00:25:40]line Сумма внесений: 0.00 [00:25:40]line Сумма выплат: 0.00 [00:25:40]line Нал. в кассе: 198565.00 [00:25:40]line НС Приход: 105166579.39 [00:25:40]line НС Возвр.Прихода: 119944.00 [00:25:40]line НС Расход: 0.00 [00:25:40]line НС Возвр.Расхода: 0.00 [00:25:40]line ФМ: 0000000000871792 [00:25:40]written 0, free lines is 4095 [00:25:41]Write to MH i2c: 01 00 00 9C 00 9C [00:25:41]Write i2c OK [00:25:41]MH_I2C_Read... [00:25:41]Read from MH i2c: 01 [00:25:41]MH_I2C_Read... [00:25:41]Read from MH i2c: 01 07 00 [00:25:41]MH_I2C_Read... [00:25:41]Read from MH i2c: 01 07 00 9C 00 00 00 00 00 00 AC 0A 59 [00:25:41]RasterBufferAndPrint [00:25:41]line [00:25:41]line [00:25:41]line [00:25:41]line [00:25:41]line [00:25:41]written 0, free lines is 2765 [00:25:41]process_action x_report done [00:25:41]requested_data is exist [00:25:41]produce_requested_data [00:25:41]requested_item fd.num is exist - process it [00:25:41]SAM_PROTO_GetFieldsCounters [00:25:41]wFMCommunicate request_size=4 [00:25:41]MH_SAM_APDU [00:25:41]CAPDU: 80 13 00 00 [00:25:41]Write to MH i2c: E2 08 00 A3 00 80 13 00 00 00 00 00 00 1F [00:25:41]Write i2c OK [00:25:41]MH_I2C_Read... [00:25:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:25:41]Read from MH i2c: E2 [00:25:41]MH_I2C_Read... [00:25:41]Read from MH i2c: E2 62 00 [00:25:41]MH_I2C_Read... [00:25:41]Read from MH i2c: E2 62 00 A3 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 6E 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 4D 01 00 00 5E 04 04 00 4D 01 00 00 57 04 04 00 4E 01 00 00 19 04 04 00 00 00 00 00 90 00 1E [00:25:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 6E 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 4D 01 00 00 5E 04 04 00 4D 01 00 00 57 04 04 00 4E 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:25:42]wFMCommunicate OK [00:25:42]SAM_PROTO_GetFieldsCounters done [00:25:42]requested_item shift.num is exist - process it [00:25:42]requested_item shift.opened is exist - process it [00:25:42]req_shift_opened [00:25:42]FM_GetShiftState [00:25:42]SAM_PROTO_GetShiftState [00:25:42]wFMCommunicate request_size=4 [00:25:42]MH_SAM_APDU [00:25:42]CAPDU: 80 13 01 00 [00:25:42]Write to MH i2c: E2 08 00 A4 00 80 13 01 00 00 00 00 00 21 [00:25:42]Write i2c OK [00:25:42]MH_I2C_Read... [00:25:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:25:42]Read from MH i2c: E2 [00:25:42]MH_I2C_Read... [00:25:42]Read from MH i2c: E2 0E 00 [00:25:42]MH_I2C_Read... [00:25:42]Read from MH i2c: E2 0E 00 A4 00 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 EE [00:25:42]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [00:25:42]wFMCommunicate OK [00:25:42]SAM_PROTO_GetShiftState done [00:25:42]FM_GetShiftState done [00:25:42]req_shift_opened done [00:25:42]requested_item shift.open_date is exist - process it [00:25:42]req_shift_open_date [00:25:42]req_shift_open_date done [00:25:42]produce_requested_data done [00:25:42]produce_requested_data return {"fd.num":156782,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [00:25:42]process_action_free x_report [00:25:42]json_value_free [00:25:42]json_value_free done [00:25:42]process_json_proto returns [00:25:42]Send response to host [00:25:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":156782,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [00:25:42]free response buf [00:25:42]execute_script done [00:25:42]execute_script returns [00:25:42]free content buf [00:25:42]Sock 7.Close socket [00:25:42]Sock 7.Thread stoped [00:25:43]OFD Sender: No OFD packet to send [00:25:44]ConnectInit Can't connect to host [00:25:48]OFD Sender: No OFD packet to send [00:25:49]ConnectInit Can't connect to host [00:25:51]accept exits with 9 [00:25:51]New connection [00:25:51]New thread 3066748260 created [00:25:51]Thread 3066604900 joined [00:25:51]Waiting for new connection... [00:25:51] Sock 9.Parse request [00:25:51]Sock 9.Check first char [00:25:51]Sock 9.First char is OK [00:25:51]request: POST /json_proto HTTP/1.0 [00:25:51]Method: POST [00:25:51]URL: /json_proto [00:25:51]Method is POST - this is cgi request [00:25:51]url: /json_proto [00:25:51]query_string will be loaded in cgi processing [00:25:51]execute_cgi json_proto POST (null) [00:25:51]execute_cgi path=json_proto method=POST [00:25:51]POST find Content-Length [00:25:51]Host: 172.17.63.3:8080 [00:25:51]Content-Length: 215 [00:25:51]Content-Type: application/json [00:25:51] [00:25:51]POST finish read [00:25:51]Found Content-Length = 215 [00:25:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:25:51]execute_script... [00:25:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:25:51]POST & json_proto [00:25:51]process_json_proto [00:25:51]json parsed OK: [00:25:51]protocol is kg_v1.0 [00:25:51]action value=get_value [00:25:51]process_action get_value [00:25:51]cmd_get_value [00:25:51]process_action get_value done [00:25:51]requested_data is exist [00:25:51]produce_requested_data [00:25:51]requested_item kkm.sn is exist - process it [00:25:51]requested_item kkm.ver is exist - process it [00:25:51]requested_item fm.sn is exist - process it [00:25:51]wFMCommunicate request_size=4 [00:25:51]MH_SAM_APDU [00:25:51]CAPDU: 80 11 00 00 [00:25:51]Write to MH i2c: E2 08 00 A5 00 80 11 00 00 00 00 00 00 1F [00:25:51]Write i2c OK [00:25:51]MH_I2C_Read... [00:25:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:25:51]Read from MH i2c: E2 [00:25:51]MH_I2C_Read... [00:25:51]Read from MH i2c: E2 17 00 [00:25:51]MH_I2C_Read... [00:25:51]Read from MH i2c: E2 17 00 A5 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 74 [00:25:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [00:25:51]wFMCommunicate OK [00:25:51]requested_item fd.num is exist - process it [00:25:51]SAM_PROTO_GetFieldsCounters [00:25:51]wFMCommunicate request_size=4 [00:25:51]MH_SAM_APDU [00:25:51]CAPDU: 80 13 00 00 [00:25:51]Write to MH i2c: E2 08 00 A6 00 80 13 00 00 00 00 00 00 22 [00:25:51]Write i2c OK [00:25:51]MH_I2C_Read... [00:25:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:25:51]Read from MH i2c: E2 [00:25:51]MH_I2C_Read... [00:25:51]Read from MH i2c: E2 62 00 [00:25:51]MH_I2C_Read... [00:25:51]Read from MH i2c: E2 62 00 A6 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 6E 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 4D 01 00 00 5E 04 04 00 4D 01 00 00 57 04 04 00 4E 01 00 00 19 04 04 00 00 00 00 00 90 00 21 [00: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 6E 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 4D 01 00 00 5E 04 04 00 4D 01 00 00 57 04 04 00 4E 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:25:52]wFMCommunicate OK [00:25:52]SAM_PROTO_GetFieldsCounters done [00:25:52]requested_item shift.num is exist - process it [00:25:52]requested_item shift.opened is exist - process it [00:25:52]req_shift_opened [00:25:52]FM_GetShiftState [00:25:52]SAM_PROTO_GetShiftState [00:25:52]wFMCommunicate request_size=4 [00:25:52]MH_SAM_APDU [00:25:52]CAPDU: 80 13 01 00 [00:25:52]Write to MH i2c: E2 08 00 A7 00 80 13 01 00 00 00 00 00 24 [00:25:52]Write i2c OK [00:25:52]MH_I2C_Read... [00:25:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:25:52]Read from MH i2c: E2 [00:25:52]MH_I2C_Read... [00:25:52]Read from MH i2c: E2 0E 00 [00:25:52]MH_I2C_Read... [00:25:52]Read from MH i2c: E2 0E 00 A7 00 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 F1 [00:25:52]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [00:25:52]wFMCommunicate OK [00:25:52]SAM_PROTO_GetShiftState done [00:25:52]FM_GetShiftState done [00:25:52]req_shift_opened done [00:25:52]requested_item shift.open_date is exist - process it [00:25:52]req_shift_open_date [00:25:52]req_shift_open_date done [00:25:52]produce_requested_data done [00:25:52]produce_requested_data return {"kkm.sn":"0300000096","kkm.ver":"001","fm.sn":"0000000000871792","fd.num":156782,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044} [00:25:52]process_action_free get_value [00:25:52]json_value_free [00:25:52]json_value_free done [00:25:52]process_json_proto returns [00:25:52]Send response to host [00:25:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000096","kkm.ver":"001","fm.sn":"0000000000871792","fd.num":156782,"shift.num":537,"shift.opened":1,"shift.open_date":1729989044}}} [00:25:52]free response buf [00:25:52]execute_script done [00:25:52]execute_script returns [00:25:52]free content buf [00:25:52]Sock 9.Close socket [00:25:52]Sock 9.Thread stoped [00:25:52]accept exits with 7 [00:25:52]New connection [00:25:52]New thread 3066604900 created [00:25:52]Thread 3066748260 joined [00:25:52]Waiting for new connection... [00:25:52] Sock 7.Parse request [00:25:52]Sock 7.Check first char [00:25:52]Sock 7.First char is OK [00:25:52]request: POST /json_proto HTTP/1.0 [00:25:52]Method: POST [00:25:52]URL: /json_proto [00:25:52]Method is POST - this is cgi request [00:25:52]url: /json_proto [00:25:52]query_string will be loaded in cgi processing [00:25:52]execute_cgi json_proto POST (null) [00:25:52]execute_cgi path=json_proto method=POST [00:25:52]POST find Content-Length [00:25:52]Host: 172.17.63.3:8080 [00:25:52]Content-Length: 331 [00:25:52]Content-Type: application/json [00:25:52] [00:25:52]POST finish read [00:25:52]Found Content-Length = 331 [00:25:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:25:52]execute_script... [00:25:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:25:52]POST & json_proto [00:25:52]process_json_proto [00:25:52]json parsed OK: [00:25:52]protocol is kg_v1.0 [00:25:52]action value=get_value [00:25:52]process_action get_value [00:25:52]cmd_get_value [00:25:52]process_action get_value done [00:25:52]requested_data is exist [00:25:52]produce_requested_data [00:25:52]requested_item fm.sale.total is exist - process it [00:25:52]SAM_PROTO_GetFMData [00:25:52]wFMCommunicate request_size=4 [00:25:52]MH_SAM_APDU [00:25:52]CAPDU: 80 13 03 00 [00:25:52]Write to MH i2c: E2 08 00 A8 00 80 13 03 00 00 00 00 00 27 [00:25:52]Write i2c OK [00:25:52]MH_I2C_Read... [00:25:52]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:25:52]Read from MH i2c: E2 [00:25:52]MH_I2C_Read... [00:25:52]Read from MH i2c: E2 FD 00 [00:25:52]MH_I2C_Read... [00:25:52]Read from MH i2c: E2 FD 00 A8 00 00 C2 04 85 04 BE 04 6E 04 04 00 3C 60 02 00 69 04 A3 00 6F 04 04 00 2D 60 02 00 B1 04 05 00 13 77 D7 72 02 70 04 05 00 B0 4F 86 31 02 72 04 04 00 63 27 51 41 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 11 A1 98 42 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 FC 9B 8C 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 99 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 20 05 B7 70 04 03 00 20 05 B7 72 04 00 00 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 B0 6F 13 EF 03 09 00 F6 03 90 00 B9 [00:25:52]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 3C 60 02 00 69 04 A3 00 6F 04 04 00 2D 60 02 00 B1 04 05 00 13 77 D7 72 02 70 04 05 00 B0 4F 86 31 02 72 04 04 00 63 27 51 41 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 11 A1 98 42 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 FC 9B 8C 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 99 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 20 05 B7 70 04 03 00 20 05 B7 72 04 00 00 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 B0 6F 13 EF 03 09 00 F6 03 90 00 [00:25:52]wFMCommunicate OK [00:25:52]wFMCommunicate request_size=4 [00:25:52]MH_SAM_APDU [00:25:52]CAPDU: 80 17 00 00 [00:25:52]Write to MH i2c: E2 08 00 A9 00 80 17 00 00 00 00 00 00 29 [00:25:52]Write i2c OK [00:25:52]MH_I2C_Read... [00:25:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:53]Read from MH i2c: E2 [00:25:53]MH_I2C_Read... [00:25:53]Read from MH i2c: E2 FD 00 [00:25:53]MH_I2C_Read... [00:25:53]Read from MH i2c: E2 FD 00 A9 00 00 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 9E 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 98 [00:25:53]RAPDU: 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 9E 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 [00:25:53]wFMCommunicate OK [00:25:53]wFMCommunicate request_size=4 [00:25:53]MH_SAM_APDU [00:25:53]CAPDU: 80 17 00 00 [00:25:53]Write to MH i2c: E2 08 OFD Sender: No OFD packet to send [00:25:53]00 AA 00 80 17 00 00 00 00 00 00 2A [00:25:53]Write i2c OK [00:25:53]MH_I2C_Read... [00:25:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:53]Read from MH i2c: E2 [00:25:53]MH_I2C_Read... [00:25:53]Read from MH i2c: E2 FD 00 [00:25:53]MH_I2C_Read... [00:25:53]Read from MH i2c: E2 FD 00 AA 00 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 90 00 D8 [00:25:53]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 90 00 [00:25:53]wFMCommunicate OK [00:25:53]wFMCommunicate request_size=4 [00:25:53]MH_SAM_APDU [00:25:53]CAPDU: 80 17 00 00 [00:25:53]Write to MH i2c: E2 08 00 AB 00 80 17 00 00 00 00 00 00 2B [00:25:53]Write i2c OK [00:25:53]MH_I2C_Read... [00:25:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:54]Read from MH i2c: E2 [00:25:54]MH_I2C_Read... [00:25:54]Read from MH i2c: E2 FD 00 [00:25:54]MH_I2C_Read... [00:25:54]Read from MH i2c: E2 FD 00 AB 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 90 00 A6 [00:25:54]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:25:54]wFMCommunicate OK [00:25:54]wFMCommunicate request_size=4 [00:25:54]MH_SAM_APDU [00:25:54]CAPDU: 80 17 00 00 [00:25:54]Write to MH i2c: E2 08 00 AC 00 80 17 00 00 00 00 00 00 2C [00:25:54]Write i2c OK [00:25:54]MH_I2C_Read... [00:25:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [00:25:54]Read from MH i2c: E2 [00:25:54]MH_I2C_Read... [00:25:54]Read from MH i2c: E2 DF 00 [00:25:54]MH_I2C_Read... [00:25:54]Read from MH i2c: E2 DF 00 AC 00 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 0C [00:25:54]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:25:55]wFMCommunicate OK [00:25:55]SAM_PROTO_GetFMData done [00:25:55]requested_item fm.sale_refund.total is exist - process it [00:25:55]requested_item fm.buy.total is exist - process it [00:25:55]requested_item shift.sale.total is exist - process it [00:25:55]SAM_PROTO_GetShiftData [00:25:55]wFMCommunicate request_size=4 [00:25:55]MH_SAM_APDU [00:25:55]CAPDU: 80 13 02 00 [00:25:55]Write to MH i2c: E2 08 00 AD 00 80 13 02 00 00 00 00 00 2B [00:25:55]ConnectInit Can't connect to host [00:25:55]Write i2c OK [00:25:55]MH_I2C_Read... [00:25:55]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:25:55]Read from MH i2c: E2 [00:25:55]MH_I2C_Read... [00:25:55]Read from MH i2c: E2 FD 00 [00:25:55]MH_I2C_Read... [00:25:55]Read from MH i2c: E2 FD 00 AD 00 00 B1 04 AA 04 AD 04 6E 04 04 00 4D 01 00 00 69 04 9E 00 6F 04 04 00 4D 01 00 00 B1 04 04 00 6E E6 53 01 70 04 04 00 74 FC 2E 01 72 04 03 00 FA E9 24 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 D0 1B 24 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 02 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 58 [00:25:55]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 4D 01 00 00 69 04 9E 00 6F 04 04 00 4D 01 00 00 B1 04 04 00 6E E6 53 01 70 04 04 00 74 FC 2E 01 72 04 03 00 FA E9 24 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 D0 1B 24 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 02 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:25:55]wFMCommunicate OK [00:25:55]wFMCommunicate request_size=4 [00:25:55]MH_SAM_APDU [00:25:55]CAPDU: 80 17 00 00 [00:25:55]Write to MH i2c: E2 08 00 AE 00 80 17 00 00 00 00 00 00 2E [00:25:55]Write i2c OK [00:25:55]MH_I2C_Read... [00:25:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:56]Read from MH i2c: E2 [00:25:56]MH_I2C_Read... [00:25:56]Read from MH i2c: E2 FD 00 [00:25:56]MH_I2C_Read... [00:25:56]Read from MH i2c: E2 FD 00 AE 00 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 47 [00:25:56]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 [00:25:56]wFMCommunicate OK [00:25:56]wFMCommunicate request_size=4 [00:25:56]MH_SAM_APDU [00:25:56]CAPDU: 80 17 00 00 [00:25:56]Write to MH i2c: E2 08 00 AF 00 80 17 00 00 00 00 00 00 2F [00:25:56]Write i2c OK [00:25:56]MH_I2C_Read... [00:25:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:56]Read from MH i2c: E2 [00:25:56]MH_I2C_Read... [00:25:56]Read from MH i2c: E2 FD 00 [00:25:56]MH_I2C_Read... [00:25:56]Read from MH i2c: E2 FD 00 AF 00 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 E8 [00:25:56]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:25:56]wFMCommunicate OK [00:25:56]wFMCommunicate request_size=4 [00:25:56]MH_SAM_APDU [00:25:56]CAPDU: 80 17 00 00 [00:25:56]Write to MH i2c: E2 08 00 B0 00 80 17 00 00 00 00 00 00 30 [00:25:56]Write i2c OK [00:25:56]MH_I2C_Read... [00:25:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:57]Read from MH i2c: E2 [00:25:57]MH_I2C_Read... [00:25:57]Read from MH i2c: E2 FD 00 [00:25:57]MH_I2C_Read... [00:25:57]Read from MH i2c: E2 FD 00 B0 00 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 90 00 A8 [00:25:57]RAPDU: 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 90 00 [00:25:57]wFMCommunicate OK [00:25:57]wFMCommunicate request_size=4 [00:25:57]MH_SAM_APDU [00:25:57]CAPDU: 80 17 00 00 [00:25:57]Write to MH i2c: E2 08 00 B1 00 80 17 00 00 00 00 00 00 31 [00:25:57]Write i2c OK [00:25:57]MH_I2C_Read... [00:25:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:25:57]Read from MH i2c: E2 [00:25:57]MH_I2C_Read... [00:25:57]Read from MH i2c: E2 CE 00 [00:25:57]MH_I2C_Read... [00:25:57]Read from MH i2c: E2 CE 00 B1 00 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 16 [00:25:57]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:25:57]wFMCommunicate OK [00:25:57]SAM_PROTO_GetShiftData done [00:25:57]requested_item shift.sale.total_cash is exist - process it [00:25:57]requested_item shift.sale_refund.total is exist - process it [00:25:57]requested_item shift.sale_refund.total_cash is exist - process it [00:25:57]requested_item shift.buy.total is exist - process it [00:25:57]requested_item shift.buy.total_cash is exist - process it [00:25:57]produce_requested_data done [00:25:57]produce_requested_data return {"fm.sale.total":105166579.39,"fm.sale_refund.total":119944.00,"fm.buy.total":0.00,"shift.sale.total":222756.94,"shift.sale.total_cash":198565.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:25:57]process_action_free get_value [00:25:57]json_value_free [00:25:57]json_value_free done [00:25:57]process_json_proto returns [00:25:57]Send response to host [00:25:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":105166579.39,"fm.sale_refund.total":119944.00,"fm.buy.total":0.00,"shift.sale.total":222756.94,"shift.sale.total_cash":198565.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:25:57]free response buf [00:25:57]execute_script done [00:25:57]execute_script returns [00:25:57]free content buf [00:25:57]Sock 7.Close socket [00:25:57]Sock 7.Thread stoped [00:25:57]accept exits with 9 [00:25:57]New connection [00:25:57]New thread 3066748260 created [00:25:57]Thread 3066604900 joined [00:25:57]Waiting for new connection... [00:25:57] Sock 9.Parse request [00:25:57]Sock 9.Check first char [00:25:57]Sock 9.First char is OK [00:25:57]request: POST /json_proto HTTP/1.0 [00:25:57]Method: POST [00:25:57]URL: /json_proto [00:25:57]Method is POST - this is cgi request [00:25:57]url: /json_proto [00:25:57]query_string will be loaded in cgi processing [00:25:57]execute_cgi json_proto POST (null) [00:25:57]execute_cgi path=json_proto method=POST [00:25:57]POST find Content-Length [00:25:57]Host: 172.17.63.3:8080 [00:25:57]Content-Length: 331 [00:25:57]Content-Type: application/json [00:25:57] [00:25:57]POST finish read [00:25:57]Found Content-Length = 331 [00:25:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:25:57]execute_script... [00:25:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:25:57]POST & json_proto [00:25:57]process_json_proto [00:25:57]json parsed OK: [00:25:57]protocol is kg_v1.0 [00:25:57]action value=get_value [00:25:57]process_action get_value [00:25:57]cmd_get_value [00:25:57]process_action get_value done [00:25:57]requested_data is exist [00:25:57]produce_requested_data [00:25:57]requested_item fm.sale.total is exist - process it [00:25:57]SAM_PROTO_GetFMData [00:25:57]wFMCommunicate request_size=4 [00:25:57]MH_SAM_APDU [00:25:57]CAPDU: 80 13 03 00 [00:25:57]Write to MH i2c: E2 08 00 B2 00 80 13 03 00 00 00 00 00 31 [00:25:57]Write i2c OK [00:25:57]MH_I2C_Read... [00:25:58]Read from MH i2c: E2 [00:25:58]MH_I2C_Read... [00:25:58]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:25:58]Read from MH i2c: E2 FD 00 [00:25:58]MH_I2C_Read... [00:25:58]Read from MH i2c: E2 FD 00 B2 00 00 C2 04 85 04 BE 04 6E 04 04 00 3C 60 02 00 69 04 A3 00 6F 04 04 00 2D 60 02 00 B1 04 05 00 13 77 D7 72 02 70 04 05 00 B0 4F 86 31 02 72 04 04 00 63 27 51 41 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 11 A1 98 42 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 FC 9B 8C 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 99 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 20 05 B7 70 04 03 00 20 05 B7 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 OFD Sender: No OFD packet to send [00:25:58]00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 B0 6F 13 EF 03 09 00 F6 03 90 00 C3 [00:25:58]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 3C 60 02 00 69 04 A3 00 6F 04 04 00 2D 60 02 00 B1 04 05 00 13 77 D7 72 02 70 04 05 00 B0 4F 86 31 02 72 04 04 00 63 27 51 41 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 11 A1 98 42 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 FC 9B 8C 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 99 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 20 05 B7 70 04 03 00 20 05 B7 72 04 00 00 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 B0 6F 13 EF 03 09 00 F6 03 90 00 [00:25:58]wFMCommunicate OK [00:25:58]wFMCommunicate request_size=4 [00:25:58]MH_SAM_APDU [00:25:58]CAPDU: 80 17 00 00 [00:25:58]Write to MH i2c: E2 08 00 B3 00 80 17 00 00 00 00 00 00 33 [00:25:58]Write i2c OK [00:25:58]MH_I2C_Read... [00:25:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:59]Read from MH i2c: E2 [00:25:59]MH_I2C_Read... [00:25:59]Read from MH i2c: E2 FD 00 [00:25:59]MH_I2C_Read... [00:25:59]Read from MH i2c: E2 FD 00 B3 00 00 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 9E 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 A2 [00:25:59]RAPDU: 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 9E 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 [00:25:59]wFMCommunicate OK [00:25:59]wFMCommunicate request_size=4 [00:25:59]MH_SAM_APDU [00:25:59]CAPDU: 80 17 00 00 [00:25:59]Write to MH i2c: E2 08 00 B4 00 80 17 00 00 00 00 00 00 34 [00:25:59]Write i2c OK [00:25:59]MH_I2C_Read... [00:25:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:25:59]Read from MH i2c: E2 [00:25:59]MH_I2C_Read... [00:25:59]Read from MH i2c: E2 FD 00 [00:25:59]MH_I2C_Read... [00:25:59]Read from MH i2c: E2 FD 00 B4 00 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 90 00 E2 [00:25:59]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 90 00 [00:26:00]wFMCommunicate OK [00:26:00]wFMCommunicate request_size=4 [00:26:00]MH_SAM_APDU [00:26:00]CAPDU: 80 17 00 00 [00:26:00]Write to MH i2c: E2 08 00 B5 00 80 17 00 00 00 00 00 00 35 [00:26:00]Write i2c OK [00:26:00]MH_I2C_Read... [00:26:00]ConnectInit Can't connect to host [00:26:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:00]Read from MH i2c: E2 [00:26:00]MH_I2C_Read... [00:26:00]Read from MH i2c: E2 FD 00 [00:26:00]MH_I2C_Read... [00:26:00]Read from MH i2c: E2 FD 00 B5 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 90 00 B0 [00:26:00]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:26:00]wFMCommunicate OK [00:26:00]wFMCommunicate request_size=4 [00:26:00]MH_SAM_APDU [00:26:00]CAPDU: 80 17 00 00 [00:26:00]Write to MH i2c: E2 08 00 B6 00 80 17 00 00 00 00 00 00 36 [00:26:00]Write i2c OK [00:26:00]MH_I2C_Read... [00:26:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [00:26:00]Read from MH i2c: E2 [00:26:00]MH_I2C_Read... [00:26:00]Read from MH i2c: E2 DF 00 [00:26:00]MH_I2C_Read... [00:26:00]Read from MH i2c: E2 DF 00 B6 00 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 16 [00:26:00]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:26:01]wFMCommunicate OK [00:26:01]SAM_PROTO_GetFMData done [00:26:01]requested_item fm.sale_refund.total is exist - process it [00:26:01]requested_item fm.buy.total is exist - process it [00:26:01]requested_item shift.sale.total is exist - process it [00:26:01]SAM_PROTO_GetShiftData [00:26:01]wFMCommunicate request_size=4 [00:26:01]MH_SAM_APDU [00:26:01]CAPDU: 80 13 02 00 [00:26:01]Write to MH i2c: E2 08 00 B7 00 80 13 02 00 00 00 00 00 35 [00:26:01]Write i2c OK [00:26:01]MH_I2C_Read... [00:26:01]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:26:01]Read from MH i2c: E2 [00:26:01]MH_I2C_Read... [00:26:01]Read from MH i2c: E2 FD 00 [00:26:01]MH_I2C_Read... [00:26:01]Read from MH i2c: E2 FD 00 B7 00 00 B1 04 AA 04 AD 04 6E 04 04 00 4D 01 00 00 69 04 9E 00 6F 04 04 00 4D 01 00 00 B1 04 04 00 6E E6 53 01 70 04 04 00 74 FC 2E 01 72 04 03 00 FA E9 24 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 D0 1B 24 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 02 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 62 [00:26:01]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 4D 01 00 00 69 04 9E 00 6F 04 04 00 4D 01 00 00 B1 04 04 00 6E E6 53 01 70 04 04 00 74 FC 2E 01 72 04 03 00 FA E9 24 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 D0 1B 24 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 02 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:26:01]wFMCommunicate OK [00:26:01]wFMCommunicate request_size=4 [00:26:01]MH_SAM_APDU [00:26:01]CAPDU: 80 17 00 00 [00:26:01]Write to MH i2c: E2 08 00 B8 00 80 17 00 00 00 00 00 00 38 [00:26:01]Write i2c OK [00:26:01]MH_I2C_Read... [00:26:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:02]Read from MH i2c: E2 [00:26:02]MH_I2C_Read... [00:26:02]Read from MH i2c: E2 FD 00 [00:26:02]MH_I2C_Read... [00:26:02]Read from MH i2c: E2 FD 00 B8 00 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 51 [00:26:02]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 [00:26:02]wFMCommunicate OK [00:26:02]wFMCommunicate request_size=4 [00:26:02]MH_SAM_APDU [00:26:02]CAPDU: 80 17 00 00 [00:26:02]Write to MH i2c: E2 08 00 B9 00 80 17 00 00 00 00 00 00 39 [00:26:02]Write i2c OK [00:26:02]MH_I2C_Read... [00:26:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:02]Read from MH i2c: E2 [00:26:02]MH_I2C_Read... [00:26:02]Read from MH i2c: E2 FD 00 [00:26:02]MH_I2C_Read... [00:26:02]Read from MH i2c: E2 FD 00 B9 00 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 F2 [00:26:02]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:26:03]wFMCommunicate OK [00:26:03]wFMCommunicate request_size=4 [00:26:03]MH_SAM_APDU [00:26:03]CAPDU: 80 17 00 00 [00:26:03]Write to MH i2c: E2 08 00 BA 00 80 17 00 00 00 00 00 00 3A [00:26:03]Write i2c OK [00:26:03]MH_I2C_Read... [00:26:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:03]Read from MH i2c: E2 [00:26:03]MH_I2C_Read... [00:26:03]Read from MH i2c: E2 FD 00 [00:26:03]MH_I2C_Read... [00:26:03]Read from MH i2c: E2 FD 00 BA 00 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 90 00 B2 [00:26:03]RAPDU: 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 OFD Sender: No OFD packet to send [00:26:03]72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:26:03]wFMCommunicate OK [00:26:03]wFMCommunicate request_size=4 [00:26:03]MH_SAM_APDU [00:26:03]CAPDU: 80 17 00 00 [00:26:03]Write to MH i2c: E2 08 00 BB 00 80 17 00 00 00 00 00 00 3B [00:26:03]Write i2c OK [00:26:03]MH_I2C_Read... [00:26:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:26:04]Read from MH i2c: E2 [00:26:04]MH_I2C_Read... [00:26:04]Read from MH i2c: E2 CE 00 [00:26:04]MH_I2C_Read... [00:26:04]Read from MH i2c: E2 CE 00 BB 00 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 20 [00:26:04]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:26:04]wFMCommunicate OK [00:26:04]SAM_PROTO_GetShiftData done [00:26:04]requested_item shift.sale.total_cash is exist - process it [00:26:04]requested_item shift.sale_refund.total is exist - process it [00:26:04]requested_item shift.sale_refund.total_cash is exist - process it [00:26:04]requested_item shift.buy.total is exist - process it [00:26:04]requested_item shift.buy.total_cash is exist - process it [00:26:04]produce_requested_data done [00:26:04]produce_requested_data return {"fm.sale.total":105166579.39,"fm.sale_refund.total":119944.00,"fm.buy.total":0.00,"shift.sale.total":222756.94,"shift.sale.total_cash":198565.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:26:04]process_action_free get_value [00:26:04]json_value_free [00:26:04]json_value_free done [00:26:04]process_json_proto returns [00:26:04]Send response to host [00:26:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":105166579.39,"fm.sale_refund.total":119944.00,"fm.buy.total":0.00,"shift.sale.total":222756.94,"shift.sale.total_cash":198565.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:26:04]free response buf [00:26:04]execute_script done [00:26:04]execute_script returns [00:26:04]free content buf [00:26:04]Sock 9.Close socket [00:26:04]Sock 9.Thread stoped [00:26:04]accept exits with 7 [00:26:04]New connection [00:26:04]New thread 3066604900 created [00:26:04]Thread 3066748260 joined [00:26:04]Waiting for new connection... [00:26:04] Sock 7.Parse request [00:26:04]Sock 7.Check first char [00:26:04]Sock 7.First char is OK [00:26:04]request: POST /json_proto HTTP/1.0 [00:26:04]Method: POST [00:26:04]URL: /json_proto [00:26:04]Method is POST - this is cgi request [00:26:04]url: /json_proto [00:26:04]query_string will be loaded in cgi processing [00:26:04]execute_cgi json_proto POST (null) [00:26:04]execute_cgi path=json_proto method=POST [00:26:04]POST find Content-Length [00:26:04]Host: 172.17.63.3:8080 [00:26:04]Content-Length: 272 [00:26:04]Content-Type: application/json [00:26:04] [00:26:04]POST finish read [00:26:04]Found Content-Length = 272 [00:26:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u041A\u0443\u0440\u0430\u043D\u0431\u0430\u0435\u0432\u0430 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:26:04]execute_script... [00:26:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u041A\u0443\u0440\u0430\u043D\u0431\u0430\u0435\u0432\u0430 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:26:04]POST & json_proto [00:26:04]process_json_proto [00:26:04]json parsed OK: [00:26:04]protocol is kg_v1.0 [00:26:04]action value=close_shift [00:26:04]process_action close_shift [00:26:04]cmd_close_shift [00:26:04]MH_GetDate [00:26:04]Write to MH i2c: F0 00 00 BC 00 AB [00:26:04]Write i2c OK [00:26:04]MH_I2C_Read... [00:26:04]Read from MH i2c: F0 [00:26:04]MH_I2C_Read... [00:26:04]Read from MH i2c: F0 09 00 [00:26:04]MH_I2C_Read... [00:26:04]Read from MH i2c: F0 09 00 BC 00 00 1C DA 1E 67 50 D1 6C 64 20 [00:26:04]GetLastDocTimeStamp 1730075133 [00:26:04]current date 1730075164 [00:26:04]FM_GetShiftState [00:26:04]SAM_PROTO_GetShiftState [00:26:04]wFMCommunicate request_size=4 [00:26:04]MH_SAM_APDU [00:26:04]CAPDU: 80 13 01 00 [00:26:04]Write to MH i2c: E2 08 00 BD 00 80 13 01 00 00 00 00 00 3A [00:26:04]Write i2c OK [00:26:04]MH_I2C_Read... [00:26:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:26:04]Read from MH i2c: E2 [00:26:04]MH_I2C_Read... [00:26:04]Read from MH i2c: E2 0E 00 [00:26:04]MH_I2C_Read... [00:26:04]Read from MH i2c: E2 0E 00 BD 00 00 09 00 01 B4 89 1D 67 00 00 00 00 90 00 07 [00:26:04]RAPDU: 09 00 01 B4 89 1D 67 00 00 00 00 90 00 [00:26:04]wFMCommunicate OK [00:26:04]SAM_PROTO_GetShiftState done [00:26:04]FM_GetShiftState done [00:26:04]KKMCreateCloseShiftDocument [00:26:04]Load OK [00:26:04]Malloc new data [00:26:04]MH_GetDate [00:26:04]Write to MH i2c: F0 00 00 BE 00 AD [00:26:04]Write i2c OK [00:26:04]MH_I2C_Read... [00:26:04]Read from MH i2c: F0 [00:26:04]MH_I2C_Read... [00:26:04]Read from MH i2c: F0 09 00 [00:26:04]MH_I2C_Read... [00:26:04]Read from MH i2c: F0 09 00 BE 00 00 1C DA 1E 67 50 D1 6C 64 22 [00:26:04]Malloc new data [00:26:04]Malloc new data [00:26:04]Malloc new data [00:26:04]Malloc new data [00:26:04]KKMCreateCloseShiftDocument OK [00:26:04]KKMSetCloseShiftData OK [00:26:04]ProcessDocumentItem done err = 0, tmpTLVsize=75 [00:26:04]tlvbuf is 01A66850 [00:26:04]KKMLoadAndSignCloseShiftData [00:26:04]SAM_PROTO_ProcessDocument [00:26:04]wFMCommunicate request_size=9 [00:26:04]MH_SAM_APDU [00:26:04]CAPDU: 80 15 01 00 04 05 00 4B 00 [00:26:04]Write to MH i2c: E2 0C 00 BF 00 80 15 01 00 04 00 05 00 4B 00 00 00 96 [00:26:04]Write i2c OK [00:26:04]MH_I2C_Read... [00:26:04]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:26:04]Read from MH i2c: E2 [00:26:04]MH_I2C_Read... [00:26:04]Read from MH i2c: E2 03 00 [00:26:04]MH_I2C_Read... [00:26:04]Read from MH i2c: E2 03 00 BF 00 00 90 00 33 [00:26:04]RAPDU: 90 00 [00:26:04]wFMCommunicate OK [00:26:04]wFMCommunicate request_size=23 [00:26:04]MH_SAM_APDU [00:26:04]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [00:26:04]Write to MH i2c: E2 1A 00 C0 00 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 35 [00:26:04]Write i2c OK [00:26:04]MH_I2C_Read... [00:26:04]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:26:04]Read from MH i2c: E2 [00:26:04]MH_I2C_Read... [00:26:04]Read from MH i2c: E2 03 00 [00:26:04]MH_I2C_Read... [00:26:04]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [00:26:04]RAPDU: 90 00 [00:26:04]wFMCommunicate OK [00:26:04]wFMCommunicate request_size=34 [00:26:04]MH_SAM_APDU [00:26:04]CAPDU: 80 15 02 00 1D FD 03 19 00 D0 9A D1 83 D1 80 D0 B0 D0 BD D0 B1 D0 B0 D0 B5 D0 B2 D0 B0 20 D0 9D 2E 20 [00:26:04]Write to MH i2c: E2 25 00 C1 00 80 15 02 00 1D 00 FD 03 19 00 D0 9A D1 83 D1 80 D0 B0 D0 BD D0 B1 D0 B0 D0 B5 D0 B2 D0 B0 20 D0 9D 2E 20 00 00 13 [00:26:04]Write i2c OK [00:26:04]MH_I2C_Read... [00:26:04]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:26:04]Read from MH i2c: E2 [00:26:04]MH_I2C_Read... [00:26:04]Read from MH i2c: E2 03 00 [00:26:04]MH_I2C_Read... [00:26:04]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [00:26:04]RAPDU: 90 00 [00:26:04]wFMCommunicate OK [00:26:04]wFMCommunicate request_size=13 [00:26:04]MH_SAM_APDU [00:26:04]CAPDU: 80 15 02 00 08 F4 03 04 00 1C DA 1E 67 [00:26:04]Write to MH i2c: E2 10 00 C2 00 80 15 02 00 08 00 F4 03 04 00 1C DA 1E 67 00 00 C8 [00:26:04]Write i2c OK [00:26:04]MH_I2C_Read... [00:26:05]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:26:05]Read from MH i2c: E2 [00:26:05]MH_I2C_Read... [00:26:05]Read from MH i2c: E2 03 00 [00:26:05]MH_I2C_Read... [00:26:05]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [00:26:05]RAPDU: 90 00 [00:26:05]wFMCommunicate OK [00:26:05]wFMCommunicate request_size=25 [00:26:05]MH_SAM_APDU [00:26:05]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 [00:26:05]Write to MH i2c: E2 1C 00 C3 00 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 00 00 A8 [00:26:05]Write i2c OK [00:26:05]MH_I2C_Read... [00:26:05]ConnectInit Can't connect to host [00:26:05]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:26:05]Read from MH i2c: E2 [00:26:05]MH_I2C_Read... [00:26:05]Read from MH i2c: E2 03 00 [00:26:05]MH_I2C_Read... [00:26:05]Read from MH i2c: E2 03 00 C3 00 00 90 00 37 [00:26:05]RAPDU: 90 00 [00:26:05]wFMCommunicate OK [00:26:05]wFMCommunicate request_size=4 [00:26:05]MH_SAM_APDU [00:26:05]CAPDU: 80 15 03 00 [00:26:05]Write to MH i2c: E2 08 00 C4 00 80 15 03 00 00 00 00 00 45 [00:26:05]Write i2c OK [00:26:05]MH_I2C_Read... [00:26:05]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [00:26:05]Read from MH i2c: E2 [00:26:05]MH_I2C_Read... [00:26:05]Read from MH i2c: E2 FD 00 [00:26:05]MH_I2C_Read... [00:26:05]Read from MH i2c: E2 FD 00 C4 00 00 F4 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 6F 64 02 00 0E 04 04 00 19 02 00 00 5E 04 04 00 4D 01 00 00 57 04 04 00 4F 01 00 00 AA 04 AD 04 6E 04 04 00 4D 01 00 00 69 04 9E 00 6F 04 04 00 4D 01 00 00 B1 04 04 00 6E E6 53 01 70 04 04 00 74 FC 2E 01 72 04 03 00 FA E9 24 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 D0 1B 24 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 02 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 95 [00:26:05]RAPDU: F4 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 6F 64 02 00 0E 04 04 00 19 02 00 00 5E 04 04 00 4D 01 00 00 57 04 04 00 4F 01 00 00 AA 04 AD 04 6E 04 04 00 4D 01 00 00 69 04 9E 00 6F 04 04 00 4D 01 00 00 B1 04 04 00 6E E6 53 01 70 04 04 00 74 FC 2E 01 72 04 03 00 FA E9 24 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 D0 1B 24 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 02 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 [00:26:06]wFMCommunicate OK [00:26:06]SAM_PROTO_ProcessDocument answer len = 1268 [00:26:06]SAM_PROTO_ProcessDocument remain to read = 1020 [00:26:06]wFMCommunicate request_size=4 [00:26:06]MH_SAM_APDU [00:26:06]CAPDU: 80 17 00 00 [00:26:06]Write to MH i2c: E2 08 00 C5 00 80 17 00 00 00 00 00 00 45 [00:26:06]Write i2c OK [00:26:06]MH_I2C_Read... [00:26:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:06]Read from MH i2c: E2 [00:26:06]MH_I2C_Read... [00:26:06]Read from MH i2c: E2 FD 00 [00:26:06]MH_I2C_Read... [00:26:06]Read from MH i2c: E2 FD 00 C5 00 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 90 00 99 [00:26:06]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 90 00 [00:26:06]wFMCommunicate OK [00:26:06]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:26:06]SAM_PROTO_ProcessDocument remain to read = 770 [00:26:06]wFMCommunicate request_size=4 [00:26:06]MH_SAM_APDU [00:26:06]CAPDU: 80 17 00 00 [00:26:06]Write to MH i2c: E2 08 00 C6 00 80 17 00 00 00 00 00 00 46 [00:26:06]Write i2c OK [00:26:06]MH_I2C_Read... [00:26:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:07]Read from MH i2c: E2 [00:26:07]MH_I2C_Read... [00:26:07]Read from MH i2c: E2 FD 00 [00:26:07]MH_I2C_Read... [00:26:07]Read from MH i2c: E2 FD 00 C6 00 00 00 F6 03 01 00 05 F7 03 00 00 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 90 00 A8 [00:26:07]RAPDU: 00 F6 03 01 00 05 F7 03 00 00 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 90 00 [00:26:07]wFMCommunicate OK [00:26:07]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:26:07]SAM_PROTO_ProcessDocument remain to read = 520 [00:26:07]wFMCommunicate request_size=4 [00:26:07]MH_SAM_APDU [00:26:07]CAPDU: 80 17 00 00 [00:26:07]Write to MH i2c: E2 08 00 C7 00 80 17 00 00 00 00 00 00 47 [00:26:07]Write i2c OK [00:26:07]MH_I2C_Read... [00:26:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:07]Read from MH i2c: E2 [00:26:07]MH_I2C_Read... [00:26:07]Read from MH i2c: E2 FD 00 [00:26:07]MH_I2C_Read... [00:26:07]Read from MH i2c: E2 FD 00 C7 00 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 CF [00:26:07]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:26:08]wFMCommunicate OK [00:26:08]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:26:08]SAM_PROTO_ProcessDocument remain to read = 270 [00:26:08]wFMCommunicate request_size=4 [00:26:08]MH_SAM_APDU [00:26:08]CAPDU: 80 17 00 00 [00:26:08]Write to MH i2c: E2 08 00 C8 00 80 17 00 00 00 00 00 00 48 [00:26:08]Write i2c OK [00:26:08]MH_I2C_Read... [00:26:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:08]Read from MH i2c: E2 [00:26:08]MH_I2C_Read... [00:26:08]Read from MH i2c: E2 FD 00 [00:26:08]MH_I2C_Read... [00:26:08]Read from MH i2c: E2 FD 00 C8 00 00 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 90 00 12 [00:26:08]RAPDU: 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 90 00 [00:26:08]wFMCommunicate OK [00:26:08]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:26:08]SAM_PROTO_ProcessDocument remain to read = 20 [00:26:08]wFMCommunicate request_size=4 [00:26:08]MH_SAM_APDU [00:26:08]CAPDU: 80 17 00 00 [00:26:08]Write to MH i2c: E2 08 00 C9 00 80 17 00 00 00 00 00 00 49 [00:26:08]Write i2c OK [00:26:08]MH_I2C_Read... [00:26:08]OFD Sender: No OFD packet to send [00:26:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 20! [00:26:08]Read from MH i2c: E2 [00:26:08]MH_I2C_Read... [00:26:08]Read from MH i2c: E2 17 00 [00:26:08]MH_I2C_Read... [00:26:08]Read from MH i2c: E2 17 00 C9 00 00 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 2A 7F 59 89 38 7D 90 00 CA [00:26:08]RAPDU: 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 2A 7F 59 89 38 7D 90 00 [00:26:08]wFMCommunicate OK [00:26:08]SAM_PROTO_ProcessDocument received (without SW) 20 bytes [00:26:08]SAM_PROTO_ProcessDocument done [00:26:08]1209 (1) - 1.0 - номер версии ФФД [00:26:08]1041 (16) - 0000000000871792 - номер ФМ [00:26:08]1040 (4) - 156783 - номер ФД [00:26:08]1038 (4) - 537 - номер смены [00:26:08]1118 (4) - 333 - количество кассовых чеков за смену [00:26:08]1111 (4) - 335 - общее количество ФД за смену [00:26:08]1194 (1197) - счетчики итогов смены [00:26:08] 1134 (4) - 333 - количество чеков со всеми признаками расчетов [00:26:08] 1129 (158) - счетчики операций «приход» [00:26:08] 1135 (4) - 333 - количество чеков по признаку расчетов [00:26:08] 1201 (4) - 222756.94 - общая итоговая сумма в чеках [00:26:08] 1136 (4) - 198565.00 - итоговая сумма в чеках наличными [00:26:08] 1138 (3) - 24191.94 - итоговая сумма в чеках безналичными [00:26:08] 1024 (123) - суммы налогов [00:26:08] 1006 (9) - суммы НДС [00:26:08] 1010 (1) - 0% - код ставки НДС [00:26:08] 1011 (0) - 0.00 - сумма НДС по ставке [00:26:08] 1006 (12) - суммы НДС [00:26:08] 1010 (1) - 12% - код ставки НДС [00:26:08] 1011 (3) - 23664.16 - сумма НДС по ставке [00:26:08] 1007 (9) - суммы НСП [00:26:08] 1014 (1) - 0% - код ставки НСП [00:26:08] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:08] 1007 (12) - суммы НСП [00:26:08] 1014 (1) - 1% - код ставки НСП [00:26:09] 1015 (3) - 1972.08 - сумма НСП по ставке [00:26:09] 1007 (9) - суммы НСП [00:26:09] 1014 (1) - 2% - код ставки НСП [00:26:09] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:09] 1007 (9) - суммы НСП [00:26:09] 1014 (1) - 3% - код ставки НСП [00:26:09] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:09] 1007 (9) - суммы НСП [00:26:09] 1014 (1) - 5% - код ставки НСП [00:26:09] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:09] 1007 (9) - суммы НСП [00:26:09] 1014 (1) - 0,50% - код ставки НСП [00:26:09] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:09] 1007 (9) - суммы НСП [00:26:09] 1014 (1) - 1,50% - код ставки НСП [00:26:09] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:09] 1130 (141) - счетчики операций «возврат прихода» [00:26:09] 1135 (4) - 0 - количество чеков по признаку расчетов [00:26:09] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:26:09] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:26:09] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:26:09] 1024 (117) - суммы налогов [00:26:09] 1006 (9) - суммы НДС [00:26:09] 1010 (1) - 0% - код ставки НДС [00:26:09] 1011 (0) - 0.00 - сумма НДС по ставке [00:26:09] 1006 (9) - суммы НДС [00:26:09] 1010 (1) - 12% - код ставки НДС [00:26:09] 1011 (0) - 0.00 - сумма НДС по ставке [00:26:09] 1007 (9) - суммы НСП [00:26:09] 1014 (1) - 0% - код ставки НСП [00:26:09] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:09] 1007 (9) - суммы НСП [00:26:09] 1014 (1) - 1% - код ставки НСП [00:26:09] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:09] 1007 (9) - суммы НСП [00:26:09] 1014 (1) - 2% - код ставки НСП [00:26:09] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:09] 1007 (9) - суммы НСП [00:26:09] 1014 (1) - 3% - код ставки НСП [00:26:09] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:09] 1007 (9) - суммы НСП [00:26:09] 1014 (1) - 5% - код ставки НСП [00:26:09] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:09] 1007 (9) - суммы НСП [00:26:09] 1014 (1) - 0,50% - код ставки НСП [00:26:09] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:09] 1007 (9) - суммы НСП [00:26:09] 1014 (1) - 1,50% - код ставки НСП [00:26:09] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:09] 1131 (141) - счетчики операций «расход» [00:26:09] 1135 (4) - 0 - количество чеков по признаку расчетов [00:26:09] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:26:09] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:26:09] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:26:09] 1024 (117) - суммы налогов [00:26:09] 1006 (9) - суммы НДС [00:26:09] 1010 (1) - 0% - код ставки НДС [00:26:09] 1011 (0) - 0.00 - сумма НДС по ставке [00:26:09] 1006 (9) - суммы НДС [00:26:09] 1010 (1) - 12% - код ставки НДС [00:26:09] 1011 (0) - 0.00 - сумма НДС по ставке [00:26:09] 1007 (9) - суммы НСП [00:26:09] 1014 (1) - 0% - код ставки НСП [00:26:09] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:09] 1007 (9) - суммы НСП [00:26:09] 1014 (1) - 1% - код ставки НСП [00:26:09] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:09] 1007 (9) - суммы НСП [00:26:09] 1014 (1) - 2% - код ставки НСП [00:26:09] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:09] 1007 (9) - суммы НСП [00:26:09] 1014 (1) - 3% - код ставки НСП [00:26:09] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:09] 1007 (9) - суммы НСП [00:26:09] 1014 (1) - 5% - код ставки НСП [00:26:09] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:09] 1007 (9) - суммы НСП [00:26:09] 1014 (1) - 0,50% - код ставки НСП [00:26:09] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:09] 1007 (9) - суммы НСП [00:26:09] 1014 (1) - 1,50% - код ставки НСП [00:26:09] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:09] 1132 (141) - счетчики операций «возврат расхода» [00:26:09] 1135 (4) - 0 - количество чеков по признаку расчетов [00:26:09] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:26:09] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:26:09] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:26:09] 1024 (117) - суммы налогов [00:26:09] 1006 (9) - суммы НДС [00:26:09] 1010 (1) - 0% - код ставки НДС [00:26:09] 1011 (0) - 0.00 - сумма НДС по ставке [00:26:09] 1006 (9) - суммы НДС [00:26:09] 1010 (1) - 12% - код ставки НДС [00:26:09] 1011 (0) - 0.00 - сумма НДС по ставке [00:26:09] 1007 (9) - суммы НСП [00:26:09] 1014 (1) - 0% - код ставки НСП [00:26:09] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:09] 1007 (9) - суммы НСП [00:26:09] 1014 (1) - 1% - код ставки НСП [00:26:09] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:09] 1007 (9) - суммы НСП [00:26:09] 1014 (1) - 2% - код ставки НСП [00:26:09] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:09] 1007 (9) - суммы НСП [00:26:09] 1014 (1) - 3% - код ставки НСП [00:26:09] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:09] 1007 (9) - суммы НСП [00:26:09] 1014 (1) - 5% - код ставки НСП [00:26:09] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:09] 1007 (9) - суммы НСП [00:26:09] 1014 (1) - 0,50% - код ставки НСП [00:26:09] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:09] 1007 (9) - суммы НСП [00:26:09] 1014 (1) - 1,50% - код ставки НСП [00:26:09] 1015 (0) - 0.00 - сумма НСП по ставке [00:26:09] 1133 (588) - - счетчики коррекции - не используются [00:26:09]1077 (6) - 46726451378301 - ФПД [00:26:09]SetTLVBufToDocument [00:26:09]Processing tag 1209 (04B9) [00:26:09]Malloc new data [00:26:09]Processing tag 1041 (0411) [00:26:09]Processing tag 1040 (0410) [00:26:09]Malloc new data [00:26:09]Processing tag 1038 (040E) [00:26:09]Malloc new data [00:26:09]Processing tag 1118 (045E) [00:26:09]Malloc new data [00:26:09]Processing tag 1111 (0457) [00:26:09]Malloc new data [00:26:09]Processing tag 1194 (04AA) [00:26:09]Load OK [00:26:09]SetTLVBufToDocument [00:26:09]Processing tag 1134 (046E) [00:26:09]Malloc new data [00:26:09]Processing tag 1129 (0469) [00:26:09]Load OK [00:26:09]SetTLVBufToDocument [00:26:09]Processing tag 1135 (046F) [00:26:09]Malloc new data [00:26:09]Processing tag 1201 (04B1) [00:26:09]Malloc new data [00:26:09]Processing tag 1136 (0470) [00:26:09]Malloc new data [00:26:09]Processing tag 1138 (0472) [00:26:09]Malloc new data [00:26:09]Processing tag 1024 (0400) [00:26:09]Load OK [00:26:09]SetTLVBufToDocument [00:26:09]Processing tag 1006 (03EE) [00:26:09]Load OK [00:26:09]SetTLVBufToDocument [00:26:09]Processing tag 1010 (03F2) [00:26:09]Malloc new data [00:26:09]Processing tag 1011 (03F3) [00:26:09]Malloc new data [00:26:09]SetTLVBufToDocument err=0 [00:26:09]Processing tag 1006 (03EE) [00:26:09]Load OK [00:26:09]SetTLVBufToDocument [00:26:09]Processing tag 1010 (03F2) [00:26:09]Malloc new data [00:26:09]Processing tag 1011 (03F3) [00:26:09]Malloc new data [00:26:09]SetTLVBufToDocument err=0 [00:26:09]Processing tag 1007 (03EF) [00:26:09]Load OK [00:26:09]SetTLVBufToDocument [00:26:09]Processing tag 1014 (03F6) [00:26:09]Malloc new data [00:26:09]Processing tag 1015 (03F7) [00:26:09]Malloc new data [00:26:09]SetTLVBufToDocument err=0 [00:26:09]Processing tag 1007 (03EF) [00:26:09]Load OK [00:26:09]SetTLVBufToDocument [00:26:09]Processing tag 1014 (03F6) [00:26:09]Malloc new data [00:26:09]Processing tag 1015 (03F7) [00:26:09]Malloc new data [00:26:09]SetTLVBufToDocument err=0 [00:26:09]Processing tag 1007 (03EF) [00:26:09]Load OK [00:26:09]SetTLVBufToDocument [00:26:09]Processing tag 1014 (03F6) [00:26:09]Malloc new data [00:26:09]Processing tag 1015 (03F7) [00:26:09]Malloc new data [00:26:09]SetTLVBufToDocument err=0 [00:26:09]Processing tag 1007 (03EF) [00:26:09]Load OK [00:26:09]SetTLVBufToDocument [00:26:09]Processing tag 1014 (03F6) [00:26:09]Malloc new data [00:26:09]Processing tag 1015 (03F7) [00:26:09]Malloc new data [00:26:09]SetTLVBufToDocument err=0 [00:26:09]Processing tag 1007 (03EF) [00:26:09]Load OK [00:26:09]SetTLVBufToDocument [00:26:09]Processing tag 1014 (03F6) [00:26:09]Malloc new data [00:26:09]Processing tag 1015 (03F7) [00:26:09]Malloc new data [00:26:09]SetTLVBufToDocument err=0 [00:26:09]Processing tag 1007 (03EF) [00:26:09]Load OK [00:26:09]SetTLVBufToDocument [00:26:09]Processing tag 1014 (03F6) [00:26:09]Malloc new data [00:26:09]Processing tag 1015 (03F7) [00:26:09]Malloc new data [00:26:09]SetTLVBufToDocument err=0 [00:26:09]Processing tag 1007 (03EF) [00:26:09]Load OK [00:26:09]SetTLVBufToDocument [00:26:09]Processing tag 1014 (03F6) [00:26:09]Malloc new data [00:26:09]Processing tag 1015 (03F7) [00:26:09]Malloc new data [00:26:09]SetTLVBufToDocument err=0 [00:26:09]SetTLVBufToDocument err=0 [00:26:09]SetTLVBufToDocument err=0 [00:26:09]Processing tag 1130 (046A) [00:26:09]Load OK [00:26:09]SetTLVBufToDocument [00:26:09]Processing tag 1135 (046F) [00:26:09]Malloc new data [00:26:09]Processing tag 1201 (04B1) [00:26:09]Malloc new data [00:26:09]Processing tag 1136 (0470) [00:26:09]Malloc new data [00:26:09]Processing tag 1138 (0472) [00:26:09]Malloc new data [00:26:09]Processing tag 1024 (0400) [00:26:09]Load OK [00:26:09]SetTLVBufToDocument [00:26:09]Processing tag 1006 (03EE) [00:26:09]Load OK [00:26:09]SetTLVBufToDocument [00:26:09]Processing tag 1010 (03F2) [00:26:09]Malloc new data [00:26:09]Processing tag 1011 (03F3) [00:26:09]Malloc new data [00:26:09]SetTLVBufToDocument err=0 [00:26:09]Processing tag 1006 (03EE) [00:26:09]Load OK [00:26:09]SetTLVBufToDocument [00:26:09]Processing tag 1010 (03F2) [00:26:09]Malloc new data [00:26:09]Processing tag 1011 (03F3) [00:26:09]Malloc new data [00:26:09]SetTLVBufToDocument err=0 [00:26:09]Processing tag 1007 (03EF) [00:26:09]Load OK [00:26:09]SetTLVBufToDocument [00:26:09]Processing tag 1014 (03F6) [00:26:09]Malloc new data [00:26:09]Processing tag 1015 (03F7) [00:26:09]Malloc new data [00:26:09]SetTLVBufToDocument err=0 [00:26:09]Processing tag 1007 (03EF) [00:26:09]Load OK [00:26:09]SetTLVBufToDocument [00:26:09]Processing tag 1014 (03F6) [00:26:09]Malloc new data [00:26:09]Processing tag 1015 (03F7) [00:26:09]Malloc new data [00:26:09]SetTLVBufToDocument err=0 [00:26:09]Processing tag 1007 (03EF) [00:26:09]Load OK [00:26:09]SetTLVBufToDocument [00:26:09]Processing tag 1014 (03F6) [00:26:09]Malloc new data [00:26:09]Processing tag 1015 (03F7) [00:26:09]Malloc new data [00:26:09]SetTLVBufToDocument err=0 [00:26:09]Processing tag 1007 (03EF) [00:26:09]Load OK [00:26:09]SetTLVBufToDocument [00:26:09]Processing tag 1014 (03F6) [00:26:09]Malloc new data [00:26:09]Processing tag 1015 (03F7) [00:26:09]Malloc new data [00:26:09]SetTLVBufToDocument err=0 [00:26:09]Processing tag 1007 (03EF) [00:26:09]Load OK [00:26:09]SetTLVBufToDocument [00:26:09]Processing tag 1014 (03F6) [00:26:09]Malloc new data [00:26:09]Processing tag 1015 (03F7) [00:26:09]Malloc new data [00:26:09]SetTLVBufToDocument err=0 [00:26:09]Processing tag 1007 (03EF) [00:26:09]Load OK [00:26:09]SetTLVBufToDocument [00:26:09]Processing tag 1014 (03F6) [00:26:09]Malloc new data [00:26:09]Processing tag 1015 (03F7) [00:26:09]Malloc new data [00:26:09]SetTLVBufToDocument err=0 [00:26:09]Processing tag 1007 (03EF) [00:26:09]Load OK [00:26:09]SetTLVBufToDocument [00:26:09]Processing tag 1014 (03F6) [00:26:09]Malloc new data [00:26:09]Processing tag 1015 (03F7) [00:26:09]Malloc new data [00:26:09]SetTLVBufToDocument err=0 [00:26:09]SetTLVBufToDocument err=0 [00:26:09]SetTLVBufToDocument err=0 [00:26:09]Processing tag 1131 (046B) [00:26:09]Load OK [00:26:09]SetTLVBufToDocument [00:26:09]Processing tag 1135 (046F) [00:26:09]Malloc new data [00:26:09]Processing tag 1201 (04B1) [00:26:09]Malloc new data [00:26:09]Processing tag 1136 (0470) [00:26:09]Malloc new data [00:26:09]Processing tag 1138 (0472) [00:26:09]Malloc new data [00:26:09]Processing tag 1024 (0400) [00:26:09]Load OK [00:26:09]SetTLVBufToDocument [00:26:09]Processing tag 1006 (03EE) [00:26:09]Load OK [00:26:09]SetTLVBufToDocument [00:26:09]Processing tag 1010 (03F2) [00:26:09]Malloc new data [00:26:09]Processing tag 1011 (03F3) [00:26:09]Malloc new data [00:26:09]SetTLVBufToDocument err=0 [00:26:09]Processing tag 1006 (03EE) [00:26:09]Load OK [00:26:09]SetTLVBufToDocument [00:26:09]Processing tag 1010 (03F2) [00:26:09]Malloc new data [00:26:09]Processing tag 1011 (03F3) [00:26:09]Malloc new data [00:26:09]SetTLVBufToDocument err=0 [00:26:09]Processing tag 1007 (03EF) [00:26:09]Load OK [00:26:09]SetTLVBufToDocument [00:26:09]Processing tag 1014 (03F6) [00:26:09]Malloc new data [00:26:09]Processing tag 1015 (03F7) [00:26:09]Malloc new data [00:26:09]SetTLVBufToDocument err=0 [00:26:09]Processing tag 1007 (03EF) [00:26:09]Load OK [00:26:09]SetTLVBufToDocument [00:26:09]Processing tag 1014 (03F6) [00:26:09]Malloc new data [00:26:09]Processing tag 1015 (03F7) [00:26:09]Malloc new data [00:26:09]SetTLVBufToDocument err=0 [00:26:09]Processing tag 1007 (03EF) [00:26:09]Load OK [00:26:09]SetTLVBufToDocument [00:26:09]Processing tag 1014 (03F6) [00:26:09]Malloc new data [00:26:09]Processing tag 1015 (03F7) [00:26:09]Malloc new data [00:26:09]SetTLVBufToDocument err=0 [00:26:09]Processing tag 1007 (03EF) [00:26:09]Load OK [00:26:09]SetTLVBufToDocument [00:26:09]Processing tag 1014 (03F6) [00:26:09]Malloc new data [00:26:09]Processing tag 1015 (03F7) [00:26:09]Malloc new data [00:26:09]SetTLVBufToDocument err=0 [00:26:09]Processing tag 1007 (03EF) [00:26:09]Load OK [00:26:09]SetTLVBufToDocument [00:26:09]Processing tag 1014 (03F6) [00:26:09]Malloc new data [00:26:09]Processing tag 1015 (03F7) [00:26:09]Malloc new data [00:26:09]SetTLVBufToDocument err=0 [00:26:09]Processing tag 1007 (03EF) [00:26:09]Load OK [00:26:09]SetTLVBufToDocument [00:26:09]Processing tag 1014 (03F6) [00:26:09]Malloc new data [00:26:09]Processing tag 1015 (03F7) [00:26:09]Malloc new data [00:26:09]SetTLVBufToDocument err=0 [00:26:09]Processing tag 1007 (03EF) [00:26:09]Load OK [00:26:09]SetTLVBufToDocument [00:26:09]Processing tag 1014 (03F6) [00:26:09]Malloc new data [00:26:09]Processing tag 1015 (03F7) [00:26:09]Malloc new data [00:26:09]SetTLVBufToDocument err=0 [00:26:09]SetTLVBufToDocument err=0 [00:26:09]SetTLVBufToDocument err=0 [00:26:09]Processing tag 1132 (046C) [00:26:09]Load OK [00:26:09]SetTLVBufToDocument [00:26:09]Processing tag 1135 (046F) [00:26:09]Malloc new data [00:26:09]Processing tag 1201 (04B1) [00:26:09]Malloc new data [00:26:09]Processing tag 1136 (0470) [00:26:09]Malloc new data [00:26:09]Processing tag 1138 (0472) [00:26:09]Malloc new data [00:26:09]Processing tag 1024 (0400) [00:26:09]Load OK [00:26:09]SetTLVBufToDocument [00:26:09]Processing tag 1006 (03EE) [00:26:09]Load OK [00:26:09]SetTLVBufToDocument [00:26:09]Processing tag 1010 (03F2) [00:26:09]Malloc new data [00:26:09]Processing tag 1011 (03F3) [00:26:09]Malloc new data [00:26:09]SetTLVBufToDocument err=0 [00:26:09]Processing tag 1006 (03EE) [00:26:09]Load OK [00:26:09]SetTLVBufToDocument [00:26:09]Processing tag 1010 (03F2) [00:26:09]Malloc new data [00:26:09]Processing tag 1011 (03F3) [00:26:09]Malloc new data [00:26:09]SetTLVBufToDocument err=0 [00:26:09]Processing tag 1007 (03EF) [00:26:09]Load OK [00:26:09]SetTLVBufToDocument [00:26:09]Processing tag 1014 (03F6) [00:26:09]Malloc new data [00:26:09]Processing tag 1015 (03F7) [00:26:09]Malloc new data [00:26:09]SetTLVBufToDocument err=0 [00:26:09]Processing tag 1007 (03EF) [00:26:09]Load OK [00:26:09]SetTLVBufToDocument [00:26:09]Processing tag 1014 (03F6) [00:26:09]Malloc new data [00:26:09]Processing tag 1015 (03F7) [00:26:09]Malloc new data [00:26:09]SetTLVBufToDocument err=0 [00:26:09]Processing tag 1007 (03EF) [00:26:09]Load OK [00:26:09]SetTLVBufToDocument [00:26:09]Processing tag 1014 (03F6) [00:26:09]Malloc new data [00:26:09]Processing tag 1015 (03F7) [00:26:09]Malloc new data [00:26:09]SetTLVBufToDocument err=0 [00:26:09]Processing tag 1007 (03EF) [00:26:09]Load OK [00:26:09]SetTLVBufToDocument [00:26:09]Processing tag 1014 (03F6) [00:26:09]Malloc new data [00:26:09]Processing tag 1015 (03F7) [00:26:09]Malloc new data [00:26:09]SetTLVBufToDocument err=0 [00:26:09]Processing tag 1007 (03EF) [00:26:09]Load OK [00:26:09]SetTLVBufToDocument [00:26:09]Processing tag 1014 (03F6) [00:26:09]Malloc new data [00:26:09]Processing tag 1015 (03F7) [00:26:09]Malloc new data [00:26:09]SetTLVBufToDocument err=0 [00:26:09]Processing tag 1007 (03EF) [00:26:09]Load OK [00:26:10]SetTLVBufToDocument [00:26:10]Processing tag 1014 (03F6) [00:26:10]Malloc new data [00:26:10]Processing tag 1015 (03F7) [00:26:10]Malloc new data [00:26:10]SetTLVBufToDocument err=0 [00:26:10]Processing tag 1007 (03EF) [00:26:10]Load OK [00:26:10]SetTLVBufToDocument [00:26:10]Processing tag 1014 (03F6) [00:26:10]Malloc new data [00:26:10]Processing tag 1015 (03F7) [00:26:10]Malloc new data [00:26:10]SetTLVBufToDocument err=0 [00:26:10]SetTLVBufToDocument err=0 [00:26:10]SetTLVBufToDocument err=0 [00:26:10]Processing tag 1133 (046D) [00:26:10]Malloc new data [00:26:10]SetTLVBufToDocument err=0 [00:26:10]Processing tag 1077 (0435) [00:26:10]Malloc new data [00:26:10]SetTLVBufToDocument err=0 [00:26:10]Malloc new data [00:26:10]SAM_PROTO_GetFMData [00:26:10]wFMCommunicate request_size=4 [00:26:10]MH_SAM_APDU [00:26:10]CAPDU: 80 13 03 00 [00:26:10]Write to MH i2c: E2 08 00 CA 00 80 13 03 00 00 00 00 00 49 [00:26:10]Write i2c OK [00:26:10]MH_I2C_Read... [00:26:10]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:26:10]Read from MH i2c: E2 [00:26:10]MH_I2C_Read... [00:26:10]Read from MH i2c: E2 FD 00 [00:26:10]MH_I2C_Read... [00:26:10]Read from MH i2c: E2 FD 00 CA 00 00 C2 04 85 04 BE 04 6E 04 04 00 3C 60 02 00 69 04 A3 00 6F 04 04 00 2D 60 02 00 B1 04 05 00 13 77 D7 72 02 70 04 05 00 B0 4F 86 31 02 72 04 04 00 63 27 51 41 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 11 A1 98 42 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 FC 9B 8C 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 99 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 20 05 B7 70 04 03 00 20 05 B7 72 04 00 00 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 B0 6F 13 EF 03 09 00 F6 03 90 00 DB [00:26:10]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 3C 60 02 00 69 04 A3 00 6F 04 04 00 2D 60 02 00 B1 04 05 00 13 77 D7 72 02 70 04 05 00 B0 4F 86 31 02 72 04 04 00 63 27 51 41 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 11 A1 98 42 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 FC 9B 8C 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 99 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 20 05 B7 70 04 03 00 20 05 B7 72 04 00 00 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 B0 6F 13 EF 03 09 00 F6 03 90 00 [00:26:11]wFMCommunicate OK [00:26:11]wFMCommunicate request_size=4 [00:26:11]MH_SAM_APDU [00:26:11]CAPDU: 80 17 00 00 [00:26:11]Write to MH i2c: E2 08 00 CB 00 80 17 00 00 00 00 00 00 4B [00:26:11]Write i2c OK [00:26:11]MH_I2C_Read... [00:26:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:11]Read from MH i2c: E2 [00:26:11]MH_I2C_Read... [00:26:11]Read from MH i2c: E2 FD 00 [00:26:11]MH_I2C_Read... [00:26:11]Read from MH i2c: E2 FD 00 CB 00 00 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 9E 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 BA [00:26:11]RAPDU: 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 9E 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 [00:26:11]wFMCommunicate OK [00:26:11]wFMCommunicate request_size=4 [00:26:11]MH_SAM_APDU [00:26:11]CAPDU: 80 17 00 00 [00:26:11]Write to MH i2c: E2 08 00 CC 00 80 17 00 00 00 00 00 00 4C [00:26:11]Write i2c OK [00:26:11]MH_I2C_Read... [00:26:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:12]Read from MH i2c: E2 [00:26:12]MH_I2C_Read... [00:26:12]Read from MH i2c: E2 FD 00 [00:26:12]MH_I2C_Read... [00:26:12]Read from MH i2c: E2 FD 00 CC 00 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 90 00 FA [00:26:12]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 90 00 [00:26:12]wFMCommunicate OK [00:26:12]wFMCommunicate request_size=4 [00:26:12]MH_SAM_APDU [00:26:12]CAPDU: 80 17 00 00 [00:26:12]Write to MH i2c: E2 08 00 CD 00 80 17 00 00 00 00 00 00 4D [00:26:12]Write i2c OK [00:26:12]MH_I2C_Read... [00:26:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:26:12]Read from MH i2c: E2 [00:26:12]MH_I2C_Read... [00:26:12]Read from MH i2c: E2 FD 00 [00:26:12]MH_I2C_Read... [00:26:12]Read from MH i2c: E2 FD 00 CD 00 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 90 00 C8 [00:26:13]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:26:13]wFMCommunicate OK [00:26:13]wFMCommunicate request_size=4 [00:26:13]MH_SAM_APDU [00:26:13]CAPDU: 80 17 00 00 [00:26:13]Write to MH i2c: E2 08 00 CE 00 80 17 00 00 00 00 00 00 4E [00:26:13]Write i2c OK [00:26:13]MH_I2C_Read... [00:26:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [00:26:13]Read from MH i2c: E2 [00:26:13]MH_I2C_Read... [00:26:13]Read from MH i2c: E2 DF 00 [00:26:13]MH_I2C_Read... [00:26:13]Read from MH i2c: E2 DF 00 CE 00 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 2E [00:26:13]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 OFD Sender: No OFD packet to send [00:26:13]EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:26:14]wFMCommunicate OK [00:26:14]SAM_PROTO_GetFMData done [00:26:14]Malloc new data [00:26:14]Malloc new data [00:26:14]Malloc new data [00:26:14]Malloc new data [00:26:14]KKMLoadAndSignCloseShiftData err=0 [00:26:14]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Куранбаева Н. 28.10.2024 00:26 Смена: 537 РНМ: 0000000000091693 ЗНМ: 0300000096 СНО: Общий режим Чеков за смену: 333 ФД за смену: 335 Всего чеков: 333 ИТОГИ ПРИХОД Чеков: 333 Общий итог: 222756.94 Итого наличными: 198565.00 Итого безнал.: 24191.94 НДС 0% : 0.00 НДС 12% : 23664.16 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 1972.08 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 Сумма внесений: 0.00 Сумма выплат: 0.00 Нал. в кассе: 198565.00 НС Приход: 105166579.39 НС Возвр.Прихода: 119944.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 156783 ФМ: 0000000000871792 ФПД: 46726451378301 [00:26:14]StoreToDocumentArchive [00:26:14]shift 537 fd 156783 [00:26:14]save to /storage/0537/doc_00156783 [00:26:14]save last doc name /storage/0537/doc_00156783 to /storage/kkm_last_doc_name [00:26:14]save OK [00:26:14]Clear old archive folders... [00:26:14]Remove dir /storage/0522 [00:26:14]opendir ok [00:26:14]file . [00:26:14]file .. [00:26:14]file doc_1730075140 [00:26:14]remove file /storage/0522/doc_1730075140 [00:26:14]remove dir /storage/0522 [00:26:14]NVStorageSaveData kkm_registers [00:26:14]File name is /storage/kkm_registers [00:26:14]Write 24 bytes [00:26:14]NVStorageSaveData done [00:26:14]NVStorageSaveData kkm_registers [00:26:14]File name is /storage/kkm_registers [00:26:14]Write 24 bytes [00:26:14]NVStorageSaveData done [00:26:14]ProcessDocumentItem done err = 0, tmpTLVsize=1386 [00:26:14]tlvbuf is 01B68E90 [00:26:14]SAM_PROTO_ClearQueue [00:26:14]wFMCommunicate request_size=4 [00:26:14]MH_SAM_APDU [00:26:14]CAPDU: 80 09 00 00 [00:26:14]Write to MH i2c: E2 08 00 CF 00 80 09 00 00 00 00 00 00 41 [00:26:14]Write i2c OK [00:26:14]MH_I2C_Read... [00:26:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:26:14]Read from MH i2c: E2 [00:26:14]MH_I2C_Read... [00:26:14]Read from MH i2c: E2 03 00 [00:26:14]MH_I2C_Read... [00:26:14]Read from MH i2c: E2 03 00 CF 00 00 90 00 43 [00:26:14]RAPDU: 90 00 [00:26:14]wFMCommunicate OK [00:26:14]SAM_PROTO_ClearQueue done [00:26:14]KKMCreateOFDPacket [00:26:14]OFDProtocolAddRootSTLVToBuf [00:26:14]FM_MakeSignedData [00:26:14]FM_MakeSignedData [00:26:14]SAM_PROTO_SignData [00:26:14]wFMCommunicate request_size=4 [00:26:14]MH_SAM_APDU [00:26:14]CAPDU: 80 0D 01 02 [00:26:14]Write to MH i2c: E2 08 00 D0 00 80 0D 01 02 00 00 00 00 49 [00:26:14]Write i2c OK [00:26:14]MH_I2C_Read... [00:26:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:26:14]Read from MH i2c: E2 [00:26:14]MH_I2C_Read... [00:26:14]Read from MH i2c: E2 03 00 [00:26:14]MH_I2C_Read... [00:26:14]Read from MH i2c: E2 03 00 D0 00 00 90 00 44 [00:26:14]RAPDU: 90 00 [00:26:14]wFMCommunicate OK [00:26:14]wFMCommunicate request_size=255 [00:26:14]MH_SAM_APDU [00:26:14]CAPDU: 80 0D 02 02 FA 05 00 6A 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 9A D1 83 D1 80 D0 B0 D0 BD D0 B1 D0 B0 D0 B5 D0 B2 D0 B0 20 D0 9D 2E 20 F4 03 04 00 1C DA 1E 67 0E 04 04 00 19 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 5E 04 04 00 4D 01 00 00 57 04 04 00 4F 01 00 00 AA 04 D8 04 6E 04 04 00 4D 01 00 00 69 04 A5 00 6F 04 04 00 4D 01 00 00 B1 04 04 00 6E E6 53 01 70 04 04 00 74 FC 2E 01 72 04 03 00 FA E9 24 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 D0 1B 24 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:26:14]Write to MH i2c: E2 02 01 D1 00 80 0D 02 02 FA 00 05 00 6A 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 9A D1 83 D1 80 D0 B0 D0 BD D0 B1 D0 B0 D0 B5 D0 B2 D0 B0 20 D0 9D 2E 20 F4 03 04 00 1C DA 1E 67 0E 04 04 00 19 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 5E 04 04 00 4D 01 00 00 57 04 04 00 4F 01 00 00 AA 04 D8 04 6E 04 04 00 4D 01 00 00 69 04 A5 00 6F 04 04 00 4D 01 00 00 B1 04 04 00 6E E6 53 01 70 04 04 00 74 FC 2E 01 72 04 03 00 FA E9 24 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 D0 1B 24 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 6F [00:26:14]Write i2c OK [00:26:14]MH_I2C_Read... [00:26:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:26:15]Read from MH i2c: E2 [00:26:15]MH_I2C_Read... [00:26:15]Read from MH i2c: E2 03 00 [00:26:15]MH_I2C_Read... [00:26:15]Read from MH i2c: E2 03 00 D1 00 00 90 00 45 [00:26:15]RAPDU: 90 00 [00:26:15]wFMCommunicate OK [00:26:15]wFMCommunicate request_size=255 [00:26:15]MH_SAM_APDU [00:26:15]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 58 02 03 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 [00:26:15]Write to MH i2c: E2 02 01 D2 00 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 58 02 03 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 00 00 25 [00:26:15]Write i2c OK [00:26:15]MH_I2C_Read... [00:26:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:26:15]Read from MH i2c: E2 [00:26:15]MH_I2C_Read... [00:26:15]Read from MH i2c: E2 03 00 [00:26:15]MH_I2C_Read... [00:26:15]Read from MH i2c: E2 03 00 D2 00 00 90 00 46 [00:26:15]RAPDU: 90 00 [00:26:15]wFMCommunicate OK [00:26:15]wFMCommunicate request_size=255 [00:26:15]MH_SAM_APDU [00:26:15]CAPDU: 80 0D 02 02 FA 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 [00:26:16]Write to MH i2c: E2 02 01 D3 00 80 0D 02 02 FA 00 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 00 00 10 [00:26:16]Write i2c OK [00:26:16]MH_I2C_Read... [00:26:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:26:16]Read from MH i2c: E2 [00:26:16]MH_I2C_Read... [00:26:16]Read from MH i2c: E2 03 00 [00:26:16]MH_I2C_Read... [00:26:16]Read from MH i2c: E2 03 00 D3 00 00 90 00 47 [00:26:16]RAPDU: 90 00 [00:26:16]wFMCommunicate OK [00:26:16]wFMCommunicate request_size=255 [00:26:16]MH_SAM_APDU [00:26:16]CAPDU: 80 0D 02 02 FA 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:26:16]Write to MH i2c: E2 02 01 D4 00 80 0D 02 02 FA 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 00 13 [00:26:17]Write i2c OK [00:26:17]MH_I2C_Read... [00:26:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:26:17]Read from MH i2c: E2 [00:26:17]MH_I2C_Read... [00:26:17]Read from MH i2c: E2 03 00 [00:26:17]MH_I2C_Read... [00:26:17]Read from MH i2c: E2 03 00 D4 00 00 90 00 48 [00:26:17]RAPDU: 90 00 [00:26:17]wFMCommunicate OK [00:26:17]wFMCommunicate request_size=255 [00:26:17]MH_SAM_APDU [00:26:17]CAPDU: 80 0D 02 02 FA 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 [00:26:17]Write to MH i2c: E2 02 01 D5 00 80 0D 02 02 FA 00 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 00 00 D5 [00:26:17]Write i2c OK [00:26:17]MH_I2C_Read... [00:26:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:26:18]Read from MH i2c: E2 [00:26:18]MH_I2C_Read... [00:26:18]Read from MH i2c: E2 03 00 [00:26:18]MH_I2C_Read... [00:26:18]Read from MH i2c: E2 03 00 D5 00 00 90 00 49 [00:26:18]RAPDU: 90 00 [00:26:18]wFMCommunicate OK [00:26:18]wFMCommunicate request_size=145 [00:26:18]MH_SAM_APDU [00:26:18]CAPDU: 80 0D 02 02 8C 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 6F 64 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 35 04 06 00 2A 7F 59 89 38 7D [00:26:18]Write to MH i2c: E2 94 00 D6 00 80 0D 02 02 8C 00 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 6F 64 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 35 04 06 00 2A 7F 59 89 38 7D 00 00 AF [00:26:18]Write i2c OK [00:26:18]MH_I2C_Read... [00:26:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:26:18]Read from MH i2c: E2 [00:26:18]MH_I2C_Read... [00:26:18]Read from MH i2c: E2 03 00 [00:26:18]MH_I2C_Read... [00:26:18]Read from MH i2c: E2 03 00 D6 00 00 90 00 4A [00:26:18]RAPDU: 90 00 [00:26:18]wFMCommunicate OK [00:26:18]wFMCommunicate request_size=4 [00:26:18]MH_SAM_APDU [00:26:18]CAPDU: 80 0D 03 02 [00:26:18]Write to MH i2c: E2 08 00 D7 00 80 0D 03 02 00 00 00 00 52 [00:26:18]Write i2c OK [00:26:18]MH_I2C_Read... [00:26:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:26:18]Read from MH i2c: E2 [00:26:18]MH_I2C_Read... [00:26:18]Read from MH i2c: E2 0B 00 [00:26:18]MH_I2C_Read... [00:26:18]Read from MH i2c: E2 0B 00 D7 00 00 A3 D3 69 FE F6 C5 2B 27 90 00 3D [00:26:18]RAPDU: A3 D3 69 FE F6 C5 2B 27 90 00 [00:26:18]wFMCommunicate OK [00:26:18]SAM_PROTO_SignData done [00:26:18]FM_MakeSignedData done [00:26:18]CreateOFDProtocolMessage [00:26:18]wFMCommunicate request_size=4 [00:26:18]MH_SAM_APDU [00:26:18]CAPDU: 80 11 00 00 [00:26:18]Write to MH i2c: E2 08 00 D8 00 80 11 00 00 00 00 00 00 52 [00:26:18]Write i2c OK [00:26:18]MH_I2C_Read... [00:26:18]Read from MH i2c: E2 [00:26:18]MH_I2C_Read... [00:26:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:26:18]Read from MH i2c: E2 17 00 [00:26:18]MH_I2C_Read... [00:26:18]Read from MH i2c: E2 17 00 D8 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 A7 [00:26:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [00:26:19]wFMCommunicate OK [00:26:19]CreateOFDProtocolMessage done [00:26:19]OFDSenderStorePacket 156783 [00:26:19]StoreOFDPacket docnum=156783 [00:26:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 7E 05 00 00 25 E9 76 05 FB A0 5A 05 01 00 05 00 6A 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 9A D1 83 D1 80 D0 B0 D0 BD D0 B1 D0 B0 D0 B5 D0 B2 D0 B0 20 D0 9D 2E 20 F4 03 04 00 1C DA 1E 67 0E 04 04 00 19 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 5E 04 04 00 4D 01 00 00 57 04 04 00 4F 01 00 00 AA 04 D8 04 6E 04 04 00 4D 01 00 00 69 04 A5 00 6F 04 04 00 4D 01 00 00 B1 04 04 00 6E E6 53 01 70 04 04 00 74 FC 2E 01 72 04 03 00 FA E9 24 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 D0 1B 24 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 58 02 03 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 6F 64 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 35 04 06 00 2A 7F 59 89 38 7D A3 D3 69 FE F6 C5 2B 27 [00:26:19]CheckFolder [00:26:19]dirname=/storage/ofd_packets [00:26:19]CheckFolder done [00:26:19]ProducePacketName [00:26:19]name=ofd_packets/00156783 [00:26:19]NVStorageSaveData ofd_packets/00156783 [00:26:19]File name is /storage/ofd_packets/00156783 [00:26:19]Write 1436 bytes [00:26:19]NVStorageSaveData done [00:26:19]OFDSenderStorePacket done [00:26:19]KKMCreateOFDPacket done [00:26:19]NVStorageSaveData kkm_last_timestamp [00:26:19]File name is /storage/kkm_last_timestamp [00:26:19]Write 4 bytes [00:26:19]NVStorageSaveData done [00:26:19]ExternCall_PrintAddStr [00:26:19]wPrintStart [00:26:19]Write to MH i2c: 01 00 00 D9 00 D9 [00:26:19]OFD Sender: No OFD packet to send [00:26:19]Write i2c OK [00:26:19]MH_I2C_Read... [00:26:19]Read from MH i2c: 01 [00:26:19]MH_I2C_Read... [00:26:19]Read from MH i2c: 01 07 00 [00:26:19]MH_I2C_Read... [00:26:19]Read from MH i2c: 01 07 00 D9 00 00 00 00 00 00 FF 0F EE [00:26:19]RasterBufferAndPrint [00:26:19]line Отчет о закрытии смены [00:26:19]line ФФД: 1.0 [00:26:19]line ИНН: 02508201610067 [00:26:19]line Кассир: Куранбаева Н. [00:26:19]line 28.10.2024 00:26 [00:26:19]line Смена: 537 [00:26:19]line РНМ: 0000000000091693 [00:26:19]line ЗНМ: 0300000096 [00:26:19]line СНО: Общий режим [00:26:19]line Чеков за смену: 333 [00:26:19]line ФД за смену: 335 [00:26:19]line Всего чеков: 333 [00:26:19]line ИТОГИ ПРИХОД [00:26:19]line Чеков: 333 [00:26:19]line Общий итог: 222756.94 [00:26:19]line Итого наличными: 198565.00 [00:26:19]line Итого безнал.: 24191.94 [00:26:19]line НДС 0% : 0.00 [00:26:19]line НДС 12% : 23664.16 [00:26:19]line НСП 0% : 0.00 [00:26:19]line НСП 1,50% : 0.00 [00:26:19]line НСП 0,50% : 0.00 [00:26:19]line НСП 5% : 0.00 [00:26:19]line НСП 3% : 0.00 [00:26:19]line НСП 2% : 0.00 [00:26:19]line НСП 1% : 1972.08 [00:26:19]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:26:19]line Чеков: 0 [00:26:19]line Общий итог: 0.00 [00:26:19]line Итого наличными: 0.00 [00:26:19]line Итого безнал.: 0.00 [00:26:19]line НДС 0% : 0.00 [00:26:19]line НДС 12% : 0.00 [00:26:19]line НСП 0% : 0.00 [00:26:19]line НСП 1,50% : 0.00 [00:26:19]line НСП 0,50% : 0.00 [00:26:19]line НСП 5% : 0.00 [00:26:19]line НСП 3% : 0.00 [00:26:19]line НСП 2% : 0.00 [00:26:19]line НСП 1% : 0.00 [00:26:19]line ИТОГИ РАСХОД [00:26:19]line Чеков: 0 [00:26:19]line Общий итог: 0.00 [00:26:19]line Итого наличными: 0.00 [00:26:19]line Итого безнал.: 0.00 [00:26:19]line НДС 0% : 0.00 [00:26:19]line НДС 12% : 0.00 [00:26:19]line НСП 0% : 0.00 [00:26:19]line НСП 1,50% : 0.00 [00:26:19]line НСП 0,50% : 0.00 [00:26:19]line НСП 5% : 0.00 [00:26:19]line НСП 3% : 0.00 [00:26:19]line НСП 2% : 0.00 [00:26:19]line НСП 1% : 0.00 [00:26:19]line ИТОГИ ВОЗВРАТ РАСХОДА [00:26:19]line Чеков: 0 [00:26:19]line Общий итог: 0.00 [00:26:19]line Итого наличными: 0.00 [00:26:19]line Итого безнал.: 0.00 [00:26:19]line НДС 0% : 0.00 [00:26:19]line НДС 12% : 0.00 [00:26:19]line НСП 0% : 0.00 [00:26:19]line НСП 1,50% : 0.00 [00:26:19]line НСП 0,50% : 0.00 [00:26:19]line НСП 5% : 0.00 [00:26:19]line НСП 3% : 0.00 [00:26:19]line НСП 2% : 0.00 [00:26:19]line НСП 1% : 0.00 [00:26:19]line Сумма внесений: 0.00 [00:26:19]line Сумма выплат: 0.00 [00:26:19]line Нал. в кассе: 198565.00 [00:26:19]line НС Приход: 105166579.39 [00:26:19]line НС Возвр.Прихода: 119944.00 [00:26:19]line НС Расход: 0.00 [00:26:19]line НС Возвр.Расхода: 0.00 [00:26:19]line ФД: 156783 [00:26:19]line ФМ: 0000000000871792 [00:26:19]line ФПД: 46726451378301 [00:26:19]OFD Sender: Processing packet 156783 [packets to send 31, broken 30] [00:26:19]ProducePacketName [00:26:19]name=ofd_packets/00156783 [00:26:19]OFD Sender: To server: pG, [00:26:19]CommunicateWithHost lk.salyk.kg:30040 [00:26:19]ConnectInit lk.salyk.kg [00:26:19]written 0, free lines is 4095 [00:26:19]Connected sock=10 [00:26:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 7E 05 00 00 25 E9 76 05 FB A0 5A 05 01 00 05 00 6A 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 9A D1 83 D1 80 D0 B0 D0 BD D0 B1 D0 B0 D0 B5 D0 B2 D0 B0 20 D0 9D 2E 20 F4 03 04 00 1C DA 1E 67 0E 04 04 00 19 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 5E 04 04 00 4D 01 00 00 57 04 04 00 4F 01 00 00 AA 04 D8 04 6E 04 04 00 4D 01 00 00 69 04 A5 00 6F 04 04 00 4D 01 00 00 B1 04 04 00 6E E6 53 01 70 04 04 00 74 FC 2E 01 72 04 03 00 FA E9 24 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 D0 1B 24 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 58 02 03 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E Write to MH i2c: 00 01 EE 00 03 00 0A 29 00 F2 03 01 00 00 F3 03 01 00 00 01 EE 2A 03 [00:26:20]0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A Write i2c OK [00:26:20]00 MH_I2C_Read... [00:26:20]F6 Read from MH i2c: 03 01 01 [00:26:20]00 MH_I2C_Read... [00:26:20]00 Read from MH i2c: F7 01 03 07 01 00 00 [00:26:20]00 MH_I2C_Read... [00:26:20]EF Read from MH i2c: 03 01 0A 00 F6 03 01 00 06 F7 03 01 00 07 00 00 EF 29 03 01 0A 00 00 F6 03 01 00 05 F7 03 01 00 00 00 EF 00 03 00 0A 00 00 24 F6 03 01 00 04 F7 03 01 00 00 EF 0C 03 61 0A [00:26:20]00 RasterBufferAndPrint [00:26:20]F6 line [00:26:20]03 01 00 03 F7 03 01 00 00 EF 03 line [00:26:20]0A line [00:26:20]00 line [00:26:20]F6 line [00:26:20]03 01 00 02 F7 03 01 00 00 EF 03 0A 00 written 0, free lines is 3341 [00:26:20]F6 03 01 00 01 F7 03 01 00 00 process_action close_shift done [00:26:20]6D requested_data is exist [00:26:20]04 produce_requested_data [00:26:20]4C requested_item fd.num is exist - process it [00:26:20]02 SAM_PROTO_GetFieldsCounters [00:26:20]78 wFMCommunicate request_size=4 [00:26:20]04 MH_SAM_APDU [00:26:20]04 CAPDU: 00 80 00 13 00 00 00 00 00 [00:26:20]Write to MH i2c: E2 08 00 30 01 80 13 00 00 79 00 04 00 8D 00 00 00 6F AD [00:26:20]04 04 00 00 00 00 00 B1 04 Write i2c OK [00:26:20]00 MH_I2C_Read... [00:26:20]00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 *** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:26:21]00 Read from MH i2c: F6 E2 03 [00:26:21]01 MH_I2C_Read... [00:26:21]Read from MH i2c: 00 E2 06 62 F7 00 03 [00:26:21]00 MH_I2C_Read... [00:26:21]00 D0 04 Read from MH i2c: 8D E2 00 62 6F 00 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 30 F6 01 03 00 01 5D 00 00 01 B9 F7 04 03 01 00 00 00 01 EF 11 03 04 09 10 00 00 F6 30 03 30 01 00 02 F7 03 00 00 EF 03 09 00 F6 30 03 30 01 30 00 30 03 30 F7 03 30 00 30 00 30 EF 38 03 37 09 31 00 37 39 32 0D 04 10 00 30 30 30 30 F6 30 03 30 01 30 00 30 04 30 30 30 39 31 36 39 33 10 04 04 00 F7 6F 03 64 00 02 00 00 EF 0E 04 04 00 19 02 00 00 12 04 04 00 03 4D 09 01 00 00 F6 00 03 5E 04 04 00 4D 01 00 00 57 04 04 01 00 00 4F 05 01 F7 00 03 00 19 04 04 00 00 00 00 00 90 00 00 AE 00 [00:26:21]EF RAPDU: 03 5D 09 00 00 B9 F6 04 03 01 01 00 00 01 06 F7 11 03 04 00 10 00 00 7A 30 04 8D 00 6F 04 04 00 00 00 00 00 30 B1 30 04 30 00 30 00 30 70 04 00 00 72 04 00 00 00 04 75 30 00 30 EE 30 03 30 09 38 00 37 F2 31 03 37 01 39 00 32 00 F3 03 00 00 EE 03 09 00 F2 03 0D 01 00 01 F3 03 00 00 EF 03 04 09 10 00 00 F6 30 03 30 01 30 00 30 00 30 F7 30 03 30 00 30 00 30 EF 03 30 09 30 00 39 F6 31 03 36 01 39 00 33 01 F7 03 00 00 EF 03 09 00 F6 03 10 01 04 00 02 F7 03 00 00 EF 03 04 09 00 00 6F F6 64 03 02 01 00 03 F7 03 00 00 0E 00 04 EF 04 03 00 09 19 00 02 F6 00 03 00 12 04 04 00 4D 01 00 00 5E 04 04 00 4D 01 00 00 57 04 04 00 01 4F 00 01 04 00 F7 00 03 19 00 04 00 04 EF 00 03 00 09 00 00 00 F6 00 03 90 01 00 00 [00:26:21]05 wFMCommunicate OK [00:26:21]F7 SAM_PROTO_GetFieldsCounters done [00:26:21]03 requested_item shift.num is exist - process it [00:26:21]00 requested_item shift.opened is exist - process it [00:26:21]00 req_shift_opened [00:26:21]EF FM_GetShiftState [00:26:21]03 SAM_PROTO_GetShiftState [00:26:21]09 wFMCommunicate request_size=4 [00:26:21]00 F6 03 01 00 06 F7 03 00 00 D1 04 MH_SAM_APDU [00:26:21]8D CAPDU: 00 80 6F 13 04 01 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 [00:26:21]00 Write to MH i2c: 72 E2 04 08 00 00 00 04 75 00 EE 03 09 00 F2 03 00 01 31 00 01 00 80 F3 13 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 01 EF 00 03 00 09 00 00 00 F6 00 03 AF 01 [00:26:22]00 Write i2c OK [00:26:22]03 MH_I2C_Read... [00:26:22]F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 6F 64 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 35 04 06 00 2A 7F 59 89 38 7D A3 D3 69 FE F6 C5 2B 27 [00:26:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:26:22]Read from MH i2c: E2 [00:26:22]MH_I2C_Read... [00:26:22]Read from MH i2c: E2 0E 00 [00:26:22]MH_I2C_Read... [00:26:22]Read from MH i2c: E2 0E 00 31 01 00 09 00 00 00 00 00 00 00 00 00 00 90 00 BA [00:26:22]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:26:22]wFMCommunicate OK [00:26:22]SAM_PROTO_GetShiftState done [00:26:22]FM_GetShiftState done [00:26:22]req_shift_opened done [00:26:22]requested_item shift.open_date is exist - process it [00:26:22]req_shift_open_date [00:26:22]FM_GetShiftState [00:26:22]SAM_PROTO_GetShiftState [00:26:22]wFMCommunicate request_size=4 [00:26:22]MH_SAM_APDU [00:26:22]CAPDU: 80 13 01 00 [00:26:22]Write to MH i2c: E2 08 00 32 01 80 13 01 00 00 00 00 00 B0 [00:26:22]Write i2c OK [00:26:22]MH_I2C_Read... [00:26:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:26:22]Read from MH i2c: E2 [00:26:22]MH_I2C_Read... [00:26:22]Read from MH i2c: E2 0E 00 [00:26:22]MH_I2C_Read... [00:26:22]Read from MH i2c: E2 0E 00 32 01 00 09 00 00 00 00 00 00 00 00 00 00 90 00 BB [00:26:22]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:26:22]wFMCommunicate OK [00:26:22]SAM_PROTO_GetShiftState done [00:26:22]FM_GetShiftState done [00:26:22]req_shift_open_date done [00:26:22]produce_requested_data done [00:26:22]produce_requested_data return {"fd.num":156783,"shift.num":537,"shift.opened":0,"shift.open_date":0} [00:26:22]process_action_free close_shift [00:26:22]json_value_free [00:26:22]json_value_free done [00:26:22]process_json_proto returns [00:26:22]Send response to host [00:26:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":156783,"shift.num":537,"shift.opened":0,"shift.open_date":0}}} [00:26:22]free response buf [00:26:22]execute_script done [00:26:22]execute_script returns [00:26:22]free content buf [00:26:22]Sock 7.Close socket [00:26:22]Sock 7.Thread stoped [00:26:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 47 51 47 00 DA 41 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 6F 64 02 00 F4 03 04 00 9A 7F 1E 67 B6 04 01 00 00 4D D6 AA 7C 92 05 41 4C [00:26:22]CommunicateWithHost err = 0 [00:26:22]CheckOFDResponse [00:26:22]1017 (14) - 77093643461234 [00:26:22]1041 (16) - 0000000000871792 [00:26:22]1040 (4) - 156783 [00:26:22]1012 (4) - 27.10.2024 17:59 [00:26:22]1206 (1) - 0 [00:26:22]OFD Sender: Remove packet 156783 [00:26:22]ProducePacketName [00:26:22]name=ofd_packets/00156783 [00:26:22]NVStorageDeleteData [00:26:23]OFD Sender: No OFD packet to send [00:26:28]OFD Sender: No OFD packet to send [00:26:33]OFD Sender: No OFD packet to send [00:26:38]OFD Sender: No OFD packet to send [00:26:43]OFD Sender: No OFD packet to send [00:26:48]OFD Sender: No OFD packet to send [00:26:53]OFD Sender: No OFD packet to send [00:26:58]OFD Sender: No OFD packet to send [00:27:03]OFD Sender: No OFD packet to send [00:27:08]int [00:27:08]Write to MH i2c: 01 00 00 33 01 34 [00:27:08]*** FLAG_PRN_KEY set [00:27:08]Write i2c OK [00:27:08]MH_I2C_Read... [00:27:08]Read from MH i2c: 01 [00:27:08]MH_I2C_Read... [00:27:08]Read from MH i2c: 01 07 00 [00:27:08]MH_I2C_Read... [00:27:08]Read from MH i2c: 01 07 00 33 01 00 08 00 00 00 FF 0F 51 [00:27:08]state=0 [00:27:08]Key pressed [00:27:08]Feed [00:27:08]Write to MH i2c: D8 00 00 34 01 0C [00:27:08]Write i2c OK [00:27:08]MH_I2C_Read... [00:27:08]Read from MH i2c: D8 [00:27:08]MH_I2C_Read... [00:27:08]Read from MH i2c: D8 01 00 [00:27:08]MH_I2C_Read... [00:27:08]Read from MH i2c: D8 01 00 34 01 00 0D [00:27:08]int line is 0 - check status [00:27:08]Write to MH i2c: 01 00 00 35 01 36 [00:27:08]Write i2c OK [00:27:08]MH_I2C_Read... [00:27:08]Read from MH i2c: 01 [00:27:08]MH_I2C_Read... [00:27:08]Read from MH i2c: 01 07 00 [00:27:08]MH_I2C_Read... [00:27:08]Read from MH i2c: 01 07 00 35 01 00 48 00 00 00 3D 00 C2 [00:27:08]state=2 [00:27:08]Key pressed [00:27:08]int [00:27:08]Write to MH i2c: 01 00 00 36 01 37 [00:27:08]Write i2c OK [00:27:08]MH_I2C_Read... [00:27:08]Read from MH i2c: 01 [00:27:08]MH_I2C_Read... [00:27:08]Read from MH i2c: 01 07 00 [00:27:08]MH_I2C_Read... [00:27:08]Read from MH i2c: 01 07 00 36 01 00 48 00 00 00 3C 00 C2 [00:27:08]state=2 [00:27:08]Key pressed [00:27:08]OFD Sender: No OFD packet to send [00:27:08]int [00:27:08]Write to MH i2c: 01 00 00 37 01 38 [00:27:08]*** FLAG_PRN_KEY reset [00:27:08]Write i2c OK [00:27:08]MH_I2C_Read... [00:27:08]Read from MH i2c: 01 [00:27:08]MH_I2C_Read... [00:27:08]Read from MH i2c: 01 07 00 [00:27:08]MH_I2C_Read... [00:27:08]Read from MH i2c: 01 07 00 37 01 00 00 00 00 00 FF 0F 4D [00:27:08]state=2 [00:27:08]Stop feed [00:27:13]OFD Sender: No OFD packet to send [00:27:18]OFD Sender: No OFD packet to send [00:27:23]OFD Sender: No OFD packet to send [00:27:28]OFD Sender: No OFD packet to send [00:27:33]OFD Sender: No OFD packet to send [00:27:38]OFD Sender: No OFD packet to send [00:27:43]OFD Sender: No OFD packet to send [00:27:48]OFD Sender: No OFD packet to send [00:27:53]OFD Sender: No OFD packet to send [00:27:58]OFD Sender: No OFD packet to send [00:28:03]OFD Sender: No OFD packet to send [00:28:08]OFD Sender: No OFD packet to send [00:28:13]OFD Sender: No OFD packet to send [00:28:18]OFD Sender: No OFD packet to send [00:28:23]OFD Sender: No OFD packet to send [00:28:28]OFD Sender: No OFD packet to send [00:28:33]OFD Sender: No OFD packet to send [00:28:38]OFD Sender: No OFD packet to send [00:28:43]OFD Sender: No OFD packet to send [00:28:48]OFD Sender: No OFD packet to send [00:28:53]OFD Sender: No OFD packet to send [00:28:58]OFD Sender: No OFD packet to send [00:29:03]OFD Sender: No OFD packet to send [00:29:08]OFD Sender: No OFD packet to send [00:29:13]OFD Sender: No OFD packet to send [00:29:18]OFD Sender: No OFD packet to send [00:29:23]OFD Sender: No OFD packet to send [00:29:28]OFD Sender: No OFD packet to send [00:29:33]OFD Sender: No OFD packet to send [00:29:38]OFD Sender: No OFD packet to send [00:29:43]OFD Sender: No OFD packet to send [00:29:48]OFD Sender: No OFD packet to send [00:29:53]OFD Sender: No OFD packet to send [00:29:58]OFD Sender: No OFD packet to send [00:30:03]OFD Sender: No OFD packet to send [00:30:08]OFD Sender: No OFD packet to send [00:30:13]OFD Sender: No OFD packet to send [00:30:18]OFD Sender: No OFD packet to send [00:30:23]OFD Sender: No OFD packet to send [00:30:28]OFD Sender: No OFD packet to send [00:30:33]OFD Sender: No OFD packet to send [00:30:38]OFD Sender: No OFD packet to send [00:30:43]OFD Sender: No OFD packet to send [00:30:48]OFD Sender: No OFD packet to send [00:30:53]OFD Sender: No OFD packet to send [00:30:58]OFD Sender: No OFD packet to send [00:31:03]OFD Sender: No OFD packet to send [00:31:08]OFD Sender: No OFD packet to send [00:31:13]OFD Sender: No OFD packet to send [00:31:18]OFD Sender: No OFD packet to send [00:31:23]OFD Sender: No OFD packet to send [00:31:28]OFD Sender: No OFD packet to send [00:31:33]OFD Sender: No OFD packet to send [00:31:38]OFD Sender: No OFD packet to send [00:31:43]OFD Sender: No OFD packet to send [00:31:48]OFD Sender: No OFD packet to send [00:31:53]OFD Sender: No OFD packet to send [00:31:58]OFD Sender: No OFD packet to send [00:32:02]accept exits with 9 [00:32:02]New connection [00:32:02]New thread 3066748260 created [00:32:02]Thread 3066604900 joined [00:32:02]Waiting for new connection... [00:32:02] Sock 9.Parse request [00:32:02]Sock 9.Check first char [00:32:02]Sock 9.First char is OK [00:32:02]request: POST /json_proto HTTP/1.0 [00:32:02]Method: POST [00:32:02]URL: /json_proto [00:32:02]Method is POST - this is cgi request [00:32:02]url: /json_proto [00:32:02]query_string will be loaded in cgi processing [00:32:02]execute_cgi json_proto POST (null) [00:32:02]execute_cgi path=json_proto method=POST [00:32:02]POST find Content-Length [00:32:02]Host: 172.17.63.3:8080 [00:32:02]Content-Length: 215 [00:32:02]Content-Type: application/json [00:32:02] [00:32:02]POST finish read [00:32:02]Found Content-Length = 215 [00:32: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" ] } } [00:32:02]execute_script... [00:32: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" ] } } [00:32:02]POST & json_proto [00:32:02]process_json_proto [00:32:02]json parsed OK: [00:32:02]protocol is kg_v1.0 [00:32:02]action value=get_value [00:32:02]process_action get_value [00:32:02]cmd_get_value [00:32:02]process_action get_value done [00:32:02]requested_data is exist [00:32:02]produce_requested_data [00:32:02]requested_item kkm.sn is exist - process it [00:32:02]requested_item kkm.ver is exist - process it [00:32:02]requested_item fm.sn is exist - process it [00:32:02]wFMCommunicate request_size=4 [00:32:02]MH_SAM_APDU [00:32:02]CAPDU: 80 11 00 00 [00:32:02]Write to MH i2c: E2 08 00 38 01 80 11 00 00 00 00 00 00 B3 [00:32:02]Write i2c OK [00:32:02]MH_I2C_Read... [00:32:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:32:02]Read from MH i2c: E2 [00:32:02]MH_I2C_Read... [00:32:02]Read from MH i2c: E2 17 00 [00:32:02]MH_I2C_Read... [00:32:02]Read from MH i2c: E2 17 00 38 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 08 [00:32:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [00:32:02]wFMCommunicate OK [00:32:02]requested_item fd.num is exist - process it [00:32:02]SAM_PROTO_GetFieldsCounters [00:32:02]wFMCommunicate request_size=4 [00:32:02]MH_SAM_APDU [00:32:02]CAPDU: 80 13 00 00 [00:32:02]Write to MH i2c: E2 08 00 39 01 80 13 00 00 00 00 00 00 B6 [00:32:02]Write i2c OK [00:32:02]MH_I2C_Read... [00:32:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:32:02]Read from MH i2c: E2 [00:32:02]MH_I2C_Read... [00:32:02]Read from MH i2c: E2 62 00 [00:32:02]MH_I2C_Read... [00:32:02]Read from MH i2c: E2 62 00 39 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 6F 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 4D 01 00 00 5E 04 04 00 4D 01 00 00 57 04 04 00 4F 01 00 00 19 04 04 00 00 00 00 00 90 00 B7 [00:32:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 6F 64 02 00 0E 04 04 00 19 02 00 00 12 04 04 00 4D 01 00 00 5E 04 04 00 4D 01 00 00 57 04 04 00 4F 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:32:02]wFMCommunicate OK [00:32:02]SAM_PROTO_GetFieldsCounters done [00:32:02]requested_item shift.num is exist - process it [00:32:02]requested_item shift.opened is exist - process it [00:32:02]req_shift_opened [00:32:02]FM_GetShiftState [00:32:02]SAM_PROTO_GetShiftState [00:32:02]wFMCommunicate request_size=4 [00:32:02]MH_SAM_APDU [00:32:02]CAPDU: 80 13 01 00 [00:32:02]Write to MH i2c: E2 08 00 3A 01 80 13 01 00 00 00 00 00 B8 [00:32:02]Write i2c OK [00:32:02]MH_I2C_Read... [00:32:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:32:02]Read from MH i2c: E2 [00:32:02]MH_I2C_Read... [00:32:02]Read from MH i2c: E2 0E 00 [00:32:02]MH_I2C_Read... [00:32:02]Read from MH i2c: E2 0E 00 3A 01 00 09 00 00 00 00 00 00 00 00 00 00 90 00 C3 [00:32:02]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:32:02]wFMCommunicate OK [00:32:02]SAM_PROTO_GetShiftState done [00:32:02]FM_GetShiftState done [00:32:02]req_shift_opened done [00:32:02]requested_item shift.open_date is exist - process it [00:32:02]req_shift_open_date [00:32:02]FM_GetShiftState [00:32:02]SAM_PROTO_GetShiftState [00:32:02]wFMCommunicate request_size=4 [00:32:02]MH_SAM_APDU [00:32:02]CAPDU: 80 13 01 00 [00:32:02]Write to MH i2c: E2 08 00 3B 01 80 13 01 00 00 00 00 00 B9 [00:32:02]Write i2c OK [00:32:02]MH_I2C_Read... [00:32:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:32:02]Read from MH i2c: E2 [00:32:02]MH_I2C_Read... [00:32:02]Read from MH i2c: E2 0E 00 [00:32:02]MH_I2C_Read... [00:32:02]Read from MH i2c: E2 0E 00 3B 01 00 09 00 00 00 00 00 00 00 00 00 00 90 00 C4 [00:32:02]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:32:02]wFMCommunicate OK [00:32:02]SAM_PROTO_GetShiftState done [00:32:02]FM_GetShiftState done [00:32:02]req_shift_open_date done [00:32:02]produce_requested_data done [00:32:02]produce_requested_data return {"kkm.sn":"0300000096","kkm.ver":"001","fm.sn":"0000000000871792","fd.num":156783,"shift.num":537,"shift.opened":0,"shift.open_date":0} [00:32:02]process_action_free get_value [00:32:02]json_value_free [00:32:02]json_value_free done [00:32:02]process_json_proto returns [00:32:02]Send response to host [00:32:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000096","kkm.ver":"001","fm.sn":"0000000000871792","fd.num":156783,"shift.num":537,"shift.opened":0,"shift.open_date":0}}} [00:32:02]free response buf [00:32:02]execute_script done [00:32:02]execute_script returns [00:32:02]free content buf [00:32:02]Sock 9.Close socket [00:32:02]Sock 9.Thread stoped [00:32:02]accept exits with 7 [00:32:02]New connection [00:32:02]New thread 3066604900 created [00:32:02]Thread 3066748260 joined [00:32:02]Waiting for new connection... [00:32:02] Sock 7.Parse request [00:32:02]Sock 7.Check first char [00:32:02]Sock 7.First char is OK [00:32:02]request: POST /json_proto HTTP/1.0 [00:32:02]Method: POST [00:32:02]URL: /json_proto [00:32:02]Method is POST - this is cgi request [00:32:02]url: /json_proto [00:32:02]query_string will be loaded in cgi processing [00:32:02]execute_cgi json_proto POST (null) [00:32:02]execute_cgi path=json_proto method=POST [00:32:02]POST find Content-Length [00:32:02]Host: 172.17.63.3:8080 [00:32:02]Content-Length: 331 [00:32:02]Content-Type: application/json [00:32:02] [00:32:02]POST finish read [00:32:02]Found Content-Length = 331 [00:32: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" ] } } [00:32:02]execute_script... [00:32: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" ] } } [00:32:02]POST & json_proto [00:32:02]process_json_proto [00:32:02]json parsed OK: [00:32:02]protocol is kg_v1.0 [00:32:02]action value=get_value [00:32:02]process_action get_value [00:32:02]cmd_get_value [00:32:02]process_action get_value done [00:32:02]requested_data is exist [00:32:02]produce_requested_data [00:32:02]requested_item fm.sale.total is exist - process it [00:32:02]SAM_PROTO_GetFMData [00:32:02]wFMCommunicate request_size=4 [00:32:02]MH_SAM_APDU [00:32:02]CAPDU: 80 13 03 00 [00:32:02]Write to MH i2c: E2 08 00 3C 01 80 13 03 00 00 00 00 00 BC [00:32:02]Write i2c OK [00:32:02]MH_I2C_Read... [00:32:03]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:32:03]Read from MH i2c: E2 [00:32:03]MH_I2C_Read... [00:32:03]Read from MH i2c: E2 FD 00 [00:32:03]MH_I2C_Read... [00:32:03]Read from MH i2c: E2 FD 00 3C 01 00 C2 04 85 04 BE 04 6E 04 04 00 3C 60 02 00 69 04 A3 00 6F 04 04 00 2D 60 02 00 B1 04 05 00 13 77 D7 72 02 70 04 05 00 B0 4F 86 31 02 72 04 04 00 63 27 51 41 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 11 A1 98 42 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 FC 9B 8C 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 99 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 20 05 B7 70 04 03 00 20 05 B7 72 04 00 00 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 B0 6F 13 EF 03 09 00 F6 03 90 00 4E [00:32:03]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 3C 60 02 00 69 04 A3 00 6F 04 04 00 2D 60 02 00 B1 04 05 00 13 77 D7 72 02 70 04 05 00 B0 4F 86 31 02 72 04 04 00 63 27 51 41 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 11 A1 98 42 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 FC 9B 8C 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 99 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 20 05 B7 70 04 03 00 20 05 B7 72 04 00 00 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 B0 6F 13 EF 03 09 00 F6 03 90 00 [00:32:03]wFMCommunicate OK [00:32:03]wFMCommunicate request_size=4 [00:32:03]MH_SAM_APDU [00:32:03]CAPDU: 80 17 00 00 [00:32:03]Write to MH i2c: E2 08 00 3D 01 80 17 00 00 00 00 00 00 BE [00:32:03]Write i2c OK [00:32:03]MH_I2C_Read... [00:32:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:32:03]Read from MH i2c: E2 [00:32:03]MH_I2C_Read... [00:32:03]Read from MH i2c: E2 FD 00 [00:32:03]MH_I2C_Read... [00:32:03]Read from MH i2c: E2 FD 00 3D 01 00 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 9E 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 2D [00:32:03]RAPDU: 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 9E 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 [00:32:03]wFMCommunicate OK [00:32:03]wFMCommunicate request_size=4 [00:32:03]MH_SAM_APDU [00:32:03]CAPDU: 80 17 00 00 [00:32:03]Write to MH i2c: E2 08 00 3E 01 80 17 00 00 00 00 00 00 BF [00:32:03]Write i2c OK [00:32:03]MH_I2C_Read... [00:32:03]OFD Sender: No OFD packet to send [00:32:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:32:03]Read from MH i2c: E2 [00:32:03]MH_I2C_Read... [00:32:03]Read from MH i2c: E2 FD 00 [00:32:03]MH_I2C_Read... [00:32:03]Read from MH i2c: E2 FD 00 3E 01 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 90 00 6D [00:32:03]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 90 00 [00:32:03]wFMCommunicate OK [00:32:03]wFMCommunicate request_size=4 [00:32:03]MH_SAM_APDU [00:32:03]CAPDU: 80 17 00 00 [00:32:03]Write to MH i2c: E2 08 00 3F 01 80 17 00 00 00 00 00 00 C0 [00:32:03]Write i2c OK [00:32:03]MH_I2C_Read... [00:32:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:32:03]Read from MH i2c: E2 [00:32:03]MH_I2C_Read... [00:32:03]Read from MH i2c: E2 FD 00 [00:32:03]MH_I2C_Read... [00:32:03]Read from MH i2c: E2 FD 00 3F 01 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 3B [00:32:03]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:32:03]wFMCommunicate OK [00:32:03]wFMCommunicate request_size=4 [00:32:03]MH_SAM_APDU [00:32:03]CAPDU: 80 17 00 00 [00:32:03]Write to MH i2c: E2 08 00 40 01 80 17 00 00 00 00 00 00 C1 [00:32:03]Write i2c OK [00:32:03]MH_I2C_Read... [00:32:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [00:32:04]Read from MH i2c: E2 [00:32:04]MH_I2C_Read... [00:32:04]Read from MH i2c: E2 DF 00 [00:32:04]MH_I2C_Read... [00:32:04]Read from MH i2c: E2 DF 00 40 01 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 A1 [00:32:04]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:32:04]wFMCommunicate OK [00:32:04]SAM_PROTO_GetFMData done [00:32:04]requested_item fm.sale_refund.total is exist - process it [00:32:04]requested_item fm.buy.total is exist - process it [00:32:04]requested_item shift.sale.total is exist - process it [00:32:04]SAM_PROTO_GetShiftData [00:32:04]wFMCommunicate request_size=4 [00:32:04]MH_SAM_APDU [00:32:04]CAPDU: 80 13 02 00 [00:32:04]Write to MH i2c: E2 08 00 41 01 80 13 02 00 00 00 00 00 C0 [00:32:04]Write i2c OK [00:32:04]MH_I2C_Read... [00:32:04]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:32:04]Read from MH i2c: E2 [00:32:04]MH_I2C_Read... [00:32:04]Read from MH i2c: E2 FD 00 [00:32:04]MH_I2C_Read... [00:32:04]Read from MH i2c: E2 FD 00 41 01 00 B1 04 AA 04 AD 04 6E 04 04 00 4D 01 00 00 69 04 9E 00 6F 04 04 00 4D 01 00 00 B1 04 04 00 6E E6 53 01 70 04 04 00 74 FC 2E 01 72 04 03 00 FA E9 24 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 D0 1B 24 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 02 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 ED [00:32:04]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 4D 01 00 00 69 04 9E 00 6F 04 04 00 4D 01 00 00 B1 04 04 00 6E E6 53 01 70 04 04 00 74 FC 2E 01 72 04 03 00 FA E9 24 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 D0 1B 24 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 02 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [00:32:04]wFMCommunicate OK [00:32:04]wFMCommunicate request_size=4 [00:32:04]MH_SAM_APDU [00:32:04]CAPDU: 80 17 00 00 [00:32:04]Write to MH i2c: E2 08 00 42 01 80 17 00 00 00 00 00 00 C3 [00:32:04]Write i2c OK [00:32:04]MH_I2C_Read... [00:32:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:32:04]Read from MH i2c: E2 [00:32:04]MH_I2C_Read... [00:32:04]Read from MH i2c: E2 FD 00 [00:32:04]MH_I2C_Read... [00:32:04]Read from MH i2c: E2 FD 00 42 01 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 DC [00:32:04]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 [00:32:04]wFMCommunicate OK [00:32:04]wFMCommunicate request_size=4 [00:32:04]MH_SAM_APDU [00:32:04]CAPDU: 80 17 00 00 [00:32:04]Write to MH i2c: E2 08 00 43 01 80 17 00 00 00 00 00 00 C4 [00:32:04]Write i2c OK [00:32:04]MH_I2C_Read... [00:32:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:32:05]Read from MH i2c: E2 [00:32:05]MH_I2C_Read... [00:32:05]Read from MH i2c: E2 FD 00 [00:32:05]MH_I2C_Read... [00:32:05]Read from MH i2c: E2 FD 00 43 01 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 7D [00:32:05]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [00:32:05]wFMCommunicate OK [00:32:05]wFMCommunicate request_size=4 [00:32:05]MH_SAM_APDU [00:32:05]CAPDU: 80 17 00 00 [00:32:05]Write to MH i2c: E2 08 00 44 01 80 17 00 00 00 00 00 00 C5 [00:32:05]Write i2c OK [00:32:05]MH_I2C_Read... [00:32:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:32:05]Read from MH i2c: E2 [00:32:05]MH_I2C_Read... [00:32:05]Read from MH i2c: E2 FD 00 [00:32:05]MH_I2C_Read... [00:32:05]Read from MH i2c: E2 FD 00 44 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 90 00 3D [00:32:05]RAPDU: 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 90 00 [00:32:05]wFMCommunicate OK [00:32:05]wFMCommunicate request_size=4 [00:32:05]MH_SAM_APDU [00:32:05]CAPDU: 80 17 00 00 [00:32:05]Write to MH i2c: E2 08 00 45 01 80 17 00 00 00 00 00 00 C6 [00:32:05]Write i2c OK [00:32:05]MH_I2C_Read... [00:32:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [00:32:05]Read from MH i2c: E2 [00:32:05]MH_I2C_Read... [00:32:05]Read from MH i2c: E2 CE 00 [00:32:05]MH_I2C_Read... [00:32:05]Read from MH i2c: E2 CE 00 45 01 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 AB [00:32:05]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:32:05]wFMCommunicate OK [00:32:05]SAM_PROTO_GetShiftData done [00:32:05]requested_item shift.sale.total_cash is exist - process it [00:32:05]requested_item shift.sale_refund.total is exist - process it [00:32:05]requested_item shift.sale_refund.total_cash is exist - process it [00:32:05]requested_item shift.buy.total is exist - process it [00:32:05]requested_item shift.buy.total_cash is exist - process it [00:32:05]produce_requested_data done [00:32:05]produce_requested_data return {"fm.sale.total":105166579.39,"fm.sale_refund.total":119944.00,"fm.buy.total":0.00,"shift.sale.total":222756.94,"shift.sale.total_cash":198565.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:32:05]process_action_free get_value [00:32:05]json_value_free [00:32:05]json_value_free done [00:32:05]process_json_proto returns [00:32:05]Send response to host [00:32:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":105166579.39,"fm.sale_refund.total":119944.00,"fm.buy.total":0.00,"shift.sale.total":222756.94,"shift.sale.total_cash":198565.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:32:05]free response buf [00:32:05]execute_script done [00:32:05]execute_script returns [00:32:05]free content buf [00:32:05]Sock 7.Close socket [00:32:05]Sock 7.Thread stoped [00:32:06]accept exits with 9 [00:32:06]New connection [00:32:06]New thread 3066748260 created [00:32:06]Thread 3066604900 joined [00:32:06]Waiting for new connection... [00:32:06] Sock 9.Parse request [00:32:06]Sock 9.Check first char [00:32:06]Sock 9.First char is OK [00:32:06]request: POST /json_proto HTTP/1.0 [00:32:06]Method: POST [00:32:06]URL: /json_proto [00:32:06]Method is POST - this is cgi request [00:32:06]url: /json_proto [00:32:06]query_string will be loaded in cgi processing [00:32:06]execute_cgi json_proto POST (null) [00:32:06]execute_cgi path=json_proto method=POST [00:32:06]POST find Content-Length [00:32:06]Host: 172.17.63.3:8080 [00:32:06]Content-Length: 271 [00:32:06]Content-Type: application/json [00:32:06] [00:32:06]POST finish read [00:32:06]Found Content-Length = 271 [00:32:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u041A\u0430\u0434\u044B\u0440\u0431\u0435\u043A\u043E\u0432 \u0411. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:32:06]execute_script... [00:32:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u041A\u0430\u0434\u044B\u0440\u0431\u0435\u043A\u043E\u0432 \u0411. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:32:06]POST & json_proto [00:32:06]process_json_proto [00:32:06]json parsed OK: [00:32:06]protocol is kg_v1.0 [00:32:06]action value=open_shift [00:32:06]process_action open_shift [00:32:06]cmd_open_shift [00:32:06]MH_GetDate [00:32:06]Write to MH i2c: F0 00 00 46 01 36 [00:32:06]Write i2c OK [00:32:06]MH_I2C_Read... [00:32:06]Read from MH i2c: F0 [00:32:06]MH_I2C_Read... [00:32:06]Read from MH i2c: F0 09 00 [00:32:06]MH_I2C_Read... [00:32:06]Read from MH i2c: F0 09 00 46 01 00 86 DB 1E 67 50 D1 6C 64 16 [00:32:06]GetLastDocTimeStamp 1730075164 [00:32:06]current date 1730075526 [00:32:06]FM_GetShiftState [00:32:06]SAM_PROTO_GetShiftState [00:32:06]wFMCommunicate request_size=4 [00:32:06]MH_SAM_APDU [00:32:06]CAPDU: 80 13 01 00 [00:32:06]Write to MH i2c: E2 08 00 47 01 80 13 01 00 00 00 00 00 C5 [00:32:06]Write i2c OK [00:32:06]MH_I2C_Read... [00:32:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:32:06]Read from MH i2c: E2 [00:32:06]MH_I2C_Read... [00:32:06]Read from MH i2c: E2 0E 00 [00:32:06]MH_I2C_Read... [00:32:06]Read from MH i2c: E2 0E 00 47 01 00 09 00 00 00 00 00 00 00 00 00 00 90 00 D0 [00:32:06]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:32:06]wFMCommunicate OK [00:32:06]SAM_PROTO_GetShiftState done [00:32:06]FM_GetShiftState done [00:32:06]KKMCreateOpenShiftDocument [00:32:06]Load OK [00:32:06]Malloc new data [00:32:06]MH_GetDate [00:32:06]Write to MH i2c: F0 00 00 48 01 38 [00:32:06]Write i2c OK [00:32:06]MH_I2C_Read... [00:32:06]Read from MH i2c: F0 [00:32:06]MH_I2C_Read... [00:32:06]Read from MH i2c: F0 09 00 [00:32:06]MH_I2C_Read... [00:32:06]Read from MH i2c: F0 09 00 48 01 00 86 DB 1E 67 50 D1 6C 64 18 [00:32:06]Malloc new data [00:32:06]KKMCreateOpenShiftDocument OK [00:32:06]KKMSetOpenShiftData OK [00:32:06]ProcessDocumentItem done err = 0, tmpTLVsize=208 [00:32:06]tlvbuf is B6E761E0 [00:32:06]KKMLoadAndSignOpenShiftData [00:32:06]SAM_PROTO_ProcessDocument [00:32:06]wFMCommunicate request_size=9 [00:32:06]MH_SAM_APDU [00:32:06]CAPDU: 80 15 01 00 04 02 00 D0 00 [00:32:06]Write to MH i2c: E2 0C 00 49 01 80 15 01 00 04 00 02 00 D0 00 00 00 A3 [00:32:06]Write i2c OK [00:32:06]MH_I2C_Read... [00:32:06]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:32:06]Read from MH i2c: E2 [00:32:06]MH_I2C_Read... [00:32:06]Read from MH i2c: E2 03 00 [00:32:06]MH_I2C_Read... [00:32:06]Read from MH i2c: E2 03 00 49 01 00 90 00 BE [00:32:06]RAPDU: 90 00 [00:32:06]wFMCommunicate OK [00:32:06]wFMCommunicate request_size=23 [00:32:06]MH_SAM_APDU [00:32:06]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [00:32:06]Write to MH i2c: E2 1A 00 4A 01 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 C0 [00:32:06]Write i2c OK [00:32:06]MH_I2C_Read... [00:32:06]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:32:06]Read from MH i2c: E2 [00:32:06]MH_I2C_Read... [00:32:06]Read from MH i2c: E2 03 00 [00:32:06]MH_I2C_Read... [00:32:06]Read from MH i2c: E2 03 00 4A 01 00 90 00 BF [00:32:06]RAPDU: 90 00 [00:32:06]wFMCommunicate OK [00:32:06]wFMCommunicate request_size=34 [00:32:06]MH_SAM_APDU [00:32:06]CAPDU: 80 15 02 00 1D FD 03 19 00 D0 9A D0 B0 D0 B4 D1 8B D1 80 D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 91 2E 20 [00:32:06]Write to MH i2c: E2 25 00 4B 01 80 15 02 00 1D 00 FD 03 19 00 D0 9A D0 B0 D0 B4 D1 8B D1 80 D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 91 2E 20 00 00 A9 [00:32:06]Write i2c OK [00:32:06]MH_I2C_Read... [00:32:06]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:32:06]Read from MH i2c: E2 [00:32:06]MH_I2C_Read... [00:32:06]Read from MH i2c: E2 03 00 [00:32:06]MH_I2C_Read... [00:32:06]Read from MH i2c: E2 03 00 4B 01 00 90 00 C0 [00:32:06]RAPDU: 90 00 [00:32:06]wFMCommunicate OK [00:32:06]wFMCommunicate request_size=92 [00:32:06]MH_SAM_APDU [00:32:06]CAPDU: 80 15 02 00 57 F1 03 53 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 A2 D0 B0 D1 88 2D D0 9A D1 83 D0 BC D1 8B D1 80 2C 20 D1 83 D0 BB 2E 20 D0 A2 D0 BE D0 BA D1 82 D0 BE D0 B3 D1 83 D0 BB D0 B0 20 D0 B1 2F D0 BD 2C 20 34 31 2E 33 35 33 37 31 30 2C 20 37 32 2E 32 33 32 35 38 39 [00:32:06]Write to MH i2c: E2 5F 00 4C 01 80 15 02 00 57 00 F1 03 53 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 A2 D0 B0 D1 88 2D D0 9A D1 83 D0 BC D1 8B D1 80 2C 20 D1 83 D0 BB 2E 20 D0 A2 D0 BE D0 BA D1 82 D0 BE D0 B3 D1 83 D0 BB D0 B0 20 D0 B1 2F D0 BD 2C 20 34 31 2E 33 35 33 37 31 30 2C 20 37 32 2E 32 33 32 35 38 39 00 00 CD [00:32:06]Write i2c OK [00:32:06]MH_I2C_Read... [00:32:06]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:32:06]Read from MH i2c: E2 [00:32:06]MH_I2C_Read... [00:32:06]Read from MH i2c: E2 03 00 [00:32:06]MH_I2C_Read... [00:32:06]Read from MH i2c: E2 03 00 4C 01 00 90 00 C1 [00:32:06]RAPDU: 90 00 [00:32:06]wFMCommunicate OK [00:32:06]wFMCommunicate request_size=51 [00:32:06]MH_SAM_APDU [00:32:06]CAPDU: 80 15 02 00 2E A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 34 33 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 [00:32:06]Write to MH i2c: E2 36 00 4D 01 80 15 02 00 2E 00 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 34 33 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 00 00 78 [00:32:06]Write i2c OK [00:32:06]MH_I2C_Read... [00:32:06]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:32:06]Read from MH i2c: E2 [00:32:06]MH_I2C_Read... [00:32:06]Read from MH i2c: E2 03 00 [00:32:06]MH_I2C_Read... [00:32:06]Read from MH i2c: E2 03 00 4D 01 00 90 00 C2 [00:32:06]RAPDU: 90 00 [00:32:06]wFMCommunicate OK [00:32:06]wFMCommunicate request_size=13 [00:32:06]MH_SAM_APDU [00:32:06]CAPDU: 80 15 02 00 08 F4 03 04 00 86 DB 1E 67 [00:32:06]Write to MH i2c: E2 10 00 4E 01 80 15 02 00 08 00 F4 03 04 00 86 DB 1E 67 00 00 C0 [00:32:06]Write i2c OK [00:32:06]MH_I2C_Read... [00:32:06]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:32:06]Read from MH i2c: E2 [00:32:06]MH_I2C_Read... [00:32:06]Read from MH i2c: E2 03 00 [00:32:06]MH_I2C_Read... [00:32:06]Read from MH i2c: E2 03 00 4E 01 00 90 00 C3 [00:32:06]RAPDU: 90 00 [00:32:06]wFMCommunicate OK [00:32:06]wFMCommunicate request_size=25 [00:32:06]MH_SAM_APDU [00:32:06]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 [00:32:06]Write to MH i2c: E2 1C 00 4F 01 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 00 00 35 [00:32:06]Write i2c OK [00:32:06]MH_I2C_Read... [00:32:06]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:32:06]Read from MH i2c: E2 [00:32:06]MH_I2C_Read... [00:32:06]Read from MH i2c: E2 03 00 [00:32:06]MH_I2C_Read... [00:32:06]Read from MH i2c: E2 03 00 4F 01 00 90 00 C4 [00:32:06]RAPDU: 90 00 [00:32:06]wFMCommunicate OK [00:32:06]wFMCommunicate request_size=4 [00:32:06]MH_SAM_APDU [00:32:06]CAPDU: 80 15 03 00 [00:32:06]Write to MH i2c: E2 08 00 50 01 80 15 03 00 00 00 00 00 D2 [00:32:06]Write i2c OK [00:32:06]MH_I2C_Read... [00:32:06]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:32:06]Read from MH i2c: E2 [00:32:06]MH_I2C_Read... [00:32:06]Read from MH i2c: E2 38 00 [00:32:06]MH_I2C_Read... [00:32:06]Read from MH i2c: E2 38 00 50 01 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 70 64 02 00 0E 04 04 00 1A 02 00 00 35 04 06 00 47 47 A8 19 77 0A 90 00 62 [00:32:06]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 70 64 02 00 0E 04 04 00 1A 02 00 00 35 04 06 00 47 47 A8 19 77 0A 90 00 [00:32:06]wFMCommunicate OK [00:32:06]SAM_PROTO_ProcessDocument answer len = 51 [00:32:06]SAM_PROTO_ProcessDocument done [00:32:06]SetTLVBufToDocument [00:32:06]Processing tag 1209 (04B9) [00:32:06]Malloc new data [00:32:06]Processing tag 1041 (0411) [00:32:06]Processing tag 1040 (0410) [00:32:06]Malloc new data [00:32:06]Processing tag 1038 (040E) [00:32:06]Malloc new data [00:32:06]Processing tag 1077 (0435) [00:32:06]Malloc new data [00:32:06]SetTLVBufToDocument err=0 [00:32:06]KKMLoadAndSignOpenShiftData store KKM data [00:32:06]KKMLoadAndSignOpenShiftData err=0 [00:32:06]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Кадырбеков Б. Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 Место: АЗС № 143 "Партнер Нефть" 28.10.2024 00:32 Смена: 538 РНМ: 0000000000091693 ЗНМ: 0300000096 ФД: 156784 ФМ: 0000000000871792 ФПД: 78373088491274 [00:32:06]StoreToDocumentArchive [00:32:06]shift 538 fd 156784 [00:32:06]Create dir for shift 0538 [00:32:06]save to /storage/0538/doc_00156784 [00:32:06]save last doc name /storage/0538/doc_00156784 to /storage/kkm_last_doc_name [00:32:06]save OK [00:32:06]Clear old archive folders... [00:32:06]Remove dir /storage/0537 [00:32:06]opendir ok [00:32:07]file . [00:32:07]file .. [00:32:07]file doc_00156449 [00:32:07]remove file /storage/0537/doc_00156449 [00:32:07]file doc_00156450 [00:32:07]remove file /storage/0537/doc_00156450 [00:32:07]file doc_00156451 [00:32:07]remove file /storage/0537/doc_00156451 [00:32:07]file doc_00156452 [00:32:07]remove file /storage/0537/doc_00156452 [00:32:07]file doc_00156453 [00:32:07]remove file /storage/0537/doc_00156453 [00:32:07]file doc_00156454 [00:32:07]remove file /storage/0537/doc_00156454 [00:32:07]file doc_00156455 [00:32:07]remove file /storage/0537/doc_00156455 [00:32:07]file doc_00156456 [00:32:07]remove file /storage/0537/doc_00156456 [00:32:07]file doc_00156457 [00:32:07]remove file /storage/0537/doc_00156457 [00:32:07]file doc_00156458 [00:32:07]remove file /storage/0537/doc_00156458 [00:32:07]file doc_00156459 [00:32:07]remove file /storage/0537/doc_00156459 [00:32:07]file doc_00156460 [00:32:07]remove file /storage/0537/doc_00156460 [00:32:07]file doc_00156461 [00:32:07]remove file /storage/0537/doc_00156461 [00:32:07]file doc_00156462 [00:32:07]remove file /storage/0537/doc_00156462 [00:32:07]file doc_00156463 [00:32:07]remove file /storage/0537/doc_00156463 [00:32:07]file doc_00156464 [00:32:07]remove file /storage/0537/doc_00156464 [00:32:07]file doc_00156465 [00:32:07]remove file /storage/0537/doc_00156465 [00:32:07]file doc_00156466 [00:32:07]remove file /storage/0537/doc_00156466 [00:32:07]file doc_00156467 [00:32:07]remove file /storage/0537/doc_00156467 [00:32:07]file doc_00156468 [00:32:07]remove file /storage/0537/doc_00156468 [00:32:07]file doc_00156469 [00:32:07]remove file /storage/0537/doc_00156469 [00:32:07]file doc_00156470 [00:32:07]remove file /storage/0537/doc_00156470 [00:32:07]file doc_00156471 [00:32:07]remove file /storage/0537/doc_00156471 [00:32:07]file doc_00156472 [00:32:07]remove file /storage/0537/doc_00156472 [00:32:07]file doc_00156473 [00:32:07]remove file /storage/0537/doc_00156473 [00:32:07]file doc_00156474 [00:32:07]remove file /storage/0537/doc_00156474 [00:32:07]file doc_00156475 [00:32:07]remove file /storage/0537/doc_00156475 [00:32:07]file doc_00156476 [00:32:07]remove file /storage/0537/doc_00156476 [00:32:07]file doc_00156477 [00:32:07]remove file /storage/0537/doc_00156477 [00:32:07]file doc_00156478 [00:32:07]remove file /storage/0537/doc_00156478 [00:32:07]file doc_00156479 [00:32:07]remove file /storage/0537/doc_00156479 [00:32:07]file doc_00156480 [00:32:07]remove file /storage/0537/doc_00156480 [00:32:07]file doc_00156481 [00:32:07]remove file /storage/0537/doc_00156481 [00:32:07]file doc_00156482 [00:32:07]remove file /storage/0537/doc_00156482 [00:32:07]file doc_00156483 [00:32:07]remove file /storage/0537/doc_00156483 [00:32:07]file doc_00156484 [00:32:07]remove file /storage/0537/doc_00156484 [00:32:07]file doc_00156485 [00:32:07]remove file /storage/0537/doc_00156485 [00:32:07]file doc_00156486 [00:32:07]remove file /storage/0537/doc_00156486 [00:32:07]file doc_00156487 [00:32:07]remove file /storage/0537/doc_00156487 [00:32:07]file doc_00156488 [00:32:07]remove file /storage/0537/doc_00156488 [00:32:07]file doc_00156489 [00:32:07]remove file /storage/0537/doc_00156489 [00:32:07]file doc_00156490 [00:32:07]remove file /storage/0537/doc_00156490 [00:32:07]file doc_00156491 [00:32:07]remove file /storage/0537/doc_00156491 [00:32:07]file doc_00156492 [00:32:07]remove file /storage/0537/doc_00156492 [00:32:07]file doc_00156493 [00:32:07]remove file /storage/0537/doc_00156493 [00:32:07]file doc_00156494 [00:32:07]remove file /storage/0537/doc_00156494 [00:32:07]file doc_00156495 [00:32:07]remove file /storage/0537/doc_00156495 [00:32:07]file doc_00156496 [00:32:07]remove file /storage/0537/doc_00156496 [00:32:07]file doc_00156497 [00:32:07]remove file /storage/0537/doc_00156497 [00:32:07]file doc_00156498 [00:32:07]remove file /storage/0537/doc_00156498 [00:32:07]file doc_00156499 [00:32:07]remove file /storage/0537/doc_00156499 [00:32:07]file doc_00156500 [00:32:07]remove file /storage/0537/doc_00156500 [00:32:07]file doc_00156501 [00:32:07]remove file /storage/0537/doc_00156501 [00:32:07]file doc_00156502 [00:32:07]remove file /storage/0537/doc_00156502 [00:32:07]file doc_00156503 [00:32:07]remove file /storage/0537/doc_00156503 [00:32:07]file doc_00156504 [00:32:07]remove file /storage/0537/doc_00156504 [00:32:07]file doc_00156505 [00:32:07]remove file /storage/0537/doc_00156505 [00:32:07]file doc_00156506 [00:32:07]remove file /storage/0537/doc_00156506 [00:32:07]file doc_00156507 [00:32:07]remove file /storage/0537/doc_00156507 [00:32:07]file doc_00156508 [00:32:07]remove file /storage/0537/doc_00156508 [00:32:07]file doc_00156509 [00:32:07]remove file /storage/0537/doc_00156509 [00:32:07]file doc_00156510 [00:32:07]remove file /storage/0537/doc_00156510 [00:32:07]file doc_00156511 [00:32:07]remove file /storage/0537/doc_00156511 [00:32:07]file doc_00156512 [00:32:07]remove file /storage/0537/doc_00156512 [00:32:07]file doc_00156513 [00:32:07]remove file /storage/0537/doc_00156513 [00:32:07]file doc_00156514 [00:32:07]remove file /storage/0537/doc_00156514 [00:32:07]file doc_00156515 [00:32:07]remove file /storage/0537/doc_00156515 [00:32:07]file doc_00156516 [00:32:07]remove file /storage/0537/doc_00156516 [00:32:07]file doc_00156517 [00:32:07]remove file /storage/0537/doc_00156517 [00:32:07]file doc_00156518 [00:32:07]remove file /storage/0537/doc_00156518 [00:32:07]file doc_00156519 [00:32:07]remove file /storage/0537/doc_00156519 [00:32:07]file doc_00156520 [00:32:07]remove file /storage/0537/doc_00156520 [00:32:07]file doc_00156521 [00:32:07]remove file /storage/0537/doc_00156521 [00:32:07]file doc_00156522 [00:32:07]remove file /storage/0537/doc_00156522 [00:32:07]file doc_00156523 [00:32:07]remove file /storage/0537/doc_00156523 [00:32:07]file doc_00156524 [00:32:07]remove file /storage/0537/doc_00156524 [00:32:07]file doc_00156525 [00:32:07]remove file /storage/0537/doc_00156525 [00:32:07]file doc_00156526 [00:32:07]remove file /storage/0537/doc_00156526 [00:32:07]file doc_00156527 [00:32:07]remove file /storage/0537/doc_00156527 [00:32:07]file doc_00156528 [00:32:07]remove file /storage/0537/doc_00156528 [00:32:07]file doc_00156529 [00:32:07]remove file /storage/0537/doc_00156529 [00:32:07]file doc_00156530 [00:32:07]remove file /storage/0537/doc_00156530 [00:32:07]file doc_00156531 [00:32:07]remove file /storage/0537/doc_00156531 [00:32:07]file doc_00156532 [00:32:07]remove file /storage/0537/doc_00156532 [00:32:07]file doc_00156533 [00:32:07]remove file /storage/0537/doc_00156533 [00:32:07]file doc_00156534 [00:32:07]remove file /storage/0537/doc_00156534 [00:32:07]file doc_00156535 [00:32:07]remove file /storage/0537/doc_00156535 [00:32:07]file doc_00156536 [00:32:07]remove file /storage/0537/doc_00156536 [00:32:07]file doc_00156537 [00:32:07]remove file /storage/0537/doc_00156537 [00:32:07]file doc_00156538 [00:32:07]remove file /storage/0537/doc_00156538 [00:32:07]file doc_00156539 [00:32:07]remove file /storage/0537/doc_00156539 [00:32:07]file doc_00156540 [00:32:07]remove file /storage/0537/doc_00156540 [00:32:07]file doc_00156541 [00:32:07]remove file /storage/0537/doc_00156541 [00:32:07]file doc_00156542 [00:32:07]remove file /storage/0537/doc_00156542 [00:32:07]file doc_00156543 [00:32:07]remove file /storage/0537/doc_00156543 [00:32:07]file doc_00156544 [00:32:07]remove file /storage/0537/doc_00156544 [00:32:07]file doc_00156545 [00:32:07]remove file /storage/0537/doc_00156545 [00:32:07]file doc_00156546 [00:32:07]remove file /storage/0537/doc_00156546 [00:32:07]file doc_00156547 [00:32:07]remove file /storage/0537/doc_00156547 [00:32:07]file doc_00156548 [00:32:07]remove file /storage/0537/doc_00156548 [00:32:07]file doc_00156549 [00:32:07]remove file /storage/0537/doc_00156549 [00:32:07]file doc_00156550 [00:32:07]remove file /storage/0537/doc_00156550 [00:32:07]file doc_00156551 [00:32:07]remove file /storage/0537/doc_00156551 [00:32:07]file doc_00156552 [00:32:07]remove file /storage/0537/doc_00156552 [00:32:07]file doc_00156553 [00:32:07]remove file /storage/0537/doc_00156553 [00:32:07]file doc_00156554 [00:32:07]remove file /storage/0537/doc_00156554 [00:32:07]file doc_00156555 [00:32:07]remove file /storage/0537/doc_00156555 [00:32:07]file doc_00156556 [00:32:07]remove file /storage/0537/doc_00156556 [00:32:07]file doc_00156557 [00:32:07]remove file /storage/0537/doc_00156557 [00:32:07]file doc_00156558 [00:32:07]remove file /storage/0537/doc_00156558 [00:32:07]file doc_00156559 [00:32:07]remove file /storage/0537/doc_00156559 [00:32:07]file doc_00156560 [00:32:07]remove file /storage/0537/doc_00156560 [00:32:07]file doc_00156561 [00:32:07]remove file /storage/0537/doc_00156561 [00:32:07]file doc_00156562 [00:32:07]remove file /storage/0537/doc_00156562 [00:32:07]file doc_00156563 [00:32:07]remove file /storage/0537/doc_00156563 [00:32:07]file doc_00156564 [00:32:07]remove file /storage/0537/doc_00156564 [00:32:07]file doc_00156565 [00:32:07]remove file /storage/0537/doc_00156565 [00:32:07]file doc_00156566 [00:32:07]remove file /storage/0537/doc_00156566 [00:32:07]file doc_00156567 [00:32:07]remove file /storage/0537/doc_00156567 [00:32:07]file doc_00156568 [00:32:07]remove file /storage/0537/doc_00156568 [00:32:07]file doc_00156569 [00:32:07]remove file /storage/0537/doc_00156569 [00:32:07]file doc_00156570 [00:32:07]remove file /storage/0537/doc_00156570 [00:32:07]file doc_00156571 [00:32:07]remove file /storage/0537/doc_00156571 [00:32:07]file doc_00156572 [00:32:07]remove file /storage/0537/doc_00156572 [00:32:07]file doc_00156573 [00:32:07]remove file /storage/0537/doc_00156573 [00:32:07]file doc_00156574 [00:32:07]remove file /storage/0537/doc_00156574 [00:32:07]file doc_00156575 [00:32:07]remove file /storage/0537/doc_00156575 [00:32:07]file doc_00156576 [00:32:07]remove file /storage/0537/doc_00156576 [00:32:07]file doc_00156577 [00:32:07]remove file /storage/0537/doc_00156577 [00:32:07]file doc_00156578 [00:32:07]remove file /storage/0537/doc_00156578 [00:32:07]file doc_00156579 [00:32:07]remove file /storage/0537/doc_00156579 [00:32:07]file doc_00156580 [00:32:07]remove file /storage/0537/doc_00156580 [00:32:07]file doc_00156581 [00:32:07]remove file /storage/0537/doc_00156581 [00:32:07]file doc_00156582 [00:32:07]remove file /storage/0537/doc_00156582 [00:32:07]file doc_00156583 [00:32:07]remove file /storage/0537/doc_00156583 [00:32:07]file doc_00156584 [00:32:07]remove file /storage/0537/doc_00156584 [00:32:07]file doc_00156585 [00:32:07]remove file /storage/0537/doc_00156585 [00:32:07]file doc_00156586 [00:32:07]remove file /storage/0537/doc_00156586 [00:32:07]file doc_00156587 [00:32:07]remove file /storage/0537/doc_00156587 [00:32:07]file doc_00156588 [00:32:07]remove file /storage/0537/doc_00156588 [00:32:07]file doc_00156589 [00:32:07]remove file /storage/0537/doc_00156589 [00:32:07]file doc_00156590 [00:32:07]remove file /storage/0537/doc_00156590 [00:32:07]file doc_00156591 [00:32:07]remove file /storage/0537/doc_00156591 [00:32:07]file doc_00156592 [00:32:07]remove file /storage/0537/doc_00156592 [00:32:07]file doc_00156593 [00:32:07]remove file /storage/0537/doc_00156593 [00:32:07]file doc_00156594 [00:32:07]remove file /storage/0537/doc_00156594 [00:32:07]file doc_00156595 [00:32:07]remove file /storage/0537/doc_00156595 [00:32:07]file doc_00156596 [00:32:07]remove file /storage/0537/doc_00156596 [00:32:07]file doc_00156597 [00:32:07]remove file /storage/0537/doc_00156597 [00:32:07]file doc_00156598 [00:32:07]remove file /storage/0537/doc_00156598 [00:32:07]file doc_00156599 [00:32:07]remove file /storage/0537/doc_00156599 [00:32:07]file doc_00156600 [00:32:07]remove file /storage/0537/doc_00156600 [00:32:07]file doc_00156601 [00:32:07]remove file /storage/0537/doc_00156601 [00:32:07]file doc_00156602 [00:32:07]remove file /storage/0537/doc_00156602 [00:32:07]file doc_00156603 [00:32:07]remove file /storage/0537/doc_00156603 [00:32:07]file doc_00156604 [00:32:07]remove file /storage/0537/doc_00156604 [00:32:07]file doc_00156605 [00:32:07]remove file /storage/0537/doc_00156605 [00:32:07]file doc_00156606 [00:32:07]remove file /storage/0537/doc_00156606 [00:32:07]file doc_00156607 [00:32:07]remove file /storage/0537/doc_00156607 [00:32:07]file doc_00156608 [00:32:07]remove file /storage/0537/doc_00156608 [00:32:07]file doc_00156609 [00:32:07]remove file /storage/0537/doc_00156609 [00:32:07]file doc_00156610 [00:32:08]remove file /storage/0537/doc_00156610 [00:32:08]file doc_00156611 [00:32:08]remove file /storage/0537/doc_00156611 [00:32:08]file doc_00156612 [00:32:08]remove file /storage/0537/doc_00156612 [00:32:08]file doc_00156613 [00:32:08]remove file /storage/0537/doc_00156613 [00:32:08]file doc_00156614 [00:32:08]remove file /storage/0537/doc_00156614 [00:32:08]file doc_00156615 [00:32:08]remove file /storage/0537/doc_00156615 [00:32:08]file doc_00156616 [00:32:08]remove file /storage/0537/doc_00156616 [00:32:08]file doc_00156617 [00:32:08]remove file /storage/0537/doc_00156617 [00:32:08]file doc_00156618 [00:32:08]remove file /storage/0537/doc_00156618 [00:32:08]file doc_00156619 [00:32:08]remove file /storage/0537/doc_00156619 [00:32:08]file doc_00156620 [00:32:08]remove file /storage/0537/doc_00156620 [00:32:08]file doc_00156621 [00:32:08]remove file /storage/0537/doc_00156621 [00:32:08]file doc_00156622 [00:32:08]remove file /storage/0537/doc_00156622 [00:32:08]file doc_00156623 [00:32:08]remove file /storage/0537/doc_00156623 [00:32:08]file doc_00156624 [00:32:08]remove file /storage/0537/doc_00156624 [00:32:08]file doc_00156625 [00:32:08]remove file /storage/0537/doc_00156625 [00:32:08]file doc_00156626 [00:32:08]remove file /storage/0537/doc_00156626 [00:32:08]file doc_00156627 [00:32:08]remove file /storage/0537/doc_00156627 [00:32:08]file doc_00156628 [00:32:08]remove file /storage/0537/doc_00156628 [00:32:08]file doc_00156629 [00:32:08]remove file /storage/0537/doc_00156629 [00:32:08]file doc_00156630 [00:32:08]remove file /storage/0537/doc_00156630 [00:32:08]file doc_00156631 [00:32:08]remove file /storage/0537/doc_00156631 [00:32:08]file doc_00156632 [00:32:08]remove file /storage/0537/doc_00156632 [00:32:08]file doc_00156633 [00:32:08]remove file /storage/0537/doc_00156633 [00:32:08]file doc_00156634 [00:32:08]remove file /storage/0537/doc_00156634 [00:32:08]file doc_00156635 [00:32:08]remove file /storage/0537/doc_00156635 [00:32:08]file doc_00156636 [00:32:08]remove file /storage/0537/doc_00156636 [00:32:08]file doc_00156637 [00:32:08]remove file /storage/0537/doc_00156637 [00:32:08]file doc_00156638 [00:32:08]remove file /storage/0537/doc_00156638 [00:32:08]file doc_00156639 [00:32:08]remove file /storage/0537/doc_00156639 [00:32:08]file doc_00156640 [00:32:08]remove file /storage/0537/doc_00156640 [00:32:08]file doc_00156641 [00:32:08]remove file /storage/0537/doc_00156641 [00:32:08]file doc_00156642 [00:32:08]remove file /storage/0537/doc_00156642 [00:32:08]file doc_00156643 [00:32:08]remove file /storage/0537/doc_00156643 [00:32:08]file doc_00156644 [00:32:08]remove file /storage/0537/doc_00156644 [00:32:08]file doc_00156645 [00:32:08]remove file /storage/0537/doc_00156645 [00:32:08]file doc_00156646 [00:32:08]remove file /storage/0537/doc_00156646 [00:32:08]file doc_00156647 [00:32:08]remove file /storage/0537/doc_00156647 [00:32:08]file doc_00156648 [00:32:08]remove file /storage/0537/doc_00156648 [00:32:08]file doc_00156649 [00:32:08]remove file /storage/0537/doc_00156649 [00:32:08]file doc_00156650 [00:32:08]remove file /storage/0537/doc_00156650 [00:32:08]file doc_00156651 [00:32:08]remove file /storage/0537/doc_00156651 [00:32:08]file doc_00156652 [00:32:08]remove file /storage/0537/doc_00156652 [00:32:08]file doc_00156653 [00:32:08]remove file /storage/0537/doc_00156653 [00:32:08]file doc_00156654 [00:32:08]remove file /storage/0537/doc_00156654 [00:32:08]file doc_00156655 [00:32:08]remove file /storage/0537/doc_00156655 [00:32:08]file doc_00156656 [00:32:08]remove file /storage/0537/doc_00156656 [00:32:08]file doc_00156657 [00:32:08]remove file /storage/0537/doc_00156657 [00:32:08]file doc_00156658 [00:32:08]remove file /storage/0537/doc_00156658 [00:32:08]file doc_00156659 [00:32:08]remove file /storage/0537/doc_00156659 [00:32:08]file doc_00156660 [00:32:08]remove file /storage/0537/doc_00156660 [00:32:08]file doc_00156661 [00:32:08]remove file /storage/0537/doc_00156661 [00:32:08]file doc_00156662 [00:32:08]remove file /storage/0537/doc_00156662 [00:32:08]file doc_00156663 [00:32:08]remove file /storage/0537/doc_00156663 [00:32:08]file doc_00156664 [00:32:08]remove file /storage/0537/doc_00156664 [00:32:08]file doc_00156665 [00:32:08]remove file /storage/0537/doc_00156665 [00:32:08]file doc_00156666 [00:32:08]remove file /storage/0537/doc_00156666 [00:32:08]file doc_00156667 [00:32:08]remove file /storage/0537/doc_00156667 [00:32:08]file doc_00156668 [00:32:08]remove file /storage/0537/doc_00156668 [00:32:08]file doc_00156669 [00:32:08]remove file /storage/0537/doc_00156669 [00:32:08]file doc_00156670 [00:32:08]remove file /storage/0537/doc_00156670 [00:32:08]file doc_00156671 [00:32:08]remove file /storage/0537/doc_00156671 [00:32:08]file doc_00156672 [00:32:08]remove file /storage/0537/doc_00156672 [00:32:08]file doc_00156673 [00:32:08]remove file /storage/0537/doc_00156673 [00:32:08]file doc_00156674 [00:32:08]remove file /storage/0537/doc_00156674 [00:32:08]file doc_00156675 [00:32:08]remove file /storage/0537/doc_00156675 [00:32:08]file doc_00156676 [00:32:08]remove file /storage/0537/doc_00156676 [00:32:08]file doc_00156677 [00:32:08]remove file /storage/0537/doc_00156677 [00:32:08]file doc_00156678 [00:32:08]remove file /storage/0537/doc_00156678 [00:32:08]file doc_00156679 [00:32:08]remove file /storage/0537/doc_00156679 [00:32:08]file doc_00156680 [00:32:08]remove file /storage/0537/doc_00156680 [00:32:08]file doc_00156681 [00:32:08]remove file /storage/0537/doc_00156681 [00:32:08]file doc_00156682 [00:32:08]remove file /storage/0537/doc_00156682 [00:32:08]file doc_00156683 [00:32:08]remove file /storage/0537/doc_00156683 [00:32:08]file doc_00156684 [00:32:08]remove file /storage/0537/doc_00156684 [00:32:08]file doc_00156685 [00:32:08]remove file /storage/0537/doc_00156685 [00:32:08]file doc_00156686 [00:32:08]remove file /storage/0537/doc_00156686 [00:32:08]file doc_00156687 [00:32:08]remove file /storage/0537/doc_00156687 [00:32:08]file doc_00156688 [00:32:08]remove file /storage/0537/doc_00156688 [00:32:08]file doc_00156689 [00:32:08]remove file /storage/0537/doc_00156689 [00:32:08]file doc_00156690 [00:32:08]remove file /storage/0537/doc_00156690 [00:32:08]file doc_00156691 [00:32:08]remove file /storage/0537/doc_00156691 [00:32:08]file doc_00156692 [00:32:08]remove file /storage/0537/doc_00156692 [00:32:08]file doc_00156693 [00:32:08]remove file /storage/0537/doc_00156693 [00:32:08]file doc_00156694 [00:32:08]remove file /storage/0537/doc_00156694 [00:32:08]file doc_00156695 [00:32:08]remove file /storage/0537/doc_00156695 [00:32:08]file doc_00156696 [00:32:08]remove file /storage/0537/doc_00156696 [00:32:08]file doc_00156697 [00:32:08]remove file /storage/0537/doc_00156697 [00:32:08]file doc_00156698 [00:32:08]remove file /storage/0537/doc_00156698 [00:32:08]file doc_00156699 [00:32:08]remove file /storage/0537/doc_00156699 [00:32:08]file doc_00156700 [00:32:08]remove file /storage/0537/doc_00156700 [00:32:08]file doc_00156701 [00:32:08]remove file /storage/0537/doc_00156701 [00:32:08]file doc_00156702 [00:32:08]remove file /storage/0537/doc_00156702 [00:32:08]file doc_00156703 [00:32:08]remove file /storage/0537/doc_00156703 [00:32:08]file doc_00156704 [00:32:08]remove file /storage/0537/doc_00156704 [00:32:08]file doc_00156705 [00:32:08]remove file /storage/0537/doc_00156705 [00:32:08]file doc_00156706 [00:32:08]remove file /storage/0537/doc_00156706 [00:32:08]file doc_00156707 [00:32:08]remove file /storage/0537/doc_00156707 [00:32:08]file doc_00156708 [00:32:08]remove file /storage/0537/doc_00156708 [00:32:08]file doc_00156709 [00:32:08]remove file /storage/0537/doc_00156709 [00:32:08]file doc_00156710 [00:32:08]remove file /storage/0537/doc_00156710 [00:32:08]file doc_00156711 [00:32:08]remove file /storage/0537/doc_00156711 [00:32:08]file doc_00156712 [00:32:08]remove file /storage/0537/doc_00156712 [00:32:08]file doc_00156713 [00:32:08]remove file /storage/0537/doc_00156713 [00:32:08]file doc_00156714 [00:32:08]remove file /storage/0537/doc_00156714 [00:32:08]file doc_00156715 [00:32:08]remove file /storage/0537/doc_00156715 [00:32:08]file doc_00156716 [00:32:08]remove file /storage/0537/doc_00156716 [00:32:08]file doc_00156717 [00:32:08]remove file /storage/0537/doc_00156717 [00:32:08]file doc_00156718 [00:32:08]remove file /storage/0537/doc_00156718 [00:32:08]file doc_00156719 [00:32:08]remove file /storage/0537/doc_00156719 [00:32:08]file doc_00156720 [00:32:08]remove file /storage/0537/doc_00156720 [00:32:08]file doc_00156721 [00:32:08]remove file /storage/0537/doc_00156721 [00:32:08]file doc_00156722 [00:32:08]remove file /storage/0537/doc_00156722 [00:32:08]file doc_00156723 [00:32:08]remove file /storage/0537/doc_00156723 [00:32:08]file doc_00156724 [00:32:08]remove file /storage/0537/doc_00156724 [00:32:08]file doc_00156725 [00:32:08]remove file /storage/0537/doc_00156725 [00:32:08]file doc_00156726 [00:32:08]remove file /storage/0537/doc_00156726 [00:32:08]file doc_00156727 [00:32:08]remove file /storage/0537/doc_00156727 [00:32:08]file doc_00156728 [00:32:08]remove file /storage/0537/doc_00156728 [00:32:08]file doc_00156729 [00:32:08]remove file /storage/0537/doc_00156729 [00:32:08]file doc_00156730 [00:32:08]remove file /storage/0537/doc_00156730 [00:32:08]file doc_00156731 [00:32:08]remove file /storage/0537/doc_00156731 [00:32:08]OFD Sender: No OFD packet to send [00:32:08]file doc_00156732 [00:32:08]remove file /storage/0537/doc_00156732 [00:32:08]file doc_00156733 [00:32:08]remove file /storage/0537/doc_00156733 [00:32:08]file doc_00156734 [00:32:08]remove file /storage/0537/doc_00156734 [00:32:08]file doc_00156735 [00:32:08]remove file /storage/0537/doc_00156735 [00:32:08]file doc_00156736 [00:32:08]remove file /storage/0537/doc_00156736 [00:32:08]file doc_00156737 [00:32:08]remove file /storage/0537/doc_00156737 [00:32:08]file doc_00156738 [00:32:08]remove file /storage/0537/doc_00156738 [00:32:08]file doc_00156739 [00:32:08]remove file /storage/0537/doc_00156739 [00:32:08]file doc_00156740 [00:32:08]remove file /storage/0537/doc_00156740 [00:32:08]file doc_00156741 [00:32:08]remove file /storage/0537/doc_00156741 [00:32:08]file doc_00156742 [00:32:08]remove file /storage/0537/doc_00156742 [00:32:08]file doc_00156743 [00:32:08]remove file /storage/0537/doc_00156743 [00:32:08]file doc_00156744 [00:32:08]remove file /storage/0537/doc_00156744 [00:32:08]file doc_00156745 [00:32:08]remove file /storage/0537/doc_00156745 [00:32:08]file doc_00156746 [00:32:08]remove file /storage/0537/doc_00156746 [00:32:08]file doc_00156747 [00:32:08]remove file /storage/0537/doc_00156747 [00:32:08]file doc_00156748 [00:32:08]remove file /storage/0537/doc_00156748 [00:32:08]file doc_00156749 [00:32:08]remove file /storage/0537/doc_00156749 [00:32:08]file doc_00156750 [00:32:08]remove file /storage/0537/doc_00156750 [00:32:08]file doc_00156751 [00:32:08]remove file /storage/0537/doc_00156751 [00:32:08]file doc_00156752 [00:32:08]remove file /storage/0537/doc_00156752 [00:32:08]file doc_00156753 [00:32:08]remove file /storage/0537/doc_00156753 [00:32:08]file doc_00156754 [00:32:08]remove file /storage/0537/doc_00156754 [00:32:08]file doc_00156755 [00:32:08]remove file /storage/0537/doc_00156755 [00:32:08]file doc_00156756 [00:32:08]remove file /storage/0537/doc_00156756 [00:32:08]file doc_00156757 [00:32:08]remove file /storage/0537/doc_00156757 [00:32:08]file doc_00156758 [00:32:08]remove file /storage/0537/doc_00156758 [00:32:08]file doc_00156759 [00:32:08]remove file /storage/0537/doc_00156759 [00:32:08]file doc_00156760 [00:32:08]remove file /storage/0537/doc_00156760 [00:32:08]file doc_00156761 [00:32:08]remove file /storage/0537/doc_00156761 [00:32:08]file doc_00156762 [00:32:08]remove file /storage/0537/doc_00156762 [00:32:08]file doc_00156763 [00:32:08]remove file /storage/0537/doc_00156763 [00:32:08]file doc_00156764 [00:32:08]remove file /storage/0537/doc_00156764 [00:32:08]file doc_00156765 [00:32:08]remove file /storage/0537/doc_00156765 [00:32:08]file doc_00156766 [00:32:08]remove file /storage/0537/doc_00156766 [00:32:08]file doc_00156767 [00:32:08]remove file /storage/0537/doc_00156767 [00:32:08]file doc_00156768 [00:32:08]remove file /storage/0537/doc_00156768 [00:32:08]file doc_00156769 [00:32:08]remove file /storage/0537/doc_00156769 [00:32:08]file doc_00156770 [00:32:08]remove file /storage/0537/doc_00156770 [00:32:08]file doc_00156771 [00:32:08]remove file /storage/0537/doc_00156771 [00:32:08]file doc_00156772 [00:32:08]remove file /storage/0537/doc_00156772 [00:32:08]file doc_00156773 [00:32:08]remove file /storage/0537/doc_00156773 [00:32:08]file doc_00156774 [00:32:08]remove file /storage/0537/doc_00156774 [00:32:08]file doc_00156775 [00:32:08]remove file /storage/0537/doc_00156775 [00:32:08]file doc_00156776 [00:32:08]remove file /storage/0537/doc_00156776 [00:32:08]file doc_00156777 [00:32:08]remove file /storage/0537/doc_00156777 [00:32:08]file doc_00156778 [00:32:08]remove file /storage/0537/doc_00156778 [00:32:08]file doc_00156779 [00:32:08]remove file /storage/0537/doc_00156779 [00:32:08]file doc_00156780 [00:32:08]remove file /storage/0537/doc_00156780 [00:32:08]file doc_00156781 [00:32:08]remove file /storage/0537/doc_00156781 [00:32:08]file doc_00156782 [00:32:08]remove file /storage/0537/doc_00156782 [00:32:08]file doc_00156783 [00:32:08]remove file /storage/0537/doc_00156783 [00:32:08]remove dir /storage/0537 [00:32:08]ProcessDocumentItem done err = 0, tmpTLVsize=259 [00:32:08]tlvbuf is 01B99590 [00:32:08]SAM_PROTO_ClearQueue [00:32:08]wFMCommunicate request_size=4 [00:32:08]MH_SAM_APDU [00:32:08]CAPDU: 80 09 00 00 [00:32:08]Write to MH i2c: E2 08 00 51 01 80 09 00 00 00 00 00 00 C4 [00:32:08]Write i2c OK [00:32:08]MH_I2C_Read... [00:32:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:32:08]Read from MH i2c: E2 [00:32:08]MH_I2C_Read... [00:32:08]Read from MH i2c: E2 03 00 [00:32:08]MH_I2C_Read... [00:32:08]Read from MH i2c: E2 03 00 51 01 00 90 00 C6 [00:32:08]RAPDU: 90 00 [00:32:08]wFMCommunicate OK [00:32:08]SAM_PROTO_ClearQueue done [00:32:08]KKMCreateOFDPacket [00:32:08]OFDProtocolAddRootSTLVToBuf [00:32:08]FM_MakeSignedData [00:32:08]FM_MakeSignedData [00:32:08]SAM_PROTO_SignData [00:32:08]wFMCommunicate request_size=4 [00:32:08]MH_SAM_APDU [00:32:08]CAPDU: 80 0D 01 02 [00:32:08]Write to MH i2c: E2 08 00 52 01 80 0D 01 02 00 00 00 00 CC [00:32:08]Write i2c OK [00:32:08]MH_I2C_Read... [00:32:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:32:08]Read from MH i2c: E2 [00:32:08]MH_I2C_Read... [00:32:08]Read from MH i2c: E2 03 00 [00:32:08]MH_I2C_Read... [00:32:08]Read from MH i2c: E2 03 00 52 01 00 90 00 C7 [00:32:08]RAPDU: 90 00 [00:32:08]wFMCommunicate OK [00:32:08]wFMCommunicate request_size=255 [00:32:08]MH_SAM_APDU [00:32:08]CAPDU: 80 0D 02 02 FA 02 00 03 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 9A D0 B0 D0 B4 D1 8B D1 80 D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 91 2E 20 F1 03 53 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 A2 D0 B0 D1 88 2D D0 9A D1 83 D0 BC D1 8B D1 80 2C 20 D1 83 D0 BB 2E 20 D0 A2 D0 BE D0 BA D1 82 D0 BE D0 B3 D1 83 D0 BB D0 B0 20 D0 B1 2F D0 BD 2C 20 34 31 2E 33 35 33 37 31 30 2C 20 37 32 2E 32 33 32 35 38 39 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 34 33 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 86 DB 1E 67 0E 04 04 00 1A 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 70 64 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 [00:32:08]Write to MH i2c: E2 02 01 53 01 80 0D 02 02 FA 00 02 00 03 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 9A D0 B0 D0 B4 D1 8B D1 80 D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 91 2E 20 F1 03 53 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 A2 D0 B0 D1 88 2D D0 9A D1 83 D0 BC D1 8B D1 80 2C 20 D1 83 D0 BB 2E 20 D0 A2 D0 BE D0 BA D1 82 D0 BE D0 B3 D1 83 D0 BB D0 B0 20 D0 B1 2F D0 BD 2C 20 34 31 2E 33 35 33 37 31 30 2C 20 37 32 2E 32 33 32 35 38 39 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 34 33 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 86 DB 1E 67 0E 04 04 00 1A 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 70 64 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 00 00 7F [00:32:09]Write i2c OK [00:32:09]MH_I2C_Read... [00:32:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:32:09]Read from MH i2c: E2 [00:32:09]MH_I2C_Read... [00:32:09]Read from MH i2c: E2 03 00 [00:32:09]MH_I2C_Read... [00:32:09]Read from MH i2c: E2 03 00 53 01 00 90 00 C8 [00:32:09]RAPDU: 90 00 [00:32:09]wFMCommunicate OK [00:32:09]wFMCommunicate request_size=18 [00:32:09]MH_SAM_APDU [00:32:09]CAPDU: 80 0D 02 02 0D 37 39 32 35 04 06 00 47 47 A8 19 77 0A [00:32:09]Write to MH i2c: E2 15 00 54 01 80 0D 02 02 0D 00 37 39 32 35 04 06 00 47 47 A8 19 77 0A 00 00 9A [00:32:09]Write i2c OK [00:32:09]MH_I2C_Read... [00:32:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:32:09]Read from MH i2c: E2 [00:32:09]MH_I2C_Read... [00:32:09]Read from MH i2c: E2 03 00 [00:32:09]MH_I2C_Read... [00:32:09]Read from MH i2c: E2 03 00 54 01 00 90 00 C9 [00:32:09]RAPDU: 90 00 [00:32:09]wFMCommunicate OK [00:32:09]wFMCommunicate request_size=4 [00:32:09]MH_SAM_APDU [00:32:09]CAPDU: 80 0D 03 02 [00:32:09]Write to MH i2c: E2 08 00 55 01 80 0D 03 02 00 00 00 00 D1 [00:32:09]Write i2c OK [00:32:09]MH_I2C_Read... [00:32:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:32:09]Read from MH i2c: E2 [00:32:09]MH_I2C_Read... [00:32:09]Read from MH i2c: E2 0B 00 [00:32:09]MH_I2C_Read... [00:32:09]Read from MH i2c: E2 0B 00 55 01 00 3D 8A 78 46 13 24 D1 1E 90 00 7D [00:32:09]RAPDU: 3D 8A 78 46 13 24 D1 1E 90 00 [00:32:09]wFMCommunicate OK [00:32:09]SAM_PROTO_SignData done [00:32:09]FM_MakeSignedData done [00:32:09]CreateOFDProtocolMessage [00:32:09]wFMCommunicate request_size=4 [00:32:09]MH_SAM_APDU [00:32:09]CAPDU: 80 11 00 00 [00:32:09]Write to MH i2c: E2 08 00 56 01 80 11 00 00 00 00 00 00 D1 [00:32:09]Write i2c OK [00:32:09]MH_I2C_Read... [00:32:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:32:09]Read from MH i2c: E2 [00:32:09]MH_I2C_Read... [00:32:09]Read from MH i2c: E2 17 00 [00:32:09]MH_I2C_Read... [00:32:09]Read from MH i2c: E2 17 00 56 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 26 [00:32:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [00:32:09]wFMCommunicate OK [00:32:09]CreateOFDProtocolMessage done [00:32:09]OFDSenderStorePacket 156784 [00:32:09]StoreOFDPacket docnum=156784 [00:32:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 17 01 00 00 6A 3B 0F 01 98 4B 5A 02 01 00 02 00 03 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 9A D0 B0 D0 B4 D1 8B D1 80 D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 91 2E 20 F1 03 53 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 A2 D0 B0 D1 88 2D D0 9A D1 83 D0 BC D1 8B D1 80 2C 20 D1 83 D0 BB 2E 20 D0 A2 D0 BE D0 BA D1 82 D0 BE D0 B3 D1 83 D0 BB D0 B0 20 D0 B1 2F D0 BD 2C 20 34 31 2E 33 35 33 37 31 30 2C 20 37 32 2E 32 33 32 35 38 39 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 34 33 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 86 DB 1E 67 0E 04 04 00 1A 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 70 64 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 35 04 06 00 47 47 A8 19 77 0A 3D 8A 78 46 13 24 D1 1E [00:32:09]CheckFolder [00:32:09]dirname=/storage/ofd_packets [00:32:09]CheckFolder done [00:32:09]ProducePacketName [00:32:09]name=ofd_packets/00156784 [00:32:09]NVStorageSaveData ofd_packets/00156784 [00:32:09]File name is /storage/ofd_packets/00156784 [00:32:09]Write 309 bytes [00:32:09]NVStorageSaveData done [00:32:09]OFDSenderStorePacket done [00:32:09]KKMCreateOFDPacket done [00:32:09]NVStorageSaveData kkm_last_timestamp [00:32:09]File name is /storage/kkm_last_timestamp [00:32:09]Write 4 bytes [00:32:09]NVStorageSaveData done [00:32:09]ExternCall_PrintAddStr [00:32:09]wPrintStart [00:32:09]Write to MH i2c: 01 00 00 57 01 58 [00:32:09]Write i2c OK [00:32:09]MH_I2C_Read... [00:32:09]Read from MH i2c: 01 [00:32:09]MH_I2C_Read... [00:32:09]Read from MH i2c: 01 07 00 [00:32:09]MH_I2C_Read... [00:32:09]Read from MH i2c: 01 07 00 57 01 00 00 00 00 00 FF 0F 6D [00:32:09]RasterBufferAndPrint [00:32:09]line Отчет об открытии смены [00:32:09]line ФФД: 1.0 [00:32:09]line ИНН: 02508201610067 [00:32:09]line Кассир: Кадырбеков Б. [00:32:09]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [00:32:09]line Место: АЗС № 143 "Партнер Нефть" [00:32:09]line 28.10.2024 00:32 [00:32:09]line Смена: 538 [00:32:09]line РНМ: 0000000000091693 [00:32:09]line ЗНМ: 0300000096 [00:32:09]line ФД: 156784 [00:32:09]line ФМ: 0000000000871792 [00:32:09]line ФПД: 78373088491274 [00:32:09]written 0, free lines is 4095 [00:32:09]OFD Sender: Processing packet 156784 [packets to send 31, broken 30] [00:32:09]ProducePacketName [00:32:09]name=ofd_packets/00156784 [00:32:09]OFD Sender: To server: pG, [00:32:09]CommunicateWithHost lk.salyk.kg:30040 [00:32:09]ConnectInit lk.salyk.kg [00:32:09]Connected sock=7 [00:32:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 17 01 00 00 6A 3B 0F 01 98 4B 5A 02 01 00 02 00 03 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 9A D0 B0 D0 B4 D1 8B D1 80 D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 91 2E 20 F1 03 53 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 A2 D0 B0 D1 88 2D D0 9A D1 83 D0 BC D1 8B D1 80 2C 20 D1 83 D0 BB 2E 20 D0 A2 D0 BE D0 BA D1 82 D0 BE D0 B3 D1 83 D0 BB D0 B0 20 D0 B1 2F D0 BD 2C 20 34 31 2E 33 35 33 37 31 30 2C 20 37 32 2E 32 33 32 35 38 39 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 34 33 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 86 DB 1E 67 0E 04 04 00 1A 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 70 64 02 00 11 Write to MH i2c: 04 01 10 00 00 00 30 69 30 01 30 6A 30 [00:32:09]30 30 30 30 30 30 38 37 31 37 39 32 35 04 06 00 47 47 A8 19 77 0A 3D 8A 78 46 13 24 D1 1E [00:32:09]Write i2c OK [00:32:09]MH_I2C_Read... [00:32:09]Read from MH i2c: 01 [00:32:09]MH_I2C_Read... [00:32:09]Read from MH i2c: 01 07 00 [00:32:09]MH_I2C_Read... [00:32:09]Read from MH i2c: 01 07 00 69 01 00 00 00 00 00 BB 0E 3A [00:32:09]RasterBufferAndPrint [00:32:09]line [00:32:09]line [00:32:09]line [00:32:09]line [00:32:09]line [00:32:09]written 0, free lines is 3802 [00:32:09]process_action open_shift done [00:32:09]requested_data is exist [00:32:09]produce_requested_data [00:32:09]requested_item fd.num is exist - process it [00:32:09]SAM_PROTO_GetFieldsCounters [00:32:09]wFMCommunicate request_size=4 [00:32:09]MH_SAM_APDU [00:32:09]CAPDU: 80 13 00 00 [00:32:09]Write to MH i2c: E2 08 00 70 01 80 13 00 00 00 00 00 00 ED [00:32:09]Write i2c OK [00:32:09]MH_I2C_Read... [00:32:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:32:10]Read from MH i2c: E2 [00:32:10]MH_I2C_Read... [00:32:10]Read from MH i2c: E2 62 00 [00:32:10]MH_I2C_Read... [00:32:10]Read from MH i2c: E2 62 00 70 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 70 64 02 00 0E 04 04 00 1A 02 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 05 [00:32:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 70 64 02 00 0E 04 04 00 1A 02 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:32:10]wFMCommunicate OK [00:32:10]SAM_PROTO_GetFieldsCounters done [00:32:10]requested_item shift.num is exist - process it [00:32:10]requested_item shift.opened is exist - process it [00:32:10]req_shift_opened [00:32:10]FM_GetShiftState [00:32:10]SAM_PROTO_GetShiftState [00:32:10]wFMCommunicate request_size=4 [00:32:10]MH_SAM_APDU [00:32:10]CAPDU: 80 13 01 00 [00:32:10]Write to MH i2c: E2 08 00 71 01 80 13 01 00 00 00 00 00 EF [00:32:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 59 20 47 00 D4 E9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 70 64 02 00 F4 03 04 00 F5 80 1E 67 B6 04 01 00 00 6A 5B E5 3F 6D 26 *** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:32:10]77 Write i2c OK [00:32:10]04 MH_I2C_Read... [00:32:10] [00:32:10]Read from MH i2c: CommunicateWithHost err = 0 [00:32:10]E2 [00:32:10]CheckOFDResponse [00:32:10]MH_I2C_Read... [00:32:10]1017 (14) - 77093643461234 [00:32:10]1041 (16) - 0000000000871792 [00:32:10]1040 (4) - 156784 [00:32:10]1012 (4) - 27.10.2024 18:05 [00:32:10]1206 (1) - 0 [00:32:10]OFD Sender: Remove packet 156784 [00:32:10]ProducePacketName [00:32:10]name=ofd_packets/00156784 [00:32:10]NVStorageDeleteData [00:32:10]Read from MH i2c: E2 0E 00 [00:32:10]MH_I2C_Read... [00:32:10]Read from MH i2c: E2 0E 00 71 01 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 E1 [00:32:10]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [00:32:10]wFMCommunicate OK [00:32:10]SAM_PROTO_GetShiftState done [00:32:10]FM_GetShiftState done [00:32:10]req_shift_opened done [00:32:10]requested_item shift.open_date is exist - process it [00:32:10]req_shift_open_date [00:32:10]req_shift_open_date done [00:32:10]produce_requested_data done [00:32:10]produce_requested_data return {"fd.num":156784,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [00:32:10]process_action_free open_shift [00:32:10]json_value_free [00:32:10]json_value_free done [00:32:10]process_json_proto returns [00:32:10]Send response to host [00:32:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":156784,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [00:32:10]free response buf [00:32:10]execute_script done [00:32:10]execute_script returns [00:32:10]free content buf [00:32:10]Sock 9.Close socket [00:32:10]Sock 9.Thread stoped [00:32:10]accept exits with 10 [00:32:10]New connection [00:32:10]New thread 3066604900 created [00:32:10]Thread 3066748260 joined [00:32:10]Waiting for new connection... [00:32:10] Sock 10.Parse request [00:32:10]Sock 10.Check first char [00:32:10]Sock 10.First char is OK [00:32:10]request: POST /json_proto HTTP/1.0 [00:32:10]Method: POST [00:32:10]URL: /json_proto [00:32:10]Method is POST - this is cgi request [00:32:10]url: /json_proto [00:32:10]query_string will be loaded in cgi processing [00:32:10]execute_cgi json_proto POST (null) [00:32:10]execute_cgi path=json_proto method=POST [00:32:10]POST find Content-Length [00:32:10]Host: 172.17.63.3:8080 [00:32:10]Content-Length: 331 [00:32:10]Content-Type: application/json [00:32:10] [00:32:10]POST finish read [00:32:10]Found Content-Length = 331 [00:32: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" ] } } [00:32:10]execute_script... [00:32: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" ] } } [00:32:10]POST & json_proto [00:32:10]process_json_proto [00:32:10]json parsed OK: [00:32:10]protocol is kg_v1.0 [00:32:10]action value=get_value [00:32:10]process_action get_value [00:32:10]cmd_get_value [00:32:10]process_action get_value done [00:32:10]requested_data is exist [00:32:10]produce_requested_data [00:32:10]requested_item fm.sale.total is exist - process it [00:32:10]SAM_PROTO_GetFMData [00:32:10]wFMCommunicate request_size=4 [00:32:10]MH_SAM_APDU [00:32:10]CAPDU: 80 13 03 00 [00:32:10]Write to MH i2c: E2 08 00 72 01 80 13 03 00 00 00 00 00 F2 [00:32:10]Write i2c OK [00:32:10]MH_I2C_Read... [00:32:10]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:32:10]Read from MH i2c: E2 [00:32:10]MH_I2C_Read... [00:32:10]Read from MH i2c: E2 FD 00 [00:32:10]MH_I2C_Read... [00:32:10]Read from MH i2c: E2 FD 00 72 01 00 C2 04 85 04 BE 04 6E 04 04 00 3C 60 02 00 69 04 A3 00 6F 04 04 00 2D 60 02 00 B1 04 05 00 13 77 D7 72 02 70 04 05 00 B0 4F 86 31 02 72 04 04 00 63 27 51 41 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 11 A1 98 42 EF 03 09 00 F6 OFD Sender: No OFD packet to send [00:32:10]03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 FC 9B 8C 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 99 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 20 05 B7 70 04 03 00 20 05 B7 72 04 00 00 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 B0 6F 13 EF 03 09 00 F6 03 90 00 84 [00:32:10]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 3C 60 02 00 69 04 A3 00 6F 04 04 00 2D 60 02 00 B1 04 05 00 13 77 D7 72 02 70 04 05 00 B0 4F 86 31 02 72 04 04 00 63 27 51 41 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 11 A1 98 42 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 FC 9B 8C 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 99 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 20 05 B7 70 04 03 00 20 05 B7 72 04 00 00 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 B0 6F 13 EF 03 09 00 F6 03 90 00 [00:32:10]wFMCommunicate OK [00:32:10]wFMCommunicate request_size=4 [00:32:10]MH_SAM_APDU [00:32:10]CAPDU: 80 17 00 00 [00:32:10]Write to MH i2c: E2 08 00 73 01 80 17 00 00 00 00 00 00 F4 [00:32:10]Write i2c OK [00:32:10]MH_I2C_Read... [00:32:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:32:11]Read from MH i2c: E2 [00:32:11]MH_I2C_Read... [00:32:11]Read from MH i2c: E2 FD 00 [00:32:11]MH_I2C_Read... [00:32:11]Read from MH i2c: E2 FD 00 73 01 00 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 9E 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 63 [00:32:11]RAPDU: 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 9E 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 [00:32:11]wFMCommunicate OK [00:32:11]wFMCommunicate request_size=4 [00:32:11]MH_SAM_APDU [00:32:11]CAPDU: 80 17 00 00 [00:32:11]Write to MH i2c: E2 08 00 74 01 80 17 00 00 00 00 00 00 F5 [00:32:11]Write i2c OK [00:32:11]MH_I2C_Read... [00:32:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:32:11]Read from MH i2c: E2 [00:32:11]MH_I2C_Read... [00:32:11]Read from MH i2c: E2 FD 00 [00:32:11]MH_I2C_Read... [00:32:11]Read from MH i2c: E2 FD 00 74 01 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 90 00 A3 [00:32:11]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 90 00 [00:32:11]wFMCommunicate OK [00:32:11]wFMCommunicate request_size=4 [00:32:11]MH_SAM_APDU [00:32:11]CAPDU: 80 17 00 00 [00:32:11]Write to MH i2c: E2 08 00 75 01 80 17 00 00 00 00 00 00 F6 [00:32:11]Write i2c OK [00:32:11]MH_I2C_Read... [00:32:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:32:12]Read from MH i2c: E2 [00:32:12]MH_I2C_Read... [00:32:12]Read from MH i2c: E2 FD 00 [00:32:12]MH_I2C_Read... [00:32:12]Read from MH i2c: E2 FD 00 75 01 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 71 [00:32:12]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:32:12]wFMCommunicate OK [00:32:12]wFMCommunicate request_size=4 [00:32:12]MH_SAM_APDU [00:32:12]CAPDU: 80 17 00 00 [00:32:12]Write to MH i2c: E2 08 00 76 01 80 17 00 00 00 00 00 00 F7 [00:32:12]Write i2c OK [00:32:12]MH_I2C_Read... [00:32:12]Read from MH i2c: E2 [00:32:12]MH_I2C_Read... [00:32:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [00:32:12]Read from MH i2c: E2 DF 00 [00:32:12]MH_I2C_Read... [00:32:12]Read from MH i2c: E2 DF 00 76 01 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 D7 [00:32:12]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:32:12]wFMCommunicate OK [00:32:12]SAM_PROTO_GetFMData done [00:32:12]requested_item fm.sale_refund.total is exist - process it [00:32:12]requested_item fm.buy.total is exist - process it [00:32:12]requested_item shift.sale.total is exist - process it [00:32:12]SAM_PROTO_GetShiftData [00:32:12]wFMCommunicate request_size=4 [00:32:12]MH_SAM_APDU [00:32:12]CAPDU: 80 13 02 00 [00:32:12]Write to MH i2c: E2 08 00 77 01 80 13 02 00 00 00 00 00 F6 [00:32:12]Write i2c OK [00:32:12]MH_I2C_Read... [00:32:13]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:32:13]Read from MH i2c: E2 [00:32:13]MH_I2C_Read... [00:32:13]Read from MH i2c: E2 FD 00 [00:32:13]MH_I2C_Read... [00:32:13]Read from MH i2c: E2 FD 00 77 01 00 A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 69 [00:32:13]RAPDU: A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 [00:32:13]wFMCommunicate OK [00:32:13]wFMCommunicate request_size=4 [00:32:13]MH_SAM_APDU [00:32:13]CAPDU: 80 17 00 00 [00:32:13]Write to MH i2c: E2 08 00 78 01 80 17 00 00 00 00 00 00 F9 [00:32:13]Write i2c OK [00:32:13]MH_I2C_Read... [00:32:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:32:13]Read from MH i2c: E2 [00:32:13]MH_I2C_Read... [00:32:13]Read from MH i2c: E2 FD 00 [00:32:13]MH_I2C_Read... [00:32:13]Read from MH i2c: E2 FD 00 78 01 00 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 01 [00:32:13]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 [00:32:13]wFMCommunicate OK [00:32:13]wFMCommunicate request_size=4 [00:32:13]MH_SAM_APDU [00:32:13]CAPDU: 80 17 00 00 [00:32:13]Write to MH i2c: E2 08 00 79 01 80 17 00 00 00 00 00 00 FA [00:32:13]Write i2c OK [00:32:13]MH_I2C_Read... [00:32:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:32:14]Read from MH i2c: E2 [00:32:14]MH_I2C_Read... [00:32:14]Read from MH i2c: E2 FD 00 [00:32:14]MH_I2C_Read... [00:32:14]Read from MH i2c: E2 FD 00 79 01 00 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 CC [00:32:14]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 [00:32:14]wFMCommunicate OK [00:32:14]wFMCommunicate request_size=4 [00:32:14]MH_SAM_APDU [00:32:14]CAPDU: 80 17 00 00 [00:32:14]Write to MH i2c: E2 08 00 7A 01 80 17 00 00 00 00 00 00 FB [00:32:14]Write i2c OK [00:32:14]MH_I2C_Read... [00:32:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:32:14]Read from MH i2c: E2 [00:32:14]MH_I2C_Read... [00:32:14]Read from MH i2c: E2 FD 00 [00:32:14]MH_I2C_Read... [00:32:14]Read from MH i2c: E2 FD 00 7A 01 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 6D [00:32:14]RAPDU: 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [00:32:14]wFMCommunicate OK [00:32:14]wFMCommunicate request_size=4 [00:32:14]MH_SAM_APDU [00:32:14]CAPDU: 80 17 00 00 [00:32:14]Write to MH i2c: E2 08 00 7B 01 80 17 00 00 00 00 00 00 FC [00:32:14]Write i2c OK [00:32:14]MH_I2C_Read... [00:32:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:32:14]Read from MH i2c: E2 [00:32:14]MH_I2C_Read... [00:32:14]Read from MH i2c: E2 BD 00 [00:32:14]MH_I2C_Read... [00:32:14]Read from MH i2c: E2 BD 00 7B 01 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 E2 [00:32:15]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:32:15]wFMCommunicate OK [00:32:15]SAM_PROTO_GetShiftData done [00:32:15]requested_item shift.sale.total_cash is exist - process it [00:32:15]requested_item shift.sale_refund.total is exist - process it [00:32:15]requested_item shift.sale_refund.total_cash is exist - process it [00:32:15]requested_item shift.buy.total is exist - process it [00:32:15]requested_item shift.buy.total_cash is exist - process it [00:32:15]produce_requested_data done [00:32:15]produce_requested_data return {"fm.sale.total":105166579.39,"fm.sale_refund.total":119944.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:32:15]process_action_free get_value [00:32:15]json_value_free [00:32:15]json_value_free done [00:32:15]process_json_proto returns [00:32:15]Send response to host [00:32:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":105166579.39,"fm.sale_refund.total":119944.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:32:15]free response buf [00:32:15]execute_script done [00:32:15]execute_script returns [00:32:15]free content buf [00:32:15]Sock 10.Close socket [00:32:15]Sock 10.Thread stoped [00:32:15]OFD Sender: No OFD packet to send [00:32:20]OFD Sender: No OFD packet to send [00:32:25]OFD Sender: No OFD packet to send [00:32:30]OFD Sender: No OFD packet to send [00:32:35]OFD Sender: No OFD packet to send [00:32:40]OFD Sender: No OFD packet to send [00:32:45]OFD Sender: No OFD packet to send [00:32:50]OFD Sender: No OFD packet to send [00:32:55]OFD Sender: No OFD packet to send [00:33:00]OFD Sender: No OFD packet to send [00:33:05]OFD Sender: No OFD packet to send [00:33:10]OFD Sender: No OFD packet to send [00:33:15]OFD Sender: No OFD packet to send [00:33:20]OFD Sender: No OFD packet to send [00:33:25]OFD Sender: No OFD packet to send [00:33:30]OFD Sender: No OFD packet to send [00:33:35]OFD Sender: No OFD packet to send [00:33:40]OFD Sender: No OFD packet to send [00:33:45]OFD Sender: No OFD packet to send [00:33:49]accept exits with 7 [00:33:49]New connection [00:33:49]New thread 3066748260 created [00:33:49]Thread 3066604900 joined [00:33:49]Waiting for new connection... [00:33:49] Sock 7.Parse request [00:33:49]Sock 7.Check first char [00:33:49]Sock 7.First char is OK [00:33:49]request: POST /json_proto HTTP/1.0 [00:33:49]Method: POST [00:33:49]URL: /json_proto [00:33:49]Method is POST - this is cgi request [00:33:49]url: /json_proto [00:33:49]query_string will be loaded in cgi processing [00:33:49]execute_cgi json_proto POST (null) [00:33:49]execute_cgi path=json_proto method=POST [00:33:49]POST find Content-Length [00:33:49]Host: 172.17.63.3:8080 [00:33:49]Content-Length: 681 [00:33:49]Content-Type: application/json [00:33:49] [00:33:49]POST finish read [00:33:49]Found Content-Length = 681 [00:33:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99597", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 17.940, "sum" : 1200.19, "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" ] } } [00:33:49]execute_script... [00:33: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)99597", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 17.940, "sum" : 1200.19, "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" ] } } [00:33:49]POST & json_proto [00:33:49]process_json_proto [00:33:49]json parsed OK: [00:33:49]protocol is kg_v1.0 [00:33:49]action value=close_receipt [00:33:49]process_action close_receipt [00:33:49]cmd_close_receipt [00:33:49]MH_GetDate [00:33:49]Write to MH i2c: F0 00 00 7C 01 6C [00:33:49]Write i2c OK [00:33:49]MH_I2C_Read... [00:33:49]Read from MH i2c: F0 [00:33:49]MH_I2C_Read... [00:33:49]Read from MH i2c: F0 09 00 [00:33:49]MH_I2C_Read... [00:33:49]Read from MH i2c: F0 09 00 7C 01 00 ED DB 1E 67 50 D1 6C 64 B3 [00:33:49]GetLastDocTimeStamp 1730075526 [00:33:49]current date 1730075629 [00:33:49]FM_GetShiftState [00:33:49]SAM_PROTO_GetShiftState [00:33:49]wFMCommunicate request_size=4 [00:33:49]MH_SAM_APDU [00:33:49]CAPDU: 80 13 01 00 [00:33:49]Write to MH i2c: E2 08 00 7D 01 80 13 01 00 00 00 00 00 FB [00:33:49]Write i2c OK [00:33:49]MH_I2C_Read... [00:33:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:33:49]Read from MH i2c: E2 [00:33:49]MH_I2C_Read... [00:33:49]Read from MH i2c: E2 0E 00 [00:33:49]MH_I2C_Read... [00:33:49]Read from MH i2c: E2 0E 00 7D 01 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 ED [00:33:49]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [00:33:49]wFMCommunicate OK [00:33:49]SAM_PROTO_GetShiftState done [00:33:49]FM_GetShiftState done [00:33:49]opened in 1730075526 [00:33:49]opened+sec_in_day 1730161926 [00:33:49]quantity*price = 120018 [00:33:49]sum+1 = 120020 [00:33:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 1 28.10.2024 00:33 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156785 ФПД: 160186707723598 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T003349&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156785&fm=160186707723598&tin=02508201610067®Number=0000000000091693&sum=120000 [00:33:50]StoreToDocumentArchive [00:33:50]shift 538 fd 156785 [00:33:50]save to /storage/0538/doc_00156785 [00:33:50]save last doc name /storage/0538/doc_00156785 to /storage/kkm_last_doc_name [00:33:50]save OK [00:33:50]Clear old archive folders... [00:33:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:33:50]tlvbuf is 01BB3190 [00:33:50]SAM_PROTO_ClearQueue [00:33:50]wFMCommunicate request_size=4 [00:33:50]MH_SAM_APDU [00:33:50]CAPDU: 80 09 00 00 [00:33:50]Write to MH i2c: E2 08 00 8A 01 80 09 00 00 00 00 00 00 FD [00:33:50]Write i2c OK [00:33:50]MH_I2C_Read... [00:33:50]OFD Sender: No OFD packet to send [00:33:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:33:50]Read from MH i2c: E2 [00:33:50]MH_I2C_Read... [00:33:50]Read from MH i2c: E2 03 00 [00:33:50]MH_I2C_Read... [00:33:50]Read from MH i2c: E2 03 00 8A 01 00 90 00 FF [00:33:50]RAPDU: 90 00 [00:33:50]wFMCommunicate OK [00:33:50]SAM_PROTO_ClearQueue done [00:33:50]KKMCreateOFDPacket [00:33:50]OFDProtocolAddRootSTLVToBuf [00:33:50]FM_MakeSignedData [00:33:50]FM_MakeSignedData [00:33:50]SAM_PROTO_SignData [00:33:50]wFMCommunicate request_size=4 [00:33:50]MH_SAM_APDU [00:33:50]CAPDU: 80 0D 01 02 [00:33:50]Write to MH i2c: E2 08 00 8B 01 80 0D 01 02 00 00 00 00 05 [00:33:50]Write i2c OK [00:33:50]MH_I2C_Read... [00:33:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:33:51]Read from MH i2c: E2 [00:33:51]MH_I2C_Read... [00:33:51]Read from MH i2c: E2 03 00 [00:33:51]MH_I2C_Read... [00:33:51]Read from MH i2c: E2 03 00 8B 01 00 90 00 00 [00:33:51]RAPDU: 90 00 [00:33:51]wFMCommunicate OK [00:33:51]wFMCommunicate request_size=255 [00:33:51]MH_SAM_APDU [00:33: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 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 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 C9 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 01 00 00 00 F4 03 04 00 ED DB 1E 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 71 64 02 00 35 04 06 00 91 [00:33:51]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 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 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 C9 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 01 00 00 00 F4 03 04 00 ED DB 1E 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 71 64 02 00 35 04 06 00 91 00 00 72 [00:33:51]Write i2c OK [00:33:51]MH_I2C_Read... [00:33:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:33:51]Read from MH i2c: E2 [00:33:51]MH_I2C_Read... [00:33:51]Read from MH i2c: E2 03 00 [00:33:51]MH_I2C_Read... [00:33:51]Read from MH i2c: E2 03 00 8C 01 00 90 00 01 [00:33:51]RAPDU: 90 00 [00:33:51]wFMCommunicate OK [00:33:51]wFMCommunicate request_size=10 [00:33:51]MH_SAM_APDU [00:33:51]CAPDU: 80 0D 02 02 05 B0 5F CF C5 4E [00:33:51]Write to MH i2c: E2 0D 00 8D 01 80 0D 02 02 05 00 B0 5F CF C5 4E 00 00 03 [00:33:51]Write i2c OK [00:33:51]MH_I2C_Read... [00:33:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:33:51]Read from MH i2c: E2 [00:33:51]MH_I2C_Read... [00:33:51]Read from MH i2c: E2 03 00 [00:33:51]MH_I2C_Read... [00:33:51]Read from MH i2c: E2 03 00 8D 01 00 90 00 02 [00:33:51]RAPDU: 90 00 [00:33:51]wFMCommunicate OK [00:33:51]wFMCommunicate request_size=4 [00:33:51]MH_SAM_APDU [00:33:51]CAPDU: 80 0D 03 02 [00:33:51]Write to MH i2c: E2 08 00 8E 01 80 0D 03 02 00 00 00 00 0A [00:33:51]Write i2c OK [00:33:51]MH_I2C_Read... [00:33:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:33:51]Read from MH i2c: E2 [00:33:51]MH_I2C_Read... [00:33:51]Read from MH i2c: E2 0B 00 [00:33:51]MH_I2C_Read... [00:33:51]Read from MH i2c: E2 0B 00 8E 01 00 87 38 BA 02 A4 DD C7 92 90 00 60 [00:33:51]RAPDU: 87 38 BA 02 A4 DD C7 92 90 00 [00:33:51]wFMCommunicate OK [00:33:51]SAM_PROTO_SignData done [00:33:51]FM_MakeSignedData done [00:33:51]CreateOFDProtocolMessage [00:33:51]wFMCommunicate request_size=4 [00:33:51]MH_SAM_APDU [00:33:51]CAPDU: 80 11 00 00 [00:33:51]Write to MH i2c: E2 08 00 8F 01 80 11 00 00 00 00 00 00 0A [00:33:51]Write i2c OK [00:33:51]MH_I2C_Read... [00:33:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:33:51]Read from MH i2c: E2 [00:33:51]MH_I2C_Read... [00:33:51]Read from MH i2c: E2 17 00 [00:33:51]MH_I2C_Read... [00:33:51]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 31 37 39 32 90 00 5F [00:33:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [00:33:51]wFMCommunicate OK [00:33:51]CreateOFDProtocolMessage done [00:33:51]OFDSenderStorePacket 156785 [00:33:51]StoreOFDPacket docnum=156785 [00:33:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 3A 23 07 01 A0 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 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 C9 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 01 00 00 00 F4 03 04 00 ED DB 1E 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 71 64 02 00 35 04 06 00 91 B0 5F CF C5 4E 87 38 BA 02 A4 DD C7 92 [00:33:51]CheckFolder [00:33:51]dirname=/storage/ofd_packets [00:33:51]CheckFolder done [00:33:51]ProducePacketName [00:33:51]name=ofd_packets/00156785 [00:33:51]NVStorageSaveData ofd_packets/00156785 [00:33:51]File name is /storage/ofd_packets/00156785 [00:33:51]Write 301 bytes [00:33:51]NVStorageSaveData done [00:33:51]OFDSenderStorePacket done [00:33:51]KKMCreateOFDPacket done [00:33:51]NVStorageSaveData kkm_last_timestamp [00:33:51]File name is /storage/kkm_last_timestamp [00:33:51]Write 4 bytes [00:33:51]NVStorageSaveData done [00:33:51]ExternCall_PrintAddStr [00:33:51]wPrintStart [00:33:51]Write to MH i2c: 01 00 00 90 01 91 [00:33:51]Write i2c OK [00:33:51]MH_I2C_Read... [00:33:51]Read from MH i2c: 01 [00:33:51]MH_I2C_Read... [00:33:51]Read from MH i2c: 01 07 00 [00:33:51]MH_I2C_Read... [00:33:51]Read from MH i2c: 01 07 00 90 01 00 00 00 00 00 FF 0F A6 [00:33:51]RasterBufferAndPrint [00:33:51]line Счет N : (1)99597 [00:33:51]line ИНН: 02508201610067 [00:33:51]line Контрольно-Кассовый Чек [00:33:51]line ПРОДАЖА [00:33:51]line ТРК (МРК, ГНК) : 31 [00:33:51]line Товар: 2710124130 [00:33:51]line Аи-92-К-5 [00:33:51]line 17.940 * 66.90 [00:33:51]line = 1200.19 [00:33:51]line НДС 12% НСП 1% [00:33:51]line > о реализуемом товаре [00:33:51]line ОКРУГЛЕНИЕ: -0.19 [00:33:51]line ИТОГО: 1200.00 [00:33:51]line Внесено: 1200.00 [00:33:51]line СДАЧА: 0.00 [00:33:51]line НСП 1% : 10.62 [00:33:51]line НДС 12% : 127.45 [00:33:51]line Наличными: 1200.00 [00:33:51]line Безнал.: 0.00 [00:33:51]line Место: АЗС № 143 "Партнер Нефть" [00:33:51]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [00:33:51]line СНО: Общий режим [00:33:51]line Чек 1 28.10.2024 00:33 [00:33:51]line Смена: 538 ФФД: 1.0 [00:33:51]line ЗНМ: 0300000096 [00:33:51]line РНМ: 0000000000091693 [00:33:51]line Версия ККМ: 001 [00:33:51]line ФМ: 0000000000871792 [00:33:51]line ФД: 156785 [00:33:51]line ФПД: 160186707723598 [00:33:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T003349&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156785&fm=160186707723598&tin=02508201610067®Number=0000000000091693&sum=120000 [00:33:51]written 0, free lines is 4095 [00:33:51]OFD Sender: Processing packet 156785 [packets to send 31, broken 30] [00:33:51]ProducePacketName [00:33:51]name=ofd_packets/00156785 [00:33:51]OFD Sender: To server: pG, [00:33:51]CommunicateWithHost lk.salyk.kg:30040 [00:33:51]ConnectInit lk.salyk.kg [00:33:51]Connected sock=10 [00:33:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 3A 23 07 01 A0 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 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 C9 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 01 00 00 00 F4 03 04 00 ED DB 1E 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 71 64 02 00 35 04 06 00 91 B0 5F CF C5 4E 87 38 BA 02 A4 DD C7 92 [00:33:51]Write to MH i2c: 01 00 00 BB 01 BC [00:33:51]Write i2c OK [00:33:51]MH_I2C_Read... [00:33:51]Read from MH i2c: 01 [00:33:51]MH_I2C_Read... [00:33:51]Read from MH i2c: 01 07 00 [00:33:51]MH_I2C_Read... [00:33:51]Read from MH i2c: 01 07 00 BB 01 00 00 00 00 00 E2 0C B1 [00:33:51]RasterBufferAndPrint [00:33:51]line [00:33:51]line [00:33:51]line [00:33:51]line [00:33:51]line [00:33:51]written 0, free lines is 3304 [00:33:51]process_action close_receipt done [00:33:51]requested_data is exist [00:33:51]produce_requested_data [00:33:51]requested_item fm.sn is exist - process it [00:33:51]wFMCommunicate request_size=4 [00:33:51]MH_SAM_APDU [00:33:51]CAPDU: 80 11 00 00 [00:33:51]Write to MH i2c: E2 08 00 C2 01 80 11 00 00 00 00 00 00 3D [00:33:51]Write i2c OK [00:33:51]MH_I2C_Read... [00:33:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:33:52]Read from MH i2c: E2 [00:33:52]MH_I2C_Read... [00:33:52]Read from MH i2c: E2 17 00 [00:33:52]MH_I2C_Read... [00:33:52]Read from MH i2c: E2 17 00 C2 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 92 [00:33:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [00:33:52]wFMCommunicate OK [00:33:52]requested_item fd.num is exist - process it [00:33:52]SAM_PROTO_GetFieldsCounters [00:33:52]wFMCommunicate request_size=4 [00:33:52]MH_SAM_APDU [00:33:52]CAPDU: 80 13 00 00 [00:33:52]Write to MH i2c: E2 08 00 C3 01 80 13 00 00 00 00 00 00 40 [00:33:52]Write i2c OK [00:33:52]MH_I2C_Read... [00:33:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:33:52]Read from MH i2c: E2 [00:33:52]MH_I2C_Read... [00:33:52]Read from MH i2c: E2 62 00 [00:33:52]MH_I2C_Read... [00:33:52]Read from MH i2c: E2 62 00 C3 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 71 64 02 00 0E 04 04 00 1A 02 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 5C [00:33:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 71 64 02 00 0E 04 04 00 1A 02 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:33:52]wFMCommunicate OK [00:33:52]SAM_PROTO_GetFieldsCounters done [00:33:52]requested_item shift.num is exist - process it [00:33:52]requested_item shift.opened is exist - process it [00:33:52]req_shift_opened [00:33:52]FM_GetShiftState [00:33:52]SAM_PROTO_GetShiftState [00:33:52]wFMCommunicate request_size=4 [00:33:52]MH_SAM_APDU [00:33:52]CAPDU: 80 13 01 00 [00:33:52]Write to MH i2c: E2 08 00 C4 01 80 13 01 00 00 00 00 00 42 [00:33:52]Write i2c OK [00:33:52]MH_I2C_Read... [00:33:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 13 4D 47 00 EC 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 31 37 39 32 10 04 04 00 71 64 02 00 F4 03 04 00 5B 81 1E 67 B6 04 01 00 00 EF D9 82 FF F7 89 57 EF [00:33:52]CommunicateWithHost err = 0 [00:33:52]CheckOFDResponse [00:33:52]1017 (14) - 77093643461234 [00:33:52]1041 (16) - 0000000000871792 [00:33:52]1040 (4) - 156785 [00:33:52]1012 (4) - 27.10.2024 18:07 [00:33:52]1206 (1) - 0 [00:33:52]OFD Sender: Remove packet 156785 [00:33:52]ProducePacketName [00:33:52]name=ofd_packets/00156785 [00:33:52]NVStorageDeleteData [00:33:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:33:52]Read from MH i2c: E2 [00:33:52]MH_I2C_Read... [00:33:52]Read from MH i2c: E2 0E 00 [00:33:52]MH_I2C_Read... [00:33:52]Read from MH i2c: E2 0E 00 C4 01 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 34 [00:33:52]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [00:33:52]wFMCommunicate OK [00:33:52]SAM_PROTO_GetShiftState done [00:33:52]FM_GetShiftState done [00:33:52]req_shift_opened done [00:33:52]requested_item shift.open_date is exist - process it [00:33:52]req_shift_open_date [00:33:52]req_shift_open_date done [00:33:52]produce_requested_data done [00:33:52]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156785,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [00:33:52]process_action_free close_receipt [00:33:52]json_value_free [00:33:52]json_value_free done [00:33:52]process_json_proto returns [00:33:52]Send response to host [00:33:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156785,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [00:33:52]free response buf [00:33:52]execute_script done [00:33:52]execute_script returns [00:33:52]free content buf [00:33:52]Sock 7.Close socket [00:33:52]Sock 7.Thread stoped [00:33:52]OFD Sender: No OFD packet to send [00:33:57]OFD Sender: No OFD packet to send [00:34:02]OFD Sender: No OFD packet to send [00:34:07]OFD Sender: No OFD packet to send [00:34:12]OFD Sender: No OFD packet to send [00:34:17]OFD Sender: No OFD packet to send [00:34:22]OFD Sender: No OFD packet to send [00:34:27]OFD Sender: No OFD packet to send [00:34:32]OFD Sender: No OFD packet to send [00:34:37]OFD Sender: No OFD packet to send [00:34:42]OFD Sender: No OFD packet to send [00:34:47]OFD Sender: No OFD packet to send [00:34:52]OFD Sender: No OFD packet to send [00:34:57]OFD Sender: No OFD packet to send [00:35:02]OFD Sender: No OFD packet to send [00:35:05]accept exits with 9 [00:35:05]New connection [00:35:05]New thread 3066604900 created [00:35:05]Thread 3066748260 joined [00:35:05]Waiting for new connection... [00:35:05] Sock 9.Parse request [00:35:05]Sock 9.Check first char [00:35:05]Sock 9.First char is OK [00:35:05]request: POST /json_proto HTTP/1.0 [00:35:05]Method: POST [00:35:05]URL: /json_proto [00:35:05]Method is POST - this is cgi request [00:35:05]url: /json_proto [00:35:05]query_string will be loaded in cgi processing [00:35:05]execute_cgi json_proto POST (null) [00:35:05]execute_cgi path=json_proto method=POST [00:35:05]POST find Content-Length [00:35:05]Host: 172.17.63.3:8080 [00:35:05]Content-Length: 681 [00:35:05]Content-Type: application/json [00:35:05] [00:35:05]POST finish read [00:35:05]Found Content-Length = 681 [00:35:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99598", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:35:05]execute_script... [00:35: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)99598", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:35:05]POST & json_proto [00:35:05]process_json_proto [00:35:05]json parsed OK: [00:35:05]protocol is kg_v1.0 [00:35:05]action value=close_receipt [00:35:05]process_action close_receipt [00:35:05]cmd_close_receipt [00:35:05]MH_GetDate [00:35:05]Write to MH i2c: F0 00 00 C5 01 B5 [00:35:05]Write i2c OK [00:35:05]MH_I2C_Read... [00:35:05]Read from MH i2c: F0 [00:35:05]MH_I2C_Read... [00:35:05]Read from MH i2c: F0 09 00 [00:35:05]MH_I2C_Read... [00:35:05]Read from MH i2c: F0 09 00 C5 01 00 39 DC 1E 67 50 D1 6C 64 49 [00:35:05]GetLastDocTimeStamp 1730075629 [00:35:05]current date 1730075705 [00:35:05]FM_GetShiftState [00:35:05]SAM_PROTO_GetShiftState [00:35:05]wFMCommunicate request_size=4 [00:35:05]MH_SAM_APDU [00:35:05]CAPDU: 80 13 01 00 [00:35:05]Write to MH i2c: E2 08 00 C6 01 80 13 01 00 00 00 00 00 44 [00:35:05]Write i2c OK [00:35:05]MH_I2C_Read... [00:35:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:35:05]Read from MH i2c: E2 [00:35:05]MH_I2C_Read... [00:35:05]Read from MH i2c: E2 0E 00 [00:35:05]MH_I2C_Read... [00:35:05]Read from MH i2c: E2 0E 00 C6 01 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 36 [00:35:05]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [00:35:05]wFMCommunicate OK [00:35:05]SAM_PROTO_GetShiftState done [00:35:05]FM_GetShiftState done [00:35:05]opened in 1730075526 [00:35:05]opened+sec_in_day 1730161926 [00:35:05]quantity*price = 100015 [00:35:05]sum+1 = 100017 [00:35:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 2 28.10.2024 00:35 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156786 ФПД: 6895178036340 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T003505&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156786&fm=6895178036340&tin=02508201610067®Number=0000000000091693&sum=100000 [00:35:06]StoreToDocumentArchive [00:35:06]shift 538 fd 156786 [00:35:06]save to /storage/0538/doc_00156786 [00:35:06]save last doc name /storage/0538/doc_00156786 to /storage/kkm_last_doc_name [00:35:06]save OK [00:35:06]Clear old archive folders... [00:35:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:35:06]tlvbuf is B6E764F0 [00:35:06]SAM_PROTO_ClearQueue [00:35:06]wFMCommunicate request_size=4 [00:35:06]MH_SAM_APDU [00:35:06]CAPDU: 80 09 00 00 [00:35:06]Write to MH i2c: E2 08 00 D3 01 80 09 00 00 00 00 00 00 46 [00:35:06]Write i2c OK [00:35:06]MH_I2C_Read... [00:35:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:35:06]Read from MH i2c: E2 [00:35:06]MH_I2C_Read... [00:35:06]Read from MH i2c: E2 03 00 [00:35:06]MH_I2C_Read... [00:35:06]Read from MH i2c: E2 03 00 D3 01 00 90 00 48 [00:35:06]RAPDU: 90 00 [00:35:06]wFMCommunicate OK [00:35:06]SAM_PROTO_ClearQueue done [00:35:06]KKMCreateOFDPacket [00:35:06]OFDProtocolAddRootSTLVToBuf [00:35:06]FM_MakeSignedData [00:35:06]FM_MakeSignedData [00:35:06]SAM_PROTO_SignData [00:35:06]wFMCommunicate request_size=4 [00:35:06]MH_SAM_APDU [00:35:06]CAPDU: 80 0D 01 02 [00:35:06]Write to MH i2c: E2 08 00 D4 01 80 0D 01 02 00 00 00 00 4E [00:35:06]Write i2c OK [00:35:06]MH_I2C_Read... [00:35:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:35:06]Read from MH i2c: E2 [00:35:06]MH_I2C_Read... [00:35:06]Read from MH i2c: E2 03 00 [00:35:06]MH_I2C_Read... [00:35:06]Read from MH i2c: E2 03 00 D4 01 00 90 00 49 [00:35:06]RAPDU: 90 00 [00:35:06]wFMCommunicate OK [00:35:06]wFMCommunicate request_size=255 [00:35:06]MH_SAM_APDU [00:35: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 39 DC 1E 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 72 64 02 00 35 04 06 00 06 [00:35:06]Write to MH i2c: E2 02 01 D5 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 39 DC 1E 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 72 64 02 00 35 04 06 00 06 00 00 72 [00:35:06]Write i2c OK [00:35:06]MH_I2C_Read... [00:35:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:35:07]Read from MH i2c: E2 [00:35:07]MH_I2C_Read... [00:35:07]Read from MH i2c: E2 03 00 [00:35:07]MH_I2C_Read... [00:35:07]Read from MH i2c: E2 03 00 D5 01 00 90 00 4A [00:35:07]RAPDU: 90 00 [00:35:07]wFMCommunicate OK [00:35:07]wFMCommunicate request_size=10 [00:35:07]MH_SAM_APDU [00:35:07]CAPDU: 80 0D 02 02 05 45 68 A3 34 74 [00:35:07]Write to MH i2c: E2 0D 00 D6 01 80 0D 02 02 05 00 45 68 A3 34 74 00 00 53 [00:35:07]Write i2c OK [00:35:07]MH_I2C_Read... [00:35:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:35:07]Read from MH i2c: E2 [00:35:07]MH_I2C_Read... [00:35:07]Read from MH i2c: E2 03 00 [00:35:07]MH_I2C_Read... [00:35:07]Read from MH i2c: E2 03 00 D6 01 00 90 00 4B [00:35:07]RAPDU: 90 00 [00:35:07]wFMCommunicate OK [00:35:07]wFMCommunicate request_size=4 [00:35:07]MH_SAM_APDU [00:35:07]CAPDU: 80 0D 03 02 [00:35:07]Write to MH i2c: E2 08 00 D7 01 80 0D 03 02 00 00 00 00 53 [00:35:07]Write i2c OK [00:35:07]MH_I2C_Read... [00:35:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:35:07]Read from MH i2c: E2 [00:35:07]MH_I2C_Read... [00:35:07]Read from MH i2c: E2 0B 00 [00:35:07]MH_I2C_Read... [00:35:07]Read from MH i2c: E2 0B 00 D7 01 00 89 18 7D B5 04 B7 2E 14 90 00 24 [00:35:07]RAPDU: 89 18 7D B5 04 B7 2E 14 90 00 [00:35:07]wFMCommunicate OK [00:35:07]SAM_PROTO_SignData done [00:35:07]FM_MakeSignedData done [00:35:07]CreateOFDProtocolMessage [00:35:07]wFMCommunicate request_size=4 [00:35:07]MH_SAM_APDU [00:35:07]CAPDU: 80 11 00 00 [00:35:07]Write to MH i2c: E2 08 00 D8 01 80 11 00 00 00 00 00 00 53 [00:35:07]Write i2c OK [00:35:07]MH_I2C_Read... [00:35:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:35:07]Read from MH i2c: E2 [00:35:07]MH_I2C_Read... [00:35:07]Read from MH i2c: E2 17 00 [00:35:07]MH_I2C_Read... [00:35:07]Read from MH i2c: E2 17 00 D8 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 A8 [00:35:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [00:35:07]wFMCommunicate OK [00:35:07]CreateOFDProtocolMessage done [00:35:07]OFDSenderStorePacket 156786 [00:35:07]StoreOFDPacket docnum=156786 [00:35:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 41 97 07 01 06 67 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 39 DC 1E 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 72 64 02 00 35 04 06 00 06 45 68 A3 34 74 89 18 7D B5 04 B7 2E 14 [00:35:07]CheckFolder [00:35:07]dirname=/storage/ofd_packets [00:35:07]CheckFolder done [00:35:07]ProducePacketName [00:35:07]name=ofd_packets/00156786 [00:35:07]NVStorageSaveData ofd_packets/00156786 [00:35:07]File name is /storage/ofd_packets/00156786 [00:35:07]Write 301 bytes [00:35:07]NVStorageSaveData done [00:35:07]OFDSenderStorePacket done [00:35:07]KKMCreateOFDPacket done [00:35:07]NVStorageSaveData kkm_last_timestamp [00:35:07]File name is /storage/kkm_last_timestamp [00:35:07]Write 4 bytes [00:35:07]NVStorageSaveData done [00:35:07]ExternCall_PrintAddStr [00:35:07]wPrintStart [00:35:07]Write to MH i2c: 01 00 00 D9 01 DA [00:35:07]Write i2c OK [00:35:07]MH_I2C_Read... [00:35:07]Read from MH i2c: 01 [00:35:07]MH_I2C_Read... [00:35:07]Read from MH i2c: 01 07 00 [00:35:07]MH_I2C_Read... [00:35:07]Read from MH i2c: 01 07 00 D9 01 00 00 00 00 00 FF 0F EF [00:35:07]RasterBufferAndPrint [00:35:07]line Счет N : (1)99598 [00:35:07]line ИНН: 02508201610067 [00:35:07]line Контрольно-Кассовый Чек [00:35:07]line ПРОДАЖА [00:35:07]line ТРК (МРК, ГНК) : 31 [00:35:07]line Товар: 2710124130 [00:35:07]line Аи-92-К-5 [00:35:07]line 14.950 * 66.90 [00:35:07]line = 1000.16 [00:35:07]line НДС 12% НСП 1% [00:35:07]line > о реализуемом товаре [00:35:07]line ОКРУГЛЕНИЕ: -0.16 [00:35:07]line ИТОГО: 1000.00 [00:35:07]line Внесено: 1000.00 [00:35:07]line СДАЧА: 0.00 [00:35:07]line НСП 1% : 8.85 [00:35:07]line НДС 12% : 106.21 [00:35:07]line Наличными: 1000.00 [00:35:07]line Безнал.: 0.00 [00:35:07]line Место: АЗС № 143 "Партнер Нефть" [00:35:07]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [00:35:07]line СНО: Общий режим [00:35:07]line Чек 2 28.10.2024 00:35 [00:35:07]line Смена: 538 ФФД: 1.0 [00:35:07]line ЗНМ: 0300000096 [00:35:07]line РНМ: 0000000000091693 [00:35:07]line Версия ККМ: 001 [00:35:07]line ФМ: 0000000000871792 [00:35:07]line ФД: 156786 [00:35:07]line ФПД: 6895178036340 [00:35:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T003505&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156786&fm=6895178036340&tin=02508201610067®Number=0000000000091693&sum=100000 [00:35:07]OFD Sender: Processing packet 156786 [packets to send 31, broken 30] [00:35:07]ProducePacketName [00:35:07]name=ofd_packets/00156786 [00:35:07]OFD Sender: To server: pG, [00:35:07]CommunicateWithHost lk.salyk.kg:30040 [00:35:07]ConnectInit lk.salyk.kg [00:35:07]written 0, free lines is 4095 [00:35:07]Connected sock=10 [00:35:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 41 97 07 01 06 67 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 39 DC 1E 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 72 64 02 00 35 04 06 00 06 45 68 A3 34 74 89 18 7D B5 04 B7 2E 14 [00:35:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 32 95 47 00 A0 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 72 64 02 00 F4 03 04 00 A7 81 1E 67 B6 04 01 00 00 64 8D A6 1B 30 D3 77 39 [00:35:07]CommunicateWithHost err = 0 [00:35:07]CheckOFDResponse [00:35:07]1017 (14) - 77093643461234 [00:35:07]1041 (16) - 0000000000871792 [00:35:07]1040 (4) - 156786 [00:35:07]1012 (4) - 27.10.2024 18:08 [00:35:07]1206 (1) - 0 [00:35:07]OFD Sender: Remove packet 156786 [00:35:07]ProducePacketName [00:35:07]name=ofd_packets/00156786 [00:35:07]NVStorageDeleteData [00:35:08]Write to MH i2c: 01 00 00 04 02 06 [00:35:08]Write i2c OK [00:35:08]MH_I2C_Read... [00:35:08]Read from MH i2c: 01 [00:35:08]MH_I2C_Read... [00:35:08]Read from MH i2c: 01 07 00 [00:35:08]MH_I2C_Read... [00:35:08]Read from MH i2c: 01 07 00 04 02 00 00 00 00 00 EC 0C 05 [00:35:08]RasterBufferAndPrint [00:35:08]line [00:35:08]line [00:35:08]line [00:35:08]line [00:35:08]line [00:35:08]written 0, free lines is 3314 [00:35:08]process_action close_receipt done [00:35:08]requested_data is exist [00:35:08]produce_requested_data [00:35:08]requested_item fm.sn is exist - process it [00:35:08]wFMCommunicate request_size=4 [00:35:08]MH_SAM_APDU [00:35:08]CAPDU: 80 11 00 00 [00:35:08]Write to MH i2c: E2 08 00 0B 02 80 11 00 00 00 00 00 00 87 [00:35:08]Write i2c OK [00:35:08]MH_I2C_Read... [00:35:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:35:08]Read from MH i2c: E2 [00:35:08]MH_I2C_Read... [00:35:08]Read from MH i2c: E2 17 00 [00:35:08]MH_I2C_Read... [00:35:08]Read from MH i2c: E2 17 00 0B 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 DC [00:35:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [00:35:08]wFMCommunicate OK [00:35:08]requested_item fd.num is exist - process it [00:35:08]SAM_PROTO_GetFieldsCounters [00:35:08]wFMCommunicate request_size=4 [00:35:08]MH_SAM_APDU [00:35:08]CAPDU: 80 13 00 00 [00:35:08]Write to MH i2c: E2 08 00 0C 02 80 13 00 00 00 00 00 00 8A [00:35:08]Write i2c OK [00:35:08]MH_I2C_Read... [00:35:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:35:08]Read from MH i2c: E2 [00:35:08]MH_I2C_Read... [00:35:08]Read from MH i2c: E2 62 00 [00:35:08]MH_I2C_Read... [00:35:08]Read from MH i2c: E2 62 00 0C 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 72 64 02 00 0E 04 04 00 1A 02 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 AA [00:35: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 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 72 64 02 00 0E 04 04 00 1A 02 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:35:08]wFMCommunicate OK [00:35:08]SAM_PROTO_GetFieldsCounters done [00:35:08]requested_item shift.num is exist - process it [00:35:08]requested_item shift.opened is exist - process it [00:35:08]req_shift_opened [00:35:08]FM_GetShiftState [00:35:08]SAM_PROTO_GetShiftState [00:35:08]wFMCommunicate request_size=4 [00:35:08]MH_SAM_APDU [00:35:08]CAPDU: 80 13 01 00 [00:35:08]Write to MH i2c: E2 08 00 0D 02 80 13 01 00 00 00 00 00 8C [00:35:08]Write i2c OK [00:35:08]MH_I2C_Read... [00:35:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:35:08]Read from MH i2c: E2 [00:35:08]MH_I2C_Read... [00:35:08]Read from MH i2c: E2 0E 00 [00:35:08]MH_I2C_Read... [00:35:08]Read from MH i2c: E2 0E 00 0D 02 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 7E [00:35:08]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [00:35:08]wFMCommunicate OK [00:35:08]SAM_PROTO_GetShiftState done [00:35:08]FM_GetShiftState done [00:35:08]req_shift_opened done [00:35:08]requested_item shift.open_date is exist - process it [00:35:08]req_shift_open_date [00:35:08]req_shift_open_date done [00:35:08]produce_requested_data done [00:35:08]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156786,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [00:35:08]process_action_free close_receipt [00:35:08]json_value_free [00:35:08]json_value_free done [00:35:08]process_json_proto returns [00:35:08]Send response to host [00:35:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156786,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [00:35:08]free response buf [00:35:08]execute_script done [00:35:08]execute_script returns [00:35:08]free content buf [00:35:08]Sock 9.Close socket [00:35:08]Sock 9.Thread stoped [00:35:08]OFD Sender: No OFD packet to send [00:35:13]OFD Sender: No OFD packet to send [00:35:18]OFD Sender: No OFD packet to send [00:35:23]OFD Sender: No OFD packet to send [00:35:28]OFD Sender: No OFD packet to send [00:35:33]OFD Sender: No OFD packet to send [00:35:38]OFD Sender: No OFD packet to send [00:35:43]OFD Sender: No OFD packet to send [00:35:48]OFD Sender: No OFD packet to send [00:35:53]OFD Sender: No OFD packet to send [00:35:58]OFD Sender: No OFD packet to send [00:36:03]OFD Sender: No OFD packet to send [00:36:08]OFD Sender: No OFD packet to send [00:36:13]OFD Sender: No OFD packet to send [00:36:18]OFD Sender: No OFD packet to send [00:36:23]OFD Sender: No OFD packet to send [00:36:28]OFD Sender: No OFD packet to send [00:36:33]OFD Sender: No OFD packet to send [00:36:38]OFD Sender: No OFD packet to send [00:36:43]OFD Sender: No OFD packet to send [00:36:48]OFD Sender: No OFD packet to send [00:36:51]accept exits with 7 [00:36:51]New connection [00:36:51]New thread 3066748260 created [00:36:51]Thread 3066604900 joined [00:36:51]Waiting for new connection... [00:36:51] Sock 7.Parse request [00:36:51]Sock 7.Check first char [00:36:51]Sock 7.First char is OK [00:36:51]request: POST /json_proto HTTP/1.0 [00:36:51]Method: POST [00:36:51]URL: /json_proto [00:36:51]Method is POST - this is cgi request [00:36:51]url: /json_proto [00:36:51]query_string will be loaded in cgi processing [00:36:51]execute_cgi json_proto POST (null) [00:36:51]execute_cgi path=json_proto method=POST [00:36:51]POST find Content-Length [00:36:51]Host: 172.17.63.3:8080 [00:36:51]Content-Length: 676 [00:36:51]Content-Type: application/json [00:36:51] [00:36:51]POST finish read [00:36:51]Found Content-Length = 676 [00:36:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99599", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "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" ] } } [00:36:51]execute_script... [00:36: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)99599", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "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" ] } } [00:36:51]POST & json_proto [00:36:51]process_json_proto [00:36:51]json parsed OK: [00:36:51]protocol is kg_v1.0 [00:36:51]action value=close_receipt [00:36:51]process_action close_receipt [00:36:51]cmd_close_receipt [00:36:51]MH_GetDate [00:36:51]Write to MH i2c: F0 00 00 0E 02 FF [00:36:51]Write i2c OK [00:36:51]MH_I2C_Read... [00:36:51]Read from MH i2c: F0 [00:36:51]MH_I2C_Read... [00:36:51]Read from MH i2c: F0 09 00 [00:36:51]MH_I2C_Read... [00:36:51]Read from MH i2c: F0 09 00 0E 02 00 A3 DC 1E 67 50 D1 6C 64 FD [00:36:51]GetLastDocTimeStamp 1730075705 [00:36:51]current date 1730075811 [00:36:51]FM_GetShiftState [00:36:51]SAM_PROTO_GetShiftState [00:36:51]wFMCommunicate request_size=4 [00:36:51]MH_SAM_APDU [00:36:51]CAPDU: 80 13 01 00 [00:36:51]Write to MH i2c: E2 08 00 0F 02 80 13 01 00 00 00 00 00 8E [00:36:51]Write i2c OK [00:36:51]MH_I2C_Read... [00:36:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:36:51]Read from MH i2c: E2 [00:36:51]MH_I2C_Read... [00:36:51]Read from MH i2c: E2 0E 00 [00:36:51]MH_I2C_Read... [00:36:51]Read from MH i2c: E2 0E 00 0F 02 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 80 [00:36:51]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [00:36:51]wFMCommunicate OK [00:36:51]SAM_PROTO_GetShiftState done [00:36:51]FM_GetShiftState done [00:36:51]opened in 1730075526 [00:36:51]opened+sec_in_day 1730161926 [00:36:51]quantity*price = 20003 [00:36:51]sum+1 = 20004 [00:36:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 3 28.10.2024 00:36 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156787 ФПД: 276493869441302 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T003651&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156787&fm=276493869441302&tin=02508201610067®Number=0000000000091693&sum=20000 [00:36:52]StoreToDocumentArchive [00:36:52]shift 538 fd 156787 [00:36:52]save to /storage/0538/doc_00156787 [00:36:52]save last doc name /storage/0538/doc_00156787 to /storage/kkm_last_doc_name [00:36:52]save OK [00:36:52]Clear old archive folders... [00:36:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:36:52]tlvbuf is 01A61DD0 [00:36:52]SAM_PROTO_ClearQueue [00:36:52]wFMCommunicate request_size=4 [00:36:52]MH_SAM_APDU [00:36:52]CAPDU: 80 09 00 00 [00:36:52]Write to MH i2c: E2 08 00 1C 02 80 09 00 00 00 00 00 00 90 [00:36:52]Write i2c OK [00:36:52]MH_I2C_Read... [00:36:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:36:53]Read from MH i2c: E2 [00:36:53]MH_I2C_Read... [00:36:53]Read from MH i2c: E2 03 00 [00:36:53]MH_I2C_Read... [00:36:53]Read from MH i2c: E2 03 00 1C 02 00 90 00 92 [00:36:53]RAPDU: 90 00 [00:36:53]wFMCommunicate OK [00:36:53]SAM_PROTO_ClearQueue done [00:36:53]KKMCreateOFDPacket [00:36:53]OFDProtocolAddRootSTLVToBuf [00:36:53]FM_MakeSignedData [00:36:53]FM_MakeSignedData [00:36:53]SAM_PROTO_SignData [00:36:53]wFMCommunicate request_size=4 [00:36:53]MH_SAM_APDU [00:36:53]CAPDU: 80 0D 01 02 [00:36:53]Write to MH i2c: E2 08 00 1D 02 80 0D 01 02 00 00 00 00 98 [00:36:53]Write i2c OK [00:36:53]MH_I2C_Read... [00:36:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:36:53]Read from MH i2c: E2 [00:36:53]MH_I2C_Read... [00:36:53]Read from MH i2c: E2 03 00 [00:36:53]MH_I2C_Read... [00:36:53]Read from MH i2c: E2 03 00 1D 02 00 90 00 93 [00:36:53]RAPDU: 90 00 [00:36:53]wFMCommunicate OK [00:36:53]wFMCommunicate request_size=255 [00:36:53]MH_SAM_APDU [00:36: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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 03 00 00 00 F4 03 04 00 A3 DC 1E 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 73 64 02 00 35 04 06 00 FB [00:36:53]Write to MH i2c: E2 02 01 1E 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 03 00 00 00 F4 03 04 00 A3 DC 1E 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 73 64 02 00 35 04 06 00 FB 00 00 E5 [00:36:53]Write i2c OK [00:36:53]MH_I2C_Read... [00:36:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:36:53]Read from MH i2c: E2 [00:36:53]MH_I2C_Read... [00:36:53]Read from MH i2c: E2 03 00 [00:36:53]MH_I2C_Read... [00:36:53]Read from MH i2c: E2 03 00 1E 02 00 90 00 94 [00:36:53]RAPDU: 90 00 [00:36:53]wFMCommunicate OK [00:36:53]wFMCommunicate request_size=10 [00:36:53]MH_SAM_APDU [00:36:53]CAPDU: 80 0D 02 02 05 78 3E DE E1 16 [00:36:53]Write to MH i2c: E2 0D 00 1F 02 80 0D 02 02 05 00 78 3E DE E1 16 00 00 30 [00:36:53]Write i2c OK [00:36:53]MH_I2C_Read... [00:36:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:36:53]Read from MH i2c: E2 [00:36:53]MH_I2C_Read... [00:36:53]Read from MH i2c: E2 03 00 [00:36:53]MH_I2C_Read... [00:36:53]Read from MH i2c: E2 03 00 1F 02 00 90 00 95 [00:36:53]RAPDU: 90 00 [00:36:53]wFMCommunicate OK [00:36:53]wFMCommunicate request_size=4 [00:36:53]MH_SAM_APDU [00:36:53]CAPDU: 80 0D 03 02 [00:36:53]Write to MH i2c: E2 08 00 20 02 80 0D 03 02 00 00 00 00 9D [00:36:53]Write i2c OK [00:36:53]MH_I2C_Read... [00:36:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:36:53]Read from MH i2c: E2 [00:36:53]MH_I2C_Read... [00:36:53]Read from MH i2c: E2 0B 00 [00:36:53]MH_I2C_Read... [00:36:53]Read from MH i2c: E2 0B 00 20 02 00 BF 26 11 71 98 31 3C 39 90 00 43 [00:36:53]RAPDU: BF 26 11 71 98 31 3C 39 90 00 [00:36:53]wFMCommunicate OK [00:36:53]SAM_PROTO_SignData done [00:36:53]FM_MakeSignedData done [00:36:53]CreateOFDProtocolMessage [00:36:53]wFMCommunicate request_size=4 [00:36:53]MH_SAM_APDU [00:36:53]CAPDU: 80 11 00 00 [00:36:53]Write to MH i2c: E2 08 00 21 02 80 11 00 00 00 00 00 00 9D [00:36:53]Write i2c OK [00:36:53]MH_I2C_Read... [00:36:53]OFD Sender: No OFD packet to send [00:36:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:36:53]Read from MH i2c: E2 [00:36:53]MH_I2C_Read... [00:36:53]Read from MH i2c: E2 17 00 [00:36:53]MH_I2C_Read... [00:36:53]Read from MH i2c: E2 17 00 21 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 F2 [00:36:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [00:36:53]wFMCommunicate OK [00:36:53]CreateOFDProtocolMessage done [00:36:53]OFDSenderStorePacket 156787 [00:36:53]StoreOFDPacket docnum=156787 [00:36:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 38 0F 07 01 99 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 03 00 00 00 F4 03 04 00 A3 DC 1E 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 73 64 02 00 35 04 06 00 FB 78 3E DE E1 16 BF 26 11 71 98 31 3C 39 [00:36:53]CheckFolder [00:36:53]dirname=/storage/ofd_packets [00:36:53]CheckFolder done [00:36:53]ProducePacketName [00:36:53]name=ofd_packets/00156787 [00:36:53]NVStorageSaveData ofd_packets/00156787 [00:36:53]File name is /storage/ofd_packets/00156787 [00:36:53]Write 301 bytes [00:36:53]NVStorageSaveData done [00:36:53]OFDSenderStorePacket done [00:36:53]KKMCreateOFDPacket done [00:36:53]NVStorageSaveData kkm_last_timestamp [00:36:53]File name is /storage/kkm_last_timestamp [00:36:53]Write 4 bytes [00:36:53]NVStorageSaveData done [00:36:53]ExternCall_PrintAddStr [00:36:53]wPrintStart [00:36:53]Write to MH i2c: 01 00 00 22 02 24 [00:36:53]Write i2c OK [00:36:53]MH_I2C_Read... [00:36:53]Read from MH i2c: 01 [00:36:53]MH_I2C_Read... [00:36:53]Read from MH i2c: 01 07 00 [00:36:53]MH_I2C_Read... [00:36:53]Read from MH i2c: 01 07 00 22 02 00 00 00 00 00 FF 0F 39 [00:36:53]RasterBufferAndPrint [00:36:53]line Счет N : (1)99599 [00:36:53]line ИНН: 02508201610067 [00:36:53]line Контрольно-Кассовый Чек [00:36:53]line ПРОДАЖА [00:36:53]line ТРК (МРК, ГНК) : 31 [00:36:53]line Товар: 2710124130 [00:36:53]line Аи-92-К-5 [00:36:53]line 2.990 * 66.90 [00:36:53]line = 200.03 [00:36:53]line НДС 12% НСП 1% [00:36:53]line > о реализуемом товаре [00:36:53]line ОКРУГЛЕНИЕ: -0.03 [00:36:53]line ИТОГО: 200.00 [00:36:53]line Внесено: 200.00 [00:36:53]line СДАЧА: 0.00 [00:36:53]line НСП 1% : 1.77 [00:36:53]line НДС 12% : 21.24 [00:36:53]line Наличными: 200.00 [00:36:53]line Безнал.: 0.00 [00:36:53]line Место: АЗС № 143 "Партнер Нефть" [00:36:53]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [00:36:53]line СНО: Общий режим [00:36:53]line Чек 3 28.10.2024 00:36 [00:36:53]line Смена: 538 ФФД: 1.0 [00:36:53]line ЗНМ: 0300000096 [00:36:53]line РНМ: 0000000000091693 [00:36:53]line Версия ККМ: 001 [00:36:53]line ФМ: 0000000000871792 [00:36:53]line ФД: 156787 [00:36:53]line ФПД: 276493869441302 [00:36:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T003651&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156787&fm=276493869441302&tin=02508201610067®Number=0000000000091693&sum=20000 [00:36:53]OFD Sender: Processing packet 156787 [packets to send 31, broken 30] [00:36:53]ProducePacketName [00:36:53]name=ofd_packets/00156787 [00:36:53]OFD Sender: To server: pG, [00:36:53]CommunicateWithHost lk.salyk.kg:30040 [00:36:53]ConnectInit lk.salyk.kg [00:36:53]written 0, free lines is 4095 [00:36:53]Connected sock=10 [00:36:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 38 0F 07 01 99 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 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 4C 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 03 00 00 00 F4 03 04 00 A3 DC 1E 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 73 64 02 00 35 04 06 00 FB 78 3E DE E1 16 BF 26 11 71 98 31 3C 39 [00:36:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 2E 5B 47 00 E9 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 31 37 39 32 10 04 04 00 73 64 02 00 F4 03 04 00 11 82 1E 67 B6 04 01 00 00 FC 93 9C 0C 0A D6 10 5B [00:36:54]CommunicateWithHost err = 0 [00:36:54]CheckOFDResponse [00:36:54]1017 (14) - 77093643461234 [00:36:54]1041 (16) - 0000000000871792 [00:36:54]1040 (4) - 156787 [00:36:54]1012 (4) - 27.10.2024 18:10 [00:36:54]1206 (1) - 0 [00:36:54]OFD Sender: Remove packet 156787 [00:36:54]ProducePacketName [00:36:54]name=ofd_packets/00156787 [00:36:54]NVStorageDeleteData [00:36:54]Write to MH i2c: 01 00 00 4D 02 4F [00:36:54]Write i2c OK [00:36:54]MH_I2C_Read... [00:36:54]Read from MH i2c: 01 [00:36:54]MH_I2C_Read... [00:36:54]Read from MH i2c: 01 07 00 [00:36:54]MH_I2C_Read... [00:36:54]Read from MH i2c: 01 07 00 4D 02 00 00 00 00 00 E0 0C 42 [00:36:54]RasterBufferAndPrint [00:36:54]line [00:36:54]line [00:36:54]line [00:36:54]line [00:36:54]line [00:36:54]written 0, free lines is 3302 [00:36:54]process_action close_receipt done [00:36:54]requested_data is exist [00:36:54]produce_requested_data [00:36:54]requested_item fm.sn is exist - process it [00:36:54]wFMCommunicate request_size=4 [00:36:54]MH_SAM_APDU [00:36:54]CAPDU: 80 11 00 00 [00:36:54]Write to MH i2c: E2 08 00 54 02 80 11 00 00 00 00 00 00 D0 [00:36:54]Write i2c OK [00:36:54]MH_I2C_Read... [00:36:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:36:54]Read from MH i2c: E2 [00:36:54]MH_I2C_Read... [00:36:54]Read from MH i2c: E2 17 00 [00:36:54]MH_I2C_Read... [00:36:54]Read from MH i2c: E2 17 00 54 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 25 [00:36:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [00:36:54]wFMCommunicate OK [00:36:54]requested_item fd.num is exist - process it [00:36:54]SAM_PROTO_GetFieldsCounters [00:36:54]wFMCommunicate request_size=4 [00:36:54]MH_SAM_APDU [00:36:54]CAPDU: 80 13 00 00 [00:36:54]Write to MH i2c: E2 08 00 55 02 80 13 00 00 00 00 00 00 D3 [00:36:54]Write i2c OK [00:36:54]MH_I2C_Read... [00:36:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:36:54]Read from MH i2c: E2 [00:36:54]MH_I2C_Read... [00:36:54]Read from MH i2c: E2 62 00 [00:36:54]MH_I2C_Read... [00:36:54]Read from MH i2c: E2 62 00 55 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 73 64 02 00 0E 04 04 00 1A 02 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 F7 [00:36:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 73 64 02 00 0E 04 04 00 1A 02 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:36:54]wFMCommunicate OK [00:36:54]SAM_PROTO_GetFieldsCounters done [00:36:54]requested_item shift.num is exist - process it [00:36:54]requested_item shift.opened is exist - process it [00:36:54]req_shift_opened [00:36:54]FM_GetShiftState [00:36:54]SAM_PROTO_GetShiftState [00:36:54]wFMCommunicate request_size=4 [00:36:54]MH_SAM_APDU [00:36:54]CAPDU: 80 13 01 00 [00:36:54]Write to MH i2c: E2 08 00 56 02 80 13 01 00 00 00 00 00 D5 [00:36:54]Write i2c OK [00:36:54]MH_I2C_Read... [00:36:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:36:54]Read from MH i2c: E2 [00:36:54]MH_I2C_Read... [00:36:54]Read from MH i2c: E2 0E 00 [00:36:54]MH_I2C_Read... [00:36:54]Read from MH i2c: E2 0E 00 56 02 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 C7 [00:36:54]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [00:36:54]wFMCommunicate OK [00:36:54]SAM_PROTO_GetShiftState done [00:36:54]FM_GetShiftState done [00:36:54]req_shift_opened done [00:36:54]requested_item shift.open_date is exist - process it [00:36:54]req_shift_open_date [00:36:54]req_shift_open_date done [00:36:54]produce_requested_data done [00:36:54]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156787,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [00:36:54]process_action_free close_receipt [00:36:54]json_value_free [00:36:54]json_value_free done [00:36:54]process_json_proto returns [00:36:54]Send response to host [00:36:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156787,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [00:36:54]free response buf [00:36:54]execute_script done [00:36:54]execute_script returns [00:36:54]free content buf [00:36:54]Sock 7.Close socket [00:36:54]Sock 7.Thread stoped [00:36:54]OFD Sender: No OFD packet to send [00:36:59]OFD Sender: No OFD packet to send [00:37:04]OFD Sender: No OFD packet to send [00:37:09]OFD Sender: No OFD packet to send [00:37:14]OFD Sender: No OFD packet to send [00:37:19]OFD Sender: No OFD packet to send [00:37:24]OFD Sender: No OFD packet to send [00:37:29]OFD Sender: No OFD packet to send [00:37:34]OFD Sender: No OFD packet to send [00:37:39]OFD Sender: No OFD packet to send [00:37:44]OFD Sender: No OFD packet to send [00:37:49]OFD Sender: No OFD packet to send [00:37:54]OFD Sender: No OFD packet to send [00:37:59]OFD Sender: No OFD packet to send [00:38:04]OFD Sender: No OFD packet to send [00:38:09]OFD Sender: No OFD packet to send [00:38:14]OFD Sender: No OFD packet to send [00:38:19]OFD Sender: No OFD packet to send [00:38:24]OFD Sender: No OFD packet to send [00:38:29]OFD Sender: No OFD packet to send [00:38:34]OFD Sender: No OFD packet to send [00:38:39]OFD Sender: No OFD packet to send [00:38:44]OFD Sender: No OFD packet to send [00:38:48]accept exits with 9 [00:38:48]New connection [00:38:48]New thread 3066604900 created [00:38:48]Thread 3066748260 joined [00:38:48]Waiting for new connection... [00:38:48] Sock 9.Parse request [00:38:48]Sock 9.Check first char [00:38:48]Sock 9.First char is OK [00:38:48]request: POST /json_proto HTTP/1.0 [00:38:48]Method: POST [00:38:48]URL: /json_proto [00:38:48]Method is POST - this is cgi request [00:38:48]url: /json_proto [00:38:48]query_string will be loaded in cgi processing [00:38:48]execute_cgi json_proto POST (null) [00:38:48]execute_cgi path=json_proto method=POST [00:38:48]POST find Content-Length [00:38:48]Host: 172.17.63.3:8080 [00:38:48]Content-Length: 681 [00:38:48]Content-Type: application/json [00:38:48] [00:38:48]POST finish read [00:38:48]Found Content-Length = 681 [00:38:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99600", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 17.940, "sum" : 1200.19, "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" ] } } [00:38:48]execute_script... [00:38: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)99600", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 17.940, "sum" : 1200.19, "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" ] } } [00:38:48]POST & json_proto [00:38:48]process_json_proto [00:38:48]json parsed OK: [00:38:48]protocol is kg_v1.0 [00:38:48]action value=close_receipt [00:38:48]process_action close_receipt [00:38:48]cmd_close_receipt [00:38:48]MH_GetDate [00:38:48]Write to MH i2c: F0 00 00 57 02 48 [00:38:48]Write i2c OK [00:38:48]MH_I2C_Read... [00:38:48]Read from MH i2c: F0 [00:38:48]MH_I2C_Read... [00:38:48]Read from MH i2c: F0 09 00 [00:38:48]MH_I2C_Read... [00:38:48]Read from MH i2c: F0 09 00 57 02 00 18 DD 1E 67 50 D1 6C 64 BC [00:38:48]GetLastDocTimeStamp 1730075811 [00:38:48]current date 1730075928 [00:38:48]FM_GetShiftState [00:38:48]SAM_PROTO_GetShiftState [00:38:48]wFMCommunicate request_size=4 [00:38:48]MH_SAM_APDU [00:38:48]CAPDU: 80 13 01 00 [00:38:48]Write to MH i2c: E2 08 00 58 02 80 13 01 00 00 00 00 00 D7 [00:38:48]Write i2c OK [00:38:48]MH_I2C_Read... [00:38:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:38:48]Read from MH i2c: E2 [00:38:48]MH_I2C_Read... [00:38:48]Read from MH i2c: E2 0E 00 [00:38:48]MH_I2C_Read... [00:38:48]Read from MH i2c: E2 0E 00 58 02 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 C9 [00:38:48]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [00:38:48]wFMCommunicate OK [00:38:48]SAM_PROTO_GetShiftState done [00:38:48]FM_GetShiftState done [00:38:48]opened in 1730075526 [00:38:48]opened+sec_in_day 1730161926 [00:38:48]quantity*price = 120018 [00:38:48]sum+1 = 120020 [00:38:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 4 28.10.2024 00:38 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156788 ФПД: 250161568931652 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T003848&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156788&fm=250161568931652&tin=02508201610067®Number=0000000000091693&sum=120000 [00:38:49]StoreToDocumentArchive [00:38:49]shift 538 fd 156788 [00:38:49]save to /storage/0538/doc_00156788 [00:38:49]save last doc name /storage/0538/doc_00156788 to /storage/kkm_last_doc_name [00:38:49]save OK [00:38:49]Clear old archive folders... [00:38:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:38:49]tlvbuf is 01A5A600 [00:38:49]SAM_PROTO_ClearQueue [00:38:49]wFMCommunicate request_size=4 [00:38:49]MH_SAM_APDU [00:38:49]CAPDU: 80 09 00 00 [00:38:49]Write to MH i2c: E2 08 00 65 02 80 09 00 00 00 00 00 00 D9 [00:38:49]Write i2c OK [00:38:49]MH_I2C_Read... [00:38:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:38:49]Read from MH i2c: E2 [00:38:49]MH_I2C_Read... [00:38:49]Read from MH i2c: E2 03 00 [00:38:49]MH_I2C_Read... [00:38:49]Read from MH i2c: E2 03 00 65 02 00 90 00 DB [00:38:49]RAPDU: 90 00 [00:38:49]wFMCommunicate OK [00:38:49]SAM_PROTO_ClearQueue done [00:38:49]KKMCreateOFDPacket [00:38:49]OFDProtocolAddRootSTLVToBuf [00:38:49]FM_MakeSignedData [00:38:49]FM_MakeSignedData [00:38:49]SAM_PROTO_SignData [00:38:49]wFMCommunicate request_size=4 [00:38:49]MH_SAM_APDU [00:38:49]CAPDU: 80 0D 01 02 [00:38:49]Write to MH i2c: E2 08 00 66 02 80 0D 01 02 00 00 00 00 E1 [00:38:49]Write i2c OK [00:38:49]MH_I2C_Read... [00:38:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:38:49]Read from MH i2c: E2 [00:38:49]MH_I2C_Read... [00:38:49]Read from MH i2c: E2 03 00 [00:38:49]MH_I2C_Read... [00:38:49]Read from MH i2c: E2 03 00 66 02 00 90 00 DC [00:38:49]RAPDU: 90 00 [00:38:49]wFMCommunicate OK [00:38:49]wFMCommunicate request_size=255 [00:38:49]MH_SAM_APDU [00:38: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 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 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 C9 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 04 00 00 00 F4 03 04 00 18 DD 1E 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 74 64 02 00 35 04 06 00 E3 [00:38:49]Write to MH i2c: E2 02 01 67 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 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 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 C9 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 04 00 00 00 F4 03 04 00 18 DD 1E 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 74 64 02 00 35 04 06 00 E3 00 00 D3 [00:38:49]Write i2c OK [00:38:49]MH_I2C_Read... [00:38:49]OFD Sender: No OFD packet to send [00:38:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:38:49]Read from MH i2c: E2 [00:38:49]MH_I2C_Read... [00:38:49]Read from MH i2c: E2 03 00 [00:38:49]MH_I2C_Read... [00:38:49]Read from MH i2c: E2 03 00 67 02 00 90 00 DD [00:38:49]RAPDU: 90 00 [00:38:49]wFMCommunicate OK [00:38:49]wFMCommunicate request_size=10 [00:38:49]MH_SAM_APDU [00:38:49]CAPDU: 80 0D 02 02 05 85 47 73 DF 44 [00:38:49]Write to MH i2c: E2 0D 00 68 02 80 0D 02 02 05 00 85 47 73 DF 44 00 00 50 [00:38:49]Write i2c OK [00:38:49]MH_I2C_Read... [00:38:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:38:49]Read from MH i2c: E2 [00:38:49]MH_I2C_Read... [00:38:49]Read from MH i2c: E2 03 00 [00:38:49]MH_I2C_Read... [00:38:49]Read from MH i2c: E2 03 00 68 02 00 90 00 DE [00:38:49]RAPDU: 90 00 [00:38:49]wFMCommunicate OK [00:38:49]wFMCommunicate request_size=4 [00:38:49]MH_SAM_APDU [00:38:49]CAPDU: 80 0D 03 02 [00:38:49]Write to MH i2c: E2 08 00 69 02 80 0D 03 02 00 00 00 00 E6 [00:38:49]Write i2c OK [00:38:49]MH_I2C_Read... [00:38:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:38:49]Read from MH i2c: E2 [00:38:49]MH_I2C_Read... [00:38:49]Read from MH i2c: E2 0B 00 [00:38:49]MH_I2C_Read... [00:38:49]Read from MH i2c: E2 0B 00 69 02 00 BB 45 E8 89 44 DC E0 AE 90 00 06 [00:38:49]RAPDU: BB 45 E8 89 44 DC E0 AE 90 00 [00:38:49]wFMCommunicate OK [00:38:49]SAM_PROTO_SignData done [00:38:49]FM_MakeSignedData done [00:38:49]CreateOFDProtocolMessage [00:38:49]wFMCommunicate request_size=4 [00:38:49]MH_SAM_APDU [00:38:49]CAPDU: 80 11 00 00 [00:38:49]Write to MH i2c: E2 08 00 6A 02 80 11 00 00 00 00 00 00 E6 [00:38:49]Write i2c OK [00:38:49]MH_I2C_Read... [00:38:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:38:50]Read from MH i2c: E2 [00:38:50]MH_I2C_Read... [00:38:50]Read from MH i2c: E2 17 00 [00:38:50]MH_I2C_Read... [00:38:50]Read from MH i2c: E2 17 00 6A 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 3B [00:38:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [00:38:50]wFMCommunicate OK [00:38:50]CreateOFDProtocolMessage done [00:38:50]OFDSenderStorePacket 156788 [00:38:50]StoreOFDPacket docnum=156788 [00:38:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 AA D6 07 01 FF 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 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 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 C9 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 04 00 00 00 F4 03 04 00 18 DD 1E 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 74 64 02 00 35 04 06 00 E3 85 47 73 DF 44 BB 45 E8 89 44 DC E0 AE [00:38:50]CheckFolder [00:38:50]dirname=/storage/ofd_packets [00:38:50]CheckFolder done [00:38:50]ProducePacketName [00:38:50]name=ofd_packets/00156788 [00:38:50]NVStorageSaveData ofd_packets/00156788 [00:38:50]File name is /storage/ofd_packets/00156788 [00:38:50]Write 301 bytes [00:38:50]NVStorageSaveData done [00:38:50]OFDSenderStorePacket done [00:38:50]KKMCreateOFDPacket done [00:38:50]NVStorageSaveData kkm_last_timestamp [00:38:50]File name is /storage/kkm_last_timestamp [00:38:50]Write 4 bytes [00:38:50]NVStorageSaveData done [00:38:50]ExternCall_PrintAddStr [00:38:50]wPrintStart [00:38:50]Write to MH i2c: 01 00 00 6B 02 6D [00:38:50]Write i2c OK [00:38:50]MH_I2C_Read... [00:38:50]Read from MH i2c: 01 [00:38:50]MH_I2C_Read... [00:38:50]Read from MH i2c: 01 07 00 [00:38:50]MH_I2C_Read... [00:38:50]Read from MH i2c: 01 07 00 6B 02 00 00 00 00 00 FF 0F 82 [00:38:50]RasterBufferAndPrint [00:38:50]line Счет N : (1)99600 [00:38:50]line ИНН: 02508201610067 [00:38:50]line Контрольно-Кассовый Чек [00:38:50]line ПРОДАЖА [00:38:50]line ТРК (МРК, ГНК) : 31 [00:38:50]line Товар: 2710124130 [00:38:50]line Аи-92-К-5 [00:38:50]line 17.940 * 66.90 [00:38:50]line = 1200.19 [00:38:50]line НДС 12% НСП 1% [00:38:50]line > о реализуемом товаре [00:38:50]line ОКРУГЛЕНИЕ: -0.19 [00:38:50]line ИТОГО: 1200.00 [00:38:50]line Внесено: 1200.00 [00:38:50]line СДАЧА: 0.00 [00:38:50]line НСП 1% : 10.62 [00:38:50]line НДС 12% : 127.45 [00:38:50]line Наличными: 1200.00 [00:38:50]line Безнал.: 0.00 [00:38:50]line Место: АЗС № 143 "Партнер Нефть" [00:38:50]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [00:38:50]line СНО: Общий режим [00:38:50]line Чек 4 28.10.2024 00:38 [00:38:50]line Смена: 538 ФФД: 1.0 [00:38:50]line ЗНМ: 0300000096 [00:38:50]line РНМ: 0000000000091693 [00:38:50]line Версия ККМ: 001 [00:38:50]line ФМ: 0000000000871792 [00:38:50]line ФД: 156788 [00:38:50]line ФПД: 250161568931652 [00:38:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T003848&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156788&fm=250161568931652&tin=02508201610067®Number=0000000000091693&sum=120000 [00:38:50]OFD Sender: Processing packet 156788 [packets to send 31, broken 30] [00:38:50]ProducePacketName [00:38:50]name=ofd_packets/00156788 [00:38:50]OFD Sender: To server: pG, [00:38:50]CommunicateWithHost lk.salyk.kg:30040 [00:38:50]ConnectInit lk.salyk.kg [00:38:50]written 0, free lines is 4095 [00:38:50]Connected sock=10 [00:38:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 AA D6 07 01 FF 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 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 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 C9 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 04 00 00 00 F4 03 04 00 18 DD 1E 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 74 64 02 00 35 04 06 00 E3 85 47 73 DF 44 BB 45 E8 89 44 DC E0 AE [00:38:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 F2 50 47 00 12 C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 74 64 02 00 F4 03 04 00 86 82 1E 67 B6 04 01 00 00 4B B9 46 99 83 12 44 39 [00:38:50]CommunicateWithHost err = 0 [00:38:50]CheckOFDResponse [00:38:50]1017 (14) - 77093643461234 [00:38:50]1041 (16) - 0000000000871792 [00:38:50]1040 (4) - 156788 [00:38:50]1012 (4) - 27.10.2024 18:12 [00:38:50]1206 (1) - 0 [00:38:50]OFD Sender: Remove packet 156788 [00:38:50]ProducePacketName [00:38:50]name=ofd_packets/00156788 [00:38:50]NVStorageDeleteData [00:38:50]Write to MH i2c: 01 00 00 96 02 98 [00:38:50]Write i2c OK [00:38:50]MH_I2C_Read... [00:38:50]Read from MH i2c: 01 [00:38:50]MH_I2C_Read... [00:38:50]Read from MH i2c: 01 07 00 [00:38:50]MH_I2C_Read... [00:38:50]Read from MH i2c: 01 07 00 96 02 00 00 00 00 00 E4 0C 8F [00:38:50]RasterBufferAndPrint [00:38:50]line [00:38:50]line [00:38:50]line [00:38:50]line [00:38:50]line [00:38:50]written 0, free lines is 3306 [00:38:50]process_action close_receipt done [00:38:50]requested_data is exist [00:38:50]produce_requested_data [00:38:50]requested_item fm.sn is exist - process it [00:38:50]wFMCommunicate request_size=4 [00:38:50]MH_SAM_APDU [00:38:50]CAPDU: 80 11 00 00 [00:38:50]Write to MH i2c: E2 08 00 9D 02 80 11 00 00 00 00 00 00 19 [00:38:50]Write i2c OK [00:38:50]MH_I2C_Read... [00:38:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:38:50]Read from MH i2c: E2 [00:38:50]MH_I2C_Read... [00:38:50]Read from MH i2c: E2 17 00 [00:38:50]MH_I2C_Read... [00:38:50]Read from MH i2c: E2 17 00 9D 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 6E [00:38:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [00:38:50]wFMCommunicate OK [00:38:50]requested_item fd.num is exist - process it [00:38:50]SAM_PROTO_GetFieldsCounters [00:38:50]wFMCommunicate request_size=4 [00:38:50]MH_SAM_APDU [00:38:50]CAPDU: 80 13 00 00 [00:38:50]Write to MH i2c: E2 08 00 9E 02 80 13 00 00 00 00 00 00 1C [00:38:50]Write i2c OK [00:38:50]MH_I2C_Read... [00:38:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:38:51]Read from MH i2c: E2 [00:38:51]MH_I2C_Read... [00:38:51]Read from MH i2c: E2 62 00 [00:38:51]MH_I2C_Read... [00:38:51]Read from MH i2c: E2 62 00 9E 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 74 64 02 00 0E 04 04 00 1A 02 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 44 [00:38:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 74 64 02 00 0E 04 04 00 1A 02 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:38:51]wFMCommunicate OK [00:38:51]SAM_PROTO_GetFieldsCounters done [00:38:51]requested_item shift.num is exist - process it [00:38:51]requested_item shift.opened is exist - process it [00:38:51]req_shift_opened [00:38:51]FM_GetShiftState [00:38:51]SAM_PROTO_GetShiftState [00:38:51]wFMCommunicate request_size=4 [00:38:51]MH_SAM_APDU [00:38:51]CAPDU: 80 13 01 00 [00:38:51]Write to MH i2c: E2 08 00 9F 02 80 13 01 00 00 00 00 00 1E [00:38:51]Write i2c OK [00:38:51]MH_I2C_Read... [00:38:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:38:51]Read from MH i2c: E2 [00:38:51]MH_I2C_Read... [00:38:51]Read from MH i2c: E2 0E 00 [00:38:51]MH_I2C_Read... [00:38:51]Read from MH i2c: E2 0E 00 9F 02 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 10 [00:38:51]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [00:38:51]wFMCommunicate OK [00:38:51]SAM_PROTO_GetShiftState done [00:38:51]FM_GetShiftState done [00:38:51]req_shift_opened done [00:38:51]requested_item shift.open_date is exist - process it [00:38:51]req_shift_open_date [00:38:51]req_shift_open_date done [00:38:51]produce_requested_data done [00:38:51]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156788,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [00:38:51]process_action_free close_receipt [00:38:51]json_value_free [00:38:51]json_value_free done [00:38:51]process_json_proto returns [00:38:51]Send response to host [00:38:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156788,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [00:38:51]free response buf [00:38:51]execute_script done [00:38:51]execute_script returns [00:38:51]free content buf [00:38:51]Sock 9.Close socket [00:38:51]Sock 9.Thread stoped [00:38:51]OFD Sender: No OFD packet to send [00:38:56]OFD Sender: No OFD packet to send [00:39:01]OFD Sender: No OFD packet to send [00:39:06]OFD Sender: No OFD packet to send [00:39:11]OFD Sender: No OFD packet to send [00:39:16]OFD Sender: No OFD packet to send [00:39:21]OFD Sender: No OFD packet to send [00:39:26]OFD Sender: No OFD packet to send [00:39:31]OFD Sender: No OFD packet to send [00:39:36]OFD Sender: No OFD packet to send [00:39:41]OFD Sender: No OFD packet to send [00:39:46]OFD Sender: No OFD packet to send [00:39:51]OFD Sender: No OFD packet to send [00:39:56]OFD Sender: No OFD packet to send [00:40:01]OFD Sender: No OFD packet to send [00:40:06]OFD Sender: No OFD packet to send [00:40:11]OFD Sender: No OFD packet to send [00:40:16]OFD Sender: No OFD packet to send [00:40:21]OFD Sender: No OFD packet to send [00:40:26]OFD Sender: No OFD packet to send [00:40:31]OFD Sender: No OFD packet to send [00:40:36]OFD Sender: No OFD packet to send [00:40:41]OFD Sender: No OFD packet to send [00:40:46]OFD Sender: No OFD packet to send [00:40:51]OFD Sender: No OFD packet to send [00:40:56]OFD Sender: No OFD packet to send [00:41:01]OFD Sender: No OFD packet to send [00:41:06]OFD Sender: No OFD packet to send [00:41:11]OFD Sender: No OFD packet to send [00:41:16]OFD Sender: No OFD packet to send [00:41:21]OFD Sender: No OFD packet to send [00:41:26]OFD Sender: No OFD packet to send [00:41:31]OFD Sender: No OFD packet to send [00:41:36]OFD Sender: No OFD packet to send [00:41:41]OFD Sender: No OFD packet to send [00:41:46]OFD Sender: No OFD packet to send [00:41:51]OFD Sender: No OFD packet to send [00:41:56]OFD Sender: No OFD packet to send [00:42:01]OFD Sender: No OFD packet to send [00:42:06]OFD Sender: No OFD packet to send [00:42:11]OFD Sender: No OFD packet to send [00:42:16]OFD Sender: No OFD packet to send [00:42:21]OFD Sender: No OFD packet to send [00:42:26]OFD Sender: No OFD packet to send [00:42:31]OFD Sender: No OFD packet to send [00:42:36]OFD Sender: No OFD packet to send [00:42:41]OFD Sender: No OFD packet to send [00:42:46]OFD Sender: No OFD packet to send [00:42:51]OFD Sender: No OFD packet to send [00:42:56]OFD Sender: No OFD packet to send [00:43:01]OFD Sender: No OFD packet to send [00:43:06]OFD Sender: No OFD packet to send [00:43:11]OFD Sender: No OFD packet to send [00:43:16]OFD Sender: No OFD packet to send [00:43:21]OFD Sender: No OFD packet to send [00:43:26]OFD Sender: No OFD packet to send [00:43:31]OFD Sender: No OFD packet to send [00:43:36]OFD Sender: No OFD packet to send [00:43:41]OFD Sender: No OFD packet to send [00:43:46]OFD Sender: No OFD packet to send [00:43:51]OFD Sender: No OFD packet to send [00:43:56]OFD Sender: No OFD packet to send [00:44:01]OFD Sender: No OFD packet to send [00:44:06]OFD Sender: No OFD packet to send [00:44:11]OFD Sender: No OFD packet to send [00:44:16]OFD Sender: No OFD packet to send [00:44:21]OFD Sender: No OFD packet to send [00:44:26]OFD Sender: No OFD packet to send [00:44:31]OFD Sender: No OFD packet to send [00:44:36]OFD Sender: No OFD packet to send [00:44:41]OFD Sender: No OFD packet to send [00:44:46]OFD Sender: No OFD packet to send [00:44:51]OFD Sender: No OFD packet to send [00:44:56]OFD Sender: No OFD packet to send [00:45:01]OFD Sender: No OFD packet to send [00:45:06]OFD Sender: No OFD packet to send [00:45:11]OFD Sender: No OFD packet to send [00:45:16]OFD Sender: No OFD packet to send [00:45:21]OFD Sender: No OFD packet to send [00:45:26]OFD Sender: No OFD packet to send [00:45:31]OFD Sender: No OFD packet to send [00:45:36]OFD Sender: No OFD packet to send [00:45:41]OFD Sender: No OFD packet to send [00:45:46]OFD Sender: No OFD packet to send [00:45:51]OFD Sender: No OFD packet to send [00:45:56]OFD Sender: No OFD packet to send [00:46:01]OFD Sender: No OFD packet to send [00:46:06]OFD Sender: No OFD packet to send [00:46:11]OFD Sender: No OFD packet to send [00:46:16]OFD Sender: No OFD packet to send [00:46:21]OFD Sender: No OFD packet to send [00:46:26]OFD Sender: No OFD packet to send [00:46:31]OFD Sender: No OFD packet to send [00:46:36]OFD Sender: No OFD packet to send [00:46:41]OFD Sender: No OFD packet to send [00:46:46]OFD Sender: No OFD packet to send [00:46:51]OFD Sender: No OFD packet to send [00:46:56]OFD Sender: No OFD packet to send [00:47:01]OFD Sender: No OFD packet to send [00:47:06]OFD Sender: No OFD packet to send [00:47:11]OFD Sender: No OFD packet to send [00:47:16]OFD Sender: No OFD packet to send [00:47:21]OFD Sender: No OFD packet to send [00:47:26]OFD Sender: No OFD packet to send [00:47:31]OFD Sender: No OFD packet to send [00:47:36]OFD Sender: No OFD packet to send [00:47:41]OFD Sender: No OFD packet to send [00:47:46]OFD Sender: No OFD packet to send [00:47:51]OFD Sender: No OFD packet to send [00:47:56]OFD Sender: No OFD packet to send [00:48:01]OFD Sender: No OFD packet to send [00:48:06]OFD Sender: No OFD packet to send [00:48:11]OFD Sender: No OFD packet to send [00:48:16]OFD Sender: No OFD packet to send [00:48:21]OFD Sender: No OFD packet to send [00:48:26]OFD Sender: No OFD packet to send [00:48:31]OFD Sender: No OFD packet to send [00:48:36]OFD Sender: No OFD packet to send [00:48:41]OFD Sender: No OFD packet to send [00:48:46]OFD Sender: No OFD packet to send [00:48:51]OFD Sender: No OFD packet to send [00:48:56]OFD Sender: No OFD packet to send [00:49:01]OFD Sender: No OFD packet to send [00:49:06]OFD Sender: No OFD packet to send [00:49:11]OFD Sender: No OFD packet to send [00:49:16]OFD Sender: No OFD packet to send [00:49:21]OFD Sender: No OFD packet to send [00:49:26]OFD Sender: No OFD packet to send [00:50:21]ConnectInit Can't connect to host [00:50:21]OFD Sender: No OFD packet to send [00:50:26]OFD Sender: No OFD packet to send [00:50:31]OFD Sender: No OFD packet to send [00:50:36]OFD Sender: No OFD packet to send [00:50:41]OFD Sender: No OFD packet to send [00:50:46]OFD Sender: No OFD packet to send [00:50:51]OFD Sender: No OFD packet to send [00:50:56]OFD Sender: No OFD packet to send [00:51:01]OFD Sender: No OFD packet to send [00:51:06]OFD Sender: No OFD packet to send [00:51:11]OFD Sender: No OFD packet to send [00:51:16]OFD Sender: No OFD packet to send [00:51:19]accept exits with 7 [00:51:19]New connection [00:51:19]New thread 3066748260 created [00:51:19]Thread 3066604900 joined [00:51:19]Waiting for new connection... [00:51:19] Sock 7.Parse request [00:51:19]Sock 7.Check first char [00:51:19]Sock 7.First char is OK [00:51:19]request: POST /json_proto HTTP/1.0 [00:51:19]Method: POST [00:51:19]URL: /json_proto [00:51:19]Method is POST - this is cgi request [00:51:19]url: /json_proto [00:51:19]query_string will be loaded in cgi processing [00:51:19]execute_cgi json_proto POST (null) [00:51:19]execute_cgi path=json_proto method=POST [00:51:19]POST find Content-Length [00:51:19]Host: 172.17.63.3:8080 [00:51:19]Content-Length: 215 [00:51:19]Content-Type: application/json [00:51:19] [00:51:19]POST finish read [00:51:19]Found Content-Length = 215 [00:51:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:51:19]execute_script... [00:51:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:51:19]POST & json_proto [00:51:19]process_json_proto [00:51:19]json parsed OK: [00:51:19]protocol is kg_v1.0 [00:51:19]action value=get_value [00:51:19]process_action get_value [00:51:19]cmd_get_value [00:51:19]process_action get_value done [00:51:19]requested_data is exist [00:51:19]produce_requested_data [00:51:19]requested_item kkm.sn is exist - process it [00:51:19]requested_item kkm.ver is exist - process it [00:51:19]requested_item fm.sn is exist - process it [00:51:19]wFMCommunicate request_size=4 [00:51:19]MH_SAM_APDU [00:51:19]CAPDU: 80 11 00 00 [00:51:19]Write to MH i2c: E2 08 00 A0 02 80 11 00 00 00 00 00 00 1C [00:51:19]Write i2c OK [00:51:19]MH_I2C_Read... [00:51:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:51:19]Read from MH i2c: E2 [00:51:19]MH_I2C_Read... [00:51:19]Read from MH i2c: E2 17 00 [00:51:19]MH_I2C_Read... [00:51:19]Read from MH i2c: E2 17 00 A0 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 71 [00:51:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [00:51:19]wFMCommunicate OK [00:51:19]requested_item fd.num is exist - process it [00:51:19]SAM_PROTO_GetFieldsCounters [00:51:19]wFMCommunicate request_size=4 [00:51:19]MH_SAM_APDU [00:51:19]CAPDU: 80 13 00 00 [00:51:19]Write to MH i2c: E2 08 00 A1 02 80 13 00 00 00 00 00 00 1F [00:51:19]Write i2c OK [00:51:19]MH_I2C_Read... [00:51:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:51:19]Read from MH i2c: E2 [00:51:19]MH_I2C_Read... [00:51:19]Read from MH i2c: E2 62 00 [00:51:19]MH_I2C_Read... [00:51:19]Read from MH i2c: E2 62 00 A1 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 74 64 02 00 0E 04 04 00 1A 02 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 47 [00:51:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 74 64 02 00 0E 04 04 00 1A 02 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:51:19]wFMCommunicate OK [00:51:19]SAM_PROTO_GetFieldsCounters done [00:51:19]requested_item shift.num is exist - process it [00:51:19]requested_item shift.opened is exist - process it [00:51:19]req_shift_opened [00:51:19]FM_GetShiftState [00:51:19]SAM_PROTO_GetShiftState [00:51:19]wFMCommunicate request_size=4 [00:51:19]MH_SAM_APDU [00:51:19]CAPDU: 80 13 01 00 [00:51:19]Write to MH i2c: E2 08 00 A2 02 80 13 01 00 00 00 00 00 21 [00:51:19]Write i2c OK [00:51:19]MH_I2C_Read... [00:51:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:51:19]Read from MH i2c: E2 [00:51:19]MH_I2C_Read... [00:51:19]Read from MH i2c: E2 0E 00 [00:51:19]MH_I2C_Read... [00:51:19]Read from MH i2c: E2 0E 00 A2 02 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 13 [00:51:19]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [00:51:19]wFMCommunicate OK [00:51:19]SAM_PROTO_GetShiftState done [00:51:19]FM_GetShiftState done [00:51:19]req_shift_opened done [00:51:19]requested_item shift.open_date is exist - process it [00:51:19]req_shift_open_date [00:51:19]req_shift_open_date done [00:51:19]produce_requested_data done [00:51:19]produce_requested_data return {"kkm.sn":"0300000096","kkm.ver":"001","fm.sn":"0000000000871792","fd.num":156788,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [00:51:19]process_action_free get_value [00:51:19]json_value_free [00:51:19]json_value_free done [00:51:19]process_json_proto returns [00:51:19]Send response to host [00:51:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000096","kkm.ver":"001","fm.sn":"0000000000871792","fd.num":156788,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [00:51:19]free response buf [00:51:19]execute_script done [00:51:19]execute_script returns [00:51:19]free content buf [00:51:19]Sock 7.Close socket [00:51:19]Sock 7.Thread stoped [00:51:19]accept exits with 9 [00:51:19]New connection [00:51:19]New thread 3066604900 created [00:51:19]Thread 3066748260 joined [00:51:19]Waiting for new connection... [00:51:19] Sock 9.Parse request [00:51:19]Sock 9.Check first char [00:51:19]Sock 9.First char is OK [00:51:19]request: POST /json_proto HTTP/1.0 [00:51:19]Method: POST [00:51:19]URL: /json_proto [00:51:19]Method is POST - this is cgi request [00:51:19]url: /json_proto [00:51:19]query_string will be loaded in cgi processing [00:51:19]execute_cgi json_proto POST (null) [00:51:19]execute_cgi path=json_proto method=POST [00:51:19]POST find Content-Length [00:51:19]Host: 172.17.63.3:8080 [00:51:19]Content-Length: 331 [00:51:19]Content-Type: application/json [00:51:19] [00:51:19]POST finish read [00:51:19]Found Content-Length = 331 [00:51:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:51:19]execute_script... [00:51:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:51:19]POST & json_proto [00:51:19]process_json_proto [00:51:19]json parsed OK: [00:51:19]protocol is kg_v1.0 [00:51:19]action value=get_value [00:51:19]process_action get_value [00:51:19]cmd_get_value [00:51:19]process_action get_value done [00:51:19]requested_data is exist [00:51:19]produce_requested_data [00:51:19]requested_item fm.sale.total is exist - process it [00:51:19]SAM_PROTO_GetFMData [00:51:19]wFMCommunicate request_size=4 [00:51:19]MH_SAM_APDU [00:51:19]CAPDU: 80 13 03 00 [00:51:19]Write to MH i2c: E2 08 00 A3 02 80 13 03 00 00 00 00 00 24 [00:51:19]Write i2c OK [00:51:19]MH_I2C_Read... [00:51:20]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:51:20]Read from MH i2c: E2 [00:51:20]MH_I2C_Read... [00:51:20]Read from MH i2c: E2 FD 00 [00:51:20]MH_I2C_Read... [00:51:20]Read from MH i2c: E2 FD 00 A3 02 00 C2 04 85 04 BE 04 6E 04 04 00 40 60 02 00 69 04 A3 00 6F 04 04 00 31 60 02 00 B1 04 05 00 53 F5 DC 72 02 70 04 05 00 F0 CD 8B 31 02 72 04 04 00 63 27 51 41 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 6C 36 99 42 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 6E A8 8C 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 99 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 20 05 B7 70 04 03 00 20 05 B7 72 04 00 00 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 B0 6F 13 EF 03 09 00 F6 03 90 00 B4 [00:51:20]RAPDU: C2 04 85 04 BE 04 6E 04 04 00 40 60 02 00 69 04 A3 00 6F 04 04 00 31 60 02 00 B1 04 05 00 53 F5 DC 72 02 70 04 05 00 F0 CD 8B 31 02 72 04 04 00 63 27 51 41 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 6C 36 99 42 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 6E A8 8C 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 99 00 6F 04 04 00 0F 00 00 00 B1 04 03 00 20 05 B7 70 04 03 00 20 05 B7 72 04 00 00 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 B0 6F 13 EF 03 09 00 F6 03 90 00 [00:51:20]wFMCommunicate OK [00:51:20]wFMCommunicate request_size=4 [00:51:20]MH_SAM_APDU [00:51:20]CAPDU: 80 17 00 00 [00:51:20]Write to MH i2c: E2 08 00 A4 02 80 17 00 00 00 00 00 00 26 [00:51:20]Write i2c OK [00:51:20]MH_I2C_Read... [00:51:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:51:20]Read from MH i2c: E2 [00:51:20]MH_I2C_Read... [00:51:20]Read from MH i2c: E2 FD 00 [00:51:20]MH_I2C_Read... [00:51:20]Read from MH i2c: E2 FD 00 A4 02 00 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 9E 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 95 [00:51:20]RAPDU: 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 A3 9E 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 90 00 [00:51:20]wFMCommunicate OK [00:51:20]wFMCommunicate request_size=4 [00:51:20]MH_SAM_APDU [00:51:20]CAPDU: 80 17 00 00 [00:51:20]Write to MH i2c: E2 08 00 A5 02 80 17 00 00 00 00 00 00 27 [00:51:20]Write i2c OK [00:51:20]MH_I2C_Read... [00:51:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:51:20]Read from MH i2c: E2 [00:51:20]MH_I2C_Read... [00:51:20]Read from MH i2c: E2 FD 00 [00:51:20]MH_I2C_Read... [00:51:20]Read from MH i2c: E2 FD 00 A5 02 00 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 90 00 D5 [00:51:20]RAPDU: 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 90 00 [00:51:20]wFMCommunicate OK [00:51:20]wFMCommunicate request_size=4 [00:51:20]MH_SAM_APDU [00:51:20]CAPDU: 80 17 00 00 [00:51:20]Write to MH i2c: E2 08 00 A6 02 80 17 00 00 00 00 00 00 28 [00:51:20]Write i2c OK [00:51:20]MH_I2C_Read... [00:51:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:51:21]Read from MH i2c: E2 [00:51:21]MH_I2C_Read... [00:51:21]Read from MH i2c: E2 FD 00 [00:51:21]MH_I2C_Read... [00:51:21]Read from MH i2c: E2 FD 00 A6 02 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A3 [00:51:21]RAPDU: F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:51:21]wFMCommunicate OK [00:51:21]wFMCommunicate request_size=4 [00:51:21]MH_SAM_APDU [00:51:21]CAPDU: 80 17 00 00 [00:51:21]Write to MH i2c: E2 08 00 A7 02 80 17 00 00 00 00 00 00 29 [00:51:21]Write i2c OK [00:51:21]MH_I2C_Read... [00:51:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 220! [00:51:21]Read from MH i2c: E2 [00:51:21]MH_I2C_Read... [00:51:21]Read from MH i2c: E2 DF 00 [00:51:21]MH_I2C_Read... [00:51:21]Read from MH i2c: E2 DF 00 A7 02 00 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 09 [00:51:21]RAPDU: 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:51:21]wFMCommunicate OK [00:51:21]SAM_PROTO_GetFMData done [00:51:21]requested_item fm.sale_refund.total is exist - process it [00:51:21]requested_item fm.buy.total is exist - process it [00:51:21]requested_item shift.sale.total is exist - process it [00:51:21]SAM_PROTO_GetShiftData [00:51:21]wFMCommunicate request_size=4 [00:51:21]MH_SAM_APDU [00:51:21]CAPDU: 80 13 02 00 [00:51:21]Write to MH i2c: E2 08 00 A8 02 80 13 02 00 00 00 00 00 28 [00:51:21]Write i2c OK [00:51:21]MH_I2C_Read... [00:51:21]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:51:21]Read from MH i2c: E2 [00:51:21]MH_I2C_Read... [00:51:21]Read from MH i2c: E2 FD 00 [00:51:21]MH_I2C_Read... [00:51:21]Read from MH i2c: E2 FD 00 A8 02 00 AA 04 AA 04 A6 04 6E 04 04 00 04 00 00 00 69 04 97 00 6F 04 04 00 04 00 00 00 B1 04 03 00 40 7E 05 70 04 03 00 40 7E 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 5B 95 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 72 0C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 90 00 C5 [00:51:21]RAPDU: AA 04 AA 04 A6 04 6E 04 04 00 04 00 00 00 69 04 97 00 6F 04 04 00 04 00 00 00 B1 04 03 00 40 7E 05 70 04 03 00 40 7E 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 5B 95 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 72 0C EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 90 00 [00:51:21]wFMCommunicate OK [00:51:21]wFMCommunicate request_size=4 [00:51:21]MH_SAM_APDU [00:51:21]CAPDU: 80 17 00 00 [00:51:21]Write to MH i2c: E2 08 00 A9 02 80 17 00 00 00 00 00 00 2B [00:51:21]Write i2c OK [00:51:21]MH_I2C_Read... [00:51:21]OFD Sender: No OFD packet to send [00:51:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:51:21]Read from MH i2c: E2 [00:51:21]MH_I2C_Read... [00:51:21]Read from MH i2c: E2 FD 00 [00:51:21]MH_I2C_Read... [00:51:21]Read from MH i2c: E2 FD 00 A9 02 00 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 51 [00:51:22]RAPDU: 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 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 90 00 [00:51:22]wFMCommunicate OK [00:51:22]wFMCommunicate request_size=4 [00:51:22]MH_SAM_APDU [00:51:22]CAPDU: 80 17 00 00 [00:51:22]Write to MH i2c: E2 08 00 AA 02 80 17 00 00 00 00 00 00 2C [00:51:22]Write i2c OK [00:51:22]MH_I2C_Read... [00:51:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:51:22]Read from MH i2c: E2 [00:51:22]MH_I2C_Read... [00:51:22]Read from MH i2c: E2 FD 00 [00:51:22]MH_I2C_Read... [00:51:22]Read from MH i2c: E2 FD 00 AA 02 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 90 00 DF [00:51:22]RAPDU: EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 90 00 [00:51:22]wFMCommunicate OK [00:51:22]wFMCommunicate request_size=4 [00:51:22]MH_SAM_APDU [00:51:22]CAPDU: 80 17 00 00 [00:51:22]Write to MH i2c: E2 08 00 AB 02 80 17 00 00 00 00 00 00 2D [00:51:22]Write i2c OK [00:51:22]MH_I2C_Read... [00:51:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:51:22]Read from MH i2c: E2 [00:51:22]MH_I2C_Read... [00:51:22]Read from MH i2c: E2 FD 00 [00:51:22]MH_I2C_Read... [00:51:22]Read from MH i2c: E2 FD 00 AB 02 00 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 90 00 9F [00:51:22]RAPDU: 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 90 00 [00:51:22]wFMCommunicate OK [00:51:22]wFMCommunicate request_size=4 [00:51:22]MH_SAM_APDU [00:51:22]CAPDU: 80 17 00 00 [00:51:22]Write to MH i2c: E2 08 00 AC 02 80 17 00 00 00 00 00 00 2E [00:51:22]Write i2c OK [00:51:22]MH_I2C_Read... [00:51:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 196! [00:51:22]Read from MH i2c: E2 [00:51:22]MH_I2C_Read... [00:51:22]Read from MH i2c: E2 C7 00 [00:51:22]MH_I2C_Read... [00:51:22]Read from MH i2c: E2 C7 00 AC 02 00 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 21 [00:51:22]RAPDU: 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:51:22]wFMCommunicate OK [00:51:22]SAM_PROTO_GetShiftData done [00:51:22]requested_item shift.sale.total_cash is exist - process it [00:51:22]requested_item shift.sale_refund.total is exist - process it [00:51:22]requested_item shift.sale_refund.total_cash is exist - process it [00:51:22]requested_item shift.buy.total is exist - process it [00:51:22]requested_item shift.buy.total_cash is exist - process it [00:51:22]produce_requested_data done [00:51:22]produce_requested_data return {"fm.sale.total":105170179.39,"fm.sale_refund.total":119944.00,"fm.buy.total":0.00,"shift.sale.total":3600.00,"shift.sale.total_cash":3600.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:51:22]process_action_free get_value [00:51:22]json_value_free [00:51:22]json_value_free done [00:51:22]process_json_proto returns [00:51:22]Send response to host [00:51:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":105170179.39,"fm.sale_refund.total":119944.00,"fm.buy.total":0.00,"shift.sale.total":3600.00,"shift.sale.total_cash":3600.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:51:22]free response buf [00:51:22]execute_script done [00:51:22]execute_script returns [00:51:22]free content buf [00:51:22]Sock 9.Close socket [00:51:22]Sock 9.Thread stoped [00:51:26]OFD Sender: No OFD packet to send [00:51:31]OFD Sender: No OFD packet to send [00:51:36]OFD Sender: No OFD packet to send [00:51:41]OFD Sender: No OFD packet to send [00:51:46]OFD Sender: No OFD packet to send [00:51:51]OFD Sender: No OFD packet to send [00:51:56]OFD Sender: No OFD packet to send [00:52:01]OFD Sender: No OFD packet to send [00:52:06]OFD Sender: No OFD packet to send [00:52:12]OFD Sender: No OFD packet to send [00:52:17]OFD Sender: No OFD packet to send [00:52:22]OFD Sender: No OFD packet to send [00:52:27]OFD Sender: No OFD packet to send [00:52:32]OFD Sender: No OFD packet to send [00:52:37]OFD Sender: No OFD packet to send [00:52:42]OFD Sender: No OFD packet to send [00:52:47]OFD Sender: No OFD packet to send [00:52:52]OFD Sender: No OFD packet to send [00:52:57]OFD Sender: No OFD packet to send [00:53:02]OFD Sender: No OFD packet to send [00:53:07]OFD Sender: No OFD packet to send [00:53:12]OFD Sender: No OFD packet to send [00:53:17]OFD Sender: No OFD packet to send [00:53:22]OFD Sender: No OFD packet to send [00:53:27]OFD Sender: No OFD packet to send [00:53:32]OFD Sender: No OFD packet to send [00:53:37]OFD Sender: No OFD packet to send [00:53:42]OFD Sender: No OFD packet to send [00:53:47]OFD Sender: No OFD packet to send [00:53:52]OFD Sender: No OFD packet to send [00:53:57]OFD Sender: No OFD packet to send [00:54:02]OFD Sender: No OFD packet to send [00:54:07]OFD Sender: No OFD packet to send [00:54:12]OFD Sender: No OFD packet to send [00:54:17]OFD Sender: No OFD packet to send [00:54:22]OFD Sender: No OFD packet to send [00:54:27]OFD Sender: No OFD packet to send [00:54:32]OFD Sender: No OFD packet to send [00:54:37]OFD Sender: No OFD packet to send [00:54:42]OFD Sender: No OFD packet to send [00:54:47]OFD Sender: No OFD packet to send [00:54:52]OFD Sender: No OFD packet to send [00:54:57]OFD Sender: No OFD packet to send [00:55:02]OFD Sender: No OFD packet to send [00:55:07]OFD Sender: No OFD packet to send [00:55:12]OFD Sender: No OFD packet to send [00:55:17]OFD Sender: No OFD packet to send [00:55:22]OFD Sender: No OFD packet to send [00:55:27]OFD Sender: No OFD packet to send [00:55:32]OFD Sender: No OFD packet to send [00:55:37]OFD Sender: No OFD packet to send [00:55:42]OFD Sender: No OFD packet to send [00:55:47]OFD Sender: No OFD packet to send [00:55:52]OFD Sender: No OFD packet to send [00:55:57]OFD Sender: No OFD packet to send [00:56:02]OFD Sender: No OFD packet to send [00:56:07]OFD Sender: No OFD packet to send [00:56:12]OFD Sender: No OFD packet to send [00:56:17]OFD Sender: No OFD packet to send [00:56:22]OFD Sender: No OFD packet to send [00:56:27]OFD Sender: No OFD packet to send [00:56:32]OFD Sender: No OFD packet to send [00:56:37]OFD Sender: No OFD packet to send [00:56:42]OFD Sender: No OFD packet to send [00:56:47]OFD Sender: No OFD packet to send [00:56:52]OFD Sender: No OFD packet to send [00:56:57]OFD Sender: No OFD packet to send [00:57:02]OFD Sender: No OFD packet to send [00:57:07]OFD Sender: No OFD packet to send [00:57:12]OFD Sender: No OFD packet to send [00:57:17]OFD Sender: No OFD packet to send [00:57:22]OFD Sender: No OFD packet to send [00:57:27]OFD Sender: No OFD packet to send [00:57:32]OFD Sender: No OFD packet to send [00:57:37]OFD Sender: No OFD packet to send [00:57:42]OFD Sender: No OFD packet to send [00:57:47]OFD Sender: No OFD packet to send [00:57:52]OFD Sender: No OFD packet to send [00:57:57]OFD Sender: No OFD packet to send [00:58:02]OFD Sender: No OFD packet to send [00:58:07]OFD Sender: No OFD packet to send [00:58:12]OFD Sender: No OFD packet to send [00:58:17]OFD Sender: No OFD packet to send [00:58:22]OFD Sender: No OFD packet to send [00:58:27]OFD Sender: No OFD packet to send [00:58:32]OFD Sender: No OFD packet to send [00:58:37]OFD Sender: No OFD packet to send [00:58:42]OFD Sender: No OFD packet to send [00:58:47]OFD Sender: No OFD packet to send [00:58:52]OFD Sender: No OFD packet to send [00:58:57]OFD Sender: No OFD packet to send [00:59:02]OFD Sender: No OFD packet to send [00:59:07]OFD Sender: No OFD packet to send [00:59:12]OFD Sender: No OFD packet to send [00:59:17]OFD Sender: No OFD packet to send [00:59:22]OFD Sender: No OFD packet to send [00:59:27]OFD Sender: No OFD packet to send [00:59:32]OFD Sender: No OFD packet to send [00:59:37]OFD Sender: No OFD packet to send [00:59:42]OFD Sender: No OFD packet to send [00:59:47]OFD Sender: No OFD packet to send [00:59:52]OFD Sender: No OFD packet to send [00:59:57]OFD Sender: No OFD packet to send [01:00:02]OFD Sender: No OFD packet to send [01:00:07]OFD Sender: No OFD packet to send [01:00:12]OFD Sender: No OFD packet to send [01:00:17]OFD Sender: No OFD packet to send [01:00:22]OFD Sender: No OFD packet to send [01:00:27]OFD Sender: No OFD packet to send [01:00:32]OFD Sender: No OFD packet to send [01:00:37]OFD Sender: No OFD packet to send [01:00:42]OFD Sender: No OFD packet to send [01:00:47]OFD Sender: No OFD packet to send [01:00:52]OFD Sender: No OFD packet to send [01:00:57]OFD Sender: No OFD packet to send [01:01:02]OFD Sender: No OFD packet to send [01:01:07]OFD Sender: No OFD packet to send [01:01:12]OFD Sender: No OFD packet to send [01:01:17]OFD Sender: No OFD packet to send [01:01:22]OFD Sender: No OFD packet to send [01:01:27]OFD Sender: No OFD packet to send [01:01:32]OFD Sender: No OFD packet to send [01:01:37]OFD Sender: No OFD packet to send [01:01:42]OFD Sender: No OFD packet to send [01:01:47]OFD Sender: No OFD packet to send [01:01:52]OFD Sender: No OFD packet to send [01:01:57]OFD Sender: No OFD packet to send [01:02:02]OFD Sender: No OFD packet to send [01:02:07]OFD Sender: No OFD packet to send [01:02:12]OFD Sender: No OFD packet to send [01:02:17]OFD Sender: No OFD packet to send [01:02:22]OFD Sender: No OFD packet to send [01:02:27]OFD Sender: No OFD packet to send [01:02:32]OFD Sender: No OFD packet to send [01:02:37]OFD Sender: No OFD packet to send [01:02:42]OFD Sender: No OFD packet to send [01:02:47]OFD Sender: No OFD packet to send [01:02:52]OFD Sender: No OFD packet to send [01:02:57]OFD Sender: No OFD packet to send [01:03:02]OFD Sender: No OFD packet to send [01:03:07]OFD Sender: No OFD packet to send [01:03:12]OFD Sender: No OFD packet to send [01:03:17]OFD Sender: No OFD packet to send [01:03:22]OFD Sender: No OFD packet to send [01:03:27]OFD Sender: No OFD packet to send [01:03:32]OFD Sender: No OFD packet to send [01:03:37]OFD Sender: No OFD packet to send [01:03:42]OFD Sender: No OFD packet to send [01:03:47]OFD Sender: No OFD packet to send [01:03:52]OFD Sender: No OFD packet to send [01:03:57]OFD Sender: No OFD packet to send [01:04:02]OFD Sender: No OFD packet to send [01:04:07]OFD Sender: No OFD packet to send [01:04:12]OFD Sender: No OFD packet to send [01:04:17]OFD Sender: No OFD packet to send [01:04:22]OFD Sender: No OFD packet to send [01:04:27]OFD Sender: No OFD packet to send [01:04:32]OFD Sender: No OFD packet to send [01:04:37]OFD Sender: No OFD packet to send [01:04:42]OFD Sender: No OFD packet to send [01:04:47]OFD Sender: No OFD packet to send [01:04:52]OFD Sender: No OFD packet to send [01:04:57]OFD Sender: No OFD packet to send [01:05:02]OFD Sender: No OFD packet to send [01:05:07]OFD Sender: No OFD packet to send [01:05:12]OFD Sender: No OFD packet to send [01:05:17]OFD Sender: No OFD packet to send [01:05:22]OFD Sender: No OFD packet to send [01:05:27]OFD Sender: No OFD packet to send [01:05:32]OFD Sender: No OFD packet to send [01:05:37]OFD Sender: No OFD packet to send [01:05:42]OFD Sender: No OFD packet to send [01:05:47]OFD Sender: No OFD packet to send [01:05:52]OFD Sender: No OFD packet to send [01:05:57]OFD Sender: No OFD packet to send [01:06:02]OFD Sender: No OFD packet to send [01:06:07]OFD Sender: No OFD packet to send [01:06:12]OFD Sender: No OFD packet to send [01:06:17]OFD Sender: No OFD packet to send [01:06:22]OFD Sender: No OFD packet to send [01:06:27]OFD Sender: No OFD packet to send [01:06:32]OFD Sender: No OFD packet to send [01:06:37]OFD Sender: No OFD packet to send [01:06:42]OFD Sender: No OFD packet to send [01:06:47]OFD Sender: No OFD packet to send [01:06:52]OFD Sender: No OFD packet to send [01:06:57]OFD Sender: No OFD packet to send [01:07:02]OFD Sender: No OFD packet to send [01:07:07]OFD Sender: No OFD packet to send [01:07:12]OFD Sender: No OFD packet to send [01:07:17]OFD Sender: No OFD packet to send [01:07:22]OFD Sender: No OFD packet to send [01:07:27]OFD Sender: No OFD packet to send [01:07:32]OFD Sender: No OFD packet to send [01:07:37]OFD Sender: No OFD packet to send [01:07:42]OFD Sender: No OFD packet to send [01:07:47]OFD Sender: No OFD packet to send [01:07:52]OFD Sender: No OFD packet to send [01:07:57]OFD Sender: No OFD packet to send [01:08:02]OFD Sender: No OFD packet to send [01:08:07]OFD Sender: No OFD packet to send [01:08:12]OFD Sender: No OFD packet to send [01:08:17]OFD Sender: No OFD packet to send [01:08:22]OFD Sender: No OFD packet to send [01:08:27]OFD Sender: No OFD packet to send [01:08:32]OFD Sender: No OFD packet to send [01:08:37]OFD Sender: No OFD packet to send [01:08:42]OFD Sender: No OFD packet to send [01:08:47]OFD Sender: No OFD packet to send [01:08:52]OFD Sender: No OFD packet to send [01:08:57]OFD Sender: No OFD packet to send [01:09:02]OFD Sender: No OFD packet to send [01:09:07]OFD Sender: No OFD packet to send [01:09:12]OFD Sender: No OFD packet to send [01:09:17]OFD Sender: No OFD packet to send [01:09:22]OFD Sender: No OFD packet to send [01:09:27]OFD Sender: No OFD packet to send [01:09:32]OFD Sender: No OFD packet to send [01:09:37]OFD Sender: No OFD packet to send [01:09:42]OFD Sender: No OFD packet to send [01:09:47]OFD Sender: No OFD packet to send [01:09:52]OFD Sender: No OFD packet to send [01:09:57]OFD Sender: No OFD packet to send [01:10:02]OFD Sender: No OFD packet to send [01:10:07]OFD Sender: No OFD packet to send [01:10:09]int [01:10:09]Write to MH i2c: 01 00 00 AD 02 AF [01:10:09]*** FLAG_PRN_KEY set [01:10:09]Write i2c OK [01:10:09]MH_I2C_Read... [01:10:09]Read from MH i2c: 01 [01:10:09]MH_I2C_Read... [01:10:09]Read from MH i2c: 01 07 00 [01:10:09]MH_I2C_Read... [01:10:09]Read from MH i2c: 01 07 00 AD 02 00 08 00 00 00 FF 0F CC [01:10:09]state=0 [01:10:09]Key pressed [01:10:09]Feed [01:10:09]Write to MH i2c: D8 00 00 AE 02 87 [01:10:09]Write i2c OK [01:10:09]MH_I2C_Read... [01:10:09]Read from MH i2c: D8 [01:10:09]MH_I2C_Read... [01:10:09]Read from MH i2c: D8 01 00 [01:10:09]MH_I2C_Read... [01:10:09]Read from MH i2c: D8 01 00 AE 02 00 88 [01:10:09]int [01:10:09]Write to MH i2c: 01 00 00 AF 02 B1 [01:10:09]Write i2c OK [01:10:09]MH_I2C_Read... [01:10:09]Read from MH i2c: 01 [01:10:09]MH_I2C_Read... [01:10:09]Read from MH i2c: 01 07 00 [01:10:09]MH_I2C_Read... [01:10:09]Read from MH i2c: 01 07 00 AF 02 00 48 00 00 00 3D 00 3D [01:10:09]state=2 [01:10:09]Key pressed [01:10:09]int [01:10:09]Write to MH i2c: 01 00 00 B0 02 B2 [01:10:09]*** FLAG_PRN_KEY reset [01:10:09]Write i2c OK [01:10:09]MH_I2C_Read... [01:10:09]Read from MH i2c: 01 [01:10:09]MH_I2C_Read... [01:10:09]Read from MH i2c: 01 07 00 [01:10:09]MH_I2C_Read... [01:10:09]Read from MH i2c: 01 07 00 B0 02 00 00 00 00 00 F7 0F BF [01:10:09]state=2 [01:10:09]Stop feed [01:10:12]OFD Sender: No OFD packet to send [01:10:17]OFD Sender: No OFD packet to send [01:10:22]OFD Sender: No OFD packet to send [01:10:27]OFD Sender: No OFD packet to send [01:10:32]OFD Sender: No OFD packet to send [01:10:37]OFD Sender: No OFD packet to send [01:10:42]OFD Sender: No OFD packet to send [01:10:47]OFD Sender: No OFD packet to send [01:10:52]OFD Sender: No OFD packet to send [01:10:57]OFD Sender: No OFD packet to send [01:11:02]OFD Sender: No OFD packet to send [01:11:07]OFD Sender: No OFD packet to send [01:11:12]OFD Sender: No OFD packet to send [01:11:17]OFD Sender: No OFD packet to send [01:11:22]OFD Sender: No OFD packet to send [01:11:27]OFD Sender: No OFD packet to send [01:11:33]OFD Sender: No OFD packet to send [01:11:38]OFD Sender: No OFD packet to send [01:11:43]OFD Sender: No OFD packet to send [01:11:48]OFD Sender: No OFD packet to send [01:11:53]OFD Sender: No OFD packet to send [01:11:58]OFD Sender: No OFD packet to send [01:12:03]OFD Sender: No OFD packet to send [01:12:08]OFD Sender: No OFD packet to send [01:12:13]OFD Sender: No OFD packet to send [01:12:18]OFD Sender: No OFD packet to send [01:12:23]OFD Sender: No OFD packet to send [01:12:28]OFD Sender: No OFD packet to send [01:12:33]OFD Sender: No OFD packet to send [01:12:38]OFD Sender: No OFD packet to send [01:12:43]OFD Sender: No OFD packet to send [01:12:48]OFD Sender: No OFD packet to send [01:12:53]OFD Sender: No OFD packet to send [01:12:58]OFD Sender: No OFD packet to send [01:13:03]OFD Sender: No OFD packet to send [01:13:08]OFD Sender: No OFD packet to send [01:13:13]OFD Sender: No OFD packet to send [01:13:18]OFD Sender: No OFD packet to send [01:13:23]OFD Sender: No OFD packet to send [01:13:28]OFD Sender: No OFD packet to send [01:13:33]OFD Sender: No OFD packet to send [01:13:38]OFD Sender: No OFD packet to send [01:13:43]OFD Sender: No OFD packet to send [01:13:48]OFD Sender: No OFD packet to send [01:13:53]OFD Sender: No OFD packet to send [01:13:58]OFD Sender: No OFD packet to send [01:14:03]OFD Sender: No OFD packet to send [01:14:08]OFD Sender: No OFD packet to send [01:14:13]OFD Sender: No OFD packet to send [01:14:18]OFD Sender: No OFD packet to send [01:14:23]OFD Sender: No OFD packet to send [01:14:28]OFD Sender: No OFD packet to send [01:14:33]OFD Sender: No OFD packet to send [01:14:38]OFD Sender: No OFD packet to send [01:14:43]OFD Sender: No OFD packet to send [01:14:48]OFD Sender: No OFD packet to send [01:14:53]OFD Sender: No OFD packet to send [01:14:58]OFD Sender: No OFD packet to send [01:15:03]OFD Sender: No OFD packet to send [01:15:08]OFD Sender: No OFD packet to send [01:15:13]OFD Sender: No OFD packet to send [01:15:18]OFD Sender: No OFD packet to send [01:15:23]OFD Sender: No OFD packet to send [01:15:28]OFD Sender: No OFD packet to send [01:15:33]OFD Sender: No OFD packet to send [01:15:38]OFD Sender: No OFD packet to send [01:15:43]OFD Sender: No OFD packet to send [01:15:48]OFD Sender: No OFD packet to send [01:15:53]OFD Sender: No OFD packet to send [01:15:58]OFD Sender: No OFD packet to send [01:16:03]OFD Sender: No OFD packet to send [01:16:08]OFD Sender: No OFD packet to send [01:16:13]OFD Sender: No OFD packet to send [01:16:18]OFD Sender: No OFD packet to send [01:16:23]OFD Sender: No OFD packet to send [01:16:28]OFD Sender: No OFD packet to send [01:16:33]OFD Sender: No OFD packet to send [01:16:38]OFD Sender: No OFD packet to send [01:16:43]OFD Sender: No OFD packet to send [01:16:48]OFD Sender: No OFD packet to send [01:16:53]OFD Sender: No OFD packet to send [01:16:58]OFD Sender: No OFD packet to send [01:17:03]OFD Sender: No OFD packet to send [01:17:08]OFD Sender: No OFD packet to send [01:17:13]OFD Sender: No OFD packet to send [01:17:18]OFD Sender: No OFD packet to send [01:17:23]OFD Sender: No OFD packet to send [01:17:28]OFD Sender: No OFD packet to send [01:17:33]OFD Sender: No OFD packet to send [01:17:38]OFD Sender: No OFD packet to send [01:17:43]OFD Sender: No OFD packet to send [01:17:48]OFD Sender: No OFD packet to send [01:17:53]OFD Sender: No OFD packet to send [01:17:58]OFD Sender: No OFD packet to send [01:18:03]OFD Sender: No OFD packet to send [01:18:08]OFD Sender: No OFD packet to send [01:18:13]OFD Sender: No OFD packet to send [01:18:18]OFD Sender: No OFD packet to send [01:18:23]OFD Sender: No OFD packet to send [01:18:28]OFD Sender: No OFD packet to send [01:18:33]OFD Sender: No OFD packet to send [01:18:38]OFD Sender: No OFD packet to send [01:18:43]OFD Sender: No OFD packet to send [01:18:48]OFD Sender: No OFD packet to send [01:18:53]OFD Sender: No OFD packet to send [01:18:58]OFD Sender: No OFD packet to send [01:19:03]OFD Sender: No OFD packet to send [01:19:08]OFD Sender: No OFD packet to send [01:19:13]OFD Sender: No OFD packet to send [01:19:18]OFD Sender: No OFD packet to send [01:19:23]OFD Sender: No OFD packet to send [01:19:28]OFD Sender: No OFD packet to send [01:19:33]OFD Sender: No OFD packet to send [01:19:38]OFD Sender: No OFD packet to send [01:19:43]OFD Sender: No OFD packet to send [01:19:48]OFD Sender: No OFD packet to send [01:19:53]OFD Sender: No OFD packet to send [01:19:58]OFD Sender: No OFD packet to send [01:20:03]OFD Sender: No OFD packet to send [01:20:08]OFD Sender: No OFD packet to send [01:20:13]OFD Sender: No OFD packet to send [01:20:18]OFD Sender: No OFD packet to send [01:20:23]OFD Sender: No OFD packet to send [01:20:28]OFD Sender: No OFD packet to send [01:20:33]OFD Sender: No OFD packet to send [01:20:38]OFD Sender: No OFD packet to send [01:20:43]OFD Sender: No OFD packet to send [01:20:48]OFD Sender: No OFD packet to send [01:20:53]OFD Sender: No OFD packet to send [01:20:58]OFD Sender: No OFD packet to send [01:21:03]OFD Sender: No OFD packet to send [01:21:08]OFD Sender: No OFD packet to send [01:21:13]OFD Sender: No OFD packet to send [01:21:18]OFD Sender: No OFD packet to send [01:21:23]OFD Sender: No OFD packet to send [01:21:28]OFD Sender: No OFD packet to send [01:21:33]OFD Sender: No OFD packet to send [01:21:38]OFD Sender: No OFD packet to send [01:21:43]OFD Sender: No OFD packet to send [01:21:48]OFD Sender: No OFD packet to send [01:21:53]OFD Sender: No OFD packet to send [01:21:58]OFD Sender: No OFD packet to send [01:22:03]OFD Sender: No OFD packet to send [01:22:08]OFD Sender: No OFD packet to send [01:22:13]OFD Sender: No OFD packet to send [01:22:18]OFD Sender: No OFD packet to send [01:22:23]OFD Sender: No OFD packet to send [01:22:28]OFD Sender: No OFD packet to send [01:22:33]OFD Sender: No OFD packet to send [01:22:38]OFD Sender: No OFD packet to send [01:22:43]OFD Sender: No OFD packet to send [01:22:48]OFD Sender: No OFD packet to send [01:22:53]OFD Sender: No OFD packet to send [01:22:58]OFD Sender: No OFD packet to send [01:23:03]OFD Sender: No OFD packet to send [01:23:08]OFD Sender: No OFD packet to send [01:23:13]OFD Sender: No OFD packet to send [01:23:18]OFD Sender: No OFD packet to send [01:23:23]OFD Sender: No OFD packet to send [01:23:28]OFD Sender: No OFD packet to send [01:23:33]OFD Sender: No OFD packet to send [01:23:38]OFD Sender: No OFD packet to send [01:23:43]OFD Sender: No OFD packet to send [01:23:48]OFD Sender: No OFD packet to send [01:23:53]OFD Sender: No OFD packet to send [01:23:58]OFD Sender: No OFD packet to send [01:24:03]OFD Sender: No OFD packet to send [01:24:08]OFD Sender: No OFD packet to send [01:24:13]OFD Sender: No OFD packet to send [01:24:18]OFD Sender: No OFD packet to send [01:24:23]OFD Sender: No OFD packet to send [01:24:28]OFD Sender: No OFD packet to send [01:24:33]OFD Sender: No OFD packet to send [01:24:38]OFD Sender: No OFD packet to send [01:24:43]OFD Sender: No OFD packet to send [01:24:48]OFD Sender: No OFD packet to send [01:24:53]OFD Sender: No OFD packet to send [01:24:58]OFD Sender: No OFD packet to send [01:25:03]OFD Sender: No OFD packet to send [01:25:08]OFD Sender: No OFD packet to send [01:25:13]OFD Sender: No OFD packet to send [01:25:18]OFD Sender: No OFD packet to send [01:25:23]OFD Sender: No OFD packet to send [01:30:13]OFD Sender: No OFD packet to send [01:30:18]OFD Sender: No OFD packet to send [01:30:23]OFD Sender: No OFD packet to send [01:30:28]OFD Sender: No OFD packet to send [01:30:33]OFD Sender: No OFD packet to send [01:30:38]OFD Sender: No OFD packet to send [01:30:43]OFD Sender: No OFD packet to send [01:30:48]OFD Sender: No OFD packet to send [01:30:53]OFD Sender: No OFD packet to send [01:30:59]OFD Sender: No OFD packet to send [01:31:04]OFD Sender: No OFD packet to send [01:31:09]OFD Sender: No OFD packet to send [01:31:14]OFD Sender: No OFD packet to send [01:31:19]OFD Sender: No OFD packet to send [01:31:24]OFD Sender: No OFD packet to send [01:31:29]OFD Sender: No OFD packet to send [01:31:34]OFD Sender: No OFD packet to send [01:31:39]OFD Sender: No OFD packet to send [01:31:44]OFD Sender: No OFD packet to send [01:31:49]OFD Sender: No OFD packet to send [01:31:54]OFD Sender: No OFD packet to send [01:31:59]OFD Sender: No OFD packet to send [01:32:04]OFD Sender: No OFD packet to send [01:32:09]OFD Sender: No OFD packet to send [01:32:14]OFD Sender: No OFD packet to send [01:32:19]OFD Sender: No OFD packet to send [01:32:22]ConnectInit Can't connect to host [01:32:24]OFD Sender: No OFD packet to send [01:32:29]OFD Sender: No OFD packet to send [01:32:34]OFD Sender: No OFD packet to send [01:32:39]OFD Sender: No OFD packet to send [01:32:44]OFD Sender: No OFD packet to send [01:32:49]OFD Sender: No OFD packet to send [01:32:54]OFD Sender: No OFD packet to send [01:32:59]OFD Sender: No OFD packet to send [01:33:04]OFD Sender: No OFD packet to send [01:33:09]OFD Sender: No OFD packet to send [01:33:14]OFD Sender: No OFD packet to send [01:33:19]OFD Sender: No OFD packet to send [01:33:24]OFD Sender: No OFD packet to send [01:33:29]OFD Sender: No OFD packet to send [01:33:34]OFD Sender: No OFD packet to send [01:33:39]OFD Sender: No OFD packet to send [01:33:44]OFD Sender: No OFD packet to send [01:33:49]OFD Sender: No OFD packet to send [01:33:54]OFD Sender: No OFD packet to send [01:33:59]OFD Sender: No OFD packet to send [01:34:04]OFD Sender: No OFD packet to send [01:34:09]OFD Sender: No OFD packet to send [01:34:14]OFD Sender: No OFD packet to send [01:34:19]OFD Sender: No OFD packet to send [01:34:24]OFD Sender: No OFD packet to send [01:34:29]OFD Sender: No OFD packet to send [01:34:34]OFD Sender: No OFD packet to send [01:34:39]OFD Sender: No OFD packet to send [01:34:44]OFD Sender: No OFD packet to send [01:34:49]OFD Sender: No OFD packet to send [01:34:54]OFD Sender: No OFD packet to send [01:34:59]OFD Sender: No OFD packet to send [01:35:04]OFD Sender: No OFD packet to send [01:35:09]OFD Sender: No OFD packet to send [01:35:14]OFD Sender: No OFD packet to send [01:35:19]OFD Sender: No OFD packet to send [01:35:24]OFD Sender: No OFD packet to send [01:35:29]OFD Sender: No OFD packet to send [01:35:34]OFD Sender: No OFD packet to send [01:35:39]OFD Sender: No OFD packet to send [01:35:44]OFD Sender: No OFD packet to send [01:35:49]OFD Sender: No OFD packet to send [01:35:54]OFD Sender: No OFD packet to send [01:35:59]OFD Sender: No OFD packet to send [01:36:04]OFD Sender: No OFD packet to send [01:36:09]OFD Sender: No OFD packet to send [01:36:14]OFD Sender: No OFD packet to send [01:36:19]OFD Sender: No OFD packet to send [01:36:24]OFD Sender: No OFD packet to send [01:36:29]OFD Sender: No OFD packet to send [01:36:34]OFD Sender: No OFD packet to send [01:36:39]OFD Sender: No OFD packet to send [01:36:44]OFD Sender: No OFD packet to send [01:36:49]OFD Sender: No OFD packet to send [01:36:54]OFD Sender: No OFD packet to send [01:36:59]OFD Sender: No OFD packet to send [01:37:04]OFD Sender: No OFD packet to send [01:37:09]OFD Sender: No OFD packet to send [01:37:14]OFD Sender: No OFD packet to send [01:37:19]OFD Sender: No OFD packet to send [01:37:24]OFD Sender: No OFD packet to send [01:37:29]OFD Sender: No OFD packet to send [01:37:34]OFD Sender: No OFD packet to send [01:37:39]OFD Sender: No OFD packet to send [01:37:44]OFD Sender: No OFD packet to send [01:37:49]OFD Sender: No OFD packet to send [01:37:54]OFD Sender: No OFD packet to send [01:37:59]OFD Sender: No OFD packet to send [01:38:04]OFD Sender: No OFD packet to send [01:38:09]OFD Sender: No OFD packet to send [01:38:14]OFD Sender: No OFD packet to send [01:38:19]OFD Sender: No OFD packet to send [01:38:24]OFD Sender: No OFD packet to send [01:38:29]OFD Sender: No OFD packet to send [01:38:34]OFD Sender: No OFD packet to send [01:38:39]OFD Sender: No OFD packet to send [01:38:44]OFD Sender: No OFD packet to send [01:38:49]OFD Sender: No OFD packet to send [01:38:54]OFD Sender: No OFD packet to send [01:38:59]OFD Sender: No OFD packet to send [01:39:04]OFD Sender: No OFD packet to send [01:39:09]OFD Sender: No OFD packet to send [01:39:14]OFD Sender: No OFD packet to send [01:39:19]OFD Sender: No OFD packet to send [01:39:24]OFD Sender: No OFD packet to send [01:39:29]OFD Sender: No OFD packet to send [01:39:34]OFD Sender: No OFD packet to send [01:39:39]OFD Sender: No OFD packet to send [01:39:44]OFD Sender: No OFD packet to send [01:39:49]OFD Sender: No OFD packet to send [01:39:54]OFD Sender: No OFD packet to send [01:39:59]OFD Sender: No OFD packet to send [01:40:04]OFD Sender: No OFD packet to send [01:40:09]OFD Sender: No OFD packet to send [01:40:14]OFD Sender: No OFD packet to send [01:40:19]OFD Sender: No OFD packet to send [01:40:24]OFD Sender: No OFD packet to send [01:40:29]OFD Sender: No OFD packet to send [01:40:34]OFD Sender: No OFD packet to send [01:40:39]OFD Sender: No OFD packet to send [01:40:44]OFD Sender: No OFD packet to send [01:40:49]OFD Sender: No OFD packet to send [01:40:54]OFD Sender: No OFD packet to send [01:40:56]accept exits with 7 [01:40:56]New connection [01:40:56]New thread 3066748260 created [01:40:56]Thread 3066604900 joined [01:40:56]Waiting for new connection... [01:40:56] Sock 7.Parse request [01:40:56]Sock 7.Check first char [01:40:56]Sock 7.First char is OK [01:40:56]request: POST /json_proto HTTP/1.0 [01:40:56]Method: POST [01:40:56]URL: /json_proto [01:40:56]Method is POST - this is cgi request [01:40:56]url: /json_proto [01:40:56]query_string will be loaded in cgi processing [01:40:56]execute_cgi json_proto POST (null) [01:40:56]execute_cgi path=json_proto method=POST [01:40:56]POST find Content-Length [01:40:56]Host: 172.17.63.3:8080 [01:40:56]Content-Length: 676 [01:40:56]Content-Type: application/json [01:40:56] [01:40:56]POST finish read [01:40:56]Found Content-Length = 676 [01:40:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99601", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.500, "sum" : 100.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:40:56]execute_script... [01:40: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)99601", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 1.500, "sum" : 100.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 100.00, "total" : 100.00, "payments": [ { "type": 0, "sum" : 100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:40:56]POST & json_proto [01:40:56]process_json_proto [01:40:56]json parsed OK: [01:40:56]protocol is kg_v1.0 [01:40:56]action value=close_receipt [01:40:56]process_action close_receipt [01:40:56]cmd_close_receipt [01:40:56]MH_GetDate [01:40:56]Write to MH i2c: F0 00 00 B1 02 A2 [01:40:56]Write i2c OK [01:40:56]MH_I2C_Read... [01:40:56]Read from MH i2c: F0 [01:40:56]MH_I2C_Read... [01:40:56]Read from MH i2c: F0 09 00 [01:40:56]MH_I2C_Read... [01:40:56]Read from MH i2c: F0 09 00 B1 02 00 A8 EB 1E 67 50 D1 6C 64 B4 [01:40:56]GetLastDocTimeStamp 1730075928 [01:40:56]current date 1730079656 [01:40:56]FM_GetShiftState [01:40:56]SAM_PROTO_GetShiftState [01:40:56]wFMCommunicate request_size=4 [01:40:56]MH_SAM_APDU [01:40:56]CAPDU: 80 13 01 00 [01:40:56]Write to MH i2c: E2 08 00 B2 02 80 13 01 00 00 00 00 00 31 [01:40:56]Write i2c OK [01:40:56]MH_I2C_Read... [01:40:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:40:56]Read from MH i2c: E2 [01:40:56]MH_I2C_Read... [01:40:56]Read from MH i2c: E2 0E 00 [01:40:56]MH_I2C_Read... [01:40:56]Read from MH i2c: E2 0E 00 B2 02 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 23 [01:40:56]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [01:40:56]wFMCommunicate OK [01:40:56]SAM_PROTO_GetShiftState done [01:40:56]FM_GetShiftState done [01:40:56]opened in 1730075526 [01:40:56]opened+sec_in_day 1730161926 [01:40:56]quantity*price = 10035 [01:40:56]sum+1 = 10036 [01:40:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.66 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 5 28.10.2024 01:40 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156789 ФПД: 21823729567660 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T014056&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156789&fm=21823729567660&tin=02508201610067®Number=0000000000091693&sum=10000 [01:40:57]StoreToDocumentArchive [01:40:57]shift 538 fd 156789 [01:40:57]save to /storage/0538/doc_00156789 [01:40:57]save last doc name /storage/0538/doc_00156789 to /storage/kkm_last_doc_name [01:40:57]save OK [01:40:57]Clear old archive folders... [01:40:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:40:57]tlvbuf is 01A55CB0 [01:40:57]SAM_PROTO_ClearQueue [01:40:57]wFMCommunicate request_size=4 [01:40:57]MH_SAM_APDU [01:40:57]CAPDU: 80 09 00 00 [01:40:57]Write to MH i2c: E2 08 00 BF 02 80 09 00 00 00 00 00 00 33 [01:40:57]Write i2c OK [01:40:57]MH_I2C_Read... [01:40:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:40:57]Read from MH i2c: E2 [01:40:57]MH_I2C_Read... [01:40:57]Read from MH i2c: E2 03 00 [01:40:57]MH_I2C_Read... [01:40:57]Read from MH i2c: E2 03 00 BF 02 00 90 00 35 [01:40:57]RAPDU: 90 00 [01:40:57]wFMCommunicate OK [01:40:57]SAM_PROTO_ClearQueue done [01:40:57]KKMCreateOFDPacket [01:40:57]OFDProtocolAddRootSTLVToBuf [01:40:57]FM_MakeSignedData [01:40:57]FM_MakeSignedData [01:40:57]SAM_PROTO_SignData [01:40:57]wFMCommunicate request_size=4 [01:40:57]MH_SAM_APDU [01:40:57]CAPDU: 80 0D 01 02 [01:40:57]Write to MH i2c: E2 08 00 C0 02 80 0D 01 02 00 00 00 00 3B [01:40:57]Write i2c OK [01:40:57]MH_I2C_Read... [01:40:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:40:57]Read from MH i2c: E2 [01:40:57]MH_I2C_Read... [01:40:57]Read from MH i2c: E2 03 00 [01:40:57]MH_I2C_Read... [01:40:57]Read from MH i2c: E2 03 00 C0 02 00 90 00 36 [01:40:57]RAPDU: 90 00 [01:40:57]wFMCommunicate OK [01:40:57]wFMCommunicate request_size=255 [01:40:57]MH_SAM_APDU [01:40: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 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 A8 EB 1E 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 75 64 02 00 35 04 06 00 13 [01:40:57]Write to MH i2c: E2 02 01 C1 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 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 A8 EB 1E 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 75 64 02 00 35 04 06 00 13 00 00 DD [01:40:57]Write i2c OK [01:40:57]MH_I2C_Read... [01:40:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:40:58]Read from MH i2c: E2 [01:40:58]MH_I2C_Read... [01:40:58]Read from MH i2c: E2 03 00 [01:40:58]MH_I2C_Read... [01:40:58]Read from MH i2c: E2 03 00 C1 02 00 90 00 37 [01:40:58]RAPDU: 90 00 [01:40:58]wFMCommunicate OK [01:40:58]wFMCommunicate request_size=10 [01:40:58]MH_SAM_APDU [01:40:58]CAPDU: 80 0D 02 02 05 D9 3B A6 07 AC [01:40:58]Write to MH i2c: E2 0D 00 C2 02 80 0D 02 02 05 00 D9 3B A6 07 AC 00 00 B5 [01:40:58]Write i2c OK [01:40:58]MH_I2C_Read... [01:40:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:40:58]Read from MH i2c: E2 [01:40:58]MH_I2C_Read... [01:40:58]Read from MH i2c: E2 03 00 [01:40:58]MH_I2C_Read... [01:40:58]Read from MH i2c: E2 03 00 C2 02 00 90 00 38 [01:40:58]RAPDU: 90 00 [01:40:58]wFMCommunicate OK [01:40:58]wFMCommunicate request_size=4 [01:40:58]MH_SAM_APDU [01:40:58]CAPDU: 80 0D 03 02 [01:40:58]Write to MH i2c: E2 08 00 C3 02 80 0D 03 02 00 00 00 00 40 [01:40:58]Write i2c OK [01:40:58]MH_I2C_Read... [01:40:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:40:58]Read from MH i2c: E2 [01:40:58]MH_I2C_Read... [01:40:58]Read from MH i2c: E2 0B 00 [01:40:58]MH_I2C_Read... [01:40:58]Read from MH i2c: E2 0B 00 C3 02 00 DC 22 EF 4A 7D 10 F8 9A 90 00 97 [01:40:58]RAPDU: DC 22 EF 4A 7D 10 F8 9A 90 00 [01:40:58]wFMCommunicate OK [01:40:58]SAM_PROTO_SignData done [01:40:58]FM_MakeSignedData done [01:40:58]CreateOFDProtocolMessage [01:40:58]wFMCommunicate request_size=4 [01:40:58]MH_SAM_APDU [01:40:58]CAPDU: 80 11 00 00 [01:40:58]Write to MH i2c: E2 08 00 C4 02 80 11 00 00 00 00 00 00 40 [01:40:58]Write i2c OK [01:40:58]MH_I2C_Read... [01:40:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:40:58]Read from MH i2c: E2 [01:40:58]MH_I2C_Read... [01:40:58]Read from MH i2c: E2 17 00 [01:40:58]MH_I2C_Read... [01:40:58]Read from MH i2c: E2 17 00 C4 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 95 [01:40:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [01:40:58]wFMCommunicate OK [01:40:58]CreateOFDProtocolMessage done [01:40:58]OFDSenderStorePacket 156789 [01:40:58]StoreOFDPacket docnum=156789 [01:40:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 A2 21 07 01 43 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 A8 EB 1E 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 75 64 02 00 35 04 06 00 13 D9 3B A6 07 AC DC 22 EF 4A 7D 10 F8 9A [01:40:58]CheckFolder [01:40:58]dirname=/storage/ofd_packets [01:40:58]CheckFolder done [01:40:58]ProducePacketName [01:40:58]name=ofd_packets/00156789 [01:40:58]NVStorageSaveData ofd_packets/00156789 [01:40:58]File name is /storage/ofd_packets/00156789 [01:40:58]Write 301 bytes [01:40:58]NVStorageSaveData done [01:40:58]OFDSenderStorePacket done [01:40:58]KKMCreateOFDPacket done [01:40:58]NVStorageSaveData kkm_last_timestamp [01:40:58]File name is /storage/kkm_last_timestamp [01:40:58]Write 4 bytes [01:40:58]NVStorageSaveData done [01:40:58]ExternCall_PrintAddStr [01:40:58]wPrintStart [01:40:58]Write to MH i2c: 01 00 00 C5 02 C7 [01:40:58]Write i2c OK [01:40:58]MH_I2C_Read... [01:40:58]Read from MH i2c: 01 [01:40:58]MH_I2C_Read... [01:40:58]Read from MH i2c: 01 07 00 [01:40:58]MH_I2C_Read... [01:40:58]Read from MH i2c: 01 07 00 C5 02 00 00 00 00 00 FF 0F DC [01:40:58]RasterBufferAndPrint [01:40:58]line Счет N : (1)99601 [01:40:58]line ИНН: 02508201610067 [01:40:58]line Контрольно-Кассовый Чек [01:40:58]line ПРОДАЖА [01:40:58]line ТРК (МРК, ГНК) : 31 [01:40:58]line Товар: 2710124130 [01:40:58]line Аи-92-К-5 [01:40:58]line 1.500 * 66.90 [01:40:58]line = 100.35 [01:40:58]line НДС 12% НСП 1% [01:40:58]line > о реализуемом товаре [01:40:58]line ОКРУГЛЕНИЕ: -0.35 [01:40:58]line ИТОГО: 100.00 [01:40:58]line Внесено: 100.00 [01:40:58]line СДАЧА: 0.00 [01:40:58]line НСП 1% : 0.89 [01:40:58]line НДС 12% : 10.66 [01:40:58]line Наличными: 100.00 [01:40:58]line Безнал.: 0.00 [01:40:58]line Место: АЗС № 143 "Партнер Нефть" [01:40:58]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [01:40:58]line СНО: Общий режим [01:40:58]line Чек 5 28.10.2024 01:40 [01:40:58]line Смена: 538 ФФД: 1.0 [01:40:58]line ЗНМ: 0300000096 [01:40:58]line РНМ: 0000000000091693 [01:40:58]line Версия ККМ: 001 [01:40:58]line ФМ: 0000000000871792 [01:40:58]line ФД: 156789 [01:40:58]line ФПД: 21823729567660 [01:40:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T014056&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156789&fm=21823729567660&tin=02508201610067®Number=0000000000091693&sum=10000 [01:40:58]OFD Sender: Processing packet 156789 [packets to send 31, broken 30] [01:40:58]ProducePacketName [01:40:58]name=ofd_packets/00156789 [01:40:58]OFD Sender: To server: pG, [01:40:58]CommunicateWithHost lk.salyk.kg:30040 [01:40:58]ConnectInit lk.salyk.kg [01:40:58]written 0, free lines is 4095 [01:40:58]Connected sock=10 [01:40:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 A2 21 07 01 43 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DC 05 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 33 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 A8 EB 1E 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 75 64 02 00 35 04 06 00 13 D9 3B A6 07 AC DC 22 EF 4A 7D 10 F8 9A [01:40:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 D9 59 47 00 06 E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 75 64 02 00 F4 03 04 00 16 91 1E 67 B6 04 01 00 00 AA 13 FF 67 64 D5 5C 50 [01:40:59]CommunicateWithHost err = 0 [01:40:59]CheckOFDResponse [01:40:59]1017 (14) - 77093643461234 [01:40:59]1041 (16) - 0000000000871792 [01:40:59]1040 (4) - 156789 [01:40:59]1012 (4) - 27.10.2024 19:14 [01:40:59]1206 (1) - 0 [01:40:59]OFD Sender: Remove packet 156789 [01:40:59]ProducePacketName [01:40:59]name=ofd_packets/00156789 [01:40:59]NVStorageDeleteData [01:40:59]Write to MH i2c: 01 00 00 F0 02 F2 [01:40:59]Write i2c OK [01:40:59]MH_I2C_Read... [01:40:59]Read from MH i2c: 01 [01:40:59]MH_I2C_Read... [01:40:59]Read from MH i2c: 01 07 00 [01:40:59]MH_I2C_Read... [01:40:59]Read from MH i2c: 01 07 00 F0 02 00 00 00 00 00 D6 0C DB [01:40:59]RasterBufferAndPrint [01:40:59]line [01:40:59]line [01:40:59]line [01:40:59]line [01:40:59]line [01:40:59]written 0, free lines is 3293 [01:40:59]process_action close_receipt done [01:40:59]requested_data is exist [01:40:59]produce_requested_data [01:40:59]requested_item fm.sn is exist - process it [01:40:59]wFMCommunicate request_size=4 [01:40:59]MH_SAM_APDU [01:40:59]CAPDU: 80 11 00 00 [01:40:59]Write to MH i2c: E2 08 00 F7 02 80 11 00 00 00 00 00 00 73 [01:40:59]Write i2c OK [01:40:59]MH_I2C_Read... [01:40:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:40:59]Read from MH i2c: E2 [01:40:59]MH_I2C_Read... [01:40:59]Read from MH i2c: E2 17 00 [01:40:59]MH_I2C_Read... [01:40:59]Read from MH i2c: E2 17 00 F7 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 C8 [01:40:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [01:40:59]wFMCommunicate OK [01:40:59]requested_item fd.num is exist - process it [01:40:59]SAM_PROTO_GetFieldsCounters [01:40:59]wFMCommunicate request_size=4 [01:40:59]MH_SAM_APDU [01:40:59]CAPDU: 80 13 00 00 [01:40:59]Write to MH i2c: E2 08 00 F8 02 80 13 00 00 00 00 00 00 76 [01:40:59]Write i2c OK [01:40:59]MH_I2C_Read... [01:40:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:40:59]Read from MH i2c: E2 [01:40:59]MH_I2C_Read... [01:40:59]Read from MH i2c: E2 62 00 [01:40:59]MH_I2C_Read... [01:40:59]Read from MH i2c: E2 62 00 F8 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 75 64 02 00 0E 04 04 00 1A 02 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 A2 [01:40:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 75 64 02 00 0E 04 04 00 1A 02 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:40:59]wFMCommunicate OK [01:40:59]SAM_PROTO_GetFieldsCounters done [01:40:59]requested_item shift.num is exist - process it [01:40:59]requested_item shift.opened is exist - process it [01:40:59]req_shift_opened [01:40:59]FM_GetShiftState [01:40:59]SAM_PROTO_GetShiftState [01:40:59]wFMCommunicate request_size=4 [01:40:59]MH_SAM_APDU [01:40:59]CAPDU: 80 13 01 00 [01:40:59]Write to MH i2c: E2 08 00 F9 02 80 13 01 00 00 00 00 00 78 [01:40:59]Write i2c OK [01:40:59]MH_I2C_Read... [01:40:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:40:59]Read from MH i2c: E2 [01:40:59]MH_I2C_Read... [01:40:59]Read from MH i2c: E2 0E 00 [01:40:59]MH_I2C_Read... [01:40:59]Read from MH i2c: E2 0E 00 F9 02 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 6A [01:40:59]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [01:40:59]wFMCommunicate OK [01:40:59]SAM_PROTO_GetShiftState done [01:40:59]FM_GetShiftState done [01:40:59]req_shift_opened done [01:40:59]requested_item shift.open_date is exist - process it [01:40:59]req_shift_open_date [01:40:59]req_shift_open_date done [01:40:59]produce_requested_data done [01:40:59]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156789,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [01:40:59]process_action_free close_receipt [01:40:59]json_value_free [01:40:59]json_value_free done [01:40:59]process_json_proto returns [01:40:59]Send response to host [01:40:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156789,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [01:40:59]free response buf [01:40:59]execute_script done [01:40:59]execute_script returns [01:40:59]free content buf [01:40:59]Sock 7.Close socket [01:40:59]Sock 7.Thread stoped [01:40:59]OFD Sender: No OFD packet to send [01:41:04]OFD Sender: No OFD packet to send [01:41:09]OFD Sender: No OFD packet to send [01:41:14]OFD Sender: No OFD packet to send [01:41:19]OFD Sender: No OFD packet to send [01:41:24]OFD Sender: No OFD packet to send [01:41:29]OFD Sender: No OFD packet to send [01:41:34]OFD Sender: No OFD packet to send [01:41:39]OFD Sender: No OFD packet to send [01:41:44]OFD Sender: No OFD packet to send [01:41:49]OFD Sender: No OFD packet to send [01:41:54]OFD Sender: No OFD packet to send [01:41:59]OFD Sender: No OFD packet to send [01:42:04]OFD Sender: No OFD packet to send [01:42:09]OFD Sender: No OFD packet to send [01:42:14]OFD Sender: No OFD packet to send [01:42:19]OFD Sender: No OFD packet to send [01:42:24]OFD Sender: No OFD packet to send [01:42:29]OFD Sender: No OFD packet to send [01:42:34]OFD Sender: No OFD packet to send [01:42:39]OFD Sender: No OFD packet to send [01:42:44]OFD Sender: No OFD packet to send [01:42:49]OFD Sender: No OFD packet to send [01:42:54]OFD Sender: No OFD packet to send [01:42:59]OFD Sender: No OFD packet to send [01:43:04]OFD Sender: No OFD packet to send [01:43:09]OFD Sender: No OFD packet to send [01:43:14]OFD Sender: No OFD packet to send [01:43:19]OFD Sender: No OFD packet to send [01:43:24]OFD Sender: No OFD packet to send [01:43:29]OFD Sender: No OFD packet to send [01:43:34]OFD Sender: No OFD packet to send [01:43:39]OFD Sender: No OFD packet to send [01:43:44]OFD Sender: No OFD packet to send [01:43:49]OFD Sender: No OFD packet to send [01:43:54]OFD Sender: No OFD packet to send [01:43:59]OFD Sender: No OFD packet to send [01:44:04]OFD Sender: No OFD packet to send [01:44:09]OFD Sender: No OFD packet to send [01:44:14]OFD Sender: No OFD packet to send [01:44:19]OFD Sender: No OFD packet to send [01:44:24]OFD Sender: No OFD packet to send [01:44:29]OFD Sender: No OFD packet to send [01:44:34]OFD Sender: No OFD packet to send [01:44:39]OFD Sender: No OFD packet to send [01:44:44]OFD Sender: No OFD packet to send [01:44:49]OFD Sender: No OFD packet to send [01:44:54]OFD Sender: No OFD packet to send [01:44:59]OFD Sender: No OFD packet to send [01:45:04]OFD Sender: No OFD packet to send [01:45:09]OFD Sender: No OFD packet to send [01:45:14]OFD Sender: No OFD packet to send [01:45:19]OFD Sender: No OFD packet to send [01:45:24]OFD Sender: No OFD packet to send [01:45:29]OFD Sender: No OFD packet to send [01:45:34]OFD Sender: No OFD packet to send [01:45:39]OFD Sender: No OFD packet to send [01:45:44]OFD Sender: No OFD packet to send [01:45:49]OFD Sender: No OFD packet to send [01:45:54]OFD Sender: No OFD packet to send [01:45:59]OFD Sender: No OFD packet to send [01:46:04]OFD Sender: No OFD packet to send [01:46:09]OFD Sender: No OFD packet to send [01:46:14]OFD Sender: No OFD packet to send [01:46:19]OFD Sender: No OFD packet to send [01:46:24]OFD Sender: No OFD packet to send [01:46:29]OFD Sender: No OFD packet to send [01:46:34]OFD Sender: No OFD packet to send [01:46:39]OFD Sender: No OFD packet to send [01:46:44]OFD Sender: No OFD packet to send [01:46:49]OFD Sender: No OFD packet to send [01:46:54]OFD Sender: No OFD packet to send [01:46:59]OFD Sender: No OFD packet to send [01:47:04]OFD Sender: No OFD packet to send [01:47:09]OFD Sender: No OFD packet to send [01:47:14]OFD Sender: No OFD packet to send [01:47:19]OFD Sender: No OFD packet to send [01:47:24]OFD Sender: No OFD packet to send [01:47:29]OFD Sender: No OFD packet to send [01:47:34]OFD Sender: No OFD packet to send [01:47:39]OFD Sender: No OFD packet to send [01:47:44]OFD Sender: No OFD packet to send [01:47:49]OFD Sender: No OFD packet to send [01:47:54]OFD Sender: No OFD packet to send [01:47:59]OFD Sender: No OFD packet to send [01:48:04]OFD Sender: No OFD packet to send [01:48:09]OFD Sender: No OFD packet to send [01:48:14]OFD Sender: No OFD packet to send [01:48:19]OFD Sender: No OFD packet to send [01:48:24]OFD Sender: No OFD packet to send [01:48:29]OFD Sender: No OFD packet to send [01:48:34]OFD Sender: No OFD packet to send [01:48:39]OFD Sender: No OFD packet to send [01:48:44]OFD Sender: No OFD packet to send [01:48:49]OFD Sender: No OFD packet to send [01:48:54]OFD Sender: No OFD packet to send [01:48:59]OFD Sender: No OFD packet to send [01:49:04]OFD Sender: No OFD packet to send [01:49:09]OFD Sender: No OFD packet to send [01:49:14]OFD Sender: No OFD packet to send [01:49:19]OFD Sender: No OFD packet to send [01:49:24]OFD Sender: No OFD packet to send [01:49:29]OFD Sender: No OFD packet to send [01:49:34]OFD Sender: No OFD packet to send [01:49:39]OFD Sender: No OFD packet to send [01:49:44]OFD Sender: No OFD packet to send [01:49:49]OFD Sender: No OFD packet to send [01:49:55]OFD Sender: No OFD packet to send [01:50:00]OFD Sender: No OFD packet to send [01:50:05]OFD Sender: No OFD packet to send [01:50:10]OFD Sender: No OFD packet to send [01:50:15]OFD Sender: No OFD packet to send [01:50:20]OFD Sender: No OFD packet to send [01:50:25]OFD Sender: No OFD packet to send [01:50:30]OFD Sender: No OFD packet to send [01:50:35]OFD Sender: No OFD packet to send [01:50:40]OFD Sender: No OFD packet to send [01:50:45]OFD Sender: No OFD packet to send [01:50:50]OFD Sender: No OFD packet to send [01:50:55]OFD Sender: No OFD packet to send [01:51:00]OFD Sender: No OFD packet to send [01:51:05]OFD Sender: No OFD packet to send [01:51:10]OFD Sender: No OFD packet to send [01:51:15]OFD Sender: No OFD packet to send [01:51:20]OFD Sender: No OFD packet to send [01:51:25]OFD Sender: No OFD packet to send [01:51:30]OFD Sender: No OFD packet to send [01:51:35]OFD Sender: No OFD packet to send [01:51:40]OFD Sender: No OFD packet to send [01:51:45]OFD Sender: No OFD packet to send [01:51:50]OFD Sender: No OFD packet to send [01:51:55]OFD Sender: No OFD packet to send [01:52:00]OFD Sender: No OFD packet to send [01:52:05]OFD Sender: No OFD packet to send [01:52:10]OFD Sender: No OFD packet to send [01:52:15]OFD Sender: No OFD packet to send [01:52:20]OFD Sender: No OFD packet to send [01:52:25]OFD Sender: No OFD packet to send [01:52:30]OFD Sender: No OFD packet to send [01:52:35]OFD Sender: No OFD packet to send [01:52:40]OFD Sender: No OFD packet to send [01:52:45]OFD Sender: No OFD packet to send [01:52:50]OFD Sender: No OFD packet to send [01:52:55]OFD Sender: No OFD packet to send [01:53:00]OFD Sender: No OFD packet to send [01:53:05]OFD Sender: No OFD packet to send [01:53:10]OFD Sender: No OFD packet to send [01:53:15]OFD Sender: No OFD packet to send [01:53:20]OFD Sender: No OFD packet to send [01:53:25]OFD Sender: No OFD packet to send [01:53:30]OFD Sender: No OFD packet to send [01:53:35]OFD Sender: No OFD packet to send [01:53:40]OFD Sender: No OFD packet to send [01:53:45]OFD Sender: No OFD packet to send [01:53:50]OFD Sender: No OFD packet to send [01:53:55]OFD Sender: No OFD packet to send [01:54:00]OFD Sender: No OFD packet to send [01:54:05]OFD Sender: No OFD packet to send [01:54:10]OFD Sender: No OFD packet to send [01:54:15]OFD Sender: No OFD packet to send [01:54:20]OFD Sender: No OFD packet to send [01:54:25]OFD Sender: No OFD packet to send [01:54:30]OFD Sender: No OFD packet to send [01:54:35]OFD Sender: No OFD packet to send [01:54:40]OFD Sender: No OFD packet to send [01:54:45]OFD Sender: No OFD packet to send [01:54:50]OFD Sender: No OFD packet to send [01:54:55]OFD Sender: No OFD packet to send [01:55:00]OFD Sender: No OFD packet to send [01:55:05]OFD Sender: No OFD packet to send [01:55:10]OFD Sender: No OFD packet to send [01:55:15]OFD Sender: No OFD packet to send [01:55:20]OFD Sender: No OFD packet to send [01:55:25]OFD Sender: No OFD packet to send [01:55:30]OFD Sender: No OFD packet to send [01:55:35]OFD Sender: No OFD packet to send [01:55:40]OFD Sender: No OFD packet to send [01:55:45]OFD Sender: No OFD packet to send [01:55:50]OFD Sender: No OFD packet to send [01:55:55]OFD Sender: No OFD packet to send [01:56:00]OFD Sender: No OFD packet to send [01:56:05]OFD Sender: No OFD packet to send [01:56:10]OFD Sender: No OFD packet to send [01:56:15]OFD Sender: No OFD packet to send [01:56:20]OFD Sender: No OFD packet to send [01:56:25]OFD Sender: No OFD packet to send [01:56:30]OFD Sender: No OFD packet to send [01:56:35]OFD Sender: No OFD packet to send [01:56:40]OFD Sender: No OFD packet to send [01:56:45]OFD Sender: No OFD packet to send [01:56:50]OFD Sender: No OFD packet to send [01:56:55]OFD Sender: No OFD packet to send [01:57:00]OFD Sender: No OFD packet to send [01:57:05]OFD Sender: No OFD packet to send [01:57:10]OFD Sender: No OFD packet to send [01:57:15]OFD Sender: No OFD packet to send [01:57:20]OFD Sender: No OFD packet to send [01:57:25]OFD Sender: No OFD packet to send [01:57:30]OFD Sender: No OFD packet to send [01:57:35]OFD Sender: No OFD packet to send [01:57:40]OFD Sender: No OFD packet to send [01:57:45]OFD Sender: No OFD packet to send [01:57:50]OFD Sender: No OFD packet to send [01:57:55]OFD Sender: No OFD packet to send [01:58:00]OFD Sender: No OFD packet to send [01:58:05]OFD Sender: No OFD packet to send [01:58:10]OFD Sender: No OFD packet to send [01:58:15]OFD Sender: No OFD packet to send [01:58:20]OFD Sender: No OFD packet to send [01:58:25]OFD Sender: No OFD packet to send [01:58:30]OFD Sender: No OFD packet to send [01:58:35]OFD Sender: No OFD packet to send [01:58:40]OFD Sender: No OFD packet to send [01:58:45]OFD Sender: No OFD packet to send [01:58:50]OFD Sender: No OFD packet to send [01:58:55]OFD Sender: No OFD packet to send [01:59:00]OFD Sender: No OFD packet to send [01:59:05]OFD Sender: No OFD packet to send [01:59:10]OFD Sender: No OFD packet to send [01:59:15]OFD Sender: No OFD packet to send [01:59:20]OFD Sender: No OFD packet to send [01:59:25]OFD Sender: No OFD packet to send [01:59:30]OFD Sender: No OFD packet to send [01:59:35]OFD Sender: No OFD packet to send [01:59:40]OFD Sender: No OFD packet to send [01:59:45]OFD Sender: No OFD packet to send [01:59:50]OFD Sender: No OFD packet to send [01:59:55]OFD Sender: No OFD packet to send [02:00:00]OFD Sender: No OFD packet to send [02:00:05]OFD Sender: No OFD packet to send [02:00:10]OFD Sender: No OFD packet to send [02:00:15]OFD Sender: No OFD packet to send [02:00:20]OFD Sender: No OFD packet to send [02:00:25]OFD Sender: No OFD packet to send [02:00:30]OFD Sender: No OFD packet to send [02:00:35]OFD Sender: No OFD packet to send [02:00:40]OFD Sender: No OFD packet to send [02:00:45]OFD Sender: No OFD packet to send [02:00:50]OFD Sender: No OFD packet to send [02:00:54]accept exits with 9 [02:00:54]New connection [02:00:54]New thread 3066604900 created [02:00:54]Thread 3066748260 joined [02:00:54]Waiting for new connection... [02:00:54] Sock 9.Parse request [02:00:54]Sock 9.Check first char [02:00:54]Sock 9.First char is OK [02:00:54]request: POST /json_proto HTTP/1.0 [02:00:54]Method: POST [02:00:54]URL: /json_proto [02:00:54]Method is POST - this is cgi request [02:00:54]url: /json_proto [02:00:54]query_string will be loaded in cgi processing [02:00:54]execute_cgi json_proto POST (null) [02:00:54]execute_cgi path=json_proto method=POST [02:00:54]POST find Content-Length [02:00:54]Host: 172.17.63.3:8080 [02:00:54]Content-Length: 676 [02:00:54]Content-Type: application/json [02:00:54] [02:00:54]POST finish read [02:00:54]Found Content-Length = 676 [02:00:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99602", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.630, "sum" : 510.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 510.00, "total" : 510.00, "payments": [ { "type": 0, "sum" : 510.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:00:54]execute_script... [02:00:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99602", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.630, "sum" : 510.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 510.00, "total" : 510.00, "payments": [ { "type": 0, "sum" : 510.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:00:54]POST & json_proto [02:00:54]process_json_proto [02:00:54]json parsed OK: [02:00:54]protocol is kg_v1.0 [02:00:54]action value=close_receipt [02:00:54]process_action close_receipt [02:00:54]cmd_close_receipt [02:00:54]MH_GetDate [02:00:54]Write to MH i2c: F0 00 00 FA 02 EB [02:00:54]Write i2c OK [02:00:54]MH_I2C_Read... [02:00:54]Read from MH i2c: F0 [02:00:54]MH_I2C_Read... [02:00:54]Read from MH i2c: F0 09 00 [02:00:54]MH_I2C_Read... [02:00:54]Read from MH i2c: F0 09 00 FA 02 00 56 F0 1E 67 50 D1 6C 64 B0 [02:00:54]GetLastDocTimeStamp 1730079656 [02:00:54]current date 1730080854 [02:00:54]FM_GetShiftState [02:00:54]SAM_PROTO_GetShiftState [02:00:54]wFMCommunicate request_size=4 [02:00:54]MH_SAM_APDU [02:00:54]CAPDU: 80 13 01 00 [02:00:54]Write to MH i2c: E2 08 00 FB 02 80 13 01 00 00 00 00 00 7A [02:00:54]Write i2c OK [02:00:54]MH_I2C_Read... [02:00:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:00:54]Read from MH i2c: E2 [02:00:54]MH_I2C_Read... [02:00:54]Read from MH i2c: E2 0E 00 [02:00:54]MH_I2C_Read... [02:00:54]Read from MH i2c: E2 0E 00 FB 02 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 6C [02:00:54]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [02:00:54]wFMCommunicate OK [02:00:54]SAM_PROTO_GetShiftState done [02:00:54]FM_GetShiftState done [02:00:54]opened in 1730075526 [02:00:54]opened+sec_in_day 1730161926 [02:00:54]quantity*price = 51044 [02:00:54]sum+1 = 51046 [02:00:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 510.00 Внесено: 510.00 СДАЧА: 0.00 НСП 1% : 4.52 НДС 12% : 54.21 Наличными: 510.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 6 28.10.2024 02:00 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156790 ФПД: 174997162806507 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T020054&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156790&fm=174997162806507&tin=02508201610067®Number=0000000000091693&sum=51000 [02:00:55]StoreToDocumentArchive [02:00:55]shift 538 fd 156790 [02:00:55]save to /storage/0538/doc_00156790 [02:00:55]save last doc name /storage/0538/doc_00156790 to /storage/kkm_last_doc_name [02:00:55]save OK [02:00:55]Clear old archive folders... [02:00:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:00:55]tlvbuf is 01A5C920 [02:00:55]SAM_PROTO_ClearQueue [02:00:55]wFMCommunicate request_size=4 [02:00:55]MH_SAM_APDU [02:00:55]CAPDU: 80 09 00 00 [02:00:55]Write to MH i2c: E2 08 00 08 03 80 09 00 00 00 00 00 00 7D [02:00:55]Write i2c OK [02:00:55]MH_I2C_Read... [02:00:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:00:55]Read from MH i2c: E2 [02:00:55]MH_I2C_Read... [02:00:55]Read from MH i2c: E2 03 00 [02:00:55]MH_I2C_Read... [02:00:55]Read from MH i2c: E2 03 00 08 03 00 90 00 7F [02:00:55]RAPDU: 90 00 [02:00:55]wFMCommunicate OK [02:00:55]SAM_PROTO_ClearQueue done [02:00:55]KKMCreateOFDPacket [02:00:55]OFDProtocolAddRootSTLVToBuf [02:00:55]FM_MakeSignedData [02:00:55]FM_MakeSignedData [02:00:55]SAM_PROTO_SignData [02:00:55]wFMCommunicate request_size=4 [02:00:55]MH_SAM_APDU [02:00:55]CAPDU: 80 0D 01 02 [02:00:55]Write to MH i2c: E2 08 00 09 03 80 0D 01 02 00 00 00 00 85 [02:00:55]Write i2c OK [02:00:55]MH_I2C_Read... [02:00:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:00:55]Read from MH i2c: E2 [02:00:55]MH_I2C_Read... [02:00:55]Read from MH i2c: E2 03 00 [02:00:55]MH_I2C_Read... [02:00:55]Read from MH i2c: E2 03 00 09 03 00 90 00 80 [02:00:55]RAPDU: 90 00 [02:00:55]wFMCommunicate OK [02:00:55]wFMCommunicate request_size=255 [02:00:55]MH_SAM_APDU [02:00: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 CE 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 65 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2D 15 00 00 00 00 07 04 06 00 38 C7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 56 F0 1E 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 76 64 02 00 35 04 06 00 9F [02:00:55]Write to MH i2c: E2 02 01 0A 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 CE 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 65 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2D 15 00 00 00 00 07 04 06 00 38 C7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 56 F0 1E 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 76 64 02 00 35 04 06 00 9F 00 00 54 [02:00:55]Write i2c OK [02:00:55]MH_I2C_Read... [02:00:55]OFD Sender: No OFD packet to send [02:00:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:00:55]Read from MH i2c: E2 [02:00:55]MH_I2C_Read... [02:00:55]Read from MH i2c: E2 03 00 [02:00:55]MH_I2C_Read... [02:00:55]Read from MH i2c: E2 03 00 0A 03 00 90 00 81 [02:00:55]RAPDU: 90 00 [02:00:55]wFMCommunicate OK [02:00:55]wFMCommunicate request_size=10 [02:00:55]MH_SAM_APDU [02:00:55]CAPDU: 80 0D 02 02 05 28 B3 B9 CC EB [02:00:55]Write to MH i2c: E2 0D 00 0B 03 80 0D 02 02 05 00 28 B3 B9 CC EB 00 00 DD [02:00:55]Write i2c OK [02:00:55]MH_I2C_Read... [02:00:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:00:55]Read from MH i2c: E2 [02:00:55]MH_I2C_Read... [02:00:55]Read from MH i2c: E2 03 00 [02:00:55]MH_I2C_Read... [02:00:55]Read from MH i2c: E2 03 00 0B 03 00 90 00 82 [02:00:55]RAPDU: 90 00 [02:00:55]wFMCommunicate OK [02:00:55]wFMCommunicate request_size=4 [02:00:55]MH_SAM_APDU [02:00:55]CAPDU: 80 0D 03 02 [02:00:55]Write to MH i2c: E2 08 00 0C 03 80 0D 03 02 00 00 00 00 8A [02:00:55]Write i2c OK [02:00:55]MH_I2C_Read... [02:00:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:00:55]Read from MH i2c: E2 [02:00:55]MH_I2C_Read... [02:00:55]Read from MH i2c: E2 0B 00 [02:00:55]MH_I2C_Read... [02:00:55]Read from MH i2c: E2 0B 00 0C 03 00 7A 2B CA 83 EF 9B AA D2 90 00 83 [02:00:55]RAPDU: 7A 2B CA 83 EF 9B AA D2 90 00 [02:00:55]wFMCommunicate OK [02:00:55]SAM_PROTO_SignData done [02:00:55]FM_MakeSignedData done [02:00:55]CreateOFDProtocolMessage [02:00:55]wFMCommunicate request_size=4 [02:00:55]MH_SAM_APDU [02:00:55]CAPDU: 80 11 00 00 [02:00:55]Write to MH i2c: E2 08 00 0D 03 80 11 00 00 00 00 00 00 8A [02:00:55]Write i2c OK [02:00:55]MH_I2C_Read... [02:00:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:00:55]Read from MH i2c: E2 [02:00:55]MH_I2C_Read... [02:00:55]Read from MH i2c: E2 17 00 [02:00:55]MH_I2C_Read... [02:00:55]Read from MH i2c: E2 17 00 0D 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 DF [02:00:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [02:00:55]wFMCommunicate OK [02:00:55]CreateOFDProtocolMessage done [02:00:55]OFDSenderStorePacket 156790 [02:00:55]StoreOFDPacket docnum=156790 [02:00:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 E3 50 07 01 B5 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 CE 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 65 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2D 15 00 00 00 00 07 04 06 00 38 C7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 56 F0 1E 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 76 64 02 00 35 04 06 00 9F 28 B3 B9 CC EB 7A 2B CA 83 EF 9B AA D2 [02:00:55]CheckFolder [02:00:55]dirname=/storage/ofd_packets [02:00:55]CheckFolder done [02:00:55]ProducePacketName [02:00:55]name=ofd_packets/00156790 [02:00:55]NVStorageSaveData ofd_packets/00156790 [02:00:55]File name is /storage/ofd_packets/00156790 [02:00:55]Write 301 bytes [02:00:55]NVStorageSaveData done [02:00:55]OFDSenderStorePacket done [02:00:55]KKMCreateOFDPacket done [02:00:55]NVStorageSaveData kkm_last_timestamp [02:00:55]File name is /storage/kkm_last_timestamp [02:00:55]Write 4 bytes [02:00:55]NVStorageSaveData done [02:00:55]ExternCall_PrintAddStr [02:00:55]wPrintStart [02:00:55]Write to MH i2c: 01 00 00 0E 03 11 [02:00:55]Write i2c OK [02:00:55]MH_I2C_Read... [02:00:55]Read from MH i2c: 01 [02:00:55]MH_I2C_Read... [02:00:55]Read from MH i2c: 01 07 00 [02:00:55]MH_I2C_Read... [02:00:55]Read from MH i2c: 01 07 00 0E 03 00 00 00 00 00 FF 0F 26 [02:00:55]RasterBufferAndPrint [02:00:55]line Счет N : (1)99602 [02:00:55]line ИНН: 02508201610067 [02:00:55]line Контрольно-Кассовый Чек [02:00:55]line ПРОДАЖА [02:00:55]line ТРК (МРК, ГНК) : 31 [02:00:55]line Товар: 2710124130 [02:00:55]line Аи-92-К-5 [02:00:55]line 7.630 * 66.90 [02:00:55]line = 510.45 [02:00:55]line НДС 12% НСП 1% [02:00:55]line > о реализуемом товаре [02:00:55]line ОКРУГЛЕНИЕ: -0.45 [02:00:55]line ИТОГО: 510.00 [02:00:55]line Внесено: 510.00 [02:00:55]line СДАЧА: 0.00 [02:00:55]line НСП 1% : 4.52 [02:00:55]line НДС 12% : 54.21 [02:00:55]line Наличными: 510.00 [02:00:55]line Безнал.: 0.00 [02:00:55]line Место: АЗС № 143 "Партнер Нефть" [02:00:55]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [02:00:55]line СНО: Общий режим [02:00:55]line Чек 6 28.10.2024 02:00 [02:00:55]line Смена: 538 ФФД: 1.0 [02:00:55]line ЗНМ: 0300000096 [02:00:55]line РНМ: 0000000000091693 [02:00:55]line Версия ККМ: 001 [02:00:55]line ФМ: 0000000000871792 [02:00:55]line ФД: 156790 [02:00:55]line ФПД: 174997162806507 [02:00:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T020054&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156790&fm=174997162806507&tin=02508201610067®Number=0000000000091693&sum=51000 [02:00:56]OFD Sender: Processing packet 156790 [packets to send 31, broken 30] [02:00:56]ProducePacketName [02:00:56]name=ofd_packets/00156790 [02:00:56]OFD Sender: To server: pG, [02:00:56]CommunicateWithHost lk.salyk.kg:30040 [02:00:56]ConnectInit lk.salyk.kg [02:00:56]written 0, free lines is 4095 [02:00:56]Connected sock=10 [02:00:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 E3 50 07 01 B5 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 CE 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 65 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2D 15 00 00 00 00 07 04 06 00 38 C7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 56 F0 1E 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 76 64 02 00 35 04 06 00 9F 28 B3 B9 CC EB 7A 2B CA 83 EF 9B AA D2 [02:00:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 24 E9 47 00 DB 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 76 64 02 00 F4 03 04 00 C4 95 1E 67 B6 04 01 00 00 D7 7D 8A 73 F9 E8 3B 04 [02:00:56]CommunicateWithHost err = 0 [02:00:56]CheckOFDResponse [02:00:56]1017 (14) - 77093643461234 [02:00:56]1041 (16) - 0000000000871792 [02:00:56]1040 (4) - 156790 [02:00:56]1012 (4) - 27.10.2024 19:34 [02:00:56]1206 (1) - 0 [02:00:56]OFD Sender: Remove packet 156790 [02:00:56]ProducePacketName [02:00:56]name=ofd_packets/00156790 [02:00:56]NVStorageDeleteData [02:00:56]Write to MH i2c: 01 00 00 39 03 3C [02:00:56]Write i2c OK [02:00:56]MH_I2C_Read... [02:00:56]Read from MH i2c: 01 [02:00:56]MH_I2C_Read... [02:00:56]Read from MH i2c: 01 07 00 [02:00:56]MH_I2C_Read... [02:00:56]Read from MH i2c: 01 07 00 39 03 00 00 00 00 00 D7 0C 26 [02:00:56]RasterBufferAndPrint [02:00:56]line [02:00:56]line [02:00:56]line [02:00:56]line [02:00:56]line [02:00:56]written 0, free lines is 3294 [02:00:56]process_action close_receipt done [02:00:56]requested_data is exist [02:00:56]produce_requested_data [02:00:56]requested_item fm.sn is exist - process it [02:00:56]wFMCommunicate request_size=4 [02:00:56]MH_SAM_APDU [02:00:56]CAPDU: 80 11 00 00 [02:00:56]Write to MH i2c: E2 08 00 40 03 80 11 00 00 00 00 00 00 BD [02:00:56]Write i2c OK [02:00:56]MH_I2C_Read... [02:00:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:00:56]Read from MH i2c: E2 [02:00:56]MH_I2C_Read... [02:00:56]Read from MH i2c: E2 17 00 [02:00:56]MH_I2C_Read... [02:00:56]Read from MH i2c: E2 17 00 40 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 12 [02:00:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [02:00:56]wFMCommunicate OK [02:00:56]requested_item fd.num is exist - process it [02:00:56]SAM_PROTO_GetFieldsCounters [02:00:56]wFMCommunicate request_size=4 [02:00:56]MH_SAM_APDU [02:00:56]CAPDU: 80 13 00 00 [02:00:56]Write to MH i2c: E2 08 00 41 03 80 13 00 00 00 00 00 00 C0 [02:00:56]Write i2c OK [02:00:56]MH_I2C_Read... [02:00:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:00:56]Read from MH i2c: E2 [02:00:56]MH_I2C_Read... [02:00:56]Read from MH i2c: E2 62 00 [02:00:56]MH_I2C_Read... [02:00:56]Read from MH i2c: E2 62 00 41 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 76 64 02 00 0E 04 04 00 1A 02 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 F0 [02:00:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 76 64 02 00 0E 04 04 00 1A 02 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:00:56]wFMCommunicate OK [02:00:56]SAM_PROTO_GetFieldsCounters done [02:00:56]requested_item shift.num is exist - process it [02:00:56]requested_item shift.opened is exist - process it [02:00:56]req_shift_opened [02:00:56]FM_GetShiftState [02:00:56]SAM_PROTO_GetShiftState [02:00:56]wFMCommunicate request_size=4 [02:00:56]MH_SAM_APDU [02:00:56]CAPDU: 80 13 01 00 [02:00:56]Write to MH i2c: E2 08 00 42 03 80 13 01 00 00 00 00 00 C2 [02:00:56]Write i2c OK [02:00:56]MH_I2C_Read... [02:00:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:00:56]Read from MH i2c: E2 [02:00:56]MH_I2C_Read... [02:00:56]Read from MH i2c: E2 0E 00 [02:00:56]MH_I2C_Read... [02:00:56]Read from MH i2c: E2 0E 00 42 03 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 B4 [02:00:56]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [02:00:56]wFMCommunicate OK [02:00:56]SAM_PROTO_GetShiftState done [02:00:56]FM_GetShiftState done [02:00:56]req_shift_opened done [02:00:56]requested_item shift.open_date is exist - process it [02:00:56]req_shift_open_date [02:00:56]req_shift_open_date done [02:00:56]produce_requested_data done [02:00:56]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156790,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [02:00:56]process_action_free close_receipt [02:00:56]json_value_free [02:00:56]json_value_free done [02:00:56]process_json_proto returns [02:00:56]Send response to host [02:00:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156790,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [02:00:56]free response buf [02:00:56]execute_script done [02:00:56]execute_script returns [02:00:56]free content buf [02:00:56]Sock 9.Close socket [02:00:56]Sock 9.Thread stoped [02:00:56]OFD Sender: No OFD packet to send [02:01:01]OFD Sender: No OFD packet to send [02:01:06]OFD Sender: No OFD packet to send [02:01:11]OFD Sender: No OFD packet to send [02:01:16]OFD Sender: No OFD packet to send [02:01:22]OFD Sender: No OFD packet to send [02:01:27]OFD Sender: No OFD packet to send [02:01:32]OFD Sender: No OFD packet to send [02:01:37]OFD Sender: No OFD packet to send [02:01:42]OFD Sender: No OFD packet to send [02:01:47]OFD Sender: No OFD packet to send [02:01:52]OFD Sender: No OFD packet to send [02:01:57]OFD Sender: No OFD packet to send [02:02:02]OFD Sender: No OFD packet to send [02:02:07]OFD Sender: No OFD packet to send [02:02:12]OFD Sender: No OFD packet to send [02:02:17]OFD Sender: No OFD packet to send [02:02:22]OFD Sender: No OFD packet to send [02:02:27]OFD Sender: No OFD packet to send [02:02:32]OFD Sender: No OFD packet to send [02:02:37]OFD Sender: No OFD packet to send [02:02:42]OFD Sender: No OFD packet to send [02:02:47]OFD Sender: No OFD packet to send [02:02:52]OFD Sender: No OFD packet to send [02:02:57]OFD Sender: No OFD packet to send [02:03:02]OFD Sender: No OFD packet to send [02:03:07]OFD Sender: No OFD packet to send [02:03:12]OFD Sender: No OFD packet to send [02:03:17]OFD Sender: No OFD packet to send [02:03:22]OFD Sender: No OFD packet to send [02:03:27]OFD Sender: No OFD packet to send [02:03:32]OFD Sender: No OFD packet to send [02:03:37]OFD Sender: No OFD packet to send [02:03:42]OFD Sender: No OFD packet to send [02:03:47]OFD Sender: No OFD packet to send [02:03:52]OFD Sender: No OFD packet to send [02:03:57]OFD Sender: No OFD packet to send [02:04:02]OFD Sender: No OFD packet to send [02:04:07]OFD Sender: No OFD packet to send [02:04:12]OFD Sender: No OFD packet to send [02:04:17]OFD Sender: No OFD packet to send [02:04:22]OFD Sender: No OFD packet to send [02:04:27]OFD Sender: No OFD packet to send [02:04:32]OFD Sender: No OFD packet to send [02:04:37]OFD Sender: No OFD packet to send [02:04:42]OFD Sender: No OFD packet to send [02:04:47]OFD Sender: No OFD packet to send [02:04:52]OFD Sender: No OFD packet to send [02:04:57]OFD Sender: No OFD packet to send [02:05:02]OFD Sender: No OFD packet to send [02:05:07]OFD Sender: No OFD packet to send [02:05:12]OFD Sender: No OFD packet to send [02:08:02]ConnectInit Can't connect to host [02:08:02]OFD Sender: No OFD packet to send [02:08:07]OFD Sender: No OFD packet to send [02:08:12]OFD Sender: No OFD packet to send [02:08:17]OFD Sender: No OFD packet to send [02:08:22]OFD Sender: No OFD packet to send [02:08:27]OFD Sender: No OFD packet to send [02:08:32]OFD Sender: No OFD packet to send [02:08:37]OFD Sender: No OFD packet to send [02:08:42]OFD Sender: No OFD packet to send [02:08:47]OFD Sender: No OFD packet to send [02:08:47]accept exits with 7 [02:08:47]New connection [02:08:47]New thread 3066748260 created [02:08:47]Thread 3066604900 joined [02:08:47]Waiting for new connection... [02:08:47] Sock 7.Parse request [02:08:47]Sock 7.Check first char [02:08:47]Sock 7.First char is OK [02:08:47]request: POST /json_proto HTTP/1.0 [02:08:47]Method: POST [02:08:47]URL: /json_proto [02:08:47]Method is POST - this is cgi request [02:08:47]url: /json_proto [02:08:47]query_string will be loaded in cgi processing [02:08:47]execute_cgi json_proto POST (null) [02:08:47]execute_cgi path=json_proto method=POST [02:08:47]POST find Content-Length [02:08:47]Host: 172.17.63.3:8080 [02:08:47]Content-Length: 681 [02:08:47]Content-Type: application/json [02:08:47] [02:08:47]POST finish read [02:08:47]Found Content-Length = 681 [02:08:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99603", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:08:47]execute_script... [02:08:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)99603", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:08:47]POST & json_proto [02:08:47]process_json_proto [02:08:47]json parsed OK: [02:08:47]protocol is kg_v1.0 [02:08:47]action value=close_receipt [02:08:47]process_action close_receipt [02:08:47]cmd_close_receipt [02:08:47]MH_GetDate [02:08:47]Write to MH i2c: F0 00 00 50 03 42 [02:08:47]Write i2c OK [02:08:47]MH_I2C_Read... [02:08:47]Read from MH i2c: F0 [02:08:47]MH_I2C_Read... [02:08:47]Read from MH i2c: F0 09 00 [02:08:47]MH_I2C_Read... [02:08:47]Read from MH i2c: F0 09 00 50 03 00 2F F2 1E 67 50 D1 6C 64 E2 [02:08:47]GetLastDocTimeStamp 1730080854 [02:08:47]current date 1730081327 [02:08:47]FM_GetShiftState [02:08:47]SAM_PROTO_GetShiftState [02:08:47]wFMCommunicate request_size=4 [02:08:47]MH_SAM_APDU [02:08:47]CAPDU: 80 13 01 00 [02:08:47]Write to MH i2c: E2 08 00 51 03 80 13 01 00 00 00 00 00 D1 [02:08:47]Write i2c OK [02:08:47]MH_I2C_Read... [02:08:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:08:47]Read from MH i2c: E2 [02:08:47]MH_I2C_Read... [02:08:47]Read from MH i2c: E2 0E 00 [02:08:47]MH_I2C_Read... [02:08:47]Read from MH i2c: E2 0E 00 51 03 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 C3 [02:08:47]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [02:08:47]wFMCommunicate OK [02:08:47]SAM_PROTO_GetShiftState done [02:08:47]FM_GetShiftState done [02:08:47]opened in 1730075526 [02:08:47]opened+sec_in_day 1730161926 [02:08:47]quantity*price = 100015 [02:08:47]sum+1 = 100017 [02:08:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 143 "Партнер Нефть" Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 СНО: Общий режим Чек 7 28.10.2024 02:08 Смена: 538 ФФД: 1.0 ЗНМ: 0300000096 РНМ: 0000000000091693 Версия ККМ: 001 ФМ: 0000000000871792 ФД: 156791 ФПД: 100935491298477 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T020848&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156791&fm=100935491298477&tin=02508201610067®Number=0000000000091693&sum=100000 [02:08:48]StoreToDocumentArchive [02:08:48]shift 538 fd 156791 [02:08:48]save to /storage/0538/doc_00156791 [02:08:48]save last doc name /storage/0538/doc_00156791 to /storage/kkm_last_doc_name [02:08:48]save OK [02:08:48]Clear old archive folders... [02:08:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:08:48]tlvbuf is 01A61960 [02:08:48]SAM_PROTO_ClearQueue [02:08:48]wFMCommunicate request_size=4 [02:08:48]MH_SAM_APDU [02:08:48]CAPDU: 80 09 00 00 [02:08:48]Write to MH i2c: E2 08 00 5E 03 80 09 00 00 00 00 00 00 D3 [02:08:48]Write i2c OK [02:08:48]MH_I2C_Read... [02:08:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:08:48]Read from MH i2c: E2 [02:08:48]MH_I2C_Read... [02:08:48]Read from MH i2c: E2 03 00 [02:08:48]MH_I2C_Read... [02:08:48]Read from MH i2c: E2 03 00 5E 03 00 90 00 D5 [02:08:48]RAPDU: 90 00 [02:08:48]wFMCommunicate OK [02:08:48]SAM_PROTO_ClearQueue done [02:08:48]KKMCreateOFDPacket [02:08:48]OFDProtocolAddRootSTLVToBuf [02:08:48]FM_MakeSignedData [02:08:48]FM_MakeSignedData [02:08:48]SAM_PROTO_SignData [02:08:48]wFMCommunicate request_size=4 [02:08:48]MH_SAM_APDU [02:08:48]CAPDU: 80 0D 01 02 [02:08:48]Write to MH i2c: E2 08 00 5F 03 80 0D 01 02 00 00 00 00 DB [02:08:48]Write i2c OK [02:08:48]MH_I2C_Read... [02:08:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:08:48]Read from MH i2c: E2 [02:08:48]MH_I2C_Read... [02:08:48]Read from MH i2c: E2 03 00 [02:08:48]MH_I2C_Read... [02:08:48]Read from MH i2c: E2 03 00 5F 03 00 90 00 D6 [02:08:48]RAPDU: 90 00 [02:08:48]wFMCommunicate OK [02:08:48]wFMCommunicate request_size=255 [02:08:48]MH_SAM_APDU [02:08: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 30 F2 1E 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 77 64 02 00 35 04 06 00 5B [02:08:48]Write to MH i2c: E2 02 01 60 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 30 F2 1E 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 77 64 02 00 35 04 06 00 5B 00 00 6B [02:08:48]Write i2c OK [02:08:48]MH_I2C_Read... [02:08:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:08:49]Read from MH i2c: E2 [02:08:49]MH_I2C_Read... [02:08:49]Read from MH i2c: E2 03 00 [02:08:49]MH_I2C_Read... [02:08:49]Read from MH i2c: E2 03 00 60 03 00 90 00 D7 [02:08:49]RAPDU: 90 00 [02:08:49]wFMCommunicate OK [02:08:49]wFMCommunicate request_size=10 [02:08:49]MH_SAM_APDU [02:08:49]CAPDU: 80 0D 02 02 05 CC E0 1A A4 AD [02:08:49]Write to MH i2c: E2 0D 00 61 03 80 0D 02 02 05 00 CC E0 1A A4 AD 00 00 FF [02:08:49]Write i2c OK [02:08:49]MH_I2C_Read... [02:08:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:08:49]Read from MH i2c: E2 [02:08:49]MH_I2C_Read... [02:08:49]Read from MH i2c: E2 03 00 [02:08:49]MH_I2C_Read... [02:08:49]Read from MH i2c: E2 03 00 61 03 00 90 00 D8 [02:08:49]RAPDU: 90 00 [02:08:49]wFMCommunicate OK [02:08:49]wFMCommunicate request_size=4 [02:08:49]MH_SAM_APDU [02:08:49]CAPDU: 80 0D 03 02 [02:08:49]Write to MH i2c: E2 08 00 62 03 80 0D 03 02 00 00 00 00 E0 [02:08:49]Write i2c OK [02:08:49]MH_I2C_Read... [02:08:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:08:49]Read from MH i2c: E2 [02:08:49]MH_I2C_Read... [02:08:49]Read from MH i2c: E2 0B 00 [02:08:49]MH_I2C_Read... [02:08:49]Read from MH i2c: E2 0B 00 62 03 00 D3 99 AE 5D B4 87 36 BF 90 00 88 [02:08:49]RAPDU: D3 99 AE 5D B4 87 36 BF 90 00 [02:08:49]wFMCommunicate OK [02:08:49]SAM_PROTO_SignData done [02:08:49]FM_MakeSignedData done [02:08:49]CreateOFDProtocolMessage [02:08:49]wFMCommunicate request_size=4 [02:08:49]MH_SAM_APDU [02:08:49]CAPDU: 80 11 00 00 [02:08:49]Write to MH i2c: E2 08 00 63 03 80 11 00 00 00 00 00 00 E0 [02:08:49]Write i2c OK [02:08:49]MH_I2C_Read... [02:08:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:08:49]Read from MH i2c: E2 [02:08:49]MH_I2C_Read... [02:08:49]Read from MH i2c: E2 17 00 [02:08:49]MH_I2C_Read... [02:08:49]Read from MH i2c: E2 17 00 63 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 35 [02:08:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [02:08:49]wFMCommunicate OK [02:08:49]CreateOFDProtocolMessage done [02:08:49]OFDSenderStorePacket 156791 [02:08:49]StoreOFDPacket docnum=156791 [02:08:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 EC 78 07 01 ED 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 30 F2 1E 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 77 64 02 00 35 04 06 00 5B CC E0 1A A4 AD D3 99 AE 5D B4 87 36 BF [02:08:49]CheckFolder [02:08:49]dirname=/storage/ofd_packets [02:08:49]CheckFolder done [02:08:49]ProducePacketName [02:08:49]name=ofd_packets/00156791 [02:08:49]NVStorageSaveData ofd_packets/00156791 [02:08:49]File name is /storage/ofd_packets/00156791 [02:08:49]Write 301 bytes [02:08:49]NVStorageSaveData done [02:08:49]OFDSenderStorePacket done [02:08:49]KKMCreateOFDPacket done [02:08:49]NVStorageSaveData kkm_last_timestamp [02:08:49]File name is /storage/kkm_last_timestamp [02:08:49]Write 4 bytes [02:08:49]NVStorageSaveData done [02:08:49]ExternCall_PrintAddStr [02:08:49]wPrintStart [02:08:49]Write to MH i2c: 01 00 00 64 03 67 [02:08:49]Write i2c OK [02:08:49]MH_I2C_Read... [02:08:49]Read from MH i2c: 01 [02:08:49]MH_I2C_Read... [02:08:49]Read from MH i2c: 01 07 00 [02:08:49]MH_I2C_Read... [02:08:49]Read from MH i2c: 01 07 00 64 03 00 00 00 00 00 FF 0F 7C [02:08:49]RasterBufferAndPrint [02:08:49]line Счет N : (1)99603 [02:08:49]line ИНН: 02508201610067 [02:08:49]line Контрольно-Кассовый Чек [02:08:49]line ПРОДАЖА [02:08:49]line ТРК (МРК, ГНК) : 31 [02:08:49]line Товар: 2710124130 [02:08:49]line Аи-92-К-5 [02:08:49]line 14.950 * 66.90 [02:08:49]line = 1000.16 [02:08:49]line НДС 12% НСП 1% [02:08:49]line > о реализуемом товаре [02:08:49]line ОКРУГЛЕНИЕ: -0.16 [02:08:49]line ИТОГО: 1000.00 [02:08:49]line Внесено: 1000.00 [02:08:49]line СДАЧА: 0.00 [02:08:49]line НСП 1% : 8.85 [02:08:49]line НДС 12% : 106.21 [02:08:49]line Наличными: 1000.00 [02:08:49]line Безнал.: 0.00 [02:08:49]line Место: АЗС № 143 "Партнер Нефть" [02:08:49]line Адрес: 720001, г. Таш-Кумыр, ул. Токтогула б/н, 41.353710, 72.232589 [02:08:49]line СНО: Общий режим [02:08:49]line Чек 7 28.10.2024 02:08 [02:08:49]line Смена: 538 ФФД: 1.0 [02:08:49]line ЗНМ: 0300000096 [02:08:49]line РНМ: 0000000000091693 [02:08:49]line Версия ККМ: 001 [02:08:49]line ФМ: 0000000000871792 [02:08:49]line ФД: 156791 [02:08:49]line ФПД: 100935491298477 [02:08:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T020848&type=1&operation_type=1&fn_number=0000000000871792&fd_number=156791&fm=100935491298477&tin=02508201610067®Number=0000000000091693&sum=100000 [02:08:49]OFD Sender: Processing packet 156791 [packets to send 31, broken 30] [02:08:49]ProducePacketName [02:08:49]name=ofd_packets/00156791 [02:08:49]OFD Sender: To server: pG, [02:08:49]CommunicateWithHost lk.salyk.kg:30040 [02:08:49]ConnectInit lk.salyk.kg [02:08:49]written 0, free lines is 4095 [02:08:49]Connected sock=10 [02:08:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0F 01 00 00 EC 78 07 01 ED 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 30 F2 1E 67 0E 04 04 00 1A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 77 64 02 00 35 04 06 00 5B CC E0 1A A4 AD D3 99 AE 5D B4 87 36 BF [02:08:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 4F 00 00 00 88 9E 47 00 CB EA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 10 04 04 00 77 64 02 00 F4 03 04 00 9D 97 1E 67 B6 04 01 00 00 7C D5 E5 01 8D EB AC 6A [02:08:49]CommunicateWithHost err = 0 [02:08:49]CheckOFDResponse [02:08:49]1017 (14) - 77093643461234 [02:08:49]1041 (16) - 0000000000871792 [02:08:49]1040 (4) - 156791 [02:08:49]1012 (4) - 27.10.2024 19:42 [02:08:49]1206 (1) - 0 [02:08:49]OFD Sender: Remove packet 156791 [02:08:49]ProducePacketName [02:08:49]name=ofd_packets/00156791 [02:08:49]NVStorageDeleteData [02:08:50]Write to MH i2c: 01 00 00 8F 03 92 [02:08:50]Write i2c OK [02:08:50]MH_I2C_Read... [02:08:50]Read from MH i2c: 01 [02:08:50]MH_I2C_Read... [02:08:50]Read from MH i2c: 01 07 00 [02:08:50]MH_I2C_Read... [02:08:50]Read from MH i2c: 01 07 00 8F 03 00 00 00 00 00 F4 0C 99 [02:08:50]RasterBufferAndPrint [02:08:50]line [02:08:50]line [02:08:50]line [02:08:50]line [02:08:50]line [02:08:50]written 0, free lines is 3323 [02:08:50]process_action close_receipt done [02:08:50]requested_data is exist [02:08:50]produce_requested_data [02:08:50]requested_item fm.sn is exist - process it [02:08:50]wFMCommunicate request_size=4 [02:08:50]MH_SAM_APDU [02:08:50]CAPDU: 80 11 00 00 [02:08:50]Write to MH i2c: E2 08 00 96 03 80 11 00 00 00 00 00 00 13 [02:08:50]Write i2c OK [02:08:50]MH_I2C_Read... [02:08:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:08:50]Read from MH i2c: E2 [02:08:50]MH_I2C_Read... [02:08:50]Read from MH i2c: E2 17 00 [02:08:50]MH_I2C_Read... [02:08:50]Read from MH i2c: E2 17 00 96 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 68 [02:08:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 90 00 [02:08:50]wFMCommunicate OK [02:08:50]requested_item fd.num is exist - process it [02:08:50]SAM_PROTO_GetFieldsCounters [02:08:50]wFMCommunicate request_size=4 [02:08:50]MH_SAM_APDU [02:08:50]CAPDU: 80 13 00 00 [02:08:50]Write to MH i2c: E2 08 00 97 03 80 13 00 00 00 00 00 00 16 [02:08:50]Write i2c OK [02:08:50]MH_I2C_Read... [02:08:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:08:50]Read from MH i2c: E2 [02:08:50]MH_I2C_Read... [02:08:50]Read from MH i2c: E2 62 00 [02:08:50]MH_I2C_Read... [02:08:50]Read from MH i2c: E2 62 00 97 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 77 64 02 00 0E 04 04 00 1A 02 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 4A [02:08:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 37 39 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 39 33 10 04 04 00 77 64 02 00 0E 04 04 00 1A 02 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:08:50]wFMCommunicate OK [02:08:50]SAM_PROTO_GetFieldsCounters done [02:08:50]requested_item shift.num is exist - process it [02:08:50]requested_item shift.opened is exist - process it [02:08:50]req_shift_opened [02:08:50]FM_GetShiftState [02:08:50]SAM_PROTO_GetShiftState [02:08:50]wFMCommunicate request_size=4 [02:08:50]MH_SAM_APDU [02:08:50]CAPDU: 80 13 01 00 [02:08:50]Write to MH i2c: E2 08 00 98 03 80 13 01 00 00 00 00 00 18 [02:08:50]Write i2c OK [02:08:50]MH_I2C_Read... [02:08:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:08:50]Read from MH i2c: E2 [02:08:50]MH_I2C_Read... [02:08:50]Read from MH i2c: E2 0E 00 [02:08:50]MH_I2C_Read... [02:08:50]Read from MH i2c: E2 0E 00 98 03 00 09 00 01 86 DB 1E 67 00 00 00 00 90 00 0A [02:08:50]RAPDU: 09 00 01 86 DB 1E 67 00 00 00 00 90 00 [02:08:50]wFMCommunicate OK [02:08:50]SAM_PROTO_GetShiftState done [02:08:50]FM_GetShiftState done [02:08:50]req_shift_opened done [02:08:50]requested_item shift.open_date is exist - process it [02:08:50]req_shift_open_date [02:08:50]req_shift_open_date done [02:08:50]produce_requested_data done [02:08:50]produce_requested_data return {"fm.sn":"0000000000871792","fd.num":156791,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526} [02:08:50]process_action_free close_receipt [02:08:50]json_value_free [02:08:50]json_value_free done [02:08:50]process_json_proto returns [02:08:50]Send response to host [02:08:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871792","fd.num":156791,"shift.num":538,"shift.opened":1,"shift.open_date":1730075526}}} [02:08:50]free response buf [02:08:50]execute_script done [02:08:50]execute_script returns [02:08:50]free content buf [02:08:50]Sock 7.Close socket [02:08:50]Sock 7.Thread stoped [02:08:50]OFD Sender: No OFD packet to send [02:08:55]OFD Sender: No OFD packet to send [02:09:00]OFD Sender: No OFD packet to send [02:09:05]OFD Sender: No OFD packet to send [02:09:10]OFD Sender: No OFD packet to send [02:09:15]OFD Sender: No OFD packet to send [02:09:20]OFD Sender: No OFD packet to send [02:09:25]OFD Sender: No OFD packet to send [02:09:30]OFD Sender: No OFD packet to send [02:09:35]OFD Sender: No OFD packet to send [02:09:40]OFD Sender: No OFD packet to send [02:09:45]OFD Sender: No OFD packet to send [02:09:50]OFD Sender: No OFD packet to send [02:09:55]OFD Sender: No OFD packet to send [02:10:00]OFD Sender: No OFD packet to send [02:10:05]OFD Sender: No OFD packet to send [02:10:10]OFD Sender: No OFD packet to send [02:10:15]OFD Sender: No OFD packet to send [02:10:20]OFD Sender: No OFD packet to send [02:10:25]OFD Sender: No OFD packet to send [02:10:30]OFD Sender: No OFD packet to send [02:10:35]OFD Sender: No OFD packet to send [02:10:40]OFD Sender: No OFD packet to send [02:10:45]OFD Sender: No OFD packet to send [02:10:50]OFD Sender: No OFD packet to send [02:10:55]OFD Sender: No OFD packet to send [02:11:00]OFD Sender: No OFD packet to send [02:11:05]OFD Sender: No OFD packet to send [02:11:10]OFD Sender: No OFD packet to send [02:11:15]OFD Sender: No OFD packet to send [02:11:20]OFD Sender: No OFD packet to send [02:11:25]OFD Sender: No OFD packet to send [02:11:30]OFD Sender: No OFD packet to send [02:11:35]OFD Sender: No OFD packet to send [02:11:40]OFD Sender: No OFD packet to send [02:11:45]OFD Sender: No OFD packet to send [02:11:50]OFD Sender: No OFD packet to send [02:11:55]OFD Sender: No OFD packet to send [02:12:00]OFD Sender: No OFD packet to send [02:12:05]OFD Sender: No OFD packet to send [02:12:10]OFD Sender: No OFD packet to send [02:12:15]OFD Sender: No OFD packet to send [02:12:20]OFD Sender: No OFD packet to send [02:12:25]OFD Sender: No OFD packet to send [02:12:30]OFD Sender: No OFD packet to send [02:12:35]OFD Sender: No OFD packet to send [02:12:40]OFD Sender: No OFD packet to send [02:12:45]OFD Sender: No OFD packet to send [02:12:50]OFD Sender: No OFD packet to send [02:12:55]OFD Sender: No OFD packet to send [02:13:00]OFD Sender: No OFD packet to send [02:13:05]OFD Sender: No OFD packet to send [02:13:10]OFD Sender: No OFD packet to send [02:13:15]OFD Sender: No OFD packet to send [02:13:20]OFD Sender: No OFD packet to send [02:13:25]OFD Sender: No OFD packet to send [02:13:30]OFD Sender: No OFD packet to send [02:13:35]OFD Sender: No OFD packet to send [02:13:40]OFD Sender: No OFD packet to send [02:13:45]OFD Sender: No OFD packet to send [02:13:50]OFD Sender: No OFD packet to send [02:13:55]OFD Sender: No OFD packet to send [02:14:00]OFD Sender: No OFD packet to send [02:14:05]OFD Sender: No OFD packet to send [02:14:10]OFD Sender: No OFD packet to send [02:14:15]OFD Sender: No OFD packet to send [02:14:20]OFD Sender: No OFD packet to send [02:14:25]OFD Sender: No OFD packet to send [02:14:30]OFD Sender: No OFD packet to send [02:14:35]OFD Sender: No OFD packet to send [02:14:40]OFD Sender: No OFD packet to send [02:14:45]OFD Sender: No OFD packet to send [02:14:50]OFD Sender: No OFD packet to send [02:14:55]OFD Sender: No OFD packet to send [02:15:00]OFD Sender: No OFD packet to send [02:15:05]OFD Sender: No OFD packet to send [02:15:10]OFD Sender: No OFD packet to send [02:15:15]OFD Sender: No OFD packet to send [02:15:20]OFD Sender: No OFD packet to send [02:15:25]OFD Sender: No OFD packet to send [02:15:30]OFD Sender: No OFD packet to send [02:15:35]OFD Sender: No OFD packet to send [02:15:40]OFD Sender: No OFD packet to send [02:15:45]OFD Sender: No OFD packet to send [02:15:50]OFD Sender: No OFD packet to send [02:15:55]OFD Sender: No OFD packet to send [02:16:00]OFD Sender: No OFD packet to send [02:16:05]OFD Sender: No OFD packet to send [02:16:10]OFD Sender: No OFD packet to send [02:16:15]OFD Sender: No OFD packet to send [02:16:20]OFD Sender: No OFD packet to send [02:16:25]OFD Sender: No OFD packet to send [02:16:30]OFD Sender: No OFD packet to send [02:16:35]OFD Sender: No OFD packet to send [02:16:40]OFD Sender: No OFD packet to send [02:16:45]OFD Sender: No OFD packet to send [02:16:50]OFD Sender: No OFD packet to send [02:16:55]OFD Sender: No OFD packet to send [02:17:00]OFD Sender: No OFD packet to send [02:17:05]OFD Sender: No OFD packet to send [02:17:10]OFD Sender: No OFD packet to send [02:17:15]OFD Sender: No OFD packet to send [02:17:20]OFD Sender: No OFD packet to send [02:17:25]OFD Sender: No OFD packet to send [02:17:30]OFD Sender: No OFD packet to send [02:17:35]OFD Sender: No OFD packet to send [02:17:40]OFD Sender: No OFD packet to send [02:17:45]OFD Sender: No OFD packet to send [02:17:50]OFD Sender: No OFD packet to send [02:17:55]OFD Sender: No OFD packet to send [02:18:00]OFD Sender: No OFD packet to send [02:18:05]OFD Sender: No OFD packet to send [02:18:10]OFD Sender: No OFD packet to send [02:18:15]OFD Sender: No OFD packet to send [02:18:20]OFD Sender: No OFD packet to send [02:18:25]OFD Sender: No OFD packet to send [02:18:30]OFD Sender: No OFD packet to send [02:18:35]OFD Sender: No OFD packet to send [02:18:40]OFD Sender: No OFD packet to send [02:18:45]OFD Sender: No OFD packet to send [02:18:50]OFD Sender: No OFD packet to send [02:18:55]OFD Sender: No OFD packet to send [02:19:00]OFD Sender: No OFD packet to send [02:19:05]OFD Sender: No OFD packet to send [02:19:10]OFD Sender: No OFD packet to send [02:19:15]OFD Sender: No OFD packet to send [02:19:20]OFD Sender: No OFD packet to send [02:19:25]OFD Sender: No OFD packet to send [02:19:30]OFD Sender: No OFD packet to send [02:19:35]OFD Sender: No OFD packet to send [02:19:40]OFD Sender: No OFD packet to send [02:19:45]OFD Sender: No OFD packet to send [02:19:50]OFD Sender: No OFD packet to send [02:19:55]OFD Sender: No OFD packet to send [02:20:00]OFD Sender: No OFD packet to send [02:20:05]OFD Sender: No OFD packet to send [02:20:10]OFD Sender: No OFD packet to send [02:20:15]OFD Sender: No OFD packet to send [02:20:20]OFD Sender: No OFD packet to send [02:20:25]OFD Sender: No OFD packet to send [02:20:30]OFD Sender: No OFD packet to send [02:20:35]OFD Sender: No OFD packet to send [02:20:40]OFD Sender: No OFD packet to send [02:20:45]OFD Sender: No OFD packet to send [02:20:50]OFD Sender: No OFD packet to send [02:20:55]OFD Sender: No OFD packet to send [02:21:00]OFD Sender: No OFD packet to send [02:21:06]OFD Sender: No OFD packet to send [02:21:11]OFD Sender: No OFD packet to send [02:21:16]OFD Sender: No OFD packet to send [02:21:21]OFD Sender: No OFD packet to send [02:21:26]OFD Sender: No OFD packet to send [02:21:31]OFD Sender: No OFD packet to send [02:21:36]OFD Sender: No OFD packet to send [02:21:41]OFD Sender: No OFD packet to send [02:21:46]OFD Sender: No OFD packet to send [02:21:51]OFD Sender: No OFD packet to send [02:21:56]OFD Sender: No OFD packet to send [02:22:01]OFD Sender: No OFD packet to send [02:22:06]OFD Sender: No OFD packet to send [02:22:11]OFD Sender: No OFD packet to send [02:22:16]OFD Sender: No OFD packet to send [02:22:21]OFD Sender: No OFD packet to send [02:22:26]OFD Sender: No OFD packet to send [02:22:31]OFD Sender: No OFD packet to send [02:22:36]OFD Sender: No OFD packet to send [02:22:41]OFD Sender: No OFD packet to send [02:22:46]OFD Sender: No OFD packet to send [02:22:51]OFD Sender: No OFD packet to send [02:22:56]OFD Sender: No OFD packet to send [02:23:01]OFD Sender: No OFD packet to send [02:23:06]OFD Sender: No OFD packet to send [02:23:11]OFD Sender: No OFD packet to send [02:23:16]OFD Sender: No OFD packet to send [02:23:21]OFD Sender: No OFD packet to send [02:23:26]OFD Sender: No OFD packet to send [02:23:31]OFD Sender: No OFD packet to send [02:23:36]OFD Sender: No OFD packet to send [02:23:41]OFD Sender: No OFD packet to send [02:23:46]OFD Sender: No OFD packet to send [02:23:51]OFD Sender: No OFD packet to send [02:23:56]OFD Sender: No OFD packet to send [02:24:01]OFD Sender: No OFD packet to send [02:24:06]OFD Sender: No OFD packet to send [02:24:11]OFD Sender: No OFD packet to send [02:24:16]OFD Sender: No OFD packet to send [02:24:21]OFD Sender: No OFD packet to send [02:24:26]OFD Sender: No OFD packet to send [02:24:31]OFD Sender: No OFD packet to send [02:24:36]OFD Sender: No OFD packet to send [02:24:41]OFD Sender: No OFD packet to send [02:24:46]OFD Sender: No OFD packet to send [02:24:51]OFD Sender: No OFD packet to send [02:24:56]OFD Sender: No OFD packet to send [02:25:01]OFD Sender: No OFD packet to send [02:25:06]OFD Sender: No OFD packet to send [02:25:11]OFD Sender: No OFD packet to send [02:25:16]OFD Sender: No OFD packet to send [02:25:21]OFD Sender: No OFD packet to send [02:25:26]OFD Sender: No OFD packet to send [02:25:31]OFD Sender: No OFD packet to send [02:25:36]OFD Sender: No OFD packet to send [02:25:41]OFD Sender: No OFD packet to send [02:25:46]OFD Sender: No OFD packet to send [02:25:51]OFD Sender: No OFD packet to send [02:25:56]OFD Sender: No OFD packet to send [02:26:01]OFD Sender: No OFD packet to send [02:26:06]OFD Sender: No OFD packet to send [02:26:11]OFD Sender: No OFD packet to send [02:26:16]OFD Sender: No OFD packet to send [02:26:21]OFD Sender: No OFD packet to send [02:26:26]OFD Sender: No OFD packet to send [02:26:31]OFD Sender: No OFD packet to send [02:26:36]OFD Sender: No OFD packet to send [02:26:41]OFD Sender: No OFD packet to send [02:26:46]OFD Sender: No OFD packet to send [02:26:51]OFD Sender: No OFD packet to send [02:26:56]OFD Sender: No OFD packet to send [02:27:01]OFD Sender: No OFD packet to send [02:27:06]OFD Sender: No OFD packet to send [02:27:11]OFD Sender: No OFD packet to send [02:27:16]OFD Sender: No OFD packet to send [02:27:21]OFD Sender: No OFD packet to send [02:27:26]OFD Sender: No OFD packet to send [02:27:31]OFD Sender: No OFD packet to send [02:27:36]OFD Sender: No OFD packet to send [02:27:41]OFD Sender: No OFD packet to send [02:27:46]OFD Sender: No OFD packet to send [02:27:51]OFD Sender: No OFD packet to send [02:27:56]OFD Sender: No OFD packet to send [02:28:01]OFD Sender: No OFD packet to send [02:28:06]OFD Sender: No OFD packet to send [02:28:11]OFD Sender: No OFD packet to send [02:28:16]OFD Sender: No OFD packet to send [02:28:21]OFD Sender: No OFD packet to send [02:28:26]OFD Sender: No OFD packet to send [02:28:31]OFD Sender: No OFD packet to send [02:28:36]OFD Sender: No OFD packet to send [02:28:41]OFD Sender: No OFD packet to send [02:28:46]OFD Sender: No OFD packet to send [02:28:51]OFD Sender: No OFD packet to send [02:28:56]OFD Sender: No OFD packet to send [02:29:01]OFD Sender: No OFD packet to send [02:29:06]OFD Sender: No OFD packet to send [02:29:11]OFD Sender: No OFD packet to send [02:29:16]OFD Sender: No OFD packet to send [02:29:21]OFD Sender: No OFD packet to send [02:29:26]OFD Sender: No OFD packet to send [02:29:31]OFD Sender: No OFD packet to send [02:29:36]OFD Sender: No OFD packet to send [02:29:41]OFD Sender: No OFD packet to send [02:29:46]OFD Sender: No OFD packet to send [02:29:51]OFD Sender: No OFD packet to send [02:29:56]OFD Sender: No OFD packet to send [02:30:01]OFD Sender: No OFD packet to send [02:30:06]OFD Sender: No OFD packet to send [02:30:11]OFD Sender: No OFD packet to send [02:30:16]OFD Sender: No OFD packet to send [02:30:21]OFD Sender: No OFD packet to send [02:30:26]OFD Sender: No OFD packet to send [02:30:31]OFD Sender: No OFD packet to send [02:30:36]OFD Sender: No OFD packet to send [02:30:41]OFD Sender: No OFD packet to send [02:30:46]OFD Sender: No OFD packet to send [02:30:51]OFD Sender: No OFD packet to send [02:30:56]OFD Sender: No OFD packet to send [02:31:01]OFD Sender: No OFD packet to send [02:31:06]OFD Sender: No OFD packet to send [02:31:11]OFD Sender: No OFD packet to send [02:31:16]OFD Sender: No OFD packet to send [02:31:21]OFD Sender: No OFD packet to send [02:31:26]OFD Sender: No OFD packet to send [02:31:31]OFD Sender: No OFD packet to send [02:31:36]OFD Sender: No OFD packet to send [02:31:41]OFD Sender: No OFD packet to send [02:31:46]OFD Sender: No OFD packet to send [02:31:51]OFD Sender: No OFD packet to send [02:31:56]OFD Sender: No OFD packet to send [02:32:01]OFD Sender: No OFD packet to send [02:32:06]OFD Sender: No OFD packet to send [02:32:11]OFD Sender: No OFD packet to send [02:32:16]OFD Sender: No OFD packet to send [02:32:21]OFD Sender: No OFD packet to send [02:32:26]OFD Sender: No OFD packet to send [02:32:31]OFD Sender: No OFD packet to send [02:32:36]OFD Sender: No OFD packet to send [02:32:41]OFD Sender: No OFD packet to send [02:32:46]OFD Sender: No OFD packet to send [02:32:51]OFD Sender: No OFD packet to send [02:32:56]OFD Sender: No OFD packet to send [02:33:01]OFD Sender: No OFD packet to send [02:33:06]OFD Sender: No OFD packet to send [02:33:11]OFD Sender: No OFD packet to send [02:33:16]OFD Sender: No OFD packet to send [02:33:21]OFD Sender: No OFD packet to send [02:33:26]OFD Sender: No OFD packet to send [02:33:31]OFD Sender: No OFD packet to send [02:33:36]OFD Sender: No OFD packet to send [02:33:41]OFD Sender: No OFD packet to send [02:33:46]OFD Sender: No OFD packet to send [02:33:51]OFD Sender: No OFD packet to send [02:33:56]OFD Sender: No OFD packet to send [02:34:01]OFD Sender: No OFD packet to send [02:34:06]OFD Sender: No OFD packet to send [02:34:11]OFD Sender: No OFD packet to send [02:34:16]OFD Sender: No OFD packet to send [02:34:21]OFD Sender: No OFD packet to send [02:34:26]OFD Sender: No OFD packet to send [02:34:31]OFD Sender: No OFD packet to send [02:34:36]OFD Sender: No OFD packet to send [02:34:41]OFD Sender: No OFD packet to send [02:34:46]OFD Sender: No OFD packet to send [02:34:51]OFD Sender: No OFD packet to send [02:34:56]OFD Sender: No OFD packet to send [02:35:01]OFD Sender: No OFD packet to send [02:35:06]OFD Sender: No OFD packet to send [02:35:11]OFD Sender: No OFD packet to send [02:35:16]OFD Sender: No OFD packet to send [02:35:21]OFD Sender: No OFD packet to send [02:35:26]OFD Sender: No OFD packet to send [02:35:31]OFD Sender: No OFD packet to send [02:35:36]OFD Sender: No OFD packet to send [02:35:41]OFD Sender: No OFD packet to send [02:35:46]OFD Sender: No OFD packet to send [02:35:51]OFD Sender: No OFD packet to send [02:35:56]OFD Sender: No OFD packet to send [02:36:01]OFD Sender: No OFD packet to send [02:36:06]OFD Sender: No OFD packet to send [02:36:11]OFD Sender: No OFD packet to send [02:36:16]OFD Sender: No OFD packet to send [02:36:21]OFD Sender: No OFD packet to send [02:36:26]OFD Sender: No OFD packet to send [02:36:31]OFD Sender: No OFD packet to send [02:36:36]OFD Sender: No OFD packet to send [02:36:41]OFD Sender: No OFD packet to send [02:36:46]OFD Sender: No OFD packet to send [02:36:51]OFD Sender: No OFD packet to send [02:36:56]OFD Sender: No OFD packet to send [02:37:01]OFD Sender: No OFD packet to send [02:37:06]OFD Sender: No OFD packet to send [02:37:11]OFD Sender: No OFD packet to send [02:37:16]OFD Sender: No OFD packet to send [02:37:21]OFD Sender: No OFD packet to send [02:37:26]OFD Sender: No OFD packet to send [02:37:31]OFD Sender: No OFD packet to send [02:37:36]OFD Sender: No OFD packet to send [02:37:41]OFD Sender: No OFD packet to send [02:37:46]OFD Sender: No OFD packet to send [02:37:51]OFD Sender: No OFD packet to send [02:37:56]OFD Sender: No OFD packet to send [02:38:01]OFD Sender: No OFD packet to send [02:38:06]OFD Sender: No OFD packet to send [02:38:11]OFD Sender: No OFD packet to send [02:38:16]OFD Sender: No OFD packet to send [02:38:21]OFD Sender: No OFD packet to send [02:38:26]OFD Sender: No OFD packet to send [02:38:31]OFD Sender: No OFD packet to send [02:38:36]OFD Sender: No OFD packet to send [02:38:41]OFD Sender: No OFD packet to send [02:38:46]OFD Sender: No OFD packet to send [02:38:51]OFD Sender: No OFD packet to send [02:38:56]OFD Sender: No OFD packet to send [02:39:01]OFD Sender: No OFD packet to send [02:39:06]OFD Sender: No OFD packet to send [02:39:11]OFD Sender: No OFD packet to send [02:39:16]OFD Sender: No OFD packet to send [02:39:21]OFD Sender: No OFD packet to send [02:39:26]OFD Sender: No OFD packet to send [02:39:31]OFD Sender: No OFD packet to send [02:39:36]OFD Sender: No OFD packet to send [02:39:41]OFD Sender: No OFD packet to send [02:39:46]OFD Sender: No OFD packet to send [02:39:51]OFD Sender: No OFD packet to send [02:39:56]OFD Sender: No OFD packet to send [02:40:01]OFD Sender: No OFD packet to send [02:40:06]OFD Sender: No OFD packet to send [02:40:12]OFD Sender: No OFD packet to send [02:40:17]OFD Sender: No OFD packet to send [02:40:22]OFD Sender: No OFD packet to send [02:40:27]OFD Sender: No OFD packet to send [02:40:32]OFD Sender: No OFD packet to send [02:40:37]OFD Sender: No OFD packet to send [02:40:42]OFD Sender: No OFD packet to send [02:40:47]OFD Sender: No OFD packet to send [02:40:52]OFD Sender: No OFD packet to send [02:40:57]OFD Sender: No OFD packet to send [02:41:02]OFD Sender: No OFD packet to send [02:41:07]OFD Sender: No OFD packet to send [02:41:12]OFD Sender: No OFD packet to send [02:41:17]OFD Sender: No OFD packet to send [02:41:22]OFD Sender: No OFD packet to send [02:41:27]OFD Sender: No OFD packet to send [02:41:32]OFD Sender: No OFD packet to send [02:41:37]OFD Sender: No OFD packet to send [02:41:42]OFD Sender: No OFD packet to send [02:41:47]OFD Sender: No OFD packet to send [02:41:52]OFD Sender: No OFD packet to send [02:41:57]OFD Sender: No OFD packet to send [02:42:02]OFD Sender: No OFD packet to send [02:42:07]OFD Sender: No OFD packet to send [02:42:12]OFD Sender: No OFD packet to send [02:42:17]OFD Sender: No OFD packet to send [02:42:22]OFD Sender: No OFD packet to send [02:42:27]OFD Sender: No OFD packet to send [02:42:32]OFD Sender: No OFD packet to send [02:42:37]OFD Sender: No OFD packet to send [02:42:42]OFD Sender: No OFD packet to send [02:42:47]OFD Sender: No OFD packet to send [02:42:52]OFD Sender: No OFD packet to send [02:42:57]OFD Sender: No OFD packet to send [02:43:02]OFD Sender: No OFD packet to send [02:43:07]OFD Sender: No OFD packet to send [02:43:12]OFD Sender: No OFD packet to send [02:43:17]OFD Sender: No OFD packet to send [02:43:22]OFD Sender: No OFD packet to send [02:43:27]OFD Sender: No OFD packet to send [02:43:32]OFD Sender: No OFD packet to send [02:43:37]OFD Sender: No OFD packet to send [02:43:42]OFD Sender: No OFD packet to send [02:43:47]OFD Sender: No OFD packet to send [02:43:52]OFD Sender: No OFD packet to send [02:43:57]OFD Sender: No OFD packet to send [02:44:02]OFD Sender: No OFD packet to send [02:44:07]OFD Sender: No OFD packet to send [02:44:12]OFD Sender: No OFD packet to send [02:44:17]OFD Sender: No OFD packet to send [02:44:22]OFD Sender: No OFD packet to send [02:44:27]OFD Sender: No OFD packet to send [02:44:32]OFD Sender: No OFD packet to send [02:44:37]OFD Sender: No OFD packet to send [02:44:42]OFD Sender: No OFD packet to send [02:44:47]OFD Sender: No OFD packet to send [02:44:52]OFD Sender: No OFD packet to send [02:44:57]OFD Sender: No OFD packet to send [02:45:02]OFD Sender: No OFD packet to send [02:45:07]OFD Sender: No OFD packet to send [02:45:12]OFD Sender: No OFD packet to send [02:45:17]OFD Sender: No OFD packet to send [02:45:22]OFD Sender: No OFD packet to send [02:45:27]OFD Sender: No OFD packet to send [02:45:32]OFD Sender: No OFD packet to send [02:45:37]OFD Sender: No OFD packet to send [02:45:42]OFD Sender: No OFD packet to send [02:45:47]OFD Sender: No OFD packet to send [02:45:52]OFD Sender: No OFD packet to send [02:45:57]OFD Sender: No OFD packet to send [02:46:02]OFD Sender: No OFD packet to send [02:46:07]OFD Sender: No OFD packet to send [02:46:12]OFD Sender: No OFD packet to send [02:46:17]OFD Sender: No OFD packet to send [02:46:22]OFD Sender: No OFD packet to send [02:46:27]OFD Sender: No OFD packet to send [02:46:32]OFD Sender: No OFD packet to send [02:46:37]OFD Sender: No OFD packet to send [02:46:42]OFD Sender: No OFD packet to send [02:46:47]OFD Sender: No OFD packet to send [02:46:52]OFD Sender: No OFD packet to send [02:46:57]OFD Sender: No OFD packet to send [02:47:02]OFD Sender: No OFD packet to send [02:47:07]OFD Sender: No OFD packet to send [02:47:12]OFD Sender: No OFD packet to send [02:47:17]OFD Sender: No OFD packet to send [02:47:22]OFD Sender: No OFD packet to send [02:47:27]OFD Sender: No OFD packet to send [02:47:32]OFD Sender: No OFD packet to send [02:47:37]OFD Sender: No OFD packet to send [02:47:42]OFD Sender: No OFD packet to send [02:47:47]OFD Sender: No OFD packet to send [02:47:52]OFD Sender: No OFD packet to send [02:47:57]OFD Sender: No OFD packet to send [02:48:02]OFD Sender: No OFD packet to send [02:48:07]OFD Sender: No OFD packet to send [02:48:12]OFD Sender: No OFD packet to send [02:48:17]OFD Sender: No OFD packet to send [02:48:22]OFD Sender: No OFD packet to send [02:48:27]OFD Sender: No OFD packet to send [02:48:32]OFD Sender: No OFD packet to send [02:48:37]OFD Sender: No OFD packet to send [02:48:42]OFD Sender: No OFD packet to send [02:48:47]OFD Sender: No OFD packet to send [02:48:52]OFD Sender: No OFD packet to send [02:48:57]OFD Sender: No OFD packet to send [02:49:02]OFD Sender: No OFD packet to send [02:49:07]OFD Sender: No OFD packet to send [02:49:12]OFD Sender: No OFD packet to send [02:49:17]OFD Sender: No OFD packet to send [02:49:22]OFD Sender: No OFD packet to send [02:49:27]OFD Sender: No OFD packet to send [02:49:32]OFD Sender: No OFD packet to send [02:49:37]OFD Sender: No OFD packet to send [02:49:42]OFD Sender: No OFD packet to send [02:49:47]OFD Sender: No OFD packet to send [02:49:52]OFD Sender: No OFD packet to send [02:49:57]OFD Sender: No OFD packet to send [02:50:02]OFD Sender: No OFD packet to send [02:50:07]OFD Sender: No OFD packet to send [02:50:12]OFD Sender: No OFD packet to send [02:50:17]OFD Sender: No OFD packet to send [02:50:22]OFD Sender: No OFD packet to send [02:50:27]OFD Sender: No OFD packet to send [02:50:32]OFD Sender: No OFD packet to send [02:50:37]OFD Sender: No OFD packet to send [02:50:42]OFD Sender: No OFD packet to send [02:50:47]OFD Sender: No OFD packet to send [02:50:52]OFD Sender: No OFD packet to send [02:50:57]OFD Sender: No OFD packet to send [02:51:02]OFD Sender: No OFD packet to send [02:51:07]OFD Sender: No OFD packet to send [02:51:12]OFD Sender: No OFD packet to send [02:51:17]OFD Sender: No OFD packet to send [02:51:22]OFD Sender: No OFD packet to send [02:51:27]OFD Sender: No OFD packet to send [02:51:32]OFD Sender: No OFD packet to send [02:51:37]OFD Sender: No OFD packet to send [02:51:42]OFD Sender: No OFD packet to send [02:51:47]OFD Sender: No OFD packet to send [02:51:52]OFD Sender: No OFD packet to send [02:51:57]OFD Sender: No OFD packet to send [02:52:02]OFD Sender: No OFD packet to send [02:52:07]OFD Sender: No OFD packet to send [02:52:12]OFD Sender: No OFD packet to send [02:52:17]OFD Sender: No OFD packet to send [02:52:22]OFD Sender: No OFD packet to send [02:52:27]OFD Sender: No OFD packet to send [02:52:32]OFD Sender: No OFD packet to send [02:52:37]OFD Sender: No OFD packet to send [02:52:42]OFD Sender: No OFD packet to send [02:52:47]OFD Sender: No OFD packet to send [02:52:52]OFD Sender: No OFD packet to send [02:52:57]OFD Sender: No OFD packet to send [02:53:02]OFD Sender: No OFD packet to send [02:53:07]OFD Sender: No OFD packet to send [02:53:12]OFD Sender: No OFD packet to send [02:53:17]OFD Sender: No OFD packet to send [02:53:22]OFD Sender: No OFD packet to send [02:53:27]OFD Sender: No OFD packet to send [02:53:32]OFD Sender: No OFD packet to send [02:53:37]OFD Sender: No OFD packet to send [02:53:42]OFD Sender: No OFD packet to send [02:53:47]OFD Sender: No OFD packet to send [02:53:52]OFD Sender: No OFD packet to send [02:53:57]OFD Sender: No OFD packet to send [02:54:02]OFD Sender: No OFD packet to send [02:54:07]OFD Sender: No OFD packet to send [02:54:12]OFD Sender: No OFD packet to send [02:54:17]OFD Sender: No OFD packet to send [02:54:22]OFD Sender: No OFD packet to send [02:54:27]OFD Sender: No OFD packet to send [02:54:32]OFD Sender: No OFD packet to send [02:54:37]OFD Sender: No OFD packet to send [02:54:42]OFD Sender: No OFD packet to send [02:54:47]OFD Sender: No OFD packet to send [02:54:52]OFD Sender: No OFD packet to send [02:54:57]OFD Sender: No OFD packet to send [02:55:02]OFD Sender: No OFD packet to send [02:55:07]OFD Sender: No OFD packet to send [02:55:12]OFD Sender: No OFD packet to send [02:55:17]OFD Sender: No OFD packet to send [02:55:22]OFD Sender: No OFD packet to send [02:55:27]OFD Sender: No OFD packet to send [02:55:32]OFD Sender: No OFD packet to send [02:55:37]OFD Sender: No OFD packet to send [02:55:42]OFD Sender: No OFD packet to send [02:55:47]OFD Sender: No OFD packet to send [02:55:52]OFD Sender: No OFD packet to send [02:55:57]OFD Sender: No OFD packet to send [02:56:02]OFD Sender: No OFD packet to send [02:56:07]OFD Sender: No OFD packet to send [02:56:12]OFD Sender: No OFD packet to send [02:56:17]OFD Sender: No OFD packet to send [02:56:22]OFD Sender: No OFD packet to send [02:56:27]OFD Sender: No OFD packet to send [02:56:32]OFD Sender: No OFD packet to send [02:56:37]OFD Sender: No OFD packet to send [02:56:42]OFD Sender: No OFD packet to send [02:56:47]OFD Sender: No OFD packet to send [02:56:52]OFD Sender: No OFD packet to send [02:56:57]OFD Sender: No OFD packet to send [02:57:02]OFD Sender: No OFD packet to send [02:57:07]OFD Sender: No OFD packet to send [02:57:12]OFD Sender: No OFD packet to send [02:57:17]OFD Sender: No OFD packet to send [02:57:22]OFD Sender: No OFD packet to send [02:57:37]OFD Sender: No OFD packet to send [02:57:42]OFD Sender: No OFD packet to send [02:57:47]OFD Sender: No OFD packet to send [02:57:52]OFD Sender: No OFD packet to send [02:57:57]OFD Sender: No OFD packet to send [02:58:02]OFD Sender: No OFD packet to send [02:58:07]OFD Sender: No OFD packet to send [02:58:12]OFD Sender: No OFD packet to send [02:58:17]OFD Sender: No OFD packet to send [02:58:22]OFD Sender: No OFD packet to send [02:58:27]OFD Sender: No OFD packet to send [02:58:32]OFD Sender: No OFD packet to send [02:58:37]OFD Sender: No OFD packet to send [02:58:42]OFD Sender: No OFD packet to send [02:58:47]OFD Sender: No OFD packet to send [02:58:52]OFD Sender: No OFD packet to send [02:58:57]OFD Sender: No OFD packet to send [02:59:02]OFD Sender: No OFD packet to send [02:59:07]OFD Sender: No OFD packet to send [02:59:12]OFD Sender: No OFD packet to send [02:59:18]OFD Sender: No OFD packet to send [02:59:23]OFD Sender: No OFD packet to send [02:59:28]OFD Sender: No OFD packet to send [02:59:33]OFD Sender: No OFD packet to send [02:59:38]OFD Sender: No OFD packet to send [02:59:43]OFD Sender: No OFD packet to send [02:59:45]ConnectInit Can't connect to host [02:59:48]OFD Sender: No OFD packet to send [02:59:53]OFD Sender: No OFD packet to send [02:59:58]OFD Sender: No OFD packet to send [03:00:03]OFD Sender: No OFD packet to send [03:00:08]OFD Sender: No OFD packet to send [03:00:13]OFD Sender: No OFD packet to send [03:00:18]OFD Sender: No OFD packet to send [03:00:23]OFD Sender: No OFD packet to send [03:00:28]OFD Sender: No OFD packet to send [03:00:33]OFD Sender: No OFD packet to send [03:00:38]OFD Sender: No OFD packet to send [03:00:43]OFD Sender: No OFD packet to send [03:00:48]OFD Sender: No OFD packet to send [03:00:53]OFD Sender: No OFD packet to send [03:00:58]OFD Sender: No OFD packet to send [03:01:03]OFD Sender: No OFD packet to send [03:01:08]OFD Sender: No OFD packet to send [03:01:13]OFD Sender: No OFD packet to send [03:01:18]OFD Sender: No OFD packet to send [03:01:23]OFD Sender: No OFD packet to send [03:01:28]OFD Sender: No OFD packet to send [03:01:33]OFD Sender: No OFD packet to send [03:01:38]OFD Sender: No OFD packet to send [03:01:43]OFD Sender: No OFD packet to send [03:01:48]OFD Sender: No OFD packet to send [03:01:53]OFD Sender: No OFD packet to send [03:01:58]OFD Sender: No OFD packet to send [03:02:03]OFD Sender: No OFD packet to send [03:02:08]OFD Sender: No OFD packet to send [03:02:13]OFD Sender: No OFD packet to send [03:02:18]OFD Sender: No OFD packet to send [03:02:23]OFD Sender: No OFD packet to send [03:02:28]OFD Sender: No OFD packet to send [03:02:33]OFD Sender: No OFD packet to send [03:02:38]OFD Sender: No OFD packet to send [03:02:43]OFD Sender: No OFD packet to send [03:02:48]OFD Sender: No OFD packet to send [03:02:53]OFD Sender: No OFD packet to send [03:02:58]OFD Sender: No OFD packet to send [03:03:03]OFD Sender: No OFD packet to send [03:03:08]OFD Sender: No OFD packet to send [03:03:13]OFD Sender: No OFD packet to send [03:03:18]OFD Sender: No OFD packet to send [03:03:23]OFD Sender: No OFD packet to send [03:03:28]OFD Sender: No OFD packet to send [03:03:33]OFD Sender: No OFD packet to send [03:03:38]OFD Sender: No OFD packet to send [03:03:43]OFD Sender: No OFD packet to send [03:03:48]OFD Sender: No OFD packet to send [03:03:53]OFD Sender: No OFD packet to send [03:03:58]OFD Sender: No OFD packet to send [03:04:03]OFD Sender: No OFD packet to send [03:04:08]OFD Sender: No OFD packet to send [03:04:13]OFD Sender: No OFD packet to send [03:04:18]OFD Sender: No OFD packet to send [03:04:23]OFD Sender: No OFD packet to send [03:04:28]OFD Sender: No OFD packet to send [03:04:33]OFD Sender: No OFD packet to send [03:04:38]OFD Sender: No OFD packet to send [03:04:43]OFD Sender: No OFD packet to send [03:04:48]OFD Sender: No OFD packet to send [03:04:53]OFD Sender: No OFD packet to send [03:04:58]OFD Sender: No OFD packet to send [03:05:03]OFD Sender: No OFD packet to send [03:05:08]OFD Sender: No OFD packet to send [03:05:13]OFD Sender: No OFD packet to send [03:05:18]OFD Sender: No OFD packet to send [03:05:23]OFD Sender: No OFD packet to send [03:05:28]OFD Sender: No OFD packet to send [03:05:33]OFD Sender: No OFD packet to send [03:05:38]OFD Sender: No OFD packet to send [03:05:43]OFD Sender: No OFD packet to send [03:05:48]OFD Sender: No OFD packet to send [03:05:53]OFD Sender: No OFD packet to send [03:05:58]OFD Sender: No OFD packet to send [03:06:03]OFD Sender: No OFD packet to send [03:06:08]OFD Sender: No OFD packet to send [03:06:13]OFD Sender: No OFD packet to send [03:06:18]OFD Sender: No OFD packet to send [03:06:23]OFD Sender: No OFD packet to send [03:06:28]OFD Sender: No OFD packet to send [03:06:33]OFD Sender: No OFD packet to send [03:06:38]OFD Sender: No OFD packet to send [03:06:43]OFD Sender: No OFD packet to send [03:06:48]OFD Sender: No OFD packet to send [03:06:53]OFD Sender: No OFD packet to send [03:06:58]OFD Sender: No OFD packet to send [03:07:03]OFD Sender: No OFD packet to send [03:07:08]OFD Sender: No OFD packet to send [03:07:13]OFD Sender: No OFD packet to send [03:07:18]OFD Sender: No OFD packet to send [03:07:23]OFD Sender: No OFD packet to send [03:07:28]OFD Sender: No OFD packet to send [03:07:33]OFD Sender: No OFD packet to send [03:07:38]OFD Sender: No OFD packet to send [03:07:43]OFD Sender: No OFD packet to send [03:07:48]OFD Sender: No OFD packet to send [03:07:53]OFD Sender: No OFD packet to send [03:07:58]OFD Sender: No OFD packet to send [03:08:03]OFD Sender: No OFD packet to send [03:08:08]OFD Sender: No OFD packet to send [03:08:13]OFD Sender: No OFD packet to send [03:08:18]OFD Sender: No OFD packet to send [03:08:23]OFD Sender: No OFD packet to send [03:08:28]OFD Sender: No OFD packet to send [03:08:33]OFD Sender: No OFD packet to send [03:08:38]OFD Sender: No OFD packet to send [03:08:43]OFD Sender: No OFD packet to send [03:08:48]OFD Sender: No OFD packet to send [03:08:53]OFD Sender: No OFD packet to send [03:08:58]OFD Sender: No OFD packet to send [03:09:03]OFD Sender: No OFD packet to send [03:09:08]OFD Sender: No OFD packet to send [03:09:13]OFD Sender: No OFD packet to send [03:09:18]OFD Sender: No OFD packet to send [03:09:23]OFD Sender: No OFD packet to send [03:09:28]OFD Sender: No OFD packet to send [03:09:33]OFD Sender: No OFD packet to send [03:09:38]OFD Sender: No OFD packet to send [03:09:43]OFD Sender: No OFD packet to send [03:09:48]OFD Sender: No OFD packet to send [03:09:53]OFD Sender: No OFD packet to send [03:09:58]OFD Sender: No OFD packet to send [03:10:03]OFD Sender: No OFD packet to send [03:10:08]OFD Sender: No OFD packet to send [03:10:13]OFD Sender: No OFD packet to send [03:10:18]OFD Sender: No OFD packet to send [03:10:23]OFD Sender: No OFD packet to send [03:10:28]OFD Sender: No OFD packet to send [03:10:33]OFD Sender: No OFD packet to send [03:10:38]OFD Sender: No OFD packet to send [03:10:43]OFD Sender: No OFD packet to send [03:10:48]OFD Sender: No OFD packet to send [03:10:53]OFD Sender: No OFD packet to send [03:10:58]OFD Sender: No OFD packet to send [03:11:03]OFD Sender: No OFD packet to send [03:11:08]OFD Sender: No OFD packet to send [03:11:13]OFD Sender: No OFD packet to send [03:11:18]OFD Sender: No OFD packet to send [03:11:23]OFD Sender: No OFD packet to send [03:11:28]OFD Sender: No OFD packet to send [03:11:33]OFD Sender: No OFD packet to send [03:11:38]OFD Sender: No OFD packet to send [03:11:43]OFD Sender: No OFD packet to send [03:11:48]OFD Sender: No OFD packet to send [03:11:53]OFD Sender: No OFD packet to send [03:11:58]OFD Sender: No OFD packet to send [03:12:03]OFD Sender: No OFD packet to send [03:12:08]OFD Sender: No OFD packet to send [03:12:13]OFD Sender: No OFD packet to send [03:12:18]OFD Sender: No OFD packet to send [03:12:23]OFD Sender: No OFD packet to send [03:12:28]OFD Sender: No OFD packet to send [03:12:33]OFD Sender: No OFD packet to send [03:12:38]OFD Sender: No OFD packet to send [03:12:43]OFD Sender: No OFD packet to send [03:12:48]OFD Sender: No OFD packet to send [03:12:53]OFD Sender: No OFD packet to send [03:12:58]OFD Sender: No OFD packet to send [03:13:03]OFD Sender: No OFD packet to send [03:13:08]OFD Sender: No OFD packet to send [03:13:13]OFD Sender: No OFD packet to send [03:13:18]OFD Sender: No OFD packet to send [03:13:23]OFD Sender: No OFD packet to send [03:13:28]OFD Sender: No OFD packet to send [03:13:33]OFD Sender: No OFD packet to send [03:13:38]OFD Sender: No OFD packet to send [03:13:43]OFD Sender: No OFD packet to send [03:13:48]OFD Sender: No OFD packet to send [03:13:53]OFD Sender: No OFD packet to send [03:13:58]OFD Sender: No OFD packet to send [03:14:03]OFD Sender: No OFD packet to send [03:14:08]OFD Sender: No OFD packet to send [03:14:13]OFD Sender: No OFD packet to send [03:14:18]OFD Sender: No OFD packet to send [03:14:23]OFD Sender: No OFD packet to send [03:14:28]OFD Sender: No OFD packet to send [03:14:33]OFD Sender: No OFD packet to send [03:14:38]OFD Sender: No OFD packet to send [03:14:43]OFD Sender: No OFD packet to send [03:14:48]OFD Sender: No OFD packet to send [03:14:53]OFD Sender: No OFD packet to send [03:14:58]OFD Sender: No OFD packet to send [03:15:03]OFD Sender: No OFD packet to send [03:15:08]OFD Sender: No OFD packet to send [03:15:13]OFD Sender: No OFD packet to send [03:15:18]OFD Sender: No OFD packet to send [03:15:23]OFD Sender: No OFD packet to send [03:15:28]OFD Sender: No OFD packet to send [03:15:33]OFD Sender: No OFD packet to send [03:15:38]OFD Sender: No OFD packet to send [03:15:43]OFD Sender: No OFD packet to send [03:15:48]OFD Sender: No OFD packet to send [03:15:53]OFD Sender: No OFD packet to send [03:15:58]OFD Sender: No OFD packet to send [03:16:03]OFD Sender: No OFD packet to send [03:16:08]OFD Sender: No OFD packet to send [03:16:13]OFD Sender: No OFD packet to send [03:16:18]OFD Sender: No OFD packet to send [03:16:23]OFD Sender: No OFD packet to send [03:16:28]OFD Sender: No OFD packet to send [03:16:33]OFD Sender: No OFD packet to send [03:16:38]OFD Sender: No OFD packet to send [03:16:43]OFD Sender: No OFD packet to send [03:16:48]OFD Sender: No OFD packet to send [03:16:53]OFD Sender: No OFD packet to send [03:16:58]OFD Sender: No OFD packet to send [03:17:03]OFD Sender: No OFD packet to send [03:17:08]OFD Sender: No OFD packet to send [03:17:13]OFD Sender: No OFD packet to send [03:17:18]OFD Sender: No OFD packet to send [03:17:23]OFD Sender: No OFD packet to send [03:17:28]OFD Sender: No OFD packet to send [03:17:33]OFD Sender: No OFD packet to send [03:17:38]OFD Sender: No OFD packet to send [03:17:43]OFD Sender: No OFD packet to send [03:17:48]OFD Sender: No OFD packet to send [03:17:53]OFD Sender: No OFD packet to send [03:17:58]OFD Sender: No OFD packet to send [03:18:03]OFD Sender: No OFD packet to send [03:18:08]OFD Sender: No OFD packet to send [03:18:13]OFD Sender: No OFD packet to send [03:18:18]OFD Sender: No OFD packet to send [03:18:23]OFD Sender: No OFD packet to send [03:18:29]OFD Sender: No OFD packet to send [03:18:34]OFD Sender: No OFD packet to send [03:18:39]OFD Sender: No OFD packet to send [03:18:44]OFD Sender: No OFD packet to send [03:18:49]OFD Sender: No OFD packet to send [03:18:54]OFD Sender: No OFD packet to send [03:18:59]OFD Sender: No OFD packet to send [03:19:04]OFD Sender: No OFD packet to send [03:19:09]OFD Sender: No OFD packet to send [03:19:14]OFD Sender: No OFD packet to send [03:19:19]OFD Sender: No OFD packet to send [03:19:24]OFD Sender: No OFD packet to send [03:19:29]OFD Sender: No OFD packet to send [03:19:34]OFD Sender: No OFD packet to send [03:19:39]OFD Sender: No OFD packet to send [03:19:44]OFD Sender: No OFD packet to send [03:19:49]OFD Sender: No OFD packet to send [03:19:54]OFD Sender: No OFD packet to send [03:19:59]OFD Sender: No OFD packet to send [03:20:04]OFD Sender: No OFD packet to send [03:20:09]OFD Sender: No OFD packet to send [03:20:14]OFD Sender: No OFD packet to send [03:20:19]OFD Sender: No OFD packet to send [03:20:24]OFD Sender: No OFD packet to send [03:20:29]OFD Sender: No OFD packet to send [03:20:34]OFD Sender: No OFD packet to send [03:20:39]OFD Sender: No OFD packet to send [03:20:44]OFD Sender: No OFD packet to send [03:20:49]OFD Sender: No OFD packet to send [03:20:54]OFD Sender: No OFD packet to send [03:20:59]OFD Sender: No OFD packet to send [03:21:04]OFD Sender: No OFD packet to send [03:21:09]OFD Sender: No OFD packet to send [03:21:14]OFD Sender: No OFD packet to send [03:21:19]OFD Sender: No OFD packet to send [03:21:24]OFD Sender: No OFD packet to send [03:21:29]OFD Sender: No OFD packet to send [03:21:34]OFD Sender: No OFD packet to send [03:21:39]OFD Sender: No OFD packet to send [03:21:44]OFD Sender: No OFD packet to send [03:21:49]OFD Sender: No OFD packet to send [03:21:54]OFD Sender: No OFD packet to send [03:21:59]OFD Sender: No OFD packet to send [03:22:04]OFD Sender: No OFD packet to send [03:22:09]OFD Sender: No OFD packet to send [03:22:14]OFD Sender: No OFD packet to send [03:22:19]OFD Sender: No OFD packet to send [03:22:24]OFD Sender: No OFD packet to send [03:22:29]OFD Sender: No OFD packet to send [03:22:34]OFD Sender: No OFD packet to send [03:22:39]OFD Sender: No OFD packet to send [03:22:44]OFD Sender: No OFD packet to send [03:22:49]OFD Sender: No OFD packet to send [03:22:54]OFD Sender: No OFD packet to send [03:22:59]OFD Sender: No OFD packet to send [03:23:04]OFD Sender: No OFD packet to send [03:23:09]OFD Sender: No OFD packet to send [03:23:14]OFD Sender: No OFD packet to send [03:23:19]OFD Sender: No OFD packet to send [03:23:24]OFD Sender: No OFD packet to send [03:23:29]OFD Sender: No OFD packet to send [03:23:34]OFD Sender: No OFD packet to send [03:23:39]OFD Sender: No OFD packet to send [03:23:44]OFD Sender: No OFD packet to send [03:23:49]OFD Sender: No OFD packet to send [03:23:54]OFD Sender: No OFD packet to send [03:23:59]OFD Sender: No OFD packet to send [03:24:04]OFD Sender: No OFD packet to send [03:24:09]OFD Sender: No OFD packet to send [03:24:14]OFD Sender: No OFD packet to send [03:24:19]OFD Sender: No OFD packet to send [03:24:24]OFD Sender: No OFD packet to send [03:24:29]OFD Sender: No OFD packet to send [03:24:34]OFD Sender: No OFD packet to send [03:24:39]OFD Sender: No OFD packet to send [03:24:44]OFD Sender: No OFD packet to send [03:24:49]OFD Sender: No OFD packet to send [03:24:54]OFD Sender: No OFD packet to send [03:24:59]OFD Sender: No OFD packet to send [03:25:04]OFD Sender: No OFD packet to send [03:25:09]OFD Sender: No OFD packet to send [03:25:14]OFD Sender: No OFD packet to send [03:25:19]OFD Sender: No OFD packet to send [03:25:24]OFD Sender: No OFD packet to send [03:25:29]OFD Sender: No OFD packet to send [03:25:34]OFD Sender: No OFD packet to send [03:25:39]OFD Sender: No OFD packet to send [03:25:44]OFD Sender: No OFD packet to send [03:25:49]OFD Sender: No OFD packet to send [03:25:54]OFD Sender: No OFD packet to send [03:25:59]OFD Sender: No OFD packet to send [03:26:04]OFD Sender: No OFD packet to send [03:26:09]OFD Sender: No OFD packet to send [03:26:14]OFD Sender: No OFD packet to send [03:26:19]OFD Sender: No OFD packet to send [03:26:24]OFD Sender: No OFD packet to send